:root{--bg: #eef1f6;--surface: #ffffff;--surface-2: #f7f9fc;--border: #e1e6ef;--border-strong: #cfd6e4;--text: #182031;--muted: #6a7486;--brand: #2f5d6e;--brand-ink: #244a58;--primary: #2f5d6e;--primary-ink: #244a58;--danger: #c0392b;--warn: #b06325;--ok: #157a5b;--uncovered: #e5e7eb;--shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 6px 20px rgba(20, 30, 50, .06);--radius: 12px;--radius-sm: 9px;font-synthesis:none;color-scheme:light}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.45;-webkit-font-smoothing:antialiased}h1,h2,h3{margin:0;font-weight:650}.muted{color:var(--muted);font-weight:500}.app{display:flex;min-height:100vh}.sidebar-nav{width:224px;flex:none;background:var(--surface);border-right:1px solid var(--border);padding:16px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh;overflow-y:auto}.sidebar-group{display:flex;flex-direction:column;gap:8px}.sidebar-group.actions{margin-top:auto}.sidebar-label{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}.sidebar-hint{font-size:11px;color:var(--muted);margin:0}.period-nav{display:flex;align-items:center;justify-content:space-between;gap:8px}.period-nav.static{justify-content:center;color:var(--muted);font-size:13px}.period-label{font-weight:650;font-size:13px}.seg.full{display:flex}.seg.full button{flex:1}.sidebar-nav .role-switch{display:flex;width:100%}.sidebar-nav .role-switch button{flex:1;text-align:center}.btn.full{width:100%;justify-content:center}.impact-toggle{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;cursor:pointer}.impact-toggle.disabled{opacity:.5;cursor:not-allowed}.main{flex:1;min-width:0;padding:22px 24px 48px;display:flex;flex-direction:column;gap:24px}.impact-banner{background:#fff8e6;border:1px solid #f0d98c;border-radius:var(--radius);padding:12px 16px;font-size:13px}.year-calendar{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:start}.year-calendar .day-grid{gap:4px;padding:7px}.year-calendar .day-cell{min-height:50px;border-radius:7px}.year-calendar .day-num{font-size:11px;top:4px;left:5px}.year-calendar .jet-pill{font-size:9px;padding:1px 4px;bottom:4px;left:4px;gap:2px}.year-calendar .mandatory-star{font-size:10px}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.compare-col{display:flex;flex-direction:column;gap:10px}.compare-head{font-size:13px;font-weight:700;color:var(--brand)}.stack-calendar{display:flex;flex-direction:column;gap:14px}.toolbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 24px;background:var(--surface);border-bottom:1px solid var(--border);box-shadow:var(--shadow)}.toolbar-left,.toolbar-right{flex:1;display:flex;align-items:center;gap:10px}.toolbar-right{justify-content:flex-end;flex-wrap:wrap}.toolbar-center{display:flex;align-items:center;gap:10px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;background:var(--brand);color:#fff;border-radius:10px;font-size:20px}.brand h1{font-size:16px;letter-spacing:-.01em}.brand-sub{margin:0;font-size:12px;color:var(--muted)}.month-label{font-size:17px;font-weight:650;min-width:110px;text-align:center}.nav-btn{width:36px;height:36px;border-radius:9px;border:1px solid var(--border-strong);background:var(--surface);font-size:20px;line-height:1;color:var(--text);cursor:pointer}.nav-btn:hover{background:var(--surface-2)}.role-switch{display:inline-flex;background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:3px}.role-switch button{border:0;background:transparent;color:var(--muted);padding:6px 12px;border-radius:7px;font-size:13px;font-weight:600;cursor:pointer}.role-switch button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.btn{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border-strong);background:var(--surface);color:var(--text);padding:8px 14px;border-radius:9px;font-size:13px;font-weight:600;cursor:pointer}.btn:hover{background:var(--surface-2)}.btn.primary{background:var(--primary);border-color:var(--primary);color:#fff}.btn.primary:hover{background:var(--primary-ink)}.btn.primary:disabled{opacity:.5;cursor:not-allowed}.btn.send{background:var(--surface);border-color:var(--brand);color:var(--brand)}.btn.send:hover{background:#eef4f6}.btn.ghost{background:transparent}.btn.tiny{padding:5px 10px;font-size:12px}.icon-btn{border:0;background:transparent;font-size:16px;cursor:pointer;color:var(--muted);padding:6px;border-radius:8px}.icon-btn:hover{background:var(--surface-2);color:var(--text)}.link-btn{border:0;background:transparent;color:var(--brand);font-weight:600;font-size:12px;cursor:pointer;padding:0;border-radius:4px;transition:color .12s,text-decoration-color .12s}.link-btn:hover{color:var(--brand-ink);text-decoration:underline}.dirty-dot{width:7px;height:7px;border-radius:50%;background:#e0b52e;display:inline-block}.page{max-width:1440px;width:100%;margin:0 auto;padding:22px 24px 48px;display:flex;flex-direction:column;gap:18px}.explainer{background:#eef4f6;border:1px solid #d4e2e7;border-radius:var(--radius);padding:14px 18px;font-size:13.5px;color:#2b3b45;line-height:1.55}.legend-bar{display:flex;flex-wrap:wrap;align-items:center;gap:18px;font-size:13px;font-weight:600}.legend-item{display:inline-flex;align-items:center;gap:7px;color:var(--text)}.legend-chip{width:20px;height:16px;border-radius:4px;display:inline-block}.legend-chip.sm{width:12px;height:12px;border-radius:3px}.legend-glyph{font-size:14px}.legend-item.filter{background:none;border:1px solid transparent;border-radius:999px;padding:4px 10px 4px 7px;font:inherit;font-weight:600;color:var(--text);cursor:pointer;transition:background .12s,border-color .12s,opacity .12s}.legend-item.filter:hover{background:var(--surface-2);border-color:var(--border)}.legend-item.filter.active{background:var(--surface-2);border-color:var(--brand)}.legend-item.filter.muted{opacity:.45}.legend-item.filter.show-all{color:var(--brand);font-weight:650}.quarter-calendar{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;align-items:start}.month-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.month-card-head{background:var(--brand);color:#fff;text-align:center;font-weight:650;padding:10px;font-size:14px;border-radius:var(--radius) var(--radius) 0 0}.weekday-row{display:grid;grid-template-columns:repeat(7,1fr);background:var(--surface-2);border-bottom:1px solid var(--border)}.weekday{text-align:center;font-size:10px;font-weight:700;color:var(--muted);padding:7px 0;letter-spacing:.03em}.day-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;padding:8px}.day-cell{position:relative;aspect-ratio:1 / 1;min-height:56px;border:0;border-radius:9px;padding:0;cursor:default;font-family:inherit;color:#fff;transition:transform .08s ease,box-shadow .08s ease}.day-cell.editable{cursor:pointer}.day-cell:hover{z-index:5}.day-cell.editable:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.day-tooltip{position:absolute;left:50%;bottom:calc(100% + 6px);transform:translate(-50%);min-width:220px;max-width:280px;z-index:40;pointer-events:none;background:#10202c;color:#fff;border-radius:8px;padding:8px 10px;box-shadow:0 6px 20px #00000047;text-align:left;white-space:normal;font-weight:500}.tt-date{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.04em;opacity:.7;margin-bottom:4px}.tt-row{display:block;font-size:12px;line-height:1.5}.tt-row .legend-chip.sm{display:inline-block;vertical-align:middle;margin-right:5px}.tt-sub{opacity:.75;font-size:11px}.day-cell.blank{background:transparent;border:0;cursor:default}.day-cell.warn{box-shadow:inset 0 0 0 2px var(--danger)}.day-cell.changed{outline:2px dashed #10202c;outline-offset:-3px}.changed-tag{position:absolute;bottom:5px;right:7px;font-size:12px;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.45)}.day-cell.uncovered{background:repeating-linear-gradient(45deg,#e5e7eb,#e5e7eb 7px,#f3f4f6 7px,#f3f4f6 14px)!important;color:var(--text)}.day-num{position:absolute;top:5px;left:7px;font-size:13px;font-weight:700;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}.day-cell.uncovered .day-num{color:var(--text);text-shadow:none}.mandatory-star{position:absolute;top:4px;right:6px;color:#fff;font-size:12px;text-shadow:0 1px 2px rgba(0,0,0,.4)}.warn-dot{position:absolute;top:24px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--danger);border:2px solid #fff}.jet-pill{position:absolute;left:6px;bottom:6px;display:inline-flex;align-items:center;gap:3px;background:#fffffff2;color:#1a2430;font-size:10.5px;font-weight:700;padding:2px 7px;border-radius:10px;box-shadow:0 1px 2px #0000002e;white-space:nowrap}.jet-pill.uncovered{color:var(--danger)}.jet-pill.ghost{background:#fffc;color:#46535f;font-weight:600}.jet-pill.off{background:#ffffffb3;color:var(--muted);font-weight:600;box-shadow:none}.day-cell.dim{color:var(--muted);border-color:var(--border)}.day-cell.dim .day-num{opacity:.55}.quarter-stats{display:flex;flex-direction:column;gap:18px}.quarter-stats h3{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--brand);margin-bottom:10px;font-weight:700}.stat-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;text-align:center}.stat-card-num{font-size:32px;font-weight:750;color:var(--brand);line-height:1}.stat-card-label{margin-top:8px;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--muted);display:inline-flex;align-items:center;gap:6px}.dist-line{font-size:12.5px;color:var(--muted)}.dist-line strong{color:var(--text)}.insights-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start;margin-top:8px}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow)}.table-scroll{overflow-x:auto}.days-table{border-collapse:collapse;width:100%;font-size:12.5px}.days-table th,.days-table td{padding:7px 8px;text-align:center;border-bottom:1px solid var(--border);white-space:nowrap}.days-table th{font-size:10.5px;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);font-weight:700}.days-table th.left,.days-table td.left{text-align:left}.days-table td.left{font-weight:650}.days-table td .min-sub{color:var(--muted);font-size:10.5px}.days-table td.under{color:var(--danger);font-weight:700;background:#fdecea}.days-table td.total{font-weight:700}.days-table .legend-chip.sm{display:inline-block;vertical-align:middle;margin-right:4px}.holiday-rows{display:flex;flex-direction:column;gap:12px}.holiday-row{border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;background:var(--surface-2)}.holiday-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}.holiday-name{font-weight:700;font-size:13px}.holiday-people{display:flex;flex-direction:column;gap:4px;font-size:12.5px}.holiday-off{color:var(--ok);font-weight:600}.holiday-working{color:var(--muted)}.person{display:inline-flex;align-items:center;gap:3px;margin-right:8px}.person .legend-chip.sm{width:10px;height:10px}.panel.warnings{padding:18px 20px}.panel h2{font-size:14px;margin-bottom:12px;display:flex;align-items:center;gap:8px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.panel-head h2{margin:0}.warn-count{display:inline-flex;gap:6px}.badge{display:inline-grid;place-items:center;height:20px;padding:0 8px;border-radius:10px;font-size:11px;font-weight:700;color:#fff}.badge.error{background:var(--danger)}.badge.warn{background:var(--warn)}.all-clear{color:var(--ok);font-weight:600;font-size:13px;margin:0}.warn-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.warn-item{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:12px 14px;border-radius:var(--radius-sm);border:1px solid transparent}.warn-item.error{background:#fdf1f0;border-color:#f3cfca}.warn-item.warn{background:#fdf7ec;border-color:#ecdcb6}.warn-tag{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.03em;padding:3px 8px;border-radius:6px;white-space:nowrap;margin-top:1px}.warn-tag.error{background:var(--danger);color:#fff}.warn-tag.warn{background:#b9801f;color:#fff}.warn-body{min-width:0}.warn-title{margin:0;font-size:13px;font-weight:700;color:var(--text)}.warn-detail{margin:3px 0 0;font-size:12px;color:#5b6572;line-height:1.5}.warn-dates{margin:7px 0 0;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:6px;border-top:1px dashed var(--border-strong)}.drawer-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a61;display:flex;justify-content:flex-end;z-index:50;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.drawer{width:min(460px,100%);background:var(--surface);height:100%;display:flex;flex-direction:column;box-shadow:-8px 0 30px #0000002e}.modal{margin:auto;width:min(460px,calc(100% - 32px));background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);display:flex;flex-direction:column;align-self:center;max-height:calc(100% - 48px)}.modal.send-modal,.modal.preview-modal{width:min(560px,calc(100% - 32px))}.preview-note{font-size:12px;color:var(--muted);margin:6px 0 12px}.preview-list{margin-top:14px;display:flex;flex-direction:column;gap:4px}.preview-row{font-size:12.5px;font-variant-numeric:tabular-nums}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--border)}.drawer-head h2{font-size:15px;display:flex;align-items:center;gap:10px}.pill-tag{font-size:11px;font-weight:700;color:#8a4b12;background:#f6e6cf;padding:2px 8px;border-radius:10px}.drawer-body{padding:20px 22px;overflow-y:auto;flex:1}.modal-body{padding:20px 22px;overflow-y:auto}.drawer-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid var(--border);background:var(--surface-2)}.drawer-foot>div{display:flex;gap:8px}.field-section{margin-bottom:28px}.field-section:last-child{margin-bottom:0}.field-section h3{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin-bottom:12px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-head h3{margin-bottom:0}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:600}.field.inline{flex-direction:row;align-items:center;gap:8px}.field span{color:var(--muted)}.field input,.field select,.captain-name-input,.date-add input,.month-cell input{border:1px solid var(--border-strong);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit;color:var(--text);background:var(--surface);width:100%}.field select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding-right:34px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7685' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}input:focus,select:focus,textarea:focus{outline:2px solid var(--brand);outline-offset:-1px}.hint{font-size:12px;color:var(--muted);margin:8px 0 0}.hint.subtle{opacity:.85}.balance-field{margin-top:16px;gap:8px}.balance-seg{display:flex;width:100%}.balance-seg button{flex:1;text-align:center;line-height:1.25}.rest-list{display:flex;flex-direction:column;gap:10px}.captain-card{border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px;margin-bottom:12px;background:var(--surface-2)}.captain-card-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}.captain-card-head input[type=color]{width:34px;height:34px;padding:2px;border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);cursor:pointer}.captain-name-input{font-weight:650}.captain-days{display:flex;align-items:center;gap:14px;margin-bottom:10px;flex-wrap:wrap}.captain-days .field.inline input{width:60px}.month-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:12px}.month-cell{display:flex;flex-direction:column;gap:3px;font-size:10px;color:var(--muted);font-weight:600;text-align:center}.month-cell input{padding:5px;text-align:center}.seg{display:inline-flex;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:9px;padding:3px;gap:3px}.seg button{border:0;background:transparent;color:var(--muted);padding:6px 12px;border-radius:6px;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit}.seg button.active{background:var(--surface);color:var(--text);box-shadow:var(--shadow)}.date-list{margin-top:6px}.date-add{display:flex;gap:8px;margin-bottom:8px}.date-add input{flex:1}.date-add.range{align-items:center}.date-add.range .range-to{font-size:12px;color:var(--muted)}.date-chips{display:flex;flex-wrap:wrap;gap:6px}.date-chip{display:inline-flex;align-items:center;gap:6px;background:var(--surface);border:1px solid var(--border-strong);padding:3px 6px 3px 8px;border-radius:6px;font-size:12px;font-variant-numeric:tabular-nums}.date-chip .chip-dot{width:8px;height:8px;border-radius:50%;flex:none}.date-chip button{border:0;background:transparent;cursor:pointer;color:var(--muted);font-size:11px;padding:0}.tiny{font-size:11px}.field-label{font-size:12px;color:var(--muted);font-weight:600;margin:0 0 6px}.mandatory-upload{display:flex;flex-direction:column;gap:10px}.upload-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.source-chip{font-size:12px;color:var(--text);background:var(--surface-2);border:1px solid var(--border);padding:4px 9px;border-radius:8px}.detect-box{border:1px solid var(--border-strong);border-radius:var(--radius-sm);padding:12px;background:var(--surface-2)}.detect-head{font-size:12px;font-weight:600;color:var(--text);margin:0 0 10px}.detect-month{margin-bottom:10px}.detect-month-name{font-size:11px;font-weight:700;color:var(--brand);text-transform:uppercase;letter-spacing:.03em}.detect-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.detect-chip{width:30px;height:30px;border-radius:7px;border:1px solid var(--border-strong);background:var(--surface);color:var(--muted);font-weight:700;font-size:12px;cursor:pointer}.detect-chip.on{background:var(--brand);border-color:var(--brand);color:#fff}.detect-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.hard-rule-list{margin:14px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}.hard-rule{display:flex;gap:11px;align-items:flex-start;padding:11px 13px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm)}.hard-rule-lock{flex:none;opacity:.55;font-size:13px;margin-top:1px}.hard-rule-text{display:flex;flex-direction:column;gap:3px;min-width:0}.hard-rule-title{font-size:13px;font-weight:700;color:var(--text)}.hard-rule-detail{font-size:12px;color:#5b6572;line-height:1.45}.flag-list{margin-top:12px;display:flex;flex-direction:column;gap:2px}.rule-toggle{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.45;font-weight:500;cursor:pointer;padding:9px 0}.rule-toggle input{margin-top:2px;flex:none}.rule-toggle+.hint{margin-top:2px}.rest-row{align-items:center;gap:10px;margin:0}.rest-row .rest-name{flex:1;font-weight:600;color:var(--text);font-size:13px}.rest-row input{width:72px}.custom-rule{border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px;margin-bottom:8px;background:var(--surface-2)}.custom-rule-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.custom-rule-name{font-weight:650}.custom-rule-note{margin:6px 0 0 26px;font-size:12px;color:var(--muted)}.danger-link{color:var(--danger);font-size:11px;flex:none}.custom-add{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding-top:12px;border-top:1px dashed var(--border-strong)}.custom-add-name,.custom-add-note{border:1px solid var(--border-strong);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit}.custom-add .btn.tiny{align-self:flex-start}.editor-rows{display:flex;flex-direction:column;gap:8px;margin:12px 0}.editor-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}.editor-row.on{background:var(--surface);border-color:var(--border-strong)}.editor-out{display:flex;align-items:center;gap:9px;font-weight:600;cursor:pointer}.editor-jet{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);cursor:pointer}.editor-jet.disabled{opacity:.4;cursor:not-allowed}.legend-swatch.sm{min-width:20px;height:18px;border-radius:5px;display:inline-block}.editor-alert{padding:9px 12px;border-radius:8px;font-size:12.5px;font-weight:600;margin:10px 0 0}.editor-alert.error{background:#fdecea;color:var(--danger);border:1px solid #f5c6c0}.editor-alert.warn{background:#f7eddc;color:var(--warn);border:1px solid #eacfa6}.editor-alert.ok{background:#e6f4ee;color:var(--ok);border:1px solid #b6ddcb}.mandatory-toggle{display:flex;align-items:center;gap:9px;margin:12px 0 0;font-size:13px;font-weight:600;cursor:pointer}.send-modal .modal-body{display:flex;flex-direction:column;gap:20px}.send-modal .modal-body>.hint{margin:0}.send-modal .email-preview{margin-top:0}.email-preview{margin-top:14px;border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}.email-preview-head{background:var(--surface-2);padding:8px 12px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);border-bottom:1px solid var(--border)}.email-preview pre{margin:0;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;white-space:pre-wrap;color:var(--text)}.clip-fallback{width:100%;margin-top:10px;min-height:90px;border:1px solid var(--border-strong);border-radius:8px;padding:10px;font-family:ui-monospace,monospace;font-size:12px}.print-capture{position:fixed;left:-12000px;top:0}.print-sheet{width:1280px;background:#fff;padding:28px;display:flex;flex-direction:column;gap:18px}.print-title h1{font-size:24px;color:var(--brand)}.print-title p{margin:4px 0 0;color:var(--muted);font-size:13px}.save-row{display:flex;gap:8px;margin-top:16px}.save-row input{flex:1;border:1px solid var(--border-strong);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit}.save-row.secondary{margin-top:10px}.save-row.secondary .btn{flex:1;justify-content:center}.btn.danger{color:var(--danger);border-color:#e7b3ad}.btn.danger:hover{background:#fdecea}.btn.tiny.primary{color:#fff}.snap-list{display:flex;flex-direction:column;gap:10px;margin-top:22px;padding-top:20px;border-top:1px solid var(--border)}.snap-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2)}.snap-name{font-weight:650;font-size:13.5px}.snap-meta{font-size:11.5px;color:var(--muted);margin-top:3px}.snap-actions{display:flex;gap:6px;flex:none}.chat-drawer{position:fixed;top:0;right:0;bottom:0;width:min(400px,100%);background:var(--surface);border-left:1px solid var(--border);box-shadow:-8px 0 30px #0000001f;display:flex;flex-direction:column;z-index:45}.chat-sub{margin:2px 0 0;font-size:11.5px;color:var(--muted)}.chat-body{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:12px}.chat-empty{display:flex;flex-direction:column;gap:12px}.chat-suggestions{display:flex;flex-direction:column;gap:8px}.chat-suggestion{text-align:left;border:1px solid var(--border-strong);background:var(--surface-2);border-radius:10px;padding:9px 12px;font-size:12.5px;color:var(--text);cursor:pointer;font-family:inherit}.chat-suggestion:hover{border-color:var(--brand)}.chat-msg{display:flex;flex-direction:column;gap:8px;max-width:92%}.chat-msg.user{align-self:flex-end;align-items:flex-end}.chat-msg.assistant{align-self:flex-start}.chat-bubble{padding:9px 13px;border-radius:14px;font-size:13px;line-height:1.5;white-space:pre-wrap}.chat-msg.user .chat-bubble{background:var(--brand);color:#fff;border-bottom-right-radius:4px}.chat-msg.assistant .chat-bubble{background:var(--surface-2);border:1px solid var(--border);border-bottom-left-radius:4px}.chat-bubble.typing{color:var(--muted);font-style:italic}.md p{margin:0 0 8px}.md>:last-child{margin-bottom:0}.md ul,.md ol{margin:4px 0 8px;padding-left:18px}.md li{margin:2px 0}.md strong{font-weight:700}.md h1,.md h2,.md h3{font-size:13.5px;margin:8px 0 4px;font-weight:700}.md code{background:#00000012;padding:1px 4px;border-radius:4px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.md pre{background:#00000012;padding:8px 10px;border-radius:6px;overflow-x:auto}.md pre code{background:none;padding:0}.md a{color:var(--brand)}.proposal-card{border:1px solid var(--border-strong);border-radius:12px;background:var(--surface);padding:12px}.proposal-summary{font-size:12.5px;font-weight:600;margin-bottom:8px}.proposal-changes{margin:0 0 10px;padding-left:16px;display:flex;flex-direction:column;gap:3px}.proposal-changes li{font-size:12px;font-variant-numeric:tabular-nums}.proposal-actions{display:flex;justify-content:flex-end}.proposal-applied{font-size:12px;font-weight:700;color:var(--ok);text-align:right}.chat-error{background:#fdecea;color:var(--danger);border:1px solid #f5c6c0;border-radius:10px;padding:9px 12px;font-size:12.5px}.chat-input{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--border);background:var(--surface-2);align-items:flex-end}.chat-input textarea{flex:1;resize:none;border:1px solid var(--border-strong);border-radius:10px;padding:9px 11px;font-size:13px;font-family:inherit;line-height:1.4}@media (max-width: 1040px){.quarter-calendar{grid-template-columns:1fr}.year-calendar{grid-template-columns:repeat(2,1fr)}.compare-grid,.insights-grid{grid-template-columns:1fr}}@media (max-width: 900px){.app{flex-direction:column}.sidebar-nav{width:100%;height:auto;position:static;flex-direction:row;flex-wrap:wrap;align-items:center}.sidebar-group{flex-direction:row;align-items:center;flex-wrap:wrap}.sidebar-group.actions{margin-top:0}.btn.full,.seg.full{width:auto}}@media (max-width: 560px){.stat-cards,.year-calendar{grid-template-columns:1fr}.main{padding:14px}}.auth-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg);padding:24px}.auth-card{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px;box-shadow:0 10px 30px #14233214}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.auth-brand h1{font-size:20px;margin:0}.auth-seg{margin-bottom:18px}.auth-form{display:flex;flex-direction:column;gap:14px}.auth-form .btn{margin-top:4px}.auth-error{color:#b3261e;font-size:13px;margin:0}.auth-notice{color:var(--brand);font-size:13px;margin:0}.auth-foot{margin-top:18px;font-size:12px;color:var(--muted);text-align:center}.auth-msg{font-size:14px;line-height:1.5;color:var(--text);margin:0 0 18px}.auth-splash{display:flex;flex-direction:column;align-items:center;gap:12px;color:var(--muted)}.auth-splash .brand-mark{font-size:32px}.team-select{width:100%;padding:9px 10px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);font-size:13px;color:var(--text);cursor:pointer}.role-static{font-size:12px;font-weight:600;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 12px;text-align:center}.save-msg{margin-top:2px}.sidebar-foot{margin-top:auto;padding-top:16px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--border)}.sidebar-email{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
