:root {
  color-scheme: light;
  --canvas:#f4f7fb;
  --white:#fff;
  --ink:#162743;
  --text:#2c405c;
  --muted:#596d87;
  --line:#e0e8f2;
  --blue:#285ddd;
  --blue-dark:#1e4dbf;
  --navy:#152541;
  --sky:#eaf4ff;
  --iris:#efeaff;
  --green:#e7f8f1;
  --gold:#fff3dc;
  --shadow:0 2px 5px #283d5c09;
  font-family:"Inter","Aptos",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--canvas);
  color:var(--ink);
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}
*,*::before,*::after {box-sizing:border-box}
body {margin:0;min-width:320px;font-size:14px}
button,input,select {font:inherit}
button {cursor:pointer}
button:disabled {opacity:.65;cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {outline:2px solid #3167e8;outline-offset:3px}
a {color:inherit}
h1,h2,p {margin:0}
h1 {font-size:clamp(27px,3vw,37px);font-weight:760;letter-spacing:-.045em;line-height:1.13}
h2 {font-size:16px;letter-spacing:-.02em}
strong,b {font-weight:670}
svg {flex:none;vertical-align:middle}
.layout {--sidebar:226px;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);min-height:100dvh}
.sidebar {position:sticky;top:0;height:100dvh;background:var(--navy);color:#e9f0fa;display:flex;flex-direction:column;padding:25px 17px 16px;z-index:5}
.brand {display:flex;align-items:center;gap:10px;font-weight:780;letter-spacing:-.045em;font-size:23px;white-space:nowrap}
.brand > span + span > span {color:#7eabff}
.brand-mark {width:37px;height:37px;display:grid;place-items:center;background:#3769e8;color:white;border-radius:11px;box-shadow:0 2px 9px #0e1d3c38}
.sidebar .brand {padding-left:5px}
.site-box {margin:28px 0 25px;padding:10px 9px;display:flex;align-items:center;gap:10px;background:#1d304f;border:1px solid #2a3c58;border-radius:10px;line-height:1.31}
.site-icon,.mobile-entry-icon {width:31px;height:31px;border-radius:8px;display:grid;place-items:center;background:#2a4165;color:#a6c7ff;flex:none}
.site-box strong,.profile strong,.mobile-entry strong {display:block;font-size:12px}
.site-box small,.profile small,.mobile-entry small {display:block;color:#aabbcf;font-size:11px;margin-top:3px}
.sidebar nav {display:grid;gap:4px}
.nav-caption {font-size:10px;letter-spacing:.11em;font-weight:740;color:#a0b4ce;padding:0 10px 8px}
.nav-caption.second {padding-top:23px}
.nav-link {width:100%;height:42px;display:flex;align-items:center;gap:10px;border:0;border-radius:8px;color:#bfcce0;background:transparent;padding:0 10px;text-align:left;font-weight:570;font-size:13px}
.nav-link:hover {background:#23395c;color:white}
.nav-link.active {color:#fff;background:#3156a0}
.nav-link.active svg {color:#c1d6ff}
.nav-count {margin-left:auto;padding:2px 7px;background:#30466b;color:#dce8ff;border-radius:20px;font-size:11px}
.sidebar-bottom {margin-top:auto;display:grid;gap:16px;padding-top:22px}
.mobile-entry {display:flex;gap:8px;align-items:center;padding:9px 7px;background:#1d304f;border:1px solid #2a3c58;border-radius:9px}
.mobile-entry :is(button,a) {display:grid;place-items:center;padding:4px 1px;align-self:stretch;border:0;color:#c3d8fa;background:transparent;margin-left:auto}
.mobile-entry :is(button,a):hover {color:white}
.profile {border-top:1px solid #30405a;display:flex;align-items:center;gap:9px;padding:14px 3px 1px}
.topbar {height:66px;padding:0 clamp(18px,2.5vw,36px);display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--white);border-bottom:1px solid var(--line)}
.breadcrumb,.top-actions {display:flex;align-items:center;gap:11px;white-space:nowrap;color:var(--muted);font-size:13px}
.breadcrumb strong {color:var(--ink)}
.breadcrumb .icon-btn {display:none}
.demo {display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;padding:6px 8px;border:1px solid #e6ecf4;border-radius:6px;background:#f5f7fb}
.demo i,.status i {width:6px;height:6px;border-radius:100%;background:currentColor}
.demo i {color:#5276b6}
.workspace {max-width:1700px;margin:0 auto;padding:30px clamp(18px,2.5vw,36px) 36px}
.page-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:17px;margin-bottom:23px}
.page-heading p,.personal-hero p {color:var(--muted);margin-top:8px;line-height:1.5}
.heading-actions,.week-actions,.week-control,.arrow-group,.row-actions,.form-actions,.personal-top-actions {display:flex;align-items:center;gap:9px}
.heading-actions,.week-actions,.row-actions {flex-wrap:wrap}
.btn,.icon-btn {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:0 11px;border:1px solid #dce5f0;border-radius:8px;font-weight:650;font-size:12px;color:var(--text);background:var(--white);white-space:nowrap;text-decoration:none}
.btn:hover,.icon-btn:hover {background:#eef4ff;border-color:#c7d7f1;color:var(--blue-dark)}
.btn.primary {color:white;background:var(--blue);border-color:var(--blue);box-shadow:0 2px 3px #285ddd2a}
.btn.primary:hover {background:var(--blue-dark);border-color:var(--blue-dark)}
.btn.ghost {background:transparent;border-color:transparent;color:var(--blue-dark)}
.btn.ghost:hover {background:#e9f0ff}
.btn.danger {color:#b42335}
.btn.danger:hover {background:#fff0f1;border-color:#f3c8cc}
.icon-btn {width:34px;min-height:34px;padding:0}
.top-mobile {min-height:33px}
.stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:21px}
.stat,.panel {background:var(--white);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.stat {padding:13px 15px 12px;min-width:0}
.stat-top {display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:650}
.stat-icon {display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:9px}
.blue {background:#eaf1ff;color:#2354c9}
.iris {background:#efeaff;color:#6542b8}
.sky {background:#e6f4fd;color:#126694}
.rose {background:#fdeaf2;color:#a8346a}
.green {background:#e6f6ef;color:#136f58}
.gold {background:#fff2db;color:#8b5504}
.stat-value {font-size:28px;font-weight:760;letter-spacing:-.035em;line-height:1.1;margin:8px 0 4px}
.stat-value small {font-size:16px;color:#74849a;letter-spacing:0;font-weight:550}
.stat-detail {font-size:11px;color:var(--muted);line-height:1.35}
.panel-bar {display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 15px;min-height:66px}
.week-control {gap:12px;min-width:0}
.week-control h2 {white-space:nowrap}
.week-meta {display:flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;margin-top:4px}
.week-meta .status {font-size:10px;padding:3px 6px}
.arrow-group {gap:3px}
.status {display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px;font-weight:670;padding:5px 8px;border-radius:20px}
.status.draft {background:var(--gold);color:#865003}
.status.published {background:var(--green);color:#14654e}
.status.rejected {background:#fbe9ec;color:#a52036}
.table-scroll {overflow:auto;max-width:100%;scrollbar-color:#c1cfe2 #f4f7fb}
table {width:100%;border-collapse:separate;border-spacing:0}
.schedule {table-layout:fixed;min-width:770px}
.schedule tr>:first-child {width:157px}
.schedule th,.schedule td {border-top:1px solid #e8edf5;border-right:1px solid #e8edf5}
.schedule tr>:last-child {border-right:0}
.schedule thead th {background:#f8fafd;padding:7px 4px;height:51px;color:var(--muted)}
.schedule thead .corner {text-align:left;padding-left:15px;text-transform:uppercase;letter-spacing:.055em;font-size:10px}
.schedule thead span {display:block;font-size:11px;font-weight:620;text-transform:capitalize}
.schedule thead b {display:block;font-size:17px;color:var(--ink);font-weight:720;margin-top:1px}
.schedule .weekend {background:#f9fbfe}
.schedule th.current {background:#edf4ff}
.schedule th.current span,.schedule th.current b {color:var(--blue-dark)}
.schedule th.current b {width:24px;height:24px;border-radius:7px;margin:1px auto 0;background:var(--blue);color:white;display:grid;place-items:center;font-size:14px}
.holiday {display:block;font-size:9px;color:#865003}
.schedule td.current {background:#f4f8ff}
.schedule tbody th {background:white;text-align:left;padding:7px 8px 7px 13px}
.schedule tr>:first-child {position:sticky;left:0;z-index:1}
.schedule td {height:49px;padding:4px 5px;text-align:center;vertical-align:middle}
.name-cell {display:flex;align-items:center;gap:8px;line-height:1.2;min-width:0}
.name-cell strong,.name-cell small {display:block}
.name-cell strong {font-size:12px}
.name-cell small,.journal-detail small {font-size:10px;color:var(--muted);font-weight:500;margin-top:4px}
.avatar {width:29px;height:29px;border-radius:8px;display:inline-grid;place-items:center;flex:none;font-size:10px;font-weight:750;letter-spacing:.015em}
.shift,.mobile-shift {--shift-bg:#eaf2ff;--shift-fg:#224da9;--shift-accent:#77a4fb}
.shift.garde,.mobile-shift.garde {--shift-bg:#f1edff;--shift-fg:#6242a7;--shift-accent:#a487eb}
.shift.astreinte,.mobile-shift.astreinte {--shift-bg:#e8f8f2;--shift-fg:#136c56;--shift-accent:#60bb9f}
.shift.absence,.mobile-shift.absence {--shift-bg:#fff4dd;--shift-fg:#805014;--shift-accent:#e0ad53}
.shift {width:100%;display:block;text-align:left;background:var(--shift-bg);color:var(--shift-fg);border:0;border-left:2px solid var(--shift-accent);border-radius:5px;padding:4px 4px 4px 5px;min-height:39px;line-height:1.2}
.shift + .shift {margin-top:3px}
.shift:hover {filter:brightness(.96)}
.shift strong {display:flex;align-items:center;gap:3px;font-size:11px;white-space:nowrap}
.shift small {display:block;margin:3px 0 0;font-size:9px;white-space:nowrap;font-variant-numeric:tabular-nums}
.empty {height:34px;width:100%;color:#798da7;background:none;border:1px dashed transparent;border-radius:5px}
.empty svg {opacity:0}
.empty:hover,.empty:focus-visible {background:#ecf3fe;border-color:#b4c8e8;color:var(--blue)}
.empty:hover svg,.empty:focus-visible svg {opacity:1}
.empty:not(:hover):not(:focus-visible)::after {content:'·';color:#9bacc2;font-size:14px;margin-left:-14px}
.panel-footer {display:flex;align-items:center;flex-wrap:wrap;gap:12px 17px;padding:11px 15px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.panel-footer span {display:flex;gap:6px;align-items:center}
.legend-dot {width:8px;height:8px;border-radius:3px;background:#77a4fb}
.legend-dot.garde {background:#a487eb}
.legend-dot.astreinte {background:#60bb9f}
.legend-dot.absence {background:#e0ad53}
.coverage {margin-top:17px}
.list-heading {display:flex;align-items:center;gap:10px;padding:15px}
.list-heading p,.person-card p {margin-top:4px;color:var(--muted);font-size:12px}
.coverage-items {display:flex;flex-wrap:wrap;gap:8px;padding:0 15px 15px}
.cover-link {display:flex;align-items:center;gap:8px;background:#fffaf0;border:1px solid #f2e5cb;border-radius:8px;text-align:left;color:#81540f;padding:8px 10px}
.cover-link span {display:grid;gap:3px}
.cover-link small {color:var(--muted)}
.cover-link:hover {background:#fff0d2}
.team-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.person-card {display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;padding:15px}
.person-card .avatar {width:37px;height:37px;font-size:12px}
.person-card .btn {grid-column:2 / -1;justify-self:start}
.data-table {min-width:660px}
.data-table th,.data-table td {text-align:left;padding:11px 12px;border-top:1px solid var(--line)}
.data-table thead th {background:#f8fafd;color:var(--muted);font-size:11px}
.data-table tbody th {color:var(--ink);white-space:nowrap;font-size:12px}
.data-table td {color:var(--text);font-size:12px}
.request-row {display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:13px 15px;border-top:1px solid var(--line)}
.request-row > .status,.request-row > small:last-child {margin-left:auto}
.request-row > small:last-child {color:var(--muted)}
.journal-detail {flex:1}
.journal-detail strong,.journal-detail small {display:block}
.blank {padding:18px;color:var(--muted);line-height:1.5}
.personal {min-height:100dvh;background:#f5f7fb}
.personal-top {height:66px;background:var(--navy);color:white;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:0 max(16px,calc((100% - 620px) / 2))}
.personal-top .btn,.personal-top .icon-btn {background:#263c61;color:#eff5ff;border-color:#3b5072}
.personal-top .btn:hover,.personal-top .icon-btn:hover {background:#3156a0;color:white}
.personal-body {max-width:652px;margin:auto;padding:19px 16px 100px}
.personal-hero {background:linear-gradient(120deg,#1d4ca7,#315fce 75%,#3b68d4);color:white;border-radius:17px;padding:24px 19px;box-shadow:0 7px 18px #2954aa24;margin-bottom:14px}
.personal-hero h1 {margin-top:12px}
.personal-hero p {color:#e4edff;font-size:13px}
.hero-caption {display:flex;align-items:center;gap:6px;color:#e4edff;font-size:11px;font-weight:670}
.mobile-week {padding:10px 10px 12px}
.mobile-week-header {display:flex;align-items:center;justify-content:space-between;padding:0 3px 9px;gap:6px}
.day-pills {display:grid;grid-template-columns:repeat(7,1fr);gap:3px}
.day-pills button {min-width:0;display:grid;justify-items:center;gap:3px;padding:6px 1px;color:var(--text);background:#f4f7fb;border:1px solid transparent;border-radius:8px}
.day-pills button:hover {border-color:#b8ccf2}
.day-pills button.selected {color:white;background:var(--blue)}
.day-pills span {font-size:10px;text-transform:capitalize}
.day-pills strong {font-size:15px}
.day-pills i {width:4px;height:4px;border-radius:100%}
.day-pills .event {background:var(--blue)}
.day-pills .selected .event {background:white}
.mobile-section {margin-top:19px}
.mobile-section h2 {font-size:18px;margin-bottom:7px}
.mobile-section-title {display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.mobile-section-title h2 {margin-bottom:0}
.mobile-section-title p,.upcoming > span {display:block;color:var(--muted);font-size:12px;margin-top:4px}
.mobile-shift {display:flex;align-items:center;gap:11px;background:var(--shift-bg);color:var(--shift-fg);border:1px solid color-mix(in srgb,var(--shift-accent) 46%,white);border-left:3px solid var(--shift-accent);border-radius:10px;padding:10px}
.mobile-shift + .mobile-shift {margin-top:6px}
.mobile-shift strong,.mobile-shift small {display:block}
.mobile-shift small {margin-top:4px;font-size:11px}
.shift-symbol {width:35px;height:35px;border-radius:8px;background:#ffffffa6;display:grid;place-items:center}
.upcoming {margin-top:10px}
.upcoming > span {margin-bottom:5px}
.mobile-export {display:flex;gap:9px;align-items:center;flex-wrap:wrap;padding-top:17px;color:var(--muted);font-size:11px}
.bottom-nav {position:fixed;left:0;right:0;bottom:0;display:flex;justify-content:center;gap:40px;padding:6px 10px max(6px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);z-index:4}
.bottom-nav button {background:transparent;min-width:97px;min-height:45px;display:grid;justify-items:center;align-content:center;gap:2px;border:0;border-radius:8px;color:var(--muted);font-size:11px;font-weight:650}
.bottom-nav button:hover {background:#f4f7ff}
.bottom-nav button.active {color:var(--blue-dark);background:#eaf1ff}
.request-actions {display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
.mobile-requests .request-row:first-child {border-top:0}
.dialog-top {display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:15px}
dialog {width:min(94vw,475px);max-height:90dvh;border:1px solid var(--line);border-radius:15px;box-shadow:0 16px 60px #17264145;padding:19px;color:var(--ink)}
dialog::backdrop {background:#182b4e66;backdrop-filter:blur(2px)}
.dialog-top h2 {font-size:21px}
.dialog-top p {font-size:13px;line-height:1.46;color:var(--muted);margin-top:5px}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.field {display:grid;gap:5px;margin-bottom:8px;font-size:12px;font-weight:650}
input,select {display:block;width:100%;min-height:39px;padding:6px 8px;border:1px solid #ccd9eb;border-radius:7px;background:#fbfcff;color:var(--ink);font-size:14px}
.form-hint {color:var(--muted);font-size:12px;padding-top:1px}
.form-error {background:#fff0f0;color:#9e2438;padding:9px;margin:9px 0;border-radius:7px;font-size:12px;line-height:1.4}
.form-actions {justify-content:flex-end;flex-wrap:wrap;margin-top:15px}
.form-actions .danger {margin-right:auto}
.toast {position:fixed;z-index:10;right:17px;bottom:67px;max-width:calc(100% - 34px);display:flex;align-items:center;gap:7px;padding:10px 13px;border-radius:9px;background:#183656;color:white;box-shadow:0 5px 20px #15254135;font-size:13px;font-weight:620}
.toast.error {background:#95263a}
.startup {max-width:430px;margin:10vh auto;padding:20px}
.startup p {margin:15px 0}
@media (max-width:1190px) {
  .layout {--sidebar:201px}
  .sidebar {padding-inline:12px}
  .workspace {padding-top:24px}
  .schedule tr>:first-child {width:141px}
}
@media (max-width:940px) {
  .layout {display:block}
  .sidebar {position:fixed;display:none;left:0;top:0;bottom:0;width:220px;box-shadow:0 0 0 100vmax #14274670}
  .sidebar.shown {display:flex}
  .breadcrumb .icon-btn {display:inline-flex}
  .topbar {height:56px}
}
@media (max-width:640px) {
  .workspace {padding:18px 11px 25px}
  .topbar {padding-inline:11px}
  .breadcrumb {gap:6px;font-size:11px}
  .breadcrumb>span,.breadcrumb>svg,.top-actions .demo {display:none}
  .page-heading,.panel-bar {align-items:flex-start;flex-direction:column;gap:10px}
  .page-heading p {font-size:13px}
  .stats,.team-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .stat {padding:10px}
  .stat-top {font-size:11px}
  .request-row {padding:10px}
  .row-actions {width:100%;justify-content:flex-end}
  .personal-top {height:58px}
  .personal-top .brand {font-size:21px}
  .personal-top .brand-mark {width:33px;height:33px}
  .mobile-week .icon-btn {min-height:35px;width:36px}
  .day-pills button {min-height:46px}
  .form-grid {gap:7px}
}
@media (prefers-reduced-motion:no-preference) {
  .btn,.icon-btn,.nav-link {transition:background .13s,color .13s,border-color .13s}
}
