:root{--ink:#1d342c;--muted:#617069;--line:#dfe5df;--paper:#fbfcf9;--green:#245c46;--light:#eef3ec;--amber:#94691e;--radius:12px;font-family:-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei",sans-serif;color:var(--ink);font-size:15px;background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{outline-offset:3px}button{border:1px solid var(--green);border-radius:7px;background:var(--green);color:white;padding:10px 16px;cursor:pointer;min-height:42px;transition:background 150ms ease-out}button:disabled{opacity:.42;cursor:not-allowed}button.secondary{background:white;color:var(--ink);border-color:#cbd6ce}button.small{padding:6px 10px;min-height:34px;font-size:13px}button.ghost{background:transparent;color:var(--green);border-color:transparent}a{color:var(--green);text-underline-offset:3px}input,textarea,select{width:100%;padding:11px 12px;border:1px solid #cbd5cc;border-radius:7px;background:white;color:var(--ink);min-height:43px}textarea{line-height:1.7;resize:vertical}input[type=checkbox],input[type=radio]{width:17px;min-height:17px;accent-color:var(--green)}label{display:block;font-weight:550;margin:16px 0 7px}h1{font-size:29px;letter-spacing:-.6px;margin:6px 0 12px;font-weight:650}h2{font-size:19px;margin:0 0 16px}h3{font-size:16px;margin:0 0 12px}p{line-height:1.75;margin:8px 0}small,.muted{color:var(--muted);font-size:13px;line-height:1.7}.app-shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{border-right:1px solid var(--line);padding:28px 18px;background:#f2f5ef;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 24px}.brand-mark{height:39px;width:39px;background:var(--green);border-radius:9px;color:white;display:grid;place-items:center;font-family:Georgia,serif;font-size:22px}.brand strong{font-size:16px}.brand small{display:block;font-size:11px;letter-spacing:1px}.nav{display:flex;flex-direction:column;gap:4px}.nav button{border:0;background:transparent;color:#64756b;text-align:left;padding:12px;font-size:14px}.nav button.active{color:var(--green);background:#e1eadf;font-weight:650}.nav span{display:inline-block;width:27px;opacity:.65}.side-bottom{margin-top:auto;padding:20px 10px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.8}.main{min-width:0}.testbar{padding:10px 36px;border-bottom:1px solid #e4dfce;background:#f7f3e8;color:#746139;font-size:12px;display:flex;gap:14px;align-items:center;justify-content:space-between}.testbar strong{font-weight:650}.topbar{display:flex;justify-content:space-between;align-items:center;padding:22px 36px;border-bottom:1px solid var(--line);gap:18px;background:#fff}.topbar select{max-width:260px;min-height:38px;font-size:13px}.breadcrumb{font-size:13px;color:var(--muted)}.content{max-width:1220px;padding:30px 36px 70px;margin:auto}.heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:25px}.eyebrow{color:var(--green);font-size:12px;letter-spacing:1.3px;font-weight:600}.status{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;background:#e8f0e5;border-radius:6px;color:var(--green);font-size:12px;white-space:nowrap}.status:before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}.card .number{font-size:28px;margin:10px 0 3px;letter-spacing:-1px}.grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,1fr);gap:20px}.panel{margin-bottom:20px}.panel.flat{background:var(--light);border-color:transparent}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:17px}.ruleline{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.hero{background:#e9f0e6;border:1px solid #d7e2d3;padding:26px;border-radius:var(--radius)}.hero h2{font-size:22px;margin-bottom:10px}.steps{display:flex;padding:0;list-style:none;gap:0;margin:25px 0}.steps li{flex:1;padding:14px 8px 0 0;border-top:3px solid #dbe3d8;font-size:12px;color:var(--muted)}.steps li.current{border-color:var(--green);color:var(--green);font-weight:600}.doc{white-space:pre-wrap;line-height:1.95;font-size:15px;max-width:760px;margin:0 auto}.doc-editor{min-height:450px;font-size:15px;line-height:1.95}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:var(--muted);font-weight:500;background:#f6f8f3}th,td{border-bottom:1px solid var(--line);padding:13px 12px;vertical-align:top;line-height:1.7}td pre{white-space:pre-wrap;margin:0;font:inherit;max-width:420px}.warning{border:1px solid #e7d8b4;border-left:3px solid #b99245;border-radius:7px;padding:14px 16px;background:#fffcf4;margin:12px 0;font-size:13px;line-height:1.7}.notice{background:#f1f5ef;border-radius:7px;padding:12px 15px;font-size:13px;color:#50644f;line-height:1.75;margin:12px 0}.empty{border:1px dashed #cfd9cc;border-radius:9px;padding:28px;text-align:center;color:var(--muted);line-height:1.8}.filebox{border:1px dashed #bfcfbe;padding:20px;border-radius:9px;background:#f9fbf7}.filebox input{background:transparent;padding:7px;border:0;min-height:0}.receipt{font-size:12px;font-family:ui-monospace,SFMono-Regular,monospace;word-break:break-all}.field{margin-bottom:23px}.field small{display:block;margin:5px 0 9px}.choices{display:flex;gap:8px 18px;flex-wrap:wrap;margin:10px 0}.choices label{display:flex;align-items:center;gap:6px;font-weight:400;font-size:14px;margin:0}.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.diffdel{color:#9c3a31;background:#fff4f2;padding:12px;border-radius:7px}.diffadd{color:#255b3d;background:#edf6eb;padding:12px;border-radius:7px}.diff{padding:17px 0;border-bottom:1px solid var(--line)}.diff p{white-space:pre-wrap;font-size:13px}.login{min-height:100vh;display:grid;place-items:center;padding:25px;background:#f0f4ed}.login-box{max-width:700px;width:100%;background:white;padding:42px;border:1px solid var(--line);border-radius:17px}.login-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:25px 0}.login-grid button{text-align:left;background:#f6f8f3;color:var(--ink);border-color:var(--line);padding:17px}.login-grid small{display:block;margin-top:5px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#213d2e;color:white;padding:13px 22px;border-radius:9px;max-width:min(90vw,650px);z-index:10;display:none;box-shadow:0 6px 25px #0002;line-height:1.6}#toast.error{background:#854437}.loading{padding:70px;text-align:center;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:13px;padding:28px;max-width:470px}dialog::backdrop{background:#102b2266}.checks{display:grid;grid-template-columns:1fr 1fr;gap:10px}.check{font-size:13px;border:1px solid var(--line);padding:12px;border-radius:7px}.check small{display:block}.badge{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:3px 6px}.source{padding:8px 0;color:var(--muted);font-size:12px}.nowrap{white-space:nowrap}
@media(hover:hover) and (pointer:fine){button:hover{filter:brightness(.95)}.nav button:hover{background:#e7ede3}}
@media(max-width:1000px){.grid{grid-template-columns:1fr}.content{padding:25px}.testbar,.topbar{padding-left:25px;padding-right:25px}.app-shell{grid-template-columns:200px 1fr}.sidebar{padding:24px 12px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{height:auto;position:static;padding:16px;border:0;border-bottom:1px solid var(--line)}.brand{padding:0 0 12px}.nav{flex-direction:row;overflow-x:auto}.nav button{white-space:nowrap;padding:9px;font-size:12px}.nav span{display:none}.side-bottom{display:none}.content{padding:22px 16px 50px}.topbar{padding:15px;flex-wrap:wrap}.topbar select{max-width:100%}.testbar{padding:9px 15px;display:block;font-size:11px}.heading{display:block}.cards{gap:8px}.card{padding:14px}.card .number{font-size:23px}.two,.checks{grid-template-columns:1fr}.panel{padding:17px}.login-box{padding:25px}.login-grid{grid-template-columns:1fr}h1{font-size:25px}.steps li{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.beneficiary-question{border:0;padding:0;min-width:0}.beneficiary-question legend{font-weight:550;padding:0;margin-bottom:5px}.beneficiary-question>small{display:block;margin-bottom:12px}.beneficiary-table{table-layout:fixed}.beneficiary-table th:first-child{width:60%}.beneficiary-table tbody th{font-weight:400;background:transparent}.beneficiary-table label{display:flex;align-items:center;gap:9px;font-weight:400;margin:0}.beneficiary-table input[type=checkbox]{flex-shrink:0}.beneficiary-count{display:flex;align-items:center;gap:8px}.beneficiary-count input{width:100%;max-width:130px;min-width:65px}.beneficiary-table input:disabled{background:#f0f2ed;color:#899389}.beneficiary-table [data-beneficiary-detail]{margin-top:10px;font-size:13px}.beneficiary-legacy{margin-top:12px;font-size:12px;color:var(--muted)}.beneficiary-legacy pre{white-space:pre-wrap;font:inherit;line-height:1.7}

/* Aligned question controls and concise guidance. */
.question-label,.beneficiary-question legend{font-weight:650;font-size:16px;line-height:1.65}.required-mark{display:inline-block!important;font-size:11px!important;font-weight:500;color:#8b6033;margin:0 0 0 8px!important;white-space:nowrap;vertical-align:baseline}.field-guidance{margin:8px 0 5px;font-size:14px;line-height:1.75}.field-hint{margin:4px 0 12px;color:var(--muted);font-size:13px;line-height:1.75}.field-examples{margin:9px 0 14px;border-left:2px solid #dce7d8;padding:4px 0 4px 13px;color:var(--muted);font-size:13px}.field-examples summary{cursor:pointer;color:var(--green)}.field-examples p{margin:10px 0}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px;align-items:start;margin:13px 0}.choice-item{min-width:0;display:flex;align-items:flex-start;gap:8px}.choices .choice-label{display:flex;align-items:flex-start;gap:9px;line-height:1.65;margin:0;flex:1;min-width:0}.choice-label input{flex:0 0 17px;margin-top:4px}.choice-label span{overflow-wrap:anywhere}.supplement-label{font-size:12px;font-weight:500;color:var(--muted);margin:14px 0 6px}.choice-info{position:relative;flex-shrink:0}.info-trigger{width:22px;height:22px;min-height:22px;padding:0;border:1px solid #a5baab;border-radius:50%;background:#f7faf4;color:#4c6c58;font:600 13px/20px Georgia,serif;cursor:help}.info-tooltip{display:none;position:absolute;right:0;bottom:calc(100% + 8px);width:220px;max-width:calc(100vw - 65px);background:#243f30;color:white;font-size:12px;line-height:1.7;padding:12px 14px;border-radius:8px;z-index:15;box-shadow:0 4px 18px #122b2325}.choice-info:hover .info-tooltip,.choice-info:focus-within .info-tooltip,.choice-info[data-open=true] .info-tooltip{display:block}input:disabled{background:#f0f2ed;color:#899389}
.beneficiary-table th:first-child{width:25%}.beneficiary-table th:nth-child(2){width:48%}.beneficiary-table th:nth-child(3){width:27%}.beneficiary-table th,.beneficiary-table td{padding:12px 8px}.beneficiary-table [data-beneficiary-detail]{margin:0;font-size:13px;min-width:0}.beneficiary-detail{display:flex;gap:5px;align-items:center}.beneficiary-remove{width:22px;height:25px;min-height:25px;flex-shrink:0;padding:0!important;font-size:17px!important;border-color:transparent!important;background:transparent!important;color:#718176!important}.beneficiary-count{gap:5px}.beneficiary-count input{min-width:43px;max-width:110px;padding-left:8px;padding-right:5px}.beneficiary-count span{font-size:12px}.beneficiary-add-actions{display:flex;gap:7px;flex-wrap:wrap}.beneficiary-add-actions button{font-size:11px;padding:6px 8px}.beneficiary-table tfoot td{border:0;padding-top:13px}
@media(max-width:560px){.choices{grid-template-columns:1fr;gap:11px}.beneficiary-table th:first-child{width:24%}.beneficiary-table th:nth-child(2){width:49%}.beneficiary-table th:nth-child(3){width:27%}.beneficiary-table th,.beneficiary-table td{padding:10px 6px}.beneficiary-table label{gap:5px;font-size:13px}.beneficiary-table thead th{font-size:12px}.beneficiary-table [data-beneficiary-detail]{padding-left:8px;padding-right:5px}.beneficiary-count input{padding-left:6px}}

.reference-panel{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.reference-panel h3{font-size:15px;line-height:1.7}.optional-mark{font-size:11px;font-weight:400;color:var(--muted);margin-left:7px;white-space:nowrap}.reference-list{list-style:none;padding:0;margin:16px 0}.reference-list li{padding:11px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.reference-list small{display:block;margin-top:3px}
.choice-info[data-dismissed=true] .info-tooltip{display:none}
fieldset.field{border:0;padding:0;min-width:0;margin-left:0;margin-right:0}.field>.question-label{margin:0 0 9px;padding:0}.field{margin-bottom:30px}.field-hint{margin:0 0 11px}.selection-hint{font-size:11px;font-weight:400;color:var(--muted);margin-left:10px;white-space:nowrap}.choice-with-detail{grid-column:1/-1;display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;gap:12px}.choices .choice-with-detail .choice-label{align-items:center}.choice-with-detail .choice-label input{margin-top:0}.choice-detail-input{margin:0;font-size:13px;min-width:0}.choice-detail-input[aria-invalid=true]{border-color:#b4604f;box-shadow:0 0 0 1px #b4604f}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.no-category{display:inline-block;padding:10px 0;color:#9ba79c}.field-examples pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
@media(max-width:560px){.choice-with-detail{grid-template-columns:80px minmax(0,1fr);gap:10px}.choice-detail-input{padding:10px 8px;font-size:12px}.field{margin-bottom:26px}}
.course-time,.funding-scheme{border:0;min-width:0;padding:0;margin:22px 0 4px}.course-time{border-top:1px solid var(--line);padding-top:18px}.course-time legend,.funding-scheme legend,.form-subheading{font-size:14px;font-weight:600;padding:0;margin:0 0 10px}.course-time legend{padding-right:10px}.course-table{table-layout:fixed}.course-table th:first-child{width:18%}.course-table th:nth-child(2){width:44%}.course-table th:nth-child(3),.course-table th:nth-child(4){width:19%}.course-table th,.course-table td{padding:10px 7px;vertical-align:middle}.course-table th label{display:flex;gap:6px;align-items:center;font-weight:400;margin:0}.course-table input{min-width:0;font-size:12px;padding:10px 7px}.course-table input[type=checkbox]{flex-shrink:0}.course-time .actions{margin-top:10px}.funding-scheme{margin:0 0 20px}.funding-scheme .choices{grid-template-columns:1fr}.form-subheading{margin-top:5px}.course-table .ghost{font-size:11px;min-height:26px;padding:0 6px}
@media(max-width:560px){.course-table thead{display:none}.course-table tbody{display:block}.course-table tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:8px;padding:9px;margin-bottom:10px;gap:9px}.course-table th,.course-table td{border:0;padding:0;display:block;width:auto!important}.course-table th:first-child,.course-table td:nth-child(2){grid-column:1/-1}.course-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:5px}.course-table th label{font-weight:550}.course-table input{font-size:13px}.course-table th:first-child{display:flex;align-items:center;justify-content:space-between}.funding-scheme .choice-label span{overflow-wrap:normal}}
.products-table,.evaluation-table{table-layout:fixed}.products-table th:first-child{width:42%}.products-table th:nth-child(2){width:54%}.products-table th:last-child{width:4%}.products-table th,.products-table td,.evaluation-table th,.evaluation-table td{padding:11px 7px;vertical-align:middle}.products-table textarea{font-size:13px;min-width:0;margin:0}.evaluation-table th:first-child{width:6%}.evaluation-table th:nth-child(2){width:34%}.evaluation-table th:nth-child(3){width:28%}.evaluation-table th:nth-child(4){width:32%}.evaluation-table input{font-size:12px;min-width:0;margin:0;padding:10px 7px}.evaluation-method{display:flex;align-items:center;gap:8px;min-width:0;font-weight:400;color:var(--ink)}.evaluation-method>input{flex:1}.field>.course-time{margin-top:8px}.course-time+.form-subheading{margin-top:22px}
.evaluation-method>.choice-info{margin-left:auto}
@media(max-width:560px){.products-table thead,.evaluation-table thead{display:none}.products-table tbody,.evaluation-table tbody{display:block}.products-table tr,.evaluation-table tr{display:grid;border:1px solid var(--line);border-radius:8px;padding:10px;margin:0 0 11px;gap:10px}.products-table tr{grid-template-columns:1fr}.products-table th,.products-table td,.evaluation-table th,.evaluation-table td{display:block;width:auto!important;border:0;padding:0;background:transparent}.products-table td[data-label]::before,.evaluation-table [data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;font-weight:400;margin-bottom:5px}.products-table td:last-child{justify-self:end}.evaluation-table tr{grid-template-columns:24px minmax(0,1fr)}.evaluation-table tr>td:first-child{padding-top:23px}.evaluation-table td[data-label]{grid-column:1/-1}.evaluation-table input{font-size:13px}.evaluation-method{align-items:center;flex-wrap:nowrap}}

/* Preview controls live outside the product frame. */
body{padding-bottom:76px}.product-frame{min-height:calc(100vh - 76px)}.content{max-width:1180px}.heading>h1{font-size:25px;margin:0}.project-context{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:22px 0 26px;padding:0 0 24px;border-bottom:1px solid var(--line)}.project-context h2{font-size:30px;line-height:1.3;margin:8px 0 0;letter-spacing:-.5px}.customer-context{display:flex;flex-direction:column;gap:6px;text-align:right}.customer-context strong{font-size:23px}.customer-context span{color:var(--muted);font-size:15px}.payment-summary{padding:18px;border:1px solid var(--line);border-radius:9px}.payment-title{display:flex;gap:12px;justify-content:space-between;align-items:center}.date-list{margin:18px 0 0}.date-list>div{display:flex;justify-content:space-between;gap:16px;padding:9px 0}.date-list dt{font-size:13px;color:var(--muted);flex-shrink:0}.date-list dd{margin:0;text-align:right;font-weight:550;overflow-wrap:anywhere}.service-dates{margin-top:22px;padding:10px 20px 18px;background:var(--light);border-radius:9px}.service-dates .expiry{border-top:1px solid #ccdacc;margin-top:8px;padding:18px 0}.expiry dt{font-size:15px;color:var(--ink);font-weight:600}.expiry dd{font-size:18px;color:var(--green)}.service-dates details{font-size:13px;color:var(--muted)}.schedule-editor{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.schedule-editor summary{cursor:pointer;font-weight:600}.schedule-editor label{margin-top:16px}.schedule-editor>input{max-width:240px;margin-bottom:14px}.schedule-edit-table{table-layout:fixed;min-width:560px}.schedule-edit-table th:nth-child(1){width:35%}.schedule-edit-table th:nth-child(2){width:22%}.schedule-edit-table th:nth-child(3){width:28%}.schedule-edit-table th:nth-child(4){width:15%}.schedule-edit-table th,.schedule-edit-table td{padding:10px 7px}.schedule-edit-table input{padding:9px 7px;font-size:13px;min-width:0}.schedule-table td:last-child{white-space:nowrap}.preview-dock{position:fixed;z-index:30;bottom:0;left:0;right:0;color:#f0f4f1;background:#253a31;box-shadow:0 -2px 18px #1b302c20;border-top:1px solid #4b6256;font-size:13px}.preview-dock>summary{display:flex;gap:20px;align-items:center;cursor:pointer;padding:16px 24px;list-style:none;min-height:58px}.preview-dock>summary::after{content:'展開';margin-left:auto;color:#c2d3c8}.preview-dock[open]>summary::after{content:'收起'}.preview-dock>summary strong{font-size:14px}.preview-dock>summary span{color:#c2d3c8}.preview-body{max-height:45vh;overflow:auto;border-top:1px solid #4b6256;padding:0 24px 18px;max-width:none}.preview-body>p{max-width:980px}.preview-body>select{max-width:380px}.preview-body .muted{color:#c2d3c8}.preview-body .notice{color:var(--ink)}.preview-body label{color:#e1ece5}.preview-body .ruleline{border-color:#4b6256}#toast{bottom:80px}
@media(max-width:700px){.project-context{align-items:flex-start;flex-direction:column;gap:14px}.project-context h2{font-size:27px}.customer-context{text-align:left;flex-direction:row;align-items:baseline;gap:14px;flex-wrap:wrap}.customer-context strong{font-size:21px}.date-list>div{flex-wrap:wrap;gap:4px}.date-list dd{text-align:left}.service-dates{padding:10px 14px 16px}.preview-dock>summary{padding:14px 16px;gap:12px}.preview-dock>summary span{font-size:11px}.preview-body{padding:0 16px 16px}.schedule-panel .heading{align-items:flex-start;gap:10px;flex-wrap:wrap}}

/* Cross-project management and dated work schedules. */
.portfolio-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:24px 0}.portfolio-stats .card{padding:18px 15px}.portfolio-stats .number{font-size:30px;margin:8px 0 0}.portfolio-filters{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:18px;align-items:end;margin-bottom:20px}.portfolio-filters label{margin:0 0 7px}.portfolio-table{table-layout:fixed;font-size:13px}.portfolio-table th:nth-child(1){width:25%}.portfolio-table th:nth-child(2){width:18%}.portfolio-table th:nth-child(3){width:20%}.portfolio-table th:nth-child(4){width:9%}.portfolio-table th:nth-child(5){width:15%}.portfolio-table th:nth-child(6){width:13%}.portfolio-table td,.portfolio-table th{padding:16px 9px;overflow-wrap:anywhere}.project-link{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-height:0;background:transparent;color:var(--green);border:0;padding:0;text-align:left}.project-link strong{font-size:16px}.project-link small{color:var(--muted);font-weight:400}.project-link:hover strong{text-decoration:underline}.portfolio-customer{margin-top:9px;color:var(--muted);font-size:12px;line-height:1.6}.portfolio-note{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:7px;font-weight:400}.phase-label{font-weight:600;line-height:1.6}.overdue{color:#9d432e!important}.portfolio-table .badge{white-space:normal}.payment-details{margin:16px 0}.payment-details label{margin-top:14px}.payment-summary p{margin:12px 0}.inline-check{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:400;margin:8px 0!important}.inline-check input{width:16px;height:16px;min-height:0;flex-shrink:0}.schedule-edit-table{min-width:720px}.schedule-edit-table th:nth-child(1){width:32%}.schedule-edit-table th:nth-child(2){width:18%}.schedule-edit-table th:nth-child(3){width:24%}.schedule-edit-table th:nth-child(4){width:16%}.schedule-edit-table th:nth-child(5){width:10%}.schedule-edit-table select{font-size:12px;padding:9px 5px}.schedule-table td:first-child{min-width:160px}.schedule-table td:last-child{white-space:nowrap}.schedule-table td:nth-child(3){white-space:nowrap}.doc-section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;white-space:pre-wrap}.doc-section-title button{font-family:inherit;font-size:11px;min-height:28px;padding:3px 7px;flex-shrink:0}.import-result{margin:16px 0}.import-result textarea{font-size:12px}.import-result summary{cursor:pointer}.portfolio-table-wrap{overflow:auto}
@media(max-width:1200px){.portfolio-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.portfolio-table{min-width:860px}}
@media(max-width:700px){.portfolio-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.portfolio-stats .card{padding:14px}.portfolio-filters{grid-template-columns:1fr;gap:12px}.portfolio-table{min-width:0}.portfolio-table thead{display:none}.portfolio-table tbody{display:block}.portfolio-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--line);border-radius:8px;padding:14px;margin-bottom:14px}.portfolio-table td{display:block;border:0;padding:0}.portfolio-table td:first-child,.portfolio-table td:nth-child(2),.portfolio-table td:nth-child(3){grid-column:1/-1}.portfolio-table td:nth-child(n+2)::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.portfolio-table td:last-child{grid-column:1/-1}.portfolio-table td:last-child small br{display:none}.portfolio-table td:last-child small{display:flex;gap:10px;flex-wrap:wrap}.portfolio-table .project-link strong{font-size:19px}.portfolio-table .project-link small{font-size:11px}.schedule-table{min-width:540px}.schedule-panel>.heading{align-items:flex-start}.content>.heading{gap:12px;flex-wrap:wrap}.doc-section-title{align-items:flex-start}}

.inline-payment-editor{margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}.member-search{border-top:1px solid var(--line);margin-top:24px;padding-top:12px}.member-search>input{max-width:420px}.member-result{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--line)}.member-result small{display:block;margin-top:5px}.lead-card p{margin:8px 0}.schedule-editor>p:first-child{margin-top:0}

.form-question-preview{padding-left:22px}.form-question-preview>li{padding:14px 0;border-bottom:1px solid var(--line)}.form-question-preview p{margin:7px 0}#email-identity input{max-width:440px}#email-identity select{font-size:13px}

.edb-text{white-space:pre-wrap;overflow-wrap:anywhere}
/* Project identity and service records share one readable date scale. */
.project-context{margin-top:10px}.project-context h2{font-size:32px}.context-page{font-size:14px;color:var(--muted);margin:8px 0 0}.section-gap{margin-top:28px}.date-value,.date-list dd,.service-expiry strong{font-size:15px;line-height:1.6;font-weight:550}.delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:20px;background:var(--light);border-radius:8px}.delivery-grid h4{font-size:14px;margin:0 0 12px}.service-expiry{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.project-switch{position:relative;min-width:160px}.project-switch>summary{cursor:pointer;text-align:right}.project-switch[open]{z-index:10}.project-switch[open] input,.project-switch[open] select{min-width:350px}.portfolio-table th:first-child{width:25%}.portfolio-table th:last-child{width:20%}.project-link strong{font-size:18px;line-height:1.4}.portfolio-customer{font-size:13px}.portfolio-table td:last-child{line-height:1.9}.preview-invite{padding:12px 24px;background:#253a31;color:white}.preview-invite a{color:white}
@media(max-width:700px){.delivery-grid{grid-template-columns:1fr}.project-switch[open] input,.project-switch[open] select{min-width:0;width:100%}.project-context h2{font-size:26px}.service-expiry{flex-wrap:wrap}}

/* Shared project context and native control alignment. */
.portfolio-filters{align-items:start}.portfolio-filters>div{min-width:0}.portfolio-filters label{line-height:22px;min-height:22px}.portfolio-filters input,.portfolio-filters select{display:block;height:44px;min-height:44px;margin:0;line-height:20px;padding:11px 12px}
.account-identity{display:flex;flex-direction:column;gap:4px;padding-bottom:70px}.account-identity strong{font-size:14px;color:var(--ink);font-weight:600}.account-identity span{font-size:12px}
.project-context{display:block;margin:0 0 20px;padding:0 0 20px}.project-number{font-size:12px;color:var(--muted);letter-spacing:.8px;margin-bottom:8px}.project-context h1{font-size:28px;line-height:1.45;margin:0;letter-spacing:-.4px}.title-divider{font-weight:400;color:#91a298}.project-client{font-size:13px;color:var(--muted);margin:9px 0 0}.project-client>span{padding:0 5px}.section-label{display:inline-flex;gap:12px;align-items:center;font-size:13px;font-weight:500;padding:10px 14px;margin:0 0 24px;border:1px solid #ced9ce;border-radius:7px;color:var(--muted);background:#f4f7f1}.section-label span{font-size:16px;font-weight:600;color:var(--ink)}.edb-dates{display:block;margin:16px 0}.edb-dates p{margin:6px 0}.edb-actions{margin:16px 0 6px}
@media(max-width:720px){.sidebar .account-identity{display:flex;padding:12px 0 0;margin-top:12px;flex-direction:row;align-items:center;justify-content:space-between}.project-context h1{font-size:23px}.project-client{line-height:1.8}.section-label{margin-bottom:20px}}

.intake-readonly{border:0;margin:0;padding:0;min-width:0}.intake-readonly [data-act]{display:none}.intake-readonly input:disabled,.intake-readonly textarea:disabled,.intake-readonly select:disabled{color:var(--ink);opacity:1;-webkit-text-fill-color:var(--ink);background:#f6f8f3}

.submission-warning{padding:12px 15px;border-left:3px solid #a5792d;background:#fbf6e9;line-height:1.7;margin:22px 0 12px}.recorded-answer{padding:13px 16px;background:#f3f6f0;border-radius:7px}.edb-upload-actions{margin-top:24px!important}.edb-published-response{margin:24px 0;padding:22px;border:1px solid #cbd9cd;border-radius:9px}.edb-reply{margin:0 0 20px;padding:0 0 20px;border-bottom:1px solid var(--line)}.edb-reply h3{font-size:16px;margin:0 0 10px}.edb-answer{border-left:3px solid #6e9474;padding:10px 15px;background:#f3f7f1;margin-top:14px}.edb-document{margin-top:22px}.edb-download{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:13px 20px;background:var(--green);color:white!important;border-radius:7px;font-weight:650;text-decoration:none;line-height:1.6;margin:10px 0;max-width:100%;overflow-wrap:anywhere}.edb-download.reference-download{background:#eef3ec;color:var(--green)!important;border:1px solid #afc2b0}.edb-editor{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}.edb-response-row{padding:16px;margin:16px 0;border:1px solid var(--line);border-radius:8px}.edb-history{margin:20px 0}.edb-history article{margin:16px 0;padding:16px;border-left:2px solid var(--line)}

.edb-waiting{padding:20px;margin:22px 0;background:#f4f6f1;border-left:3px solid #9eb49f;border-radius:4px}.edb-waiting h3{margin:0 0 9px;font-size:16px}.edb-waiting p{margin:0;line-height:1.8}.edb-published-response>.actions{margin:18px 0 24px}.edb-document{border-top:1px solid var(--line);padding-top:14px}

.account-email{font-size:12px;overflow-wrap:anywhere;line-height:1.6;color:var(--muted)}.empty-intake{padding:24px 0;color:var(--muted);line-height:1.8}

#followup-copy{width:min(880px,92vw);max-height:90vh;overflow:auto}#followup-copy textarea{width:100%;line-height:1.7;min-height:300px;resize:vertical}

.lead-fields{border:0;padding:0;margin:0;min-width:0}
.schedule-plan-settings{margin:18px 0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.schedule-plan-settings>summary{cursor:pointer;font-size:15px;font-weight:650;color:var(--ink)}.schedule-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 22px;margin:18px 0}.schedule-plan-grid>div{min-width:0}.schedule-plan-grid label{margin:0 0 7px}.schedule-plan-grid :is(input,select){display:block;width:100%;height:44px;min-height:44px;margin:0}.schedule-meta{margin:18px 0}.schedule-meta p{margin:8px 0}.schedule-group th{padding:12px!important;font-size:14px;font-weight:650;text-align:left;color:var(--green);background:var(--light)}@media(max-width:600px){.schedule-plan-grid{grid-template-columns:1fr;gap:14px}.schedule-plan-settings{margin:16px 0}}

.schedule-date-label{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 5px}.schedule-panel input[readonly]{background:var(--light);color:var(--ink)}

/* Local schedule processing controls */
.schedule-hold-panel{margin:20px 0;padding:18px;border:1px solid var(--line,#d7e1ec);border-radius:12px;background:var(--surface,#fff)}
.schedule-hold-panel h3{margin-top:0}.schedule-hold-fields{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,220px) auto;gap:16px;align-items:end}.schedule-hold-fields label{display:block;margin-bottom:6px}.schedule-hold-fields .actions{margin:0;align-self:end}.schedule-hold-fields input,.schedule-hold-fields select{width:100%;min-height:44px}.schedule-hold-panel .muted{margin-bottom:14px}
@media(max-width:700px){.schedule-hold-fields{grid-template-columns:1fr}.schedule-hold-fields .actions button{width:100%}}

.schedule-date-basis{font-size:12px;color:var(--muted,#526275);margin-top:8px}.schedule-date-basis summary{cursor:pointer}.schedule-date-basis p{max-width:220px;line-height:1.6;margin:8px 0;overflow-wrap:anywhere}

#school-questionnaire-preview{box-sizing:border-box;width:min(1080px,calc(100% - 24px));max-width:none;max-height:90vh;max-height:90dvh;padding:clamp(16px,3vw,32px);overflow:auto}
#school-questionnaire-preview .preview-attachments{min-width:0;border:0;margin:0;padding:0}
