:root {
  --green-950: #133d30;
  --green-800: #1f5a45;
  --green-700: #2b6f57;
  --green-100: #e7f0eb;
  --green-50: #f0f6f3;
  --red: #d94b3d;
  --red-soft: #fae8e5;
  --orange: #e7a33e;
  --orange-soft: #fff3df;
  --paper: #f7f9f7;
  --white: #fff;
  --ink: #202723;
  --muted: #66716a;
  --line: #d7ded9;
  --line-dark: #bcc8c0;
  --shadow: 0 18px 50px rgba(25, 52, 41, .1);
  --radius: 10px;
  --sidebar: 238px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.45rem); line-height: 1.04; letter-spacing: -.045em; font-weight: 720; }
h2 { margin-bottom: 8px; font-size: 1.35rem; letter-spacing: -.025em; }
.eyebrow { margin: 0 0 8px; color: var(--green-700); font-size: .72rem; line-height: 1; letter-spacing: .17em; font-weight: 800; text-transform: uppercase; }
.hidden { display: none !important; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px 22px; color: #eaf2ee; background: var(--green-950); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; font-size: 1.03rem; font-weight: 780; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { display: inline-flex; gap: 4px; }
.brand-mark span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--red); background: var(--white); border: 3px solid var(--red); border-radius: 999px; font-weight: 900; line-height: 1; box-shadow: 0 3px 0 rgba(0,0,0,.08); }
.brand-mark.small span { width: 25px; height: 25px; border-width: 2px; font-size: .74rem; }
.sidebar nav { display: grid; gap: 5px; margin-top: 48px; }
.nav-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 10px; color: #bdd0c7; border-radius: 7px; font-size: .92rem; font-weight: 650; text-decoration: none; }
.nav-link > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; font-size: .72rem; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-link.active::before { content: ""; position: absolute; left: -20px; width: 3px; height: 24px; background: var(--orange); border-radius: 0 3px 3px 0; }
.nav-link b { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; background: var(--red); border-radius: 20px; font-size: .7rem; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); }
.user-chip { display: flex; gap: 9px; align-items: center; color: #fff; text-decoration: none; }
.user-chip > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; color: var(--green-950); background: var(--orange); border-radius: 50%; font-weight: 850; }
.user-chip > span:last-child { display: grid; }
.user-chip strong { max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.user-chip small { color: #a9c0b5; font-size: .7rem; }
.quiet-link { display: block; margin: 18px 0 0 43px; color: #a9c0b5; font-size: .75rem; text-decoration: none; }

.main-column { min-width: 0; }
.content { width: min(100%, 1680px); min-height: 100vh; padding: 28px clamp(20px, 4vw, 58px) 70px; }
.mobile-topbar, .mobile-nav { display: none; }
.security-banner { display: flex; align-items: center; gap: 16px; margin: -28px calc(-1 * clamp(20px, 4vw, 58px)) 24px; padding: 12px clamp(20px, 4vw, 58px); color: #5c3f0f; background: var(--orange-soft); border-bottom: 1px solid #efd19f; text-decoration: none; }
.security-banner span { font-size: .83rem; }

.context-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 48px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.context-selects { display: flex; align-items: flex-end; gap: 12px; }
.context-selects label { display: grid; gap: 4px; }
.context-selects label span { color: var(--muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.context-selects select, .context-selects input { min-width: 190px; height: 38px; padding: 0 32px 0 10px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.context-selects input { min-width: 145px; padding-right: 8px; }
.month-arrows { display: flex; align-items: center; gap: 14px; }
.month-arrows a { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; text-decoration: none; }
.month-arrows a:hover { color: #fff; background: var(--green-800); }
.month-arrows strong { min-width: 128px; text-align: center; font-size: .86rem; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.page-heading > div:first-child > p:last-child { max-width: 680px; margin: 0; color: var(--muted); }
.plan-heading { align-items: flex-start; }
.plan-heading h1 { margin-bottom: 8px; }
.plan-byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .75rem; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button-row form { display: contents; }

.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: .82rem; font-weight: 760; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--green-800); box-shadow: 0 5px 14px rgba(31,90,69,.16); }
.button-primary:hover { background: var(--green-950); }
.button-secondary { color: var(--green-950); background: #fff; border-color: var(--line-dark); }
.button-secondary:hover { border-color: var(--green-700); }
.button-danger { color: #ad3429; background: var(--red-soft); border-color: #f0bab4; }
.text-link { padding: 0; color: var(--green-800); background: none; border: 0; cursor: pointer; font-size: .82rem; font-weight: 760; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.flash { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0 0 22px; padding: 14px 16px; border: 1px solid; border-radius: 8px; font-size: .85rem; box-shadow: 0 8px 24px rgba(21,45,36,.07); }
.flash button { padding: 0; color: inherit; background: transparent; border: 0; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.flash-success { color: #19503d; background: #e9f5ee; border-color: #bedaca; }
.flash-warning { color: #6a4710; background: var(--orange-soft); border-color: #efd09e; }
.flash-error { color: #81251d; background: var(--red-soft); border-color: #efb7b1; }
.flash-changes { color: #fff; background: var(--green-800); border-color: var(--green-800); }

.metric-ribbon { display: grid; grid-template-columns: repeat(5, 1fr); margin: 12px 0 38px; background: #fff; border-top: 2px solid var(--green-800); border-bottom: 1px solid var(--line); box-shadow: 0 12px 35px rgba(24,52,40,.06); }
.metric-ribbon > div { position: relative; display: grid; min-height: 118px; align-content: center; padding: 18px 22px; border-right: 1px solid var(--line); }
.metric-ribbon > div:last-child { border-right: 0; }
.metric-ribbon small { color: var(--muted); font-size: .72rem; }
.metric-ribbon strong { margin: 2px 0; font-size: clamp(1.3rem, 2vw, 2rem); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.metric-ribbon span { color: var(--muted); font-size: .68rem; }
.metric-ribbon .accent::after { content: ""; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; background: var(--red); border-radius: 50%; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .7fr); gap: 22px; }
.paper-panel { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(24,52,40,.045); }
.section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.section-intro { max-width: 800px; color: var(--muted); font-size: .88rem; }
.plan-status-panel > p { color: var(--muted); }
.progress-line { height: 9px; margin: 24px 0 12px; overflow: hidden; background: var(--green-100); border-radius: 10px; }
.progress-line span { display: block; height: 100%; background: var(--green-800); border-radius: 10px; }
.notification-list { margin: 12px 0 0; padding: 0; list-style: none; }
.notification-list li { display: grid; grid-template-columns: 8px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.notification-list li:last-child { border-bottom: 0; }
.notification-list li > span { width: 7px; height: 7px; margin-top: 7px; background: var(--orange); border-radius: 50%; }
.notification-list p { margin: 2px 0; color: var(--muted); font-size: .77rem; }
.notification-list small { color: #89938d; font-size: .67rem; }
.empty-state { padding: 22px; color: var(--muted); text-align: center; font-size: .85rem; }

.inline-create, .compact-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 20px; }
.inline-create label, .compact-form label { display: grid; gap: 5px; color: var(--muted); font-size: .7rem; font-weight: 650; }
.inline-create input, .compact-form input, .compact-form select { min-width: 130px; height: 39px; padding: 7px 9px; background: #fff; border: 1px solid var(--line-dark); border-radius: 6px; }

.status { display: inline-flex; align-items: center; width: max-content; padding: 4px 8px; color: var(--muted); background: #eef1ef; border: 1px solid var(--line); border-radius: 99px; font-size: .66rem; font-weight: 800; letter-spacing: .02em; }
.status-draft { color: #616c66; }
.status-coordination, .status-pending { color: #69450c; background: var(--orange-soft); border-color: #edcd9b; }
.status-published, .status-approved { color: #15513b; background: var(--green-100); border-color: #bdd7c8; }
.status-rejected { color: #842a21; background: var(--red-soft); border-color: #efb9b3; }

.plan-facts { display: flex; align-items: center; gap: 0; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.plan-facts > div { display: grid; min-width: 150px; padding: 13px 18px; border-right: 1px solid var(--line); }
.plan-facts small { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
.plan-facts strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.plan-facts > button { margin-left: auto; margin-right: 18px; }
.event-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -2px 0 14px; padding: 10px 14px; color: #67450d; background: var(--orange-soft); border: 1px solid #efd3a7; border-radius: 6px; font-size: .73rem; }
.event-strip span { padding: 3px 8px; background: rgba(255,255,255,.6); border-radius: 20px; }
.schedule-section { margin: 0 calc(-1 * clamp(20px, 4vw, 58px)); }
.schedule-help { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; min-height: 38px; padding: 0 clamp(20px, 4vw, 58px); color: var(--muted); font-size: .67rem; }
.schedule-help span { display: inline-flex; align-items: center; gap: 5px; }
.schedule-help i { width: 9px; height: 9px; display: inline-block; border-radius: 2px; }
.legend-work { background: var(--green-800); }
.legend-travel { background: var(--red); }
.legend-wish { background: var(--orange); }
.schedule-scroll { max-width: 100%; overflow: auto; background: #fff; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); scrollbar-color: var(--green-700) var(--green-100); }
.schedule-table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: .7rem; }
.schedule-table th, .schedule-table td { height: 77px; padding: 5px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.schedule-table thead th { position: sticky; top: 0; z-index: 5; height: 54px; min-width: 74px; color: var(--muted); background: #eef3f0; font-weight: 600; }
.schedule-table thead th.weekend { background: #f8eee9; }
.schedule-table thead th span { display: block; font-size: .6rem; text-transform: uppercase; }
.schedule-table thead th strong { display: block; color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.schedule-table thead th i { position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.schedule-table .employee-column { position: sticky; left: 0; z-index: 4; width: 190px; min-width: 190px; max-width: 190px; padding: 9px 13px; background: #f8faf8; text-align: left; box-shadow: 5px 0 11px rgba(31,60,47,.045); }
.schedule-table thead .employee-column { z-index: 7; }
.schedule-table .employee-column strong { display: block; color: var(--ink); font-size: .78rem; }
.schedule-table .employee-column span { display: block; margin-top: 3px; color: var(--muted); font-size: .61rem; font-weight: 500; }
.schedule-table .totals-column { position: sticky; right: 0; z-index: 4; width: 130px; min-width: 130px; background: #f8faf8; box-shadow: -5px 0 11px rgba(31,60,47,.045); }
.schedule-table thead .totals-column { z-index: 7; }
.totals-column strong, .totals-column span, .totals-column small { display: block; }
.totals-column .negative { color: var(--red); font-weight: 750; }
.totals-column .positive { color: var(--green-700); font-weight: 750; }
.totals-column small { color: var(--muted); font-size: .56rem; }
.shift-cell { position: relative; min-width: 74px; background: #fff; cursor: default; }
.shift-cell[data-shift-cell] { cursor: pointer; }
.shift-cell[data-shift-cell]:hover, .shift-cell[data-shift-cell]:focus { outline: 2px solid var(--orange); outline-offset: -2px; z-index: 2; }
.shift-cell > strong { display: block; font-size: .8rem; }
.shift-cell > small { display: block; color: var(--muted); font-size: .58rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shift-cell > em { display: block; margin-top: 3px; color: #7c8881; font-size: .51rem; font-style: normal; white-space: nowrap; }
.shift-cell > button { width: 27px; height: 27px; color: #819087; background: transparent; border: 1px dashed #c7d1cb; border-radius: 50%; opacity: 0; cursor: pointer; }
.shift-cell:hover > button, .shift-cell:focus > button { opacity: 1; }
.shift-cell.is-filled { background: linear-gradient(180deg, #fff, var(--green-50)); box-shadow: inset 0 3px 0 var(--green-700); }
.shift-cell.is-absence { background: #f1f3f2; box-shadow: inset 0 3px 0 #9ba49f; }
.shift-cell.has-travel::after { content: "F"; position: absolute; top: 4px; right: 4px; width: 15px; height: 15px; display: grid; place-items: center; color: #fff; background: var(--red); border-radius: 50%; font-size: .5rem; font-weight: 900; }
.wish-dot { position: absolute; bottom: 4px; left: 50%; width: 7px; height: 7px; margin-left: -3px; background: var(--orange); border-radius: 50%; }
.mobile-schedule { display: none; }

.planner-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.planner-tools details { padding: 0 17px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.planner-tools summary { padding: 14px 0; cursor: pointer; font-weight: 750; font-size: .85rem; }
.planner-tools details[open] { padding-bottom: 18px; }
.response-bar { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 18px 20px; background: var(--green-100); border: 1px solid #c6dbd0; border-radius: 8px; }
.response-bar > div { margin-right: auto; }
.response-bar p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }

.app-dialog { width: min(680px, calc(100vw - 28px)); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 12px; box-shadow: 0 30px 90px rgba(9,35,25,.28); }
.app-dialog::backdrop { background: rgba(12,34,26,.62); backdrop-filter: blur(3px); }
.app-dialog form > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 23px 25px 17px; border-bottom: 1px solid var(--line); }
.app-dialog h2 { margin: 0; font-size: 1.55rem; }
.dialog-close { width: 35px; height: 35px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1.3rem; line-height: 1; }
.dialog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 22px 25px; }
.dialog-grid label, .stack-form label { display: grid; gap: 6px; color: #4e5a53; font-size: .73rem; font-weight: 700; }
.dialog-grid .wide { grid-column: 1 / -1; }
.dialog-grid input, .dialog-grid select, .dialog-grid textarea, .stack-form input, .stack-form select { width: 100%; min-height: 43px; padding: 8px 10px; color: var(--ink); background: #fff; border: 1px solid var(--line-dark); border-radius: 6px; }
.dialog-grid input:focus, .dialog-grid select:focus, .stack-form input:focus { outline: 3px solid rgba(231,163,62,.25); border-color: var(--orange); }
.dialog-grid fieldset { margin: 0; padding: 0; border: 0; }
.dialog-grid legend { margin-bottom: 8px; color: #4e5a53; font-size: .73rem; font-weight: 700; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--paper); border-radius: 6px; }
.checkbox-grid input { width: auto; min-height: auto; }
.form-hint { margin: 0 25px; padding: 10px 12px; color: var(--muted); background: var(--green-50); border-radius: 6px; font-size: .72rem; }
.app-dialog footer { display: flex; align-items: center; gap: 8px; padding: 18px 25px 23px; }
.app-dialog footer > span { flex: 1; }
.small-dialog { max-width: 530px; }

.empty-page { width: min(620px, 100%); margin: 12vh auto; padding: 50px; background: #fff; border-top: 4px solid var(--green-800); box-shadow: var(--shadow); }
.empty-page p:not(.eyebrow) { color: var(--muted); }
.create-plan-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 30px; }
.create-plan-form label { display: grid; gap: 6px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.create-plan-form input { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line-dark); border-radius: 6px; }
.create-plan-form button { grid-column: 1 / -1; margin-top: 8px; }

.table-wrap { overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(24,52,40,.04); }
.data-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .8rem; }
.data-table th { padding: 12px 15px; color: var(--muted); background: #eef3f0; border-bottom: 1px solid var(--line); text-align: left; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.data-table td { padding: 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table code { color: var(--green-800); background: var(--green-50); }
.muted-row { opacity: .55; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-list span { padding: 3px 7px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; font-size: .66rem; }
.table-action { color: var(--red); background: none; border: 0; cursor: pointer; font-size: .72rem; }

.store-list { display: grid; gap: 10px; margin-bottom: 28px; }
.store-list article { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-800); border-radius: 7px; }
.store-number { color: var(--green-800); font-size: 1.25rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.store-list h2 { margin: 0; font-size: 1rem; }
.store-list p { margin: 2px 0; color: var(--muted); font-size: .78rem; }
.store-list small { color: #89938d; }
.settings-section { margin-top: 20px; }
.travel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; margin-top: 18px; }
.travel-grid span { display: grid; padding: 10px 12px; background: var(--paper); border-left: 3px solid var(--red); font-size: .74rem; }

.section-heading { margin: 0 0 12px; font-size: 1rem; }
.request-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .65fr); gap: 28px; }
.request-list { display: grid; gap: 9px; }
.request-list article { display: grid; grid-template-columns: 62px minmax(200px, 1fr) auto; align-items: center; gap: 15px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.request-date { display: grid; place-items: center; align-content: center; min-height: 58px; color: #fff; background: var(--green-800); border-radius: 7px; }
.request-date strong { font-size: 1.25rem; line-height: 1; }
.request-date span { font-size: .63rem; text-transform: uppercase; }
.request-body > div { display: flex; align-items: center; gap: 9px; }
.request-body p { margin: 4px 0 1px; color: var(--muted); font-size: .8rem; }
.request-body small { color: #869089; font-size: .68rem; }
.request-body blockquote { margin: 8px 0 0; padding-left: 10px; color: var(--muted); border-left: 2px solid var(--orange); font-size: .72rem; }
.decision-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 240px; }
.decision-form input { grid-column: 1 / -1; min-height: 35px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: .72rem; }
.feedback-list { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.feedback-list article { display: grid; grid-template-columns: 32px 1fr; gap: 9px; padding: 13px; border-bottom: 1px solid var(--line); }
.feedback-list article:last-child { border-bottom: 0; }
.feedback-icon { width: 28px; height: 28px; display: grid; place-items: center; color: var(--green-800); background: var(--green-100); border-radius: 50%; font-weight: 850; }
.feedback-list p { margin: 2px 0; color: var(--muted); font-size: .75rem; }
.feedback-list small { color: #89938d; font-size: .65rem; }
.profile-panel { max-width: 610px; }
.profile-panel > p { color: var(--muted); }
.stack-form { display: grid; gap: 15px; }
.stack-form.narrow { max-width: 420px; margin-top: 22px; }

.login-body { min-height: 100vh; color: #fff; background: var(--green-950); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(400px, .75fr); }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(40px, 8vw, 120px); background: radial-gradient(circle at 15% 20%, rgba(231,163,62,.2), transparent 28%), linear-gradient(145deg, #174635, #0f3328); }
.login-brand::before { content: ""; position: absolute; right: -120px; bottom: -90px; width: 480px; height: 480px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.02); }
.login-brand .brand-mark { margin-bottom: 55px; }
.login-brand .eyebrow { color: #edbd72; }
.login-brand h1 { position: relative; max-width: 740px; font-size: clamp(3rem, 6vw, 6.5rem); }
.login-brand h1 em { color: #edbd72; font-family: Georgia, serif; font-weight: 400; }
.login-brand > p:not(.eyebrow) { position: relative; max-width: 620px; color: #bdd0c7; font-size: 1.05rem; }
.login-proof { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 45px; color: #b9cdc3; font-size: .75rem; }
.login-proof span { width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }
.login-panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(40px, 7vw, 100px); color: var(--ink); background: #fff; }
.login-panel > div { margin: auto 0; }
.login-panel h2 { margin-bottom: 28px; font-size: 2rem; }
.login-panel .stack-form { max-width: 420px; }
.login-panel .button { min-height: 48px; margin-top: 3px; }
.login-panel > small { color: #8a948e; font-size: .68rem; }

@media (max-width: 1100px) {
  :root { --sidebar: 205px; }
  .content { padding-left: 26px; padding-right: 26px; }
  .schedule-section { margin-left: -26px; margin-right: -26px; }
  .schedule-help { padding-left: 26px; padding-right: 26px; }
  .metric-ribbon { grid-template-columns: repeat(3, 1fr); }
  .metric-ribbon > div:nth-child(3) { border-right: 0; }
  .metric-ribbon > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .dashboard-grid, .request-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html { font-size: 16px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .mobile-topbar { position: sticky; top: 0; z-index: 50; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; color: #fff; background: var(--green-950); }
  .mobile-topbar .brand { font-size: .92rem; }
  .icon-button { min-height: 36px; padding: 7px 10px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 6px; font-size: .73rem; }
  .mobile-nav { position: fixed; z-index: 49; top: 60px; right: 0; left: 0; display: none; grid-template-columns: repeat(2, 1fr); padding: 10px; background: var(--green-950); box-shadow: 0 12px 30px rgba(0,0,0,.24); }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { padding: 12px; color: #c5d7ce; text-decoration: none; font-size: .82rem; }
  .mobile-nav a.active { color: #fff; background: rgba(255,255,255,.1); border-radius: 5px; }
  .content { padding: 18px 14px 50px; }
  .security-banner { margin: -18px -14px 18px; padding: 10px 14px; }
  .context-bar { display: block; margin-bottom: 28px; }
  .context-selects { display: grid; grid-template-columns: 1fr 132px; }
  .context-selects label:first-of-type { min-width: 0; }
  .context-selects select, .context-selects input { width: 100%; min-width: 0; font-size: 16px; }
  .month-arrows { display: none; }
  .page-heading { display: block; margin-bottom: 25px; }
  .page-heading h1 { font-size: 2.3rem; }
  .page-heading > .button, .page-heading > button { width: 100%; margin-top: 18px; }
  .plan-heading .button-row { justify-content: flex-start; margin-top: 17px; }
  .button-row .button { flex: 1 1 auto; }
  .metric-ribbon { grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
  .metric-ribbon > div { min-height: 92px; padding: 13px; }
  .metric-ribbon > div:nth-child(2n) { border-right: 0; }
  .metric-ribbon > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dashboard-grid { display: block; }
  .notification-panel { margin-top: 14px; }
  .paper-panel { padding: 19px; }
  .plan-facts { display: grid; grid-template-columns: repeat(2, 1fr); }
  .plan-facts > div { min-width: 0; border-bottom: 1px solid var(--line); }
  .plan-facts > div:nth-child(2n) { border-right: 0; }
  .plan-facts > button { margin: 12px 14px; }
  .schedule-section { margin: 0 -14px; }
  .schedule-help { padding: 0 14px 10px; }
  .desktop-schedule { display: none; }
  .mobile-schedule { display: grid; gap: 9px; padding: 0 10px; }
  .day-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
  .day-card > header { display: flex; align-items: center; justify-content: space-between; min-height: 55px; padding: 9px 12px; background: #eef3f0; }
  .day-card.sunday > header { background: #f8eee9; }
  .day-card header div { display: grid; }
  .day-card header span { color: #82591a; font-size: .66rem; }
  .circle-add { width: 32px; height: 32px; color: #fff; background: var(--green-800); border: 0; border-radius: 50%; font-size: 1.2rem; }
  .empty-day { margin: 0; padding: 12px; color: #929b96; font-size: .73rem; }
  .mobile-shift { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; color: var(--ink); background: #fff; border: 0; border-top: 1px solid var(--line); text-align: left; }
  .mobile-shift > span:first-child { display: grid; }
  .mobile-shift small { color: var(--muted); font-size: .68rem; }
  .mobile-hours { display: grid; color: var(--green-800); font-size: .75rem; font-weight: 800; text-align: right; }
  .mobile-hours small { font-size: .58rem; font-weight: 500; }
  .planner-tools { grid-template-columns: 1fr; }
  .response-bar { align-items: stretch; flex-direction: column; }
  .response-bar .button { width: 100%; }
  .app-dialog { width: 100%; max-width: none; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .dialog-grid { grid-template-columns: 1fr; max-height: 60vh; overflow: auto; padding: 18px; }
  .dialog-grid .wide { grid-column: auto; }
  .app-dialog form > header { padding: 18px; }
  .form-hint { margin: 0 18px; }
  .app-dialog footer { position: sticky; bottom: 0; flex-wrap: wrap; padding: 14px 18px; background: #fff; border-top: 1px solid var(--line); }
  .app-dialog footer .button { flex: 1; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .create-plan-form { grid-template-columns: 1fr; }
  .empty-page { margin: 5vh auto; padding: 30px 22px; }
  .store-list article { grid-template-columns: 55px 1fr; }
  .store-list article > .status { grid-column: 2; }
  .request-list article { grid-template-columns: 52px 1fr; align-items: start; }
  .decision-form { grid-column: 1 / -1; width: 100%; }
  .compact-form { align-items: stretch; flex-direction: column; }
  .compact-form label, .compact-form input, .compact-form select { width: 100%; }
  .login-shell { display: block; }
  .login-brand { min-height: 37vh; padding: 32px 25px; }
  .login-brand .brand-mark { margin-bottom: 30px; }
  .login-brand h1 { font-size: 2.8rem; }
  .login-brand > p:not(.eyebrow), .login-proof { display: none; }
  .login-panel { min-height: 63vh; padding: 34px 25px; }
  .login-panel > small { margin-top: 30px; }
}

@media print {
  .sidebar, .mobile-topbar, .mobile-nav, .context-bar, .security-banner, .flash, .button-row, .schedule-help, .planner-tools, .response-bar { display: none !important; }
  .app-shell { display: block; }
  .content { width: 100%; padding: 0; }
  .page-heading { margin-bottom: 15px; }
  .page-heading h1 { font-size: 28px; }
  .schedule-section { margin: 0; }
  .schedule-scroll { overflow: visible; }
  .schedule-table { transform-origin: top left; font-size: 6px; }
  .schedule-table th, .schedule-table td { height: 42px; min-width: 41px !important; padding: 2px; }
  .schedule-table .employee-column { position: static; width: 115px; min-width: 115px !important; }
  .schedule-table .totals-column { position: static; width: 80px; min-width: 80px !important; }
  .shift-cell > em { display: none; }
}
