/* Minubia Demo Hub. Steady, grounded, precise: navy and blue, teal for warmth, generous space, big targets. */

:root {
  --blue: #0047FF; --navy: #01022E; --teal: #08A890; --yellow: #FFB930; --red: #DC0000;
  --bg: #F8FAFF; --ink: #0D0F1F; --muted: #6E6F7A; --line: #E7EAF3; --tint: #EAF0FF;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-up: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 32px rgba(1, 2, 46, 0.06);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
h1, h2, h3 { font-family: 'Inter', system-ui, sans-serif; color: var(--navy); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
.icon { flex: none; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.boot { padding: 80px 24px; text-align: center; color: var(--muted); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 100px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── Header ─────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { width: min(var(--wrap), 100% - 48px); margin-inline: auto; height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo { height: 44px; width: auto; display: block; }
.brand-sep { width: 1px; height: 30px; background: var(--line); margin: 0 2px; }
.brand-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--navy); }
.nav { display: flex; gap: 6px; margin-left: 8px; }
.nav a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 100px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 16px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.nav a:hover { background: var(--tint); color: var(--blue); }
.nav a.on { background: var(--navy); color: #fff; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--blue); font-weight: 700; font-family: 'Inter', sans-serif; display: grid; place-items: center; font-size: 14px; }
.who-text { display: grid; line-height: 1.25; }
.who-text b { font-size: 14px; color: var(--navy); }
.who-text small { color: var(--muted); font-size: 13px; }
.signout { border: 1px solid var(--line); background: #fff; color: var(--ink); min-height: 40px; padding: 0 16px; border-radius: 100px; font-weight: 600; font-size: 14px; transition: border-color 0.2s var(--ease); }
.signout:hover { border-color: var(--blue); color: var(--blue); }

/* ── Hero ───────────────────────────────────────── */
.hero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(900px 420px at 88% -20%, rgba(0, 71, 255, 0.65), transparent 62%),
  radial-gradient(700px 360px at -5% 120%, rgba(8, 168, 144, 0.38), transparent 60%),
  var(--navy); padding: 84px 0 196px; }
.hero.slim { padding: 64px 0 72px; }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-in { position: relative; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(40px, 6vw, 68px); margin-top: 10px; max-width: none; }
.hero-in { max-width: 740px; margin-left: max(24px, calc((100% - var(--wrap)) / 2)); margin-right: 0; width: auto; }
.hero.slim h1 { font-size: clamp(34px, 4.6vw, 52px); }
.lede { margin-top: 18px; font-size: 20px; max-width: 58ch; color: rgba(255, 255, 255, 0.82); }
.lede.dark { color: var(--muted); font-size: 18px; margin-top: 10px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); font-family: 'DM Sans', sans-serif; }
.eyebrow.light { color: #7FE3D3; }

/* ── Doors: the two big choices ─────────────────── */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -92px; position: relative; z-index: 2; }
.door { display: flex; flex-direction: column; background: #fff; border-radius: 22px; padding: 36px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-up); min-height: 280px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.door:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 28px 48px rgba(1, 2, 46, 0.12); border-color: #C7D6FF; }
.door-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--tint); color: var(--blue); }
.door-icon.alt { background: #E3F6F2; color: #067A68; }
.door h2 { font-size: 34px; font-weight: 800; margin-top: 26px; }
.door p { color: var(--muted); font-size: 18px; margin-top: 10px; max-width: 34ch; }
.door-foot { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; color: var(--navy); }
.go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.go .icon { transition: transform 0.25s var(--ease); }
.go.big { font-size: 18px; }
.door:hover .go .icon, .card:hover .go .icon, .tile:hover .go .icon { transform: translateX(4px); }

/* ── Sections ───────────────────────────────────── */
.band { padding: 64px 0 24px; }
.band.tight { padding-top: 12px; }
.band-head { margin-bottom: 24px; }
.band-head h2 { font-size: 28px; font-weight: 800; }
.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin-top: 8px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; margin-bottom: 14px; min-height: 40px; }

/* ── Cards ──────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: #C7D6FF; }
.thumb { position: relative; height: 150px; overflow: hidden; background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; display: grid; place-items: center; }
.thumb-glyph { position: relative; z-index: 2; width: 78px; height: 78px; border-radius: 22px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); display: grid; place-items: center; backdrop-filter: blur(4px); }
.thumb-ring { position: absolute; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; }
.thumb-ring.r1 { width: 220px; height: 220px; right: -60px; top: -90px; }
.thumb-ring.r2 { width: 150px; height: 150px; left: -50px; bottom: -70px; }
.thumb-time { position: absolute; right: 12px; bottom: 12px; z-index: 2; font-size: 13px; font-weight: 600; background: rgba(1, 2, 46, 0.55); padding: 3px 10px; border-radius: 100px; }
.card-body { padding: 20px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 11px; border-radius: 100px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.k-blue { background: var(--tint); color: var(--blue); }
.k-teal { background: #E3F6F2; color: #067A68; }
.k-navy { background: #E6E7F2; color: var(--navy); }
.k-grey { background: #F1F2F7; color: var(--muted); }
.k-draft { background: #FFF6E5; color: #8A5A00; }
.card h3 { font-size: 19px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.card-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }

/* ── Company tiles ──────────────────────────────── */
.tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 210px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: #C7D6FF; }
.tile-avatar { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; display: grid; place-items: center; font: 800 20px 'Inter', sans-serif; }
.tile h3 { font-size: 21px; font-weight: 700; margin-top: 18px; }
.tile p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.tile .go { margin-top: auto; padding-top: 18px; }

/* ── Filters ────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { min-height: 46px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; transition: all 0.2s var(--ease); }
.chip small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.on small { color: #9DB8FF; }
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; min-height: 44px; cursor: pointer; font-weight: 500; }
.switch input { width: 22px; height: 22px; accent-color: var(--blue); }
.switch small { color: var(--muted); }

/* ── Empty states ───────────────────────────────── */
.empty { background: #fff; border: 1px dashed #C9D3EE; border-radius: 20px; padding: 56px 24px; text-align: center; }
.empty-art { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.empty h3 { font-size: 22px; font-weight: 700; }
.empty p { color: var(--muted); margin: 8px auto 0; max-width: 46ch; }

/* ── Viewer ─────────────────────────────────────── */
body.is-viewer { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
body.is-viewer #app { display: flex; flex-direction: column; flex: 1; min-height: 0; }
body.is-viewer #main { flex: 1; min-height: 0; display: flex; }
.viewer { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.viewer-bar { display: flex; align-items: center; gap: 14px; padding: 10px 24px; background: var(--navy); color: #fff; }
.vtitle { display: grid; line-height: 1.25; margin-right: auto; }
.vtitle b { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; }
.vtitle small { color: #9DB8FF; font-size: 13px; }
.vbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 100px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: background 0.2s var(--ease); }
.vbtn:hover { background: rgba(255, 255, 255, 0.2); }
#frame { flex: 1; width: 100%; border: 0; background: #fff; display: block; }
.stage { flex: 1; min-height: 0; display: flex; background: #fff; }
body.is-viewer .top { position: static; }

/* ── Footer and preview ─────────────────────────── */
.foot { padding: 56px 0 96px; color: var(--muted); font-size: 14px; }
.preview { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--navy); color: #fff; padding: 8px 10px 8px 16px; border-radius: 100px; box-shadow: var(--shadow-up); font-size: 13px; max-width: calc(100vw - 32px); }
.preview span { color: #9DB8FF; font-weight: 600; margin-right: 4px; }
.preview button { min-height: 34px; padding: 0 14px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #fff; font-weight: 600; font-size: 13px; }
.preview button:hover { background: rgba(255, 255, 255, 0.14); }
.preview button.on { background: #fff; color: var(--navy); border-color: #fff; }
.login .preview { position: static; background: #F1F2F7; color: var(--ink); box-shadow: none; margin-top: 28px; border-radius: 18px; padding: 14px; }
.login .preview span { color: var(--muted); width: 100%; margin: 0 0 4px; }
.login .preview button { color: var(--ink); border-color: var(--line); background: #fff; }
.login .preview button.on { background: var(--navy); color: #fff; }

/* ── Login ──────────────────────────────────────── */
body.is-login { background: #fff; }
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login-art { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(760px 420px at 100% 0%, rgba(0, 71, 255, 0.7), transparent 62%),
  radial-gradient(600px 380px at 0% 100%, rgba(8, 168, 144, 0.42), transparent 60%),
  var(--navy); display: flex; align-items: center; padding: 64px; }
.login-art::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1.4px); background-size: 28px 28px; mask-image: linear-gradient(135deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(135deg, #000, transparent 75%); }
.login-art-in { position: relative; max-width: 520px; }
.login-art h1 { color: #fff; font-size: clamp(36px, 4.4vw, 56px); font-weight: 800; margin-top: 12px; }
.login-logo { display: block; width: 230px; height: auto; margin-bottom: 36px; }
.login-points { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.login-points li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: rgba(255, 255, 255, 0.9); }
.login-points li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: rgba(8, 168, 144, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FE3D3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; flex: none; }
.login-form { display: grid; place-items: center; padding: 48px 32px; background: var(--bg); }
.form { width: min(420px, 100%); }
.form h2 { font-size: 34px; font-weight: 800; }
.form .muted { margin: 8px 0 28px; }
.form label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; color: var(--navy); }
.form input { width: 100%; height: 52px; padding: 0 16px; border-radius: 10px; border: 1px solid #D5DBEB; background: #fff; font: inherit; color: var(--ink); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 71, 255, 0.14); }
.form-msg { min-height: 24px; margin-top: 14px; color: #B42318; font-size: 15px; }
.btn-primary { width: 100%; height: 54px; margin-top: 6px; border: 0; border-radius: 100px; background: var(--blue); color: #fff; font-weight: 700; font-size: 17px; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 71, 255, 0.28); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.form .small { margin-top: 20px; }

/* ── Motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .hero-in > * { animation: rise 0.6s var(--ease) both; }
  .hero-in > :nth-child(2) { animation-delay: 80ms; }
  .hero-in > :nth-child(3) { animation-delay: 160ms; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }

/* ── Small screens ──────────────────────────────── */
@media (max-width: 900px) {
  .doors { grid-template-columns: 1fr; margin-top: -80px; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 40px 28px; min-height: 340px; }
  .who-text { display: none; }
}
@media (max-width: 640px) {
  .top-in { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 10px 16px; }
  .nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .logo { height: 38px; }
  .brand-name { font-size: 16px; }
  .hero { padding: 56px 0 120px; }
  .viewer-bar { flex-wrap: wrap; padding: 10px 14px; }
  .door { padding: 28px; }
}

/* ── Hero showcase: decorative product windows ──── */
.hero-art { position: absolute; right: max(24px, calc((100% - var(--wrap)) / 2)); top: 44px; width: 470px; height: 318px; z-index: 1; pointer-events: none; }
.win { position: absolute; background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 18px; backdrop-filter: blur(8px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); overflow: hidden; }
.wbar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.wbar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); }
.wbody { padding: 16px 18px; }
.w1 { top: 0; right: 0; width: 360px; height: 214px; }
.w1 .l1 { display: block; height: 16px; width: 62%; border-radius: 8px; background: rgba(255, 255, 255, 0.85); }
.w1 .l2 { display: block; height: 10px; width: 82%; border-radius: 6px; background: rgba(255, 255, 255, 0.35); margin-top: 12px; }
.wgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.wgrid span { height: 64px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); }
.wgrid span:first-child { background: rgba(8, 168, 144, 0.55); }
.w2 { bottom: 0; left: 0; width: 230px; height: 150px; }
.wbars { display: flex; align-items: flex-end; gap: 10px; height: 82px; }
.wbars span { flex: 1; height: var(--h); border-radius: 7px 7px 2px 2px; background: linear-gradient(180deg, #5D8BFF, rgba(0, 71, 255, 0.5)); }
.w3 { bottom: 24px; right: 36px; width: 190px; }
.wchk { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.wchk:last-child { margin-bottom: 4px; }
.wchk i { width: 18px; height: 18px; border-radius: 6px; background: var(--teal); flex: none; }
.wchk i.off { background: transparent; border: 2px solid rgba(255, 255, 255, 0.35); }
.wchk b { height: 9px; flex: 1; border-radius: 5px; background: rgba(255, 255, 255, 0.4); }
@media (prefers-reduced-motion: no-preference) {
  .win { animation: rise 0.7s var(--ease) both; }
  .w2 { animation-delay: 140ms; } .w3 { animation-delay: 260ms; }
}
@media (max-width: 1100px) { .hero-art { display: none; } .hero-in { margin-left: auto; margin-right: auto; width: min(var(--wrap), 100% - 48px); max-width: none; } }

/* ── Search, groups, notes, publishing ──────────── */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tools-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 28px; }
.tools-row .chips, .tools-row .switch { margin-top: 0; }
.search { position: relative; display: flex; align-items: center; min-width: min(340px, 100%); color: var(--muted); }
.search .icon { position: absolute; left: 16px; pointer-events: none; }
.search input { width: 100%; height: 48px; padding: 0 18px 0 44px; border-radius: 100px; border: 1px solid #D5DBEB; background: #fff; font: inherit; color: var(--ink); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 71, 255, 0.14); }
.group + .group { margin-top: 56px; }
.band-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.band-head .count { color: var(--muted); font-size: 14px; font-weight: 500; }
.group .band-head { margin-bottom: 20px; }
.group .band-head h2 { font-size: 24px; }

.card { position: relative; }
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.card h3 { font-size: 19px; font-weight: 700; }
.card.is-static { background: #FBFCFF; border-style: dashed; }
.card.is-static:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.card.is-static .thumb { filter: grayscale(0.6); opacity: 0.75; }
.card .note { font-size: 13px; color: #6B5200; background: #FFF9EB; border-radius: 10px; padding: 8px 10px; margin-top: 12px; line-height: 1.45; }
.card .note b { color: #8A5A00; }
.card-actions { margin-top: 14px; position: relative; z-index: 2; }
.pub { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--blue); background: #fff; color: var(--blue); font-weight: 600; font-size: 14px; transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.pub:hover:not(:disabled) { background: var(--blue); color: #fff; }
.pub.on { border-color: #BFEBCF; background: #EAFBF0; color: #13803D; }
.pub.on:hover:not(:disabled) { background: #13803D; color: #fff; border-color: #13803D; }
.pub:disabled { border-color: var(--line); color: var(--muted); background: #F8F9FC; cursor: not-allowed; }
.k-wait { background: #F1F2F7; color: var(--muted); }
.k-live { background: #EAFBF0; color: #13803D; }
.k-aud { background: transparent; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.k-aud.a-restricted { border-color: #F4B4B4; color: #B42318; }
.k-aud.a-team { border-color: #D8D9E6; }
.tile.dim { background: #FBFCFF; border-style: dashed; }
.tile-avatar.plain { background: #F1F2F7; color: var(--muted); }

/* ── Viewer: loading, documents ─────────────────── */
.loading { flex: 1; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); padding: 48px; }
.loading .error { color: #B42318; font-size: 18px; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #DCE6FF; border-top-color: var(--blue); }
@media (prefers-reduced-motion: no-preference) { .spin { animation: spin 0.9s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } }
.vdocs { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.dl { flex: 1; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(700px 360px at 90% 0%, rgba(0, 71, 255, 0.08), transparent 60%), radial-gradient(600px 320px at 0% 100%, rgba(8, 168, 144, 0.1), transparent 60%), var(--bg); }
.dl-card { width: min(560px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 44px; box-shadow: var(--shadow-up); text-align: center; }
.dl-icon { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 22px; background: var(--tint); color: var(--blue); display: grid; place-items: center; }
.dl-card h1 { font-size: 28px; font-weight: 800; }
.dl-card p { color: var(--muted); margin-top: 10px; font-size: 17px; }
.dl-files { display: grid; gap: 12px; margin-top: 28px; }
.dl-files .btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 0; padding: 0 22px; height: 56px; }
.dl-files .btn-primary small { font-weight: 500; opacity: 0.8; font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Messages ───────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 90; max-width: min(520px, calc(100vw - 32px)); background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 100px; box-shadow: var(--shadow-up); opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); font-weight: 500; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #7A1212; }
.toast.ok { background: #0B6B4E; }
