
:root{--paper:#f7f5ee;--white:#fffefa;--ink:#26382d;--sub:#6c786d;--line:#d9ded1;--green:#687989;--green-light:#e7edf3;--orange:#d88960;--orange-light:#fbebdf;--blue:#69839c;--blue-light:#e7edf3;--purple:#9a8b9e;--purple-light:#f0eaf1;--radius:18px;--shadow:0 9px 26px rgba(40,61,41,.04)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",sans-serif;color:var(--ink);background-color:var(--paper);background-image:linear-gradient(rgba(90,113,91,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(90,113,91,.028) 1px,transparent 1px);background-size:26px 26px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}a{color:inherit;text-decoration:none}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green)!important;box-shadow:0 0 0 3px rgba(109,141,116,.13)}.container{width:min(1200px,calc(100% - 46px));margin:auto}.topbar{display:flex;align-items:center;justify-content:space-between;padding:20px 0 14px;border-bottom:1px solid var(--line);gap:14px}.brand{display:flex;align-items:center;gap:11px}.brand-mark{height:34px;width:34px;border-radius:11px;background:#d7e4a7;display:grid;place-items:center;font-size:20px;transform:rotate(-9deg)}.brand strong{font-family:Georgia,serif;letter-spacing:.25px;font-size:21px}.brand small{display:block;color:var(--sub);letter-spacing:2px;font-size:9px;margin-top:2px}.top-links{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.top-links a,.ghost-btn,.small-btn{background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:999px;padding:9px 13px;font-size:12px;font-weight:600;transition:.15s}.top-links a:hover,.ghost-btn:hover,.small-btn:hover{background:#eaf0e6}.primary-btn{border:none;border-radius:999px;background:var(--ink);color:white;padding:11px 16px;font-size:12px;font-weight:700}.hero{padding:38px 0 26px;display:grid;grid-template-columns:1fr auto;gap:26px;align-items:end}.eyebrow{font-size:11px;color:var(--green);font-weight:800;letter-spacing:2px;text-transform:uppercase}.hero h1{font-family:Georgia,"Songti SC",serif;font-size:clamp(33px,4.2vw,56px);font-weight:500;line-height:1.1;margin:11px 0}.hero p{font-size:13px;color:var(--sub);margin:0;line-height:1.8}.daybox{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.daybox label{font-size:11px;font-weight:700;color:var(--sub)}.daybox input{border:1px solid var(--line);background:var(--white);border-radius:13px;padding:12px 14px;color:var(--ink)}.mini-progress{font-size:12px;color:var(--sub)}.grid-top{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.86fr);gap:18px}.panel,.project,.milestone-panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.panel{padding:23px}.panel-head,.section-heading,.row-between{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel h2,.section-heading h2{margin:0;font-family:Georgia,"Songti SC",serif;font-size:22px;font-weight:600}.tiny{color:var(--sub);font-size:11px}.section-heading{margin:35px 0 15px}.section-heading .label{font-size:11px;text-transform:uppercase;color:var(--green);letter-spacing:1.2px;font-weight:800;margin-bottom:7px}.todo-row{display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-bottom:1px solid #eaede6}.todo-row:last-child{border-bottom:none}.todo-row input[type=checkbox],.stage-row input[type=checkbox],.meal-head input{accent-color:var(--green);width:17px;height:17px;flex:none;cursor:pointer;margin-top:2px}.todo-body{flex:1;min-width:0}.todo-text{font-size:13px;line-height:1.65}.done-text{text-decoration:line-through;opacity:.48}.tag{display:inline-block;font-size:10px;padding:4px 8px;border-radius:99px;background:var(--green-light);color:#536f58;font-weight:700;margin-top:6px}.tag.orange{background:var(--orange-light);color:#a85f3f}.tag.blue{background:var(--blue-light);color:#58718c}.delete-btn{border:none;background:transparent;color:#a3aaa1;padding:3px 5px;font-size:18px;line-height:1}.delete-btn:hover{color:#b85b45}.add-task{display:flex;gap:8px;margin-top:17px}.add-task input{flex:1;min-width:0;border:1px solid var(--line);background:#fbfcf9;border-radius:10px;padding:11px 12px;font-size:12px}.add-task button{border:0;background:var(--green-light);border-radius:10px;padding:0 14px;color:var(--ink);font-weight:800}.sidebar-stack{display:flex;flex-direction:column;gap:18px}.highlight-box{background:#e9ede3;border:1px solid #d7e0d2;border-radius:13px;padding:16px;margin-top:17px}.highlight-box strong{font-size:13px}.highlight-box p{margin:7px 0 0;font-size:12px;color:#5e6c5f;line-height:1.6}.food-grid{display:grid;gap:11px;margin-top:18px}.meal-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;font-weight:800;margin-bottom:6px}.meal-head span{color:var(--sub);font-weight:500}.meal-input{width:100%;border:1px solid #e0e5da;background:#fafbf7;border-radius:10px;padding:10px 11px;font-size:12px;resize:vertical;line-height:1.5;min-height:43px}.meal-note{font-size:11px;line-height:1.8;color:var(--sub);margin:13px 0 0}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project{padding:22px;display:flex;flex-direction:column;min-width:0}.project.top-green{--accent:var(--green);--accent-light:var(--green-light)}.project.top-orange{--accent:var(--orange);--accent-light:var(--orange-light)}.project.top-blue{--accent:var(--blue);--accent-light:var(--blue-light)}.project.top-purple{--accent:var(--purple);--accent-light:var(--purple-light)}.project-top{display:flex;justify-content:space-between;gap:10px;align-items:start}.project-icon{height:37px;width:37px;display:grid;place-items:center;font-size:21px;border-radius:11px;background:var(--accent-light)}.project-label{font-size:10px;color:var(--sub);margin-top:14px;letter-spacing:.7px;font-weight:700}.project h3{font-size:19px;margin:5px 0 5px;line-height:1.3;letter-spacing:-.4px}.project-desc{font-size:11px;color:var(--sub);margin:0;line-height:1.5;min-height:32px}.progress-wrap{margin:18px 0 15px}.pct-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:8px}.pct-row strong{font-size:24px;font-family:Georgia,serif;font-weight:500}.progress-track{height:9px;border-radius:100px;background:#e8ece4;overflow:hidden}.progress-fill{height:100%;border-radius:inherit;background:var(--accent);transition:width .22s}.progress-control{display:flex;gap:9px;align-items:center;margin-top:9px}.progress-control input[type=range]{width:100%;accent-color:var(--accent);height:14px;cursor:pointer}.progress-control label{font-size:10px;color:var(--sub);white-space:nowrap}.subheading{font-size:10px;letter-spacing:1.2px;color:#849084;font-weight:800;text-transform:uppercase;margin:16px 0 6px}.stage-row{display:flex;align-items:flex-start;gap:9px;padding:8px 0;border-bottom:1px solid #eff0eb}.stage-row:last-child{border:0}.stage-row .stage-content{min-width:0;flex:1}.stage-row strong{font-size:12px;font-weight:600;display:block;line-height:1.5}.stage-row small{font-size:10px;color:var(--sub);display:block;line-height:1.55;margin-top:2px}.stage-row select{margin-top:6px;border:1px solid var(--line);border-radius:8px;background:#fbfbf8;color:#617161;padding:5px 6px;font-size:10px;max-width:100%;width:100%}.stage-row.finished strong{color:#8e998e}.stage-row.finished strong:not(.keep){text-decoration:line-through}.pdf-count{background:#f2f5ed;border-radius:12px;padding:13px;margin:10px 0 3px}.pdf-count .row-between{font-size:12px;font-weight:700}.pdf-count input{width:54px;text-align:center;border:1px solid var(--line);border-radius:7px;background:white;padding:6px 3px}.pdf-count small{font-size:11px;color:var(--sub);display:block;margin-top:5px}.milestones-in{margin-top:auto;padding-top:15px}.mini-event{border-left:2px solid var(--accent);padding:3px 0 12px 11px;position:relative;margin-left:3px}.mini-event:before{content:'';position:absolute;left:-5px;top:6px;border-radius:50%;width:8px;height:8px;background:var(--accent)}.mini-event span{color:var(--sub);font-size:10px;display:block}.mini-event b{font-size:11px;font-weight:700;line-height:1.5;display:block;margin-top:2px}.pill-row{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.pill{border-radius:100px;background:var(--accent-light);font-size:10px;padding:5px 8px;color:var(--ink)}.project-actions{display:flex;justify-content:space-between;gap:10px;margin-top:13px;align-items:center}.project-actions button{padding:7px 10px;font-size:11px}.milestone-panel{padding:20px 23px}.timeline{display:flex;flex-direction:column;margin-top:14px}.time-event{display:grid;grid-template-columns:75px 14px 1fr;gap:9px;position:relative;min-height:55px}.time-date{font-size:11px;color:var(--sub);padding-top:4px}.time-date strong{font-size:13px;color:var(--ink);display:block;margin-bottom:3px}.time-guide{position:relative;display:flex;align-items:flex-start;justify-content:center}.time-guide:after{content:'';position:absolute;top:10px;bottom:-2px;width:1px;background:var(--line);left:50%}.time-event:last-child .time-guide:after{display:none}.time-dot{height:10px;width:10px;border:2px solid var(--green);border-radius:50%;background:var(--white);z-index:1;margin-top:6px}.time-content{font-size:12px;line-height:1.5;margin-bottom:16px}.time-content b{display:block}.time-content small{font-size:10px;color:var(--sub)}.time-event.past .time-dot{background:#b2beb1;border-color:#b2beb1}.time-event.past .time-content{opacity:.65}.hintline{font-size:12px;color:var(--sub);line-height:1.7}.footer{border-top:1px solid var(--line);margin:35px 0 0;padding:25px 0 38px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.footer .fine{font-size:11px;color:var(--sub);max-width:680px;line-height:1.6}.footer-actions{display:flex;flex-wrap:wrap;gap:8px}.input-file{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,12px);opacity:0;pointer-events:none;background:#26382d;color:#fff;padding:11px 18px;border-radius:999px;font-size:12px;z-index:9;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}.empty{font-size:12px;line-height:1.8;padding:16px 0;color:var(--sub)}.deadline-alert{display:inline-block;background:#fff0d7;color:#9e6b2e;font-weight:700;border-radius:5px;padding:1px 6px}.share-status{font-size:10px;color:var(--sub)}.section-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.mobile-only{display:none}
@media(max-width:1020px){.project-grid{grid-template-columns:1fr 1fr}.grid-top{grid-template-columns:1.3fr 1fr}}
@media(max-width:760px){.container{width:min(100% - 26px,560px)}.topbar{align-items:start}.top-links{justify-content:flex-end}.top-links a{font-size:11px;padding:7px 9px}.hero{padding:27px 0 20px;grid-template-columns:1fr}.daybox{align-items:flex-start;flex-direction:row;justify-content:space-between;flex-wrap:wrap}.grid-top,.project-grid{grid-template-columns:1fr}.panel,.project,.milestone-panel{padding:19px}.section-heading{margin:30px 0 13px}.project-desc{min-height:0}.mobile-only{display:block}.top-links a:nth-child(3){display:none}.footer{align-items:flex-start}}
@media print{body{background:white}.top-links,.daybox,.add-task,.progress-control,.project-actions,.footer-actions,.delete-btn,.ghost-btn{display:none!important}.project-grid{grid-template-columns:repeat(3,1fr)}.project,.panel,.milestone-panel{break-inside:avoid;box-shadow:none}.container{width:100%}.hero{padding:12px 0}.grid-top{grid-template-columns:1.5fr 1fr}}

/* Click-to-edit V2 */
.todo-open{display:block;text-align:left;width:100%;border:0;background:transparent;padding:0;cursor:pointer;color:inherit}
.todo-open:hover .todo-text{text-decoration:underline;text-decoration-color:#9bb29a;text-underline-offset:4px}
.todo-open:focus-visible{outline:2px solid var(--green);outline-offset:5px;border-radius:5px}
.todo-edit-prompt{display:inline-block;margin-top:5px;color:#879b87;font-size:10px}
.todo-log-preview{font-size:11px;color:#687b6e;line-height:1.55;margin-top:7px;padding:7px 10px;background:#f0f4ed;border-radius:9px}
.icon-edit{border:1px solid var(--line);background:var(--white);border-radius:8px;font-size:11px;padding:4px 7px;color:var(--sub);cursor:pointer}
.icon-edit:hover{background:var(--green-light);color:var(--ink)}
.editable-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.editable-title h3{margin:5px 0}
.stage-title-line,.event-title-line{display:flex;align-items:center;justify-content:space-between;gap:8px}
.stage-title-line strong,.event-title-line b{min-width:0}
.editor-backdrop{position:fixed;inset:0;background:rgba(33,47,35,.36);z-index:100;display:none;align-items:center;justify-content:center;padding:16px}
.editor-backdrop.open{display:flex}
.editor-dialog{background:var(--white);width:min(550px,100%);max-height:92vh;overflow-y:auto;border:1px solid var(--line);box-shadow:0 22px 75px rgba(30,50,31,.2);border-radius:20px;padding:25px}
.editor-top{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:17px}
.editor-top h2{font:500 26px Georgia,'Songti SC',serif;margin:4px 0}
.editor-close{border:0;background:var(--green-light);border-radius:50%;width:33px;height:33px;font-size:20px;color:var(--ink)}
.editor-field{margin-top:15px;display:flex;flex-direction:column;gap:7px}
.editor-field label{font-size:12px;font-weight:700;color:var(--ink)}
.editor-field input,.editor-field select,.editor-field textarea{border:1px solid var(--line);background:#fafcf8;border-radius:11px;padding:11px 12px;font-size:13px;line-height:1.5;color:var(--ink);width:100%;min-width:0}
.editor-field textarea{resize:vertical;min-height:85px}
.editor-field small{font-size:11px;color:var(--sub)}
.editor-split{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.editor-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:space-between;margin-top:22px}
.editor-actions .primary-btn{font-size:13px;padding:12px 17px}
.log-history{display:flex;flex-direction:column;gap:8px;max-height:130px;overflow:auto;margin-top:8px}
.log-item{background:#f0f4ed;border-radius:9px;padding:9px 11px;font-size:12px;line-height:1.5;white-space:pre-wrap}
.log-item small{display:block;color:var(--sub);margin-bottom:3px;font-size:10px}
.editor-check{display:flex;gap:10px;align-items:center;font-size:13px;margin-top:16px}
.editor-check input{accent-color:var(--green);height:17px;width:17px}
@media(max-width:480px){.editor-dialog{padding:18px}.editor-split{grid-template-columns:1fr}.editor-actions{flex-direction:column}.editor-actions button{width:100%}}
@media print{.editor-backdrop,.icon-edit,.todo-edit-prompt{display:none!important}}

/* V2: direct, in-place editing. Fixed section headings remain non-editable. */
[contenteditable="true"]{cursor:text;outline:none;border-radius:5px;transition:background .15s, box-shadow .15s;white-space:pre-wrap;overflow-wrap:anywhere;min-width:22px}
[contenteditable="true"]:hover{background:#f0f4ed;box-shadow:0 0 0 4px #f0f4ed}
[contenteditable="true"]:focus{background:#fff;box-shadow:0 0 0 2px #9eba9e,0 0 0 6px #eef4ea}
[contenteditable="true"]:empty:before{content:attr(data-placeholder);color:#a3ada1}
.todo-open{cursor:default}.todo-open:hover .todo-text{text-decoration:none}
.todo-inline-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:7px}
.task-log-btn{border:0;background:transparent;color:#789075;font-size:11px;padding:2px 0;cursor:pointer;text-align:left}
.task-log-btn:hover{text-decoration:underline}
.project h3[contenteditable]{flex:1;margin-right:5px}
.project-desc[contenteditable]{min-height:24px}
.stage-row [contenteditable]{display:block}
.date-field,.time-field{color:var(--sub);font:inherit;border:1px solid transparent;background:transparent;border-radius:6px;padding:2px;max-width:100%}
.date-field{width:118px}.time-field{width:77px}
.date-field:hover,.time-field:hover{border-color:var(--line)}
.date-field:focus,.time-field:focus{border-color:var(--green);background:white}
.edit-hint{font-size:10px;color:#8b9b8b}
@media print{[contenteditable="true"]{box-shadow:none!important}.task-log-btn,.edit-hint{display:none!important}}

/* V3: main projects first, each project is one full-width horizontal row. */
#projects > .section-heading{margin-top:12px}
#today{margin-top:23px}
.project-grid{grid-template-columns:minmax(0,1fr);gap:17px}
.project{display:grid;grid-template-columns:minmax(220px,.94fr) minmax(285px,1.35fr) minmax(205px,.86fr);align-items:start;column-gap:25px;row-gap:18px;padding:24px 27px}
.project-overview,.project-workflow,.project-deadlines{min-width:0}
.project-overview{display:flex;flex-direction:column}
.project-workflow,.project-deadlines{border-left:1px solid #e4eae1;padding-left:23px;min-height:100%}
.project-workflow>.subheading,.project-deadlines .subheading{margin-top:2px}
.project-desc{min-height:0}
.project-overview .progress-wrap{margin:24px 0 4px}
.project .stage-row{padding:9px 0}
.project .stage-row:first-of-type{margin-top:7px}
.project .stage-row strong{font-size:12px}
.project .stage-row small{font-size:10px}
.project .milestones-in{margin-top:0;padding-top:0;display:flex;flex-direction:column}
.project .mini-event{padding-bottom:14px}
.project .mini-event span{line-height:1.7}
.project .project-actions{margin-top:15px}
.project .project-top{align-items:center}
.project-overview .project-label{margin-top:13px}
@media(max-width:1020px){
  .project-grid{grid-template-columns:minmax(0,1fr)}
  .project{grid-template-columns:minmax(210px,.8fr) minmax(0,1.2fr);gap:20px}
  .project-deadlines{grid-column:1 / -1;border-left:0;border-top:1px solid #e4eae1;padding:16px 0 0;min-height:0}
  .project .milestones-in{display:block}
  .project .mini-event{display:inline-block;vertical-align:top;width:min(46%,330px);margin-right:2%}
}
@media(max-width:650px){
  .project{display:flex;flex-direction:column;gap:16px;padding:21px}
  .project-overview,.project-workflow,.project-deadlines{width:100%;min-height:0}
  .project-workflow,.project-deadlines{border-left:0;border-top:1px solid #e4eae1;padding:14px 0 0}
  .project-overview .progress-wrap{margin:14px 0 0}
  .project .mini-event{display:block;width:auto;margin-right:0}
  #today{margin-top:14px}
}
@media print{
  .project-grid{grid-template-columns:minmax(0,1fr)}
  .project{display:grid;grid-template-columns:.8fr 1.3fr .9fr;break-inside:avoid;padding:16px;box-shadow:none}
  .project-workflow,.project-deadlines{border-left:1px solid #e4eae1;padding-left:16px;border-top:0}
  .project .mini-event{display:block;width:auto}
}

/* V4: ingredients-only meal summaries + expandable editable recipes. */
.food-grid{gap:12px;margin-top:18px}
.meal-card{border:1px solid #dfe5d9;background:#fbfcf8;border-radius:15px;padding:14px 17px 15px;transition:border-color .15s,background .15s}
.meal-card:has(.meal-details:not([hidden])){border-color:#bed1bf;background:#fffefa}
.meal-card-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.meal-identity{font-size:12px;font-weight:800;letter-spacing:.2px;color:var(--ink)}
.meal-toggle{border:0;background:transparent;color:#687e6d;font-size:11px;font-weight:750;display:flex;gap:7px;align-items:center;padding:6px;border-radius:8px;white-space:nowrap}
.meal-toggle:hover,.meal-toggle:focus-visible{background:#edf3e9}
.meal-toggle .turn{display:inline-block;transition:transform .2s;font-size:15px}
.meal-toggle[aria-expanded="true"] .turn{transform:rotate(180deg)}
.meal-ingredients{display:block;width:100%;font-size:15px;line-height:1.5;font-weight:500;background:transparent;border:0;padding:4px 2px;color:var(--ink);border-bottom:1px dashed transparent;min-width:0}
.meal-ingredients:hover,.meal-ingredients:focus{border-bottom-color:#bacdb9;background:transparent;box-shadow:none!important}
.meal-ingredients::placeholder{color:#a2aca0}
.meal-details{padding:16px 1px 1px;margin-top:14px;border-top:1px dashed #dce6d9}
.meal-details[hidden]{display:none!important}
.meal-detail-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:17px}
.meal-field-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#657967;font-size:11px;font-weight:800;margin-bottom:8px}
.meal-field-label span{color:#9ba99b;font-weight:500}
.meal-detail-input{display:block;width:100%;resize:vertical;min-height:110px;border:1px solid #dbe4d8;border-radius:10px;background:#fff;padding:11px 12px;color:var(--ink);font-size:12px;line-height:1.75}
.meal-detail-input::placeholder{color:#a7afa7}
.meal-link-preview{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}
.meal-link-preview a{display:inline-flex;align-items:center;gap:4px;border:1px solid #d4e0d2;background:#eaf2e8;color:#3c6345;border-radius:999px;padding:6px 10px;font-weight:700;font-size:11px;max-width:100%;overflow-wrap:anywhere}
.meal-link-preview a:hover{background:#dcebd9}
.meal-link-preview small{font-size:11px;color:#99a59a;line-height:1.6}
.meal-hint{font-size:10px;color:var(--sub);margin-top:8px;line-height:1.6}
@media(max-width:600px){.meal-card{padding:13px 13px}.meal-detail-grid{grid-template-columns:1fr}.meal-card-top{align-items:flex-start}.meal-ingredients{font-size:14px}}
@media print{.meal-details[hidden]{display:none!important}.meal-toggle{display:none}}

/* V5: compact project rows and horizontal chronological date rail */
.timeline-section>.section-heading{margin-top:7px;margin-bottom:14px}
.timeline-heading h2{font-size:23px}
.rail-decoration{font-weight:400;color:#8c9c89}
.rail-controls{display:flex;align-items:center;gap:8px}
.rail-controls .tiny{margin-right:7px}
.rail-arrow{display:grid;place-items:center;border:1px solid #dce3d5;border-radius:50%;width:34px;height:34px;background:#fffefa;font-size:17px;color:#435e49;transition:.15s}
.rail-arrow:hover{background:#e9efe5;transform:translateY(-1px)}
.timeline-shell{position:relative;padding:17px 18px 11px;background:#fffefa;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);overflow:hidden}
#globalTimeline.timeline{display:flex;flex-direction:row;gap:0;margin:0;min-height:150px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-color:#bdcbbc transparent;scrollbar-width:thin;overscroll-behavior-inline:contain;padding:0 0 10px;cursor:grab;user-select:none}
#globalTimeline.timeline.grabbing{cursor:grabbing;scroll-snap-type:none}
.rail-event{position:relative;display:flex;flex:none;flex-direction:column;width:220px;min-width:220px;scroll-snap-align:start;color:var(--ink);padding-right:0;outline-offset:-2px}
.rail-date{height:38px;display:flex;gap:8px;align-items:center;font-size:13px;font-weight:800;white-space:nowrap;color:#344d3b;padding-left:10px}
.rail-date span{font-size:11px;font-weight:500;color:#7a8879}
.rail-line{height:19px;display:flex;align-items:center;position:relative}
.rail-line:before{content:'';height:2px;background:#dce5d9;width:100%;position:absolute;left:0;top:9px}
.rail-event:first-child .rail-line:before{left:11px;width:calc(100% - 11px)}
.rail-dot{width:12px;height:12px;border:3px solid #719477;background:#fffefa;border-radius:50%;margin-left:10px;position:relative;z-index:1;flex:none}
.rail-card{margin:9px 14px 0 10px;flex:1;border-radius:11px;background:#f3f5ee;border:1px solid #e1e8dd;padding:11px 12px;min-height:74px;display:flex;flex-direction:column;gap:4px}
.rail-project{font-size:10px;color:#728374;font-weight:800;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.rail-event-title{font-size:12px;line-height:1.45;font-weight:700;overflow-wrap:anywhere}
.rail-state{font-size:10px;color:#667d6a;margin-top:auto}.rail-state.warning{color:#b46f4a}
.rail-event.past{opacity:.65}.rail-event.past .rail-dot{background:#b4c5b5;border-color:#b4c5b5}
.scroll-help{text-align:right;color:#879588;font-size:10px;letter-spacing:.1px;padding-right:5px}
#projects>.section-heading{margin-top:25px}
.project-grid{gap:12px}
.project{grid-template-columns:minmax(220px,1.05fr) minmax(270px,1.3fr) minmax(210px,1.05fr);gap:20px;padding:17px 22px}
.project-overview .project-label{margin-top:8px}
.project-overview .progress-wrap{margin:11px 0 0}
.project h3{margin:3px 0 3px;font-size:18px}
.project .project-icon{height:31px;width:31px;font-size:18px}
.project .pct-row{margin-bottom:5px}
.project .pct-row strong{font-size:22px}
.project .progress-control{margin-top:5px}
.project-workflow,.project-deadlines{padding-left:18px}
.project .stage-row{padding:5px 0;align-items:center;gap:8px;min-height:31px}
.project .stage-row .stage-content{display:flex;align-items:center;justify-content:space-between;gap:9px;min-width:0;flex-direction:row}
.project .stage-row .stage-title-line{flex:1;min-width:0}
.project .stage-row strong{font-size:12px;line-height:1.25;font-weight:650;white-space:normal}
.project .stage-row small{display:none!important}
.project .stage-row select{margin:0;width:135px;min-width:125px;flex:none;font-size:10px;padding:5px 6px}
.project .stage-row input[type=checkbox]{margin-top:0}
.project .subheading{margin:0 0 6px}
.project .pdf-count{margin:7px 0 0;padding:9px 11px}
.project .pdf-count small{margin-top:4px}
.project .mini-event{margin:0 0 6px;padding:4px 0 6px 9px}
.project .mini-event span{display:flex;align-items:center;gap:4px;flex-wrap:wrap;line-height:1.2}
.project .mini-event b{font-size:11px;margin-top:5px}
.project .project-actions{margin-top:5px}
.project .project-actions button{padding:5px 8px}
#today{margin-top:25px}
@media(max-width:1020px){
 .project{grid-template-columns:minmax(205px,.9fr) minmax(0,1.1fr)}
 .project-deadlines{padding:12px 0 0}
 .rail-event{width:205px;min-width:205px}
}
@media(max-width:650px){
 .timeline-shell{padding:13px 11px 9px}
 .rail-event{width:195px;min-width:195px}
 .rail-card{min-height:80px}
 .project{display:flex;gap:12px;padding:16px}
 .project-workflow,.project-deadlines{padding:11px 0 0}
 .project .stage-row .stage-content{gap:5px}
 .project .stage-row select{min-width:112px;width:115px}
 .rail-controls .tiny{display:none}
}
@media print{
 .rail-arrow,.scroll-help{display:none}
 #globalTimeline.timeline{overflow:visible;flex-wrap:wrap;user-select:auto}
 .rail-event{width:190px;min-width:190px}
}

/* V6: unified project roadmap */
.project-roadmap-grid{display:block}
.roadmap-shell{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px 20px 16px}
.roadmap-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}
.roadmap-intro p{margin:0;color:var(--sub);font-size:12px;line-height:1.7;max-width:650px}
.roadmap-legend{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.roadmap-legend span{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;background:#f3f6f0;border:1px solid #e1e8dd;font-size:10px;color:#53665a;font-weight:700}
.roadmap-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.roadmap-legend .done{background:#6d8d74}.roadmap-legend .active{background:#d88960}.roadmap-legend .future{background:#fff;border:2px solid #a7b7a8;box-sizing:border-box}
.roadmap-strip{display:flex;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#bdcbbc transparent;border:1px solid #e3e8de;border-radius:18px;background:#fbfcf8}
.project-lane{flex:none;min-width:360px;padding:18px 18px 16px;position:relative}.project-lane:not(:last-child){border-right:1px dashed #dce5d9}
.project-lane-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:6px}.project-lane-titlewrap{display:flex;align-items:center;gap:10px;min-width:0}.project-lane-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--accent-light);font-size:18px;flex:none}.project-lane-title{min-width:0}.project-lane-title small{display:block;font-size:10px;letter-spacing:1px;color:var(--sub);font-weight:800;margin-bottom:4px}.project-lane-title b{display:block;font-size:18px;line-height:1.3}.lane-pct{font-family:Georgia,serif;font-size:30px;font-weight:500;line-height:1;color:#2c4134;flex:none}
.project-lane-desc{font-size:11px;color:var(--sub);line-height:1.55;margin:0 0 14px}
.lane-track-wrap{position:relative;padding:8px 0 4px}.lane-track{position:relative;display:flex;justify-content:space-between;gap:0;align-items:flex-start}.lane-track:before{content:'';position:absolute;left:10px;right:10px;top:15px;height:2px;background:#d8e1d7}.lane-node{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;min-width:0}.lane-dot{width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid #b5c3b7;transition:.15s}.lane-node.done .lane-dot{background:var(--accent);border-color:var(--accent)}.lane-node.active .lane-dot{background:#fff;border-color:#d88960;box-shadow:0 0 0 4px rgba(216,137,96,.16)}.lane-node.milestone .lane-dot{width:14px;height:14px}.lane-node-labels{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;min-width:0;padding:0 4px}.lane-kicker{font-size:9px;letter-spacing:.9px;color:#8a968a;font-weight:800;text-transform:uppercase}.lane-date{font-size:9px;color:#8a968a;font-weight:700}.lane-node-title{font-size:11px;line-height:1.35;font-weight:700;color:#2d4233;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:88px}.lane-state{font-size:9px;color:#8a968a}.lane-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.lane-summary .pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #dde6db;background:#f4f7f1;border-radius:999px;padding:6px 9px;font-size:10px;color:#53675a;font-weight:700}
.roadmap-details{display:grid;gap:10px;margin-top:14px}.roadmap-detail{border:1px solid #e2e8dd;border-radius:14px;background:#fcfdfa;overflow:hidden}.roadmap-detail summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;font-weight:700}.roadmap-detail summary::-webkit-details-marker{display:none}.roadmap-detail[open] summary{border-bottom:1px solid #ecf0e8}.roadmap-detail summary .meta{display:flex;align-items:center;gap:10px;min-width:0}.roadmap-detail summary .meta small{display:block;color:var(--sub);font-weight:600}.roadmap-detail summary .right{display:flex;gap:10px;align-items:center;color:var(--sub);font-size:11px}.roadmap-caret{transition:transform .18s}.roadmap-detail[open] .roadmap-caret{transform:rotate(180deg)}.roadmap-detail-body{padding:14px 16px 16px}
.project-editor{display:grid;grid-template-columns:minmax(220px,.95fr) minmax(240px,1.1fr) minmax(220px,.95fr);gap:18px}.project-editor .project-overview .progress-wrap{margin-top:10px}.project-editor .project-label{margin-top:8px}.project-editor .project-workflow,.project-editor .project-deadlines{padding-left:18px;border-left:1px solid #edf0ea}.project-editor .stage-row{padding:6px 0;align-items:center}.project-editor .stage-row small{display:none!important}.project-editor .stage-row .stage-content{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.project-editor .stage-row select{margin:0;width:135px;min-width:120px;font-size:10px;padding:5px 6px}.project-editor .subheading{margin:0 0 7px}.project-editor .pdf-count{margin-top:8px;padding:10px 11px}.project-editor .mini-event{margin:0 0 6px;padding:4px 0 7px 9px}.project-editor .project-actions{margin-top:6px}.project-editor .project-actions button{padding:6px 9px}
@media(max-width:1100px){.project-lane{min-width:330px}.project-editor{grid-template-columns:1fr 1fr}.project-editor .project-deadlines{grid-column:1/-1;padding-left:0;border-left:0;border-top:1px solid #edf0ea;padding-top:12px}}
@media(max-width:760px){.roadmap-shell{padding:14px}.roadmap-intro{flex-direction:column;align-items:flex-start}.roadmap-legend{justify-content:flex-start}.project-lane{min-width:300px;padding:16px 14px}.lane-node-title{max-width:70px}.project-editor{display:flex;flex-direction:column;gap:12px}.project-editor .project-workflow,.project-editor .project-deadlines{padding-left:0;border-left:0;border-top:1px solid #edf0ea;padding-top:12px}}
@media print{.roadmap-strip{overflow:visible}.project-lane{min-width:0;flex:1}}


/* V7: ONE PROJECT = ONE ROW, no secondary set of project cards */
.project-roadmap-grid{display:flex!important;flex-direction:column!important;gap:13px!important}
.one-project-line{display:grid!important;grid-template-columns:minmax(205px,.75fr) minmax(0,2.45fr)!important;align-items:stretch;gap:18px!important;padding:19px 22px!important;min-width:0;min-height:205px}
.one-project-overview{min-width:0;display:flex;flex-direction:column;padding-right:18px;border-right:1px solid #e4e9e1}
.one-project-overview .project-top{align-items:center}.one-project-overview .project-icon{height:30px;width:30px;font-size:18px}
.one-project-overview .project-label{margin-top:8px}.one-project-overview h3{font-size:19px;margin:3px 0 5px;line-height:1.28;min-height:unset}
.one-project-overview .project-desc{min-height:0;font-size:10.5px;line-height:1.48;margin:0;color:#6d7a70}
.one-project-overview .progress-wrap{margin:10px 0 0}.one-project-overview .pct-row{margin-bottom:5px}.one-project-overview .pct-row strong{font-size:25px}.one-project-overview .progress-control{margin-top:4px}
.one-project-rail-col{min-width:0;display:flex;flex-direction:column;justify-content:space-between}
.one-project-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;color:#849084;font-weight:800;letter-spacing:1px;font-size:10px;margin-bottom:2px}
.one-project-heading span:last-child{color:#6b7b6c;font-weight:600;letter-spacing:0}
.project-stage-rail{overflow-x:auto;overflow-y:hidden;min-width:0;scrollbar-width:thin;scrollbar-color:#bccbb9 transparent;overscroll-behavior-inline:contain;padding:10px 0 7px;flex:1}
.project-stage-rail:focus{outline:2px solid #dae7d6;outline-offset:-2px}
.project-stage-track{display:flex;position:relative;align-items:flex-start;min-width:max-content;min-height:120px;padding:1px 8px 0}
.project-stage-track:before{content:'';position:absolute;top:12px;left:16px;right:16px;height:3px;background:#dce6da;border-radius:99px}
.line-node{width:135px;flex:0 0 135px;display:flex;align-items:flex-start;flex-direction:column;gap:5px;position:relative;min-height:104px;padding-right:9px}
.line-node .node-dot{width:19px;height:19px;background:#fffefa;border:3px solid #b1c4b4;border-radius:50%;display:block;position:relative;z-index:2;margin:0 0 3px;flex:none}
.line-node.done .node-dot{background:var(--accent);border-color:var(--accent)}
.line-node.active .node-dot{border-color:#da976c;box-shadow:0 0 0 4px rgba(218,151,108,.14)}
.line-node.milestone .node-dot{border-color:var(--accent);border-radius:5px;transform:rotate(45deg);width:15px;height:15px;margin:2px 0 5px 2px}
.line-node.milestone.done .node-dot{background:var(--accent)}
.node-caption{font-size:9px;color:#7b907e;font-weight:800;letter-spacing:.7px;line-height:1.3;white-space:normal}
.node-name{font-size:11px;line-height:1.35;min-height:30px;font-weight:700;max-width:125px;overflow-wrap:anywhere;cursor:text;outline:0}
.node-name:hover{background:#eaf2e7;border-radius:4px}.node-name:focus{background:#edf5e9;border-radius:4px;box-shadow:0 0 0 2px #dceadb}
.line-node.done .node-name{color:#738477}.line-check{font-size:10px;color:#819083;display:flex;gap:4px;align-items:center;cursor:pointer;white-space:nowrap}
.line-check input{margin:0;width:14px;height:14px;accent-color:var(--accent)}
.node-tools{display:flex;align-items:center;gap:6px;min-height:18px}.node-tools .line-check{margin:0}.node-delete{border:1px solid #d7e1d4;background:#fffefa;color:#8a968b;border-radius:999px;width:20px;height:20px;display:grid;place-items:center;font-size:13px;line-height:1;padding:0;cursor:pointer;transition:.15s}.node-delete:hover{background:#f6e9e4;color:#aa6549;border-color:#e2c4b8}.node-delete:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(216,137,96,.15)}
.line-stage-select{font-size:9px;line-height:1.3;max-width:120px;padding:4px 3px;border:1px solid #d7e1d4;background:#f7faf6;border-radius:7px;color:#5f7667;cursor:pointer}
.inline-date-tools{display:flex;flex-direction:column;gap:2px;margin-top:0;max-width:125px}.inline-date-tools input{width:125px;max-width:125px;min-height:21px;padding:1px 2px;border:1px solid transparent;background:transparent;border-radius:5px;font-size:9px;color:#778a78}.inline-date-tools input:hover{border-color:#dae7d6;background:#f3f8f2}
.rail-bottom-tools{display:flex;gap:12px;justify-content:space-between;align-items:center;border-top:1px solid #edf0e8;padding-top:8px;min-height:36px}
.inline-row-actions{display:flex;gap:5px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.inline-row-actions .small-btn{padding:5px 9px;font-size:10px}.inline-row-actions>span{font-size:10px;color:#8a968b;white-space:nowrap}
.row-page-count{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:10px;font-weight:700;color:#5d7562}.row-page-count input{width:40px;text-align:center;border:1px solid #d8e3d5;background:#fffefa;border-radius:6px;padding:5px 3px;font-size:11px;color:#2a412f}.row-page-count .page-hint{font-size:10px;color:#809282;font-weight:500}
#today{grid-template-columns:minmax(0,1.12fr) minmax(350px,.88fr);align-items:start;margin-top:23px}
#today .sidebar-stack{gap:0}#today .compact-food-panel{padding:21px}#today .compact-food-panel .panel-head h2{font-size:22px}
.food-headline{margin:8px 0 0;font-size:11px;line-height:1.7}
.compact-food-panel .food-grid{gap:9px;margin-top:12px}
.compact-food-panel .meal-card{padding:10px 12px}
.compact-food-panel .meal-card-top{gap:6px;margin-bottom:2px}
.compact-food-panel .meal-identity{font-size:11px}
.compact-food-panel .meal-toggle{font-size:10px;padding:4px}
.compact-food-panel .meal-ingredients{font-size:12px;line-height:1.65;padding:4px 0;white-space:normal}
.compact-food-panel .meal-detail-grid{grid-template-columns:1fr;gap:11px}
.compact-food-panel .meal-detail-input{min-height:85px}
.compact-food-panel .meal-note{margin-top:12px}
@media(max-width:1020px){.one-project-line{grid-template-columns:minmax(170px,.65fr) minmax(0,2.4fr)!important;padding:16px 16px!important;gap:12px!important}.one-project-overview{padding-right:12px}.line-node{flex-basis:122px;width:122px}.node-name{max-width:113px}#today{grid-template-columns:minmax(0,1fr) minmax(310px,.95fr)}}
@media(max-width:730px){.one-project-line{display:block!important;min-height:0}.one-project-overview{border-right:0;border-bottom:1px solid #e4e9e1;padding:0 0 10px;margin-bottom:9px}.one-project-overview .progress-wrap{max-width:330px}.project-stage-rail{overflow-x:auto}.rail-bottom-tools{flex-wrap:wrap}.line-node{flex-basis:120px;width:120px}#today{grid-template-columns:1fr}.compact-food-panel .meal-detail-grid{grid-template-columns:1fr}}


/* Food CPF indicator: grams include oils and seasonings listed above */
.meal-macro-line{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:6px 0 2px}
.macro-chip{display:inline-flex;align-items:center;gap:3px;font-size:10px;color:#546e5e;border:1px solid #dbe5d6;background:#f4f7f1;border-radius:6px;padding:4px 6px}
.macro-chip b{font-weight:800;color:#2e5038}.macro-over{background:#fff0e5;border-color:#e7b899;color:#a35c40}.macro-over b{color:#a35c40}
.macro-warning{color:#ad684b;font-size:10px}.meal-macro-note{font-size:10px;line-height:1.55;color:#829083;margin:7px 0 0}

/* V8: each project is one uninterrupted horizontal card, no visual split */
.project-roadmap-grid{display:flex!important;flex-direction:column!important;gap:14px!important}
.one-project-line.unified-project-card{display:flex!important;flex-direction:column!important;gap:0!important;min-height:0!important;padding:22px 24px 0!important;overflow:hidden}
.unified-project-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;min-width:0;margin-bottom:11px}
.unified-project-ident{display:flex;align-items:flex-start;gap:13px;min-width:0;flex:1}
.unified-project-ident .project-icon{height:42px;width:42px;font-size:22px;flex:none}
.unified-project-copy{min-width:0}.unified-project-copy .project-label{margin-top:1px!important;font-size:10px}
.unified-project-copy h3{font-size:21px;margin:4px 0 6px;line-height:1.18}
.unified-project-copy .project-desc{min-height:0;font-size:12px;margin:0;color:#7a887c;line-height:1.55}
.unified-project-progress{flex:none;width:175px;display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.unified-project-progress .pct-row{display:flex;align-items:center;justify-content:flex-end;gap:11px;width:100%;margin:0}
.unified-project-progress .pct-row span{color:#819082;font-size:10px;font-weight:600;white-space:nowrap}
.unified-project-progress .pct-row strong{font-size:36px;line-height:1;font-family:Georgia,serif;font-weight:500}
.unified-project-progress .progress-control{margin:0;width:100%;gap:4px}
.unified-project-progress .progress-control label{font-size:9px}
.unified-project-progress .progress-control input{min-width:0}
.unified-project-card .one-project-rail-col{display:block;min-width:0;overflow:hidden}
.unified-project-card .project-stage-rail{width:100%;padding:9px 0 4px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;min-height:113px;flex:none}
.unified-project-card .project-stage-track{min-height:96px;padding-top:1px;min-width:100%}
.unified-project-card .line-node{flex:1 0 105px;width:auto;max-width:165px;min-height:100px;align-items:center;text-align:center;padding:0 6px}
.unified-project-card .line-node .node-dot{margin-left:0;margin-right:0}
.unified-project-card .project-stage-track:before{left:8px;right:8px}
.unified-project-card .node-name{max-width:140px}
.unified-project-card .inline-date-tools{justify-content:center}
.unified-project-card .rail-bottom-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:space-between;padding:6px 0 13px;border:0}
.unified-project-card .row-summary{display:flex;align-items:center;gap:8px;margin-right:auto;flex-wrap:wrap}
.unified-project-card .row-summary span{background:#f3f7ef;border:1px solid #e0e9db;padding:5px 9px;color:#647d68;font-size:10px;font-weight:650;border-radius:99px}
.unified-project-card .inline-row-actions>span{display:none}
.unified-project-card .unified-progress-track{height:6px;width:calc(100% + 48px);margin:0 -24px;background:#eef1eb;border:0;border-radius:0}
.unified-project-card .unified-progress-track .progress-fill{border-radius:0}
/* Remove any historical splitting border, even on small viewports */
.unified-project-card .one-project-overview{border:0!important;padding:0!important;margin:0!important}
.unified-project-card .one-project-rail-col{border:0!important;padding:0!important;margin:0!important}
.timeline-add-footer{display:flex;justify-content:flex-end;align-items:center;padding:10px 5px 3px}
.add-deadline-btn{border:1px dashed #b6c8b0;background:#f7faf3;border-radius:999px;color:#607f63;font-size:12px;font-weight:750;padding:11px 17px;transition:.15s}
.add-deadline-btn:hover,.add-deadline-btn:focus-visible{background:#e9f0e6;border-color:#76987b}
.rail-event{cursor:pointer}.rail-event:focus-visible{outline:2px solid #7c9e7d;outline-offset:-3px}
.deadline-dialog{width:min(460px,calc(100vw - 28px));max-height:85vh;overflow-y:auto;border:1px solid #cbdaca;border-radius:20px;background:#fffefa;color:var(--ink);padding:24px;box-shadow:0 20px 65px rgba(25,45,28,.2)}
.deadline-dialog::backdrop{background:rgba(35,49,37,.33);backdrop-filter:blur(2px)}
.deadline-form{display:grid;gap:16px}.deadline-dialog-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.deadline-dialog-head h2{font-family:Georgia,serif;margin:8px 0 0;font-size:23px}.deadline-close{border:0;background:#f0f4ec;border-radius:50%;height:34px;width:34px;font-size:20px;color:#536755}
.deadline-form label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:750;color:#5d6e60}.deadline-form input:not([type=checkbox]),.deadline-form select{width:100%;min-width:0;background:#fbfcf8;border:1px solid var(--line);border-radius:10px;padding:11px 12px;color:var(--ink)}
.deadline-field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.deadline-form .deadline-complete{display:flex;flex-direction:row;align-items:center;gap:9px}.deadline-complete input{accent-color:var(--green)}
.deadline-dialog-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.deadline-dialog-actions .spacer{flex:1}
@media(max-width:760px){
 .one-project-line.unified-project-card{padding:17px 15px 0!important}
 .unified-project-header{gap:10px}.unified-project-ident{gap:9px}.unified-project-ident .project-icon{height:34px;width:34px;font-size:18px}.unified-project-copy h3{font-size:16px}.unified-project-copy .project-desc{font-size:10px}
 .unified-project-progress{width:95px}.unified-project-progress .pct-row{gap:2px}.unified-project-progress .pct-row strong{font-size:26px}.unified-project-progress .pct-row span{display:none}.unified-project-progress .progress-control label{display:none}
 .unified-project-card .project-stage-rail{min-height:116px}.unified-project-card .project-stage-track{min-width:max-content}.unified-project-card .line-node{flex:0 0 118px;max-width:none;width:118px}
 .unified-project-card .unified-progress-track{width:calc(100% + 30px);margin:0 -15px}
 .timeline-add-footer{justify-content:center}.add-deadline-btn{width:100%}
 .deadline-dialog{padding:19px}.deadline-field-row{grid-template-columns:1fr}
}
@media print{.deadline-dialog,.add-deadline-btn{display:none}}

/* V9: quiet reading mode. Remove redundant explanatory microcopy, keep content and controls. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#saveStatus{display:none!important}
.unified-project-card .pct-row span,.unified-project-card .progress-control label{display:none!important}
.unified-project-card .line-check span{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.unified-project-card .row-summary{display:none!important}
.unified-project-card .rail-bottom-tools{padding-top:2px;padding-bottom:10px;gap:6px;justify-content:flex-end}
.unified-project-card .line-node{min-height:74px!important}
.unified-project-card .project-stage-rail{min-height:92px!important;padding-top:8px!important}
.unified-project-card .project-stage-track{min-height:76px!important}
.unified-project-card .line-check{margin-top:5px!important}
.unified-project-header{align-items:center!important;margin-bottom:8px!important}
.project-description-disclosure{margin-top:1px;max-width:450px}
.project-description-disclosure summary{font-size:11px;font-weight:600;color:#9ba99b;list-style:none;cursor:pointer;width:max-content;display:flex;align-items:center;gap:4px;line-height:1.5;padding:1px 4px 1px 0}
.project-description-disclosure summary::-webkit-details-marker{display:none}
.project-description-disclosure summary:hover{color:#65816d}
.project-description-disclosure:not([open]) .project-desc{display:none!important}
.project-description-disclosure[open] .project-desc{margin-top:5px!important;padding:7px 10px!important;border-radius:8px;background:#f4f7f1;font-size:12px!important}
.project-description-disclosure .project-desc:focus{outline:1px solid #92ac91;min-height:24px}
.compact-food-panel .food-grid{margin-top:13px!important}
.compact-food-panel .meal-card{padding-top:10px;padding-bottom:10px}
#today .panel-head{margin-bottom:12px}
#today .highlight-box{padding:11px 15px;margin-top:12px}
#today .highlight-box strong{font-size:13px}
#today .highlight-box p{display:none!important}
.footer .fine{line-height:1.35}.footer{padding-top:20px!important;padding-bottom:24px!important}
.meal-field-label span{display:none!important}
@media(max-width:760px){.unified-project-card .project-stage-rail{min-height:90px!important}.unified-project-card .line-node{min-height:74px!important}}

/* V11: titles above the timeline, circles are the compact completion controls. */
.unified-project-card .project-stage-rail{min-height:136px!important;padding:8px 0 4px!important}
.unified-project-card .project-stage-track{min-height:118px!important}
.unified-project-card .project-stage-track:before{top:88px!important}
.unified-project-card .line-node{min-height:110px!important;height:110px!important;gap:0!important;align-items:center!important;padding:0 5px!important}
.unified-project-card .node-above{height:78px;flex:0 0 78px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;padding-bottom:7px;width:100%;min-width:0}
.unified-project-card .node-above .node-name{min-height:0;max-height:60px;overflow:auto;max-width:100%;font-size:12px;line-height:1.35;text-align:center;font-weight:700;outline:none;scrollbar-width:thin}
.unified-project-card .node-above .node-name:focus{outline:1px solid #bad2b8;border-radius:5px}
.unified-project-card .node-date-edit{border:none;background:none;padding:0;cursor:pointer;color:#728a76;font-size:10px;font-weight:750;white-space:nowrap;line-height:1.3}
.unified-project-card .node-date-edit:hover{text-decoration:underline;color:#3b6550}
.unified-project-card .node-dot-toggle{display:grid;place-items:center;align-self:center;width:22px;height:22px;min-width:22px;min-height:22px;padding:0;margin:0;border:0;border-radius:50%;background:transparent;cursor:pointer;position:relative;z-index:3}
.unified-project-card .node-dot-toggle .node-dot{pointer-events:none;display:block;margin:0!important;flex:none}
.unified-project-card .node-dot-toggle:hover .node-dot{box-shadow:0 0 0 4px rgba(109,141,116,.14)}
.unified-project-card .node-dot-toggle:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.unified-project-card .node-tools,.unified-project-card .node-delete,.unified-project-card .line-check,.unified-project-card .inline-date-tools,.unified-project-card .line-stage-select{display:none!important}
@media(max-width:760px){.unified-project-card .project-stage-rail{min-height:133px!important}.unified-project-card .line-node{min-height:110px!important}}


/* V12: truly unified sortable nodes, vertical substeps, reliable save feedback */
.top-save-status{font-size:11px;font-weight:650;color:#53745c;white-space:nowrap}.top-save-status.storage-warning{color:#ac6948}.top-links button{white-space:nowrap}
.unified-project-card{display:block!important;grid-template-columns:none!important;padding:17px 23px!important}
.unified-project-card .unified-project-header{display:flex!important;margin:0 0 4px!important;min-height:40px!important}
.unified-project-card .unified-project-progress,.unified-project-card .unified-progress-track,.unified-project-card .progress-control,.unified-project-card .progress-track,.unified-project-card .pct-row{display:none!important}
.unified-project-card .one-project-rail-col{width:100%;min-width:0}
.unified-project-card .project-stage-rail{min-height:128px!important;overflow-x:auto!important;overflow-y:visible!important;padding:4px 0 8px!important;scrollbar-width:thin}
.unified-project-card .project-stage-track{min-height:115px!important;align-items:flex-start!important;gap:0!important}
.unified-project-card .project-stage-track:before{top:91px!important}
.unified-project-card .line-node{height:auto!important;min-height:125px!important;min-width:150px!important;flex:0 0 150px!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;cursor:grab;user-select:none}
.unified-project-card .node-above{height:80px!important;flex:0 0 80px!important;position:relative}
.unified-project-card .node-above .node-name{user-select:text;cursor:text}
.unified-project-card .node-grab{position:absolute;right:2px;top:0px;font-size:14px;line-height:1;color:#a5b3a6;opacity:.15;cursor:grab;padding:3px;border-radius:5px}
.unified-project-card .line-node:hover .node-grab,.unified-project-card .node-grab:focus{opacity:1;background:#edf2e9}
.unified-project-card .line-node.dragging{opacity:.42}.unified-project-card .line-node.drag-target{background:rgba(109,141,116,.11);border-radius:12px;outline:2px dashed #9db49d;outline-offset:-3px}
.unified-project-card .line-node .node-dot-toggle{flex:none}
.node-subsection{width:100%;padding-top:14px;display:flex;align-items:center;flex-direction:column;position:relative;z-index:4}
.substeps-toggle{border:1px solid #d9e3d6;color:#708473;background:#f8faf6;border-radius:999px;padding:4px 10px;font-size:10px;font-weight:700;cursor:pointer;white-space:nowrap}
.substeps-toggle:hover{background:#e7efe4}
.substeps-list{width:calc(100% - 4px);margin-top:9px;padding:9px 6px;background:#f7f9f5;border:1px solid #dce5da;border-radius:11px;display:flex;gap:8px;flex-direction:column}
.substep-row{display:flex;align-items:flex-start;gap:6px;font-size:11px;line-height:1.35;color:#324b3b;cursor:text;min-width:0}
.substep-row input{margin:1px 0 0;accent-color:#6d8d74;flex:none;width:13px;height:13px}
.substep-name{display:block;outline:0;min-width:0;overflow-wrap:anywhere;cursor:text;flex:1;text-align:left;user-select:text}.substep-name:focus{background:#e3efdf;border-radius:3px}.substep-name.complete{color:#899c89;text-decoration:line-through}
.substep-add{align-self:center;border:0;background:none;color:#658268;font-size:10px;font-weight:750;cursor:pointer;padding:2px}
.unified-project-card .rail-bottom-tools{min-height:36px!important;padding:7px 0 0!important;align-items:center!important;justify-content:space-between!important}
.unified-project-card .inline-row-actions{margin-left:auto}
.unified-project-card .add-unified-node{height:32px;min-width:38px;font-size:19px!important;padding:0 10px!important;border-radius:999px}
.node-form-hint{font-size:11px;color:#829084;line-height:1.5;margin-bottom:8px}
#nodeDialog{max-width:min(460px,calc(100% - 28px))}
#today #saveStatus{display:none}
@media(max-width:720px){.top-links{gap:5px}.top-save-status{width:100%;order:10}.unified-project-card{padding:15px!important}.unified-project-card .line-node{min-width:142px!important;flex-basis:142px!important}}


/* V13: condensed project controls + editable vertical day schedule */
.unified-project-card .unified-project-header{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:10px!important}
.project-add-top{height:34px;width:36px;flex:none;border-radius:50%;border:1px solid #d2ddcd;background:#f7faf4;color:#4e7357;display:grid;place-items:center;font-size:25px;font-weight:400;line-height:1;cursor:pointer}
.project-add-top:hover{background:#e9f1e4;border-color:#a5b9a0}.project-add-top:focus-visible{outline:2px solid #76977c;outline-offset:2px}
.unified-project-card .rail-bottom-tools,.row-page-count{display:none!important}
#today{grid-template-columns:minmax(0,.94fr) minmax(380px,1.06fr)!important;align-items:start}
.daily-timeline-panel{padding:20px!important}.day-timeline{position:relative;margin:17px 0 1px;padding:0 0 0 1px}
.day-timeline:before{content:'';position:absolute;top:18px;bottom:26px;left:99px;width:2px;background:#dce5d9}
.day-slot{position:relative;display:grid;grid-template-columns:78px 22px minmax(0,1fr);gap:10px;align-items:flex-start;min-height:67px;padding-bottom:13px}
.day-time{width:100%;min-height:30px;border:0;border-bottom:1px dashed transparent;background:transparent;color:#4e6656;outline:0;font-size:11px;font-weight:750;padding:3px 0;line-height:1.5;overflow-wrap:anywhere}
.day-time:focus,.day-time:hover{border-bottom-color:#a5b9a0}
.day-pin{width:12px;height:12px;border-radius:50%;background:#fffefa;border:3px solid #89a18a;position:relative;top:8px;left:5px;z-index:1}
.day-slot.meal .day-pin{background:#d9e9ca;border-color:#799777}
.day-slot-body{min-width:0;position:relative;padding:3px 12px 8px 10px;border-radius:10px;transition:.15s}
.day-slot-body:hover{background:#f6f8f3}.day-entry{display:block;color:#2c4333;font-size:13px;font-weight:650;line-height:1.45;outline:0;min-height:21px;cursor:text;white-space:pre-wrap;overflow-wrap:anywhere}
.day-entry:focus{background:#edf3e9;border-radius:4px}
.day-meal{width:100%;display:block;border:none;border-bottom:1px dashed transparent;background:transparent;padding:5px 1px 4px;font-size:11px;color:#667969;line-height:1.5;resize:none;overflow:hidden;min-height:26px;outline:0}
.day-meal:hover,.day-meal:focus{border-bottom-color:#c2d0bd}
.day-meal-toggle{display:inline-flex;align-items:center;gap:4px;border:0;background:none;padding:2px 0;color:#77917c;cursor:pointer;font-size:10px;font-weight:700}
.day-meal-details{display:grid;gap:8px;padding:10px;margin:8px 0 0;background:#f4f7f0;border:1px solid #e0e8dc;border-radius:10px}
.day-meal-details[hidden]{display:none!important}
.day-meal-details label{font-size:10px;font-weight:700;color:#748877}
.day-meal-details textarea{display:block;width:100%;border:1px solid #d8e3d4;background:#fffefa;border-radius:8px;padding:7px 9px;margin-top:5px;resize:vertical;color:#304735;font-size:11px;line-height:1.6;min-height:62px}
.day-meal-details .meal-link-preview{margin-top:5px}
.day-slot-delete{position:absolute;top:0;right:0;border:0;background:none;color:#a8b4a8;opacity:0;padding:2px 5px;cursor:pointer;font-size:17px;line-height:1}
.day-slot-body:hover .day-slot-delete,.day-slot-delete:focus-visible{opacity:1}
.day-slot-delete:hover{color:#b36b50}
.save-help{font-size:12px;line-height:1.8;color:#647869;margin:1px 0 8px}.save-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}.save-actions button{font-size:12px}
.save-copy-label{font-size:11px;color:#788978;font-weight:800;display:block;margin:7px 0}.save-copy-text{width:100%;display:block;border:1px solid #d9e3d5;border-radius:10px;background:#f8faf6;color:#6b7e70;font-size:10px;min-height:98px;resize:vertical;padding:9px;line-height:1.5}
.save-feedback{font-size:11px;line-height:1.5;color:#6f856f;margin:10px 0 2px}
#saveDialog{width:min(570px,calc(100% - 32px));max-width:570px}
@media(max-width:940px){#today{grid-template-columns:1fr!important}.day-timeline:before{left:99px}}
@media(max-width:530px){.day-slot{grid-template-columns:67px 18px minmax(0,1fr);gap:7px}.day-timeline:before{left:80px}.day-pin{left:2px}.day-entry{font-size:12px}.daily-timeline-panel{padding:15px!important}}


/* V14: one-line ingredient summaries; no recipe/tutorial controls or serving amounts. */
.day-meal{display:block;max-width:100%;min-height:25px;margin-top:3px;font-size:12px;line-height:1.55;resize:vertical;background:transparent;border:0;border-bottom:1px dashed transparent;padding:3px 0;color:#6e826e}
.day-meal:focus,.day-meal:hover{border-bottom-color:#c7d9c7;background:#f9fbf7}
.day-slot-body{padding-bottom:10px}
.day-slot-delete,.day-meal-toggle,.day-meal-details{display:none!important}


/* V15 journal: a date-specific diary and browsable history */
.journal-section{margin:26px 0 36px}.journal-section .section-heading{margin-bottom:15px}
.journal-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:17px;align-items:start}
.journal-writing,.journal-calendar-panel{padding:24px}.journal-day-label{color:#77947b;font-size:11px;letter-spacing:2px;font-weight:800}
.journal-writing h3{margin:8px 0 20px;font:normal 30px Georgia,'Songti SC',serif}
.journal-label{font-size:12px;font-weight:800;color:#324637;display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0 8px}
.journal-label span{font-weight:400;color:#8a958b;font-size:10px}
#journalText,#journalHighlight{display:block;width:100%;border:1px solid #dae2d6;border-radius:13px;background:#fcfdf9;color:#253e2c;padding:13px 14px;resize:vertical;line-height:1.8;font-size:13px}
#journalText{min-height:172px}.journal-saved{display:flex;align-items:center;gap:7px;justify-content:flex-end;text-align:right;font-size:10px;color:#7a8d7c;margin-top:9px}
.journal-done-head{font-size:12px;font-weight:800;margin:22px 0 10px;display:flex;justify-content:space-between;gap:12px}
.journal-done-head span{font-size:11px;font-weight:500;color:var(--sub)}
.journal-completed,.journal-activities{display:flex;flex-direction:column;gap:7px}.journal-completed .journal-done-item{border:1px solid #e4eae0;border-radius:9px;background:#f2f6ef;padding:9px 10px;font-size:11px;line-height:1.6}.journal-completed .journal-done-item:before{content:'✓';color:#739379;margin-right:9px;font-weight:800}.journal-activity{display:flex;gap:10px;align-items:baseline;line-height:1.5;font-size:11px;border-bottom:1px solid #f0f1ea;padding:5px 0}.journal-activity span{color:#809182;min-width:88px;font-variant-numeric:tabular-nums}.journal-empty{font-size:11px;color:#8a988a;font-style:italic;padding:8px 0}
.journal-calendar-header{display:flex;justify-content:space-between;align-items:center;gap:7px}.journal-calendar-header strong{font:normal 23px Georgia,'Songti SC',serif}.journal-calendar-header button{border:1px solid var(--line);background:#fbfcf9;color:var(--ink);border-radius:50%;width:33px;height:33px;cursor:pointer}.journal-calendar-header button:hover{background:#edf2e9}
.journal-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-top:20px}.journal-weekday{font-size:10px;font-weight:800;text-align:center;color:#809382;padding:7px 0}.journal-empty-date{min-height:44px}
.journal-date{width:100%;min-height:48px;border:1px solid transparent;background:#fafbf6;color:#4e6050;border-radius:10px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:12px;font-weight:700;position:relative}.journal-date:hover{background:#edf4e9;border-color:#dae5d5}.journal-date.selected{background:#e6eee2;border-color:#719577;box-shadow:0 0 0 1px #719577}.journal-date.today:not(.selected){outline:1px dashed #9daf9a;outline-offset:-3px}.journal-date .dot{height:5px;width:5px;border-radius:100%;background:#6f9275}.journal-date .dot.hidden{visibility:hidden}
.journal-calendar-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#849384;font-size:10px;margin-top:14px}.journal-calendar-footer i{display:inline-block;width:7px;height:7px;background:#6f9275;border-radius:50%;margin-right:5px}.journal-month-summary{background:#f1f5ee;border:1px solid #e2eadf;border-radius:12px;margin-top:17px;padding:13px 15px;font-size:12px;line-height:1.7;color:#425b45}.journal-month-summary strong{font-size:19px;font-family:Georgia,serif;font-weight:400;margin-right:3px}.journal-month-title{color:#809382;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:1.2px;margin:20px 0 9px}.journal-month-days{display:flex;flex-direction:column;gap:7px;max-height:260px;overflow-y:auto}.journal-month-days button{width:100%;text-align:left;background:#fbfcf8;border:1px solid #e4e9e0;border-radius:9px;padding:10px 12px;font-size:11px;color:#334a37;cursor:pointer}.journal-month-days button:hover{background:#eaf1e7}.journal-month-days button small{color:#879888;display:block;margin-top:3px}
@media(max-width:900px){.journal-grid{grid-template-columns:1fr}}
@media(max-width:620px){.journal-writing,.journal-calendar-panel{padding:17px}.journal-calendar{gap:3px}.journal-date{min-height:40px}.journal-label span{font-size:9px}}

/* V16 visual system: Helvetica everywhere, Sakura Pink + warm ivory */
:root{
  --paper:#F4F2EE;
  --white:#fffdfa;
  --ink:#332b2e;
  --sub:#82777b;
  --line:#ebdadd;
  --green:#FFCDD2;
  --green-light:#fff0f1;
  --orange:#FFCDD2;
  --orange-light:#fff0f1;
  --blue:#FFCDD2;
  --blue-light:#fff0f1;
  --purple:#FFCDD2;
  --purple-light:#fff0f1;
  --shadow:0 7px 25px rgba(82,52,60,.035);
}
html,body,body *,button,input,textarea,select,[contenteditable="true"]{
  font-family:Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif!important;
}
body{background-color:#F4F2EE!important;background-image:linear-gradient(rgba(112,78,88,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(112,78,88,.025) 1px,transparent 1px)!important}
/* Brand and headline */
.brand-mark{background:#FFCDD2!important;transform:rotate(-7deg)}
.brand strong{font-size:20px;letter-spacing:-.4px;font-weight:750}
.hero h1{font-weight:750!important;letter-spacing:-1.6px}
.hero p{letter-spacing:.05px}
.eyebrow,.section-heading .label,.project-label,.journal-day-label{color:#aa6d7c!important}
.top-links a:hover,.ghost-btn:hover,.small-btn:hover,.rail-arrow:hover{background:#fff0f2!important}
.primary-btn,.add-task button,.node-add-confirm{background:#FFCDD2!important;color:#352c30!important;border:1px solid #f4bdc5!important}
.primary-btn:hover,.add-task button:hover{background:#f7b6c1!important}
button:focus-visible,[contenteditable="true"]:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#cf8194!important}
input[type=checkbox],input[type=range]{accent-color:#d78395!important}
/* Core surfaces and accents */
.panel,.project,.timeline-shell,.journal-writing,.journal-calendar-panel,.roadmap-shell{background:#fffdfa!important;border-color:#ebdadd!important}
.topbar,.footer{border-color:#e9dce0!important}
.tag,.tag.orange,.tag.blue,.top-links button,.add-task button,.project-add-top,.substeps-toggle{background:#fff0f2!important;color:#785260!important;border-color:#f0cbd1!important}
.highlight-box,.roadmap-legend span,.rail-card,.journal-month-summary{background:#fff2f4!important;border-color:#f2d7dc!important}
.rail-line:before,.project-stage-track:before,.day-timeline:before{background:#eed1d8!important}
.rail-dot,.node-dot,.line-node .node-dot{border-color:#d88b9d!important}
.line-node.done .node-dot,.unified-project-card .line-node.done .node-dot{background:#FFCDD2!important;border-color:#d88b9d!important}
.unified-project-card .node-dot-toggle:hover .node-dot{box-shadow:0 0 0 4px rgba(255,205,210,.45)!important}
.project-stage-track .drag-target,.unified-project-card .line-node.drag-target{background:#fff0f2!important;outline-color:#e5a0af!important}
.node-grab{color:#b88693!important}
.unified-project-card .line-node:hover .node-grab{background:#fff0f2!important}
.substeps-list,.substeps-toggle,.project-description-disclosure[open] .project-desc{background:#fff8f8!important;border-color:#f0dbe0!important}
.substep-name:focus,[contenteditable="true"]:focus{background:#fff1f3!important;box-shadow:0 0 0 2px rgba(237,169,184,.35)!important}
.substep-row input{accent-color:#d78395!important}
.day-slot.meal .day-pin,.day-pin{background:#FFCDD2!important;border-color:#d9919e!important}
.day-entry:focus,.day-slot-body:hover{background:#fff3f5!important}
.day-time,.day-meal{color:#795e67!important}
.day-meal:hover,.day-meal:focus{background:#fff3f5!important;border-bottom-color:#e4b2be!important}
.top-save-status{color:#855967!important}
/* Archive: diary dates and highlights */
.journal-writing h3{font-weight:700!important;letter-spacing:-.5px}
.journal-calendar-header strong{font-weight:650!important}
.journal-date{background:#faf7f6!important;color:#584c50!important}
.journal-date:hover{background:#fff0f2!important;border-color:#f0cbd3!important}
.journal-date.selected{background:#FFCDD2!important;border-color:#d7899b!important;box-shadow:0 0 0 1px #d7899b!important}
.journal-date.today:not(.selected){outline-color:#d79ca8!important}
.journal-date .dot,.journal-calendar-footer i{background:#d48596!important}
.journal-calendar-header button,.journal-month-days button{background:#fffafa!important;border-color:#ecd9dd!important}
.journal-calendar-header button:hover,.journal-month-days button:hover{background:#fff0f2!important}
.journal-completed .journal-done-item{background:#fff5f6!important;border-color:#f0dce0!important}
.journal-completed .journal-done-item:before{color:#cb8193!important}
.journal-month-summary strong{font-weight:750!important}
#journalText,#journalHighlight{background:#fffafa!important;color:var(--ink)!important;border-color:#ead7db!important}
.journal-calendar-footer,.journal-month-title{color:#81747a!important}
#toast{background:#5d434b!important}


/* V20: compact, scrollable single-row monthly calendar */
#timeline .timeline-heading{align-items:end}
#timeline .calendar-month-name{font-family:Helvetica,Arial,sans-serif;font-size:15px;font-weight:700;color:#343b45;white-space:nowrap;min-width:112px;text-align:center}
#timeline .rail-controls{gap:8px}
#timeline .rail-controls .tiny{margin-right:9px}
#timeline .calendar-shell{background:#fffdfa;border-color:#eedde1;padding:15px 16px 12px;overflow:visible}
#globalTimeline.timeline.calendar-strip{display:flex;flex-flow:row nowrap;gap:8px;margin:0;min-height:151px;padding:3px 1px 12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#ddc4ca transparent;scroll-snap-type:x proximity;cursor:grab;user-select:none;overscroll-behavior-inline:contain}
#globalTimeline.calendar-strip.grabbing{cursor:grabbing;scroll-snap-type:none}
#globalTimeline .calendar-day{position:relative;flex:0 0 118px;min-width:118px;max-width:118px;min-height:135px;border:1px solid #eddee1;border-radius:16px;background:#fbf9f8;display:flex;flex-direction:column;align-items:stretch;padding:10px 9px;gap:8px;scroll-snap-align:start;transition:background .15s,border-color .15s,box-shadow .15s}
#globalTimeline .calendar-day:hover{border-color:#edb8c3;background:#fff8f9}
#globalTimeline .calendar-day.selected{border-color:#cf8397;box-shadow:0 0 0 2px rgba(255,205,210,.45);background:#fff1f3}
#globalTimeline .calendar-day.today .calendar-day-number{background:#FFCDD2;border-radius:9px;padding:1px 7px;margin:-1px -7px}
#globalTimeline .calendar-day-top{display:flex;align-items:center;justify-content:space-between;gap:5px}
#globalTimeline .calendar-day-select{border:0;background:none;color:#3f3940;font-size:20px;line-height:1.15;font-weight:750;display:flex;align-items:center;gap:7px;cursor:pointer;padding:1px 2px;text-align:left}
#globalTimeline .calendar-day-select:focus-visible,#globalTimeline .calendar-event-btn:focus-visible,#globalTimeline .calendar-day-add:focus-visible{outline:2px solid #ca8193;outline-offset:2px}
#globalTimeline .calendar-weekday{font-size:10px;color:#8a8084;white-space:nowrap}
#globalTimeline .calendar-date-dots{display:flex;align-items:center;gap:3px;min-height:7px}
#globalTimeline .calendar-date-dots i{display:block;width:6px;height:6px;border-radius:50%;background:#d58ba0}
#globalTimeline .calendar-date-dots i.diary-dot{background:#687989}
#globalTimeline .calendar-event-list{display:flex;flex-direction:column;gap:4px;flex:1;min-height:50px;align-items:stretch}
#globalTimeline .calendar-event-btn{border:0;border-left:2px solid #d58ba0;border-radius:3px 6px 6px 3px;background:#fff0f2;color:#433941;text-align:left;font-size:10px;font-weight:650;line-height:1.25;padding:6px 6px 6px 7px;cursor:pointer;min-width:0;max-height:46px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
#globalTimeline .calendar-event-btn.done{opacity:.6;text-decoration:line-through}
#globalTimeline .calendar-event-btn:hover{background:#ffe3e8}
#globalTimeline .calendar-overflow{font-size:10px;color:#9b7f88;font-weight:600}
#globalTimeline .calendar-day-add{border:0;background:transparent;color:#c6afb6;font-size:10px;line-height:1;padding:5px;min-height:24px;cursor:pointer;margin-top:auto;border-radius:7px}
#globalTimeline .calendar-day-add:hover{background:#ffe8ed;color:#b76c82}
#timeline .timeline-add-footer{border-top:0;margin-top:2px;padding-top:4px}
#timeline .add-deadline-btn{border-color:#d7bcc5;color:#687989}
@media(max-width:700px){#timeline .calendar-shell{padding:11px 9px 9px}#globalTimeline .calendar-day{flex-basis:105px;min-width:105px;max-width:105px;padding:9px 7px;min-height:126px}#timeline .calendar-month-name{font-size:12px;min-width:90px}#timeline .rail-controls .tiny{display:none}#timeline .rail-controls{gap:4px}#timeline .rail-arrow{width:30px;height:30px}}
@media print{#globalTimeline.timeline.calendar-strip{overflow:visible;flex-wrap:wrap}#globalTimeline .calendar-day{break-inside:avoid}#timeline .calendar-day-add{display:none}}


/* V21: calendar is the page header; redundant introductory hero removed. */
.timeline-section > .section-heading{margin-top:24px}
.hidden-day-controls{display:none!important}

/* V22: broad month diary, lavender-blue accents, Helvetica throughout */
:root{--paper:#F4F2EE;--white:#fffdfa;--green:#687989;--green-light:#C9DCE5;--blue:#687989;--blue-light:#C9DCE5;--line:#dce0e0;--ink:#343B3D;--sub:#687989}
html,body,button,input,textarea,select,[contenteditable],h1,h2,h3,strong{font-family:Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif!important}
body{background-color:#F4F2EE;background-image:linear-gradient(rgba(104,121,137,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(104,121,137,.035) 1px,transparent 1px)}
.container{width:min(1640px,calc(100% - 48px))}
.panel,.project,.timeline-shell,.journal-writing,.journal-calendar-panel{background:#fffefa}
.month-section-heading{margin:22px 0 12px!important}
.month-section-heading h2{font-size:27px!important;letter-spacing:-.6px}
.month-section-heading .label,.eyebrow,.section-heading .label{color:#687989!important}
#timeline .calendar-month-name{font-size:17px;min-width:126px;color:#343B3D}
#timeline .rail-controls{display:flex;align-items:center;gap:7px}
#timeline .rail-arrow{width:37px;height:37px;border-color:#cedce1;background:#f9fcfd;color:#687989}
.calendar-journal-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(245px,1fr);gap:16px;align-items:start}
.month-calendar-panel{padding:17px 16px!important;border:1px solid #dce4e7!important;border-radius:22px;min-width:0}
.calendar-week-head,.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));column-gap:7px;row-gap:7px}
.calendar-week-head{margin-bottom:7px}.calendar-week-head span{text-align:center;color:#687989;font-weight:700;font-size:12px;padding:4px 0}
#globalTimeline.calendar-month-grid{display:grid!important;min-height:auto!important;overflow:visible!important;scroll-snap-type:none!important;cursor:default!important;user-select:auto!important;padding:0!important;gap:7px!important}
.calendar-month-grid .calendar-empty{min-height:100px;border:1px solid transparent}
#globalTimeline .calendar-day{display:flex!important;position:relative;flex:auto!important;min-width:0!important;max-width:none!important;min-height:102px!important;padding:8px 10px!important;gap:5px!important;border:1px solid #e5e4e4;border-radius:14px;background:#f9f8f7;flex-direction:column;cursor:pointer;user-select:none;transition:.15s ease}
#globalTimeline .calendar-day:hover{border-color:#a7c0ce;background:#f5fafc}
#globalTimeline .calendar-day.selected{background:#ecf4f7!important;border:2px solid #95b4c5!important;box-shadow:none!important;padding:7px 9px!important}
#globalTimeline .calendar-day.today{box-shadow:inset 0 0 0 1px #c9a1ac}
#globalTimeline .calendar-day-top{display:flex;justify-content:space-between;align-items:center;gap:2px}
#globalTimeline .calendar-day-number{font-size:20px;font-weight:700;line-height:1.1;color:#343b3d!important;background:transparent!important;margin:0!important;padding:0!important}
#globalTimeline .calendar-weekday{color:#87939b;font-size:10px}
#globalTimeline .calendar-date-dots{min-height:6px;display:flex;gap:4px}
#globalTimeline .calendar-date-dots i{width:6px;height:6px;background:#d88ea2}
#globalTimeline .calendar-date-dots i.diary-dot{background:#687989}
#globalTimeline .calendar-date-dots i.activity-dot{background:#97b5c4}
#globalTimeline .calendar-event-list{display:flex;flex-direction:column;align-items:stretch;gap:3px;flex:0 0 auto;min-height:0}
#globalTimeline .calendar-event-btn{font:600 10px/1.3 Helvetica,Arial,"PingFang SC",sans-serif;color:#435764;background:#edf3f6!important;border-left:3px solid #9dbccc!important;padding:4px 5px;border-radius:5px;max-height:34px;white-space:normal;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word}
#globalTimeline .calendar-event-btn.done{opacity:.62}
#globalTimeline .calendar-overflow{font-size:9px;color:#687989}
.calendar-project-footprint{display:block;font-size:9px;color:#687989;background:#e7f0f4;border-radius:4px;padding:3px 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-top:auto}
.calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;padding:0 3px;flex-wrap:wrap}
.calendar-footer>span{font-size:10px;color:#7f8c94}
.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d88ea2;margin-right:3px;vertical-align:middle}
.legend-dot.activity{background:#97b5c4}
.calendar-footer .add-deadline-btn{border-color:#b0c7d2!important;color:#687989!important;background:#edf5f9!important;font-size:11px;padding:9px 13px}
.month-diary-side{padding:18px!important;display:flex;flex-direction:column;gap:8px;min-width:0;border:1px solid #dce4e7!important;border-radius:22px}
.month-diary-side h3{margin:0;font-size:20px;font-weight:750;letter-spacing:-.4px}
.month-diary-side .journal-day-label{font-size:11px;color:#687989;letter-spacing:.9px}
.month-diary-side #journalText,.month-diary-side #journalHighlight{width:100%;border:1px solid #d7e2e7;background:#fbfcfd;border-radius:12px;padding:11px;font-size:12px;line-height:1.75;resize:vertical;color:#343b3d;box-sizing:border-box}
.month-diary-side #journalText{min-height:210px;flex:1}
.month-diary-side #journalHighlight{min-height:92px}
.month-diary-side .journal-label{font-size:12px;color:#343b3d;font-weight:700;margin-top:5px}
.month-diary-side .journal-saved{font-size:10px;color:#8796a0;text-align:right}
.day-recap-disclosure{border-top:1px solid #e5e9ec;margin-top:3px;padding-top:10px;color:#687989;font-size:11px;line-height:1.6}
.day-recap-disclosure summary{cursor:pointer;font-weight:650;list-style:none}
.day-recap-disclosure summary::-webkit-details-marker{display:none}
.day-recap-disclosure #journalCompleted,.day-recap-disclosure #journalActivities{padding:5px 0}
.day-recap-disclosure #journalCompleted>*,.day-recap-disclosure #journalActivities>*{font-size:11px;color:#687989}
#today{margin-top:23px}
#today .panel, #projects .project{border-color:#dce4e7!important}
.day-pin,.time-dot{border-color:#97b5c4!important}
.day-timeline .day-slot:before{background:#C9DCE5!important}
.rail-dot,.node-dot{border-color:#97b5c4}
.project .node-dot{border-color:#97b5c4!important}.project .line-node.done .node-dot{background:#97b5c4!important}
.project .project-stage-track:before,.project .project-stage-track:after{background:#C9DCE5!important}
.project .substeps-toggle,.project .project-add-top{border-color:#C9DCE5!important;color:#687989!important;background:#f3f8fb!important}
.ghost-btn,.small-btn,.add-task button{border-color:#C9DCE5;color:#687989;background:#edf5f8}
.add-task button:hover,.ghost-btn:hover,.small-btn:hover{background:#C9DCE5}
@media(max-width:1080px){.calendar-journal-layout{grid-template-columns:minmax(0,2.3fr) minmax(230px,1fr)}#globalTimeline .calendar-day{padding:6px 7px!important;min-height:100px!important}#globalTimeline .calendar-day.selected{padding:5px 6px!important}}
@media(max-width:780px){.calendar-journal-layout{grid-template-columns:1fr}.month-diary-side #journalText{min-height:120px}.month-diary-side #journalHighlight{min-height:60px}#globalTimeline .calendar-day{min-height:82px!important;padding:6px 4px!important;border-radius:9px}#globalTimeline .calendar-day.selected{padding:5px 3px!important}#globalTimeline .calendar-day-number{font-size:15px}#globalTimeline .calendar-weekday{display:none}.calendar-week-head,.calendar-month-grid{gap:4px!important}#globalTimeline .calendar-event-btn{font-size:8px!important;padding:3px;max-height:28px}.calendar-project-footprint{font-size:8px}.calendar-month-grid .calendar-empty{min-height:82px}.month-calendar-panel{padding:11px 9px!important}}
@media print{.month-diary-side{break-inside:avoid}.calendar-journal-layout{grid-template-columns:3fr 1fr}.calendar-month-grid .calendar-empty{min-height:75px}}


.historical-project{opacity:.84}
.historical-project .project-add-top,.historical-project .node-dot-toggle,.historical-project .substeps-toggle,.historical-project .node-grab,.historical-project .node-date-edit{pointer-events:none!important;cursor:default!important}
.historical-project [contenteditable]{cursor:default!important}
.historical-caption{font-size:10px;color:#687989;background:#eaf2f5;border-radius:999px;padding:4px 9px;display:inline-flex;width:max-content;align-self:flex-end}


/* V24: remove the old green line beneath each project (scrollbar/progress remnant) */
#projectGrid .project-stage-rail,
#projectGrid .unified-project-card .project-stage-rail {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
#projectGrid .project-stage-rail::-webkit-scrollbar,
#projectGrid .unified-project-card .project-stage-rail::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
#projectGrid .unified-progress-track,
#projectGrid .unified-project-progress,
#projectGrid .progress-track,
#projectGrid .progress-control { display:none !important; }

/* V24: drag the day's appointments up/down without changing their times */
.day-slot-body { padding-right:35px !important; }
.day-drag-handle {
  position:absolute;right:1px;top:0;display:grid;place-items:center;
  width:27px;height:27px;border:0;border-radius:8px;
  background:transparent;color:#687989;font:700 20px/1 Helvetica,Arial,sans-serif;
  cursor:grab;touch-action:none;user-select:none;opacity:.42;
}
.day-slot:hover .day-drag-handle,.day-drag-handle:focus-visible { opacity:1;background:#edf4f7; }
.day-drag-handle:active{ cursor:grabbing; }
.day-slot.is-day-dragging{opacity:.5}
.day-slot.day-drop-target .day-slot-body{background:#eaf3f7!important;box-shadow:inset 0 0 0 2px #aac8d8;border-radius:12px}
@media(hover:none){.day-drag-handle{opacity:.72}}
@media print{.day-drag-handle{display:none!important}}


/* V25: Expand the clicked calendar day into an unclipped, readable card. */
#globalTimeline .calendar-day.expanded-day { z-index: 60; overflow: visible !important; }
#globalTimeline .calendar-day.expanded-day > .calendar-day-top,
#globalTimeline .calendar-day.expanded-day > .calendar-date-dots,
#globalTimeline .calendar-day.expanded-day > .calendar-event-list,
#globalTimeline .calendar-day.expanded-day > .calendar-project-footprint { visibility: hidden; }
#globalTimeline .calendar-expanded-pane {
 position:absolute; top:-5px; left:-5px; width:min(390px, calc(100vw - 42px));
 min-width: min(245px, calc(100vw - 42px)); height:max-content; z-index:61;
 display:flex; flex-direction:column; gap:12px; padding:17px;
 background:#fffdfa; border:2px solid #95b4c5; border-radius:17px;
 box-shadow:0 16px 38px rgba(41,68,82,.20); cursor:default; text-align:left;
 white-space:normal; user-select:text; overflow-wrap:anywhere;
}
#globalTimeline .calendar-expanded-pane .calendar-expanded-header {
 display:flex;justify-content:space-between;align-items:baseline;gap:10px;
 color:#343b3d;font-weight:750;font-size:22px;
}
#globalTimeline .calendar-expanded-pane .calendar-expanded-header small {font-size:12px;color:#687989;font-weight:600;}
#globalTimeline .calendar-expanded-pane .calendar-expanded-dots {display:flex;gap:6px;align-items:center;}
#globalTimeline .calendar-expanded-pane .calendar-expanded-dots i {width:7px;height:7px;background:#d88ea2;border-radius:50%;display:block;}
#globalTimeline .calendar-expanded-pane .calendar-expanded-dots i.diary-dot {background:#687989;}
#globalTimeline .calendar-expanded-pane .calendar-expanded-dots i.activity-dot {background:#97b5c4;}
#globalTimeline .calendar-expanded-pane .calendar-expanded-events {display:flex;flex-direction:column;gap:7px;}
#globalTimeline .calendar-expanded-pane .calendar-event-btn{
 display:block!important;max-height:none!important;height:auto!important;
 overflow:visible!important;-webkit-line-clamp:unset!important;
 white-space:normal!important;line-height:1.55!important;
 font-size:13px!important;padding:10px 12px!important;
 border-left-width:3px!important;word-break:break-word!important;
}
#globalTimeline .calendar-expanded-pane .calendar-expanded-projects {
 display:flex;flex-direction:column;gap:4px;background:#e7f0f4;
 border-radius:9px;padding:10px 11px;color:#435764;font-size:12px;line-height:1.55;
}
#globalTimeline .calendar-expanded-pane .calendar-expanded-projects b {font-size:10px;letter-spacing:1px;color:#687989;}
#globalTimeline .calendar-expanded-pane .calendar-expanded-projects span {overflow-wrap:anywhere;}
#globalTimeline .calendar-expanded-pane .calendar-expanded-empty {font-size:12px;color:#82939e;line-height:1.5;}
@media(max-width:780px){
 #globalTimeline .calendar-expanded-pane {padding:13px;gap:9px;width:min(325px,calc(100vw - 28px));min-width:230px;}
 #globalTimeline .calendar-expanded-pane .calendar-event-btn {font-size:12px!important;padding:9px!important;}
}


/* V26 data continuity: visual releases never reset personal data */
.continuity-dialog{width:min(650px,calc(100vw - 30px));max-width:650px}.continuity-dialog .deadline-form{display:flex;flex-direction:column;gap:10px}.continuity-explain{font-size:13px;line-height:1.8;color:#687989;margin:2px 0 8px}.continuity-choose{align-self:flex-start;background:#edf5f8;color:#34495a;border-color:#C9DCE5;padding:12px 18px}.continuity-subhead{font-size:12px;font-weight:700;color:#687989;margin:6px 0 0}.continuity-paste{display:block;width:100%;border-radius:12px;border:1px solid #d7e2e9;background:#fafbfc;resize:vertical;padding:12px;line-height:1.5;font:12px Helvetica,Arial,sans-serif;min-height:78px}.continuity-preview{background:#f4f7f9;border:1px solid #dce7ed;color:#4c6476;border-radius:12px;padding:11px 13px;font-size:12px;line-height:1.7;min-height:48px}.continuity-preview.ok{background:#eff7f1;border-color:#c5dec8;color:#375741}.continuity-preview.error{background:#fff4f1;border-color:#edd1c8;color:#a65647}.continuity-dialog .primary-btn:disabled{opacity:.5;cursor:not-allowed}


/* V27: one persistent diary, no duplicated UI */
#today .panel-head .section-meta{display:flex;align-items:center;gap:13px}
#today .panel-head .todo-plus-btn{flex-shrink:0;width:39px;height:39px;font-family:Helvetica,Arial,sans-serif;font-weight:400;font-size:25px;border:1.5px solid #C9DCE5;background:#f1f8fb;color:#687989;border-radius:50%}
#today .panel-head .todo-plus-btn:hover{background:#C9DCE5}
.day-slot .day-annotation{display:block;width:100%;min-height:32px;resize:vertical;margin:5px 0 0;padding:6px 7px;border:1px solid transparent;border-bottom:1px dashed #c9dce5;border-radius:5px;background:transparent;color:#687989;font:12px/1.55 Helvetica,Arial,sans-serif}
.day-slot .day-annotation::placeholder{color:#9cabb6;opacity:.8}
.day-slot .day-annotation:focus{outline:none;border-color:#C9DCE5;background:#f3f8fa}
.day-slot:not(:hover) .day-annotation:not(:focus):placeholder-shown{min-height:22px;opacity:.5}
.media-shelf{border-top:1px solid #e9e1e2;margin-top:19px;padding-top:15px}
.media-header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.media-header h4{font:700 14px/1.35 Helvetica,Arial,sans-serif;color:#35383a;margin:0}
.media-plus{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;border:1px solid #C9DCE5;background:#f3f8fb;color:#687989;font:22px/1 Helvetica,Arial,sans-serif;cursor:pointer}
.media-plus:hover{background:#C9DCE5}
.media-new{background:#fbf7f7;border:1px solid #eedde0;border-radius:13px;padding:11px;display:grid;gap:9px;margin-bottom:12px}
.media-new[hidden]{display:none}
.media-new label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#687989}
.media-new input,.media-new select{width:100%;min-width:0;border:1px solid #e7dfe1;border-radius:9px;padding:9px 10px;background:#fff;color:#343b3d;font:13px Helvetica,Arial,sans-serif}
.media-new-actions{display:flex;justify-content:flex-end;gap:8px}
.media-new-actions button{font-size:11px;padding:7px 9px}
.media-items{display:flex;flex-direction:column;gap:9px}
.media-item{padding:11px;border:1px solid #e9dfe2;border-radius:12px;background:#fffaf9;min-width:0}
.media-item-head{display:flex;justify-content:space-between;align-items:center;gap:6px}
.media-item-head strong{font-size:12px;font-weight:700;line-height:1.45;color:#35383a;flex:1;min-width:0;overflow-wrap:anywhere}
.media-item-head .media-type{font-size:10px;white-space:nowrap;background:#edf5f8;color:#687989;border-radius:6px;padding:3px 5px}
.media-delete{border:0;background:transparent;color:#a1a8ae;font-size:18px;cursor:pointer;line-height:1;padding:1px 4px}
.media-progress-head{display:flex;align-items:center;justify-content:space-between;color:#687989;font-size:10px;margin:9px 0 5px}
.media-slider{width:100%;accent-color:#d78ca2;cursor:pointer}
.media-reflection{width:100%;min-height:50px;resize:vertical;border:1px solid #eadfe3;border-radius:9px;padding:8px 9px;background:#fff;color:#3c3c41;font:12px/1.6 Helvetica,Arial,sans-serif;margin-top:7px}
.media-reflection:focus{outline:2px solid #C9DCE5}
.media-empty{font-size:11px;color:#8797a4;padding:5px 0 10px;line-height:1.7}
.vlog-template-hint{background:#f3f8fb;border:1px solid #C9DCE5;border-radius:10px;padding:10px;font-size:11px;line-height:1.6;color:#526f80}
.vlog-template-hint[hidden]{display:none}
@media(max-width:780px){.media-item{padding:10px}.media-shelf{margin-top:13px}}


.calendar-linked-todo{background:#f7fbfd;border-radius:11px;padding-left:9px;padding-right:8px}.calendar-linked-todo .event-tag{background:#edf6fa!important;color:#687989!important;border:1px solid #c9dce5!important}.month-diary-side .journal-label.gratitude-title{display:none}
/* V29: opt-in carry, cleaner chronology. */
.carry-yesterday-btn{background:#eef5f9!important;border-color:#C9DCE5!important;color:#687989!important;padding:8px 12px!important;white-space:nowrap}
.carry-yesterday-btn:hover{background:#C9DCE5!important}
.day-timeline .day-slot{min-width:0}
@media(max-width:680px){.carry-yesterday-btn{font-size:10px!important;padding:7px 9px!important}}


/* V31: two calendar lenses and one source of truth for dated events */
#timeline .rail-controls{flex-wrap:wrap;justify-content:flex-end}
.calendar-view-toggle{display:inline-flex;gap:3px;padding:4px;background:#edf3f6;border:1px solid #c9dce5;border-radius:999px;flex-shrink:0}
.calendar-view-btn{border:0;background:transparent;color:#687989;border-radius:999px;padding:8px 12px;font:600 12px/1.2 Helvetica,Arial,"PingFang SC",sans-serif;white-space:nowrap;cursor:pointer;transition:background .15s,box-shadow .15s}
.calendar-view-btn.active{background:#fffdfa;color:#384c5b;box-shadow:0 1px 5px rgba(62,87,111,.13)}
.calendar-view-btn:hover{background:#fff8fa}
.calendar-view-btn:focus-visible{outline:2px solid #687989;outline-offset:2px}
#globalTimeline .calendar-event-btn{font-family:Helvetica,Arial,"PingFang SC",sans-serif}
#globalTimeline .calendar-media-entry{display:block;background:#fff0f3;border-left:3px solid #d889a0;color:#694551;border-radius:5px;font:600 10px/1.35 Helvetica,Arial,"PingFang SC",sans-serif;padding:5px 6px;max-height:49px;overflow:hidden;word-break:break-word}
#globalTimeline .calendar-date-dots .media-dot{background:#d889a0}
#globalTimeline .calendar-expanded-pane .calendar-media-detail{padding:10px 12px;border-radius:9px;background:#fff0f3;border-left:3px solid #d889a0;font:12px/1.5 Helvetica,Arial,"PingFang SC",sans-serif;color:#513d47}
#globalTimeline .calendar-expanded-pane .calendar-media-detail b{font-size:13px;color:#45313a}
#globalTimeline .calendar-expanded-pane .calendar-media-detail p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;color:#715766}
#globalTimeline .calendar-event-btn:focus-visible{outline:2px solid #687989;outline-offset:2px}
.todo-linked-title{display:block;text-align:left;border:0;background:transparent;color:inherit;font:inherit;padding:0;cursor:pointer;width:100%;line-height:inherit}
.todo-linked-title:hover{text-decoration:underline;text-decoration-color:#a1bbcb;text-underline-offset:3px}
.todo-linked-title:focus-visible{outline:2px solid #93b5c5;outline-offset:4px}
.day-linked-event .day-pin{background:#f5d5df;border-color:#97b7ca}
.day-calendar-event-title{display:block;border:0;background:transparent;padding:0;text-align:left;cursor:pointer;font:650 13px/1.5 Helvetica,Arial,"PingFang SC",sans-serif;color:#314b5e;white-space:normal;overflow-wrap:anywhere;width:100%}
.day-calendar-event-title:hover{text-decoration:underline;text-underline-offset:3px}
.day-calendar-event-title:focus-visible{outline:2px solid #9dbccc;outline-offset:3px;border-radius:4px}
.day-event-time{display:block;padding-top:4px;font-size:12px;font-weight:700;color:#5f7280}
.day-calendar-caption{display:block;margin-top:5px;font:500 10px Helvetica,Arial,"PingFang SC",sans-serif;color:#809caa}
@media(max-width:1000px){#timeline .rail-controls{gap:5px}.calendar-view-btn{padding:7px 9px;font-size:11px}}
@media(max-width:680px){.month-section-heading{align-items:flex-start}.calendar-view-toggle{order:0}.calendar-view-btn{font-size:10px;padding:7px 8px}#timeline .rail-controls{justify-content:flex-start}.day-calendar-event-title{font-size:12px}}


/* V32 Daily Timeline: expressive emoji markers and one note field per row */
#dailyTimeline .day-emoji{position:relative;top:1px;left:-7px;z-index:2;width:38px;height:36px;display:flex;align-items:center;justify-content:center;background:#fffefa;border-radius:99px;font:25px/1.2 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;filter:none;user-select:none}
#dailyTimeline .day-calendar-emoji{font-size:23px;background:#eef5f9}
#dailyTimeline .day-slot{padding-bottom:16px;min-height:68px}
#dailyTimeline .day-slot-body{min-width:0}
#dailyTimeline .day-annotation{margin-top:7px;min-height:31px;padding:5px 2px 6px;line-height:1.6;border-bottom:1px dashed #c9dce5;resize:vertical}
#dailyTimeline .day-annotation::placeholder{color:#9aaeba;opacity:.78}
#dailyTimeline .day-slot.meal .day-slot-body{background:transparent!important}
#dailyTimeline .day-slot.meal .day-slot-body:hover{background:#fff3f5!important}
#dailyTimeline .day-meal,#dailyTimeline .day-meal-toggle,#dailyTimeline .day-meal-details{display:none!important}
@media(max-width:530px){#dailyTimeline .day-emoji{width:31px;height:31px;left:-5px;font-size:21px}}

/* V33: time + emoji + one editable note, no visible text titles. */
#dailyTimeline .day-slot-body .day-annotation {
  margin-top: 0;
  width: 100%;
  min-height: 37px;
  padding: 6px 2px;
}
#dailyTimeline .day-slot {
  min-height: 54px;
  padding-bottom: 12px;
}
#dailyTimeline .day-emoji-edit {
  border: 0;
  padding: 0;
  cursor: pointer;
}
#dailyTimeline .day-emoji-edit:focus-visible {
  outline: 2px solid #93b4c7;
  outline-offset: 2px;
}


/* V34 sticky-note style for Daily Notes + Reading & Watching */
.month-diary-side{border-radius:0 !important; background:#fffdfd !important; box-shadow:0 8px 24px rgba(52,59,61,.06) !important;}
.month-diary-side #journalText,
.month-diary-side #journalHighlight,
.month-diary-side .media-item,
.month-diary-side .media-empty,
.month-diary-side .media-new,
.month-diary-side .day-recap-disclosure,
.month-diary-side .historical-caption{
  border-radius:0 !important;
}
.month-diary-side #journalText,
.month-diary-side #journalHighlight{
  background:#FFCDD2 !important;
  border:1px solid #efb5be !important;
  box-shadow:6px 6px 0 rgba(255,205,210,.33) !important;
  padding:16px 18px !important;
}
.month-diary-side .media-item{
  background:#FFCDD2 !important;
  border:1px solid #efb5be !important;
  box-shadow:6px 6px 0 rgba(255,205,210,.33) !important;
  padding:15px !important;
}
.month-diary-side .media-empty{
  background:#FFCDD2 !important;
  border:1px solid #efb5be !important;
  box-shadow:6px 6px 0 rgba(255,205,210,.25) !important;
  padding:16px !important;
  color:#6f5760 !important;
}
.month-diary-side .media-new{
  background:#ffe3e7 !important;
  border:1px solid #efb5be !important;
  box-shadow:6px 6px 0 rgba(255,205,210,.25) !important;
  padding:14px !important;
}
.month-diary-side .journal-label,
.month-diary-side .media-header h4{
  letter-spacing:-.02em;
}
.month-diary-side .media-header{
  border-top:1px solid #efb5be;
  padding-top:18px;
  margin-top:12px;
}
.month-diary-side .media-plus{
  border-radius:0 !important;
  background:#FFCDD2 !important;
  border:1px solid #efb5be !important;
  box-shadow:4px 4px 0 rgba(255,205,210,.30) !important;
}
.month-diary-side .media-plus:hover{background:#ffc4cc !important;}
.month-diary-side .media-item-head .media-type{
  border-radius:0 !important;
  background:#fff4f6 !important;
  border:1px solid #efb5be;
  color:#6c6879 !important;
}
.month-diary-side .media-reflection{
  border-radius:0 !important;
  background:#fffafb !important;
  border:1px solid #efb5be !important;
}
.month-diary-side .media-slider{accent-color:#d78ca2;}


/* V35 full-site square pink sticky-note theme */
:root{
  --radius:0px !important;
  --white:#fff8f9 !important;
  --line:#efb5be !important;
  --pink-note:#FFCDD2;
  --pink-soft:#ffecef;
  --pink-shadow:rgba(255,205,210,.34);
}
button,input,select,textarea,
.panel,.calendar-shell,.calendar-day,.expanded-day,.calendar-expanded-pane,
.daybox,.month-diary-side,.daily-timeline-panel,.todo-panel,.today-panel,
.journal-calendar-panel,.journal-section,.journal-writing,.journal-activity,
.media-item,.media-empty,.media-new,.meal-card,.editor-dialog,.deadline-dialog,
.continuity-dialog,.calendar-view-toggle,.calendar-view-btn,.ghost-btn,.primary-btn,
.small-btn,.add-deadline-btn,.add-unified-node,.carry-yesterday-btn,
.calendar-linked-todo,.calendar-expanded-events,.calendar-expanded-projects,
.todo-row,.todo-log-preview,.day-slot-body,.journal-empty,.day-recap-disclosure,
.historical-caption,.calendar-event-btn,.tag,.macro-chip,.event-tag{
  border-radius:0 !important;
}
.panel,.calendar-shell,.month-diary-side,.daily-timeline-panel,.today-panel,
.journal-calendar-panel,.editor-dialog,.deadline-dialog,.continuity-dialog{
  background:#fffdfd !important;
  border:1px solid #efb5be !important;
  box-shadow:8px 8px 0 var(--pink-shadow) !important;
}
.calendar-day,.expanded-day,.daybox,.journal-empty,.calendar-expanded-pane,
.calendar-expanded-events,.calendar-expanded-projects,.calendar-linked-todo,
.media-item,.media-empty,.media-new,.meal-card,.todo-row,.day-slot-body,
.day-recap-disclosure,.historical-caption,.todo-log-preview{
  background:var(--pink-soft) !important;
  border:1px solid #efb5be !important;
  box-shadow:6px 6px 0 rgba(255,205,210,.25) !important;
}
button,.ghost-btn,.primary-btn,.small-btn,.add-deadline-btn,.add-unified-node,
.carry-yesterday-btn,.calendar-view-btn,.calendar-view-toggle,.media-plus{
  background:var(--pink-soft) !important;
  border:1px solid #efb5be !important;
  box-shadow:4px 4px 0 rgba(255,205,210,.22) !important;
  color:#5f6677 !important;
}
button:hover,.ghost-btn:hover,.primary-btn:hover,.small-btn:hover,
.add-deadline-btn:hover,.add-unified-node:hover,.carry-yesterday-btn:hover,
.calendar-view-btn:hover,.calendar-view-toggle:hover,.media-plus:hover{
  background:#ffdfe5 !important;
}
input,select,textarea,.meal-input,.meal-detail-input,.editor-field input,.editor-field textarea,.editor-field select{
  background:#FFCDD2 !important;
  border:1px solid #efb5be !important;
  box-shadow:6px 6px 0 rgba(255,205,210,.20) !important;
  color:#5f4c53 !important;
}
textarea::placeholder,input::placeholder{color:#856d76 !important;opacity:.88}
.calendar-day.selected,.calendar-day.active,.expanded-day,.calendar-day-select,.calendar-day:has(.calendar-expanded-pane){
  border-color:#de95a7 !important;
  box-shadow:6px 6px 0 rgba(255,205,210,.35) !important;
}
.tag,.macro-chip,.event-tag,.media-item-head .media-type{
  background:#fff6f8 !important;
  border:1px solid #efb5be !important;
  color:#7d5965 !important;
}
.month-diary-side .media-header{border-top:1px solid #efb5be !important}
.month-diary-side .media-reflection,.media-reflection{
  background:#fffafb !important;
  border:1px solid #efb5be !important;
  border-radius:0 !important;
}
.todo-row.complete,.journal-completed,.done{
  background:#ffe5ea !important;
}
/* make little circular icon buttons square too */
.brand-mark,.media-plus,.calendar-day-add,.rail-arrow,.delete-btn,.day-slot-delete{
  border-radius:0 !important;
}


/* V36 pure solid pink surfaces */
:root{ --pink-note:#FFCDD2 !important; }
body,
.page-shell,
.panel,.calendar-shell,.month-diary-side,.daily-timeline-panel,.today-panel,
.journal-calendar-panel,.journal-section,.journal-writing,.journal-activity,
.editor-dialog,.deadline-dialog,.continuity-dialog,
.calendar-day,.expanded-day,.daybox,.journal-empty,.calendar-expanded-pane,
.calendar-expanded-events,.calendar-expanded-projects,.calendar-linked-todo,
.media-item,.media-empty,.media-new,.meal-card,.todo-row,.day-slot-body,
.day-recap-disclosure,.historical-caption,.todo-log-preview,
button,.ghost-btn,.primary-btn,.small-btn,.add-deadline-btn,.add-unified-node,
.carry-yesterday-btn,.calendar-view-btn,.calendar-view-toggle,.media-plus,
input,select,textarea,.meal-input,.meal-detail-input,.editor-field input,
.editor-field textarea,.editor-field select,.month-diary-side .media-reflection,.media-reflection,
.tag,.macro-chip,.event-tag,.media-item-head .media-type{
  background:#FFCDD2 !important;
}


/* V37: Daily Timeline becomes one clean solid pink note area */
#food.daily-timeline-panel,
#food.panel{
  background:#FFCDD2 !important;
  border-color:#efb5be !important;
  box-shadow:none !important;
}
#food .panel-head,
#food .panel-head > div,
#food .day-timeline,
#food .day-slot,
#food .day-slot-body{
  background:transparent !important;
}
#food .small-btn,
#food #addDailySlot{
  background:#FFCDD2 !important;
  border:1px solid #efb5be !important;
  color:#687989 !important;
  box-shadow:none !important;
}
#food .small-btn:hover,
#food #addDailySlot:hover{
  background:#ffd1d6 !important;
}
#dailyTimeline.day-timeline:before{
  background:#e7aebb !important;
}
#dailyTimeline .day-slot{
  min-height:60px;
  padding-bottom:14px;
}
#dailyTimeline .day-time{
  background:transparent !important;
  border:0 !important;
  color:#8e6673 !important;
  min-height:0 !important;
  padding:3px 0 !important;
  font:700 12px/1.4 Helvetica,Arial,sans-serif !important;
}
#dailyTimeline .day-time:focus,
#dailyTimeline .day-time:hover{
  border:0 !important;
}
#dailyTimeline .day-emoji,
#dailyTimeline .day-calendar-emoji{
  background:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
#dailyTimeline .day-slot-body{
  padding:0 !important;
}
#dailyTimeline .day-slot-body:hover,
#dailyTimeline .day-slot.meal .day-slot-body:hover{
  background:transparent !important;
}
#dailyTimeline .day-annotation{
  width:100% !important;
  margin:0 !important;
  padding:2px 0 6px !important;
  min-height:28px !important;
  background:transparent !important;
  border:0 !important;
  border-bottom:1px dashed #e6a8b5 !important;
  border-radius:0 !important;
  color:#6f5760 !important;
  box-shadow:none !important;
  resize:vertical;
}
#dailyTimeline .day-annotation::placeholder{
  color:#b18490 !important;
  opacity:1 !important;
}
#dailyTimeline .day-annotation:focus{
  outline:none !important;
  background:transparent !important;
  border:0 !important;
  border-bottom:1px dashed #c97f92 !important;
}


/* V38 - WHITE CANVAS / SQUARE STICKY NOTES
   Visual layer only. All V27+ data keys and functions remain unchanged. */
:root{
  --paper:#FFFFFF !important;
  --white:#FFCDD2 !important;
  --radius:0px !important;
  --pink-note:#FFCDD2;
  --ink:#343B3D;
  --line:#DEA2AF;
}
html,body{
  background:#FFFFFF !important;
  background-color:#FFFFFF !important;
  background-image:none !important;
}
body{color:#343B3D !important;}
.container{background:transparent !important;}
.month-journal-section,#timeline,#today,#projects,.calendar-journal-layout,
.project-roadmap-grid,.project-grid,.sidebar-stack{
  background:transparent !important;
}
/* The pink paper is the SECTION, not each nested control. */
.calendar-journal-layout,
#today,
#projectGrid.project-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  align-items:start !important;
  gap:28px !important;
}
#today{margin-top:34px !important;}
#projects > .section-heading{margin-top:39px !important;}
#today .sidebar-stack{min-width:0;width:100%;}
.month-calendar-panel,
.month-diary-side,
#today > .panel,
#food.daily-timeline-panel,
#projects .unified-project-card{
  width:100% !important;
  min-width:0 !important;
  min-height:0 !important;
  max-width:100% !important;
  aspect-ratio:1 / 1 !important;
  height:auto !important;
  background:#FFCDD2 !important;
  background-color:#FFCDD2 !important;
  border:0 !important;
  border-radius:0 !important;
  padding:24px !important;
  box-shadow:9px 9px 0 rgba(228,154,170,.22) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#c98195 transparent;
}
/* The month calendar stays wide inside the square; swipe sideways for other weekdays. */
#timeline .month-calendar-panel{
  overflow-x:auto !important;
  overflow-y:auto !important;
  position:relative;
}
#timeline .month-calendar-panel > .calendar-week-head,
#timeline .month-calendar-panel > #globalTimeline.calendar-month-grid{
  min-width:860px !important;
  width:860px !important;
  max-width:none !important;
}
#timeline .month-calendar-panel > .calendar-footer{
  min-width:860px !important;
  width:860px !important;
  max-width:none !important;
}
/* Calendar day cells stay readable but do not become separate coloured tiles. */
#globalTimeline .calendar-day,
#globalTimeline .calendar-day:hover,
#globalTimeline .calendar-day.selected,
#globalTimeline .calendar-day.today{
  background:transparent !important;
  background-color:transparent !important;
  border:1px solid rgba(124,69,82,.23) !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:8px 10px !important;
}
#globalTimeline .calendar-day.selected{
  outline:2px solid #A76C7D !important;
  outline-offset:-2px;
}
#globalTimeline .calendar-event-btn,
#globalTimeline .calendar-media-entry,
#globalTimeline .calendar-project-footprint,
#globalTimeline .calendar-expanded-projects,
#globalTimeline .calendar-expanded-pane,
#globalTimeline .calendar-expanded-pane .calendar-media-detail{
  background:#FFCDD2 !important;
  background-color:#FFCDD2 !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
#globalTimeline .calendar-expanded-pane{border:1px solid #ac7080 !important;}
#globalTimeline .calendar-weekday{color:#785862 !important;}
/* Daily Notes: the whole note is pink; text fields are directly on it. */
#journal.month-diary-side{
  display:flex !important;
  flex-direction:column;
  gap:10px;
}
#journal #journalText{
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  border-bottom:1px solid rgba(117,68,81,.35) !important;
  box-shadow:none !important;
  padding:10px 3px !important;
  border-radius:0 !important;
  min-height:160px !important;
  flex:0 0 180px !important;
  resize:vertical;
  color:#553D44 !important;
}
#journal .media-shelf{
  margin-top:16px;
  padding-top:14px;
  border-color:#D79DA9 !important;
  background:transparent !important;
}
#journal .media-item,#journal .media-empty,#journal .media-new,
#journal .media-reflection,#journal .day-recap-disclosure,
#journal .historical-caption{
  background:transparent !important;
  background-color:transparent !important;
  border-radius:0 !important;
  box-shadow:none !important;
}
#journal .media-item{
  border:0 !important;
  border-top:1px solid rgba(117,68,81,.28) !important;
  padding:12px 0 !important;
}
#journal .media-empty{border:0 !important;padding:8px 0 !important;}
#journal .media-new{border:1px solid #D79DA9 !important;}
#journal .media-reflection{border:0 !important;border-bottom:1px dashed #bd8b9b !important;}
/* Todo and routine: normal vertical scrolling inside a square, no nested tinted cards. */
#today > .panel .panel-head,
#food .panel-head,
#projects .unified-project-header{
  position:sticky;
  top:-24px;
  background:#FFCDD2 !important;
  z-index:6;
  padding:5px 0 13px !important;
}
#today .todo-row,#today .calendar-linked-todo,
#today .tag,#today .todo-log-preview,
#food .day-slot,#food .day-slot-body,
#food .day-slot.meal .day-slot-body,
#food .day-slot.meal .day-slot-body:hover{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
#today .todo-row{
  border:0 !important;
  border-bottom:1px solid rgba(123,80,90,.22) !important;
  padding:13px 2px !important;
}
#today .tag{
  border:1px solid rgba(123,80,90,.30) !important;
  color:#765963 !important;
}
#food .day-timeline,#food .day-slot{
  background:transparent !important;
  box-shadow:none !important;
}
#food #dailyTimeline .day-time,
#food #dailyTimeline .day-emoji,
#food #dailyTimeline .day-slot-body,
#food #dailyTimeline .day-annotation{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
#food #dailyTimeline .day-annotation{border:0 !important;border-bottom:1px dashed #DFA4B0 !important;}
#food #dailyTimeline .day-annotation:focus{border-bottom:1px solid #B67489 !important;}
/* Project progress remains one horizontal timeline in each square. */
#projectGrid .unified-project-card{
  display:block !important;
}
#projectGrid .unified-project-card .one-project-rail-col{
  min-width:0 !important;
  width:100% !important;
  overflow:visible !important;
}
#projectGrid .unified-project-card .project-stage-rail{
  width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  scrollbar-width:thin;
  scrollbar-color:#C98195 transparent;
  overscroll-behavior-inline:contain;
}
#projectGrid .unified-project-card .project-stage-track{
  width:max-content;
  min-width:100%;
}
#projectGrid .unified-project-card .substeps-list,
#projectGrid .unified-project-card .historical-caption,
#projectGrid .unified-project-card .node-above,
#projectGrid .unified-project-card .project-icon,
#projectGrid .unified-project-card .node-grab{
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
/* Square corners for visible interactive controls without changing the data model. */
.panel button,.project button,.month-diary-side button,
.panel input:not([type=checkbox]):not([type=range]),
.panel textarea,.panel select,
.project input:not([type=checkbox]):not([type=range]),
.project textarea,.project select,
.topbar button,.topbar a,
.calendar-view-toggle,.calendar-view-btn,.rail-arrow,
#addProject,.project-add-top,
#today .todo-plus-btn,
#food #addDailySlot,
#journal .media-plus{
  border-radius:0 !important;
  box-shadow:none !important;
}
.panel button,.project button,#addProject,.topbar button,.topbar a{
  background:transparent !important;
  background-color:transparent !important;
  border-color:rgba(131,78,93,.35) !important;
  color:#57414A !important;
}
.panel button:hover,.project button:hover,#addProject:hover,.topbar button:hover{
  background:rgba(255,255,255,.12) !important;
}
.panel input:not([type=checkbox]):not([type=range]),.panel textarea,.panel select,
.project input:not([type=checkbox]):not([type=range]),.project textarea,.project select{
  background:transparent !important;
  background-color:transparent !important;
  color:#553D44 !important;
  box-shadow:none !important;
}
/* Keep keyboard users aware of editable fields. */
.panel textarea:focus-visible,
.panel input:focus-visible,
.panel button:focus-visible,
.project [contenteditable="true"]:focus-visible{
  outline:1.5px solid #A35F75 !important;
  outline-offset:1px;
}
/* Calendar header stays on WHITE background; pink is only the sticky notes. */
#timeline .section-heading,.section-heading,.month-section-heading,
.topbar,.footer{background:#FFFFFF !important;}
/* Responsive: still square, stack one per row at narrow widths. */
@media(max-width:850px){
  .calendar-journal-layout,#today,#projectGrid.project-grid{
    grid-template-columns:minmax(0,1fr) !important;
    gap:22px !important;
  }
  .month-calendar-panel,.month-diary-side,
  #today > .panel,#food.daily-timeline-panel,#projects .unified-project-card{
    width:min(100%,660px) !important;
    justify-self:center;
  }
}
@media(max-width:530px){
  .month-calendar-panel,.month-diary-side,
  #today > .panel,#food.daily-timeline-panel,#projects .unified-project-card{
    padding:15px !important;
    box-shadow:6px 6px 0 rgba(228,154,170,.20) !important;
  }
  #today > .panel .panel-head,#food .panel-head,
  #projects .unified-project-header{top:-15px;padding:5px 0 9px !important;}
  #timeline .month-calendar-panel > .calendar-week-head,
  #timeline .month-calendar-panel > #globalTimeline.calendar-month-grid,
  #timeline .month-calendar-panel > .calendar-footer{
    min-width:790px !important;
    width:790px !important;
  }
}
/* Print full content, rather than cropping a square on paper. */
@media print{
  body{background:#FFFFFF !important;}
  .month-calendar-panel,.month-diary-side,#today > .panel,
  #food.daily-timeline-panel,#projects .unified-project-card{
    aspect-ratio:auto !important;
    height:auto !important;
    overflow:visible !important;
    box-shadow:none !important;
    break-inside:avoid;
  }
  .calendar-journal-layout,#today,#projectGrid.project-grid{grid-template-columns:1fr !important;}
}


/* V38 final polish: no secondary white cards inside project sticky notes. */
#projectGrid .unified-project-card .project-stage-rail,
#projectGrid .unified-project-card .project-stage-track,
#projectGrid .unified-project-card .line-node,
#projectGrid .unified-project-card .node-above,
#projectGrid .unified-project-card .node-subsection,
#projectGrid .unified-project-card .substeps-list,
#projectGrid .unified-project-card .substeps-toggle,
#projectGrid .unified-project-card .node-dot-toggle,
#projectGrid .unified-project-card .historical-caption{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
}
#projectGrid .unified-project-card .substeps-list{border-color:rgba(115,74,86,.32) !important;}
#projectGrid .unified-project-card .line-node:hover,
#projectGrid .unified-project-card .node-grab:hover{background:transparent !important;}


/* V39: full seven-day calendar, wrapped project stages, perfectly flat pink squares.
   Presentation layer only: the data schema and handlers are unchanged. */
html, body{background:#FFFFFF!important;background-image:none!important;}
:root{--paper:#FFFFFF!important;--pink-note:#FFCDD2!important;--radius:0px!important;--shadow:none!important;}
/* No second-paper/drop-shadow effect anywhere. */
*,*::before,*::after{box-shadow:none!important;}
.month-calendar-panel,.month-diary-side,
#today > .panel,#food.daily-timeline-panel,
#projects .unified-project-card{
  background:#FFCDD2!important;
  background-color:#FFCDD2!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  aspect-ratio:1 / 1!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain;
}
/* Calendar: 7 days / week always fit the inner width of the square. */
#timeline .month-calendar-panel{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin;
}
#timeline .month-calendar-panel > .calendar-week-head,
#timeline .month-calendar-panel > #globalTimeline.calendar-month-grid,
#timeline .month-calendar-panel > .calendar-footer{
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
#timeline .month-calendar-panel > .calendar-week-head{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:4px!important;
  position:sticky;
  top:-24px;
  background:#FFCDD2!important;
  z-index:7;
  padding:6px 0 10px;
}
#timeline .month-calendar-panel > #globalTimeline.calendar-month-grid{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:5px!important;
  overflow:visible!important;
}
#globalTimeline .calendar-day,
#globalTimeline .calendar-day.selected,
#globalTimeline .calendar-day.today{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  min-height:76px!important;
  border:1px solid rgba(124,69,82,.22)!important;
  padding:5px 4px!important;
  gap:3px!important;
  background:transparent!important;
  border-radius:0!important;
}
#globalTimeline .calendar-day-number{font-size:clamp(11px,1.08vw,17px)!important;}
#globalTimeline .calendar-weekday{display:none!important;}
#globalTimeline .calendar-date-dots{min-height:4px;margin:0!important;}
#globalTimeline .calendar-day-top{gap:0!important;}
#globalTimeline .calendar-event-btn,
#globalTimeline .calendar-media-entry,
#globalTimeline .calendar-project-footprint{
  font-size:9px!important;
  line-height:1.3!important;
  padding:2px 2px!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
#globalTimeline .calendar-project-footprint{
  max-height:24px;
  overflow:hidden!important;
  white-space:normal!important;
}
#timeline .month-calendar-panel > .calendar-footer{margin-top:12px!important;}
/* Projects: wrapping grid; multi-row stages inside the same fixed square. */
#projectGrid .unified-project-card,
#projectGrid .unified-project-card .one-project-rail-col{
  min-width:0!important;
}
#projectGrid .unified-project-card .project-stage-rail{
  overflow-x:hidden!important;
  overflow-y:visible!important;
  min-width:0!important;
  width:100%!important;
  padding:6px 0 12px!important;
  scrollbar-width:none;
  cursor:default!important;
}
#projectGrid .unified-project-card .project-stage-track{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(130px,100%),1fr))!important;
  gap:15px 5px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  padding:0!important;
  align-items:start!important;
}
#projectGrid .unified-project-card .project-stage-track::before{
  content:none!important;
  display:none!important;
}
#projectGrid .unified-project-card .line-node{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  flex:none!important;
  height:auto!important;
  min-height:124px!important;
  padding:0 3px!important;
  align-items:center!important;
  position:relative;
}
#projectGrid .unified-project-card .line-node::before{
  content:'';
  display:block!important;
  position:absolute;
  height:2px;
  background:#b6a5aa;
  top:90px;
  left:-4px;
  right:-4px;
  z-index:0;
}
#projectGrid .unified-project-card .line-node .node-above{
  min-width:0!important;
  max-width:100%!important;
  height:80px!important;
  flex:0 0 80px!important;
}
#projectGrid .unified-project-card .line-node .node-name{
  width:100%!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
#projectGrid .unified-project-card .node-subsection{
  min-width:0!important;
  max-width:100%!important;
}
#projectGrid .unified-project-card .substeps-list{
  min-width:0!important;
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}
@media(max-width:530px){
  #timeline .month-calendar-panel > .calendar-week-head{top:-15px;gap:2px!important;}
  #timeline .month-calendar-panel > #globalTimeline.calendar-month-grid{gap:3px!important;}
  #globalTimeline .calendar-day,#globalTimeline .calendar-day.selected,#globalTimeline .calendar-day.today{
    min-height:60px!important;
    padding:4px 2px!important;
  }
  #globalTimeline .calendar-day-number{font-size:11px!important;}
  #globalTimeline .calendar-event-btn,#globalTimeline .calendar-media-entry,
  #globalTimeline .calendar-project-footprint{font-size:7px!important;}
  #projectGrid .unified-project-card .project-stage-track{
    grid-template-columns:repeat(auto-fit,minmax(min(112px,100%),1fr))!important;
    column-gap:3px!important;
  }
}
@media print{
  .month-calendar-panel,.month-diary-side,#today > .panel,#food.daily-timeline-panel,
  #projects .unified-project-card{aspect-ratio:auto!important;overflow:visible!important;}
}


/* V40: calendar navigation is typography, not pink boxes. */
#timeline .section-heading .rail-controls .calendar-view-toggle{
  display:inline-flex !important;
  align-items:center !important;
  gap:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}
#timeline .section-heading .rail-controls .calendar-view-btn,
#timeline .section-heading .rail-controls .rail-arrow{
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline-offset:3px;
  color:#687989 !important;
  transition:color .15s ease !important;
}
#timeline .section-heading .rail-controls .calendar-view-btn{
  padding:6px 3px !important;
  font:500 14px/1.3 Helvetica,Arial,sans-serif !important;
  letter-spacing:0 !important;
}
#timeline .section-heading .rail-controls .calendar-view-btn.active{
  font-weight:750 !important;
  color:#343B3D !important;
}
#timeline .section-heading .rail-controls .calendar-view-btn:hover,
#timeline .section-heading .rail-controls .rail-arrow:hover{
  background:transparent !important;
  background-color:transparent !important;
  color:#343B3D !important;
  transform:none !important;
}
#timeline .section-heading .rail-controls .calendar-view-separator{
  display:inline-block;
  padding:0 9px;
  font:400 14px/1 Helvetica,Arial,sans-serif;
  color:#a0a9af;
  pointer-events:none;
}
#timeline .section-heading .rail-controls .rail-arrow{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  height:auto !important;
  min-width:28px !important;
  padding:3px 6px !important;
  font:400 23px/1 Helvetica,Arial,sans-serif !important;
}
#timeline .section-heading .rail-controls #nextEventCount,
#timeline .section-heading .rail-controls #calendarMonthTitle{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
@media(max-width:680px){
  #timeline .section-heading .rail-controls .calendar-view-btn{font-size:12px !important;}
  #timeline .section-heading .rail-controls .calendar-view-separator{padding:0 5px;}
  #timeline .section-heading .rail-controls .rail-arrow{font-size:20px !important;min-width:22px !important;padding:2px 4px !important;}
}


/* V41: one calendar navigation, inside the pink sticky, no duplicated header. */
#timeline.month-journal-section{margin-top:24px!important;}
#timeline .calendar-sticky-nav{
  width:100%;display:block;position:relative;
  padding:0 0 15px;margin:0 0 8px;
  background:#FFCDD2!important;border:0!important;
}
#timeline .month-calendar-panel .calendar-sticky-nav .rail-controls{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  flex-wrap:wrap!important;gap:9px 14px!important;
  width:100%;margin:0!important;background:transparent!important;
}
#timeline .calendar-sticky-nav .calendar-view-toggle{
  display:inline-flex!important;gap:0!important;align-items:center!important;
  background:transparent!important;border:0!important;padding:0!important;
  border-radius:0!important;box-shadow:none!important;
}
#timeline .calendar-sticky-nav .calendar-view-btn,
#timeline .calendar-sticky-nav .rail-arrow{
  background:transparent!important;border:0!important;border-radius:0!important;
  color:#6F6070!important;box-shadow:none!important;
  padding:3px 4px!important;outline-offset:2px!important;
}
#timeline .calendar-sticky-nav .calendar-view-btn{
  font:500 13px/1.3 Helvetica,Arial,sans-serif!important;
  white-space:nowrap!important;
}
#timeline .calendar-sticky-nav .calendar-view-btn.active{
  color:#343B3D!important;font-weight:750!important;
}
#timeline .calendar-sticky-nav .calendar-view-btn:hover,
#timeline .calendar-sticky-nav .rail-arrow:hover{
  background:transparent!important;color:#343B3D!important;
}
#timeline .calendar-sticky-nav .calendar-view-separator{
  margin:0 3px;color:#98717D;font-size:13px;
}
#timeline .calendar-sticky-nav .calendar-month-nav{
  display:inline-flex;gap:8px;align-items:center;white-space:nowrap;
  margin-left:auto;
}
#timeline .calendar-sticky-nav #nextEventCount{
  font-size:10px;color:#805f6c!important;white-space:nowrap;
}
#timeline .calendar-sticky-nav .calendar-month-nav .rail-arrow{
  display:inline-grid!important;place-items:center!important;
  width:27px!important;min-width:27px!important;height:27px!important;
  font:400 21px/1 Helvetica,Arial,sans-serif!important;
}
#timeline .calendar-sticky-nav #calendarMonthTitle{
  min-width:0!important;font:700 14px/1.3 Helvetica,Arial,sans-serif!important;
  color:#343B3D!important;text-align:center;
}
/* Seven columns remain visible in the square; one bottom rule per day. */
#globalTimeline .calendar-day,
#globalTimeline .calendar-day:hover,
#globalTimeline .calendar-day.selected,
#globalTimeline .calendar-day.today,
#globalTimeline .calendar-day.expanded-day{
  border:0!important;
  border-bottom:1px solid rgba(113,64,79,.4)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
}
#globalTimeline .calendar-day.selected,
#globalTimeline .calendar-day.expanded-day{
  border-bottom:2px solid #A46277!important;
}
#globalTimeline .calendar-day:focus-visible{
  outline:0!important;border-bottom:3px solid #7B4659!important;
}
#globalTimeline .calendar-event-btn,
#globalTimeline .calendar-media-entry{
  border:0!important;border-radius:0!important;
  border-left:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#globalTimeline .calendar-project-footprint{
  border:0!important;background:transparent!important;box-shadow:none!important;
}
@media(max-width:700px){
  #timeline .calendar-sticky-nav .calendar-month-nav{margin-left:0!important;}
  #timeline .calendar-sticky-nav .rail-controls{gap:5px 8px!important;}
  #timeline .calendar-sticky-nav .calendar-view-btn{font-size:11px!important;}
  #timeline .calendar-sticky-nav #calendarMonthTitle{font-size:12px!important;}
  #timeline .calendar-sticky-nav #nextEventCount{display:none!important;}
}


/* V42: Keep the actual calendar date cells framed. Only non-calendar content
   becomes minimal text and a single underline. The square pink paper stays. */
#globalTimeline .calendar-day,
#globalTimeline .calendar-day:hover,
#globalTimeline .calendar-day.selected,
#globalTimeline .calendar-day.today,
#globalTimeline .calendar-day.expanded-day {
  border:1px solid rgba(117,73,87,.32)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#globalTimeline .calendar-day.selected,
#globalTimeline .calendar-day.expanded-day {
  border:2px solid #a9637a!important;
}
#globalTimeline .calendar-day:focus-visible {
  outline:2px solid #844c61!important;
  outline-offset:-2px!important;
}
/* Calendar event chips are text with a restrained left accent inside each framed date. */
#globalTimeline .calendar-event-btn,
#globalTimeline .calendar-media-entry {
  background:transparent!important;
  border:0!important;
  border-left:2px solid #89aabd!important;
  border-radius:0!important;
  box-shadow:none!important;
}
#globalTimeline .calendar-project-footprint{
  background:transparent!important;border:0!important;box-shadow:none!important;
}
/* Other panels are single pink square sheets, not subdivided into outlined tiles. */
#today .todo-row,
#today .calendar-linked-todo,
#today .todo-log-preview,
#food .day-slot,
#food .day-slot-body,
#projectGrid .unified-project-card .line-node,
#projectGrid .unified-project-card .node-above,
#projectGrid .unified-project-card .node-grab,
#projectGrid .unified-project-card .node-subsection,
#projectGrid .unified-project-card .substeps-list{
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
#today .todo-row,
#today .calendar-linked-todo{
  border:0!important;
  border-bottom:1px solid rgba(117,73,87,.35)!important;
}
#today .tag,
#today .event-tag,
#today .todo-log-preview,
#projectGrid .unified-project-card .substeps-toggle,
#projectGrid .unified-project-card .node-date-edit,
#projectGrid .unified-project-card .substep-add,
#projectGrid .unified-project-card .project-add-top,
#projectGrid .unified-project-card .add-unified-node,
#projectGrid .unified-project-card .node-name,
#projectGrid .unified-project-card .substep-name,
#today .carry-yesterday-btn,
#today .todo-plus-btn,
#food #addDailySlot,
#food .day-annotation,
.month-diary-side #journalText,
.month-diary-side .media-reflection {
  background:transparent!important;
  box-shadow:none!important;
  border:0!important;
  border-bottom:1px solid rgba(117,73,87,.4)!important;
  border-radius:0!important;
}
#projectGrid .unified-project-card .substeps-list{
  border:0!important;
  border-top:1px solid rgba(117,73,87,.23)!important;
  border-bottom:1px solid rgba(117,73,87,.23)!important;
}
#projectGrid .unified-project-card .line-node::before{background:rgba(117,73,87,.42)!important;}
#projectGrid .unified-project-card .project-stage-track::before{background:rgba(117,73,87,.42)!important;}
#food .day-annotation {padding:4px 0!important;}
/* Preserve the interaction affordance on keyboard focus, without showing a box. */
#today button:focus-visible,#projectGrid button:focus-visible,
#food button:focus-visible,textarea:focus-visible{
  outline:1px dashed #9b6073!important;outline-offset:2px!important;
}


/* V44 compact square monthly calendar: fit all days inside the pink sticky without extra dragging */
.calendar-journal-layout{
  grid-template-columns:minmax(0,1fr) !important;
}
.month-calendar-panel{
  aspect-ratio:1 / 1;
  max-width:1120px;
  width:100%;
  overflow:hidden;
  align-self:start;
}
.month-calendar-panel .calendar-panel-top{
  margin-bottom:10px;
}
.calendar-week-head,
.calendar-month-grid{
  column-gap:4px !important;
  row-gap:4px !important;
}
.calendar-week-head{
  margin-bottom:4px !important;
}
.calendar-week-head span{
  padding:2px 0 !important;
  font-size:11px !important;
}
#globalTimeline.calendar-month-grid{
  gap:4px !important;
}
.calendar-month-grid .calendar-empty{
  min-height:0 !important;
  aspect-ratio:1 / 1;
}
#globalTimeline .calendar-day{
  min-height:0 !important;
  aspect-ratio:1 / 1;
  padding:6px 7px !important;
  gap:2px !important;
  border-radius:0 !important;
}
#globalTimeline .calendar-day.selected{
  padding:5px 6px !important;
}
#globalTimeline .calendar-day-select{
  font-size:15px !important;
  line-height:1 !important;
  gap:4px !important;
  padding:0 !important;
}
#globalTimeline .calendar-weekday{
  font-size:9px !important;
}
#globalTimeline .calendar-dots{
  gap:3px !important;
  min-height:10px !important;
}
#globalTimeline .calendar-event-btn{
  min-height:20px !important;
  padding:2px 4px !important;
  font-size:8px !important;
  line-height:1.2 !important;
}
#globalTimeline .calendar-projects,
#globalTimeline .calendar-project-chip,
#globalTimeline .calendar-project-list,
#globalTimeline .calendar-project-title{
  font-size:8px !important;
  line-height:1.2 !important;
}
#globalTimeline .calendar-projects{
  margin-top:auto !important;
  gap:2px !important;
}
#globalTimeline .calendar-day .muted,
#globalTimeline .calendar-day .sub,
#globalTimeline .calendar-day .calendar-project-label{
  display:none !important;
}
@media (max-width: 1200px){
  .month-calendar-panel{aspect-ratio:auto; max-width:none; overflow:auto;}
  #globalTimeline .calendar-day{aspect-ratio:1 / 1; min-width:84px !important;}
}


/* V45 • Free-layout sticky board; the paper is still white, the notes pure #FFCDD2. */
html,body{background-color:#fff!important;background-image:none!important;}
#stickyBoard{
 display:grid!important;
 grid-template-columns:repeat(12,minmax(0,1fr));
 grid-auto-flow:row dense;
 gap:18px;
 width:100%;
 padding:14px 0 30px;
 align-items:start;
}
#stickyBoard > #timeline,
#stickyBoard > #today,
#stickyBoard > #projects,
#stickyBoard #timeline > .calendar-journal-layout,
#stickyBoard #today > .sidebar-stack,
#stickyBoard #projects > #projectGrid {display:contents!important;}
#stickyBoard #projects > .section-heading{
 grid-column:1 / -1!important;
 order:-10000!important;
 margin:0!important;
 align-self:end;
 min-height:30px;
}
#stickyBoard .sticky-unit{
 position:relative!important;
 grid-column:span 6;
 aspect-ratio:1 / 1!important;
 width:100%!important;
 max-width:none!important;
 min-width:0!important;
 min-height:0!important;
 height:auto!important;
 margin:0!important;
 justify-self:stretch!important;
 align-self:start!important;
 box-sizing:border-box!important;
 background:#FFCDD2!important;
 background-color:#FFCDD2!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 overflow-x:hidden!important;
 overflow-y:auto!important;
 scrollbar-width:thin;
 scrollbar-color:#d58da1 transparent;
 overscroll-behavior:contain;
 padding:28px 20px 28px!important;
}
#stickyBoard .sticky-unit .sticky-drag-grip,
#stickyBoard .sticky-unit .sticky-resize-grip{
 z-index:38;
 border:0!important;
 border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;
 color:#8a6570!important;
 opacity:.68;
 width:28px;
 height:26px;
 padding:0;
 display:grid;
 place-items:center;
 font:700 18px/1 Helvetica,Arial,sans-serif;
 touch-action:none;
 user-select:none;
 cursor:grab;
}
#stickyBoard .sticky-unit .sticky-drag-grip{
 position:absolute;
 top:8px;
 right:8px;
}
#stickyBoard .sticky-unit .sticky-resize-grip{
 position:absolute;
 right:8px;
 bottom:8px;
 margin:0;
 cursor:nwse-resize;
}
#stickyBoard .sticky-unit:hover .sticky-drag-grip,
#stickyBoard .sticky-unit:hover .sticky-resize-grip,
#stickyBoard .sticky-unit .sticky-drag-grip:focus-visible,
#stickyBoard .sticky-unit .sticky-resize-grip:focus-visible{opacity:1;}
#stickyBoard .sticky-unit .sticky-drag-grip:focus-visible,
#stickyBoard .sticky-unit .sticky-resize-grip:focus-visible{outline:2px solid #865b69!important;outline-offset:1px!important;}
#stickyBoard .sticky-unit.sticky-moving{outline:3px dashed #98627a!important;outline-offset:-3px!important;opacity:.83;}
#stickyBoard .sticky-unit.sticky-drop-target{outline:3px solid #835366!important;outline-offset:-3px!important;}
#stickyBoard .sticky-unit.sticky-resizing{outline:2px dashed #98627a!important;outline-offset:-2px!important;}
/* Calendar always keeps all seven weekday columns, even when its own note is resized. */
#stickyBoard .month-calendar-panel .calendar-sticky-nav{margin-bottom:4px!important;}
#stickyBoard .month-calendar-panel > .calendar-week-head,
#stickyBoard .month-calendar-panel > #globalTimeline.calendar-month-grid,
#stickyBoard .month-calendar-panel > .calendar-footer{
 min-width:0!important;
 width:100%!important;
 max-width:100%!important;
}
#stickyBoard .month-calendar-panel .calendar-week-head,
#stickyBoard .month-calendar-panel #globalTimeline.calendar-month-grid{
 grid-template-columns:repeat(7,minmax(0,1fr))!important;
 gap:3px!important;
}
#stickyBoard #globalTimeline .calendar-day{
 min-width:0!important;
 min-height:0!important;
 width:100%!important;
 aspect-ratio:1 / 1!important;
 padding:4px 2px!important;
}
#stickyBoard #globalTimeline .calendar-day-number{font-size:clamp(9px,1.2vw,16px)!important;}
#stickyBoard #globalTimeline .calendar-event-btn{font-size:8px!important;padding:2px!important;}
#stickyBoard .month-diary-side #journalText{min-height:115px!important;}
#stickyBoard .unified-project-card .project-stage-rail{overflow-x:hidden!important;overflow-y:visible!important;}
#stickyBoard .unified-project-card .project-stage-track{
 display:grid!important;
 grid-template-columns:repeat(auto-fit,minmax(min(116px,100%),1fr))!important;
 gap:10px 4px!important;
 width:100%!important;
}
#stickyBoard .unified-project-card .line-node{min-width:0!important;}
#stickyBoard .sticky-unit .panel-head{position:static!important;}
/* On narrow screens, stickies remain usable instead of shrinking to unreadable thumbnails. */
@media(max-width:920px){#stickyBoard{gap:14px;}}
@media(max-width:680px){
 #stickyBoard{gap:16px;}
 #stickyBoard .sticky-unit{padding:22px 14px 25px!important;}
 #stickyBoard .sticky-unit .sticky-drag-grip{margin-top:-18px;margin-right:-8px;}
 #stickyBoard .sticky-unit .sticky-resize-grip{display:none!important;}
}
@media print{
 #stickyBoard{display:block!important;}
 #stickyBoard .sticky-unit{display:block!important;width:100%!important;aspect-ratio:auto!important;height:auto!important;overflow:visible!important;margin-bottom:12px!important;}
 #stickyBoard .sticky-unit .sticky-drag-grip,#stickyBoard .sticky-unit .sticky-resize-grip{display:none!important;}
}


/* V47: TRUE FREEFORM STICKY CANVAS. No grid/snap, independent px sizes and overlap. */
html,body{background:#fff!important;background-image:none!important}
#stickyBoard{
 position:relative!important;
 display:block!important;
 width:100%!important;
 min-height:340px!important;
 padding:0!important;
 margin:0 0 36px!important;
 gap:0!important;
 overflow:visible!important;
 isolation:isolate;
}
#stickyBoard > #timeline,
#stickyBoard > #today,
#stickyBoard > #projects,
#stickyBoard #timeline > .calendar-journal-layout,
#stickyBoard #today > .sidebar-stack,
#stickyBoard #projects > #projectGrid{display:contents!important}
#stickyBoard .sticky-unit{
 position:absolute!important;
 aspect-ratio:auto!important;
 max-width:none!important;
 min-width:0!important;
 min-height:0!important;
 margin:0!important;
 box-sizing:border-box!important;
 background:#FFCDD2!important;
 background-color:#FFCDD2!important;
 border:0!important;
 border-radius:0!important;
 box-shadow:none!important;
 overflow-x:hidden!important;
 overflow-y:auto!important;
 scrollbar-width:thin;
 scrollbar-color:#d58da1 transparent;
 overscroll-behavior:contain;
 padding:30px 21px 32px!important;
 transition:none!important;
}
#stickyBoard .sticky-unit.sticky-moving,
#stickyBoard .sticky-unit.sticky-resizing{
 opacity:1!important;
 outline:1px dashed #a66d7b!important;
 outline-offset:0!important;
}
#stickyBoard .sticky-unit.sticky-drop-target{outline:0!important;}
/* Controls are siblings of the cards, anchored to the board coordinates.
   Their positions never change when a note's interior is scrolled. */
#stickyBoard > .sticky-grip{
 position:absolute!important;
 display:grid!important;
 place-items:center!important;
 width:31px!important;
 height:31px!important;
 padding:0!important;
 margin:0!important;
 background:transparent!important;
 box-shadow:none!important;
 border:0!important;
 border-radius:0!important;
 color:#926c78!important;
 font:700 19px/1 Helvetica,Arial,sans-serif!important;
 opacity:.70;
 touch-action:none!important;
 user-select:none!important;
 -webkit-user-select:none!important;
}
#stickyBoard > .sticky-grip:hover,
#stickyBoard > .sticky-grip:focus-visible{opacity:1;background:#efb5be66!important;}
#stickyBoard > .sticky-drag-grip{cursor:grab!important;}
#stickyBoard > .sticky-resize-grip{cursor:nwse-resize!important;}
#stickyBoard > .sticky-grip:focus-visible{outline:2px solid #87606f!important;outline-offset:1px!important;}
.sticky-board-heading{
 margin:14px 0 13px!important;
 display:flex!important;
 align-items:center;
 justify-content:space-between;
 gap:18px;
}
.sticky-board-heading .sticky-board-hint{
 display:inline-block;
 font:500 11px/1.55 Helvetica,Arial,sans-serif;
 color:#8c6d77;
 margin-left:auto;
}
@media(max-width:760px){
 #stickyBoard .sticky-unit{padding:28px 16px 30px!important;}
 .sticky-board-heading .sticky-board-hint{display:none;}
}
@media print{
 #stickyBoard{height:auto!important;min-height:0!important;display:block!important;}
 #stickyBoard .sticky-unit{
  position:relative!important;left:auto!important;top:auto!important;
  width:100%!important;height:auto!important;overflow:visible!important;
  margin:0 0 12px!important;break-inside:avoid;
 }
 #stickyBoard > .sticky-grip{display:none!important;}
}



/* V48: Daily Timeline note fields show underline only, no surrounding boxes */
#food #dailyTimeline .day-slot,
#food #dailyTimeline .day-slot-body{
  border:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
#food #dailyTimeline .day-annotation,
#food #dailyTimeline textarea.day-annotation{
  display:block !important;
  width:100% !important;
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  border-top:0 !important;
  border-left:0 !important;
  border-right:0 !important;
  border-bottom:1px dashed rgba(117,73,87,.38) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:none !important;
  resize:none !important;
  padding:2px 0 6px !important;
  min-height:28px !important;
  line-height:1.7 !important;
  -webkit-appearance:none !important;
  appearance:none !important;
}
#food #dailyTimeline .day-annotation:hover,
#food #dailyTimeline .day-annotation:focus,
#food #dailyTimeline .day-annotation:active{
  background:transparent !important;
  border:none !important;
  border-bottom:1px solid rgba(117,73,87,.55) !important;
  box-shadow:none !important;
  outline:none !important;
}
#food #dailyTimeline .day-annotation::placeholder{
  color:#b18490 !important;
  opacity:.95 !important;
}
#food #dailyTimeline .day-slot-body:before,
#food #dailyTimeline .day-slot-body:after,
#food #dailyTimeline .day-annotation:before,
#food #dailyTimeline .day-annotation:after{
  display:none !important;
  content:none !important;
}



/* V49: keep only sticky-note outer frames and calendar day boxes; remove other frames */
#today .calendar-linked-todo,
#today .todo-inline-actions,
#today .todo-log-preview,
#today .tag,
#today .event-tag,
#today .task-log-btn,
#today .carry-yesterday-btn,
#today .todo-plus-btn,
#food #addDailySlot,
#timeline .calendar-sticky-nav .calendar-view-btn,
#timeline .calendar-sticky-nav .rail-arrow,
#journal .media-plus,
.top-links a,
.top-links button,
.ghost-btn,.small-btn,.primary-btn,
.add-deadline-btn,.add-unified-node,
.project-add-top,
.project-actions button{
  background:transparent !important;
  background-color:transparent !important;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
  border-radius:0 !important;
  text-decoration:none !important;
}

#today .carry-yesterday-btn,
#today .todo-plus-btn,
#food #addDailySlot,
#timeline .calendar-sticky-nav .calendar-view-btn,
#timeline .calendar-sticky-nav .rail-arrow,
#journal .media-plus,
.top-links a,
.top-links button,
.ghost-btn,.small-btn,.primary-btn,
.add-deadline-btn,.add-unified-node,
.project-add-top,
.project-actions button,
#today .task-log-btn{
  padding:0 !important;
}

#today .carry-yesterday-btn:hover,
#today .todo-plus-btn:hover,
#food #addDailySlot:hover,
#timeline .calendar-sticky-nav .calendar-view-btn:hover,
#timeline .calendar-sticky-nav .rail-arrow:hover,
#journal .media-plus:hover,
#today .task-log-btn:hover,
.top-links a:hover,
.top-links button:hover,
.ghost-btn:hover,.small-btn:hover,.primary-btn:hover,
.add-deadline-btn:hover,.add-unified-node:hover,
.project-add-top:hover,.project-actions button:hover{
  background:transparent !important;
  text-decoration:none !important;
  box-shadow:none !important;
}

/* today list inner UI becomes text-only */
#today .calendar-linked-todo{
  padding-left:0 !important;
  padding-right:0 !important;
}
#today .tag,
#today .event-tag{
  color:#6E8193 !important;
  font-size:12px !important;
  font-weight:600 !important;
}
#today .todo-text[contenteditable="true"],
#today .todo-linked-title,
#today .todo-text{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
  padding:0 !important;
  border-radius:0 !important;
}
#today .todo-text[contenteditable="true"]:hover,
#today .todo-text[contenteditable="true"]:focus,
#today .todo-linked-title:hover,
#today .todo-linked-title:focus,
#today .todo-linked-title:focus-visible{
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
  text-decoration:none !important;
}
#today .todo-inline-actions{
  gap:14px !important;
}
#today .todo-log-preview{
  margin-top:6px !important;
  padding:0 !important;
  color:#7D6B72 !important;
}

/* Daily timeline controls: keep only text, no fixed-button underline */
#food .panel-head .small-btn{
  color:#6E8193 !important;
}
#food #dailyTimeline .day-time{
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
  padding:0 !important;
  border-radius:0 !important;
}
#food #dailyTimeline .day-time:focus,
#food #dailyTimeline .day-time:hover{
  border:none !important;
  box-shadow:none !important;
  background:transparent !important;
}

/* no underline for all fixed buttons / nav controls */
#today .carry-yesterday-btn,
#today .todo-plus-btn,
#food #addDailySlot,
#timeline .calendar-sticky-nav .calendar-view-btn,
#timeline .calendar-sticky-nav .rail-arrow,
#journal .media-plus,
.top-links a,
.top-links button,
.ghost-btn,.small-btn,.primary-btn,
.add-deadline-btn,.add-unified-node,
.project-add-top,
.project-actions button,
#today .task-log-btn{
  border-bottom:none !important;
}
#today .carry-yesterday-btn::after,
#today .todo-plus-btn::after,
#food #addDailySlot::after,
#timeline .calendar-sticky-nav .calendar-view-btn::after,
#timeline .calendar-sticky-nav .rail-arrow::after,
#journal .media-plus::after,
#today .task-log-btn::after{
  display:none !important;
  content:none !important;
}


/* V50: node labels and collapsed substep controls are text-only. */
#projectGrid .unified-project-card .line-node .node-above .node-name,
#projectGrid .unified-project-card .line-node .node-name,
#stickyBoard #projectGrid .unified-project-card .node-name,
#projectGrid .unified-project-card .node-date-edit {
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  border-bottom:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  outline:none !important;
  text-decoration:none !important;
}
#projectGrid .unified-project-card .line-node .node-name:hover,
#projectGrid .unified-project-card .line-node .node-name:focus,
#projectGrid .unified-project-card .line-node .node-name:focus-visible {
  background:transparent !important;
  border:0 !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  outline:none !important;
}
#projectGrid .unified-project-card .substeps-toggle,
#projectGrid .unified-project-card .substeps-toggle[aria-expanded="false"],
#projectGrid .unified-project-card .substeps-toggle:hover,
#projectGrid .unified-project-card .substeps-toggle:focus {
  background:transparent !important;
  border:0 !important;
  border-bottom:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  text-decoration:none !important;
  outline:none !important;
  padding:4px 7px !important;
}
/* The divider belongs to the expanded list; while collapsed no line is shown. */
#projectGrid .unified-project-card .substeps-list {
  background:transparent !important;
  border:0 !important;
  border-top:1px solid rgba(117,73,87,.35) !important;
  border-bottom:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  margin-top:5px !important;
  padding-top:11px !important;
}
#projectGrid .unified-project-card .substeps-toggle:focus-visible,
#projectGrid .unified-project-card .node-name:focus-visible {
  outline:1px dashed rgba(117,73,87,.55) !important;
  outline-offset:3px !important;
}


/* V51: borderless project add button and white, boxless project timeline dots. */
#projectGrid .unified-project-card button.project-add-top,
#stickyBoard #projectGrid .unified-project-card button.project-add-top,
#projectGrid .unified-project-card button.add-unified-node {
  border:0 !important;
  border-bottom:0 !important;
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  text-decoration:none !important;
  outline:0 !important;
}
#projectGrid .unified-project-card button.project-add-top::before,
#projectGrid .unified-project-card button.project-add-top::after,
#projectGrid .unified-project-card button.add-unified-node::before,
#projectGrid .unified-project-card button.add-unified-node::after {
  content:none !important;
  display:none !important;
}
#projectGrid .unified-project-card .line-node button.node-dot-toggle,
#stickyBoard #projectGrid .unified-project-card .line-node button.node-dot-toggle {
  appearance:none !important;
  -webkit-appearance:none !important;
  border:0 !important;
  border-bottom:0 !important;
  outline:0 !important;
  border-radius:50% !important;
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
  padding:0 !important;
  width:25px !important;
  min-width:25px !important;
  height:25px !important;
  min-height:25px !important;
  display:grid !important;
  place-items:center !important;
}
#projectGrid .unified-project-card .line-node .node-dot-toggle .node-dot,
#projectGrid .unified-project-card .line-node.done .node-dot-toggle .node-dot,
#projectGrid .unified-project-card .line-node.active .node-dot-toggle .node-dot,
#projectGrid .unified-project-card .line-node.milestone .node-dot-toggle .node-dot,
#projectGrid .unified-project-card .line-node.milestone.done .node-dot-toggle .node-dot {
  background:#FFFFFF !important;
  background-color:#FFFFFF !important;
  border:0 !important;
  border-radius:50% !important;
  box-shadow:none !important;
  transform:none !important;
  width:19px !important;
  height:19px !important;
  margin:0 !important;
  position:relative !important;
}
/* Keep completed steps distinguishable without restoring colored circles. */
#projectGrid .unified-project-card .line-node.done .node-dot-toggle .node-dot::after {
  content:'✓';
  display:block;
  position:absolute;
  inset:0;
  color:#a46a7c;
  font:700 13px/19px Helvetica,Arial,sans-serif;
  text-align:center;
}
#projectGrid .unified-project-card .line-node:not(.done) .node-dot-toggle .node-dot::after {
  display:none !important;
  content:none !important;
}
#projectGrid .unified-project-card .line-node button.node-dot-toggle:hover,
#projectGrid .unified-project-card .line-node button.node-dot-toggle:focus,
#projectGrid .unified-project-card .line-node button.node-dot-toggle:hover .node-dot,
#projectGrid .unified-project-card .line-node button.node-dot-toggle:focus .node-dot {
  border:0 !important;
  box-shadow:none !important;
  background-color:transparent !important;
}
#projectGrid .unified-project-card .line-node button.node-dot-toggle:hover .node-dot,
#projectGrid .unified-project-card .line-node button.node-dot-toggle:focus .node-dot {
  background-color:#fff !important;
}
/* Keyboard access remains visible without a box around the dot at rest. */
#projectGrid .unified-project-card .line-node button.node-dot-toggle:focus-visible,
#projectGrid .unified-project-card button.project-add-top:focus-visible {
  outline:1px dashed #9a6375 !important;
  outline-offset:3px !important;
}


/* V54: Keyboard-selectable new project stickies. Only temporary selection, no permanent frame. */
#stickyBoard .unified-project-card.sticky-key-selected {
  outline:2px dashed rgba(109,69,84,.68) !important;
  outline-offset:-2px !important;
}
#stickyBoard .unified-project-card.sticky-key-selected:focus {
  outline:2px dashed rgba(109,69,84,.68) !important;
  outline-offset:-2px !important;
}


/* V55: every sticky owns the only vertical scrollbar; multiline inputs expand naturally. */
#stickyBoard .sticky-unit textarea {
  overflow-x:hidden !important;
  overflow-y:hidden !important;
  max-height:none !important;
  resize:none !important;
  scrollbar-width:none !important;
}
#stickyBoard .sticky-unit textarea::-webkit-scrollbar {display:none !important;}
#stickyBoard .sticky-unit #journalText,
#stickyBoard .sticky-unit #journalHighlight {
  flex:0 0 auto !important;
  height:auto;
}
#stickyBoard .sticky-unit .journal-month-days,
#stickyBoard .sticky-unit .node-above .node-name {
  max-height:none !important;
  overflow-y:visible !important;
  scrollbar-width:none !important;
}
#stickyBoard .sticky-unit .node-above .node-name {overflow-wrap:anywhere;}
#stickyBoard .sticky-unit .media-items,
#stickyBoard .sticky-unit .media-item,
#stickyBoard .sticky-unit .media-shelf {
  max-height:none !important;
  overflow-y:visible !important;
}


/* V56: Two independent freeform sticky zones, with a full-width divider. */
#stickyBoard{
  position:relative!important;display:flex!important;flex-direction:column!important;
  width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;
  gap:0!important;padding:0!important;margin:0 0 36px!important;overflow:visible!important;
}
#stickyBoard .sticky-zone{
  display:block!important;position:relative!important;flex:none!important;
  width:100%!important;min-width:0!important;min-height:280px!important;
  overflow:visible!important;isolation:isolate;background:transparent!important;
}
#stickyBoard .sticky-zone #timeline,
#stickyBoard .sticky-zone #today,
#stickyBoard .sticky-zone #projects,
#stickyBoard .sticky-zone #timeline > .calendar-journal-layout,
#stickyBoard .sticky-zone #today > .sidebar-stack,
#stickyBoard .sticky-zone #projects > #projectGrid{
  display:contents!important;
}
#stickyBoard .sticky-zone .sticky-unit{position:absolute!important;}
#stickyBoard .sticky-zone > .sticky-grip{
  position:absolute!important;display:grid!important;place-items:center!important;
  width:31px!important;height:31px!important;padding:0!important;margin:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;color:#926c78!important;opacity:.68;
  font:700 19px/1 Helvetica,Arial,sans-serif!important;
  touch-action:none!important;user-select:none!important;
}
#stickyBoard .sticky-zone > .sticky-grip:hover,
#stickyBoard .sticky-zone > .sticky-grip:focus-visible{opacity:1;background:#efb5be66!important;}
#stickyBoard .sticky-zone > .sticky-drag-grip{cursor:grab!important;}
#stickyBoard .sticky-zone > .sticky-resize-grip{cursor:nwse-resize!important;}
#stickyBoard #stickyProjectDivider{
  position:relative!important;display:block!important;flex:none!important;
  width:100%!important;height:1px!important;margin:24px 0 26px!important;
  border:none!important;border-top:1px solid #afadb1!important;background:transparent!important;
  box-shadow:none!important;
}
#stickyBoard .sticky-board-heading{
  position:relative!important;display:flex!important;width:100%!important;flex:none!important;
  margin:0 0 16px!important;padding:0!important;min-height:31px!important;
}
#stickyBoard #stickyProjectZone{margin-top:0!important;}
@media print{
  #stickyBoard{display:block!important;}
  #stickyBoard .sticky-zone{height:auto!important;min-height:0!important;overflow:visible!important;}
  #stickyBoard .sticky-zone .sticky-unit{
    display:block!important;position:relative!important;top:auto!important;left:auto!important;
    width:100%!important;height:auto!important;break-inside:avoid;
    margin:0 0 16px!important;overflow:visible!important;
  }
  #stickyBoard .sticky-zone > .sticky-grip{display:none!important;}
}


/* V57: project-only corner delete + single-row editable subtitle. */
#stickyBoard .sticky-zone .unified-project-card{position:absolute!important;}
#projectGrid .unified-project-card .project-delete-corner{
  position:sticky!important;
  top:0!important;
  left:0!important;
  float:left!important;
  display:grid!important;
  place-items:center!important;
  z-index:70!important;
  width:24px!important;
  height:24px!important;
  margin:-23px 0 -1px -14px!important;
  padding:0!important;
  color:#9b6b78!important;
  font:400 21px/1 Helvetica,Arial,sans-serif!important;
  border:0!important;
  border-bottom:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  cursor:pointer!important;
  text-decoration:none!important;
}
#projectGrid .unified-project-card .project-delete-corner:hover{color:#5a3743!important;}
#projectGrid .unified-project-card .project-delete-corner:focus-visible{
  outline:1px dashed #9b6073!important;outline-offset:1px!important;
}
#projectGrid .unified-project-card .unified-project-header{padding-left:13px!important;}
#projectGrid .unified-project-card .project-title-and-note{
  display:flex!important;align-items:baseline!important;gap:12px!important;
  min-width:0!important;width:100%!important;white-space:nowrap!important;
}
#projectGrid .unified-project-card .project-title-and-note h3{
  margin:4px 0 6px!important;min-width:0!important;flex:0 1 auto!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
#projectGrid .unified-project-card .project-header-note{
  display:inline-block!important;flex:1 1 65px!important;min-width:42px!important;
  max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;
  color:#826571!important;font-size:12px!important;font-weight:400!important;
  line-height:1.6!important;white-space:nowrap!important;
  border:0!important;border-bottom:0!important;padding:0!important;
  background:transparent!important;box-shadow:none!important;outline:0!important;
  cursor:text!important;
}
#projectGrid .unified-project-card .project-header-note:empty:before{
  content:attr(data-placeholder);color:#aa8590;opacity:.8;
}
#projectGrid .unified-project-card .project-header-note:focus{
  overflow:visible!important;text-overflow:clip!important;
  background:transparent!important;box-shadow:none!important;outline:0!important;
}
#projectGrid .unified-project-card.historical-project .project-delete-corner{display:grid!important;}


/* V59 INFJ identity, light interface, no tutorial captions */
html,body{background:#fff!important;background-image:none!important}
.infj-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;border-bottom:0!important;padding:18px 0 19px!important}
.infj-topbar .brand{display:flex;align-items:center;gap:10px}
.infj-topbar .brand-mark{display:inline-block!important;background:#FFCDD2!important;width:27px!important;height:27px!important;min-width:27px!important;border:0!important;border-radius:0!important;transform:none!important;box-shadow:none!important;}
.infj-topbar .brand strong{font:700 25px/1 Helvetica,Arial,sans-serif!important;letter-spacing:-.02em!important;color:#343B3D!important}
.infj-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap}
.language-switch{display:flex;align-items:center;gap:7px;color:#9c8590;font:500 12px/1.4 Helvetica,Arial,sans-serif}
.language-switch button,.infj-topbar .header-export{
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 padding:3px 1px!important;margin:0!important;color:#7f7580!important;font:600 12px/1.5 Helvetica,Arial,sans-serif!important;
 text-decoration:none!important;white-space:nowrap
}
.language-switch button[aria-pressed="true"]{color:#343B3D!important;font-weight:800!important}
.language-switch button:hover,.infj-topbar .header-export:hover{color:#b66f84!important;background:transparent!important}
.infj-topbar .header-export{color:#343B3D!important}
.utility-hidden,.sticky-board-hint,.sticky-help-text,.scroll-help{display:none!important}
.infj-footer{display:flex!important;align-items:center;justify-content:center!important;border-top:1px solid #e7dfe1!important;margin:24px 0 0!important;padding:18px 0 26px!important}
.infj-credit{font:500 12px/1.4 Helvetica,Arial,sans-serif;letter-spacing:.02em;color:#8f6f79}
@media(max-width:720px){
 .infj-topbar{flex-wrap:wrap!important;gap:13px!important}
 .infj-header-actions{width:100%;justify-content:space-between;gap:10px}
 .language-switch{gap:5px;flex-wrap:wrap}
 .language-switch button,.infj-topbar .header-export{font-size:11px!important}
}


/* V60: roomier INFJ masthead and a single, quiet byline */
.infj-topbar{padding-top:48px!important;padding-bottom:29px!important;align-items:center!important;}
.infj-topbar .brand{align-items:center!important;gap:12px!important;}
.infj-brand-copy{display:flex;flex-direction:column;align-items:flex-start;gap:5px;}
.infj-brand-copy strong{display:block!important;}
.infj-brand-byline{display:block!important;color:#A7A7A7!important;letter-spacing:.065em!important;font:400 11px/1.35 Helvetica,Arial,sans-serif!important;}
.infj-footer{display:none!important;}
/* Month thumbnails contain event and diary items only. Project history appears in expanded date. */
#globalTimeline .calendar-day:not(.expanded-day) .calendar-project-footprint,
#globalTimeline .calendar-day:not(.expanded-day) .calendar-projects{display:none!important;}
/* Reading and Watching: light progress bar with no circular thumb; still click/keyboard adjustable. */
#stickyBoard .media-slider,
#journal .media-slider{
 -webkit-appearance:none!important;appearance:none!important;
 display:block!important;width:100%!important;height:6px!important;
 min-height:6px!important;max-height:6px!important;
 background:linear-gradient(to right,#D787A0 0%,#D787A0 var(--media-percent,0%),#FFFFFF var(--media-percent,0%),#FFFFFF 100%)!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 padding:0!important;margin:10px 0 12px!important;
 cursor:pointer!important;outline:none!important;
}
#stickyBoard .media-slider::-webkit-slider-runnable-track,
#journal .media-slider::-webkit-slider-runnable-track{height:6px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
#stickyBoard .media-slider::-moz-range-track,
#journal .media-slider::-moz-range-track{height:6px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;}
#stickyBoard .media-slider::-webkit-slider-thumb,
#journal .media-slider::-webkit-slider-thumb{
 -webkit-appearance:none!important;appearance:none!important;
 width:0!important;height:0!important;opacity:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#stickyBoard .media-slider::-moz-range-thumb,
#journal .media-slider::-moz-range-thumb{
 width:0!important;height:0!important;opacity:0!important;
 border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
#stickyBoard .media-slider:focus-visible,
#journal .media-slider:focus-visible{outline:1px dashed #A47584!important;outline-offset:4px!important;}
@media(max-width:720px){.infj-topbar{padding-top:34px!important;padding-bottom:25px!important;}}


/* V62 public-only: daily timeline carry-over + editable emoji */
#food .infj-daily-actions{
  display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap;
}
#food #carryDailyYesterday,
#food .infj-daily-actions #addDailySlot{
  flex:0 0 auto;background:transparent!important;border:0!important;
  border-bottom:0!important;box-shadow:none!important;outline:0!important;
  text-decoration:none!important;color:#687989!important;padding:2px 0!important;
  font:600 12px/1.45 Helvetica,Arial,sans-serif!important;cursor:pointer;
}
#food #carryDailyYesterday:hover,
#food .infj-daily-actions #addDailySlot:hover{opacity:.68}
#dailyTimeline button.day-custom-emoji{
  appearance:none;-webkit-appearance:none;background:transparent!important;
  box-shadow:none!important;border:none!important;border-bottom:0!important;
  padding:0!important;margin:0;cursor:text;
  font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important;
  line-height:1.2!important;filter:none!important;
}
#dailyTimeline button.day-custom-emoji:hover{transform:scale(1.08)}
#dailyTimeline button.day-custom-emoji:focus-visible{
  outline:1px dotted #9f6a79!important;outline-offset:2px!important;
}
#dailyTimeline .day-emoji-input{
  position:relative;top:1px;left:-7px;z-index:20;
  width:44px;height:38px;min-width:0;
  padding:0 1px!important;text-align:center;
  border:0!important;border-bottom:1px solid #b7778b!important;
  background:transparent!important;box-shadow:none!important;outline:none!important;
  font:24px/1.2 "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;
}
#dailyTimeline .day-slot-body{position:relative}
#dailyTimeline .infj-event-edit{
  position:absolute;right:0;top:-20px;font-size:12px;color:#875c72;
  border:0!important;border-bottom:0!important;box-shadow:none!important;
  background:transparent!important;cursor:pointer;padding:0 2px!important;opacity:.72;
}
#dailyTimeline .infj-event-edit:hover{opacity:1}
@media(max-width:720px){
 #food .infj-daily-actions{gap:8px}
 #food #carryDailyYesterday,#food .infj-daily-actions #addDailySlot{font-size:11px!important}
 #dailyTimeline .day-emoji-input{left:-5px;width:34px;height:32px;font-size:20px}
}


/* INFJ Diary testing V1 iphoen • five real mobile screens, shared local data. */
/* iPhone finishing touches */
body.infj-iphone #stickyBoard .sticky-board-heading h2 span{display:none!important;}
body.infj-iphone #projectGrid .empty{background:#FFCDD2!important;padding:26px 18px!important;min-height:280px!important;color:#725966!important;font-size:13px!important;}
body.infj-iphone #projectGrid .unified-project-card .project-delete-corner{left:6px!important;top:5px!important;color:#8c6070!important;}

body.infj-iphone .iphone-add-calendar-event{display:block!important;margin:14px 0 0!important;padding:9px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;color:#864f63!important;font:700 13px/1.4 Helvetica,Arial,sans-serif!important;}
html{scroll-behavior:auto!important;overscroll-behavior-y:auto}
body.infj-iphone{
  background:#ffffff!important;color:#343B3D!important;
  width:100%!important;max-width:500px!important;min-height:100dvh!important;
  margin:0 auto!important;padding:0!important;
  -webkit-text-size-adjust:100%;overflow-x:hidden!important;
  font-family:Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif!important;
}
body.infj-iphone .container{width:100%!important;max-width:500px!important;margin:0!important;padding:0 16px!important;}
body.infj-iphone .infj-topbar{
  position:sticky!important;top:0!important;z-index:800!important;
  width:100%!important;min-height:93px!important;
  margin:0!important;padding:calc(env(safe-area-inset-top,0px) + 14px) 0 14px!important;
  background:rgba(255,255,255,.98)!important;
  border:0!important;display:flex!important;flex-wrap:nowrap!important;
  gap:10px!important;align-items:center!important;justify-content:space-between!important;
}
body.infj-iphone .infj-topbar .brand{min-width:0!important;max-width:calc(100% - 110px);display:flex!important;gap:11px!important;align-items:center!important;}
body.infj-iphone .infj-topbar .brand-mark{width:29px!important;height:29px!important;min-width:29px!important;background:#FFCDD2!important;}
body.infj-iphone .infj-topbar .brand strong{font:700 clamp(20px,6vw,28px)/1.15 Helvetica,Arial,sans-serif!important;white-space:nowrap!important;}
body.infj-iphone .infj-brand-copy{gap:4px!important;min-width:0;}
body.infj-iphone .infj-brand-byline{font-size:10px!important;letter-spacing:.055em!important;color:#949494!important;}
body.infj-iphone .iphone-header-controls{display:flex!important;flex:none!important;align-items:center!important;gap:8px!important;}
body.infj-iphone .iphone-tools-trigger,
body.infj-iphone .iphone-project-jump{display:grid!important;place-items:center!important;appearance:none!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;outline-offset:3px!important;}
body.infj-iphone .iphone-tools-trigger{width:28px;height:38px;font:700 20px/1 Helvetica,Arial,sans-serif;color:#8f8589;letter-spacing:2px;}
body.infj-iphone .iphone-project-jump{width:39px;height:39px;}
body.infj-iphone[data-mobile-page="projects"] .iphone-project-jump svg{stroke:#cf809a!important;}
body.infj-iphone .infj-header-actions{
  position:absolute!important;right:0!important;top:calc(100% - 6px)!important;
  display:none!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:flex-start!important;
  gap:13px!important;width:min(330px,calc(100vw - 32px))!important;
  padding:20px!important;background:#fff!important;border:1px solid #f1d4d8!important;
  box-shadow:0 12px 25px rgba(52,59,61,.09)!important;z-index:1000!important;
}
body.infj-iphone.iphone-tools-open .infj-header-actions{display:flex!important;}
body.infj-iphone .infj-header-actions .language-switch{flex-wrap:nowrap!important;gap:6px!important;white-space:nowrap;}
body.infj-iphone .infj-header-actions .header-export{font-size:13px!important;}
/* No floating desktop notes. Mobile pages use the normal vertical document flow. */
body.infj-iphone #stickyBoard{
  display:block!important;position:relative!important;width:100%!important;min-width:0!important;
  max-width:100%!important;height:auto!important;min-height:0!important;
  overflow:visible!important;margin:0!important;padding:0 0 130px!important;isolation:auto!important;
}
body.infj-iphone #stickyBoard .sticky-zone{
  position:static!important;display:contents!important;height:auto!important;min-height:0!important;
  min-width:0!important;width:auto!important;overflow:visible!important;isolation:auto!important;
}
body.infj-iphone #stickyBoard .sticky-zone #timeline,
body.infj-iphone #stickyBoard .sticky-zone #today,
body.infj-iphone #stickyBoard .sticky-zone #projects,
body.infj-iphone #stickyBoard .sticky-zone #timeline > .calendar-journal-layout,
body.infj-iphone #stickyBoard .sticky-zone #today > .sidebar-stack{display:contents!important;}
body.infj-iphone #stickyBoard .sticky-zone #projects > #projectGrid{
  display:flex!important;flex-direction:column!important;gap:16px!important;align-items:stretch!important;
  width:100%!important;min-width:0!important;
}
body.infj-iphone #stickyBoard .sticky-zone .sticky-unit,
body.infj-iphone #stickyBoard .sticky-zone .unified-project-card{
  position:relative!important;aspect-ratio:auto!important;float:none!important;
  max-width:100%!important;min-width:0!important;
  margin:0!important;inset:auto!important;z-index:auto!important;
  background:#FFCDD2!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow:visible!important;transition:none!important;
  padding:20px 16px 28px!important;
}
body.infj-iphone #stickyBoard .sticky-zone > .sticky-grip{display:none!important;}
body.infj-iphone #stickyProjectDivider{display:none!important;}
body.infj-iphone #stickyBoard .sticky-board-heading{
  display:none!important;position:relative!important;width:100%!important;min-height:0!important;
  align-items:center!important;justify-content:space-between!important;gap:12px!important;
  margin:0 0 12px!important;padding:4px 0 7px!important;
}
body.infj-iphone[data-mobile-page="projects"] #stickyBoard .sticky-board-heading{display:flex!important;}
body.infj-iphone #stickyBoard .sticky-board-heading h2{font-size:23px!important;line-height:1.2!important;}
body.infj-iphone #stickyBoard .sticky-board-heading .label{font-size:10px!important;letter-spacing:.14em!important;}
body.infj-iphone #stickyBoard .sticky-board-heading #addProject{white-space:nowrap!important;font-size:13px!important;}
body.infj-iphone #stickyBoard .month-calendar-panel,
body.infj-iphone #stickyBoard #journal,
body.infj-iphone #stickyBoard #today > .panel,
body.infj-iphone #stickyBoard #food,
body.infj-iphone #stickyBoard #projectGrid .unified-project-card,
body.infj-iphone #stickyBoard #projectGrid .empty{display:none!important;}
body.infj-iphone[data-mobile-page="calendar"] #stickyBoard .month-calendar-panel,
body.infj-iphone[data-mobile-page="notes"] #stickyBoard #journal,
body.infj-iphone[data-mobile-page="tasks"] #stickyBoard #today > .panel,
body.infj-iphone[data-mobile-page="routine"] #stickyBoard #food,
body.infj-iphone[data-mobile-page="projects"] #stickyBoard #projectGrid .unified-project-card,
body.infj-iphone[data-mobile-page="projects"] #stickyBoard #projectGrid .empty{display:block!important;}
body.infj-iphone #stickyBoard .month-calendar-panel,
body.infj-iphone #stickyBoard #journal,
body.infj-iphone #stickyBoard #today > .panel,
body.infj-iphone #stickyBoard #food{
  min-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 210px)!important;
  width:100%!important;max-width:100%!important;
}
body.infj-iphone #stickyBoard .month-calendar-panel{height:auto!important;overflow:visible!important;padding:19px 11px 24px!important;}
body.infj-iphone #timeline .calendar-sticky-nav{position:static!important;top:auto!important;margin:0 0 16px!important;padding:0!important;}
body.infj-iphone #timeline .calendar-sticky-nav .rail-controls{gap:5px!important;justify-content:space-between!important;align-items:center!important;flex-wrap:wrap!important;}
body.infj-iphone #timeline .calendar-sticky-nav .calendar-month-nav{gap:5px!important;}
body.infj-iphone #timeline .calendar-sticky-nav .calendar-view-btn{font-size:11px!important;}
body.infj-iphone #timeline .calendar-sticky-nav .calendar-month-name{font-size:12px!important;min-width:0!important;white-space:nowrap!important;}
body.infj-iphone #timeline #nextEventCount{display:none!important;}
body.infj-iphone #timeline .calendar-week-head,
body.infj-iphone #timeline #globalTimeline.calendar-month-grid{
  display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;
  width:100%!important;min-width:0!important;gap:3px!important;margin-left:0!important;
}
body.infj-iphone #timeline .calendar-week-head span{font-size:11px!important;padding:4px 0!important;}
body.infj-iphone #timeline #globalTimeline .calendar-day,
body.infj-iphone #timeline #globalTimeline .calendar-day.selected{
  position:relative!important;aspect-ratio:1/1!important;min-width:0!important;max-width:100%!important;
  min-height:0!important;width:100%!important;overflow:hidden!important;
  border:1px solid rgba(113,69,81,.27)!important;padding:5px!important;gap:2px!important;
  background:transparent!important;box-shadow:none!important;
}
body.infj-iphone #timeline #globalTimeline .calendar-day.selected{border:2px solid #ad6d83!important;padding:4px!important;}
body.infj-iphone #timeline #globalTimeline .calendar-day-number{font:700 14px/1 Helvetica,Arial,sans-serif!important;}
body.infj-iphone #timeline #globalTimeline .calendar-weekday{display:none!important;}
body.infj-iphone #timeline #globalTimeline .calendar-date-dots{margin:0!important;min-height:5px!important;}
body.infj-iphone #timeline #globalTimeline .calendar-date-dots i{width:5px!important;height:5px!important;}
body.infj-iphone #timeline #globalTimeline .calendar-event-list{display:none!important;}
body.infj-iphone #timeline #globalTimeline .calendar-empty{min-height:0!important;aspect-ratio:1/1!important;}
body.infj-iphone #timeline #globalTimeline .calendar-day.expanded-day{overflow:visible!important;z-index:51!important;}
body.infj-iphone #timeline #globalTimeline .calendar-expanded-pane{
  position:fixed!important;top:135px!important;left:16px!important;right:16px!important;
  width:auto!important;max-width:468px!important;margin:0 auto!important;
  max-height:calc(100dvh - 232px)!important;overflow-y:auto!important;
  border:1px solid #e7a8b4!important;background:#fff8fa!important;
  padding:17px!important;box-shadow:0 15px 50px rgba(52,59,61,.18)!important;
}
body.infj-iphone #timeline .calendar-footer{font-size:10px!important;margin-top:12px!important;}
body.infj-iphone #journal .journal-day-label{font-size:11px!important;letter-spacing:.14em!important;}
body.infj-iphone #journal h3{font-size:25px!important;margin-bottom:18px!important;}
body.infj-iphone #journal #journalText{width:100%!important;min-height:180px!important;resize:none!important;font-size:15px!important;line-height:1.65!important;padding:7px 0 10px!important;}
body.infj-iphone #journal .media-shelf{margin-top:22px!important;padding-top:16px!important;}
body.infj-iphone #journal .media-item{padding:16px 0!important;}
body.infj-iphone #journal .media-item-head{gap:5px!important;}
body.infj-iphone #journal .media-item-head strong{font-size:14px!important;}
body.infj-iphone #today > .panel{min-width:0!important;}
body.infj-iphone #today .panel-head{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;position:static!important;padding:0 0 12px!important;}
body.infj-iphone #today .section-meta{display:flex!important;flex-wrap:wrap!important;justify-content:flex-end!important;width:100%!important;gap:10px!important;}
body.infj-iphone #today .todo-title-row h2{font-size:26px!important;}
body.infj-iphone #today .todo-row{padding:13px 0!important;}
body.infj-iphone #today .todo-text{font-size:14px!important;line-height:1.5!important;}
body.infj-iphone #today .todo-inline-actions{gap:9px!important;}
body.infj-iphone #food .panel-head{position:static!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;}
body.infj-iphone #food .panel-head h2{font-size:25px!important;}
body.infj-iphone #food .infj-daily-actions{justify-content:flex-start!important;gap:18px!important;}
body.infj-iphone #food #dailyTimeline.day-timeline{margin-top:20px!important;}
body.infj-iphone #food .day-slot{grid-template-columns:44px 34px minmax(0,1fr)!important;gap:5px!important;min-height:74px!important;}
body.infj-iphone #food .day-timeline::before{left:60px!important;}
body.infj-iphone #food .day-time{font-size:11px!important;}
body.infj-iphone #food .day-emoji{font-size:19px!important;}
body.infj-iphone #food .day-annotation{font-size:13px!important;line-height:1.5!important;}
body.infj-iphone #projectGrid .unified-project-card{min-height:270px!important;padding:22px 15px 28px!important;}
body.infj-iphone #projectGrid .unified-project-card .unified-project-header{padding:0 0 15px!important;}
body.infj-iphone #projectGrid .unified-project-card .project-title-and-note{flex-wrap:wrap!important;}
body.infj-iphone #projectGrid .unified-project-card h3{font-size:22px!important;}
body.infj-iphone #projectGrid .unified-project-card .project-stage-track{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px 5px!important;width:100%!important;min-width:0!important;
}
body.infj-iphone #projectGrid .unified-project-card .line-node{min-width:0!important;}
body.infj-iphone #projectGrid .unified-project-card .node-name{font-size:12px!important;overflow-wrap:anywhere!important;}
body.infj-iphone #projectGrid .unified-project-card .one-project-rail-col,
body.infj-iphone #projectGrid .unified-project-card .project-stage-rail{overflow:visible!important;}
body.infj-iphone #projectGrid .unified-project-card .project-delete-corner{position:absolute!important;left:0!important;top:0!important;}
body.infj-iphone #projectGrid .unified-project-card .project-add-top{font-size:24px!important;}
body.infj-iphone .editor-dialog,body.infj-iphone .deadline-dialog{max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 28px)!important;overflow-y:auto!important;}
body.infj-iphone .editor-backdrop .editor-dialog{width:calc(100vw - 20px)!important;}
body.infj-iphone #toast{bottom:calc(95px + env(safe-area-inset-bottom,0px))!important;}
/* Four cropped letters from the supplied INFJ artwork form the whole mobile tab bar. */
#iphoneBottomNav{display:none;}
body.infj-iphone #iphoneBottomNav{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  align-items:center!important;justify-items:center!important;
  position:fixed!important;z-index:850!important;
  left:50%!important;bottom:0!important;transform:translateX(-50%)!important;
  width:100%!important;max-width:500px!important;
  height:calc(82px + env(safe-area-inset-bottom,0px))!important;
  padding:8px 21px calc(8px + env(safe-area-inset-bottom,0px))!important;
  gap:12px!important;background:rgba(255,255,255,.97)!important;
  border-top:1px solid rgba(229,188,196,.55)!important;
}
body.infj-iphone .iphone-nav-letter{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;height:64px!important;
  padding:0!important;border:0!important;background:transparent!important;
  border-radius:0!important;box-shadow:none!important;appearance:none!important;
  opacity:.65!important;transition:opacity .15s ease!important;
}
body.infj-iphone .iphone-nav-letter[aria-current="page"]{opacity:1!important;}
body.infj-iphone .iphone-nav-letter[aria-current="page"]::before{
 content:"";display:block;position:absolute;top:0;left:20%;right:20%;height:2px;background:#c17e92;
}
body.infj-iphone .iphone-nav-letter img{
  display:block!important;height:49px!important;width:auto!important;max-width:100%!important;
  object-fit:contain!important;pointer-events:none!important;user-select:none!important;
}
body.infj-iphone .iphone-nav-letter:focus-visible{outline:2px dashed #be8092!important;outline-offset:1px!important;}
@media(min-width:501px){body.infj-iphone{box-shadow:0 0 0 1px #f3e5e9!important;}}
@media print{
 body.infj-iphone #iphoneBottomNav,body.infj-iphone .iphone-header-controls{display:none!important;}
 body.infj-iphone #stickyBoard .sticky-unit{display:block!important;break-inside:avoid;}
}


/* iPhone V1.1: remove the unused desktop footer divider.
   Its hidden export/import controls remain in the DOM for existing scripts. */
body.infj-iphone footer.infj-footer {
  display:none !important;
  border:0 !important;
  margin:0 !important;
  padding:0 !important;
}

/* V3 cleanup: remove mobile top divider and nav indicator lines for a cleaner screen */
body.infj-iphone #stickyBoard #stickyProjectDivider{display:none!important;border:0!important;height:0!important;margin:0!important;padding:0!important;}
body.infj-iphone #iphoneBottomNav{border-top:0!important;box-shadow:none!important;}
body.infj-iphone .iphone-nav-letter[aria-current="page"]::before{content:none!important;display:none!important;background:transparent!important;}

/* iPhone V4: remove project separator, section counters, and their decorative rules. */
body.infj-iphone #stickyBoard #stickyProjectDivider,
body.infj-iphone #stickyBoard > hr,
body.infj-iphone #stickyProjectZone > hr,
body.infj-iphone #projects > hr{
  display:none!important;
  visibility:hidden!important;
  width:0!important;height:0!important;
  border:0!important;margin:0!important;padding:0!important;
}
body.infj-iphone #today .panel-head .eyebrow,
body.infj-iphone #food .panel-head .eyebrow,
body.infj-iphone #projects .section-heading .label,
body.infj-iphone #stickyBoard .sticky-board-heading .label{
  display:none!important;
}
body.infj-iphone #stickyBoard .sticky-board-heading,
body.infj-iphone #projects > .section-heading{
  border-top:0!important;
  border-bottom:0!important;
  box-shadow:none!important;
}
body.infj-iphone #stickyBoard .sticky-board-heading::before,
body.infj-iphone #stickyBoard .sticky-board-heading::after,
body.infj-iphone #projects > .section-heading::before,
body.infj-iphone #projects > .section-heading::after{
  content:none!important;display:none!important;
}

/* App release adjustments */
#downloadHtmlBtn {display:none!important}
body {overscroll-behavior-y:none}
body.native-app #printBtn {display:none!important}
#appSettings {max-width:440px;width:calc(100% - 32px);border:1px solid #ccd4c8;border-radius:18px;background:#f8f6ef;color:#344438;padding:24px;font:16px/1.7 system-ui}
#appSettings::backdrop {background:#25332566}
#appSettings button {padding:10px 16px;border-radius:10px;border:1px solid #a9b7a4;background:#eef1e8;color:#344438;margin:6px 0}
#appSettings a {color:#486947}
#appStorageStatus {font-size:13px}

body.native-app #androidDownloadLink {display:none!important}

.journal-photos-section{margin:20px 0;padding-top:16px;border-top:1px solid #d7b1bd}.photo-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.photo-heading h4{margin:0}.journal-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:12px}.journal-photo{position:relative;margin:0;aspect-ratio:1}.journal-photo img{width:100%;height:100%;object-fit:cover;border-radius:7px;cursor:pointer}.journal-photo button{position:absolute;top:4px;right:4px;border:0;border-radius:50%;width:26px;height:26px;color:white;background:#222a;font-size:20px}#photoStatus,.calendar-connect p{font-size:12px;line-height:1.6;color:#74626a}.photo-viewer{max-width:94vw;max-height:94vh;border:0;background:#fff;padding:12px;border-radius:12px}.photo-viewer img{display:block;max-width:86vw;max-height:80vh;object-fit:contain}.photo-viewer button{display:block;margin-left:auto;border:0;font-size:26px;background:none}.photo-viewer::backdrop{background:#000a}.calendar-connect{border:1px solid #d8c3cb;border-radius:10px;padding:14px;margin:12px 0}.calendar-connect button{margin:6px 0;width:100%}.calendar-connect legend{font-size:14px;padding:0 5px}.deadline-dialog{max-height:90dvh;overflow:auto}
