/*
 | Seyaq Glass — the frosted-glass layer for فواتير سياق
 | Loaded last (after seyaq-theme.css) from partials/head.blade.php.
 | Emerald and champagne light behind frosted panels, in the light and the dark theme.
 | To roll back: remove the <link> to this file in partials/head.blade.php.
 */

/* ---------- 1. Tokens ---------- */
:root:not(.dark) {
    --ui-canvas: #edf2ef;
    --ui-surface: #fbfdfc;
    --ui-surface-muted: #eef3f1;
    --ui-line: #dde6e2;
    --ui-line-strong: #c3d1cb;
    --ui-ink: #10201c;
    --ui-ink-muted: #33433f;
    --ui-ink-subtle: #5a6a65;
    --ui-side: transparent;

    --g-aura-a: rgb(31 157 128 / .40);
    --g-aura-b: rgb(214 178 104 / .42);
    --g-aura-c: rgb(110 150 220 / .26);
    --g-fill: rgb(255 255 255 / .52);
    --g-fill-hi: rgb(255 255 255 / .70);
    --g-bar: rgb(246 250 248 / .76);
    --g-edge: rgb(255 255 255 / .85);
    --g-rim: rgb(16 40 34 / .07);
    --g-hi: inset 0 1px 0 rgb(255 255 255 / .95);
    --g-drop: 0 1px 2px rgb(18 52 45 / .05), 0 18px 40px -24px rgb(18 52 45 / .32);
    --g-drop-hover: 0 2px 4px rgb(18 52 45 / .06), 0 26px 50px -24px rgb(18 52 45 / .42);
    --g-field: rgb(255 255 255 / .74);
    --g-gold: #8a6a24;
    --g-gold-soft: rgb(184 145 63 / .14);

    --sq-shadow-card: var(--g-hi), var(--g-drop);
    --sq-shadow-hover: var(--g-hi), var(--g-drop-hover);
    --sq-brand-soft: rgb(255 255 255 / .9);
}

:root.dark {
    --ui-canvas: #060c0b;
    --ui-surface: #0f1917;
    --ui-surface-muted: #16211f;
    --ui-line: #1f2d2a;
    --ui-line-strong: #2d3f3b;
    --ui-ink: #eef5f2;
    --ui-ink-muted: #c9d6d2;
    --ui-ink-subtle: #93a7a1;
    --ui-side: transparent;

    --g-aura-a: rgb(24 150 122 / .42);
    --g-aura-b: rgb(196 156 84 / .24);
    --g-aura-c: rgb(60 96 170 / .24);
    --g-fill: rgb(255 255 255 / .055);
    --g-fill-hi: rgb(255 255 255 / .09);
    --g-bar: rgb(12 20 18 / .8);
    --g-edge: rgb(255 255 255 / .11);
    --g-rim: rgb(0 0 0 / .2);
    --g-hi: inset 0 1px 0 rgb(255 255 255 / .07);
    --g-drop: 0 24px 50px -28px rgb(0 0 0 / .85);
    --g-drop-hover: 0 30px 60px -26px rgb(0 0 0 / .95);
    --g-field: rgb(255 255 255 / .05);
    --g-gold: #e6c77f;
    --g-gold-soft: rgb(217 184 106 / .12);

    --sq-shadow-card: var(--g-hi), var(--g-drop);
    --sq-shadow-hover: var(--g-hi), var(--g-drop-hover);
    --sq-brand-soft: color-mix(in oklab, var(--brand) 22%, transparent);
}

/* ---------- 2. Ground: soft light behind every screen ---------- */
html { background: var(--ui-canvas); }
body { background: transparent; color: var(--ui-ink); font-family: var(--sq-display); }
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(70vmax 60vmax at 88% 2%, var(--g-aura-a), transparent 64%),
        radial-gradient(62vmax 56vmax at 4% 58%, var(--g-aura-b), transparent 62%),
        radial-gradient(58vmax 46vmax at 62% 104%, var(--g-aura-c), transparent 62%),
        var(--ui-canvas);
}
body .bg-canvas { background-color: transparent; }

/* ---------- 3. Shell ---------- */
.sq-side.sq-side {
    background: var(--g-bar) !important;
    border-color: var(--g-edge) !important;
    -webkit-backdrop-filter: blur(28px) saturate(170%) !important;
    backdrop-filter: blur(28px) saturate(170%) !important;
}
@media (min-width: 1024px) {
    .sq-side.sq-side { box-shadow: var(--g-hi), 18px 0 50px -40px rgb(18 52 45 / .35); }
}
.sq-side-head { border-bottom: 1px solid var(--g-rim) !important; }
.sq-nav-link[data-current] {
    background: var(--sq-brand-soft) !important;
    box-shadow: var(--g-hi), 0 10px 24px -16px rgb(18 52 45 / .5);
    border: 1px solid var(--g-edge);
}
.sq-nav-link:hover:not([data-current]) { background: var(--g-fill) !important; }

.sq-top.sq-top {
    background: var(--g-bar) !important;
    border-bottom: 1px solid var(--g-rim) !important;
    box-shadow: none;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
}
.sq-top > button[x-on\:click*='command-palette'] {
    background: var(--g-field) !important;
    border-color: var(--g-edge) !important;
    box-shadow: var(--g-hi);
    border-radius: 14px;
}

/* Bottom bar on phones: a floating glass capsule */
.sq-bottom.sq-bottom {
    inset-inline: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding-bottom: 0 !important;
    border: 1px solid var(--g-edge);
    border-radius: 26px;
    background: var(--g-bar) !important;
    box-shadow: var(--g-hi), 0 20px 40px -18px rgb(18 52 45 / .55);
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
}
.dark .sq-bottom.sq-bottom { box-shadow: var(--g-hi), 0 20px 40px -14px rgb(0 0 0 / .8); }
.sq-bottom a, .sq-bottom button { min-height: 60px; justify-content: center; }
.sq-bottom a[data-current] svg {
    background: var(--g-fill-hi);
    box-shadow: var(--g-hi), 0 6px 14px -8px rgb(18 52 45 / .45);
}
.dark .sq-bottom a[data-current] svg { background: color-mix(in oklab, var(--brand) 26%, transparent); }

/* Floating add button: above the capsule, emerald with a gold rim */
@media (width < 64rem) { .quick-add { --qa-bottom: calc(5.6rem + env(safe-area-inset-bottom) + var(--qa-lift)); } }
.quick-add-fab {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 0 0 1px rgb(217 184 106 / .45), 0 16px 30px -12px color-mix(in oklab, var(--brand) 85%, transparent) !important;
}

/* ---------- 4. Glass panels ---------- */
.sq-card,
.bg-surface.shadow-card,
.sq-age,
.inv-ageitem,
.sqh.sqh .sqh-grp,
.sqh.sqh .sqh-row,
.sqh.sqh .sqh-empty,
.sqh.sqh .sqh-search {
    background-color: var(--g-fill) !important;
    border-color: var(--g-edge) !important;
    box-shadow: var(--g-hi), var(--g-drop) !important;
}
.sq-card > header, .sq-card > footer { border-color: var(--g-rim) !important; }
.sq-card > footer { background: var(--g-fill) !important; }
.sq-card .divide-line > * , .sq-card .divide-y > * { border-color: var(--g-rim); }
.sq-card table thead, .sq-card table thead tr { background: transparent !important; }
.sq-card table tr { border-color: var(--g-rim) !important; }
@media (hover: hover) {
    a.sq-card:hover, .sqh.sqh .sqh-grp:hover { box-shadow: var(--g-hi), var(--g-drop-hover) !important; }
}

/* Home board tiles take the glass through their own variables */
:root:not(.dark) .sqh.sqh.sqh, :root.dark .sqh.sqh.sqh {
    --sq-card: var(--g-fill);
    --sq-line: var(--g-edge);
    --sq-track: rgb(16 40 34 / .08);
}
:root.dark .sqh.sqh.sqh { --sq-track: rgb(255 255 255 / .08); }
.sqh.sqh .sqh-tile { border-width: 1px; box-shadow: var(--g-hi), var(--g-drop); }
.sqh.sqh .sqh-tile.on { border-width: 1.5px; }

/* The big figure: glass lit by the brand on one corner and gold on the other */
.sqh.sqh .sqh-hero {
    background:
        radial-gradient(90% 130% at 100% 0%, color-mix(in oklab, var(--brand) 26%, transparent), transparent 62%),
        radial-gradient(70% 90% at 0% 100%, var(--g-gold-soft), transparent 65%),
        var(--g-fill-hi);
    border-color: var(--g-edge);
}
.sqh.sqh .sqh-hero .v { letter-spacing: -.02em; }
.sqh.sqh .sqh-seg { background: var(--sq-track); }

/* Follow-up strip stays red, as frosted glass */
.sqh-attn {
    background: color-mix(in oklab, var(--sq-red-bg) 78%, transparent);
    border-color: color-mix(in oklab, var(--sq-red) 22%, var(--g-edge));
    box-shadow: var(--g-hi), var(--g-drop);
}
.sqh-attn .sqh-pay { background: var(--g-fill-hi); border-color: var(--g-edge); box-shadow: var(--g-hi); }

/* Main action buttons on the home board */
.sqh.sqh .sqh-acts .o { background: var(--g-fill-hi); border-color: var(--g-edge); box-shadow: var(--g-hi); }

/* Sales lists: on phones each document is its own glass card */
ul.sq-rows > li { border-color: var(--g-rim); }
@media (max-width: 1023px) {
    ul.sq-rows > li { background: var(--g-fill); border-color: var(--g-edge) !important; box-shadow: var(--g-hi), var(--g-drop); }
}
.sq-dtabs-track { background: var(--g-fill) !important; border: 1px solid var(--g-edge); box-shadow: var(--g-hi); }

/* ---------- 5. Controls ---------- */
.sq-btn-secondary { background: var(--g-fill-hi) !important; border-color: var(--g-edge) !important; box-shadow: var(--g-hi), 0 4px 12px -8px rgb(18 52 45 / .3); }
.dark .sq-btn-secondary { box-shadow: var(--g-hi); }
.sq-btn-primary {
    background-image: linear-gradient(180deg, color-mix(in oklab, var(--brand) 82%, #fff), var(--brand)) !important;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 12px 24px -12px color-mix(in oklab, var(--brand) 85%, transparent) !important;
}

input.field, select.field, textarea.field {
    background-color: var(--g-field) !important;
    border-color: color-mix(in oklab, var(--ui-ink) 16%, transparent) !important;
    box-shadow: var(--g-hi) !important;
}
.dark input.field, .dark select.field, .dark textarea.field { border-color: rgb(255 255 255 / .14) !important; }
input.field:focus, select.field:focus, textarea.field:focus {
    background-color: var(--ui-surface) !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent) !important;
}
input.field.field-invalid, select.field.field-invalid, textarea.field.field-invalid { border-color: var(--danger-600, #dc2626) !important; }

/* Pop-overs, menus and dialogs: thicker frosted glass so the text stays crisp */
.shadow-pop, .quick-add-panel, [role='dialog'] .rounded-xl.bg-surface, [role='dialog'] > .rounded-xl {
    background-color: color-mix(in oklab, var(--ui-surface) 86%, transparent) !important;
    border-color: var(--g-edge) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
}

/* Bars kept at the bottom of editors */
[data-sticky-actions] > div, [data-sticky-actions].bg-surface\/95 {
    background-color: var(--g-bar) !important;
    border-color: var(--g-edge) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
}

/* ---------- 6. Figures and headings ---------- */
h1, h2, h3, .sq-title { font-family: var(--sq-display); }
.num, .tabular-nums { font-variant-numeric: tabular-nums; }

/* ---------- 7. Lighter on old phones and for reduced transparency ---------- */
@media (prefers-reduced-transparency: reduce) {
    :root:not(.dark) { --g-fill: rgb(255 255 255 / .94); --g-bar: rgb(246 250 248 / .97); }
    :root.dark { --g-fill: #111c1a; --g-bar: rgb(12 20 18 / .97); }
}

/* ---------- 8. Print: plain paper ---------- */
@media print {
    html, body { background: #fff !important; }
    body::before { display: none !important; }
}

/* ---------- 9. Customer's document page: lines as alternating tiles ---------- */
.sq-ltiles { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sq-ltile { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; background: color-mix(in oklab, var(--brand) 7%, #fff); border: 1px solid color-mix(in oklab, var(--brand) 18%, #fff); }
.sq-ltile:nth-child(even) { background: #fbf7ec; border-color: #efe4c8; }
.sq-lnum { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; }
.sq-ltile:nth-child(even) .sq-lnum { background: #b8913f; }
.sq-ltotal { flex: none; font-size: 14px; font-weight: 700; color: var(--brand); }
.sq-lperiod { display: inline-block; margin-top: 4px; font-size: 11.5px; padding: 2px 9px; border-radius: 99px; background: #fff; border: 1px solid #e6d3a3; color: #7a5d1f; }
.dark .sq-ltile { background: color-mix(in oklab, var(--brand) 14%, transparent); border-color: color-mix(in oklab, var(--brand) 30%, transparent); }
.dark .sq-ltile:nth-child(even) { background: rgb(217 184 106 / .1); border-color: rgb(217 184 106 / .25); }
.dark .sq-ltotal { color: color-mix(in oklab, var(--brand) 50%, #fff); }
.dark .sq-lperiod { background: transparent; color: #e6c77f; border-color: rgb(217 184 106 / .4); }

/* ---------- 10. Invoice progress: every step opens a quick sheet ---------- */
.sq-step-btn { display: flex; align-items: flex-start; gap: 12px; width: calc(100% + 12px); margin: -5px -6px; padding: 5px 6px; border: 0; background: none; font: inherit; color: inherit; text-align: start; cursor: pointer; border-radius: 14px; transition: background-color .15s; }
.sq-step-btn:hover, .sq-step-btn:focus-visible { background: color-mix(in oklab, var(--brand) 7%, transparent); outline: none; }
.sq-step-btn:active { transform: scale(.985); }
.sq-step-btn .sq-step-body { flex: 1; }
.sq-step-go { flex: none; align-self: center; color: var(--ui-ink-subtle); opacity: .55; transition: opacity .15s, transform .15s; }
.sq-step-btn:hover .sq-step-go { opacity: 1; }

html.sq-sheet-open { overflow: hidden; }
.sq-sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgb(6 16 14 / .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sq-sheet-panel { position: relative; width: 100%; max-width: 460px; max-height: 84dvh; overflow-y: auto; box-sizing: border-box; padding: 10px 18px 20px; border-radius: 28px; background: color-mix(in oklab, var(--ui-surface) 92%, transparent); border: 1px solid var(--g-edge, var(--ui-line)); box-shadow: var(--g-hi, none), 0 -10px 50px -18px rgb(0 0 0 / .45); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
@media (min-width: 640px) { .sq-sheet { align-items: center; } .sq-sheet-panel { padding-top: 18px; } .sq-sheet-grip { display: none !important; } }
.sq-sheet-in { animation: sq-sheet-up .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes sq-sheet-up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sq-sheet-in { animation: none; } }
.sq-sheet-grip { display: block; width: 40px; height: 5px; margin: 0 auto 10px; border-radius: 3px; background: color-mix(in oklab, var(--ui-ink) 22%, transparent); }
.sq-sheet-sec { display: flex; flex-direction: column; gap: 14px; }
.sq-sheet-head { display: flex; align-items: center; gap: 12px; }
.sq-sheet-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--ui-surface-muted); color: var(--ui-ink-subtle); }
.sq-sheet-ic.is-done { background: color-mix(in oklab, var(--brand) 14%, transparent); color: var(--brand); }
.dark .sq-sheet-ic.is-done { color: color-mix(in oklab, var(--brand) 55%, #fff); }
.sq-sheet-title { margin: 0; font-size: 17px; font-weight: 600; color: var(--ui-ink); }
.sq-sheet-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ui-ink-subtle); }
.sq-sheet-x { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 0; background: var(--ui-surface-muted); color: var(--ui-ink-muted); cursor: pointer; }
.sq-sheet-note { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ui-ink-muted); }
.sq-sheet-kv { margin: 0; display: flex; flex-direction: column; border-radius: 16px; background: var(--g-fill, var(--ui-surface-muted)); border: 1px solid var(--g-edge, var(--ui-line)); padding: 4px 14px; }
.sq-sheet-kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 14px; }
.sq-sheet-kv > div + div { border-top: 1px solid var(--ui-line); }
.sq-sheet-kv dt { color: var(--ui-ink-subtle); }
.sq-sheet-kv dd { margin: 0; color: var(--ui-ink); font-weight: 500; text-align: end; }
.sq-sheet-kv .is-total dd { font-weight: 700; font-size: 15px; }
.sq-sheet-kv dd.is-warn { color: var(--danger-700, #b91c1c); }
.sq-sheet-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.sq-sheet-btn { flex: 1 1 140px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border-radius: 15px; border: 1px solid var(--g-edge, var(--ui-line)); background: var(--g-fill-hi, var(--ui-surface)); color: var(--ui-ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: var(--g-hi, none); }
.sq-sheet-btn:hover { color: var(--ui-ink); border-color: var(--ui-line-strong); }
.sq-sheet-btn.is-primary { flex-basis: 100%; border-color: transparent; color: #fff; background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 82%, #fff), var(--brand)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), 0 12px 24px -14px color-mix(in oklab, var(--brand) 85%, transparent); }
.sq-sheet-btn.is-primary:hover { color: #fff; filter: brightness(1.05); }
.sq-sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sq-sheet-tile { min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 18px; border: 1px solid var(--g-edge, var(--ui-line)); background: var(--g-fill-hi, var(--ui-surface)); color: var(--ui-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; box-shadow: var(--g-hi, none); }
.sq-sheet-tile svg { color: var(--brand); }
.dark .sq-sheet-tile svg { color: color-mix(in oklab, var(--brand) 55%, #fff); }
.sq-sheet-tile:hover { border-color: color-mix(in oklab, var(--brand) 40%, transparent); }
.sq-sheet-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sq-sheet-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in oklab, var(--brand) 7%, var(--ui-surface)); border: 1px solid color-mix(in oklab, var(--brand) 16%, transparent); color: inherit; text-decoration: none; }
.sq-sheet-list li:nth-child(even) a { background: color-mix(in oklab, #b8913f 9%, var(--ui-surface)); border-color: color-mix(in oklab, #b8913f 22%, transparent); }
.sq-sheet-list b { display: block; font-size: 14px; font-weight: 600; color: var(--ui-ink); }
.sq-sheet-list small { display: block; font-size: 12px; color: var(--ui-ink-subtle); }
.sq-sheet-list strong { flex: none; font-size: 14.5px; font-weight: 700; color: var(--brand); }
.dark .sq-sheet-list strong { color: color-mix(in oklab, var(--brand) 55%, #fff); }

/* ---------- 11. Customer page: payment status, receipts, bank transfer, paid seal ---------- */
.sq-settle {
    display: flex; flex-direction: column; gap: .9rem;
    padding: 1.25rem; border-radius: 1.25rem;
    background: var(--g-fill-hi); border: 1px solid var(--g-edge);
    box-shadow: var(--sq-shadow-card);
    -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
.sq-settle-k { font-size: .85rem; color: var(--ui-ink-subtle); }
.sq-settle-big { font-family: var(--sq-display); font-size: 1.85rem; font-weight: 700; color: var(--ui-ink); line-height: 1.2; margin-top: -.6rem; }
.sq-settle-s { font-size: .85rem; color: var(--ui-ink-muted); margin-top: -.55rem; }
.sq-settle-t { font-family: var(--sq-display); font-size: 1.25rem; font-weight: 700; color: var(--g-gold); text-align: center; }
.sq-settle.is-full .sq-settle-s { text-align: center; margin-top: -.5rem; }
.sq-settle-h { font-size: .8rem; font-weight: 600; color: var(--ui-ink-subtle); letter-spacing: .02em; }
.sq-prog { display: flex; flex-direction: column; gap: .4rem; }
.sq-bar { height: .6rem; border-radius: 99px; background: color-mix(in oklab, var(--ui-line) 80%, transparent); overflow: hidden; }
.sq-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1f9d80, #0e5a4c); transition: width .6s ease; }
.sq-settle.is-full .sq-bar i { background: linear-gradient(90deg, #d9b86a, #8a6a24); }
.sq-prog-n { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .8rem; color: var(--ui-ink-muted); }
.sq-prog-n b { color: var(--ui-ink); font-weight: 600; }
.sq-rcpts, .sq-banks { display: flex; flex-direction: column; gap: .45rem; padding-top: .85rem; border-top: 1px solid var(--ui-line); }
.sq-rc {
    display: flex; align-items: center; gap: .55rem; padding: .6rem .75rem; border-radius: .8rem;
    background: var(--g-field); border: 1px solid var(--ui-line); color: var(--ui-ink); font-size: .875rem; text-decoration: none;
    transition: border-color .15s, background .15s;
}
.sq-rc svg { color: #15806c; flex: none; }
.sq-rc-d { flex: 1; min-width: 0; color: var(--ui-ink-muted); }
.sq-rc b { font-weight: 600; }
a.sq-rc:hover { border-color: color-mix(in oklab, #15806c 45%, transparent); }
.sq-rc-go { color: var(--ui-ink-subtle) !important; }
.sq-paid-tag { font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; background: var(--g-gold-soft); color: var(--g-gold); }
.sq-bank { display: flex; flex-direction: column; gap: .35rem; padding: .7rem .8rem; border-radius: .8rem; border: 1px dashed var(--ui-line-strong); }
.sq-bank-n { font-size: .875rem; font-weight: 600; color: var(--ui-ink); display: flex; flex-direction: column; }
.sq-bank-n small { font-size: .75rem; font-weight: 400; color: var(--ui-ink-subtle); }
.sq-bank-r { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sq-bank-l { font-size: .75rem; color: var(--ui-ink-subtle); }
.sq-bank-v { flex: 1; min-width: 0; font-size: .8rem; color: var(--ui-ink); overflow-wrap: anywhere; text-align: end; }
.sq-copy {
    display: inline-flex; align-items: center; gap: .3rem; font: inherit; font-size: .75rem; font-weight: 600;
    padding: .25rem .6rem; border-radius: .55rem; border: 1px solid var(--ui-line); background: var(--ui-surface); color: #0e5a4c; cursor: pointer;
}
:root.dark .sq-copy, :root.dark .sq-rc svg { color: #5bd6b2; }
.sq-copy:focus-visible, .sq-rc:focus-visible { outline: 2px solid #15806c; outline-offset: 2px; }
.sq-seal {
    align-self: center; width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-items: center; text-align: center;
    border: 3px double #b8913f; color: var(--g-gold); font-family: var(--sq-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35;
    background: radial-gradient(circle, var(--g-gold-soft), transparent 70%); transform: rotate(-8deg);
    box-shadow: inset 0 0 0 6px color-mix(in oklab, #b8913f 10%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
    .sq-seal { animation: sq-seal-in .7s cubic-bezier(.2, .9, .3, 1.3) both; }
    @keyframes sq-seal-in { from { transform: rotate(-24deg) scale(.6); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
}
