@font-face { font-family: 'Roboto'; font-weight: 400; font-display: swap; src: url(fonts/roboto-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 500; font-display: swap; src: url(fonts/roboto-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Roboto'; font-weight: 700; font-display: swap; src: url(fonts/roboto-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 400; font-display: swap; src: url(fonts/playfair-display-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 600; font-display: swap; src: url(fonts/playfair-display-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url(fonts/playfair-display-latin-700-normal.woff2) format('woff2'); }

:root {
  --petrol: #2E5661;
  --petrol-dark: #23444D;
  --coral: #F07B6B;
  --coral-soft: #F6A99D;
  --teal: #1D6B68;
  --teal-hover: #175855;
  --page: #CDE7E6;
  --mint: #DCF0EE;
  --mint-line: #B9DCD9;
  --card: #FAFCFC;
  --ink: #1C2A2E;
  --muted: #5D6E72;
  --line: #D3E2E2;
  --red: #D21F1F;
  --amber: #A86200;
  --ok: #2C6B4C;
  --radius: 18px;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Roboto', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--page); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar { background: var(--petrol); border-bottom: 6px solid var(--coral); color: #fff; }
.topbar-inner { max-width: none; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; padding-right: 26px; border-right: 1px solid rgba(255,255,255,.25); }
.brand .logo { display: block; height: 44px; width: auto; }
.title-block h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0; line-height: 1.1; }
.period { margin: 4px 0 0; color: #DCEBEC; font-size: 18px; }
.who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 18px; }
.who .select { min-width: 230px; background-color: #fff; color: var(--ink); }
.who .name-pill { background: #fff; color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 400; }

/* ---------- layout ---------- */
.layout { max-width: none; margin: 0 auto; padding: 48px 32px 24px; display: grid; grid-template-columns: minmax(520px, 1fr) minmax(0, 1.25fr); gap: 36px; align-items: start; }
.col-left { display: grid; gap: 36px; min-width: 0; }
.col-right, .col-left > * { min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(23, 60, 66, .08), 0 6px 18px rgba(23, 60, 66, .06); padding: 32px 36px; }
.card.accent { border-top: 6px solid var(--coral); }
h2 { font-family: var(--serif); font-weight: 700; font-size: 31px; margin: 0; letter-spacing: .005em; }
.sub { color: var(--muted); margin: 6px 0 0; font-size: 18px; }
.muted { color: var(--muted); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 10px; border: 1px solid var(--mint-line); background: var(--mint); color: var(--petrol-dark); padding: 11px 20px; font-size: 18px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: #CDEAE7; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); padding-left: 8px; padding-right: 8px; }
.btn.ghost:hover { color: var(--ink); background: transparent; }
.btn.outline { background: #fff; border-color: var(--line); }
.btn.small { font-size: 15px; padding: 7px 14px; gap: 6px; }
.btn.small svg { width: 17px; height: 17px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .seg button:focus-visible, .day:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.select, .input { appearance: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 16px; font-size: 18px; min-height: 48px; }
.select { padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235D6E72' stroke-width='1.8'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.input { width: 100%; }
label.lbl { display: block; font-weight: 500; font-size: 19px; margin: 0 0 8px; }

/* ---------- check-in ---------- */
.checkin { display: grid; grid-template-columns: 60px 1fr; gap: 18px; padding: 26px 26px 26px 24px; }
.bell { width: 60px; height: 60px; border-radius: 50%; background: var(--petrol); display: grid; place-items: center; }
.bell svg { width: 30px; height: 30px; color: #fff; }
.checkin h3 { margin: 0; font-size: 22px; font-weight: 500; }
.checkin h3 small { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 8px; }
.checkin p { margin: 8px 0 0; font-size: 21px; }
.checkin .meta { font-size: 18px; color: var(--muted); margin-top: 6px; }
.fresh-stale { color: var(--red); font-weight: 500; }
.fresh-warn { color: var(--amber); font-weight: 500; }
.fresh-ok { color: var(--ok); font-weight: 500; }
.checkin .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.done-note { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 500; margin-top: 14px; }
.done-note svg { width: 22px; height: 22px; }

/* ---------- my forecast ---------- */
.myf h2 { margin: 18px 0 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 7px 10px; min-height: 54px; }
.chips input { border: 0; outline: none; flex: 1; min-width: 160px; font-size: 18px; padding: 6px 8px; background: transparent; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--mint); border: 1px solid var(--mint-line); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: 17px; }
.chip button { border: 0; background: transparent; cursor: pointer; width: 26px; height: 26px; border-radius: 50%; color: var(--muted); font-size: 18px; line-height: 1; }
.chip button:hover { background: #fff; color: var(--ink); }
.fill { background: #F2F4F3; border-radius: 14px; padding: 18px 18px 20px; margin-top: 30px; }
.fill .row { display: flex; gap: 12px; flex-wrap: wrap; }
.fill .select { min-width: 230px; }
.fill .hint { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.week { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.week:first-of-type { margin-top: 26px; }
.week-label strong { display: block; font-size: 22px; font-weight: 700; }
.week-label span { color: var(--muted); font-size: 18px; }
.week-label .now { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--petrol); background: var(--mint); border-radius: 999px; padding: 2px 10px; }
.seg { display: inline-flex; flex-wrap: wrap; }
.seg button { border: 1px solid var(--mint-line); background: #fff; padding: 9px 18px; font-size: 18px; cursor: pointer; margin: 0 -1px -1px 0; }
.seg button[aria-pressed="true"] { background: var(--mint); color: var(--petrol-dark); font-weight: 500; position: relative; }
.seg button:hover { background: #EEF8F7; }
.week-body { min-width: 0; }
.panel { margin-top: 16px; display: grid; gap: 12px; }
.alloc { display: grid; grid-template-columns: minmax(0, 1fr) 120px 40px; max-width: 760px; gap: 10px; align-items: center; }
.alloc .input { min-height: 44px; font-size: 17px; padding: 9px 12px; }
.pct-wrap { position: relative; }
.pct-wrap .input { padding-right: 32px; text-align: right; }
.pct-wrap::after { content: '%'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { background: #EDF2F2; color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.days { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.days .lbl2 { font-size: 15px; color: var(--muted); margin-right: 4px; }
.day { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 15px; cursor: pointer; }
.day[aria-pressed="true"] { background: repeating-linear-gradient(135deg, #FBD9D3 0 4px, #FFF 4px 9px); border-color: var(--coral-soft); color: #8E2E20; font-weight: 500; }
.days .select { min-height: 36px; font-size: 15px; padding: 5px 34px 5px 12px; background-position: right 10px center; }
.total { font-size: 15px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.total b { color: var(--ink); font-size: 17px; }
.total .over { color: #8E2E20; font-weight: 500; }
.leave-panel .select { max-width: 320px; }
.week-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.unknown-note { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.note { color: var(--muted); font-size: 18px; margin: 30px 0 0; }
.save-bar { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; flex-wrap: wrap; }
.save-bar .dirty { color: var(--amber); font-size: 15px; }
.more-weeks { margin-top: 18px; }

/* ---------- overview ---------- */
.ov-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.ov-filters { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ov-filters label { font-weight: 500; font-size: 18px; }
.ov-filters .select { min-width: 160px; }
.ov-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 24px 0 8px; }
.ov-tools .input { max-width: 240px; min-height: 40px; font-size: 16px; padding: 8px 14px; }
.ov-tools .select { min-height: 40px; font-size: 16px; padding: 7px 40px 7px 14px; }
.status-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 15px; cursor: pointer; }
.status-chip[aria-pressed="true"] { background: var(--petrol); color: #fff; border-color: var(--petrol); }
.status-chip .n { opacity: .7; margin-left: 4px; }
.grid-scroll { overflow-x: auto; margin-top: 12px; padding-bottom: 8px; }
.grid { display: grid; min-width: max-content; column-gap: 10px; row-gap: 10px; align-items: center; }
.gh { text-align: center; font-weight: 700; font-size: 17px; line-height: 1.2; }
.gh span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 3px; }
.gh.cur { color: var(--petrol); }
.gh-left { font-size: 14px; color: var(--muted); }
.person { padding-left: 16px; min-width: 0; }
.person b { display: block; font-weight: 500; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.person.me b::after { content: ' (you)'; color: var(--muted); font-weight: 400; }
.cell { position: relative; height: 46px; width: 100%; min-width: 104px; border-radius: 4px; display: grid; place-items: center; font-weight: 500; font-size: 15px; overflow: hidden; color: var(--ink); }
.cell .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--petrol-dark); }
.cell.unknown { border: 2px dashed #C8D6D6; background: transparent; color: var(--muted); font-weight: 400; }
.cell.leave { background: repeating-linear-gradient(135deg, #F6B3A8 0 2px, #FFF 2px 10px); border: 1px solid #F6C6BE; font-size: 14px; }
.cell .lbl { position: relative; background: rgba(255,255,255,.85); padding: 0 4px; border-radius: 3px; }
.cell .offpart { position: absolute; top: 0; right: 0; bottom: 4px; background: repeating-linear-gradient(135deg, #F6B3A8 0 2px, rgba(255,255,255,.7) 2px 8px); }
.cell .v { position: relative; }
.cell .offpart + .v { background: rgba(255,255,255,.55); padding: 0 5px; border-radius: 3px; }
.cell.dark .v { color: #fff; }
.cell .tri { font-size: 11px; margin-right: 3px; }
.reviewed { font-size: 15px; white-space: nowrap; padding-left: 6px; }
.gavg { border-top: 2px solid var(--line); padding-top: 12px; align-self: stretch; }
.avg { text-align: center; font-weight: 700; font-size: 18px; line-height: 1.25; }
.avg span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; font-size: 17px; }
.legend span { display: inline-flex; align-items: center; gap: 10px; }
.sw { width: 48px; height: 20px; border-radius: 6px; display: inline-block; }
.sw.grad { background: linear-gradient(90deg, #D9ECEB, #6FA5A8); }
.sw.hatch { background: repeating-linear-gradient(135deg, #F6B3A8 0 2px, transparent 2px 9px); }
.sw.dash { border: 2px dashed #C8D6D6; }
.empty { padding: 30px 0; color: var(--muted); text-align: center; }

details.table-wrap { margin-top: 26px; border: 1px solid var(--line); border-radius: 12px; padding: 16px 12px 4px; }
details.table-wrap summary { font-size: 18px; font-weight: 500; cursor: pointer; padding: 0 4px 12px; }
.tbl-scroll { overflow-x: auto; }
table.plain { border-collapse: collapse; width: 100%; font-size: 16px; }
table.plain th { text-align: left; font-weight: 500; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.plain td { padding: 12px; vertical-align: top; border-top: 1px solid var(--line); }
table.plain td small { display: block; color: var(--muted); font-size: 14px; }

/* ---------- misc ---------- */
.foot { max-width: none; margin: 0 auto; padding: 8px 32px 40px; color: #4F6B6E; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--petrol-dark); color: #fff; padding: 12px 22px; border-radius: 999px; opacity: 0; transition: .25s; pointer-events: none; z-index: 10; font-size: 16px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #8E2E20; }
.signin { text-align: center; padding: 40px 30px; }
.signin p { color: var(--muted); font-size: 18px; }
.skeleton { color: var(--muted); padding: 20px 0; }

@media (max-width: 1200px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 14px 16px; gap: 12px; }
  .brand { border: 0; padding: 0; }
  .brand .logo { height: 32px; }
  .title-block h1 { font-size: 26px; }
  .period { font-size: 15px; }
  .who { margin-left: 0; width: 100%; font-size: 16px; }
  .who .select { flex: 1; min-width: 0; }
  .layout { padding: 20px 12px; gap: 20px; }
  .col-left { gap: 20px; }
  .card { padding: 22px 18px; }
  .checkin { grid-template-columns: 1fr; padding: 20px; }
  .checkin p { font-size: 19px; }
  .week { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .week-label strong { display: inline; margin-right: 8px; }
  .seg button { padding: 8px 12px; font-size: 16px; }
  h2 { font-size: 26px; }
  .btn { font-size: 16px; padding: 10px 16px; }
  .alloc { grid-template-columns: minmax(0, 1fr) 92px 36px; }
}
/* keep names visible while scrolling the weeks sideways */
.grid .person, .grid .gh-left:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }

/* signed out: the overview gets the full width, welcome becomes a slim banner */
.layout.solo { grid-template-columns: minmax(0, 1fr); }
.layout.solo .signin { text-align: left; padding: 22px 32px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.layout.solo .signin h2 { font-size: 26px; }
.layout.solo .signin p { margin: 0; }

/* editable cells + pop-up editor */
.cell.editable { cursor: pointer; transition: box-shadow .12s, transform .12s; }
.cell.editable:hover, .cell.editable:focus-visible { box-shadow: 0 0 0 2px var(--coral); outline: none; }
dialog.editor { border: 0; border-radius: var(--radius); padding: 26px 30px; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(20, 50, 56, .3); }
dialog.editor::backdrop { background: rgba(30, 55, 62, .45); }
.dlg-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dlg-head h3 { font-family: var(--serif); font-size: 26px; margin: 0; }
.dlg-head p { margin: 4px 0 0; color: var(--muted); }
.dlg-week .week { border-bottom: 0; padding: 18px 0 8px; margin-top: 0; }
.dlg-foot { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; }
.small-note { font-size: 14px; }
@media (max-width: 640px) { dialog.editor { padding: 20px 16px; } }

/* week picker in the pop-up editor */
.wk-title { font-weight: 500; margin-top: 20px; }
.wk-picker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.wk { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px 12px; cursor: pointer; display: grid; text-align: center; min-width: 64px; line-height: 1.2; }
.wk b { font-size: 15px; }
.wk span { font-size: 12px; color: var(--muted); }
.wk[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.wk[aria-pressed="true"] span { color: #D6ECEA; }
.wk:hover { border-color: var(--teal); }
.wk-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.wk-note.warn { color: var(--amber); }
.dlg-week .week { grid-template-columns: 1fr; }
.dlg-week .week-label { display: none; }

/* ---------- view tabs in the header ---------- */
[hidden] { display: none !important; }
.views { display: flex; gap: 6px; margin-left: 28px; background: rgba(255,255,255,.08); padding: 5px; border-radius: 999px; }
.view-tab { color: #E3F0F0; text-decoration: none; font-size: 17px; font-weight: 500; padding: 9px 22px; border-radius: 999px; }
.view-tab:hover { background: rgba(255,255,255,.12); }
.view-tab[aria-current="page"] { background: #fff; color: var(--petrol-dark); }
.view-tab:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---------- planning ---------- */
.planning { max-width: none; margin: 0 auto; padding: 48px 32px 24px; }
.p-layout { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 36px; align-items: start; }
.p-filters { position: sticky; top: 20px; display: grid; gap: 4px; }
.p-filters h2 { font-size: 30px; }
.p-group { border-top: 1px solid var(--line); padding: 18px 0 6px; margin-top: 12px; display: grid; gap: 10px; }
.p-label { font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; color: var(--petrol-dark); }
.p-row { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 10px; }
.p-row label { color: var(--muted); }
.p-filters .select { width: 100%; min-height: 44px; font-size: 16px; }
.p-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.p-chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 13px; font-size: 14px; cursor: pointer; }
.p-chip:hover { border-color: var(--teal); }
.p-chip[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.p-chip.skill[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.p-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.seg-sm button { padding: 6px 12px; font-size: 15px; }
.p-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); cursor: pointer; }
.p-check input { margin-top: 3px; accent-color: var(--teal); width: 17px; height: 17px; }
.p-help { font-size: 14px; margin: 0; }
.linkish { border: 0; background: none; color: var(--teal); cursor: pointer; font-size: 14px; text-decoration: underline; }

.p-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.p-head h2 { font-size: 30px; }
.p-head-sub { font-family: var(--sans); font-weight: 400; font-size: 18px; color: var(--muted); }
.p-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); margin: 16px 0 6px; }
.p-legend span { display: inline-flex; align-items: center; gap: 7px; }
.fsw { width: 26px; height: 14px; border-radius: 4px; display: inline-block; }
.fsw.ok, .fcell.ok { background: #CFEBDD; color: #1F5A3D; }
.fsw.some, .fcell.some { background: #FBEBC9; color: #7A4B00; }
.fsw.none, .fcell.none { background: #E7ECEC; color: #6B7A7D; }
.fsw.unk, .fcell.unk { background: transparent; border: 2px dashed #C8D6D6; color: var(--muted); }
.p-group-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.p-group-title b { font-size: 17px; }
.p-group-title span { color: var(--muted); font-size: 14px; }
.fit-available b { color: #1F5A3D; }
.fit-partly b { color: #7A4B00; }
.fit-unknown b { color: var(--muted); }
.p-list { display: grid; gap: 8px; }
.p-card { display: grid; grid-template-columns: 30px minmax(220px, 340px) minmax(0, 1fr) 130px; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fff; }
.p-card.picked { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral); }
.p-pick input { width: 18px; height: 18px; accent-color: var(--coral); cursor: pointer; }
.p-who { min-width: 0; display: grid; gap: 3px; }
.p-who b { font-size: 17px; font-weight: 500; }
.p-meta { font-size: 13px; color: var(--muted); }
.p-skills { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0; }
.sk { font-size: 12px; background: #EEF4F4; border-radius: 999px; padding: 2px 9px; color: var(--petrol-dark); }
.sk.hit { background: var(--coral); color: #fff; font-weight: 500; }
.p-strip { display: grid; gap: 5px; overflow-x: auto; }
.fcell { border-radius: 6px; padding: 5px 4px; text-align: center; line-height: 1.15; min-height: 46px; display: grid; align-content: center; }
.fcell .wl { font-size: 11px; opacity: .8; }
.fcell b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-sum { display: grid; justify-items: end; gap: 2px; text-align: right; }
.p-sum > b { font-size: 22px; line-height: 1; }
.p-sum span { font-size: 13px; color: var(--muted); }
.p-sum .p-unk { color: var(--amber); }
.p-fresh { margin-top: 4px; }

@media (max-width: 1200px) {
  .views { margin-left: 0; }
  .p-layout { grid-template-columns: minmax(0, 1fr); }
  .p-filters { position: static; }
}
@media (max-width: 900px) {
  .p-card { grid-template-columns: 26px minmax(0, 1fr); }
  .p-card .p-strip, .p-card .p-sum { grid-column: 1 / -1; }
  .p-sum { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 10px; align-items: baseline; }
}
@media (max-width: 640px) {
  .planning { padding: 20px 12px; }
  .views { order: 3; width: 100%; justify-content: center; }
  .view-tab { flex: 1; text-align: center; padding: 8px 12px; }
}

/* planning: compact skills + profile window */
.p-skillpick { display: grid; gap: 10px; }
.p-skillsearch { min-height: 42px; font-size: 16px; padding: 8px 12px; }
.p-sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-sugg-h { width: 100%; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.p-name { border: 0; background: none; padding: 0; font: inherit; font-size: 17px; font-weight: 500; text-align: left; cursor: pointer; color: var(--ink); }
.p-name:hover { color: var(--teal); text-decoration: underline; }
.sk-more { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 1px 10px; font-size: 12px; color: var(--teal); cursor: pointer; }
.sk-more:hover { border-color: var(--teal); }
.p-card .p-skills { max-height: 52px; overflow: hidden; }
dialog.profile { width: min(720px, calc(100vw - 24px)); }
.pf-facts { display: grid; grid-template-columns: 150px 1fr; gap: 6px 16px; margin: 18px 0 8px; font-size: 15px; }
.pf-facts dt { color: var(--muted); }
.pf-facts dd { margin: 0; }
.pf-label { font-weight: 500; margin: 16px 0 8px; }
.pf-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 300px; overflow: auto; }
.pf-skills .sk { font-size: 13px; padding: 3px 11px; }
dialog.profile .input { max-width: 300px; min-height: 40px; font-size: 15px; padding: 7px 12px; }
@media (max-width: 640px) { .pf-facts { grid-template-columns: 1fr; gap: 2px; } .pf-facts dd { margin-bottom: 8px; } }

/* Microsoft sign-in */
.ms-btn { gap: 10px; text-decoration: none; }
.ms-btn.big { font-size: 18px; padding: 13px 26px; margin-top: 8px; }
.who .ms-btn { background: #fff; color: var(--ink); border-color: #fff; }
.who .signout { background: transparent; color: #E3F0F0; border-color: rgba(255,255,255,.35); }
.who .signout:hover { background: rgba(255,255,255,.1); }
.signin.sso { padding: 48px 32px; }
.layout.solo .signin.sso { display: grid; justify-items: start; gap: 10px; }
.login-err { color: var(--red); background: #FCE3DE; border-radius: 10px; padding: 10px 14px; margin: 8px 0 0; }

/* overview: level filter, sort, grouping */
.fill .select { min-width: 180px; }
.fill-pct .input { width: 120px; }
.ov-group { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; padding: 0 4px; }
.ov-group input { width: 17px; height: 17px; accent-color: var(--teal); }
.level-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; padding: 14px 16px 6px; margin-top: 6px; border-bottom: 2px solid var(--mint-line); position: sticky; left: 0; }
.level-head b { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.level-head span { color: var(--muted); font-size: 14px; }
.person .p-avg { display: block; font-size: 13px; color: var(--petrol); font-weight: 500; }

/* ---- Planning v2: filters across the top, frozen while scrolling ---- */
.p-layout { display: block; }
.p-filters { position: sticky; top: 0; z-index: 20; display: block; gap: 0;
  background: #E6F2F1; border: 1px solid var(--mint-line); border-top: 5px solid var(--petrol); border-radius: 0 0 18px 18px;
  padding: 14px 24px 12px; margin: 0 0 22px; box-shadow: 0 8px 18px -12px rgba(30, 60, 66, .35); }
.p-ftop { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.p-ftitle { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-right: auto; }
.p-ftitle h2 { font-size: 26px; margin: 0; }
.p-ftitle .sub { margin: 0; font-size: 16px; }
.p-collapse { white-space: nowrap; background: #fff; }
.p-fgrid { display: grid; grid-template-columns: minmax(260px, 1.1fr) minmax(250px, 1fr) minmax(300px, 1.5fr) minmax(220px, .9fr); gap: 0; margin-top: 10px; }
.p-fgrid .p-group { border-top: 0; margin-top: 0; padding: 4px 22px 6px; border-left: 1px solid var(--mint-line); align-content: start; gap: 8px; }
.p-fgrid .p-group:first-child { border-left: 0; padding-left: 0; }
.p-fgrid .p-group:last-child { padding-right: 0; }
.p-row2 { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.p-row2 label { color: var(--muted); font-size: 14px; }
.p-filters .select { width: 100%; min-height: 40px; font-size: 15px; background-color: #fff; }
.p-filters .p-skillsearch { min-height: 40px; background: #fff; }
.p-group-skills .p-sugg { max-height: 64px; overflow: hidden; }
.p-filters .p-chip { background: #fff; }
.p-filters .seg button { background: #fff; }
.p-filters .seg button[aria-pressed="true"] { background: var(--petrol); color: #fff; }
.p-fbar { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; border-top: 1px solid var(--mint-line); margin-top: 12px; padding-top: 10px; }
.p-fbar .p-head { flex: 1 1 auto; align-items: center; }
.p-fbar .p-head h2 { font-size: 22px; margin: 0; }
.p-fbar .p-head .sub { margin: 2px 0 0; font-size: 14px; }
.p-fbar .p-legend { margin: 0; }
.p-fsum { display: flex; flex-wrap: wrap; gap: 6px; }
.p-fsum span { background: #fff; border: 1px solid var(--mint-line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.p-filters.collapsed .p-fbar { margin-top: 10px; }
.p-results { padding-top: 6px; }
.p-results .p-group-title:first-child { margin-top: 8px; }
.p-card { grid-template-columns: 30px minmax(220px, 300px) minmax(0, 1fr) 120px; }
.p-strip { grid-auto-columns: minmax(52px, 1fr); }
@media (max-width: 1300px) {
  .p-fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .p-fgrid .p-group:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 1200px) { .p-filters { position: sticky; } }
@media (max-width: 760px), (max-height: 700px) {
  .p-filters { position: static; }
  .p-fgrid { grid-template-columns: minmax(0, 1fr); }
  .p-fgrid .p-group { border-left: 0; padding: 8px 0; border-top: 1px solid var(--mint-line); }
}
.p-filters .p-chip[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.p-filters .p-chip.skill[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.p-group-skills .p-sugg { max-height: 92px; }

/* ---- Forecast tab v2: my forecast as a sheet across the top, overview full width below ---- */
.layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.mf-panel { background: #E6F2F1; border: 1px solid var(--mint-line); border-top: 5px solid var(--coral); border-radius: 0 0 18px 18px;
  padding: 16px 24px 18px; box-shadow: 0 8px 18px -12px rgba(30, 60, 66, .35); min-width: 0; }
.mf-top { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.mf-top .p-ftitle h2 { font-size: 28px; }
.mf-check { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--mint-line); border-radius: 14px; padding: 8px 10px 8px 14px; }
.mf-check.ok { border-color: #A9D6BE; background: #F1FAF5; }
.mf-bell { width: 36px; height: 36px; border-radius: 50%; background: var(--petrol); color: #fff; display: grid; place-items: center; flex: none; }
.mf-bell svg { width: 20px; height: 20px; }
.mf-q { font-weight: 500; font-size: 16px; }
.mf-check .meta { font-size: 14px; color: var(--muted); }
.mf-check .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.mf-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; margin: 14px 0 12px; padding: 12px 0; border-top: 1px solid var(--mint-line); border-bottom: 1px solid var(--mint-line); }
.mf-horizon, .mf-fill { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mf-lbl { font-size: 14px; color: var(--muted); font-weight: 500; }
.mf-horizon .p-chip { background: #fff; }
.mf-horizon .p-chip[aria-pressed="true"] { background: var(--petrol); border-color: var(--petrol); color: #fff; }
.mf-fill .select { min-height: 40px; font-size: 15px; width: auto; min-width: 0; padding: 7px 36px 7px 12px; background-color: #fff; }
.mf-fill .fill-pct .input { width: 96px; min-height: 40px; font-size: 15px; background: #fff; }
.mf-fill .btn { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.mf-scroll { overflow-x: auto; background: #fff; border: 1px solid var(--mint-line); border-radius: 14px; }
.mf-grid { display: grid; width: 100%; }
.mf-grid > * { border-bottom: 1px solid var(--line); padding: 7px 6px; display: flex; align-items: center; min-width: 0; }
.mf-corner, .mf-rl { position: sticky; left: 0; z-index: 1; background: #fff; border-right: 1px solid var(--line); padding-left: 14px !important; }
.mf-wh { flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; background: #F6FAFA; }
.mf-corner { background: #F6FAFA; }
.mf-wh.cur { background: var(--mint); }
.mf-wk { border: 0; background: none; cursor: pointer; display: grid; justify-items: center; padding: 2px 6px; border-radius: 8px; color: var(--ink); }
.mf-wk:hover { background: #fff; box-shadow: 0 0 0 1px var(--mint-line); }
.mf-wk b { font-size: 16px; }
.mf-wk span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.mf-wh .now { font-size: 11px; background: var(--petrol); color: #fff; border-radius: 999px; padding: 1px 8px; }
.mf-copy { border: 0; background: none; color: var(--teal); font-size: 12px; cursor: pointer; padding: 2px 4px; text-decoration: underline; text-underline-offset: 2px; }
.mf-rl { flex-direction: column; align-items: flex-start !important; justify-content: center; }
.mf-rl b { font-weight: 500; font-size: 15px; }
.mf-rl span { font-size: 12px; color: var(--muted); }
.mf-client { flex-direction: row !important; align-items: center !important; justify-content: space-between; gap: 8px; }
.mf-client b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-row-tools { display: flex; gap: 4px; flex: none; }
.mf-mini { border: 1px solid var(--line); background: #fff; border-radius: 999px; font-size: 12px; padding: 2px 9px; cursor: pointer; color: var(--teal); }
.mf-mini:hover { border-color: var(--teal); }
.mf-mini.x { color: var(--muted); padding: 2px 8px; }
.mf-mini.x:hover { color: var(--red); border-color: var(--red); }
.mf-st .select, select.mf-status { width: 100%; min-height: 36px; font-size: 13px; padding: 5px 24px 5px 8px; background-position: right 6px center; }
select.mf-status.s-leave { background-color: #FDEDEA; border-color: #F6C6BE; }
select.mf-status.s-unknown { border-style: dashed; color: var(--muted); }
.mf-pc { justify-content: center; }
.mf-in { width: 100%; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 16px; font-weight: 500; font-family: inherit; color: var(--ink); background: #fff; -moz-appearance: textfield; }
.mf-in::-webkit-outer-spin-button, .mf-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mf-in:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 2px rgba(29, 107, 104, .2); }
.mf-in.unk { border-style: dashed; background: #FBFDFD; }
.mf-in::placeholder { color: #9AAEB0; font-weight: 400; }
.mf-na { justify-content: center; color: var(--muted); font-size: 13px; }
.mf-na.leave { margin: 4px; border-radius: 8px; background: repeating-linear-gradient(135deg, #F6B3A8 0 2px, #FFF 2px 10px); border: 1px solid #F6C6BE; color: var(--ink); }
.mf-add { grid-column: 1 / -1; gap: 10px; padding: 8px 14px !important; background: #FBFDFD; position: sticky; left: 0; }
.mf-add .input { max-width: 360px; min-height: 38px; font-size: 15px; padding: 6px 12px; }
.mf-days { justify-content: center; }
.mf-daybtn { border: 1px dashed var(--line); background: #fff; border-radius: 8px; font-size: 12px; padding: 5px 8px; cursor: pointer; color: var(--muted); width: 100%; }
.mf-daybtn:hover { border-color: var(--teal); color: var(--teal); }
.mf-daybtn.on { border: 1px solid #F6C6BE; background: #FDEDEA; color: #8E2E20; font-weight: 500; }
.mf-tot { padding: 6px 4px !important; border-bottom: 0 !important; }
.mf-tot .cell { min-width: 0; height: 40px; }
.mf-total-l { border-bottom: 0 !important; }
.mf-total-l b { font-weight: 700; }
.mf-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 14px; }
.mf-foot .note { margin: 0; font-size: 14px; color: var(--muted); max-width: 640px; }
.mf-foot .save-bar { margin: 0; padding: 0; border: 0; }
@media (max-width: 760px) {
  .mf-panel { padding: 14px 12px; }
  .mf-check { width: 100%; flex-wrap: wrap; }
}

.mf-grid select.mf-status { min-width: 0; text-overflow: ellipsis; }
.mf-grid > .mf-st, .mf-grid > .mf-pc, .mf-grid > .mf-days { padding: 6px 4px; }
.mf-grid select.mf-status { font-size: 12.5px; padding: 5px 18px 5px 7px; background-position: right 4px center; background-size: 10px; }
.mf-grid { grid-template-columns: minmax(190px, 250px) repeat(var(--n, 4), minmax(76px, 1fr)); }
@media (max-width: 760px) {
  .mf-grid { grid-template-columns: 118px repeat(var(--n, 4), 74px); min-width: 0 !important; width: max-content; }
  .mf-client { flex-direction: column !important; align-items: flex-start !important; }
  .mf-rl b { font-size: 13px; }
  .mf-add .input { max-width: 200px; }
}
