/* VIBSma — modes switch, Photoshop-like tooltips, graphic styles, filters, Liquify, templates, ATS check,
   account (sign in / sign up), share link */

/* ---------- Design / Video / Music switch (video editor, studio) ---------- */
.mode-sw { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .08); flex: none; }
.mode-sw button { border: 0; background: transparent; color: inherit; padding: 4px 10px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; opacity: .75; }
.mode-sw button:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.mode-sw button.on { opacity: 1; background: #0D99FF; color: #fff; }
@media (max-width: 700px) { .mode-sw button { padding: 4px 7px; } }

/* the top bar gets crowded: the «Share» label folds into its avatars first */
@media (max-width: 1680px) { #btn-collab .lbl { display: none; } }

/* ---------- tooltips (Photoshop) ---------- */
.ps-tip { position: fixed; z-index: 10000; pointer-events: none; display: flex; align-items: center; gap: 8px; max-width: 320px; padding: 6px 9px; border-radius: 6px; background: #2C2C31; color: #F1F1F4; font: 12px/1.4 var(--font); box-shadow: 0 6px 22px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .07); animation: ps-tip-in .12s ease-out; }
.ps-tip kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 4px; background: #45454D; color: #fff; font: 600 11px/1.5 var(--font); text-align: center; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .35); }
.ps-tip .ps-keys { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; } .ps-tip .ps-keys i { font-style: normal; opacity: .6; font-size: 10px; }
.ps-tip.rich { align-items: flex-start; gap: 12px; padding: 12px 14px; max-width: 340px; }
.ps-tip-ic { flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #3A3A44, #26262C); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ps-tip-b { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ps-tip-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .ps-tip-h b { font-size: 13px; }
.ps-tip p { margin: 0; color: #C9C9D2; line-height: 1.45; } .ps-tip em { font-style: normal; color: #8F8F9C; font-size: 11px; }
@keyframes ps-tip-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ps-tip { animation: none; } }

/* ---------- graphic styles ---------- */
.gs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; padding: 2px 0 6px; }
.gs-grid.big { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.gs-chip { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--fg-2); font-size: 10px; line-height: 1.2; text-align: center; min-width: 0; }
.gs-chip:hover { border-color: var(--acc); color: var(--fg); }
.gs-chip svg { display: block; width: 100%; height: auto; border-radius: 4px; background: var(--checker); }
.gs-chip span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-fallback { display: block; width: 100%; aspect-ratio: 64 / 44; border-radius: 4px; }
.gs-cur { font-size: 11.5px; color: var(--fg-2); margin-bottom: 4px; }
.gs-lib h4 { margin: 10px 0 6px; font-size: 12px; }
.gs-cats { padding: 0; border: 0; }
.gs-grid .as-empty { grid-column: 1 / -1; }
.gs-q { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: var(--panel-2); }
.gs-colors { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.gs-colors button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--panel); background: var(--c); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.gs-colors button[data-gscol="all"] { width: auto; height: 22px; border-radius: 999px; padding: 0 8px; background: var(--panel-2); font-size: 11px; color: var(--fg-2); }
.gs-colors button.on { box-shadow: 0 0 0 2px var(--acc); }
.gs-wrap { max-height: 58vh; overflow: auto; }
.ps .gs-grid + .row .btn { flex: 1; }

/* ---------- Liquid Glass row ---------- */
.glass-cols { gap: 6px; align-items: center; }
.glass-cols input[type="color"] { width: 26px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: none; flex: none; }
.glass-cols .btn { margin-left: auto; padding: 3px 8px; min-height: 24px; }

/* ---------- filters ---------- */
.dlg.fl-wide { width: min(1080px, 100%); }
.fl-dlg { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.fl-prev { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fl-prev canvas { width: 100%; height: auto; max-height: 62vh; object-fit: contain; border-radius: 8px; background: var(--checker); }
.fl-prev-bar { display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 11px; } .fl-stat { margin-left: auto; }
.fl-params { display: flex; flex-direction: column; gap: 8px; max-height: 64vh; overflow: auto; padding-right: 4px; }
.fl-params h5, .fl-grp h5 { margin: 6px 0 2px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--fg-2); }
.fl-grp { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.fl-row { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "l n u" "r r r"; align-items: center; column-gap: 6px; row-gap: 3px; font-size: 12px; color: var(--fg-2); }
.fl-row > span { grid-area: l; }
.fl-row input[type="range"] { grid-area: r; width: 100%; accent-color: var(--acc); }
.fl-row .fl-num { grid-area: n; width: 64px; height: 24px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); padding: 0 6px; text-align: right; }
.fl-row em { grid-area: u; font-style: normal; color: var(--fg-3); font-size: 11px; min-width: 14px; }
.fl-row select { grid-column: 2 / 4; height: 26px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel-2); }
.fl-row input[type="color"] { grid-column: 3; width: 34px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 5px; }
.fl-row.chk { display: flex; } .fl-row.col { display: flex; flex-direction: column; align-items: stretch; }
.fl-row textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); padding: 6px 8px; font: 12px/1.4 var(--mono); resize: vertical; }
.fl-nf { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; } .fl-nf summary { cursor: pointer; list-style: none; } .fl-nf[open] { display: flex; flex-direction: column; gap: 6px; }
.fl-gal { display: grid; grid-template-columns: minmax(0, 1fr) 210px 240px; gap: 12px; align-items: start; }
.fl-gal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; max-height: 64vh; overflow: auto; }
.fl-th { display: flex; flex-direction: column; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); font-size: 10.5px; color: var(--fg-2); }
.fl-th canvas { width: 100%; height: auto; border-radius: 4px; background: var(--checker); }
.fl-th.on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc-soft); color: var(--fg); }
.fl-busy { position: fixed; z-index: 9000; left: 50%; bottom: 72px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 999px; background: var(--panel); box-shadow: var(--shadow); font-weight: 600; }
.fl-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--acc-soft); border-top-color: var(--acc); animation: fl-spin .8s linear infinite; }
@keyframes fl-spin { to { transform: rotate(360deg); } }
.sf-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.sf-row { display: flex; align-items: center; gap: 4px; } .sf-row.off .sf-name { opacity: .45; text-decoration: line-through; }
.sf-name { flex: 1; text-align: left; border: 0; background: var(--panel-2); border-radius: 5px; padding: 4px 8px; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-name:hover { background: var(--panel-3); }
@media (max-width: 860px) { .fl-dlg, .fl-gal { grid-template-columns: 1fr; } .fl-gal-grid { grid-template-columns: repeat(3, 1fr); max-height: 30vh; } }

/* ---------- Liquify / Vanishing Point ---------- */
.lq-root { position: fixed; inset: 0; z-index: 950; display: flex; flex-direction: column; background: #141417; color: #E8E8EE; font: 12px/1.35 var(--font); }
.lq-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #1C1C21; border-bottom: 1px solid #2E2E37; flex-wrap: wrap; }
.lq-top .dlg-text { color: #A3A3B0; }
.lq-root .btn { background: #24242B; color: #E8E8EE; border-color: #2E2E37; } .lq-root .btn.primary { background: #0D99FF; border-color: #0D99FF; color: #fff; }
.lq-body { flex: 1; display: flex; min-height: 0; }
.lq-tools { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: #1C1C21; border-right: 1px solid #2E2E37; width: 170px; }
.lq-t { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1px solid transparent; background: transparent; color: inherit; padding: 6px 8px; border-radius: 6px; text-align: left; }
.lq-t:hover { background: #24242B; } .lq-t.on { background: #0D99FF; color: #fff; }
.lq-t kbd { font: 600 10px var(--font); opacity: .7; }
.lq-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 16px; min-width: 0; overflow: hidden; background: repeating-conic-gradient(#26262C 0% 25%, #1E1E23 0% 50%) 50% / 16px 16px; }
.lq-stage canvas { max-width: 100%; max-height: 100%; object-fit: contain; touch-action: none; cursor: crosshair; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lq-brush { position: absolute; width: 0; height: 0; border: 1.5px solid #fff; border-radius: 50%; pointer-events: none; mix-blend-mode: difference; }
.lq-side { width: 220px; padding: 12px; background: #1C1C21; border-left: 1px solid #2E2E37; display: flex; flex-direction: column; gap: 10px; }
.lq-side .fl-row { color: #A3A3B0; display: flex; flex-direction: column; align-items: stretch; }
.vp-svg { position: absolute; inset: 0; }
@media (max-width: 760px) { .lq-tools { width: auto; } .lq-side { display: none; } .lq-t { font-size: 0; } .lq-t kbd { font-size: 12px; opacity: 1; } }

/* ---------- templates (Canva-like) ---------- */
.tp-back { position: fixed; inset: 0; z-index: 800; background: rgba(10, 10, 16, .55); display: grid; place-items: center; padding: 16px; }
.tp { width: min(1320px, 100%); height: min(900px, 100%); display: flex; flex-direction: column; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.tp-h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tp-h h2 { margin: 0 6px 0 0; font-size: 17px; }
.tp-q { flex: 1 1 220px; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; background: var(--panel-2); }
.tp-tiers { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--panel-2); }
.tp-tiers button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-weight: 600; color: var(--fg-2); }
.tp-tiers button.on { background: var(--panel); color: var(--fg); box-shadow: var(--shadow-sm); }
.tp-main { flex: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; }
.tp-cats { display: flex; flex-direction: column; gap: 1px; padding: 8px; border-right: 1px solid var(--line); overflow: auto; }
.tp-cats button { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border: 0; background: transparent; padding: 7px 10px; border-radius: 7px; text-align: left; color: var(--fg); }
.tp-cats button em { font-style: normal; font-size: 10.5px; color: var(--fg-3); white-space: nowrap; }
.tp-cats button:hover { background: var(--panel-2); }
.tp-cats button.sub { padding-left: 22px; font-size: 12px; color: var(--fg-2); }
.tp-cats button[data-cat="ideas"], .tp-cats button[data-cat="kt"] { font-weight: 700; } .tp-cats button.on { background: var(--acc-soft); color: var(--acc-2); font-weight: 600; }
.tp-body { overflow: auto; padding: 12px 16px 24px; }
.tp-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--fg-2); flex-wrap: wrap; } .tp-info b { color: var(--fg); font-size: 14px; }
.tp-grid { columns: 5 200px; column-gap: 12px; }
/* one category: same-size cards in rows, so each row mixes layouts and styles */
.tp-grid.rows { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; align-items: start; }
.tp-grid.rows .tp-card { margin: 0; }
.tp-card { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--panel-2); break-inside: avoid; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.tp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tp-svg { display: block; width: 100%; height: auto; }
.tp-cap { position: absolute; left: 8px; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10.5px; opacity: 0; transition: opacity .12s; }
.tp-card:hover .tp-cap { opacity: 1; }
.tp-pro { position: absolute; top: 6px; right: 6px; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); font-size: 13px; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }
.tp-more { text-align: center; color: var(--fg-3); padding: 10px; }
@media (max-width: 760px) { .tp-main { grid-template-columns: 1fr; } .tp-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } .tp-cats button { flex: none; } .tp-cats button em { display: none; } .tp-grid { columns: 2 140px; } }

/* ---------- backgrounds ---------- */
.bg-dlg .tp-h { flex-wrap: wrap; }
.bg-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bg-chips button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 4px 11px; font-size: 12px; color: var(--fg-2); }
.bg-chips button.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.bg-grid .tp-card { aspect-ratio: 16 / 10; }
.bg-svg { display: block; }

/* ---------- video editor: templates and backgrounds tabs ---------- */
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.vt-card { display: flex; flex-direction: column; gap: 3px; padding: 4px; border: 1px solid var(--w-line, #2E2E37); border-radius: 8px; background: var(--w-panel-2, #24242B); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.vt-card:hover { border-color: var(--w-acc, #19C3B6); }
.vt-card img { width: 100%; height: auto; max-height: 120px; object-fit: cover; border-radius: 5px; background: #000; }
.vt-th { position: relative; display: block; }
.vt-th i { position: absolute; inset: 0; display: grid; place-items: center; padding: 4px; font-style: normal; font-weight: 800; font-size: 12px; line-height: 1.15; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.vt-card b { font-size: 11px; line-height: 1.25; } .vt-card em { font-style: normal; font-size: 10px; color: var(--w-fg-3, #6E6E7C); }

/* ---------- studio: track templates ---------- */
.at-back { position: absolute; inset: 0; z-index: 20; background: rgba(0, 0, 0, .55); display: grid; place-items: center; padding: 20px; }
.at { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; background: var(--w-panel); border: 1px solid var(--w-line); border-radius: 12px; overflow: hidden; }
.at-h { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--w-line); flex-wrap: wrap; } .at-h span { color: var(--w-fg-2); } .at-h .sp { flex: 1; }
.at-list { overflow: auto; padding: 10px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.at-g { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 8px; background: var(--w-panel-2); }
.at-vs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.at-vs button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 5px 2px; border: 1px solid var(--w-line); border-radius: 6px; background: var(--w-bg); color: var(--w-fg); cursor: pointer; font: inherit; }
.at-vs button span { font-weight: 700; } .at-vs button em { font-style: normal; font-size: 10px; color: var(--w-fg-2); }
.at-vs button:hover, .at-vs button.on { border-color: var(--w-acc); background: rgba(25, 195, 182, .15); }

/* ---------- animation templates ---------- */
.dlg.an-wide { width: min(1000px, 100%); }
.an-head { display: flex; flex-direction: column; gap: 6px; } .an-head .bg-chips { padding: 0; border: 0; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; max-height: 60vh; overflow: auto; padding: 2px; }
.an-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--fg); text-align: center; }
.an-card:hover { border-color: var(--acc); }
.an-card b { font-size: 11.5px; line-height: 1.25; } .an-card em { font-style: normal; font-size: 10px; color: var(--fg-3); }
.an-stage { width: 96px; height: 72px; display: grid; place-items: center; overflow: hidden; border-radius: 8px; background: var(--panel); }
.an-box { display: block; width: 30px; height: 30px; border-radius: 7px; background: #7B61FF; }
@media (prefers-reduced-motion: reduce) { .an-box, .an-line { animation: none !important; } }

/* ---------- ATS check ---------- */
.dlg.ats-wide { width: min(1000px, 100%); }
.ats { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.ats-l { display: flex; flex-direction: column; gap: 10px; }
.ats-l textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--panel-2); resize: vertical; font: inherit; }
.ats-raw pre { max-height: 220px; overflow: auto; white-space: pre-wrap; font: 11px/1.45 var(--mono); background: var(--panel-2); padding: 8px; border-radius: 6px; }
.ats-score { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; color: var(--fg); }
.ats-score div { display: flex; flex-direction: column; gap: 2px; } .ats-score b { font-size: 15px; } .ats-score span { color: var(--fg-2); }
.ats-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.ats-list li { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--panel-2); }
.ats-list li > i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; color: #fff; }
.ats-list li.ok > i { background: #14AE5C; } .ats-list li.warn > i { background: #F5A623; } .ats-list li.bad > i { background: #E5484D; }
.ats-list li div { display: flex; flex-direction: column; gap: 2px; } .ats-list li span { color: var(--fg-2); line-height: 1.45; }
.ats-kw { display: flex; flex-wrap: wrap; gap: 5px; }
.ats-kw span { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; } .ats-kw .ok { background: rgba(20, 174, 92, .14); color: #0E8A48; } .ats-kw .bad { background: rgba(229, 72, 77, .12); color: #C3373C; text-decoration: line-through; }
@media (max-width: 760px) { .ats { grid-template-columns: 1fr; } }

/* ---------- account ---------- */
.acct-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 10px; background: var(--panel-2); }
.acct-tabs button { border: 0; background: transparent; padding: 7px; border-radius: 8px; font-weight: 600; color: var(--fg-2); }
.acct-tabs button.on { background: var(--panel); color: var(--fg); box-shadow: var(--shadow-sm); }
.acct-reason { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--acc-soft); color: var(--fg); }
.acct-pass { display: flex; align-items: center; gap: 4px; } .acct-pass input { flex: 1; min-width: 0; }
.acct-row { display: flex; justify-content: flex-end; margin-top: -4px; }
.acct-go { height: 40px; border-radius: 999px; font-size: 13.5px; }
.acct-msg.ok { color: #0E8A48; }
.acct-prov:disabled, .acct-go:disabled { opacity: .5; cursor: not-allowed; }
.acct-btn { position: relative; }
.acct-sync { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--topbar); background: #8F8F9C; }
.acct-sync.ok { background: #14AE5C; } .acct-sync.sync { background: #0D99FF; } .acct-sync.error { background: #E5484D; }
.acct-btn.in { overflow: visible; } .acct-btn.in img { border-radius: 50%; }

/* ---------- share link ---------- */
.sh { display: flex; flex-direction: column; gap: 12px; }
.sh-link { display: flex; gap: 8px; } .sh-link input { flex: 1; min-width: 0; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; background: var(--panel-2); font: 12px var(--mono); }
.sh-people { display: flex; flex-wrap: wrap; gap: 8px; }
.sh .warn { color: #B26A00; }

/* ---------- Illustrator Object / Photoshop Image menus ---------- */
.om-pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.om-pal { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.om-pal span { display: flex; height: 22px; border-radius: 6px; overflow: hidden; }
.om-pal i { flex: 1; }
.om-pal b { font-size: 12px; font-weight: 500; }
.om-pal.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.om-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; margin-bottom: 8px; }
.om-row { display: flex; align-items: center; gap: 10px; }
.om-row input[type="text"] { flex: 1; min-width: 0; height: 30px; border: 1px solid var(--line); border-radius: 7px; padding: 0 8px; background: var(--panel-2); color: inherit; }
.om-dim { font: 11px var(--mono); opacity: .7; white-space: nowrap; }
.im-anchor { display: inline-grid; grid-template-columns: repeat(3, 26px); gap: 3px; }
.im-anchor button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: inherit; cursor: pointer; padding: 0; }
.im-anchor button.on { background: var(--acc); border-color: var(--acc); color: #fff; }
.im-tbl { max-height: 50vh; overflow: auto; }
.im-tbl table { width: 100%; border-collapse: collapse; font-size: 12px; }
.im-tbl th, .im-tbl td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.im-tbl th { position: sticky; top: 0; background: var(--panel); font-weight: 600; }