
  :root{
    --violet:#5B4DF0;--indigo:#4A38D6;--peri:#8B9BFF;--blue:#5A7CFF;
    --violet-soft:#ECEAFC;--violet-tint:#F4F3FD;
    --card:#FFFFFF;--surface:#FBFBFE;--surface-tint:#F8F7FE;--ink:#14132A;--ink-2:#3A3854;--muted:#6C6B82;--faint:#9A99B0;
    --hair:rgba(24,22,64,.07);
    --r:22px;
    --sh-card:0 1px 1.5px rgba(24,22,64,.05),0 6px 14px -4px rgba(24,22,64,.06),0 22px 44px -18px rgba(24,22,64,.10),inset 0 1px 0 rgba(255,255,255,.75);
    --sh-hover:0 2px 3px rgba(24,22,64,.06),0 14px 28px -8px rgba(24,22,64,.12),0 40px 60px -24px rgba(91,77,240,.20),inset 0 1px 0 rgba(255,255,255,.85);
    --sh-btn:inset 0 1px 0 rgba(255,255,255,.3),0 2px 6px rgba(91,77,240,.28),0 12px 26px -6px rgba(91,77,240,.55);
  }
  *{box-sizing:border-box;margin:0;padding:0}
  html,body{height:100%}
  body{
    font-family:-apple-system,BlinkMacSystemFont,'SF Pro Text','Helvetica Neue','Segoe UI',Arial,sans-serif;
    font-feature-settings:"cv11" 1,"ss01" 1,"calt" 1;
    color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
    background:#F4F4F8;overflow-x:hidden;
  }
  /* Background kept intentionally flat for a calmer dashboard surface. */
  .aurora{display:none}
  .aurora i{position:absolute;border-radius:50%}
  .aurora .b1{width:46vw;height:46vw;left:52%;top:-14%;background:radial-gradient(circle,rgba(139,155,255,.55),transparent 62%);animation:drift1 26s ease-in-out infinite}
  .aurora .b2{width:40vw;height:40vw;left:-12%;top:8%;background:radial-gradient(circle,rgba(150,120,245,.45),transparent 62%);animation:drift2 32s ease-in-out infinite}
  .aurora .b3{width:38vw;height:38vw;left:38%;top:64%;background:radial-gradient(circle,rgba(120,150,255,.4),transparent 62%);animation:drift3 30s ease-in-out infinite}
  @keyframes drift1{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-6%,7%) scale(1.12)}}
  @keyframes drift2{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(8%,-5%) scale(1.15)}}
  @keyframes drift3{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(-5%,-8%) scale(1.1)}}
  #motes{display:none}
  body::after{display:none;content:"";position:fixed;inset:0;z-index:9999;pointer-events:none;opacity:.04;
    background-image:url("/frontend/assets/dashboard-r10-f0284d9bfba66e64.svg?v=20260826r12")}

  .app{display:grid;grid-template-columns:252px 1fr;min-height:100vh;position:relative;z-index:1}
  html.bios-dashboard-booting .app{visibility:hidden}

  /* SIDEBAR */
  .sidebar{background:rgba(255,255,255,.86);backdrop-filter:blur(16px);
    border-right:1px solid var(--hair);padding:26px 18px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
  .brand{display:flex;align-items:center;gap:12px;padding:0 10px 26px}
  .brand-mark{width:40px;height:40px;filter:drop-shadow(0 8px 18px rgba(91,77,240,.35))}
  .brand-name{font-weight:700;font-size:20px;letter-spacing:0}
  .nav{display:flex;flex-direction:column;gap:3px}
  .nav-item{display:flex;align-items:center;gap:13px;padding:11px 14px;border-radius:13px;color:var(--muted);font-size:14px;font-weight:600;cursor:pointer;transition:.2s;user-select:none;position:relative}
  .nav-item svg{width:20px;height:20px;flex-shrink:0;stroke-width:1.6;transition:.2s}
  .nav-item:hover{background:var(--violet-tint);color:var(--ink-2)}
  .nav-item:hover svg{transform:translateX(2px)}
  .nav-item.active{background:#F4F4F8;color:var(--ink);font-weight:600;box-shadow:none}
  .nav-item.active svg{color:var(--ink)}
  .nav-item.active:hover svg{transform:none}
  .nav-item.locked{padding-right:38px}
  body.consent-accepted .nav-item.locked{padding-right:14px}
  body.consent-accepted #consentStrip{display:none}
  .nav-lock{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:50%;background:#F0EFF6;color:#8D8AA4;display:grid;place-items:center}
  body.consent-accepted .nav-lock{display:none}
  .nav-lock svg{width:12px;height:12px;stroke-width:2;transform:none!important}

  .pulse-card{margin-top:18px;background:var(--surface-tint);border:1px solid var(--hair);border-radius:16px;padding:14px 14px 12px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
  .pulse-top{display:flex;align-items:center;gap:7px;font-size:11.5px;font-weight:600;color:var(--ink-2);letter-spacing:.02em;margin-bottom:8px}
  .live-dot{width:7px;height:7px;border-radius:50%;background:#37D39B;box-shadow:0 0 0 0 rgba(55,211,155,.6);animation:blip 1.8s ease-in-out infinite}
  @keyframes blip{0%,100%{box-shadow:0 0 0 0 rgba(55,211,155,.55)}50%{box-shadow:0 0 0 5px rgba(55,211,155,0)}}
  .pulse-line{width:100%;height:34px;overflow:hidden;display:block}
  .pulse-line .wave{animation:ekg 3s linear infinite}
  @keyframes ekg{to{transform:translateX(-100px)}}
  .pulse-sub{font-size:11px;color:var(--faint);margin-top:6px;line-height:1.4}

  .sidebar-foot{margin-top:auto;display:flex;flex-direction:column;gap:14px;padding-top:18px;transform:translateY(-6px)}
  .profile{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:14px;cursor:pointer;transition:.2s}
  .profile:hover{background:var(--violet-tint)}
  .avatar{width:38px;height:38px;border-radius:50%;flex-shrink:0;box-shadow:0 4px 10px -2px rgba(24,22,64,.2)}
  .profile-txt{line-height:1.25;flex:1;min-width:0}
  .profile-txt b{font-size:14px;font-weight:600;display:block}
  .profile-txt span{font-size:12.5px;color:var(--faint)}
  .profile .chev{color:var(--faint);stroke-width:2}
  .help{background:var(--surface-tint);border:1px solid var(--hair);border-radius:18px;padding:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
  .help h4{font-size:14px;font-weight:600;margin-bottom:12px}
  .help p{font-size:12.5px;color:var(--muted);line-height:1.5;margin-bottom:13px}
  .help .btn-chat{width:100%;border:none;cursor:pointer;color:#fff;font-family:inherit;font-size:13px;font-weight:600;padding:11px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:7px;transition:.2s;background:linear-gradient(180deg,#6B5CF6,#5B4DF0);box-shadow:none}
  .help .btn-chat:hover{transform:translateY(-1px)}
  .help .btn-chat svg{width:15px;height:15px;stroke-width:1.9}
  .telegram-support{min-height:46px;width:100%;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 14px;border:1px solid rgba(31,64,97,.1);border-radius:13px;background:#fff;color:#1f3e5c;font-family:inherit;font-size:13px;font-weight:650;text-decoration:none;box-shadow:0 10px 24px -22px rgba(18,48,78,.55);transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
  .telegram-support:hover{border-color:rgba(38,157,216,.22);background:#f7fbfe;color:#1689c5;transform:translateY(-1px)}
  .telegram-support svg{width:18px;height:18px;flex:0 0 18px;color:#249ed7;stroke-width:1.75}

  /* MAIN */
  .main{padding:36px 46px 46px;max-width:1280px}
  .topbar{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:30px}
  .greeting h1{font-size:31px;font-weight:700;letter-spacing:-.018em;display:flex;align-items:center;gap:11px}
  .greeting h1 .sun{width:26px;height:26px}
  .greeting p{color:var(--muted);font-size:14.5px;margin-top:8px;letter-spacing:0}
  .topbar-right{display:flex;align-items:center;gap:16px}
  .topbar-quick-actions{display:flex;align-items:center;gap:8px}
  .topbar-quick-action{height:44px;padding:0 18px;border:1px solid var(--hair);border-radius:22px;background:#fff;color:var(--ink-2);font:inherit;font-size:12.5px;font-weight:700;white-space:nowrap;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease}
  .topbar-quick-action:hover{border-color:rgba(91,77,240,.24);background:var(--surface-tint)}
  .topbar-quick-action.primary{border-color:#1687f4;background:#1687f4;color:#fff}
  .topbar-quick-action.primary:hover{border-color:#0876df;background:#0876df}
  body.bios-live button.topbar-quick-action.primary{border-radius:22px}
  .today-telegram-connect{height:46px;padding:0 22px;border:1px solid rgba(25,135,225,.22);border-radius:23px;background:#fff;color:#1878c8;font:inherit;font-size:13px;font-weight:750;letter-spacing:-.002em;white-space:nowrap;cursor:pointer;transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
  .today-telegram-connect:hover{border-color:rgba(25,135,225,.38);background:#f2f8fd;color:#116eb9;transform:translateY(-1px)}
  .today-telegram-connect[hidden]{display:none}
  .bell{position:relative;width:46px;height:46px;border-radius:50%;background:var(--card);border:1px solid var(--hair);display:grid;place-items:center;cursor:pointer;transition:.2s;box-shadow:var(--sh-card)}
  .bell:hover{transform:translateY(-1px)}
  .bell svg{width:20px;height:20px;color:var(--ink-2);stroke-width:1.7}
  .bell .badge{position:absolute;top:-2px;right:-2px;min-width:19px;height:19px;padding:0 5px;border-radius:10px;background:linear-gradient(180deg,#6B5CF6,#5B4DF0);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;border:2px solid #F2F2FA;box-shadow:0 3px 8px rgba(91,77,240,.5)}
  .topbar-right .avatar{width:46px;height:46px}
  .notifications-popover{position:fixed;top:82px;right:46px;width:390px;max-width:calc(100vw - 32px);z-index:20;background:var(--card);border:1px solid var(--hair);border-radius:18px;box-shadow:0 18px 46px -20px rgba(24,22,64,.35),0 4px 16px -8px rgba(24,22,64,.18);opacity:0;visibility:hidden;transform:translateY(8px);transition:.18s ease;overflow:hidden}
  .notifications-popover.active{opacity:1;visibility:visible;transform:translateY(0)}
  .notifications-popover::before{content:"";position:absolute;top:-7px;right:58px;width:14px;height:14px;background:var(--card);border-left:1px solid var(--hair);border-top:1px solid var(--hair);transform:rotate(45deg)}
  .notifications-head{height:58px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--hair)}
  .notifications-head h2{font-size:16px;font-weight:700;letter-spacing:-.006em}
  .notifications-head button{border:none;background:transparent;color:var(--violet);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
  .notifications-list{padding:4px 22px 0}
  .notification-item{width:100%;display:grid;grid-template-columns:10px 1fr auto;gap:14px;align-items:start;padding:18px 0;border:0;border-bottom:1px solid var(--hair);background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer}
  .notification-item:last-child{border-bottom:none}
  .notification-item:hover{background:color-mix(in srgb,var(--violet) 5%,transparent)}
  .notification-item:focus-visible{outline:2px solid var(--violet);outline-offset:3px;border-radius:6px}
  .notification-dot{width:6px;height:6px;border-radius:50%;background:var(--violet);margin-top:9px}
  .notification-copy b{display:block;font-size:13.5px;font-weight:700;color:var(--ink);margin-bottom:5px}
  .notification-copy p{font-size:12.5px;line-height:1.55;color:var(--muted)}
  .notification-time{font-size:12px;color:var(--muted);white-space:nowrap;padding-top:2px}
  .bell .badge[hidden]{display:none}
  .notifications-foot{height:48px;border-top:1px solid var(--hair);display:flex;align-items:center;justify-content:center}
  .notifications-foot .link{font-size:13px}
  .view{display:none}
  .view.active{display:block}

  .grid-2{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:22px}
  .panel{position:relative;overflow:hidden;border-radius:var(--r);border:1px solid var(--hair);box-shadow:none;transition:none}
  .panel:hover{transform:none;box-shadow:none}
  .card{background:var(--card)}
  /* Cursor spotlight and panel hover elevation are disabled for a calmer main surface. */
  .spot::after{display:none}
  .spot:hover::after{opacity:0}
  .spot>*{position:relative;z-index:1}
  .num{font-variant-numeric:tabular-nums;letter-spacing:-.02em}

  /* Goal */
  .goal{padding:24px 28px}
  .goal-head{display:flex;align-items:center;gap:17px;margin-bottom:22px}
  .glass-tile{width:56px;height:56px;flex-shrink:0}
  .goal-head .lbl{font-size:12px;color:var(--faint);font-weight:600;letter-spacing:.04em;text-transform:uppercase}
  .goal-head .title{font-size:19px;font-weight:700;color:var(--violet);margin:4px 0 3px;letter-spacing:-.01em}
  .goal-head .days{font-size:13px;color:var(--muted)}
  .goal-pct{margin-left:auto;font-size:34px;font-weight:700;color:var(--violet);align-self:flex-start}
  .goal-pct small{font-size:17px;font-weight:600;opacity:.85}
  .bar{height:7px;border-radius:99px;background:#ECECF4;overflow:hidden;margin-bottom:12px;box-shadow:inset 0 1px 2px rgba(24,22,64,.08)}
  .bar>i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--blue),var(--violet));box-shadow:0 0 12px rgba(91,77,240,.7);animation:fillbar 1.4s .3s cubic-bezier(.2,.7,.2,1) forwards}
  @keyframes fillbar{to{width:3%}}
  .goal .foot{font-size:13px;color:var(--muted)}
  .week{margin-top:20px;padding-top:18px;border-top:1px solid var(--hair)}
  .week-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
  .week-h b{font-size:12.5px;font-weight:600;color:var(--ink-2)}
  .week-h span{font-size:11.5px;color:var(--faint)}
  .week-bars{display:flex;gap:9px;align-items:flex-end;height:52px}
  .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:7px}
  .col .tr{width:100%;height:44px;border-radius:7px;background:#F0EFF7;position:relative;overflow:hidden;box-shadow:inset 0 1px 2px rgba(24,22,64,.05)}
  .col .fl{position:absolute;left:0;right:0;bottom:0;height:0;border-radius:7px;background:linear-gradient(180deg,var(--peri),var(--violet));animation:grow 1s .5s cubic-bezier(.2,.7,.2,1) forwards}
  .col.today .fl{--h:26%}.col.d2 .fl,.col.d3 .fl,.col.d4 .fl,.col.d5 .fl,.col.d6 .fl,.col.d7 .fl{--h:0%}
  @keyframes grow{to{height:var(--h,0%)}}
  .col.today .tr{box-shadow:inset 0 0 0 1.5px rgba(91,77,240,.35),inset 0 1px 2px rgba(24,22,64,.05)}
  .col label{font-size:10.5px;color:var(--faint);font-weight:500}
  .col.today label{color:var(--violet);font-weight:700}

  /* Health Memory */
  .hm{padding:24px 28px;display:flex;flex-direction:column;background:var(--card)}
  .hm h3{font-size:16px;font-weight:700;margin-bottom:8px;letter-spacing:0}
  .hm-body{display:flex;align-items:center;gap:20px;flex:1}
  .hm-ring{width:138px;height:138px;flex-shrink:0;display:grid;place-items:center;position:relative;border-radius:50%;
    background:conic-gradient(var(--violet) 0 2deg,#E7E4F5 2deg 360deg);box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
  .hm-ring::before{content:"";position:absolute;inset:11px;border-radius:50%;background:var(--card);box-shadow:inset 0 1px 3px rgba(24,22,64,.04)}
  .hm-ring .num{position:relative;z-index:1;color:var(--violet);font-size:38px;font-weight:700;letter-spacing:-.02em}
  .hm-ring small{font-size:20px;font-weight:700;letter-spacing:-.01em}
  .hm-txt p{font-size:13.5px;color:var(--ink-2);line-height:1.55;margin-bottom:14px}
  .link{color:var(--violet);font-size:13.5px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;gap:6px;transition:.2s}
  .link:hover{gap:9px}
  .link svg{width:15px;height:15px;stroke-width:2}

  /* Protocol */
  .protocol{border-radius:var(--r);padding:38px 44px;margin-bottom:22px;display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:center;background:var(--card)}
  .protocol .glow{display:none;content:"";position:absolute;right:6%;top:50%;transform:translateY(-50%);width:360px;height:360px;border-radius:50%;pointer-events:none;background:none;filter:blur(6px);animation:breathe 6s ease-in-out infinite;z-index:0}
  @keyframes breathe{0%,100%{opacity:.7;transform:translateY(-50%) scale(1)}50%{opacity:1;transform:translateY(-50%) scale(1.08)}}
  .protocol h2{font-size:26px;font-weight:700;line-height:1.24;letter-spacing:-.018em;max-width:440px;margin:26px 0 18px}
  .protocol .p{font-size:15px;color:var(--muted);line-height:1.6;max-width:430px;margin-bottom:14px}
  .protocol .p b{color:var(--ink-2);font-weight:600}
  .protocol .actions{display:flex;align-items:center;gap:26px;margin-top:16px}
  .btn-primary{position:relative;overflow:hidden;border:none;cursor:pointer;font-family:inherit;color:#fff;font-size:14px;font-weight:700;letter-spacing:0;padding:13px 31px;border-radius:13px;transition:.22s;background:linear-gradient(180deg,#6B5CF6,#5647E9);box-shadow:none}
  .btn-primary::after{content:"";position:absolute;top:0;left:-120%;width:60%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-18deg);transition:left .6s}
  .btn-primary:hover{transform:translateY(-2px);box-shadow:none}
  .btn-primary:hover::after{left:130%}
  .illo{justify-self:center}
  .illo-svg{width:320px;animation:float 7s ease-in-out infinite}

  /* Steps */
  .steps-card{border-radius:var(--r);padding:28px 34px;margin-bottom:22px;background:var(--card);display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:center}
  .ring-svg{width:116px;height:116px;flex-shrink:0}
  .steps-right h3{font-size:20px;font-weight:700;line-height:1.35;margin-bottom:24px;letter-spacing:-.01em}
  .track{position:relative;display:flex;justify-content:space-between}
  .track::before{content:"";position:absolute;top:11px;left:11px;right:11px;height:4px;background:#EAEAF3;border-radius:99px;box-shadow:inset 0 1px 1px rgba(24,22,64,.06)}
  .track::after{content:"";position:absolute;top:11px;left:11px;width:16%;height:4px;border-radius:99px;background:linear-gradient(90deg,var(--blue),var(--violet));box-shadow:0 0 10px rgba(91,77,240,.5)}
  .node{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;width:25%;z-index:1}
  .node .dot{width:22px;height:22px;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 2px 6px rgba(24,22,64,.12)}
  .node .dot .fill{width:14px;height:14px;border-radius:50%;background:var(--violet)}
  .node.done .dot{background:var(--violet);box-shadow:0 4px 10px -2px rgba(91,77,240,.55),0 0 0 0 rgba(91,77,240,.5);animation:ping 2.4s ease-out infinite}
  @keyframes ping{0%{box-shadow:0 4px 10px -2px rgba(91,77,240,.55),0 0 0 0 rgba(91,77,240,.45)}70%,100%{box-shadow:0 4px 10px -2px rgba(91,77,240,.55),0 0 0 12px rgba(91,77,240,0)}}
  .node .dot svg{width:13px;height:13px;color:var(--faint);stroke-width:2}
  .node .cap{font-size:12.5px;color:var(--muted);text-align:center;line-height:1.35}
  .node.done .cap{color:var(--ink-2);font-weight:600}
  .node.first{align-items:flex-start}.node.first .cap{text-align:left}
  .node.last{align-items:flex-end}.node.last .cap{text-align:right}
  .node.last .dot svg{fill:none}

  /* About */
  .about{border-radius:var(--r);padding:34px 44px;background:var(--card);display:grid;grid-template-columns:auto 1fr;gap:36px;align-items:center}
  .about .glow{display:none;position:absolute;left:24px;top:50%;transform:translateY(-50%);width:200px;height:200px;border-radius:50%;background:none;filter:blur(8px);pointer-events:none;animation:breathe2 5s ease-in-out infinite;z-index:0}
  @keyframes breathe2{0%,100%{opacity:.7;transform:translateY(-50%) scale(1)}50%{opacity:1;transform:translateY(-50%) scale(1.1)}}
  .orb-svg{width:140px;flex-shrink:0;animation:float 8s ease-in-out infinite}
  .about h3{font-size:21px;font-weight:700;margin-bottom:12px;letter-spacing:-.012em}
  .about p{font-size:15px;color:var(--muted);line-height:1.6;max-width:520px;margin-bottom:22px}
  .about .actions{display:flex;align-items:center;gap:28px}
  .btn-outline{border:1.5px solid rgba(91,77,240,.35);cursor:pointer;font-family:inherit;color:var(--violet);font-size:14.5px;font-weight:600;padding:13px 26px;border-radius:13px;transition:.2s;display:inline-flex;align-items:center;gap:9px;background:var(--card);box-shadow:none}
  .btn-outline:hover{border-color:var(--violet);transform:translateY(-1px)}
  .btn-outline svg{width:16px;height:16px;stroke-width:1.9}

  /* AI home variant */
  .ai-hero{padding:32px 32px 26px;margin-bottom:24px;background:var(--card)}
  .ai-title{display:flex;align-items:center;margin-bottom:26px}
  .ai-title h2{font-size:22px;font-weight:700;letter-spacing:-.012em}
  .ask-box{height:58px;border-radius:29px;border:1px solid var(--hair);background:var(--card);box-shadow:inset 0 1px 2px rgba(24,22,64,.04),0 14px 34px -24px rgba(24,22,64,.24);display:flex;align-items:center;padding:0 11px 0 20px;gap:16px;margin-bottom:22px}
  .home-chat-upload{width:26px;height:26px;border:none;padding:0;background:transparent;color:#7A7894;display:grid;place-items:center;flex-shrink:0;cursor:pointer}
  .home-chat-upload svg{width:26px;height:26px;stroke-width:1.8}
  .ask-sep{display:none}
  .home-chat-input{min-width:0;flex:1;border:none;outline:none;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-weight:500}
  .home-chat-input::placeholder{color:#AAA8BD}
  .ask-actions{display:flex;align-items:center;gap:13px;color:#7E7C99}
  .ask-actions svg{width:20px;height:20px;stroke-width:1.8}
  .voice-btn{width:44px;height:44px;border:none;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,#6B5CF6,#4D3BE6);box-shadow:none}
  .voice-btn svg{width:22px;height:22px}
  .prompt-chips{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
  .chip{height:44px;border:1px solid var(--hair);border-radius:13px;background:var(--card);display:flex;align-items:center;justify-content:center;gap:10px;color:var(--ink-2);font-size:13px;font-weight:700;box-shadow:none}
  .chip svg{width:18px;height:18px;stroke-width:1.8;flex-shrink:0}
  .chip.sleep svg{color:#5B4DF0}.chip.energy svg{color:#5B4DF0}.chip.lab svg{color:#5B4DF0}.chip.stress svg{color:#59C78D}
  .ai-grid{display:grid;grid-template-columns:320px 1fr;gap:22px;margin-bottom:24px}
  .goal.simple{min-height:238px;padding:26px 28px 24px;display:flex;flex-direction:column}
  .goal.simple .goal-head{display:block;margin-bottom:auto}
  .goal.simple .lbl{font-size:13px;text-transform:none;letter-spacing:0;color:var(--ink-2);margin-bottom:9px}
  .goal.simple .title{font-size:19px;margin:0 0 7px}
  .goal.simple .days{font-size:13px}
  .goal.simple .goal-pct{margin:0 0 22px auto;align-self:auto;font-size:34px}
  .goal.simple .bar{margin-bottom:20px}
  .hm.compact{min-height:238px;padding:26px 32px}
  .hm.compact h3{font-size:16px;margin-bottom:20px;display:flex;align-items:center;gap:8px}
  .hm.compact .hm-body{gap:24px}
  .hm.compact .hm-ring{width:132px;height:132px}
  .hm.compact .hm-txt{width:34ch;max-width:100%}
  .hm.compact .hm-txt p{font-size:13.5px;margin-bottom:16px}
  .protocol-strip{padding:24px 30px;display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center;background:var(--card)}
  .protocol-strip .glass-tile{width:56px;height:56px}
  .protocol-strip h2{font-size:20px;font-weight:700;line-height:1.3;letter-spacing:-.012em;margin-bottom:12px;max-width:470px}
  .protocol-strip p{font-size:13px;color:var(--muted);line-height:1.55;margin-bottom:4px}
  .protocol-cta{display:flex;flex-direction:column;align-items:flex-end;gap:16px;min-width:230px}
  .protocol-cta .btn-primary{width:210px}
  .protocol-cta .link{font-size:14px}
  .feature-title{display:flex;align-items:center;justify-content:center;gap:12px;font-size:17px;font-weight:800;color:#85839B;margin-bottom:18px}
  .lock-badge{width:26px;height:26px;border-radius:50%;background:#F1F0F6;color:#8D8AA4;display:grid;place-items:center;flex-shrink:0}
  .lock-badge svg{width:14px;height:14px;stroke-width:2}
  .consent-strip{padding:30px;display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;background:var(--card);margin-bottom:22px}
  .consent-icon{width:62px;height:62px;border-radius:50%;background:linear-gradient(180deg,#7466FF,#5B4DF0);color:#fff;display:grid;place-items:center;box-shadow:0 12px 28px -14px rgba(91,77,240,.62)}
  .consent-icon svg{width:34px;height:34px;stroke-width:1.65}
  .consent-copy h2{font-size:20px;font-weight:800;letter-spacing:-.012em;margin-bottom:10px}
  .consent-copy p{font-size:14.5px;line-height:1.55;color:var(--muted);max-width:690px;margin-bottom:12px}
  .consent-secure{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:13px;font-weight:700}
  .consent-secure svg{width:17px;height:17px;stroke-width:1.9}
  .consent-cta{display:flex;flex-direction:column;align-items:flex-end;gap:18px;min-width:260px}
  .consent-cta .btn-primary{width:230px}
  .consent-cta .link{font-size:13.5px}
  .consent-info-modal{position:fixed;inset:0;z-index:48;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(16,16,28,.26);backdrop-filter:blur(6px)}
  .consent-info-modal.active{display:flex}
  .consent-info-card{position:relative;width:min(430px,calc(100vw - 40px));border:1px solid rgba(24,22,64,.1);border-radius:12px;background:#fff;padding:28px 24px 26px;box-shadow:0 22px 64px -28px rgba(24,22,64,.36),0 3px 12px rgba(24,22,64,.08)}
  .consent-info-close{position:absolute;right:20px;top:19px;width:28px;height:28px;border:none;background:transparent;color:var(--ink-2);display:grid;place-items:center;cursor:pointer}
  .consent-info-close svg{width:23px;height:23px;stroke-width:1.7}
  .consent-info-card h2{font-size:18px;font-weight:800;letter-spacing:-.01em;margin:0 40px 22px 0}
  .consent-info-list{display:flex;flex-direction:column;gap:22px}
  .consent-info-item{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;text-align:left}
  .consent-info-icon{width:40px;height:40px;border-radius:50%;background:#F0ECFF;color:var(--violet);display:grid;place-items:center;flex-shrink:0}
  .consent-info-icon svg{width:21px;height:21px;stroke-width:1.9}
  .consent-info-item h3{font-size:13px;font-weight:800;line-height:1.35;margin-bottom:7px}
  .consent-info-item p,.consent-info-item li{font-size:11.5px;line-height:1.55;color:var(--ink-2);font-weight:700}
  .consent-info-item ul{padding-left:14px;margin:0}
  .consent-info-item li::marker{color:var(--ink)}
  .telegram-connect-modal{position:fixed;inset:0;z-index:58;display:none;align-items:center;justify-content:center;padding:24px;background:rgba(24,24,28,.42);backdrop-filter:blur(12px)}
  .telegram-connect-modal.active{display:flex}
  .telegram-connect-dialog{position:relative;width:min(520px,calc(100vw - 32px));border:1px solid rgba(0,0,0,.1);border-radius:16px;background:#fff;padding:34px;box-shadow:0 24px 70px rgba(0,0,0,.18)}
  .telegram-connect-close{position:absolute;top:20px;right:20px;width:38px;height:38px;border:1px solid var(--hair);border-radius:12px;background:#fff;color:var(--muted);display:grid;place-items:center;cursor:pointer}
  .telegram-connect-close:hover{background:#f5f8fb;color:var(--ink-2)}
  .telegram-connect-close svg{width:19px;height:19px;stroke-width:1.7}
  .telegram-connect-brand{width:50px;height:50px;margin-bottom:22px;border-radius:16px;background:linear-gradient(145deg,#2189e8,#126bc7);color:#fff;display:grid;place-items:center;box-shadow:0 15px 34px -18px rgba(18,107,199,.7)}
  .telegram-connect-brand svg{width:25px;height:25px;stroke-width:1.65}
  .telegram-connect-dialog h2{margin:0 44px 10px 0;font-size:25px;font-weight:800;letter-spacing:-.025em;color:var(--ink)}
  .telegram-connect-lead{margin:0 0 26px;color:var(--muted);font-size:14.5px;line-height:1.55}
  .telegram-connect-benefits{display:grid;gap:12px;margin-bottom:24px}
  .telegram-connect-benefit{display:grid;grid-template-columns:36px 1fr;gap:13px;align-items:start;padding:14px 15px;border-radius:13px;background:#f5f8fb}
  .telegram-connect-benefit-icon{width:36px;height:36px;border-radius:11px;background:#e5f2fc;color:#167bcf;display:grid;place-items:center}
  .telegram-connect-benefit-icon svg{width:18px;height:18px;stroke-width:1.8}
  .telegram-connect-benefit h3{margin:1px 0 3px;font-size:13.5px;font-weight:800;color:var(--ink-2)}
  .telegram-connect-benefit p{margin:0;color:var(--muted);font-size:12.5px;line-height:1.45}
  .telegram-connect-privacy{margin:0 0 24px;color:#77879a;font-size:11.5px;line-height:1.55}
  .telegram-connect-actions{display:flex;justify-content:flex-end;gap:10px}
  .telegram-connect-actions button{min-height:46px;padding:0 22px;border-radius:23px;font:inherit;font-size:13px;font-weight:750;cursor:pointer}
  .telegram-connect-cancel{border:1px solid var(--hair);background:#fff;color:var(--ink-2)}
  .telegram-connect-confirm{border:1px solid #1687f4;background:#1687f4;color:#fff}
  .telegram-connect-confirm:hover{border-color:#0876df;background:#0876df}
  .consent-form-card{padding:34px 48px 46px;background:var(--card)}
  .consent-form-head{display:grid;grid-template-columns:auto 1fr;gap:34px;align-items:start;margin-bottom:34px}
  .consent-back{width:34px;height:34px;border:none;background:transparent;color:var(--ink-2);display:grid;place-items:center;cursor:pointer;margin-top:-2px}
  .consent-back svg{width:24px;height:24px;stroke-width:1.8}
  .consent-form-title h2{font-size:20px;font-weight:800;letter-spacing:-.012em;margin-bottom:12px}
  .consent-form-title p{font-size:14px;line-height:1.55;color:var(--muted);max-width:760px;font-weight:600}
  .consent-form{display:grid;grid-template-columns:1fr 1fr;gap:24px 54px;padding-left:52px}
  .consent-field{display:flex;flex-direction:column;gap:9px}
  .consent-field.full{grid-column:1/-1}
  .consent-field label{font-size:13px;font-weight:700;color:var(--muted)}
  .consent-input{width:100%;height:52px;border:1px solid #DCDCE8;border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:13.5px;font-weight:600;padding:0 18px;outline:none}
  .consent-input::placeholder{color:#9C9AB1}
  .consent-input:focus{border-color:rgba(91,77,240,.45);box-shadow:0 0 0 3px rgba(91,77,240,.08)}
  .consent-input-wrap{position:relative}
  .consent-input-wrap .consent-input{padding-right:48px}
  .consent-input-wrap svg{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted);stroke-width:1.9;pointer-events:none}
  .consent-check-row{grid-column:1/-1;display:flex;align-items:center;gap:14px;margin-top:10px;color:var(--muted);font-size:13.5px;font-weight:700;line-height:1.45}
  .consent-checkbox{width:22px;height:22px;border:1.5px solid #D1D0DD;border-radius:5px;background:#fff;flex-shrink:0}
  .consent-check-row a{color:var(--violet);text-decoration:none;font-weight:800}
  .consent-submit{grid-column:1/-1;width:100%;height:52px;margin-top:2px;border-radius:11px}
  .consent-review-head{display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:start;margin-bottom:22px}
  .consent-review-title h1{font-size:23px;font-weight:800;letter-spacing:-.012em;margin-bottom:12px}
  .consent-review-title p{font-size:14px;line-height:1.45;color:var(--muted);font-weight:600}
  .pdf-shell{border:1px solid rgba(24,22,64,.12);border-radius:14px;background:#fff;overflow:hidden;margin-bottom:20px}
  .pdf-toolbar{height:58px;background:#2E3239;color:#fff;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:28px;padding:0 24px}
  .pdf-file{display:flex;align-items:center;gap:18px;font-size:14px;font-weight:700}
  .pdf-file svg,.pdf-actions svg{width:21px;height:21px;stroke-width:1.8}
  .pdf-controls{display:flex;align-items:center;gap:14px;font-size:14px;font-weight:700}
  .pdf-page,.pdf-zoom{height:25px;min-width:32px;padding:0 9px;background:#1F2228;display:grid;place-items:center}
  .pdf-sep{width:1px;height:26px;background:rgba(255,255,255,.24)}
  .pdf-control-icon{font-size:24px;line-height:1;color:#E4E5EA}
  .pdf-actions{display:flex;align-items:center;gap:22px;color:#F5F5F7}
  .pdf-body{height:590px;background:#EEF0F4;overflow:auto;padding:0 82px 34px;position:relative}
  .pdf-body::after{content:"";position:absolute;right:10px;top:22px;width:7px;height:72px;border-radius:99px;background:#8E9097}
  .pdf-page-sheet{width:min(880px,100%);min-height:760px;margin:0 auto;background:#fff;box-shadow:0 0 0 1px rgba(24,22,64,.08),0 16px 36px rgba(24,22,64,.12);padding:42px 58px;color:#111225}
  .pdf-doc-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:70px}
  .pdf-brand{display:flex;align-items:center;gap:16px;font-size:29px;font-weight:800}
  .pdf-logo{width:48px;height:48px;border-radius:13px;background:linear-gradient(180deg,#7466FF,#5B4DF0);color:#fff;display:grid;place-items:center}
  .pdf-logo svg{width:31px;height:31px}
  .pdf-doc-meta{text-align:right}
  .pdf-doc-meta b{display:block;font-size:18px;margin-bottom:8px}
  .pdf-doc-meta span{font-size:12px;color:#55566B;font-weight:700}
  .pdf-doc-title{text-align:center;font-size:15px;font-weight:800;letter-spacing:.025em;margin-bottom:30px}
  .pdf-copy{font-size:13px;line-height:1.45;margin-bottom:22px}
  .pdf-section-title{font-size:13.5px;font-weight:800;margin-bottom:10px}
  .pdf-table{width:100%;border-collapse:collapse;margin-bottom:20px;font-size:12.5px}
  .pdf-table td{border:1px solid #DADAE1;padding:9px 11px}
  .pdf-table td:first-child{width:35%;font-weight:700}
  .pdf-review-actions{padding:22px 24px 20px;background:#fff;border:1px solid var(--hair);border-radius:14px}
  .pdf-review-actions .consent-check-row{margin:0 0 22px}
  .pdf-review-actions .btn-primary{width:100%;height:52px;border-radius:11px}
  .c03-sms-verification{display:grid;gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid var(--hair)}
  .c03-sms-verification[hidden]{display:none}
  .c03-sms-verification p{font-size:13px;line-height:1.55;color:var(--muted)}
  .c03-sms-verification label{display:grid;gap:8px;font-size:12.5px;font-weight:700;color:var(--ink-2)}
  .c03-sms-verification input{width:100%;height:50px;border:1px solid var(--hair);border-radius:11px;background:var(--surface);color:var(--ink);font:inherit;font-size:22px;font-weight:700;text-align:center;letter-spacing:8px;outline:none}
  .c03-sms-message{min-height:18px;font-size:12.5px;color:var(--muted)}
  .success-card{padding:58px 30px 32px;background:var(--card);text-align:center}
  .success-check-wrap{position:relative;width:132px;height:132px;margin:0 auto 22px;display:grid;place-items:center}
  .success-check{width:96px;height:96px;border-radius:50%;background:#DFF8EE;color:#12A070;display:grid;place-items:center}
  .success-check svg{width:60px;height:60px;stroke-width:1.6}
  .success-dot{position:absolute;width:6px;height:6px;border-radius:50%}
  .success-dot.d1{left:16px;top:58px;background:#9A8CFF}.success-dot.d2{left:42px;top:22px;background:#70D5C1}.success-dot.d3{right:14px;top:36px;background:#22A978}.success-dot.d4{right:22px;bottom:42px;background:#F3AD11}.success-dot.d5{left:34px;bottom:34px;background:#F0A700}.success-dot.d6{right:52px;top:8px;background:#B7A8FF}
  .success-card h1{font-size:31px;font-weight:800;letter-spacing:-.018em;margin-bottom:16px}
  .success-card>p{font-size:14px;line-height:1.65;color:var(--muted);font-weight:700;margin-bottom:38px}
  .success-feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:0 0 28px}
  .success-feature{min-height:250px;border:1px solid var(--hair);border-radius:14px;background:#fff;padding:30px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center}
  .success-feature-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;margin-bottom:22px;color:var(--violet);background:#F1EEFF}
  .success-feature-icon.green{background:#E1F8EF;color:#10A371}.success-feature-icon.gold{background:#FFF3D4;color:#F0A000}
  .success-feature-icon svg{width:34px;height:34px;stroke-width:1.9}
  .success-feature h3{font-size:15px;font-weight:800;line-height:1.35;margin-bottom:14px}
  .success-feature p{font-size:12.5px;line-height:1.6;color:var(--muted);font-weight:700}
  .success-note{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center;text-align:left;border:1px solid var(--hair);border-radius:14px;background:#fff;padding:22px;margin-bottom:28px}
  .success-note .success-feature-icon{width:58px;height:58px;margin:0}
  .success-note h3{font-size:15px;font-weight:800;margin-bottom:8px}
  .success-note p{font-size:13px;line-height:1.55;color:var(--muted);font-weight:700}
  .success-actions{display:flex;flex-direction:column;align-items:center;gap:18px}
  .success-actions .btn-primary{width:min(480px,100%);height:52px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;gap:16px}
  .success-actions .link{color:var(--muted);font-size:12.5px}

  /* Protocols page */
  .page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:26px}
  .page-title h1{font-size:31px;font-weight:700;letter-spacing:-.018em;margin-bottom:7px}
  .page-title p{font-size:14.5px;color:var(--muted)}
  .btn-soft{height:40px;border:1px solid var(--hair);border-radius:13px;background:var(--card);color:var(--violet);font:inherit;font-size:13px;font-weight:700;padding:0 16px;display:inline-flex;align-items:center;gap:10px;cursor:pointer;box-shadow:none}
  .btn-soft svg{width:17px;height:17px;stroke-width:2}
  .protocol-tabs{display:inline-grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:4px;border:1px solid var(--hair);border-radius:14px;background:var(--surface-tint);margin-bottom:20px}
  .protocol-tab{border:none;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:700;padding:9px 18px;border-radius:10px;cursor:pointer}
  .protocol-tab.active{background:var(--card);color:var(--violet)}
  .protocol-pane{display:none}
  .protocol-pane.active{display:block}
  .protocol-empty{min-height:320px;padding:54px 28px;display:grid;place-items:center;text-align:center;background:var(--card)}
  .protocol-empty .step-icon{width:58px;height:58px;border-radius:19px;margin:0 auto 18px}
  .protocol-empty h2{font-size:20px;font-weight:700;letter-spacing:-.01em;margin-bottom:8px}
  .protocol-empty p{font-size:13.5px;color:var(--muted);line-height:1.55}
  .protocol-empty.protocol-pane{display:none}
  .protocol-empty.protocol-pane.active{display:grid}
  .protocol-locked{min-height:520px;padding:64px 32px;display:grid;place-items:center;text-align:center;background:var(--card)}
  .protocol-locked .hm-ring{width:156px;height:156px;margin:0 auto 28px}
  .protocol-locked h2{font-size:22px;font-weight:700;letter-spacing:-.012em;line-height:1.35;max-width:520px;margin:0 auto 10px}
  .protocol-locked p{font-size:13.5px;line-height:1.55;color:var(--muted);max-width:430px;margin:0 auto}
  .protocol-hero{padding:28px 30px;margin-bottom:24px;display:grid;grid-template-columns:1fr 280px;gap:24px;align-items:center;background:var(--card)}
  .protocol-kicker{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--violet);margin-bottom:14px}
  .protocol-hero h2{font-size:24px;font-weight:700;letter-spacing:-.014em;margin-bottom:6px}
  .protocol-hero .goal-label{font-size:14px;font-weight:700;color:var(--ink-2);margin-bottom:18px}
  .protocol-meta{display:flex;align-items:center;gap:18px;color:var(--muted);font-size:12.5px;font-weight:600;margin-bottom:24px}
  .protocol-meta span{display:inline-flex;align-items:center;gap:7px}
  .protocol-meta svg{width:16px;height:16px;color:var(--violet);stroke-width:1.8}
  .progress-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);font-weight:700;margin-bottom:8px}
  .progress-row b{color:var(--ink-2);font-weight:700}
  .protocol-progress{height:7px;border-radius:999px;background:#ECECF4;overflow:hidden;margin-bottom:20px}
  .protocol-progress i{display:block;width:40%;height:100%;border-radius:999px;background:var(--violet)}
  .next-step{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--hair);border-radius:16px;background:var(--surface)}
  .step-icon{width:42px;height:42px;border-radius:14px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet);flex-shrink:0}
  .step-icon svg{width:22px;height:22px;stroke-width:1.8}
  .next-step small{font-size:11px;color:var(--faint);font-weight:700}
  .next-step b{display:block;font-size:13.5px;margin:3px 0;color:var(--ink)}
  .next-step p{font-size:12px;color:var(--muted)}
  .mini-btn{height:36px;border:1px solid var(--hair);background:var(--card);border-radius:11px;color:var(--violet);font:inherit;font-size:12px;font-weight:700;padding:0 14px;cursor:pointer}
  .protocol-art{justify-self:end;width:230px;height:230px;border-radius:50%;display:grid;place-items:center;background:var(--surface-tint);color:var(--violet)}
  .protocol-art svg{width:124px;height:124px;stroke-width:1.35}
  .section-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}
  .section-head h2{font-size:18px;font-weight:700;letter-spacing:-.01em}
  .info-pill{height:34px;border:1px solid var(--hair);border-radius:12px;background:var(--card);color:var(--violet);font-size:12px;font-weight:700;padding:0 13px;display:inline-flex;align-items:center;gap:8px}
  .protocol-plan{position:relative;margin-bottom:24px}
  .protocol-plan::before{content:"";position:absolute;left:16px;top:28px;bottom:32px;width:1px;background:#E1E1EB}
  .plan-item{position:relative;display:grid;grid-template-columns:36px 1fr;gap:16px;align-items:stretch;margin-bottom:10px}
  .plan-marker{width:26px;height:26px;border-radius:50%;margin-top:22px;background:#fff;border:1px solid #D9D8E6;color:var(--muted);display:grid;place-items:center;font-size:12px;font-weight:700;z-index:1}
  .plan-marker.done,.plan-marker.current{background:var(--violet);border-color:var(--violet);color:#fff}
  .plan-card{min-height:72px;border:1px solid var(--hair);border-radius:17px;background:var(--card);display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:16px 18px}
  .plan-card.current{background:var(--surface-tint)}
  .plan-card .step-icon{width:48px;height:48px;border-radius:16px}
  .plan-copy b{font-size:14px;font-weight:700}
  .plan-copy p{font-size:12.5px;color:var(--muted);margin-top:5px}
  .plan-status{display:flex;align-items:center;gap:20px;color:var(--muted);font-size:12px;font-weight:600}
  .plan-status b{display:block;color:var(--ink-2);font-weight:700;margin-bottom:3px}
  .plan-status svg{width:17px;height:17px;color:var(--muted)}
  .plan-card .btn-primary{height:38px;padding:0 26px;border-radius:11px}
  .protocol-note{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:22px 24px;background:var(--card)}
  .protocol-note .step-icon{width:56px;height:56px;border-radius:18px}
  .protocol-note h3{font-size:15px;font-weight:700;margin-bottom:6px}
  .protocol-note p{font-size:13px;line-height:1.55;color:var(--muted)}
  .create-protocol-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}
  .create-close{width:42px;height:42px;border:1px solid var(--hair);border-radius:50%;background:var(--card);color:var(--muted);display:grid;place-items:center;cursor:pointer}
  .create-close svg{width:19px;height:19px;stroke-width:1.8}
  .create-layout{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start;margin-bottom:88px}
  .create-main{display:flex;flex-direction:column;gap:10px}
  .create-section{padding:26px 28px;background:var(--card)}
  .create-section.collapsed{min-height:58px;padding:14px 24px;display:flex;align-items:center;justify-content:space-between}
  .create-section-title{display:flex;align-items:center;gap:14px;margin-bottom:22px}
  .create-step{width:30px;height:30px;border-radius:50%;background:var(--violet);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700}
  .create-section.collapsed .create-step{background:var(--violet-soft);color:var(--violet)}
  .create-section-title h2,.create-section.collapsed h2{font-size:16px;font-weight:700}
  .create-section.collapsed p{font-size:12.5px;color:var(--muted);font-weight:600}
  .create-form{display:grid;grid-template-columns:1fr 1fr;gap:18px}
  .field{display:flex;flex-direction:column;gap:8px}
  .field.full{grid-column:1/-1}
  .field label{font-size:12.5px;font-weight:700;color:var(--ink-2)}
  .input-wrap{position:relative}
  .create-input,.create-textarea,.create-select{width:100%;border:1px solid #DEDEEA;background:var(--surface);border-radius:12px;color:var(--ink);font:inherit;font-size:13px;font-weight:600;outline:none}
  .create-input,.create-select{height:42px;padding:0 14px}
  .create-textarea{min-height:86px;resize:vertical;padding:13px 14px;line-height:1.55}
  .create-input::placeholder,.create-textarea::placeholder{color:#AAA8BB;font-weight:600}
  .char-count{position:absolute;right:2px;bottom:-20px;color:var(--faint);font-size:12px;font-weight:600}
  .select-caret,.date-icon{position:absolute;right:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted);pointer-events:none}
  .date-icon{left:13px;right:auto}
  .date-input{padding-left:40px}
  .create-side{display:flex;flex-direction:column;gap:18px}
  .structure-card,.ask-ai-card{padding:24px;background:var(--card)}
  .structure-card h2,.ask-ai-card h2{font-size:16px;font-weight:700;margin-bottom:18px}
  .structure-list{display:flex;flex-direction:column;position:relative}
  .structure-row{display:grid;grid-template-columns:42px 1fr;gap:12px;align-items:center;padding:12px;border-radius:14px;position:relative}
  .structure-row.active{background:var(--surface-tint)}
  .structure-row:not(:last-child)::after{content:"";position:absolute;left:32px;top:54px;width:1px;height:22px;border-left:1px dashed #D8D6EA}
  .structure-icon{width:34px;height:34px;border-radius:50%;border:1px solid #D9D8E6;background:var(--card);display:grid;place-items:center;color:var(--muted)}
  .structure-row b{display:block;font-size:13px;font-weight:700;margin-bottom:3px}
  .structure-row span{font-size:12px;color:var(--muted);font-weight:600}
  .ask-ai-card{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start}
  .ask-ai-card .btn-primary{grid-column:1/-1;width:100%;height:44px;border-radius:11px;margin-top:4px}
  .ask-ai-card h2{margin-bottom:8px}
  .ask-ai-card p{font-size:13px;line-height:1.55;color:var(--muted)}
  .create-actions{position:sticky;bottom:18px;border:1px solid var(--hair);border-radius:18px;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}
  .create-actions-right{display:flex;align-items:center;gap:20px}
  .btn-primary.create-submit{height:44px;border-radius:11px;padding:0 28px;display:inline-flex;align-items:center;gap:12px}

  /* Organism page */
  .organism-layout{display:grid;grid-template-columns:1fr 280px;gap:22px;margin-bottom:24px}
  .body-map{padding:24px 26px;display:grid;grid-template-columns:220px 1fr;gap:24px;min-height:560px;background:var(--card)}
  .card-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
  .card-title-row h2{font-size:16px;font-weight:700;letter-spacing:-.006em}
  .info-dot{width:17px;height:17px;border:1px solid #C9C8D8;border-radius:50%;display:grid;place-items:center;color:var(--faint);font-size:11px;font-weight:800}
  .muted-label{font-size:12.5px;color:var(--muted);font-weight:600;margin-bottom:18px}
  .system-list{display:flex;flex-direction:column;gap:8px;margin-bottom:26px}
  .system-chip{height:46px;border:1px solid var(--hair);border-radius:13px;background:var(--surface);display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;padding:0 12px}
  .system-chip svg{width:20px;height:20px;color:var(--violet);stroke-width:1.8}
  .system-chip b{font-size:12.5px;font-weight:700;display:block;color:var(--ink)}
  .system-chip span{font-size:10.5px;color:var(--muted);display:inline-flex;align-items:center;gap:5px;margin-top:2px}
  .status-dot{width:6px;height:6px;border-radius:50%;background:#23C68B;display:inline-block}
  .status-dot.warn{background:#F4B740}.status-dot.focus{background:var(--violet)}
  .body-more{height:38px;border:1px solid var(--hair);border-radius:12px;background:var(--card);color:var(--violet);font:inherit;font-size:12.5px;font-weight:700;padding:0 14px;display:inline-flex;align-items:center;gap:8px}
  .human-stage{position:relative;display:grid;place-items:center;min-height:500px;background:var(--surface-tint);border-radius:20px;overflow:hidden}
  .human-stage::before{content:"";position:absolute;width:270px;height:270px;border-radius:50%;background:#F1F0FD;top:96px}
  .human-stage::after{content:"";position:absolute;width:230px;height:34px;border:1px solid #E3E1F5;border-radius:50%;bottom:40px}
  .human-svg{position:relative;z-index:1;width:260px;height:430px;color:#8F8BFA}
  .organism-side{display:flex;flex-direction:column;gap:18px}
  .health-memory-title .back-link{padding-bottom:12px}
  .organism-memory{padding:22px;background:var(--card)}
  .organism-memory h2{font-size:16px;font-weight:700;margin-bottom:18px}
  .organism-memory .hm-ring{width:132px;height:132px;margin:0 auto 18px}
  .organism-memory p{font-size:13px;line-height:1.55;color:var(--ink-2);margin-bottom:14px}
  .update-card{padding:17px 18px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:var(--card)}
  .update-card b{font-size:13px;font-weight:700;display:block;margin-bottom:5px}
  .update-card span{font-size:12.5px;color:var(--muted)}
  .update-card button{width:38px;height:38px;border:1px solid var(--hair);border-radius:12px;background:var(--surface-tint);color:var(--violet);display:grid;place-items:center}
  .insights-card{padding:20px;background:var(--card)}
  .insights-list{display:flex;flex-direction:column;gap:13px;margin:16px 0 18px}
  .insight{display:grid;grid-template-columns:auto 1fr;gap:11px;align-items:start}
  .insight .step-icon{width:34px;height:34px;border-radius:12px}
  .insight b{font-size:12.5px;font-weight:700;display:block;color:var(--ink)}
  .insight span{font-size:11.5px;color:var(--muted)}
  .metrics-panel{padding:22px 24px;margin-bottom:24px;background:var(--card)}
  .metrics-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
  .metrics-head h2{font-size:16px;font-weight:700}
  .metrics-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
  .metric-card{min-height:150px;border:1px solid var(--hair);border-radius:16px;background:var(--surface);padding:18px 16px;display:flex;flex-direction:column;gap:10px}
  .metric-card svg{width:26px;height:26px;color:var(--violet);stroke-width:1.8}
  .metric-card b{font-size:13px;font-weight:700;line-height:1.25}
  .metric-value{font-size:28px;font-weight:700;letter-spacing:-.02em;margin-top:auto}
  .metric-status{font-size:11.5px;font-weight:700;color:var(--muted)}
  .metric-status.good{color:#17A978}.metric-status.warn{color:#C88A12}.metric-status.focus{color:var(--violet)}
  .system-analysis{padding:20px 0;background:var(--card)}
  .system-analysis .metrics-head{padding:0 24px;margin-bottom:12px}
  .analysis-list{display:flex;flex-direction:column}
  .analysis-row{min-height:72px;border-top:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:12px 24px}
  .analysis-row:last-child{border-bottom:1px solid var(--hair)}
  .analysis-row .step-icon{width:48px;height:48px;border-radius:16px}
  .analysis-row b{font-size:14px;font-weight:700}
  .analysis-row p{font-size:12.5px;color:var(--muted);margin-top:4px}
  .analysis-status{display:flex;align-items:center;gap:18px;font-size:12.5px;color:var(--muted);font-weight:700}
  .analysis-more{display:flex;justify-content:center;padding-top:18px}

  /* Data page */
  .med-record-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin-bottom:28px}
  .med-record-card{grid-column:span 4;min-height:190px;padding:29px 24px 23px;border:1px solid rgba(127,139,229,.24);border-radius:26px;background:linear-gradient(108deg,#F7FCFF 0%,#E8F4FF 52%,#DCD3FF 100%);box-shadow:0 16px 34px rgba(48,64,108,.09),inset 0 1px 0 rgba(255,255,255,.82);position:relative;overflow:hidden;color:var(--ink);isolation:isolate}
  .med-record-card[data-med-target]{cursor:pointer;transition:border-color .22s ease,background .22s ease}
  .med-record-card[data-med-target]:hover{transform:none;border-color:rgba(110,125,225,.36)}
  .med-record-card[data-med-target]:focus-visible{outline:3px solid rgba(101,126,238,.3);outline-offset:3px}
  .med-record-card::before{content:"";position:absolute;width:255px;height:255px;border-radius:50%;right:-92px;bottom:-150px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.48);z-index:-1}
  .med-record-card::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 74% 50%,rgba(255,255,255,.48),transparent 38%);z-index:-2}
  .med-record-card.hypotheses,.med-record-card.devices{grid-column:span 6}
  .med-record-card h2{font-size:23px;line-height:1.08;letter-spacing:-.035em;margin:0;position:relative;z-index:2;color:var(--ink)}
  .med-record-arrow{position:absolute;left:24px;bottom:24px;display:flex;align-items:center;gap:7px;color:rgba(72,88,159,.72);font-size:12px;font-weight:650;letter-spacing:.01em;z-index:4;transition:color .22s ease}
  .med-record-arrow::before{content:"Открыть"}
  .med-record-card.diagnoses .med-record-arrow::before{content:"Пока недоступно"}
  .med-record-card.diagnoses .med-record-arrow svg{display:none}
  .med-record-arrow svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7}
  .med-record-card[data-med-target]:hover .med-record-arrow{color:#5368d5}
  .med-record-card[data-med-target]:hover .med-record-arrow svg{transform:none}
  .med-record-art{position:absolute;right:-13px;bottom:-8px;width:183px;height:183px;z-index:1;display:block;pointer-events:none}
  .med-record-card.hypotheses .med-record-art,.med-record-card.devices .med-record-art{right:8px;bottom:-11px;width:205px;height:205px}
  .med-record-art img{width:100%;height:100%;display:block;object-fit:contain;filter:drop-shadow(0 22px 25px rgba(42,70,130,.2));transform:rotate(-2deg)}
  .med-record-card.examinations .med-record-art img{transform:rotate(2deg)}
  .med-record-card.devices .med-record-art img{transform:rotate(3deg)}
  .med-articles{margin:0 0 28px}
  .summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}
  .summary-card{min-height:124px;padding:22px 20px;background:var(--card);display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start}
  .summary-card .step-icon{width:48px;height:48px;border-radius:16px}
  .summary-card small{font-size:11px;color:var(--muted);font-weight:700}
  .summary-card b{display:block;font-size:25px;font-weight:700;letter-spacing:-.02em;margin:6px 0 4px}
  .summary-card span{font-size:11.5px;color:var(--muted);font-weight:600;line-height:1.35}
  .sources-panel{padding:20px 0 14px;background:var(--card);margin-bottom:26px}
  .sources-panel .metrics-head{padding:0 24px;margin-bottom:12px}
  .source-list{border-top:1px solid var(--hair)}
  .source-row{min-height:72px;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr minmax(118px,auto) auto auto;gap:16px;align-items:center;padding:12px 24px}
  .source-icon{width:46px;height:46px;border-radius:15px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet);overflow:hidden}
  .source-icon svg{width:24px;height:24px;stroke-width:1.8}
  .source-icon.apple{background:#fff;color:#E9415A;border:1px solid var(--hair)}
  .source-icon.garmin{background:#10131D;color:#5BC2FF}
  .source-copy b{font-size:14px;font-weight:700}
  .source-copy p{font-size:12.5px;color:var(--muted);margin-top:5px}
  .source-status{min-width:118px;font-size:12px;color:var(--muted);font-weight:600}
  .source-status b{display:flex;align-items:center;gap:7px;color:var(--ink-2);font-size:12px;margin-bottom:5px}
  .source-status.inactive b{color:var(--muted)}
  .source-row .mini-btn{width:112px}
  .security-note{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 24px;color:var(--muted);font-size:12.5px}
  .security-note span{display:inline-flex;align-items:center;gap:9px}
  .security-note svg{width:17px;height:17px;color:var(--violet)}
  .data-workspace{display:grid;grid-template-columns:1fr 280px;gap:22px}
  .my-data{padding:20px 0;background:var(--card)}
  .my-data h2{font-size:16px;font-weight:700;padding:0 24px;margin-bottom:14px}
  .data-tabs{display:flex;gap:4px;padding:0 24px 14px;border-bottom:1px solid var(--hair)}
  .data-tab{height:34px;border:none;border-radius:11px;background:transparent;color:var(--muted);font:inherit;font-size:12px;font-weight:700;padding:0 14px;cursor:pointer}
  .data-tab.active{background:var(--surface-tint);color:var(--violet)}
  .data-table{display:flex;flex-direction:column}
  .data-row{min-height:58px;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr 130px 110px auto;gap:14px;align-items:center;padding:10px 24px}
  .data-row .source-icon{width:34px;height:34px;border-radius:12px;background:transparent}
  .data-row b{font-size:13px;font-weight:700}
  .data-row span{font-size:12px;color:var(--muted);font-weight:600}
  .row-menu{display:flex;align-items:center;gap:10px;color:var(--muted)}
  .row-menu svg{width:16px;height:16px}
  .show-all{display:flex;justify-content:center;padding-top:16px}
  .import-side{display:flex;flex-direction:column;gap:18px}
  .import-card,.export-card{padding:22px;background:var(--card)}
  .import-card h2,.export-card h2{font-size:16px;font-weight:700;margin-bottom:14px}
  .import-art{height:150px;border-radius:18px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet);margin-bottom:16px}
  .import-art svg{width:92px;height:92px;stroke-width:1.45}
  .import-card p,.export-card p{font-size:12.5px;line-height:1.55;color:var(--muted);margin-bottom:16px}
  .import-card .btn-primary,.export-card .btn-soft{width:100%;justify-content:center}

  /* Settings page */
  .settings-section{padding:24px;background:var(--card);margin-bottom:24px}
  .settings-section h2{font-size:17px;font-weight:700;letter-spacing:-.008em;margin-bottom:20px}
  .profile-card{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}
  .profile-main{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:center}
  .profile-photo{position:relative;width:116px;height:116px;border-radius:50%;background:var(--surface-tint);display:grid;place-items:center;overflow:hidden}
  .profile-photo svg{width:116px;height:116px}
  .photo-btn{position:absolute;right:3px;bottom:8px;width:30px;height:30px;border:1px solid var(--hair);border-radius:10px;background:#fff;color:var(--violet);display:grid;place-items:center}
  .profile-name h3{font-size:21px;font-weight:700;margin-bottom:6px}
  .profile-name p{font-size:13px;color:var(--muted);line-height:1.55}
  .profile-name .btn-soft{margin-top:14px}
  .profile-facts{display:grid;gap:0;border-left:1px solid var(--hair);padding-left:34px}
  .profile-fact{display:flex;justify-content:space-between;gap:20px;padding:10px 0;border-bottom:1px solid var(--hair);font-size:13px;color:var(--muted);font-weight:600}
  .profile-fact:last-child{border-bottom:none}
  .profile-fact b{color:var(--ink-2);font-weight:700}
  .settings-grid{display:grid;grid-template-columns:1fr 320px;gap:22px;align-items:stretch}
  .settings-list{display:flex;flex-direction:column;border:1px solid var(--hair);border-radius:17px;overflow:hidden;background:#fff}
  .settings-row{min-height:68px;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px 16px}
  .settings-row[data-open-view],.settings-row[href]{cursor:pointer;transition:.18s ease;color:inherit;text-decoration:none}
  .settings-row[data-open-view]:hover{background:var(--surface-tint)}
  .settings-row:last-child{border-bottom:none}
  .settings-row .step-icon{width:40px;height:40px;border-radius:14px}
  .settings-row b{font-size:13.5px;font-weight:700}
  .settings-row p{font-size:12px;color:var(--muted);line-height:1.4;margin-top:4px}
  .settings-row svg.chev{width:17px;height:17px;color:var(--muted)}
  .goal-card{padding:28px;background:var(--surface-tint);border:1px solid var(--hair);border-radius:18px}
  .goal-card small{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:14px}
  .goal-card h3{font-size:19px;font-weight:700;color:var(--violet);margin-bottom:22px}
  .goal-card .bar{margin-bottom:12px}
  .goal-card .goal-pct{margin:0;font-size:27px}
  .security-art,.about-brand{border:1px solid var(--hair);border-radius:18px;background:var(--surface-tint);display:grid;place-items:center;min-height:260px;color:var(--violet);text-align:center;padding:24px}
  .security-art svg{width:128px;height:128px;stroke-width:1.25}
  .about-brand svg{width:74px;height:74px;margin-bottom:18px}
  .about-brand h3{font-size:20px;font-weight:700;margin-bottom:10px}
  .about-brand p{font-size:13px;line-height:1.55;color:var(--muted);max-width:220px;margin:0 auto 22px}
  .about-brand small{font-size:11.5px;color:var(--faint);line-height:1.45}

  /* Privacy page */
  .back-link{border:none;background:transparent;color:var(--ink-2);font:inherit;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:9px;cursor:pointer;padding:0 0 18px}
  .back-link svg{width:18px;height:18px;stroke-width:1.9}
  .privacy-head{margin-bottom:28px}
  .privacy-head h1{font-size:27px;font-weight:800;letter-spacing:-.018em;margin-bottom:12px}
  .privacy-head p{font-size:14px;color:var(--muted);line-height:1.55}
  .privacy-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:32px;align-items:start}
  .privacy-main{display:flex;flex-direction:column;gap:24px}
  .privacy-group h2{font-size:15px;font-weight:800;letter-spacing:-.006em;margin-bottom:14px}
  .privacy-list{display:flex;flex-direction:column;border:1px solid var(--hair);border-radius:16px;overflow:hidden;background:var(--card)}
  .privacy-row{min-height:72px;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr auto auto;gap:18px;align-items:center;padding:14px 18px}
  .privacy-row[data-open-view],.privacy-row[href]{cursor:pointer;transition:background .18s ease,color .18s ease;color:inherit;text-decoration:none}
  .privacy-row[data-open-view]:hover,.privacy-row[href]:hover{background:var(--violet-tint)}
  .privacy-row[data-open-view]:hover .step-icon,.privacy-row[href]:hover .step-icon{background:var(--violet-soft);color:var(--violet)}
  .privacy-row[data-open-view]:hover .chev,.privacy-row[href]:hover .chev{color:var(--violet)}
  .privacy-row:last-child{border-bottom:none}
  .privacy-row .step-icon{width:42px;height:42px;border-radius:14px}
  .privacy-row b{display:block;font-size:13.5px;font-weight:800;margin-bottom:5px}
  .privacy-row p{font-size:12.5px;color:var(--muted);line-height:1.4}
  .privacy-row .chev{width:17px;height:17px;color:var(--muted);grid-column:4}
  .privacy-card{position:sticky;top:36px;border:1px solid var(--hair);border-radius:18px;background:var(--card);padding:44px 30px 34px;text-align:center;min-height:640px;display:flex;flex-direction:column;align-items:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.9)}
  .privacy-shield{width:150px;height:150px;color:var(--violet);margin:10px 0 24px}
  .privacy-card h2{font-size:18px;font-weight:800;line-height:1.35;letter-spacing:-.01em;margin-bottom:18px}
  .privacy-card>p{font-size:13.5px;line-height:1.7;color:var(--muted);margin-bottom:30px}
  .privacy-points{display:flex;flex-direction:column;gap:20px;text-align:left;width:100%;margin-bottom:auto}
  .privacy-point{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start;font-size:12.5px;line-height:1.5;color:var(--muted);font-weight:600}
  .privacy-point .mini-icon{width:24px;height:24px;border-radius:9px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet);flex-shrink:0}
  .privacy-point svg{width:15px;height:15px;stroke-width:2}
  .privacy-card .link{margin-top:34px}
  .access-layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
  .access-list .privacy-row{min-height:76px}
  .access-badge{height:26px;border-radius:11px;background:var(--surface-tint);color:var(--violet);font-size:12px;font-weight:800;display:inline-flex;align-items:center;padding:0 12px;justify-self:end;white-space:nowrap}
  .access-label{color:var(--muted);font-size:12px;font-weight:800;justify-self:end;white-space:nowrap}
  .access-add{height:48px;border:none;background:#fff;color:var(--violet);font:inherit;font-size:13px;font-weight:800;width:100%;display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer}
  .access-add svg{width:18px;height:18px;stroke-width:2}
  .safe-note{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;border:1px solid var(--hair);border-radius:16px;background:var(--surface-tint);padding:18px 20px}
  .safe-note .step-icon{width:42px;height:42px;border-radius:14px}
  .safe-note h3{font-size:13.5px;font-weight:800;margin-bottom:6px}
  .safe-note p{font-size:12px;color:var(--muted);line-height:1.55;font-weight:700}
  .access-hero{width:128px;height:128px;color:var(--violet);margin:6px 0 24px}
  .grant-layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
  .grant-layout .privacy-main{gap:22px}
  .grant-step h2{font-size:15px;font-weight:800;letter-spacing:-.006em;margin-bottom:12px}
  .grant-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
  .grant-type{border:1px solid var(--hair);border-radius:14px;background:#fff;min-height:70px;padding:16px;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}
  .grant-type.active{border-color:var(--violet);box-shadow:0 0 0 1px rgba(91,77,240,.18)}
  .grant-type .step-icon{width:40px;height:40px;border-radius:13px}
  .grant-type b{display:block;font-size:13px;font-weight:800;margin-bottom:5px}
  .grant-type p{font-size:11.5px;color:var(--muted);font-weight:700;line-height:1.4}
  .radio-dot{width:18px;height:18px;border-radius:50%;border:1.5px solid rgba(24,22,64,.18);display:grid;place-items:center}
  .grant-type.active .radio-dot{border-color:var(--violet)}
  .grant-type.active .radio-dot::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--violet)}
  .grant-recipient{border:1px solid var(--hair);border-radius:16px;background:var(--card);padding:14px}
  .grant-tabs{display:grid;grid-template-columns:1fr 1fr;gap:0;background:var(--surface-tint);border-radius:12px;margin-bottom:14px;padding:3px}
  .grant-tab{height:34px;border:none;border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:800}
  .grant-tab.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px rgba(24,22,64,.06)}
  .grant-field label{display:block;font-size:12px;font-weight:700;color:var(--ink-2);margin:0 0 8px 2px}
  .grant-field input{width:100%;height:42px;border:1px solid rgba(24,22,64,.12);border-radius:10px;background:#fff;font:inherit;font-size:13px;font-weight:700;color:var(--ink);padding:0 14px;outline:none}
  .grant-field input:focus{border-color:rgba(91,77,240,.45);box-shadow:0 0 0 3px rgba(91,77,240,.08)}
  .grant-permission-list{border:1px solid var(--hair);border-radius:16px;background:var(--card);overflow:hidden}
  .grant-row{min-height:62px;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:12px 18px}
  .grant-row:last-child{border-bottom:none}
  .grant-row b{display:block;font-size:13.5px;font-weight:800;margin-bottom:5px}
  .grant-row p{font-size:12px;color:var(--muted);line-height:1.4}
  .grant-row .chev{width:17px;height:17px;color:var(--muted)}
  .grant-duration{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
  .duration-btn{height:40px;border:1px solid var(--hair);border-radius:11px;background:#fff;color:var(--muted);font:inherit;font-size:12.5px;font-weight:800}
  .duration-btn.active{border-color:var(--violet);color:var(--violet);box-shadow:0 0 0 1px rgba(91,77,240,.18)}
  .grant-actions{display:grid;grid-template-columns:1.1fr 1fr;gap:14px}
  .grant-actions .btn-primary,.grant-actions .btn-outline{width:100%;justify-content:center}
  .history-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start}
  .history-toolbar{display:grid;grid-template-columns:1fr 1.25fr auto 1fr;gap:12px;align-items:center;margin-bottom:14px}
  .history-control{height:38px;border:1px solid var(--hair);border-radius:11px;background:#fff;color:var(--ink-2);font:inherit;font-size:12.5px;font-weight:800;padding:0 14px;display:inline-flex;align-items:center;justify-content:space-between;gap:10px}
  .history-actions{display:flex;justify-content:flex-end;gap:18px}
  .history-actions .link{font-size:12.5px}
  .history-card{border:1px solid var(--hair);border-radius:16px;background:var(--card);overflow:hidden}
  .history-count{padding:16px 18px;border-bottom:1px solid var(--hair);font-size:13px;font-weight:800}
  .history-row{min-height:70px;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr auto auto;gap:16px;align-items:center;padding:14px 18px}
  .history-row:last-child{border-bottom:none}
  .history-row .step-icon{width:40px;height:40px;border-radius:13px}
  .history-row b{display:block;font-size:13px;font-weight:800;margin-bottom:5px}
  .history-row p{font-size:12px;color:var(--muted);font-weight:700;line-height:1.45}
  .history-time{font-size:12px;color:var(--ink-2);font-weight:800;white-space:nowrap}
  .history-row .chev{width:17px;height:17px;color:var(--muted)}
  .pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:18px}
  .page-btn{width:32px;height:32px;border:1px solid var(--hair);border-radius:10px;background:#fff;color:var(--ink-2);font:inherit;font-size:12.5px;font-weight:800;display:grid;place-items:center}
  .page-btn.active{border-color:var(--violet);color:var(--violet);box-shadow:0 0 0 1px rgba(91,77,240,.18)}
  .history-hero{width:128px;height:128px;color:var(--violet);margin:6px 0 24px}
  .collected-hero{width:150px;height:120px;color:var(--violet);margin:14px 0 26px}
  .security-status{display:inline-flex;align-items:center;gap:8px;color:#27B983;font-size:12px;font-weight:800;justify-self:end}
  .security-value{color:var(--violet);font-size:12px;font-weight:800;justify-self:end}
  .security-tip{width:100%;margin-top:28px;border:1px solid var(--hair);border-radius:16px;background:var(--surface-tint);padding:18px 20px;text-align:left;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start}
  .security-tip .mini-icon{width:28px;height:28px;border-radius:10px;background:#fff;display:grid;place-items:center;color:var(--violet)}
  .security-tip svg{width:16px;height:16px;stroke-width:2}
  .security-tip b{display:block;font-size:13px;font-weight:800;color:var(--violet);margin-bottom:6px}
  .security-tip p{font-size:12.5px;line-height:1.5;color:var(--muted)}
  .delete-layout .privacy-card{min-height:720px}
  .delete-shield{color:#EF2F5F}
  .delete-section-title{font-size:15px;font-weight:800;letter-spacing:-.006em;margin-bottom:14px}
  .download-row{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;border:1px solid var(--hair);border-radius:16px;background:var(--card);padding:18px;margin-bottom:24px}
  .download-row b{display:block;font-size:13.5px;font-weight:800;margin-bottom:6px}
  .download-row p{font-size:12.5px;color:var(--muted)}
  .download-row .step-icon{width:42px;height:42px;border-radius:14px}
  .danger-box{border:1px solid rgba(239,47,95,.22);border-radius:16px;background:var(--card);overflow:hidden;margin-bottom:18px}
  .danger-head{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start;padding:20px;background:rgba(239,47,95,.055);border-bottom:1px solid rgba(239,47,95,.16)}
  .danger-head svg{width:30px;height:30px;color:#EF2F5F;stroke-width:1.8}
  .danger-head b{display:block;color:#C91442;font-size:14px;font-weight:800;margin-bottom:8px}
  .danger-head p{font-size:12.5px;line-height:1.55;color:var(--muted)}
  .confirm-box{padding:18px 20px 20px}
  .confirm-box label{display:block;font-size:12.5px;color:var(--ink-2);font-weight:700;margin-bottom:10px}
  .confirm-box input{width:100%;height:42px;border:1px solid rgba(24,22,64,.18);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:13.5px;font-weight:700;padding:0 14px;outline:none}
  .confirm-box input:focus{border-color:rgba(239,47,95,.45);box-shadow:0 0 0 3px rgba(239,47,95,.08)}
  .delete-actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .btn-danger{border:none;cursor:pointer;font-family:inherit;color:#fff;font-size:14px;font-weight:800;padding:14px 22px;border-radius:13px;background:linear-gradient(180deg,#F12F63,#E81E50);display:inline-flex;align-items:center;justify-content:center;gap:9px}
  .btn-danger svg{width:17px;height:17px;stroke-width:2}
  .delete-faq{width:100%;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);margin-top:30px}
  .delete-faq-item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;padding:17px 0;border-bottom:1px solid var(--hair);text-align:left}
  .delete-faq-item:last-child{border-bottom:none}
  .delete-faq-item .mini-icon{width:24px;height:24px;border-radius:9px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet)}
  .delete-faq-item svg{width:15px;height:15px;stroke-width:2}
  .delete-faq-item b{display:block;font-size:12.5px;font-weight:800;margin-bottom:6px;color:var(--ink-2)}
  .delete-faq-item p{font-size:12px;line-height:1.5;color:var(--muted)}
  .delete-support-link{margin-top:24px}
  .export-layout{grid-template-columns:minmax(0,1fr) 360px;align-items:start}
  .export-layout .privacy-main{gap:16px}
  .export-panel{border:1px solid var(--hair);border-radius:16px;background:var(--card);padding:22px 20px}
  .export-panel h2{font-size:15px;font-weight:800;letter-spacing:-.006em;margin-bottom:20px}
  .export-row{min-height:62px;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:12px 14px}
  .export-row:last-child{border-bottom:none}
  .export-row .step-icon{width:40px;height:40px;border-radius:13px}
  .export-row b{display:block;font-size:13.5px;font-weight:800;margin-bottom:5px}
  .export-row p{font-size:12px;color:var(--muted);line-height:1.4}
  .check-square{width:17px;height:17px;border:1.5px solid rgba(91,77,240,.35);border-radius:4px;display:grid;place-items:center;color:#fff;background:#fff}
  .check-square.checked{background:var(--violet);border-color:var(--violet)}
  .check-square svg{width:12px;height:12px;stroke-width:3}
  .export-list-actions{display:flex;gap:28px;padding:16px 14px 4px}
  .export-list-actions button{border:none;background:transparent;color:var(--violet);font:inherit;font-size:12.5px;font-weight:800;cursor:pointer}
  .format-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
  .format-card{min-height:96px;border:1px solid var(--hair);border-radius:11px;background:#fff;padding:16px;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:start}
  .format-card.active{border-color:var(--violet);box-shadow:0 0 0 1px rgba(91,77,240,.2)}
  .format-dot{width:18px;height:18px;border-radius:50%;border:2px solid var(--violet);display:grid;place-items:center;margin-top:2px}
  .format-dot::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--violet);display:block}
  .format-card:not(.active) .format-dot{border-color:rgba(24,22,64,.16)}
  .format-card:not(.active) .format-dot::after{display:none}
  .format-card b{font-size:13px;font-weight:800;display:block;margin-bottom:12px}
  .format-card p{font-size:10.5px;line-height:1.45;color:var(--muted);font-weight:700}
  .export-summary{border:1px solid var(--hair);border-radius:16px;background:var(--card);padding:22px;min-height:420px}
  .export-summary h2{font-size:15px;font-weight:800;margin-bottom:18px}
  .summary-items{display:flex;flex-direction:column;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--hair)}
  .summary-item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}
  .summary-item .mini-icon{width:26px;height:26px;border-radius:9px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet)}
  .summary-item svg{width:15px;height:15px;stroke-width:2}
  .summary-item b{font-size:13px;font-weight:800}
  .summary-item span{font-size:12px;font-weight:800;color:var(--ink-2)}
  .summary-meta{display:flex;flex-direction:column;gap:14px;padding:18px 0;border-bottom:1px solid var(--hair)}
  .summary-meta div{display:flex;justify-content:space-between;gap:18px;font-size:13px;color:var(--muted);font-weight:700}
  .summary-meta b{color:var(--ink);font-weight:800}
  .export-delivery{border:1px solid var(--hair);border-radius:16px;background:var(--card);padding:20px 18px}
  .export-delivery h2{font-size:15px;font-weight:800;margin-bottom:14px}
  .delivery-select{border:1px solid var(--hair);border-radius:13px;background:#fff;padding:14px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}
  .delivery-select .mini-icon{width:34px;height:34px;border-radius:12px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet)}
  .delivery-select b{font-size:13px;font-weight:800}
  .delivery-select p{font-size:12px;color:var(--muted);font-weight:700;margin-top:3px}
  .export-cta{margin-top:14px;width:100%;justify-content:center;display:inline-flex;align-items:center;gap:10px}
  .export-footnote{text-align:center;font-size:12px;line-height:1.55;color:var(--muted);margin-top:14px}

  /* Backup page */
  .backup-layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
  .backup-layout .privacy-main{gap:18px}
  .backup-section h2{font-size:15px;font-weight:800;letter-spacing:-.006em;margin-bottom:12px}
  .backup-card{border:1px solid var(--hair);border-radius:16px;background:var(--card);overflow:hidden}
  .backup-overview{display:grid;grid-template-columns:auto 1fr auto;gap:26px;align-items:center;padding:28px 30px}
  .backup-cloud{width:78px;height:78px;color:var(--violet);display:grid;place-items:center}
  .backup-cloud svg{width:72px;height:72px;stroke-width:1.5}
  .backup-facts{display:grid;grid-template-columns:1fr;gap:14px}
  .backup-fact small{display:block;font-size:12px;color:var(--muted);font-weight:700;margin-bottom:5px}
  .backup-fact b{display:block;font-size:13px;font-weight:800;color:var(--ink)}
  .backup-fact .ok{color:#25B873}
  .backup-action{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
  .backup-action small{font-size:11.5px;color:var(--muted);line-height:1.45;font-weight:700;max-width:180px}
  .backup-row{min-height:68px;border-bottom:1px solid var(--hair);display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:14px 18px}
  .backup-row:last-child{border-bottom:none}
  .backup-row .step-icon{width:40px;height:40px;border-radius:13px}
  .backup-row b{display:block;font-size:13.5px;font-weight:800;margin-bottom:5px}
  .backup-row p{font-size:12px;color:var(--muted);line-height:1.4}
  .toggle-switch{width:40px;height:22px;border-radius:99px;background:var(--violet);position:relative;box-shadow:inset 0 1px 2px rgba(24,22,64,.14)}
  .toggle-switch::after{content:"";position:absolute;right:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(24,22,64,.18)}
  .backup-check{width:18px;height:18px;color:#26B978}
  .restore-row{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:18px}
  .restore-row .step-icon{width:40px;height:40px;border-radius:13px}
  .restore-row b{display:block;font-size:13.5px;font-weight:800;margin-bottom:5px}
  .restore-row p{font-size:12px;color:var(--muted);line-height:1.4}
  .backup-shield{width:128px;height:128px;color:var(--violet);margin:2px 0 24px}
  .backup-points{width:100%;border-top:1px solid var(--hair);margin-top:22px;padding-top:20px;display:flex;flex-direction:column;gap:20px;text-align:left}
  .backup-point{display:grid;grid-template-columns:auto 1fr;gap:13px;align-items:start}
  .backup-point .mini-icon{width:24px;height:24px;border-radius:9px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet)}
  .backup-point svg{width:15px;height:15px;stroke-width:2}
  .backup-point b{display:block;font-size:12.5px;font-weight:800;color:var(--ink-2);margin-bottom:5px}
  .backup-point p{font-size:12px;line-height:1.5;color:var(--muted);font-weight:700}

  /* Family page */
  .family-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:26px}
  .family-title h1{display:flex;align-items:center;gap:14px;font-size:28px;font-weight:800;letter-spacing:-.018em;margin-bottom:10px}
  .family-title h1 svg{width:30px;height:30px;color:var(--violet);stroke-width:1.8}
  .family-title p{font-size:14px;color:var(--muted);line-height:1.55}
  .family-help{margin-top:8px}
  .family-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:22px;align-items:start}
  .family-main{display:flex;flex-direction:column;gap:18px}
  .family-overview{padding:26px;background:var(--card)}
  .family-overview h2{font-size:16px;font-weight:800;margin-bottom:24px}
  .family-overview-grid{display:grid;grid-template-columns:auto 1fr 1fr auto;gap:24px;align-items:center}
  .family-icon{width:62px;height:62px;border-radius:18px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet)}
  .family-icon svg{width:34px;height:34px;stroke-width:1.6}
  .family-stat small{display:block;font-size:12.5px;color:var(--muted);font-weight:700;margin-bottom:8px}
  .family-stat b{display:block;font-size:22px;font-weight:800;letter-spacing:-.02em;margin-bottom:10px}
  .family-stat a{color:var(--muted);font-size:12px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
  .family-progress{height:6px;border-radius:99px;background:#E1E0EB;overflow:hidden;max-width:220px;margin-bottom:10px}
  .family-progress i{display:block;width:34%;height:100%;border-radius:99px;background:var(--violet)}
  .family-content{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.85fr);gap:18px;align-items:start}
  .family-section-title{font-size:15px;font-weight:800;margin-bottom:10px}
  .relatives-card{background:var(--card);border:1px solid var(--hair);border-radius:16px;overflow:hidden}
  .relative-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center;padding:16px 18px;border-bottom:1px solid var(--hair)}
  .relative-row:last-child{border-bottom:none}
  .relative-avatar{width:44px;height:44px;border-radius:16px;background:linear-gradient(180deg,#F4F3FD,#ECEAFC);display:grid;place-items:center;font-size:24px;overflow:hidden}
  .relative-copy b{font-size:13.5px;font-weight:800;margin-right:8px}
  .relative-copy p{font-size:12px;color:var(--muted);font-weight:700;line-height:1.55;margin-top:5px}
  .status-pill{display:inline-flex;align-items:center;height:22px;border-radius:99px;background:#E6F8EC;color:#23A866;font-size:10.5px;font-weight:800;padding:0 10px;vertical-align:middle}
  .status-pill.off{background:#F1F0F7;color:var(--muted)}
  .memory-link{color:var(--violet);font-weight:800}
  .relative-menu{width:28px;height:28px;border:none;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
  .relative-menu svg{width:17px;height:17px;stroke-width:2}
  .family-add{height:48px;border:none;background:#fff;color:var(--violet);font:inherit;font-size:13px;font-weight:800;width:100%;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
  .family-add svg{width:18px;height:18px;stroke-width:2}
  .family-side-stack{display:flex;flex-direction:column;gap:16px}
  .family-insight-card{padding:20px;background:var(--card)}
  .family-insight-card h2{font-size:15px;font-weight:800;margin-bottom:18px}
  .anamnesis-list{display:flex;flex-direction:column;gap:15px}
  .anamnesis-item{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--ink-2);font-weight:700}
  .anamnesis-dot{width:14px;height:14px;border-radius:50%;border:1.5px solid #BCB9D0;display:grid;place-items:center;flex-shrink:0}
  .anamnesis-dot.done{background:#27C878;border-color:#27C878;color:#fff}
  .anamnesis-dot svg{width:10px;height:10px;stroke-width:3}
  .bios-understood{padding:20px;background:var(--card)}
  .bios-understood h2{font-size:15px;font-weight:800;margin-bottom:12px}
  .bios-understood p{font-size:12.5px;color:var(--muted);font-weight:700;margin-bottom:12px}
  .bios-understood ul{list-style:none;display:flex;flex-direction:column;gap:12px;margin-bottom:18px}
  .bios-understood li{position:relative;padding-left:20px;font-size:12.5px;line-height:1.55;color:var(--ink-2);font-weight:700}
  .bios-understood li::before{content:"";position:absolute;left:4px;top:.68em;width:5px;height:5px;border-radius:50%;background:var(--violet)}
  .family-protection{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:18px 22px;background:var(--surface-tint);border:1px solid var(--hair);border-radius:18px}
  .family-protection .step-icon{width:48px;height:48px;border-radius:16px}
  .family-protection h3{font-size:13.5px;font-weight:800;margin-bottom:6px}
  .family-protection p{font-size:12px;line-height:1.55;color:var(--muted);font-weight:700}
  .invite-card{position:sticky;top:36px;padding:28px 18px;background:var(--card);text-align:center;display:flex;flex-direction:column;align-items:center}
  .invite-illo{position:relative;width:78px;height:78px;border-radius:22px;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet);margin:8px 0 22px}
  .invite-illo svg{width:42px;height:42px;stroke-width:1.5}
  .invite-plus{position:absolute;right:-8px;bottom:8px;width:30px;height:30px;border-radius:50%;background:linear-gradient(180deg,#A99DFF,#6B5CF6);color:#fff;display:grid;place-items:center;font-size:20px;line-height:1}
  .invite-card h2{font-size:17px;font-weight:800;line-height:1.25;margin-bottom:12px}
  .invite-card p{font-size:12.5px;line-height:1.65;color:var(--muted);font-weight:700;margin-bottom:16px}
  .invite-card .btn-primary{width:100%;justify-content:center;margin-bottom:18px}
  .invite-or{font-size:11.5px;color:var(--muted);font-weight:700;margin-bottom:12px}
  .invite-link-box{width:100%;height:42px;border:1px solid var(--hair);border-radius:11px;background:#fff;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:0 12px;color:var(--ink-2);font-size:12px;font-weight:700}
  .invite-link-box button{border:none;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
  .invite-share{width:100%;text-align:left;margin-top:20px}
  .invite-share small{display:block;font-size:11.5px;color:var(--muted);font-weight:700;margin-bottom:12px}
  .share-list{display:flex;flex-direction:column;gap:11px}

  /* Family page — quiet, focused layout */
  .family-minimal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;margin-bottom:26px}
  .family-minimal-head h1{font-size:32px;font-weight:800;letter-spacing:-.035em;margin-bottom:8px}
  .family-minimal-head p{font-size:14px;line-height:1.55;color:var(--muted)}
  .family-minimal-actions{display:flex;align-items:center;gap:12px}
  .family-minimal-add{height:46px;padding:0 21px;border:0;border-radius:16px;background:#1679df;color:#fff;font:inherit;font-size:13px;font-weight:800;display:inline-flex;align-items:center;gap:9px;cursor:pointer;box-shadow:0 10px 24px rgba(22,121,223,.16);transition:transform .2s ease,background .2s ease}
  .family-minimal-add:hover{background:#0f72d8;transform:translateY(-1px)}
  .family-minimal-add svg{width:17px;height:17px;stroke-width:2}
  .family-minimal-grid{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(310px,.72fr);gap:20px;align-items:stretch}
  .family-minimal-card{border:1px solid #e2e8ee;border-radius:24px;background:#fff;box-shadow:0 14px 34px rgba(32,57,81,.055);overflow:hidden}
  .family-minimal-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 26px 19px}
  .family-minimal-card-head h2{font-size:19px;font-weight:800;letter-spacing:-.02em;margin-bottom:6px}
  .family-minimal-card-head p{font-size:12.5px;line-height:1.5;color:var(--muted)}
  .family-minimal-count{height:29px;min-width:29px;padding:0 10px;border-radius:99px;background:#eef6ff;color:#1878d8;font-size:12px;font-weight:800;display:grid;place-items:center}
  .family-person-list{padding:0 12px 12px}
  .family-person{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:15px 14px;border-top:1px solid #edf0f3}
  .family-person-avatar{width:44px;height:44px;border-radius:15px;background:linear-gradient(145deg,#f2f7fc,#e9f2fb);border:1px solid #deebf6;color:#336789;display:grid;place-items:center;font-size:14px;font-weight:800;letter-spacing:-.02em}
  .family-person-copy{min-width:0}
  .family-person-name{display:flex;align-items:center;gap:5px;margin-bottom:5px}
  .family-person-name b{font-size:14px;font-weight:800;color:var(--ink-2)}
  .family-person-role{color:var(--ink-2);font-size:14px;font-weight:800;white-space:nowrap}
  .family-person-role+.family-person-status{margin-left:4px}
  .family-person-copy p{font-size:12px;line-height:1.45;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .family-person-status{width:7px;height:7px;border-radius:50%;background:#35bf7b;box-shadow:0 0 0 4px #e9f8f0}
  .family-person-status.off{background:#aeb9c5;box-shadow:0 0 0 4px #f0f3f6}
  .family-person-action{height:36px;padding:0 14px;border:1px solid #dfe6ec;border-radius:13px;background:#fff;color:#24384e;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:background .2s ease,border-color .2s ease}
  .family-person-action:hover{background:#f3f8fd;border-color:#cfe1f1}
  .family-all-link{height:45px;border:0;border-top:1px solid #edf0f3;background:transparent;color:#547087;font:inherit;font-size:12px;font-weight:800;width:100%;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
  .family-all-link svg{width:15px;height:15px}
  .family-context-card{padding:25px 25px 27px;background:linear-gradient(145deg,#f8fbfe 0%,#f1f7fc 100%)}
  .family-context-card h2{font-size:19px;font-weight:800;letter-spacing:-.02em;margin-bottom:7px}
  .family-context-card>p{font-size:12.5px;line-height:1.55;color:var(--muted);margin-bottom:22px}
  .family-context-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:7px}
  .family-context-top h2{margin-bottom:0}
  .family-context-total{height:28px;min-width:28px;padding:0 9px;border-radius:99px;background:#e4f1fc;color:#2878bb;font-size:11px;font-weight:800;display:grid;place-items:center}
  .family-context-intro{font-size:12.5px;line-height:1.55;color:var(--muted);margin-bottom:16px}
  .family-context-add{width:100%;min-height:42px;margin-bottom:18px;border:1px solid rgba(70,138,200,.24);border-radius:14px;background:rgba(255,255,255,.72);color:#2779be;font:inherit;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;transition:background .2s ease,border-color .2s ease}
  .family-context-add:hover{background:#fff;border-color:rgba(70,138,200,.4)}
  .family-context-add svg{width:15px;height:15px;stroke-width:2}
  .family-context-list{display:flex;flex-direction:column;gap:10px}
  .family-context-item{padding:15px 16px;border:1px solid rgba(190,210,226,.75);border-radius:16px;background:rgba(255,255,255,.76)}
  .family-context-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
  .family-context-item-head small{display:block;margin:0;font-size:10.5px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;color:#6e8aa2}
  .family-context-item-head span{font-size:10px;font-weight:750;color:#8a99a8;white-space:nowrap}
  .family-context-tags{display:flex;flex-wrap:wrap;gap:7px}
  .family-context-tags span{padding:7px 9px;border-radius:10px;background:#edf5fc;color:#2d465f;font-size:11.5px;font-weight:750;line-height:1.25}
  .family-context-directions{margin-top:16px;padding:15px 16px;border-radius:16px;background:rgba(224,239,252,.7)}
  .family-context-directions>small{display:block;margin-bottom:9px;color:#6d87a0;font-size:10.5px;font-weight:800;letter-spacing:.035em;text-transform:uppercase}
  .family-context-directions p{margin-top:9px;color:#788b9d;font-size:10.5px;line-height:1.5}
  .family-context-note{display:flex;align-items:flex-start;gap:10px;margin-top:19px;padding-top:18px;border-top:1px solid rgba(188,207,223,.65);font-size:11.5px;line-height:1.55;color:#71869a;font-weight:700}
  .family-context-note svg{width:17px;height:17px;flex:0 0 auto;color:#468ac8;stroke-width:1.8}
  .family-add-banner{position:relative;isolation:isolate;display:flex;min-height:100%;flex-direction:column;justify-content:center;gap:30px;padding:34px 28px;overflow:hidden;background:linear-gradient(145deg,#f8fbff 0%,#edf6fe 55%,#e4f1fd 100%)}
  .family-add-banner::before{content:"";position:absolute;z-index:-1;right:-95px;bottom:-110px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(76,156,226,.18),rgba(76,156,226,0) 68%)}
  .family-add-eyebrow{display:block;margin-bottom:10px;color:#63829f;font-size:10.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
  .family-add-banner h2{max-width:260px;margin:0;color:#17283d;font-size:25px;font-weight:850;line-height:1.12;letter-spacing:-.035em}
  .family-add-banner>div:first-child>p{max-width:285px;margin-top:14px;color:#6f8296;font-size:12.5px;font-weight:650;line-height:1.58}
  .family-add-primary{width:100%;min-height:48px;border:0;border-radius:999px;background:#177dde;color:#fff;font:inherit;font-size:13px;font-weight:850;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 12px 26px -18px rgba(20,105,184,.72);transition:transform .2s ease,background .2s ease}
  .family-add-primary:hover{background:#0f72d2;transform:translateY(-1px)}
  .family-add-primary svg{width:17px;height:17px;stroke-width:2}
  .family-add-privacy{display:flex;align-items:flex-start;gap:8px;margin-top:14px;color:#71869a;font-size:10.5px;font-weight:700;line-height:1.5}
  .family-add-privacy svg{width:15px;height:15px;flex:0 0 auto;color:#4a91ce;stroke-width:1.8}
  .family-discovery{display:block;margin-top:30px}
  .family-bonus-banner{position:relative;isolation:isolate;display:flex;min-height:300px;flex-direction:column;justify-content:space-between;padding:30px;overflow:hidden;border:1px solid rgba(26,83,135,.16);border-radius:25px;background:radial-gradient(circle at 88% 18%,rgba(98,183,255,.48),transparent 28%),radial-gradient(circle at 92% 92%,rgba(110,102,255,.34),transparent 36%),linear-gradient(140deg,#143758,#0d68ac);color:#fff;box-shadow:0 24px 50px -42px rgba(13,74,126,.7)}
  .family-bonus-banner::after{content:"";position:absolute;z-index:-1;right:-54px;bottom:-68px;width:210px;height:210px;border:1px solid rgba(255,255,255,.14);border-radius:50%;box-shadow:0 0 0 34px rgba(255,255,255,.035),0 0 0 72px rgba(255,255,255,.025)}
  .family-bonus-kicker{display:block;margin-bottom:11px;color:#b9dcfa;font-size:10.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
  .family-bonus-banner h2{max-width:330px;margin:0;font-size:26px;line-height:1.12;letter-spacing:-.035em}
  .family-bonus-banner p{max-width:350px;margin:14px 0 0;color:rgba(236,247,255,.82);font-size:12.5px;line-height:1.55}
  .family-bonus-value{display:inline-flex;align-items:baseline;gap:7px;margin-top:20px;color:#fff;font-size:28px;font-weight:850;letter-spacing:-.03em}.family-bonus-value small{font-size:11px;font-weight:700;color:#c5e2f8;letter-spacing:0}
  .family-bonus-action{display:inline-flex;width:max-content;min-height:42px;align-items:center;gap:9px;padding:0 17px;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font:inherit;font-size:11.5px;font-weight:820;cursor:pointer;backdrop-filter:blur(10px)}
  .family-bonus-action svg{width:16px;height:16px}
  .family-articles{min-width:0;padding:0;border:0;background:transparent}
  .family-discovery[hidden]{display:none!important}
  .family-articles .home-articles-head{align-items:flex-end;margin:2px 0 17px}
  .family-articles .home-articles-head h2{font-size:26px}
  .family-articles .home-article-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
  .family-articles .home-article-card{cursor:default}
  .family-articles .home-article-media{height:174px}
  .family-articles .home-article-copy small{color:#8293a4}
  .family-tree-open{display:inline-flex;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid #dfe7ef;border-radius:15px;background:#fff;color:#3d6f99;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .18s ease}
  .family-tree-open:hover{border-color:#bfd8eb;background:#f4f9fd;transform:translateY(-1px)}
  .family-tree-open svg{width:21px;height:21px;stroke-width:1.7}
  .family-tree-drawer{position:fixed;z-index:1450;inset:0;display:flex;background:#f7fafc;opacity:0;visibility:hidden;transition:opacity .24s ease,visibility .24s ease}
  .family-tree-drawer.active{opacity:1;visibility:visible}
  .family-tree-panel{display:flex;width:100%;height:100%;flex-direction:column;background:#f7fafc;transform:translateX(2%);transition:transform .32s cubic-bezier(.22,.78,.24,1)}
  .family-tree-drawer.active .family-tree-panel{transform:translateX(0)}
  .family-tree-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:27px 30px 23px;border-bottom:1px solid #dde7ee;background:rgba(255,255,255,.86)}
  .family-tree-eyebrow{display:block;margin-bottom:7px;color:#5c86a8;font-size:10px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
  .family-tree-head h2{margin:0;color:#17283d;font-size:27px;letter-spacing:-.035em}.family-tree-head p{margin:7px 0 0;color:#7d8ea0;font-size:12px;line-height:1.45}
  .family-tree-tools{display:flex;align-items:center;gap:8px}
  .family-tree-tool{display:grid;width:39px;height:39px;place-items:center;border:1px solid #dce6ee;border-radius:13px;background:#fff;color:#607489;font:inherit;font-size:17px;font-weight:750;cursor:pointer}
  .family-tree-tool svg{width:18px;height:18px}
  .family-tree-close{margin-left:5px}
  .family-tree-workspace{--tree-sidebar-width:294px;position:relative;display:block;flex:1;min-height:0;overflow:hidden}
  .family-tree-sidebar{position:absolute;z-index:3;inset:0 auto 0 0;width:var(--tree-sidebar-width);min-height:0;overflow:visible;padding:25px 22px;border-right:1px solid #dce7ef;background:#fff;box-shadow:14px 0 34px -34px rgba(25,55,82,.4);transform:translateX(0);transition:transform .3s cubic-bezier(.22,.78,.24,1)}
  .family-tree-sidebar>section{max-height:100%;overflow-y:auto;scrollbar-width:thin}
  .family-tree-sidebar>[data-tree-rail-home]{display:grid;height:100%;grid-template-rows:auto auto auto minmax(27px,1fr) auto;align-content:start}
  .family-tree-sidebar h3{margin:0;padding-right:42px;color:#1d3147;font-size:19px;line-height:1.2;letter-spacing:-.025em}.family-tree-sidebar p{margin:8px 0 20px;color:#7e8fa1;font-size:11.5px;line-height:1.5}
  .family-tree-sidebar-toggle{position:absolute;z-index:5;top:20px;right:18px;display:grid;width:34px;height:34px;place-items:center;border:1px solid #dbe6ee;border-radius:11px;background:#fff;color:#668099;cursor:pointer;transition:background .18s ease,border-color .18s ease,transform .26s ease}.family-tree-sidebar-toggle:hover{border-color:#bcd6e8;background:#f3f8fc}.family-tree-sidebar-toggle svg{width:17px;height:17px;stroke-width:1.7}
  .family-tree-drawer.sidebar-collapsed .family-tree-sidebar{transform:translateX(-100%)}.family-tree-drawer.sidebar-collapsed .family-tree-sidebar-toggle{right:-45px;transform:scaleX(-1)}
  .family-tree-add-list{display:grid;gap:9px;margin-top:20px}.family-tree-add-choice{display:grid;min-height:54px;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 11px;border:1px solid #dce7ef;border-radius:15px;background:#f9fbfd;color:#314b63;text-align:left;font:inherit;cursor:pointer;transition:border-color .18s ease,background .18s ease,transform .18s ease}
  .family-tree-add-choice:hover{border-color:#b9d5e9;background:#f1f8fd;transform:translateY(-1px)}.family-tree-add-choice i{display:grid;width:34px;height:34px;place-items:center;border-radius:11px;background:#e9f4fc;color:#177dde;font-style:normal;font-size:17px}.family-tree-add-choice b{display:block;font-size:12px}.family-tree-add-choice small{display:block;margin-top:2px;color:#8797a7;font-size:9.5px;line-height:1.25}.family-tree-add-choice svg{width:15px;height:15px;color:#9badbd}
  .family-tree-sidebar-note{margin-top:19px;padding:14px;border-radius:14px;background:#eef6fc;color:#6f8497;font-size:10px;line-height:1.5}.family-tree-sidebar-note b{color:#3b5871}
  .family-tree-bonus{position:relative;isolation:isolate;display:flex;width:100%;min-height:104px;grid-row:5;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:16px 17px;overflow:hidden;border:0;border-radius:16px;background:radial-gradient(circle at 84% 21%,rgba(86,170,255,.45),transparent 29%),radial-gradient(circle at 88% 80%,rgba(123,105,255,.38),transparent 35%),linear-gradient(135deg,#102c4c,#0c5b9e 70%,#176db3);color:#fff;text-align:left;font:inherit;cursor:pointer;box-shadow:0 17px 30px -25px rgba(8,48,89,.76);transition:transform .18s ease,box-shadow .18s ease}.family-tree-bonus::after{content:"";position:absolute;z-index:-1;right:-31px;bottom:-45px;width:116px;height:116px;border:1px solid rgba(255,255,255,.18);border-radius:50%}.family-tree-bonus:hover{transform:translateY(-1px);box-shadow:0 20px 34px -23px rgba(8,48,89,.82)}.family-tree-bonus b{max-width:190px;font-size:13px;line-height:1.3}.family-tree-bonus span{display:inline-flex;align-items:center;gap:6px;color:rgba(255,255,255,.92);font-size:10px;font-weight:760}.family-tree-bonus svg{width:14px;height:14px;transition:transform .18s ease}.family-tree-bonus:hover svg{transform:translateX(2px)}
  .family-tree-editor[hidden],.family-tree-editor-field[hidden]{display:none}.family-tree-editor-back{display:inline-flex;align-items:center;gap:6px;margin:0 0 18px;padding:0;border:0;background:none;color:#4e7b9e;font:inherit;font-size:11px;font-weight:750;cursor:pointer}.family-tree-editor-back svg{width:15px;height:15px}
  .family-tree-editor-role{display:inline-flex;margin-bottom:9px;padding:5px 9px;border-radius:999px;background:#eaf4fc;color:#3978a5;font-size:9.5px;font-weight:820;letter-spacing:.03em;text-transform:uppercase}.family-tree-editor h3{font-size:20px}.family-tree-editor-fields{display:grid;gap:12px;margin-top:19px}.family-tree-editor-field label{display:block;margin-bottom:6px;color:#546a7f;font-size:10px;font-weight:760}.family-tree-editor-field input,.family-tree-editor-field select{width:100%;height:43px;padding:0 12px;border:1px solid #d8e4ed;border-radius:12px;background:#fff;color:#263e55;font:inherit;font-size:11.5px;outline:0}.family-tree-editor-field input:focus,.family-tree-editor-field select:focus{border-color:#80b8df;box-shadow:0 0 0 3px rgba(55,145,211,.1)}
  .family-tree-editor-actions{display:grid;gap:8px;margin-top:18px}.family-tree-editor-submit{min-height:43px;border:0;border-radius:999px;background:#177dde;color:#fff;font:inherit;font-size:11.5px;font-weight:820;cursor:pointer}.family-tree-editor-cancel{min-height:38px;border:0;background:transparent;color:#71859a;font:inherit;font-size:10.5px;font-weight:700;cursor:pointer}.family-tree-editor-error{min-height:16px;margin:7px 0 0!important;color:#c4495d!important;font-size:9.5px!important}.family-tree-editor-success{padding:17px;border-radius:15px;background:#edf8f3;color:#39725b;font-size:11px;line-height:1.45}.family-tree-editor-success b{display:block;margin-bottom:4px;color:#245d47;font-size:12.5px}
  .family-tree-stage{position:relative;height:100%;min-height:0;overflow:auto;margin-left:var(--tree-sidebar-width);padding:28px;background-color:#f7fafc;background-image:radial-gradient(circle,#cedce7 1px,transparent 1px);background-size:24px 24px;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;transition:margin-left .3s cubic-bezier(.22,.78,.24,1)}
  .family-tree-stage.is-panning{cursor:grabbing}
  .family-tree-drawer.sidebar-collapsed .family-tree-stage{margin-left:0}
  .family-tree-board{position:relative;width:1100px;height:650px;margin:auto;transform:translate(var(--tree-pan-x,0px),var(--tree-pan-y,0px)) scale(var(--tree-scale,.84));transform-origin:50% 0;transition:transform .2s ease}
  .family-tree-stage.is-panning .family-tree-board{transition:none}
  .family-tree-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
  .family-tree-lines path{fill:none;stroke:#bcd3e4;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
  .family-tree-lines path.partner{stroke-dasharray:6 7}.family-tree-lines circle{fill:#fff;stroke:#a9c8df;stroke-width:2}
  .family-tree-node{position:absolute;display:grid;width:166px;min-height:86px;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:11px;padding:13px;border:1px solid #d7e4ed;border-radius:19px;background:#fff;color:#2f465d;text-align:left;box-shadow:0 16px 34px -29px rgba(28,63,95,.52);cursor:pointer;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
  .family-tree-node:hover{z-index:3;border-color:#a9cce6;box-shadow:0 19px 38px -25px rgba(28,84,132,.45);transform:translateY(-2px)}
  .family-tree-node-avatar{display:grid;width:42px;height:42px;place-items:center;border-radius:14px;background:#eaf4fc;color:#3477a3;font-size:12px;font-weight:850}
  .family-tree-node strong{display:block;font-size:12.5px;line-height:1.25}.family-tree-node small{display:flex;align-items:center;gap:5px;margin-top:5px;color:#8293a4;font-size:9.5px;line-height:1.25}
  .family-tree-node small::before{content:"";width:6px;height:6px;border-radius:50%;background:#aab9c6}.family-tree-node.connected small::before{background:#43c287}.family-tree-node.self{border-color:#9ecbf0;background:linear-gradient(145deg,#f7fbff,#e8f4fe);box-shadow:0 18px 40px -26px rgba(23,125,222,.48)}
  .family-tree-node.add{grid-template-columns:34px 1fr;border-style:dashed;background:rgba(255,255,255,.66);box-shadow:none;color:#6e8498}
  .family-tree-node.add .family-tree-node-avatar{width:34px;height:34px;border:1px dashed #aacce4;border-radius:12px;background:#f4f9fd;color:#177dde;font-size:19px;font-weight:500}
  .family-tree-node.add small{margin-top:3px}.family-tree-node.add small::before{display:none}
  .family-tree-node[data-tree-pos="mgf"]{left:87px;top:38px}.family-tree-node[data-tree-pos="mgm"]{left:307px;top:38px}.family-tree-node[data-tree-pos="pgf"]{left:527px;top:38px}.family-tree-node[data-tree-pos="pgm"]{left:747px;top:38px}
  .family-tree-node[data-tree-pos="mother"]{left:197px;top:238px}.family-tree-node[data-tree-pos="father"]{left:637px;top:238px}
  .family-tree-node[data-tree-pos="partner"]{left:137px;top:420px}.family-tree-node[data-tree-pos="self"]{left:417px;top:420px}.family-tree-node[data-tree-pos="sibling"]{left:697px;top:420px}.family-tree-node[data-tree-pos="child"]{left:417px;top:560px}
  .family-tree-node.is-selected{z-index:4;border-color:#60a9dc;box-shadow:0 0 0 4px rgba(67,151,211,.12),0 20px 40px -27px rgba(28,84,132,.5)}
  .family-tree-gesture-hint{position:absolute;right:18px;bottom:16px;z-index:2;padding:8px 11px;border:1px solid rgba(190,210,225,.8);border-radius:999px;background:rgba(255,255,255,.86);color:#7b8fa1;font-size:9.5px;font-weight:680;pointer-events:none;backdrop-filter:blur(8px)}
  .family-tree-legend{display:flex;align-items:center;justify-content:center;gap:20px;padding:14px 24px;border-top:1px solid #dde7ee;background:#fff;color:#72869a;font-size:10.5px;font-weight:680}
  .family-tree-legend span{display:flex;align-items:center;gap:7px}.family-tree-legend i{width:8px;height:8px;border-radius:50%;background:#aab9c6}.family-tree-legend .connected{background:#43c287}.family-tree-legend .empty{border:1px dashed #86b8dd;background:transparent}
  .family-relative-dialog{width:min(100%,650px);padding:34px}
  .family-relative-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:28px}
  .family-relative-avatar{display:grid;width:54px;height:54px;place-items:center;border:1px solid #dce8f2;border-radius:18px;background:#edf6fd;color:#33749e;font-size:15px;font-weight:850}
  .family-relative-identity h2{margin:0;color:#17283d;font-size:26px;letter-spacing:-.03em}
  .family-relative-identity p{margin:6px 0 0;color:#8191a2;font-size:13px;line-height:1.45}
  .family-relative-content{display:grid;gap:19px}
  .family-relative-section{padding:22px;border:1px solid #dfe8ef;border-radius:19px;background:#f9fbfd}
  .family-relative-section[hidden],.family-relative-note[hidden],.family-relative-invite[hidden]{display:none}
  .family-relative-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
  .family-relative-section-head h3{margin:0;color:#2d4359;font-size:16px}
  .family-relative-section-head p{margin:5px 0 0;color:#8494a5;font-size:12.5px;line-height:1.45}
  .family-relative-add{min-height:38px;padding:0 16px;border:1px solid #bddaf1;border-radius:999px;background:#fff;color:#1778d1;font:inherit;font-size:12.5px;font-weight:820;white-space:nowrap;cursor:pointer}
  .family-relative-section.is-adding .family-relative-add{display:none}
  .family-relative-section.is-adding .family-fact-list{display:none}
  .family-fact-list{display:grid;gap:11px}
  .family-fact-empty{padding:18px;border:1px dashed #cfdeea;border-radius:14px;color:#8494a5;font-size:12.5px;text-align:center}
  .family-fact-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:17px 16px;border:1px solid #dce7ef;border-radius:14px;background:#fff}
  .family-fact-item b{display:block;color:#30475e;font-size:14.5px;line-height:1.4}
  .family-fact-item p{margin:5px 0 0;color:#8293a4;font-size:12.5px;line-height:1.45}
  .family-fact-delete{align-self:start;border:0;background:transparent;color:#98a6b4;font:inherit;font-size:10px;cursor:pointer}
  .family-fact-form[hidden]{display:none}
  .family-fact-form{display:grid;grid-template-columns:1.3fr .7fr;gap:14px 12px;margin-top:18px;padding:20px;border:1px solid #dce7ef;border-radius:16px;background:#fff}
  .family-fact-form-title{grid-column:1 / -1;margin:0 0 1px;color:#2d4359;font-size:14px;font-weight:820}
  .family-fact-field{display:block;min-width:0}
  .family-fact-field.full{grid-column:1 / -1}
  .family-fact-field label{display:block;margin:0 0 7px;color:#657a8f;font-size:11.5px;font-weight:760}
  .family-fact-field label small{color:#98a6b4;font-size:10px;font-weight:650}
  .family-fact-field select,.family-fact-field input{width:100%;height:48px;padding:0 14px;border:1px solid #d9e5ee;border-radius:13px;background:#f9fbfd;color:#30475e;font:inherit;font-size:12.5px;outline:none}
  .family-fact-field input::placeholder{color:#9ba8b5}
  .family-fact-field select{padding-right:42px;appearance:none;-webkit-appearance:none;background-color:#f9fbfd;background-image:url("/frontend/assets/dashboard-r10-84d827a84a60d851.svg?v=20260826r12");background-repeat:no-repeat;background-position:right 14px center}
  .family-fact-field select:focus,.family-fact-field input:focus{border-color:rgba(23,125,222,.5);box-shadow:0 0 0 3px rgba(23,125,222,.06)}
  .family-fact-error{grid-column:1 / -1;min-height:15px;color:#c84c5b;font-size:11px}
  .family-fact-error:empty{display:none}
  .family-fact-actions{grid-column:1 / -1;display:flex;justify-content:flex-end;gap:9px;margin-top:-5px}
  .family-fact-actions button{min-height:42px;padding:0 19px;border-radius:999px;font:inherit;font-size:11.5px;font-weight:800;cursor:pointer}
  .family-fact-cancel{border:1px solid #dce6ef;background:#fff;color:#66798c}.family-fact-save{border:0;background:#177dde;color:#fff}
  .family-relative-note{display:flex;align-items:flex-start;justify-content:center;gap:8px;margin-top:-6px;padding:4px 5px;color:#7d8fa1;font-size:12.5px;line-height:1.55;text-align:center}
  .family-relative-note svg{width:15px;height:15px;flex:0 0 15px;margin-top:1px;color:#468ac8}
  .family-relative-invite{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px;padding:20px 22px;border-radius:17px;background:#eaf5fe}
  .family-relative-invite b{display:block;color:#304b63;font-size:14.5px}.family-relative-invite p{margin:5px 0 0;color:#72889c;font-size:12.5px;line-height:1.45}
  .family-relative-invite button{min-height:40px;padding:0 17px;border:0;border-radius:999px;background:#177dde;color:#fff;font:inherit;font-size:12.5px;font-weight:820;white-space:nowrap;cursor:pointer}
  .family-profile-page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
  .family-profile-back{display:inline-flex;align-items:center;gap:9px;padding:0;border:0;background:transparent;color:#5e7286;font:inherit;font-size:13px;font-weight:760;cursor:pointer}
  .family-profile-back svg{width:18px;height:18px}
  .family-profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px;margin-bottom:22px;padding:28px 30px;border:1px solid #dfe8ef;border-radius:24px;background:#fff;box-shadow:0 18px 45px -38px rgba(32,65,96,.45)}
  .family-profile-avatar{display:grid;width:72px;height:72px;place-items:center;border:1px solid #d7e6f2;border-radius:22px;background:#edf6fd;color:#33749e;font-size:19px;font-weight:850}
  .family-profile-identity h1{margin:0;color:#17283d;font-size:29px;letter-spacing:-.035em}
  .family-profile-identity p{margin:7px 0 0;color:#7e90a3;font-size:13px;line-height:1.45}
  .family-profile-status{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:7px 11px;border-radius:999px;background:#f1f6fa;color:#61788d;font-size:11px;font-weight:780}
  .family-profile-status::before{content:"";width:7px;height:7px;border-radius:50%;background:#aab9c7}
  .family-profile-status.connected{background:#edf8f2;color:#398060}.family-profile-status.connected::before{background:#42be83}
  .family-profile-hero-action{min-height:43px;padding:0 18px;border:0;border-radius:999px;background:#177dde;color:#fff;font:inherit;font-size:12px;font-weight:820;cursor:pointer}
  .family-profile-hero-action[hidden]{display:none}
  .family-profile-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.65fr);gap:20px;align-items:start}
  .family-profile-main,.family-profile-side{display:grid;gap:20px}
  .family-profile-card{padding:24px;border:1px solid #dfe8ef;border-radius:22px;background:#fff}
  .family-profile-card[hidden]{display:none}
  .family-profile-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
  .family-profile-card-head h2{margin:0;color:#22384e;font-size:18px;letter-spacing:-.015em}
  .family-profile-card-head p{margin:6px 0 0;color:#8192a4;font-size:12.5px;line-height:1.5}
  .family-profile-add{min-height:40px;padding:0 17px;border:1px solid #bddaf1;border-radius:999px;background:#fff;color:#1778d1;font:inherit;font-size:12px;font-weight:820;white-space:nowrap;cursor:pointer}
  .family-profile-card .family-relative-note{margin:17px 0 0;padding-top:16px;border-top:1px solid #e6edf2}
  .family-memory-summary{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:center;padding:17px;border-radius:16px;background:#f1f8fe}
  .family-memory-score{display:grid;width:58px;height:58px;place-items:center;border-radius:18px;background:#fff;color:#177dde;font-size:15px;font-weight:850}
  .family-memory-summary b{display:block;color:#2d465e;font-size:13.5px}.family-memory-summary p{margin:5px 0 0;color:#74899d;font-size:11.5px;line-height:1.45}
  .family-memory-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.family-memory-tags span{padding:8px 10px;border-radius:11px;background:#f5f8fb;color:#526a80;font-size:11px;font-weight:720}
  .family-profile-meta{display:grid;gap:15px}
  .family-profile-meta-row{padding-bottom:14px;border-bottom:1px solid #e8eef3}.family-profile-meta-row:last-child{padding-bottom:0;border-bottom:0}
  .family-profile-meta-row small{display:block;margin-bottom:5px;color:#91a0ae;font-size:10.5px;font-weight:760}.family-profile-meta-row b{color:#30475e;font-size:13px}
  .family-profile-privacy{display:flex;align-items:flex-start;gap:10px;color:#71869a;font-size:11.5px;line-height:1.55}
  .family-profile-privacy svg{width:17px;height:17px;flex:0 0 17px;color:#468ac8}
  .family-relative-dialog .family-fact-form{margin-top:0}
  .family-relative-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}
  .family-relative-dialog-head h2{margin:0;color:#17283d;font-size:23px;letter-spacing:-.025em}.family-relative-dialog-head p{margin:7px 0 0;color:#8192a4;font-size:12px;line-height:1.5}
  .family-flow-modal{position:fixed;z-index:1300;inset:0;display:grid;place-items:center;padding:24px;background:rgba(30,45,65,.2);backdrop-filter:blur(11px);-webkit-backdrop-filter:blur(11px);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
  .family-flow-modal.active{opacity:1;visibility:visible}
  .family-flow-dialog{width:min(100%,560px);max-height:calc(100vh - 48px);overflow:auto;padding:28px;border:1px solid rgba(31,52,78,.1);border-radius:28px;background:rgba(255,255,255,.98);box-shadow:0 34px 90px -45px rgba(21,43,70,.52)}
  .family-flow-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
  .family-flow-progress{margin:0 0 7px;color:#6d879f;font-size:10.5px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
  .family-flow-head h2{margin:0;color:#17283d;font-size:25px;line-height:1.15;letter-spacing:-.035em}
  .family-flow-subtitle{margin:9px 0 0;color:#7c8b9d;font-size:12.5px;line-height:1.5}
  .family-flow-close{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:1px solid rgba(31,52,78,.1);border-radius:13px;background:#f7f9fc;color:#66758a;cursor:pointer}
  .family-flow-close svg{width:18px;height:18px}
  .family-flow-step{display:none}
  .family-flow-step.active{display:block}
  .family-role-select-block{display:grid;gap:15px}
  .family-role-select-block label{display:block;margin:0 0 8px;color:#53677d;font-size:11.5px;font-weight:750}
  .family-role-select-control{position:relative}
  .family-role-select-control select{width:100%;height:52px;padding:0 46px 0 15px;border:1px solid #d7e4ef;border-radius:16px;background:#f8fbfe;color:#30475e;font:inherit;font-size:13px;font-weight:720;outline:none;appearance:none;-webkit-appearance:none;cursor:pointer}
  .family-role-select-control select:focus{border-color:rgba(23,125,222,.5);box-shadow:0 0 0 3px rgba(23,125,222,.07)}
  .family-role-select-control svg{position:absolute;right:16px;top:50%;width:18px;height:18px;color:#8396a9;pointer-events:none;transform:translateY(-50%)}
  .family-other-role[hidden]{display:none}
  .family-other-role input{width:100%;height:52px;padding:0 15px;border:1px solid #d7e4ef;border-radius:16px;background:#f8fbfe;color:#30475e;font:inherit;font-size:13px;outline:none}
  .family-other-role input:focus{border-color:rgba(23,125,222,.5);box-shadow:0 0 0 3px rgba(23,125,222,.07)}
  .family-semantic-box[hidden],.family-semantic-clarify[hidden]{display:none}
  .family-semantic-box{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 14px;border:1px solid #cfe3f4;border-radius:16px;background:#f1f8fe}
  .family-semantic-mark{display:grid;width:34px;height:34px;place-items:center;border-radius:11px;background:#dfeffc;color:#177dde}
  .family-semantic-mark svg{width:18px;height:18px;stroke-width:1.8}
  .family-semantic-copy span{display:block;margin-bottom:3px;color:#6f879e;font-size:9.5px;font-weight:850;letter-spacing:.06em;text-transform:uppercase}
  .family-semantic-copy strong{display:block;color:#28435d;font-size:12.5px;line-height:1.35}
  .family-semantic-copy p{margin:3px 0 0;color:#7d91a4;font-size:10.5px;line-height:1.4}
  .family-semantic-confirm{min-height:34px;padding:0 13px;border:1px solid #b9d8f1;border-radius:999px;background:#fff;color:#1378d2;font:inherit;font-size:10.5px;font-weight:800;cursor:pointer}
  .family-semantic-confirm.confirmed{border-color:#cbe6d8;background:#edf9f3;color:#27815b;cursor:default}
  .family-semantic-clarify{padding:14px;border:1px solid #e0e8ef;border-radius:16px;background:#fbfcfe}
  .family-semantic-clarify>p{margin:0 0 11px;color:#3c536a;font-size:11.5px;font-weight:750;line-height:1.45}
  .family-clarify-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .family-clarify-field[hidden]{display:none}
  .family-clarify-field label{display:block;margin:0 0 6px;color:#708397;font-size:10.5px;font-weight:700}
  .family-clarify-field select{width:100%;height:42px;padding:0 11px;border:1px solid #d8e4ed;border-radius:12px;background:#fff;color:#40566c;font:inherit;font-size:11px;outline:none}
  .family-flow-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}
  .family-flow-primary,.family-flow-secondary{min-height:48px;padding:0 22px;border-radius:999px;font:inherit;font-size:12.5px;font-weight:820;cursor:pointer}
  .family-flow-primary{border:0;background:#177dde;color:#fff}
  .family-flow-primary:disabled{background:#dce7f1;color:#91a0b0;cursor:not-allowed}
  .family-flow-secondary{border:1px solid #dce7f1;background:#fff;color:#5f7185}
  .family-method-list{display:grid;gap:11px}
  .family-method-option{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;padding:16px;border:1px solid #dce7f1;border-radius:18px;background:#f9fbfd;text-align:left;cursor:pointer}
  .family-method-option:hover{border-color:#b9d5ec;background:#f4f9fe}
  .family-method-icon{display:grid;width:44px;height:44px;place-items:center;border-radius:14px;background:#e9f4fe;color:#167cda}
  .family-method-icon svg{width:21px;height:21px;stroke-width:1.8}
  .family-method-copy b{display:block;margin-bottom:4px;color:#263b52;font-size:13.5px}
  .family-method-copy span{display:block;color:#7c8b9d;font-size:11.5px;line-height:1.45}
  .family-method-arrow{color:#9eafbf;font-size:22px}
  .family-flow-note{display:flex;align-items:flex-start;gap:8px;margin:17px 2px 0;color:#7c8f9f;font-size:10.8px;line-height:1.5}
  .family-flow-note svg{width:15px;height:15px;flex:0 0 15px;margin-top:1px;color:#468ac8}
  .family-form{display:grid;gap:15px}
  .family-form-row{display:grid;grid-template-columns:1.35fr .65fr;gap:10px}
  .family-field label{display:block;margin:0 0 7px;color:#53677d;font-size:11.5px;font-weight:750}
  .family-field small{color:#94a1af;font-weight:600}
  .family-field input,.family-field textarea{width:100%;border:1px solid #dce6ef;border-radius:14px;background:#fbfcfe;color:#253b52;font:inherit;font-size:12.5px;outline:none}
  .family-field input{height:47px;padding:0 14px}
  .family-field textarea{min-height:96px;padding:13px 14px;resize:vertical;line-height:1.5}
  .family-field input:focus,.family-field textarea:focus{border-color:rgba(23,125,222,.5);box-shadow:0 0 0 3px rgba(23,125,222,.07)}
  .family-invite-link{display:flex;align-items:center;gap:9px;margin-top:12px;padding:11px 13px;border-radius:13px;background:#f2f7fb;color:#71869a;font-size:11px;line-height:1.45}
  .family-invite-link svg{width:16px;height:16px;flex:0 0 16px;color:#438bc9}
  .family-flow-error{min-height:17px;margin:10px 2px -8px;color:#c84c5b;font-size:11.5px;font-weight:650}
  .family-success{text-align:center;padding:8px 4px 2px}
  .family-success-icon{display:grid;width:64px;height:64px;margin:0 auto 18px;place-items:center;border-radius:50%;background:#e7f6ee;color:#26875c}
  .family-success-icon svg{width:29px;height:29px;stroke-width:2}
  .family-success h3{margin:0;color:#1d3349;font-size:22px;letter-spacing:-.025em}
  .family-success p{max-width:410px;margin:10px auto 0;color:#788a9c;font-size:12.5px;line-height:1.55}
  .family-success-actions{display:flex;justify-content:center;gap:9px;margin-top:23px}
  .family-success-actions .family-flow-primary{min-width:150px}
  .family-success-actions .family-flow-secondary[hidden]{display:none}
  @media(max-width:900px){.family-minimal-grid,.family-profile-grid{grid-template-columns:1fr}.family-minimal-head{align-items:stretch}.family-minimal-actions{flex-shrink:0}.family-profile-side{grid-template-columns:1fr 1fr}}
  @media(max-width:620px){.family-minimal-head{flex-direction:column}.family-minimal-add{justify-content:center}.family-minimal-card-head{padding:21px 20px 16px}.family-person{grid-template-columns:auto minmax(0,1fr)}.family-person-action{grid-column:2;justify-self:start}.family-context-card{padding:22px 20px}.family-articles .home-article-grid{grid-template-columns:1fr}.family-bonus-banner{padding:26px 23px}.family-profile-hero{grid-template-columns:auto minmax(0,1fr);padding:22px 20px}.family-profile-hero-action{grid-column:1 / -1;width:100%}.family-profile-side{grid-template-columns:1fr}.family-profile-card{padding:20px}.family-profile-card-head{align-items:stretch;flex-direction:column}.family-profile-add{width:100%}.family-flow-modal{padding:12px}.family-flow-dialog{max-height:calc(100vh - 24px);padding:22px 18px;border-radius:22px}.family-form-row,.family-clarify-grid,.family-fact-form{grid-template-columns:1fr}.family-fact-form-title,.family-fact-field.full,.family-fact-error,.family-fact-actions{grid-column:1}.family-relative-hero{grid-template-columns:auto minmax(0,1fr)}.family-relative-hero .family-flow-close{grid-column:2;grid-row:1;justify-self:end}.family-relative-section-head,.family-relative-invite{align-items:stretch;flex-direction:column}.family-relative-add,.family-relative-invite button{width:100%}.family-flow-actions{align-items:stretch;flex-direction:column-reverse}.family-flow-actions button{width:100%}.family-semantic-box{grid-template-columns:34px minmax(0,1fr)}.family-semantic-confirm{grid-column:1 / -1;width:100%}}
  @media(max-width:860px){.family-tree-workspace{--tree-sidebar-width:230px}.family-tree-sidebar{padding:20px 16px}.family-tree-head p{max-width:520px}.family-tree-gesture-hint{display:none}}
  @media(max-width:620px){.family-tree-panel{width:100vw}.family-tree-head{padding:21px 18px 18px}.family-tree-head h2{font-size:23px}.family-tree-head p{max-width:250px}.family-tree-workspace{--tree-sidebar-width:min(88vw,320px)}.family-tree-sidebar{border-bottom:1px solid #dce7ef}.family-tree-stage,.family-tree-drawer.sidebar-collapsed .family-tree-stage{height:100%;margin-left:0;padding:18px}.family-tree-legend{justify-content:flex-start;overflow-x:auto}.family-tree-tool.zoom{display:none}}
  .share-item{display:flex;align-items:center;gap:11px;font-size:12.5px;color:var(--ink-2);font-weight:700}
  .share-icon{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;color:#fff;font-size:11px;font-weight:800}
  .share-icon.whatsapp{background:#25D366}.share-icon.telegram{background:#4FB6EC}.share-icon.imessage{background:#63A8FF}.share-icon.email{background:#6B5CF6}.share-icon.more{background:#F1F0F7;color:var(--muted)}

  /* Profile page */
  .profile-hero{padding:26px 28px;margin-bottom:24px;display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;background:var(--card)}
  .profile-hero-main{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:center}
  .profile-hero .profile-photo{width:120px;height:120px}
  .profile-hero .profile-photo svg{width:120px;height:120px}
  .profile-identity h2{font-size:24px;font-weight:700;letter-spacing:-.012em;margin-bottom:6px}
  .profile-identity p{font-size:13.5px;color:var(--muted);line-height:1.55;margin-bottom:14px}
  .profile-tags{display:flex;flex-wrap:wrap;gap:10px}
  .profile-tag{height:34px;border-radius:12px;background:var(--surface-tint);color:var(--ink-2);font-size:12.5px;font-weight:700;padding:0 12px;display:inline-flex;align-items:center;gap:7px}
  .profile-tag svg{width:15px;height:15px;color:var(--violet);stroke-width:1.9}
  .profile-hero .btn-soft{align-self:start;margin-top:18px}
  .profile-section{margin-bottom:22px}
  .profile-section h2{font-size:18px;font-weight:700;letter-spacing:-.008em;margin-bottom:14px}
  .profile-table{padding:12px 0;background:var(--card)}
  .profile-row{min-height:46px;display:grid;grid-template-columns:auto 1fr minmax(180px,1fr) auto;gap:16px;align-items:center;padding:8px 20px}
  .profile-row .step-icon{width:34px;height:34px;border-radius:12px}
  .profile-row b{font-size:13.5px;font-weight:700;color:var(--ink)}
  .profile-row span{font-size:13.5px;color:var(--muted);font-weight:600}
  .edit-icon{width:28px;height:28px;border:none;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
  .edit-icon svg{width:16px;height:16px;stroke-width:1.8}
  .value-pill{display:inline-flex;width:max-content;align-items:center;height:30px;border-radius:11px;background:var(--surface-tint);color:var(--violet);font-size:12px;font-weight:700;padding:0 12px}
  .protected-banner{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;padding:24px;background:var(--surface-tint);border:1px solid var(--hair);border-radius:var(--r);margin-top:24px}
  .protected-banner .step-icon{width:58px;height:58px;border-radius:19px}
  .protected-banner h3{font-size:15px;font-weight:700;margin-bottom:6px}
  .protected-banner p{font-size:12.5px;color:var(--muted);line-height:1.55}

  /* AI chat page */
  .view-ai-chat.active{display:flex;flex-direction:column;height:calc(100vh - 82px);min-height:0}
  .view-ai-chat .page-head{flex-shrink:0;margin-bottom:22px}
  .chat-intro{position:relative;padding:24px 28px;margin-bottom:18px;display:grid;grid-template-columns:1fr 1fr;gap:26px;align-items:center;background:var(--card);flex-shrink:0}
  .chat-intro-close{position:absolute;top:16px;right:16px;width:32px;height:32px;border:none;border-radius:11px;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
  .chat-intro-close:hover{background:var(--surface-tint);color:var(--ink)}
  .chat-intro-close svg{width:18px;height:18px;stroke-width:1.8}
  .view-ai-chat.intro-hidden .chat-intro{display:none}
  .chat-bios{display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:center}
  .ai-orb{width:82px;height:82px;border-radius:50%;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet)}
  .ai-orb svg{width:50px;height:50px;stroke-width:1.35}
  .chat-bios h2{font-size:19px;font-weight:700;margin-bottom:9px}
  .chat-bios p{font-size:13.5px;line-height:1.6;color:var(--muted);max-width:420px}
  .chat-capabilities{display:grid;gap:10px}
  .capability{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;font-size:13.5px;font-weight:700;color:var(--ink-2)}
  .capability .step-icon{width:32px;height:32px;border-radius:11px}
  .chat-day{display:flex;align-items:center;gap:18px;color:var(--muted);font-size:12px;font-weight:700;margin:0 0 14px;flex-shrink:0}
  .chat-day::before,.chat-day::after{content:"";height:1px;background:var(--hair);flex:1}
  .chat-thread{display:flex;flex-direction:column;gap:16px;margin-bottom:16px;overflow-y:auto;min-height:0;flex:1;padding-right:8px;scrollbar-width:thin;scrollbar-color:#D8D6EA transparent}
  .chat-thread::-webkit-scrollbar{width:6px}
  .chat-thread::-webkit-scrollbar-thumb{background:#D8D6EA;border-radius:999px}
  .message{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;max-width:760px}
  .message.user{align-self:flex-end;display:block;max-width:560px}
  .message-avatar{width:42px;height:42px;border-radius:50%;background:var(--surface-tint);display:grid;place-items:center;color:var(--violet);margin-top:4px}
  .message-avatar svg{width:24px;height:24px;stroke-width:1.5}
  .bubble{border:1px solid var(--hair);border-radius:18px;background:var(--card);padding:18px 20px;font-size:14px;line-height:1.6;color:var(--ink-2)}
  .message.user .bubble{background:var(--surface-tint);border-color:#ECE9FF;color:var(--ink);padding:16px 20px}
  .bubble p{margin-bottom:12px}
  .bubble p:last-child{margin-bottom:0}
  .bubble ul{padding-left:18px;margin:10px 0 14px}
  .bubble li{margin:4px 0}
  .bubble li::marker{color:var(--violet)}
  .bubble-time{display:block;text-align:right;color:var(--muted);font-size:11.5px;font-weight:600;margin-top:8px}
  .bubble-checks{color:var(--violet);font-weight:800;margin-left:6px}
  .chat-bottom{flex-shrink:0}
  .chat-composer{border:1.5px solid rgba(91,77,240,.28);border-radius:17px;background:var(--card);padding:12px 14px;display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center}
  .composer-plus{width:38px;height:38px;border:1px solid #E1DDFC;border-radius:12px;background:var(--surface-tint);color:var(--violet);display:grid;place-items:center}
  .composer-plus svg{width:21px;height:21px;stroke-width:1.8}
  .chat-input{border:none;outline:none;font:inherit;font-size:14.5px;color:var(--ink);min-width:0}
  .chat-input::placeholder{color:#AAA8BD}
  .composer-send{width:38px;height:38px;border:none;border-radius:12px;background:linear-gradient(180deg,#6B5CF6,#5647E9);color:#fff;display:grid;place-items:center}
  .composer-send svg{width:22px;height:22px;stroke-width:2.1}
  .chat-disclaimer{display:flex;align-items:center;justify-content:center;gap:8px;color:var(--muted);font-size:11.5px;font-weight:600;margin-top:10px}
  .chat-disclaimer svg{width:15px;height:15px;color:var(--muted)}

  .diag-modal{position:fixed;inset:0;z-index:50;display:none;align-items:center;justify-content:center;padding:32px;background:rgba(12,12,18,.58);backdrop-filter:blur(9px)}
  .diag-modal.active{display:flex}
  .diag-card{position:relative;width:min(1060px,calc(100vw - 64px));max-height:calc(100vh - 64px);overflow:auto;background:#fff;border:1px solid rgba(255,255,255,.72);border-radius:22px;box-shadow:0 22px 70px rgba(11,10,26,.24)}
  .diag-close{position:absolute;right:24px;top:22px;width:32px;height:32px;border:none;background:transparent;color:#777690;cursor:pointer;display:grid;place-items:center;z-index:2}
  .diag-close svg{width:26px;height:26px;stroke-width:1.55}
  .diag-welcome{display:grid;grid-template-columns:300px 1fr;gap:36px;padding:52px 46px 36px;align-items:center}
  .diag-illo{width:230px;height:230px;display:grid;place-items:center;justify-self:center;border-radius:50%;background:#F8F7FE;color:var(--violet)}
  .diag-illo svg{width:150px;height:150px;stroke-width:1.75}
  .diag-kicker{font-size:13px;font-weight:700;color:var(--violet);margin-bottom:16px}
  .diag-title{font-size:27px;font-weight:700;line-height:1.24;letter-spacing:-.012em;margin-bottom:16px;color:var(--ink)}
  .diag-copy{font-size:14.5px;line-height:1.65;color:var(--ink-2);max-width:430px}
  .diag-facts{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:4px;padding:18px 22px;background:#F8F7FE;border:1px solid var(--hair);border-radius:18px}
  .diag-fact{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;color:var(--muted);font-size:12.5px;line-height:1.45}
  .diag-fact b{display:block;color:var(--violet);font-size:14px;margin-bottom:3px}
  .diag-fact svg{width:21px;height:21px;color:var(--violet);stroke-width:1.8}
  .diag-actions{grid-column:1/-1;display:flex;align-items:center;gap:24px;margin-top:12px}
  .diag-actions .btn-primary{width:280px}
  .diag-shell{padding:38px 34px 30px}
  .diag-progress-label{font-size:13px;font-weight:700;color:var(--violet);margin:2px 0 24px}
  .diag-progress{height:5px;border-radius:999px;background:#ECECF3;overflow:hidden;margin-bottom:42px}
  .diag-progress i{display:block;height:100%;width:4%;border-radius:999px;background:var(--violet);transition:width .25s ease}
  .diag-grid{display:grid;grid-template-columns:300px 1fr;gap:54px;align-items:start}
  .diag-side{min-height:560px;display:flex;flex-direction:column}
  .diag-side .diag-illo{width:128px;height:128px;margin-bottom:34px;justify-self:start}
  .diag-side .diag-illo svg{width:78px;height:78px}
  .diag-side h3{font-size:24px;font-weight:700;line-height:1.35;letter-spacing:-.012em;margin-bottom:18px;max-width:300px}
  .diag-side p{font-size:14.5px;line-height:1.65;color:var(--muted);max-width:260px}
  .diag-note{margin-top:auto;display:grid;grid-template-columns:auto 1fr;gap:10px;color:var(--muted);font-size:12.5px;line-height:1.42;max-width:260px}
  .diag-note svg{width:17px;height:17px;color:var(--violet);stroke-width:1.8}
  .diag-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
  .diag-options.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .diag-option{min-height:58px;border:1px solid var(--hair);border-radius:14px;background:#fff;color:var(--ink);font-family:inherit;font-size:14.5px;font-weight:600;line-height:1.35;text-align:left;display:flex;align-items:center;gap:16px;padding:13px 16px;cursor:pointer;transition:.18s}
  .diag-option:hover{border-color:rgba(91,77,240,.28);background:#FBFAFF}
  .diag-option .mark{width:20px;height:20px;border:1.5px solid #8B83FF;border-radius:50%;flex-shrink:0}
  .diag-option.square .mark{border-radius:4px}
  .diag-option.selected{border-color:rgba(91,77,240,.55);background:#F7F6FE;color:var(--ink)}
  .diag-option.selected .mark{background:var(--violet);box-shadow:inset 0 0 0 5px #fff}
  .diag-textarea-wrap{margin-top:18px}
  .diag-textarea-wrap label{display:block;font-size:12.5px;font-weight:700;color:var(--ink-2);margin-bottom:10px}
  .diag-textarea{width:100%;min-height:66px;resize:vertical;border:1px solid var(--hair);border-radius:13px;padding:14px 16px;font:inherit;font-size:13.5px;color:var(--ink);outline:none}
  .diag-textarea::placeholder{color:#AAA8BD}
  .diag-scale-title{font-size:17px;font-weight:700;margin-bottom:24px}
  .diag-scale{position:relative;margin-bottom:30px}
  .diag-scale-line{position:absolute;left:15px;right:15px;top:48px;height:3px;background:#E6E6EF;border-radius:99px}
  .diag-scale-list{position:relative;display:grid;grid-template-columns:repeat(11,1fr);gap:0}
  .diag-scale-item{display:flex;flex-direction:column;align-items:center;gap:18px;font-size:14px;font-weight:700;color:var(--ink)}
  .diag-scale-dot{width:22px;height:22px;border:1.5px solid #8B83FF;border-radius:50%;background:#fff;cursor:pointer;position:relative}
  .diag-scale-dot.selected{border:7px solid var(--violet)}
  .diag-scale-caption{display:flex;justify-content:space-between;color:var(--muted);font-size:13.5px;font-weight:600;line-height:1.35;margin-bottom:34px}
  .diag-divider{height:1px;background:#E6E6EF;margin:30px 0}
  .diag-extra-title{font-size:13px;font-weight:700;color:var(--violet);margin-bottom:12px}
  .diag-extra-question{font-size:16px;font-weight:700;margin-bottom:8px}
  .diag-extra-copy{font-size:14px;color:var(--muted);margin-bottom:18px}
  .diag-footer{display:flex;justify-content:space-between;align-items:center;margin-top:28px}
  .diag-back{border:none;background:transparent;color:var(--violet);font:inherit;font-size:14px;font-weight:700;display:inline-flex;align-items:center;gap:8px;cursor:pointer;padding:10px 0}
  .diag-next{width:210px;display:inline-flex;align-items:center;justify-content:center;gap:10px}

  @keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
  @keyframes rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
  .reveal{opacity:0;animation:rise .75s cubic-bezier(.2,.75,.2,1) forwards}
  .d1{animation-delay:.05s}.d2{animation-delay:.13s}.d3{animation-delay:.21s}.d4{animation-delay:.29s}
  @media(prefers-reduced-motion:reduce){*{animation-duration:.001s!important;animation-iteration-count:1!important;opacity:1!important}.aurora{opacity:.7}}

  @media(max-width:980px){
    .app{grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;min-width:0}
    .sidebar,.main{width:100%;max-width:100%;min-width:0}
    .sidebar{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:14px}
    .nav{flex:0 0 100%;width:100%;min-width:0;flex-direction:row;flex-wrap:wrap}.nav-item{min-width:0}.pulse-card{display:none}
    .sidebar-foot{margin-top:0;min-width:0;flex-direction:row;width:100%;padding-top:0;transform:none}.help{min-width:0;flex:1}
    .topbar,.page-head{align-items:flex-start;gap:18px}.topbar-right{flex-wrap:wrap;justify-content:flex-end}.topbar-quick-actions{order:0}
    .grid-2,.protocol,.steps-card,.about,.ai-grid,.protocol-strip,.consent-strip,.protocol-hero,.organism-layout,.body-map,.summary-grid,.data-workspace,.profile-card,.settings-grid,.profile-hero,.profile-hero-main,.protected-banner,.chat-intro,.privacy-layout,.family-layout,.family-content,.family-overview-grid,.backup-overview,.restore-row{grid-template-columns:1fr}
    .med-record-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .med-record-card,.med-record-card.hypotheses,.med-record-card.devices{grid-column:span 1}
    .prompt-chips{grid-template-columns:1fr 1fr}
    .protocol-cta{align-items:flex-start;min-width:0}
    .consent-cta{align-items:flex-start;min-width:0}.consent-cta .btn-primary{width:100%}
    .consent-form-card{padding:28px 22px 32px}
    .consent-form-head{gap:16px;margin-bottom:26px}
    .consent-form{grid-template-columns:1fr;gap:18px;padding-left:0}
    .consent-field.full,.consent-check-row,.consent-submit{grid-column:1}
    .consent-review-head{gap:14px}
    .pdf-toolbar{grid-template-columns:1fr;gap:10px;height:auto;padding:14px}
    .pdf-controls,.pdf-actions{justify-content:flex-start}
    .pdf-body{height:520px;padding:0 18px 24px}
    .pdf-page-sheet{min-height:700px;padding:32px 24px}
    .pdf-doc-head{gap:20px;flex-direction:column;margin-bottom:44px}
    .pdf-doc-meta{text-align:left}
    .success-card{padding:42px 18px 28px}
    .success-feature-grid{grid-template-columns:1fr}
    .success-feature{min-height:auto}
    .success-note{grid-template-columns:1fr;text-align:center}
    .success-note .success-feature-icon{margin:0 auto}
    .illo,.goal-pct{justify-self:start}.main{padding:26px 20px 40px}
    .page-head{gap:18px;flex-direction:column}
    .page-head .topbar-right{width:100%;justify-content:flex-start;flex-wrap:wrap}
    .protocol-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}
    .protocol-art{justify-self:start;width:180px;height:180px}
    .protocol-art svg{width:96px;height:96px}
    .plan-card{grid-template-columns:auto 1fr}
    .plan-status{grid-column:2;justify-content:space-between}
    .protocol-note{grid-template-columns:1fr}
    .human-stage{min-height:360px}
    .human-svg{width:210px;height:330px}
    .metrics-grid{grid-template-columns:1fr 1fr}
    .analysis-row{grid-template-columns:auto 1fr}
    .analysis-status{grid-column:2;justify-content:space-between}
    .source-row{grid-template-columns:auto 1fr;align-items:start}
    .source-status,.source-row .mini-btn,.source-row .row-menu{grid-column:2}
    .data-tabs{overflow:auto}
    .data-row{grid-template-columns:auto 1fr;gap:8px 12px}
    .data-row span,.data-row .row-menu{grid-column:2}
    .profile-main{grid-template-columns:1fr}
    .profile-facts{border-left:none;border-top:1px solid var(--hair);padding-left:0;padding-top:14px}
    .security-art,.about-brand{min-height:220px}
    .privacy-card{position:static;min-height:auto}
    .profile-row{grid-template-columns:auto 1fr;gap:8px 12px}
    .profile-row span,.profile-row .edit-icon{grid-column:2}
    .profile-hero .btn-soft{margin-top:0;width:max-content}
    .view-ai-chat.active{height:auto;min-height:0}
    .chat-thread{overflow:visible;flex:none;padding-right:0}
    .message.user{max-width:100%}
    .chat-composer{grid-template-columns:auto 1fr auto}
    .diag-modal{padding:18px}
    .diag-card{width:calc(100vw - 36px);max-height:calc(100vh - 36px)}
    .create-layout{grid-template-columns:1fr;margin-bottom:24px}
    .create-form{grid-template-columns:1fr}
    .create-actions{position:static;flex-direction:column;align-items:stretch}
    .create-actions-right{flex-direction:column;align-items:stretch;gap:14px}
    .create-actions .btn-soft,.create-actions .btn-primary{width:100%;justify-content:center}
    .download-row,.delete-actions{grid-template-columns:1fr}
    .download-row .btn-outline,.delete-actions .btn-outline,.delete-actions .btn-danger,.backup-action .btn-outline,.restore-row .btn-outline{width:100%;justify-content:center}
    .grant-type-grid,.grant-duration,.grant-actions{grid-template-columns:1fr}
    .grant-actions .btn-primary,.grant-actions .btn-outline{width:100%;justify-content:center}
    .history-toolbar,.history-row{grid-template-columns:1fr}
    .history-actions{justify-content:flex-start}
    .format-grid{grid-template-columns:1fr 1fr}
    .export-layout aside{display:flex;flex-direction:column;gap:16px}
    .family-head{gap:18px;flex-direction:column}
    .family-overview-grid{align-items:start}
    .relative-row{grid-template-columns:auto 1fr;gap:12px}
    .relative-row .btn-outline,.relative-menu{grid-column:2;width:max-content}
    .family-protection{grid-template-columns:1fr}
    .invite-card{position:static}
    .diag-welcome,.diag-grid{grid-template-columns:1fr}
    .diag-welcome{gap:22px;padding:42px 24px 28px}
    .diag-facts,.diag-options,.diag-options.cols-3{grid-template-columns:1fr}
    .diag-shell{padding:32px 22px 24px}
    .diag-side{min-height:auto}
    .diag-side .diag-illo{margin-bottom:22px}
    .diag-note{margin-top:22px}
    .diag-footer{gap:18px;align-items:stretch;flex-direction:column-reverse}
    .diag-next,.diag-actions .btn-primary{width:100%}
    .diag-actions{align-items:stretch;flex-direction:column}
  }
  @media(max-width:620px){.med-record-grid{grid-template-columns:1fr}.med-record-card,.med-record-card.hypotheses,.med-record-card.devices{grid-column:1;min-height:176px;padding:28px 22px 22px}.med-record-card h2{font-size:22px}.med-record-art,.med-record-card.hypotheses .med-record-art,.med-record-card.devices .med-record-art{right:-13px;bottom:-8px;width:178px;height:178px}.topbar,.page-head{flex-direction:column}.topbar-right{width:100%;justify-content:flex-start}.topbar-quick-actions{width:100%}.topbar-quick-action{flex:1;padding:0 10px}}
  @media(max-width:620px){.view-today .topbar{flex-direction:row}.view-today .topbar-right{width:auto;margin-left:auto}.today-telegram-connect{height:42px;padding:0 16px;font-size:12px}.telegram-connect-modal{align-items:flex-end;padding:0}.telegram-connect-dialog{width:100%;max-height:calc(100svh - 18px);overflow:auto;border-radius:18px 18px 0 0;padding:28px 20px 22px}.telegram-connect-dialog h2{font-size:22px}.telegram-connect-actions{flex-direction:column-reverse}.telegram-connect-actions button{width:100%}}
/* Settings descendants — shared visual audit base, 2026-08-20. */
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head {
  max-width:820px;
  margin-bottom:30px;
}
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head .back-link {
  margin:0 0 20px;
  padding:0;
  color:#25384f;
  font-size:13px;
  font-weight:720;
}
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head .back-link svg {
  width:17px;
  height:17px;
  margin-left:-3px;
}
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head h1 {
  margin:0 0 10px -4px !important;
  padding-inline-start:0 !important;
  color:#142238;
  font-size:clamp(32px,2.5vw,40px) !important;
  font-weight:650 !important;
  line-height:1.08 !important;
  letter-spacing:-.04em !important;
}
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head p {
  max-width:760px;
  margin:0;
  color:#7a8ba0;
  font-size:15px;
  font-weight:500;
  line-height:1.55;
}

body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-layout {
  grid-template-columns:minmax(0,1fr) 322px;
  gap:20px;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-main { gap:20px; }

body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-list,
body.bios-live .view-access-history .history-card,
body.bios-live .view-backup .backup-card,
body.bios-live .view-grant-access :is(.grant-recipient,.grant-permission-list) {
  overflow:hidden;
  border:1px solid #dfe7ee;
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 42px -38px rgba(35,72,108,.34);
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-group > h2,
body.bios-live .view-backup .backup-section > h2,
body.bios-live .view-grant-access .grant-step > h2 {
  margin:0 0 12px;
  color:#25384f;
  font-size:18px;
  font-weight:680;
  line-height:1.25;
  letter-spacing:-.025em;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-row {
  min-height:76px;
  gap:16px;
  padding:13px 20px;
  border-color:#e7edf2;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-row .step-icon,
body.bios-live .view-access-history .history-row .step-icon,
body.bios-live .view-backup .backup-row .step-icon {
  width:40px;
  height:40px;
  border:1px solid #d9e8f4;
  border-radius:13px;
  color:#347fbe;
  background:#f0f7fc;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-row b,
body.bios-live .view-access-history .history-row b,
body.bios-live .view-backup .backup-row b,
body.bios-live .view-grant-access .grant-row b {
  color:#273b52;
  font-size:14px;
  font-weight:690;
  letter-spacing:-.01em;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-row p,
body.bios-live .view-access-history .history-row p,
body.bios-live .view-backup .backup-row p,
body.bios-live .view-grant-access .grant-row p {
  color:#8191a3;
  font-size:11.5px;
  font-weight:520;
  line-height:1.45;
}

body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-card {
  padding:23px;
  border:1px solid #d9e6ef;
  border-radius:22px;
  background:linear-gradient(145deg,#f9fcfe 0%,#f2f8fc 100%);
  box-shadow:0 22px 48px -40px rgba(34,77,118,.42);
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-card > svg:first-child {
  width:42px;
  height:42px;
  margin-bottom:17px;
  stroke-width:1.7;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-card > h2 {
  margin-bottom:8px;
  color:#1e3148;
  font-size:18px;
  font-weight:680;
  line-height:1.25;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-card > p {
  margin-bottom:18px;
  color:#718397;
  font-size:11.5px;
  line-height:1.55;
}

body.bios-live .view-access-history .history-toolbar { gap:10px; margin-bottom:12px; }
body.bios-live .view-access-history .history-control {
  height:42px;
  border-color:#dce6ed;
  border-radius:13px;
  color:#455a70;
  font-size:11.5px;
  font-weight:650;
}
body.bios-live .view-access-history .history-count {
  padding:15px 18px;
  color:#40566d;
  font-size:12px;
  font-weight:680;
}
body.bios-live .view-access-history .history-row {
  min-height:76px;
  padding:13px 18px;
  border-color:#e7edf2;
}
body.bios-live .view-access-history .history-time {
  color:#73859a;
  font-size:11px;
  font-weight:620;
}

body.bios-live .view-grant-access .grant-type-grid { gap:10px; }
body.bios-live .view-grant-access .grant-type {
  min-height:76px;
  border-color:#dfe7ee;
  border-radius:18px;
  background:#fff;
  box-shadow:none;
}
body.bios-live .view-grant-access .grant-type:hover,
body.bios-live .view-grant-access .grant-type.active {
  border-color:#c8dce9;
  background:#f5fafe;
  box-shadow:none;
}
body.bios-live .view-grant-access .grant-type.active .radio-dot { border-color:#2786d3; }
body.bios-live .view-grant-access .grant-type.active .radio-dot::after { background:#2786d3; }
body.bios-live .view-grant-access .grant-recipient { padding:14px; }
body.bios-live .view-grant-access .grant-tabs { background:#f0f5f9; }
body.bios-live .view-grant-access .grant-field input:focus {
  border-color:#a9cfe9;
  box-shadow:0 0 0 3px rgba(39,133,209,.08);
}
body.bios-live .view-grant-access .grant-row { min-height:66px; border-color:#e7edf2; }
body.bios-live .view-grant-access .duration-option {
  border-color:#dfe7ee;
  border-radius:14px;
  background:#fff;
  box-shadow:none;
}
body.bios-live .view-grant-access .duration-option:hover,
body.bios-live .view-grant-access .duration-option.active {
  border-color:#c8dce9;
  color:#287fcf;
  background:#f5fafe;
  box-shadow:none;
}

body.bios-live .view-security :is(.security-status,.security-value) {
  color:#4f687f;
  font-size:11px;
  font-weight:680;
}
body.bios-live .view-security .security-status {
  padding:5px 9px;
  border-radius:999px;
  color:#278961;
  background:#eef9f4;
}
body.bios-live .view-security .security-tip,
body.bios-live .main > :is(.view-data-use,.view-permissions) .safe-note {
  border-color:#dce7ef;
  border-radius:18px;
  background:rgba(255,255,255,.7);
}

body.bios-live .view-backup .backup-layout .privacy-main { gap:20px; }
body.bios-live .view-backup .backup-overview {
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:22px;
  padding:23px;
}
body.bios-live .view-backup .backup-cloud {
  width:58px;
  height:58px;
  color:#347fbe;
}
body.bios-live .view-backup .backup-cloud svg {
  width:54px;
  height:54px;
  stroke-width:1.55;
}
body.bios-live .view-backup .backup-facts { gap:11px; }
body.bios-live .view-backup .backup-fact small {
  color:#8393a5;
  font-size:10.5px;
  font-weight:560;
}
body.bios-live .view-backup .backup-fact b {
  color:#30465d;
  font-size:11.5px;
  font-weight:680;
}
body.bios-live .view-backup .backup-row {
  min-height:72px;
  padding:13px 18px;
  border-color:#e7edf2;
}
body.bios-live .view-backup .restore-row { border-radius:22px; }

@media (max-width:1080px) {
  body.bios-live .main > :is(
    .view-privacy, .view-data-use, .view-access-history, .view-permissions,
    .view-grant-access, .view-security, .view-backup
  ) .privacy-layout { grid-template-columns:minmax(0,1fr) 292px; }
}
@media (max-width:900px) {
  body.bios-live .main > :is(
    .view-privacy, .view-data-use, .view-access-history, .view-permissions,
    .view-grant-access, .view-security, .view-backup
  ) .privacy-layout { grid-template-columns:1fr; }
  body.bios-live .view-backup .backup-overview { grid-template-columns:auto minmax(0,1fr); }
  body.bios-live .view-backup .backup-action {
    grid-column:1 / -1;
    align-items:flex-start;
    text-align:left;
  }
}
@media (max-width:620px) {
  body.bios-live .main > :is(
    .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
    .view-permissions, .view-grant-access, .view-security, .view-backup,
    .view-data-export, .view-account-delete
  ) .privacy-head h1 {
    margin-left:-2px !important;
    font-size:30px !important;
  }
  body.bios-live .view-access-history :is(.history-toolbar,.history-row),
  body.bios-live .view-backup .backup-overview { grid-template-columns:1fr; }
}



/* Inlined from dashboard-app.css. */
body.bios-live .nav-item[data-tab="organism"],
body.bios-live .nav-item[data-tab="family"],
body.bios-live .pulse-card,
body.bios-live .view-today .ai-grid,
body.bios-live .view-data .summary-grid,
body.bios-live .view-data .sources-panel,
body.bios-live .view-data .data-tabs,
body.bios-live .view-data .show-all,
body.bios-live .view-data .export-card,
body.bios-live .view-data .page-head .btn-soft,
body.bios-live .view-settings > .bios-demo-settings-profile,
body.bios-live .view-settings > .bios-demo-settings-goal,
body.bios-live .view-settings > .bios-demo-settings-about,
body.bios-live .view-protocol-create,
body.bios-live .create-protocol-open,
body.bios-live .view-protocols > .protocol-pane {
  display: none !important;
}

body.bios-live .view-protocols > .protocol-tabs {
  display: inline-grid;
}

body.bios-live .view-protocols .protocol-tab {
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

body.bios-live .view-protocols .protocol-tab:hover {
  color: var(--violet);
  background: rgba(91, 77, 240, .08);
}

body.bios-live .view-protocols .protocol-tab:focus-visible {
  outline: 3px solid rgba(91, 77, 240, .24);
  outline-offset: 2px;
}

.bios-live-protocols { display: none; }

body.bios-live .bios-live-protocols {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.bios-live .bios-protocol-empty-state {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 30px;
  border: 1px solid rgba(31, 52, 78, .09);
  border-radius: 24px;
  background: #fff;
  text-align: center;
}

body.bios-live .bios-protocol-empty-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(73, 148, 222, .14);
  border-radius: 20px;
  background: #f0f7fd;
  color: #2683d8;
}

body.bios-live .bios-protocol-empty-mark svg { width: 30px; height: 30px; stroke-width: 1.55; }

body.bios-live .bios-protocol-empty-state h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

body.bios-live .bios-protocol-empty-state p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

body.bios-live .bios-protocol-list {
  display: grid;
  gap: 12px;
}

body.bios-live .bios-protocol-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--hair);
  border-radius: 8px;
}

body.bios-live .bios-protocol-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

body.bios-live .bios-protocol-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

body.bios-live .bios-protocol-status {
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  body.bios-live .view-protocols > .protocol-tabs {
    display: grid;
  }

  body.bios-live .bios-live-protocols {
    padding: 18px;
  }

  body.bios-live .bios-protocol-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.bios-live .view-profile > .profile-hero,
body.bios-live .view-profile > .profile-section,
body.bios-live .view-profile > .protected-banner {
  display: none !important;
}

body.bios-live .view-profile > .page-head .topbar-right { display: none; }

body.bios-live .main .topbar-right > .avatar,
body.bios-live .main .topbar-right > .bios-topbar-profile-avatar {
  display: none !important;
}

body.bios-live .sidebar .profile:hover {
  background: rgba(91, 77, 240, .08);
  box-shadow: 0 0 0 2px rgba(91, 77, 240, .1);
}

body.bios-live .bios-profile-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  object-fit: cover;
}

body.bios-live .bios-avatar-hidden { display: none; }

body.bios-live .bios-live-profile-panel {
  display: grid;
  gap: 20px;
}

body.bios-live .bios-profile-hero-live {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
}

body.bios-live .bios-profile-photo-wrap {
  position: relative;
  width: 112px;
  height: 112px;
}

body.bios-live .bios-profile-photo-live {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #cfc7f7, #8fa0ff);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
}

body.bios-live .bios-profile-photo-live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.bios-live .bios-profile-photo-button {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

body.bios-live .bios-profile-identity-live h2 {
  margin: 0 0 7px;
  font-size: 24px;
}

body.bios-live .bios-profile-identity-live p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

body.bios-live .bios-profile-details-live { padding: 28px; }

body.bios-live .bios-profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

body.bios-live .bios-profile-heading h2 { margin: 0 0 6px; }
body.bios-live .bios-profile-heading p { margin: 0; color: var(--muted); }

body.bios-live .bios-profile-facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

body.bios-live .bios-profile-facts-list .bios-live-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

body.bios-live .bios-profile-facts-list .bios-live-row:nth-child(odd) {
  border-right: 1px solid var(--line);
}

body.bios-live .bios-profile-facts-list span {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  line-height: 1.35;
}

body.bios-live .bios-profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.bios-live .bios-profile-form[hidden] { display: none; }

body.bios-live .bios-profile-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

body.bios-live .bios-profile-form input,
body.bios-live .bios-profile-form select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

body.bios-live .bios-profile-form input:focus,
body.bios-live .bios-profile-form select:focus {
  outline: 3px solid rgba(91, 77, 240, .14);
  border-color: var(--violet);
}

body.bios-live .bios-profile-form input[readonly] {
  background: var(--surface-tint);
  color: var(--muted);
}

body.bios-live .bios-profile-email-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

body.bios-live .bios-live-access-panel {
  display: grid;
  gap: 18px;
  max-width: 1040px;
  margin: 0 auto;
}

body.bios-live .bios-access-heading,
body.bios-live .bios-access-list,
body.bios-live .bios-access-form {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 8px;
}

body.bios-live .bios-access-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

body.bios-live .bios-access-heading h1,
body.bios-live .bios-access-heading h2,
body.bios-live .bios-access-list h2,
body.bios-live .bios-access-form h2 { margin: 0 0 7px; }
body.bios-live .bios-access-heading p,
body.bios-live .bios-access-form-heading p,
body.bios-live .bios-access-row p { margin: 0; color: var(--muted); }
body.bios-live .bios-access-row small { display: block; margin-top: 6px; color: var(--muted); }

body.bios-live .bios-access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
}

body.bios-live .bios-access-row code { display: block; margin-top: 8px; font-size: 12px; }
body.bios-live .bios-access-row > div:last-child { display: flex; gap: 8px; }
body.bios-live .bios-access-revoke { color: #b4233a; }

body.bios-live .bios-access-form { display: grid; gap: 16px; }
body.bios-live .bios-access-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
body.bios-live .bios-access-form input[type="text"],
body.bios-live .bios-access-form select {
  width: 100%; min-width: 0; height: 46px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
}
body.bios-live .bios-access-form fieldset { display: grid; gap: 10px; margin: 0; padding: 16px; border: 1px solid var(--hair); border-radius: 8px; }
body.bios-live .bios-access-form fieldset label { display: flex; align-items: center; gap: 9px; font-weight: 500; }
body.bios-live .bios-access-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--violet); }
body.bios-live .bios-access-pilot-note { margin: 0; color: var(--muted); font-size: 12px; }
body.bios-live .bios-access-form > .btn-primary { justify-self: start; }

.bios-access-step-up { width: min(440px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; }
.bios-access-step-up::backdrop { background: rgba(24, 28, 39, .54); }
.bios-access-step-up-form { display: grid; gap: 16px; padding: 24px; }
.bios-access-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bios-access-dialog-heading h2 { margin: 4px 0 0; font-size: 20px; }
.bios-access-dialog-heading button { width: 38px; height: 38px; border: 1px solid var(--hair); border-radius: 50%; background: #fff; }
.bios-access-step-up-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
.bios-access-step-up-form input { height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 6px; }
.bios-access-error { min-height: 18px; margin: 0; color: #b4233a; font-size: 13px; }
.bios-access-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 720px) {
  body.bios-live .bios-access-heading { align-items: stretch; flex-direction: column; }
  body.bios-live .bios-access-row { align-items: flex-start; flex-direction: column; }
  body.bios-live .bios-access-row > div:last-child { width: 100%; }
  body.bios-live .bios-access-row button { flex: 1; }
}

body.bios-live .bios-profile-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
}

@media (max-width: 760px) {
  body.bios-live .sidebar {
    padding: 18px 20px;
    gap: 10px;
  }
  body.bios-live .sidebar .brand {
    width: 100%;
    padding: 0 4px 10px;
  }
  body.bios-live .sidebar .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  body.bios-live .sidebar .nav-item {
    width: 100%;
    padding: 10px;
    font-size: 13px;
  }
  body.bios-live .sidebar-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }
  body.bios-live .sidebar-foot .help { display: none; }
  body.bios-live .sidebar-foot .profile { min-width: 0; }
  body.bios-live .bios-live-logout {
    width: auto;
    margin: 0;
    white-space: nowrap;
  }
  body.bios-live .bios-profile-hero-live { grid-template-columns: minmax(0, 1fr); }
  body.bios-live .bios-profile-hero-live > .btn-soft { grid-column: 1 / -1; width: 100%; }
  body.bios-live .bios-profile-facts-list,
  body.bios-live .bios-profile-form { grid-template-columns: 1fr; }
  body.bios-live .bios-profile-facts-list .bios-live-row:nth-child(odd) { border-right: 0; }
  body.bios-live .bios-profile-email-note,
  body.bios-live .bios-profile-actions { grid-column: 1; }
}

/* Keep every command visibly interactive without changing its layout. */
body.bios-live button,
body.bios-live [role="button"],
body.bios-live .chip,
body.bios-live .settings-row[data-open-view],
body.bios-live .privacy-row[data-open-view] {
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease,
    box-shadow .16s ease, filter .16s ease, transform .16s ease;
}

body.bios-live button:not(:disabled):hover,
body.bios-live [role="button"]:not([aria-disabled="true"]):hover,
body.bios-live .chip:hover {
  filter: brightness(.98);
}

body.bios-live .home-chat-upload,
body.bios-live .composer-plus {
  border-radius: 50%;
}

body.bios-live .btn-primary:not(:disabled):hover,
body.bios-live .btn-danger:not(:disabled):hover,
body.bios-live .home-chat-send:not(:disabled):hover,
body.bios-live .composer-send:not(:disabled):hover {
  box-shadow: 0 7px 18px rgba(8, 124, 240, .22);
  filter: brightness(.96);
  transform: translateY(-1px);
}

body.bios-live .home-chat-upload:not(:disabled):hover,
body.bios-live .composer-plus:not(:disabled):hover,
body.bios-live .chat-intro-close:not(:disabled):hover,
body.bios-live .bios-document-close:not(:disabled):hover,
body.bios-live .bios-upload-close:not(:disabled):hover,
body.bios-live .bios-pending-attachment button:not(:disabled):hover {
  background: var(--violet-soft);
  color: var(--violet);
  filter: none;
}

body.bios-live button:not(:disabled):active,
body.bios-live [role="button"]:not([aria-disabled="true"]):active,
body.bios-live .chip:active {
  transform: translateY(1px);
}

body.bios-live button:focus-visible,
body.bios-live [role="button"]:focus-visible,
body.bios-live .chip:focus-visible,
body.bios-live .settings-row[data-open-view]:focus-visible,
body.bios-live .privacy-row[data-open-view]:focus-visible {
  outline: 3px solid rgba(8, 124, 240, .24);
  outline-offset: 3px;
}

body.bios-live button:disabled,
body.bios-live [role="button"][aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none;
  filter: none;
}

body.bios-live .chat-thread .bubble { white-space: pre-wrap; }
body.bios-live .consent-native-checkbox {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  accent-color: var(--violet);
}

.bios-live-panel { margin-top: 22px; padding: 28px; }
.bios-live-panel h2 { margin: 0 0 8px; font-size: 20px; }
.bios-live-panel p { margin: 0; color: var(--muted); line-height: 1.6; }
.bios-live-list { display: grid; gap: 12px; margin-top: 20px; }
.bios-live-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.bios-live-row:first-child { border-top: 0; }
.bios-live-row b { display: block; overflow-wrap: anywhere; }
.bios-live-row span { color: var(--muted); font-size: 13px; }
.bios-live-status { white-space: nowrap; font-weight: 800; color: var(--violet) !important; }
.bios-consent-trailing { display: grid; justify-items: end; gap: 9px; }
.bios-consent-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.bios-consent-actions .btn-soft,
.bios-consent-withdraw { min-height: 36px; padding: 7px 11px; border-radius: 7px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.bios-consent-withdraw { border: 1px solid #d5d1df; background: #fff; color: #7b3344; }
.bios-consent-actions button:disabled { cursor: wait; opacity: .58; }
.bios-live-toast { position: fixed; right: 24px; bottom: 24px; z-index: 1000; max-width: min(420px, calc(100vw - 48px)); padding: 14px 18px; border-radius: 8px; background: #242235; color: #fff; box-shadow: 0 14px 40px rgba(32,28,69,.24); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.bios-live-toast.show { opacity: 1; transform: translateY(0); }
.bios-settings-row-button { width: 100%; grid-template-columns: 1fr auto; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.bios-settings-row-button:hover { background: var(--surface-tint); }
.bios-settings-row-button > span:first-child { min-width: 0; }

.bios-billing-settings {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(10, 117, 230, .14);
  background: linear-gradient(145deg, #fff 0%, #f5faff 100%);
}
.bios-billing-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.bios-billing-heading small { color: var(--muted); font-weight: 700; letter-spacing: .02em; }
.bios-billing-heading h2 { margin: 4px 0 0; }
.bios-billing-price { color: var(--blue); font-size: 24px; font-weight: 800; white-space: nowrap; }
.bios-billing-price small { font-size: 14px; font-weight: 600; }
.bios-billing-copy { margin: 0; color: var(--muted); line-height: 1.55; }
.bios-billing-checkout-controls { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(190px, 1fr) auto; align-items: end; gap: 12px; }
.bios-billing-checkout-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 650; }
.bios-billing-checkout-controls select, .bios-billing-checkout-controls input { min-height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: #fff; font: inherit; }
.bios-billing-quote { margin: -5px 0 0; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.45; }
.bios-billing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bios-billing-consent { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 420px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.bios-billing-consent input { margin-top: 3px; accent-color: var(--blue); }
@media (max-width: 680px) {
  .bios-billing-heading { flex-direction: column; gap: 8px; }
  .bios-billing-actions .btn-primary, .bios-billing-actions .btn-outline { width: 100%; }
  .bios-billing-checkout-controls { grid-template-columns: 1fr; }
}
.bios-settings-arrow { color: var(--muted); font-size: 24px; line-height: 1; }
.bios-settings-single { grid-template-columns: minmax(0, 1fr) !important; }
.bios-confirm-dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 1px solid rgba(13,35,59,.12); border-radius: 8px; background: #fff; color: #0d233b; box-shadow: 0 28px 80px rgba(8,29,51,.24); }
.bios-confirm-dialog::backdrop { background: rgba(5,18,31,.46); backdrop-filter: blur(8px); }
.bios-confirm-dialog-panel { padding: 30px; }
.bios-confirm-dialog h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.bios-confirm-dialog p { margin: 0; color: #5f6f7d; font-size: 14px; line-height: 1.55; }
.bios-confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.bios-live-empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.bios-live-pdf { display: block; width: 100%; min-height: 68vh; border: 0; background: #fff; }
.bios-profile-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.bios-profile-heading .btn-soft { flex: 0 0 auto; }
.bios-profile-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.bios-profile-form[hidden] { display: none; }
.bios-profile-form label { display: grid; gap: 8px; min-width: 0; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.bios-profile-form input,
.bios-profile-form select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
.bios-profile-form input:focus,
.bios-profile-form select:focus { border-color: var(--violet); outline: 2px solid rgba(105, 84, 255, .14); }
.bios-profile-actions { display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; }
.bios-live-logout { width: 100%; margin-top: 12px; }
.bios-live-health-summary { margin-bottom: 22px; }
.bios-health-latest { display: grid; gap: 6px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.bios-health-latest span { color: var(--ink-2); line-height: 1.55; }
.bios-memory-record,
.bios-result-record { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); }
.bios-memory-section-title { margin: 18px 0 0; color: var(--ink); font-size: 15px; }
.bios-memory-section-title:first-child { margin-top: 0; }
.bios-memory-record.is-history { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-tint); }
.bios-memory-record.is-history + .bios-memory-record.is-history { margin-top: -4px; }
.bios-memory-period { color: var(--ink-2); font-size: 13px; line-height: 1.5; }
.bios-memory-record:first-child,
.bios-result-record:first-child { border-top: 0; }
.bios-memory-record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.bios-memory-record-head time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bios-memory-record p,
.bios-result-record p { margin: 0; color: var(--ink-2); white-space: pre-wrap; }
.bios-memory-record small { color: var(--muted); line-height: 1.5; }
.bios-memory-provenance { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; }
.bios-memory-action { justify-self: start; padding: 5px 8px; border-radius: 6px; background: #f1efff; color: var(--violet); font-size: 12px; font-weight: 700; }
.bios-message-attachments { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bios-message-attachments span,
.bios-pending-attachment { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink-2); font-size: 12px; }
.bios-pending-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.bios-pending-attachment > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bios-pending-attachment button { width: 20px; height: 20px; border: 0; padding: 0; background: transparent; color: var(--muted); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.bios-chat-operation-error { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 10px 12px; border: 1px solid #efc8c8; border-radius: 8px; background: #fff8f8; color: #7a3030; font-size: 12px; }
.bios-chat-operation-error button { border: 0; background: transparent; color: var(--violet); font: inherit; font-weight: 700; cursor: pointer; }
.bios-message-text { display: block; min-width: 0; white-space: normal; }
.message.user .bios-message-text { white-space: pre-wrap; }
.bios-message-text p,
.bios-message-text ul,
.bios-message-text ol { margin: 0; }
.bios-message-text p + p,
.bios-message-text p + ul,
.bios-message-text p + ol,
.bios-message-text ul + p,
.bios-message-text ol + p,
.bios-message-text ul + ul,
.bios-message-text ol + ol,
.bios-message-text h3 + p,
.bios-message-text h4 + p { margin-top: 12px; }
.bios-message-text ul,
.bios-message-text ol { padding-left: 22px; }
.bios-message-text li + li { margin-top: 6px; }
.bios-message-text strong { color: var(--ink); font-weight: 700; }
.bios-message-text h3,
.bios-message-text h4 { margin: 0 0 10px; color: inherit; font-size: 1em; line-height: 1.35; }
.bios-message-column { display: grid; min-width: 0; gap: 8px; }
.bios-chat-feedback { display: grid; gap: 8px; margin: 2px 0 0 4px; }
.bios-chat-feedback-actions,
.bios-chat-feedback-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.bios-chat-feedback-button { min-height: 30px; padding: 5px 9px; border: 1px solid rgba(28,39,61,.12); border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.bios-chat-feedback-button:hover { border-color: rgba(28,39,61,.12); color: #076ed8; }
.bios-chat-feedback-button.is-active { border-color: rgba(8,124,240,.20); background: #edf6ff; color: #076ed8; }
.bios-chat-feedback-reasons { padding-top: 2px; }
.bios-chat-feedback-reasons .bios-chat-feedback-button { background: #f7f9fc; font-weight: 600; }
.bios-chat-intelligence { margin-top: 14px; padding-top: 11px; border-top: 1px solid rgba(28,39,61,.08); color: var(--ink-2); }
.bios-chat-intelligence > summary { display: inline-flex; align-items: center; gap: 7px; color: #076ed8; font-size: 12px; font-weight: 700; cursor: pointer; list-style: none; }
.bios-chat-intelligence > summary::-webkit-details-marker { display: none; }
.bios-chat-intelligence > summary::after { content: "⌄"; font-size: 14px; transform-origin: center; transition: transform .18s ease; }
.bios-chat-intelligence[open] > summary::after { transform: rotate(180deg); }
.bios-chat-intelligence-content { display: grid; gap: 12px; margin-top: 9px; padding: 0; font-size: 12px; line-height: 1.55; }
.bios-chat-intelligence-context { margin: 0; color: #41516b; }
.bios-chat-intelligence-block { display: grid; gap: 5px; }
.bios-chat-intelligence-block strong { color: var(--ink); font-size: 12px; }
.bios-chat-intelligence-block ol { margin: 0; padding-left: 18px; }
.bios-chat-intelligence-block small { color: var(--muted); }
.bios-chat-intelligence-sources { display: grid; gap: 3px; padding-top: 9px; border-top: 1px solid rgba(8,124,240,.10); color: var(--muted); font-size: 11px; }
.bios-hypothesis-handoff { display: grid; gap: 7px; margin-top: 10px; padding: 11px 0 4px; border-top: 1px solid rgba(28,39,61,.08); }
.bios-hypothesis-handoff-title { color: #60708a; font-size: 11px; font-weight: 650; }
.bios-hypothesis-handoff-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 10px; color: #26364c; font-size: 12px; }
.bios-hypothesis-handoff-row > span:first-child { font-weight: 600; }
.bios-hypothesis-handoff-status { color: #60708a; }
.bios-hypothesis-handoff-status.is-verified { color: #1e7a54; }
.bios-hypothesis-handoff-status.is-rejected { color: #8a4b4b; }
.bios-hypothesis-handoff-link { padding: 0; border: 0; background: transparent; color: #076ed8; font: inherit; font-weight: 650; cursor: pointer; }
.bios-hypothesis-handoff-link:disabled { opacity: .45; cursor: wait; }
.bios-hypothesis-handoff-review { flex-basis: 100%; margin: 0; color: #4d5e75; line-height: 1.5; }
.bios-thinking-message .bubble {
  min-width: min(520px, 100%);
  min-height: 58px;
  display: grid;
  gap: 11px;
  justify-self: start;
  padding-block: 14px;
  color: var(--muted);
}
.bios-thinking-label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; }
.bios-thinking-dots {
  width: 30px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
}
.bios-thinking-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  opacity: .3;
  animation: bios-thinking-dot 1.15s ease-in-out infinite;
}
.bios-thinking-dots span:nth-child(2) { animation-delay: .16s; }
.bios-thinking-dots span:nth-child(3) { animation-delay: .32s; }
@keyframes bios-thinking-dot {
  0%, 70%, 100% { opacity: .28; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}
.bios-typewriter-active::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: -.12em;
  background: var(--violet);
  animation: bios-typewriter-caret .7s steps(1, end) infinite;
}
@keyframes bios-typewriter-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .bios-thinking-dots span,
  .bios-typewriter-active::after { animation: none; }
  .bios-thinking-dots span { opacity: .65; transform: none; }
}
.bios-document-row { width: 100%; border: 0; border-bottom: 1px solid var(--hair); background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .16s ease; }
.bios-document-row:hover { background: #faf9ff; }
.bios-document-row:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.bios-document-status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.bios-document-action .bios-document-open { margin-top: 12px; align-self: flex-start; }
.bios-follow-up-list { display: grid; gap: 12px; margin-top: 14px; }
.bios-follow-up-record { border-top: 1px solid var(--line); padding-top: 16px; }
.bios-follow-up-record:first-child { border-top: 0; padding-top: 0; }
.bios-follow-up-record h3 { margin: 0 0 8px; font-size: 16px; }
.bios-follow-up-record p { margin: 0 0 8px; color: var(--muted); }
.bios-follow-up-record ul { margin: 0 0 12px; padding-left: 20px; }
.bios-follow-up-record small { display: block; margin-bottom: 12px; color: var(--muted); }
.bios-follow-up-form { display: grid; gap: 10px; }
.bios-follow-up-form textarea { width: 100%; min-height: 88px; resize: vertical; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: inherit; color: var(--ink); background: #fff; }
.bios-follow-up-attachments { display: flex; flex-wrap: wrap; gap: 6px; }
.bios-follow-up-attachments span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; font-size: 12px; color: var(--ink-2); }
.bios-follow-up-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bios-follow-up-actions .btn-primary,.bios-follow-up-actions .btn-soft { min-height: 40px; }
.bios-document-chevron { color: var(--muted); font-size: 24px !important; font-weight: 400 !important; line-height: 1; }
body.bios-modal-open { overflow: hidden; }
.bios-document-modal[hidden] { display: none; }
.bios-document-modal { position: fixed; inset: 0; z-index: 1250; display: grid; place-items: center; padding: 24px; background: rgba(24, 22, 64, .36); }
.bios-document-dialog { position: relative; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 30px; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(24, 22, 64, .24); }
.bios-document-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.bios-document-close:focus-visible { outline: 2px solid var(--violet); border-radius: 4px; }
.bios-document-review-label { display: block; margin: 0 48px 10px 0; color: var(--violet); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.bios-document-dialog h2 { margin: 0 48px 5px 0; font-size: 24px; }
.bios-document-filename { margin: 0 48px 24px 0; color: var(--muted); overflow-wrap: anywhere; }
.bios-document-lead { margin: 0 0 10px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.55; }
.bios-document-explanation { margin: 0; color: var(--ink-2); line-height: 1.6; }
.bios-document-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0; border-block: 1px solid var(--line); }
.bios-document-stats > div { display: grid; gap: 4px; min-width: 0; padding: 18px 20px 18px 0; }
.bios-document-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.bios-document-stats b { font-size: 20px; }
.bios-document-stats span { color: var(--muted); font-size: 13px; }
.bios-document-labels { margin-top: 24px; }
.bios-document-labels h3 { margin: 0 0 10px; font-size: 15px; }
.bios-document-labels ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: var(--ink-2); line-height: 1.45; }
.bios-document-action { display: grid; gap: 4px; margin-top: 24px; padding: 16px 0 0 16px; border-top: 1px solid var(--line); border-left: 3px solid #38a169; }
.bios-document-modal.requires-action .bios-document-action { border-left-color: #c47b17; }
.bios-document-action span { color: var(--ink-2); line-height: 1.5; }
.bios-document-retry { justify-self: start; margin-top: 8px; }
.bios-upload-modal[hidden] { display: none; }
.bios-upload-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: rgba(24, 22, 64, .36); }
.bios-upload-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 28px; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgba(24, 22, 64, .24); }
.bios-upload-dialog h2 { margin: 0 44px 6px 0; font-size: 22px; }
.bios-upload-filename { margin: 0 0 20px; color: var(--muted); overflow-wrap: anywhere; }
.bios-upload-close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }
.bios-upload-options { display: grid; gap: 10px; }
.bios-upload-options button { display: grid; gap: 4px; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.bios-upload-options button:hover { background: var(--surface-tint); }
.bios-upload-options button:focus-visible { border-color: var(--violet); outline: 2px solid rgba(105, 84, 255, .14); }
.bios-upload-options span { color: var(--muted); font-size: 13px; line-height: 1.45; }

body.bios-live form.privacy-group {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
body.bios-live form.privacy-group > h2 { margin-bottom: 0; }
body.bios-live form.privacy-group > label:not(.form-check) {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
}
body.bios-live form.privacy-group input:not([type="checkbox"]),
body.bios-live form.privacy-group select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
body.bios-live form.privacy-group input:focus,
body.bios-live form.privacy-group select:focus {
  border-color: var(--violet);
  outline: 2px solid rgba(105, 84, 255, .14);
}
body.bios-live form.privacy-group .form-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
body.bios-live form.privacy-group .form-check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--violet);
}
body.bios-live form.privacy-group > button { justify-self: start; }

@media (max-width: 760px) {
  .bios-confirm-dialog-panel { padding: 24px 20px 20px; }
  .bios-confirm-dialog-actions { flex-direction: column-reverse; }
  .bios-confirm-dialog-actions button { width: 100%; justify-content: center; }
  .bios-live-panel { padding: 20px; }
  .bios-live-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .bios-consent-trailing { justify-items: start; width: 100%; }
  .bios-consent-actions { justify-content: flex-start; }
  .bios-live-toast { right: 16px; bottom: 16px; max-width: calc(100vw - 32px); }
  .bios-memory-record-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .bios-document-modal { padding: 12px; }
  .bios-document-dialog { max-height: calc(100vh - 24px); padding: 22px; }
  .bios-document-stats { grid-template-columns: 1fr; }
  .bios-document-stats > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .bios-document-status { justify-content: flex-start; }
  .bios-upload-modal { padding: 12px; }
  .bios-upload-dialog { max-height: calc(100vh - 24px); padding: 22px; }
  .bios-profile-heading { align-items: stretch; flex-direction: column; }
  .bios-profile-form { grid-template-columns: 1fr; }
}




/* Inlined from premium-theme.css. */
/* BIOS patient product theme: quiet, precise and shared with the public patient site. */

@font-face {
  font-family: "Inter BIOS";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/frontend/assets/dashboard-r10-aebf2ab4a4ce6810.woff2?v=20260826r12") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter BIOS";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/frontend/assets/dashboard-r10-c940764593d0fe5d.woff2?v=20260826r12") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.bios-auth,
body.bios-live {
  --premium-ink: #0b1020;
  --premium-ink-soft: #151c31;
  --premium-muted: #5f687c;
  --premium-faint: #8a94a4;
  --premium-line: #dce1e8;
  --premium-line-strong: #cbd3de;
  --premium-page: #f4f4f8;
  --premium-surface: #ffffff;
  --premium-soft: #f6f8fc;
  --premium-accent: #087cf0;
  --premium-accent-dark: #173f73;
  --premium-accent-soft: #eef5ff;
  --premium-green: #5578e7;
  --premium-amber: #b56a13;
  --premium-red: #ad3348;
  --premium-shadow: 0 24px 64px rgba(34, 49, 84, .11);
  --premium-shadow-soft: 0 2px 12px rgba(34, 49, 84, .055);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: 0;
  color: var(--premium-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.bios-auth *,
body.bios-live * { letter-spacing: 0 !important; }

body.bios-auth :focus-visible,
body.bios-live :focus-visible {
  outline: 3px solid rgba(8, 124, 240, .24) !important;
  outline-offset: 3px;
}

/* Authentication and onboarding */
body.bios-auth {
  --violet: var(--premium-accent);
  --violet-2: var(--premium-accent-dark);
  --grad: linear-gradient(135deg, #111925, #0b1020);
  --ink: var(--premium-ink);
  --ink-soft: var(--premium-ink-soft);
  --muted: var(--premium-muted);
  --muted-2: var(--premium-faint);
  --line: var(--premium-line);
  --field: #f7f9f9;
  --field-line: var(--premium-line);
  --white: var(--premium-surface);
  --page: var(--premium-page);
  --surface: var(--premium-surface);
  --soft: var(--premium-soft);
  --panel-1: #edf1f6;
  --panel-2: #dfe5ee;
  --green: var(--premium-green);
  --r-card: 8px;
  --r-field: 8px;
  --r-btn: 8px;
  min-height: 100%;
  background: var(--premium-page);
}

body.bios-auth .screen { padding: 28px; }
body.bios-auth .screen.active > * { animation: premiumEnter .62s cubic-bezier(.2,.7,.2,1) both; }

body.bios-auth .card,
body.bios-auth .login-card,
body.bios-auth .surface {
  border: 1px solid rgba(13, 24, 32, .08);
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
}

body.bios-auth .card,
body.bios-auth .login-card { min-height: min(760px, calc(100vh - 56px)); }

body.bios-auth .pane,
body.bios-auth .login-pane { padding: 42px 56px 38px; }

body.bios-auth .statusbar,
body.bios-auth .eyebrow { display: none !important; }

body.bios-auth .brand {
  display: block;
  flex: 0 0 136px;
  width: 136px;
  height: 38px;
  overflow: hidden;
  background: url("/frontend/assets/dashboard-r10-31c2ac3c5b037ed8.png?v=20260826r12") -30px -22px / 190px auto no-repeat;
}
body.bios-auth .brand .mark,
body.bios-auth .brand .name { display: none; }

body.bios-auth .top-login a,
body.bios-auth .forgot,
body.bios-auth .login-bottom a,
body.bios-auth .legal a,
body.bios-auth .consent a {
  color: var(--premium-accent-dark) !important;
}

body.bios-auth .eyebrow {
  color: var(--premium-accent-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

body.bios-auth .pane h1,
body.bios-auth .login-copy h1,
body.bios-auth h1.title {
  color: var(--premium-ink);
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.06;
  font-synthesis: none;
}

body.bios-auth .pane h1 .accent,
body.bios-auth .login-copy .accent { color: inherit; }

body.bios-auth .lede,
body.bios-auth .sub { color: var(--premium-muted); line-height: 1.38; }

body.bios-auth .field label,
body.bios-auth .about-field label { color: var(--premium-ink-soft); font-weight: 620; }

body.bios-auth .control input,
body.bios-auth .about-input,
body.bios-auth textarea.ob-ta,
body.bios-auth .recovery-dialog input {
  border-color: var(--premium-line);
  border-radius: 8px;
  background: #f8fafa;
  color: var(--premium-ink);
  box-shadow: inset 0 1px 1px rgba(13, 24, 32, .02);
}

body.bios-auth .control input:hover,
body.bios-auth .about-input:hover,
body.bios-auth textarea.ob-ta:hover { border-color: var(--premium-line-strong); }

body.bios-auth .control input:focus,
body.bios-auth textarea.ob-ta:focus,
body.bios-auth .recovery-dialog input:focus {
  border-color: var(--premium-accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 124, 240, .1);
}

body.bios-auth .btn-primary {
  border-radius: 8px;
  background: var(--premium-accent);
  box-shadow: 0 8px 20px rgba(8, 124, 240, .18);
  transition: transform .22s cubic-bezier(.2,.7,.2,1), background .22s ease, box-shadow .22s ease;
}

body.bios-auth .btn-primary:hover {
  background: #0670da;
  filter: none;
  box-shadow: 0 10px 24px rgba(8, 124, 240, .22);
  transform: translateY(-1px);
}

body.bios-auth .btn-ghost,
body.bios-auth .btn-oauth {
  border-color: var(--premium-line);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
}

body.bios-auth .btn-ghost:hover,
body.bios-auth .btn-oauth:hover { border-color: var(--premium-line-strong); background: #fff; }

body.bios-auth .visual,
body.bios-auth .login-visual {
  position: relative;
  isolation: isolate;
  justify-content: center;
  overflow: hidden;
  padding: 56px;
  border-left: 1px solid var(--premium-line);
  background: #f2f3f5;
}

body.bios-auth .visual::before,
body.bios-auth .login-visual::before { display: none; }

body.bios-auth .visual .stage,
body.bios-auth .login-orbit { display: none; }

body.bios-auth .benefits,
body.bios-auth .login-visual h2 {
  position: relative;
  z-index: 1;
  width: 100%;
  color: var(--premium-ink);
  text-align: left;
  text-shadow: none;
}

body.bios-auth .benefits { width: 100%; margin: 0; }
body.bios-auth .benefits h3,
body.bios-auth .login-visual h2 {
  max-width: 430px;
  color: var(--premium-ink);
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
  font-synthesis: none;
}
body.bios-auth .benefits ul { display: none; }
body.bios-auth .login-visual h2 .accent { color: inherit; }

body.bios-auth .surface { background: rgba(255,255,255,.97); }

body.bios-auth .opt,
body.bios-auth .choice-btn,
body.bios-auth .dcard,
body.bios-auth .aside-card {
  border-color: var(--premium-line);
  border-radius: 8px;
  background: #fff;
}

body.bios-auth .opt:hover,
body.bios-auth .choice-btn:hover { border-color: var(--premium-accent); background: var(--premium-soft); }

body.bios-auth .opt.sel,
body.bios-auth .choice-btn.sel {
  border-color: var(--premium-accent);
  background: var(--premium-accent-soft);
  color: var(--premium-accent-dark);
  box-shadow: 0 0 0 3px rgba(8, 124, 240, .09);
}

body.bios-auth .opt.sel .radio,
body.bios-auth .consent input:checked { border-color: var(--premium-accent); background: var(--premium-accent); }
body.bios-auth .steps .bar.on { background: var(--premium-accent); }
body.bios-auth .aside-orb { background: #edf3f4; box-shadow: none; }
body.bios-auth .recovery-dialog { border-radius: 8px; box-shadow: var(--premium-shadow); }
body.bios-auth .recovery-dialog::backdrop { background: rgba(10, 20, 25, .48); backdrop-filter: blur(8px); }

/* Recolor the legacy inline artwork where it remains visible during onboarding. */
body.bios-auth svg [stroke="#6d5cf0"],
body.bios-auth svg [stroke="#7c6bf3"],
body.bios-auth svg [stroke="#4438ff"],
body.bios-auth svg [stroke="#8f7bf3"] { stroke: var(--premium-accent); }
body.bios-auth svg [fill="#6d5cf0"],
body.bios-auth svg [fill="#7c6bf3"],
body.bios-auth svg [fill="#8d7cf0"] { fill: var(--premium-accent); }

/* Patient dashboard */
body.bios-live {
  --violet: var(--premium-accent);
  --indigo: var(--premium-accent-dark);
  --peri: #8facff;
  --blue: #087cf0;
  --violet-soft: #e5edff;
  --violet-tint: #f2f6ff;
  --card: var(--premium-surface);
  --surface: var(--premium-soft);
  --surface-tint: #f2f5fa;
  --ink: var(--premium-ink);
  --ink-2: var(--premium-ink-soft);
  --muted: var(--premium-muted);
  --faint: var(--premium-faint);
  --hair: rgba(13, 24, 32, .09);
  --line: var(--premium-line);
  --r: 8px;
  --sh-card: 0 6px 22px rgba(23, 42, 50, .055);
  --sh-hover: 0 12px 32px rgba(23, 42, 50, .09);
  --sh-btn: 0 10px 24px rgba(13, 24, 32, .16);
  background: var(--premium-page);
}

body.bios-live .app { grid-template-columns: 264px minmax(0, 1fr); }

body.bios-live .sidebar {
  border-right-color: var(--premium-line);
  background: rgba(255,255,255,.86);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

body.bios-live .brand {
  display: block;
  width: 136px;
  height: 38px;
  overflow: hidden;
  background: url("/frontend/assets/dashboard-r10-31c2ac3c5b037ed8.png?v=20260826r12") -30px -22px / 190px auto no-repeat;
}
body.bios-live .brand-mark,
body.bios-live .brand-name { display: none; }

body.bios-live .nav { gap: 5px; }
body.bios-live .nav-item { min-height: 44px; border-radius: 8px; color: #56666f; font-weight: 570; }
body.bios-live .nav-item:hover { background: #eef2f7; color: var(--premium-ink); }
body.bios-live .nav-item.active {
  background: #eceef2;
  color: var(--premium-ink);
  box-shadow: none;
}
body.bios-live .nav-item.active svg { color: var(--premium-ink); }
body.bios-live .nav-lock { background: #e8ecf2; color: #748091; }

body.bios-live .profile,
body.bios-live .help { border-radius: 8px; }
body.bios-live .profile:hover,
body.bios-live .sidebar .profile:hover { background: #edf1f6; box-shadow: none; }
body.bios-live .help { border-color: var(--premium-line); background: #f2f5f9; }
body.bios-live .help .btn-chat {
  border-radius: 8px;
  background: var(--premium-accent);
  box-shadow: none;
}

body.bios-live .avatar rect:first-of-type { fill: #b8c2d2; }
body.bios-live .pulse-line polyline { stroke: var(--premium-accent); }

body.bios-live .main { width: 100%; max-width: 1440px; padding: 42px 52px 56px; }
body.bios-live .greeting h1,
body.bios-live .page-head h1 {
  color: var(--premium-ink);
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-synthesis: none;
}

body.bios-live h2,
body.bios-live h3 {
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
body.bios-live .greeting p,
body.bios-live .page-head p { color: var(--premium-muted); }

body.bios-live .panel,
body.bios-live .card,
body.bios-live .bios-live-profile-panel > *,
body.bios-live .bios-result-record,
body.bios-live .bios-memory-record {
  border-color: var(--premium-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--premium-shadow-soft);
}

body.bios-live .panel:hover { box-shadow: var(--premium-shadow-soft); }

body.bios-live .btn-primary,
body.bios-live .consent-submit,
body.bios-live [data-accept-consent] {
  border-radius: 8px;
  background: var(--premium-accent);
  box-shadow: none;
}

body.bios-live .btn-primary:hover,
body.bios-live .consent-submit:hover,
body.bios-live [data-accept-consent]:hover {
  background: #0670da;
  box-shadow: 0 8px 20px rgba(8, 124, 240, .18);
}

body.bios-live .voice-btn,
body.bios-live .composer-send,
body.bios-live .consent-icon,
body.bios-live .pdf-logo,
body.bios-live .create-step,
body.bios-live .invite-plus {
  background: var(--premium-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.bios-live .protocol-tab.active,
body.bios-live .data-tab.active,
body.bios-live .grant-tab.active,
body.bios-live .duration-btn.active,
body.bios-live .page-btn.active,
body.bios-live .format-card.active,
body.bios-live .structure-row.active {
  border-color: #e0e3e8 !important;
  background: #eceef2 !important;
  color: var(--premium-ink) !important;
  box-shadow: none !important;
}

body.bios-live .chip svg,
body.bios-live .chip.sleep svg,
body.bios-live .chip.energy svg,
body.bios-live .chip.lab svg,
body.bios-live .chip.stress svg {
  color: #5578e7 !important;
  stroke: currentColor !important;
}

body.bios-live .consent-info-icon,
body.bios-live .step-icon,
body.bios-live .system-chip svg,
body.bios-live .metric-card svg,
body.bios-live .source-icon:not(.apple):not(.garmin),
body.bios-live .success-feature-icon,
body.bios-live .success-feature-icon.green,
body.bios-live .success-feature-icon.gold {
  color: #5578e7 !important;
  background: #eef4fd !important;
}

body.bios-live .btn-outline,
body.bios-live .btn-soft,
body.bios-live .btn-secondary {
  border-color: var(--premium-line-strong);
  border-radius: 8px;
  color: var(--premium-ink-soft);
  background: #fff;
}

body.bios-live .link,
body.bios-live .bios-protocol-status,
body.bios-live .notifications-head button,
body.bios-live .bios-memory-action { color: var(--premium-accent-dark); }

body.bios-live input,
body.bios-live textarea,
body.bios-live select,
body.bios-live .chat-input,
body.bios-live .home-chat-input {
  border-color: var(--premium-line) !important;
  border-radius: 8px !important;
  background: #fff;
}

body.bios-live input:focus,
body.bios-live textarea:focus,
body.bios-live select:focus,
body.bios-live .chat-input:focus,
body.bios-live .home-chat-input:focus {
  border-color: var(--premium-accent) !important;
  box-shadow: 0 0 0 4px rgba(8, 124, 240, .09) !important;
  outline: 0 !important;
}

body.bios-live .bell {
  border-color: var(--premium-line);
  border-radius: 50%;
  box-shadow: var(--premium-shadow-soft);
}
body.bios-live .bell .badge { background: var(--premium-amber); border-color: var(--premium-page); box-shadow: none; }
body.bios-live .notifications-popover {
  border-color: var(--premium-line);
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
}
body.bios-live .notification-dot { background: var(--premium-accent); }

body.bios-live .message.ai,
body.bios-live .bios-assistant-message { border-color: var(--premium-line); background: #fff; }
body.bios-live .message.user,
body.bios-live .bios-user-message { border-color: #cfdaee; background: #f0f5fd; }
body.bios-live .bios-thinking-dots span { background: var(--premium-accent); }

body.bios-live .bios-document-row:hover { background: #f4f7fb; }
body.bios-live .bios-memory-action { background: #eef4fd; }
body.bios-live .bios-profile-photo-live { background: #b8c2d2; }
body.bios-live .bios-profile-photo-button { background: var(--premium-accent); }

body.bios-live .bios-document-modal,
body.bios-live .bios-upload-modal { background: rgba(10, 20, 25, .48); backdrop-filter: blur(8px); }
body.bios-live .bios-document-dialog,
body.bios-live .bios-upload-dialog,
body.bios-live dialog { border-radius: 8px; box-shadow: var(--premium-shadow); }

body.bios-live svg [stroke="#5B4DF0"],
body.bios-live svg [stroke="#6B5CF6"],
body.bios-live svg [stroke="#7466FF"],
body.bios-live svg [stroke="#8B83FF"] { stroke: var(--premium-accent); }
body.bios-live svg [fill="#5B4DF0"],
body.bios-live svg [fill="#6B5CF6"],
body.bios-live svg [fill="#7466FF"] { fill: var(--premium-accent); }

@keyframes premiumEnter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  body.bios-auth .screen { padding: 0; }
  body.bios-auth .card,
  body.bios-auth .login-card,
  body.bios-auth .surface {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #f7f9f9;
  }
  body.bios-auth .pane,
  body.bios-auth .login-pane { padding: 22px 26px 36px; }
  body.bios-auth .pane h1,
  body.bios-auth .login-copy h1 { font-size: 36px; }

  body.bios-live .app { grid-template-columns: 1fr; }
  body.bios-live .main { padding: 28px 22px 110px; }
  body.bios-live .sidebar { box-shadow: 0 -10px 30px rgba(23,42,50,.08); }
}

@media (max-width: 520px) {
  body.bios-auth .pane,
  body.bios-auth .login-pane { padding-inline: 20px; }
  body.bios-auth .pane h1,
  body.bios-auth .login-copy h1,
  body.bios-auth h1.title { font-size: 34px; line-height: 1.05; }
  body.bios-live .main { padding-inline: 16px; }
  body.bios-live .greeting h1,
  body.bios-live .page-head h1 { font-size: 26px; }
}

@media (max-width: 760px) {
  body.bios-live .app { display: block; }
  body.bios-live .sidebar {
    position: fixed;
    z-index: 80;
    inset: auto 0 0;
    display: block;
    width: 100%;
    height: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--premium-line);
    border-right: 0;
    background: rgba(255,255,255,.96);
    box-shadow: 0 -12px 34px rgba(34,49,84,.1);
    backdrop-filter: blur(24px) saturate(1.15);
  }

  body.bios-live .sidebar > .brand,
  body.bios-live .sidebar > .pulse-line,
  body.bios-live .sidebar-foot { display: none !important; }

  body.bios-live .sidebar .nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  body.bios-live .sidebar .nav-item {
    display: flex;
    min-width: 0;
    min-height: 58px;
    padding: 7px 3px 6px;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    font-size: 10.5px;
    line-height: 1.05;
    text-align: center;
  }

  body.bios-live .sidebar .nav-item svg { width: 20px; height: 20px; }
  body.bios-live .sidebar .nav-item.active { box-shadow: none; }
  body.bios-live .nav-lock {
    top: 5px;
    right: calc(50% - 23px);
    width: 15px;
    height: 15px;
  }
  body.bios-live .nav-lock svg { width: 9px; height: 9px; }

  body.bios-live .main {
    padding: 24px 16px calc(92px + env(safe-area-inset-bottom));
  }
}
/* --------------------------------------------------------------------------
   BIOS product system v2: quiet confidence, clear hierarchy, one blue accent.
   This final layer intentionally replaces the earlier transitional styling.
   -------------------------------------------------------------------------- */

body.bios-auth,
body.bios-live {
  --premium-ink: #1d1d1f;
  --premium-ink-soft: #34343a;
  --premium-muted: #6e6e73;
  --premium-faint: #929298;
  --premium-line: #dedee3;
  --premium-line-strong: #c8c8ce;
  --premium-page: #f5f5f7;
  --premium-surface: #ffffff;
  --premium-soft: #f7f7f9;
  --premium-accent: #1688ff;
  --premium-accent-dark: #006dcc;
  --premium-accent-soft: #eef6ff;
  --premium-selection: #f4f6fa;
  --premium-selection-hover: #f7f8fb;
  --premium-amber: #b55f00;
  --premium-red: #b4233a;
  --premium-shadow: 0 26px 80px rgba(0, 0, 0, .08);
  --premium-shadow-soft: 0 1px 2px rgba(0, 0, 0, .025);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Arial, sans-serif;
  font-feature-settings: "kern" 1, "liga" 1;
  letter-spacing: 0;
}

body.bios-auth *,
body.bios-live * {
  letter-spacing: 0 !important;
}

body.bios-auth :focus-visible,
body.bios-live :focus-visible {
  outline: 3px solid rgba(22, 136, 255, .22) !important;
  outline-offset: 3px;
}

/* Entry screens */
body.bios-auth #screen-register,
body.bios-auth #screen-login {
  min-height: 100svh;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: #fff;
}

body.bios-auth #screen-register .card,
body.bios-auth #screen-login .login-card {
  display: grid;
  width: min(1440px, 100%);
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.bios-auth #screen-register .pane,
body.bios-auth #screen-login .login-pane {
  display: flex;
  width: 100%;
  min-height: 0;
  padding: 72px clamp(64px, 7vw, 112px) 52px;
  justify-content: center;
}

body.bios-auth #screen-register .pane > h1,
body.bios-auth #screen-register .pane > .lede,
body.bios-auth #screen-register .pane > form,
body.bios-auth #screen-register .pane > .auth-switch,
body.bios-auth #screen-login .login-copy,
body.bios-auth #screen-login .login-form,
body.bios-auth #screen-login .login-bottom {
  width: 100%;
  max-width: 460px;
  align-self: center;
}

body.bios-auth #screen-register .pane > h1,
body.bios-auth #screen-login .login-copy h1 {
  max-width: 500px;
  margin: 0 0 16px;
  color: var(--premium-ink);
  font-family: inherit;
  font-size: 48px;
  font-weight: 650;
  line-height: 1.02;
}

body.bios-auth #screen-register .lede,
body.bios-auth #screen-login .lede {
  max-width: 440px;
  margin: 0 0 42px;
  color: var(--premium-muted);
  font-size: 18px;
  line-height: 1.4;
}

body.bios-auth #screen-register .field,
body.bios-auth #screen-login .field {
  margin-bottom: 18px;
}

body.bios-auth #screen-register .field label,
body.bios-auth #screen-login .field label {
  margin-bottom: 8px;
  color: var(--premium-ink);
  font-size: 14px;
  font-weight: 600;
}

body.bios-auth #screen-register .control input,
body.bios-auth #screen-login .control input {
  height: 58px;
  padding: 0 48px 0 17px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #fff;
  color: var(--premium-ink);
  font-family: inherit;
  font-size: 16px;
  box-shadow: none;
}

body.bios-auth #screen-register .control input::placeholder,
body.bios-auth #screen-login .control input::placeholder {
  color: #9a9aa0;
}

body.bios-auth #screen-register .control input:hover,
body.bios-auth #screen-login .control input:hover {
  border-color: var(--premium-line-strong);
}

body.bios-auth #screen-register .control input:focus,
body.bios-auth #screen-login .control input:focus {
  border-color: var(--premium-accent);
  box-shadow: 0 0 0 4px rgba(22, 136, 255, .1);
}

body.bios-auth #screen-register .icon-mobile,
body.bios-auth #screen-login .field-icon:not(.tap) {
  display: none;
}

body.bios-auth #screen-login .control input {
  padding-left: 17px;
}

body.bios-auth #screen-register .btn-primary,
body.bios-auth #screen-login .btn-primary {
  height: 52px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--premium-accent);
  box-shadow: none;
  font-size: 16px;
  font-weight: 600;
}

body.bios-auth #screen-register .btn-primary:hover,
body.bios-auth #screen-login .btn-primary:hover {
  background: #087bf0;
  box-shadow: 0 8px 22px rgba(22, 136, 255, .18);
  transform: translateY(-1px);
}

body.bios-auth #screen-register .legal {
  max-width: 450px;
  margin: 18px auto 0;
  color: #85858b;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

body.bios-auth #screen-register .auth-switch,
body.bios-auth #screen-login .login-bottom {
  margin-top: 28px;
  color: var(--premium-muted);
  font-size: 14px;
  text-align: center;
}

body.bios-auth #screen-login .login-form .forgot {
  margin: -5px 0 25px;
  color: var(--premium-accent-dark);
  font-size: 14px;
}

body.bios-auth #screen-register .auth-switch a,
body.bios-auth #screen-login .login-bottom a,
body.bios-auth #screen-login .forgot,
body.bios-auth #screen-register .legal a {
  color: var(--premium-accent-dark) !important;
  font-weight: 600;
  text-decoration: none;
}

body.bios-auth #screen-register .visual,
body.bios-auth #screen-login .login-visual {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 88px clamp(58px, 6vw, 88px);
  border-left: 1px solid var(--premium-line);
  background: var(--premium-selection);
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  text-align: left;
}

body.bios-auth #screen-register .visual::after,
body.bios-auth #screen-login .login-visual::after {
  content: "ЗАЩИЩЁННОЕ ЛИЧНОЕ ПРОСТРАНСТВО";
  position: absolute;
  right: clamp(58px, 6vw, 88px);
  bottom: 48px;
  left: clamp(58px, 6vw, 88px);
  padding-top: 18px;
  border-top: 1px solid #d7d7dc;
  color: #8b8b91;
  font-size: 11px;
  font-weight: 650;
}

body.bios-auth #screen-register .stage,
body.bios-auth #screen-login .login-orbit,
body.bios-auth #screen-register .benefits ul {
  display: none;
}

body.bios-auth #screen-register .benefits,
body.bios-auth #screen-login .login-visual h2,
body.bios-auth .auth-visual-note {
  width: 100%;
  max-width: 460px;
}

body.bios-auth #screen-register .benefits h3,
body.bios-auth #screen-login .login-visual h2 {
  margin: 0;
  color: var(--premium-ink);
  font-family: inherit;
  font-size: clamp(42px, 3.7vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  text-align: left;
}

body.bios-auth #screen-register .benefits h3 span {
  color: #46728f;
  font-weight: 500;
}

body.bios-auth .auth-visual-note {
  margin: 24px 0 0;
  color: var(--premium-muted);
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
}

/* Onboarding */
body.bios-auth .screen:not(#screen-register):not(#screen-login) {
  min-height: 100svh;
  padding: 28px;
  background: var(--premium-page);
}

body.bios-auth .surface,
body.bios-auth #screen-welcome .card {
  width: min(1120px, 100%);
  min-height: min(700px, calc(100svh - 56px));
  padding: 38px 48px 42px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--premium-shadow);
}

body.bios-auth #screen-welcome .card {
  display: grid;
  padding: 0;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  overflow: hidden;
}

body.bios-auth #screen-welcome .pane,
body.bios-auth #screen-welcome .visual {
  padding: 56px;
}

body.bios-auth #screen-welcome .visual {
  border-left: 1px solid var(--premium-line);
  background: #f5f5f7;
}

body.bios-auth #screen-welcome .biglogo,
body.bios-auth #screen-welcome .hex-mobile {
  display: none;
}

body.bios-auth #screen-welcome .feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

body.bios-auth #screen-welcome .feat {
  display: grid;
  padding: 20px 0;
  grid-template-columns: 42px 1fr;
  gap: 0 14px;
  border-bottom: 1px solid var(--premium-line);
  text-align: left;
  align-items: center;
}

body.bios-auth #screen-welcome .feat:last-child {
  border-bottom: 0;
}

body.bios-auth #screen-welcome .feat .tile {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fff;
  color: var(--premium-accent-dark);
  box-shadow: none;
}

body.bios-auth #screen-welcome .feat b {
  font-size: 15px;
  font-weight: 650;
}

body.bios-auth #screen-welcome .feat span {
  color: var(--premium-muted);
  font-size: 13px;
}

body.bios-auth .surface .brand,
body.bios-auth #screen-welcome .brand {
  display: flex;
  width: auto;
  height: auto;
  overflow: visible;
  background: none;
  align-items: center;
}

body.bios-auth .surface .brand .mark,
body.bios-auth #screen-welcome .brand .mark {
  display: none;
}

body.bios-auth .surface .brand .name,
body.bios-auth #screen-welcome .brand .name {
  display: block;
  color: var(--premium-ink);
  font-size: 18px;
  font-weight: 700;
}

body.bios-auth .navrow {
  margin-bottom: 28px;
}

body.bios-auth .steps .bar {
  height: 3px;
  background: #e8e8ed;
}

body.bios-auth .steps .bar.on {
  background: var(--premium-accent);
}

body.bios-auth h1.title,
body.bios-auth #screen-welcome .pane h1 {
  font-family: inherit;
  font-size: 42px;
  font-weight: 650;
  line-height: 1.05;
}

body.bios-auth .sub,
body.bios-auth #screen-welcome .lede {
  color: var(--premium-muted);
  font-size: 16px;
  line-height: 1.42;
}

body.bios-auth .ob-grid {
  gap: 40px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
}

body.bios-auth .aside-card {
  padding: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--premium-selection);
  align-items: flex-start;
  text-align: left;
}

body.bios-auth .aside-orb,
body.bios-auth .aside-card .info-i {
  display: none;
}

body.bios-auth .aside-card h4 {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 650;
}

body.bios-auth .aside-card p {
  max-width: 320px;
  color: var(--premium-muted);
  font-size: 14px;
  line-height: 1.55;
}

body.bios-auth .opt,
body.bios-auth .choice-btn,
body.bios-auth .dcard {
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.bios-auth .opt:hover,
body.bios-auth .choice-btn:hover {
  border-color: var(--premium-line-strong);
  background: var(--premium-selection-hover);
}

body.bios-auth .opt.sel,
body.bios-auth .choice-btn.sel {
  border-color: #dfe4ed;
  background: var(--premium-selection);
  color: var(--premium-ink);
  box-shadow: none;
}

body.bios-auth .opt.sel .radio,
body.bios-auth .consent input:checked {
  border-color: var(--premium-accent);
  background: var(--premium-accent);
}

body.bios-auth .opt .oic,
body.bios-auth .choice-btn svg,
body.bios-auth .dcard .dic {
  color: var(--premium-accent-dark);
}

body.bios-auth .btn-primary {
  border-radius: 8px;
  background: var(--premium-accent);
  box-shadow: none;
}

body.bios-auth .btn-primary:hover {
  background: #087bf0;
  filter: none;
  box-shadow: 0 8px 22px rgba(22, 136, 255, .18);
}

body.bios-auth .btn-ghost,
body.bios-auth .btn-oauth {
  border-color: var(--premium-line);
  border-radius: 8px;
  background: #fff;
}

body.bios-auth .control input,
body.bios-auth .about-input,
body.bios-auth textarea.ob-ta,
body.bios-auth .recovery-dialog input {
  border-color: var(--premium-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

/* Patient Web */
body.bios-live {
  --violet: var(--premium-accent);
  --indigo: var(--premium-accent-dark);
  --blue: var(--premium-accent);
  --violet-soft: #eaf4ff;
  --violet-tint: #f4f8fc;
  --card: #f5f5f7;
  --surface: #fbfbfd;
  --surface-tint: #efeff2;
  --ink: var(--premium-ink);
  --ink-2: var(--premium-ink-soft);
  --muted: var(--premium-muted);
  --faint: var(--premium-faint);
  --hair: rgba(0, 0, 0, .08);
  --line: var(--premium-line);
  --r: 8px;
  --sh-card: none;
  --sh-hover: none;
  --sh-btn: none;
  background: #fbfbfd;
}

body.bios-live .app {
  min-height: 100svh;
  grid-template-columns: 248px minmax(0, 1fr);
}

body.bios-live .sidebar {
  padding: 28px 18px 20px;
  border-right: 1px solid var(--premium-line);
  background: rgba(251, 251, 253, .96);
  box-shadow: none;
  backdrop-filter: blur(20px) saturate(1.1);
}

body.bios-live .brand {
  display: flex;
  width: auto;
  height: auto;
  padding: 0 12px 30px;
  overflow: visible;
  background: none;
  align-items: center;
}

body.bios-live .brand-mark {
  display: none;
}

body.bios-live .brand-name {
  display: block;
  color: var(--premium-ink);
  font-size: 21px;
  font-weight: 700;
}

body.bios-live .nav {
  gap: 4px;
}

body.bios-live .nav-item {
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 8px;
  color: #5f636b;
  font-size: 14px;
  font-weight: 560;
}

body.bios-live .nav-item:hover {
  background: var(--premium-selection-hover);
  color: var(--premium-ink);
}

body.bios-live .nav-item:hover svg {
  transform: none;
}

body.bios-live .nav-item.active {
  background: var(--premium-selection);
  color: var(--premium-ink);
  box-shadow: none;
}

body.bios-live .nav-lock {
  background: #dddde2;
  color: #707078;
}

body.bios-live .pulse-card {
  display: none;
}

body.bios-live .profile,
body.bios-live .help {
  border-radius: 8px;
}

body.bios-live .profile:hover {
  background: #eeeeF1;
}

body.bios-live .help {
  padding: 16px;
  border: 0;
  background: var(--premium-selection);
  box-shadow: none;
}

body.bios-live .help .btn-chat {
  border-radius: 8px;
  background: var(--premium-accent);
}

body.bios-live .main {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 46px 54px 64px;
}

body.bios-live .topbar {
  margin-bottom: 34px;
}

body.bios-live .greeting h1,
body.bios-live .page-head h1 {
  color: var(--premium-ink);
  font-family: inherit;
  font-size: 36px;
  font-weight: 650;
  line-height: 1.08;
}

body.bios-live .greeting h1 .sun {
  display: none;
}

body.bios-live .greeting p,
body.bios-live .page-head p {
  margin-top: 8px;
  color: var(--premium-muted);
  font-size: 15px;
}

body.bios-live h2,
body.bios-live h3 {
  font-family: inherit;
  color: var(--premium-ink);
}

body.bios-live .panel,
body.bios-live .card,
body.bios-live .bios-live-profile-panel > *,
body.bios-live .bios-result-record,
body.bios-live .bios-memory-record {
  border-color: var(--premium-line);
  border-radius: 8px;
  background: #f5f5f7;
  box-shadow: none;
}

body.bios-live .panel:hover {
  transform: none;
  box-shadow: none;
}

body.bios-live .view-today .ai-hero {
  padding: 8px 0 30px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.bios-live .view-today .ai-title h2 {
  font-size: 24px;
  font-weight: 620;
}

body.bios-live .ask-box {
  height: 64px;
  margin: 26px 0 18px;
  padding: 0 10px 0 18px;
  border: 1px solid #e1e1e5;
  border-radius: 8px;
  background: #f5f5f7;
  box-shadow: none;
}

body.bios-live .home-chat-input,
body.bios-live .chat-input {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.bios-live .home-chat-upload,
body.bios-live .composer-plus {
  color: var(--premium-muted);
}

body.bios-live .voice-btn,
body.bios-live .composer-send,
body.bios-live .consent-icon,
body.bios-live .pdf-logo,
body.bios-live .create-step,
body.bios-live .invite-plus {
  background: var(--premium-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.bios-live .prompt-chips {
  gap: 10px;
}

body.bios-live .chip {
  min-height: 46px;
  border: 1px solid var(--premium-line);
  border-radius: 8px;
  background: #f5f5f7;
  color: var(--premium-ink-soft);
  font-size: 13px;
  font-weight: 560;
}

body.bios-live .chip:hover {
  border-color: var(--premium-line-strong);
  background: var(--premium-selection-hover);
}

body.bios-live .chip svg,
body.bios-live .chip.sleep svg,
body.bios-live .chip.energy svg,
body.bios-live .chip.lab svg,
body.bios-live .chip.stress svg {
  color: var(--premium-accent-dark) !important;
  stroke: currentColor !important;
}

body.bios-live .bios-live-panel,
body.bios-live .bios-live-protocols,
body.bios-live .settings-section,
body.bios-live .consent-strip {
  padding: 28px;
}

body.bios-live .btn-primary,
body.bios-live .consent-submit,
body.bios-live [data-accept-consent] {
  border-radius: 8px;
  background: var(--premium-accent);
  box-shadow: none;
}

body.bios-live .btn-primary:hover,
body.bios-live .consent-submit:hover,
body.bios-live [data-accept-consent]:hover {
  background: #087bf0;
  box-shadow: 0 8px 22px rgba(22, 136, 255, .18);
}

body.bios-live .btn-outline,
body.bios-live .btn-soft,
body.bios-live .btn-secondary {
  border-color: var(--premium-line);
  border-radius: 8px;
  background: #f5f5f7;
  color: var(--premium-ink-soft);
  box-shadow: none;
}

body.bios-live .protocol-tab.active,
body.bios-live .data-tab.active,
body.bios-live .grant-tab.active,
body.bios-live .duration-btn.active,
body.bios-live .page-btn.active,
body.bios-live .format-card.active,
body.bios-live .structure-row.active {
  border-color: #dfe4ed !important;
  background: var(--premium-selection) !important;
  color: var(--premium-ink) !important;
  box-shadow: none !important;
}

body.bios-live input,
body.bios-live textarea,
body.bios-live select {
  border-color: var(--premium-line) !important;
  border-radius: 8px !important;
  background: #fff;
}

body.bios-live input:focus,
body.bios-live textarea:focus,
body.bios-live select:focus {
  border-color: var(--premium-accent) !important;
  box-shadow: 0 0 0 4px rgba(22, 136, 255, .1) !important;
}

body.bios-live .settings-list,
body.bios-live .privacy-group,
body.bios-live .bios-profile-facts-list {
  border-color: var(--premium-line);
  border-radius: 8px;
  box-shadow: none;
}

body.bios-live .settings-list,
body.bios-live .privacy-list,
body.bios-live .bios-profile-facts-list {
  background: #f5f5f7;
}

body.bios-live .settings-row:hover,
body.bios-live .privacy-row:hover,
body.bios-live .bios-document-row:hover {
  background: var(--premium-selection-hover);
}

body.bios-live .bell {
  width: 44px;
  height: 44px;
  border-color: var(--premium-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

body.bios-live .bell:hover {
  background: #f2f2f4;
  transform: none;
}

body.bios-live .bell .badge {
  background: var(--premium-amber);
  border-color: var(--premium-page);
  box-shadow: none;
}

body.bios-live .notifications-popover,
body.bios-live .bios-document-dialog,
body.bios-live .bios-upload-dialog,
body.bios-live dialog {
  border-color: var(--premium-line);
  border-radius: 8px;
  box-shadow: var(--premium-shadow);
}

body.bios-live .notifications-popover {
  overflow: hidden;
}

body.bios-live .message.ai,
body.bios-live .bios-assistant-message {
  border-color: var(--premium-line);
  background: #f5f5f7;
}

body.bios-live .message.user,
body.bios-live .bios-user-message {
  border-color: #d8e7f8;
  background: #f0f7ff;
}

body.bios-live .bios-thinking-dots span,
body.bios-live .notification-dot {
  background: var(--premium-accent);
}

body.bios-live .link,
body.bios-live .bios-protocol-status,
body.bios-live .notifications-head button,
body.bios-live .bios-memory-action {
  color: var(--premium-accent-dark);
}

body.bios-live .bios-memory-action {
  background: var(--premium-accent-soft);
}

body.bios-live .bios-live-empty {
  color: var(--premium-muted);
}

body.bios-live .bios-document-modal,
body.bios-live .bios-upload-modal {
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(12px);
}

body.bios-live .view-settings .settings-section {
  max-width: 920px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.bios-live .view-settings .settings-section > h2 {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 650;
}

body.bios-live .view-settings .settings-grid {
  grid-template-columns: 1fr;
}

body.bios-live .view-settings .security-art {
  display: none;
}

body.bios-live .view-settings .settings-list {
  border-radius: 8px;
}

@media (max-width: 980px) {
  body.bios-auth #screen-register,
  body.bios-auth #screen-login,
  body.bios-auth .screen:not(#screen-register):not(#screen-login) {
    padding: 0;
    background: #fff;
  }

  body.bios-auth #screen-register .card,
  body.bios-auth #screen-login .login-card,
  body.bios-auth .surface,
  body.bios-auth #screen-welcome .card {
    display: block;
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.bios-auth #screen-register .pane,
  body.bios-auth #screen-login .login-pane {
    width: min(600px, 100%);
    min-height: 100svh;
    margin: 0 auto;
    padding: 64px 32px 40px;
  }

  body.bios-auth #screen-register .visual,
  body.bios-auth #screen-login .login-visual,
  body.bios-auth #screen-welcome .visual {
    display: none;
  }

  body.bios-auth .surface {
    padding: 30px 32px 42px;
  }

  body.bios-auth .ob-grid {
    grid-template-columns: 1fr;
  }

  body.bios-auth .ob-aside {
    display: none;
  }

  body.bios-auth #screen-welcome .pane {
    min-height: 100svh;
    padding: 42px 32px;
  }

  body.bios-live .app {
    grid-template-columns: 1fr;
  }

  body.bios-live .main {
    padding: 30px 24px 112px;
  }
}

@media (max-width: 760px) {
  body.bios-auth #screen-register .pane,
  body.bios-auth #screen-login .login-pane {
    padding: 42px 22px 34px;
  }

  body.bios-auth #screen-register .pane > h1,
  body.bios-auth #screen-login .login-copy h1 {
    font-size: 40px;
    line-height: 1.04;
  }

  body.bios-auth #screen-register .lede,
  body.bios-auth #screen-login .lede {
    margin-bottom: 34px;
    font-size: 17px;
  }

  body.bios-auth .surface {
    padding: 24px 20px 36px;
  }

  body.bios-auth h1.title,
  body.bios-auth #screen-welcome .pane h1 {
    font-size: 36px;
  }

  body.bios-live .sidebar {
    position: fixed;
    z-index: 80;
    inset: auto 0 0;
    display: block;
    width: 100%;
    height: auto;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--premium-line);
    border-right: 0;
    background: rgba(251, 251, 253, .95);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, .065);
    backdrop-filter: blur(24px) saturate(1.2);
  }

  body.bios-live .sidebar > .brand,
  body.bios-live .sidebar-foot,
  body.bios-live .pulse-card {
    display: none !important;
  }

  body.bios-live .sidebar .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  body.bios-live .sidebar .nav-item {
    min-height: 57px;
    padding: 7px 2px 6px;
    border-radius: 8px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    line-height: 1;
  }

  body.bios-live .sidebar .nav-item svg {
    width: 20px;
    height: 20px;
  }

  body.bios-live .main {
    padding: 24px 16px calc(92px + env(safe-area-inset-bottom));
  }

  body.bios-live .greeting h1,
  body.bios-live .page-head h1 {
    font-size: 30px;
  }

  body.bios-live .view-today .ai-title h2 {
    font-size: 22px;
  }

  body.bios-live .prompt-chips {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  body.bios-auth #screen-register .pane,
  body.bios-auth #screen-login .login-pane {
    padding: 34px 20px 28px;
  }

  body.bios-auth #screen-register .pane > h1,
  body.bios-auth #screen-login .login-copy h1 {
    font-size: 36px;
  }

  body.bios-auth #screen-register .lede,
  body.bios-auth #screen-login .lede {
    font-size: 16px;
    line-height: 1.38;
  }

  body.bios-auth #screen-register .control input,
  body.bios-auth #screen-login .control input {
    height: 56px;
  }

  body.bios-auth #screen-register .btn-primary,
  body.bios-auth #screen-login .btn-primary {
    height: 54px;
  }

  body.bios-live .prompt-chips {
    grid-template-columns: 1fr;
  }

  body.bios-live .ask-box {
    height: 60px;
  }
}

/* --------------------------------------------------------------------------
   BIOS product system v3: composition and overlay audit.
   Keeps the established palette while tightening rhythm and window behavior.
   -------------------------------------------------------------------------- */

@media (min-width: 981px) {
  body.bios-auth #screen-register .card,
  body.bios-auth #screen-login .login-card {
    grid-template-columns: minmax(0, 1.18fr) minmax(430px, .82fr);
  }

  body.bios-auth #screen-register .pane,
  body.bios-auth #screen-login .login-pane {
    padding: clamp(30px, 4.5vh, 62px) clamp(56px, 6.2vw, 96px);
  }

  body.bios-auth #screen-register .pane > h1,
  body.bios-auth #screen-login .login-copy h1 {
    margin-bottom: 13px;
    font-size: clamp(42px, 3.15vw, 48px);
    line-height: 1.03;
  }

  body.bios-auth #screen-register .lede,
  body.bios-auth #screen-login .lede {
    margin-bottom: clamp(26px, 3.8vh, 38px);
    font-size: 17px;
  }

  body.bios-auth #screen-register .field,
  body.bios-auth #screen-login .field {
    margin-bottom: 14px;
  }

  body.bios-auth #screen-register .control input,
  body.bios-auth #screen-login .control input {
    height: 54px;
  }

  body.bios-auth #screen-register .btn-primary,
  body.bios-auth #screen-login .btn-primary {
    height: 50px;
    margin-top: 6px;
  }

  body.bios-auth #screen-register .legal {
    margin-top: 14px;
  }

  body.bios-auth #screen-register .auth-switch,
  body.bios-auth #screen-login .login-bottom {
    margin-top: 20px;
  }

  body.bios-auth #screen-register .visual,
  body.bios-auth #screen-login .login-visual {
    padding: clamp(54px, 7vh, 86px) clamp(48px, 5vw, 72px);
  }

  body.bios-auth #screen-register .visual::after,
  body.bios-auth #screen-login .login-visual::after {
    display: none;
  }

  body.bios-auth #screen-register .benefits,
  body.bios-auth #screen-login .login-visual h2,
  body.bios-auth .auth-visual-note {
    max-width: 390px;
  }

  body.bios-auth #screen-register .benefits h3,
  body.bios-auth #screen-login .login-visual h2 {
    font-size: clamp(40px, 3.25vw, 48px);
    font-weight: 600;
    line-height: 1.04;
    text-wrap: balance;
  }

  body.bios-auth #screen-register .benefits h3 span {
    color: inherit;
    font-weight: inherit;
  }

  body.bios-auth .auth-visual-note {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.45;
  }
}

/* Native auth dialogs must behave like centered system windows. */
body.bios-auth .recovery-dialog {
  position: fixed;
  inset: 0;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  margin: auto;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

body.bios-auth .recovery-dialog::backdrop {
  background: rgba(24, 24, 28, .42);
  backdrop-filter: blur(12px);
}

body.bios-auth .recovery-dialog form,
body.bios-auth .verification-state {
  gap: 20px;
  padding: 30px;
}

body.bios-auth .recovery-dialog h2,
body.bios-auth .verification-state h2 {
  color: var(--premium-ink);
  font-size: 22px;
  font-weight: 650;
  line-height: 1.2;
}

body.bios-auth .recovery-dialog p,
body.bios-auth .verification-state p {
  color: var(--premium-muted);
  font-size: 14px;
  line-height: 1.5;
}

body.bios-auth .recovery-dialog .recovery-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--premium-selection);
  color: var(--premium-muted);
  font-size: 20px;
}

body.bios-auth .toast {
  border-radius: 8px;
  background: rgba(29, 29, 31, .94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

/* Patient windows and popovers share one quiet, system-like language. */
body.bios-live .notifications-popover {
  width: 368px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .14);
}

body.bios-live .notification-item {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 8px;
}

body.bios-live .notification-item:hover {
  background: var(--premium-selection-hover);
}

body.bios-live .consent-info-modal,
body.bios-live .diag-modal,
body.bios-live .bios-document-modal,
body.bios-live .bios-upload-modal {
  background: rgba(24, 24, 28, .42);
  backdrop-filter: blur(12px);
}

body.bios-live .consent-info-card,
body.bios-live .diag-card,
body.bios-live .bios-document-dialog,
body.bios-live .bios-upload-dialog,
body.bios-live dialog {
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .18);
}

body.bios-live dialog {
  position: fixed;
  inset: 0;
  margin: auto;
}

body.bios-live .consent-info-card {
  width: min(470px, calc(100vw - 32px));
  padding: 30px;
}

body.bios-live .consent-info-list {
  gap: 18px;
}

body.bios-live .consent-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--premium-selection);
  color: var(--premium-accent-dark);
}

body.bios-live .consent-info-item h3 {
  font-size: 14px;
  font-weight: 650;
}

body.bios-live .consent-info-item p,
body.bios-live .consent-info-item li {
  color: var(--premium-muted);
  font-size: 12.5px;
  font-weight: 500;
}

body.bios-live .diag-card {
  width: min(920px, calc(100vw - 48px));
}

body.bios-live .diag-welcome {
  padding: 46px;
  grid-template-columns: 1fr;
  gap: 22px;
}

body.bios-live .diag-welcome .diag-illo {
  display: none;
}

body.bios-live .diag-facts {
  gap: 0;
  margin-top: 8px;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid var(--premium-line);
  border-bottom: 1px solid var(--premium-line);
  border-radius: 0;
  background: transparent;
}

body.bios-live .diag-fact {
  padding: 0 18px;
  border-right: 1px solid var(--premium-line);
}

body.bios-live .diag-fact:last-child {
  border-right: 0;
}

body.bios-live .diag-option {
  border-radius: 8px;
}

body.bios-live .diag-option:hover,
body.bios-live .diag-option.selected {
  border-color: #dfe4ed;
  background: var(--premium-selection);
}

@media (max-width: 760px) {
  body.bios-auth .recovery-dialog form,
  body.bios-auth .verification-state {
    padding: 24px;
  }

  body.bios-live .notifications-popover {
    top: 70px;
    right: 12px;
    width: calc(100vw - 24px);
    max-width: none;
  }

  body.bios-live .consent-info-modal,
  body.bios-live .diag-modal,
  body.bios-live .bios-document-modal,
  body.bios-live .bios-upload-modal {
    padding: 12px;
  }

  body.bios-live .diag-card {
    width: 100%;
    max-height: calc(100svh - 24px);
  }

  body.bios-live .diag-welcome {
    padding: 34px 22px 24px;
  }

  body.bios-live .diag-facts {
    grid-template-columns: 1fr;
  }

  body.bios-live .diag-fact {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--premium-line);
  }

body.bios-live .diag-fact:last-child {
    border-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   BIOS product system v4: dimensional surfaces.
   A restrained, mature hierarchy shared by auth, onboarding and Patient Web.
   -------------------------------------------------------------------------- */

body.bios-auth,
body.bios-live {
  --premium-ink: #101522;
  --premium-ink-soft: #252d3d;
  --premium-muted: #657085;
  --premium-faint: #8e98a8;
  --premium-line: rgba(28, 39, 61, .10);
  --premium-line-strong: rgba(28, 39, 61, .17);
  --premium-page: #f2f5f8;
  --premium-surface: #ffffff;
  --premium-soft: #f7f9fc;
  --premium-accent: #0a72d6;
  --premium-accent-dark: #075fb5;
  --premium-accent-soft: #edf6ff;
  --premium-selection: #eef2f6;
  --premium-selection-hover: #f4f6f9;
  --premium-shadow-card: 0 18px 46px -30px rgba(24, 42, 72, .34),
    0 3px 12px rgba(24, 42, 72, .045), inset 0 1px 0 rgba(255, 255, 255, .8);
  --premium-shadow-control: 0 10px 28px -22px rgba(24, 42, 72, .32),
    0 1px 4px rgba(24, 42, 72, .035);
  --premium-shadow-window: 0 34px 92px -38px rgba(16, 31, 58, .44),
    0 12px 34px rgba(16, 31, 58, .09);
  letter-spacing: 0;
}

/* Authentication: a calm form surface and a contained editorial counterpoint. */
body.bios-auth {
  background: var(--premium-page);
}

body.bios-auth #screen-register .card,
body.bios-auth #screen-login .login-card {
  background: var(--premium-surface);
}

body.bios-auth #screen-register .control input,
body.bios-auth #screen-login .control input,
body.bios-auth .about-field input,
body.bios-auth .about-field select,
body.bios-auth textarea.ob-ta {
  border-color: var(--premium-line);
  border-radius: 13px;
  background: #fbfcfe;
  box-shadow: inset 0 1px 1px rgba(22, 35, 57, .025);
}

body.bios-auth #screen-register .control input:hover,
body.bios-auth #screen-login .control input:hover,
body.bios-auth .about-field input:hover,
body.bios-auth .about-field select:hover,
body.bios-auth textarea.ob-ta:hover {
  border-color: var(--premium-line-strong);
  background: #fff;
}

body.bios-auth #screen-register .control input:focus,
body.bios-auth #screen-login .control input:focus,
body.bios-auth .about-field input:focus,
body.bios-auth .about-field select:focus,
body.bios-auth textarea.ob-ta:focus {
  border-color: rgba(10, 114, 214, .7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 114, 214, .10);
}

body.bios-auth #screen-register .btn-primary,
body.bios-auth #screen-login .btn-primary,
body.bios-auth .ob-primary {
  border-radius: 13px;
  background: var(--premium-accent);
  box-shadow: 0 12px 26px -18px rgba(10, 93, 181, .75);
}

body.bios-auth #screen-register .btn-primary:hover,
body.bios-auth #screen-login .btn-primary:hover,
body.bios-auth .ob-primary:hover {
  background: var(--premium-accent-dark);
  box-shadow: 0 16px 30px -18px rgba(10, 93, 181, .82);
}

body.bios-auth .choice-btn,
body.bios-auth .consent,
body.bios-auth .dcard,
body.bios-auth .aside-card {
  border-color: var(--premium-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--premium-shadow-control);
}

body.bios-auth .choice-btn:hover,
body.bios-auth .consent:hover {
  border-color: rgba(10, 114, 214, .28);
  background: var(--premium-accent-soft);
}

body.bios-auth .choice-btn.selected,
body.bios-auth .consent.checked {
  border-color: rgba(10, 114, 214, .52);
  background: var(--premium-accent-soft);
  box-shadow: 0 0 0 3px rgba(10, 114, 214, .07);
}

body.bios-auth .surface,
body.bios-auth #screen-welcome .card {
  border: 1px solid var(--premium-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--premium-shadow-window);
}

body.bios-auth .recovery-dialog,
body.bios-auth .verification-dialog {
  border-color: var(--premium-line);
  border-radius: 20px;
  box-shadow: var(--premium-shadow-window);
}

@media (min-width: 981px) {
  body.bios-auth #screen-register .visual,
  body.bios-auth #screen-login .login-visual {
    min-height: calc(100svh - 40px);
    margin: 20px 20px 20px 0;
    border: 1px solid rgba(28, 39, 61, .08);
    border-radius: 24px;
    background: linear-gradient(145deg, #f7f9fc 0%, #edf2f7 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .86),
      0 24px 70px -48px rgba(24, 42, 72, .4);
  }

  body.bios-auth #screen-register .visual {
    border-left: 1px solid rgba(28, 39, 61, .08);
  }
}

/* Patient Web canvas and navigation. */
body.bios-live {
  --card: #ffffff;
  --surface: #f7f9fc;
  --surface-tint: #eef2f6;
  --hair: var(--premium-line);
  background: var(--premium-page);
}

body.bios-live .sidebar {
  border-right: 1px solid rgba(28, 39, 61, .09);
  background: rgba(249, 250, 252, .93);
  box-shadow: 8px 0 32px -30px rgba(24, 42, 72, .32);
  backdrop-filter: blur(24px) saturate(125%);
}

body.bios-live .nav-item {
  border: 1px solid transparent;
  border-radius: 13px;
  color: #596477;
}

body.bios-live .nav-item:hover {
  border-color: rgba(28, 39, 61, .06);
  background: rgba(255, 255, 255, .66);
  color: var(--premium-ink);
}

body.bios-live .nav-item.active {
  border-color: rgba(28, 39, 61, .08);
  background: rgba(255, 255, 255, .92);
  color: var(--premium-ink);
  box-shadow: 0 12px 28px -22px rgba(24, 42, 72, .42),
    0 2px 7px rgba(24, 42, 72, .035);
}

body.bios-live .nav-item.active svg {
  color: var(--premium-accent);
}

body.bios-live .sidebar .profile {
  border: 1px solid transparent;
  border-radius: 13px;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

body.bios-live .sidebar .profile:hover {
  border-color: rgba(28, 39, 61, .06);
  background: rgba(255, 255, 255, .66);
  color: var(--premium-ink);
  box-shadow: none;
}

body.bios-live .help {
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid var(--premium-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.bios-live .help .btn-chat {
  border: 1px solid var(--premium-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .9);
  color: var(--premium-ink);
  box-shadow: var(--premium-shadow-control);
}

body.bios-live .help .btn-chat:hover {
  border-color: rgba(10, 114, 214, .2);
  background: var(--premium-accent-soft);
  color: var(--premium-accent-dark);
}

body.bios-live .main {
  background: transparent;
}

/* Shared surfaces: cards are white, page is cool gray, nested areas are quiet. */
body.bios-live .panel,
body.bios-live .protocol-empty,
body.bios-live .profile-table,
body.bios-live .history-card,
body.bios-live .privacy-card,
body.bios-live .export-panel,
body.bios-live .backup-card,
body.bios-live .format-card,
body.bios-live .protected-banner,
body.bios-live .family-protection {
  border: 1px solid var(--premium-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--premium-shadow-card);
}

body.bios-live .panel:hover {
  box-shadow: var(--premium-shadow-card);
}

body.bios-live .protocol-empty {
  min-height: 280px;
}

body.bios-live .protocol-empty .step-icon,
body.bios-live .source-icon,
body.bios-live .step-icon,
body.bios-live .mini-icon,
body.bios-live .import-art,
body.bios-live .security-art,
body.bios-live .about-brand {
  background: var(--premium-soft);
}

body.bios-live .ask-box,
body.bios-live .chat-composer {
  border: 1px solid rgba(28, 39, 61, .11);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 42px -30px rgba(24, 42, 72, .38),
    0 3px 10px rgba(24, 42, 72, .04);
}

body.bios-live .prompt-chip,
body.bios-live .chip {
  border-color: rgba(28, 39, 61, .09);
  border-radius: 14px;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--premium-shadow-control);
}

body.bios-live .prompt-chip:hover,
body.bios-live .chip:hover {
  border-color: rgba(10, 114, 214, .22);
  background: var(--premium-accent-soft);
}

/* Controls and segmented navigation. */
body.bios-live .protocol-tabs,
body.bios-live .data-tabs,
body.bios-live .grant-tabs {
  border-color: rgba(28, 39, 61, .08);
  border-radius: 15px;
  background: #e9edf2;
  box-shadow: inset 0 1px 2px rgba(24, 42, 72, .035);
}

body.bios-live .protocol-tab,
body.bios-live .data-tab,
body.bios-live .grant-tab {
  border-radius: 11px;
}

body.bios-live .view-protocols .protocol-tab {
  border: 1px solid transparent;
  border-radius: 13px;
}

body.bios-live .protocol-tab.active,
body.bios-live .data-tab.active,
body.bios-live .grant-tab.active {
  background: #fff;
  color: var(--premium-ink);
  box-shadow: 0 8px 18px -14px rgba(24, 42, 72, .42),
    0 1px 4px rgba(24, 42, 72, .05);
}

body.bios-live .view-protocols .protocol-tab.active {
  border-color: var(--premium-line) !important;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 8px 18px -14px rgba(24, 42, 72, .42),
    0 1px 4px rgba(24, 42, 72, .05) !important;
}

body.bios-live .view-protocols .protocol-tab:not(.active):hover {
  border-color: rgba(28, 39, 61, .06);
  background: rgba(255, 255, 255, .66);
  color: var(--premium-ink);
}

body.bios-live .view-protocols .protocol-tab:focus-visible {
  outline: 3px solid rgba(20, 126, 225, .16);
  outline-offset: 2px;
}

body.bios-live .btn-primary,
body.bios-live .btn-chat-primary,
body.bios-live .composer-send,
body.bios-live .ask-send,
body.bios-live .upload-btn,
body.bios-live button.primary {
  border-radius: 12px;
  background: var(--premium-accent) !important;
  box-shadow: 0 12px 28px -19px rgba(7, 95, 181, .72);
}

body.bios-live .btn-primary:hover,
body.bios-live .btn-chat-primary:hover,
body.bios-live .composer-send:hover,
body.bios-live .ask-send:hover,
body.bios-live .upload-btn:hover,
body.bios-live button.primary:hover {
  background: var(--premium-accent-dark) !important;
}

body.bios-live input,
body.bios-live textarea,
body.bios-live select,
body.bios-live .create-input,
body.bios-live .create-textarea,
body.bios-live .create-select {
  border-color: var(--premium-line);
  border-radius: 12px;
  background: #fbfcfe;
}

body.bios-live input:focus,
body.bios-live textarea:focus,
body.bios-live select:focus {
  border-color: rgba(10, 114, 214, .65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 114, 214, .09);
}

/* Conversation: clean paper for BIOS, a quiet blue tint for the patient. */
body.bios-live .message .bubble,
body.bios-live .bios-assistant-message {
  border: 1px solid rgba(28, 39, 61, .09);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--premium-shadow-control);
}

body.bios-live .message.user .bubble {
  border-color: rgba(10, 114, 214, .10);
  background: var(--premium-accent-soft);
  box-shadow: 0 10px 26px -22px rgba(10, 93, 181, .45);
}

body.bios-live .message-avatar,
body.bios-live .ai-orb {
  background: #fff;
  color: var(--premium-accent);
  box-shadow: var(--premium-shadow-control);
}

body.bios-live .composer-plus {
  border-color: var(--premium-line);
  background: var(--premium-soft);
  color: var(--premium-accent-dark);
}

/* Tables and profile rows gain separation without becoming boxes inside boxes. */
body.bios-live .data-row,
body.bios-live .profile-row,
body.bios-live .settings-row {
  border-color: rgba(28, 39, 61, .08);
}

body.bios-live .data-row:hover,
body.bios-live .profile-row:hover,
body.bios-live .settings-row:hover {
  background: var(--premium-soft);
}

body.bios-live .profile-tag,
body.bios-live .value-pill,
body.bios-live .access-badge {
  background: var(--premium-accent-soft);
  color: var(--premium-accent-dark);
}

/* Popovers and modal windows sit clearly above the application. */
body.bios-live .notifications-popover,
body.bios-live .consent-info-card,
body.bios-live .diag-card,
body.bios-live .bios-document-dialog,
body.bios-live .bios-upload-dialog,
body.bios-live dialog {
  border-color: rgba(28, 39, 61, .10);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--premium-shadow-window);
}

body.bios-live .notifications-popover {
  border-radius: 16px;
}

body.bios-live .notification-item,
body.bios-live .diag-option {
  border-radius: 13px;
}

body.bios-live .consent-info-icon {
  border-radius: 12px;
  background: var(--premium-accent-soft);
}

@media (max-width: 980px) {
  body.bios-auth #screen-register .card,
  body.bios-auth #screen-login .login-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.bios-live .sidebar {
    background: rgba(250, 251, 253, .96);
    box-shadow: 0 -12px 34px -28px rgba(24, 42, 72, .45);
  }
}

@media (max-width: 760px) {
  body.bios-live .panel,
  body.bios-live .protocol-empty,
  body.bios-live .profile-table,
  body.bios-live .history-card,
  body.bios-live .privacy-card,
  body.bios-live .export-panel,
  body.bios-live .backup-card,
  body.bios-live .protected-banner {
    border-radius: 16px;
  }

  body.bios-live .notifications-popover,
  body.bios-live .consent-info-card,
  body.bios-live .diag-card,
  body.bios-live .bios-document-dialog,
  body.bios-live .bios-upload-dialog,
  body.bios-live dialog {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bios-auth *,
  body.bios-live * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* BIOS premium UI v5: settings hierarchy and open conversation. */
body.bios-live .view-settings {
  --settings-surface: rgba(255, 255, 255, .96);
  --settings-border: rgba(24, 42, 72, .095);
  --settings-hover: #f3f7fb;
}

body.bios-live .view-settings .page-head,
body.bios-live .view-settings .settings-section {
  width: 100%;
}

body.bios-live .view-settings .page-head {
  margin-bottom: 34px;
}

body.bios-live .view-settings .settings-section {
  max-width: none;
  margin-bottom: 34px;
}

body.bios-live .view-settings .settings-section > h2 {
  margin: 0 0 14px 2px;
  color: var(--premium-ink);
  font-size: 18px;
  font-weight: 680;
}

body.bios-live .view-settings .settings-list {
  overflow: hidden;
  border: 1px solid var(--settings-border);
  border-radius: 20px;
  background: var(--settings-surface);
  box-shadow: 0 24px 54px -44px rgba(24, 42, 72, .44),
    0 4px 16px -12px rgba(24, 42, 72, .16);
}

body.bios-live .view-settings .settings-row {
  min-height: 82px;
  padding: 15px 20px;
  gap: 16px;
  border-color: rgba(24, 42, 72, .075);
  background: transparent;
  color: var(--premium-ink);
  transition: background-color .18s ease, transform .18s ease;
}

body.bios-live .view-settings .settings-row:hover {
  background: var(--settings-hover);
}

body.bios-live .view-settings .settings-row .step-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(10, 114, 214, .08);
  border-radius: 13px;
  background: #edf5fd;
  color: var(--premium-accent-dark);
}

body.bios-live .view-settings .settings-row .step-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

body.bios-live .view-settings .settings-row b {
  display: block;
  color: var(--premium-ink);
  font-size: 15px;
  font-weight: 650;
}

body.bios-live .view-settings .settings-row p {
  margin-top: 5px;
  color: var(--premium-muted);
  font-size: 13px;
  line-height: 1.42;
}

body.bios-live .view-settings .bios-settings-arrow,
body.bios-live .view-settings .settings-row .chev {
  color: #8090a4;
  transition: transform .18s ease, color .18s ease;
}

body.bios-live .view-settings .settings-row:hover .bios-settings-arrow,
body.bios-live .view-settings .settings-row:hover .chev {
  color: var(--premium-accent-dark);
  transform: translateX(2px);
}

body.bios-live .view-settings .bios-settings-account .settings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.bios-live .view-settings .bios-settings-account .settings-row {
  min-height: 104px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  border: 1px solid var(--settings-border);
  border-radius: 18px;
  background: var(--settings-surface);
  box-shadow: 0 20px 46px -40px rgba(24, 42, 72, .52),
    0 3px 12px -10px rgba(24, 42, 72, .18);
}

body.bios-live .view-settings .bios-settings-account .settings-row:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 24px 52px -38px rgba(24, 42, 72, .52),
    0 5px 16px -12px rgba(24, 42, 72, .22);
}

body.bios-live .view-settings .bios-settings-account-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

body.bios-live .view-settings .bios-settings-security .settings-row:last-child .step-icon {
  border-color: rgba(183, 73, 82, .08);
  background: #fff3f3;
  color: #a63f49;
}

body.bios-live .view-settings .bios-settings-security .settings-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: stretch;
}

body.bios-live .view-settings .settings-security-left {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

body.bios-live .view-settings .bios-settings-security .settings-list {
  box-shadow: none;
}

body.bios-live .view-settings .settings-policy-strip {
  display: grid;
  min-height: 78px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  border: 1px solid var(--settings-border);
  border-radius: 18px;
  background: #fff;
  color: #2d4359;
  text-decoration: none;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

body.bios-live .view-settings .settings-policy-strip:hover {
  border-color: rgba(74, 151, 222, .24);
  background: #f5faff;
  box-shadow: none;
}

body.bios-live .view-settings .settings-policy-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #d7e8f8;
  border-radius: 14px;
  background: #edf6ff;
  color: #287fd0;
}

body.bios-live .view-settings .settings-policy-mark svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

body.bios-live .view-settings .settings-policy-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body.bios-live .view-settings .settings-policy-copy b {
  color: #2d4359;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

body.bios-live .view-settings .settings-policy-copy small {
  color: #8496aa;
  font-size: 11.5px;
  line-height: 1.35;
}

body.bios-live .view-settings .settings-policy-external {
  width: 18px;
  height: 18px;
  color: #6d8298;
  stroke-width: 1.65;
  transition: color .18s ease, transform .18s ease;
}

body.bios-live .view-settings .settings-policy-strip:hover .settings-policy-external {
  color: #287fd0;
  transform: translate(1px, -1px);
}

body.bios-live .view-settings .bios-settings-security .security-art.settings-support-banner {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(148px, 1fr) auto;
  min-height: 100%;
  overflow: hidden;
  padding: 27px 26px 23px;
  border: 1px solid rgba(81, 151, 216, .2);
  border-radius: 19px;
  background:
    radial-gradient(circle at 84% 17%, rgba(255, 255, 255, .9), transparent 27%),
    radial-gradient(circle at 18% 88%, rgba(101, 170, 235, .13), transparent 34%),
    linear-gradient(150deg, #f2f9ff 0%, #e7f4ff 52%, #deeffd 100%);
  color: #10213a;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 22px 48px -42px rgba(27, 75, 125, .42), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

body.bios-live .view-settings .bios-settings-security .settings-support-banner:hover {
  border-color: rgba(57, 139, 218, .3);
  background:
    radial-gradient(circle at 84% 17%, rgba(255, 255, 255, .94), transparent 27%),
    radial-gradient(circle at 18% 88%, rgba(101, 170, 235, .16), transparent 34%),
    linear-gradient(150deg, #f1f9ff 0%, #e4f3ff 52%, #dceefe 100%);
  box-shadow: 0 26px 54px -42px rgba(27, 75, 125, .5), inset 0 1px 0 rgba(255, 255, 255, .94);
}

body.bios-live .view-settings .settings-support-kicker {
  display: block;
  margin-bottom: 10px;
  color: #247bc9;
  font-size: 10.5px;
  font-weight: 760;
  letter-spacing: .085em !important;
  text-transform: uppercase;
}

body.bios-live .view-settings .settings-support-banner h3 {
  position: relative;
  z-index: 2;
  max-width: 235px;
  margin: 0;
  color: #10213a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.038em !important;
}

body.bios-live .view-settings .settings-support-banner p {
  position: relative;
  z-index: 2;
  max-width: 240px;
  margin: 11px 0 0;
  color: #667c96;
  font-size: 12.5px;
  line-height: 1.52;
}

body.bios-live .view-settings .settings-support-visual {
  position: relative;
  display: grid;
  min-height: 148px;
  place-items: center;
  margin: 4px 0 3px;
}

body.bios-live .view-settings .settings-support-visual::before,
body.bios-live .view-settings .settings-support-visual::after {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

body.bios-live .view-settings .settings-support-visual::before {
  width: 132px;
  height: 132px;
  border: 1px solid rgba(104, 176, 237, .18);
  background: rgba(255, 255, 255, .38);
  box-shadow: 0 22px 42px -28px rgba(36, 112, 181, .42);
}

body.bios-live .view-settings .settings-support-visual::after {
  width: 104px;
  height: 104px;
  border: 1px solid rgba(255, 255, 255, .84);
  box-shadow: inset 0 0 32px rgba(255, 255, 255, .36);
}

body.bios-live .view-settings .settings-support-visual img {
  position: relative;
  z-index: 1;
  width: 116px;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(39, 104, 174, .18));
}

body.bios-live .view-settings .settings-support-dots,
body.bios-live .view-settings .settings-support-dots::before,
body.bios-live .view-settings .settings-support-dots::after {
  display: none;
}

body.bios-live .view-settings .settings-support-cta {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid rgba(80, 143, 204, .16);
  border-radius: 15px;
  background: rgba(255, 255, 255, .86);
  color: #166fbe;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 15px 30px -26px rgba(20, 76, 132, .48);
}

body.bios-live .view-settings .settings-support-cta svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
  transition: transform .18s ease;
}

body.bios-live .view-settings .settings-support-banner:hover .settings-support-cta svg {
  transform: translateX(2px);
}

@media (max-width: 980px) {
  body.bios-live .view-settings .bios-settings-security .settings-grid {
    grid-template-columns: 1fr;
  }

  body.bios-live .view-settings .bios-settings-security .security-art.settings-support-banner {
    min-height: 390px;
  }
}

body.bios-live .view-settings .bios-live-settings-about .settings-row {
  min-height: 72px;
  grid-template-columns: minmax(0, 1fr) auto;
}

@media (max-width: 760px) {
  body.bios-live .view-settings .page-head {
    margin-bottom: 26px;
  }

  body.bios-live .view-settings .settings-section {
    margin-bottom: 28px;
  }

  body.bios-live .view-settings .bios-settings-account .settings-list {
    grid-template-columns: 1fr;
  }

  body.bios-live .view-settings .settings-list,
  body.bios-live .view-settings .bios-settings-account .settings-row {
    border-radius: 17px;
  }

  body.bios-live .view-settings .settings-row {
    min-height: 76px;
    padding: 13px 15px;
  }

}

/* Conversation accent: the patient's request and BIOS thinking state. */
body.bios-live .view-ai-chat .message.user .bubble {
  border-color: transparent;
  border-radius: 17px;
  background: linear-gradient(135deg, #1688ff 0%, #087cf0 58%, #076ed8 100%);
  color: #fff;
  box-shadow: 0 16px 34px -24px rgba(5, 91, 181, .78);
}

body.bios-live .view-ai-chat .message.user .bubble-time {
  color: rgba(255, 255, 255, .72);
}

body.bios-live .view-ai-chat .message.user .bubble-checks {
  color: rgba(255, 255, 255, .92);
}

body.bios-live .view-ai-chat .bios-thinking-message {
  display: flex;
  align-items: center;
  max-width: none;
}

body.bios-live .view-ai-chat .bios-thinking-message .message-avatar {
  display: none;
}

body.bios-live .view-ai-chat .bios-thinking-message .bubble {
  min-width: min(520px, 100%);
  min-height: 0;
  gap: 10px;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--premium-ink-soft);
  box-shadow: none;
}

body.bios-live .view-ai-chat .bios-thinking-label {
  font-size: 14px;
  font-weight: 650;
}

body.bios-live .view-ai-chat .bios-thinking-dots {
  width: 27px;
  gap: 4px;
}

body.bios-live .view-ai-chat .bios-thinking-dots span {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: #087cf0;
  box-shadow: 0 0 0 3px rgba(8, 124, 240, .08);
}

body.bios-live .view-ai-chat .bios-chat-feedback {
  padding-inline: 2px;
}

body.bios-live .view-ai-chat .bios-chat-feedback-button {
  border-color: rgba(28, 39, 61, .10);
  background: rgba(255, 255, 255, .82);
  color: var(--premium-muted);
}

body.bios-live .view-ai-chat .bios-chat-feedback-button:hover,
body.bios-live .view-ai-chat .bios-chat-feedback-button.is-active {
  border-color: rgba(8, 124, 240, .22);
  background: #edf6ff;
  color: #076ed8;
}

body.bios-live .view-ai-chat .bios-chat-intelligence {
  border-top-color: rgba(28, 39, 61, .075);
}

/* Conversation v0.22.2: an open, editorial answer surface instead of cards. */
body.bios-live .view-ai-chat .message:not(.user) {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 15px;
  width: min(100%, 900px);
  max-width: 900px;
  align-items: start;
}

body.bios-live .view-ai-chat .message:not(.user) > .message-avatar {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 560;
}

body.bios-live .view-ai-chat .message:not(.user) .bubble {
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-message-text {
  color: #1f2d40;
  font-size: 16.5px;
  font-weight: 430;
  line-height: 1.68;
  letter-spacing: -.006em;
  text-wrap: pretty;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-message-text p + p,
body.bios-live .view-ai-chat .message:not(.user) .bios-message-text p + ul,
body.bios-live .view-ai-chat .message:not(.user) .bios-message-text p + ol,
body.bios-live .view-ai-chat .message:not(.user) .bios-message-text ul + p,
body.bios-live .view-ai-chat .message:not(.user) .bios-message-text ol + p {
  margin-top: 15px;
}

body.bios-live .view-ai-chat .message:not(.user) .bubble-time {
  display: block;
  margin-top: 9px;
  color: rgba(55, 72, 96, .52);
  font-size: 11px;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-typewriter-active {
  min-height: 58px;
}

body.bios-live .view-ai-chat .bios-chat-intelligence {
  display: none;
}

body.bios-live .view-ai-chat .bios-chat-feedback {
  margin: 0;
  padding: 0;
}

body.bios-live .view-ai-chat .bios-chat-feedback-button,
body.bios-live .view-ai-chat .bios-chat-feedback-button:hover,
body.bios-live .view-ai-chat .bios-chat-feedback-button.is-active {
  min-height: 27px;
  padding: 3px 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.bios-live .view-ai-chat .bios-chat-feedback-button:hover,
body.bios-live .view-ai-chat .bios-chat-feedback-button.is-active {
  color: #076ed8;
}

@media (max-width: 760px) {
  body.bios-live .view-ai-chat .message:not(.user) {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;
  }

  body.bios-live .view-ai-chat .message:not(.user) > .message-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  body.bios-live .view-ai-chat .message:not(.user) .bios-message-text {
    font-size: 16px;
    line-height: 1.62;
  }
}




/* Inlined from chat-redesign.css. */
/* BIOS chat redesign preview built over the exact 2026-08-05 staging snapshot. */

/* Transparent section panels must not reveal a card-shaped shadow on hover. */
body.bios-live .panel:hover {
  transform: none;
  box-shadow: none;
}

body.bios-live .view-ai-chat.active {
  height: calc(100dvh - 118px);
  min-height: 560px;
}

body.bios-live .view-ai-chat .page-head,
body.bios-live .view-ai-chat .chat-intro {
  width: min(100%, 1180px);
  margin-inline: auto;
}

body.bios-live .view-ai-chat .chat-experience {
  width: min(100%, 1440px);
  margin-inline: auto;
}

body.bios-live .view-ai-chat .page-head {
  align-items: center;
  margin-bottom: 18px;
}

body.bios-live .chat-title-cluster,
body.bios-live .chat-title-meta,
body.bios-live .chat-online {
  display: flex;
  align-items: center;
}

body.bios-live .chat-title-cluster {
  min-width: 0;
  gap: 15px;
}

body.bios-live .chat-identity-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  border: 1px solid rgba(8, 124, 240, .16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(8, 124, 240, .08), transparent 66%),
    #fff;
  box-shadow: 0 18px 34px -24px rgba(6, 94, 188, .58),
    0 3px 10px rgba(24, 42, 72, .05),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

body.bios-live .chat-identity-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(8, 124, 240, .06);
  border-radius: 14px;
}

body.bios-live .chat-identity-mark::after {
  display: none;
}

body.bios-live .chat-identity-mark img {
  position: relative;
  z-index: 1;
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

body.bios-live .view-ai-chat .page-title h1 {
  margin: 0 0 5px;
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(30px, 2.35vw, 38px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.035em !important;
}

body.bios-live .chat-title-meta {
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--premium-muted);
  font-size: 13px;
  font-weight: 540;
}

body.bios-live .chat-online {
  gap: 6px;
  color: #25714a;
  font-size: 12px;
  font-weight: 720;
}

body.bios-live .chat-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39b975;
  box-shadow: 0 0 0 4px rgba(57, 185, 117, .11);
}

body.bios-live .view-ai-chat .chat-intro {
  display: none;
}

body.bios-live .view-ai-chat .chat-intro .ai-orb {
  width: 58px;
  height: 58px;
  color: #087cf0;
}

body.bios-live .view-ai-chat .chat-intro .ai-orb svg {
  width: 34px;
  height: 34px;
}

body.bios-live .view-ai-chat .chat-bios { gap: 17px; }
body.bios-live .view-ai-chat .chat-bios h2 { margin-bottom: 4px; font-size: 16px; }
body.bios-live .view-ai-chat .chat-bios p { font-size: 12.5px; line-height: 1.5; }

body.bios-live .view-ai-chat .chat-capabilities {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
}

body.bios-live .view-ai-chat .capability {
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
}

body.bios-live .view-ai-chat .capability .step-icon {
  width: 27px;
  height: 27px;
  border-radius: 9px;
}

body.bios-live .chat-experience {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28, 39, 61, .09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 7% 3%, rgba(8, 124, 240, .055), transparent 29%),
    radial-gradient(circle at 96% 72%, rgba(62, 169, 218, .045), transparent 30%),
    linear-gradient(180deg, rgba(248, 251, 255, .96), rgba(255, 255, 255, .98));
  box-shadow: 0 32px 80px -62px rgba(18, 43, 78, .58),
    0 9px 26px -22px rgba(18, 43, 78, .24),
    inset 0 1px 0 rgba(255, 255, 255, .86);
}

body.bios-live .view-ai-chat .chat-day {
  width: min(calc(100% - 56px), 1260px);
  flex: 0 0 auto;
  align-self: center;
  gap: 14px;
  margin: 0;
  padding: 18px 0 8px;
  color: #8a94a4;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .08em !important;
  text-transform: uppercase;
}

body.bios-live .view-ai-chat .chat-day::before,
body.bios-live .view-ai-chat .chat-day::after {
  background: rgba(28, 39, 61, .075);
}

body.bios-live .view-ai-chat .chat-thread {
  width: 100%;
  flex: 1;
  gap: 28px;
  margin: 0;
  padding: 18px max(28px, calc((100% - 1260px) / 2)) 24px;
  scroll-padding-bottom: 24px;
  scrollbar-color: rgba(46, 137, 231, .72) rgba(32, 126, 222, .055);
  scrollbar-width: thin;
}

body.bios-live .view-ai-chat .chat-thread::-webkit-scrollbar { width: 9px; }

body.bios-live .view-ai-chat .chat-thread::-webkit-scrollbar-track {
  margin-block: 14px;
  border-radius: 999px;
  background: rgba(32, 126, 222, .055);
  box-shadow: inset 0 0 0 1px rgba(32, 126, 222, .045);
}

body.bios-live .view-ai-chat .chat-thread::-webkit-scrollbar-thumb {
  min-height: 54px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(104, 187, 255, .92), rgba(43, 126, 225, .88)) padding-box;
  box-shadow: 0 5px 12px -6px rgba(26, 104, 194, .72);
}

body.bios-live .view-ai-chat .chat-thread::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #79c5ff, #247bd7) padding-box;
}

body.bios-live .view-ai-chat .message { max-width: 100%; }

body.bios-live .view-ai-chat .message:not(.user) {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  width: min(100%, 1080px);
  max-width: 1080px;
}

body.bios-live .view-ai-chat .message:not(.user) > .message-avatar {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 124, 240, .16);
  border-radius: 15px;
  background:
    url("/frontend/assets/dashboard-r10-3ca0633c767830c6.png?v=20260826r12") center / 25px 25px no-repeat,
    #fff;
  color: transparent;
  font-size: 0;
  font-weight: 800;
  box-shadow: 0 15px 28px -21px rgba(7, 103, 200, .58),
    0 2px 7px rgba(24, 42, 72, .045),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}

body.bios-live .view-ai-chat .message:not(.user) > .message-avatar::after {
  display: none;
}

body.bios-live .view-ai-chat .message:not(.user) > .message-avatar svg {
  display: none;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-message-column {
  width: 100%;
  gap: 7px;
}

body.bios-live .view-ai-chat .message:not(.user) .bubble {
  position: relative;
  padding: 17px 19px 13px;
  border: 1px solid rgba(28, 39, 61, .075);
  border-radius: 5px 20px 20px 20px;
  background: rgba(247, 249, 252, .95);
  box-shadow: 0 16px 34px -32px rgba(24, 42, 72, .42),
    inset 0 1px 0 rgba(255, 255, 255, .8);
  white-space: normal;
}

body.bios-live .view-ai-chat .message:not(.user) .bubble::before {
  content: "BIOS";
  display: block;
  margin-bottom: 7px;
  color: #0872da;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em !important;
  text-transform: uppercase;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-message-text {
  max-width: 72ch;
  color: #1d2b3e;
  font-size: 15px;
  font-weight: 430;
  line-height: 1.62;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-message-text p + p,
body.bios-live .view-ai-chat .message:not(.user) .bios-message-text p + ul,
body.bios-live .view-ai-chat .message:not(.user) .bios-message-text p + ol,
body.bios-live .view-ai-chat .message:not(.user) .bios-message-text ul + p,
body.bios-live .view-ai-chat .message:not(.user) .bios-message-text ol + p {
  margin-top: 12px;
}

body.bios-live .view-ai-chat .message:not(.user) .bubble-time {
  margin-top: 8px;
  text-align: left;
  color: #9aa3b0;
  font-size: 10.5px;
}

body.bios-live .view-ai-chat .message.user {
  width: fit-content;
  max-width: min(68%, 680px);
  margin-left: auto;
}

body.bios-live .view-ai-chat .message.user .bubble {
  padding: 13px 16px 10px;
  border-radius: 20px 20px 6px 20px;
  background: linear-gradient(145deg, #178bfa 0%, #087cf0 62%, #086ed5 100%);
  font-size: 14.5px;
  font-weight: 510;
  line-height: 1.48;
  box-shadow: 0 18px 38px -26px rgba(5, 91, 181, .86),
    inset 0 1px 0 rgba(255, 255, 255, .19);
  white-space: pre-wrap;
}

body.bios-live .view-ai-chat .message.user .bubble-time {
  margin-top: 5px;
  color: rgba(255, 255, 255, .67);
  font-size: 10.5px;
}

body.bios-live .view-ai-chat .bios-chat-feedback { margin: 0 0 0 2px; }
body.bios-live .view-ai-chat .bios-chat-feedback-actions { gap: 2px; }

body.bios-live .view-ai-chat .bios-chat-feedback-button,
body.bios-live .view-ai-chat .bios-chat-feedback-button:hover,
body.bios-live .view-ai-chat .bios-chat-feedback-button.is-active {
  min-height: 29px;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 10.5px;
}

body.bios-live .view-ai-chat .bios-chat-feedback-button:hover,
body.bios-live .view-ai-chat .bios-chat-feedback-button.is-active {
  background: rgba(8, 124, 240, .07);
}

body.bios-live .view-ai-chat .bios-live-empty {
  width: min(100%, 620px);
  margin: auto;
  padding: 32px;
  border: 1px dashed rgba(8, 124, 240, .18);
  border-radius: 22px;
  background: rgba(247, 250, 255, .72);
  color: var(--premium-muted);
  text-align: center;
}

body.bios-live .view-ai-chat .bios-thinking-message {
  width: min(100%, 1080px);
  padding-left: 55px;
}

body.bios-live .view-ai-chat .bios-thinking-message .bubble {
  min-width: 0;
  padding: 4px 0;
}

body.bios-live .view-ai-chat .chat-bottom {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding: 11px max(28px, calc((100% - 1260px) / 2)) 14px;
  border-top: 1px solid rgba(28, 39, 61, .07);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 -18px 38px -40px rgba(24, 42, 72, .6);
  backdrop-filter: blur(18px);
}

body.bios-live .view-ai-chat .chat-composer {
  min-height: 62px;
  padding: 9px 10px 9px 11px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px;
  border-color: rgba(28, 39, 61, .12);
  border-radius: 20px;
  box-shadow: 0 20px 46px -32px rgba(24, 42, 72, .48),
    0 3px 10px rgba(24, 42, 72, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.bios-live .view-ai-chat .chat-composer:focus-within {
  border-color: rgba(28, 39, 61, .12);
  outline: none;
  box-shadow: 0 20px 46px -32px rgba(24, 42, 72, .48),
    0 3px 10px rgba(24, 42, 72, .035);
  transform: none;
}

body.bios-live .view-ai-chat .composer-plus {
  width: 42px;
  height: 42px;
  border-color: rgba(28, 39, 61, .09);
  border-radius: 14px;
  background: #f4f7fb;
  color: #53647b;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

body.bios-live .view-ai-chat .composer-plus:hover {
  background: #edf5ff;
  color: #0872da;
  transform: rotate(3deg);
}

body.bios-live .view-ai-chat .chat-input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #18263a;
  font-size: 14px;
  font-weight: 500;
}

body.bios-live .view-ai-chat .chat-input:focus,
body.bios-live .view-ai-chat .chat-input:focus-visible {
  border: 0 !important;
  outline: none !important;
  outline-offset: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

body.bios-live .view-ai-chat .chat-input::placeholder {
  color: #919baa;
  opacity: 1;
}

body.bios-live .view-ai-chat .composer-send {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  box-shadow: 0 14px 24px -16px rgba(6, 94, 188, .8),
    inset 0 1px 0 rgba(255, 255, 255, .26);
  transition: transform .18s ease, box-shadow .18s ease;
}

body.bios-live .view-ai-chat .composer-send:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 17px 28px -16px rgba(6, 94, 188, .9),
    inset 0 1px 0 rgba(255, 255, 255, .26);
}

body.bios-live .view-ai-chat .chat-disclaimer {
  margin-top: 8px;
  color: #8893a3;
  font-size: 10.5px;
  font-weight: 560;
  line-height: 1.35;
}

body.bios-live .view-ai-chat .chat-disclaimer svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 980px) {
  body.bios-live .view-ai-chat.active { height: auto; min-height: 0; }
  body.bios-live .chat-experience { min-height: 680px; }
  body.bios-live .view-ai-chat .chat-thread { overflow-y: auto; flex: 1; }
}

@media (max-width: 760px) {
  body.bios-live .view-ai-chat .page-head { margin-bottom: 14px; }
  body.bios-live .chat-title-cluster { gap: 11px; }
  body.bios-live .chat-identity-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 15px;
  }
  body.bios-live .chat-identity-mark img { width: 29px; height: 29px; }
  body.bios-live .view-ai-chat .page-title h1 { font-size: 28px; }
  body.bios-live .chat-title-meta > span:last-child { display: none; }
  body.bios-live .view-ai-chat .chat-intro { padding: 18px; }
  body.bios-live .view-ai-chat .chat-capabilities { grid-template-columns: 1fr; }
  body.bios-live .chat-experience { min-height: 620px; border-radius: 21px; }
  body.bios-live .view-ai-chat .chat-day { width: calc(100% - 28px); padding-top: 14px; }
  body.bios-live .view-ai-chat .chat-thread { gap: 23px; padding: 16px 14px 22px; }
  body.bios-live .view-ai-chat .message:not(.user) {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }
  body.bios-live .view-ai-chat .message:not(.user) > .message-avatar {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 10px;
  }
  body.bios-live .view-ai-chat .message:not(.user) .bubble {
    padding: 14px 14px 11px;
    border-radius: 4px 17px 17px 17px;
  }
  body.bios-live .view-ai-chat .message:not(.user) .bios-message-text {
    font-size: 14.5px;
    line-height: 1.58;
  }
  body.bios-live .view-ai-chat .message.user { max-width: 86%; }
  body.bios-live .view-ai-chat .chat-bottom { padding: 10px 10px 12px; }
  body.bios-live .view-ai-chat .chat-composer {
    min-height: 58px;
    padding: 7px 8px;
    border-radius: 17px;
  }
  body.bios-live .view-ai-chat .composer-plus,
  body.bios-live .view-ai-chat .composer-send {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  body.bios-live .view-ai-chat .chat-input { font-size: 16px; }
  body.bios-live .view-ai-chat .chat-disclaimer { align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  body.bios-live .view-ai-chat .chat-composer,
  body.bios-live .view-ai-chat .composer-plus,
  body.bios-live .view-ai-chat .composer-send { transition: none; }
}

/* Home — editorial product experience over the exact staging interface. */
body.bios-live {
  background:
    radial-gradient(circle at 74% 2%, rgba(90, 158, 235, .055), transparent 29%),
    #f5f7fa;
}

body.bios-live .main {
  max-width: none;
  margin: 0;
  padding: 42px clamp(34px, 4.2vw, 72px) 34px;
}

body.bios-live .view-today {
  width: min(100%, 1480px);
  margin-inline: auto;
}

body.bios-live .brand { position: relative; gap: 9px; }

body.bios-live .brand::after {
  content: "Personal";
  padding: 4px 7px;
  border: 1px solid rgba(20, 43, 72, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #8993a2;
  font-size: 9px;
  font-weight: 740;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.bios-live .nav-item {
  min-height: 48px;
  gap: 10px;
  padding: 8px 10px;
}

body.bios-live .nav-symbol {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(28, 54, 84, .055);
  border-radius: 10px;
  background: rgba(239, 243, 248, .78);
  color: #6e7c90;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

body.bios-live .nav-symbol svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: none !important;
}

body.bios-live .nav-symbol img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: grayscale(1) saturate(0) opacity(.7);
}

body.bios-live .nav-item:hover .nav-symbol {
  border-color: rgba(18, 104, 185, .08);
  background: rgba(235, 244, 253, .68);
  color: #3f668c;
}

body.bios-live .nav-item.active .nav-symbol {
  border-color: rgba(20, 126, 225, .1);
  background: #eaf4ff;
  color: #1378d4;
}

body.bios-live .nav-item.active .nav-symbol img { filter: none; }

body.bios-live .view-today .topbar { margin-bottom: 26px; }

body.bios-live .view-today .greeting h1 {
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(37px, 3.15vw, 47px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.045em !important;
}

body.bios-live .view-today .greeting p {
  margin-top: 10px;
  color: #7b8798;
  font-size: 15px;
  font-weight: 470;
}

body.bios-live .view-today .ai-hero { margin-bottom: 20px; padding: 8px 0 24px; }

body.bios-live .view-today .ai-title h2 {
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(21px, 1.75vw, 27px);
  font-weight: 710;
  letter-spacing: -.025em !important;
}

body.bios-live .view-today .ask-box {
  height: 70px;
  margin: 22px 0 14px;
  border-color: rgba(25, 47, 76, .1);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 52px -42px rgba(25, 52, 87, .54),
    0 4px 15px -11px rgba(25, 52, 87, .2),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

body.bios-live .view-today .ask-box:focus-within {
  border-color: rgba(25, 47, 76, .1);
  outline: none;
  box-shadow: 0 24px 52px -42px rgba(25, 52, 87, .54),
    0 4px 15px -11px rgba(25, 52, 87, .2),
    inset 0 1px 0 rgba(255, 255, 255, .96);
}

body.bios-live .view-today .home-chat-input { color: #152238; font-size: 15px; font-weight: 500; }
body.bios-live .view-today .home-chat-input:focus,
body.bios-live .view-today .home-chat-input:focus-visible {
  border: 0 !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}
body.bios-live .view-today .home-chat-input::placeholder { color: #a0a9b7; }

body.bios-live .view-today .home-chat-upload {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: #f4f7fb;
}

body.bios-live .view-today .voice-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #168af8, #0875df) !important;
  box-shadow: 0 16px 26px -17px rgba(4, 91, 184, .72) !important;
}

body.bios-live .view-today .prompt-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

body.bios-live .view-today .prompt-chips::-webkit-scrollbar { display: none; }

body.bios-live .view-today .chip {
  min-width: max-content;
  min-height: 40px;
  padding: 0 16px;
  border-color: rgba(24, 46, 76, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .77);
  color: #4e5c70;
  font-size: 12px;
  box-shadow: 0 8px 20px -18px rgba(24, 46, 76, .42);
}

body.bios-live .view-today .chip:hover {
  border-color: rgba(24, 46, 76, .08);
  background: #fff;
  color: #166fc3;
}

body.bios-live .view-today .consent-strip {
  margin-bottom: 24px;
  border-color: rgba(18, 69, 120, .09);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f3f8fe);
  box-shadow: 0 24px 52px -48px rgba(22, 56, 94, .52);
}

.home-editorial {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 276px;
  grid-template-columns: minmax(0, .96fr) minmax(340px, 1.04fr);
  overflow: hidden;
  margin: 0 0 24px;
  border: 1px solid rgba(20, 72, 130, .1);
  border-radius: 30px;
  background:
    radial-gradient(circle at 87% 10%, rgba(140, 117, 255, .34), transparent 35%),
    radial-gradient(circle at 62% 74%, rgba(77, 161, 255, .22), transparent 34%),
    linear-gradient(115deg, #f7fbff 0%, #edf6ff 43%, #deeaff 70%, #e8e3ff 100%);
  box-shadow: 0 38px 80px -58px rgba(35, 71, 114, .58),
    inset 0 1px 0 rgba(255, 255, 255, .92);
}

.home-editorial::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 560px;
  height: 560px;
  right: -70px;
  top: -170px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, .075),
    0 0 0 140px rgba(255, 255, 255, .045);
}

.home-editorial-copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  padding: clamp(30px, 3vw, 42px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.home-section-eyebrow,
.home-benefit-badge,
.home-bonus-status {
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.home-editorial h2 {
  max-width: 620px;
  margin: 0;
  color: #0a1321;
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(32px, 3.2vw, 45px);
  font-weight: 790;
  line-height: 1;
  letter-spacing: -.052em !important;
}

.home-editorial h2 span { color: #176fc4; }

.home-editorial-copy > p {
  max-width: 520px;
  margin: 15px 0 0;
  color: #5d6b7c;
  font-size: 13.5px;
  font-weight: 470;
  line-height: 1.6;
}

.home-editorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.home-editorial-actions button {
  min-height: 44px;
  padding: 0 17px;
  border-radius: 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 710;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.home-editorial-primary {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  border: 1px solid #0875df;
  background: linear-gradient(145deg, #168af8, #0875df);
  color: #fff;
  box-shadow: 0 18px 28px -20px rgba(5, 87, 173, .82);
}

.home-editorial-primary svg { width: 17px; height: 17px; stroke-width: 2; }
.home-editorial-primary:hover { transform: translateY(-1px); }

.home-editorial-visual {
  position: relative;
  z-index: 2;
  display: grid;
  min-width: 0;
  place-items: center;
}

.home-editorial-visual::before {
  content: "";
  position: absolute;
  width: min(36vw, 540px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .78), rgba(255, 255, 255, 0) 66%);
  filter: blur(6px);
}

.home-editorial-visual img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 250px;
  max-width: none;
  margin-right: -13%;
  filter: drop-shadow(0 30px 35px rgba(45, 78, 122, .2));
  transform: rotate(-3deg);
  animation: bios-home-float 7s ease-in-out infinite;
}

@keyframes bios-home-float {
  0%, 100% { transform: rotate(-3deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-1.5deg) translate3d(0, -8px, 0); }
}

body.bios-live .view-today > .bios-live-health-summary {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  margin: 0 0 34px;
  padding: 23px 26px 23px 76px;
  overflow: hidden;
  border-color: rgba(21, 54, 88, .09);
  border-radius: 22px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 22px 50px -48px rgba(25, 52, 87, .52);
}

body.bios-live .view-today > .bios-live-health-summary::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 36px;
  left: 24px;
  top: 22px;
  border: 1px solid rgba(8, 124, 240, .12);
  border-radius: 13px;
  background: url("/frontend/assets/dashboard-r10-3ca0633c767830c6.png?v=20260826r12") center / 25px 25px no-repeat, #f4f9ff;
}

body.bios-live .view-today > .bios-live-health-summary h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 740;
  letter-spacing: -.015em !important;
}

body.bios-live .view-today > .bios-live-health-summary > p {
  margin: 0;
  color: #758194;
  font-size: 13px;
  line-height: 1.5;
}

body.bios-live .view-today > .bios-live-health-summary .bios-health-latest { grid-column: 2; }

.home-discovery { margin-top: 8px; }

.home-section-heading,
.home-articles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.home-section-heading { margin: 0 0 20px; }
.home-section-heading > div,
.home-articles-head > div { min-width: 0; }

.home-section-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #1375cf;
}

.home-section-heading h2,
.home-articles-head h2 {
  margin: 0;
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.04em !important;
}

.home-section-heading > p {
  max-width: 460px;
  margin: 0 0 2px;
  color: #7b8797;
  font-size: 13px;
  line-height: 1.55;
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  gap: 16px;
}

.home-benefit-card {
  position: relative;
  min-height: 238px;
  overflow: hidden;
  border: 1px solid rgba(24, 46, 76, .09);
  border-radius: 27px;
}

.home-referral-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 34px 38% 34px 34px;
  background:
    radial-gradient(circle at 84% 21%, rgba(86, 170, 255, .45), transparent 26%),
    radial-gradient(circle at 88% 80%, rgba(123, 105, 255, .38), transparent 32%),
    linear-gradient(135deg, #102c4c, #0c5b9e 70%, #176db3);
  color: #fff;
}

.home-benefit-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  background: rgba(255, 255, 255, .1);
  color: currentColor;
  backdrop-filter: blur(12px);
}

.home-benefit-icon svg { width: 24px; height: 24px; stroke-width: 1.55; }

.home-benefit-copy { position: relative; z-index: 2; min-width: 0; }

.home-benefit-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #d8edff;
}

.home-benefit-copy h3 {
  max-width: 460px;
  margin: 0;
  color: #fff !important;
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 740;
  line-height: 1.04;
  letter-spacing: -.04em !important;
}

.home-benefit-copy p {
  max-width: 510px;
  margin: 15px 0 0;
  color: rgba(235, 246, 255, .72);
  font-size: 12.5px;
  line-height: 1.55;
}

.home-referral-link {
  display: flex;
  max-width: 440px;
  height: 42px;
  margin-top: 20px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 26px -18px rgba(0, 18, 48, .75);
  backdrop-filter: blur(12px);
}

.home-referral-link input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 11px;
  background: transparent !important;
  color: #294661 !important;
  font: 600 11px/1.2 "Inter BIOS", Inter, sans-serif;
  text-overflow: ellipsis;
}

.home-referral-link button {
  min-width: 104px;
  border: 0;
  border-radius: 9px;
  background: #0670d1;
  color: #fff;
  cursor: pointer;
  font: 720 11px/1 "Inter BIOS", Inter, sans-serif;
  transition: transform .18s ease, background .18s ease;
}

.home-referral-link button:hover { background: #005fb7; transform: translateY(-1px); }

.home-referral-note {
  display: block;
  margin-top: 11px;
  color: rgba(226, 241, 255, .58);
  font-size: 10px;
}

.home-benefit-orbit,
.home-benefit-orbit i { position: absolute; border-radius: 50%; }

.home-benefit-orbit {
  width: 260px;
  height: 260px;
  right: 22px;
  top: -10px;
  border: 0;
  box-shadow: none;
}

.home-benefit-orbit::before {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  left: 91px;
  top: 91px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 25px;
  background: url("/frontend/assets/dashboard-r10-3ca0633c767830c6.png?v=20260826r12") center / 48px 48px no-repeat, rgba(255, 255, 255, .88);
  box-shadow: 0 26px 55px -24px rgba(2, 23, 48, .48);
  transform: rotate(-8deg);
}

.home-benefit-orbit i {
  display: none;
}

.home-benefit-orbit i:nth-child(1) { left: 20px; top: 72px; }
.home-benefit-orbit i:nth-child(2) { right: 24px; top: 105px; }
.home-benefit-orbit i:nth-child(3) { left: 112px; bottom: 12px; }

.home-bonus-card {
  display: flex;
  padding: 30px;
  flex-direction: column;
  background: radial-gradient(circle at 92% 8%, rgba(106, 135, 255, .19), transparent 31%), linear-gradient(145deg, #ffffff, #eef4ff);
  color: #14233a;
}

.home-bonus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #647287;
  font-size: 12px;
  font-weight: 700;
}

.home-bonus-card .home-benefit-icon {
  border-color: rgba(8, 124, 240, .1);
  background: rgba(255, 255, 255, .68);
  color: #1479d8;
}

.home-bonus-card strong {
  margin-top: 22px;
  font-family: "Inter BIOS", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 50px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.055em;
}

.home-bonus-card strong small { font-size: .48em; }

.home-bonus-card p {
  max-width: 370px;
  margin: 13px 0 18px;
  color: #778397;
  font-size: 12.5px;
  line-height: 1.5;
}

.home-bonus-status { margin-top: auto; color: #1672c5; }

.home-bonus-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 18px;
}

.home-bonus-stats span {
  display: flex;
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(24, 46, 76, .09);
  flex-direction: column;
  gap: 3px;
}

.home-bonus-stats b { color: #1c314c; font-size: 14px; }
.home-bonus-stats small { color: #8793a5; font-size: 9px; line-height: 1.25; }

.bonus-partners-soon {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 30px;
  border: 1px solid #e1e7ed;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: 0 14px 34px rgba(32, 57, 81, .035);
}

.bonus-partners-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid #d9e9f7;
  border-radius: 17px;
  background: #eef6fd;
  color: #197ddd;
}

.bonus-partners-mark svg { width: 25px; height: 25px; stroke-width: 1.8; }

.bonus-partners-soon strong {
  color: #1b2d43;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.bonus-partners-soon p {
  max-width: 470px;
  margin: 9px 0 0;
  color: #8291a3;
  font-size: 12px;
  line-height: 1.5;
}

.home-articles-head { margin: 46px 0 19px; }

.home-articles-head > a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #196fbd;
  font-size: 12px;
  font-weight: 710;
  text-decoration: none;
}

.home-articles-head > a svg { width: 16px; height: 16px; stroke-width: 1.9; }

.home-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 56px;
}

.home-article-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(24, 46, 76, .085);
  border-radius: 23px;
  background: rgba(255, 255, 255, .82);
  color: #18263a;
  text-decoration: none;
  box-shadow: 0 22px 44px -42px rgba(24, 46, 76, .48);
  transition: border-color .2s ease, background .2s ease;
}

.home-article-card:hover { border-color: rgba(24, 46, 76, .085); background: #fff; }

.home-article-media {
  position: relative;
  display: block;
  height: 174px;
  overflow: hidden;
  background: #e9eff7;
}

.home-article-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 20, 34, .28));
}

.home-article-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .75, .2, 1);
}

.home-article-card:hover .home-article-media img { transform: scale(1.025); }

.home-article-media i {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 13px;
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #28405d;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.home-article-copy {
  display: grid;
  gap: 15px;
  min-height: 132px;
  padding: 20px 20px 18px;
}

.home-article-copy b {
  font-size: 15px;
  font-weight: 680;
  line-height: 1.34;
  letter-spacing: -.015em;
}

.home-article-copy small {
  align-self: end;
  color: #8993a2;
  font-size: 10.5px;
  font-weight: 590;
}

.bios-app-footer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 54px;
  padding: 27px 2px 4px;
  border-top: 1px solid rgba(24, 46, 76, .09);
  color: #7b8797;
  font-size: 11px;
}

.bios-app-footer::before {
  display: none;
}

.bios-footer-brand,
.bios-footer-language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.bios-footer-brand { color: #33445a; font-weight: 720; }
.bios-footer-brand img { width: 24px; height: 24px; object-fit: contain; }

.bios-app-footer > a { color: #6f7c8e; font-weight: 620; text-decoration: none; }
.bios-app-footer > a:hover { color: #126fc5; }
.bios-footer-language { margin-left: auto; color: #26384e; font-size: 13px; }

.bios-footer-language i {
  display: block;
  width: 25px;
  height: 25px;
  overflow: hidden;
  border: 1px solid rgba(24, 46, 76, .08);
  border-radius: 50%;
  background: linear-gradient(#fff 0 33.33%, #1769c6 33.33% 66.66%, #ef3340 66.66%);
}

.bios-footer-language i b { display: none; }
.bios-footer-copyright { white-space: nowrap; }

@media (max-width: 1180px) {
  body.bios-live .main { padding-inline: 34px; }
  .home-editorial { grid-template-columns: minmax(0, .98fr) minmax(290px, 1.02fr); }
  .home-editorial-copy { padding: 32px; }
  .home-editorial h2 { font-size: clamp(32px, 3.7vw, 41px); }
  .home-referral-card { padding-right: 34%; }
  .home-benefit-orbit { right: -30px; }
}

@media (max-width: 980px) {
  body.bios-live .main { padding: 30px 24px; }
  .home-editorial { min-height: 420px; grid-template-columns: 1fr; }
  .home-editorial-copy { padding: 30px 32px 176px; }
  .home-editorial-visual { position: absolute; height: 195px; right: 0; bottom: 0; left: 30%; }
  .home-editorial-visual img { width: auto; height: 185px; margin-right: -10%; }
  .home-benefit-grid { grid-template-columns: 1fr; }
  .home-referral-card { padding-right: 38%; }
  .home-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-article-card:last-child { display: none; }
  .bios-app-footer { flex-wrap: wrap; }
  .bios-footer-language { margin-left: 0; }
}

@media (max-width: 700px) {
  body.bios-live .main { padding: 24px 16px; }
  body.bios-live .view-today .greeting h1 { font-size: 34px; }
  body.bios-live .view-today .ask-box { height: 62px; border-radius: 17px; }
  body.bios-live .view-today .voice-btn { width: 43px; height: 43px; border-radius: 14px; }
  .home-editorial { min-height: 408px; border-radius: 25px; }
  .home-editorial-copy { padding: 26px 23px 168px; }
  .home-editorial h2 { font-size: clamp(32px, 9.4vw, 40px); }
  .home-editorial-copy > p { margin-top: 14px; font-size: 13px; }
  .home-editorial-actions { margin-top: 18px; }
  .home-editorial-actions button { min-height: 43px; }
  .home-editorial-visual { left: 8%; height: 180px; }
  .home-editorial-visual img { height: 165px; }
  body.bios-live .view-today > .bios-live-health-summary { padding: 68px 20px 20px; grid-template-columns: 1fr; }
  body.bios-live .view-today > .bios-live-health-summary .bios-health-latest { grid-column: 1; }
  .home-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-referral-card { min-height: 390px; padding: 28px 25px 145px; }
  .home-referral-link { height: 45px; }
  .home-referral-link button { min-width: 98px; }
  .home-benefit-orbit { width: 210px; height: 210px; right: calc(50% - 105px); top: auto; bottom: -80px; }
  .home-benefit-orbit::before { width: 64px; height: 64px; left: 72px; top: 72px; background-size: 40px 40px; }
  .home-bonus-card { min-height: 225px; padding: 25px; }
  .home-articles-head { align-items: flex-end; gap: 18px; }
  .home-articles-head h2 { font-size: 26px; }
  .home-articles-head > a { font-size: 0; }
  .home-articles-head > a svg { width: 21px; height: 21px; }
  .home-article-grid { grid-template-columns: 1fr; }
  .home-article-card:last-child { display: block; }
  .bios-app-footer { align-items: flex-start; flex-direction: column; gap: 14px; }
  .bios-footer-copyright { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .home-editorial-visual img { animation: none; }
  .home-article-media img,
  .home-editorial-actions button { transition: none; }
}

/* Keep the legal/product line visible at the bottom of the application. */
body.bios-live .view-today { padding-bottom: 86px; }

.bios-app-footer {
  position: fixed;
  z-index: 45;
  min-height: 68px;
  right: 0;
  bottom: 0;
  left: 248px;
  margin: 0;
  padding: 15px clamp(34px, 4.2vw, 72px);
  border-top-color: rgba(24, 46, 76, .1);
  background: #f7f9fc;
  box-shadow: 0 -18px 42px -38px rgba(20, 43, 72, .48);
  backdrop-filter: none;
}

.bios-app-footer::before {
  left: clamp(34px, 4.2vw, 72px);
}

@media (max-width: 980px) {
  .bios-app-footer {
    left: 0;
    padding-inline: 24px;
  }

  .bios-app-footer::before { left: 24px; }
}

@media (max-width: 700px) {
  body.bios-live .view-today { padding-bottom: 68px; }

  .bios-app-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 58px;
    margin: 0;
    padding: 10px 16px;
    background: #edf1f4;
    box-shadow: 0 -14px 34px -30px rgba(20, 43, 72, .48);
    backdrop-filter: none;
  }

  .bios-app-footer::before { left: 16px; }
}

/* Home workspace shell — a calm substrate beneath one clear working surface. */
body.bios-live .sidebar {
  border-right: 1px solid rgba(28, 48, 72, .12);
  background: #f0f3f6;
  box-shadow: inset -1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: none;
}

body.bios-live .main:has(.view-today.active) {
  padding: 18px 18px 94px 14px;
  background: #edf1f4;
}

body.bios-live .view-today {
  width: 100%;
  min-height: calc(100vh - 36px);
  padding: 34px clamp(34px, 4.2vw, 72px) 108px;
  border: 1px solid rgba(28, 48, 72, .065);
  border-radius: 30px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(24, 44, 68, .025),
    0 22px 48px -42px rgba(24, 44, 68, .28);
}

body.bios-live .view-today .bios-app-footer {
  left: 252px;
  padding-inline: calc(18px + clamp(34px, 4.2vw, 72px));
  background: #edf1f4;
}

body.bios-live .view-today .bios-app-footer::before {
  left: calc(18px + clamp(34px, 4.2vw, 72px));
}

@media (max-width: 980px) {
  body.bios-live .main:has(.view-today.active) { padding: 12px 12px 82px; }

  body.bios-live .view-today {
    min-height: calc(100vh - 24px);
    padding: 28px 28px 96px;
    border-radius: 25px;
  }

  body.bios-live .view-today .bios-app-footer {
    left: 0;
    padding-inline: 40px;
  }

  body.bios-live .view-today .bios-app-footer::before { left: 40px; }
}

@media (max-width: 700px) {
  body.bios-live .main:has(.view-today.active) { padding: 8px; }

  body.bios-live .view-today {
    min-height: calc(100vh - 16px);
    padding: 24px 16px;
    border-radius: 22px;
  }

  body.bios-live .view-today .bios-app-footer {
    left: auto;
    padding: 24px 2px 4px;
    background: transparent;
  }

body.bios-live .view-today .bios-app-footer::before { left: 0; }
}

/* One fixed legal/product footer across every BIOS Personal section. */
body.bios-live .app > .bios-app-footer {
  position: fixed;
  z-index: 45;
  right: 0;
  bottom: 0;
  left: 248px;
  min-height: 68px;
  margin: 0;
  padding: 15px clamp(34px, 4.2vw, 72px);
  border-top: 1px solid rgba(24, 46, 76, .1);
  background: #edf1f4;
  box-shadow: 0 -18px 42px -38px rgba(20, 43, 72, .48);
}

body.bios-live .app > .bios-app-footer::before {
  left: clamp(34px, 4.2vw, 72px);
}

body.bios-live .main > .view.active:not(.view-ai-chat):not(.view-today) {
  padding-bottom: 108px;
}

@media (max-width: 1180px) and (min-width: 701px) {
  body.bios-live .app > .bios-app-footer {
    align-items: center;
    flex-flow: row wrap;
    gap: 8px 16px;
    padding-block: 12px;
  }
}

@media (max-width: 980px) {
  body.bios-live .app > .bios-app-footer {
    left: 0;
    padding-inline: 24px;
  }

  body.bios-live .app > .bios-app-footer::before { left: 24px; }
  body.bios-live .view-ai-chat.active { margin-bottom: 82px; }
}

@media (max-width: 700px) {
  body.bios-live .app > .bios-app-footer {
    min-height: 58px;
    flex-flow: row nowrap;
    gap: 10px;
    padding: 10px 16px;
  }

  body.bios-live .app > .bios-app-footer > a { display: none; }
  body.bios-live .app > .bios-app-footer .bios-footer-language { margin-left: auto; }
  body.bios-live .app > .bios-app-footer .bios-footer-copyright { font-size: 9px; }
  body.bios-live .app > .bios-app-footer::before { left: 16px; }
  body.bios-live .view-ai-chat.active { margin-bottom: 64px; }
}

/*
 * BIOS Personal type and spacing system.
 * One hierarchy across the home, chat, protocols, data, settings and privacy flows.
 */
body.bios-live {
  --ui-font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --ui-font-display: var(--ui-font-text);
  --ui-title: clamp(32px, 2.35vw, 38px);
  --ui-section: 20px;
  --ui-card-title: 16px;
  --ui-body: 14px;
  --ui-small: 12px;
  font-family: var(--ui-font-text);
  font-size: var(--ui-body);
  line-height: 1.5;
  letter-spacing: -.006em;
}

body.bios-live :where(*) {
  font-family: var(--ui-font-text) !important;
}

body.bios-live :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--ui-font-display) !important;
  font-synthesis: none;
  text-wrap: balance;
}

body.bios-live :is(button, input, textarea, select) { font-family: inherit; }

body.bios-live .main > .view:not(.view-today) {
  width: min(100%, 1280px);
  margin-inline: auto;
}

body.bios-live :is(.page-head, .topbar, .family-head, .create-protocol-head) {
  align-items: center;
  margin-bottom: 28px;
}

body.bios-live :is(
  .page-title h1,
  .privacy-head h1,
  .family-title h1,
  .consent-review-title h1,
  .create-protocol-head h1
) {
  margin-bottom: 8px;
  font-size: var(--ui-title);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.04em !important;
}

body.bios-live :is(.page-title p, .privacy-head p, .family-title p, .consent-review-title p) {
  max-width: 760px;
  color: #748093;
  font-size: var(--ui-body);
  font-weight: 440;
  line-height: 1.5;
}

body.bios-live .view-today .greeting h1 {
  font-size: var(--ui-title);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.04em !important;
}

body.bios-live .view-today .greeting p {
  margin-top: 7px;
  font-size: var(--ui-body);
  line-height: 1.45;
}

body.bios-live .view-today .topbar { margin-bottom: 30px; }
body.bios-live .view-today .ai-hero { padding-top: 2px; }

body.bios-live .view-today .ai-title h2 {
  font-size: 23px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em !important;
}

body.bios-live .view-today .home-editorial h2 {
  font-size: clamp(34px, 2.75vw, 40px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.045em !important;
}

body.bios-live .view-today .home-editorial-copy > p {
  font-size: var(--ui-body);
  line-height: 1.5;
}

body.bios-live :is(.home-section-heading h2, .home-articles-head h2) {
  font-size: clamp(25px, 1.9vw, 30px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em !important;
}

body.bios-live .home-benefit-copy h3 {
  font-size: clamp(24px, 1.85vw, 29px);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -.035em !important;
}

body.bios-live :is(
  .section-head h2,
  .metrics-head h2,
  .settings-section > h2,
  .privacy-group > h2,
  .grant-step > h2,
  .export-panel > h2,
  .backup-section > h2,
  .family-section-title,
  .family-overview > h2,
  .family-insight-card > h2,
  .bios-understood > h2,
  .my-data > h2,
  .import-card > h2,
  .export-card > h2,
  .structure-card > h2,
  .ask-ai-card > h2,
  .organism-memory > h2,
  .card-title-row > h2
) {
  font-size: var(--ui-section);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em !important;
}

body.bios-live :is(
  .settings-row b,
  .privacy-row b,
  .grant-row b,
  .history-row b,
  .export-row b,
  .backup-row b,
  .restore-row b,
  .relative-copy b,
  .analysis-row b,
  .source-copy b,
  .data-row b,
  .plan-copy b
) {
  font-size: var(--ui-body);
  font-weight: 600;
  line-height: 1.3;
}

body.bios-live :is(
  .settings-row p,
  .privacy-row p,
  .grant-row p,
  .history-row p,
  .export-row p,
  .backup-row p,
  .restore-row p,
  .relative-copy p,
  .analysis-row p,
  .source-copy p,
  .data-row span,
  .plan-copy p
) {
  margin-top: 4px;
  font-size: var(--ui-small);
  font-weight: 450;
  line-height: 1.45;
}

body.bios-live :is(.btn-primary, .btn-outline, .btn-danger) {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 13px;
  font-size: var(--ui-body);
  font-weight: 650;
  line-height: 1;
}

body.bios-live .btn-soft {
  min-height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

body.bios-live :is(.settings-section, .privacy-main, .create-main) { gap: 20px; }
body.bios-live .settings-section { margin-bottom: 20px; }

body.bios-live .view-ai-chat .page-title h1 {
  font-size: var(--ui-title);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.04em !important;
}

body.bios-live .view-ai-chat .chat-title-meta { font-size: 12px; }

body.bios-live .view-ai-chat :is(
  .chat-thread,
  .message,
  .bubble,
  .bios-message-text,
  .chat-composer,
  .chat-input
) {
  font-family: var(--ui-font-text) !important;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-message-text {
  color: #202a38;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: 0;
}

body.bios-live .view-ai-chat .message.user .bubble {
  font-size: 15px;
  font-weight: 450;
  line-height: 1.4;
  letter-spacing: 0;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-message-text :is(p + p, p + ul, p + ol, ul + p, ol + p) {
  margin-top: 8px;
}

body.bios-live .view-ai-chat .message:not(.user) .bios-message-text li + li {
  margin-top: 3px;
}

body.bios-live .view-ai-chat .chat-input {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

body.bios-live .pulse-card { display: none; }

body.bios-live .nav-item.future-locked,
body.bios-live.consent-accepted .nav-item.future-locked {
  padding-right: 38px;
  cursor: default;
}

body.bios-live.consent-accepted .nav-item.future-locked .nav-lock { display: grid; }

body.bios-live .nav-item.future-locked:hover {
  background: transparent;
  color: var(--muted);
}

body.bios-live .nav-item.future-locked:hover .nav-symbol {
  border-color: rgba(28, 54, 84, .055);
  background: rgba(239, 243, 248, .78);
  color: #6e7c90;
}

body.bios-live .nav-item.future-locked[data-tab] { cursor:pointer; }
body.bios-live .nav-item.future-locked[data-tab]:hover { background:#eef2f7; color:var(--premium-ink); }

.doctors-placeholder { min-height: 430px; }

.doctors-placeholder-mark {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(8, 124, 240, .1);
  border-radius: 28px;
  background: #f1f7fd;
  color: #1978d2;
}

.doctors-placeholder-mark svg {
  width: 46px;
  height: 46px;
  stroke-width: 1.45;
}

/* Keep the referral and balance pair compact and compositionally balanced. */
.home-benefit-card {
  height: 270px;
  min-height: 270px;
}

.home-referral-card {
  align-content: center;
  padding-top: 26px;
  padding-bottom: 26px;
}

.home-benefit-orbit {
  top: 5px;
  right: 8px;
}

.home-bonus-card { padding: 22px 26px; }

.home-bonus-card .home-benefit-icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 14px;
}

.home-bonus-card .home-benefit-icon svg {
  width: 21px;
  height: 21px;
}

.home-bonus-card strong {
  margin-top: 14px;
  font-size: 44px;
}

.home-bonus-card p {
  margin: 8px 0 10px;
  line-height: 1.4;
}

.home-bonus-stats {
  margin-bottom: 10px;
}

.home-bonus-stats span { padding-top: 8px; }

@media (max-width: 700px) {
  body.bios-live { --ui-title: 30px; --ui-section: 18px; }

  body.bios-live :is(.page-head, .topbar, .family-head, .create-protocol-head) {
    align-items: flex-start;
    margin-bottom: 22px;
  }

  body.bios-live .view-today .greeting h1 { font-size: 32px; }
  body.bios-live .view-today .ai-title h2 { font-size: 21px; }
  body.bios-live .view-today .home-editorial h2 { font-size: 34px; }

  .home-benefit-card { height: auto; }
  .home-referral-card { min-height: 360px; align-content: start; }
  .home-bonus-card { min-height: 250px; }
}

/*
 * One shared workspace shell for product sections. The AI chat intentionally
 * keeps its immersive full-height layout; every other active view sits on the
 * same calm grey substrate and rounded white content sheet as Today.
 */
body.bios-live .main:has(> .view.active:not(.view-ai-chat)) {
  padding: 18px 18px 18px 14px;
  background: #edf1f4;
}

body.bios-live .main > .view.active:not(.view-ai-chat) {
  width: 100%;
  min-height: calc(100vh - 36px);
  margin: 0;
  padding: 34px clamp(34px, 4.2vw, 72px) 56px;
  border: 1px solid rgba(28, 48, 72, .065);
  border-radius: 30px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(24, 44, 68, .025),
    0 22px 48px -42px rgba(24, 44, 68, .28);
}

body.bios-live .main > .view-today.active { padding-bottom: 108px; }

@media (max-width: 980px) {
  body.bios-live .main:has(> .view.active:not(.view-ai-chat)) {
    padding: 12px;
  }

  body.bios-live .main > .view.active:not(.view-ai-chat) {
    min-height: calc(100vh - 24px);
    padding: 28px 28px 56px;
    border-radius: 25px;
  }

  body.bios-live .main > .view-today.active { padding-bottom: 96px; }

  body.bios-live .view-today .home-article-grid { margin-bottom: 44px; }
}

@media (max-width: 700px) {
  body.bios-live .main:has(> .view.active:not(.view-ai-chat)) {
    padding: 8px;
  }

  body.bios-live .main > .view.active:not(.view-ai-chat) {
    min-height: calc(100vh - 16px);
    padding: 24px 16px;
    border-radius: 22px;
  }

  body.bios-live .view-today .home-article-grid { margin-bottom: 32px; }
}

/* Chat surface hierarchy: app substrate, white transcript, tinted composer dock. */
body.bios-live .main:has(> .view-ai-chat.active) {
  padding-right: 18px;
  padding-left: 14px;
  background: #f0f3f6;
}

body.bios-live .view-ai-chat.active {
  width: 100%;
  max-width: none;
}

body.bios-live .view-ai-chat .chat-experience,
body.bios-live .view-ai-chat .chat-thread {
  background: #fff;
}

body.bios-live .view-ai-chat .chat-bottom {
  background: linear-gradient(180deg, #f7f9fb 0%, #f4f7fa 100%);
  backdrop-filter: none;
}

body.bios-live .med-record-card.health-memory-card .med-record-art {
  right: 12px;
  bottom: -5px;
  width: 194px;
  height: 194px;
}

body.bios-live .med-record-card.health-memory-card .med-record-art img {
  transform: rotate(1deg);
}

body.bios-live .med-record-card.hypotheses .med-record-art img {
  filter: drop-shadow(0 20px 23px rgba(42, 70, 130, .18));
}

body.bios-live .med-record-card.analysis .med-record-art,
body.bios-live .med-record-card.diagnoses .med-record-art {
  right: -8px;
  bottom: -12px;
  width: 205px;
  height: 205px;
}

body.bios-live .med-record-card.analysis .med-record-art {
  right: 0;
  bottom: 10px;
  width: 170px;
  height: 170px;
  transform: rotate(-1deg);
}

body.bios-live .med-record-card.analysis .med-record-art img {
  display: block;
  filter: saturate(1.03) contrast(1.01) drop-shadow(0 14px 18px rgba(55, 72, 132, .12));
}

body.bios-live .med-record-card.diagnoses .med-record-art {
  right: -8px;
  bottom: -4px;
  width: 178px;
  height: 178px;
}

body.bios-live .med-record-card.examinations .med-record-art {
  right: -28px;
  bottom: -14px;
  width: 198px;
  height: 198px;
}

body.bios-live .med-record-card .med-record-art img {
  filter: saturate(1.06) contrast(1.02) drop-shadow(0 18px 22px rgba(42, 70, 130, .17));
}

/* Explain why an individual navigation module is locked. */
body.bios-live .sidebar { z-index: 12; }

body.bios-live .nav-lock[data-tooltip] {
  z-index: 4;
  cursor: default;
}

body.bios-live .nav-lock[data-tooltip]::before,
body.bios-live .nav-lock[data-tooltip]::after {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

body.bios-live.prototype-all-sections-open .nav-item[data-tab="family"] {
  display: flex !important;
}

/* Personal chat uses the Doctor overlay geometry while retaining its own chat layout. */
.personal-chat-sidebar-toggle { display: none; }

body.personal-chat-overlay-open { overflow: hidden; }
body.personal-chat-overlay-open .app { z-index: auto; }

body.personal-chat-overlay-open::before { content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(18, 35, 55, .16); backdrop-filter: blur(2px); animation: personal-chat-backdrop-in .32s ease both; }

body.personal-chat-overlay-open .view-ai-chat.active {
  position: fixed; inset: 12px; z-index: 80; display: flex; width: calc(100vw - 24px); max-width: calc(100vw - 24px);
  height: calc(100vh - 24px); min-height: 0; margin: 0; padding: 24px 34px 0; overflow: hidden;
  border: 1px solid rgba(24, 53, 82, .08); border-radius: 26px; background: #f0f3f6;
  box-shadow: 0 36px 100px -34px rgba(18, 38, 62, .62);
  animation: personal-chat-overlay-in .44s cubic-bezier(.22, 1, .36, 1) both;
}
body.personal-chat-overlay-open .view-ai-chat .page-head { position: relative; padding-left: 54px; }
body.personal-chat-overlay-open .view-ai-chat .reveal { opacity: 1; transform: none; animation: none; }
body.personal-chat-overlay-open .personal-chat-sidebar-toggle { position: absolute; left: 0; top: 2px; z-index: 2; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; border: 0; border-radius: 11px; background: transparent; color: #53667c; cursor: pointer; transition: background .18s ease, color .18s ease; }
body.personal-chat-overlay-open .personal-chat-sidebar-toggle:hover { background: rgba(255, 255, 255, .72); color: #15283f; }
body.personal-chat-overlay-open .personal-chat-sidebar-toggle svg { width: 19px; height: 19px; stroke-width: 1.6; }
body.personal-chat-overlay-closing .view-ai-chat.active { animation: personal-chat-overlay-out .42s cubic-bezier(.4, 0, .2, 1) both; }
body.personal-chat-overlay-closing::before { animation: personal-chat-backdrop-out .38s ease both; }
@keyframes personal-chat-overlay-in { from { opacity: .96; transform: translateX(104%); } to { opacity: 1; transform: translateX(0); } }
@keyframes personal-chat-overlay-out { from { opacity: 1; transform: translateX(0); } to { opacity: .96; transform: translateX(104%); } }
@keyframes personal-chat-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes personal-chat-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 900px) { body.personal-chat-overlay-open .view-ai-chat.active { inset: 8px; width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: calc(100vh - 16px); border-radius: 26px; } }
@media (max-width: 720px) { body.personal-chat-overlay-open .view-ai-chat.active { padding: 16px 12px 0; } body.personal-chat-overlay-open .view-ai-chat .page-head { padding-left: 48px; } }
@media (prefers-reduced-motion: reduce) { body.personal-chat-overlay-open .view-ai-chat.active, body.personal-chat-overlay-closing .view-ai-chat.active { animation: none !important; } }

body.bios-live .nav-lock[data-tooltip]::before {
  content: "";
  z-index: 1;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: #173451;
  transform: translate(5px, -50%) rotate(45deg);
}

body.bios-live .nav-lock[data-tooltip]::after {
  content: attr(data-tooltip);
  z-index: 2;
  width: max-content;
  max-width: 236px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: #173451;
  box-shadow: 0 14px 30px -16px rgba(15, 39, 65, .62);
  color: #fff;
  font: 560 12px/1.35 var(--ui-font-text);
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  transform: translate(7px, -50%);
}

body.bios-live .nav-lock[data-tooltip]:is(:hover, :focus)::before,
body.bios-live .nav-lock[data-tooltip]:is(:hover, :focus)::after {
  opacity: 1;
  visibility: visible;
}

body.bios-live .nav-lock[data-tooltip]:is(:hover, :focus)::before {
  transform: translate(0, -50%) rotate(45deg);
}

body.bios-live .nav-lock[data-tooltip]:is(:hover, :focus)::after {
  transform: translate(2px, -50%);
}

body.bios-live .nav-lock[data-tooltip]:focus-visible {
  outline: 2px solid rgba(8, 124, 240, .34);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  body.bios-live .nav-lock[data-tooltip]::before,
  body.bios-live .nav-lock[data-tooltip]::after {
    left: 50%;
    top: calc(100% + 9px);
  }

  body.bios-live .nav-lock[data-tooltip]::before {
    margin: -4px 0 0;
    transform: translate(-50%, 5px) rotate(45deg);
  }

  body.bios-live .nav-lock[data-tooltip]::after,
  body.bios-live .nav-lock[data-tooltip]:is(:hover, :focus)::after {
    transform: translate(-50%, 2px);
  }

  body.bios-live .nav-lock[data-tooltip]:is(:hover, :focus)::before {
    transform: translate(-50%, 0) rotate(45deg);
  }
}

/* Keep the home hero headline subordinate to the primary chat action. */
body.bios-live .view-today .home-editorial h2 {
  max-width: 560px;
  color: #0a1321;
  font-size: clamp(30px, 2.35vw, 35px);
  line-height: 1.06;
  letter-spacing: -.04em !important;
}

body.bios-live .view-today .home-editorial h2 span {
  color: inherit;
}

/* Profile — a complete personal command centre with an honest static fallback. */
body.bios-live .main > .view-profile.active {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: start;
  gap: 22px;
}

body.bios-live .view-profile > .page-head,
body.bios-live .view-profile > .profile-product-hero,
body.bios-live .view-profile > .profile-product-controls,
body.bios-live .view-profile > .profile-product-actions,
body.bios-live .view-profile > .profile-product-protection,
body.bios-live .view-profile > .bios-live-profile-panel {
  grid-column: 1 / -1;
}

body.bios-live .view-profile:not(:has(> .bios-live-profile-panel)) > .profile-hero,
body.bios-live .view-profile:not(:has(> .bios-live-profile-panel)) > .profile-section,
body.bios-live .view-profile:not(:has(> .bios-live-profile-panel)) > .protected-banner {
  display: grid !important;
  opacity: 1;
  animation: none;
}

body.bios-live .view-profile:has(> .bios-live-profile-panel) > :is(
  .profile-product-controls,
  .profile-product-actions
) {
  display: none;
}

body.bios-live .view-profile > .page-head {
  margin-bottom: 0;
}

body.bios-live .profile-product-hero {
  position: relative;
  min-height: 214px;
  margin: 0;
  padding: 30px 34px;
  overflow: hidden;
  border-color: rgba(31, 78, 122, .09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(104, 175, 242, .17), transparent 28%),
    radial-gradient(circle at 68% 110%, rgba(63, 168, 218, .09), transparent 42%),
    linear-gradient(135deg, #f8fbfe 0%, #eef6fd 55%, #f1f8fd 100%);
  box-shadow: 0 24px 52px -44px rgba(22, 58, 96, .48);
}

body.bios-live .profile-product-hero::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -96px;
  width: 330px;
  height: 210px;
  border: 1px solid rgba(8, 124, 240, .1);
  border-radius: 50%;
  transform: rotate(-9deg);
}

body.bios-live .profile-product-hero > * {
  position: relative;
  z-index: 1;
}

body.bios-live .profile-product-hero .profile-photo {
  width: 124px;
  height: 124px;
  padding: 7px;
  border: 1px solid rgba(8, 124, 240, .13);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 20px 38px -27px rgba(15, 86, 157, .5);
}

body.bios-live .profile-product-hero .profile-photo svg {
  width: 108px;
  height: 108px;
  border-radius: 50%;
}

body.bios-live .profile-product-hero .profile-photo-upload {
  overflow: visible;
}

body.bios-live .profile-photo-upload-preview {
  position: absolute;
  inset: 7px;
  z-index: 1;
  width: calc(100% - 14px);
  height: calc(100% - 14px);
  border-radius: 50%;
  object-fit: cover;
}

body.bios-live :is(.profile-photo-upload-button, .bios-profile-photo-button) {
  position: absolute;
  right: -3px;
  bottom: 3px;
  z-index: 3;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  padding: 0 0 2px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #167bd4;
  color: #fff;
  font-family: var(--ui-font-text);
  font-size: 22px;
  font-weight: 450;
  line-height: 1;
  box-shadow: 0 10px 22px -10px rgba(13, 96, 178, .7);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

body.bios-live :is(.profile-photo-upload-button, .bios-profile-photo-button):hover {
  background: #087cf0;
  box-shadow: 0 13px 25px -10px rgba(8, 124, 240, .78);
  transform: translateY(-1px);
}

body.bios-live :is(.profile-photo-upload-button, .bios-profile-photo-button):focus-visible {
  outline: 3px solid rgba(8, 124, 240, .23);
  outline-offset: 3px;
}

body.bios-live .profile-identity-kicker {
  display: block;
  margin-bottom: 8px;
  color: #1671ca;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.bios-live .profile-product-hero .profile-identity h2 {
  margin: 0 0 7px;
  color: #0c1727;
  font-size: clamp(27px, 2.4vw, 34px);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -.04em;
}

body.bios-live .profile-product-hero .profile-identity p {
  margin-bottom: 16px;
  color: #65758a;
  font-size: 13px;
  line-height: 1.45;
}

body.bios-live .profile-product-hero .profile-tags { gap: 7px; }

body.bios-live .profile-product-hero .profile-tag {
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(34, 75, 116, .07);
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  color: #41536b;
  font-size: 11px;
  font-weight: 620;
}

body.bios-live .profile-product-hero > .btn-soft {
  min-width: 142px;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgba(21, 76, 128, .12);
  background: rgba(255, 255, 255, .8);
  color: #173451;
}

body.bios-live .profile-product-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  opacity: 1;
  animation: none;
}

body.bios-live .profile-product-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(28, 48, 72, .075);
  border-radius: 19px;
  background: #f8fafc;
  box-shadow: 0 18px 34px -34px rgba(24, 52, 84, .42);
}

body.bios-live .profile-product-card--primary {
  background:
    radial-gradient(circle at 100% 0, rgba(94, 157, 240, .18), transparent 42%),
    linear-gradient(145deg, #edf6fe, #f7faff 66%);
  border-color: rgba(8, 124, 240, .13);
}

body.bios-live .profile-product-card--telegram {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-right: 118px;
  border-color: rgba(8, 124, 240, .13);
  background:
    radial-gradient(circle at 96% 8%, rgba(91, 183, 244, .22), transparent 42%),
    linear-gradient(145deg, #edf6fe, #f7faff 68%);
}

body.bios-live .profile-telegram-icon {
  position: absolute;
  z-index: -1;
  top: 32px;
  right: 8px;
  width: 122px;
  height: 122px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 18px rgba(31, 126, 211, .14));
}

body.bios-live .profile-product-card--telegram > strong {
  max-width: 190px;
  font-size: 18px;
}

body.bios-live .profile-product-card--telegram > p {
  max-width: 210px;
}

body.bios-live .profile-product-card--telegram > .profile-telegram-action {
  min-height: 34px;
  margin-top: auto;
  padding: 0 16px;
  border: 1px solid #1687f4;
  border-radius: 999px;
  background: #1687f4;
  color: #fff;
  cursor: pointer;
}

body.bios-live .profile-product-card--telegram[data-telegram-connected="true"] > .profile-telegram-action {
  border-color: rgba(30, 71, 110, .18);
  background: rgba(255, 255, 255, .78);
  color: #36516b;
}

body.bios-live .profile-product-label {
  margin-bottom: 18px;
  color: #708095;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .075em;
  text-transform: uppercase;
}

body.bios-live .profile-product-card > strong,
body.bios-live .profile-completeness strong {
  color: #102038;
  font-size: 21px;
  font-weight: 680;
  line-height: 1.12;
  letter-spacing: -.025em;
}

body.bios-live .profile-completeness {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

body.bios-live .profile-completeness span {
  color: #7b899a;
  font-size: 11px;
  font-weight: 600;
}

body.bios-live .profile-progress {
  width: 100%;
  height: 5px;
  margin: 13px 0 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(32, 76, 121, .08);
}

body.bios-live .profile-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1585ed, #53b6ee);
}

body.bios-live .profile-product-card p {
  margin: 10px 0 0;
  color: #738297;
  font-size: 11.5px;
  line-height: 1.45;
}

body.bios-live .profile-product-card > button {
  margin-top: auto;
  padding: 10px 0 0;
  border: 0;
  background: transparent;
  color: #126fc5;
  font-size: 11.5px;
  font-weight: 680;
}

body.bios-live .profile-consent-card {
  display: grid;
  min-height: 96px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.25fr) auto;
  grid-template-rows: auto auto;
  column-gap: 28px;
  align-items: center;
  order: -1;
  padding: 17px 22px;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 82% -80%, rgba(116, 220, 255, .42), transparent 42%),
    linear-gradient(112deg, #12558e 0%, #087cf0 62%, #21a2e5 100%);
  box-shadow: none;
}

body.bios-live .profile-consent-card .profile-product-label {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, .7);
}

body.bios-live .profile-consent-card > strong {
  grid-column: 1;
  grid-row: 2;
  color: #fff;
  font-size: 20px;
}

body.bios-live .profile-consent-card > p {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  line-height: 1.45;
}

body.bios-live .profile-consent-card > button {
  min-width: 176px;
  min-height: 42px;
  grid-column: 3;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  color: #1069b8;
  box-shadow: 0 13px 24px -18px rgba(0, 37, 83, .72);
}

body.bios-live .profile-consent-card > button:hover {
  background: #fff;
  color: #075da9;
}

body.bios-live .profile-section--personal,
body.bios-live .profile-section--lifestyle,
body.bios-live .profile-section--health {
  grid-column: 1 / -1;
}

body.bios-live .view-profile .profile-section {
  align-self: start;
  margin: 0;
}

body.bios-live .view-profile .profile-section > h2 {
  margin: 0 0 12px;
  color: #111d2d;
  font-size: 21px;
  font-weight: 660;
  letter-spacing: -.025em;
}

body.bios-live .view-profile .profile-table {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(28, 48, 72, .075);
  border-radius: 20px;
  background: #fbfcfd;
}

body.bios-live :is(.profile-section--personal, .profile-section--lifestyle) .profile-table {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.bios-live .profile-section--health .profile-table {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.bios-live .view-profile .profile-row {
  min-height: 76px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  row-gap: 5px;
  column-gap: 18px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid rgba(28, 48, 72, .06);
  background: transparent;
}

body.bios-live :is(.profile-section--personal, .profile-section--lifestyle) .profile-row:nth-child(odd) {
  border-right: 1px solid rgba(28, 48, 72, .06);
}

body.bios-live .profile-section--health .profile-row:nth-child(odd) {
  border-right: 1px solid rgba(28, 48, 72, .06);
}

body.bios-live .view-profile .profile-row .step-icon {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(8, 124, 240, .075);
  border-radius: 11px;
  background: #f0f6fb;
  color: #287fcf;
}

body.bios-live .view-profile .profile-row > b {
  align-self: end;
  color: #718196;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .005em;
}

body.bios-live .view-profile .profile-row > span {
  grid-column: 2;
  align-self: start;
  color: #102139;
  font-size: 13.5px;
  font-weight: 620;
  line-height: 1.3;
}

body.bios-live .view-profile .profile-row .edit-icon {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  align-self: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #92a0b0;
}

body.bios-live .view-profile .profile-row .edit-icon svg {
  width: 15px;
  height: 15px;
}

body.bios-live .profile-section--lifestyle .profile-row,
body.bios-live .profile-section--health .profile-row {
  min-height: 64px;
}

body.bios-live .profile-product-actions {
  display: grid;
  gap: 18px;
  padding: 25px;
  border: 1px solid rgba(28, 48, 72, .075);
  border-radius: 22px;
  background: #f7f9fb;
  opacity: 1;
  animation: none;
}

body.bios-live .profile-product-actions-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

body.bios-live .profile-product-actions-head span {
  color: #1671ca;
  font-size: 11.5px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.bios-live .profile-product-actions-head h2 {
  margin: 5px 0 0;
  color: #101c2c;
  font-size: 23px;
  font-weight: 660;
  letter-spacing: -.03em;
}

body.bios-live .profile-product-actions-head p {
  max-width: 410px;
  margin: 0;
  color: #778698;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

body.bios-live .profile-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

body.bios-live .profile-action-grid > button {
  position: relative;
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 5px;
  padding: 17px 42px 17px 17px;
  border: 1px solid rgba(28, 48, 72, .07);
  border-radius: 15px;
  background: #fff;
  color: #17273d;
  text-align: left;
}

body.bios-live .profile-action-grid span { font-size: 15px; font-weight: 670; }
body.bios-live .profile-action-grid small { color: #7d8b9b; font-size: 12px; line-height: 1.4; }
body.bios-live .profile-action-grid b {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #1978d2;
  font-size: 17px;
  font-weight: 500;
}

body.bios-live .profile-product-protection {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid rgba(37, 128, 201, .1);
  border-radius: 20px;
  background: linear-gradient(135deg, #f3f9fd, #f8fbfe);
}

body.bios-live .profile-product-protection h3 {
  font-size: 17px;
}

body.bios-live .profile-product-protection p {
  font-size: 14px;
  line-height: 1.5;
}

body.bios-live .profile-product-protection .btn-soft {
  font-size: 13.5px;
}

@media (max-width: 1100px) {
  body.bios-live .profile-product-controls,
  body.bios-live .profile-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  body.bios-live .profile-section--personal,
  body.bios-live .profile-section--lifestyle,
  body.bios-live .profile-section--health {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  body.bios-live .profile-consent-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body.bios-live .profile-consent-card > p { display: none; }
  body.bios-live .profile-consent-card > button { grid-column: 2; }
}

@media (max-width: 700px) {
  body.bios-live .main > .view-profile.active { gap: 18px; }
  body.bios-live .profile-product-hero { min-height: 0; padding: 24px 20px; }
  body.bios-live .profile-product-hero .profile-hero-main { grid-template-columns: 1fr; gap: 18px; }
  body.bios-live .profile-product-hero > .btn-soft { width: 100%; }
  body.bios-live .profile-product-controls,
  body.bios-live .profile-action-grid,
  body.bios-live .profile-section--personal .profile-table,
  body.bios-live .profile-section--lifestyle .profile-table,
  body.bios-live .profile-section--health .profile-table { grid-template-columns: 1fr; }
  body.bios-live .profile-section--personal .profile-row:nth-child(odd),
  body.bios-live .profile-section--lifestyle .profile-row:nth-child(odd),
  body.bios-live .profile-section--health .profile-row:nth-child(odd) { border-right: 0; }
  body.bios-live .profile-product-actions-head { align-items: flex-start; flex-direction: column; }
  body.bios-live .profile-product-actions-head p { text-align: left; }

  body.bios-live .profile-consent-card {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  body.bios-live .profile-consent-card > button {
    min-width: 0;
    width: 100%;
    grid-column: 1;
    grid-row: 3;
    margin-top: 14px;
  }
}

/* The authenticated profile uses the same product language with real API data. */
body.bios-live .bios-live-profile-panel {
  gap: 22px;
}

body.bios-live .bios-profile-hero-live.profile-product-hero {
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
}

body.bios-live .bios-profile-photo-wrap,
body.bios-live .bios-profile-photo-live {
  width: 118px;
  height: 118px;
}

body.bios-live .bios-profile-photo-live {
  border: 7px solid rgba(255, 255, 255, .86);
  background: linear-gradient(145deg, #d9eeff, #65a8e8);
  box-shadow: 0 20px 38px -27px rgba(15, 86, 157, .5);
}

body.bios-live .bios-profile-photo-button {
  right: -3px;
  bottom: 3px;
}

body.bios-live .bios-profile-identity-live h2 {
  margin: 0 0 7px;
  color: #0c1727;
  font-size: clamp(27px, 2.4vw, 34px);
  font-weight: 680;
  line-height: 1.05;
  letter-spacing: -.04em;
}

body.bios-live .bios-profile-identity-live p {
  color: #65758a;
  font-size: 13px;
}

body.bios-live .bios-profile-hero-live > .bios-profile-edit {
  min-width: 142px;
  min-height: 44px;
  margin: 0;
  border: 1px solid rgba(21, 76, 128, .12);
  background: rgba(255, 255, 255, .8);
  color: #173451;
}

body.bios-live .bios-profile-details-live {
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(28, 48, 72, .075);
  border-radius: 22px;
  background: #fbfcfd;
}

body.bios-live .bios-profile-heading { margin-bottom: 18px; }

body.bios-live .bios-profile-heading h2 {
  color: #111d2d;
  font-size: 20px;
  font-weight: 660;
  letter-spacing: -.025em;
}

body.bios-live .bios-profile-heading p {
  color: #778698;
  font-size: 12px;
}

body.bios-live .bios-profile-facts-list {
  overflow: hidden;
  border: 1px solid rgba(28, 48, 72, .065);
  border-radius: 16px;
  background: #fff;
}

body.bios-live .bios-profile-facts-list .bios-live-row {
  min-height: 68px;
  padding: 13px 16px;
  border-color: rgba(28, 48, 72, .06);
}

body.bios-live .bios-profile-facts-list b {
  color: #718196;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .005em;
}

body.bios-live .bios-profile-facts-list span {
  color: #102139;
  font-size: 13.5px;
  font-weight: 620;
}

body.bios-live .bios-profile-form {
  padding: 4px 0 0;
}

body.bios-live .bios-profile-form input,
body.bios-live .bios-profile-form select {
  border-color: rgba(28, 48, 72, .11);
  border-radius: 12px;
}

body.bios-live .bios-profile-product-protection {
  display: grid;
  margin: 0;
}

/* Settings descendants — inherit the clean row language of the parent screen. */
body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-data-export,
  .view-account-delete
) {
  --settings-child-border: rgba(28, 48, 72, .085);
  --settings-child-divider: rgba(28, 48, 72, .07);
  --settings-child-hover: #f5f9fc;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-data-export,
  .view-account-delete
) .privacy-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-data-export,
  .view-account-delete
) .privacy-main {
  gap: 24px;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-data-export,
  .view-account-delete
) :is(.privacy-list, .backup-card, .export-panel, .export-summary, .export-delivery, .download-row, .danger-box) {
  border-color: var(--settings-child-border);
  background: #fff;
  box-shadow: none;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-data-export,
  .view-account-delete
) :is(.privacy-list, .backup-card, .export-panel, .export-summary, .export-delivery) {
  border-radius: 20px;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-account-delete
) .privacy-row {
  min-height: 78px;
  gap: 18px;
  padding: 14px 20px;
  border-color: var(--settings-child-divider);
  background: #fff;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-account-delete
) .privacy-row[data-open-view]:hover {
  background: var(--settings-child-hover);
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-data-export,
  .view-account-delete
) :is(.privacy-row, .backup-row, .export-row) .step-icon {
  border: 1px solid rgba(8, 124, 240, .075);
  background: #f0f6fb;
  color: #287fcf;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-data-export,
  .view-account-delete
) .step-icon svg {
  width: 19px;
  height: 19px;
  overflow: visible;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(27, 104, 177, .08));
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-data-export,
  .view-account-delete
) .privacy-card {
  position: static;
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.8fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 34px;
  row-gap: 9px;
  align-items: start;
  padding: 26px 28px;
  border-color: var(--settings-child-border);
  border-radius: 20px;
  background: #f7fafc;
  text-align: left;
  box-shadow: none;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > :is(.privacy-shield, .backup-shield, .delete-shield) {
  display: none;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > h2 {
  grid-column: 1;
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > p {
  grid-column: 1;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > :is(.privacy-points, .backup-points, .delete-faq) {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 16px 24px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > :is(.link, .security-tip) {
  grid-column: 1;
  margin: 10px 0 0;
}

/* The privacy overview keeps a useful right rail, rebuilt as a compact summary. */
body.bios-live .main > .view-privacy .privacy-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  overflow: visible;
}

body.bios-live .main > .view-privacy .privacy-card {
  position: sticky;
  top: 24px;
  display: flex;
  min-height: 0;
  height: max-content;
  align-self: start;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 24px;
  border-radius: 20px;
  background: #f7fafc;
  text-align: left;
  z-index: 2;
}

body.bios-live .main > .view-privacy.active {
  overflow: visible;
}

body.bios-live .main > .view-privacy .privacy-card > .privacy-shield {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 0 16px;
  color: #287fcf;
  stroke-width: 1.7;
}

body.bios-live .main > .view-privacy .privacy-card > h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.25;
}

body.bios-live .main > .view-privacy .privacy-card > p {
  margin: 0 0 20px;
  font-size: 12.5px;
  line-height: 1.55;
}

body.bios-live .main > .view-privacy .privacy-card > .privacy-points {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 14px;
  margin: 0;
}

body.bios-live .main > .view-privacy .privacy-card .privacy-point {
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
}

body.bios-live .main > .view-privacy .privacy-card > .link {
  margin: 22px 0 0;
}

/* All settings descendants keep a compact, useful right rail. */
body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  overflow: visible;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
).active {
  overflow: visible;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card {
  position: sticky;
  top: 24px;
  display: flex;
  min-height: 0;
  height: max-content;
  align-self: start;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 23px;
  border: 1px solid rgba(78, 139, 197, .13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 7%, rgba(218, 238, 255, .7), transparent 31%),
    linear-gradient(145deg, #f9fcfe 0%, #f3f8fc 100%);
  color: #17283f;
  text-align: left;
  box-shadow: 0 24px 54px -46px rgba(26, 72, 116, .48), inset 0 1px 0 rgba(255, 255, 255, .9);
  z-index: 2;
}

body.bios-live .main > :is(
  .view-privacy,
  .view-collected-data,
  .view-data-use,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card {
  margin-top: 38px;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > svg:first-child {
  display: block;
  width: 54px;
  height: 54px;
  margin: 0 0 16px;
  color: #287fcf;
  stroke-width: 1.7;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > h2 {
  margin: 0 0 9px;
  color: #17283f;
  font-size: 17px;
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -.02em !important;
  text-align: left;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > p {
  margin: 0 0 19px;
  color: #6f8094;
  font-size: 12px;
  line-height: 1.55;
  text-align: left;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > :is(.privacy-points, .backup-points, .delete-faq) {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card :is(.privacy-point, .backup-point) {
  gap: 10px;
  color: #65778c;
  font-size: 11.5px;
  line-height: 1.42;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card :is(.privacy-point, .backup-point) .mini-icon {
  width: 23px;
  height: 23px;
  border-radius: 8px;
  background: rgba(225, 239, 251, .82);
  color: #287fcf;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card :is(.privacy-point, .backup-point) b {
  color: #344b65;
  font-size: 11.5px;
  font-weight: 680;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card :is(.privacy-point, .backup-point) p {
  margin-top: 3px;
  color: #74859a;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

body.bios-live .main > :is(
  .view-collected-data,
  .view-data-use,
  .view-access-history,
  .view-permissions,
  .view-grant-access,
  .view-security,
  .view-backup,
  .view-account-delete
) .privacy-card > :is(.link, .security-tip) {
  width: 100%;
  margin: 20px 0 0;
}

body.bios-live .main > .view-account-delete .privacy-card {
  border-color: rgba(188, 84, 91, .13);
  background:
    radial-gradient(circle at 88% 7%, rgba(255, 231, 232, .75), transparent 31%),
    linear-gradient(145deg, #fffdfd 0%, #fdf7f7 100%);
}

body.bios-live .main > .view-account-delete .privacy-card > svg:first-child {
  color: #b65860;
}

body.bios-live .main > .view-account-delete .privacy-card .delete-faq-item {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid rgba(111, 80, 83, .075);
}

body.bios-live .main > .view-account-delete .privacy-card .delete-faq-item:first-child {
  padding-top: 0;
  border-top: 0;
}

body.bios-live .main > .view-account-delete .privacy-card .delete-faq-item > .chev {
  display: none;
}

body.bios-live .main > .view-data-export .export-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
  overflow: visible;
}

body.bios-live .main > .view-data-export.active {
  overflow: visible;
}

body.bios-live .view-data-export .export-layout > aside {
  position: sticky;
  top: 24px;
  display: flex;
  align-self: start;
  flex-direction: column;
  gap: 14px;
}

body.bios-live .view-data-export :is(.export-summary, .export-delivery) {
  border-radius: 20px;
  box-shadow: 0 24px 54px -46px rgba(26, 72, 116, .48);
}

@media (max-width: 900px) {
  body.bios-live .main > :is(
    .view-privacy,
    .view-collected-data,
    .view-data-use,
    .view-access-history,
    .view-permissions,
    .view-grant-access,
    .view-security,
    .view-backup,
    .view-account-delete
  ) .privacy-layout,
  body.bios-live .main > .view-data-export .export-layout {
    grid-template-columns: 1fr;
  }

  body.bios-live .main > :is(
    .view-collected-data,
    .view-data-use,
    .view-access-history,
    .view-permissions,
    .view-grant-access,
    .view-security,
    .view-backup,
    .view-account-delete
  ) .privacy-card,
  body.bios-live .view-data-export .export-layout > aside {
    position: static;
    margin-top: 0;
  }
}

body.bios-live .view-data-export .export-layout > aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.bios-live .view-data-export :is(.export-summary, .export-delivery) {
  min-height: 0;
  margin: 0;
}

body.bios-live .view-data-export .export-row,
body.bios-live .view-backup .backup-row {
  min-height: 72px;
  padding: 13px 18px;
  border-color: var(--settings-child-divider);
  background: #fff;
}

body.bios-live .view-data-export .format-card {
  border-color: var(--settings-child-border);
  background: #fff;
  box-shadow: none;
}

body.bios-live .view-data-export .format-card.active {
  border-color: rgba(21, 120, 210, .34);
  background: #f3f8fd;
}

@media (max-width: 900px) {
  body.bios-live .main > :is(
    .view-privacy,
    .view-collected-data,
    .view-data-use,
    .view-access-history,
    .view-permissions,
    .view-grant-access,
    .view-security,
    .view-backup,
    .view-account-delete
  ) .privacy-card,
  body.bios-live .view-data-export .export-layout > aside {
    grid-template-columns: 1fr;
  }

  body.bios-live .main > .view-privacy .privacy-layout {
    grid-template-columns: 1fr;
  }

  body.bios-live .main > .view-privacy .privacy-card {
    position: static;
  }

  body.bios-live .main > :is(
    .view-privacy,
    .view-collected-data,
    .view-data-use,
    .view-access-history,
    .view-permissions,
    .view-grant-access,
    .view-security,
    .view-backup,
    .view-account-delete
  ) .privacy-card > :is(.privacy-points, .backup-points, .delete-faq) {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  body.bios-live .main > :is(
    .view-privacy,
    .view-collected-data,
    .view-data-use,
    .view-access-history,
    .view-permissions,
    .view-grant-access,
    .view-security,
    .view-backup,
    .view-account-delete
  ) .privacy-card > :is(.privacy-points, .backup-points, .delete-faq) {
    grid-template-columns: 1fr;
  }
}

/*
 * Desktop application shell: keep the chrome anchored to the viewport and let
 * only the workspace scroll. This also removes Safari's page-level rubber-band
 * overscroll at the top and bottom of long sections.
 */
html:has(body.bios-live),
body.bios-live {
  overscroll-behavior-y: none;
}

@media (min-width: 981px) {
  html:has(body.bios-live),
  body.bios-live {
    height: 100%;
    overflow: hidden;
  }

  body.bios-live .app {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  body.bios-live .sidebar {
    height: 100dvh;
    overflow: visible;
  }

  body.bios-live .main {
    height: 100dvh;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    scrollbar-gutter: stable;
  }
}

/*
 * Keep the ink overhang of tightly tracked display type inside clipped panels.
 * Inter BIOS has a small negative left overhang on several Cyrillic capitals
 * (notably «Ч»), which otherwise loses its rounded edge at the container boundary.
 */
body.bios-live :is(
  .greeting h1,
  .ai-title h2,
  .page-title h1,
  .privacy-head h1,
  .family-title h1,
  .consent-review-title h1,
  .success-card h1
) {
  padding-inline-start: .1em;
}

@media (max-width: 700px) {
  body.bios-live .bios-profile-hero-live.profile-product-hero {
    grid-template-columns: 1fr;
  }

  body.bios-live .bios-profile-hero-live > .bios-profile-edit { width: 100%; }
}

/* AI chat — rebuilt as a focused, readable conversation workspace. */
body.personal-chat-overlay-open::before {
  background: rgba(25, 42, 62, .2);
  backdrop-filter: blur(4px);
}

/* The transcript owns scrolling while the full-screen chat is open. */
body.personal-chat-overlay-open .main {
  overflow: hidden !important;
  scrollbar-gutter: auto;
  scrollbar-width: none;
}

body.personal-chat-overlay-open .main::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.personal-chat-overlay-open .view-ai-chat.active {
  inset: 14px;
  width: calc(100vw - 28px);
  max-width: calc(100vw - 28px);
  height: calc(100dvh - 28px);
  padding: 20px 26px 0;
  border-color: rgba(29, 48, 72, .08);
  border-radius: 30px;
  background: #f1f3f5;
  box-shadow: 0 38px 110px -42px rgba(12, 31, 54, .62);
}

body.personal-chat-overlay-open .view-ai-chat .page-head {
  width: min(100%, 1430px);
  min-height: 66px;
  margin: 0 0 14px auto;
  padding: 0;
  box-sizing: border-box;
}

body.personal-chat-overlay-open .view-ai-chat .chat-title-cluster {
  margin-left: 50px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-identity-mark {
  display: none;
}

body.personal-chat-overlay-open .personal-chat-sidebar-toggle {
  left: 0;
  top: 50%;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(27, 48, 74, .09);
  border-radius: 50%;
  background: rgba(255, 255, 255, .76);
  color: #53667c;
  box-shadow: 0 8px 20px -15px rgba(22, 42, 67, .55);
  transform: translateY(-50%);
}

body.personal-chat-overlay-open .personal-chat-sidebar-toggle:hover {
  background: #fff;
  color: #087cf0;
}

body.personal-chat-overlay-open .personal-chat-sidebar-toggle svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

body.personal-chat-overlay-open .view-ai-chat .chat-title-cluster { gap: 12px; }

body.personal-chat-overlay-open .view-ai-chat .chat-identity-mark {
  width: 46px;
  height: 46px;
  flex-basis: 46px;
  border-radius: 15px;
  box-shadow: 0 14px 26px -22px rgba(6, 94, 188, .72), 0 2px 8px rgba(24, 42, 72, .04);
}

body.personal-chat-overlay-open .view-ai-chat .chat-identity-mark::before {
  inset: 4px;
  border-radius: 12px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-identity-mark img {
  width: 29px;
  height: 29px;
}

body.personal-chat-overlay-open .view-ai-chat .page-title h1 {
  margin-bottom: 4px;
  font-size: 28px;
  font-weight: 680;
}

body.personal-chat-overlay-open .view-ai-chat .chat-title-meta {
  gap: 7px 10px;
  font-size: 11.5px;
}

body.personal-chat-overlay-open .view-ai-chat .topbar-right { gap: 10px; }

body.personal-chat-overlay-open .view-ai-chat .bell,
body.personal-chat-overlay-open .view-ai-chat .avatar {
  width: 38px;
  height: 38px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-workspace {
  display: grid;
  width: min(100%, 1430px);
  min-height: 0;
  flex: 1;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  justify-content: stretch;
  margin: 0 0 18px auto;
}

body.personal-chat-overlay-open .view-ai-chat .chat-experience {
  width: 100%;
  height: 100%;
  margin: 0;
  border-color: rgba(27, 48, 74, .08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% -20%, rgba(86, 171, 255, .045), transparent 42%),
    #fff;
  box-shadow: 0 26px 70px -54px rgba(18, 43, 78, .54), 0 8px 24px -22px rgba(18, 43, 78, .22);
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-self: start;
  overflow: hidden;
  padding: 22px 20px 18px;
  border: 1px solid rgba(31, 52, 78, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 50px -44px rgba(23, 43, 68, .44);
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights::after {
  display: none;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 2px 18px;
  border-bottom: 1px solid rgba(76, 99, 147, .09);
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-mark {
  display: none;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-mark svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-head span {
  display: block;
  margin-bottom: 2px;
  color: #78869b;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em !important;
  text-transform: none;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-head h2 {
  margin: 0;
  color: #142238;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em !important;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insight-section {
  position: relative;
  z-index: 1;
  padding-top: 18px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insight-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 11px;
  color: #59687d;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0 !important;
  text-transform: none;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insight-dot {
  display: none;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insight-dot.violet {
  background: #8576ee;
  box-shadow: 0 0 0 4px rgba(133, 118, 238, .1);
}

body.personal-chat-overlay-open .view-ai-chat .chat-hypothesis {
  padding: 11px 11px 10px;
  border: 1px solid rgba(50, 73, 101, .065);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
}

body.personal-chat-overlay-open .view-ai-chat .chat-hypothesis + .chat-hypothesis { margin-top: 7px; }

body.personal-chat-overlay-open .view-ai-chat .chat-hypothesis-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-hypothesis-top strong {
  color: #25344a;
  font-size: 11.5px;
  font-weight: 680;
}

body.personal-chat-overlay-open .view-ai-chat .chat-hypothesis-top span {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(66, 177, 120, .1);
  color: #2b8659;
  font-size: 8.5px;
  font-weight: 700;
}

body.personal-chat-overlay-open .view-ai-chat .chat-hypothesis-top span.medium {
  background: rgba(109, 121, 145, .09);
  color: #68758a;
}

body.personal-chat-overlay-open .view-ai-chat .chat-hypothesis p {
  margin: 6px 0 0;
  color: #68768a;
  font-size: 10.5px;
  line-height: 1.45;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-content {
  position: relative;
  z-index: 1;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insight-section + .chat-insight-section {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(76, 99, 147, .075);
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-item {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 13px;
  border: 1px solid rgba(31, 52, 78, .09);
  border-radius: 15px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-item + .chat-context-item {
  margin-top: 9px;
  border-top: 1px solid rgba(31, 52, 78, .09);
  border-radius: 15px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-item:hover {
  border-color: rgba(68, 109, 207, .2);
  background: #fff;
  box-shadow: 0 12px 25px -23px rgba(28, 53, 86, .5);
  transform: translateY(-1px);
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-item:focus-visible {
  outline: 2px solid rgba(8, 124, 240, .32);
  outline-offset: 2px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-icon {
  display: none;
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-item.observation .chat-context-icon {
  background: rgba(255, 255, 255, .64);
  color: #3d8fd8;
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.7;
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-item strong,
body.personal-chat-overlay-open .view-ai-chat .chat-context-item small { display: block; }

body.personal-chat-overlay-open .view-ai-chat .chat-context-item strong {
  color: #26354a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-item small {
  margin-top: 4px;
  color: #7a8798;
  font-size: 11.5px;
  font-weight: 480;
  line-height: 1.35;
}

body.personal-chat-overlay-open .view-ai-chat .chat-context-arrow {
  width: 18px;
  height: 18px;
  color: #a0aabb;
  stroke-width: 1.8;
}

body.personal-chat-overlay-open .view-ai-chat .chat-next-steps ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.personal-chat-overlay-open .view-ai-chat .chat-next-steps li {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-next-steps li > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 8px;
  background: rgba(8, 124, 240, .08);
  color: #0874df;
  font-size: 9px;
  font-weight: 760;
}

body.personal-chat-overlay-open .view-ai-chat .chat-next-steps p {
  margin: 3px 0 0;
  color: #35445a;
  font-size: 10.5px;
  font-weight: 530;
  line-height: 1.38;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-link {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  border: 1px solid rgba(8, 124, 240, .13);
  border-radius: 13px;
  background: rgba(238, 247, 255, .78);
  color: #0874df;
  font: inherit;
  font-size: 10.5px;
  font-weight: 680;
  cursor: pointer;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-empty {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 15px 3px;
  text-align: center;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-empty-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #f1f8ff, #f0efff);
  color: #6877ec;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-empty-icon svg {
  width: 23px;
  height: 23px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-empty h3 {
  margin: 0;
  color: #243349;
  font-size: 14px;
  font-weight: 680;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-empty p {
  margin: 7px 4px 14px;
  color: #778499;
  font-size: 10px;
  line-height: 1.45;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-link svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}

body.personal-chat-overlay-open .view-ai-chat .chat-insights-note {
  position: relative;
  z-index: 1;
  margin: 16px 3px 0;
  color: #8a96a7;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: left;
}

body.personal-chat-overlay-open .view-ai-chat .chat-day {
  width: min(calc(100% - 52px), 840px);
  padding: 15px 0 7px;
  font-size: 9.5px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-thread {
  gap: 20px;
  padding: 14px max(26px, calc((100% - 840px) / 2)) 24px;
  scroll-padding-bottom: 24px;
  scrollbar-color: rgba(120, 139, 162, .42) transparent;
}

body.personal-chat-overlay-open .view-ai-chat .chat-thread::-webkit-scrollbar { width: 6px; }
body.personal-chat-overlay-open .view-ai-chat .chat-thread::-webkit-scrollbar-track { background: transparent; }
body.personal-chat-overlay-open .view-ai-chat .chat-thread::-webkit-scrollbar-thumb {
  border: 1px solid transparent;
  background: rgba(120, 139, 162, .38) padding-box;
  box-shadow: none;
}

body.personal-chat-overlay-open .view-ai-chat .message:not(.user) {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  width: min(100%, 780px);
  max-width: 780px;
}

body.personal-chat-overlay-open .view-ai-chat .message:not(.user) > .message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background-size: 22px 22px;
  box-shadow: 0 12px 22px -19px rgba(7, 103, 200, .6), 0 2px 7px rgba(24, 42, 72, .04);
}

body.personal-chat-overlay-open .view-ai-chat .message:not(.user) .bios-message-column {
  width: min(100%, 734px);
}

body.personal-chat-overlay-open .view-ai-chat .message:not(.user) .bubble {
  width: fit-content;
  max-width: 100%;
  padding: 14px 16px 11px;
  border-color: rgba(31, 53, 78, .065);
  border-radius: 7px 18px 18px 18px;
  background: #f5f7fa;
  box-shadow: 0 13px 28px -29px rgba(24, 42, 72, .5), inset 0 1px 0 rgba(255, 255, 255, .82);
}

body.personal-chat-overlay-open .view-ai-chat .message:not(.user) .bubble::before {
  margin-bottom: 5px;
  font-size: 9.5px;
  letter-spacing: .09em !important;
}

body.personal-chat-overlay-open .view-ai-chat .message:not(.user) .bios-message-text,
body.personal-chat-overlay-open .view-ai-chat .message:not(.user) .bubble {
  color: #243246;
  font-size: 14px;
  font-weight: 420;
  line-height: 1.5;
}

body.personal-chat-overlay-open .view-ai-chat .message:not(.user) .bubble-time {
  margin-top: 6px;
  font-size: 10px;
  text-align: right;
}

body.personal-chat-overlay-open .view-ai-chat .message.user {
  max-width: min(66%, 520px);
}

body.personal-chat-overlay-open .view-ai-chat .message.user .bubble {
  padding: 11px 14px 9px;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(145deg, #168bfa 0%, #087cf0 68%, #0873dc 100%);
  font-size: 14px;
  font-weight: 480;
  line-height: 1.42;
  box-shadow: 0 16px 34px -25px rgba(5, 91, 181, .78), inset 0 1px 0 rgba(255, 255, 255, .18);
}

body.personal-chat-overlay-open .view-ai-chat .message.user .bubble-time {
  margin-top: 4px;
  font-size: 10px;
}

body.personal-chat-overlay-open .view-ai-chat .bubble-checks {
  display: none;
}

body.personal-chat-overlay-open .view-ai-chat .chat-bottom {
  padding: 10px max(26px, calc((100% - 840px) / 2)) 12px;
  border-top-color: rgba(29, 51, 76, .065);
  background: rgba(249, 251, 253, .96);
  box-shadow: 0 -16px 34px -34px rgba(24, 42, 72, .5);
}

body.personal-chat-overlay-open .view-ai-chat .chat-composer {
  min-height: 54px;
  padding: 6px 7px;
  gap: 9px;
  border: 1px solid rgba(29, 51, 76, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px -29px rgba(24, 42, 72, .5), 0 2px 7px rgba(24, 42, 72, .025);
}

body.personal-chat-overlay-open .view-ai-chat .composer-plus,
body.personal-chat-overlay-open .view-ai-chat .composer-send {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

body.personal-chat-overlay-open .view-ai-chat .chat-input { font-size: 14px; }

body.personal-chat-overlay-open .view-ai-chat .chat-disclaimer {
  margin-top: 7px;
  font-size: 9.5px;
}

@media (max-width: 900px) {
  body.personal-chat-overlay-open .view-ai-chat.active {
    inset: 8px;
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    padding: 16px 14px 0;
    border-radius: 24px;
  }

  body.personal-chat-overlay-open .view-ai-chat .page-head { padding-left: 44px; }
  body.personal-chat-overlay-open .personal-chat-sidebar-toggle { left: 0; }
  body.personal-chat-overlay-open .view-ai-chat .chat-title-cluster { margin-left: 0; }
  body.personal-chat-overlay-open .view-ai-chat .chat-workspace {
    display: flex;
    margin-bottom: 8px;
  }
  body.personal-chat-overlay-open .view-ai-chat .chat-insights { display: none; }
  body.personal-chat-overlay-open .view-ai-chat .chat-thread { padding-inline: 16px; }
  body.personal-chat-overlay-open .view-ai-chat .chat-bottom { padding-inline: 12px; }
}

@media (max-width: 620px) {
  body.personal-chat-overlay-open .view-ai-chat .page-title h1 { font-size: 23px; }
  body.personal-chat-overlay-open .view-ai-chat .chat-title-meta > span:last-child,
  body.personal-chat-overlay-open .view-ai-chat .topbar-right .avatar { display: none; }
  body.personal-chat-overlay-open .view-ai-chat .chat-identity-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }
  body.personal-chat-overlay-open .view-ai-chat .message.user { max-width: 86%; }
  body.personal-chat-overlay-open .view-ai-chat .message:not(.user) {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
  }
  body.personal-chat-overlay-open .view-ai-chat .message:not(.user) > .message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background-size: 20px 20px;
  }
}

/* Alternative prototype: AI chat behaves like a regular nested LK section. */
body.bios-embedded-chat .view-ai-chat .chat-workspace {
  display: grid;
  width: min(100%, 1440px);
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
  align-items: start;
  margin-inline: auto;
}

body.bios-embedded-chat .view-ai-chat .personal-chat-sidebar-toggle {
  display: none;
}

body.bios-embedded-chat .view-ai-chat .chat-experience {
  grid-column: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-stack {
  display: flex;
  min-width: 0;
  grid-column: 2;
  grid-row: 1;
  flex-direction: column;
  gap: 12px;
  margin-top: 44px;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-stack .chat-insights {
  grid-column: auto;
  grid-row: auto;
}

body.bios-embedded-chat .view-ai-chat .chat-side-disclaimer {
  display: block;
  margin-top: 10px;
  padding: 0 8px;
  color: #8490a1;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

body.bios-embedded-chat .view-ai-chat .chat-side-disclaimer svg {
  width: 13px;
  height: 13px;
  margin-right: 6px;
  vertical-align: -2px;
}

body.bios-embedded-chat .view-ai-chat .page-head {
  width: min(100%, 1180px);
  margin-inline: auto;
}

body.bios-embedded-chat .main:has(> .view-ai-chat.active) {
  padding: 18px;
  background: #fff;
}

body.bios-embedded-chat .view-ai-chat .chat-insights {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  flex-direction: column;
  padding: 24px 20px 20px;
  border: 1px solid rgba(31, 52, 78, .1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 22px 50px -44px rgba(23, 43, 68, .44);
}

body.bios-embedded-chat .view-ai-chat .chat-insights::after,
body.bios-embedded-chat .view-ai-chat .chat-insights-mark,
body.bios-embedded-chat .view-ai-chat .chat-context-icon,
body.bios-embedded-chat .view-ai-chat .chat-insight-dot {
  display: none;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head {
  padding: 0 4px 20px;
  border-bottom: 1px solid rgba(31, 52, 78, .09);
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head span {
  display: block;
  margin-bottom: 5px;
  color: #7a889d;
  font-size: 11px;
  font-weight: 600;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head h2 {
  margin: 0;
  color: #142238;
  font-size: 20px;
  font-weight: 670;
  line-height: 1.15;
  letter-spacing: -.035em !important;
}

body.bios-embedded-chat .view-ai-chat .chat-insight-section {
  padding-top: 20px;
}

body.bios-embedded-chat .view-ai-chat .chat-insight-section + .chat-insight-section {
  margin-top: 16px;
  border-top: 1px solid rgba(31, 52, 78, .08);
}

body.bios-embedded-chat .view-ai-chat .chat-insight-label {
  margin: 0 3px 13px;
  color: #5d6c81;
  font-size: 13px;
  font-weight: 650;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 17px 15px;
  border: 1px solid rgba(31, 52, 78, .11);
  border-radius: 17px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item + .chat-context-item {
  margin-top: 10px;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item:hover {
  border-color: rgba(61, 112, 218, .22);
  box-shadow: 0 14px 28px -25px rgba(28, 53, 86, .52);
  transform: translateY(-1px);
}

body.bios-embedded-chat .view-ai-chat .chat-context-item:focus-visible {
  outline: 2px solid rgba(8, 124, 240, .3);
  outline-offset: 2px;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item strong,
body.bios-embedded-chat .view-ai-chat .chat-context-item small {
  display: block;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item strong {
  color: #26354a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.25;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item small {
  margin-top: 5px;
  color: #7d8a9d;
  font-size: 11.5px;
  font-weight: 470;
  line-height: 1.4;
}

body.bios-embedded-chat .view-ai-chat .chat-context-arrow {
  width: 20px;
  height: 20px;
  color: #a4afbf;
  stroke-width: 1.8;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-note {
  margin: 20px 4px 0;
  color: #8794a7;
  font-size: 10.5px;
  line-height: 1.5;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-empty {
  padding: 28px 5px 8px;
  text-align: center;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-empty[hidden] { display: none; }

body.bios-embedded-chat .view-ai-chat .bubble-checks { display: none; }

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble-time { text-align: right; }

/* Embedded chat concept: a calm dark workspace with a contextual right rail. */
body.bios-embedded-chat .view-ai-chat.active {
  height: calc(100dvh - 72px);
  min-height: 680px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 28px;
  background: #18191b;
  box-shadow: 0 30px 70px -52px rgba(8, 13, 20, .72);
}

body.bios-embedded-chat .view-ai-chat .page-head {
  width: 100%;
  margin: 0 0 18px;
}

body.bios-embedded-chat .view-ai-chat .chat-title-cluster { gap: 13px; }

body.bios-embedded-chat .view-ai-chat .chat-identity-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-color: rgba(255, 255, 255, .09);
  border-radius: 14px;
  background: #242629;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .chat-identity-mark::before { display: none; }
body.bios-embedded-chat .view-ai-chat .chat-identity-mark img { width: 27px; height: 27px; }

body.bios-embedded-chat .view-ai-chat .page-title h1 {
  color: #f5f6f8;
  font-size: 28px;
  font-weight: 650;
}

body.bios-embedded-chat .view-ai-chat .chat-online { color: #76d49d; }
body.bios-embedded-chat .view-ai-chat .chat-online i {
  background: #53c987;
  box-shadow: 0 0 0 4px rgba(83, 201, 135, .11);
}

body.bios-embedded-chat .view-ai-chat .chat-workspace {
  position: relative;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  padding-top: 8px;
  margin: 0;
}

body.bios-embedded-chat .view-ai-chat .chat-workspace::before {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  right: -18px;
  left: -18px;
  height: 8px;
  pointer-events: none;
  border-bottom: 1px solid rgba(31, 52, 78, .09);
  background: #fff;
}

body.bios-embedded-chat .view-ai-chat .page-head {
  display: none;
}

body.bios-embedded-chat .view-ai-chat .chat-experience {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 22px;
  background: #1c1d1f;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .chat-day {
  color: #777c84;
}

body.bios-embedded-chat .view-ai-chat .chat-day::before,
body.bios-embedded-chat .view-ai-chat .chat-day::after {
  background: rgba(255, 255, 255, .07);
}

body.bios-embedded-chat .view-ai-chat .chat-thread {
  background: #1c1d1f;
  scrollbar-color: rgba(150, 156, 166, .35) transparent;
}

body.bios-embedded-chat .view-ai-chat .chat-thread::-webkit-scrollbar-track { background: transparent; }
body.bios-embedded-chat .view-ai-chat .chat-thread::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  background: rgba(150, 156, 166, .34) padding-box;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) > .message-avatar {
  border-color: rgba(255, 255, 255, .085);
  background-color: #292b2e;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble {
  border-color: rgba(255, 255, 255, .075);
  background: #252629;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble::before { color: #74b7ff; }

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bios-message-text,
body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble {
  color: #e7e9ed;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble-time { color: #81868f; }

body.bios-embedded-chat .view-ai-chat .message.user .bubble {
  background: #297fe5;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .chat-bottom {
  border-top-color: rgba(255, 255, 255, .07);
  background: #202124;
  box-shadow: none;
  backdrop-filter: none;
}

body.bios-embedded-chat .view-ai-chat .chat-composer {
  border-color: rgba(255, 255, 255, .1);
  background: #2a2b2e;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .chat-composer:focus-within {
  border-color: rgba(100, 170, 245, .42);
  box-shadow: 0 0 0 3px rgba(50, 130, 220, .08);
}

body.bios-embedded-chat .view-ai-chat .composer-plus {
  border-color: rgba(255, 255, 255, .08);
  background: #34363a;
  color: #b1b6bf;
}

body.bios-embedded-chat .view-ai-chat .chat-input { color: #f0f1f3; }
body.bios-embedded-chat .view-ai-chat .chat-input::placeholder { color: #8e939c; }
body.bios-embedded-chat .view-ai-chat .chat-disclaimer { color: #737983; }

body.bios-embedded-chat .view-ai-chat .chat-insights {
  height: fit-content;
  padding: 20px 17px 17px;
  border-color: rgba(255, 255, 255, .075);
  border-radius: 22px;
  background: #27282a;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head {
  border-bottom-color: rgba(255, 255, 255, .075);
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head span { color: #92969e; }
body.bios-embedded-chat .view-ai-chat .chat-insights-head h2 {
  color: #f1f2f4;
  font-size: 22px;
}

body.bios-embedded-chat .view-ai-chat .chat-insight-section + .chat-insight-section {
  border-top-color: rgba(255, 255, 255, .07);
}

body.bios-embedded-chat .view-ai-chat .chat-insight-label { color: #b9bdc5; }

body.bios-embedded-chat .view-ai-chat .chat-context-item {
  border-color: rgba(255, 255, 255, .075);
  background: #2d2e31;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item:hover {
  border-color: rgba(112, 174, 240, .28);
  background: #323438;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item strong { color: #eceef1; }
body.bios-embedded-chat .view-ai-chat .chat-context-item small { color: #9b9fa8; }
body.bios-embedded-chat .view-ai-chat .chat-context-arrow { color: #747982; }
body.bios-embedded-chat .view-ai-chat .chat-insights-note { color: #858a93; }

/* Keep the Codex-like composition, but use the light BIOS Personal language. */
body.bios-embedded-chat .view-ai-chat.active {
  width: 100%;
  max-width: none;
  height: calc(100dvh - 72px);
  box-sizing: border-box;
  padding-right: 0;
  padding-left: 0;
  border-color: transparent;
  background: #fff;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .chat-identity-mark {
  border-color: rgba(8, 124, 240, .13);
  background: #fff;
}

body.bios-embedded-chat .view-ai-chat .page-title h1 { color: #111a2b; }
body.bios-embedded-chat .view-ai-chat .chat-online { color: #287c50; }

body.bios-embedded-chat .view-ai-chat .chat-experience {
  position: relative;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.bios-embedded-chat .view-ai-chat .chat-experience::before {
  display: none;
}

body.bios-embedded-chat .view-ai-chat .chat-day { color: #8994a5; }

body.bios-embedded-chat .view-ai-chat .chat-day::before,
body.bios-embedded-chat .view-ai-chat .chat-day::after {
  background: rgba(31, 52, 78, .08);
}

body.bios-embedded-chat .view-ai-chat .chat-thread {
  width: calc(100% + 22px);
  margin-left: -22px;
  margin-bottom: 0;
  background: transparent;
  direction: rtl;
  padding-right: max(28px, calc((100% - 1260px) / 2));
  padding-left: calc(22px + max(28px, calc((100% - 1260px) / 2)));
  scrollbar-color: rgba(120, 139, 162, .42) transparent;
}

body.bios-embedded-chat .view-ai-chat .chat-thread > * {
  max-width: 100%;
  transform: none;
  direction: ltr;
}

body.bios-embedded-chat .view-ai-chat .chat-thread > .message:not(.user) {
  width: min(calc(100% - 84px), 860px);
  max-width: 860px;
  transform: none;
  align-self: flex-end;
}

body.bios-embedded-chat .view-ai-chat .chat-thread > .message.user {
  width: fit-content;
  max-width: min(68%, 640px);
  margin-right: 0;
  margin-left: 0;
  align-self: flex-start;
}

body.bios-embedded-chat .view-ai-chat .chat-thread::-webkit-scrollbar-thumb {
  background: rgba(120, 139, 162, .38) padding-box;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) > .message-avatar {
  display: none;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble {
  border-color: rgba(31, 52, 78, .07);
  background: #f5f7fa;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble::before { color: #0872da; }

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bios-message-text,
body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble {
  color: #243246;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble-time { color: #929dab; }

body.bios-embedded-chat .view-ai-chat .message.user .bubble {
  background: linear-gradient(145deg, #168bfa 0%, #087cf0 68%, #0873dc 100%);
}

body.bios-embedded-chat .view-ai-chat .chat-bottom {
  position: relative;
  isolation: isolate;
  z-index: 4;
  margin-top: -12px;
  padding-top: 0;
  border-top-color: transparent;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.bios-embedded-chat .view-ai-chat .chat-bottom::before {
  display: none;
}

body.bios-embedded-chat .view-ai-chat .chat-composer {
  border-color: rgba(31, 52, 78, .11);
  background: rgba(255, 255, 255, .34);
  box-shadow: 0 15px 34px -25px rgba(24, 44, 70, .48), inset 0 1px 0 rgba(255, 255, 255, .9);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}

body.bios-embedded-chat .view-ai-chat .composer-plus {
  border-color: rgba(31, 52, 78, .09);
  background: #f2f5f8;
  color: #5d6d82;
}

body.bios-embedded-chat .view-ai-chat .chat-input { color: #18263a; }
body.bios-embedded-chat .view-ai-chat .chat-input::placeholder { color: #929cab; }
body.bios-embedded-chat .view-ai-chat .chat-disclaimer { color: #8490a1; }

body.bios-embedded-chat .view-ai-chat .chat-insights {
  padding-bottom: 32px;
  border-color: rgba(31, 52, 78, .1);
  background: #f8fafc;
  box-shadow: 0 22px 50px -44px rgba(23, 43, 68, .44);
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head {
  border-bottom-color: rgba(31, 52, 78, .09);
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head span { color: #7a889d; }
body.bios-embedded-chat .view-ai-chat .chat-insights-head h2 { color: #142238; }

body.bios-embedded-chat .view-ai-chat .chat-insight-section + .chat-insight-section {
  border-top-color: rgba(31, 52, 78, .08);
  border-top: 0;
}

body.bios-embedded-chat .view-ai-chat .chat-insight-label { color: #5d6c81; }

body.bios-embedded-chat .view-ai-chat .chat-context-item {
  border-color: rgba(31, 52, 78, .11);
  background: #fff;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item:hover {
  border-color: rgba(61, 112, 218, .22);
  background: #fff;
  box-shadow: 0 14px 28px -25px rgba(28, 53, 86, .52);
}

body.bios-embedded-chat .view-ai-chat .chat-context-item strong { color: #26354a; }
body.bios-embedded-chat .view-ai-chat .chat-context-item small { color: #7d8a9d; }
body.bios-embedded-chat .view-ai-chat .chat-context-arrow { color: #a4afbf; }
body.bios-embedded-chat .view-ai-chat .chat-insights-note { color: #8794a7; }

body.bios-embedded-chat .view-ai-chat .chat-insight-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}

body.bios-embedded-chat .view-ai-chat .chat-insight-dot.violet {
  background: #8b7cf6;
  box-shadow: 0 0 0 3px rgba(139, 124, 246, .1);
}

body.bios-embedded-chat .view-ai-chat .chat-insight-dot.blue {
  background: #55a8f5;
  box-shadow: 0 0 0 3px rgba(85, 168, 245, .1);
}

/* Compact collapsible BIOS summary rail. */
body.bios-embedded-chat .view-ai-chat .chat-workspace {
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
}

body.bios-embedded-chat .view-ai-chat .chat-insights {
  padding: 16px 14px 20px;
  border-radius: 20px;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head {
  padding: 0 3px 14px;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head h2 { font-size: 18px; }

body.bios-embedded-chat .view-ai-chat .chat-insight-section { padding-top: 7px; }

body.bios-embedded-chat .view-ai-chat .chat-insight-section + .chat-insight-section {
  margin-top: 7px;
  padding-top: 0;
}

body.bios-embedded-chat .view-ai-chat .chat-insight-label {
  display: none;
  width: 100%;
  align-items: center;
  margin: 0;
  padding: 4px 3px 10px;
  border: 0;
  background: transparent;
  color: #5d6c81;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

body.bios-embedded-chat .view-ai-chat .chat-insight-label::after {
  content: "⌃";
  margin-left: auto;
  color: #9aa7b8;
  font-size: 13px;
  line-height: 1;
  transition: transform .18s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-insight-section.is-collapsed .chat-insight-label::after {
  transform: rotate(180deg);
}

body.bios-embedded-chat .view-ai-chat .chat-insight-section.is-collapsed .chat-context-item {
  display: none;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item {
  grid-template-columns: minmax(0, 1fr) 16px;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 13px;
}

body.bios-embedded-chat .view-ai-chat .chat-context-item + .chat-context-item { margin-top: 7px; }
body.bios-embedded-chat .view-ai-chat .chat-context-item strong { font-size: 11.5px; line-height: 1.35; }
body.bios-embedded-chat .view-ai-chat .chat-context-item small { margin-top: 3px; font-size: 10.5px; }
body.bios-embedded-chat .view-ai-chat .chat-context-arrow { width: 16px; height: 16px; }

body.bios-embedded-chat .view-ai-chat .chat-bottom {
  margin-top: -22px;
  padding-top: 22px;
  background: transparent;
  border-top: 0;
  pointer-events: none;
}

body.bios-embedded-chat .view-ai-chat .chat-composer {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: auto;
  transition: background .2s ease, backdrop-filter .2s ease, -webkit-backdrop-filter .2s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-experience.is-scrolling .chat-composer {
  background: rgba(246, 250, 253, .28);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

body.bios-embedded-chat .view-ai-chat .bubble-time {
  display: none !important;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble-time {
  display: none !important;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble::before {
  display: none;
}

/* Unified message geometry and vertically centered text. */
body.bios-embedded-chat .view-ai-chat .message .bubble {
  box-sizing: border-box;
  border-radius: 20px;
}

body.bios-embedded-chat .view-ai-chat .message.user .bubble {
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 15px 20px;
  border-radius: 20px;
  line-height: 1.45;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble {
  padding: 20px;
  border-radius: 20px;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble > :first-child {
  margin-top: 0;
}

body.bios-embedded-chat .view-ai-chat .message:not(.user) .bubble > :last-child {
  margin-bottom: 0;
}

/* Composer floats directly over the conversation: no footer surface around it. */
body.bios-embedded-chat .view-ai-chat .chat-experience {
  position: relative;
}

body.bios-embedded-chat .view-ai-chat .chat-thread {
  padding-bottom: 18px;
  scroll-padding-bottom: 96px;
}

body.bios-embedded-chat .view-ai-chat .chat-thread > .message:last-child {
  margin-bottom: 94px;
}

body.bios-embedded-chat .view-ai-chat .chat-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  margin: 0;
  padding: 0 max(28px, calc((100% - 1260px) / 2)) 14px;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

body.bios-embedded-chat .view-ai-chat .chat-composer {
  border-color: rgba(129, 153, 178, .24);
  background: rgba(248, 251, 254, .16);
  box-shadow: 0 16px 36px -28px rgba(30, 52, 76, .52), inset 0 1px 0 rgba(255, 255, 255, .62);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  pointer-events: auto;
}

body.bios-embedded-chat .view-ai-chat .chat-experience.is-scrolling .chat-composer {
  background: rgba(240, 247, 252, .24);
  backdrop-filter: blur(24px) saturate(155%);
  -webkit-backdrop-filter: blur(24px) saturate(155%);
}

body.bios-embedded-chat .view-ai-chat .chat-hypotheses-link {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 3px 18px;
  padding: 10px 16px;
  border: 1px solid rgba(8, 124, 240, .18);
  border-radius: 14px;
  background: rgba(8, 124, 240, .07);
  color: #087cf0;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-hypotheses-link:hover {
  border-color: rgba(8, 124, 240, .28);
  background: rgba(8, 124, 240, .1);
  transform: translateY(-1px);
}

body.bios-embedded-chat .view-ai-chat .chat-hypotheses-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 1.8;
}

/* The chat scrollbar sits at the left edge of the conversation, next to the LK sidebar. */
body.bios-embedded-chat .view-ai-chat .chat-thread {
  scrollbar-color: transparent transparent;
}

body.bios-embedded-chat .view-ai-chat .chat-thread::-webkit-scrollbar-track {
  background: transparent;
}

body.bios-embedded-chat .view-ai-chat .chat-thread::-webkit-scrollbar-thumb {
  background: transparent padding-box;
  transition: background-color .2s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-thread.is-scrolling {
  scrollbar-color: rgba(174, 195, 214, .82) transparent;
}

body.bios-embedded-chat .view-ai-chat .chat-thread.is-scrolling::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(174, 195, 214, .82) padding-box;
}

body.bios-embedded-chat .view-ai-chat .chat-scroll-indicator {
  position: absolute;
  z-index: 8;
  top: 12px;
  left: -14px;
  width: 5px;
  height: 72px;
  pointer-events: none;
  border-radius: 999px;
  background: rgba(174, 195, 214, .88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .55);
  opacity: 0;
  transform: translateY(0);
  transition: opacity .18s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-scroll-indicator.is-visible {
  opacity: 1;
}

/* Medical record cards: soft cloudy blue background from the reference. */
body.bios-embedded-chat .view-data .med-record-card {
  border-color: rgba(151, 179, 211, .28);
  background:
    radial-gradient(ellipse at 7% 48%, rgba(181, 207, 237, .2) 0%, rgba(218, 232, 247, .1) 30%, transparent 54%),
    radial-gradient(ellipse at 92% 44%, rgba(207, 225, 244, .5) 0%, rgba(229, 238, 249, .2) 36%, transparent 62%),
    linear-gradient(112deg, #edf4fc 0%, #fbfcfe 46%, #f6f9fd 58%, #e8f1fb 100%);
  box-shadow: 0 18px 40px -30px rgba(75, 111, 153, .34), inset 0 1px 0 rgba(255, 255, 255, .86);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}

body.bios-embedded-chat .view-data .med-record-card[data-med-target]:hover {
  border-color: rgba(112, 164, 218, .34);
  background:
    radial-gradient(ellipse at 7% 48%, rgba(178, 210, 242, .23) 0%, rgba(215, 233, 249, .12) 30%, transparent 54%),
    radial-gradient(ellipse at 92% 44%, rgba(184, 215, 245, .58) 0%, rgba(219, 237, 251, .26) 36%, transparent 62%),
    linear-gradient(112deg, #edf6fe 0%, #f8fbfe 46%, #f1f8fe 58%, #dfedfb 100%);
}

body.bios-embedded-chat .view-data .med-record-card::after {
  background: radial-gradient(ellipse at 56% 38%, rgba(255, 255, 255, .7), transparent 48%);
}

/* AI hypotheses rail: open spacing instead of a divider, with a pale-blue surface. */
body.bios-embedded-chat .view-ai-chat .chat-insights {
  background: linear-gradient(145deg, #f8fbff 0%, #f1f7fd 52%, #eaf4fc 100%);
}

body.bios-embedded-chat .view-ai-chat .chat-insights-head {
  padding-bottom: 25px;
  border-bottom: 0;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-content {
  padding-top: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 52, 78, .1);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
}

/* AI hypotheses are one readable list, not a stack of detached tabs. */
body.bios-embedded-chat .view-ai-chat .chat-insights-content .chat-insight-section,
body.bios-embedded-chat .view-ai-chat .chat-insights-content .chat-insight-section + .chat-insight-section {
  margin: 0;
  padding: 0;
  border: 0;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-content .chat-context-item {
  min-height: 62px;
  margin: 0;
  padding: 14px 15px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-content .chat-context-item + .chat-context-item,
body.bios-embedded-chat .view-ai-chat .chat-insights-content .chat-insight-section + .chat-insight-section > .chat-insight-label + .chat-context-item {
  margin-top: 0;
  border-top: 1px solid rgba(31, 52, 78, .085);
}

body.bios-embedded-chat .view-ai-chat .chat-insights-content .chat-context-item:hover {
  border-color: rgba(31, 52, 78, .085);
  background: rgba(232, 242, 252, .62);
  box-shadow: none;
  transform: none;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-content .chat-context-icon {
  display: none;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-content .chat-context-item strong {
  font-size: 12.5px;
  line-height: 1.38;
}

body.bios-embedded-chat .view-ai-chat .chat-workspace {
  transition: grid-template-columns .3s ease, gap .3s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-insights-stack {
  transition: opacity .22s ease, transform .3s ease, visibility .3s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-experience {
  opacity: 1;
  animation: none;
  transform: translateX(0);
  transition: transform .3s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-rail-toggle {
  position: absolute;
  z-index: 12;
  top: 78px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(118, 145, 174, .2);
  border-radius: 10px;
  background: rgba(255, 255, 255, .56);
  color: #71829a;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: right .3s ease, background .18s ease, color .18s ease, transform .18s ease;
}

body.bios-embedded-chat .view-ai-chat .chat-rail-toggle:hover {
  background: rgba(225, 240, 253, .84);
  color: #3983c8;
}

body.bios-embedded-chat .view-ai-chat .chat-rail-toggle svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.7;
}

body.bios-embedded-chat .view-ai-chat .chat-workspace.insights-collapsed {
  height: 100%;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: stretch;
  justify-content: initial;
  gap: 18px;
}

body.bios-embedded-chat .view-ai-chat .chat-workspace.insights-collapsed .chat-insights-stack {
  visibility: hidden;
  opacity: 0;
  transform: translateX(calc(100% + 24px));
  pointer-events: none;
}

body.bios-embedded-chat .view-ai-chat .chat-workspace.insights-collapsed .chat-experience {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transform: translateX(184px) !important;
}

body.bios-embedded-chat .view-ai-chat .chat-workspace.insights-collapsed .chat-thread {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

body.bios-embedded-chat .view-ai-chat .chat-workspace.insights-collapsed .chat-rail-toggle {
  right: 0;
}

body.bios-embedded-chat .view-ai-chat .chat-workspace.insights-collapsed .chat-rail-toggle svg {
  transform: scaleX(-1);
}

/* Doctors section after consent. */
.doctors-ready { display: none; }
body.consent-accepted .view-doctors .doctors-placeholder { display: none; }
body.consent-accepted .view-doctors .doctors-ready { display: grid; }

.doctors-ready {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 20px;
}

.doctors-card {
  min-height: 360px;
  padding: 30px;
  border: 1px solid rgba(31, 52, 78, .09);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 58px -48px rgba(32, 59, 91, .4);
}

.doctors-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.doctors-card-head h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.doctors-card-head span { color: #8794a7; font-size: 12px; }

.doctors-show-all {
  display: none;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(31, 52, 78, .1);
  border-radius: 999px;
  background: #fff;
  color: #237bc7;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.doctors-card.has-doctors .doctors-show-all { display: inline-flex; }
.doctor-cases-panel.has-cases .doctors-show-all { display: inline-flex; }
.doctors-show-all span { color: #8694a6; font-size: 11px; font-weight: 650; }
.doctors-show-all svg { width: 15px; height: 15px; transition: transform .18s ease; }
.doctors-show-all:hover { border-color: rgba(35, 123, 199, .24); background: #f6fbff; }
.doctors-show-all:hover svg { transform: translateX(2px); }

.doctors-state-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f2f6fa;
}

.doctors-state-switch button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7a889b;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.doctors-state-switch button.active {
  background: #fff;
  color: #213148;
  box-shadow: 0 6px 18px -14px rgba(30, 53, 80, .55);
}

.doctors-preview-switch {
  opacity: .72;
  transform: scale(.9);
  transform-origin: right center;
}
.doctors-preview-switch:hover,
.doctors-preview-switch:focus-within { opacity: 1; }

.doctors-empty {
  display: grid;
  min-height: 270px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
}

.doctors-empty-mark,
.doctors-access-mark {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(73, 148, 222, .14);
  border-radius: 20px;
  background: #f0f7fd;
  color: #2683d8;
}

.doctors-empty-mark svg,
.doctors-access-mark svg { width: 30px; height: 30px; stroke-width: 1.55; }
.doctors-empty h3 { margin: 18px 0 7px; font-size: 18px; }
.doctors-empty p { max-width: 360px; margin: 0; color: #7f8da1; font-size: 13px; line-height: 1.55; }

.doctors-list { display: none; gap: 11px; margin-top: 24px; }
.doctors-card.has-doctors .doctors-empty { display: none; }
.doctors-card.has-doctors .doctors-list {
  display: grid;
  overflow: visible;
}
.doctors-card.has-doctors .doctors-list > .doctor-person-card:nth-child(n+4) { display: none; }

.doctor-person-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 15px;
  border: 1px solid rgba(31, 52, 78, .09);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #fbfdff 62%, #f1f7fd 100%);
}

.doctor-person-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(83, 151, 220, .14);
  border-radius: 17px;
  background: linear-gradient(145deg, #eaf5fd, #dcecf9);
  color: #257cc8;
  font-size: 14px;
  font-weight: 750;
}

.doctor-person-main { min-width: 0; }
.doctor-person-main strong { display: block; color: #1e2d42; font-size: 16px; line-height: 1.3; }
.doctor-person-main p { margin: 4px 0 0; color: #78879b; font-size: 13px; line-height: 1.45; }
.doctor-person-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; color: #8b97a8; font-size: 11.5px; }
.doctor-person-meta .active { color: #27845a; }
.doctor-person-meta .active::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #43bc7d; vertical-align: 1px; }
.doctor-person-meta .pending { color: #a4721f; }
.doctor-person-meta .pending::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #dfa43c; vertical-align: 1px; }

.doctor-person-menu {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(31,52,78,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.72);
  color: #718096;
  cursor: pointer;
}
.doctor-person-menu svg { width: 17px; height: 17px; }
.doctor-person-menu[aria-expanded="true"] { border-color: rgba(35,123,199,.22); background: #eef7ff; color: #187ccf; }

.doctor-actions-menu {
  position: fixed;
  z-index: 1350;
  display: none;
  width: 224px;
  padding: 6px;
  border: 1px solid rgba(31,52,78,.1);
  border-radius: 15px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 22px 54px -28px rgba(25,48,75,.48);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.doctor-actions-menu.active { display: grid; }
.doctor-actions-menu button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #405269;
  font: inherit;
  font-size: 12px;
  font-weight: 630;
  text-align: left;
  cursor: pointer;
}
.doctor-actions-menu button:hover { background: #f2f7fb; color: #176fba; }
.doctor-actions-menu button.danger { color: #bc5561; }
.doctor-actions-menu button.danger:hover { background: #fff3f4; color: #a83d49; }
.doctor-actions-menu svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doctor-actions-menu-separator { height: 1px; margin: 4px 7px; background: #edf1f4; }

.doctor-action-modal {
  position: fixed;
  z-index: 1360;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30,45,65,.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}
.doctor-action-modal.active { opacity: 1; visibility: visible; }
.doctor-action-dialog { width: min(100%, 470px); max-height: calc(100vh - 48px); overflow-y: auto; padding: 27px; border: 1px solid rgba(31,52,78,.1); border-radius: 24px; background: #fff; box-shadow: 0 32px 90px -42px rgba(21,43,70,.58); }
.doctor-action-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.doctor-action-kicker { margin: 0 0 7px; color: #2380ce; font-size: 10px; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }
.doctor-action-dialog h2 { margin: 0; color: #1e2e43; font-size: 22px; line-height: 1.25; letter-spacing: -.03em; }
.doctor-action-close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(31,52,78,.1); border-radius: 11px; background: #f7f9fc; color: #68788c; cursor: pointer; }
.doctor-action-close svg { width: 17px; height: 17px; }
.doctor-action-body { margin-top: 21px; color: #6f7f93; font-size: 12.5px; line-height: 1.6; }
.doctor-action-body > p { margin: 0; }
.doctor-action-options { display: grid; gap: 8px; margin-top: 14px; }
.doctor-action-option { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 13px; border: 1px solid #e2e8ee; border-radius: 13px; background: #f9fbfd; color: #405269; font-weight: 650; }
.doctor-action-option input { width: 16px; height: 16px; accent-color: #1983dc; }
.doctor-action-periods { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 15px; }
.doctor-action-period { min-height: 42px; border: 1px solid #dfe7ee; border-radius: 12px; background: #fff; color: #62748a; font: inherit; font-size: 11.5px; font-weight: 680; cursor: pointer; }
.doctor-action-period.active { border-color: #a9d0ef; background: #edf7ff; color: #1478c9; }
.doctor-action-custom-trigger { display: inline-flex; min-height: 34px; align-items: center; gap: 7px; margin-top: 10px; padding: 0 3px; border: 0; border-radius: 8px; background: transparent; color: #2380ce; font: inherit; font-size: 11.5px; font-weight: 680; outline: none; cursor: pointer; }
.doctor-action-custom-trigger svg { width: 16px; height: 16px; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doctor-action-custom-trigger:hover { color: #116fb9; }
.doctor-action-custom-trigger.active { color: #116fb9; }
.doctor-action-custom-trigger:focus-visible { box-shadow: 0 0 0 3px rgba(35,128,206,.12); }
.doctor-range-calendar { margin-top: 8px; padding: 13px; border: 1px solid #dbe6ee; border-radius: 16px; background: #f9fbfd; }
.doctor-range-calendar[hidden] { display: none; }
.doctor-range-calendar-head { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; margin-bottom: 9px; }
.doctor-range-calendar-head strong { color: #35485f; font-size: 12px; text-align: center; text-transform: capitalize; }
.doctor-range-calendar-nav { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #6f8195; cursor: pointer; }
.doctor-range-calendar-nav:hover { background: #eaf3fa; color: #1778c7; }
.doctor-range-calendar-nav svg { width: 15px; height: 15px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.doctor-range-weekdays,.doctor-range-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.doctor-range-weekdays span { padding: 3px 0 6px; color: #9aa6b4; font-size: 9px; font-weight: 700; text-align: center; text-transform: uppercase; }
.doctor-range-day { position: relative; z-index: 1; min-width: 0; height: 32px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #4f6176; font: inherit; font-size: 10.5px; cursor: pointer; }
.doctor-range-day:hover:not(:disabled) { background: #e8f3fb; color: #1778c7; }
.doctor-range-day.outside { color: #b7c0ca; }
.doctor-range-day:disabled { color: #ccd3da; cursor: default; }
.doctor-range-day.in-range { border-radius: 0; background: #e8f4fd; color: #2875b8; }
.doctor-range-day.range-start { border-radius: 9px 0 0 9px; background: #2386d8; color: #fff; font-weight: 750; }
.doctor-range-day.range-end { border-radius: 0 9px 9px 0; background: #2386d8; color: #fff; font-weight: 750; }
.doctor-range-day.range-start.range-end { border-radius: 9px; }
.doctor-range-summary { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid #e3eaf0; }
.doctor-range-summary div { min-width: 0; }
.doctor-range-summary small { display: block; margin-bottom: 2px; color: #99a5b3; font-size: 8.5px; font-weight: 680; text-transform: uppercase; }
.doctor-range-summary b { display: block; overflow: hidden; color: #40536a; font-size: 10.5px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.doctor-range-summary svg { width: 14px; height: 14px; color: #9aa7b5; }
.doctor-action-warning { padding: 14px 15px; border-radius: 14px; background: #fff6f5; color: #8f5660; }
.doctor-action-history { display: grid; gap: 0; margin-top: 2px; }
.doctor-action-history div { padding: 13px 0; border-top: 1px solid #edf1f4; }
.doctor-action-history div:first-child { border-top: 0; padding-top: 0; }
.doctor-action-history b { display: block; color: #405269; font-size: 12px; }
.doctor-action-history span { display: block; margin-top: 3px; color: #8996a6; font-size: 11px; }
.doctor-action-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }
.doctor-action-cancel,.doctor-action-confirm { min-height: 42px; padding: 0 16px; border: 0; border-radius: 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.doctor-action-cancel { background: #f1f4f7; color: #65758a; }
.doctor-action-confirm { background: #1785e6; color: #fff; }
.doctor-action-confirm:disabled { opacity: .45; cursor: default; }
.doctor-action-confirm.danger { background: #c6535f; }
.doctor-menu-toast { position: fixed; right: 24px; bottom: 24px; z-index: 1380; max-width: min(390px,calc(100vw - 48px)); padding: 13px 17px; border-radius: 13px; background: #23354b; color: #fff; box-shadow: 0 18px 45px -26px rgba(20,38,58,.7); font-size: 12px; font-weight: 620; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .18s ease; }
.doctor-menu-toast.show { opacity: 1; transform: translateY(0); }

.doctors-directory-head { align-items: flex-end; }
.doctors-directory-head .back-link { margin-bottom: 20px; }
.doctors-directory-head-actions { display: flex; align-items: center; gap: 10px; }
.doctors-directory-access {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #1785e6;
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 720;
  cursor: pointer;
}
.doctors-directory-catalog {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid #d7e3ed;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #31506c;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.doctors-directory {
  padding: 26px;
  border: 1px solid rgba(31, 52, 78, .09);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 58px -48px rgba(32, 59, 91, .4);
}
.doctors-directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.doctors-directory-toolbar h2 { margin: 0; color: #1d2d42; font-size: 20px; letter-spacing: -.025em; }
.doctors-directory-toolbar p { margin: 5px 0 0; color: #8794a7; font-size: 12px; }
.doctors-directory-filters {
  display: inline-flex;
  gap: 5px;
  padding: 5px;
  border-radius: 15px;
  background: #f1f5f9;
}
.doctors-directory-filter {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #748398;
  font: inherit;
  font-size: 11.5px;
  font-weight: 680;
  white-space: nowrap;
  cursor: pointer;
}
.doctors-directory-filter span { margin-left: 5px; color: #9aa6b5; font-size: 10px; }
.doctors-directory-filter.active { background: #fff; color: #1f79c8; box-shadow: 0 6px 18px -14px rgba(30, 53, 80, .55); }
.doctors-directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doctors-directory-list .doctor-person-card { min-height: 96px; padding: 18px; }
.doctors-directory-list .doctor-person-card[hidden] { display: none; }
.doctors-directory-empty { padding: 54px 24px; border: 1px dashed #dce6ee; border-radius: 18px; color: #8492a4; text-align: center; font-size: 13px; }
.doctor-cases-directory-list { display:grid; }
.doctor-cases-directory-list .doctor-case-row[hidden] { display:none; }
.doctor-cases-directory-list .doctor-case-row:first-child { border-top:0; }
.doctor-cases-directory-empty { margin-top:4px; }

.doctors-access-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #f8fbff 0%, #edf6fd 58%, #e4f1fb 100%);
}

.doctors-access-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  pointer-events: none;
}

.doctors-access-card > * { position: relative; z-index: 1; }
.doctors-access-card h2 { margin: 24px 0 10px; font-size: 25px; line-height: 1.15; letter-spacing: -.035em; }
.doctors-access-card p { margin: 0; color: #738399; font-size: 13px; line-height: 1.55; }

.doctors-access-open {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: #087cf0;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.doctors-access-open svg { width: 17px; height: 17px; }
.doctors-access-catalog {
  display: inline-flex;
  margin-top: 14px;
  color: #2e658e;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.doctors-access-catalog:hover,.doctors-directory-catalog:hover { color: #087cf0; }

.doctor-cases-panel {
  display: block;
  grid-column: 1 / -1;
  padding: 27px 30px 18px;
  border: 1px solid rgba(31, 52, 78, .09);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 58px -48px rgba(32, 59, 91, .34);
}

.patient-appointments-panel{grid-column:1/-1;padding:28px 30px 18px;border:1px solid rgba(31,52,78,.09);border-radius:24px;background:#fff;box-shadow:0 24px 58px -48px rgba(32,59,91,.34)}
.patient-appointments-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding-bottom:19px}
.patient-appointments-head>div:first-child>span{display:block;margin-bottom:6px;color:#2580ce;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.patient-appointments-head h2{margin:0;color:#1c2d43;font-size:21px;letter-spacing:-.025em}
.patient-appointments-head p{margin:6px 0 0;color:#8492a4;font-size:12px}
.patient-appointments-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:13px;background:#f1f5f8}
.patient-appointments-tabs button{min-height:34px;padding:0 13px;border:0;border-radius:10px;background:transparent;color:#75859a;font:inherit;font-size:11.5px;font-weight:700;cursor:pointer}
.patient-appointments-tabs button.active{background:#fff;color:#1979ca;box-shadow:0 6px 18px -14px rgba(30,53,80,.55)}
.patient-appointments-list{display:grid;border-top:1px solid #edf1f4}
.patient-appointment-card{display:grid;grid-template-columns:minmax(155px,.36fr) minmax(0,1fr) auto;align-items:center;gap:24px;padding:21px 2px;border-bottom:1px solid #edf1f4}
.patient-appointment-card:last-child{border-bottom:0}
.patient-appointment-card>time{display:grid;gap:5px;color:#1f344e;font-style:normal}
.patient-appointment-card>time b{font-size:14px;line-height:1.35}
.patient-appointment-card>time span{color:#7e8da0;font-size:11.5px}
.patient-appointment-copy{min-width:0}
.patient-appointment-doctor{display:block;color:#1e324b;font-size:14px;font-weight:750}
.patient-appointment-copy>small{display:block;margin-top:3px;color:#8593a5;font-size:11px}
.patient-appointment-copy h3{margin:9px 0 0;color:#455970;font-size:13px;font-weight:650;line-height:1.45}
.patient-appointment-copy p{margin:5px 0 0;color:#7d8da1;font-size:11.5px;line-height:1.45}
.patient-appointment-state{display:grid;justify-items:end;gap:10px}
.patient-appointment-state>span{min-height:28px;display:inline-flex;align-items:center;padding:0 10px;border-radius:999px;background:#f0f4f7;color:#66788e;font-size:10.5px;font-weight:750;white-space:nowrap}
.patient-appointment-state>span.is-confirmed{background:#eaf7f1;color:#23805a}
.patient-appointment-state>span.is-scheduled{background:#edf6ff;color:#1d75bd}
.patient-appointment-state>span.is-cancelled,.patient-appointment-state>span.is-no_show{background:#f5f2f3;color:#8b6970}
.patient-appointment-state>div{display:flex;gap:7px}
.patient-appointment-state button{min-height:34px;padding:0 12px;border:1px solid #dce5ed;border-radius:10px;background:#fff;color:#597087;font:inherit;font-size:10.5px;font-weight:700;cursor:pointer}
.patient-appointment-state button:first-child{border-color:#b9d9f4;background:#edf7ff;color:#1675c3}
.patient-appointments-empty{padding:42px 20px;text-align:center}
.patient-appointments-empty b{display:block;color:#263b53;font-size:16px}
.patient-appointments-empty p{margin:7px 0 0;color:#8492a4;font-size:12.5px}
@media(max-width:760px){.patient-appointments-panel{padding:22px 18px 10px}.patient-appointments-head{align-items:flex-start;flex-direction:column}.patient-appointment-card{grid-template-columns:1fr;gap:11px;padding:20px 2px}.patient-appointment-state{justify-items:start}.patient-appointment-state>div{flex-wrap:wrap}}

.doctor-cases-panel.has-cases { display: block; }

.doctor-cases-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 20px;
}

.doctor-cases-head h2 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.doctor-cases-head p { margin: 0; color: #8090a3; font-size: 13px; line-height: 1.5; }
.doctor-cases-head span { padding-top: 3px; color: #98a4b4; font-size: 12px; white-space: nowrap; }
.doctor-cases-list { display: grid; }

.doctor-cases-empty {
  display: grid;
  min-height: 245px;
  place-content: center;
  justify-items: center;
  padding: 30px;
  border-top: 1px solid #edf1f4;
  text-align: center;
}

.doctor-cases-empty-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(73, 148, 222, .14);
  border-radius: 19px;
  background: #f0f7fd;
  color: #2683d8;
}

.doctor-cases-empty-mark svg { width: 27px; height: 27px; stroke-width: 1.55; }
.doctor-cases-empty h3 { margin: 18px 0 7px; color: #1d2d43; font-size: 18px; letter-spacing: -.02em; }
.doctor-cases-empty p { max-width: 520px; margin: 0; color: #7f8da1; font-size: 13px; line-height: 1.55; }
.doctor-cases-panel.has-cases .doctor-cases-empty { display: none; }
.doctor-cases-panel:not(.has-cases) .doctor-cases-list { display: none; }

body.bios-live .bios-live-protocols,
body.bios-live .bios-live-protocols:hover {
  padding: 0;
  transform: none;
  box-shadow: none;
}

.protocols-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
body.bios-live .view-protocols .protocols-toolbar .protocol-tabs { margin-bottom: 0; }
.protocols-state-switch { display: flex; flex: 0 0 auto; gap: 4px; padding: 4px; border-radius: 12px; background: #eef2f6; }
.protocols-state-switch button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: #78879a; font: inherit; font-size: 11.5px; font-weight: 680; cursor: pointer; }
.protocols-state-switch button.active { background: #fff; color: #213148; box-shadow: 0 6px 18px -14px rgba(30,53,80,.55); }
.bios-live-protocols .bios-protocol-list { display: none; }
.bios-live-protocols.has-protocols .bios-protocol-empty-state { display: none; }
.bios-live-protocols.has-protocols .bios-protocol-list { display: grid; gap: 12px; }
body.bios-live .bios-live-protocols.has-protocols { min-height: 0; }
.protocol-articles .home-articles-head { margin-top: 42px; }
.protocol-articles .home-article-grid { margin-bottom: 0; }
.protocol-articles[hidden] { display: none !important; }
.protocol-articles-hide {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #196fbd;
  font: inherit;
  font-size: 12px;
  font-weight: 710;
  cursor: pointer;
}
.protocol-articles-hide svg { width: 16px; height: 16px; stroke-width: 1.9; }
.protocol-articles-hide:hover { color: #145f9f; }
.protocol-articles-hide:focus-visible { outline: 3px solid rgba(34, 126, 215, .2); outline-offset: 4px; border-radius: 8px; }

.instruction-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 26px;
}
.instruction-filter {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid #e2e8ee;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #718197;
  font: inherit;
  font-size: 12px;
  font-weight: 680;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.instruction-filter:hover { border-color: rgba(36,126,211,.2); background: #fff; color: #28415e; }
.instruction-filter.active { border-color: #2382d8; background: #2382d8; color: #fff; }
.instruction-filter:focus-visible { outline: 3px solid rgba(35,130,216,.2); outline-offset: 2px; }
.instruction-results-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 17px; }
.instruction-results-head h2 { margin: 0; color: #18263a; font-size: 20px; letter-spacing: -.025em; }
.instruction-results-head span { color: #8795a7; font-size: 12px; }
.instruction-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.instruction-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(24,46,76,.085);
  border-radius: 23px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 22px 44px -42px rgba(24,46,76,.48);
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
  cursor: pointer;
}
.instruction-card:hover { border-color: rgba(35,130,216,.2); background: #fff; transform: translateY(-2px); }
.instruction-card:focus-visible { outline: 3px solid rgba(35,130,216,.22); outline-offset: 3px; }
.instruction-card[hidden] { display: none !important; }
.instruction-card-media {
  position: relative;
  display: grid;
  height: 150px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg,#123a66,#2686d8);
}
.instruction-card-media::before,
.instruction-card-media::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.23); border-radius: 50%; }
.instruction-card-media::before { width: 180px; height: 180px; right: -76px; bottom: -112px; }
.instruction-card-media::after { width: 96px; height: 96px; left: -40px; top: -54px; }
.instruction-card-media.violet { background: linear-gradient(135deg,#263f76,#766ee9); }
.instruction-card-media.cyan { background: linear-gradient(135deg,#145170,#39a8c9); }
.instruction-card-media.green { background: linear-gradient(135deg,#22576b,#4eaf91); }
.instruction-card-media.slate { background: linear-gradient(135deg,#293c57,#6686a6); }
.instruction-card-media.indigo { background: linear-gradient(135deg,#1d3b70,#4c70d8); }
.instruction-card-media svg { position: relative; z-index: 1; width: 48px; height: 48px; stroke-width: 1.35; }
.instruction-card-media i {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 13px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #29425f;
  font-size: 9px;
  font-style: normal;
  font-weight: 760;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.instruction-card-copy { display: grid; min-height: 180px; align-content: start; padding: 20px 20px 18px; }
.instruction-card-copy b { color: #1c2d43; font-size: 16px; line-height: 1.35; letter-spacing: -.018em; }
.instruction-card-copy p { margin: 9px 0 18px; color: #7f8da1; font-size: 12px; line-height: 1.55; }
.instruction-card-copy small { margin-top: auto; color: #929daf; font-size: 10.5px; font-weight: 650; }
@media (max-width: 980px) { .instruction-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .instruction-filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .instruction-filter-bar::-webkit-scrollbar { display: none; }
  .instruction-filter { flex: 0 0 auto; }
  .instruction-grid { grid-template-columns: 1fr; }
}
body.bios-live .bios-protocol-card { display: grid; min-height: 104px; grid-template-columns: 46px minmax(0,1fr) minmax(150px,.42fr) 112px 28px; align-items: center; gap: 15px; padding: 16px 18px; border: 1px solid #e2e8ee; border-radius: 18px; background: #fff; box-shadow: none; }
.bios-protocol-card[hidden] { display: none !important; }
.bios-protocol-card-mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 15px; background: #eef6fd; color: #217ed1; }
.bios-protocol-card-mark svg { width: 22px; height: 22px; stroke-width: 1.65; }
body.bios-live .bios-protocol-card h2 { margin: 0 0 6px; color: #213349; font-size: 16px; letter-spacing: -.015em; }
body.bios-live .bios-protocol-card p { margin: 0; color: #8492a3; font-size: 13px; line-height: 1.45; }
.bios-protocol-progress-copy { min-width: 0; }
.bios-protocol-progress-copy span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #8290a1; font-size: 11.5px; }
.bios-protocol-progress-copy b { color: #3a5068; font-weight: 750; }
.bios-protocol-progress-line { height: 5px; overflow: hidden; border-radius: 999px; background: #eaf0f5; }
.bios-protocol-progress-line i { display: block; width: var(--protocol-progress); height: 100%; border-radius: inherit; background: #2584dc; }
.bios-protocol-state { display: inline-flex; width: max-content; align-items: center; gap: 7px; color: #2f8561; font-size: 12px; font-weight: 750; white-space: nowrap; }
.bios-protocol-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #43ba7c; }
.bios-protocol-state.needs-data { color: #996b18; }.bios-protocol-state.needs-data::before { background: #e8ab3d; }
.bios-protocol-state.closed { color: #77869a; }.bios-protocol-state.closed::before { background: #a4afbc; }
.bios-protocol-open { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #8794a5; cursor: pointer; }
.bios-protocol-open:hover { background: #eaf4fd; color: #087cf0; }
.bios-protocol-open svg { width: 15px; height: 15px; }
.bios-protocol-card { cursor: pointer; }
.bios-protocol-card:focus-visible { outline: 3px solid rgba(35,130,216,.2); outline-offset: 3px; }
.protocols-list-controls { display:none; align-items:center; justify-content:space-between; gap:18px; margin-top:18px; padding:16px 18px; border:1px solid #e2e8ee; border-radius:18px; background:#fff; }
.bios-live-protocols.has-protocols .protocols-list-controls.is-visible { display:flex; }
.protocols-list-info { display:flex; align-items:center; gap:14px; min-width:0; }
.protocols-list-info span { color:#8391a2; font-size:11px; white-space:nowrap; }
.protocols-list-mode { display:flex; gap:3px; padding:3px; border-radius:10px; background:#eef3f7; }
.protocols-list-mode button { min-height:30px; padding:0 11px; border:0; border-radius:8px; background:transparent; color:#758599; font:inherit; font-size:9.5px; font-weight:700; cursor:pointer; }
.protocols-list-mode button.active { background:#fff; color:#2c435d; box-shadow:0 5px 14px -12px rgba(24,50,76,.7); }
.protocols-show-more { min-height:38px; padding:0 17px; border:1px solid #d4e3ee; border-radius:999px; background:#fff; color:#2679bc; font:inherit; font-size:11px; font-weight:740; cursor:pointer; }
.protocols-show-more:hover { border-color:#b8d3e8; background:#f6fbff; }
.protocols-pagination { display:flex; align-items:center; gap:5px; }
.protocols-pagination[hidden],.protocols-show-more[hidden] { display:none!important; }
.protocols-page { display:grid; width:34px; height:34px; place-items:center; border:1px solid #dce5ec; border-radius:10px; background:#fff; color:#6f8093; font:inherit; font-size:10.5px; font-weight:720; cursor:pointer; }
.protocols-page.active { border-color:#2384d6; background:#2384d6; color:#fff; }
.protocols-page-arrow { color:#8a98a7; }
.protocols-page:disabled { opacity:.38; cursor:default; }

.protocol-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.protocol-detail-back { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid #dfe6ed; border-radius: 999px; background: #fff; color: #31465f; font: inherit; font-size: 12px; font-weight: 720; cursor: pointer; }
.protocol-detail-back:hover { border-color: #cbd9e6; background: #f8fbfd; }
.protocol-detail-back svg { width: 16px; height: 16px; stroke-width: 1.8; }
.view-protocol-detail { --protocol-detail-side-width: minmax(310px,.42fr); }
.protocol-detail-hero { display:grid; grid-template-columns:minmax(0,1fr) var(--protocol-detail-side-width); overflow: hidden; border: 1px solid #e1e8ef; border-radius: 24px; background: #fff; }
.protocol-detail-overview,.protocol-detail-ai,.protocol-detail-steps,.protocol-detail-data,.protocol-detail-note { border: 1px solid #e1e8ef; border-radius: 24px; background: #fff; }
.protocol-detail-overview { display:flex; min-height: 206px; flex-direction:column; padding: 30px 32px 28px; border:0; border-radius:0; }
.protocol-detail-eyebrow { margin-bottom: 13px; color: #287fc9; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.protocol-detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.protocol-detail-title-row h1 { max-width: 760px; margin: 0; color: #142237; font-size: clamp(24px,2vw,30px); line-height: 1.18; letter-spacing: -.03em; }
.protocol-detail-status { flex: 0 0 auto; display: inline-flex; min-height: 32px; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: #fff6df; color: #a66a00; font-size: 11px; font-weight: 760; }
.protocol-detail-status::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: #efa92d; }
.protocol-detail-status.in-progress { background:#edf6ff;color:#2178c7; }
.protocol-detail-status.in-progress::before { background:#2b8ddd; }
.protocol-detail-status.closed { background:#edf9f3;color:#27885c; }
.protocol-detail-status.closed::before { background:#3ac286; }
.protocol-detail-meta { margin: 13px 0 24px; color: #8290a2; font-size: 13px; }
.protocol-detail-progress-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; color: #7f8da0; font-size: 12px; }
.protocol-detail-progress-head b { color: #30465f; font-size: 13px; }
.protocol-detail-progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e9f0f5; }
.protocol-detail-progress i { display: block; width: var(--detail-progress,0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2087df,#3aa5ee); }
.protocol-detail-ai { display:flex; min-height:206px; flex-direction:column; padding:26px 28px; border:0; border-left:1px solid #dfebf5; border-radius:0; background:linear-gradient(145deg,#f8fbff,#eef5fc 76%); }
.protocol-detail-ai h2 { margin:0; color:#20334a; font-size:17px; line-height:1.25; letter-spacing:-.02em; }
.protocol-detail-ai p { max-width:360px; margin:14px 0 18px; color:#71869b; font-size:12.5px; line-height:1.5; }
.protocol-detail-ai button { width:100%; min-height:38px; margin-top:auto; padding:0 18px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:12.5px; font-weight:740; cursor:pointer; }
.protocol-detail-ai .protocol-detail-send-doctor { margin-top:9px; border:1px solid #cfdfea; background:#fff; color:#2f678f; }
.protocol-detail-ai button:hover { background:#1678cf; }
.protocol-detail-ai .protocol-detail-send-doctor:hover { background:#f5faff; }
.protocol-detail-ai button:focus-visible { outline:3px solid rgba(32,133,221,.2); outline-offset:2px; }
.protocol-detail-main { display:grid; grid-template-columns:minmax(0,1fr) var(--protocol-detail-side-width); gap:18px; margin-top:18px; align-items:start; }
.protocol-detail-steps { overflow:hidden; padding:0; }
.protocol-detail-section-head { display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:0;padding:26px 30px 22px; }
.protocol-detail-section-head h2 { margin:0;color:#18283d;font-size:20px;letter-spacing:-.025em; }
.protocol-detail-section-head p { margin:5px 0 0;color:#8493a5;font-size:13px; }
.protocol-detail-step-list { display:grid; border-top:1px solid #e8edf2; }
.protocol-detail-step { position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:16px;min-height:94px;padding:18px 28px;border-top:1px solid #e8edf2;background:#fff; }
.protocol-detail-step:first-child { border-top:0; }
.protocol-detail-step-marker { display:grid;width:38px;height:38px;place-items:center;border:1px solid #dce6ef;border-radius:12px;background:#f4f8fc;color:#8393a6;font-size:11px;font-weight:800; }
.protocol-detail-step.done .protocol-detail-step-marker { border-color:#c9eadb;background:#eff9f4;color:#2c9a69; }
.protocol-detail-step.current .protocol-detail-step-marker { border-color:#b7dafa;background:#eaf5ff;color:#187ed5;box-shadow:none; }
.protocol-detail-step.future { background:#fcfdfe; }
.protocol-detail-step-copy b { display:block;color:#273b53;font-size:15px;line-height:1.35;letter-spacing:-.01em; }
.protocol-detail-step-copy small { display:block;margin-top:5px;color:#8291a4;font-size:12.5px;line-height:1.45; }
.protocol-detail-step.future .protocol-detail-step-copy b { color:#627286; }
.protocol-detail-step.future .protocol-detail-step-copy small { color:#9aa6b4; }
.protocol-detail-step-state { color:#95a1b0;font-size:12px;font-weight:720;white-space:nowrap; }
.protocol-detail-step.current .protocol-detail-step-state { color:#187ed5; }
.protocol-detail-step.done .protocol-detail-step-state { color:#32966a; }
.protocol-detail-step-action { min-height:42px; padding:0 18px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:12px; font-weight:760; white-space:nowrap; cursor:pointer; }
.protocol-detail-step-action:hover { background:#1678cf; }
.protocol-detail-step-action:focus-visible { outline:3px solid rgba(32,133,221,.2); outline-offset:2px; }
.protocol-detail-side { display:grid;align-content:start;gap:14px; }
.protocol-detail-data,.protocol-detail-note { padding:22px 24px; }
.protocol-detail-data h2,.protocol-detail-note h2 { margin:0 0 15px;color:#20334a;font-size:18px;letter-spacing:-.02em; }
.protocol-detail-data-list { display:grid;gap:10px; }
.protocol-detail-data-item { display:grid;gap:4px;padding:13px 14px;border-radius:15px;background:#f6f9fb; }
.protocol-detail-data-item b { color:#334b65;font-size:13px; }
.protocol-detail-data-item span { color:#8795a6;font-size:11.5px; }
.protocol-detail-note { background:#f1f7fc; }
.protocol-detail-note p { margin:0;color:#70859b;font-size:12.5px;line-height:1.6; }
@media(max-width:900px){.protocol-detail-hero,.protocol-detail-main{grid-template-columns:1fr}.protocol-detail-ai{min-height:0;border-top:1px solid #dfebf5;border-left:0}.protocol-detail-side{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:620px){.protocol-detail-title-row{flex-direction:column}.protocol-detail-status{align-self:flex-start}.protocol-detail-side{grid-template-columns:1fr}.protocol-detail-overview,.protocol-detail-ai{padding:22px 20px}.protocol-detail-section-head{padding:22px 20px 18px}.protocol-detail-step{grid-template-columns:36px minmax(0,1fr);gap:13px;padding:16px 20px}.protocol-detail-step-marker{width:36px;height:36px;border-radius:11px}.protocol-detail-step-state,.protocol-detail-step-action{grid-column:2;justify-self:start;}}
@media(max-width:760px){.protocols-toolbar{align-items:stretch;flex-direction:column}.protocols-state-switch{width:max-content}.bios-protocol-card{grid-template-columns:42px minmax(0,1fr) auto!important}.bios-protocol-progress-copy,.bios-protocol-state{grid-column:2}.bios-protocol-open{grid-column:3;grid-row:1}.protocols-list-controls{align-items:stretch;flex-direction:column}.protocols-list-info{justify-content:space-between}.protocols-show-more{width:100%}.protocols-pagination{justify-content:center}}

.doctor-case-row {
  display: grid;
  grid-template-columns: 42px minmax(260px, 1fr) minmax(150px, .45fr) 122px 28px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 9px 0;
  border: 0;
  border-top: 1px solid #edf1f4;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.doctor-case-row:hover .doctor-case-arrow { background: #eaf4fd; color: #087cf0; }
.doctor-case-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: #eef6fc; color: #287dc8; }
.doctor-case-mark svg { width: 17px; height: 17px; stroke-width: 1.7; }
.doctor-case-main { min-width: 0; }
.doctor-case-main strong { display: block; overflow: hidden; color: #25364c; font-size: 15px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.doctor-case-main p { margin: 4px 0 0; color: #8290a1; font-size: 12.5px; line-height: 1.4; }
.doctor-case-doctor { color: #61758a; font-size: 12.5px; line-height: 1.45; }
.doctor-case-doctor small { display: block; margin-top: 3px; color: #98a4b2; font-size: 11px; }
.doctor-case-status { display: inline-flex; width: max-content; max-width: 100%; align-items: center; gap: 6px; color: #2c825d; font-size: 12px; font-weight: 700; white-space: nowrap; }
.doctor-case-status::before { content: ""; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #42b97c; }
.doctor-case-status.needs-data { color: #9b6d18; }
.doctor-case-status.needs-data::before { background: #e9ad3e; }
.doctor-case-status.closed { color: #77869a; }
.doctor-case-status.closed::before { background: #a4afbc; }
.doctor-case-arrow { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; color: #8794a5; transition: background .18s ease, color .18s ease; }
.doctor-case-arrow svg { width: 15px; height: 15px; }

.doctor-case-modal {
  position: fixed;
  z-index: 1210;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 45, 65, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.doctor-case-modal.active { opacity: 1; visibility: visible; }
.doctor-case-dialog { width: min(100%, 650px); max-height: min(780px, calc(100vh - 48px)); overflow: auto; padding: 30px; border: 1px solid rgba(31,52,78,.1); border-radius: 26px; background: rgba(255,255,255,.98); box-shadow: 0 34px 90px -45px rgba(21,43,70,.5); }
.doctor-case-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.doctor-case-kicker { margin: 0 0 8px; color: #087cf0; font-size: 10.5px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.doctor-case-dialog h2 { max-width: 500px; margin: 0; color: #1f2e42; font-size: 24px; line-height: 1.25; letter-spacing: -.03em; }
.doctor-case-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(31,52,78,.1); border-radius: 12px; background: #f7f9fc; color: #66758a; cursor: pointer; }
.doctor-case-close svg { width: 18px; height: 18px; }
.doctor-case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.doctor-case-fact { padding: 14px 15px; border-radius: 15px; background: #f5f8fb; }
.doctor-case-fact small { display: block; margin-bottom: 5px; color: #94a0af; font-size: 10px; }
.doctor-case-fact b { color: #33445a; font-size: 12px; font-weight: 680; }
.doctor-case-decision { padding: 21px; border: 1px solid rgba(53,132,207,.1); border-radius: 19px; background: linear-gradient(145deg, #f8fbff, #eef6fd); }
.doctor-case-decision-label { margin: 0 0 10px; color: #257bc6; font-size: 10.5px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.doctor-case-decision h3 { margin: 0 0 9px; color: #26374c; font-size: 15px; }
.doctor-case-decision p { margin: 0; color: #5f7086; font-size: 12px; line-height: 1.65; }
.doctor-case-limits { margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(51,85,118,.1); }
.doctor-case-limits b, .doctor-case-evidence b { display: block; margin-bottom: 5px; color: #53657a; font-size: 10.5px; }
.doctor-case-limits span, .doctor-case-evidence span { color: #7a899b; font-size: 11px; line-height: 1.55; }
.doctor-case-evidence { margin-top: 16px; }
.doctor-case-data-action { display: none; align-items: center; justify-content: space-between; gap: 18px; margin-top: 19px; padding-top: 18px; border-top: 1px solid rgba(51,85,118,.1); }
.doctor-case-data-action.active { display: flex; }
.doctor-case-data-copy { min-width: 0; }
.doctor-case-data-copy b { display: block; margin-bottom: 4px; color: #40536a; font-size: 11.5px; }
.doctor-case-data-copy span { display: block; color: #8391a2; font-size: 10.5px; line-height: 1.45; }
.doctor-case-data-button { min-height: 42px; flex: 0 0 auto; padding: 0 16px; border: 0; border-radius: 13px; background: #087cf0; color: #fff; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.doctor-case-data-button:hover { background: #0874df; }
.doctor-case-note { display: flex; align-items: flex-start; gap: 9px; margin: 17px 2px 0; color: #8a97a7; font-size: 10.5px; line-height: 1.5; }
.doctor-case-note svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }
.doctor-case-dialog { width:min(100%,620px); padding:27px; }
.doctor-case-dialog h2 { max-width:470px; font-size:22px; }
.doctor-case-overview { margin:21px 0 14px; padding:17px 18px; border:1px solid #e5ebf0; border-radius:18px; background:#fbfcfd; }
.doctor-case-overview-main { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.doctor-case-overview-doctor small { display:block; margin-bottom:4px; color:#94a0af; font-size:9.5px; }
.doctor-case-overview-doctor b { color:#34475e; font-size:12.5px; }
.doctor-case-overview-status { display:inline-flex; align-items:center; gap:6px; color:#2d815e; font-size:10.5px; font-weight:720; white-space:nowrap; }
.doctor-case-overview-status::before { content:""; width:6px; height:6px; border-radius:50%; background:#48af7a; }
.doctor-case-overview-status.needs-data { color:#976918; }
.doctor-case-overview-status.needs-data::before { background:#e4a83c; }
.doctor-case-overview-status.closed { color:#758398; }
.doctor-case-overview-status.closed::before { background:#a4afbc; }
.doctor-case-overview-meta { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:13px; padding-top:12px; border-top:1px solid #edf1f4; color:#8090a2; font-size:10.5px; }
.doctor-case-overview-meta span { display:flex; align-items:center; gap:6px; }
.doctor-case-overview-meta small { color:#9aa6b4; font-size:9.5px; }
.doctor-case-dialog .doctor-case-decision { padding:18px; border-radius:18px; background:#f3f8fc; }
.doctor-case-dialog .doctor-case-decision-label { margin-bottom:7px; }
.doctor-case-dialog .doctor-case-decision h3 { margin-bottom:7px; }
.doctor-case-dialog .doctor-case-context-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:12px; }
.doctor-case-context-card { padding:14px 15px; border:1px solid #e7edf2; border-radius:15px; background:#fff; }
.doctor-case-context-card b { display:block; margin-bottom:5px; color:#53657a; font-size:10.5px; }
.doctor-case-context-card span { color:#7a899b; font-size:10.5px; line-height:1.5; }
.doctor-case-dialog .doctor-case-data-action { margin-top:13px; padding:14px 15px; border:1px solid #f0dfb8; border-radius:15px; background:#fffaf0; }
.doctor-case-dialog-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:17px; }
.doctor-case-dialog-actions button { min-height:42px; padding:0 17px; border-radius:999px; font:inherit; font-size:11px; font-weight:720; cursor:pointer; }
.doctor-case-discuss { border:1px solid #dce6ee; background:#fff; color:#537089; }
.doctor-case-open-full { border:0; background:#2085dd; color:#fff; }
.doctor-case-dialog .doctor-case-note { margin-top:14px; }
.doctor-case-directory-row { grid-template-columns:42px minmax(240px,1fr) minmax(145px,.42fr) 118px 148px; border-top:1px solid #edf1f4; cursor:default; }
.doctor-case-view { min-height:36px; padding:0 13px; border:1px solid #dbe6ee; border-radius:999px; background:#fff; color:#237bc7; font:inherit; font-size:10.5px; font-weight:720; white-space:nowrap; cursor:pointer; }
.doctor-case-view:hover { border-color:#b9d7ed; background:#f5faff; }

.view-doctor-case-detail { padding-bottom:44px; }
.case-detail-head { align-items:flex-end; margin-bottom:22px; }
.case-detail-status { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:0 14px; border-radius:999px; background:#eef7f2; color:#2f805f; font-size:12px; font-weight:720; }
.case-detail-status::before { content:""; width:6px; height:6px; border-radius:50%; background:#49af7b; }
.case-detail-status.needs-data { background:#fff7e8; color:#966818; }
.case-detail-status.needs-data::before { background:#e4a83c; }
.case-detail-status.closed { background:#f1f4f6; color:#758398; }
.case-detail-status.closed::before { background:#a4afbc; }
.case-detail-layout { display:grid; grid-template-columns:minmax(0,1fr) 292px; gap:18px; align-items:start; }
.case-detail-main { display:grid; gap:14px; }
.case-detail-card { padding:23px 25px; border:1px solid #dfe7ee; border-radius:22px; background:#fff; }
.case-detail-step { display:inline-flex; min-height:25px; align-items:center; margin-bottom:12px; padding:0 10px; border-radius:999px; background:#edf6fd; color:#287bc1; font-size:10.5px; font-weight:760; letter-spacing:.02em; }
.case-detail-card h2 { margin:0; color:#20334a; font-size:19px; letter-spacing:-.02em; }
.case-detail-card > p { margin:10px 0 0; color:#6e8094; font-size:13.5px; line-height:1.65; }
.case-detail-origin { border-color:#d6e7f5; background:linear-gradient(145deg,#fbfdff,#f2f8fd); }
.case-detail-origin-type { display:inline-flex; align-items:center; gap:7px; margin-top:17px; color:#257bc6; font-size:12px; font-weight:720; }
.case-detail-origin-type::before { content:""; width:6px; height:6px; border-radius:50%; background:#398fd8; }
.case-detail-origin h3 { margin:9px 0 0; color:#283b52; font-size:17px; line-height:1.4; }
.case-detail-origin-question { margin-top:14px; padding:14px 16px; border:1px solid #e1ebf3; border-radius:15px; background:rgba(255,255,255,.72); }
.case-detail-origin-question small { display:block; margin-bottom:5px; color:#8997a7; font-size:11px; }
.case-detail-origin-question b { color:#3e5269; font-size:13px; line-height:1.5; }
.case-detail-doctor { display:flex; align-items:center; gap:13px; }
.case-detail-avatar { display:grid; width:42px; height:42px; place-items:center; border-radius:14px; background:#eaf5fd; color:#247dca; font-size:11px; font-weight:800; }
.case-detail-doctor b { display:block; color:#30445b; font-size:15px; }
.case-detail-doctor span { display:block; margin-top:4px; color:#8795a6; font-size:12px; }
.case-detail-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.case-detail-fact { padding:13px 14px; border-radius:14px; background:#f6f9fb; }
.case-detail-fact small { display:block; margin-bottom:5px; color:#8b98a8; font-size:11px; }
.case-detail-fact b { color:#405269; font-size:13px; line-height:1.4; }
.case-detail-decision { background:linear-gradient(145deg,#f8fbff,#eef6fd); }
.case-detail-decision h3 { margin:14px 0 8px; color:#283b52; font-size:17px; }
.case-detail-next { margin-top:16px; padding:14px 16px; border-radius:15px; background:rgba(255,255,255,.72); }
.case-detail-next small { display:block; margin-bottom:5px; color:#8997a7; font-size:11px; }
.case-detail-next b { color:#344a62; font-size:13px; line-height:1.5; }
.case-detail-data-list { display:grid; gap:9px; margin-top:17px; }
.case-detail-data-item { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 14px; border-radius:14px; background:#f6f9fb; }
.case-detail-data-item span { color:#43576d; font-size:13px; font-weight:680; }
.case-detail-data-item button { border:0; background:transparent; color:#237bc7; font:inherit; font-size:12px; font-weight:720; cursor:pointer; }
.case-detail-timeline { display:grid; margin-top:17px; }
.case-detail-event { position:relative; display:grid; grid-template-columns:10px 1fr auto; gap:11px; padding:0 0 17px; }
.case-detail-event:last-child { padding-bottom:0; }
.case-detail-event::before { content:""; position:absolute; top:9px; bottom:-1px; left:4px; width:1px; background:#dfe8ef; }
.case-detail-event:last-child::before { display:none; }
.case-detail-event i { width:9px; height:9px; margin-top:4px; border:2px solid #fff; border-radius:50%; background:#68a9dc; box-shadow:0 0 0 1px #a8cce8; }
.case-detail-event b { display:block; color:#43566c; font-size:13px; }
.case-detail-event span,.case-detail-event time { color:#8a98a8; font-size:11.5px; line-height:1.45; }
.case-detail-side { position:sticky; top:18px; display:grid; gap:14px; }
.case-detail-actions,.case-detail-note-card { padding:21px; border:1px solid #dfe7ee; border-radius:21px; background:#fff; }
.case-detail-actions { background:linear-gradient(145deg,#f8fbff,#eef6fc); }
.case-detail-actions h2,.case-detail-note-card h2 { margin:0; color:#20334a; font-size:18px; }
.case-detail-actions p,.case-detail-note-card p { margin:8px 0 16px; color:#75889c; font-size:12.5px; line-height:1.55; }
.case-detail-action { width:100%; min-height:42px; margin-top:8px; border-radius:999px; font:inherit; font-size:12px; font-weight:720; cursor:pointer; }
.case-detail-action.primary { border:0; background:#2085dd; color:#fff; }
.case-detail-action.secondary { border:1px solid #d7e4ed; background:#fff; color:#39739f; }
@media(max-width:900px){.case-detail-layout{grid-template-columns:1fr}.case-detail-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.doctor-case-directory-row{grid-template-columns:38px minmax(0,1fr) 116px}.doctor-case-directory-row .doctor-case-doctor,.doctor-case-directory-row .doctor-case-status{grid-column:2}.doctor-case-view{grid-column:3;grid-row:1/span 3}}
@media(max-width:620px){.doctor-case-dialog .doctor-case-context-grid,.case-detail-facts{grid-template-columns:1fr}.doctor-case-overview-main,.doctor-case-dialog-actions{align-items:flex-start;flex-direction:column}.doctor-case-dialog-actions button{width:100%}.case-detail-side{grid-template-columns:1fr}.doctor-case-directory-row{grid-template-columns:34px minmax(0,1fr);}.doctor-case-view{grid-column:2;grid-row:auto;width:max-content}}

.context-upload-modal { position:fixed; z-index:1320; inset:0; display:grid; place-items:center; padding:24px; background:rgba(24,39,57,.28); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); opacity:0; visibility:hidden; transition:opacity .18s ease,visibility .18s ease; }
.context-upload-modal.active { opacity:1; visibility:visible; }
.context-upload-dialog { position:relative; width:min(100%,560px); padding:30px; border:1px solid rgba(31,52,78,.1); border-radius:26px; background:#fff; box-shadow:0 32px 90px -40px rgba(21,43,70,.56); }
.context-upload-close { position:absolute; top:20px; right:20px; display:grid; width:36px; height:36px; place-items:center; border:1px solid rgba(31,52,78,.1); border-radius:50%; background:#f7f9fc; color:#66758a; cursor:pointer; }
.context-upload-close svg { width:17px; height:17px; }
.context-upload-kicker { margin:0 48px 8px 0; color:#187ed5; font-size:10.5px; font-weight:780; letter-spacing:.08em; text-transform:uppercase; }
.context-upload-dialog h2 { margin:0 48px 8px 0; color:#1d2d42; font-size:24px; line-height:1.25; letter-spacing:-.03em; }
.context-upload-context { margin:0 48px 22px 0; color:#78899d; font-size:12.5px; line-height:1.55; }
.context-upload-dropzone { display:grid; min-height:150px; place-items:center; align-content:center; gap:7px; padding:24px; border:1.5px dashed #bad7ee; border-radius:20px; background:#f5faff; color:#5f748b; text-align:center; cursor:pointer; transition:border-color .16s ease,background .16s ease; }
.context-upload-dropzone:hover,.context-upload-dropzone.dragging { border-color:#2c8bda; background:#eef7ff; }
.context-upload-dropzone b { color:#24415e; font-size:14px; }
.context-upload-dropzone span { font-size:11.5px; line-height:1.5; }
.context-upload-filename { display:none; max-width:100%; margin-top:7px; padding:7px 11px; overflow:hidden; border-radius:999px; background:#fff; color:#187ed5; font-size:11.5px; font-weight:700; text-overflow:ellipsis; white-space:nowrap; }
.context-upload-filename.active { display:block; }
.context-upload-status { min-height:20px; margin:13px 0 0; color:#318862; font-size:11.5px; line-height:1.45; }
.context-upload-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.context-upload-actions button { min-height:42px; padding:0 19px; border-radius:999px; font:inherit; font-size:12px; font-weight:720; cursor:pointer; }
.context-upload-cancel { border:1px solid #dce6ef; background:#fff; color:#51657b; }
.context-upload-submit { border:0; background:#2085dd; color:#fff; }
.context-upload-submit:hover:not(:disabled) { background:#1678cf; }
.context-upload-submit:disabled { background:#c8d8e6; cursor:not-allowed; }
@media(max-width:620px){.context-upload-modal{align-items:end;padding:0}.context-upload-dialog{width:100%;padding:26px 20px 22px;border-radius:24px 24px 0 0}.context-upload-actions{flex-direction:column-reverse}.context-upload-actions button{width:100%}}

.doctor-access-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 45, 65, .18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.doctor-access-modal.active { opacity: 1; visibility: visible; }

.doctor-access-dialog {
  width: min(100%, 560px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid rgba(31, 52, 78, .1);
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 34px 90px -45px rgba(21, 43, 70, .5);
}

.doctor-access-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.doctor-access-dialog h2 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.03em; }
.doctor-access-dialog-head p { margin: 0; color: #7e8b9e; font-size: 12.5px; line-height: 1.5; }
.doctor-access-case-context { margin:18px 0 2px; padding:14px 16px; border:1px solid #d8e8f4; border-radius:16px; background:#f3f8fc; }
.doctor-access-case-context small { display:block; margin-bottom:5px; color:#7c8ea2; font-size:10.5px; }
.doctor-access-case-context b { display:block; color:#2b435c; font-size:12.5px; line-height:1.45; }
.doctor-access-close { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid rgba(31,52,78,.1); border-radius: 12px; background: #f7f9fc; color: #66758a; cursor: pointer; }
.doctor-access-close svg { width: 18px; height: 18px; }

.doctor-access-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 24px 0 20px; padding: 4px; border-radius: 14px; background: #f1f5f9; }
.doctor-access-tab { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: #718096; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; }
.doctor-access-tab.active { background: #fff; color: #18273b; box-shadow: 0 5px 15px -12px rgba(24,39,59,.5); }
.doctor-access-pane { display: none; }
.doctor-access-pane.active { display: block; }
.doctor-access-pane label { display: block; margin-bottom: 8px; color: #53647a; font-size: 12px; font-weight: 650; }
.doctor-access-email-row,
.doctor-access-link-row { display: grid; grid-template-columns: minmax(0,1fr); gap: 9px; }
.doctor-access-pane input { min-width: 0; height: 48px; padding: 0 15px; border: 1px solid rgba(31,52,78,.12); border-radius: 14px; background: #fff; color: #1f2e42; font: inherit; font-size: 13px; outline: none; }
.doctor-access-pane input:focus { border-color: rgba(8,124,240,.35); box-shadow: 0 0 0 3px rgba(8,124,240,.07); }
.doctor-access-action { min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; background: #087cf0; color: #fff; font: inherit; font-size: 12.5px; font-weight: 680; cursor: pointer; }
.doctor-access-copy { background: #e8f3fd; color: #0872dc; }
.doctor-access-help { margin: 10px 2px 0; color: #8794a6; font-size: 11.5px; line-height: 1.45; }
.doctor-access-status { min-height: 18px; margin-top: 14px; color: #27825a; font-size: 12px; font-weight: 620; }
.doctor-access-parameters { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e9eef2; }
.doctor-access-parameters-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.doctor-access-parameters h3 { margin: 0; color: #34475d; font-size: 14px; letter-spacing: -.015em; }
.doctor-access-parameters-head p { margin: 4px 0 0; color: #8a97a7; font-size: 10.5px; line-height: 1.4; }
.doctor-access-scope { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.doctor-access-scope label { display: flex; min-height: 50px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e1e8ee; border-radius: 12px; background: #fafcfd; color: #53657a; font-size: 10.5px; font-weight: 650; line-height: 1.25; cursor: pointer; }
.doctor-access-scope input { width: 15px; height: 15px; flex: 0 0 15px; accent-color: #1983dc; }
.doctor-access-period-block { margin-top: 18px; }
.doctor-access-period-block h3 { margin-bottom: 10px; }
.doctor-access-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #e9eef2; }
.doctor-access-footer .doctor-access-status { min-width: 0; margin: 0; }
.doctor-access-submit { min-height: 44px; flex: 0 0 auto; padding: 0 19px; border: 0; border-radius: 13px; background: #087cf0; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.doctor-access-submit:hover { background: #0874df; }
.doctor-access-submit:disabled { opacity: .45; cursor: default; }
@media(max-width:620px){.doctor-access-modal{align-items:end;padding:0}.doctor-access-dialog{width:100%;max-height:92vh;padding:24px 20px;border-radius:24px 24px 0 0}.doctor-access-scope{grid-template-columns:1fr}.doctor-access-footer{align-items:stretch;flex-direction:column}.doctor-access-submit{width:100%}}

@media (max-width: 900px) {
  .doctors-ready { grid-template-columns: 1fr; }
  .doctors-card { min-height: 300px; }
  .doctors-preview-switch { display: none; }
  .doctors-directory-head { align-items: flex-start; }
  .doctors-directory-toolbar { align-items: flex-start; flex-direction: column; }
  .doctors-directory-filters { width: 100%; overflow-x: auto; }
  .doctors-directory-list { grid-template-columns: 1fr; }
  .doctor-case-row { grid-template-columns: 38px minmax(0,1fr) 28px; padding: 12px 0; }
  .doctor-case-doctor, .doctor-case-status { grid-column: 2; }
  .doctor-case-arrow { grid-column: 3; grid-row: 1 / span 3; }
  .doctor-case-facts { grid-template-columns: 1fr; }
  .doctor-case-data-action { align-items: flex-start; flex-direction: column; }
}

/* AI hypotheses */
.view-ai-hypotheses { padding-bottom:44px; }
.view-ai-hypotheses .page-head { margin-bottom:22px; }
.ai-hypothesis-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.ai-hypothesis-summary article { min-height:108px; padding:20px 22px; border:1px solid #dfe7ee; border-radius:20px; background:#fff; }
.ai-hypothesis-summary span { display:block; margin-bottom:11px; color:#8190a2; font-size:11px; font-weight:680; }
.ai-hypothesis-summary strong { color:#1d3046; font-size:26px; line-height:1; letter-spacing:-.04em; }
.ai-hypothesis-summary small { display:block; margin-top:8px; color:#8b98a8; font-size:10.5px; }
.ai-hypothesis-summary .attention { background:linear-gradient(145deg,#fffdf9,#fff8ed); }
.ai-hypothesis-summary .attention strong { color:#9b6b19; }
.ai-hypothesis-layout { display:grid; grid-template-columns:minmax(0,1fr) 292px; gap:18px; align-items:start; }
.ai-hypothesis-list-card { overflow:hidden; border:1px solid #dfe7ee; border-radius:23px; background:#fff; }
.ai-hypothesis-list-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:22px 24px 17px; }
.ai-hypothesis-list-head h2 { margin:0; color:#1c2e43; font-size:20px; letter-spacing:-.025em; }
.ai-hypothesis-list-head p { margin:5px 0 0; color:#8796a7; font-size:12px; }
.ai-hypothesis-filters { display:flex; gap:7px; padding:0 24px 17px; overflow-x:auto; scrollbar-width:none; }
.ai-hypothesis-filters::-webkit-scrollbar { display:none; }
.ai-hypothesis-filter { min-height:35px; padding:0 14px; border:1px solid #dfe7ee; border-radius:999px; background:#fff; color:#718197; font:inherit; font-size:11.5px; font-weight:690; white-space:nowrap; cursor:pointer; }
.ai-hypothesis-filter.active { border-color:#d3e7f6; background:#eaf5fd; color:#1978c7; }
.ai-hypothesis-items { border-top:1px solid #e8edf2; }
.ai-hypothesis-item { padding:21px 24px; border-top:1px solid #e8edf2; }
.ai-hypothesis-item:first-child { border-top:0; }
.ai-hypothesis-item[hidden] { display:none; }
.ai-hypothesis-item-top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.ai-hypothesis-kind,.ai-hypothesis-state { display:inline-flex; align-items:center; gap:6px; font-size:10.5px; font-weight:730; }
.ai-hypothesis-kind { color:#247bc5; }
.ai-hypothesis-kind::before { content:""; width:6px; height:6px; border-radius:50%; background:#318bd6; }
.ai-hypothesis-state { min-height:28px; padding:0 10px; border-radius:999px; background:#eef7f2; color:#31805f; }
.ai-hypothesis-state.needs-data { background:#fff7e8; color:#976919; }
.ai-hypothesis-state.doctor { background:#eef4fb; color:#506f91; }
.ai-hypothesis-item h3 { max-width:720px; margin:13px 0 8px; color:#26394f; font-size:17px; line-height:1.4; letter-spacing:-.015em; }
.ai-hypothesis-item > p { max-width:780px; margin:0; color:#6e8094; font-size:12.5px; line-height:1.6; }
.ai-hypothesis-basis { display:flex; flex-wrap:wrap; gap:7px; margin-top:14px; }
.ai-hypothesis-basis span { padding:6px 9px; border-radius:999px; background:#f3f7fa; color:#718196; font-size:10.5px; }
.ai-hypothesis-details { display:none; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:15px; }
.ai-hypothesis-item.expanded .ai-hypothesis-details { display:grid; }
.ai-hypothesis-detail { padding:13px 14px; border-radius:14px; background:#f6f9fb; }
.ai-hypothesis-detail small { display:block; margin-bottom:5px; color:#8c99a8; font-size:10.5px; }
.ai-hypothesis-detail b { color:#42566d; font-size:12px; line-height:1.45; }
.ai-hypothesis-detail.next-step { border:1px solid #d4e8f7; background:linear-gradient(145deg,#f5faff,#edf7fe); }
.ai-hypothesis-detail.next-step b { display:block; color:#223d57; font-size:13px; }
.ai-hypothesis-detail.next-step span { display:block; margin-top:5px; color:#71869b; font-size:11px; line-height:1.45; }
.ai-hypothesis-next-action { display:inline-flex; align-items:center; min-height:34px; margin-top:11px; padding:0 13px; border:0; border-radius:999px; background:#2185dc; color:#fff; font:inherit; font-size:10.5px; font-weight:730; cursor:pointer; }
.ai-hypothesis-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.ai-hypothesis-action { min-height:37px; padding:0 14px; border:1px solid #dbe6ee; border-radius:999px; background:#fff; color:#3f6f96; font:inherit; font-size:11px; font-weight:720; cursor:pointer; }
.ai-hypothesis-action.primary { border-color:#2085dd; background:#2085dd; color:#fff; }
.ai-hypothesis-action.doctor { border-color:#cbddec; color:#245f8f; }
.ai-hypothesis-action:hover { background:#f5faff; }
.ai-hypothesis-action.primary:hover { background:#1678cf; }
.ai-hypothesis-empty { display:none; padding:38px 24px; color:#8190a2; font-size:12px; text-align:center; }
.ai-hypothesis-empty.active { display:block; }
.ai-hypothesis-side { position:sticky; top:18px; display:grid; gap:14px; }
.ai-hypothesis-guide,.ai-hypothesis-safety { padding:21px; border:1px solid #dfe7ee; border-radius:22px; background:#fff; }
.ai-hypothesis-guide { background:linear-gradient(145deg,#f8fbff,#eef6fc); }
.ai-hypothesis-guide h2,.ai-hypothesis-safety h2 { margin:0; color:#20334a; font-size:18px; }
.ai-hypothesis-guide > p,.ai-hypothesis-safety p { margin:8px 0 16px; color:#75889c; font-size:12px; line-height:1.55; }
.ai-hypothesis-guide ol { display:grid; gap:12px; margin:0 0 18px; padding:0; list-style:none; counter-reset:hypothesis-guide; }
.ai-hypothesis-guide li { position:relative; min-height:27px; padding-left:36px; color:#52667d; font-size:11.5px; line-height:1.45; counter-increment:hypothesis-guide; }
.ai-hypothesis-guide li::before { content:counter(hypothesis-guide); position:absolute; top:0; left:0; display:grid; width:25px; height:25px; place-items:center; border-radius:9px; background:#fff; color:#2380cc; font-size:10.5px; font-weight:760; }
.ai-hypothesis-side-button { width:100%; min-height:42px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:12px; font-weight:730; cursor:pointer; }
@media(max-width:900px){.ai-hypothesis-layout{grid-template-columns:1fr}.ai-hypothesis-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.ai-hypothesis-summary{grid-template-columns:1fr}.ai-hypothesis-side,.ai-hypothesis-details{grid-template-columns:1fr}.ai-hypothesis-item-top{align-items:flex-start;flex-direction:column}.ai-hypothesis-list-head{padding:20px}.ai-hypothesis-filters{padding-right:20px;padding-left:20px}.ai-hypothesis-item{padding:20px}}

/* Health Memory states */
.health-memory-preview-switch { opacity:.8; transform:scale(.92); transform-origin:right center; }
.health-memory-preview-switch button { white-space:nowrap; }
.health-memory-preview-switch:hover,.health-memory-preview-switch:focus-within { opacity:1; }
.health-memory-state[hidden] { display:none; }
.health-memory-accumulated { display:grid; gap:18px; }
.hm-accumulated-hero { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:30px; padding:30px 32px; border:1px solid #dbe7ef; border-radius:26px; background:linear-gradient(130deg,#f8fcff 0%,#eef7fd 55%,#e8f3fc 100%); overflow:hidden; position:relative; }
.hm-accumulated-hero::after { content:""; position:absolute; right:-90px; bottom:-155px; width:330px; height:330px; border:1px solid rgba(84,155,211,.16); border-radius:50%; background:rgba(255,255,255,.22); }
.hm-accumulated-copy { position:relative; z-index:1; }
.hm-accumulated-kicker { margin:0 0 10px; color:#2481cc; font-size:10.5px; font-weight:760; letter-spacing:.08em; text-transform:uppercase; }
.hm-accumulated-copy h2 { max-width:720px; margin:0; color:#1d3046; font-size:27px; line-height:1.15; letter-spacing:-.035em; }
.hm-accumulated-copy > p { max-width:760px; margin:12px 0 22px; color:#6f8297; font-size:13px; line-height:1.6; }
.hm-accumulated-meta { display:flex; flex-wrap:wrap; gap:8px; }
.hm-accumulated-meta span { display:inline-flex; min-height:31px; align-items:center; padding:0 11px; border:1px solid rgba(74,139,191,.14); border-radius:999px; background:rgba(255,255,255,.72); color:#526b83; font-size:10.5px; font-weight:680; }
.hm-memory-mark { position:relative; z-index:1; display:grid; width:148px; height:148px; place-content:center; align-self:center; border:1px solid rgba(56,135,198,.18); border-radius:50%; background:rgba(255,255,255,.66); text-align:center; box-shadow:inset 0 0 0 10px rgba(39,137,213,.05); }
.hm-memory-mark strong { color:#1d79c5; font-size:34px; line-height:1; letter-spacing:-.05em; }
.hm-memory-mark span { max-width:92px; margin-top:7px; color:#6f8297; font-size:10px; line-height:1.3; }
.hm-accumulated-grid { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:18px; align-items:start; }
.hm-accumulated-main,.hm-accumulated-side { display:grid; gap:18px; }
.hm-accumulated-side { position:sticky; top:18px; }
.hm-memory-card { overflow:hidden; border:1px solid #dfe7ee; border-radius:23px; background:#fff; }
.hm-memory-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:22px 24px 17px; }
.hm-memory-card-head h2 { margin:0; color:#1f3248; font-size:19px; letter-spacing:-.025em; }
.hm-memory-card-head p { margin:6px 0 0; color:#8493a4; font-size:11.5px; line-height:1.45; }
.hm-memory-link { min-height:33px; padding:0 12px; border:1px solid #dbe6ee; border-radius:999px; background:#fff; color:#2a78b8; font:inherit; font-size:10.5px; font-weight:700; cursor:pointer; }
.hm-context-list { border-top:1px solid #e9eef2; }
.hm-context-row { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:14px; align-items:center; padding:17px 24px; border-top:1px solid #e9eef2; }
.hm-context-row:first-child { border-top:0; }
.hm-context-icon { display:grid; width:42px; height:42px; place-items:center; border-radius:14px; background:#edf6fd; color:#2b83ca; }
.hm-context-icon svg { width:21px; height:21px; stroke-width:1.8; }
.hm-context-copy b { display:block; color:#263a50; font-size:13px; }
.hm-context-copy p { max-width:650px; margin:4px 0 0; color:#7b8da0; font-size:11.5px; line-height:1.45; }
.hm-context-status { min-height:28px; padding:0 10px; border-radius:999px; background:#eef7f2; color:#31805f; font-size:10px; font-weight:720; line-height:28px; white-space:nowrap; }
.hm-context-status.attention { background:#fff6e7; color:#946716; }
.hm-context-status.observation { background:#eef5fc; color:#39739f; }
.hm-timeline { padding:0 24px 22px; }
.hm-timeline-item { position:relative; display:grid; grid-template-columns:74px 12px minmax(0,1fr); gap:12px; padding:0 0 18px; }
.hm-timeline-item:last-child { padding-bottom:0; }
.hm-timeline-item::after { content:""; position:absolute; top:13px; bottom:-1px; left:91px; width:1px; background:#e1e9ef; }
.hm-timeline-item:last-child::after { display:none; }
.hm-timeline-date { padding-top:1px; color:#8796a7; font-size:10.5px; font-weight:680; text-align:right; }
.hm-timeline-dot { position:relative; z-index:1; width:10px; height:10px; margin-top:3px; border:3px solid #e8f4fd; border-radius:50%; background:#2a85cf; box-sizing:content-box; }
.hm-timeline-copy { padding:0 0 1px; }
.hm-timeline-copy b { display:block; color:#2a3d52; font-size:12.5px; }
.hm-timeline-copy span { display:block; margin-top:4px; color:#7d8da0; font-size:11px; line-height:1.45; }
.hm-composition { padding:21px; }
.hm-composition h2,.hm-gaps h2 { margin:0 0 8px; color:#20344a; font-size:17px; }
.hm-composition > p,.hm-gaps > p { margin:0 0 16px; color:#7e8fa1; font-size:11.5px; line-height:1.5; }
.hm-composition-list { display:grid; gap:4px; }
.hm-composition-row { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:39px; border-bottom:1px solid #edf1f4; color:#607389; font-size:11.5px; }
.hm-composition-row:last-child { border-bottom:0; }
.hm-composition-row strong { color:#263b52; font-size:13px; }
.hm-memory-discuss { width:100%; min-height:42px; margin-top:16px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:11.5px; font-weight:730; cursor:pointer; }
.hm-topics { overflow:hidden; }
.hm-topics-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:22px 24px 18px; }
.hm-topics-head h2 { margin:0; color:#20344a; font-size:19px; letter-spacing:-.025em; }
.hm-topics-head p { max-width:520px; margin:6px 0 0; color:#8191a2; font-size:11.5px; line-height:1.45; }
.hm-memory-search { position:relative; width:190px; flex:0 0 190px; }
.hm-memory-search svg { position:absolute; top:50%; left:12px; width:15px; height:15px; color:#8a99a9; transform:translateY(-50%); }
.hm-memory-search input { width:100%; height:38px; padding:0 13px 0 35px; border:1px solid #dfe7ee; border-radius:999px; background:#f8fafc; color:#2b4056; font:inherit; font-size:10.5px; outline:none; }
.hm-memory-search input:focus { border-color:#9bc8e7; box-shadow:0 0 0 3px rgba(32,133,221,.07); }
.hm-topic-list { border-top:1px solid #e8edf1; }
.hm-topic { border-top:1px solid #e8edf1; }
.hm-topic:first-child { border-top:0; }
.hm-topic[hidden] { display:none; }
.hm-topic-row { display:grid; grid-template-columns:42px minmax(0,1fr) 126px 18px; gap:14px; align-items:center; width:100%; min-height:82px; padding:14px 22px; border:0; background:#fff; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.hm-topic-row:hover { background:#fbfcfd; }
.hm-topic-mark { display:grid; width:42px; height:42px; place-items:center; border:1px solid #d7e8f4; border-radius:14px; background:#eef7fd; color:#267fc7; font-size:10.5px; font-weight:800; }
.hm-topic-copy,.hm-topic-meta { min-width:0; }
.hm-topic-copy b,.hm-topic-copy small,.hm-topic-meta strong,.hm-topic-meta small { display:block; }
.hm-topic-copy b { color:#283d53; font-size:13.5px; line-height:1.3; }
.hm-topic-copy small { margin-top:4px; overflow:hidden; color:#7e8fa2; font-size:10.5px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.hm-topic-meta { text-align:right; white-space:nowrap; }
.hm-topic-meta strong { color:#526a81; font-size:10.5px; }
.hm-topic-meta small { margin-top:4px; color:#93a0ad; font-size:9px; }
.hm-topic-row > svg { width:17px; height:17px; color:#7f91a3; transition:transform .18s ease; }
.hm-topic.expanded .hm-topic-row > svg { transform:rotate(180deg); }
.hm-topic.expanded .hm-topic-row { background:#fafdff; }
.hm-topic-detail { padding:0 22px 18px 78px; background:#fafdff; }
.hm-topic-detail[hidden] { display:none; }
.hm-memory-records { overflow:hidden; border:1px solid #dfe8ef; border-radius:15px; background:#fff; }
.hm-memory-record { display:grid; grid-template-columns:34px minmax(0,1fr) auto 16px; align-items:center; width:100%; min-height:64px; padding:10px 14px; border:0; border-top:1px solid #e8edf1; background:#fff; color:inherit; font:inherit; text-align:left; cursor:pointer; }
.hm-memory-record:first-child { border-top:0; }
.hm-memory-record:hover { background:#f5faff; }
.hm-memory-record-mark { display:grid; place-items:center; width:28px; height:28px; border-radius:9px; background:#edf6ff; color:#237ed1; font-size:9px; font-weight:800; letter-spacing:.01em; }
.hm-memory-record-copy,.hm-memory-record-source { min-width:0; }
.hm-memory-record-copy b,.hm-memory-record-copy span,.hm-memory-record-source strong,.hm-memory-record-source small { display:block; }
.hm-memory-record-copy b { color:#243b53; font-size:11px; line-height:1.35; }
.hm-memory-record-copy span { margin-top:3px; color:#778a9d; font-size:9.5px; line-height:1.35; }
.hm-memory-record-source { max-width:180px; padding-left:20px; text-align:right; }
.hm-memory-record-source strong { color:#61778d; font-size:9.5px; font-weight:700; }
.hm-memory-record-source small { margin-top:3px; color:#98a5b1; font-size:8.5px; }
.hm-memory-record > svg { width:14px; height:14px; color:#8fa1b1; stroke-width:1.7; }
.hm-topic-record-note { margin:9px 2px 0; color:#8b99a7; font-size:9px; }
.hm-topic-empty { margin:0; padding:30px 24px; border-top:1px solid #e8edf1; color:#8796a6; font-size:11.5px; text-align:center; }
.hm-focus { padding:24px; }
.hm-focus-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.hm-focus-head > div > span { display:block; margin-bottom:8px; color:#2580c9; font-size:10px; font-weight:780; letter-spacing:.065em; text-transform:uppercase; }
.hm-focus-head h2 { max-width:560px; margin:0; color:#1f3349; font-size:21px; line-height:1.28; letter-spacing:-.025em; }
.hm-focus-head > strong { display:inline-flex; min-height:29px; align-items:center; flex:0 0 auto; padding:0 10px; border-radius:999px; background:#fff5e5; color:#956718; font-size:9.5px; font-weight:760; white-space:nowrap; }
.hm-focus-summary { max-width:650px; margin:11px 0 18px; color:#74879b; font-size:11.5px; line-height:1.5; }
.hm-focus-evidence { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:hidden; border:1px solid #e2e9ef; border-radius:17px; background:#fafcfd; }
.hm-focus-evidence > div { min-width:0; padding:15px 16px; border-left:1px solid #e2e9ef; }
.hm-focus-evidence > div:first-child { border-left:0; }
.hm-focus-evidence small,.hm-focus-evidence b,.hm-focus-evidence span { display:block; }
.hm-focus-evidence small { color:#8796a6; font-size:9.5px; }
.hm-focus-evidence b { margin-top:6px; color:#2a4057; font-size:13px; line-height:1.25; }
.hm-focus-evidence span { margin-top:4px; color:#8393a4; font-size:9.5px; line-height:1.35; }
.hm-focus-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:18px; }
.hm-focus-action { min-height:39px; padding:0 15px; border:1px solid #d7e5ef; border-radius:999px; background:#fff; color:#3173a5; font:inherit; font-size:10.5px; font-weight:730; cursor:pointer; }
.hm-focus-action.primary { border-color:#2085dd; background:#2085dd; color:#fff; }
.hm-recent { padding:0; }
.hm-recent-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:20px 22px 16px; }
.hm-recent-head h2 { margin:0; color:#20344a; font-size:17px; letter-spacing:-.02em; }
.hm-recent-head span { color:#8a98a7; font-size:9.5px; }
.hm-recent-list { border-top:1px solid #e8edf1; }
.hm-recent-row { display:grid; grid-template-columns:82px minmax(0,1fr); gap:15px; padding:15px 22px; border-top:1px solid #e8edf1; }
.hm-recent-row:first-child { border-top:0; }
.hm-recent-row time { padding-top:1px; color:#8392a3; font-size:10px; font-weight:680; }
.hm-recent-row b,.hm-recent-row span { display:block; }
.hm-recent-row b { color:#2b4056; font-size:12px; line-height:1.35; }
.hm-recent-row span { margin-top:3px; color:#8493a4; font-size:10px; line-height:1.35; }
.hm-gaps { padding:21px; background:linear-gradient(145deg,#fffdf8,#fff8eb); }
.hm-gap-list { display:grid; gap:10px; margin-top:14px; }
.hm-gap-item { display:grid; grid-template-columns:8px minmax(0,1fr); gap:10px; color:#61748a; font-size:11px; line-height:1.45; }
.hm-gap-item::before { content:""; width:7px; height:7px; margin-top:4px; border-radius:50%; background:#e7a83b; }
.hm-memory-note { padding:15px 18px; border:1px solid #dfe8ef; border-radius:18px; background:#f8fafc; color:#77899c; font-size:10.5px; line-height:1.5; }
.hm-current { padding:23px 24px 24px; }
.hm-current-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.hm-current-head h2,.hm-connections-head h2 { margin:0; color:#20344a; font-size:19px; letter-spacing:-.025em; }
.hm-current-head p,.hm-connections-head p { margin:6px 0 0; color:#8191a2; font-size:11.5px; line-height:1.45; }
.hm-current-updated { display:inline-flex; min-height:30px; align-items:center; padding:0 10px; border-radius:999px; background:#edf6fd; color:#297cc0; font-size:9.5px; font-weight:730; white-space:nowrap; }
.hm-current-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; }
.hm-current-block { min-width:0; padding:17px; border:1px solid #e1e9ef; border-radius:17px; background:#fafcfd; }
.hm-current-block > small { display:block; margin-bottom:12px; color:#74899d; font-size:9.5px; font-weight:790; letter-spacing:.055em; text-transform:uppercase; }
.hm-current-list { display:grid; gap:11px; }
.hm-current-item { padding-bottom:10px; border-bottom:1px solid #e8eef2; }.hm-current-item:last-child{padding-bottom:0;border-bottom:0}
.hm-current-item b { display:block; color:#2c4359; font-size:12px; line-height:1.3; }.hm-current-item span { display:block; margin-top:3px; color:#8293a4; font-size:9.5px; line-height:1.35; }
.hm-current-item em { color:#237ec4; font-style:normal; font-weight:760; }
.hm-current-block.context { background:linear-gradient(145deg,#fbfcfd,#f3f8fb); }
.hm-current-link { display:inline-flex; min-height:30px; align-items:center; margin-top:13px; padding:0 11px; border:1px solid #d7e5ee; border-radius:999px; background:#fff; color:#3278aa; font:inherit; font-size:9.5px; font-weight:730; cursor:pointer; }
.hm-connections { padding:23px 24px 24px; }
.hm-connections-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:16px; }
.hm-connections-list { display:grid; gap:10px; }
.hm-connection { display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:13px; align-items:center; min-height:82px; padding:14px 15px; border:1px solid #dfe8ef; border-radius:17px; background:#fbfcfd; }
.hm-connection-mark { display:grid; width:40px; height:40px; place-items:center; border-radius:13px; background:#eaf5fc; color:#2481ca; font-size:11px; font-weight:820; }
.hm-connection-copy b { display:block; color:#2b4157; font-size:12.5px; line-height:1.35; }.hm-connection-copy p { margin:4px 0 0; color:#7b8ea1; font-size:10.5px; line-height:1.45; }
.hm-connection-status { min-height:28px; padding:0 10px; border-radius:999px; background:#edf7f2; color:#388365; font-size:9px; font-weight:750; line-height:28px; white-space:nowrap; }
.hm-connection-status.needs { background:#fff5e6; color:#956818; }
.hm-connections-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:15px; padding-top:15px; border-top:1px solid #e8eef2; }
.hm-connections-footer p { max-width:560px; margin:0; color:#7d8fa1; font-size:10px; line-height:1.45; }
.hm-hypotheses-link { min-height:35px; padding:0 14px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:10px; font-weight:750; white-space:nowrap; cursor:pointer; }
@media(max-width:760px){.hm-current-grid{grid-template-columns:1fr}.hm-current-head,.hm-connections-head,.hm-connections-footer{align-items:flex-start;flex-direction:column}.hm-connection{grid-template-columns:40px minmax(0,1fr)}.hm-connection-status{grid-column:2;justify-self:start}}

@media(max-width:900px){.hm-accumulated-grid{grid-template-columns:1fr}.hm-accumulated-side{position:static;grid-template-columns:1fr}.health-memory-preview-switch{transform:none}}
@media(max-width:620px){.view-health-memory .page-head{gap:18px}.view-health-memory .topbar-right{width:100%;justify-content:space-between}.hm-accumulated-hero{grid-template-columns:1fr;padding:22px 20px}.hm-memory-mark{display:none}.hm-accumulated-side{grid-template-columns:1fr}.hm-topics-head{flex-direction:column;padding:20px}.hm-memory-search{width:100%;flex-basis:auto}.hm-topic-row{grid-template-columns:38px minmax(0,1fr) 16px;padding:14px 18px}.hm-topic-mark{width:38px;height:38px}.hm-topic-meta{display:none}.hm-topic-detail{padding:0 18px 18px}.hm-memory-record{grid-template-columns:32px minmax(0,1fr) 14px;padding:11px 12px}.hm-memory-record-source{grid-column:2;padding:3px 0 0;text-align:left}.hm-memory-record>svg{grid-column:3;grid-row:1 / span 2}.health-memory-preview-switch button{padding:0 9px;font-size:10px}}

/* Analyses */
.view-analyses { padding-bottom:44px; }
.view-analyses .page-head { margin-bottom:22px; }
.analysis-head-actions { display:flex; align-items:center; gap:10px; }
.analysis-upload-top { min-height:44px; padding:0 20px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:12.5px; font-weight:740; cursor:pointer; }
.analysis-upload-top:hover { background:#1678cf; }
.analysis-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.analysis-summary-card { min-height:112px; padding:20px 22px; border:1px solid #dfe7ee; border-radius:20px; background:#fff; }
.analysis-summary-card span { display:block; margin-bottom:12px; color:#8190a2; font-size:11px; font-weight:680; }
.analysis-summary-card strong { color:#1c2d42; font-size:27px; line-height:1; letter-spacing:-.04em; }
.analysis-summary-card small { display:block; margin-top:8px; color:#8997a7; font-size:10.5px; line-height:1.4; }
.analysis-summary-card.attention { background:linear-gradient(145deg,#fffdf9,#fff8ed); }
.analysis-summary-card.attention strong { color:#9b6b19; }
.analysis-layout { display:grid; grid-template-columns:minmax(0,1fr) 276px; gap:18px; align-items:start; }
.analysis-results { overflow:hidden; border:1px solid #dfe7ee; border-radius:23px; background:#fff; }
.analysis-results-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 24px 17px; }
.analysis-results-head h2 { margin:0; color:#1b2c41; font-size:19px; letter-spacing:-.025em; }
.analysis-results-head p { margin:5px 0 0; color:#8a98a8; font-size:11.5px; }
.analysis-search { position:relative; width:210px; flex:0 0 210px; }
.analysis-search svg { position:absolute; top:50%; left:13px; width:15px; height:15px; color:#8c9aaa; transform:translateY(-50%); }
.analysis-search input { width:100%; height:39px; padding:0 14px 0 36px; border:1px solid #dfe7ee; border-radius:999px; background:#f8fafc; color:#26394f; font:inherit; font-size:11.5px; outline:none; }
.analysis-search input:focus { border-color:#9bc8ea; box-shadow:0 0 0 3px rgba(32,133,221,.08); }
.analysis-filters { display:flex; gap:7px; padding:0 24px 17px; overflow-x:auto; scrollbar-width:none; }
.analysis-filters::-webkit-scrollbar { display:none; }
.analysis-filter { min-height:34px; padding:0 14px; border:1px solid #e0e7ed; border-radius:999px; background:#fff; color:#748498; font:inherit; font-size:11px; font-weight:680; white-space:nowrap; cursor:pointer; }
.analysis-filter.active { border-color:#d4e7f6; background:#eaf5fd; color:#1978c7; }
.analysis-result-list { border-top:1px solid #e8edf2; }
.analysis-result { border-top:1px solid #e8edf2; }
.analysis-result:first-child { border-top:0; }
.analysis-result[hidden] { display:none; }
.analysis-result-row { display:grid; grid-template-columns:38px minmax(0,1fr) minmax(118px,.42fr) minmax(126px,.44fr) 20px; align-items:center; gap:15px; width:100%; min-height:82px; padding:15px 22px; border:0; background:#fff; color:inherit; font:inherit; text-align:left; cursor:pointer; transition:background .16s ease; }
.analysis-result-row:hover { background:#fbfcfd; }
.analysis-result-mark { display:grid; width:38px; height:38px; place-items:center; border:1px solid #d9e8f4; border-radius:12px; background:#f2f8fc; color:#2683cf; }
.analysis-result-mark svg { width:18px; height:18px; stroke-width:1.7; }
.analysis-result-mark.vitamin { border-color:#dce8ce; background:#f5f9ef; color:#729746; }
.analysis-result-mark.inflammation { border-color:#f1d9dc; background:#fff5f5; color:#cf6272; }
.analysis-result-copy { min-width:0; }
.analysis-result-copy b { display:-webkit-box; overflow:hidden; color:#273a51; font-size:13.5px; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.analysis-result-copy small { display:block; margin-top:5px; color:#8a98a8; font-size:10.5px; line-height:1.35; }
.analysis-result-value strong { display:block; color:#293d54; font-size:13px; line-height:1.25; }
.analysis-result-value span { display:block; margin-top:4px; color:#94a0ae; font-size:10px; line-height:1.35; }
.analysis-result-state { display:inline-flex; width:max-content; max-width:100%; align-items:center; gap:6px; color:#31845e; font-size:10.5px; font-weight:700; white-space:nowrap; }
.analysis-result-state::before { content:""; width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:#49af7b; }
.analysis-result-state.attention { color:#9a6b1b; }
.analysis-result-state.attention::before { background:#e2a83e; }
.analysis-result-state.high { color:#b75566; }
.analysis-result-state.high::before { background:#dc6879; }
.analysis-result-chevron { width:17px; height:17px; color:#8997a7; transition:transform .18s ease; }
.analysis-result.open .analysis-result-chevron { transform:rotate(180deg); }
.analysis-result-details { display:none; grid-template-columns:minmax(0,1fr) auto; gap:18px; margin:0 22px 15px 75px; padding:14px 16px; border-radius:14px; background:#f6f9fb; }
.analysis-result.open .analysis-result-details { display:grid; }
.analysis-result-details p { margin:0; color:#6f8093; font-size:10.5px; line-height:1.55; }
.analysis-result-details button { align-self:center; border:0; background:transparent; color:#1979c8; font:inherit; font-size:10.5px; font-weight:720; cursor:pointer; white-space:nowrap; }
.analysis-empty { display:none; padding:38px 24px; color:#8190a2; font-size:12px; text-align:center; }
.analysis-empty.active { display:block; }
.analysis-side { display:grid; gap:14px; }
.analysis-upload-card,.analysis-help-card { border:1px solid #dfe7ee; border-radius:22px; background:#fff; }
.analysis-upload-card { padding:22px; background:linear-gradient(145deg,#f8fbff,#eef6fc); }
.analysis-upload-icon { display:grid; width:42px; height:42px; place-items:center; margin-bottom:17px; border-radius:14px; background:#fff; color:#2085dd; }
.analysis-upload-icon svg { width:20px; height:20px; stroke-width:1.7; }
.analysis-upload-card h2,.analysis-help-card h2 { margin:0; color:#20334a; font-size:16px; letter-spacing:-.02em; }
.analysis-upload-card p { margin:9px 0 18px; color:#75889c; font-size:11.5px; line-height:1.55; }
.analysis-upload-card button { width:100%; min-height:40px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:11.5px; font-weight:740; cursor:pointer; }
.analysis-upload-card small { display:block; margin-top:11px; color:#93a0af; font-size:9.5px; line-height:1.45; text-align:center; }
.analysis-help-card { padding:20px 22px; }
.analysis-help-list { display:grid; gap:12px; margin-top:16px; }
.analysis-help-list span { display:grid; grid-template-columns:20px 1fr; gap:9px; align-items:start; color:#718397; font-size:10.5px; line-height:1.45; }
.analysis-help-list i { display:grid; width:20px; height:20px; place-items:center; border-radius:7px; background:#eef5fa; color:#397fb6; font-style:normal; font-size:9px; font-weight:800; }
.analysis-export { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 4px 0; color:#78899b; font-size:10.5px; }
.analysis-export button { display:inline-flex; align-items:center; gap:6px; border:0; background:transparent; color:#3b709e; font:inherit; font-size:10.5px; font-weight:700; cursor:pointer; }
.analysis-export svg { width:14px; height:14px; }
@media(max-width:900px){.analysis-layout{grid-template-columns:1fr}.analysis-side{grid-template-columns:repeat(2,minmax(0,1fr))}.analysis-export{grid-column:1/-1}}
@media(max-width:700px){.analysis-summary{grid-template-columns:1fr}.analysis-results-head{align-items:flex-start;flex-direction:column}.analysis-search{width:100%;flex-basis:auto}.analysis-result-row{grid-template-columns:34px minmax(0,1fr) 18px;gap:12px;padding:14px 18px}.analysis-result-mark{width:34px;height:34px}.analysis-result-value,.analysis-result-state{grid-column:2}.analysis-result-chevron{grid-column:3;grid-row:1}.analysis-result-details{grid-template-columns:1fr;margin-left:64px}.analysis-side{grid-template-columns:1fr}.analysis-head-actions{width:100%}.analysis-upload-top{width:100%}}

/* Examinations */
.view-examinations { padding-bottom:44px; }
.view-examinations .page-head { margin-bottom:22px; }
.examination-head-actions { display:flex; align-items:center; gap:10px; }
.examination-upload-top { min-height:44px; padding:0 20px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:12.5px; font-weight:740; cursor:pointer; }
.examination-upload-top:hover { background:#1678cf; }
.examination-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.examination-summary-card { min-height:112px; padding:20px 22px; border:1px solid #dfe7ee; border-radius:20px; background:#fff; }
.examination-summary-card span { display:block; margin-bottom:12px; color:#8190a2; font-size:11px; font-weight:680; }
.examination-summary-card strong { color:#1c2d42; font-size:27px; line-height:1; letter-spacing:-.04em; }
.examination-summary-card small { display:block; margin-top:8px; color:#8997a7; font-size:10.5px; line-height:1.4; }
.examination-summary-card.upcoming { background:linear-gradient(145deg,#f8fbff,#eef6fc); }
.examination-summary-card.upcoming strong { color:#1978c7; }
.examination-layout { display:grid; grid-template-columns:minmax(0,1fr) 276px; gap:18px; align-items:start; }
.examination-results { overflow:hidden; border:1px solid #dfe7ee; border-radius:23px; background:#fff; }
.examination-results-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 24px 17px; }
.examination-results-head h2 { margin:0; color:#1b2c41; font-size:19px; letter-spacing:-.025em; }
.examination-results-head p { margin:5px 0 0; color:#8a98a8; font-size:11.5px; }
.examination-search { position:relative; width:210px; flex:0 0 210px; }
.examination-search svg { position:absolute; top:50%; left:13px; width:15px; height:15px; color:#8c9aaa; transform:translateY(-50%); }
.examination-search input { width:100%; height:39px; padding:0 14px 0 36px; border:1px solid #dfe7ee; border-radius:999px; background:#f8fafc; color:#26394f; font:inherit; font-size:11.5px; outline:none; }
.examination-search input:focus { border-color:#9bc8ea; box-shadow:0 0 0 3px rgba(32,133,221,.08); }
.examination-filters { display:flex; gap:7px; padding:0 24px 17px; overflow-x:auto; scrollbar-width:none; }
.examination-filters::-webkit-scrollbar { display:none; }
.examination-filter { min-height:34px; padding:0 14px; border:1px solid #e0e7ed; border-radius:999px; background:#fff; color:#748498; font:inherit; font-size:11px; font-weight:680; white-space:nowrap; cursor:pointer; }
.examination-filter.active { border-color:#d4e7f6; background:#eaf5fd; color:#1978c7; }
.examination-list { border-top:1px solid #e8edf2; }
.examination-item { border-top:1px solid #e8edf2; }
.examination-item:first-child { border-top:0; }
.examination-item[hidden] { display:none; }
.examination-row { display:grid; grid-template-columns:38px minmax(0,1fr) minmax(105px,.34fr) minmax(130px,.42fr) 20px; align-items:center; gap:15px; width:100%; min-height:82px; padding:15px 22px; border:0; background:#fff; color:inherit; font:inherit; text-align:left; cursor:pointer; transition:background .16s ease; }
.examination-row:hover { background:#fbfcfd; }
.examination-mark { display:grid; width:38px; height:38px; place-items:center; border:1px solid #d9e8f4; border-radius:12px; background:#f2f8fc; color:#2683cf; }
.examination-mark svg { width:19px; height:19px; stroke-width:1.65; }
.examination-mark.mri { border-color:#deddf1; background:#f5f4fb; color:#706eb2; }
.examination-mark.functional { border-color:#d8ebe4; background:#f2faf7; color:#36906d; }
.examination-mark.endoscopy { border-color:#ebe1d5; background:#fbf7f1; color:#a67a45; }
.examination-copy { min-width:0; }
.examination-copy b { display:-webkit-box; overflow:hidden; color:#273a51; font-size:13.5px; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.examination-copy small { display:block; margin-top:5px; color:#8a98a8; font-size:10.5px; line-height:1.35; }
.examination-date strong { display:block; color:#293d54; font-size:12px; line-height:1.25; }
.examination-date span { display:block; margin-top:4px; color:#94a0ae; font-size:10px; line-height:1.35; }
.examination-state { display:inline-flex; width:max-content; max-width:100%; align-items:center; gap:6px; color:#31845e; font-size:10.5px; font-weight:700; white-space:nowrap; }
.examination-state::before { content:""; width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:#49af7b; }
.examination-state.scheduled { color:#1978c7; }
.examination-state.scheduled::before { background:#3f98df; }
.examination-chevron { width:17px; height:17px; color:#8997a7; transition:transform .18s ease; }
.examination-item.open .examination-chevron { transform:rotate(180deg); }
.examination-details { display:none; grid-template-columns:minmax(0,1fr) auto; gap:18px; margin:0 22px 15px 75px; padding:14px 16px; border-radius:14px; background:#f6f9fb; }
.examination-item.open .examination-details { display:grid; }
.examination-details p { margin:0; color:#6f8093; font-size:10.5px; line-height:1.55; }
.examination-details button { align-self:center; border:0; background:transparent; color:#1979c8; font:inherit; font-size:10.5px; font-weight:720; cursor:pointer; white-space:nowrap; }
.examination-empty { display:none; padding:38px 24px; color:#8190a2; font-size:12px; text-align:center; }
.examination-empty.active { display:block; }
.examination-side { position:sticky; top:18px; display:grid; gap:14px; }
.examination-add-card,.examination-upcoming-card,.examination-info-card { border:1px solid #dfe7ee; border-radius:22px; background:#fff; }
.examination-add-card { padding:22px; background:linear-gradient(145deg,#f8fbff,#eef6fc); }
.examination-side-icon { display:grid; width:42px; height:42px; place-items:center; margin-bottom:17px; border-radius:14px; background:#fff; color:#2085dd; }
.examination-side-icon svg { width:20px; height:20px; stroke-width:1.7; }
.examination-side h2 { margin:0; color:#20334a; font-size:16px; letter-spacing:-.02em; }
.examination-add-card p { margin:9px 0 18px; color:#75889c; font-size:11.5px; line-height:1.55; }
.examination-add-card button { width:100%; min-height:40px; border:0; border-radius:999px; background:#2085dd; color:#fff; font:inherit; font-size:11.5px; font-weight:740; cursor:pointer; }
.examination-add-card small { display:block; margin-top:11px; color:#93a0af; font-size:9.5px; line-height:1.45; text-align:center; }
.examination-upcoming-card { padding:20px 22px; }
.examination-upcoming-date { display:flex; align-items:center; gap:10px; margin-top:16px; }
.examination-upcoming-date time { display:grid; width:45px; height:45px; place-items:center; border-radius:13px; background:#eef6fc; color:#1978c7; font-size:10px; font-weight:750; line-height:1.1; text-align:center; }
.examination-upcoming-date time b { display:block; font-size:17px; }
.examination-upcoming-date span { color:#718397; font-size:10.5px; line-height:1.45; }
.examination-upcoming-date strong { display:block; margin-bottom:2px; color:#30445b; font-size:11.5px; }
.examination-upcoming-card button { margin-top:15px; padding:0; border:0; background:transparent; color:#1979c8; font:inherit; font-size:10.5px; font-weight:720; cursor:pointer; }
.examination-info-card { padding:20px 22px; }
.examination-info-list { display:grid; gap:11px; margin-top:15px; }
.examination-info-list span { display:flex; align-items:center; gap:9px; color:#718397; font-size:10.5px; line-height:1.4; }
.examination-info-list span::before { content:""; width:6px; height:6px; flex:0 0 6px; border-radius:50%; background:#72afe0; }
@media(max-width:900px){.examination-layout{grid-template-columns:1fr}.examination-side{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.examination-info-card{grid-column:1/-1}}
@media(max-width:700px){.examination-summary{grid-template-columns:1fr}.examination-results-head{align-items:flex-start;flex-direction:column}.examination-search{width:100%;flex-basis:auto}.examination-row{grid-template-columns:34px minmax(0,1fr) 18px;gap:12px;padding:14px 18px}.examination-mark{width:34px;height:34px}.examination-date,.examination-state{grid-column:2}.examination-chevron{grid-column:3;grid-row:1}.examination-details{grid-template-columns:1fr;margin-left:64px}.examination-side{grid-template-columns:1fr}.examination-info-card{grid-column:auto}.examination-head-actions{width:100%}.examination-upload-top{width:100%}}

/* Sport and nutrition */
.view-sport-beauty { padding-bottom: 42px; }
.sport-page-head { margin-bottom: 24px; }
.sport-page-head .page-title p { max-width: 620px; }
.sport-ai-button { min-height: 44px; padding: 0 21px; border: 1px solid #cae0f2; border-radius: 999px; background: #fff; color: #1876c4; font: inherit; font-size: 12.5px; font-weight: 740; cursor: pointer; transition: background .18s ease,border-color .18s ease; }
.sport-ai-button:hover { border-color:#9fc8e8; background:#f4f9fd; }
.sport-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.sport-category-card { position:relative; min-height:205px; overflow:hidden; padding:25px 28px 22px; border:1px solid rgba(117,148,195,.22); border-radius:24px; background:linear-gradient(112deg,#f8fcff 0%,#eaf5ff 55%,#dedaff 100%); box-shadow:0 16px 34px rgba(48,64,108,.08),inset 0 1px 0 rgba(255,255,255,.88); color:#18283d; cursor:pointer; isolation:isolate; transition:background .22s ease,border-color .22s ease; }
.sport-category-card-nutrition { background:linear-gradient(112deg,#fbfdfc 0%,#eaf7f0 54%,#d9efff 100%); }
.sport-category-card:hover { transform:none; border-color:rgba(74,136,204,.38); background:linear-gradient(112deg,#f3faff 0%,#dfefff 55%,#d4d5ff 100%); }
.sport-category-card-nutrition:hover { background:linear-gradient(112deg,#f7fcf9 0%,#ddf3e8 54%,#cfeaff 100%); }
.sport-category-card:focus-visible { outline:3px solid rgba(38,136,216,.22); outline-offset:3px; }
.sport-category-card::before { content:""; position:absolute; right:-85px; bottom:-155px; width:290px; height:290px; border:1px solid rgba(255,255,255,.55); border-radius:50%; background:rgba(255,255,255,.15); z-index:-1; }
.sport-category-kicker { display:none; }
.sport-category-card h2 { position:relative; z-index:3; max-width:55%; margin:0; color:#17273c; font-size:28px; line-height:1.08; letter-spacing:-.04em; }
.sport-category-card p { position:relative; z-index:3; max-width:52%; margin:9px 0 0; color:#75889c; font-size:12px; line-height:1.5; }
.sport-category-open { position:absolute; z-index:3; left:28px; bottom:25px; display:flex; align-items:center; gap:7px; color:#3977aa; font-size:11.5px; font-weight:720; }
.sport-category-open svg { width:15px; height:15px; }
.sport-category-card:hover .sport-category-open svg { transform:none; }
.sport-category-art { position:absolute; z-index:1; right:-18px; bottom:-22px; display:block; width:218px; height:218px; pointer-events:none; }
.sport-category-art img { display:block; width:100%; height:100%; object-fit:contain; mix-blend-mode:screen; filter:saturate(.92) drop-shadow(0 22px 24px rgba(38,80,134,.16)); }
.sport-category-card-training .sport-category-art { right:-23px; bottom:-24px; width:230px; height:230px; transform:rotate(-2deg); }
.sport-category-card-nutrition .sport-category-kicker,.sport-category-card-nutrition h2,.sport-category-card-nutrition p { max-width:46%; }
.sport-category-card-nutrition .sport-category-art { right:4px; bottom:-16px; width:200px; height:200px; }
.sport-category-card-nutrition .sport-category-art img { mix-blend-mode:normal; filter:saturate(.78) drop-shadow(0 22px 24px rgba(38,80,134,.14)); }
.sport-week { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(250px,.65fr); overflow:hidden; border:1px solid #dfe7ee; border-radius:25px; background:#fff; }
.sport-week-main { padding:28px 30px 26px; }
.sport-kicker { margin:0 0 9px; color:#72859a; font-size:11px; font-weight:760; letter-spacing:.07em; text-transform:uppercase; }
.sport-week-main h2 { max-width:600px; margin:0; color:#17263a; font-size:25px; line-height:1.24; letter-spacing:-.035em; }
.sport-week-main > p { max-width:610px; margin:11px 0 23px; color:#7b8da0; font-size:13px; line-height:1.55; }
.sport-week-progress { display:grid; gap:8px; }
.sport-week-progress-copy { display:flex; justify-content:space-between; gap:16px; color:#7c8da0; font-size:11.5px; }
.sport-week-progress-copy b { color:#2f455e; font-size:12px; }
.sport-week-progress-line { height:7px; overflow:hidden; border-radius:999px; background:#eaf0f4; }
.sport-week-progress-line i { display:block; width:68%; height:100%; border-radius:inherit; background:#2788da; }
.sport-readiness { display:flex; flex-direction:column; padding:28px; border-left:1px solid #e4ebf1; background:#f5f9fc; }
.sport-readiness h3 { margin:0; color:#20334a; font-size:16px; letter-spacing:-.02em; }
.sport-readiness-value { display:flex; align-items:baseline; gap:8px; margin:16px 0 17px; color:#17263a; }
.sport-readiness-value strong { font-size:33px; line-height:1; letter-spacing:-.045em; }
.sport-readiness-value span { color:#74879b; font-size:12px; }
.sport-readiness-facts { display:grid; gap:9px; margin-top:auto; }
.sport-readiness-facts span { display:flex; justify-content:space-between; gap:14px; padding-top:9px; border-top:1px solid #e0e9f0; color:#8292a4; font-size:11.5px; }
.sport-readiness-facts b { color:#395069; font-weight:690; }
.sport-main-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(270px,.65fr); gap:18px; margin-top:18px; align-items:start; }
.sport-panel { overflow:hidden; border:1px solid #dfe7ee; border-radius:23px; background:#fff; }
.sport-panel-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:23px 26px 19px; }
.sport-panel-head h2 { margin:0; color:#19293e; font-size:18px; letter-spacing:-.025em; }
.sport-panel-head p { margin:5px 0 0; color:#8a98a9; font-size:11.5px; }
.sport-day-list { border-top:1px solid #e8edf2; }
.sport-entry-actions { display:flex; flex-wrap:wrap; gap:9px; padding:0 25px 20px; }
.sport-empty { display:grid; gap:5px; padding:28px 25px; color:#8292a4; font-size:12px; line-height:1.5; }
.sport-empty b { color:#314961; font-size:14px; }
.sport-day-row { display:grid; grid-template-columns:38px minmax(0,1fr) auto; align-items:center; gap:15px; min-height:82px; padding:16px 25px; border-top:1px solid #e8edf2; }
.sport-day-row:first-child { border-top:0; }
.sport-day-mark { display:grid; width:38px; height:38px; place-items:center; border:1px solid #d6e7f4; border-radius:12px; background:#f1f7fc; color:#2384d4; }
.sport-day-mark.green { border-color:#d5eadf; background:#f1f9f5; color:#309267; }
.sport-day-mark svg { width:18px; height:18px; stroke-width:1.7; }
.sport-day-copy b { display:block; color:#2b4058; font-size:14px; line-height:1.35; }
.sport-day-copy span { display:block; margin-top:4px; color:#8897a8; font-size:11.5px; line-height:1.4; }
.sport-row-action { min-height:38px; padding:0 16px; border:1px solid #d6e5f1; border-radius:999px; background:#fff; color:#2779bc; font:inherit; font-size:11.5px; font-weight:720; white-space:nowrap; cursor:pointer; }
.sport-row-action.primary { border-color:#2688d8; background:#2688d8; color:#fff; }
.sport-balance { padding-bottom:22px; }
.sport-balance-list { display:grid; gap:18px; padding:2px 25px 22px; }
.sport-balance-item { display:grid; gap:8px; }
.sport-balance-copy { display:flex; justify-content:space-between; gap:12px; color:#718397; font-size:11.5px; }
.sport-balance-copy b { color:#314961; font-size:12px; }
.sport-balance-line { height:6px; overflow:hidden; border-radius:999px; background:#eaf0f4; }
.sport-balance-line i { display:block; width:var(--balance); height:100%; border-radius:inherit; background:#2b8bda; }
.sport-balance-item.nutrition .sport-balance-line i { background:#55a87c; }
.sport-balance-item.recovery .sport-balance-line i { background:#7d8fa4; }
.sport-balance-note { margin:0 25px; padding:15px 16px; border-radius:15px; background:#f4f8fb; color:#6f8296; font-size:11.5px; line-height:1.5; }
.sport-programs { margin-top:24px; }
.sport-section-title { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:13px; }
.sport-section-title h2 { margin:0; color:#19293e; font-size:20px; letter-spacing:-.025em; }
.sport-section-title p { margin:5px 0 0; color:#8a98a9; font-size:12px; }
.sport-program-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.sport-program { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:20px; padding:23px 25px; border:1px solid #dfe7ee; border-radius:22px; background:#fff; }
.sport-program-tag { display:inline-flex; margin-bottom:12px; color:#72869b; font-size:10.5px; font-weight:760; letter-spacing:.06em; text-transform:uppercase; }
.sport-program h3 { margin:0; color:#24384f; font-size:16px; line-height:1.3; letter-spacing:-.02em; }
.sport-program p { margin:7px 0 17px; color:#8392a4; font-size:11.5px; line-height:1.5; }
.sport-program-progress { display:grid; gap:7px; }
.sport-program-progress span { color:#718397; font-size:10.5px; }
.sport-program-progress i { display:block; width:100%; height:6px; overflow:hidden; border-radius:999px; background:#eaf0f4; }
.sport-program-progress i::after { content:""; display:block; width:var(--program-progress); height:100%; border-radius:inherit; background:#2688d8; }
.sport-program.nutrition .sport-program-progress i::after { background:#55a87c; }
.sport-program-arrow { display:grid; width:32px; height:32px; place-items:center; align-self:center; border-radius:50%; background:#f2f6f9; color:#8393a5; }
.sport-program-arrow svg { width:15px; height:15px; }
@media(max-width:900px){.sport-category-grid,.sport-week,.sport-main-grid{grid-template-columns:1fr}.sport-readiness{border-top:1px solid #e4ebf1;border-left:0}.sport-program-grid{grid-template-columns:1fr}}
@media(max-width:620px){.sport-page-head{align-items:flex-start;flex-direction:column}.sport-page-head .topbar-right{width:100%}.sport-ai-button{width:100%}.sport-category-card{min-height:194px;padding:22px 21px 19px}.sport-category-kicker,.sport-category-card h2,.sport-category-card p{max-width:58%}.sport-category-card-nutrition .sport-category-kicker,.sport-category-card-nutrition h2,.sport-category-card-nutrition p{max-width:49%}.sport-category-card h2{font-size:25px}.sport-category-open{left:21px;bottom:19px}.sport-category-card-training .sport-category-art{right:-35px;bottom:-22px;width:205px;height:205px}.sport-category-card-nutrition .sport-category-art{right:-7px;bottom:-10px;width:178px;height:178px}.sport-week-main,.sport-readiness{padding:23px 20px}.sport-week-main h2{font-size:22px}.sport-panel-head{padding:21px 20px 17px}.sport-entry-actions{padding-right:20px;padding-left:20px}.sport-day-row{grid-template-columns:34px minmax(0,1fr);gap:13px;padding:15px 20px}.sport-day-mark{width:34px;height:34px;border-radius:11px}.sport-row-action{grid-column:2;justify-self:start}.sport-program{padding:21px 20px}.sport-balance-list{padding-right:20px;padding-left:20px}.sport-balance-note{margin-right:20px;margin-left:20px}}

@media (max-width: 980px) {
  body.bios-embedded-chat .main:has(> .view-ai-chat.active) { padding: 22px 18px; }
  body.bios-embedded-chat .view-ai-chat .chat-workspace { grid-template-columns: 1fr; }
  body.bios-embedded-chat .view-ai-chat .chat-insights-stack { display: none; }
}

/* Account deletion — quiet, explicit and consistent with current settings pages. */
body.bios-live .view-account-delete .privacy-head { max-width:780px; margin-bottom:30px; }
body.bios-live .view-account-delete .privacy-head .back-link { margin-bottom:20px; }
body.bios-live .view-account-delete .privacy-head .back-link svg { margin-left:-4px; }
body.bios-live .view-account-delete .privacy-head h1 { margin:0 0 10px -6px; padding-inline-start:0 !important; color:#142238; font-size:clamp(32px,2.5vw,40px); line-height:1.08; letter-spacing:-.04em; }
body.bios-live .view-account-delete .privacy-head p { max-width:680px; margin:0; color:#7a8ba0; font-size:15px; line-height:1.55; }
body.bios-live .main > .view-account-delete .delete-layout { grid-template-columns:minmax(0,1fr) 322px; gap:20px; align-items:start; }
body.bios-live .view-account-delete .privacy-main { gap:24px; }
body.bios-live .view-account-delete .privacy-group > h2 { margin:0 0 12px; color:#25384f; font-size:18px; line-height:1.25; letter-spacing:-.025em; }
body.bios-live .view-account-delete .privacy-list { overflow:hidden; border:1px solid #dfe7ee; border-radius:22px; background:#fff; box-shadow:0 18px 42px -38px rgba(35,72,108,.34); }
body.bios-live .view-account-delete .privacy-row { grid-template-columns:minmax(0,1fr); min-height:76px; gap:0; padding:16px 22px; cursor:default; }
body.bios-live .view-account-delete .privacy-row:hover { background:#fff; }
body.bios-live .view-account-delete .privacy-row .step-icon { display:none; }
body.bios-live .view-account-delete .privacy-row b { display:block; margin-bottom:4px; color:#273b52; font-size:14px; letter-spacing:-.01em; }
body.bios-live .view-account-delete .privacy-row p { color:#8191a3; font-size:11.5px; line-height:1.45; }
body.bios-live .view-account-delete .download-row { grid-template-columns:minmax(0,1fr) auto; gap:18px; margin:0; padding:18px 20px; border:1px solid #d9e7f1; border-radius:22px; background:linear-gradient(145deg,#f8fcff 0%,#eff7fc 100%); box-shadow:none; }
body.bios-live .view-account-delete .download-row .step-icon { display:none; }
body.bios-live .view-account-delete .download-row b { margin-bottom:5px; color:#2b4057; font-size:13.5px; }
body.bios-live .view-account-delete .download-row p { color:#8292a3; font-size:11.5px; }
body.bios-live .view-account-delete .download-row .btn-outline { min-height:42px; padding:0 18px; border-color:#cbdde9; border-radius:13px; color:#256da7; background:#fff; font-size:11.5px; }
body.bios-live .view-account-delete .danger-box { margin:0 0 12px; overflow:hidden; border:1px solid #efd9dc; border-radius:22px; background:#fff; box-shadow:none; }
body.bios-live .view-account-delete .danger-head { grid-template-columns:auto minmax(0,1fr); gap:14px; padding:18px 20px; border-color:#f1dadd; background:#fff7f7; }
body.bios-live .view-account-delete .danger-head svg { width:24px; height:24px; color:#ce5260; }
body.bios-live .view-account-delete .danger-head b { margin-bottom:5px; color:#a8414d; font-size:13.5px; }
body.bios-live .view-account-delete .danger-head p { color:#82767a; font-size:11.5px; line-height:1.5; }
body.bios-live .view-account-delete .confirm-box { padding:18px 20px 20px; }
body.bios-live .view-account-delete .confirm-box label { color:#56697e; font-size:11.5px; }
body.bios-live .view-account-delete .confirm-box input { height:44px; border-color:#dce4eb; border-radius:12px; color:#263b52; background:#fbfcfd; font-size:13px; }
body.bios-live .view-account-delete .delete-actions { display:flex; gap:10px; justify-content:flex-end; }
body.bios-live .view-account-delete .delete-actions :is(.btn-outline,.btn-danger) { min-height:44px; padding:0 20px; border-radius:13px; font-size:12px; }
body.bios-live .view-account-delete .btn-danger { min-width:190px; background:#d65361; box-shadow:none; }
body.bios-live .view-account-delete .btn-danger:disabled { color:#9b8e91; background:#eee8e9; cursor:not-allowed; }
body.bios-live .main > .view-account-delete .delete-summary-card { position:sticky; top:24px; display:block; min-height:0; padding:23px; border:1px solid #dfe7ee; border-radius:22px; background:#fff; box-shadow:0 22px 48px -40px rgba(34,77,118,.42); }
body.bios-live .view-account-delete .delete-status { display:inline-flex; min-height:27px; align-items:center; padding:0 10px; border-radius:999px; color:#a64b55; background:#fff2f3; font-size:10px; font-weight:760; letter-spacing:.025em; }
body.bios-live .view-account-delete .delete-summary-card h2 { margin:17px 0 8px; color:#1d3047; font-size:21px; line-height:1.2; letter-spacing:-.035em; }
body.bios-live .view-account-delete .delete-summary-card > p { margin:0; color:#7e8ea0; font-size:11.5px; line-height:1.55; }
body.bios-live .view-account-delete .delete-summary-list { display:grid; margin-top:20px; border-top:1px solid #e6ecf1; }
body.bios-live .view-account-delete .delete-summary-list div { display:flex; justify-content:space-between; gap:14px; padding:13px 0; border-bottom:1px solid #e6ecf1; }
body.bios-live .view-account-delete .delete-summary-list b { color:#40566d; font-size:11px; }
body.bios-live .view-account-delete .delete-summary-list span { color:#8392a3; font-size:10.5px; font-weight:650; text-align:right; }
body.bios-live .view-account-delete .delete-support-box { margin-top:18px; padding:16px; border-radius:16px; background:#f4f8fb; }
body.bios-live .view-account-delete .delete-support-box b { display:block; margin-bottom:5px; color:#344b62; font-size:12px; }
body.bios-live .view-account-delete .delete-support-box p { margin:0 0 12px; color:#8191a2; font-size:10.5px; line-height:1.45; }
body.bios-live .view-account-delete .delete-support-link { margin:0; color:#2378ba; font-size:11px; }
@media (max-width:900px) { body.bios-live .main > .view-account-delete .delete-layout { grid-template-columns:1fr; } body.bios-live .main > .view-account-delete .delete-summary-card { position:static; } }
@media (max-width:620px) { body.bios-live .view-account-delete .privacy-head h1 { font-size:30px; } body.bios-live .view-account-delete .download-row { grid-template-columns:1fr; } body.bios-live .view-account-delete .download-row .btn-outline { width:100%; justify-content:center; } body.bios-live .view-account-delete .delete-actions { flex-direction:column-reverse; } body.bios-live .view-account-delete .delete-actions :is(.btn-outline,.btn-danger) { width:100%; justify-content:center; } }

/* Data export — aligned with the current settings child-page language. */
body.bios-live .view-data-export .privacy-head { max-width:760px; margin-bottom:30px; }
body.bios-live .view-data-export .privacy-head .back-link { margin-bottom:20px; }
body.bios-live .view-data-export .privacy-head h1 { margin:0 0 10px; color:#142238; font-size:clamp(34px,3vw,46px); line-height:1.06; letter-spacing:-.045em; }
body.bios-live .view-data-export .privacy-head p { max-width:660px; margin:0; color:#7a8ba0; font-size:15px; line-height:1.55; }
body.bios-live .main > .view-data-export .export-layout { grid-template-columns:minmax(0,1fr) 322px; gap:20px; }
body.bios-live .view-data-export .export-layout .privacy-main { gap:18px; }
body.bios-live .view-data-export .export-panel { overflow:hidden; padding:0; border:1px solid #dfe7ee; border-radius:22px; background:#fff; box-shadow:0 18px 42px -38px rgba(35,72,108,.34); }
body.bios-live .view-data-export .export-panel-head { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:82px; padding:18px 22px; }
body.bios-live .view-data-export .export-panel-kicker { display:block; margin-bottom:5px; color:#2681ce; font-size:10.5px; font-weight:780; letter-spacing:.075em; text-transform:uppercase; }
body.bios-live .view-data-export .export-panel-head h2 { margin:0; color:#1b2c42; font-size:18px; line-height:1.25; letter-spacing:-.025em; }
body.bios-live .view-data-export .export-list-actions { flex:none; gap:8px; padding:0; }
body.bios-live .view-data-export .export-list-actions button { min-height:34px; padding:0 12px; border:1px solid #dce7ef; border-radius:999px; color:#3977aa; background:#f8fbfd; font-size:11px; font-weight:720; }
body.bios-live .view-data-export .export-list-actions button:hover { border-color:#c6ddeb; background:#eff7fc; }
body.bios-live .view-data-export .privacy-list { overflow:hidden; border:0; border-top:1px solid #e7edf2; border-radius:0; }
body.bios-live .view-data-export .export-row { grid-template-columns:minmax(0,1fr) auto; min-height:74px; gap:18px; padding:13px 22px; border-color:#e8edf2; cursor:pointer; transition:background .18s ease; }
body.bios-live .view-data-export .export-row:hover { background:#f8fbfd; }
body.bios-live .view-data-export .export-row .step-icon { display:none; }
body.bios-live .view-data-export .export-row .step-icon svg { width:19px; height:19px; stroke-width:1.75; }
body.bios-live .view-data-export .export-row b { margin-bottom:4px; color:#273b52; font-size:14px; letter-spacing:-.01em; }
body.bios-live .view-data-export .export-row p { color:#8393a5; font-size:11.5px; }
body.bios-live .view-data-export .check-square { width:20px; height:20px; border-color:#cbd9e5; border-radius:6px; }
body.bios-live .view-data-export .check-square.checked { border-color:#2586d5; background:#2586d5; }
body.bios-live .view-data-export .check-square svg { width:13px; height:13px; }
body.bios-live .view-data-export .format-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0 22px 22px; }
body.bios-live .view-data-export .format-card { min-height:82px; padding:14px; border-radius:14px; cursor:pointer; transition:border-color .18s ease,background .18s ease; }
body.bios-live .view-data-export .format-card:hover { border-color:#c8dce9; background:#f9fcfe; }
body.bios-live .view-data-export .format-card.active,
body.bios-live .view-data-export .format-card.active:hover { border-color:#c8dce9 !important; background:#f9fcfe !important; box-shadow:none !important; }
body.bios-live .view-data-export .format-dot { width:17px; height:17px; border-color:#2786d3; }
body.bios-live .view-data-export .format-dot::after { width:7px; height:7px; background:#2786d3; }
body.bios-live .view-data-export .format-card b { margin-bottom:7px; color:#294058; font-size:13px; }
body.bios-live .view-data-export .format-card p { color:#8393a5; font-size:10.5px; font-weight:620; }
body.bios-live .view-data-export .export-layout > aside { gap:14px; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; }
body.bios-live .view-data-export :is(.export-summary,.export-delivery) { overflow:visible; border:1px solid #dce6ed; border-radius:22px; background:#fff; box-shadow:0 22px 48px -40px rgba(34,77,118,.42); }
body.bios-live .view-data-export .export-summary { padding:22px 22px 18px; }
body.bios-live .view-data-export .export-summary h2 { margin-bottom:5px; color:#1d3047; font-size:17px; letter-spacing:-.025em; }
body.bios-live .view-data-export .export-summary-intro { margin:0 0 18px; color:#8696a8; font-size:11px; line-height:1.45; }
body.bios-live .view-data-export .summary-items { gap:0; padding-bottom:14px; border-color:#dfe8ef; }
body.bios-live .view-data-export .summary-item { grid-template-columns:minmax(0,1fr) auto; gap:12px; min-height:37px; }
body.bios-live .view-data-export .summary-item .mini-icon { display:none; }
body.bios-live .view-data-export .summary-item b { color:#3c5269; font-size:11.5px; font-weight:690; }
body.bios-live .view-data-export .summary-item span { color:#8090a1; font-size:10.5px; font-weight:650; }
body.bios-live .view-data-export .summary-meta { gap:0; padding:12px 0 0; border:0; }
body.bios-live .view-data-export .summary-meta div { align-items:baseline; min-height:31px; color:#8191a3; font-size:10.5px; font-weight:650; }
body.bios-live .view-data-export .summary-meta b { max-width:145px; color:#32485f; font-size:11px; text-align:right; }
body.bios-live .view-data-export .export-delivery { padding:19px 22px 22px; }
body.bios-live .view-data-export .export-delivery h2 { margin-bottom:12px; color:#42576d; font-size:12px; letter-spacing:-.01em; }
body.bios-live .view-data-export .delivery-picker { position:relative; }
body.bios-live .view-data-export .delivery-select { grid-template-columns:minmax(0,1fr) auto; width:100%; padding:14px; border-color:#d8e4ed; border-radius:14px; color:inherit; background:#fff; font:inherit; text-align:left; cursor:pointer; transition:border-color .18s ease,box-shadow .18s ease; }
body.bios-live .view-data-export .delivery-select:hover,
body.bios-live .view-data-export .delivery-picker.open .delivery-select { border-color:#a9cfe9; box-shadow:0 0 0 3px rgba(39,133,209,.08); }
body.bios-live .view-data-export .delivery-select b { color:#32485f; font-size:11.5px; }
body.bios-live .view-data-export .delivery-select p { overflow:hidden; color:#8191a3; font-size:10.5px; text-overflow:ellipsis; white-space:nowrap; }
body.bios-live .view-data-export .delivery-select .chev { color:#62788e; transition:transform .18s ease; }
body.bios-live .view-data-export .delivery-picker.open .delivery-select .chev { transform:rotate(180deg); }
body.bios-live .view-data-export .delivery-menu { display:grid; margin-top:8px; padding:6px; border:1px solid #d8e4ed; border-radius:14px; background:#fff; box-shadow:0 18px 32px -24px rgba(31,68,103,.42); }
body.bios-live .view-data-export .delivery-menu[hidden] { display:none; }
body.bios-live .view-data-export .delivery-option { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; width:100%; padding:10px 11px; border:0; border-radius:10px; color:#32485f; background:transparent; font:inherit; text-align:left; cursor:pointer; }
body.bios-live .view-data-export .delivery-option:hover { background:#f2f8fc; }
body.bios-live .view-data-export .delivery-option.selected { background:#edf7fd; }
body.bios-live .view-data-export .delivery-option b { display:block; font-size:11.5px; }
body.bios-live .view-data-export .delivery-option > div span { display:block; margin-top:3px; color:#8191a3; font-size:10px; line-height:1.35; }
body.bios-live .view-data-export .delivery-option svg { width:15px; height:15px; align-self:center; color:#2785d1; opacity:0; }
body.bios-live .view-data-export .delivery-option.selected svg { opacity:1; }
body.bios-live .view-data-export .export-cta { min-height:48px; margin-top:12px; border-radius:14px; font-size:12.5px; }
body.bios-live .view-data-export .export-footnote { margin:11px 4px 0; color:#8796a6; font-size:10px; }
@media (max-width:1080px) { body.bios-live .main > .view-data-export .export-layout { grid-template-columns:minmax(0,1fr) 292px; } }
@media (max-width:900px) { body.bios-live .main > .view-data-export .export-layout { grid-template-columns:1fr; } body.bios-live .view-data-export .export-layout > aside { position:static; } }
@media (max-width:620px) { body.bios-live .view-data-export .privacy-head h1 { font-size:32px; } body.bios-live .view-data-export .export-panel-head { align-items:flex-start; flex-direction:column; } body.bios-live .view-data-export .format-grid { grid-template-columns:1fr; } }

/* Collected data — informational categories, not navigation. */
body.bios-live .view-collected-data .privacy-head { max-width:820px; margin-bottom:30px; }
body.bios-live .view-collected-data .privacy-head .back-link { margin-bottom:20px; }
body.bios-live .view-collected-data .privacy-head h1 { margin:0 0 10px; color:#142238; font-size:clamp(34px,3vw,46px); line-height:1.06; letter-spacing:-.045em; }
body.bios-live .view-collected-data .privacy-head p { max-width:760px; margin:0; color:#7a8ba0; font-size:15px; line-height:1.55; }
body.bios-live .main > .view-collected-data .privacy-layout { grid-template-columns:minmax(0,1fr) 322px; gap:20px; }
body.bios-live .view-collected-data .privacy-main { gap:18px; }
body.bios-live .view-collected-data .privacy-group > h2 { margin:0 0 12px; color:#25384f; font-size:18px; line-height:1.25; letter-spacing:-.025em; }
body.bios-live .view-collected-data .privacy-list { overflow:hidden; border:1px solid #dfe7ee; border-radius:22px; background:#fff; box-shadow:0 18px 42px -38px rgba(35,72,108,.34); }
body.bios-live .view-collected-data .privacy-row { grid-template-columns:auto minmax(0,1fr); min-height:76px; gap:16px; padding:13px 20px; cursor:default; }
body.bios-live .view-collected-data .privacy-row:hover { background:#fff; }
body.bios-live .view-collected-data .privacy-row .chev { display:none; }
body.bios-live .view-collected-data .privacy-row .step-icon { width:40px; height:40px; border:1px solid #d9e8f4; border-radius:13px; color:#347fbe; background:#f0f7fc; }
body.bios-live .view-collected-data .privacy-row .step-icon svg { width:19px; height:19px; stroke-width:1.75; }
body.bios-live .view-collected-data .privacy-row b { display:block; margin-bottom:4px; color:#273b52; font-size:14px; letter-spacing:-.01em; }
body.bios-live .view-collected-data .privacy-row p { color:#8191a3; font-size:11.5px; line-height:1.45; }
body.bios-live .main > .view-collected-data .privacy-card.collected-summary-card { position:sticky; top:24px; display:flex; min-height:0; margin-top:34px; padding:23px; border:1px solid #d9e6ef; border-radius:22px; background:linear-gradient(145deg,#f8fcff 0%,#eef6fc 100%); box-shadow:0 22px 48px -40px rgba(34,77,118,.42); }
body.bios-live .view-collected-data .collected-summary-mark { display:grid; width:44px; height:44px; margin:0 0 18px; place-items:center; border:1px solid #d2e5f3; border-radius:14px; color:#2784d0; background:rgba(255,255,255,.74); }
body.bios-live .view-collected-data .collected-summary-mark svg { width:21px; height:21px; stroke-width:1.75; }
body.bios-live .view-collected-data .collected-summary-kicker { margin-bottom:7px; color:#2780c9; font-size:10.5px; font-weight:780; letter-spacing:.075em; text-transform:uppercase; }
body.bios-live .main > .view-collected-data .collected-summary-card > h2 { margin:0 0 9px; color:#1e3148; font-size:18px; line-height:1.25; letter-spacing:-.025em !important; }
body.bios-live .main > .view-collected-data .collected-summary-card > p { margin:0 0 20px; color:#718397; font-size:11.5px; line-height:1.55; }
body.bios-live .view-collected-data .collected-purpose-list { display:flex; width:100%; flex-direction:column; gap:0; border-top:1px solid #dce7ef; }
body.bios-live .view-collected-data .collected-purpose-item { display:grid; grid-template-columns:25px minmax(0,1fr); gap:11px; padding:14px 0; border-bottom:1px solid #dce7ef; }
body.bios-live .view-collected-data .collected-purpose-number { display:grid; width:25px; height:25px; place-items:center; border-radius:8px; color:#2781cc; background:#e3f1fb; font-size:9.5px; font-weight:780; }
body.bios-live .view-collected-data .collected-purpose-item b { display:block; margin-bottom:3px; color:#344b63; font-size:11.5px; font-weight:720; line-height:1.35; }
body.bios-live .view-collected-data .collected-purpose-item p { margin:0; color:#77899b; font-size:10.5px; line-height:1.45; }
body.bios-live .view-collected-data .collected-control-note { width:100%; margin-top:17px; padding:13px 14px; border:1px solid #dbe7ef; border-radius:14px; color:#60758b; background:rgba(255,255,255,.68); font-size:10.5px; line-height:1.5; }
body.bios-live .view-collected-data .collected-control-note b { color:#36516c; font-weight:740; }
body.bios-live .view-collected-data .safe-note { gap:15px; padding:18px 20px; border-color:#dce7ef; border-radius:18px; background:#f5f9fc; }
body.bios-live .view-collected-data .safe-note .step-icon { width:38px; height:38px; border:1px solid #d9e8f4; border-radius:12px; color:#347fbe; background:#fff; }
body.bios-live .view-collected-data .safe-note h3 { color:#2c4057; font-size:13px; }
body.bios-live .view-collected-data .safe-note p { color:#718397; font-size:11.5px; line-height:1.5; }
@media (max-width:1080px) { body.bios-live .main > .view-collected-data .privacy-layout { grid-template-columns:minmax(0,1fr) 292px; } }
@media (max-width:900px) { body.bios-live .main > .view-collected-data .privacy-layout { grid-template-columns:1fr; } body.bios-live .main > .view-collected-data .privacy-card.collected-summary-card { position:static; margin-top:0; } }
@media (max-width:620px) { body.bios-live .view-collected-data .privacy-head h1 { font-size:32px; } body.bios-live .view-collected-data .privacy-row { align-items:start; padding:15px 17px; } }

/* Settings descendants — final cascade lock after legacy and page-specific CSS. */
body.bios-live .view-backup .privacy-head {
  max-width:760px;
  margin-bottom:24px;
}
body.bios-live .view-backup .privacy-head h1 {
  margin-left:-3px !important;
  font-size:34px !important;
  line-height:1.08 !important;
}
body.bios-live .view-backup .privacy-head p {
  max-width:700px;
  font-size:13px;
}
body.bios-live .main > .view-backup .backup-layout {
  grid-template-columns:minmax(0,1fr) 306px;
  gap:18px;
}
body.bios-live .view-backup .backup-section > h2 {
  margin:0 0 10px;
  font-size:16px;
}
body.bios-live .view-backup .backup-overview {
  display:block;
  padding:20px;
  border-radius:20px;
}
body.bios-live .view-backup .backup-overview-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-bottom:17px;
}
body.bios-live .view-backup .backup-overview-title {
  display:flex;
  min-width:0;
  align-items:center;
  gap:13px;
}
body.bios-live .view-backup .backup-cloud {
  display:grid;
  width:42px;
  height:42px;
  flex:0 0 42px;
  place-items:center;
  border:1px solid #d5e7f4;
  border-radius:13px;
  color:#2783cf;
  background:#f0f7fc;
}
body.bios-live .view-backup .backup-cloud svg {
  width:21px;
  height:21px;
  stroke-width:1.75;
}
body.bios-live .view-backup .backup-overview-kicker {
  display:block;
  margin-bottom:4px;
  color:#2a80c7;
  font-size:9.5px;
  font-weight:780;
  letter-spacing:.055em;
  text-transform:uppercase;
}
body.bios-live .view-backup .backup-overview-title h3 {
  margin:0;
  color:#263a51;
  font-size:14px;
  font-weight:690;
  line-height:1.3;
  letter-spacing:-.012em;
}
body.bios-live .view-backup .backup-state-pill {
  display:inline-flex;
  min-height:28px;
  align-items:center;
  padding:0 11px;
  border-radius:999px;
  color:#2d8964;
  background:#edf8f3;
  font-size:10.5px;
  font-weight:720;
}
body.bios-live .view-backup .backup-facts {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
body.bios-live .view-backup .backup-fact {
  min-width:0;
  padding:13px 14px;
  border-radius:13px;
  background:#f5f8fb;
}
body.bios-live .view-backup .backup-fact small {
  display:block;
  margin:0 0 5px;
  color:#8796a6;
  font-size:9.5px;
  font-weight:620;
}
body.bios-live .view-backup .backup-fact b {
  color:#385068;
  font-size:11px;
  font-weight:680;
  line-height:1.35;
}
body.bios-live .view-backup .backup-action {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid #e5ecf1;
  text-align:left;
}
body.bios-live .view-backup .backup-action p {
  margin:0;
  color:#718398;
  font-size:10.5px;
  font-weight:600;
}
body.bios-live .view-backup .backup-action .btn-primary {
  width:auto;
  min-height:40px;
  padding:0 18px;
  border-radius:999px;
  font-size:11px;
  white-space:nowrap;
}
body.bios-live .view-backup .backup-card:not(.backup-overview) {
  border-radius:20px;
}
body.bios-live .view-backup .backup-row {
  min-height:68px;
  padding:12px 17px;
}
body.bios-live .view-backup .backup-row .step-icon {
  width:36px;
  height:36px;
  border-radius:12px;
}
body.bios-live .view-backup .backup-row .step-icon svg {
  width:17px;
  height:17px;
}
body.bios-live .view-backup .backup-row b {
  margin-bottom:3px;
  font-size:12.5px;
}
body.bios-live .view-backup .backup-row p {
  font-size:10.5px;
}
body.bios-live .view-backup .backup-contents .backup-row {
  grid-template-columns:minmax(0,1fr) auto;
  padding-left:18px;
}
body.bios-live .view-backup .backup-contents .backup-row .step-icon {
  display:none;
}
body.bios-live .view-backup .backup-contents .family-add {
  min-height:42px;
  color:#277fc9;
  font-size:11px;
}
body.bios-live .view-backup .restore-row {
  grid-template-columns:auto minmax(0,1fr) auto;
}
body.bios-live .view-backup .restore-row .btn-outline {
  min-height:38px;
  padding:0 16px;
  border-radius:999px;
  font-size:10.5px;
}
body.bios-live .main > .view-backup .backup-summary-card {
  margin-top:26px;
  padding:21px;
  border-color:#d9e6ef;
  border-radius:20px;
  background:linear-gradient(145deg,#f9fcfe 0%,#f1f8fd 100%);
}
body.bios-live .view-backup .backup-summary-mark {
  display:grid;
  width:40px;
  height:40px;
  margin-bottom:16px;
  place-items:center;
  border:1px solid #d5e7f4;
  border-radius:13px;
  color:#2783cf;
  background:rgba(255,255,255,.75);
}
body.bios-live .view-backup .backup-summary-mark svg {
  width:20px;
  height:20px;
  stroke-width:1.7;
}
body.bios-live .view-backup .backup-summary-kicker {
  display:block;
  margin-bottom:6px;
  color:#2b80c7;
  font-size:9.5px;
  font-weight:780;
  letter-spacing:.065em;
  text-transform:uppercase;
}
body.bios-live .main > .view-backup .backup-summary-card > h2 {
  margin:0 0 8px;
  font-size:17px;
}
body.bios-live .main > .view-backup .backup-summary-card > p {
  margin:0 0 15px;
  font-size:10.5px;
}
body.bios-live .view-backup .backup-summary-list {
  width:100%;
  border-top:1px solid #dfe9f0;
}
body.bios-live .view-backup .backup-summary-list > div {
  padding:12px 0;
  border-bottom:1px solid #dfe9f0;
}
body.bios-live .view-backup .backup-summary-list b,
body.bios-live .view-backup .backup-summary-list span {
  display:block;
}
body.bios-live .view-backup .backup-summary-list b {
  margin-bottom:3px;
  color:#3d556d;
  font-size:10.5px;
  font-weight:710;
}
body.bios-live .view-backup .backup-summary-list span {
  color:#7c8da0;
  font-size:9.5px;
  line-height:1.4;
}
body.bios-live .main > .view-backup .backup-summary-card > .link {
  margin-top:16px;
  font-size:10.5px;
}

body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head {
  max-width:820px;
  margin-bottom:30px;
}
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head .back-link {
  margin:0 0 20px;
  padding:0;
  color:#25384f;
  font-size:13px;
  font-weight:720;
}
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head .back-link svg {
  width:17px;
  height:17px;
  margin-left:-3px;
}
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head h1 {
  margin:0 0 10px -4px !important;
  padding-inline-start:0 !important;
  color:#142238;
  font-size:clamp(32px,2.5vw,40px) !important;
  font-weight:650 !important;
  line-height:1.08 !important;
  letter-spacing:-.04em !important;
}
body.bios-live .main > :is(
  .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
  .view-permissions, .view-grant-access, .view-security, .view-backup,
  .view-data-export, .view-account-delete
) .privacy-head p {
  max-width:760px;
  margin:0;
  color:#7a8ba0;
  font-size:15px;
  font-weight:500;
  line-height:1.55;
}

body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-layout {
  grid-template-columns:minmax(0,1fr) 322px;
  gap:20px;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-main { gap:20px; }
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-list,
body.bios-live .view-access-history .history-card,
body.bios-live .view-backup .backup-card,
body.bios-live .view-grant-access :is(.grant-recipient,.grant-permission-list) {
  border-color:#dfe7ee;
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 42px -38px rgba(35,72,108,.34);
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-group > h2,
body.bios-live .view-backup .backup-section > h2,
body.bios-live .view-grant-access .grant-step > h2 {
  margin:0 0 12px;
  color:#25384f;
  font-size:18px;
  font-weight:680;
  line-height:1.25;
  letter-spacing:-.025em;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-permissions, .view-grant-access, .view-security
) .privacy-row {
  min-height:76px;
  gap:16px;
  padding:13px 20px;
  border-color:#e7edf2;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-card {
  padding:23px;
  border:1px solid #d9e6ef;
  border-radius:22px;
  background:linear-gradient(145deg,#f9fcfe 0%,#f2f8fc 100%);
  box-shadow:0 22px 48px -40px rgba(34,77,118,.42);
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-card > svg:first-child {
  width:42px;
  height:42px;
  margin-bottom:17px;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-card > h2 {
  margin-bottom:8px;
  color:#1e3148;
  font-size:18px;
  font-weight:680;
  line-height:1.25;
}
body.bios-live .main > :is(
  .view-privacy, .view-data-use, .view-access-history, .view-permissions,
  .view-grant-access, .view-security, .view-backup
) .privacy-card > p {
  margin-bottom:18px;
  color:#718397;
  font-size:11.5px;
  line-height:1.55;
}
body.bios-live .view-access-history .history-control {
  height:42px;
  border-color:#dce6ed;
  border-radius:13px;
  color:#455a70;
  font-size:11.5px;
  font-weight:650;
}
body.bios-live .view-access-history .history-card,
body.bios-live .view-backup .backup-card { overflow:hidden; }
body.bios-live .view-access-history .history-row,
body.bios-live .view-backup .backup-row {
  min-height:72px;
  padding:13px 18px;
  border-color:#e7edf2;
}
body.bios-live .view-grant-access .grant-type {
  border-color:#dfe7ee;
  border-radius:18px;
  background:#fff;
  box-shadow:none;
}
body.bios-live .view-grant-access .grant-type:hover,
body.bios-live .view-grant-access .grant-type.active,
body.bios-live .view-grant-access .duration-option:hover,
body.bios-live .view-grant-access .duration-option.active {
  border-color:#c8dce9;
  color:#287fcf;
  background:#f5fafe;
  box-shadow:none;
}
body.bios-live .view-security .security-status {
  padding:5px 9px;
  border-radius:999px;
  color:#278961;
  background:#eef9f4;
  font-size:11px;
}
body.bios-live .view-security .security-value {
  color:#4f687f;
  font-size:11px;
}
body.bios-live .view-backup .backup-overview {
  gap:22px;
  padding:23px;
}
body.bios-live .view-backup .backup-cloud,
body.bios-live .view-backup .backup-cloud svg {
  width:54px;
  height:54px;
  color:#347fbe;
}

@media (max-width:1080px) {
  body.bios-live .main > :is(
    .view-privacy, .view-data-use, .view-access-history, .view-permissions,
    .view-grant-access, .view-security, .view-backup
  ) .privacy-layout { grid-template-columns:minmax(0,1fr) 292px; }
}
@media (max-width:900px) {
  body.bios-live .main > :is(
    .view-privacy, .view-data-use, .view-access-history, .view-permissions,
    .view-grant-access, .view-security, .view-backup
  ) .privacy-layout { grid-template-columns:1fr; }
}
@media (max-width:620px) {
  body.bios-live .main > :is(
    .view-privacy, .view-collected-data, .view-data-use, .view-access-history,
    .view-permissions, .view-grant-access, .view-security, .view-backup,
    .view-data-export, .view-account-delete
  ) .privacy-head h1 {
    margin-left:-2px !important;
    font-size:30px !important;
  }
}

/* Backup page — final composition override. */
body.bios-live .main > .view-backup.view-backup .privacy-head {
  max-width:760px;
  margin-bottom:24px;
}
body.bios-live .main > .view-backup.view-backup .privacy-head h1 {
  margin-left:-3px !important;
  font-size:34px !important;
}
body.bios-live .main > .view-backup.view-backup .privacy-head p {
  max-width:700px;
  font-size:13px;
}
body.bios-live .main > .view-backup.view-backup .backup-layout {
  grid-template-columns:minmax(0,1fr) 306px;
  gap:18px;
}
body.bios-live .main > .view-backup.view-backup .backup-section > h2 {
  margin:0 0 10px;
  font-size:16px;
}
body.bios-live .main > .view-backup.view-backup .backup-overview {
  display:block;
  padding:20px;
  border-radius:20px;
}
body.bios-live .main > .view-backup.view-backup .backup-cloud,
body.bios-live .main > .view-backup.view-backup .backup-cloud svg {
  width:42px;
  height:42px;
}
body.bios-live .main > .view-backup.view-backup .backup-cloud svg {
  width:21px;
  height:21px;
}
body.bios-live .main > .view-backup.view-backup .backup-summary-card {
  margin-top:26px;
  padding:21px;
  border-color:#d9e6ef;
  border-radius:20px;
  background:linear-gradient(145deg,#f9fcfe 0%,#f1f8fd 100%);
}
@media (max-width:1080px) {
  body.bios-live .main > .view-backup.view-backup .backup-layout {
    grid-template-columns:minmax(0,1fr) 280px;
  }
  body.bios-live .view-backup .backup-facts { grid-template-columns:1fr 1fr; }
  body.bios-live .view-backup .backup-fact:last-child { grid-column:1 / -1; }
}
@media (max-width:900px) {
  body.bios-live .main > .view-backup.view-backup .backup-layout { grid-template-columns:1fr; }
  body.bios-live .main > .view-backup.view-backup .backup-summary-card {
    position:static;
    margin-top:0;
  }
}
@media (max-width:620px) {
  body.bios-live .main > .view-backup.view-backup .privacy-head h1 { font-size:29px !important; }
  body.bios-live .view-backup .backup-overview-top,
  body.bios-live .view-backup .backup-action { align-items:flex-start; flex-direction:column; }
  body.bios-live .view-backup .backup-facts { grid-template-columns:1fr; }
  body.bios-live .view-backup .backup-fact:last-child { grid-column:auto; }
  body.bios-live .view-backup .backup-action .btn-primary { width:100%; }
  body.bios-live .view-backup .restore-row { grid-template-columns:1fr; }
}

/* Security page — compact current-style layout and interactive controls. */
body.bios-live .main > .view-security.view-security .privacy-head {
  max-width:760px;
  margin-bottom:24px;
}
body.bios-live .main > .view-security.view-security .privacy-head h1 {
  margin-left:-3px !important;
  font-size:34px !important;
}
body.bios-live .main > .view-security.view-security .privacy-head p {
  max-width:680px;
  font-size:13px;
}
body.bios-live .main > .view-security.view-security .privacy-layout {
  grid-template-columns:minmax(0,1fr) 306px;
  gap:18px;
}
body.bios-live .view-security .privacy-group { margin-bottom:22px; }
body.bios-live .view-security .privacy-group > h2 {
  margin:0 0 10px;
  font-size:16px;
}
body.bios-live .view-security .privacy-list {
  overflow:hidden;
  border-radius:20px;
}
body.bios-live .view-security .privacy-row {
  min-height:74px;
  padding:13px 16px;
}
body.bios-live .view-security .privacy-row .step-icon {
  width:40px;
  height:40px;
  border-radius:13px;
}
body.bios-live .view-security .privacy-row .step-icon svg { width:20px; height:20px; }
body.bios-live .view-security .privacy-row b { font-size:14px; }
body.bios-live .view-security .privacy-row p { margin-top:3px; font-size:12px; }
body.bios-live .view-security .security-value {
  color:#70849a;
  font-size:12px;
  font-weight:650;
  white-space:nowrap;
}
body.bios-live .view-security .security-action-row {
  cursor:pointer;
  transition:background-color .18s ease;
}
body.bios-live .view-security .security-action-row:hover { background:#f3f8fc; }
body.bios-live .view-security .security-action-row:focus-visible {
  outline:2px solid #7abcf2;
  outline-offset:-3px;
}
body.bios-live .view-security .security-toggle-row { grid-template-columns:auto minmax(0,1fr) auto; }
.ios-toggle {
  position:relative;
  width:46px;
  height:28px;
  padding:0;
  border:0;
  border-radius:999px;
  background:#d8e1e9;
  box-shadow:inset 0 0 0 1px rgba(37,67,96,.05);
  cursor:pointer;
  transition:background-color .2s ease;
}
.ios-toggle::after {
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(25,47,67,.22);
  transition:transform .2s ease;
}
.ios-toggle.active { background:#1682df; }
.ios-toggle.active::after { transform:translateX(18px); }
.ios-toggle:focus-visible { outline:3px solid rgba(22,130,223,.25); outline-offset:3px; }
body.bios-live .view-security .security-summary-card {
  position:sticky;
  top:20px;
  align-self:start;
  min-height:0;
  padding:22px;
  border-color:#d9e6ef;
  border-radius:20px;
  background:linear-gradient(145deg,#f9fcfe 0%,#eef7fd 100%);
}
.security-summary-mark {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:18px;
  border-radius:15px;
  color:#147ad1;
  background:#e8f4fd;
}
.security-summary-mark svg { width:23px; height:23px; stroke-width:1.7; }
.security-summary-kicker {
  color:#1675c5;
  font-size:11px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.bios-live .view-security .security-summary-card h2 {
  margin:8px 0 8px;
  font-size:21px;
  line-height:1.18;
}
body.bios-live .view-security .security-summary-card > p {
  margin:0;
  font-size:12px;
  line-height:1.55;
}
.security-summary-score {
  display:flex;
  align-items:baseline;
  gap:8px;
  margin:20px 0 12px;
  padding:14px;
  border-radius:16px;
  background:#fff;
  border:1px solid #dfeaf2;
}
.security-summary-score strong { color:#147ad1; font-size:20px; }
.security-summary-score span { color:#8192a4; font-size:11px; }
.security-summary-list { border-top:1px solid #dce7ef; }
.security-summary-list > div {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid #e3ecf2;
  font-size:12px;
}
.security-summary-list span { color:#62758a; }
.security-summary-list b { color:#268b62; font-size:11px; }
.security-summary-list b.is-off { color:#8a99a9; }
.security-summary-action {
  width:100%;
  min-height:44px;
  margin-top:16px;
  border:1px solid #cfe1ee;
  border-radius:14px;
  color:#146ab3;
  background:#fff;
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.security-summary-action:hover { background:#edf7fe; }
.security-action-modal[hidden] { display:none; }
.security-action-modal {
  position:fixed;
  inset:0;
  z-index:10020;
  display:grid;
  place-items:center;
  padding:22px;
  background:rgba(29,43,57,.35);
  backdrop-filter:blur(10px);
}
.security-action-dialog {
  position:relative;
  width:min(520px,100%);
  max-height:min(720px,calc(100vh - 44px));
  overflow:auto;
  padding:26px;
  border:1px solid #dce6ed;
  border-radius:24px;
  background:#fff;
  box-shadow:0 28px 80px rgba(25,43,58,.22);
}
.security-action-close {
  position:absolute;
  top:18px;
  right:18px;
  width:36px;
  height:36px;
  border:1px solid #dce5eb;
  border-radius:12px;
  color:#708296;
  background:#f8fafc;
  font-size:22px;
  cursor:pointer;
}
.security-action-kicker { color:#1675c5; font-size:11px; font-weight:750; letter-spacing:.08em; text-transform:uppercase; }
.security-action-dialog h2 { margin:8px 48px 7px 0; font-size:25px; line-height:1.15; }
.security-action-lead { margin:0 0 20px; color:#76899d; font-size:13px; line-height:1.5; }
.security-modal-list { overflow:hidden; border:1px solid #e0e8ee; border-radius:16px; }
.security-modal-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:62px;
  padding:12px 14px;
  border-bottom:1px solid #e7edf2;
}
.security-modal-row:last-child { border-bottom:0; }
.security-modal-row b { display:block; color:#223a52; font-size:13px; }
.security-modal-row span { display:block; margin-top:3px; color:#8192a4; font-size:11px; }
.security-modal-row em { color:#238760; font-size:11px; font-style:normal; font-weight:700; }
.security-field { display:grid; gap:7px; margin:12px 0; color:#526a80; font-size:12px; font-weight:650; }
.security-field input { width:100%; height:46px; padding:0 13px; border:1px solid #d8e3eb; border-radius:13px; font:inherit; }
.security-inline-primary,
.security-action-done { min-height:44px; padding:0 20px; border:0; border-radius:14px; color:#fff; background:#1682df; font:inherit; font-size:12px; font-weight:750; cursor:pointer; }
.security-action-footer { display:flex; justify-content:flex-end; margin-top:20px; }
@media (max-width:1080px) {
  body.bios-live .main > .view-security.view-security .privacy-layout { grid-template-columns:minmax(0,1fr) 280px; }
}
@media (max-width:900px) {
  body.bios-live .main > .view-security.view-security .privacy-layout { grid-template-columns:1fr; }
  body.bios-live .view-security .security-summary-card { position:static; }
}
@media (max-width:620px) {
  body.bios-live .main > .view-security.view-security .privacy-head h1 { font-size:29px !important; }
  body.bios-live .view-security .privacy-row { grid-template-columns:auto minmax(0,1fr) auto; }
  body.bios-live .view-security .security-value { display:none; }
  body.bios-live .view-security .security-action-row .chev { display:block; }
}

/* Privacy page — actionable access summary instead of a repeated policy card. */
body.bios-live .main > .view-privacy.view-privacy .privacy-control-card {
  position:sticky;
  top:20px;
  align-self:start;
  min-height:0;
  padding:22px;
  border-color:#d9e6ef;
  border-radius:20px;
  text-align:left;
  align-items:stretch;
  background:linear-gradient(145deg,#f9fcfe 0%,#eef7fd 100%);
}
.privacy-control-mark {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  margin-bottom:18px;
  border-radius:15px;
  color:#147ad1;
  background:#e8f4fd;
}
.privacy-control-mark svg { width:23px; height:23px; stroke-width:1.7; }
.privacy-control-kicker {
  color:#1675c5;
  font-size:11px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.bios-live .main > .view-privacy.view-privacy .privacy-control-card h2 {
  margin:8px 0 7px;
  font-size:21px;
  line-height:1.18;
  text-align:left;
}
body.bios-live .main > .view-privacy.view-privacy .privacy-control-card > p {
  margin:0;
  color:#71859a;
  font-size:12px;
  line-height:1.55;
  text-align:left;
}
.privacy-control-total {
  display:flex;
  align-items:baseline;
  gap:9px;
  margin:20px 0 12px;
  padding:15px;
  border:1px solid #dfeaf2;
  border-radius:16px;
  background:#fff;
}
.privacy-control-total strong { color:#147ad1; font-size:25px; line-height:1; }
.privacy-control-total span { color:#60758a; font-size:12px; font-weight:650; }
.privacy-control-stats {
  margin-bottom:16px;
  border-top:1px solid #dce7ef;
}
.privacy-control-stats > div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:42px;
  border-bottom:1px solid #e3ecf2;
  font-size:12px;
}
.privacy-control-stats span { color:#6f8295; }
.privacy-control-stats b { color:#283f55; font-size:11px; text-align:right; }
.privacy-control-primary,
.privacy-control-secondary {
  width:100%;
  min-height:44px;
  border-radius:14px;
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.privacy-control-primary {
  border:0;
  color:#fff;
  background:#1682df;
  box-shadow:0 8px 20px rgba(22,130,223,.16);
}
.privacy-control-primary:hover { background:#0f76cf; }
.privacy-control-secondary {
  margin-top:8px;
  border:1px solid #d2e2ed;
  color:#146ab3;
  background:#fff;
}
.privacy-control-secondary:hover { background:#eef7fd; }
.privacy-control-note {
  display:grid;
  grid-template-columns:auto 1fr;
  gap:9px;
  align-items:start;
  margin-top:16px;
  padding-top:15px;
  border-top:1px solid #dce7ef;
  color:#7b8ea1;
  font-size:10.5px;
  line-height:1.45;
}
.privacy-control-note svg { width:16px; height:16px; color:#177bcf; stroke-width:1.8; }
.privacy-policy-card { overflow:hidden; }
body.bios-live .main > .view-privacy.view-privacy .privacy-policy-card h2 {
  max-width:230px;
  margin-bottom:9px;
  font-size:20px;
}
.privacy-policy-list {
  margin:19px 0 17px;
  border-top:1px solid #dce7ef;
}
.privacy-policy-list > div {
  padding:12px 0;
  border-bottom:1px solid #e1eaf1;
}
.privacy-policy-list b {
  display:block;
  margin-bottom:3px;
  color:#385069;
  font-size:11.5px;
  line-height:1.4;
}
.privacy-policy-list span {
  display:block;
  color:#7f91a3;
  font-size:10.5px;
  line-height:1.4;
}
.privacy-policy-link {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 16px;
  border-radius:14px;
  color:#fff;
  background:#1682df;
  font-size:12px;
  font-weight:750;
  text-align:center;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(22,130,223,.14);
}
.privacy-policy-link:hover { color:#fff; background:#0f76cf; }
.privacy-policy-domain {
  display:block;
  margin-top:10px;
  color:#8394a4;
  font-size:9.5px;
  line-height:1.4;
  text-align:center;
}
@media (max-width:900px) {
  body.bios-live .main > .view-privacy.view-privacy .privacy-control-card { position:static; }
}

/* Collected data — quiet information hierarchy. */
body.bios-live .main > .view-collected-data.view-collected-data .privacy-head {
  max-width:760px;
  margin-bottom:24px;
}
body.bios-live .main > .view-collected-data.view-collected-data .privacy-head h1 {
  margin-left:-3px !important;
  font-size:34px !important;
}
body.bios-live .main > .view-collected-data.view-collected-data .privacy-head p {
  max-width:680px;
  color:#7a8da0;
  font-size:13px;
}
body.bios-live .main > .view-collected-data.view-collected-data .privacy-layout {
  grid-template-columns:minmax(0,1fr) 288px;
  gap:18px;
}
body.bios-live .view-collected-data .privacy-group > h2 {
  margin:0 0 10px;
  color:#2b4055;
  font-size:16px;
}
body.bios-live .view-collected-data .collected-data-list {
  overflow:hidden;
  border:1px solid #dfe7ed;
  border-radius:20px;
  box-shadow:none;
}
body.bios-live .view-collected-data .collected-data-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:24px;
  align-items:center;
  min-height:72px;
  padding:14px 18px;
  cursor:default;
  background:#fff;
}
body.bios-live .view-collected-data .collected-data-row:hover { background:#fff; }
body.bios-live .view-collected-data .collected-data-row b {
  display:block;
  margin:0 0 4px;
  color:#293e53;
  font-size:13.5px;
  font-weight:720;
}
body.bios-live .view-collected-data .collected-data-row p {
  margin:0;
  color:#7e90a2;
  font-size:11.5px;
  line-height:1.45;
}
body.bios-live .view-collected-data .collected-data-row > span {
  color:#8b9bab;
  font-size:10.5px;
  line-height:1.4;
  text-align:right;
}
body.bios-live .main > .view-collected-data .privacy-card.collected-source-card {
  position:sticky;
  top:20px;
  align-self:start;
  display:block;
  min-height:0;
  margin-top:26px;
  padding:21px;
  border:1px solid #dfe7ed;
  border-radius:20px;
  text-align:left;
  background:#fff;
  box-shadow:none;
}
body.bios-live .view-collected-data .collected-source-card .collected-summary-kicker {
  display:block;
  margin:0 0 8px;
  color:#8393a3;
  font-size:10px;
  font-weight:750;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body.bios-live .main > .view-collected-data .collected-source-card > h2 {
  margin:0 0 16px;
  color:#263b50;
  font-size:19px;
  line-height:1.25;
}
.collected-source-list { border-top:1px solid #e3eaf0; }
.collected-source-list > div { padding:13px 0; border-bottom:1px solid #e7edf2; }
.collected-source-list b { display:block; margin-bottom:4px; color:#385069; font-size:11.5px; }
.collected-source-list p { margin:0; color:#7e90a2; font-size:10.5px; line-height:1.45; }
.collected-use-list { margin-bottom:0; }
.collected-use-limits {
  margin:14px 0 16px;
  padding:13px 0 0;
  border-top:1px solid #e3eaf0;
}
.collected-use-limits b {
  display:block;
  margin-bottom:4px;
  color:#385069;
  font-size:11.5px;
}
.collected-use-limits p {
  margin:0;
  color:#7e90a2;
  font-size:10.5px;
  line-height:1.5;
}
body.bios-live .view-collected-data .collected-source-note {
  margin:14px 0 16px;
  color:#8091a2;
  font-size:10.5px;
  line-height:1.45;
}
.collected-source-action,
.collected-source-link {
  width:100%;
  min-height:42px;
  border-radius:13px;
  font:inherit;
  font-size:11.5px;
  font-weight:750;
  cursor:pointer;
}
.collected-source-action { border:0; color:#fff; background:#1682df; }
.collected-source-action:hover { background:#0f76cf; }
.collected-source-link { margin-top:7px; border:0; color:#52718d; background:transparent; }
.collected-source-link:hover { color:#176fb8; background:#f3f8fc; }
@media (max-width:900px) {
  body.bios-live .main > .view-collected-data.view-collected-data .privacy-layout { grid-template-columns:1fr; }
  body.bios-live .main > .view-collected-data .privacy-card.collected-source-card { position:static; margin-top:0; }
}
@media (max-width:620px) {
  body.bios-live .main > .view-collected-data.view-collected-data .privacy-head h1 { font-size:29px !important; }
  body.bios-live .view-collected-data .collected-data-row { grid-template-columns:1fr; gap:6px; }
  body.bios-live .view-collected-data .collected-data-row > span { text-align:left; }
}

/* Data use: focused scenarios and explicit boundaries. */
body.bios-live .main > .view-data-use.view-data-use .privacy-head { max-width:760px; margin-bottom:24px; }
body.bios-live .main > .view-data-use.view-data-use .privacy-head h1 {
  margin-left:-3px;
  font-size:34px !important;
  line-height:1.08;
  letter-spacing:-.035em;
}
body.bios-live .main > .view-data-use.view-data-use .privacy-head p {
  max-width:700px;
  margin-top:9px;
  font-size:13px;
  line-height:1.5;
}
body.bios-live .main > .view-data-use.view-data-use .privacy-layout {
  grid-template-columns:minmax(0,1fr) 288px;
  gap:18px;
  align-items:start;
}
body.bios-live .view-data-use .privacy-group > h2 {
  margin:0 0 10px;
  color:#293e53;
  font-size:16px;
  line-height:1.3;
}
.data-use-list { overflow:hidden; border:1px solid #dfe7ed; border-radius:20px; background:#fff; }
.data-use-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) 150px;
  gap:24px;
  align-items:center;
  min-height:80px;
  padding:15px 18px;
  background:#fff;
}
.data-use-row + .data-use-row { border-top:1px solid #e5ebf0; }
.data-use-row b { display:block; margin-bottom:4px; color:#293e53; font-size:13.5px; font-weight:720; }
.data-use-row p { margin:0; color:#7e90a2; font-size:11.5px; line-height:1.45; }
.data-use-row > span {
  color:#8798a8;
  font-size:10.5px;
  font-weight:650;
  line-height:1.4;
  text-align:right;
}
body.bios-live .main > .view-data-use .privacy-card.data-use-card {
  position:sticky;
  top:20px;
  align-self:start;
  display:block;
  min-height:0;
  margin-top:26px;
  padding:21px;
  border:1px solid #dfe7ed;
  border-radius:20px;
  text-align:left;
  background:#fff;
  box-shadow:none;
}
.data-use-kicker {
  display:block;
  margin-bottom:8px;
  color:#8393a3;
  font-size:10px;
  font-weight:750;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body.bios-live .main > .view-data-use .data-use-card > h2 {
  margin:0 0 16px;
  color:#263b50;
  font-size:19px;
  line-height:1.25;
}
.data-use-limit-list { border-top:1px solid #e3eaf0; }
.data-use-limit-list > div {
  padding:13px 0;
  border-bottom:1px solid #e7edf2;
  color:#4c6277;
  font-size:11.5px;
  font-weight:650;
  line-height:1.45;
}
body.bios-live .view-data-use .data-use-limit-note {
  margin:14px 0 16px;
  color:#8091a2;
  font-size:10.5px;
  line-height:1.45;
}
.data-use-primary,
.data-use-secondary {
  width:100%;
  min-height:42px;
  border-radius:13px;
  font:inherit;
  font-size:11.5px;
  font-weight:750;
  cursor:pointer;
}
.data-use-primary { border:0; color:#fff; background:#1682df; }
.data-use-primary:hover { background:#0f76cf; }
.data-use-secondary { margin-top:7px; border:0; color:#52718d; background:transparent; }
.data-use-secondary:hover { color:#176fb8; background:#f3f8fc; }
@media (max-width:900px) {
  body.bios-live .main > .view-data-use.view-data-use .privacy-layout { grid-template-columns:1fr; }
  body.bios-live .main > .view-data-use .privacy-card.data-use-card { position:static; margin-top:0; }
}
@media (max-width:620px) {
  body.bios-live .main > .view-data-use.view-data-use .privacy-head h1 { font-size:29px !important; }
  .data-use-row { grid-template-columns:1fr; gap:6px; }
  .data-use-row > span { text-align:left; }
}

/* Permissions: people, services and sessions as separate manageable objects. */
body.bios-live .main > .view-permissions.view-permissions .privacy-head { max-width:780px; margin-bottom:24px; }
body.bios-live .main > .view-permissions.view-permissions .privacy-head h1 {
  margin-left:-3px;
  font-size:34px !important;
  line-height:1.08;
  letter-spacing:-.035em;
}
body.bios-live .main > .view-permissions.view-permissions .privacy-head p {
  max-width:720px;
  margin-top:9px;
  font-size:13px;
  line-height:1.5;
}
body.bios-live .main > .view-permissions.view-permissions .privacy-layout {
  grid-template-columns:minmax(0,1fr) 288px;
  gap:18px;
  align-items:start;
}
body.bios-live .view-permissions .privacy-main { gap:17px; }
body.bios-live .view-permissions .permissions-group > h2,
body.bios-live .view-permissions .permissions-section-head h2 {
  margin:0;
  color:#293e53;
  font-size:16px;
  font-weight:680;
  line-height:1.3;
}
.permissions-section-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}
.permissions-section-head > button {
  padding:0;
  border:0;
  color:#1675c5;
  background:transparent;
  font:inherit;
  font-size:11px;
  font-weight:720;
  cursor:pointer;
}
.permissions-group > h2 { margin-bottom:10px !important; }
.permissions-list {
  overflow:hidden;
  border:1px solid #dfe7ed;
  border-radius:20px;
  background:#fff;
}
.permissions-row {
  width:100%;
  min-height:76px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 132px 16px;
  gap:16px;
  align-items:center;
  padding:14px 18px;
  border:0;
  color:inherit;
  background:#fff;
  text-align:left;
  font:inherit;
  cursor:pointer;
}
.permissions-row + .permissions-row { border-top:1px solid #e5ebf0; }
.permissions-row:hover { background:#f4f9fc; }
.permissions-row:focus-visible { outline:3px solid rgba(22,130,223,.18); outline-offset:-3px; }
.permissions-row-static {
  grid-template-columns:minmax(0,1fr) 132px;
  cursor:default;
}
.permissions-row-static:hover { background:#fff; }
.permissions-row b { display:block; margin-bottom:4px; color:#293e53; font-size:13.5px; font-weight:720; }
.permissions-row p { margin:0; color:#7e90a2; font-size:11.5px; line-height:1.45; }
.permissions-row .permissions-copy { display:block; color:inherit; text-align:left; }
.permissions-row .permissions-copy small { display:block; color:#7e90a2; font-size:11.5px; font-weight:400; line-height:1.45; }
.permissions-row > span {
  color:#7f91a3;
  font-size:10.5px;
  font-weight:650;
  line-height:1.35;
  text-align:right;
}
.permissions-row > svg { width:16px; height:16px; color:#7d90a2; }
.permissions-row .permissions-status {
  justify-self:end;
  padding:6px 10px;
  border-radius:999px;
  color:#176fba;
  background:#eef6fd;
}
body.bios-live .main > .view-permissions .privacy-card.permissions-summary-card {
  position:sticky;
  top:20px;
  align-self:start;
  display:block;
  min-height:0;
  margin-top:26px;
  padding:21px;
  border:1px solid #dfe7ed;
  border-radius:20px;
  text-align:left;
  background:#fff;
  box-shadow:none;
}
.permissions-summary-kicker {
  display:block;
  margin-bottom:8px;
  color:#8393a3;
  font-size:10px;
  font-weight:750;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body.bios-live .main > .view-permissions .permissions-summary-card > h2 {
  margin:0 0 16px;
  color:#263b50;
  font-size:19px;
  line-height:1.25;
}
.permissions-summary-list { border-top:1px solid #e3eaf0; }
.permissions-summary-list > div {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid #e7edf2;
  font-size:10.5px;
  line-height:1.4;
}
.permissions-summary-list span { color:#8495a6; }
.permissions-summary-list b { color:#3d556c; text-align:right; }
body.bios-live .view-permissions .permissions-summary-card > p {
  margin:14px 0 16px;
  color:#8091a2;
  font-size:10.5px;
  line-height:1.45;
}
.permissions-primary,
.permissions-secondary {
  width:100%;
  min-height:42px;
  border-radius:13px;
  font:inherit;
  font-size:11.5px;
  font-weight:750;
  cursor:pointer;
}
.permissions-primary { border:0; color:#fff; background:#1682df; }
.permissions-primary:hover { background:#0f76cf; }
.permissions-secondary { margin-top:7px; border:0; color:#52718d; background:transparent; }
.permissions-secondary:hover { color:#176fb8; background:#f3f8fc; }
@media (max-width:900px) {
  body.bios-live .main > .view-permissions.view-permissions .privacy-layout { grid-template-columns:1fr; }
  body.bios-live .main > .view-permissions .privacy-card.permissions-summary-card { position:static; margin-top:0; }
}
@media (max-width:620px) {
  body.bios-live .main > .view-permissions.view-permissions .privacy-head h1 { font-size:29px !important; }
  .permissions-row,
  .permissions-row-static { grid-template-columns:minmax(0,1fr) auto; gap:8px; }
  .permissions-row > svg { display:none; }
  .permissions-row > span { text-align:right; }
}

/* Access history: compact working journal */
body.bios-live .main > .view-access-history.view-access-history .privacy-head h1 {
  margin-top:28px !important;
  font-size:34px !important;
  line-height:1.08 !important;
  letter-spacing:-.035em !important;
}
body.bios-live .main > .view-access-history.view-access-history .privacy-head p {
  max-width:640px;
  margin-top:9px !important;
  font-size:13px !important;
  line-height:1.5 !important;
}
body.bios-live .main > .view-access-history.view-access-history .history-journal-layout {
  display:block;
  margin-top:24px;
}
.history-filter-bar {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  margin-bottom:14px;
  padding:8px;
  border:1px solid #dfe7ed;
  border-radius:18px;
  background:#fff;
}
.history-filter-chips {
  display:flex;
  gap:3px;
  padding:3px;
  border-radius:13px;
  background:#f3f6f9;
}
.history-filter-chips button,
.history-export {
  min-height:36px;
  padding:0 14px;
  border:0;
  border-radius:10px;
  color:#6f8295;
  background:transparent;
  font:inherit;
  font-size:11.5px;
  font-weight:700;
  cursor:pointer;
}
.history-filter-chips button:hover,
.history-filter-chips button.active {
  color:#176fba;
  background:#e7f4fd;
}
.history-period {
  position:relative;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  margin-left:auto;
  padding:0 34px 0 13px;
  border:1px solid #e1e8ee;
  border-radius:12px;
  color:#8797a7;
  background:#fff;
  font-size:10.5px;
  font-weight:700;
}
.history-period::after {
  position:absolute;
  right:13px;
  width:7px;
  height:7px;
  content:"";
  border-right:1.5px solid #6f8295;
  border-bottom:1.5px solid #6f8295;
  pointer-events:none;
  transform:translateY(-2px) rotate(45deg);
}
.history-period select {
  max-width:142px;
  border:0;
  outline:0;
  appearance:none;
  color:#425b72;
  background:transparent;
  font:inherit;
  font-size:11.5px;
  font-weight:700;
  cursor:pointer;
}
.history-export {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:42px;
  border:1px solid #e1e8ee;
  color:#176fba;
  white-space:nowrap;
}
.history-export svg { width:16px; height:16px; stroke-width:1.8; }
.history-export:hover { border-color:#cfe3f3; background:#f0f8fe; }
.history-journal {
  overflow:hidden;
  border:1px solid #dfe7ed;
  border-radius:22px;
  background:#fff;
}
.history-journal-head {
  display:flex;
  min-height:74px;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:15px 20px;
  border-bottom:1px solid #e7edf2;
}
.history-journal-title { display:grid; gap:3px; }
.history-journal-title h2 {
  margin:0;
  color:#2d455c;
  font-size:15px;
  font-weight:720;
}
.history-journal-title p {
  margin:0;
  color:#8496a7;
  font-size:11px;
}
.history-journal-title strong { color:#2d455c; font-weight:720; }
.history-manage-access {
  min-height:36px;
  padding:0 14px;
  border:1px solid #d9e5ee;
  border-radius:11px;
  color:#41627f;
  background:#fff;
  font:inherit;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.history-manage-access:hover { border-color:#cce1f2; color:#176fba; background:#f3f9fe; }
.history-day + .history-day { border-top:1px solid #dfe7ed; }
.history-day h2 {
  margin:0;
  padding:12px 20px;
  border-bottom:1px solid #edf1f4;
  color:#8495a5;
  background:#fbfcfd;
  font-size:10.5px;
  font-weight:750;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.history-event {
  display:grid;
  grid-template-columns:minmax(0,1fr) 126px 64px;
  align-items:center;
  gap:18px;
  min-height:76px;
  padding:13px 20px;
  border-bottom:1px solid #edf1f4;
  transition:background .16s ease;
}
.history-day .history-event:last-child { border-bottom:0; }
.history-event:hover { background:#f7fbfe; }
.history-event > div {
  position:relative;
  min-width:0;
  padding-left:18px;
}
.history-event > div::before {
  position:absolute;
  top:7px;
  left:0;
  width:7px;
  height:7px;
  content:"";
  border-radius:50%;
  background:#66aeea;
  box-shadow:0 0 0 4px #edf7ff;
}
.history-event[data-history-type="services"] > div::before { background:#61b59b; box-shadow:0 0 0 4px #edf9f5; }
.history-event[data-history-type="system"] > div::before { background:#8c9cac; box-shadow:0 0 0 4px #f0f3f6; }
.history-event b { display:block; color:#2d455c; font-size:13px; line-height:1.3; }
.history-event p { margin:4px 0 0; color:#8596a6; font-size:11.5px; line-height:1.4; }
.history-event > span {
  justify-self:end;
  padding:5px 9px;
  border-radius:9px;
  color:#60788f;
  background:#f3f6f8;
  font-size:10.5px;
  font-weight:700;
}
.history-event time { color:#8496a7; font-size:10.5px; font-weight:650; text-align:right; }
.history-empty { margin:0; padding:28px; color:#8293a3; font-size:12px; text-align:center; }
@media (max-width:680px) {
  body.bios-live .main > .view-access-history.view-access-history .privacy-head h1 { font-size:29px !important; }
  .history-filter-bar { flex-wrap:wrap; }
  .history-filter-chips { width:100%; overflow-x:auto; }
  .history-period { margin-left:0; }
  .history-export { margin-left:auto; }
  .history-journal-head { align-items:flex-start; flex-direction:column; }
  .history-event { grid-template-columns:minmax(0,1fr) auto; }
  .history-event > span { display:none; }
}


  body.dashboard-hydrating{overflow:hidden}
  body.dashboard-hydrating .app{visibility:hidden;opacity:0;pointer-events:none}
  .dashboard-hydration-shell{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#fff;color:var(--ink);transition:opacity .22s ease,visibility .22s step-end}
  .dashboard-hydration-shell[hidden]{display:none}
  .dashboard-hydration-shell.is-complete{opacity:0;visibility:hidden}
  .dashboard-hydration-stage{display:grid;place-items:center;text-align:center}
  .dashboard-hydration-logo{position:relative;isolation:isolate;width:clamp(280px,32vw,390px);aspect-ratio:1912/823;transform-origin:50% 50%;animation:dashboardIntroBreathe 2.8s ease-in-out infinite;will-change:transform,opacity}
  .dashboard-hydration-word,.dashboard-hydration-stroke{position:absolute;width:100%;height:100%;inset:0;object-fit:contain}
  .dashboard-hydration-word{clip-path:inset(0 0 0 34%);opacity:1}
  .dashboard-hydration-stroke{will-change:clip-path,opacity}
  .dashboard-hydration-stroke.top{animation:dashboardIntroDrawTop .76s cubic-bezier(.65,0,.35,1) both}
  .dashboard-hydration-stroke.bridge{animation:dashboardIntroDrawBridge .72s cubic-bezier(.65,0,.35,1) .1s both}
  .dashboard-hydration-stroke.bottom{animation:dashboardIntroDrawBottom .78s cubic-bezier(.65,0,.35,1) .18s both}
  .dashboard-hydration-message{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .dashboard-hydration-retry{margin-top:22px;border:0;border-radius:12px;padding:12px 20px;background:#111827;color:#fff;font:inherit;font-weight:700;cursor:pointer}
  .dashboard-hydration-shell.is-failed .dashboard-hydration-logo{animation:none;transform:none}
  .dashboard-hydration-shell.is-failed .dashboard-hydration-message{position:static;width:min(420px,82vw);height:auto;margin:24px 0 0;overflow:visible;clip:auto;white-space:normal;color:#6f7685;font-size:15px;line-height:1.5}
  @keyframes dashboardIntroDrawTop{from{clip-path:inset(0 100% 67% 0)}to{clip-path:inset(0 66% 67% 0)}}
  @keyframes dashboardIntroDrawBridge{from{clip-path:inset(33% 66% 34% 34%)}to{clip-path:inset(33% 66% 34% 0)}}
  @keyframes dashboardIntroDrawBottom{from{clip-path:inset(66% 100% 0 0)}to{clip-path:inset(66% 66% 0 0)}}
  @keyframes dashboardIntroBreathe{0%,38%,100%{transform:translateY(-1vh) scale(1)}56%{transform:translateY(-1vh) scale(1.012)}}
  @media (max-width:580px){.dashboard-hydration-logo{width:min(340px,88vw)}}
  @media (prefers-reduced-motion:reduce){
    .dashboard-hydration-shell{transition:none}
    .dashboard-hydration-logo,.dashboard-hydration-stroke{animation:none}
    .dashboard-hydration-stroke.top{clip-path:inset(0 66% 67% 0)}
    .dashboard-hydration-stroke.bridge{clip-path:inset(33% 66% 34% 0)}
    .dashboard-hydration-stroke.bottom{clip-path:inset(66% 66% 0 0)}
  }

/* R10 mobile overflow guard */
@media (max-width: 680px) {
  html,
  body.bios-live { max-width: 100%; overflow-x: clip; }
  body.bios-live .main,
  body.bios-live .view-today,
  body.bios-live .view-today > * { min-width: 0; max-width: 100%; }
  body.bios-live .view-today { overflow-x: clip; }
  body.bios-live .view-today .topbar-right { min-width: 0; max-width: 64%; gap: 8px; }
  body.bios-live .main .topbar-right > .avatar[data-tab="profile"] {
    display: block !important;
    width: 34px;
    height: 34px;
    cursor: pointer;
  }
  body.bios-live .sidebar .nav-item { display: none !important; }
  body.bios-live .sidebar .nav-item[data-tab="today"],
  body.bios-live .sidebar .nav-item[data-tab="ai-chat"],
  body.bios-live .sidebar .nav-item[data-tab="protocols"],
  body.bios-live .sidebar .nav-item[data-tab="doctors"],
  body.bios-live .sidebar .nav-item[data-tab="family"] { display: flex !important; }
  body.bios-live .app > .bios-app-footer { display: none !important; }
  body.bios-live .today-telegram-connect {
    max-width: 100%;
    padding-inline: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  body.bios-live .prompt-chips {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  body.bios-live .prompt-chips::-webkit-scrollbar { display: none; }
}

/* R11 restores the live Family destination hidden by the visual prototype. */
body.bios-live .nav-item[data-tab="family"] { display: flex !important; }
