/* Tracker v31: module navigation, viewport-fit pages and Parent Observer */
.brand-mark{overflow:hidden;padding:3px;background:linear-gradient(145deg,#0e1b3d,#171241)}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.sidebar{overflow:hidden}
.sidebar nav{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#293751 transparent}
.sidebar nav::-webkit-scrollbar{width:4px}.sidebar nav::-webkit-scrollbar-thumb{border-radius:8px;background:#293751}
.sidebar .nav-divider{height:1px;margin:7px 10px;background:var(--line)}
.sidebar nav .nav-entry{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;gap:3px;min-width:0}
.sidebar nav .nav-main{min-width:0;width:100%}
.sidebar nav .nav-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar nav .nav-help{display:grid;place-items:center;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:8px;color:var(--muted);font-size:11px;font-weight:800;text-align:center;opacity:.72}
.sidebar nav .nav-help:hover,.sidebar nav .nav-help:focus-visible{border-color:var(--line);background:var(--panel2);color:var(--accent);opacity:1;outline:none}
.sidebar nav .nav-entry.active .nav-main{background:#171d3d;color:#fff;box-shadow:inset 3px 0 var(--accent)}
.sidebar-footer{flex:0 0 auto;background:#09111d}
.product-credit{position:static!important;inset:auto!important}

@media(min-width:761px){
  body:has(#app:not(.hidden)){height:100dvh;overflow:hidden}
  .app{height:100dvh;overflow:hidden}
  .main{height:100dvh;overflow:hidden;display:grid;grid-template-rows:72px minmax(0,1fr)}
  .view{width:100%;height:100%;min-height:0;margin:0 auto;padding:22px 28px;overflow:hidden}
  .view.scroll-view{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#2a3850 transparent}
  .view.fit-view{display:flex;min-height:0;flex-direction:column}
  .fit-view>.page-head{flex:0 0 auto;margin-bottom:15px}
  .fit-view>.stats{flex:0 0 auto}
}

.tracker-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}
.tracker-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr);gap:14px;min-height:0;flex:1}
.tracker-dashboard-grid>.card{min-height:0;padding:16px;overflow:hidden}
.tracker-progress-card .overview-flex{height:calc(100% - 35px);gap:20px}
.tracker-progress-card .progress-ring{width:clamp(112px,15vh,145px);flex:0 0 auto}
.dashboard-module-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;flex:1}
.dashboard-module-links button{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 9px;min-width:0;padding:10px;border:1px solid var(--line);border-radius:11px;background:#0a1422;color:var(--text);text-align:left}
.dashboard-module-links button:hover{border-color:var(--accent);transform:translateY(-1px)}
.dashboard-module-links button>span{grid-row:span 2;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#1a2841;color:var(--accent2)}
.dashboard-module-links b{overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.dashboard-module-links small{color:var(--muted);font-size:8px}
.tracker-today-card .briefing-list{display:grid;gap:7px}.tracker-today-card .briefing-list>div{padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#0a1422}.tracker-today-card .briefing-list b{display:block;font-size:10px}.tracker-today-card .briefing-list small{color:var(--muted);font-size:8px}
.compact-empty{padding:24px 12px}

/* Calendar occupies the available page height; only its Today list scrolls. */
.fit-view[data-current-view="calendar"] .calendar-layout{grid-template-columns:minmax(0,1fr) minmax(245px,.3fr);min-height:0;flex:1;align-items:stretch}
.fit-view[data-current-view="calendar"] .calendar-card,.fit-view[data-current-view="calendar"] .today-panel{height:100%;min-height:0;position:static}
.fit-view[data-current-view="calendar"] .calendar-card{display:grid;grid-template-rows:auto minmax(0,1fr);padding:14px}
.fit-view[data-current-view="calendar"] .calendar-grid{height:100%;grid-template-rows:28px repeat(6,minmax(0,1fr))}
.fit-view[data-current-view="calendar"] .cal-day{min-height:0;height:100%;overflow:hidden;padding:5px}
.fit-view[data-current-view="calendar"] .today-panel{overflow:auto;scrollbar-width:thin}
.fit-view[data-current-view="calendar"] .day-name{padding:7px}

/* Optional module pages keep their controls visible and scroll records internally. */
.entity-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}
.entity-workbench{display:flex;min-height:0;flex:1;flex-direction:column;padding:15px}
.entity-workbench>.card-title{flex:0 0 auto;margin-bottom:10px}.entity-list{min-height:0;overflow:auto;display:grid;align-content:start;gap:7px;padding-right:3px;scrollbar-width:thin}
.entity-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;padding:8px;border:1px solid var(--line);border-radius:11px;background:#0a1422}
.entity-main{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;border:0;background:transparent;color:var(--text);text-align:left}
.entity-main>span:last-child{display:grid;min-width:0;gap:3px}.entity-main strong,.entity-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.entity-main strong{font-size:11px}.entity-main small{color:var(--muted);font-size:9px}
.entity-icon{display:grid;place-items:center;width:35px;height:35px;border-radius:10px;background:#1b2942;color:var(--accent2)}
.entity-main i{height:4px;overflow:hidden;border-radius:5px;background:#1a2739}.entity-main i b{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,var(--accent),var(--accent2))}
.habit-check{min-width:92px;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:9px;font-weight:700}.habit-check.done{border-color:#35d07f66;background:#143825;color:#68e8a0}

/* Navigation & Modules settings */
.preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}
.preset-card{display:grid;gap:4px;min-height:76px;padding:11px;border:1px solid var(--line);border-radius:11px;background:#0a1422;color:var(--text);text-align:left}.preset-card:hover,.preset-card.active{border-color:var(--accent);background:#171b3a}.preset-card strong{font-size:10px}.preset-card small{color:var(--muted);font-size:8px;line-height:1.4}
.module-toggle-list{display:grid;grid-template-columns:1fr 1fr;column-gap:16px}.module-toggle-list .setting-row>span{display:grid;gap:2px}.module-toggle-list .setting-row strong{font-size:10px}.module-toggle-list .setting-row small{color:var(--muted);font-size:8px}.settings-note{margin:12px 0 0;color:var(--muted);font-size:9px;line-height:1.6}.module-disabled-setting{display:none!important}
.module-setting-group{margin-top:14px;padding-top:4px;border-top:1px solid var(--line)}
.module-setting-group h4{margin:10px 0 2px;color:var(--muted);font-size:9px;letter-spacing:.1em;text-transform:uppercase}
.settings-shell{min-height:0;flex:1}.fit-view[data-current-view="settings"] .settings-shell{overflow:hidden}.fit-view[data-current-view="settings"] .settings-sidebar{top:0;max-height:100%;overflow:auto}.fit-view[data-current-view="settings"] .settings-grid{min-height:0;max-height:100%;overflow:auto;scrollbar-width:thin}.fit-view[data-current-view="settings"] .tracker-module-settings{grid-column:1/-1}

/* Parent Observer uses a reserved footer, never an overlay. */
.parent-observer-mode .parent-product-credit{display:none!important}.parent-observer-mode .floating-messages{bottom:82px}
.parent-observer-mode .view{max-width:none;padding:18px 28px}
.parent-observer-shell{display:grid;height:100%;min-height:0;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:11px}
.parent-observer-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.parent-observer-head>div>p{margin:3px 0 0;color:var(--muted);font-size:10px}.observer-brand{display:flex;align-items:center;gap:11px}.observer-brand>img{width:42px;height:42px;object-fit:contain}.observer-brand>span{display:grid}.observer-brand small{color:var(--accent2);font-size:8px;letter-spacing:.12em}.observer-brand h1{margin:1px 0;font:700 24px 'Space Grotesk'}.parent-observer-actions{display:flex;gap:8px}
.parent-observer-control{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(360px,1.45fr);gap:11px}.parent-observer-control>label,.observer-invite{min-height:66px;padding:10px 13px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.parent-observer-control>label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;color:var(--muted);font-size:9px;text-transform:uppercase}.parent-observer-control select{padding:9px}.observer-invite{display:flex;align-items:center;justify-content:space-between;gap:14px}.observer-invite>div{display:grid;gap:1px}.observer-invite span,.observer-invite small{color:var(--muted);font-size:8px}.observer-invite strong{color:var(--accent2);font:700 18px 'Space Grotesk';letter-spacing:.08em}
.observer-tabs{display:flex;gap:5px;padding:4px;border:1px solid var(--line);border-radius:11px;background:#0a1422}.observer-tabs button{flex:1;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:9px;font-weight:800}.observer-tabs button.active{background:#1b2145;color:#fff;box-shadow:inset 0 -2px var(--accent)}
.parent-observer-content{min-height:0}.parent-observer-content.fit-parent-view{overflow:hidden}.parent-observer-content.scroll-parent-view{overflow:auto;scrollbar-width:thin}.observer-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:11px}.observer-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;min-height:0}.observer-overview-grid>.card{padding:14px;min-height:0}.presence{color:var(--muted)!important}.presence.online{color:#58e99a!important}.observer-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.observer-summary>div{display:grid;gap:3px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#0a1422}.observer-summary small{color:var(--muted);font-size:8px}.observer-summary strong{font-size:18px}.activity-table.compact>div{padding:7px}
.observer-detail-card{height:100%;min-height:0;display:flex;flex-direction:column}.observer-subjects{display:grid;min-height:0;overflow:auto;gap:8px}.observer-subjects details{border:1px solid var(--line);border-radius:11px;background:#0a1422}.observer-subjects summary{display:flex;align-items:center;justify-content:space-between;padding:11px;cursor:pointer}.observer-subjects summary>span{display:grid}.observer-subjects summary small{color:var(--muted);font-size:8px}.observer-module{padding:9px 12px;border-top:1px solid var(--line)}.observer-module h4{margin:0 0 6px;font-size:10px}.observer-module>div,.observer-list>div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid #172337;font-size:9px}.observer-module>div:last-child,.observer-list>div:last-child{border:0}.observer-module small,.observer-list small{color:var(--muted)}.topic-state{display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:#18263c;color:var(--muted)}.topic-state.completed,.topic-state.done{background:#143825;color:#68e8a0}.topic-state.in-progress{background:#2f294c;color:#b9a8ff}
.observer-plan-grid{display:grid;height:100%;min-height:0;grid-template-columns:1fr 1fr;gap:11px}.observer-plan-grid>.card{display:flex;min-height:0;flex-direction:column}.observer-list,.observer-plan-grid .activity-table,.observer-plan-grid .usage-bars{min-height:0;overflow:auto;scrollbar-width:thin}.observer-list>div{grid-template-columns:auto minmax(0,1fr)}.observer-list>div>span:last-child{display:grid;min-width:0}.observer-list b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.parent-empty{align-self:center}
.parent-observer-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;padding-top:7px;border-top:1px solid var(--line)}.parent-observer-footer .product-credit{width:168px;margin:0;padding:5px 8px}.parent-observer-footer>div:last-child{display:flex;gap:7px}.parent-observer-footer .btn{padding:8px 10px;font-size:9px}
.cloud-parent-setup ol{padding-left:20px;color:var(--muted);line-height:1.7}

@media(max-height:780px) and (min-width:761px){
  .view{padding:14px 22px}.page-head h1{font-size:24px}.page-head p{font-size:10px}.stat,.card{padding:12px}.stat strong{font-size:18px}.stat-icon{width:35px;height:35px}.tracker-progress-card .progress-ring{width:104px}.sidebar{padding-top:16px;padding-bottom:12px}.sidebar>.brand{padding-bottom:12px}.sidebar nav button{padding:8px 12px}.sidebar-tools{margin:4px 0}.analog-clock,.side-timer{width:56px;height:56px}.product-credit{margin-top:4px;padding:5px}.parent-observer-shell{gap:7px}.parent-observer-head h1{font-size:21px}.observer-stats{margin-bottom:7px}.observer-invite,.parent-observer-control>label{min-height:58px}.parent-observer-footer{min-height:48px}
}

@media(max-width:1100px) and (min-width:761px){
  .tracker-dashboard-grid{grid-template-columns:1fr}.tracker-today-card{display:none}.fit-view[data-current-view="calendar"] .calendar-layout{grid-template-columns:1fr}.fit-view[data-current-view="calendar"] .today-panel{display:none}.preset-grid{grid-template-columns:1fr 1fr}.module-toggle-list{grid-template-columns:1fr}.observer-plan-grid,.observer-overview-grid{grid-template-columns:1fr}.observer-overview-grid>section:last-child{display:none}
}

@media(max-width:760px){
  body:has(#app:not(.hidden)){height:auto;overflow:auto}.app,.main{height:auto;overflow:visible}.view,.view.fit-view,.view.scroll-view{height:auto;min-height:calc(100dvh - 72px);overflow:visible;display:block}.tracker-stats,.entity-stats,.observer-stats{grid-template-columns:1fr 1fr}.tracker-dashboard-grid,.observer-overview-grid,.observer-plan-grid{grid-template-columns:1fr}.tracker-progress-card .overview-flex{height:auto}.dashboard-module-links{grid-template-columns:1fr}.entity-workbench{max-height:none}.entity-list{overflow:visible}.preset-grid,.module-toggle-list{grid-template-columns:1fr}.parent-observer-mode .view{padding:14px}.parent-observer-shell{height:auto;display:block}.parent-observer-head,.parent-observer-footer{align-items:flex-start;flex-direction:column}.parent-observer-actions,.parent-observer-footer>div:last-child{width:100%;flex-wrap:wrap}.parent-observer-control{grid-template-columns:1fr;margin:12px 0}.observer-tabs{margin-bottom:12px;overflow:auto}.observer-tabs button{min-width:90px}.parent-observer-content,.parent-observer-content.fit-parent-view,.parent-observer-content.scroll-parent-view{overflow:visible}.parent-observer-footer{margin-top:14px}.parent-observer-footer .product-credit{display:grid!important}.parent-observer-mode .floating-messages{bottom:14px}
}

/* Nestlyra Focus — calm light default. Existing users keep their saved theme. */
body.theme-nestlyra{
  --bg:#F6F8FC;--panel:#FFFFFF;--panel2:#EEF1FA;--line:#E4E9F2;--text:#1C2333;--muted:#5B6478;
  --accent:#4C5FD5;--accent2:#3B4BC4;--danger:#E64B67;--warn:#FFB020;--success:#2FAE6D;
  --shadow:0 1px 2px rgba(28,35,51,.04),0 8px 24px rgba(28,35,51,.07);
  background-color:var(--bg);
  background-image:radial-gradient(circle at 14% 4%,rgba(76,95,213,.055),transparent 25%),radial-gradient(circle at 94% 94%,rgba(255,176,32,.05),transparent 22%);
  color:var(--text);
}
.theme-nestlyra h1,.theme-nestlyra h2,.theme-nestlyra h3,.theme-nestlyra .brand{font-family:Poppins,Inter,sans-serif}
.theme-nestlyra .brand{color:#27304A}.theme-nestlyra .brand small{margin-left:2px;color:#8992A6;font-size:.62em;font-weight:600}
.theme-nestlyra .brand-mark{padding:2px;background:transparent;box-shadow:0 7px 18px rgba(76,95,213,.18)}
.theme-nestlyra .sidebar,.theme-nestlyra .topbar{background:rgba(255,255,255,.94);border-color:var(--line)}
.theme-nestlyra .topbar{backdrop-filter:blur(16px)}
.theme-nestlyra .sidebar-footer{background:#fff}.theme-nestlyra .sidebar nav{scrollbar-color:#C8D0E2 transparent}
.theme-nestlyra .sidebar nav button,.theme-nestlyra .nav-logout{color:#5B6478}
.theme-nestlyra .sidebar nav button:hover{background:#F1F3FA;color:#1C2333}
.theme-nestlyra .sidebar nav button.active{background:#E9ECFB;color:#3B4BC4;box-shadow:inset 3px 0 #4C5FD5}
.theme-nestlyra .sidebar nav .nav-entry.active .nav-main{background:#E9ECFB;color:#3B4BC4;box-shadow:inset 3px 0 #4C5FD5}
.theme-nestlyra .sidebar nav .nav-help:hover,.theme-nestlyra .sidebar nav .nav-help:focus-visible{border-color:#D6DDEC;background:#F1F3FA;color:#3B4BC4}
.theme-nestlyra .search-wrap,.theme-nestlyra input,.theme-nestlyra textarea,.theme-nestlyra select{border-color:var(--line);background:#fff;color:var(--text)}
.theme-nestlyra .search-wrap{background:#F8F9FD}.theme-nestlyra input::placeholder,.theme-nestlyra textarea::placeholder{color:#99A2B5}
.theme-nestlyra .btn{background:#EEF1FA;color:#34405A}.theme-nestlyra .btn.primary{background:linear-gradient(135deg,#5D6FDF,#3B4BC4);color:#fff;box-shadow:0 7px 18px rgba(76,95,213,.18)}
.theme-nestlyra .btn.ghost{border-color:#D9E0ED;background:#fff;color:#34405A}.theme-nestlyra .btn.danger{background:#FDECEF;color:#C52F4B}
.theme-nestlyra .icon-btn{border-color:var(--line);background:#fff;color:#39445B}.theme-nestlyra .avatar{color:#fff;background:linear-gradient(135deg,#7181EA,#4C5FD5)}
.theme-nestlyra .card,.theme-nestlyra .stat{border-color:var(--line);background:#fff;box-shadow:var(--shadow)}
.theme-nestlyra .dashboard-module-links button,.theme-nestlyra .tracker-today-card .briefing-list>div,.theme-nestlyra .entity-row,.theme-nestlyra .preset-card,.theme-nestlyra .observer-tabs,.theme-nestlyra .observer-summary>div,.theme-nestlyra .observer-subjects details{border-color:var(--line);background:#F9FAFD;color:var(--text)}
.theme-nestlyra .dashboard-module-links button>span,.theme-nestlyra .entity-icon,.theme-nestlyra .manual-icon,.theme-nestlyra .topic-state{background:#E9ECFB;color:#4C5FD5}
.theme-nestlyra .dashboard-module-links button:hover,.theme-nestlyra .preset-card:hover,.theme-nestlyra .preset-card.active{border-color:#AAB4EE;background:#F0F2FC}
.theme-nestlyra .progress-ring{background:conic-gradient(#4C5FD5 calc(var(--p)*1%),#E9EDF5 0)}.theme-nestlyra .progress-ring:after{background:#fff}
.theme-nestlyra .entity-main,.theme-nestlyra .kebab{color:var(--text)}.theme-nestlyra .entity-main i,.theme-nestlyra .progress-line,.theme-nestlyra .bar{background:#E9EDF5}
.theme-nestlyra .product-credit,.theme-nestlyra .parent-product-credit{border-color:var(--line);background:#fff}.theme-nestlyra .product-credit strong,.theme-nestlyra .parent-product-credit strong{color:#2B3448}
.theme-nestlyra .manual-nav button:hover,.theme-nestlyra .settings-sidebar nav button:hover,.theme-nestlyra .settings-sidebar nav button.active{background:#E9ECFB;color:#3B4BC4}
.theme-nestlyra .manual-section,.theme-nestlyra .faq-list details,.theme-nestlyra .login-guide-grid section,.theme-nestlyra .manual-component-directory{border-color:var(--line);background:#fff}.theme-nestlyra .manual-body{color:#4E5970}
.theme-nestlyra dialog{border-color:var(--line);background:#fff;color:var(--text)}.theme-nestlyra dialog::backdrop{background:rgba(28,35,51,.38)}
.theme-nestlyra .family-chat-layout,.theme-nestlyra .family-room-panel,.theme-nestlyra .family-chat-pane,.theme-nestlyra .family-compose{border-color:var(--line);background:#fff}
.theme-nestlyra .family-room:hover,.theme-nestlyra .family-room.active{border-color:#C9D0E6;background:#EEF1FA;color:var(--text)}
.theme-nestlyra .family-message-list{background:radial-gradient(circle at 75% 8%,rgba(76,95,213,.065),transparent 32%),#F7F8FC}
.theme-nestlyra .family-message{border-color:#E1E6F0;background:#fff}.theme-nestlyra .family-message.own{border-color:#C6CDF3;background:#E9ECFB}.theme-nestlyra .family-message p{color:#354056}
.theme-nestlyra .auth-panel{background:#F6F8FC;background-image:radial-gradient(circle at 80% 10%,rgba(76,95,213,.09),transparent 27%),radial-gradient(circle at 12% 92%,rgba(255,176,32,.07),transparent 25%)}
.theme-nestlyra .auth-card{border-color:#E4E9F2;background:rgba(255,255,255,.96);box-shadow:0 2px 6px rgba(28,35,51,.05),0 22px 60px rgba(76,95,213,.1)}
.theme-nestlyra .auth-card label{color:#465168}.theme-nestlyra .auth-mode-tabs{border-color:#E2E7F1;background:#F1F3F8}.theme-nestlyra .auth-mode-tabs button{color:#69738A}.theme-nestlyra .auth-mode-tabs button.active{background:#fff;color:#3B4BC4;box-shadow:0 2px 8px rgba(28,35,51,.07)}
.theme-nestlyra .auth-card>p,.theme-nestlyra .auth-card small{color:#69738A}.theme-nestlyra .eyebrow{color:#4C5FD5}
.theme-nestlyra .auth-art{background-image:linear-gradient(180deg,rgba(18,28,48,.13),rgba(18,28,48,.35) 43%,rgba(18,28,48,.92)),linear-gradient(90deg,rgba(76,95,213,.12),rgba(255,176,32,.05)),var(--login-image)}
.theme-nestlyra .floating-messages{border-color:#fff;background:linear-gradient(145deg,#6576E5,#3B4BC4);box-shadow:0 12px 30px rgba(76,95,213,.28),0 0 0 5px rgba(76,95,213,.1)}
.theme-nestlyra .toast{background:#2B3550;color:#fff}

/* Normalize every formerly dark component when a light appearance is active. */
body:is(.theme-nestlyra,.theme-light) .task-row,
body:is(.theme-nestlyra,.theme-light) .note-item,
body:is(.theme-nestlyra,.theme-light) .job-search,
body:is(.theme-nestlyra,.theme-light) .job-quick button,
body:is(.theme-nestlyra,.theme-light) .job-files button,
body:is(.theme-nestlyra,.theme-light) .jd-content,
body:is(.theme-nestlyra,.theme-light) .briefing-stats>div,
body:is(.theme-nestlyra,.theme-light) .briefing-list>div,
body:is(.theme-nestlyra,.theme-light) .manual-steps button,
body:is(.theme-nestlyra,.theme-light) .login-guide-grid section,
body:is(.theme-nestlyra,.theme-light) .faq-list details,
body:is(.theme-nestlyra,.theme-light) .mini-btn,
body:is(.theme-nestlyra,.theme-light) .modal-close,
body:is(.theme-nestlyra,.theme-light) .side-timer{border-color:var(--line);background:#F8FAFD;color:var(--text)}
body:is(.theme-nestlyra,.theme-light) .manual-start{border-color:var(--line);background:linear-gradient(135deg,#FFFFFF,#F1F3FA)}
body:is(.theme-nestlyra,.theme-light) .manual-steps b,
body:is(.theme-nestlyra,.theme-light) .job-role>i,
body:is(.theme-nestlyra,.theme-light) .job-company-badge{background:#E9ECFB;color:#3B4BC4}
body:is(.theme-nestlyra,.theme-light) .job-status,
body:is(.theme-nestlyra,.theme-light) .badge{background:#EEF1F7;color:#536079}
body:is(.theme-nestlyra,.theme-light) .badge.danger,
body:is(.theme-nestlyra,.theme-light) .status-rejected,
body:is(.theme-nestlyra,.theme-light) .status-withdrawn{background:#FDECEF;color:#C52F4B}
body:is(.theme-nestlyra,.theme-light) .badge.warn,
body:is(.theme-nestlyra,.theme-light) .status-interview{background:#FFF4D9;color:#9A6500}
body:is(.theme-nestlyra,.theme-light) .badge.success,
body:is(.theme-nestlyra,.theme-light) .status-selected,
body:is(.theme-nestlyra,.theme-light) .status-offer{background:#E5F7EE;color:#197B4B}
body:is(.theme-nestlyra,.theme-light) .status-applied,
body:is(.theme-nestlyra,.theme-light) .status-screening{background:#ECEAFD;color:#5542B8}
body:is(.theme-nestlyra,.theme-light) .job-notes,
body:is(.theme-nestlyra,.theme-light) .jd-content,
body:is(.theme-nestlyra,.theme-light) .manual-body{color:#4E5970}
body:is(.theme-nestlyra,.theme-light) .check{border-color:#AEB8CA;color:var(--text)}
body:is(.theme-nestlyra,.theme-light) .check.checked{color:#fff}
body:is(.theme-nestlyra,.theme-light) .subtopic-row{border-bottom-color:var(--line)}
body:is(.theme-nestlyra,.theme-light) .manual-component-directory button{background:#F8FAFD;color:#536079}
body:is(.theme-nestlyra,.theme-light) .manual-component-directory button:hover{background:#EEF1FA;color:#3B4BC4}
.manual-nav{max-height:calc(100dvh - 126px);overflow:auto;scrollbar-width:thin}

/* Nestlyra multi-view calendar */
.fit-view[data-current-view="calendar"]>.page-head{margin-bottom:12px}.fit-view[data-current-view="calendar"]>.page-head h1{font-size:25px}
.nest-calendar{display:flex;min-height:0;flex:1;flex-direction:column;padding:0;overflow:hidden}
.nest-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid var(--line)}
.calendar-date-nav{display:grid;grid-template-columns:34px minmax(170px,auto) 34px;align-items:center;gap:6px}.calendar-date-nav strong{text-align:center;font-size:13px}
.calendar-arrow{height:32px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--text);font-size:22px;line-height:1}
.calendar-view-actions{display:flex;align-items:center;gap:10px}.calendar-view-tabs{display:flex;overflow:hidden;border:1px solid var(--line);border-radius:9px}.calendar-view-tabs button{min-width:66px;padding:8px 12px;border:0;border-right:1px solid var(--line);background:transparent;color:var(--muted);font-size:10px;font-weight:700}.calendar-view-tabs button:last-child{border-right:0}.calendar-view-tabs button.active{background:var(--accent);color:#fff}.calendar-today{padding:8px 15px;border:1px solid var(--accent);border-radius:9px;background:transparent;color:var(--accent);font-size:10px;font-weight:800}
.calendar-filters{display:flex;align-items:center;gap:8px;min-height:48px;padding:8px 16px;border-bottom:1px solid var(--line);overflow-x:auto}.calendar-filter{display:flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid var(--line);border-radius:20px;background:transparent;color:var(--muted);font-size:9px;font-weight:700;white-space:nowrap;opacity:.58}.calendar-filter.active{opacity:1}.calendar-filter i,.nest-calendar-item i{width:7px;height:7px;border-radius:50%;background:currentColor}.calendar-filter.tasks,.nest-calendar-item.tasks,.timeline-event.tasks{color:#EF8A36}.calendar-filter.study,.nest-calendar-item.study,.timeline-event.study{color:#1CBBA9}.calendar-filter.exams,.nest-calendar-item.exams,.timeline-event.exams{color:#E85C72}.calendar-filter.events,.nest-calendar-item.events,.timeline-event.events{color:#7B61DF}.calendar-filter.jobs,.nest-calendar-item.jobs,.timeline-event.jobs{color:#4A7DE8}.calendar-filter.assignments,.nest-calendar-item.assignments,.timeline-event.assignments{color:#D8781C}.calendar-filter.practice,.nest-calendar-item.practice,.timeline-event.practice{color:#15967F}.calendar-filter.projects,.nest-calendar-item.projects,.timeline-event.projects{color:#7655D9}.calendar-filter.active.tasks{border-color:#F4B47E;background:#FFF5EC}.calendar-filter.active.study{border-color:#8ADFD6;background:#EDFBF8}.calendar-filter.active.exams{border-color:#F3A6B3;background:#FFF0F3}.calendar-filter.active.events{border-color:#BDB0F0;background:#F5F1FF}.calendar-filter.active.jobs{border-color:#A9C2F5;background:#EFF5FF}.calendar-filter.active.assignments{border-color:#F2BD84;background:#FFF6EB}.calendar-filter.active.practice{border-color:#85D8C8;background:#EEFBF8}.calendar-filter.active.projects{border-color:#BEAFF1;background:#F5F1FF}
.nest-calendar-body{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.nest-month-grid{display:grid;min-height:0;flex:1;grid-template-rows:30px minmax(0,1fr)}.nest-month-weekdays,.nest-month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.nest-month-weekdays{border-bottom:1px solid var(--line)}.nest-month-weekdays span{display:grid;place-items:center;color:#8992A6;font-size:8px;font-weight:800;text-transform:uppercase}.nest-month-days{min-height:0;grid-template-rows:repeat(6,minmax(0,1fr))}.nest-month-day{display:flex;min-width:0;min-height:0;flex-direction:column;gap:4px;padding:7px;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent;color:var(--text);text-align:left}.nest-month-day:nth-child(7n){border-right:0}.nest-month-day:hover{background:color-mix(in srgb,var(--accent) 5%,transparent)}.nest-month-day.muted{background:rgba(137,146,166,.025);color:#B5BDCB}.nest-day-number{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;font-size:9px;font-weight:700}.nest-month-day.today{background:color-mix(in srgb,var(--accent) 6%,transparent)}.nest-month-day.today .nest-day-number{background:var(--accent);color:#fff}.nest-month-items{display:grid;gap:3px;min-width:0}.nest-calendar-item{display:flex;align-items:center;gap:5px;min-width:0;padding:3px 5px;border:0;border-radius:5px;background:color-mix(in srgb,currentColor 9%,transparent);font-size:7px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}.nest-calendar-item small{margin-left:auto;color:var(--muted);font-size:7px}.nest-month-items>small{color:var(--muted);font-size:7px}
.calendar-all-day{display:grid;grid-template-columns:62px minmax(0,1fr);gap:8px;align-items:start;padding:8px 10px;border-bottom:1px solid var(--line)}.calendar-all-day>strong{padding-top:5px;color:var(--muted);font-size:8px;text-align:right}.calendar-all-day>div{display:flex;gap:5px;overflow-x:auto}.calendar-all-day .nest-calendar-item{flex:0 0 auto;max-width:230px;padding:5px 8px}.calendar-more{align-self:center;color:var(--muted);font-size:8px;white-space:nowrap}
.calendar-week-head{display:grid;grid-template-columns:62px repeat(7,minmax(80px,1fr));border-bottom:1px solid var(--line)}.calendar-week-head button{display:flex;align-items:center;justify-content:center;gap:7px;padding:8px;border:0;border-left:1px solid var(--line);background:transparent;color:var(--text)}.calendar-week-head small{color:var(--muted);font-size:8px;text-transform:uppercase}.calendar-week-head strong{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:11px}.calendar-week-head button.today strong{background:var(--accent);color:#fff}
.calendar-timeline-scroll{min-height:0;flex:1;overflow:auto;scrollbar-width:thin}.calendar-day-timeline,.calendar-week-timeline{display:grid;min-height:1344px;grid-template-columns:62px minmax(0,1fr)}.calendar-week-timeline{grid-template-columns:62px repeat(7,minmax(80px,1fr));min-width:720px}.calendar-time-axis{display:grid;height:1344px;grid-template-rows:repeat(24,56px);background:var(--panel)}.calendar-time-axis span{padding:5px 8px 0 0;color:#8992A6;font-size:8px;text-align:right;transform:translateY(-8px)}.calendar-day-lane,.calendar-week-lane{position:relative;height:1344px;border-left:1px solid var(--line);background-image:repeating-linear-gradient(to bottom,transparent 0,transparent 55px,var(--line) 55px,var(--line) 56px)}.calendar-week-lane.today{background-color:color-mix(in srgb,var(--accent) 3%,transparent)}
.timeline-event{position:absolute;z-index:2;top:var(--event-top);left:5px;right:5px;display:grid;gap:2px;min-height:42px;padding:7px 8px;border:1px solid color-mix(in srgb,var(--event-color,currentColor) 45%,var(--line));border-left:3px solid var(--event-color,currentColor);border-radius:7px;background:color-mix(in srgb,var(--event-color,currentColor) 10%,var(--panel));color:var(--text);text-align:left;overflow:hidden}.timeline-event strong{overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.timeline-event small{overflow:hidden;color:var(--muted);font-size:7px;text-overflow:ellipsis;white-space:nowrap}.calendar-current-line{position:absolute;z-index:1;top:calc((var(--current-hour,12) * 56px));left:0;right:0;height:1px;background:#E85C72;display:none}
.theme-nestlyra .nest-calendar{box-shadow:0 1px 2px rgba(28,35,51,.03)}

@media(max-width:920px){.nest-calendar-toolbar{align-items:stretch;flex-direction:column}.calendar-view-actions{justify-content:space-between}.calendar-view-tabs{flex:1}.calendar-view-tabs button{flex:1}.nest-month-day{padding:4px}.nest-calendar-item{font-size:0;width:8px;height:8px;padding:0;border-radius:50%;background:currentColor}.nest-calendar-item i{display:none}.nest-month-items{display:flex;flex-wrap:wrap}.nest-month-items>small{width:100%}}
@media(max-width:760px){.fit-view[data-current-view="calendar"]>.page-head{display:none}.nest-calendar{min-height:calc(100dvh - 104px);border-radius:0}.nest-calendar-toolbar{padding:10px}.calendar-date-nav{grid-template-columns:32px 1fr 32px}.calendar-filters{padding:7px 10px}.nest-month-days{min-height:560px}.nest-month-day{min-height:88px}.nest-calendar-body{overflow-x:auto}.calendar-all-day,.calendar-week-head,.calendar-day-timeline{min-width:720px}}

/* Nestlyra Groups */
.auth-account-note{display:grid;grid-template-columns:36px 1fr;gap:1px 10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--accent) 7%,var(--panel));margin-bottom:8px}.auth-account-note>span{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--accent);color:#fff;font-size:20px}.auth-account-note strong{font-size:13px}.auth-account-note small{font-size:11px;color:var(--muted)}
.groups-root{min-height:0}.group-shell{display:grid;grid-template-columns:270px minmax(0,1fr);gap:16px;min-height:0}.group-sidebar{padding:16px;display:flex;flex-direction:column;min-height:530px;max-height:calc(100vh - 215px)}.group-list{display:grid;gap:7px;overflow:auto;padding-right:3px}.group-list-item{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;text-align:left;border:1px solid transparent;background:transparent;color:var(--text);border-radius:13px;padding:10px}.group-list-item:hover,.group-list-item.active{border-color:color-mix(in srgb,var(--accent) 40%,var(--line));background:color-mix(in srgb,var(--accent) 9%,var(--panel))}.group-list-item>span:first-child,.group-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--accent) 14%,var(--panel));color:var(--accent);font-weight:800}.group-list-item>span:nth-child(2){min-width:0}.group-list-item strong,.group-list-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-list-item small{font-size:10px;color:var(--muted);margin-top:3px}.group-list-item i{display:grid;place-items:center;min-width:21px;height:21px;border-radius:20px;background:#ef4444;color:#fff;font-size:10px;font-style:normal}.group-sidebar-actions{display:grid;gap:7px;margin-top:auto;padding-top:14px}.group-detail{min-width:0;display:grid;gap:14px;overflow:auto;max-height:calc(100vh - 215px);padding-right:3px}.group-detail-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:4px}.group-detail-head h2{font-size:28px;margin:4px 0}.group-detail-head p{color:var(--muted);margin:0}.group-detail-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.group-two-column{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(360px,1.15fr);gap:14px}.group-progress,.group-members,.group-shared{padding:18px}.group-progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px}.group-progress-grid>article{border:1px solid var(--line);border-radius:14px;padding:13px;background:color-mix(in srgb,var(--panel) 94%,var(--accent) 6%)}.group-progress-grid header{display:flex;align-items:center;gap:10px}.group-progress-grid header>span:last-child{min-width:0}.group-progress-grid header strong,.group-progress-grid header small{display:block}.group-progress-grid header small{color:var(--muted);font-size:11px}.presence{font-style:normal}.presence.online{color:#16a36a}.group-snapshot-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:12px}.group-snapshot-list>div{display:grid;grid-template-columns:1fr auto;gap:2px 7px;border-radius:9px;background:var(--panel);padding:8px}.group-snapshot-list span{font-size:10px;text-transform:capitalize;color:var(--muted)}.group-snapshot-list b{font-size:12px}.group-snapshot-list small{grid-column:1/3;font-size:9px;color:var(--muted)}.group-private{font-size:12px;color:var(--muted);margin:14px 0 0}.group-member-list{display:grid;gap:8px}.group-member-list>div{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}.group-member-list strong,.group-member-list small{display:block}.group-member-list small{color:var(--muted);font-size:10px}.group-member-list select{min-width:100px;padding:7px}.group-invite-box{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px dashed color-mix(in srgb,var(--accent) 45%,var(--line));border-radius:14px;padding:12px;margin-top:14px;background:color-mix(in srgb,var(--accent) 5%,var(--panel))}.group-invite-box small,.group-invite-box strong,.group-invite-box span{display:block}.group-invite-box strong{font-size:20px;letter-spacing:1px;color:var(--accent);margin:3px 0}.group-invite-box small,.group-invite-box span{font-size:10px;color:var(--muted)}.group-shared-actions{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}.group-record-list{display:grid;gap:7px}.group-record-list article{display:grid;grid-template-columns:28px minmax(0,1fr) auto auto;gap:8px;align-items:center;border:1px solid var(--line);border-radius:11px;padding:9px}.group-record-list article>span{display:grid;place-items:center;color:var(--accent)}.group-record-list article>button:nth-child(2){border:0;background:transparent;color:var(--text);text-align:left;min-width:0}.group-record-list strong,.group-record-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.group-record-list small{color:var(--muted);font-size:10px;margin-top:3px}.group-record-list i{font-size:9px;font-style:normal;color:var(--muted)}.group-welcome,.group-cloud-required,.group-migration{min-height:360px;display:grid;place-items:center;text-align:center;align-content:center;gap:10px;padding:35px}.group-welcome>span,.group-cloud-required>span,.group-migration>span{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:color-mix(in srgb,var(--accent) 14%,var(--panel));color:var(--accent);font-size:28px}.group-welcome>div{display:flex;gap:8px}.group-migration{grid-template-columns:auto minmax(0,620px);text-align:left}.group-migration>div{display:block}.group-migration ul{color:var(--muted);line-height:1.7}.group-migration .modal-actions{justify-content:flex-start}
@media(max-width:1050px){.group-shell{grid-template-columns:220px minmax(0,1fr)}.group-two-column{grid-template-columns:1fr}.group-sidebar,.group-detail{max-height:none}.group-detail{overflow:visible}}
@media(max-width:760px){.group-shell{grid-template-columns:1fr}.group-sidebar{min-height:0;max-height:none}.group-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:220px}.group-detail-head{display:grid}.group-detail-head>div:last-child{justify-content:flex-start}.group-progress-grid{grid-template-columns:1fr}.group-member-list>div{grid-template-columns:34px minmax(0,1fr) auto}.group-member-list select{grid-column:2/4;width:100%}.group-invite-box{align-items:flex-start;flex-direction:column}.group-migration{grid-template-columns:1fr;text-align:center}.group-migration .modal-actions{justify-content:center}}
