/* ============================================================
   CRENO - Planificateur inter-calendrier - AR Digital
   Design system (clair + sombre) - pages publiques (lien).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

/* ---------- TOKENS ---------- */
.creno {
  --accent:      #99ea48;
  --accent-deep: #77b248;
  --on-accent:   #010205;
  --accent-soft: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --accent-glow: color-mix(in srgb, var(--accent) 26%, transparent);

  --bg:        #f1f2ef;
  --surface:   #ffffff;
  --surface-2: #f5f5f3;
  --surface-3: #ececea;
  --border:    #e4e4df;
  --border-2:  #d8d8d4;
  --text:      #010205;
  --text-2:    #5c5d5f;
  --text-3:    #8b9097;
  --shadow-card: 0 1px 2px rgba(1,2,5,.04), 0 6px 20px rgba(1,2,5,.05);
  --shadow-lift: 0 18px 40px rgba(1,2,5,.10);
  --shadow-pop:  0 30px 70px rgba(1,2,5,.22);

  --urgent: #e0533d; --urgent-bg: #fcebe8;
  --warn:   #d99a2b; --warn-bg:   #fff6e5;
  --info:   #3b82d6; --info-bg:   #e8f1fc;
  --busy:   color-mix(in srgb, #5c5d5f 16%, var(--surface));

  --night-grad: linear-gradient(165deg, #05060a 0%, #101521 60%, #0c1118 100%);
  --f-display: 'Manrope', sans-serif;
  --f-text:    'Plus Jakarta Sans', sans-serif;
  --r-xl: 26px; --r-lg: 18px; --r: 13px; --r-sm: 9px; --r-pill: 999px;
}
.creno[data-theme="dark"] {
  --bg:        #060911;
  --surface:   #0e131e;
  --surface-2: #141a28;
  --surface-3: #1b2233;
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.13);
  --text:      #f3f5f7;
  --text-2:    #aeb4bb;
  --text-3:    #6f7783;
  --shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  --shadow-lift: 0 18px 40px rgba(0,0,0,.5);
  --shadow-pop:  0 30px 70px rgba(0,0,0,.6);
  --urgent-bg: rgba(224,83,61,.16);
  --warn-bg:   rgba(217,154,43,.16);
  --info-bg:   rgba(59,130,214,.16);
  --busy:      color-mix(in srgb, #aeb4bb 14%, var(--surface));
}

/* ---------- RESET / BASE ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.creno {
  font-family: var(--f-text);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}
.creno ::selection { background: var(--accent); color: var(--on-accent); }
.creno button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.creno input, .creno textarea, .creno select { font-family: inherit; color: inherit; }
.creno a { color: inherit; text-decoration: none; }
.creno h1, .creno h2, .creno h3, .creno h4 { font-family: var(--f-display); letter-spacing: -.03em; line-height: 1.1; }
.mono, .tnum { font-variant-numeric: tabular-nums; }
.disp { font-family: var(--f-display); letter-spacing: -.02em; }
.muted { color: var(--text-3); }
.t2 { color: var(--text-2); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrapgap { display: flex; flex-wrap: wrap; gap: 10px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 26px; }

/* ---------- TOPBAR ---------- */
.ptop {
  position: sticky; top: 0; z-index: 40;
  height: 64px; display: flex; align-items: center;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.ptop .wrap { display: flex; align-items: center; gap: 14px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.035em; }
.brand .d { color: var(--text-3); font-weight: 700; }
.ptop-sp { margin-left: auto; }
.theme-tog { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: var(--r-pill); color: var(--text-2); font-weight: 700; font-size: .82rem; border: 1px solid var(--border); transition: background .14s, color .14s, border-color .14s; }
.theme-tog:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.theme-tog svg { width: 17px; height: 17px; }

/* ---------- KICKER / BADGE / PILL ---------- */
.kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--r-pill); white-space: nowrap; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--on-accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(.6)} }
.badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .72rem; padding: 4px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.badge.ok { background: var(--accent-soft); color: var(--accent-deep); }
.creno[data-theme="dark"] .badge.ok { color: var(--accent); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.urgent { background: var(--urgent-bg); color: var(--urgent); }
.badge.ghost { background: var(--surface-2); color: var(--text-2); }
.badge .bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- BUTTONS ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-text); font-weight: 800; font-size: .92rem; padding: 12px 22px; border-radius: var(--r-pill); transition: transform .14s, background .2s, box-shadow .2s, border-color .2s, filter .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn.p { background: var(--accent); color: var(--on-accent); box-shadow: 0 7px 20px var(--accent-glow); }
.btn.p:hover { filter: brightness(1.05); }
.btn.p:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn.s { background: var(--surface); color: var(--text); border: 1.5px solid var(--border-2); }
.btn.s:hover { border-color: var(--text); }
.btn.d { background: var(--text); color: var(--surface); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 8px 15px; font-size: .82rem; }
.btn.lg { padding: 15px 30px; font-size: 1rem; }
.btn.block { width: 100%; }

/* ---------- CARDS ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.darkcard { background: var(--night-grad); color: #fff; border-radius: var(--r-xl); position: relative; overflow: hidden; }
.darkcard .glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(153,234,72,.14); filter: blur(24px); right: -130px; top: -130px; pointer-events: none; }
.gridtex { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(120% 90% at 72% 4%, #000 0%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 72% 4%, #000 0%, transparent 72%); }

/* ---------- HERO ---------- */
.hero { margin: 26px 0 30px; }
.hero .darkcard { padding: 50px 52px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 2.85rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.04; margin: 20px 0 16px; max-width: 640px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: #aeb4bb; font-size: 1.06rem; line-height: 1.6; max-width: 560px; }
.hero.compact .darkcard { padding: 38px 44px; }
.hero.compact h1 { font-size: clamp(1.7rem, 3.6vw, 2.2rem); margin: 16px 0 10px; }

/* share row */
.sharerow { display: flex; gap: 10px; margin-top: 26px; max-width: 560px; flex-wrap: wrap; }
.shareinput { flex: 1; min-width: 220px; font-size: .92rem; font-weight: 600; padding: 13px 16px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #fff; }
.shareinput:focus { outline: 0; border-color: var(--accent); }

/* ---------- SECTIONS ---------- */
.sec { margin: 0 0 30px; }
.shead { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.snum { font-family: var(--f-display); font-weight: 800; font-size: .84rem; color: var(--on-accent); background: var(--accent); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.shead h2 { font-size: 1.5rem; font-weight: 800; }
.sdesc { color: var(--text-2); margin: 0 0 18px; max-width: 640px; }

/* ---------- FIELDS ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 700; font-size: .86rem; }
.field .hint { font-size: .78rem; color: var(--text-3); }
.inp, .creno select.inp { width: 100%; font-size: .95rem; padding: 12px 15px; border: 1.5px solid var(--border-2); border-radius: var(--r-sm); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.inp::placeholder { color: var(--text-3); }
.inp:focus { outline: 0; border-color: var(--accent-deep); box-shadow: 0 0 0 4px var(--accent-glow); }
.row-inline { display: flex; gap: 14px; flex-wrap: wrap; }
.row-inline .field { flex: 1; min-width: 150px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: .9rem; color: var(--text-2); margin-top: 16px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent-deep); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: .84rem; transition: background .14s, border-color .14s, color .14s; }
.chip svg { width: 15px; height: 15px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); }
.creno[data-theme="dark"] .chip.on { color: var(--accent); }
.chip.click { cursor: pointer; }
.chip.click:hover { border-color: var(--text-3); }

/* segmented */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 4px; gap: 3px; }
.seg button { padding: 8px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: .84rem; color: var(--text-2); transition: background .14s, color .14s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }
.creno[data-theme="dark"] .seg button.on { background: var(--surface-3); }

/* ---------- PROVIDER CONNECT GATE ---------- */
.gate { padding: 26px; }
.provgrid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
.provcard { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: var(--r-lg); background: var(--surface); transition: border-color .16s, box-shadow .2s, transform .16s; cursor: pointer; width: 100%; text-align: left; }
.provcard:hover { border-color: var(--border-2); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.provcard.done { border-color: var(--accent); background: var(--accent-soft); }
.provlogo { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; flex: 0 0 auto; }
.creno[data-theme="dark"] .provlogo { background: #fff; }
.provcard .pn { font-weight: 800; font-size: .98rem; }
.provcard .ps { color: var(--text-3); font-size: .82rem; }
.provcard .pa { margin-left: auto; flex: 0 0 auto; }

.secline { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px 16px; background: var(--surface-2); border-radius: var(--r); color: var(--text-2); font-size: .84rem; font-weight: 600; }
.secline svg { width: 18px; height: 18px; flex: 0 0 auto; }

/* apple form */
.appleform { margin-top: 16px; padding: 18px; border: 1px dashed var(--border-2); border-radius: var(--r-lg); background: var(--surface-2); }
.appleform .field { margin-bottom: 14px; }
.appleform .hint { margin-top: 8px; }

/* ---------- PARTICIPANTS ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.person { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.person .pn { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.person .pp { color: var(--text-3); font-size: .76rem; font-weight: 600; }
.person .st { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-left: auto; box-shadow: 0 0 0 3px var(--accent-soft); flex: 0 0 auto; }
.person .st.err { background: var(--urgent); box-shadow: 0 0 0 3px var(--urgent-bg); }

/* avatars */
.av { border-radius: 50%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #fff; flex: 0 0 auto; letter-spacing: -.01em; line-height: 1; }
.av.ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--border-2); }
.avstack { display: flex; }
.avstack .av { margin-left: -8px; }
.avstack .av:first-child { margin-left: 0; }
.avstack .more { margin-left: -8px; background: var(--surface-3); color: var(--text-2); }

/* ---------- RESULTS ---------- */
.ringwrap { position: relative; display: grid; place-items: center; }
.reshero { display: flex; align-items: center; gap: 28px; padding: 30px 34px; margin-bottom: 22px; flex-wrap: wrap; }
.reshero .glow { right: -120px; top: -120px; }
.reshero .info { position: relative; flex: 1; min-width: 260px; }
.reshero h3 { color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; margin: 13px 0 8px; }
.reshero .pitch { color: #aeb4bb; font-size: .98rem; max-width: 520px; }
.reshero .ringbox { position: relative; text-align: center; }
.reshero .ringcap { color: #8b9097; font-size: .74rem; font-weight: 700; margin-top: 8px; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.slotcard { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 15px; transition: border-color .18s, box-shadow .2s, transform .18s; position: relative; overflow: hidden; }
.slotcard:hover { border-color: var(--border-2); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.slotcard.best { border-color: var(--accent); box-shadow: 0 14px 36px var(--accent-glow); }
.slotcard .ribbon { position: absolute; top: 15px; right: -34px; transform: rotate(45deg); background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .62rem; letter-spacing: .08em; padding: 4px 40px; text-transform: uppercase; }
.daybadge { text-align: center; width: 46px; padding: 7px 0; border-radius: 11px; background: var(--surface-2); color: var(--text); flex: 0 0 auto; }
.daybadge.best { background: var(--accent); color: var(--on-accent); }
.daybadge .dw { font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.daybadge .dn { font-family: var(--f-display); font-size: 1.35rem; font-weight: 800; line-height: 1; }
.slotcard .smeta { font-weight: 800; font-size: .96rem; }
.slotcard .stime { color: var(--text-2); font-weight: 700; font-size: .86rem; }
.slotcard .sdiv { padding-top: 13px; border-top: 1px solid var(--border); }

/* clickable hour chips inside a day card */
.hours { display: flex; flex-wrap: wrap; gap: 8px; }
.hour { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: var(--r-pill); background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-deep); font-weight: 800; font-size: .82rem; cursor: pointer; transition: transform .12s, box-shadow .2s, filter .2s; }
.creno[data-theme="dark"] .hour { color: var(--accent); }
.hour:hover { transform: translateY(-1px); box-shadow: 0 6px 16px var(--accent-glow); filter: brightness(1.02); }
.hour svg { width: 13px; height: 13px; }
.hour.dim { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.hour.dim:hover { border-color: var(--text-3); box-shadow: none; }

/* divider label */
.linelbl { display: flex; align-items: center; gap: 14px; color: var(--text-3); font-size: .78rem; font-weight: 700; margin: 6px 0 16px; }
.linelbl::before, .linelbl::after { content: ""; height: 1px; background: var(--border); flex: 1; }

/* notebox + flash + empty */
.notebox { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--surface-2); border-radius: var(--r-lg); margin-top: 22px; }
.notebox .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; flex: 0 0 auto; }
.creno[data-theme="dark"] .notebox .ic { color: var(--accent); }
.notebox .ic svg { width: 20px; height: 20px; }
.notebox h4 { font-size: .92rem; font-weight: 800; margin-bottom: 3px; }
.notebox p { color: var(--text-2); font-size: .85rem; }
.flash { padding: 13px 18px; border-radius: var(--r); font-weight: 600; font-size: .9rem; margin: 18px 0; display: flex; align-items: center; gap: 10px; }
.flash.ok { background: var(--accent-soft); color: var(--accent-deep); }
.creno[data-theme="dark"] .flash.ok { color: var(--accent); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.empty { color: var(--text-3); font-weight: 600; padding: 22px; text-align: center; }

/* ---------- TOAST ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 30px); background: var(--text); color: var(--surface); font-weight: 700; font-size: .9rem; padding: 13px 20px; border-radius: var(--r-pill); box-shadow: var(--shadow-pop); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 120; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast b { color: var(--accent); }

/* ---------- FOOTER ---------- */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-3); font-size: .82rem; font-weight: 600; padding-top: 30px; padding-bottom: 44px; margin-top: 30px; border-top: 1px solid var(--border); }

/* spinner */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .hero .darkcard { padding: 34px 26px; }
  .hero.compact .darkcard { padding: 28px 22px; }
  .reshero { padding: 24px 22px; gap: 18px; }
  .reshero .ringbox { width: 100%; }
  .foot { justify-content: flex-start; }
  .wrap { padding: 0 18px; }
}

/* ============ APP SHELL (V2 espace organisateur) ============ */
body.creno.app-shell { position: fixed; inset: 0; min-height: 0; height: 100%; display: grid; grid-template-columns: 248px 1fr; overflow: hidden; }
.app-shell .sb { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-height: 0; }
.sb-top { padding: 20px 18px 14px; display: flex; align-items: center; gap: 10px; }
.sb-logo { font-family: var(--f-display); font-weight: 800; font-size: 1.18rem; letter-spacing: -.035em; }
.sb-new { margin: 6px 14px 14px; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .9rem; padding: 13px; border-radius: var(--r-pill); box-shadow: 0 7px 20px var(--accent-glow); transition: transform .14s, filter .2s; }
.sb-new:hover { transform: translateY(-1px); filter: brightness(1.05); }
.sb-new svg { width: 18px; height: 18px; }
.sb-nav { padding: 4px 12px; display: flex; flex-direction: column; gap: 2px; }
.sb-sect { font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding: 18px 12px 7px; }
.sb-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); font-weight: 600; font-size: .9rem; color: var(--text-2); transition: background .14s, color .14s; }
.sb-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.sb-item:hover { background: var(--surface-2); color: var(--text); }
.sb-item.on { background: var(--accent-soft); color: var(--text); font-weight: 700; }
.creno[data-theme="dark"] .sb-item.on { color: var(--accent); }
.sb-item .cnt { margin-left: auto; font-size: .74rem; font-weight: 800; color: var(--text-3); background: var(--surface-2); padding: 1px 8px; border-radius: 99px; }
.sb-foot { margin-top: auto; padding: 12px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.sb-acct { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: var(--r); transition: background .14s; }
.sb-acct:hover { background: var(--surface-2); }
.sb-acct .nm { font-weight: 700; font-size: .84rem; line-height: 1.2; }
.sb-acct .em { font-size: .72rem; color: var(--text-3); }
.app-shell .main { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--bg); }
.app-shell .topbar { height: 66px; flex: 0 0 auto; display: flex; align-items: center; gap: 16px; padding: 0 26px; border-bottom: 1px solid var(--border); background: var(--surface); }
.app-shell .topbar h1 { font-weight: 800; font-size: 1.24rem; }
.app-shell .topbar .sub { color: var(--text-3); font-size: .84rem; font-weight: 600; }
.app-shell .topbar-sp { margin-left: auto; }
.app-shell .scroll { overflow-y: auto; min-height: 0; flex: 1; }

.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 26px; }
.statcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px; position: relative; overflow: hidden; }
.statcard .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; margin-bottom: 14px; }
.statcard .ic svg { width: 20px; height: 20px; }
.statcard.accent .ic { background: var(--accent); color: var(--on-accent); }
.statcard .num { font-family: var(--f-display); font-weight: 800; font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.statcard .lbl { font-weight: 700; font-size: .9rem; margin-top: 8px; }
.statcard .leg { color: var(--text-3); font-size: .78rem; margin-top: 2px; }
.mlist { overflow: hidden; }
.mrow { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: background .14s; cursor: pointer; text-align: left; width: 100%; }
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: var(--surface-2); }
.mrow .mi { width: 42px; height: 42px; border-radius: 11px; background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; flex: 0 0 auto; }
.mrow .mi svg { width: 20px; height: 20px; }
.mrow .mt { font-weight: 800; font-size: .96rem; }
.mrow .mm { color: var(--text-3); font-size: .8rem; font-weight: 600; }
.emptybox { text-align: center; padding: 48px 30px; display: flex; flex-direction: column; align-items: center; gap: 8px; }

@media (max-width: 860px) {
  body.creno.app-shell { position: static; height: auto; min-height: 100vh; display: block; overflow: visible; }
  .app-shell .sb { flex-direction: row; flex-wrap: wrap; align-items: center; border-right: 0; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; }
  .app-shell .sb-new { margin: 0 14px; }
  .app-shell .sb-nav { flex-direction: row; }
  .app-shell .sb-sect, .app-shell .sb-foot { display: none; }
  .app-shell .scroll { overflow: visible; }
}
