:root{
  --bg:#f2f2f7;--surface:#ffffff;--surface-2:#f8f8fb;--sidebar:#f7f7f9;
  --text:#1c1c1e;--muted:#6e6e73;--muted-2:#8e8e93;--line:rgba(60,60,67,.14);
  --blue:#0a84ff;--purple:#bf5af2;--orange:#ff9f0a;--cyan:#32ade6;--green:#30d158;--indigo:#5e5ce6;
  --red:#ff453a;--yellow:#ffd60a;--radius:16px;--large-radius:24px;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);background:var(--bg);font-synthesis:none;
}
*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;min-height:100%;background:var(--bg);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button,input,select,a{-webkit-tap-highlight-color:transparent}a{color:inherit}.pp-icon{display:block;flex:0 0 auto}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.025em}p{color:var(--muted);line-height:1.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(10,132,255,.34);outline-offset:2px}[hidden]{display:none!important}.mobile-only{display:none}

/* Shared controls */
button,.button,.apple-button{border:0;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:600;min-height:38px;border-radius:10px;padding:8px 14px;transition:transform .14s ease,background .14s ease,opacity .14s ease}button:active,.button:active,.apple-button:active{transform:scale(.985)}button:disabled{opacity:.55;cursor:wait}.apple-button,button[type=submit],.button{background:var(--blue);color:#fff}.plain{background:#fff;color:var(--blue);border:1px solid var(--line);box-shadow:0 1px 1px rgba(0,0,0,.02)}.icon-button{width:38px;height:38px;padding:0;border-radius:11px;background:rgba(118,118,128,.10);color:var(--text)}
input,select{width:100%;min-height:42px;border:1px solid rgba(60,60,67,.18);border-radius:11px;background:#fff;color:var(--text);padding:9px 12px;outline:none;transition:border .15s ease,box-shadow .15s ease}input:focus,select:focus{border-color:rgba(10,132,255,.5);box-shadow:0 0 0 3px rgba(10,132,255,.10)}label{display:block;color:var(--text);font-size:.9rem;font-weight:600;margin-bottom:7px}.muted{color:var(--muted)}

/* Brand */
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:0}.brand-mark{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(145deg,#3a8cff,#0068d9);color:#fff;font-size:19px;font-weight:700;box-shadow:0 4px 12px rgba(10,132,255,.22)}.brand-copy{display:flex;flex-direction:column;line-height:1.08;min-width:0}.brand-copy strong{font-size:.98rem;white-space:nowrap}.brand-copy small{font-size:.71rem;color:var(--muted);font-weight:600;letter-spacing:.08em;margin-top:4px}

/* Login */
.login{min-height:100dvh;display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(420px,.95fr);background:#fff}.welcome{position:relative;overflow:hidden;padding:clamp(34px,6vw,82px);background:linear-gradient(145deg,#edf5ff 0%,#f5f4ff 48%,#fff5ef 100%);display:flex;flex-direction:column;justify-content:space-between;gap:40px}.welcome:before,.welcome:after{content:"";position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}.welcome:before{width:440px;height:440px;background:rgba(10,132,255,.08);right:-150px;top:-120px}.welcome:after{width:330px;height:330px;background:rgba(191,90,242,.07);left:-100px;bottom:-120px}.welcome>.brand,.welcome>div,.welcome>p{position:relative;z-index:1}.welcome .brand{max-width:max-content}.welcome .brand-copy strong{font-size:1.08rem}.welcome .brand-copy small{font-size:.78rem}.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.09em;color:var(--blue);text-transform:uppercase;margin-bottom:12px}.welcome h1{font-size:clamp(2.8rem,5vw,5rem);line-height:1.02;max-width:680px;margin-bottom:22px}.welcome p{max-width:480px;font-size:1.08rem}.fine{font-size:.8rem;line-height:1.5;color:var(--muted)}.login-panel{display:grid;place-items:center;padding:32px;background:#fff}.login-card{width:min(410px,100%)}.login-badge{width:58px;height:58px;border-radius:17px;background:linear-gradient(145deg,#3a8cff,#0068d9);display:grid;place-items:center;color:#fff;font-size:28px;font-weight:700;box-shadow:0 10px 24px rgba(10,132,255,.2);margin-bottom:26px}.login-card h2{font-size:2rem;margin:0 0 8px}.login-card>p{margin-bottom:25px}.login-card form{display:grid;gap:17px}.field-shell{display:grid;gap:7px}.login-card button[type=submit]{width:100%;min-height:46px;border-radius:12px;font-size:.96rem}.login-links{margin:18px 0;text-align:center;font-size:.88rem}.login-links a{color:var(--blue);text-decoration:none}.error{color:#b42318;background:#fff3f2;border:1px solid #ffd3cf;border-radius:12px;padding:12px 14px;white-space:pre-wrap;font-size:.88rem}.privacy-note{display:flex;gap:9px;align-items:flex-start;border-top:1px solid var(--line);padding-top:18px;margin-top:22px;color:var(--muted);font-size:.78rem;line-height:1.45}

/* App shell */
.app-page{min-height:100dvh;background:var(--bg)}.shell{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;padding:18px 12px 14px;background:rgba(248,248,250,.92);backdrop-filter:blur(30px) saturate(1.3);-webkit-backdrop-filter:blur(30px) saturate(1.3);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:50}.sidebar-head{display:flex;align-items:center;justify-content:space-between;padding:6px 10px 20px}.sidebar-label{padding:4px 12px 8px;font-size:.67rem;font-weight:700;letter-spacing:.07em;color:var(--muted-2)}.nav{display:grid;gap:3px}.nav a{display:flex;align-items:center;gap:11px;min-height:46px;padding:6px 9px;border-radius:11px;text-decoration:none;font-size:.92rem;font-weight:560;color:#2c2c2e;transition:background .14s ease}.nav a:hover{background:rgba(118,118,128,.08)}.nav a[aria-current=page]{background:rgba(118,118,128,.14);font-weight:650}.nav-tile,.icon-tile{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;color:#fff;box-shadow:inset 0 0 0 .5px rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.08);flex:0 0 auto}.nav-chevron{margin-left:auto;color:#c4c4c8;opacity:0}.nav a[aria-current=page] .nav-chevron{opacity:1}.nav-blue,.tone-blue{background:linear-gradient(145deg,#3899ff,#0877e6)}.nav-purple,.tone-purple{background:linear-gradient(145deg,#cf72f7,#a844d2)}.nav-orange,.tone-orange{background:linear-gradient(145deg,#ffb53d,#f38b00)}.nav-cyan,.tone-cyan{background:linear-gradient(145deg,#58c4ec,#159bd1)}.nav-green,.tone-green{background:linear-gradient(145deg,#54d970,#22ad43)}.nav-indigo,.tone-indigo{background:linear-gradient(145deg,#7d7bf0,#514fcc)}.sidebar-spacer{flex:1}.sidebar-card{display:flex;gap:10px;margin:10px 6px;padding:13px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 1px 2px rgba(0,0,0,.02)}.sidebar-card-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#fff1f0;color:#ff5b4f;flex:0 0 auto}.sidebar-card strong{display:block;font-size:.78rem;margin-bottom:3px}.sidebar-card small{display:block;font-size:.69rem;line-height:1.35;color:var(--muted)}.sidebar footer{padding:3px 9px}.version-pill{font-size:.67rem;color:var(--muted-2)}.main-area{min-width:0;min-height:100dvh}.sidebar-overlay{display:none}

/* Top chrome */
.page-top{height:64px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:9px 30px;position:sticky;top:0;z-index:30;background:rgba(242,242,247,.78);backdrop-filter:blur(24px) saturate(1.45);-webkit-backdrop-filter:blur(24px) saturate(1.45);border-bottom:1px solid rgba(60,60,67,.10)}.context{display:flex;align-items:center;gap:10px;min-width:0}.context-symbol{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--blue);box-shadow:0 1px 3px rgba(0,0,0,.08);flex:0 0 auto}.context label{margin:0;white-space:nowrap;color:var(--muted);font-size:.76rem;font-weight:600}.context select{width:auto;min-width:205px;max-width:310px;min-height:36px;padding:6px 34px 6px 10px;border:0;background:rgba(118,118,128,.10);font-size:.84rem;font-weight:600;box-shadow:none}.page-actions{display:flex;align-items:center;gap:9px}.user-chip{display:flex;align-items:center;gap:8px;min-width:0}.user-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#d8d8dc,#b7b7bd);font-size:.75rem;font-weight:700;color:#fff}.user-chip span:last-child{font-size:.8rem;font-weight:600;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.logout-button{width:36px;height:36px;padding:0;background:rgba(118,118,128,.10);color:var(--muted);border-radius:10px}.logout-button:hover{color:var(--red)}

/* Page */
.page-wrap{width:min(1180px,100%);margin:0 auto;padding:42px 36px 70px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.title-cluster{display:flex;align-items:center;gap:15px}.page-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;color:#fff;box-shadow:0 5px 13px rgba(0,0,0,.10)}.section-title h1{font-size:2.15rem;line-height:1.05;margin:0 0 5px}.section-title p{margin:0;font-size:.93rem}.toolbar-row{display:flex;align-items:center;gap:12px;margin:0 0 24px}.search-shell{position:relative;flex:1;max-width:520px}.search-shell .search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted-2);pointer-events:none}.search-shell input{padding-left:37px;min-height:40px;border:0;background:rgba(118,118,128,.10);border-radius:11px;box-shadow:none}.search-shell input:focus{background:#fff;box-shadow:0 0 0 3px rgba(10,132,255,.10)}.check{display:flex;align-items:center;gap:8px;margin:0;font-size:.82rem;font-weight:500;color:var(--muted);white-space:nowrap}.check input{appearance:none;-webkit-appearance:none;width:38px;height:22px;min-height:22px;border:0;border-radius:999px;background:#d1d1d6;padding:0;position:relative;transition:background .2s ease;box-shadow:none}.check input:before{content:"";position:absolute;width:18px;height:18px;border-radius:50%;background:#fff;top:2px;left:2px;box-shadow:0 1px 4px rgba(0,0,0,.25);transition:transform .2s ease}.check input:checked{background:var(--green)}.check input:checked:before{transform:translateX(16px)}

/* iOS grouped lists */
.settings-section{margin-bottom:28px}.group-caption{display:flex;justify-content:space-between;align-items:center;padding:0 14px 8px;color:var(--muted-2);font-size:.72rem;text-transform:uppercase;letter-spacing:.035em}.group-title{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 4px 9px}.group-title h2{font-size:1rem;margin:0;font-weight:650}.group-title a{font-size:.83rem;color:var(--blue);text-decoration:none}.settings-group{background:rgba(255,255,255,.96);border-radius:var(--radius);overflow:hidden;box-shadow:0 0 0 .5px rgba(60,60,67,.10),0 1px 2px rgba(0,0,0,.02)}.settings-row{position:relative;display:flex;align-items:center;gap:12px;min-height:62px;padding:10px 14px;text-decoration:none;background:#fff}.settings-row+.settings-row:before{content:"";position:absolute;left:56px;right:0;top:0;height:.5px;background:rgba(60,60,67,.18)}.settings-row:hover{background:#fafafa}.row-leading{width:31px;height:31px;border-radius:8px}.row-content{min-width:0;flex:1}.row-content h3{font-size:.91rem;font-weight:600;margin:0 0 2px;line-height:1.25}.row-content p{font-size:.76rem;line-height:1.35;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.row-chevron{color:#c7c7cc;flex:0 0 auto}.status-pill{padding:4px 8px;border-radius:999px;background:rgba(118,118,128,.10);color:var(--muted);font-size:.67rem;font-weight:650;white-space:nowrap}.status-done{background:#ecf9ef;color:#248a3d}.status-in_progress{background:#edf5ff;color:#0a6ad6}.status-pending{background:#fff7e6;color:#9a6500}.status-archived,.status-cancelled{background:#f2f2f4;color:#8e8e93}.data-row{cursor:default}.empty-group{min-height:260px;display:grid;place-items:center}.empty-state{text-align:center;padding:42px 28px;max-width:430px;margin:auto}.empty-icon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;margin:0 auto 18px;background:rgba(118,118,128,.10);color:var(--muted)}.empty-state .tone-purple,.empty-state .tone-orange,.empty-state .tone-cyan,.empty-state .tone-green,.empty-state .tone-indigo{color:#fff}.empty-state h2{font-size:1.15rem;margin-bottom:7px}.empty-state p{font-size:.86rem;margin:0}.error-state .empty-icon{background:#fff0ef;color:var(--red)}.loading-state{min-height:240px;display:grid;place-items:center;align-content:center;gap:13px}.loading-state p{font-size:.82rem;margin:0}.spinner{width:24px;height:24px;border-radius:50%;border:2px solid rgba(118,118,128,.22);border-top-color:var(--blue);animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}

/* Home */
.home-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.85fr);gap:28px}.focus-card{position:relative;overflow:hidden;background:linear-gradient(145deg,#0d82f5 0%,#3a91f2 55%,#6ca9ee 100%);color:#fff;border-radius:22px;padding:28px 28px 26px;min-height:250px;box-shadow:0 10px 28px rgba(10,132,255,.16);margin-bottom:28px}.focus-card:after{content:"";position:absolute;width:220px;height:220px;border:40px solid rgba(255,255,255,.08);border-radius:50%;right:-82px;top:-86px}.focus-icon{width:43px;height:43px;border-radius:13px;background:rgba(255,255,255,.17);display:grid;place-items:center;margin-bottom:26px;position:relative;z-index:1}.focus-copy{position:relative;z-index:1;max-width:620px}.focus-label{display:block;font-size:.67rem;letter-spacing:.09em;font-weight:750;opacity:.76;margin-bottom:8px}.focus-card h2{font-size:1.75rem;line-height:1.12;margin:0 0 8px}.focus-card p{color:rgba(255,255,255,.78);font-size:.9rem;max-width:560px;margin-bottom:22px}.focus-card .apple-button{position:relative;z-index:2;background:#fff;color:#0879e6;min-height:38px;padding-inline:14px}.compact-empty{display:flex;align-items:center;gap:10px;padding:16px;color:var(--muted);font-size:.8rem}.compact-empty svg{color:var(--green)}.quick-links .settings-row{min-height:57px}.quick-section{margin-top:26px}

/* Setup */
.setup-shell{min-height:100dvh;display:grid;place-items:center;padding:32px;background:radial-gradient(circle at 20% 10%,#edf5ff 0,transparent 35%),radial-gradient(circle at 85% 90%,#f4edff 0,transparent 32%),var(--bg)}.setup-card{width:min(520px,100%);background:#fff;border-radius:24px;padding:30px;box-shadow:0 18px 55px rgba(0,0,0,.08),0 0 0 .5px rgba(60,60,67,.12)}.setup-brand{margin-bottom:28px}.setup-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#3a8cff,#0068d9);color:#fff;margin-bottom:20px}.setup-card h1{font-size:1.75rem;margin-bottom:8px}.setup-card>p{font-size:.88rem}.setup-message{display:flex;align-items:flex-start;gap:9px;background:#f6f6f8;border-radius:12px;padding:12px;margin:20px 0;font-size:.8rem;color:var(--muted)}.setup-card form{display:grid;gap:15px}.setup-card button{width:100%;min-height:45px;margin-top:4px}

@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:1020px){.shell{grid-template-columns:235px minmax(0,1fr)}.sidebar-card{display:none}.page-wrap{padding:36px 26px 60px}.home-grid{grid-template-columns:1fr}.home-side{display:grid;grid-template-columns:1fr 1fr;gap:22px}.quick-section{margin-top:0}.settings-section{min-width:0}}
@media(max-width:760px){
  .mobile-only{display:grid}.login{grid-template-columns:1fr}.welcome{display:none}.login-panel{min-height:100dvh;padding:28px 22px}.login-card{max-width:390px}.login-badge{margin-bottom:22px}.login-card h2{font-size:1.8rem}
  .shell{display:block}.sidebar{position:fixed;left:0;top:0;width:min(320px,86vw);height:100dvh;transform:translateX(-105%);transition:transform .25s cubic-bezier(.22,.8,.2,1);box-shadow:18px 0 45px rgba(0,0,0,.16);border-right:0;padding-top:max(16px,env(safe-area-inset-top));z-index:100}.nav-open .sidebar{transform:translateX(0)}.sidebar-overlay{display:block;position:fixed;inset:0;border:0;border-radius:0;background:rgba(0,0,0,.28);backdrop-filter:blur(2px);z-index:90;opacity:0;pointer-events:none;transition:opacity .22s ease}.nav-open .sidebar-overlay{opacity:1;pointer-events:auto}.sidebar-card{display:flex}.page-top{height:auto;min-height:60px;padding:10px 14px;padding-top:max(10px,env(safe-area-inset-top));gap:8px}.context{flex:1;gap:7px}.context-symbol{display:none}.context label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.context select{min-width:0;max-width:none;width:100%;font-size:.82rem}.user-chip{display:none}.logout-button{display:none}.page-wrap{padding:26px 16px calc(46px + env(safe-area-inset-bottom))}.section-title{margin-bottom:22px}.title-cluster{gap:12px}.page-icon{width:43px;height:43px;border-radius:12px}.section-title h1{font-size:1.8rem}.section-title p{font-size:.83rem;line-height:1.4}.toolbar-row{align-items:stretch;flex-direction:column}.search-shell{max-width:none}.check{justify-content:space-between;background:#fff;border-radius:12px;padding:10px 12px;box-shadow:0 0 0 .5px rgba(60,60,67,.12)}.settings-group{border-radius:14px}.settings-row{padding:9px 12px;min-height:59px}.settings-row+.settings-row:before{left:53px}.status-pill{display:none}.row-content p{max-width:65vw}.home-grid{display:block}.focus-card{min-height:235px;padding:24px;border-radius:20px}.focus-card h2{font-size:1.55rem}.home-side{display:block}.group-title{padding-left:4px}.group-title h2{font-size:.95rem}.empty-group{min-height:235px}.setup-shell{padding:18px}.setup-card{padding:24px;border-radius:20px}
}
@media(max-width:390px){.page-wrap{padding-left:13px;padding-right:13px}.section-title p{max-width:285px}.focus-card{padding:21px}.row-content p{max-width:58vw}}

/* =========================================================
   Próximo Passo TEA · Visual System V0.4
   Apple-like interaction + warm palette visual language
   ========================================================= */
:root{
  --bg:#f3efe7;--surface:#fffdfa;--surface-2:#f7f2e9;--sidebar:#eee9df;
  --text:#31372d;--muted:#73766d;--muted-2:#949487;--line:rgba(64,70,57,.13);
  --blue:#69745d;--sage:#6f7961;--moss:#4b5945;--olive:#7e7d59;--terracotta:#b65e39;--clay:#c17c56;--gold:#bd8b46;
  --green:#6f7961;--purple:#9b6d58;--orange:#bd8b46;--cyan:#8b9680;--indigo:#777357;
  --shadow:0 16px 45px rgba(68,58,45,.08);
}
body,.app-page{background:radial-gradient(circle at 85% -10%,rgba(188,137,70,.08),transparent 30%),var(--bg)}
.eyebrow{color:var(--terracotta)}
.apple-button,button[type=submit],.button{background:var(--moss)}
.plain{background:rgba(255,253,250,.86);color:var(--moss)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:rgba(111,121,97,.35)}
input:focus,select:focus,textarea:focus{border-color:rgba(111,121,97,.52);box-shadow:0 0 0 3px rgba(111,121,97,.10)}
.brand-mark{background:linear-gradient(145deg,#7e876f,#4c5a46);box-shadow:0 5px 16px rgba(68,84,62,.2)}
.brand-copy small{letter-spacing:.06em;color:#8b806d}
.sidebar{background:rgba(239,235,226,.9);border-color:rgba(75,89,69,.11)}
.sidebar-head{padding-bottom:14px}
.sidebar-visual{position:relative;margin:0 7px 18px;height:118px;border-radius:18px;overflow:hidden;box-shadow:0 5px 22px rgba(64,57,45,.08);border:1px solid rgba(70,75,62,.08)}
.sidebar-visual img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.86) brightness(.82)}
.sidebar-visual-overlay{position:absolute;inset:0;padding:15px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(180deg,transparent 30%,rgba(36,43,33,.66));color:#fff}
.sidebar-visual-overlay span{font-size:.64rem;text-transform:uppercase;letter-spacing:.12em;opacity:.8}.sidebar-visual-overlay strong{font-family:Georgia,"Times New Roman",serif;font-size:1.05rem;font-weight:500;margin-top:3px}
.sidebar-card{background:rgba(255,253,250,.72)}.sidebar-card-icon{background:#f3e4d9;color:var(--terracotta)}
.nav a[aria-current=page]{background:rgba(83,94,75,.12)}
.tone-sage{background:linear-gradient(145deg,#88917a,#65715b)!important}.tone-moss{background:linear-gradient(145deg,#64705a,#44513f)!important}.tone-olive{background:linear-gradient(145deg,#92916d,#74744f)!important}.tone-terracotta{background:linear-gradient(145deg,#c97751,#a85031)!important}.tone-clay{background:linear-gradient(145deg,#cf9470,#b76e49)!important}.tone-gold{background:linear-gradient(145deg,#d2a35f,#ad7937)!important}
.tone-soft-sage{background:#edf0e9;color:#596450}.tone-soft-moss{background:#e8ece5;color:#465443}.tone-soft-olive{background:#f0efe4;color:#74704d}.tone-soft-terracotta{background:#f7e9e0;color:#9d4d30}.tone-soft-clay{background:#f5e9e2;color:#a76443}.tone-soft-gold{background:#f7eedc;color:#9a6a31}
.page-top{background:rgba(243,239,231,.79);border-color:rgba(80,79,65,.10)}
.context-symbol{color:var(--moss);background:rgba(255,253,250,.9)}
.context select{background:rgba(87,91,78,.09)}
.context-edit{width:34px;height:34px;padding:0;background:transparent;color:var(--muted);border-radius:10px}
.top-create{background:var(--moss);color:#fff;min-height:36px;border-radius:11px;padding:7px 12px;box-shadow:0 2px 8px rgba(71,83,65,.16)}
.page-icon{box-shadow:0 5px 16px rgba(72,64,49,.12)}
.settings-group{background:rgba(255,253,250,.91);box-shadow:0 1px 1px rgba(68,58,45,.02),0 0 0 .5px rgba(70,70,60,.08)}
.settings-row{position:relative;cursor:pointer}.settings-row:hover{background:rgba(101,112,91,.055)}
.settings-row+.settings-row:before{background:rgba(74,78,67,.10)}
.row-more{width:34px;height:34px;padding:0;border-radius:10px;background:transparent;color:var(--muted);opacity:0;transition:.15s ease}.data-row:hover .row-more,.row-more:focus-visible{opacity:1}.row-more:hover{background:rgba(75,82,69,.08)}
.data-row .row-chevron{transition:.15s ease}.data-row:hover .row-chevron{transform:translateX(2px);color:var(--moss)}
.status-pill{background:#efede6;color:#6d7068}.status-in_progress{background:#f5e7df;color:#9e4f33}.status-done,.status-completed{background:#e8eee6;color:#52664e}.status-scheduled{background:#f5eddc;color:#8d6733}.status-cancelled,.status-archived{background:#eeeae6;color:#8b8077}
.search-shell{background:rgba(255,253,250,.82)}
.search-shell input{background:transparent}
.group-title a{color:var(--moss)}
.focus-card.warm-focus,.warm-focus{background:linear-gradient(145deg,#5b6853,#77806b);color:#fff;box-shadow:0 18px 45px rgba(68,82,62,.16)}
.focus-card.warm-focus p{color:rgba(255,255,255,.78)}.warm-focus .apple-button{background:#fff;color:#45513f}.focus-icon{background:rgba(255,255,255,.15)}

/* family visual content */
.family-banner{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);min-height:290px;background:#fff9f0;border-radius:26px;overflow:hidden;margin-bottom:28px;box-shadow:var(--shadow);border:1px solid rgba(95,89,70,.08)}
.family-banner-image{min-height:290px}.family-banner-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.family-banner-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(26px,4vw,50px);background:linear-gradient(145deg,#fffaf2,#f4ecdf)}
.family-banner-copy h2{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(2rem,3.2vw,3.5rem);color:#344032;margin-bottom:10px}.family-banner-copy p{max-width:390px}.banner-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:12px}
.visual-section .group-title>div p{font-size:.8rem;margin:3px 0 0}.visual-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.visual-card{padding:0;background:#fff;border:1px solid rgba(68,65,52,.08);border-radius:18px;overflow:hidden;text-align:left;color:var(--text);box-shadow:0 4px 16px rgba(68,58,45,.06);display:block}.visual-card img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}.visual-card span{display:block;padding:13px 14px}.visual-card strong,.visual-card small{display:block}.visual-card strong{font-size:.88rem}.visual-card small{color:var(--muted);font-size:.73rem;margin-top:3px}

/* Sheets / iOS-like inspectors */
.sheet-open{overflow:hidden}.sheet-layer{position:fixed;inset:0;z-index:400;pointer-events:none}.sheet-layer.is-open{pointer-events:auto}.sheet-backdrop{position:absolute;inset:0;width:100%;height:100%;border-radius:0;background:rgba(39,39,33,.22);backdrop-filter:blur(3px);opacity:0;transition:opacity .18s ease}.sheet-layer.is-open .sheet-backdrop{opacity:1}
.app-sheet{position:absolute;top:10px;right:10px;bottom:10px;width:min(520px,calc(100vw - 20px));background:#f7f3ec;border-radius:24px;box-shadow:-18px 0 55px rgba(42,42,35,.16);display:flex;flex-direction:column;transform:translateX(calc(100% + 28px));transition:transform .22s cubic-bezier(.22,.75,.22,1);overflow:hidden;border:1px solid rgba(71,73,62,.08)}.sheet-layer.is-open .app-sheet{transform:translateX(0)}.app-sheet.sheet-wide{width:min(820px,calc(100vw - 20px))}
.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;background:rgba(255,253,250,.82);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.sheet-title-wrap{display:flex;align-items:center;gap:12px;min-width:0}.sheet-symbol{width:38px;height:38px;border-radius:11px;color:#fff;display:grid;place-items:center;flex:0 0 auto}.sheet-title-wrap h2{font-size:1.08rem;margin:0}.sheet-title-wrap p{font-size:.73rem;margin:3px 0 0}.sheet-body{padding:18px 20px 28px;overflow:auto;flex:1}.sheet-footer{padding:12px 18px calc(12px + env(safe-area-inset-bottom));display:flex;justify-content:flex-end;gap:9px;background:rgba(255,253,250,.9);border-top:1px solid var(--line);backdrop-filter:blur(18px)}
.danger-button{background:#b9513d;color:#fff}.danger-item{color:#b14334!important}
.detail-hero{border-radius:18px;padding:20px;display:flex;align-items:center;gap:15px;margin-bottom:16px}.detail-hero>span{width:52px;height:52px;border-radius:16px;background:rgba(255,255,255,.65);display:grid;place-items:center}.detail-hero small{font-size:.64rem;font-weight:700;letter-spacing:.10em;opacity:.65}.detail-hero h3{margin:4px 0 0;font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:1.45rem}
.detail-list{background:rgba(255,253,250,.92);border-radius:16px;overflow:hidden;border:1px solid var(--line)}.detail-row{min-height:50px;display:grid;grid-template-columns:145px 1fr;gap:18px;align-items:center;padding:10px 14px}.detail-row+.detail-row{border-top:1px solid var(--line)}.detail-row span{font-size:.76rem;color:var(--muted)}.detail-row strong{font-size:.84rem;font-weight:600;text-align:right;word-break:break-word}.detail-note{margin-top:14px;padding:16px;background:rgba(255,253,250,.92);border:1px solid var(--line);border-radius:16px}.detail-note>span{font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.detail-note p{margin:8px 0 0;color:var(--text);font-size:.88rem}.file-preview-card{margin-top:14px;border-radius:16px;background:#fff;display:flex;align-items:center;gap:12px;padding:14px;text-decoration:none;border:1px solid var(--line)}.file-preview-card>svg:first-child{color:var(--terracotta)}.file-preview-card div{min-width:0;flex:1}.file-preview-card strong,.file-preview-card span{display:block}.file-preview-card strong{font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-preview-card span{font-size:.72rem;color:var(--muted);margin-top:3px}
.sheet-form{display:grid;gap:15px}.form-section{padding:16px;background:rgba(255,253,250,.9);border-radius:17px;border:1px solid var(--line);display:grid;gap:13px}.form-section-title{font-size:.7rem;font-weight:700;letter-spacing:.07em;color:var(--muted);text-transform:uppercase}.form-field{display:grid;gap:6px;margin:0}.form-field>span{font-size:.78rem;font-weight:600}.form-field small{color:var(--muted);font-size:.68rem}.form-field input,.form-field select,.form-field textarea{border:1px solid rgba(67,72,60,.13);background:#fffdf9;border-radius:12px;padding:10px 11px;resize:vertical;color:var(--text)}.form-field textarea{min-height:90px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.current-file{display:flex;align-items:center;gap:8px;font-size:.74rem;color:var(--muted);padding:8px 10px;background:#f4f0e9;border-radius:10px}.choice-cards{display:grid;gap:10px}.choice-cards button{display:flex;align-items:center;gap:12px;padding:14px;background:#fff;color:var(--text);border:1px solid var(--line);border-radius:16px;text-align:left;min-height:74px}.choice-cards button:hover{background:#fbf8f2}.choice-cards button>div{min-width:0;flex:1}.choice-cards strong,.choice-cards small{display:block}.choice-cards small{font-size:.74rem;color:var(--muted);margin-top:3px}.choice-icon{width:42px;height:42px;border-radius:12px;color:#fff;display:grid;place-items:center}
.confirm-copy{padding:8px 2px}.confirm-copy p{font-size:.92rem;color:var(--text)}
.image-viewer{display:grid;place-items:center;min-height:70vh}.image-viewer img{display:block;max-width:100%;max-height:calc(100vh - 150px);object-fit:contain;border-radius:16px;box-shadow:0 16px 50px rgba(54,46,36,.14)}
.popover-menu{position:fixed;z-index:520;width:210px;padding:6px;background:rgba(255,253,249,.95);backdrop-filter:blur(20px);border:1px solid rgba(68,70,59,.12);border-radius:13px;box-shadow:0 16px 38px rgba(53,49,40,.18)}.popover-menu button{width:100%;justify-content:flex-start;background:transparent;color:var(--text);min-height:38px;border-radius:9px;padding:7px 9px;font-size:.82rem;font-weight:560}.popover-menu button:hover{background:rgba(80,87,74,.08)}
.toast-stack{position:fixed;right:20px;top:78px;z-index:600;display:grid;gap:8px;pointer-events:none}.toast{display:flex;align-items:center;gap:9px;padding:11px 14px;background:rgba(50,58,46,.94);color:#fff;border-radius:13px;box-shadow:0 10px 30px rgba(35,39,32,.18);font-size:.82rem;transform:translateY(-8px);opacity:0;transition:.18s ease}.toast.show{transform:none;opacity:1}.toast-error{background:rgba(145,62,45,.96)}

/* login visual */
.login{background:#f6f0e6}.welcome{padding:0;background:#384334;position:relative}.welcome:before,.welcome:after{display:none}.welcome-visual{position:absolute;inset:0}.welcome-visual img{width:100%;height:100%;object-fit:cover;display:block}.welcome-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(38,45,34,.05) 25%,rgba(31,39,30,.70) 100%)}.welcome-content{position:relative;z-index:2;margin-top:auto;padding:clamp(34px,5vw,72px);color:#fff}.welcome-content .eyebrow{color:#f1c791}.welcome-content h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;color:#fff}.welcome-content p{color:rgba(255,255,255,.82)}.login-panel{background:#f7f3ec}.login-badge{background:linear-gradient(145deg,#7e876f,#4c5a46);box-shadow:0 10px 24px rgba(69,82,62,.19)}

@media(max-width:1100px){.sidebar-visual{height:96px}.family-banner{grid-template-columns:1fr}.family-banner-image{height:250px;min-height:0}.family-banner-copy{padding:26px}.visual-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.top-create span{display:none}.top-create{width:38px;padding:0}.context-edit{display:none}.sidebar-visual{height:110px}.family-banner{border-radius:20px;margin-bottom:20px}.family-banner-image{height:190px}.family-banner-copy{padding:22px}.family-banner-copy h2{font-size:2rem}.visual-grid{grid-template-columns:1fr}.row-more{opacity:1}.app-sheet,.app-sheet.sheet-wide{inset:0;width:100%;height:100%;border-radius:0}.sheet-head{padding-top:calc(14px + env(safe-area-inset-top))}.sheet-body{padding:16px}.form-grid{grid-template-columns:1fr}.sheet-footer>*{flex:1}.detail-row{grid-template-columns:110px 1fr}.toast-stack{left:12px;right:12px;top:auto;bottom:calc(16px + env(safe-area-inset-bottom))}.toast{justify-content:center}.login{grid-template-columns:1fr}.welcome{display:none}}
.branded-setup{background:radial-gradient(circle at 15% 5%,rgba(182,94,57,.08),transparent 30%),var(--bg)}.branded-setup .setup-card{padding:0;overflow:hidden;max-width:780px}.setup-cover{height:220px;overflow:hidden}.setup-cover img{width:100%;height:100%;object-fit:cover;display:block}.setup-content{padding:30px}.setup-content .setup-brand{margin-bottom:26px}@media(max-width:600px){.setup-cover{height:150px}.setup-content{padding:22px}}
.branded-setup .setup-card{width:min(820px,100%)}

/* =========================================================
   V0.4.1 · Palette-only visual correction
   References are used only for color direction. No source
   artwork or third-party brand imagery is embedded here.
   ========================================================= */
.sidebar-visual{
  background:
    radial-gradient(circle at 82% 18%,rgba(197,154,82,.30),transparent 25%),
    linear-gradient(145deg,#69745d 0%,#4b5945 58%,#394436 100%);
}
.sidebar-visual img{display:none!important}
.sidebar-visual:before{content:"";position:absolute;width:110px;height:110px;border-radius:50%;left:-38px;top:-45px;border:1px solid rgba(245,225,190,.28)}
.sidebar-visual:after{content:"";position:absolute;width:92px;height:92px;border-radius:50%;right:-34px;bottom:-52px;background:rgba(182,94,57,.22)}
.sidebar-visual-mark{position:absolute;right:14px;top:14px;width:56px;height:56px;z-index:2}
.sidebar-visual-mark strong{position:absolute;inset:10px;border-radius:13px;display:grid;place-items:center;background:rgba(255,253,250,.92);color:#4b5945;font-size:17px;box-shadow:0 6px 16px rgba(30,36,27,.14)}
.sidebar-visual-mark i{position:absolute;width:9px;height:9px;border-radius:50%;background:#e3bb84}
.sidebar-visual-mark i:nth-child(1){left:0;bottom:4px}.sidebar-visual-mark i:nth-child(2){left:10px;top:0;background:#d28b63}.sidebar-visual-mark i:nth-child(3){right:0;top:15px;background:#aeb39a}
.sidebar-visual-overlay{background:linear-gradient(180deg,transparent 28%,rgba(36,43,33,.44))}
.sidebar-visual-overlay span{opacity:.72}.sidebar-visual-overlay strong{font-family:inherit;font-size:.92rem;font-weight:650;letter-spacing:-.01em}

.family-banner{grid-template-columns:minmax(320px,.9fr) minmax(330px,1.1fr)}
.family-banner-art{position:relative;min-height:290px;overflow:hidden;background:
  radial-gradient(circle at 22% 22%,rgba(197,154,82,.30),transparent 18%),
  radial-gradient(circle at 78% 72%,rgba(182,94,57,.23),transparent 22%),
  linear-gradient(145deg,#596651,#78816c 58%,#8d8d66)}
.family-banner-art:before{content:"";position:absolute;width:310px;height:310px;border:1px solid rgba(255,246,230,.20);border-radius:50%;left:-110px;bottom:-160px}
.family-banner-art:after{content:"";position:absolute;width:250px;height:250px;border:1px solid rgba(255,246,230,.22);border-radius:50%;right:-112px;top:-110px}
.step-mark{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);width:126px;height:126px}
.step-mark strong{position:absolute;inset:25px;border-radius:32px;background:#fff9f0;color:#46533f;display:grid;place-items:center;font-size:42px;font-weight:700;box-shadow:0 18px 38px rgba(40,45,36,.18)}
.step-mark span{position:absolute;width:18px;height:18px;border-radius:50%;box-shadow:0 5px 12px rgba(35,38,31,.14)}
.step-mark span:nth-child(1){left:4px;bottom:16px;background:#e3b77c}.step-mark span:nth-child(2){left:28px;top:2px;background:#c77850}.step-mark span:nth-child(3){right:0;top:34px;background:#c9c7a3}
.step-orbit{position:absolute;border:1px solid rgba(255,249,240,.22);border-radius:50%}.orbit-one{width:200px;height:200px;left:calc(50% - 100px);top:calc(46% - 100px)}.orbit-two{width:260px;height:260px;left:calc(50% - 130px);top:calc(46% - 130px)}
.step-caption{position:absolute;left:0;right:0;bottom:25px;text-align:center;color:rgba(255,255,255,.74);font-size:.64rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.family-banner-copy{background:linear-gradient(145deg,#fffaf2,#f4ecdf)}

.visual-card{text-decoration:none;position:relative;transition:transform .16s ease,box-shadow .16s ease}.visual-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(68,58,45,.09)}
.visual-card-art{height:145px;position:relative;display:grid;place-items:center;overflow:hidden;color:#fff}
.visual-card-routine .visual-card-art{background:linear-gradient(145deg,#6f7961,#4b5945)}
.visual-card-agenda .visual-card-art{background:linear-gradient(145deg,#c17c56,#bd8b46)}
.visual-card-art:before,.visual-card-art:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,255,255,.24)}
.visual-card-art:before{width:150px;height:150px;left:-60px;top:-72px}.visual-card-art:after{width:120px;height:120px;right:-46px;bottom:-55px}
.visual-card-art>svg{position:relative;z-index:2;width:34px;height:34px}
.visual-dots,.visual-bars{position:absolute;inset:auto 14px 13px 14px;display:flex;align-items:flex-end;gap:6px;opacity:.72}
.visual-dots i{width:8px;height:8px;border-radius:50%;background:#fff}.visual-dots i:nth-child(2){opacity:.65}.visual-dots i:nth-child(3){opacity:.4}
.visual-bars i{display:block;width:23px;border-radius:5px 5px 2px 2px;background:#fff}.visual-bars i:nth-child(1){height:17px;opacity:.42}.visual-bars i:nth-child(2){height:29px;opacity:.68}.visual-bars i:nth-child(3){height:41px}

/* Login: abstract project-owned graphic built only with CSS */
.welcome{background:linear-gradient(155deg,#394536 0%,#53614d 56%,#6f7358 100%)}
.welcome-visual{position:absolute;inset:0;overflow:hidden}
.welcome-shade{display:none}
.welcome-orb{position:absolute;border-radius:50%;filter:none}
.orb-a{width:420px;height:420px;right:-125px;top:-145px;background:rgba(197,154,82,.17);border:1px solid rgba(255,236,201,.18)}
.orb-b{width:330px;height:330px;left:-105px;bottom:-115px;background:rgba(182,94,57,.19)}
.orb-c{width:160px;height:160px;right:18%;bottom:15%;background:rgba(226,190,137,.10);border:1px solid rgba(255,244,223,.18)}
.welcome-line{position:absolute;border:1px solid rgba(245,225,190,.23);border-radius:50%}.line-a{width:580px;height:580px;left:-230px;top:-340px}.line-b{width:460px;height:460px;right:-250px;bottom:-210px}
.welcome-stepmark{position:absolute;left:50%;top:32%;transform:translate(-50%,-50%);width:160px;height:160px}
.welcome-stepmark strong{position:absolute;inset:32px;display:grid;place-items:center;border-radius:38px;background:rgba(255,250,241,.94);color:#46533f;font-size:50px;box-shadow:0 24px 55px rgba(21,27,19,.18)}
.welcome-stepmark span{position:absolute;width:22px;height:22px;border-radius:50%}.welcome-stepmark span:nth-child(1){left:3px;bottom:24px;background:#d7b06f}.welcome-stepmark span:nth-child(2){left:36px;top:0;background:#c36d47}.welcome-stepmark span:nth-child(3){right:1px;top:43px;background:#aeb59d}

/* Setup: no borrowed image, same palette as the product */
.setup-cover{height:220px;position:relative;display:grid;place-items:center;overflow:hidden;background:
  radial-gradient(circle at 12% 14%,rgba(197,154,82,.24),transparent 24%),
  radial-gradient(circle at 84% 80%,rgba(182,94,57,.22),transparent 25%),
  linear-gradient(145deg,#5f6a56,#3f4d3a)}
.setup-cover img{display:none!important}
.setup-cover:before,.setup-cover:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(255,248,236,.20)}
.setup-cover:before{width:300px;height:300px;left:-115px;top:-190px}.setup-cover:after{width:260px;height:260px;right:-110px;bottom:-165px}
.setup-cover-mark{position:relative;width:95px;height:95px;z-index:2}.setup-cover-mark strong{position:absolute;inset:19px;border-radius:22px;background:#fff9ef;color:#4b5945;display:grid;place-items:center;font-size:30px}.setup-cover-mark span{position:absolute;width:14px;height:14px;border-radius:50%}.setup-cover-mark span:nth-child(1){left:0;bottom:12px;background:#d9b16f}.setup-cover-mark span:nth-child(2){left:22px;top:0;background:#c26b47}.setup-cover-mark span:nth-child(3){right:0;top:28px;background:#a9b197}.setup-cover-copy{position:absolute;bottom:17px;color:rgba(255,255,255,.72);font-size:.66rem;font-weight:700;letter-spacing:.15em}

@media(max-width:1100px){.family-banner-art{height:250px;min-height:0}}
@media(max-width:760px){.family-banner-art{height:190px}.step-mark{transform:translate(-50%,-50%) scale(.78)}.welcome-stepmark{display:none}}
