:root{--ink:#263c43;--muted:#7a898b;--paper:#f6f7f4;--teal:#26756a;--teal-soft:#e5f1eb;--border:#e2e8e3;--side-width:370px;--bs-primary:#26756a;--bs-body-font-family:Inter,'Segoe UI',Arial,sans-serif}
.booking .booking-title strong {
    display: inline;
    white-space: normal;
    margin-right: 3px;
}
.booking-context .booking-ref {
    display: inline-block;
    padding: 0 2px;
    border-radius: 3px;
    background: #ffffff80;
    color: #3d6c55;
    font: 8px ui-monospace, Consolas, monospace;
    line-height: 1.5;
    white-space: nowrap;
}
.booking-context .booking-ref.optional {
    color: #77699a;
    background: #eeedf8;
}
.reference-list .booking-context .booking-ref {
    font-size: 6px;
}
.booking.tiny .booking-context .booking-ref {
    font-size: 6px;
    line-height: 1;
}
.resource-jump {
    border: 0;
}
.resource-jump:hover {
    outline: 2px solid #8eb7a2;
    outline-offset: 2px;
}
.editor-actions {
    flex-wrap: wrap;
}
.draft-banner {
    position: sticky;
    top: 110px;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border: 1px solid #d5e4d9;
    border-radius: 9px;
    background: #eaf3e8;
    color: #537862;
    font-size: 11px;
}
.plan-card {
    scroll-margin-top: 120px;
}
.primary-panel:has(.draft-banner:not([hidden])) .plan-card {
    scroll-margin-top: 190px;
}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--bs-body-font-family);font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #70ada3;outline-offset:3px}[hidden]{display:none!important}.muted{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(25px,2.6vw,38px);font-weight:650;letter-spacing:-1.3px;margin-bottom:10px}h1 span{color:var(--teal)}h2{font-size:22px;font-weight:650;letter-spacing:-.5px}h3{font-size:16px;margin:0}.eyebrow{font-size:9px;letter-spacing:1.8px;font-weight:750;color:#7e9290;margin-bottom:12px}.btn{border-radius:8px;padding:10px 15px;font-size:12px;font-weight:600;white-space:nowrap}.btn-primary{background:var(--teal);border-color:var(--teal);color:white}.btn-primary:hover,.btn-primary:active{background:#1d5e55!important;border-color:#1d5e55!important}.btn-light{background:#f2f5f2;border:1px solid var(--border);color:#536864}.btn-sm{padding:7px 11px;font-size:11px}.btn-danger-soft{color:#ab4b4b;background:#faeeee;border:1px solid #f0dada}.icon-button{border:1px solid var(--border);border-radius:50%;background:white;color:#778985;width:29px;height:29px;display:inline-flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}.form-control,.form-select{font-size:13px;border:1px solid #dce5de;border-radius:8px;padding:10px;color:var(--ink);background-color:white}.form-control:focus,.form-select:focus{border-color:#70ada3;box-shadow:0 0 0 3px #26756a15}.form-label{font-size:12px;font-weight:600}.app-header{height:85px;padding:0 35px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:25px;letter-spacing:-.7px;font-weight:650}.brand small{display:block;font-size:10px;letter-spacing:.3px;font-weight:400;color:var(--muted);margin-top:1px}.brand-mark{width:39px;height:42px;background:var(--teal);color:white;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:35px;line-height:1;font-family:Georgia,serif}.brand-mark span{color:#cbe5bb}.header-week{display:flex;gap:9px;align-items:center;font-size:12px}.status-dot{width:6px;height:6px;background:#61a187;border-radius:50%;display:inline-block;flex-shrink:0}.header-actions{display:flex;align-items:center;gap:9px}.save-status{font-size:10px;color:#739084;margin-right:7px}.save-status.error{color:#ae5353}.workspace{display:grid;grid-template-columns:minmax(0,1fr) var(--side-width);max-width:1800px;margin:0 auto;min-height:calc(100vh - 85px)}.primary-panel{padding:36px 32px;min-width:0}.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:26px}.workspace-heading .muted{font-size:12px;margin:0}.statistics{display:flex;gap:12px;margin-bottom:30px}.stat{flex:1;background:#fff;border:1px solid var(--border);border-radius:10px;padding:15px 17px;display:flex;align-items:center;gap:12px}.stat-value{font-size:24px;font-weight:650;letter-spacing:-.8px}.stat-label{font-size:10px;color:var(--muted);line-height:1.6}.stat-icon{color:#638779;font-size:19px;background:#f0f5ee;width:33px;height:33px;display:grid;place-items:center;border-radius:9px;margin-left:auto}.planning-toolbar{position:sticky;top:0;z-index:6;background:var(--paper);padding-top:5px}.plan-tabs{display:flex;gap:22px;border-bottom:1px solid #dce4dd;overflow:auto}.plan-tab{background:none;border:0;border-bottom:2px solid transparent;padding:11px 0 14px;color:#83918d;font-size:12px;font-weight:600;white-space:nowrap}.plan-tab.active{border-bottom-color:var(--teal);color:var(--teal)}.plan-tab span{font-size:9px;background:#e8ede8;padding:2px 5px;border-radius:4px;margin-left:3px}.plan-tab.active span{background:#dfebe3}.filter-row{display:flex;gap:12px;justify-content:space-between;padding:16px 0}.search-field{display:flex;align-items:center;gap:9px;border:1px solid var(--border);background:white;border-radius:7px;padding:6px 11px;width:min(360px,75%);color:#8b9a95}.search-field input{width:100%;border:0;outline:0;font-size:11px;background:transparent}.search-field span{font-size:21px;line-height:1}.plan-hint{font-size:10px;color:#8a9992;margin:0 0 17px}.plans{display:flex;flex-direction:column;gap:20px}.plan-card{background:#fff;border:1px solid var(--border);border-radius:12px;overflow:hidden}.plan-card summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:17px 19px;list-style:none;cursor:pointer}.plan-card summary::-webkit-details-marker{display:none}.plan-card summary:after{content:'⌃';color:#9ba9a1;margin-left:8px}.plan-card:not([open]) summary:after{content:'⌄'}.plan-title{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.resource-icon{border-radius:8px;width:30px;height:30px;display:grid;place-items:center;background:#edf1fa;color:#6b7fac;font-size:12px;font-weight:700;flex-shrink:0}.type-R .resource-icon{background:#e8f2e9;color:#5e926b}.type-F .resource-icon{background:#faf1df;color:#b9924e}.plan-subtitle{font-size:10px;color:var(--muted);display:block;margin-top:2px}.plan-title strong{font-size:12px;font-weight:650}.plan-metrics{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.metric{font-size:9px;color:#81918a;background:#f2f5f1;border-radius:5px;padding:4px 7px}.metric.warning{background:#fff0dc;color:#a57429}.metric.open-demand{background:#f1f0f6;color:#8a819d}.schedule-wrap{padding:0 14px 18px;overflow-x:auto}.week-grid{--minute:1px;min-width:470px;display:grid;grid-template-columns:44px repeat(5,minmax(0,1fr));position:relative}.day-heading{font-size:9px;font-weight:600;color:#87958e;text-align:center;border-bottom:1px solid var(--border);padding:8px 0 11px;position:static;background:#fff;z-index:2}.time-axis{height:calc(580 * var(--minute));position:relative}.time-tick{position:absolute;right:8px;transform:translateY(-50%);font-size:8px;color:#9aa59f}.time-tick:first-child{transform:none}.time-tick:last-child{transform:translateY(-100%)}.day-column{height:calc(580 * var(--minute));position:relative;border-left:1px solid #eef1ed;touch-action:pan-y;user-select:none;cursor:crosshair;overflow:hidden}.grid-line{position:absolute;left:0;right:0;border-top:1px solid #eef1ed;pointer-events:none}.grid-line.half{border-top:1px dashed #f0f2ef}.booking{position:absolute;border:1px solid #bedacb;border-left:3px solid #609b7f;background:#e9f4ed;color:#3d6c55;border-radius:4px;font-size:10px;overflow:hidden;text-align:left;padding:4px 5px;cursor:grab;line-height:1.3;z-index:1;min-width:0;touch-action:none}.booking:hover{filter:brightness(.97);box-shadow:0 2px 7px #294c3e18;z-index:3}.booking.optional{background:#eeedf8;border-color:#d5cfea;border-left-color:#a295c9;color:#77699a}.booking.open{background:#f6f5f9;border:1px dashed #b7adcc;color:#9385a5}.booking strong{display:block;font-size:10px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.booking small{display:block;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px;opacity:.85}.booking.tiny{padding:0 3px;line-height:1}.booking.tiny strong{font-size:7px}.booking.tiny small{display:none}.booking.dragging{opacity:.35}.selection-block{position:absolute;left:2px;right:2px;background:#26756a24;border:1px solid #4d9b89;border-radius:4px;pointer-events:none;z-index:4;color:var(--teal);font-size:10px;padding:3px}.drag-label{position:fixed;z-index:45;background:var(--teal);color:white;border-radius:7px;padding:7px 12px;pointer-events:none;font-size:12px;box-shadow:0 4px 15px #1a4f3a30}.reference-panel{border-left:1px solid var(--border);background:#fcfdfb;padding:32px 22px;position:sticky;top:0;height:100vh;overflow-y:auto}.reference-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.reference-heading h2{font-size:21px;margin-bottom:10px}.reference-heading .eyebrow{font-size:8px;margin-bottom:10px}.live-pill{display:flex;align-items:center;gap:5px;font-size:9px;color:#7a9988;border:1px solid #dce9df;border-radius:15px;padding:4px 8px}.reference-description{font-size:11px;line-height:1.8;color:#8b9990;margin-bottom:19px}.reference-query{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:15px}.token{font:10px ui-monospace,Consolas,monospace;border-radius:5px;padding:5px 7px;background:#edf2ed;color:#537862;display:inline-block}.token.optional{background:#eeecf8;color:#8775a8}.reference-list{display:flex;flex-direction:column;gap:14px}.reference-list .plan-card summary{padding:12px 10px;gap:5px}.reference-list .plan-title{gap:7px}.reference-list .resource-icon{width:24px;height:24px;font-size:9px;border-radius:6px}.reference-list .plan-title strong{font-size:11px}.reference-list .plan-subtitle{font-size:9px}.reference-list .plan-metrics{max-width:110px}.reference-list .metric{font-size:8px;padding:3px 4px}.reference-list .schedule-wrap{padding:0 6px 12px}.reference-list .week-grid{--minute:.55px;min-width:0;grid-template-columns:27px repeat(5,minmax(0,1fr))}.reference-list .day-heading{position:static;font-size:8px;padding:6px 0}.reference-list .time-tick{font-size:7px;right:4px}.reference-list .booking{padding:2px;font-size:7px;border-left-width:2px}.reference-list .booking strong{font-size:7px}.reference-list .booking small{font-size:6px;margin-top:2px}.legend{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid var(--border);margin-top:22px;padding-top:17px;font-size:8px;color:#89968d}.legend span{display:flex;gap:5px;align-items:center}.legend i{display:inline-block;width:7px;height:7px;border-radius:2px}.legend-fixed{background:#8cb59c}.legend-optional{background:#b7a8d6}.legend-open{border:1px dashed #ad9fbf}.empty-state{padding:50px 25px;border:1px dashed #d5dfd4;border-radius:12px;text-align:center;color:#83978b}.empty-state .empty-icon{display:block;font-size:35px;color:#9ab5a3;margin-bottom:15px}.empty-state h3{font-size:15px;margin-bottom:10px;color:#566e5e}.empty-state p{font-size:11px;line-height:1.8;max-width:290px;margin:0 auto 13px}.reference-list .empty-state{margin-top:10px;padding:38px 18px}.reference-list .empty-state code{background:#ecf2eb;color:#537a60;padding:4px 7px;border-radius:4px;font-size:10px}.resource-manager{background:white;border:1px solid var(--border);border-radius:12px;padding:22px}.manager-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}.resource-table{width:100%;font-size:12px;border-collapse:collapse}.resource-table th{font-size:10px;color:#8b9b91;font-weight:500}.resource-table td,.resource-table th{padding:12px 8px;border-bottom:1px solid #edf1eb;text-align:left}.resource-table td:last-child{text-align:right}.resource-table code{color:var(--teal)}.resource-name-input{width:100%;min-width:90px}.editor-backdrop{position:fixed;inset:0 var(--side-width) 0 0;z-index:20;background:#233b3b35;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(2px)}.event-editor{width:100%;max-width:600px;background:white;border:1px solid var(--border);border-radius:16px;padding:28px;max-height:94vh;overflow-y:auto;box-shadow:0 25px 85px #233b3b25}.editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:22px}.editor-heading .eyebrow{margin-bottom:8px}.editor-heading h2{margin:0;font-size:23px}.code-input{font-family:ui-monospace,Consolas,monospace;line-height:1.8;resize:vertical;font-size:14px}.field-help{font-size:10px;color:#91a095;margin:8px 0 14px}.token-preview{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:15px}.context-setting{display:flex;justify-content:space-between;align-items:center;background:#f3f6f0;padding:9px 12px;border-radius:7px;margin:12px 0;font-size:11px;gap:12px}.context-setting select{width:auto;font-size:10px}.time-fields{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;margin:18px 0}.time-fields select,.time-fields input{display:block;margin-top:7px;width:100%}.editor-note{background:#faf7ed;border-radius:7px;padding:11px;font-size:10px;color:#a18b54}.editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;margin-top:23px}.action-spacer{flex:1}.form-error{font-size:12px;color:#b35454;margin:12px 0 0;white-space:pre-wrap}.small-dialog,.help-dialog{border:1px solid var(--border);border-radius:15px;padding:28px;max-width:470px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 20px 100px #233b3b30;max-height:90vh;overflow:auto}.small-dialog::backdrop,.help-dialog::backdrop{background:#233b3b45}.help-dialog{max-width:680px;font-size:13px;line-height:1.9}.help-dialog dt{margin-top:20px}.help-dialog dd{color:var(--muted);margin-top:5px}.help-dialog code{font-size:11px;color:var(--teal);white-space:normal}.app-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:100;background:#284e43;color:white;padding:12px 20px;border-radius:9px;box-shadow:0 5px 25px #233b3b25;font-size:12px;max-width:90vw}.app-toast.error{background:#9a4a4a}.fatal-error{background:#fff1ed;border:1px solid #eccdc3;color:#985948;border-radius:10px;padding:22px;line-height:1.8}.reference-highlight{box-shadow:0 0 0 2px #87b8a0}.resource-table-wrap{overflow-x:auto}
@media(min-width:1500px){:root{--side-width:430px}.primary-panel{padding:40px 45px}.reference-panel{padding:35px 28px}.reference-list .week-grid{--minute:.65px}}
@media(max-width:1150px){:root{--side-width:320px}.app-header{padding:0 22px}.header-week .muted{display:none}.primary-panel{padding:28px 20px}.plan-tabs{gap:15px}.statistics{gap:8px}.stat{padding:12px;gap:8px}.stat-icon{display:none}.reference-panel{padding:28px 15px}.workspace-heading{gap:10px}.workspace-heading h1{font-size:28px}.workspace-heading .eyebrow{font-size:8px}.plan-metrics{max-width:200px}}
@media(max-width:850px){:root{--side-width:0px}.workspace{display:block}.app-header{height:auto;min-height:80px;padding:16px;flex-wrap:wrap}.brand{font-size:22px}.header-week{display:none}.header-actions{gap:6px}.save-status{display:none}.primary-panel{padding:25px 16px}.reference-panel{height:auto;position:static;border-left:0;border-top:1px solid var(--border);padding:25px 16px}.reference-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.reference-list .week-grid{--minute:.6px}.editor-backdrop{inset:0;align-items:flex-start;padding:14px;overflow-y:auto;backdrop-filter:none;background:#233b3b55}.event-editor{margin:auto;max-height:95vh;padding:22px}.reference-panel.editing{position:fixed;bottom:0;left:0;right:0;height:29vh;z-index:21;padding:12px 16px;box-shadow:0 -3px 15px #233b3b15}.reference-panel.editing .reference-description,.reference-panel.editing .eyebrow,.reference-panel.editing .legend{display:none}.reference-panel.editing .reference-heading h2{font-size:16px}.reference-panel.editing .reference-list{display:flex;flex-direction:row;overflow:auto}.reference-panel.editing .plan-card{min-width:285px}.editor-backdrop:has(+*){padding-bottom:31vh}.event-editor{max-height:66vh}.workspace-heading h1{font-size:27px}.stat-value{font-size:22px}.stat-label{font-size:9px}.plan-tabs{gap:18px}.plan-card summary{padding:14px 12px}.plan-metrics{max-width:160px}.time-fields{gap:7px}.editor-actions .btn{padding:9px 12px}.editor-heading h2{font-size:20px}}
@media(prefers-reduced-motion:no-preference){.btn,.plan-tab{transition:background .15s,border-color .15s}.app-toast{animation:toast-in .2s ease-out}@keyframes toast-in{from{opacity:0;bottom:15px}to{opacity:1;bottom:25px}}}
