:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#172a3b;background:#eef2f4;font-size:16px;line-height:1.5}*{box-sizing:border-box}body{margin:0}header{background:#142a3a;color:white;padding:20px max(24px,calc((100vw - 1300px)/2));display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;color:inherit;font-size:25px;font-weight:750;line-height:1.1}.brand small{display:block;font-size:12px;font-weight:500;letter-spacing:2px;text-transform:uppercase;margin-top:6px;color:#b4c5d0}.brand-icon{color:#edbd70;font-size:40px}main{max-width:1348px;margin:auto;padding:38px 24px}.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:8px 0 32px}.eyebrow{font-size:12px;font-weight:750;letter-spacing:1.8px;color:#53727d}h1{font-size:clamp(28px,3vw,42px);line-height:1.16;letter-spacing:-1.2px;margin:12px 0}h2{font-size:22px;line-height:1.3;margin:0 0 18px}h3{font-size:25px;line-height:1.2;margin:16px 0}.hero p{color:#526675;margin:14px 0}.stamp{border-left:2px solid #d3ab66;padding:4px 25px;white-space:nowrap}.stamp strong{font-size:43px;line-height:1.1;display:block}.stamp span,.stamp small{display:block}.stamp small{font-size:13px;color:#607583}.workspace{display:grid;grid-template-columns:360px minmax(0,1fr);gap:24px;align-items:start}.panel{background:white;border:1px solid #dbe2e6;border-radius:16px;padding:26px;box-shadow:0 4px 18px #142a3a05;margin-bottom:24px}.main-panel{padding:30px}.event-list{display:grid;gap:9px;margin:0 0 24px}.event{border:1px solid #dce4e8;border-radius:9px;padding:13px;text-decoration:none;color:inherit;overflow-wrap:anywhere}.event.active{background:#edf5f5;border-color:#4f8085;box-shadow:inset 3px 0 #275d65}.event strong,.event small{display:block}.event small{color:#617482;font-size:13px;margin-top:5px}summary{cursor:pointer;font-weight:700;color:#234f5b;padding:8px 0}details[open] summary{margin-bottom:18px}label{display:block;font-size:14px;font-weight:650}input,textarea,select{width:100%;display:block;margin:7px 0 0;border:1px solid #c7d2d9;background:#fff;padding:11px 12px;border-radius:7px;font:inherit;color:#172a3b;min-height:45px}input[type=color]{padding:4px}input[type=file]{font-size:13px}textarea{resize:vertical}input:focus,textarea:focus,select:focus{outline:3px solid #76b5c250;border-color:#377989}button,.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:8px;padding:12px 16px;background:#1d5964;color:#fff;font:inherit;font-size:14px;font-weight:700;text-decoration:none;cursor:pointer;text-align:center}button:hover,.button:hover{filter:brightness(.95)}button:focus-visible,.button:focus-visible{outline:3px solid #dbab5b;outline-offset:3px}.secondary{background:#f1f6f7;border-color:#d0e0e2;color:#205561}.quiet{background:transparent;color:#dfe9ed;border-color:#4d6677;padding:8px 15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.wide{grid-column:1/-1}.hint{font-size:13px;color:#627482;font-weight:400;margin:0}.muted{color:#657785}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-heading h2{margin:6px 0}.ticket-preview{margin:26px 0 12px;border:1px solid #d7e2e4;border-radius:11px;overflow:hidden;padding:0 24px 20px;background:linear-gradient(120deg,#fff,#f6f9fa)}.ticket-preview>span{display:block;background:#184c58;color:white;margin:0 -24px;padding:10px 24px;font-size:12px;letter-spacing:2px;font-weight:750}.ticket-preview p{color:#58707e}.ticket-preview>div{display:flex;justify-content:space-between;gap:15px;margin-top:24px;padding-top:14px;border-top:1px dashed #b8c8cd;font-size:13px}.ticket-preview b{white-space:nowrap}.main-panel>h2{margin-top:30px}.batch{padding:16px 0;border-top:1px solid #e2e8eb;display:flex;justify-content:space-between;gap:15px;align-items:center}.batch small{display:block;color:#657785;margin-top:5px;font-size:13px}.print-help ol{padding-left:22px}.print-help li{padding-bottom:9px}.login{max-width:520px;margin:45px auto}.login label{margin:25px 0 18px}.login button{width:100%}.login .muted{font-size:13px}.alert,.success{background:#fff0eb;border:1px solid #e0a392;padding:16px 20px;border-radius:9px;margin-bottom:24px}.success{background:#eaf8ed;border-color:#94c5a2}footer{color:#6b7b86;text-align:center;font-size:13px;padding:12px 24px 28px}.empty{padding:70px 15px;max-width:530px;margin:auto}.print-help{margin-top:0}@media(max-width:1000px){.workspace{grid-template-columns:300px minmax(0,1fr)}.section-heading,.batch{align-items:flex-start;flex-direction:column}.panel,.main-panel{padding:22px}.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}}@media(max-width:760px){main{padding:24px 16px}.workspace{grid-template-columns:1fr}.hero{align-items:flex-start}.stamp{display:none}.ticket-preview>div{flex-direction:column}.login{margin:20px auto}.brand{font-size:22px}header{padding:17px 20px}}

.check{display:flex;align-items:center;gap:10px;font-weight:400}.check input{display:inline-block;width:18px;min-height:18px;margin:0;flex-shrink:0}
.print-summary{display:flex;gap:22px;align-items:center;border:1px solid #d3e1e5;border-radius:10px;background:#f4f8f9;padding:18px}.print-summary p{font-size:14px;margin:5px 0;color:#4d6573}.print-summary small{color:#4d6573;font-size:13px}.sheet-grid{width:80px;aspect-ratio:210/297;flex-shrink:0;display:grid;border:1px solid #b4c5cc;padding:4px;background:white;gap:2px}.sheet-grid span{display:flex;justify-content:center;align-items:center;background:#d5e9eb;color:#225663;border:1px solid #a0c1c7;font-size:11px}.sheet-grid .vacant{background:#f3f4f5;color:#a1adb3}

[hidden]{display:none!important}
.image-controls{margin:0;border:1px solid #dce3e8;border-radius:10px;padding:14px;min-width:0}
.image-controls legend{font-weight:700;padding:0 5px}
.image-controls label{display:block;margin-top:10px}
.image-controls output{float:right;font-weight:400}
.image-controls input[type=range]{padding:0;width:100%;accent-color:#184c58}
.saved-image{display:block;max-width:100%;max-height:150px;margin:8px auto;object-fit:contain}
.ai-design{border:1px solid #dce3e8;border-radius:10px;padding:14px}
.ai-design textarea{width:100%;box-sizing:border-box}
.ai-design p{line-height:1.5}

.organizer-panel{margin-bottom:24px}
.inline-form{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap}
.inline-form label{flex:1;min-width:220px}
.table-scroll{overflow-x:auto;margin:18px 0}
table{border-collapse:collapse;width:100%;font-size:.9rem}
th,td{text-align:left;padding:12px 10px;border-bottom:1px solid #dce3e8;vertical-align:top}
th{color:#184c58;background:#f2f6f8}
td small{display:block;color:#66717d;margin-top:5px}
.handover-item{padding:15px;border:1px solid #dce3e8;border-radius:10px;margin-top:14px}
.document-links{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}
.document-links .button{font-size:.85rem;padding:10px 14px}
.settlement-summary{background:#edf5f2;padding:12px 16px;border-radius:10px;margin:15px 0}
#image-pixel-guide table{font-size:.8rem;min-width:450px}
.editor-image-preview{margin:12px 0 18px}.image-preview-stage{min-height:160px;display:flex;align-items:center;justify-content:center;padding:14px;background:repeating-conic-gradient(#eff2f4 0% 25%,#fff 0% 50%) 50%/20px 20px;border:1px solid #d8e1e6;border-radius:9px}.image-preview-stage .saved-image{display:block;width:auto;max-width:100%;max-height:220px;object-fit:contain;margin:0}.image-preview-stage p{padding:15px;font-size:14px;color:#536c78;text-align:center}.editor-image-preview figcaption{font-size:13px;color:#536c78;margin-top:8px;overflow-wrap:anywhere}.draft-preview-controls{border:1px solid #cbdfe3;padding:16px;border-radius:10px;background:#f1f7f8}.draft-preview-controls h3{font-size:18px;margin:0 0 10px}.draft-preview-controls label{margin-top:14px}.draft-preview-controls button{width:100%;margin-top:18px}.pdf-preview-panel{padding-bottom:24px;margin-bottom:26px;border-bottom:1px solid #dce5e9;scroll-margin-top:20px}.pdf-preview-panel h2{margin:6px 0 10px}.pdf-preview-panel[aria-busy=true]{opacity:.8}.pdf-preview-panel iframe{width:100%;height:720px;border:1px solid #d5dfe5;border-radius:10px;margin:14px 0;background:#e6ebee}.preview-links{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0}.preview-stale{background:#fff5d9;color:#74531e;padding:11px 14px;border-radius:8px;font-size:14px}[hidden]{display:none!important}@media(max-width:760px){.pdf-preview-panel iframe{height:560px}}
.guide-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 24px}.guide-bar span{font-size:14px;color:#536b79}.help-field{position:relative;min-width:0}.help-field>label{padding-right:30px}.help-field output{margin-right:0}.info-button{position:absolute;right:0;top:0;border-radius:50%;padding:0;width:24px;height:24px;line-height:1;font-size:15px;font-family:Georgia,serif;font-weight:700;background:#e5f0f3;color:#24576a;border:1px solid #b0cbd4}.help-dialog{border:1px solid #c5d4dc;border-radius:14px;padding:26px;max-width:min(560px,calc(100vw - 32px));color:#172a3b;box-shadow:0 20px 80px #0003}.help-dialog::backdrop{background:#142a3a77}.help-dialog .section-heading{align-items:center}.help-dialog h2{font-size:22px;margin:0}.help-dialog p{margin-bottom:0}.manual-dialog{width:1000px;max-width:calc(100vw - 32px)}.manual-dialog iframe{width:100%;height:65vh;border:1px solid #d8e2e8;border-radius:8px;margin-top:16px}.validation-feedback{border:1px solid #d6c796;border-radius:10px;padding:16px;background:#fff9e9;margin:12px 0}.validation-feedback h3{font-size:17px;margin:0 0 8px}.validation-feedback p{font-size:14px;margin:8px 0}.validation-feedback ul{padding-left:20px;margin:8px 0}.validation-feedback li{font-size:14px;margin:6px 0}.error-list{color:#8c2530}.note-list{color:#5c645a}.field-link{padding:0;display:inline;background:none;border:0;text-align:left;color:inherit;font-size:14px;font-weight:500;text-decoration:underline;text-underline-offset:3px}.field-error{display:block;color:#9b2935;font-size:13px;font-weight:500;margin-top:6px}[aria-invalid=true]{outline:2px solid #b53b49;border-color:#b53b49}.manual-page main{max-width:1000px}.manual-page h2{margin-top:32px}.manual-page table{width:100%}@media print{.manual-page{background:#fff;font-size:11pt}.manual-page main{padding:0;max-width:none}.manual-page .panel{padding:0;border:0;box-shadow:none}.manual-page button{display:none}.manual-page h2{break-after:avoid}.manual-page table,.manual-page li{break-inside:avoid}}
.batch-record{border-top:1px solid #dce4e8;padding:2px 0 16px}.batch-record .batch{border:0}.batch-delete{margin-top:6px}.batch-delete summary{color:#9b3440;font-size:14px}.batch-delete p,.deletion-scope li{font-size:14px}.batch-delete .check{margin:16px 0;align-items:flex-start}.deletion-scope{background:#fff2ed;border:1px solid #e7c6bc;padding:16px;border-radius:9px}.danger{background:#a1323e;color:white;margin-top:10px}
.event-tools{border:1px solid #d4e1e6;border-radius:10px;padding:18px;margin:20px 0;background:#f8fafb}.event-tools-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.event-badge{background:#e2eef1;color:#235965;padding:5px 11px;border-radius:18px;font-size:13px;font-weight:700}.event-tools details{margin-top:14px;border-top:1px solid #dce5e8;padding-top:10px}.event-tools .event-delete summary{color:#a1323e}.event-delete p,.event-delete li{font-size:14px}.event-delete h3{font-size:20px}.event-delete table{width:100%;font-size:14px}.event-delete th{text-align:left}.event-delete .check{margin:16px 0;align-items:flex-start}.event-archive{border-top:1px solid #d4dfe4;margin:10px 0 24px;padding-top:10px}.archive-notice{padding:16px;background:#edf3f7;border:1px solid #cbdce6;border-radius:9px}
.pricing-editor{min-width:0;margin:0;border:1px solid #d5e1e6;border-radius:10px;padding:14px;background:#fcfdfd}.pricing-editor legend{font-weight:750;color:#254c59;padding:0 5px}.pricing-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:8px;border-bottom:1px solid #e4ebee;padding:12px 0}.pricing-row label{font-size:12px;min-width:0}.pricing-row input{font-size:14px;padding:9px 7px;min-width:0}.pricing-editor>label{margin-top:14px}.pricing-editor>.hint{margin:8px 0}.ticket-preview>.price-preview-list{display:grid;gap:4px;margin-top:10px;padding:0;border:0}.price-preview-list strong{font-size:15px}
.clause-picker{padding:14px;border:1px solid #d2e0e6;border-radius:10px;background:#f8fbfc}.clause-picker>summary{color:#214f5d}.clause-count{font-size:12px;font-weight:400;display:inline-block;margin-left:8px;color:#607983}.clause-item{border-top:1px solid #dce5e9;margin-top:14px;padding-top:14px}.clause-item .check{font-weight:650;align-items:flex-start}.clause-item .check input{margin-top:4px}.clause-item label:not(.check){font-size:13px;margin-top:10px}.clause-wording{font-size:13px;color:#56717d;margin:8px 0 8px 28px;line-height:1.5}.clause-legal{padding:10px 12px;margin-top:10px!important;border-left:3px solid #c8a65c;background:#fffaf0}.preview-pinned-note{font-size:11px;color:#6c7f89}.editing-cards .main-panel{align-self:stretch}.editing-cards .pdf-preview-panel{position:sticky;top:12px;z-index:5;background:#fff;border:1px solid #d1dfe6;border-top:3px solid #d8b66d;border-radius:12px;padding:14px;max-height:64dvh;overflow-y:auto;box-shadow:0 8px 25px #142a3a12}.editing-cards .pdf-preview-panel iframe{height:34dvh;min-height:160px;max-height:420px;margin:10px 0 0}.editing-cards .pdf-preview-panel>p.hint:last-child{display:none}.editing-cards .pdf-preview-panel h2{font-size:19px}.editing-cards .pdf-preview-panel .preview-links{margin-top:10px}.editing-cards .pdf-preview-panel #preview-feedback{max-height:90px;overflow:auto}.editing-cards .pdf-preview-panel #pdf-preview-status{font-size:12px;line-height:1.45}@media(max-width:950px){body.editing-cards{padding-bottom:47dvh}.editing-cards .pdf-preview-panel{position:fixed;inset:auto 8px 8px;width:auto;height:44dvh;max-height:44dvh;min-height:0;padding:10px;z-index:25;margin:0;box-shadow:0 -8px 30px #0b202b26}.editing-cards .pdf-preview-panel iframe{height:calc(44dvh - 145px);min-height:70px;max-height:none;margin-top:5px}.editing-cards .pdf-preview-panel .section-heading{display:flex;flex-direction:row;align-items:center;gap:8px;justify-content:space-between}.editing-cards .pdf-preview-panel h2{font-size:16px;line-height:1.2;margin:0}.editing-cards #refresh-preview,.editing-cards .preview-pinned-note{display:none}.editing-cards .pdf-preview-panel #pdf-preview-status{font-size:11px;max-height:2.8em;overflow:auto;margin-top:5px}.editing-cards .pdf-preview-panel .preview-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:6px}.editing-cards .preview-links .button,.editing-cards .preview-links button{font-size:10px;min-height:28px;padding:5px 3px}.editing-cards .pdf-preview-panel #preview-feedback{max-height:50px}.editing-cards #clear-preview{min-height:28px;font-size:11px;padding:5px 8px}}

.ticket-checklist{border:1px solid #d5e1e6;border-radius:9px;margin-top:12px;padding:12px;background:#f8fafb}.ticket-checklist h3{font-size:16px;margin:0 0 6px}.ticket-checklist p{font-size:12px;margin:5px 0}.ticket-checklist ul{list-style:none;padding:0;margin:8px 0;max-height:240px;overflow:auto}.ticket-checklist li{padding:7px 0;border-top:1px solid #e0e6ea}.ticket-checklist li span{display:block;font-size:12px;color:#536575}.ticket-checklist .checklist-error,.ticket-checklist .checklist-missing{color:#a12c36}.ticket-checklist .checklist-ok{color:#246244}.save-status{font-size:14px;overflow-wrap:anywhere}.save-error{color:#a12c36}.editing-cards .pdf-preview-panel{max-height:82dvh}.editing-cards .pdf-preview-panel iframe{height:29dvh}.editing-cards .ticket-checklist ul{max-height:18dvh}.editing-cards .ticket-checklist{margin-top:8px;padding:8px}@media(max-width:950px){body.editing-cards{padding-bottom:55dvh}.editing-cards .pdf-preview-panel{height:52dvh;max-height:52dvh;display:flex;flex-direction:column}.editing-cards .pdf-preview-panel iframe{height:16dvh;min-height:65px;flex-shrink:0}.editing-cards .ticket-checklist{min-height:65px;overflow:auto}.editing-cards .ticket-checklist ul{max-height:12dvh}.editing-cards .ticket-checklist p{font-size:11px}}

.admin-owner-links{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.admin-events h2{margin-top:8px}.admin-events table{min-width:540px}.admin-events .button{font-size:12px}.admin-events input[type=search]{max-width:600px}
