/* =====================================================================
   Maroufi Software - "Iris" theme
   Cool white surfaces, deep indigo ink, iris violet as the brand color,
   mint and sunflower as small accents. Bricolage Grotesque (display) +
   Instrument Sans (text). Signature: the live dot-grid hero.
   ===================================================================== */
:root {
    /* core palette */
    --ink: #14123a;          /* text + dark panels */
    --ink-2: #1d1b4f;
    --ink-soft: #4b4a6b;
    --muted: #8584a0;
    --surface: #ffffff;
    --canvas: #f6f7fb;       /* page background */
    --canvas-2: #eef0f8;
    --line: #e5e7f1;
    --line-strong: #d3d6e6;

    --iris: #5b4bff;         /* brand */
    --iris-strong: #4433ee;
    --iris-soft: #eeecff;
    --iris-glow: rgba(91, 75, 255, .35);
    --mint: #0fa37f;
    --mint-soft: #e0f6ef;
    --sun: #ffc23d;
    --sun-soft: #fff4d6;
    --sky: #2e7ff0;
    --sky-soft: #e5f0ff;
    --rose: #e5484d;
    --rose-soft: #fde8e8;

    --good: #12875f; --good-soft: #e0f6ef;
    --warn: #b7700a; --warn-soft: #fff1d6;
    --bad: #d93a40;  --bad-soft: #fde8e8;

    /* aliases kept for pages written against the previous theme */
    --paper: var(--canvas); --paper-2: var(--canvas-2); --paper-3: var(--line); --card: var(--surface);
    --forest: var(--iris); --forest-strong: var(--iris-strong); --forest-deep: var(--ink); --forest-soft: var(--iris-soft);
    --clay: var(--mint); --clay-strong: #0b8566; --clay-soft: var(--mint-soft);
    --gold: var(--sun); --gold-soft: var(--sun-soft);
    --plum: #8a3ffc; --plum-soft: #f3ebff;

    --r-sm: 8px;
    --r: 14px;
    --r-lg: 24px;
    --radius: var(--r); --radius-sm: var(--r-sm);
    --shadow-sm: 0 1px 2px rgba(20, 18, 58, .05), 0 1px 1px rgba(20, 18, 58, .03);
    --shadow: 0 2px 4px rgba(20, 18, 58, .04), 0 16px 40px -16px rgba(20, 18, 58, .22);
    --shadow-iris: 0 10px 30px -10px rgba(91, 75, 255, .55);
    --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
    background: var(--canvas); color: var(--ink);
    display: flex; flex-direction: column; -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--iris); text-decoration: none; }
a:hover { color: var(--iris-strong); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .6rem; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
h4 { font-size: 1rem; }
p { margin: 0 0 1rem; }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .85em; }
code { background: var(--canvas-2); padding: .1rem .35rem; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
::selection { background: var(--iris); color: #fff; }
:focus-visible { outline: 3px solid var(--iris); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 880px; }
.section { padding: 5rem 0; }
.section-tight { padding: 2.5rem 0; }
.page { padding: 2.5rem 0 4rem; }

/* ---------- utilities ---------- */
.muted { color: var(--ink-soft); }
.dim { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.d-block { display: block; }
.grow { flex: 1; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.flex { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.stack > * + * { margin-top: 1rem; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Section label: small, sentence case, colored - not a shouting caps eyebrow. */
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--iris); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head h2 { margin-top: .5rem; }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 200; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--iris), #9b8cff 50%, var(--mint)); pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font: inherit; font-weight: 600; font-size: .95rem; line-height: 1;
    padding: .8rem 1.2rem; border-radius: 10px; border: 1px solid transparent;
    cursor: pointer; text-decoration: none !important; white-space: nowrap;
    transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--iris); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(20,18,58,.2); }
.btn-primary:hover { background: var(--iris-strong); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), var(--shadow-iris); transform: translateY(-1px); }
.btn-accent { background: var(--ink); color: #fff; }
.btn-accent:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--iris); color: var(--iris); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: var(--canvas-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--iris-soft); color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #b92c32; color: #fff; }
.btn-sm { padding: .55rem .85rem; font-size: .86rem; border-radius: 9px; }
.btn-lg { padding: 1rem 1.5rem; font-size: 1.02rem; border-radius: 12px; }
.btn-block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--iris); cursor: pointer; }

/* ---------- announcement + impersonation ---------- */
.announce { background: var(--ink); color: #dcdaf7; font-size: .88rem; text-align: center; padding: .5rem 1rem; }
.announce a { color: #fff; text-decoration: underline; }
.impersonation-bar { background: linear-gradient(90deg, #ff8a3d, #ff5f6d); color: #fff; padding: .6rem 0; font-size: .92rem; position: sticky; top: 0; z-index: 60; }
.impersonation-bar strong { font-weight: 700; }

/* ---------- header ---------- */
.site-header { background: rgba(255, 255, 255, .72); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent; position: sticky; top: 0; z-index: 50; transition: border-color .25s, box-shadow .25s, background .25s; }
.site-header.scrolled { background: rgba(255, 255, 255, .88); border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px rgba(20, 18, 58, .35); }
.site-header nav { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); user-select: none; text-decoration: none !important; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex: none; transition: transform .35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1; }
.brand-name small { display: block; font-family: var(--font); font-size: .74rem; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: .2rem; }
.brand.pulse .brand-mark { animation: pulse .35s ease; }
@keyframes pulse { 50% { transform: scale(.85) rotate(-12deg); } }
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a:not(.btn) { position: relative; display: block; padding: .5rem .8rem; border-radius: 8px; color: var(--ink-soft); font-weight: 500; font-size: .95rem; text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--canvas-2); }
.nav-links a.active:not(.btn) { color: var(--ink); font-weight: 600; }
.nav-links a.active:not(.btn)::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--iris); }
.nav-links .sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 .5rem; }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: .35rem .65rem; font-size: 1.25rem; cursor: pointer; color: var(--ink); }
.user-menu { position: relative; }
.user-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .25rem .7rem .25rem .25rem; cursor: pointer; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink); }
.user-chip:hover { border-color: var(--iris); }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .78rem; flex: none;
    background: linear-gradient(135deg, var(--iris), #8f7dff); }
.avatar.lg { width: 48px; height: 48px; font-size: 1.05rem; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: .4rem; z-index: 70; animation: drop .18s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .75rem; border-radius: 8px; color: var(--ink); background: none; border: 0; font: inherit; font-size: .93rem; cursor: pointer; text-align: left; text-decoration: none; }
.dropdown a:hover, .dropdown button:hover { background: var(--iris-soft); color: var(--iris-strong); }
.dropdown .head { padding: .5rem .75rem .6rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; font-size: .85rem; }
.dropdown hr { margin: .3rem 0; }
.btn-admin-entry { animation: pop .4s var(--ease); }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (max-width: 880px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; position: absolute; left: 0; right: 0; top: 70px; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; gap: .2rem; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-links .sep, .nav-links a.active:not(.btn)::after { display: none; }
    .dropdown { position: static; box-shadow: none; margin-top: .4rem; }
}

/* =====================================================================
   HERO - dark ink panel with the live dot grid (canvas) behind it
   ===================================================================== */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #e4e2ff; padding: 6rem 0 5.5rem; isolation: isolate; }
.hero::before { /* soft light source behind the content */
    content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; z-index: -1;
    background: radial-gradient(closest-side, rgba(91, 75, 255, .45), transparent 70%); filter: blur(10px);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; background: linear-gradient(transparent, rgba(20, 18, 58, .9)); }
.hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.hero .eyebrow { color: #b9b1ff; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1.02; letter-spacing: -.035em; margin: 1.1rem 0 1.25rem; font-weight: 800; }
.hero .lead { max-width: 560px; color: #c9c6ee; font-size: 1.18rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2.25rem; font-size: .9rem; color: #a7a3d6; }
.hero-note span { display: inline-flex; align-items: center; gap: .45rem; }
.hero-note i { color: #8ff0cf; }
.rotator { display: inline-grid; vertical-align: bottom; height: 1.6em; overflow: hidden; }
.rotator > span { grid-area: 1 / 1; color: #fff; font-weight: 600; transform: translateY(110%); opacity: 0; transition: transform .55s var(--ease), opacity .55s; }
.rotator > span.on { transform: none; opacity: 1; }
.rotator > span.out { transform: translateY(-110%); opacity: 0; }
.hero-built { margin: 0; color: #a7a3d6; font-size: 1rem; }

/* Product window mock on the right; tilts gently with the pointer */
.hero-art { position: relative; perspective: 1200px; }
.window { position: relative; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transform-style: preserve-3d; transition: transform .25s ease-out; }
.window-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: #a7a3d6; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.window-bar i:nth-child(1) { background: #ff6b6b; } .window-bar i:nth-child(2) { background: var(--sun); } .window-bar i:nth-child(3) { background: #3ddc97; }
.window-bar span { margin-left: .6rem; font-family: var(--mono); }
.window-body { padding: 1.25rem 1.35rem 1.4rem; color: #e4e2ff; }
.window-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #fff; display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.window .chip { font-family: var(--font); font-size: .72rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: rgba(143,240,207,.15); color: #8ff0cf; }
.meter { display: grid; grid-template-columns: 1fr 120px 34px; gap: .75rem; align-items: center; font-size: .82rem; color: #c9c6ee; margin-bottom: .7rem; }
.meter b { display: block; height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter b::after { content: ""; display: block; height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, var(--iris), #9b8cff);
    transform-origin: 0 50%; animation: fill 1.4s var(--ease) both; animation-delay: var(--d, .2s); }
.meter em { font-style: normal; font-family: var(--mono); font-size: .76rem; color: #fff; text-align: right; }
@keyframes fill { from { transform: scaleX(0); } }
.float-card { position: absolute; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0,0,0,.55); padding: .8rem 1rem; font-size: .82rem; display: flex; align-items: center; gap: .7rem; }
.float-card i.bi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; flex: none; }
.float-card strong { display: block; font-size: .88rem; }
.float-a { left: -12%; bottom: -24%; animation: bob 6s ease-in-out infinite; }
.float-a i.bi { background: var(--mint-soft); color: var(--mint); }
.float-b { right: -6%; top: -9%; animation: bob 7s ease-in-out -2s infinite; }
.float-b i.bi { background: var(--iris-soft); color: var(--iris); }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } .hero-art { display: none; } .hero { padding: 4rem 0; } }

/* ---------- inner page header: same dark ink + dot grid, quieter ---------- */
.page-head { position: relative; overflow: hidden; padding: 3.75rem 0 3rem; background: var(--ink); color: #c9c6ee; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: radial-gradient(rgba(185, 177, 255, .35) 1px, transparent 1.2px); background-size: 22px 22px;
    mask-image: linear-gradient(100deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 75%); }
.page-head::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; z-index: -1; background: radial-gradient(closest-side, rgba(91,75,255,.4), transparent); }
.page-head h1 { color: #fff; margin-top: .7rem; max-width: 840px; }
.page-head .lead { max-width: 700px; margin-bottom: 0; color: #c9c6ee; }
.page-head .eyebrow { color: #b9b1ff; }
.page-head .badge { background: rgba(255,255,255,.1); color: #e4e2ff; }
.page-head .badge-forest { background: rgba(143,240,207,.14); color: #8ff0cf; }
.page-head .badge-warn { background: rgba(255,194,61,.18); color: var(--sun); }
.breadcrumbs { font-size: .88rem; color: #a7a3d6; }
.breadcrumbs a { color: #d9d5ff; }

/* ---------- cards ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.card-header h2, .card-header h3 { margin: 0; }
.card.flat { box-shadow: none; }
.card.tint { background: linear-gradient(160deg, var(--iris-soft), #f7f6ff 70%); border-color: #dedaff; }

/* Pointer spotlight (set by site.js on [data-spot]): a soft glow that follows the cursor */
[data-spot] { --mx: 50%; --my: 50%; }
[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent, var(--iris)) 14%, transparent), transparent 45%); }
[data-spot]:hover::before { opacity: 1; }

.service { padding: 1.9rem; overflow: hidden; }
.service .ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 1.35rem; margin-bottom: 1.1rem;
    background: var(--iris-soft); color: var(--iris); }
.service:nth-child(2) .ico { background: var(--mint-soft); color: var(--mint); }
.service:nth-child(3) .ico { background: var(--sun-soft); color: var(--warn); }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--ink-soft); margin: 0; font-size: .97rem; }
.service .num { display: none; }

/* Catalog card */
.item-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
    color: inherit; text-decoration: none !important; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.item-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent, var(--iris)) 45%, var(--line)); color: inherit; }
.item-card .top { position: absolute; inset: 0 0 auto 0; height: 110px; pointer-events: none;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent, var(--iris)) 12%, transparent), transparent); }
.item-card .body { position: relative; padding: 1.5rem 1.5rem 1.15rem; display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.item-card .icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: var(--accent, var(--iris));
    box-shadow: 0 10px 22px -10px var(--accent, var(--iris)); transition: transform .4s var(--ease); }
.item-card:hover .icon { transform: rotate(-6deg) scale(1.06); }
.item-card h3 { margin: .25rem 0 0; font-size: 1.2rem; }
.item-card h3 a { color: inherit; }
.item-card p { margin: 0; color: var(--ink-soft); font-size: .94rem; }
.item-card .meta { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: auto; padding-top: .5rem; }
.item-card .foot { position: relative; border-top: 1px solid var(--line); padding: .85rem 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--muted); background: #fcfcff; }
.item-card .foot .go { color: var(--iris); font-weight: 600; display: inline-flex; gap: .35rem; align-items: center; }
.item-card .foot .go i { transition: transform .3s var(--ease); }
.item-card:hover .foot .go i { transform: translateX(4px); }

.empty-state { text-align: center; padding: 3rem 1.5rem; border: 1.5px dashed var(--line-strong); border-radius: var(--r); color: var(--muted); background: var(--surface); }
.empty-state i { font-size: 2rem; color: #c3c0f5; display: block; margin-bottom: .5rem; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 6px; background: var(--canvas-2); color: var(--ink-soft); white-space: nowrap; line-height: 1.4; }
.badge-good { background: var(--good-soft); color: var(--good); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-forest { background: var(--iris-soft); color: var(--iris-strong); }
.badge-clay { background: var(--mint-soft); color: #0b8566; }
.badge-plum { background: var(--plum-soft); color: var(--plum); }
.badge-sky { background: var(--sky-soft); color: var(--sky); }
.badge-outline { background: transparent; border: 1px solid var(--line-strong); }

/* ---------- alerts ---------- */
.alert { padding: .9rem 1.1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid; font-size: .95rem; }
.alert-success { background: var(--good-soft); border-color: #b5e8d6; color: #0b6a4b; }
.alert-error { background: var(--bad-soft); border-color: #f6c3c5; color: #a3262c; }
.alert-info { background: var(--iris-soft); border-color: #d6d1ff; color: #3a2fb3; }
.alert-warn { background: var(--warn-soft); border-color: #f5dba6; color: #855107; }
.alert ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.validation-summary-valid { display: none; }
.flash-wrap { padding-top: 1.25rem; }

/* ---------- forms ---------- */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--ink); }
label.inline { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=tel], input[type=number], input[type=date], input:not([type]), select, textarea {
    width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
    border: 1px solid var(--line-strong); border-radius: 10px; padding: .7rem .85rem;
    box-shadow: inset 0 1px 2px rgba(20, 18, 58, .04); transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover, textarea:hover { border-color: #b9bcd4; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 4px rgba(91, 75, 255, .15); }
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; accent-color: var(--iris); }
input[type=color] { width: 54px; height: 42px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; cursor: pointer; }
input[type=file] { font: inherit; font-size: .9rem; }
textarea { min-height: 120px; resize: vertical; }
.hint { font-size: .82rem; color: var(--muted); margin-top: .3rem; }
.field-validation-error, span[data-valmsg-for] { color: var(--bad); font-size: .84rem; display: block; margin-top: .25rem; }
.input-validation-error { border-color: var(--bad) !important; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.8rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .4rem; cursor: pointer; color: var(--muted); font-size: 1.05rem; }
.otp-input { font-family: var(--mono); font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; }
.turnstile-box { min-height: 65px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- auth pages: card floating over a faint dot grid ---------- */
.auth-wrap { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: 3rem 1.25rem; position: relative; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(#d5d2f7 1px, transparent 1.2px); background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); }
.auth-card { width: 100%; max-width: 440px; padding: 2.25rem; box-shadow: var(--shadow); }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.9rem; }
.auth-alt { text-align: center; margin-top: 1.25rem; font-size: .92rem; color: var(--muted); }
.auth-steps { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.25rem; }
.auth-steps span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; background: var(--canvas-2); color: var(--muted); }
.auth-steps span.active { background: var(--iris); color: #fff; box-shadow: var(--shadow-iris); }
.auth-steps span.done { background: var(--iris-soft); color: var(--iris); }
.auth-steps i { flex: 0 0 28px; height: 2px; background: var(--line); }
.auth-steps i.done { background: var(--iris); }
.who-chip { display: flex; align-items: center; gap: .6rem; background: var(--canvas-2); border-radius: 999px; padding: .35rem .9rem .35rem .35rem; margin: .5rem 0 1.25rem; font-size: .92rem; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: var(--iris-soft); color: var(--iris); }

/* ---------- detail pages ---------- */
.detail-head { display: flex; gap: 1.25rem; align-items: flex-start; }
.detail-head .icon { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; font-size: 2.1rem; color: #fff; flex: none;
    box-shadow: 0 20px 40px -18px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.prose { font-size: 1.04rem; color: var(--ink-soft); }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose h2, .prose h3 { margin-top: 1.75rem; color: var(--ink); }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: var(--r-sm); border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1.25rem; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.release { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.release:first-child { border-top: 0; padding-top: 0; }
.hash { font-family: var(--mono); font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.screenshot { border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); width: 100%; margin-bottom: 1.5rem; }
.sticky { position: sticky; top: 92px; }

/* ---------- home sections ---------- */
.band { position: relative; overflow: hidden; background: var(--ink); color: #c9c6ee; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4; background-image: radial-gradient(rgba(185,177,255,.35) 1px, transparent 1.2px); background-size: 22px 22px; }
.band h2, .band h3 { color: #fff; }
.band .muted, .band p { color: #c9c6ee; }
.band .eyebrow { color: #b9b1ff; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; position: relative; }
.steps li { list-style: none; position: relative; padding: 1.5rem; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 1rem;
    font-family: var(--display); font-weight: 700; color: #fff; background: var(--iris); box-shadow: var(--shadow-iris); }
.steps h3 { font-size: 1.12rem; }
.steps p { font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.cta { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 3.25rem; display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center; isolation: isolate;
    background: linear-gradient(120deg, var(--iris) 0%, #7a5cff 45%, #3f8cff 100%); color: #fff; box-shadow: var(--shadow-iris); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.6) 1px, transparent 1.2px); background-size: 20px 20px;
    mask-image: linear-gradient(90deg, transparent 30%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); }
.cta h2 { margin: 0 0 .5rem; color: #fff; }
.cta .muted { color: #e7e4ff; }
.cta .actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-accent { background: #fff; color: var(--ink); }
.cta .btn-accent:hover { background: var(--iris-soft); }
.cta .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; }
.cta .btn-secondary:hover { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; padding: 2rem; } .cta .actions { justify-content: flex-start; } }
.quote { font-family: var(--display); font-size: 1.45rem; line-height: 1.35; color: var(--ink); border-left: 3px solid var(--iris); padding-left: 1.25rem; margin: 0; }
.founder { display: flex; align-items: center; gap: .9rem; margin-top: 1.25rem; }

/* Audience strip: a slow marquee (pauses on hover) */
.audience { display: flex; flex-wrap: wrap; gap: .5rem; }
.audience span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-size: .92rem; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }
.audience i { color: var(--iris); margin-right: .35rem; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .audience { flex-wrap: nowrap; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .audience { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.filters-bar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.75rem; }
.chip-link { display: inline-block; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); font-size: .88rem; font-weight: 500; background: var(--surface); text-decoration: none !important; transition: all .2s; }
.chip-link:hover { border-color: var(--iris); color: var(--iris); }
.chip-link.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .8rem; color: var(--muted); font-weight: 600; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #fafbff; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: #f8f7ff; }
.table .empty { text-align: center; color: var(--muted); padding: 2rem; }
.table th.right, .table td.right { text-align: right; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--ink); color: #a7a3d6; padding: 4rem 0 1.5rem; font-size: .93rem; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: -40%; width: 80%; height: 90%; transform: translateX(-50%); z-index: -1; background: radial-gradient(closest-side, rgba(91,75,255,.28), transparent); }
.site-footer a { color: #e4e2ff; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-name small { color: #8d89c4; }
.footer-brand p { margin-top: 1rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.75rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: #8d89c4; }
.social { display: flex; gap: .5rem; margin-top: 1rem; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); transition: background .2s, transform .2s; }
.social a:hover { background: var(--iris); transform: translateY(-2px); text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- portal ---------- */
.welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; padding: 2rem; border-radius: var(--r-lg);
    background: radial-gradient(600px 220px at 85% 0%, rgba(91,75,255,.18), transparent), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.welcome h1 { margin: .4rem 0 .2rem; }
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat b { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1; }
.stat span { font-size: .85rem; color: var(--muted); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.list-plain li:last-child { border-bottom: 0; }

/* ---------- 2FA wizard / recovery codes ---------- */
.wizard { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0; flex-wrap: wrap; }
.wizard li { display: flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: var(--canvas-2); color: var(--muted); font-weight: 600; font-size: .86rem; }
.wizard li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: .75rem; }
.wizard li.active { background: var(--iris); color: #fff; }
.wizard li.active span { color: var(--iris); }
.wizard li.done { background: var(--iris-soft); color: var(--iris); }
.qr { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.credential-box { font-family: var(--mono); background: var(--canvas-2); border: 1px dashed var(--line-strong); border-radius: 8px; padding: .65rem .85rem; font-size: 1rem; overflow-wrap: anywhere; user-select: all; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; max-width: 420px; }
.recovery-codes code { display: block; text-align: center; padding: .45rem; font-size: .95rem; }
.shake { animation: shake .4s; color: var(--bad); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- dialogs & toast ---------- */
dialog.modal { border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; width: min(520px, 94vw); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.modal[open] { animation: drop .2s var(--ease); }
dialog.modal::backdrop { background: rgba(20, 18, 58, .5); backdrop-filter: blur(3px); }
.toast { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 100; padding: .85rem 1.15rem; border-radius: 12px; color: #fff; font-weight: 500; box-shadow: var(--shadow); max-width: 420px; font-size: .93rem; animation: drop .2s var(--ease); }
.toast-ok { background: var(--ink); }
.toast-error { background: var(--bad); }
.pager { display: flex; justify-content: flex-end; align-items: center; gap: .6rem; margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* ---------- reveal on scroll (one orchestrated entrance per section group) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .window { transform: none; }
}
@media print {
    .site-header, .site-footer, .impersonation-bar, .announce, .btn, .wizard, .scroll-progress { display: none !important; }
    body { background: #fff; }
}

/* =====================================================================
   ADMIN DASHBOARD - light top bar, white rail, iris accents
   ===================================================================== */
.admin-body { background: var(--canvas); }
.admin-topbar { background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); height: 64px; display: flex; align-items: center; gap: 1rem; padding: 0 1.25rem; position: sticky; top: 0; z-index: 40; }
.admin-topbar .brand { color: var(--ink); }
.admin-topbar .brand-mark { width: 32px; height: 32px; }
.admin-topbar .brand-name { font-size: 1.05rem; }
.admin-topbar .tag { font-size: .75rem; font-weight: 600; background: var(--iris-soft); color: var(--iris-strong); padding: .25rem .6rem; border-radius: 6px; }
.admin-topbar .spacer { flex: 1; }
.admin-topbar a.top-link { color: var(--ink-soft); font-size: .9rem; font-weight: 500; display: inline-flex; align-items: center; gap: .35rem; }
.admin-topbar a.top-link:hover { color: var(--iris); }
.admin-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.admin-side { background: var(--surface); border-right: 1px solid var(--line); padding: 1.25rem .9rem; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.admin-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.admin-nav .group { font-size: .78rem; font-weight: 600; color: var(--muted); padding: 1.1rem .75rem .35rem; }
.admin-nav a { position: relative; display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; border-radius: 9px; color: var(--ink-soft); font-weight: 500; font-size: .93rem; text-decoration: none; transition: background .15s, color .15s; }
.admin-nav a i { font-size: 1.05rem; color: var(--muted); transition: color .15s; }
.admin-nav a:hover { background: var(--canvas-2); color: var(--ink); }
.admin-nav a.active { background: var(--iris-soft); color: var(--iris-strong); font-weight: 600; }
.admin-nav a.active i { color: var(--iris); }
.admin-nav a.active::before { content: ""; position: absolute; left: -.9rem; top: 20%; bottom: 20%; width: 3px; border-radius: 0 3px 3px 0; background: var(--iris); }
.admin-nav .count { margin-left: auto; background: var(--iris); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .05rem .45rem; }
.role-card { background: linear-gradient(160deg, var(--iris-soft), #fff); border: 1px solid #e0dcff; border-radius: 12px; padding: .8rem .9rem; font-size: .84rem; margin-bottom: .5rem; }
.role-card strong { display: block; margin-bottom: .2rem; }
.admin-main { padding: 2rem 2.25rem 3rem; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.admin-top h1 { font-size: 2rem; margin: .3rem 0 0; }
.admin-top p { margin: .3rem 0 0; }
.admin-burger { display: none; }
@media (max-width: 900px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: fixed; left: 0; top: 64px; bottom: 0; width: 272px; z-index: 45; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow); }
    .admin-side.open { transform: none; }
    .admin-burger { display: inline-flex; margin-bottom: 1rem; }
    .admin-main { padding: 1.25rem; }
    .admin-topbar .hide-sm { display: none; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.kpi { position: relative; overflow: hidden; display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.15rem 1.25rem; color: inherit; text-decoration: none !important; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.kpi::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--k, var(--iris)); opacity: .1; transition: transform .4s var(--ease); }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.kpi:hover::after { transform: scale(1.6); }
.kpi .label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.kpi .value { font-family: var(--display); font-size: 2.1rem; font-weight: 700; line-height: 1.1; margin-top: .3rem; color: var(--ink); }
.kpi .sub { font-size: .82rem; color: var(--muted); }
.chart-box { position: relative; height: 260px; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tabs a { padding: .7rem 1rem; color: var(--ink-soft); font-weight: 500; font-size: .93rem; border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--iris-strong); border-bottom-color: var(--iris); font-weight: 600; }
.tabs .count { font-size: .75rem; background: var(--canvas-2); border-radius: 999px; padding: .05rem .45rem; margin-left: .3rem; color: var(--muted); }
.filters { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-bottom: 1rem; }
.filters .form-group { margin: 0; min-width: 180px; }
.filters label { font-size: .8rem; }
.icon-group { display: inline-flex; gap: .25rem; justify-content: flex-end; align-items: center; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft); cursor: pointer; font-size: .95rem; text-decoration: none !important; transition: all .15s; }
.icon-btn:hover { border-color: var(--iris); color: var(--iris); background: var(--iris-soft); }
.icon-btn.icon-clay { color: var(--mint); }
.icon-btn.icon-plum { color: var(--plum); }
.icon-btn.icon-gold { color: var(--warn); }
.icon-btn.icon-good { color: var(--good); }
.icon-btn.danger:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.more-wrap { position: relative; display: inline-block; }
.more-menu { position: absolute; right: 0; top: calc(100% + 4px); min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .35rem; z-index: 30; text-align: left; animation: drop .15s var(--ease); }
.more-menu button, .more-menu a { display: flex; gap: .5rem; align-items: center; width: 100%; padding: .5rem .7rem; border: 0; background: none; font: inherit; font-size: .9rem; border-radius: 8px; cursor: pointer; color: var(--ink); text-align: left; text-decoration: none; }
.more-menu button:hover, .more-menu a:hover { background: var(--iris-soft); }
.more-menu .danger { color: var(--bad); }
.more-menu hr { margin: .3rem 0; }
.user-cell { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none !important; }
.user-cell:hover { color: var(--iris); }
.dt-card { padding: 1rem 1.25rem; }
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.spin { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--r); padding: 1.75rem; text-align: center; background: #fafbff; transition: border-color .2s, background .2s, transform .2s; }
.drop.over { border-color: var(--iris); background: var(--iris-soft); transform: scale(1.01); }
.progress { height: 8px; background: var(--canvas-2); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--iris), #9b8cff); width: 0; transition: width .3s var(--ease); }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: -2px; border: 1px solid rgba(0,0,0,.1); }
.msg-unread td { font-weight: 600; }
.msg-body { white-space: pre-wrap; background: #fafbff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; font-size: .97rem; }
.picker-results { border: 1px solid var(--line); border-radius: 10px; max-height: 260px; overflow-y: auto; margin-top: .5rem; background: #fff; box-shadow: var(--shadow); }
.picker-results button { display: flex; width: 100%; justify-content: space-between; gap: .5rem; padding: .55rem .8rem; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.picker-results button:hover { background: var(--iris-soft); }
.picker-results button:last-child { border-bottom: 0; }

/* DataTables */
.dt-container .dt-search input { border-radius: 10px !important; padding: .5rem .9rem !important; min-width: 280px; border: 1px solid var(--line-strong) !important; background: #fff; }
.dt-container .dt-length select { width: auto; padding: .35rem .5rem; }
.dt-container .dt-paging .dt-paging-button.current, .dt-container .dt-paging .dt-paging-button.current:hover { background: var(--iris) !important; color: #fff !important; border-color: var(--iris) !important; border-radius: 8px; }
.dt-container .dt-paging .dt-paging-button { border-radius: 8px; }
table.dataTable > thead > tr > th { background: #fafbff; }
