/* ---------- icons ---------- */
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 15px; height: 15px; } .icon.lg { width: 22px; height: 22px; } .icon.xl { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  --h: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 14px;
  border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; user-select: none; text-decoration: none;
  transition: background .12s var(--ease), border-color .12s var(--ease), box-shadow .12s var(--ease), transform .06s var(--ease);
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; border-radius: var(--r); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.btn.primary:hover { background: color-mix(in oklab, var(--accent-solid) 88%, black); }
.btn.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.btn.soft:hover { background: var(--accent-soft-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger:hover { background: color-mix(in oklab, var(--danger) 86%, black); }
.btn.danger-soft { color: var(--danger-ink); }
.btn.danger-soft:hover { background: var(--danger-bg); border-color: var(--danger); }
.btn.sm { --h: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { --h: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn.xl { --h: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon-only { width: var(--h); padding: 0; }
.btn .spinner { width: 16px; height: 16px; }
.btn-group { display: inline-flex; } .btn-group .btn { border-radius: 0; margin-left: -1px; } .btn-group .btn:first-child { border-radius: var(--r) 0 0 var(--r); margin-left: 0; } .btn-group .btn:last-child { border-radius: 0 var(--r) var(--r) 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.field .req { color: var(--danger-ink); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12px; color: var(--danger-ink); display: flex; gap: 6px; align-items: center; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface);
  color: var(--ink); transition: border-color .12s, box-shadow .12s; min-width: 0;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 78px; line-height: 1.45; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23898781' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-solid); box-shadow: 0 0 0 3px var(--ring); outline: none; }
.input[disabled], .select[disabled], .textarea[disabled] { background: var(--surface-2); color: var(--ink-3); cursor: not-allowed; }
.input.lg { height: 46px; font-size: 16px; border-radius: 12px; }
.input.sm, .select.sm { height: 32px; font-size: 13px; padding: 0 10px; border-radius: 8px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group .affix { position: absolute; left: 12px; color: var(--ink-3); font-size: 13px; pointer-events: none; display: flex; align-items: center; gap: 6px; }
.input-group .affix.right { left: auto; right: 12px; }
.input-group .input.has-left { padding-left: 38px; }
.input-group .input.has-left-text { padding-left: 52px; }
.input-group .input.has-right { padding-right: 38px; }
.input-group .clear { position: absolute; right: 6px; }
input[type="number"] { -moz-appearance: textfield; } input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="color"] { padding: 3px; height: 38px; width: 56px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grid, .form-grid.c3 { grid-template-columns: minmax(0, 1fr); } }
.form-section { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.form-section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-section:first-child { margin-top: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; user-select: none; }
.check input { appearance: none; width: 18px; height: 18px; flex: none; margin: 1px 0 0; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--surface); display: grid; place-content: center; transition: .12s; cursor: pointer; }
.check input:checked { background: var(--accent-solid); border-color: var(--accent-solid); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px); }
.check input:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.check .t { font-weight: 550; } .check .d { color: var(--ink-3); font-size: 12.5px; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { appearance: none; position: absolute; inset: 0; margin: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: background .15s; }
.switch input:checked { background: var(--accent-solid); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s var(--ease); pointer-events: none; }
.switch:has(input:checked)::after { transform: translateX(16px); }
.switch input:focus-visible { outline: 2px solid var(--accent-solid); outline-offset: 2px; }
.switch.lg { width: 56px; height: 32px; } .switch.lg::after { width: 26px; height: 26px; top: 3px; left: 3px; } .switch.lg:has(input:checked)::after { transform: translateX(24px); }

/* ---------- card ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card.pad { padding: 18px; } .card.pad-lg { padding: 24px; } .card.flush { overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 0; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-head .sub { color: var(--ink-3); font-size: 12.5px; font-weight: 400; }
.card-body { padding: 14px 18px 18px; }
.card.hover { transition: box-shadow .15s, transform .15s, border-color .15s; cursor: pointer; }
.card.hover:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); transform: translateY(-1px); }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.good { background: var(--good-bg); color: var(--good-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.bad { background: var(--danger-bg); color: var(--danger-ink); }
.badge.info { background: var(--info-bg); color: var(--info-ink); }
.badge.accent { background: var(--accent-soft-2); color: var(--accent-text); }
.badge.outline { background: transparent; border: 1px solid var(--line-strong); }
.badge.sm { height: 18px; font-size: 11px; padding: 0 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 550; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: .12s; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--accent-solid); border-color: var(--accent-solid); color: var(--accent-ink); }
.chip .n { font-size: 11px; opacity: .75; font-weight: 600; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.tagpill { display: inline-block; padding: 1px 8px; font-size: 11.5px; border-radius: 6px; background: var(--surface-3); color: var(--ink-2); font-weight: 550; }

/* ---------- tabs / segmented ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; padding: 10px 14px; border: 0; background: none; color: var(--ink-3); font-weight: 600; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--accent-solid); border-radius: 2px; }
.tab .count { font-size: 11px; background: var(--surface-3); border-radius: 99px; padding: 1px 7px; color: var(--ink-2); }
.segmented { display: inline-flex; padding: 3px; border-radius: 11px; background: var(--surface-3); gap: 2px; }
.segmented button { border: 0; background: none; padding: 0 14px; height: 30px; border-radius: 8px; color: var(--ink-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.segmented button[aria-pressed="true"], .segmented button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.segmented.lg button { height: 42px; padding: 0 18px; font-size: 15px; }

/* ---------- table ---------- */
.table-wrap { overflow: auto; }
.table { width: 100%; font-size: 13.5px; }
.table th { position: sticky; top: 0; z-index: 1; text-align: left; font-size: 12px; font-weight: 650; color: var(--ink-3); padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.table th.sortable { cursor: pointer; } .table th.sortable:hover { color: var(--ink); }
.table th .sort { display: inline-block; width: 10px; opacity: .8; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: var(--surface-2); }
.table tfoot td { font-weight: 650; background: var(--surface-2); border-top: 1px solid var(--line); }
.table .r, .table th.r { text-align: right; font-variant-numeric: tabular-nums; }
.table .c { text-align: center; }
.table .actions { text-align: right; width: 1%; white-space: nowrap; }
.table.compact td { padding: 7px 12px; } .table.compact th { padding: 8px 12px; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.table-tools { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 720px) {
  .table.stack-mobile thead { display: none; }
  .table.stack-mobile, .table.stack-mobile tbody, .table.stack-mobile tr, .table.stack-mobile td { display: block; width: 100%; }
  .table.stack-mobile tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table.stack-mobile td { border: 0; padding: 3px 0; display: flex; justify-content: flex-end; align-items: baseline; flex-wrap: wrap; gap: 0 6px; text-align: right; }
  .table.stack-mobile td::before { content: attr(data-label); color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: left; flex: none; padding-top: 1px; margin-right: auto; padding-right: 14px; }
  .table.stack-mobile td.primary { font-weight: 650; font-size: 15px; justify-content: flex-start; text-align: left; padding-bottom: 6px; }
  .table.stack-mobile td.primary::before, .table.stack-mobile td.actions::before { display: none; }
  .table.stack-mobile td.hide-mobile { display: none; }
  .table.stack-mobile td.actions { justify-content: flex-end; width: 100%; padding-top: 8px; }
}

/* ---------- avatar ---------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; color: #fff; user-select: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; } .avatar.lg { width: 48px; height: 48px; font-size: 17px; } .avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.emoji-chip { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 20px; flex: none; background: var(--surface-2); }
.emoji-chip.lg { width: 48px; height: 48px; font-size: 26px; border-radius: 12px; }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: var(--overlay); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto; animation: fade .14s var(--ease); }
.overlay.drawer-wrap { padding: 0; justify-content: flex-end; align-items: stretch; }
.modal { background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); width: 100%; max-width: 520px; display: flex; flex-direction: column; max-height: 88vh; animation: pop .18s var(--ease); border: 1px solid var(--border); }
.modal.sm { max-width: 420px; } .modal.lg { max-width: 760px; } .modal.xl { max-width: 980px; } .modal.full { max-width: 1180px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 4px; }
.modal-head h2 { font-size: 18px; }
.modal-head .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.modal-body { padding: 14px 20px 20px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.drawer { background: var(--surface); width: 100%; max-width: 560px; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-3); animation: slide .22s var(--ease); border-left: 1px solid var(--border); }
.drawer.lg { max-width: 760px; } .drawer.xl { max-width: 960px; }
.drawer .modal-head { padding: 18px 20px 12px; border-bottom: 1px solid var(--line); align-items: center; }
.drawer .modal-body { padding: 18px 20px 28px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } } @keyframes slide { from { transform: translateX(36px); opacity: 0; } }
@media (max-width: 640px) {
  .modal-head { flex-wrap: wrap; row-gap: 8px; } .modal-head > .grow { flex: 1 1 100%; } .modal-head > .row { margin-left: auto; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: none; max-height: 94vh; border-radius: var(--r-xl) var(--r-xl) 0 0; animation: sheet .22s var(--ease); }
  .modal.full, .modal.xl, .modal.lg { max-height: 96vh; }
  .modal-foot { border-radius: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .drawer { max-width: none; animation: sheet .22s var(--ease); }
  .overlay.drawer-wrap { align-items: flex-end; } .drawer { height: 96vh; border-radius: var(--r-xl) var(--r-xl) 0 0; }
}
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }

/* ---------- toast ---------- */
/* Top-centre so a toast never covers the primary buttons in a drawer or dialog footer; text is click-through. */
.toasts { position: fixed; z-index: 300; left: 50%; top: 14px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { pointer-events: none; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--surface); padding: 11px 12px 11px 14px; border-radius: 12px; box-shadow: var(--shadow-3); max-width: 520px; font-weight: 550; animation: toastIn .22s var(--ease); }
.toast .icon { margin-top: 1px; flex: none; } .toast.success .icon { color: #4cc94c; } .toast.error .icon { color: #ff8a8a; } .toast.warn .icon { color: #f6c452; }
.toast .t { flex: 1; font-size: 13.5px; line-height: 1.4; }
.toast .x, .toast .act { pointer-events: auto; background: none; border: 0; color: inherit; }
.toast .x { opacity: .6; padding: 2px; display: grid; } .toast .x:hover { opacity: 1; }
.toast .act { font-weight: 700; text-decoration: underline; padding: 2px 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 640px) { .toasts { top: calc(8px + env(safe-area-inset-top)); width: calc(100vw - 24px); } .toast { max-width: none; width: 100%; } }

/* ---------- menu / popover ---------- */
.menu { position: fixed; z-index: 200; min-width: 200px; max-width: 320px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-2); padding: 6px; animation: pop .12s var(--ease); max-height: 70vh; overflow-y: auto; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 8px; text-align: left; font-weight: 500; color: var(--ink); }
.menu-item:hover, .menu-item:focus-visible { background: var(--surface-2); outline: none; text-decoration: none; }
.menu-item.danger { color: var(--danger-ink); } .menu-item .icon { color: var(--ink-3); } .menu-item.danger .icon { color: var(--danger-ink); }
.menu-item[disabled] { opacity: .45; pointer-events: none; }
.menu-item .sub { margin-left: auto; color: var(--ink-3); font-size: 12px; }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-label { padding: 6px 10px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }

/* ---------- misc ---------- */
.kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; background: var(--surface); font: 600 11px/1 var(--font); color: var(--ink-2); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid color-mix(in oklab, currentColor 22%, transparent); border-top-color: currentColor; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; min-height: 14px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 44px 20px; color: var(--ink-3); }
.empty .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-size: 30px; margin-bottom: 8px; }
.empty h3 { color: var(--ink); font-size: 16px; } .empty p { max-width: 380px; } .empty .btn { margin-top: 10px; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--info-bg); color: var(--ink); border: 1px solid color-mix(in oklab, var(--info) 30%, transparent); font-size: 13.5px; }
.banner .icon { color: var(--info-ink); margin-top: 1px; }
.banner.warn { background: var(--warn-bg); border-color: color-mix(in oklab, var(--warn) 45%, transparent); } .banner.warn .icon { color: var(--warn-ink); }
.banner.bad { background: var(--danger-bg); border-color: color-mix(in oklab, var(--danger) 35%, transparent); } .banner.bad .icon { color: var(--danger-ink); }
.banner.good { background: var(--good-bg); border-color: color-mix(in oklab, var(--good) 35%, transparent); } .banner.good .icon { color: var(--good-ink); }
.banner .grow b { font-weight: 650; }
.progress { height: 8px; border-radius: 99px; background: var(--accent-soft-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent-solid); border-radius: 99px; transition: width .4s var(--ease); }
.progress.warn > i { background: var(--warn); } .progress.bad > i { background: var(--danger); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.stepper button { width: 32px; height: 32px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { background: var(--surface-2); color: var(--ink); }
.stepper input { width: 46px; height: 32px; border: 0; text-align: center; background: none; font-weight: 650; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input:focus { outline: none; background: var(--accent-soft); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; } .kv dt { color: var(--ink-3); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.page-loading { display: grid; place-items: center; min-height: 40vh; color: var(--ink-3); }
.copy-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 12px; font-family: var(--mono); font-size: 12.5px; }
.copy-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; } .swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line-strong); cursor: pointer; padding: 0; } .swatch[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; max-height: 190px; overflow-y: auto; padding: 4px; } .emoji-grid button { font-size: 20px; height: 36px; border: 0; background: none; border-radius: 8px; } .emoji-grid button:hover { background: var(--surface-2); }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 28px; text-align: center; color: var(--ink-3); transition: .15s; background: var(--surface); }
.drop.over { border-color: var(--accent-solid); background: var(--accent-soft); color: var(--accent-text); }
