@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Spectral:wght@600&display=swap');
:root{font-family:Inter,sans-serif;color:#24231f;background:#f7f6f2;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#f7f6f2}button,input,select,textarea{font:inherit}button{cursor:pointer}.svg-icon{display:block}.app-shell{min-height:100vh;padding-bottom:96px}.content{max-width:760px;margin:auto}.page{padding:30px 18px 36px;display:flex;flex-direction:column;gap:22px}.page-header,.row,.section-title,.toolbar,.category-row{display:flex;align-items:center}.page-header,.section-title,.between{justify-content:space-between}.page-header h1,h1,h2{font-family:Spectral,serif;margin:0}.page-header h1{font-size:30px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#8b897f;margin:0 0 5px}.muted,.empty{color:#77756d}.card{background:#fff;border:1px solid #e5e2d8;border-radius:16px;padding:16px;box-shadow:0 1px 2px rgba(0,0,0,.025)}.compact{padding:12px 14px}.stack{display:flex;flex-direction:column;gap:10px}.habit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.primary,.danger{border:0;border-radius:12px;padding:11px 16px;font-weight:700}.primary{background:#2f6f5e;color:white}.danger{background:#f3deda;color:#9c352b}.small{padding:8px 12px;display:flex;align-items:center;gap:6px}.icon-btn,.link{border:0;background:transparent;color:#77756d;padding:6px}.link{color:#2f6f5e;font-weight:600}.sync-bar{height:34px;padding:0 14px;background:#eeece5;color:#77756d;display:flex;justify-content:space-between;align-items:center;font-size:11px;position:sticky;top:0;z-index:20}.sync-bar button{border:0;background:transparent;color:#77756d}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:88px;background:rgba(255,255,255,.97);border-top:1px solid #e5e2d8;display:flex;justify-content:center;z-index:30;padding-bottom:env(safe-area-inset-bottom)}.bottom-nav button{width:min(20%,150px);border:0;background:transparent;color:#8c8a82;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px}.bottom-nav .nav-icon{display:grid;place-items:center}.bottom-nav button.active{color:#2f6f5e}.task-card{display:flex;gap:10px;align-items:center}.grow{flex:1}.meta{display:flex;gap:9px;flex-wrap:wrap;font-size:11px;color:#8c8a82;margin-top:4px}.overdue{background:#fbebe8}.strike{text-decoration:line-through;color:#999}.check{width:22px;height:22px;border-radius:7px;border:1px solid #ccc;background:#faf9f5;display:inline-flex;align-items:center;justify-content:center;flex:none}.check.done{background:#2f6f5e;color:white;border-color:#2f6f5e}.toolbar{gap:10px;justify-content:space-between;flex-wrap:wrap}.compact-toolbar{gap:8px}.segmented{display:flex;background:#eeece5;padding:3px;border-radius:12px;overflow:auto}.segmented button{border:0;background:transparent;padding:7px 10px;border-radius:9px;text-transform:capitalize;color:#6f6d66;white-space:nowrap}.segmented button.active{background:white;color:#2f6f5e;box-shadow:0 1px 3px rgba(0,0,0,.08)}.task-segments button{font-size:11px;padding:5px 8px}.segmented.small button{font-size:11px;padding:5px 8px}.compact-select{font-size:11px;padding:7px 9px}.category-row{gap:6px;overflow:auto;padding-bottom:3px}.compact-categories .chip{font-size:11px;padding:5px 9px}.chip-wrap{display:flex;align-items:center}.chip{border:1px solid #ddd9cf;background:#f3f1ea;border-radius:999px;padding:6px 10px;white-space:nowrap}.chip.active{background:#dfe9e5;color:#2f6f5e;border-color:#2f6f5e}.chip.dashed{border-style:dashed}.project-chip{background:#e9edf5;color:#53627e}.category-action,.category-trash{border:0;background:transparent;color:#9b998f;padding:4px;display:grid;place-items:center}.category-action{margin-left:-4px}.category-trash{border-left:1px solid #ddd9cf;margin-left:2px;padding-left:8px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.day-cell{border:0;border-radius:10px;background:#f7f6f2;min-height:62px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.day-cell span{font-size:10px;color:#8c8a82}.day-cell b{background:#f3e4c8;color:#9b6a25;border-radius:999px;font-size:9px;padding:2px 5px}.progress{height:8px;flex:1;background:#eceae2;border-radius:999px;overflow:hidden}.progress div{height:100%;background:#2f6f5e}.habit-card{position:relative}.habit-card p{margin:7px 0}.habit-count{color:#2f6f5e;font-weight:700}.flame{display:flex;gap:5px;color:#c98a2e;align-items:center;font-size:12px}.top-right{position:absolute;top:8px;right:8px}.habit-table{display:grid;grid-template-columns:minmax(95px,1.5fr) repeat(7,minmax(30px,1fr));gap:8px;align-items:center;overflow-x:auto}.habit-table>span{text-align:center;font-size:10px;color:#777;display:flex;flex-direction:column;align-items:center;justify-content:center}.habit-table small{display:block}.habit-row{display:contents}.habit-row strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.habit-row .check{justify-self:center}.search{display:flex;gap:8px;align-items:center;background:white;border:1px solid #e5e2d8;border-radius:12px;padding:9px 12px}.search input{border:0;outline:0;flex:1}.journal-compose textarea,.journal-entry p,textarea{white-space:pre-wrap}.journal-compose{display:flex;flex-direction:column;gap:10px}.journal-entry time{font-size:11px;color:#777}.project-title{border:0;background:transparent;text-align:left;display:flex;flex-direction:column;gap:5px}.project-title span{font-size:11px;color:#777}.project-card>.row+.row{gap:10px;margin-top:12px}.project-progress-row{gap:10px}.subprojects{border-top:1px solid #ece9e0;margin-top:14px;padding-top:12px;display:flex;flex-direction:column;gap:14px}.subprojects h3{margin:0;font-size:14px}.subproject-card{background:#faf9f5;border:1px solid #ece9e0;border-radius:12px;padding:10px}.subtask{display:flex;align-items:center;gap:9px;padding:7px 0}.subtask span{flex:1;font-size:13px}.small-empty{font-size:12px;margin:8px 0}.heatmap-card{padding:14px;margin-bottom:12px}.heatmap{display:grid;grid-template-columns:repeat(7,1fr);gap:10px}.heat-day{display:flex;flex-direction:column;align-items:center;gap:4px;color:#77756d;font-size:10px}.heat-square{width:100%;aspect-ratio:1;border-radius:9px;background:color-mix(in srgb,#2f6f5e calc(var(--heat)*100%),#f3e4c8);border:1px solid #e3dfd2}.project-home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:12px}.project-home-tile{border:0;background:#fff;border:1px solid #e5e2d8;border-radius:16px;padding:14px;display:grid;place-items:center}.project-ring{--pct:0;width:110px;height:110px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#2f6f5e calc(var(--pct)*1%),#eceae2 0);position:relative}.project-ring:before{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}.project-ring>div{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px;padding:12px}.project-ring strong{font-size:12px;line-height:1.2}.project-ring span{font-size:11px;color:#2f6f5e;font-weight:700}.modal-backdrop{position:fixed;inset:0;background:rgba(32,31,28,.35);display:grid;place-items:end center;z-index:100;padding:16px}.modal{background:#fff;border-radius:20px 20px 14px 14px;padding:18px;width:min(100%,520px);max-height:90vh;overflow:auto}.modal-head{display:flex;justify-content:space-between;align-items:center}.form-grid{display:flex;flex-direction:column;gap:13px;margin-top:15px}.field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#69675f}input,select,textarea{border:1px solid #dcd8ce;border-radius:10px;padding:10px;background:#faf9f5;color:#24231f;outline:none}textarea{resize:vertical}.auth-shell,.loading{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(100%,420px);background:#fff;border:1px solid #e5e2d8;border-radius:22px;padding:28px;display:flex;flex-direction:column;gap:15px}.auth-card label{display:flex;flex-direction:column;gap:5px;font-size:12px}.status{font-size:12px;color:#b4483a}
@media(max-width:560px){.habit-grid{grid-template-columns:1fr 1fr}.page{padding-left:14px;padding-right:14px}.calendar-card{padding:12px}.day-cell{min-height:55px}.habit-table{grid-template-columns:84px repeat(7,34px);gap:6px}.heatmap{gap:6px}.project-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-ring{width:100px;height:100px}.bottom-nav{height:90px}.bottom-nav button{font-size:9px}}
/* Nexus v4 additions */
.header-actions{display:flex;gap:8px;align-items:center}.secondary{border:1px solid #d8d4c8;background:#fff;color:#4f625a;border-radius:12px;padding:10px 14px;font-weight:700}.quick-capture{position:fixed;right:18px;bottom:106px;width:54px;height:54px;border-radius:50%;border:0;background:#2f6f5e;color:#fff;display:grid;place-items:center;box-shadow:0 10px 25px rgba(47,111,94,.28);z-index:35}.bottom-nav.six-tabs button{width:min(16.666%,125px)}.inbox-head{position:relative;color:#2f6f5e}.inbox-head b{position:absolute;right:-1px;top:-1px;background:#b4483a;color:#fff;border-radius:99px;min-width:17px;height:17px;font:700 9px Inter;display:grid;place-items:center}.pill{display:inline-flex;align-items:center;background:#e9eee9;color:#2f6f5e;border-radius:99px;padding:4px 8px;font-size:10px;font-weight:700}.pill.alert{background:#f3deda;color:#9c352b}.priority{display:inline-flex;align-items:center;gap:3px;font-weight:700}.priority.high{color:#b4483a}.priority.low{color:#8d8a82}.top-tag{background:#f3e4c8;color:#9b6a25;border-radius:99px;padding:2px 6px;font-weight:700}.check-field{display:flex;align-items:center;gap:9px;color:#4f4d47;font-size:13px}.check-field input{width:17px;height:17px}.inbox-card{display:flex;gap:12px;align-items:center}.inbox-card p,.waiting-card p{margin:5px 0;color:#6e6c65;font-size:12px}.inbox-card small{color:#8b897f}.inbox-actions,.waiting-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.inbox-actions>button:not(.icon-btn){border:1px solid #ddd9cf;background:#faf9f5;border-radius:9px;padding:5px 7px;color:#5f6f67;font-size:10px}.mode-switch{align-self:flex-start}.waiting-card{display:flex;gap:12px;align-items:center}.faded{opacity:.68}.study-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric{display:flex;flex-direction:column;gap:5px}.metric span{font-size:11px;color:#77756d}.metric strong{font-family:Spectral,serif;font-size:24px;color:#2f6f5e}.timer-card{text-align:center;display:flex;flex-direction:column;gap:14px}.timer-display{font:600 clamp(48px,15vw,76px) Inter;color:#2f6f5e;letter-spacing:-.05em}.timer-presets,.timer-controls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.timer-presets button{border:1px solid #ddd9cf;background:#faf9f5;border-radius:99px;padding:7px 12px;color:#6e6c65}.timer-presets button.active{background:#dfe9e5;color:#2f6f5e;border-color:#2f6f5e}.timer-main{min-width:128px}.study-chart{margin-top:12px;padding:16px}.bars{height:150px;display:grid;grid-template-columns:repeat(7,1fr);gap:10px;align-items:end}.bar-col{height:100%;display:flex;flex-direction:column;align-items:center;gap:4px}.bar-track{height:112px;width:100%;max-width:36px;background:#f0eee7;border-radius:10px;overflow:hidden;display:flex;align-items:flex-end}.bar-fill{width:100%;background:linear-gradient(#5f8f7f,#2f6f5e);border-radius:10px 10px 4px 4px;min-height:4px}.bar-col span{font-size:10px;color:#77756d}.bar-col small{font-size:9px;color:#9a988f}.study-filters{display:grid;grid-template-columns:1fr auto;gap:10px;margin-bottom:12px}.topic-card{display:flex;align-items:center;gap:8px}.topic-head{gap:8px;flex-wrap:wrap}.status-chip{font-size:9px;background:#edf1ef;color:#48675d;border-radius:99px;padding:3px 7px}.session-row{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}.session-row div{display:flex;flex-direction:column;gap:3px}.session-row span{font-size:10px;color:#77756d}.session-row b{color:#2f6f5e}.import-btn{display:inline-flex;align-items:center;border:1px solid #d8d4c8;background:#fff;color:#4f625a;border-radius:12px;padding:8px 11px;font-weight:700;font-size:12px;cursor:pointer}
@media(max-width:560px){.bottom-nav.six-tabs button{font-size:8px}.bottom-nav.six-tabs .nav-icon svg{width:26px;height:26px}.quick-capture{bottom:105px;right:14px}.header-actions{gap:5px}.header-actions .small,.import-btn{padding:7px 9px;font-size:10px}.study-filters{grid-template-columns:1fr}.waiting-card,.inbox-card{align-items:flex-start;flex-direction:column}.inbox-actions,.waiting-actions{justify-content:flex-start}.bars{gap:6px}.study-summary-grid{gap:8px}}

/* Nexus v6 refinements */
.page-header h1,h1,h2,.metric strong,.timer-display,.project-ring strong,.project-ring span{font-family:Inter,sans-serif}
.page-header h1{font-size:28px;font-weight:700;letter-spacing:-.025em}
h2{font-weight:650;letter-spacing:-.015em}
.metric strong{font-size:23px;font-weight:700;letter-spacing:-.02em}
.calendar-top{order:initial}
.calendar-clear{display:block;padding:3px 0 0;font-size:10px}
.day-cell.selected{outline:2px solid #2f6f5e;background:#edf4f1}
.day-cell b{min-width:19px;height:19px;padding:0 5px;display:grid;place-items:center;color:#fff;font-weight:700}
.day-cell b.load-low{background:#72a98f}
.day-cell b.load-mild{background:#a9b56f}
.day-cell b.load-medium{background:#d39a42}
.day-cell b.load-high{background:#c85c4f}
.category-end-actions{display:flex;align-items:center;margin-left:2px;position:sticky;right:0;background:#f7f6f2;border-radius:9px}
.category-action{margin-left:0}
.add-category{font-size:17px!important;line-height:1;padding:3px 10px!important}
.subtask-list{margin-top:9px;padding-top:7px;border-top:1px solid #eeeae2;display:flex;flex-direction:column;gap:6px}
.subtask-inline{display:flex;align-items:center;gap:8px;font-size:12px;color:#57554f}
.check.mini{width:17px;height:17px;border-radius:5px;font-size:10px}
.subtask-editor{border:1px solid #e4e0d6;background:#faf9f5;border-radius:12px;padding:11px;display:flex;flex-direction:column;gap:9px}
.subtask-editor-row{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:center;margin-top:7px}
.subtask-editor-row input{background:#fff}
.date-choice{display:flex;flex-direction:column;gap:8px}
.timer-card{align-items:center}
.timer-ring{--timer-pct:100;width:min(56vw,260px);height:min(56vw,260px);border-radius:50%;padding:10px;background:conic-gradient(#2f6f5e calc(var(--timer-pct)*1%),#e8e5dc 0);display:grid;place-items:center;transition:background .2s linear}
.timer-ring-inner{width:100%;height:100%;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #ece8df}
.timer-display{font-size:clamp(54px,15vw,86px);font-weight:700;letter-spacing:-.055em}
.timer-main{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:132px}
.timer-button-icon{display:grid;place-items:center}
.timer-active-page .page-header,.timer-active-page>section:not(.timer-card){display:none}
.timer-card.timer-active{min-height:calc(100vh - 148px);width:100%;justify-content:center;border-radius:24px;padding:24px}
.timer-card.timer-active .timer-ring{width:min(72vw,480px);height:min(72vw,480px)}
.timer-card.timer-active .timer-display{font-size:clamp(72px,19vw,132px)}
.timer-card.timer-active .eyebrow{font-size:13px}
.modal-message{color:#55524b;line-height:1.5;margin:18px 0}
.modal-actions{justify-content:flex-end;gap:9px}
.full-width{width:100%}
@media(max-width:560px){
  .calendar-grid{gap:4px}.day-cell{min-height:60px}.day-cell span{font-size:9px}
  .timer-card.timer-active{min-height:calc(100vh - 128px);margin:-8px -2px 0}
  .timer-card.timer-active .timer-ring{width:min(78vw,360px);height:min(78vw,360px)}
  .page-header h1{font-size:26px}
}


/* Nexus v7: combined Log and Google Calendar */
.journal-log-section{margin-top:30px;padding-top:24px;border-top:1px solid #e4e1d8}
.journal-search{margin:12px 0}
.calendar-setup,.calendar-empty,.calendar-status{padding:18px}
.calendar-setup h2{margin:0 0 8px}.calendar-setup p,.calendar-empty p{margin:0;color:#6d6a62;line-height:1.55}
.calendar-status.error{background:#f8e7e4;color:#a54338;border-color:#e8c2bb}
.google-event{display:flex;align-items:center;gap:13px}
.calendar-event-time{width:112px;flex:0 0 112px;font-size:11px;font-weight:700;color:#2f6f5e;line-height:1.35}
.google-event .grow{display:flex;flex-direction:column;gap:4px}.google-event .grow span{font-size:11px;color:#77756d}
a.icon-btn{display:grid;place-items:center;text-decoration:none;color:#77756d}
.calendar-linked{color:#2f6f5e;background:#e6efeb}
.calendar-time-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.calendar-time-fields.is-hidden{display:none}
.bottom-nav.six-tabs button{min-width:0}
@media(max-width:560px){
  .calendar-event-time{width:90px;flex-basis:90px;font-size:10px}
  .calendar-time-fields{grid-template-columns:1fr}
  .bottom-nav.six-tabs button>span:last-child{font-size:7.5px}
}

/* Nexus v8: calendar creation and responsive dashboard layouts */
.home-calendar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.home-calendar-card{display:flex;align-items:center;justify-content:space-between;gap:14px}
.home-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px;align-items:start}
.dashboard-grid>section{min-width:0}
.compact-home-habits{grid-template-columns:repeat(2,minmax(0,1fr))}
.calendar-layout-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:24px;align-items:start}
.calendar-layout-grid>section{min-width:0}
.calendar-page .page-header{align-items:flex-start}
.google-event.compact{padding:13px}
@media(min-width:860px){
  .content{max-width:1100px}
  .page{padding-left:24px;padding-right:24px}
  .habit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .project-home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:720px){
  .dashboard-grid,.calendar-layout-grid,.home-event-grid{grid-template-columns:1fr}
  .home-calendar-actions{justify-content:flex-start}
  .home-calendar-section .section-title{align-items:flex-start;flex-direction:column;gap:10px}
  .home-calendar-card{align-items:flex-start;flex-direction:column}
}

/* Nexus v8.1: live Sydney clock, persistent Google reconnect, ordered home columns */
.sync-bar{display:grid;grid-template-columns:1fr auto 1fr;gap:10px}
.sync-bar button{justify-self:end}
.live-clock{justify-self:center;font-weight:650;color:#4f625a;white-space:nowrap;font-variant-numeric:tabular-nums}
.home-primary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 20px;align-items:start}
.home-column{display:flex;flex-direction:column;gap:26px;min-width:0}
.home-column>section{min-width:0}
.secondary-dashboard-grid{margin-top:2px}
@media(max-width:720px){
  .home-primary-grid{grid-template-columns:1fr}
  .home-column{gap:22px}
  .sync-bar{grid-template-columns:1fr auto}
  .live-clock{grid-column:1/-1;grid-row:2;justify-self:center;padding-bottom:4px}
  .sync-bar{height:auto;min-height:42px;padding-top:5px;padding-bottom:5px}
}

/* Nexus v8.2: larger centred project rings and calendar day tiles */
.project-home-grid{grid-template-columns:repeat(auto-fit,minmax(190px,220px));justify-content:center;justify-items:center;gap:18px}
.project-home-tile{width:100%;min-height:210px;padding:18px}
.project-ring{width:165px;height:165px}
.project-ring:before{inset:11px}
.project-ring strong{font-size:15px;max-width:115px}
.project-ring span{font-size:13px}
.google-calendar-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:10px}
.google-day-tile{background:#fff;border:1px solid #e5e2d8;border-radius:16px;min-height:178px;padding:12px;display:flex;flex-direction:column;gap:10px;box-shadow:0 1px 2px rgba(0,0,0,.025)}
.google-day-tile.today{border-color:#78a997;box-shadow:inset 0 0 0 1px #78a997}
.google-day-tile header{display:grid;grid-template-columns:1fr auto;align-items:end;gap:1px 8px;padding-bottom:8px;border-bottom:1px solid #ece9e0}
.google-day-tile header span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#77756d;font-weight:700}
.google-day-tile header strong{grid-row:1/3;grid-column:2;font-size:28px;line-height:1;color:#2f6f5e;font-variant-numeric:tabular-nums}
.google-day-tile header small{font-size:10px;color:#9a988f}
.google-day-events{display:flex;flex-direction:column;gap:6px;min-height:0}
.google-day-event{display:flex;flex-direction:column;gap:2px;text-decoration:none;background:#e8f0ed;border-left:3px solid #2f6f5e;border-radius:7px;padding:6px 7px;color:#24231f;min-width:0}
.google-day-event time{font-size:9px;font-weight:700;color:#2f6f5e}
.google-day-event span{font-size:11px;line-height:1.25;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.google-day-empty{font-size:10px;color:#aaa79e;padding:5px 1px}
.home-calendar-section .google-calendar-tiles{grid-template-columns:repeat(var(--home-calendar-cols,7),minmax(0,1fr))}
@media(max-width:720px){
  .project-home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .project-home-tile{min-height:178px;padding:12px}
  .project-ring{width:min(38vw,145px);height:min(38vw,145px)}
  .project-ring strong{font-size:13px;max-width:95px}
  .google-calendar-tiles{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
  .google-day-tile{flex:0 0 min(72vw,230px);scroll-snap-align:start;min-height:165px}
}

/* Nexus v8.3: durable local-first saves and responsive calendar ranges */
.calendar-full-width{width:100%;min-width:0}
.calendar-view-heading{align-items:center;gap:12px;flex-wrap:wrap}
.google-calendar-link{display:inline-flex;align-items:center;justify-content:center;gap:6px;text-decoration:none}
.google-calendar-tiles{grid-template-columns:repeat(7,minmax(0,1fr));width:100%}
.google-calendar-tiles.multi-week{grid-template-columns:repeat(7,minmax(0,1fr))}
.google-day-head{width:100%;border:0;background:transparent;padding:0;display:grid;grid-template-columns:1fr auto;align-items:end;gap:1px 8px;text-align:left;color:inherit;cursor:pointer;border-bottom:1px solid #ece9e0;padding-bottom:8px}
.google-day-head span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#77756d;font-weight:700}
.google-day-head strong{grid-row:1/3;grid-column:2;font-size:28px;line-height:1;color:#2f6f5e;font-variant-numeric:tabular-nums}
.google-day-head small{font-size:10px;color:#9a988f}
.google-day-head b{grid-column:1/-1;justify-self:start;margin-top:4px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;display:grid;place-items:center;background:#d8a548;color:#fff;font-size:9px}
.google-day-tile.selected{box-shadow:inset 0 0 0 2px #2f6f5e;border-color:#2f6f5e}
.calendar-selected-detail{margin-top:16px}
.calendar-selected-detail h3{font-size:15px;margin:0}
.calendar-selected-detail .google-event{background:#fff}

@media(max-width:720px){
  .google-calendar-tiles,.google-calendar-tiles.multi-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;overflow:visible;padding:0;width:100%}
  .google-day-tile{min-width:0;min-height:72px;padding:5px;border-radius:10px;scroll-snap-align:none;gap:4px}
  .google-day-head{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:1px;border-bottom:0;padding:0;text-align:center}
  .google-day-head span{font-size:7px;letter-spacing:.04em}
  .google-day-head strong{font-size:17px;line-height:1.05}
  .google-day-head small{font-size:7px}
  .google-day-head b{margin-top:2px;min-width:15px;height:15px;padding:0 3px;font-size:7px;align-self:center}
  .google-day-events{display:none}
  .calendar-selected-detail{margin-top:12px}
  .calendar-selected-detail .google-event{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;padding:10px}
  .calendar-selected-detail .calendar-event-time{width:auto;min-width:0;font-size:9px}
  .calendar-page .header-actions{width:100%;justify-content:flex-start}
  .calendar-view-heading{align-items:flex-start;flex-direction:column}
  .calendar-view-heading .segmented{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}
  .calendar-view-heading .segmented button{min-width:0;padding-left:5px;padding-right:5px}
}
.task-notes{font-size:.76rem;font-style:italic;color:#77756d;margin:.3rem 0 .2rem;line-height:1.35}
.task-notes em{font-style:italic}
.task-progress-wrap{position:relative;margin:.65rem 0 .05rem;height:18px;display:flex;align-items:center}
.task-progress-wrap.compact-progress{margin:.5rem 0 0}
.task-progress-slider{-webkit-appearance:none;appearance:none;width:100%;height:8px;border:0;padding:0;border-radius:999px;background:linear-gradient(90deg,#2f6f5e 0 var(--task-progress),#e7e4db var(--task-progress) 100%);cursor:pointer;touch-action:pan-y;outline:none}
.task-progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid #2f6f5e;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.task-progress-slider::-moz-range-thumb{width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid #2f6f5e;box-shadow:0 1px 4px rgba(0,0,0,.18)}
.task-card-actions{display:flex;align-items:center;align-self:flex-start;gap:1px;flex:none}
.add-top-three{color:#2f6f5e;border:1px solid #d8e4df;border-radius:9px;background:#f4f8f6}
.project-task-line small{margin-left:auto;color:var(--muted);font-size:.68rem;white-space:nowrap}
.flame.daily{margin-top:.25rem;color:#b66d22}
@media(max-width:640px){.task-card strong{font-size:.84rem}.task-card .meta{font-size:.66rem}.task-notes{font-size:.7rem}.project-task-line{align-items:flex-start;flex-wrap:wrap}.project-task-line small{width:100%;padding-left:30px}}

/* Nexus v8.6: project task metadata and compact mobile calendar header */
.project-task-line{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}
.project-task-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.project-task-title{min-width:0;overflow-wrap:anywhere}
.project-task-meta{display:block;color:#8c8a82;font-size:10px;line-height:1.25}
.project-task-actions{display:flex;align-items:center;gap:1px;flex:none}

@media(max-width:560px){
  .project-task-line{gap:7px;padding:7px 0}
  .project-task-actions{gap:0}
  .project-task-actions .icon-btn{width:26px;height:26px;padding:4px;display:grid;place-items:center;border-radius:7px}
  .project-task-actions .icon-btn svg{width:13px;height:13px}
  .project-task-title{font-size:12px;line-height:1.25}
  .project-task-meta{font-size:9px}

  .calendar-page .page-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
  .calendar-page .page-header h1{font-size:23px;line-height:1;min-width:0}
  .calendar-page .header-actions{width:auto;display:flex;justify-content:flex-end;gap:3px;flex-wrap:wrap}
  .calendar-page .header-actions .small{padding:5px 7px;font-size:9px;gap:3px;border-radius:8px;min-height:28px}
  .calendar-page .header-actions .small svg{width:12px;height:12px}
  .calendar-page .header-actions .link.small{padding:4px 5px;font-size:9px}
  .calendar-page .google-calendar-link{max-width:34px;overflow:hidden;white-space:nowrap;color:transparent;position:relative}
  .calendar-page .google-calendar-link svg{color:#77756d;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
}


/* Nexus v8.8: clearer project tasks and selective priority labels */
.project-task-title{
  font-weight:700;
  letter-spacing:-.01em;
  color:#2b2924;
  line-height:1.35;
}
.project-task-meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.project-task-priority{
  display:inline-flex;
  align-items:center;
  border-radius:999px;
  padding:2px 6px;
  font-size:9px;
  font-weight:800;
  line-height:1.1;
}
.project-task-priority.high{
  color:#a7352b;
  background:#f7e0dc;
}
.project-task-priority.low{
  color:#2f6f4f;
  background:#dfeee4;
}
@media(max-width:640px){
  .project-task-line{
    grid-template-columns:22px minmax(0,1fr) auto;
    gap:7px;
    padding:9px 0;
    border-bottom:1px solid #ece9e0;
  }
  .project-task-line:last-child{border-bottom:0}
  .project-task-title{
    font-size:13px;
    font-weight:750;
    line-height:1.3;
  }
  .project-task-meta{
    width:auto;
    padding-left:0;
    margin-left:0;
    font-size:9px;
    gap:5px;
  }
  .project-task-priority{
    font-size:8px;
    padding:2px 5px;
  }
  .project-task-actions .icon-btn{
    width:24px;
    height:24px;
    padding:4px;
    opacity:.72;
  }
  .project-task-actions .icon-btn:active{opacity:1}
}


/* Nexus v8.9: aligned project tasks, responsive typography and project sliders */
.project-task-line{
  align-items:start;
}
.project-task-line>.check{
  margin-top:2px;
}
.project-task-copy{
  gap:4px;
}
.project-task-title{
  font-weight:400;
  line-height:1.35;
}
.project-task-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  margin:0;
}
.project-task-due{
  display:block;
  color:#8c8a82;
  font-size:10px;
  line-height:1.25;
}
.project-task-priority{
  width:max-content;
}
.project-task-progress-wrap{
  width:100%;
  height:16px;
  display:flex;
  align-items:center;
  margin-top:3px;
}
.project-task-progress-slider{
  width:100%;
  height:6px;
  background:linear-gradient(90deg,#2f6f5e 0 var(--task-progress),#e7e4db var(--task-progress) 100%);
}
.project-task-progress-slider::-webkit-slider-thumb{
  width:15px;
  height:15px;
}
.project-task-progress-slider::-moz-range-thumb{
  width:13px;
  height:13px;
}
@media(max-width:640px){
  .project-task-line{
    grid-template-columns:22px minmax(0,1fr) auto;
    align-items:start;
  }
  .project-task-line>.check{margin-top:1px}
  .project-task-title{
    font-weight:700;
    font-size:13px;
    line-height:1.32;
  }
  .project-task-due{font-size:9px}
  .project-task-progress-wrap{height:15px;margin-top:2px}
}
