/* Her maker's looks on her sheet (otomate-looks.js): the row in "Your Otomate", and the sheets
   that rise over the page to add one. The Shop's dark palette (otomates-itemshop.css --is-*). */
.ol-box {
    --ol-panel: var(--is-panel, #2b2d31);
    --ol-pill: var(--is-pill, #313338);
    --ol-line: var(--is-line, #3f4147);
    --ol-ink: var(--is-ink, #f2f3f5);
    --ol-muted: var(--is-muted, #a6abb3);
    --ol-gold: #ffd54a;
    --ol-gold-ink: #3a2c00;
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}
.ol-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ol-muted, #a6abb3); }
.ol-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.ol-row::-webkit-scrollbar { display: none; }
.ol-loading { font-size: 13px; color: var(--ol-muted, #a6abb3); }
.ol-look {
    flex: none; width: 76px; display: grid; justify-items: center; gap: 4px;
    background: none; border: 0; padding: 0; color: var(--ol-muted, #a6abb3); font: inherit; cursor: pointer;
}
.ol-look.is-her { cursor: default; }
.ol-tile {
    width: 76px; height: 88px; border-radius: 14px; background: var(--ol-pill, #313338); display: flex;
    align-items: center; justify-content: center; overflow: hidden; border: 2px solid transparent;
}
.ol-tile img { width: 100%; height: 100%; object-fit: contain; }
.ol-look.is-her .ol-tile { border-color: var(--ol-gold, #ffd54a); }
.ol-look.is-add .ol-tile { background: transparent; border: 2px dashed var(--ol-gold, #ffd54a); color: var(--ol-gold, #ffd54a); font-size: 22px; }
.ol-look.is-add { color: var(--ol-gold, #ffd54a); font-weight: 700; }
.ol-look:not(.is-her):hover .ol-tile, .ol-look:focus-visible .ol-tile { border-color: var(--ol-gold, #ffd54a); }
.ol-name { font-size: 12px; line-height: 1.2; text-align: center; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-ghost { color: var(--ol-muted, #a6abb3); font-size: 20px; }
.ol-note { margin: 0; font-size: 13px; color: var(--ol-muted, #a6abb3); line-height: 1.4; }
.ol-note b { color: var(--ol-ink, #f2f3f5); }
.ol-note.is-error { color: #ff8a8a; }
.ol-btn {
    justify-self: start; border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 700;
    background: var(--ol-pill, #313338); color: var(--ol-ink, #f2f3f5); cursor: pointer;
}

/* the sheets */
.ol-layer {
    --ol-panel: var(--is-panel, #2b2d31); --ol-pill: var(--is-pill, #313338); --ol-line: var(--is-line, #3f4147);
    --ol-ink: var(--is-ink, #f2f3f5); --ol-muted: var(--is-muted, #a6abb3); --ol-gold: #ffd54a; --ol-gold-ink: #3a2c00;
    position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000; background: rgba(6, 8, 14, .62);
    display: flex; align-items: flex-end; justify-content: center;
}
.ol-sheet {
    width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto; background: var(--ol-panel); color: var(--ol-ink);
    border-radius: 22px 22px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -10px 30px rgba(0, 0, 0, .4);
}
.ol-sheet.is-tall { height: 88vh; }
@media (min-width: 760px) {
    .ol-layer { align-items: center; }
    .ol-sheet { border-radius: 22px; max-height: 80vh; padding-bottom: 20px; }
    .ol-sheet.is-tall { height: 80vh; max-width: 640px; }
}
.ol-grab { align-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--ol-line); flex: none; }
.ol-sheet h3 { margin: 0; font-size: 18px; font-weight: 800; }
.ol-sub { margin: -6px 0 0; font-size: 13px; color: var(--ol-muted); line-height: 1.4; }
.ol-choice {
    display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; border: 2px solid transparent; border-radius: 16px;
    padding: 12px; background: var(--ol-pill); color: var(--ol-ink); font: inherit; cursor: pointer;
}
.ol-choice:hover, .ol-choice:focus-visible { border-color: var(--ol-gold); }
.ol-choice strong { display: block; font-size: 15px; }
.ol-choice small { display: block; font-size: 12.5px; color: var(--ol-muted); line-height: 1.35; margin-top: 2px; }
.ol-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.ol-icon.is-gold { background: #3a3216; color: var(--ol-gold); }
.ol-icon.is-blue { background: #16303a; color: #7aa7ff; }
.ol-top { display: flex; align-items: center; gap: 10px; }
.ol-back { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--ol-pill); color: var(--ol-ink); cursor: pointer; flex: none; }
.ol-search { display: flex; align-items: center; gap: 8px; background: var(--ol-pill); border-radius: 12px; padding: 0 12px; color: var(--ol-muted); flex: none; }
.ol-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ol-ink); font: inherit; font-size: 14px; padding: 10px 0; outline: none; }
.ol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: start; flex: 1; overflow-y: auto; }
@media (min-width: 560px) { .ol-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ol-pick {
    position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 6px; border-radius: 14px; min-width: 0;
    background: var(--ol-pill); border: 2px solid transparent; color: var(--ol-ink); font: inherit; cursor: pointer;
}
.ol-pick .ol-tile { width: 100%; height: 84px; background: transparent; border: 0; }
.ol-pick strong { font-size: 12.5px; line-height: 1.2; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-pick small { font-size: 11px; color: var(--ol-muted); text-align: center; line-height: 1.2; }
.ol-pick.is-on { border-color: var(--ol-gold); }
.ol-pick.is-on::after {
    content: "\2713"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--ol-gold); color: var(--ol-gold-ink); font-size: 12px; font-weight: 900; display: flex; align-items: center; justify-content: center;
}
.ol-pick.is-off { opacity: .45; cursor: default; }
.ol-cta {
    flex: none; border: 0; border-radius: 14px; padding: 13px; background: var(--ol-gold); color: var(--ol-gold-ink);
    font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.ol-cta small { display: block; font-size: 11.5px; font-weight: 500; opacity: .75; }
.ol-cta:disabled { opacity: .5; cursor: default; }
.ol-cta.is-warn { background: #ff6b6b; color: #2b0606; }
.ol-pair { display: flex; gap: 10px; }
.ol-pair > * { flex: 1; justify-self: stretch; }
.ol-row-btn {
    display: flex; align-items: center; gap: 10px; border: 0; border-radius: 12px; padding: 12px 14px; background: var(--ol-pill);
    color: var(--ol-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: left;
}
.ol-row-btn.is-warn { color: #ff8a8a; }
.ol-toast {
    position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 2100;
    width: calc(100% - 32px); max-width: 420px; background: #6fe0b5; color: #0d2b20; border-radius: 14px; padding: 11px 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35); transition: opacity .5s;
}
.ol-toast strong { display: block; font-size: 14px; }
.ol-toast small { display: block; font-size: 12.5px; }
.ol-toast.is-going { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ol-toast { transition: none; } }
