.modal{width:min(520px,100%)}
.person-profile{display:flex;align-items:center;gap:13px;margin-bottom:12px}.person-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:18px;overflow:hidden;background:linear-gradient(145deg,#e7f3ff,#d5e8f8);color:#245b87;display:grid;place-items:center;font-size:21px;font-weight:850;box-shadow:inset 0 0 0 1px #d7e3eb}.person-avatar img{width:100%;height:100%;object-fit:cover}.person-heading{min-width:0}.person-heading h2{overflow-wrap:anywhere}.person-heading p{margin:3px 0 6px}.avatar-change{border:0;background:transparent;color:var(--blue);font-size:12px;font-weight:750;padding:0}.avatar-change:hover{text-decoration:underline}.avatar-paste-hint{color:#84919c;font-size:11px;margin-left:7px}
.mini-calendar{border:1px solid var(--line);border-radius:15px;overflow:hidden;margin:14px 0}
.mini-week,.mini-days{display:grid;grid-template-columns:repeat(7,1fr)}
.mini-week{background:#f4f7f9;color:#7c8993;font-size:10px;font-weight:750;text-align:center}
.mini-week span{padding:7px 2px}
.mini-day{min-height:47px;border-top:1px solid #edf1f3;border-right:1px solid #edf1f3;padding:5px;display:flex;flex-direction:column;align-items:center;gap:3px}
.mini-day:nth-child(7n){border-right:0}
.mini-day.blank{background:#fafcfd}
.mini-day .num{font-size:10px;color:#7b8993}
.mini-day .mini-shift{display:grid;place-items:center;width:24px;height:21px;border-radius:6px;font-size:11px;font-weight:850}
.mini-day .mini-shift.D{background:#dff1ff;color:#0969b9}
.mini-day .mini-shift.N{background:#e9e3ff;color:#6045b8}
.mini-day .mini-shift.H{background:#e8f6eb;color:#278548}
.mini-day .mini-shift.C{background:#fff0d7;color:#a46200}
.mini-day .mini-shift.empty{background:#f2f5f7;color:#b8c1c8}
.mini-day.workday{background:#fbfdff}
.stats-label{font-size:11px;font-weight:800;color:#7b8993;text-transform:uppercase;letter-spacing:.06em;margin-top:16px}
@media(max-width:520px){.mini-day{min-height:42px;padding:4px}.mini-day .mini-shift{width:22px;height:19px}.modal{padding:16px}}
.import-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}.import-summary div{background:#f4f7f9;border-radius:12px;padding:12px 6px;text-align:center}.import-summary b{display:block;font-size:20px}.import-summary small{font-size:10px;color:#71808c}.import-preview{max-height:250px;overflow:auto;border:1px solid var(--line);border-radius:12px}.import-preview>div{display:grid;grid-template-columns:120px 1fr;gap:10px;padding:8px 10px;border-bottom:1px solid #edf1f3;font-size:12px}.import-preview span{color:#71808c}.import-preview>small{display:block;padding:9px;color:#71808c}.import-warning{color:#a46200!important;background:#fff7e8;padding:8px 10px;border-radius:9px}

/* Slightly larger default type for comfortable schedule reading. */
body{font-size:17px}
.brand h1{font-size:22px}.brand p,.status{font-size:13px}
.seg button,.btn{font-size:14px}.month,.search{font-size:14px}
.legend{font-size:13px}.schedule{font-size:13px}
.schedule th,.schedule td{height:44px}.schedule thead th{height:51px}
.cell{font-size:15px}.day small{font-size:11px}.person{font-size:13px}
.bottom-note{font-size:12px}.modal p{font-size:14px}
.field label{font-size:13px}.stat small{font-size:12px}
.mobile-team h3{font-size:15px}.mobile-person{font-size:14px}.chip{font-size:12px}
.import-preview>div{font-size:13px}.import-summary small{font-size:11px}

@media(max-width:720px){
  :root{--team:66px;--name:142px}
  .table-wrap{display:block;max-height:calc(100vh - 178px);overflow:auto;border-radius:14px}
  .mobile-list{display:none}
  .schedule{font-size:12px}
  .schedule th,.schedule td{height:42px}
  .schedule thead th{height:48px}
  .schedule .name-col{padding:0 9px}
  .team-name{padding:5px;font-size:11px}
  .person{font-size:12px;max-width:124px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cell{font-size:14px;min-width:40px}
  .day{min-width:40px}
  .bottom-note{position:sticky;left:0;background:rgba(255,255,255,.92)}
}
.date-filter-btn{width:100%;height:100%;border:0;background:transparent;color:inherit;font-weight:inherit;padding:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.date-filter-btn:hover{background:#eaf4ff;color:#0d65c5}.date-filter-btn .key{width:19px;height:17px;font-size:9px;margin:1px 0 0;border-radius:5px}.day.filter-active{background:#eaf4ff!important;box-shadow:inset 0 -3px var(--blue)}
/* Outline the whole current date without replacing shift colors or selection shadows. */
.schedule tbody td.today-column{position:relative}
.schedule .today-column::before{content:"";position:absolute;inset:0 -1px -1px 0;border-left:2px solid var(--blue);border-right:2px solid var(--blue);pointer-events:none;z-index:2}
.schedule thead .today-column::before{border-top:2px solid var(--blue)}
.schedule tbody tr:last-child .today-column::before,.schedule:has(tbody:empty) thead .today-column::before{border-bottom:2px solid var(--blue)}
.active-filter{display:flex;align-items:center;gap:4px;background:#eaf4ff;color:#135f9e;border-radius:9px;padding:3px 6px 3px 4px;font-weight:750}.active-filter .key{margin:0}.active-filter button{border:0;background:transparent;color:#56758e;font-size:17px;line-height:1;padding:0 2px}
.shift-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0}.shift-filter-option{border:0;border-radius:13px;padding:12px;display:flex;align-items:center;gap:10px;text-align:left}.shift-filter-option i{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;font-style:normal;font-weight:850}.shift-filter-option span{font-size:13px;font-weight:750}.shift-filter-option.D{background:#eef8ff;color:#0969b9}.shift-filter-option.N{background:#f2efff;color:#6045b8}.shift-filter-option.H{background:#eff8f1;color:#278548}.shift-filter-option.C{background:#fff7e8;color:#a46200}.shift-filter-option:hover{filter:brightness(.97)}
.shift-filter-option{position:relative;border:2px solid transparent}.shift-filter-option.selected{border-color:currentColor;box-shadow:0 3px 12px #263e5214}.filter-check{margin-left:auto;opacity:0;font-size:15px}.shift-filter-option.selected .filter-check{opacity:1}.filter-key-group,.date-filter-keys{display:flex;gap:2px}.date-filter-keys .key{width:15px;height:14px;font-size:8px}.date-filter-btn:has(.date-filter-keys){gap:0}
.pattern-mark{font-style:normal;color:#1677ff;font-size:12px;margin-left:5px}.cell.generated{font-weight:750}.cell.override{position:relative}.cell.override::after{content:"";position:absolute;right:3px;top:3px;width:4px;height:4px;border-radius:50%;background:#f05b55}.modal:has(#autoScheduleBody){width:min(760px,100%)}.auto-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.detection{background:#edf7ff;color:#315e7e;border-radius:10px;padding:9px 11px;font-size:12px}.detection.muted{background:#f4f7f9;color:#71808c}.pattern-preview{display:grid;grid-template-columns:repeat(10,1fr);gap:5px;margin:12px 0}.pattern-preview-day{min-height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:4px;background:#f2f5f7;color:#9aa6af}.pattern-preview-day small{font-size:9px}.pattern-preview-day b{font-size:13px}.pattern-preview-day.D{background:#dff1ff;color:#0969b9}.pattern-preview-day.N{background:#e9e3ff;color:#6045b8}.pattern-preview-day.H{background:#e8f6eb;color:#278548}.pattern-preview-day.C{background:#fff0d7;color:#a46200}.check-row{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:650;margin:11px 0}.check-row input{margin-top:3px}.pattern-note{background:#f4f7f9;border-radius:10px;padding:9px 11px;margin:8px 0!important;font-size:12px!important}
@media(max-width:600px){.auto-grid{grid-template-columns:1fr}.pattern-preview{grid-template-columns:repeat(7,1fr)}.pattern-preview-day{min-height:36px}.modal:has(#autoScheduleBody){max-height:94vh;overflow:auto}}
.cycle-legend{background:#f7f9fa;border:1px solid #e5ebef;border-radius:12px;padding:10px 11px;margin:8px 0 13px;overflow-x:auto}.cycle-legend>label{display:block;color:#687783;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;margin-bottom:7px}.cycle-cells{display:flex;gap:3px;min-width:max-content}.cycle-cell{width:29px;height:30px;border-radius:7px;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px}.cycle-cell small{font-size:7px;line-height:8px;opacity:.72}.cycle-cell b{font-size:11px;line-height:12px}.cycle-cell.D{background:#dff1ff;color:#0969b9}.cycle-cell.N{background:#e9e3ff;color:#6045b8}.cycle-cell.H{background:#e8f6eb;color:#278548}.cycle-cell.C{background:#fff0d7;color:#a46200}.cycle-flow{display:flex;align-items:center;gap:8px;min-width:max-content}.cycle-flow>div{display:flex;align-items:center;gap:5px}.cycle-flow i{font-style:normal;color:#8a98a3;font-size:18px}.cycle-flow em{font-style:normal;font-size:12px;font-weight:800;color:#506170}
.modal:has(#helpContent){width:min(760px,100%);max-height:92vh;overflow:auto}.help-sections{display:grid;grid-template-columns:1fr 1fr;gap:10px}.help-sections section{background:#f6f8fa;border:1px solid #e8edf0;border-radius:13px;padding:12px 14px}.help-sections h3{font-size:14px;margin:0 0 7px;color:#25435e}.help-sections ul{margin:0;padding-left:18px;color:#596a77;font-size:12px;line-height:1.55}.help-sections li+li{margin-top:4px}.help-sections kbd{background:#fff;border:1px solid #cfd9df;border-bottom-width:2px;border-radius:5px;padding:1px 5px;color:#31495d;font-size:11px}.help-shifts{display:grid;gap:6px;color:#596a77;font-size:12px}.help-shifts span{display:flex;align-items:center}.help-shifts .key{margin-right:7px}@media(max-width:620px){.help-sections{grid-template-columns:1fr}.modal:has(#helpContent){max-height:94vh}.help-sections section{padding:11px 12px}}
.key.L,.cell.L,.mini-day .mini-shift.L,.pattern-preview-day.L,.cycle-cell.L{background:#ffe3e8;color:#b42345}.shift-filter-option.L{background:#fff0f3;color:#b42345}.stats{grid-template-columns:repeat(6,1fr)}.comparison-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:9px 0}.comparison-summary>div{background:#f4f7f9;border-radius:11px;padding:10px;text-align:center}.comparison-summary small{display:block;color:#71808c;font-size:10px}.comparison-summary b{display:block;font-size:18px;margin-top:2px}.comparison-summary .negative{background:#fff0f3;color:#b42345}.comparison-summary .positive{background:#eaf8ef;color:#237a43}.change-list{display:flex;flex-wrap:wrap;gap:6px;max-height:125px;overflow:auto;border:1px solid #e5ebef;border-radius:11px;padding:8px}.change-list>span{display:flex;align-items:center;gap:3px;background:#f7f9fa;border-radius:8px;padding:4px 6px}.change-list>span>b{font-size:10px;color:#71808c;margin-right:2px}.change-list .key{width:21px;height:21px;margin:0;font-size:10px}.change-list em{font-style:normal;color:#94a0a8}.change-list>small,.actual-not-ready{font-size:12px;color:#82909b}.actual-not-ready{background:#f4f7f9;border-radius:10px;padding:9px 11px;margin-top:10px}@media(max-width:520px){.comparison-summary{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.stats{grid-template-columns:repeat(3,1fr)}}
@page{size:A4 landscape;margin:6mm}
@media print{
  html,body{width:auto!important;background:#fff!important}
  .shell{width:auto!important;max-width:none!important;padding:0!important}
  .schedule{width:auto!important;min-width:0!important;table-layout:fixed!important;margin:0 auto!important;font-size:7.5pt!important}
  .schedule th,.schedule td{height:22px!important;min-height:22px!important;padding:0!important;line-height:1!important}
  .schedule thead th{height:28px!important;font-size:7pt!important}
  .schedule thead th.today-column{position:relative}
  .schedule .team-col{width:52px!important;min-width:52px!important;max-width:52px!important;padding:0 2px!important;font-size:6.5pt!important}
  .schedule .name-col{width:112px!important;min-width:112px!important;max-width:112px!important;padding:0 3px!important;font-size:7pt!important;overflow:hidden!important;white-space:nowrap!important}
  .schedule .day,.schedule .cell{width:20px!important;min-width:20px!important;max-width:20px!important;font-size:7.5pt!important}
  .schedule .day small{font-size:5.5pt!important;margin-top:1px!important}
  .schedule .person{font-size:7pt!important;max-width:105px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .schedule .collapse,.pattern-mark{display:none!important}
  .cell.override::after{display:none!important}
  .print-title{display:block!important;text-align:center;margin:0 0 5mm!important}.print-title h1{font-size:14pt!important;line-height:1.2!important;margin:0!important;color:#16202a!important}.print-title p{font-size:8.5pt!important;margin:1.5mm 0 0!important;color:#596a77!important;font-weight:650!important}
}
.print-title{display:none}
