:root{--paper:#f7f5ef;--card:#fffefa;--ink:#213b42;--muted:#6f7d7d;--line:#e4e7de;--green:#28675c;--green-soft:#e9f1e8;--sand:#eeeadd;--danger:#9b4037;--radius:18px;--shadow:0 8px 28px #23403705;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.6}button,input,textarea{font:inherit}button,a,input,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #7caa9a;outline-offset:4px}input,textarea{color:var(--ink);border:1px solid #dbe1d8;background:#fffefa;border-radius:10px;min-width:0;max-width:100%;padding:11px 13px;outline:none;transition:border-color .15s,box-shadow .15s}input:focus,textarea:focus{border-color:#719b8a;box-shadow:0 0 0 3px #d9e8de80}textarea{resize:vertical;width:100%;line-height:1.8}input::placeholder,textarea::placeholder{color:#9aa49e}input[type=time],input[type=date]{min-height:44px}input[type=number]{width:100%}label{display:block;font-weight:550;margin-bottom:8px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:30px;font-weight:600;letter-spacing:-.7px;line-height:1.25;margin-bottom:0}h2{font-size:17px;font-weight:600;margin:0}h3{font-size:15px}small{font-size:12px}button{touch-action:manipulation}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.boot{min-height:100vh;display:grid;place-items:center;color:var(--muted)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid var(--line);border-radius:11px;background:var(--card);padding:11px 17px;font-weight:550;line-height:1.4;min-height:44px;transition:background .15s,transform .15s}.button:hover:not(:disabled){background:#f0f3eb}.button:active:not(:disabled){transform:translateY(1px)}.button.primary{background:var(--green);border-color:var(--green);color:white}.button.primary:hover:not(:disabled){background:#20594f}.button.primary span{font-size:18px}.button.small{font-size:13px;padding:8px 12px;min-height:38px}.full-width{width:100%}.text-button{border:0;background:none;color:var(--muted);padding:6px 4px;min-height:38px;font-size:13px}.text-button:hover{color:var(--green)}.icon-button{background:transparent;border:0;font-size:26px;line-height:1;width:40px;height:40px;border-radius:50%;color:var(--muted)}.icon-button:hover{background:var(--green-soft)}.eyebrow{font-size:11px;font-weight:550;letter-spacing:1.8px;color:var(--muted);margin-bottom:10px}.field-hint{font-size:12px;line-height:1.65;color:var(--muted);margin:7px 0 0}.error-text{min-height:1em;color:var(--danger);font-size:13px;margin:10px 0 0}.button-row{display:flex;gap:8px;flex-wrap:wrap}
.login-view{min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:44px 22px;background:radial-gradient(ellipse at 15% 20%,#e9eee2 0,transparent 50%),radial-gradient(ellipse at 90% 90%,#eee8d8 0,transparent 50%),var(--paper)}.login-card{width:100%;max-width:410px;background:#fffefaed;border:1px solid #e4e6db;border-radius:25px;padding:38px 36px 25px;box-shadow:0 16px 75px #293e3808}.brand-mark{font-size:46px;color:var(--green);line-height:1;margin-bottom:24px}.login-card .eyebrow{margin-bottom:7px}.login-card h1{font-size:35px}.login-intro{line-height:1.9;color:var(--muted);margin:19px 0 28px}.login-card form label{font-size:12px}.login-card input{width:100%;margin-bottom:14px;background:#fafbf6}.privacy-line{text-align:center;font-size:11px;letter-spacing:1px;color:#87928b;border-top:1px solid var(--line);padding-top:18px;margin:18px 0 0}.privacy-line span{font-size:7px;color:#83a48d;margin-right:5px}.login-footnote{font-size:12px;color:#91998e;margin:23px 0 0;text-align:center}
.site-header{max-width:1256px;margin:auto;padding:27px 42px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;font-size:18px;font-weight:650;letter-spacing:1px}.brand-symbol{font-size:37px;font-weight:400;color:var(--green);line-height:1}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:2.7px;color:var(--muted);margin-top:0}.header-actions{display:flex;align-items:center;gap:20px}.private-badge{display:flex;gap:6px;align-items:center;color:#718879;font-size:11px}.private-badge span{width:5px;height:5px;border-radius:50%;background:#88a88d}.workspace{display:grid;grid-template-columns:208px minmax(0,1fr);gap:52px;max-width:1200px;margin:0 auto;padding:36px 34px 0}.sidebar{position:sticky;top:25px;align-self:start;max-height:calc(100vh - 45px);display:flex;flex-direction:column;min-height:500px}.new-entry{width:100%;background:var(--green-soft);border-color:#dde7da;color:var(--green);justify-content:flex-start;font-size:13px;gap:12px}.new-entry span{font-size:20px;line-height:1}.history-drawer{margin-top:27px;overflow:auto;max-height:calc(100vh - 310px)}.history-drawer summary{list-style:none;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;padding:0 6px;pointer-events:none}.history-drawer summary::-webkit-details-marker{display:none}.count-badge{font-size:10px;border-radius:20px;background:#eaece3;color:#7f8b7d;padding:1px 8px;font-weight:400}.sidebar-note{font-size:10px;color:#9bA299;margin:7px 6px 17px}.entry-list{display:flex;flex-direction:column;gap:5px}.entry-link{border:1px solid transparent;background:transparent;padding:11px 12px;text-align:left;width:100%;border-radius:11px;color:var(--ink)}.entry-link:hover{background:#eeeee5}.entry-link.active{background:#fffefa;border-color:#e1e6da;box-shadow:var(--shadow)}.entry-link-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:550}.entry-link-top small{font-weight:400;font-size:10px;color:#8c968b}.entry-excerpt{display:block;font-size:10px;color:#949d94;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin-top:3px}.entry-list-empty{color:var(--muted);font-size:12px;padding:14px 6px}.sidebar-bottom{margin-top:30px;padding:21px 6px 0;border-top:1px solid var(--line)}.sidebar-bottom p{color:#909b90;font-size:11px;line-height:1.9;margin-bottom:12px}.export-button{color:#6c8575;font-size:11px}.editor{max-width:800px;min-width:0}.editor-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 25px}.editor-heading .eyebrow{margin-bottom:9px;font-size:10px;letter-spacing:1.5px}.editor-heading h1{font-size:27px}.state-pill{padding:4px 10px;background:var(--sand);color:#8b8b77;border-radius:20px;font-size:10px;white-space:nowrap}.state-pill.saved{background:var(--green-soft);color:#6b8976}.date-bar{display:flex;gap:22px;align-items:center;margin:0 0 26px;padding:0 0 25px;border-bottom:1px solid var(--line)}.date-bar label{font-size:11px;color:var(--muted);margin-bottom:5px}.date-bar input{padding:7px 10px;font-size:13px;background:transparent;border-color:#dfe3d9;min-height:38px}.night-link{display:flex;align-items:center;gap:20px;padding-top:17px}.night-link>span{color:#a3ada0;font-size:21px}.night-link div>span{display:block;font-size:12px}.night-link small{display:block;font-size:10px;color:#9aa297;margin-top:2px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:25px 27px;box-shadow:var(--shadow);margin-bottom:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:17px}.section-heading>div{display:flex;align-items:center;gap:11px}.section-heading h2{font-size:16px}.section-index{font-size:10px;color:#8ba28e;font-weight:550;letter-spacing:.5px}.optional-label{font-size:10px;color:#939d90}.raw-note{border:0;background:#f7f8f2;min-height:155px;padding:15px 17px;font-size:14px;line-height:1.9;border-radius:12px}.raw-note:focus{box-shadow:0 0 0 2px #d8e6d5}.raw-hint{font-size:11px;margin-top:11px;color:#8c998d}.section-description{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 20px}.quick-card .section-heading{margin-bottom:8px}.quick-card .section-description{font-size:11px;margin-bottom:23px}.fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}.field{margin:0;padding:0;border:0;min-width:0}.field.wide{grid-column:1/-1}.field legend{padding:0;margin-bottom:8px;font-size:12px;font-weight:550;width:100%;display:flex;justify-content:space-between;gap:10px}.field>label{font-size:12px;margin-bottom:8px}.field>input{width:100%;font-size:13px;min-height:42px}.field>textarea{font-size:13px;min-height:83px}.field .field-hint{font-size:10px;margin-top:7px}.choices{display:flex;flex-wrap:wrap;gap:7px}.choice{border:1px solid #e2e6dd;background:#fcfcf7;border-radius:8px;color:#7a897c;min-width:39px;min-height:38px;padding:7px 12px;font-size:12px;transition:all .15s}.choice:hover{border-color:#97b398;background:#f1f5ec}.choice[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}.choice.unknown{font-size:10px;border-style:dashed;color:#98a091;padding-left:10px;padding-right:10px}.choice.unknown[aria-pressed=true]{background:#f0f2e9;border-color:#cdd4c5;color:#8b9583}.scale-choices .choice:not(.unknown){flex:1;max-width:52px}.scale-choices{gap:6px}.clear-field{border:0;background:none;font-size:10px;color:#9aa495;padding:0;min-height:18px;line-height:1}.clear-field:hover{color:var(--green)}.status-field .choice{padding:7px 14px;min-height:36px}.status-field .choice.unknown{padding:7px 10px}.details-heading{display:flex;align-items:center;justify-content:space-between;margin:33px 1px 13px}.details-heading h2{font-size:13px}.details-heading span{font-size:10px;color:#929d8f}.detail-groups{display:grid;gap:10px;margin-bottom:22px}.detail-group{border:1px solid var(--line);background:#fbfbf5;border-radius:13px;overflow:hidden}.detail-group>summary{cursor:pointer;list-style:none;padding:17px 20px;display:flex;align-items:center;gap:10px;font-size:13px;font-weight:550}.detail-group>summary::-webkit-details-marker{display:none}.group-icon{width:24px;color:#8eA28e;font-size:17px}.group-title{flex:1}.group-filled{font-size:10px;font-weight:400;color:#8f9a88}.chevron{font-size:13px;color:#9baa94;transition:transform .2s}.detail-group[open] .chevron{transform:rotate(90deg)}.detail-group[open]{background:var(--card)}.detail-group>.fields-grid{padding:8px 22px 24px}.detail-group .field-hint{line-height:1.6}.small-icon{color:#92a58d;font-size:20px}.attachment-card{padding-top:20px;padding-bottom:21px}.attachment-card .section-heading{margin-bottom:6px}.attachment-card h2{font-size:14px}.attachment-card>.field-hint{font-size:11px;margin:0 0 13px}.attachments{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.attachment-item{border:1px solid var(--line);padding:0;background:#f6f7f0;border-radius:10px;overflow:hidden;width:100px;height:126px}.attachment-item img{display:block;object-fit:cover;object-position:top;width:100%;height:100%}.upload-button{font-size:11px;position:relative;min-height:35px;padding:8px 12px;cursor:pointer;margin:0;width:fit-content;border-style:dashed;color:#81937d;background:#fcfdf8}.upload-button.is-disabled{opacity:.5;cursor:default}.upload-button input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;padding:0}.upload-button:focus-within{outline:3px solid #7caa9a;outline-offset:3px}.record-footer{display:flex;justify-content:space-between;align-items:center;color:#a0aa9a;font-size:10px;margin:0 3px 18px}.record-footer .text-button{font-size:10px;color:#8b9b84}.save-bar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 0 max(21px,env(safe-area-inset-bottom));background:#f7f5eff5;backdrop-filter:blur(12px);border-top:1px solid #dfe5d9;z-index:5}.save-bar strong{font-size:12px;font-weight:550;display:block;color:#5d7863}.save-bar small{font-size:10px;color:#9aa591;display:block;margin-top:2px}.save-bar .button{min-width:148px;font-size:13px}.notice{padding:17px 19px;border:1px solid;border-radius:12px;font-size:12px;margin-bottom:18px}.notice p{margin:5px 0 12px}.error-notice{color:var(--danger);background:#fff2ec;border-color:#ecd0c5}.conflict-notice{background:#fff8e5;border-color:#e9d6a0;color:#7d6a36}.conflict-notice .button{background:#fffdf4}.toast{position:fixed;left:50%;bottom:105px;transform:translateX(-50%);padding:11px 18px;border-radius:30px;background:#244a40ee;color:#fff;z-index:50;font-size:12px;max-width:90%;box-shadow:0 4px 22px #21413720;text-align:center}
.modal{border:1px solid var(--line);border-radius:20px;background:var(--card);padding:24px 27px 29px;width:calc(100% - 32px);max-width:440px;color:var(--ink);max-height:85svh;overflow:auto;box-shadow:0 20px 100px #12372925}.modal::backdrop,.image-modal::backdrop{background:#173b3355;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.modal label{font-size:12px;margin:16px 0 6px}.modal input{width:100%;font-size:14px}.modal .section-description{font-size:12px}.modal form .button{margin-top:18px}.read-modal{max-width:650px}.revision-block{margin-top:12px;border:1px solid var(--line);border-radius:12px;overflow:hidden}.revision-block>summary{padding:13px 16px;cursor:pointer;font-size:12px;color:#73836f}.readonly-entry{padding:14px 16px}.raw-readonly{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f6ed;padding:13px;border-radius:9px;font-size:13px;line-height:1.8}.readonly-entry dl{margin:16px 0 0;display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:9px 13px;font-size:12px}.readonly-entry dt{color:var(--muted)}.readonly-entry dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.readonly-entry .field-hint{margin-top:0}.image-modal{padding:40px 10px 10px;border:0;border-radius:12px;background:#f4f7ef;max-width:calc(100vw - 24px);max-height:94svh;overflow:auto}.image-modal .close-dialog{position:absolute;right:0;top:0}.image-modal img{max-width:100%;max-height:calc(94svh - 60px);object-fit:contain;display:block}
@media(min-width:1500px){.workspace{padding-top:45px}.site-header{padding-top:32px;padding-bottom:30px}}
@media(max-width:900px){.site-header{padding:23px 27px}.workspace{grid-template-columns:175px minmax(0,1fr);gap:28px;padding:29px 27px 0}.card{padding:22px}.fields-grid{gap:21px 18px}.choice{min-width:34px;padding:7px 10px}.scale-choices{gap:4px}.field .field-hint{font-size:9px}.header-actions{gap:15px}.editor-heading h1{font-size:24px}.optional-label{font-size:9px}.section-heading{gap:8px}.section-heading h2{font-size:15px}}
@media(max-width:700px){body{font-size:14px}.site-header{padding:17px 20px 16px}.brand{font-size:17px;gap:9px}.brand-symbol{font-size:32px}.brand small{font-size:9px;letter-spacing:2px}.header-actions{gap:15px}.private-badge{display:none}.header-actions .text-button{font-size:12px}.workspace{display:block;padding:17px 18px 0}.sidebar{position:static;min-height:0;max-height:none;display:grid;grid-template-columns:116px minmax(0,1fr);gap:12px;align-items:start;margin-bottom:26px}.new-entry{font-size:11px;padding:9px 11px;gap:7px;min-height:41px;border-radius:10px}.new-entry span{font-size:17px}.history-drawer{margin-top:0;overflow:visible;max-height:none;border:1px solid var(--line);border-radius:10px;background:#fcfcf6;position:relative}.history-drawer summary{pointer-events:auto;cursor:pointer;padding:10px 13px;min-height:40px;font-size:11px}.history-drawer summary:after{content:'⌄';color:#93a18a;margin-left:10px}.history-drawer summary .count-badge{margin-left:auto;font-size:9px}.history-drawer[open]{grid-column:2;grid-row:1;z-index:10}.history-drawer[open] summary:after{content:'⌃'}.history-drawer[open] .entry-list{position:absolute;left:-129px;right:-1px;background:#fffefa;border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 30px #2b493d12;padding:8px;margin-top:6px;max-height:300px;overflow:auto}.sidebar-note,.sidebar-bottom{display:none}.entry-link{padding:11px 12px}.entry-link-top{font-size:12px}.entry-link-top small{font-size:10px}.entry-excerpt{font-size:11px}.editor-heading{margin-bottom:20px}.editor-heading h1{font-size:25px}.editor-heading .eyebrow{font-size:9px;letter-spacing:1.2px;margin-bottom:8px}.state-pill{font-size:9px;padding:3px 9px}.date-bar{margin-bottom:22px;padding-bottom:20px;gap:19px}.date-bar label{font-size:10px}.date-bar input{font-size:12px;padding:6px 9px;min-height:36px;max-width:146px}.night-link{gap:15px;padding-top:16px}.night-link>span{font-size:18px}.night-link div>span{font-size:11px}.night-link small{font-size:9px}.card{border-radius:15px;padding:19px 18px;margin-bottom:17px}.section-heading{margin-bottom:13px}.section-heading>div{gap:8px}.section-heading h2{font-size:14px}.section-index{font-size:9px}.optional-label{font-size:9px}.raw-note{font-size:14px;padding:13px;min-height:165px;border-radius:10px}.raw-hint{font-size:10px;line-height:1.7}.fields-grid{grid-template-columns:1fr;gap:22px}.field.wide{grid-column:auto}.field legend,.field>label{font-size:12px}.field .field-hint{font-size:10px}.scale-choices{gap:8px}.scale-choices .choice:not(.unknown){max-width:none;min-height:40px;font-size:13px}.field>input,.field>textarea{font-size:16px}.choice{font-size:12px}.status-field{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.status-field legend{float:left;margin:0;min-width:120px;width:auto;flex:1}.status-field .choices{gap:6px}.status-field .choice{padding:6px 12px;min-height:34px;font-size:11px}.status-field .choice.unknown{font-size:9px;padding:6px 9px}.quick-card .section-description{font-size:10px;margin-bottom:21px}.quick-card .fields-grid{gap:22px}.quick-card .status-field{padding-top:3px}.details-heading{margin-top:28px;margin-bottom:12px}.details-heading h2{font-size:12px}.details-heading span{font-size:9px}.detail-group>summary{padding:15px 17px;font-size:12px}.group-icon{font-size:16px;width:20px}.group-filled{font-size:9px}.detail-group>.fields-grid{padding:7px 18px 22px}.detail-group .status-field legend{min-width:110px}.attachment-card .section-heading h2{font-size:13px}.record-footer{font-size:9px;margin-bottom:11px}.save-bar{padding:15px 0 max(18px,env(safe-area-inset-bottom));gap:10px}.save-bar strong{font-size:11px}.save-bar small{font-size:9px}.save-bar .button{min-width:132px;font-size:12px;padding:11px 15px;min-height:43px}.save-bar .button span{font-size:16px}.modal{padding:19px 21px 24px}.modal input{font-size:16px}.readonly-entry dl{grid-template-columns:1fr;gap:3px}.readonly-entry dd{margin-bottom:9px}.toast{bottom:94px}.login-card{padding:31px 27px 24px}.login-card input{font-size:16px}}
.record-footer-actions{display:flex;align-items:center;gap:12px}.settings-export{margin-top:25px;padding-top:17px;border-top:1px solid var(--line)}.settings-export .field-hint{font-size:10px;margin-top:2px}.group-note{margin:0 22px 14px;font-size:11px;line-height:1.8;color:var(--muted)}
@media(max-width:700px){.record-footer{flex-wrap:wrap;gap:5px}.record-footer-actions{gap:11px;margin-left:auto}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Three phases, with individual activities kept as structured event cards. */
.phase-tabs{position:sticky;top:0;z-index:8;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px;background:#f7f5eff5;border:1px solid var(--line);border-radius:15px;backdrop-filter:blur(12px);margin-bottom:12px}.phase-tab{border:0;background:transparent;display:grid;grid-template-columns:24px 1fr;column-gap:6px;text-align:left;padding:13px 10px;border-radius:10px;color:#909c8b;min-width:0}.phase-tab[aria-selected=true]{background:var(--card);color:var(--green);box-shadow:0 3px 12px #253f3010}.phase-number{grid-row:1/3;font-size:10px;padding-top:3px;opacity:.65}.phase-tab strong{font-size:13px;font-weight:600;white-space:nowrap}.phase-tab small{font-size:9px;font-weight:400;color:#9aa392;margin-top:4px;white-space:nowrap}.phase-tab[aria-selected=true] small{color:#7e927a}.phase-overview{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:13px 2px 22px}.phase-overview p{font-size:11px;color:var(--muted);margin:0}.phase-overview>span{font-size:10px;color:#8c9b82;white-space:nowrap}.scalar-group{margin-bottom:13px}.scalar-group[open]{margin-bottom:18px}.phase-panel>.scalar-group:last-of-type{margin-bottom:23px}.native-badge{font-size:9px;letter-spacing:.3px;color:#6a896c;background:#edf3e8;border:1px solid #e1e9da;border-radius:20px;padding:2px 7px;white-space:nowrap}.event-category{background:var(--card);border:1px solid var(--line);border-radius:15px;padding:20px 21px;margin-bottom:14px;box-shadow:var(--shadow)}.category-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.category-heading h2{font-size:14px;line-height:1.5}.category-count{font-size:10px;color:#98a08e;white-space:nowrap}.category-complete .category-count{color:#6a8867}.event-category>.status-field{display:block;margin-bottom:12px}.event-category>.status-field>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;float:none;min-width:0}.event-category>.status-field .choices{gap:7px}.event-category>.status-field .choice{min-height:32px;font-size:10px;padding:6px 13px}.event-category>.status-field .choice.unknown{font-size:9px}.category-actions{display:flex;align-items:center;gap:12px;margin-top:11px}.add-event{border-style:dashed;background:#fafbf5;color:#6b8c67;font-size:11px;min-height:34px;padding:7px 12px}.category-actions .field-hint{margin:0;font-size:10px;color:#a3ab9c}.category-hint{font-size:10px;color:#99a18f;line-height:1.7;margin:11px 0 0}.event-list{display:grid;gap:9px}.event-row{border:1px solid #dfe6d8;border-radius:11px;background:#f6f8f0;min-width:0}.event-row>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:13px 14px}.event-row>summary::-webkit-details-marker{display:none}.event-summary{flex:1;min-width:0}.event-summary strong{display:block;font-size:12px;font-weight:550;overflow-wrap:anywhere}.event-summary>span{display:block;font-size:10px;color:#8e9b84;margin-top:4px;line-height:1.7}.event-row[open]{background:#fffefb}.event-row[open]>summary{background:#f2f6eb;border-radius:11px 11px 0 0;border-bottom:1px solid #e6ebdf}.event-row[open]>summary .chevron{transform:rotate(90deg)}.event-body{padding:18px 15px 9px}.event-primary{gap:18px}.event-primary .date-field>.choices{gap:6px}.date-field .choice{font-size:10px;padding:7px 10px}.event-advanced{border-top:1px dashed #e1e7da;margin-top:19px;padding-top:9px}.event-advanced>summary{font-size:10px;color:#8c9c81;cursor:pointer;padding:6px 0 9px}.event-advanced>.fields-grid{margin-top:13px;gap:20px 17px}.event-body .field>label,.event-body .field legend{font-size:11px}.event-body .field>input{font-size:13px;min-height:39px;background:#fffefa;padding:9px 11px}.event-body .field>textarea{font-size:12px}.event-body .field-hint{font-size:9px}.event-body .choice{font-size:10px;padding:6px 8px;min-height:33px;min-width:30px}.event-body .choice.unknown{font-size:9px}.event-body .date-field .choice{font-size:10px;padding:7px 10px}.remove-event{font-size:10px;color:#a18b7c;margin-top:9px}.remove-event:hover{color:#9b5142}.raw-secondary{margin:29px 0 12px;background:transparent;border-style:dashed}.raw-secondary-body{padding:0 20px 20px}.raw-secondary .raw-note{min-height:130px;font-size:13px}.raw-secondary .field-hint{font-size:10px}.legacy-group{margin-bottom:21px;background:transparent}.legacy-group>summary{font-size:11px;font-weight:400;padding:14px 18px;color:#93a08a}.legacy-group .group-note{font-size:10px}.legacy-group>.fields-grid{padding-top:5px}.attachment-wrapper{width:108px;display:flex;flex-direction:column;gap:7px}.attachment-wrapper .attachment-item{width:108px;height:136px}.recognize-button{font-size:10px;padding:6px;min-height:31px;background:#eef4e8;color:#6b8a63;border-color:#dce7d2}.screenshot-first{padding:20px 22px;background:#f0f4e9}.screenshot-first .section-heading h2{font-size:14px}.screenshot-first .upload-button{background:#f8faf3}.readonly-event-title{margin:25px 0 10px;font-size:13px;color:var(--green)}.readonly-event-summary{font-size:12px;font-weight:550;margin-top:13px;margin-bottom:5px}.ocr-modal{max-width:660px}.ocr-date-matched{color:#60835c;border-color:#dbe7d4;background:#f1f7eb}.ocr-date-confirm{display:flex!important;align-items:flex-start;gap:10px;font-size:12px!important;background:#fff7e5;border-radius:8px;padding:12px}.ocr-date-confirm input{width:17px!important;height:17px;flex:0 0 17px;margin-top:2px;accent-color:var(--green)}.ocr-selection-bar{display:flex;justify-content:space-between;gap:12px;margin:12px 0}.ocr-selection-bar .text-button{font-size:11px}.ocr-candidates{display:grid;gap:11px}.ocr-candidate{border:1px solid var(--line);background:#fbfcf6;border-radius:12px;padding:14px 16px}.ocr-candidate-label{display:flex!important;align-items:center;gap:10px;margin:0!important}.ocr-candidate-label strong{font-size:12px;font-weight:550}.ocr-candidate-label input{width:17px!important;height:17px;flex:0 0 17px;margin:0;accent-color:var(--green)}.ocr-comparison{display:grid;grid-template-columns:1fr 1.4fr;gap:20px;margin-top:12px}.ocr-current span{font-size:10px;color:#919e88}.ocr-current strong{display:block;font-size:16px;font-weight:500;margin-top:8px}.ocr-proposed{font-size:10px!important;color:#84957a;margin:0!important}.ocr-proposed input{margin-top:5px;padding:8px 11px;background:white;font-size:14px}.ocr-evidence{font-size:10px;color:#889880;line-height:1.7;margin:10px 0 0;overflow-wrap:anywhere}.ocr-confidence{display:inline-block;font-size:9px;color:#a2ad99;margin-top:4px}.ocr-overwrite-note{font-size:10px;color:#ad8b58;margin:7px 0 0}.ocr-empty{font-size:13px;color:var(--muted);line-height:1.8;padding:15px 0}.ocr-modal>.button{margin-top:12px}.ocr-modal .section-description{font-size:12px}.ocr-modal #ocrWarnings p{font-size:11px;margin:5px 0}
@media(max-width:900px){.phase-tab{grid-template-columns:1fr;padding:11px 6px}.phase-number{display:none}.phase-tab strong{font-size:12px}.phase-tab small{font-size:8px}.phase-overview{gap:10px}.phase-overview p{font-size:10px}.phase-overview>span{font-size:9px}.category-heading h2{font-size:13px}.event-category{padding:18px}}
@media(max-width:700px){.phase-tabs{gap:3px;padding:5px;border-radius:12px;margin-top:-2px}.phase-tab{padding:11px 7px}.phase-tab strong{font-size:12px;letter-spacing:0}.phase-tab small{font-size:8px;margin-top:5px}.phase-overview{margin:13px 1px 19px;flex-wrap:wrap;gap:4px}.phase-overview p{font-size:10px;flex-basis:100%}.phase-overview>span{font-size:9px}.scalar-group{margin-bottom:12px}.event-category{padding:17px 16px;border-radius:13px;margin-bottom:13px}.category-heading{gap:9px;margin-bottom:12px}.category-heading h2{font-size:12px;max-width:72%}.category-count{font-size:9px}.category-hint{font-size:9px}.event-category>.status-field .choice{font-size:10px;min-height:31px;padding:6px 13px}.event-category>.status-field .choice.unknown{font-size:9px}.category-actions .field-hint{font-size:9px}.add-event{font-size:10px;padding:7px 11px}.event-row>summary{padding:12px 11px}.event-summary strong{font-size:11px}.event-summary>span{font-size:9px}.event-body{padding:17px 12px 8px}.event-primary,.event-advanced>.fields-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.event-body .field.wide,.event-body .field:has(textarea),.event-body .field:has(.scale-choices){grid-column:1/-1}.event-body .status-field{display:block;grid-column:1/-1}.event-body .status-field>legend{float:none;margin-bottom:8px;width:100%;min-width:0}.event-body .field>label,.event-body .field legend{font-size:10px}.event-body .field>input,.event-body .field>textarea{font-size:16px;padding:9px;min-height:41px;max-width:100%}.event-body .choice{font-size:10px;padding:6px 8px;min-width:28px}.event-body .status-field .choice{font-size:10px;padding:6px 8px}.event-body .date-field .choice{font-size:9px;padding:7px 8px}.event-body .date-field .choices{gap:5px}.event-body .date-field .choice.unknown{font-size:8px;padding:7px 7px}.event-advanced>summary{font-size:9px;line-height:1.7}.event-advanced .field-hint{font-size:9px}.raw-secondary{margin-top:25px}.raw-secondary>summary{font-size:11px;padding:15px 16px}.raw-secondary-body{padding:0 15px 16px}.raw-secondary .raw-note{font-size:16px}.raw-secondary .field-hint{font-size:9px}.legacy-group>summary{font-size:10px;padding:13px 16px}.legacy-group>.fields-grid{padding:6px 17px 20px}.legacy-group .field>label,.legacy-group .field legend{font-size:11px}.screenshot-first{padding:18px 17px}.screenshot-first .section-heading h2{font-size:13px}.attachment-wrapper{width:98px}.attachment-wrapper .attachment-item{width:98px;height:122px}.recognize-button{font-size:10px}.ocr-modal{padding:19px 17px 23px}.ocr-candidate{padding:13px 12px}.ocr-comparison{gap:15px;grid-template-columns:1fr 1.4fr}.ocr-proposed input{font-size:16px}.ocr-candidate-label strong{font-size:11px}.ocr-date-confirm{font-size:11px!important;line-height:1.7}.native-badge{font-size:8px;padding:2px 6px}}
