  :root {
    color-scheme: light;
    --orange:#e76323;
    --orange-light:#f18d56;
    --orange-soft:#fff1e7;
    --ink:#10181d;
    --ink-muted:#647077;
    --dark:#111b20;
    --dark-deep:#090f13;
    --accent:#e76323;
    --accent-ink:#ffffff;
    --surface:#ffffff;
    --canvas:#fcfaf7;
    --cream:#f2ede6;
    --line:#e9e3dc;
    --highlight:#fff1e7;
    --danger:#b8373d;
    --shadow:0 12px 34px rgba(32,29,26,.055);
  }
  *{box-sizing:border-box;}
  [hidden]{display:none!important;}
  html{scroll-behavior:smooth;}
  body{margin:0;background:var(--canvas);color:var(--ink);font:16px/1.46 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;}
  button,input,select{font:inherit;}
  button{cursor:pointer;}
  button:disabled{cursor:not-allowed;opacity:.48;}
  svg{display:block;flex-shrink:0;}
  a{color:inherit;}
  :focus-visible{outline:3px solid #f9ae77;outline-offset:3px;}
  ::selection{background:var(--orange);color:#fff;}
  .shell{max-width:1050px;margin:0 auto;padding:0 24px 90px;}
  .masthead{
    position:relative;overflow:hidden;color:white;
    background:radial-gradient(800px 450px at 94% 0%, rgba(231,99,35,.17), transparent 60%),
               radial-gradient(500px 360px at 4% 110%, rgba(255,255,255,.065), transparent 62%),
               linear-gradient(132deg,#091015 0%,#101a1f 58%,#0b1115 100%);
    isolation:isolate;
  }
  .masthead:before{
    content:'';position:absolute;inset:0;pointer-events:none;z-index:-1;
    background-image:linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);
    background-size:52px 52px;opacity:.28;mask-image:linear-gradient(to bottom, black, transparent 95%);
  }
  .masthead:after{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,var(--orange) 0%,#ee8a4d 45%,rgba(231,99,35,.07) 100%);}
  .mast-inner{max-width:1050px;margin:0 auto;padding:17px 24px 53px;position:relative;z-index:1;}
  .mast-inner:after{content:'';position:absolute;width:320px;height:320px;border:1px solid rgba(231,99,35,.16);border-radius:50%;right:-170px;top:44px;pointer-events:none;z-index:-1;box-shadow:0 0 0 55px rgba(231,99,35,.035),0 0 0 112px rgba(255,255,255,.024);}
  .topline{display:flex;align-items:center;justify-content:space-between;gap:12px;}
  .brand{display:inline-flex;align-items:center;gap:14px;min-width:0;}
  .brand img{display:block;width:193px;height:auto;object-fit:contain;}
  .brand-app{border-left:1px solid rgba(255,255,255,.22);padding:6px 0 6px 14px;line-height:1.45;color:rgba(255,255,255,.50);font-size:10px;letter-spacing:.17em;font-weight:850;text-transform:uppercase;white-space:nowrap;}
  .top-actions{display:flex;align-items:center;gap:10px;}
  .top-actions .btn{border-radius:12px;}
  .hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-top:40px;}
  .eyebrow{color:var(--orange-light);font-weight:800;letter-spacing:.18em;font-size:11px;text-transform:uppercase;margin:0 0 12px;}
  h1{font-size:clamp(38px,5vw,56px);line-height:1.07;letter-spacing:-.052em;margin:0;font-weight:800;}
  .subtitle{margin:14px 0 0;color:#b3bcc1;max-width:565px;font-size:15px;line-height:1.6;}
  .hero-side{display:flex;align-items:center;gap:16px;white-space:nowrap;padding-bottom:1px;}
  .score-number{font-variant-numeric:tabular-nums;text-align:right;font-size:38px;font-weight:800;letter-spacing:-.06em;line-height:1;}
  .score-caption{text-align:right;color:#a9b5bb;font-size:11px;margin-top:8px;}
  .ring{width:82px;height:82px;transform:rotate(-90deg);filter:drop-shadow(0 0 14px rgba(231,99,35,.18));}
  .ring-bg{stroke:#344047;}.ring-fg{stroke:var(--orange);stroke-linecap:round;transition:stroke-dasharray .3s;}
  .progress-line{height:6px;width:100%;border-radius:40px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:33px;}
  .progress-line>div{height:100%;background:linear-gradient(90deg,#e76323,#f18e55);width:0;transition:width .3s;}
  .summary-row{display:flex;justify-content:space-between;align-items:center;color:#aab6ba;font-size:12px;margin-top:10px;gap:10px;}
  .toolbar{
    position:relative;z-index:2;margin-top:-22px;
    display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:13px;
    padding:16px;background:#fff;border:1px solid var(--line);border-radius:19px;
    box-shadow:0 14px 48px rgba(14,19,22,.075);
  }
  .left-tools,.right-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
  .left-tools{flex:1;min-width:0;}
  .btn{border:1px solid var(--line);background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:12px;padding:11px 16px;font-size:14px;font-weight:730;line-height:1.15;min-height:44px;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s;}
  .btn:hover{background:#fff5ee;border-color:#f6d3b8;}
  .btn:active{transform:scale(.985);}
  .btn-primary{background:var(--dark);color:#fff;border-color:var(--dark);}
  .btn-primary:hover{background:#2a353a;border-color:#2a353a;box-shadow:0 8px 25px rgba(16,24,29,.12);}
  .btn-accent{background:var(--orange);color:#fff;border-color:var(--orange);box-shadow:0 6px 17px rgba(231,99,35,.18);}
  .btn-accent:hover{background:#cf531b;border-color:#cf531b;box-shadow:0 9px 25px rgba(231,99,35,.23);}
  .btn-ghost{color:#eff1f2;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.18);}
  .btn-ghost:hover{color:#fff;background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.29);}
  .btn-danger{background:#fff;color:var(--danger);border-color:#f0cdd0;}
  .btn-danger:hover{background:#fff0f0;}
  .btn-icon{padding:10px;width:44px;min-width:44px;}
  .filter{display:flex;align-items:center;gap:3px;padding:4px;border:1px solid var(--line);border-radius:12px;background:#fff;}
  .filter button{background:transparent;color:#71787a;border:0;border-radius:9px;font-weight:730;font-size:13px;padding:8px 14px;white-space:nowrap;}
  .filter button[aria-pressed='true']{background:var(--orange-soft);color:#b94c1c;}
  .search{display:flex;align-items:center;gap:10px;padding:0 13px;background:#fff;border:1px solid var(--line);border-radius:12px;min-height:44px;flex:1;min-width:190px;max-width:420px;color:#879096;}
  .search input{border:0;outline:0;min-width:0;width:100%;color:var(--ink);background:transparent;font-size:14px;}
  .search:focus-within{outline:2px solid #f0bc9c;}
  .section-heading{display:flex;justify-content:space-between;align-items:center;margin:29px 2px 16px;gap:10px;}
  h2{font-size:19px;line-height:1.2;letter-spacing:-.035em;margin:0;font-weight:780;}
  .section-heading p{color:var(--ink-muted);font-size:13px;margin:6px 0 0;}
  #groups{display:flex;flex-direction:column;gap:14px;}
  .group{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:var(--shadow);}
  .group-head{position:relative;width:100%;border:0;background:transparent;display:flex;align-items:center;text-align:left;justify-content:space-between;gap:12px;padding:17px 22px;color:var(--ink);}
  .group-head:hover{background:#fffaf7;}
  .group-head-left{display:flex;align-items:center;gap:14px;min-width:0;}
  .group-icon{width:43px;height:43px;border-radius:13px;background:var(--orange-soft);color:var(--orange);display:grid;place-items:center;flex-shrink:0;}
  .group-title{display:block;font-size:16px;font-weight:780;letter-spacing:-.025em;}
  .group-subtitle{display:block;font-size:12px;color:#81898e;margin-top:3px;}
  .group-head-right{display:flex;align-items:center;gap:13px;flex-shrink:0;}
  .group-count{font-size:13px;font-weight:800;color:#c3633b;font-variant-numeric:tabular-nums;}
  .chevron{color:#959a9e;transition:transform .2s;}.group.collapsed .chevron{transform:rotate(-90deg);}
  .items{border-top:1px solid #f2eeea;}
  .group.collapsed .items{display:none;}
  .item{min-height:55px;display:flex;align-items:center;gap:13px;padding:9px 20px 9px 24px;border-top:1px solid #f4f0eb;transition:background .12s;position:relative;}
  .item:first-child{border-top:0;}.item:hover{background:#fffcf9;}
  .tick{flex-shrink:0;width:22px;height:22px;margin:0;accent-color:var(--orange);cursor:pointer;}
  .item-main{display:flex;flex:1;min-width:0;align-items:center;gap:10px;cursor:pointer;padding:7px 0;color:#283137;font-size:14px;}
  .item-main .name{overflow-wrap:anywhere;}
  .item.done .name{color:#9da2a6;text-decoration:line-through;text-decoration-thickness:1.2px;}
  .tag{color:#af592e;background:#fff2e8;border:1px solid #f8dfd1;padding:3px 8px;line-height:1;border-radius:8px;font-size:11px;font-weight:730;white-space:nowrap;}
  .edit-btn{width:36px;min-width:36px;height:36px;border-radius:10px;border:1px solid transparent;display:grid;place-items:center;background:transparent;color:#a1a6aa;}
  .edit-btn:hover{color:var(--orange);border-color:#f5d9c7;background:#fff3eb;}
  .empty{background:#fff;border-radius:17px;padding:40px 24px;text-align:center;border:1px dashed #e4d8cd;color:#768087;}
  .empty strong{display:block;font-size:17px;color:var(--ink);margin-bottom:4px;}
  .bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:31px;color:#86888b;font-size:12px;}
  .text-link{background:none;border:none;text-decoration:underline;text-underline-offset:3px;padding:5px;color:#bd592f;font-size:12px;font-weight:750;}
  .text-link:hover{color:#953a1b;}
  dialog{border:0;padding:0;max-width:min(92vw,490px);width:100%;border-radius:20px;box-shadow:0 40px 120px rgba(9,14,18,.34);color:var(--ink);}
  dialog::backdrop{background:rgba(9,14,18,.62);backdrop-filter:blur(4px);}
  .dialog-body{padding:28px;}
  .dialog-body h3{font-size:23px;letter-spacing:-.04em;line-height:1.2;margin:0 0 9px;}
  .dialog-body p{margin:0 0 20px;color:#68747a;font-size:14px;}
  .field{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;}
  .field label{font-size:13px;font-weight:740;}
  .field input{border:1px solid #ded5cd;border-radius:11px;padding:12px 13px;outline:0;width:100%;background:#fff;color:var(--ink);}
  .field input:focus{border-color:#e76323;box-shadow:0 0 0 3px rgba(231,99,35,.13);}
  .dialog-actions{display:flex;align-items:center;gap:9px;justify-content:flex-end;flex-wrap:wrap;margin-top:22px;}
  .modal-danger{margin-top:16px;}.modal-danger .btn{border:0;background:transparent;color:var(--danger);padding-left:0;font-weight:550;font-size:13px;min-height:30px;}
  .tip{border-radius:12px;padding:12px 14px;background:#fff2e7;color:#91512e;font-size:13px;margin-top:14px;}
  .tip strong{color:#813c1d;}
  .toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,30px);max-width:min(90vw,500px);background:var(--dark);color:#fff;padding:12px 18px;border-radius:11px;box-shadow:0 10px 30px rgba(14,16,18,.32);opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;font-size:13px;z-index:20;text-align:center;}
  .toast.show{opacity:1;transform:translate(-50%,0);}
  .warning{margin:17px 0 0;background:#fff4d9;border:1px solid #efd59b;padding:12px 16px;color:#815d22;border-radius:12px;font-size:13px;display:none;}
  .warning.show{display:block;}
  .help-title{font-weight:750;font-size:13px;margin-bottom:5px;}
  .help-list{color:#536067;font-size:13px;padding-left:20px;line-height:1.7;margin:7px 0 16px;}
  .hide-sm{}
  @media(max-width:720px){
    .shell{padding:0 15px 86px;}
    .mast-inner{padding:13px 17px 49px;}
    .brand img{width:155px;}
    .brand-app{font-size:9px;padding-left:11px;letter-spacing:.08em;}
    .mast-inner:after{width:230px;height:230px;right:-175px;top:110px;}
    .hero{margin-top:29px;align-items:flex-end;gap:8px;}
    .hero-side{gap:7px;}
    .ring{height:60px;width:60px;}
    .score-number{font-size:26px;}
    .score-caption{font-size:10px;}
    h1{font-size:clamp(30px,8vw,43px);}
    .subtitle{font-size:13px;line-height:1.5;}
    .progress-line{margin-top:26px;}
    .toolbar{margin-top:-25px;padding:13px;align-items:stretch;flex-direction:column;gap:10px;border-radius:16px;}
    .left-tools,.right-tools{width:100%;}
    .left-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;}
    .left-tools .search{max-width:none;min-width:0;}
    .left-tools #addButton{padding:11px 12px;}
    .right-tools .btn{width:100%;}
    .group-head{padding:15px;}
    .group-title{font-size:15px;}
    .group-subtitle{font-size:12px;}
    .group-icon{width:38px;height:38px;}
    .item{padding:9px 12px 9px 17px;gap:11px;}
    .item-main{font-size:14px;}
    .tag{font-size:10px;padding:3px 6px;}
    .dialog-body{padding:23px;}
    .hide-sm{display:none;}
  }
  @media(max-width:430px){
    .brand-app{display:none;}
    .hero{gap:6px;}
    .score-number{font-size:23px;}
    .ring{width:53px;height:53px;}
    .section-heading{margin-top:22px;align-items:flex-start;flex-direction:column;gap:12px;}
    .filter{width:100%;justify-content:space-between;}
    .filter button{flex:1;padding:9px 6px;}
    .left-tools{grid-template-columns:minmax(0,1fr) auto;}
    .left-tools #addButton{font-size:13px;padding:10px;gap:5px;}
  }
  @media(max-width:350px){
    .hero-side .score-caption{display:none;}
    .ring{width:45px;height:45px;}
    .brand img{width:132px;}
    .left-tools{display:flex;flex-direction:column;align-items:stretch;}
    .left-tools #addButton{width:100%;}
  }
  @media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;}}

  .sync-status{display:flex;align-items:center;gap:9px;margin:17px 4px 0;font-size:12px;font-weight:700;color:#50666b;flex-wrap:wrap;min-height:24px;}
  .sync-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:#a2abb1;box-shadow:0 0 0 3px #ecedf0;}
  .sync-status[data-state="ok"] .sync-dot{background:#26956c;box-shadow:0 0 0 3px #e0f5eb;}
  .sync-status[data-state="saving"] .sync-dot{background:#e76323;box-shadow:0 0 0 3px #fff0e6;animation:syncpulse 1.6s ease-in-out infinite;}
  .sync-status[data-state="error"] .sync-dot{background:#c73c46;box-shadow:0 0 0 3px #ffebeb;}
  .sync-status[data-state="error"]{color:#a0323a;}
  .sync-hint{font-weight:650;color:#a3a4a4;border-left:1px solid #e2d9d3;padding-left:10px;margin-left:4px;}
  @keyframes syncpulse{50%{opacity:.38;}}
  .migration{margin:18px 0 0;background:#fff6eb;border:1px solid #f6d6b7;padding:16px 18px;color:#6b4b2b;border-radius:13px;font-size:13px;}
  .migration-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
  .migration-buttons .btn{font-size:12px;min-height:36px;padding:8px 11px;}
  @media(prefers-reduced-motion:reduce){.sync-dot{animation:none!important;}}



/* Impuls UI v3: personal and shared spaces */
.workspace-nav{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:22px 0 18px;}
.workspace-nav .tab{border:1px solid #e5dcd3;background:#fff;color:#59646a;border-radius:13px;padding:12px 16px;font-size:14px;font-weight:780;display:flex;gap:9px;align-items:center;}
.workspace-nav .tab[aria-selected="true"]{background:#142128;border-color:#142128;color:#fff;box-shadow:0 10px 26px #16202717;}
.workspace-nav .nav-spacer{flex:1;}
.nav-help{border-radius:12px;white-space:nowrap;}
.app-pane{min-height:200px;}
.space-info{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 18px;margin:8px 0 17px;flex-wrap:wrap;}
.space-info .space-copy{min-width:0;}
.space-overline{color:#c45623;font-weight:850;letter-spacing:.07em;text-transform:uppercase;font-size:10px;margin:0 0 3px;}
.space-title{font-size:18px;margin:0;font-weight:850;letter-spacing:-.03em;overflow-wrap:anywhere;}
.space-info .space-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.space-info .space-actions .btn{min-height:38px;padding:9px 12px;font-size:12px;}
#sharedHome{padding:0 0 25px;}
.shared-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:20px 0 20px;flex-wrap:wrap;}
.shared-head h2{font-size:24px;margin:0 0 7px;}
.shared-head p{font-size:14px;color:#637077;margin:0;max-width:600px;}
.shared-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;}
.shared-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow);}
.shared-card-icon{display:grid;place-items:center;background:var(--orange-soft);color:var(--orange);border-radius:13px;width:45px;height:45px;}
.shared-card h3{margin:0;font-size:18px;line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere;}
.shared-card p{font-size:12px;margin:0;color:#627077;}
.shared-card .mini-progress{background:#ece6df;height:5px;border-radius:10px;overflow:hidden;margin:1px 0 4px;}
.shared-card .mini-progress span{display:block;height:100%;background:var(--orange);border-radius:10px;}
.shared-card .btn{margin-top:auto;}
.shared-empty{background:#fff;border:1px dashed #dbd2c9;border-radius:18px;padding:30px 22px;text-align:center;}
.shared-empty h3{margin:8px 0;font-size:21px;}
.shared-empty p{color:#647077;font-size:14px;max-width:480px;margin:0 auto 22px;line-height:1.6;}
.detail-help{color:#6b7379;font-size:12px;line-height:1.55;margin:9px 3px;}
#syncStatus{margin:16px 2px 5px;}
#startupNotice{border:1px solid #e9d8c9;background:#fff8f1;color:#734b34;padding:12px 16px;border-radius:11px;font-size:13px;line-height:1.5;margin:13px 0 0;}
.copy-field{display:flex;gap:6px;margin-top:9px;flex-wrap:wrap;}
.copy-field input{flex:1;min-width:170px;background:#f7f6f4;font-size:12px;border-radius:10px;border:1px solid #ded7d0;padding:11px 12px;color:#3d464b;}
.copy-field .btn{flex-shrink:0;}
.inline-block{display:block;margin:14px 0;color:#58646a;line-height:1.5;font-size:13px;}
.muted{color:#6c797d;font-size:13px;}
.check-tip{background:#edf8f2;border-radius:11px;padding:13px;color:#325d47;font-size:13px;margin:14px 0;line-height:1.55;}
.hint-warning{background:#fff5e9;border-radius:11px;padding:13px;color:#895028;font-size:13px;margin:14px 0;line-height:1.55;}
.inline-error{display:none;color:#b8373d;font-size:13px;margin-top:10px;}
.inline-error.shown{display:block;}
.member-list{display:flex;flex-direction:column;gap:9px;margin:14px 0;max-height:230px;overflow-y:auto;}
.member-row{border:1px solid #ece4dc;border-radius:10px;padding:10px;display:flex;gap:7px;align-items:center;justify-content:space-between;}
.member-row strong{font-size:13px;}
.member-row span{font-size:11px;color:#727d80;}
.member-row button{font-size:11px;padding:6px 9px;min-height:29px;}
.dialog-body p{line-height:1.55;}
.smallprint{font-size:12px;color:#81898a;line-height:1.5;}
#groups .item:has(.tick:disabled){opacity:.72;}
@media(max-width:720px){
 .workspace-nav{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:19px 0 13px;}
 .workspace-nav .tab{justify-content:center;padding:11px 7px;font-size:13px;}
 .workspace-nav .nav-spacer{display:none;}
 .workspace-nav .nav-help{grid-column:1/-1;justify-content:center;}
 .space-info{padding:12px;}
 .space-info .space-actions{width:100%;}
 .space-info .space-actions .btn{flex:1;}
 .shared-head{margin:14px 0;}
 .shared-head .btn{width:100%;}
 .shared-grid{grid-template-columns:1fr;}
 #listPane .toolbar{margin-top:0;}
 .copy-field{display:grid;grid-template-columns:1fr;}
 .copy-field input,.copy-field .btn{width:100%;}
 }
