:root {
  --navy: #012248;
  --navy-2: #07345f;
  --navy-3: #0e4474;
  --orange: #d97a0b;
  --orange-hover: #c66d05;
  --orange-soft: #fff2e2;
  --cream: #f5f4ef;
  --paper: #ffffff;
  --ink: #10253d;
  --muted: #718096;
  --line: #e5e9ed;
  --line-dark: #d7dde3;
  --blue-soft: #eaf2f8;
  --green: #1f8b66;
  --green-soft: #e5f5ee;
  --amber: #a66712;
  --amber-soft: #fff5df;
  --red: #be533d;
  --red-soft: #fff0eb;
  --shadow: 0 18px 48px rgba(1, 34, 72, 0.08);
  --radius: 16px;
}

.demo-ribbon { min-height: 38px; padding: 8px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #012248; background: #ffd27a; border-bottom: 1px solid #eeb457; font-size: 11px; letter-spacing: .02em; }
.demo-ribbon strong { font-family: Montserrat, sans-serif; font-size: 10px; letter-spacing: .12em; }
@media (max-width: 680px) { .demo-ribbon { align-items: flex-start; flex-direction: column; gap: 2px; padding: 9px 16px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 14px/1.45 Inter, sans-serif; }
button, input, select { font: inherit; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 14px; top: -70px; z-index: 120; background: #fff; color: var(--navy); padding: 11px 16px; border-radius: 8px; }
.skip-link:focus { top: 14px; }
.section-label { margin: 0 0 5px; color: var(--orange); font: 700 10px/1.2 Montserrat, sans-serif; letter-spacing: .17em; }

/* Login */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .95fr) minmax(520px, 1.05fr); background: #fff; }
.login-screen.hidden { display: none; }
.login-brand-panel { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding: 46px 64px 38px; background: var(--navy); color: #fff; }
.login-brand-panel::before { content: ""; position: absolute; width: 680px; height: 680px; border: 1px solid rgba(255,255,255,.075); border-radius: 50%; right: -360px; bottom: -160px; box-shadow: 0 0 0 100px rgba(255,255,255,.025), 0 0 0 210px rgba(255,255,255,.018); }
.login-brand-panel::after { content: ""; position: absolute; inset: 0; opacity: .15; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.3) .6px, transparent .6px); background-size: 14px 14px; mask-image: linear-gradient(120deg, transparent 30%, black 100%); }
.brand-lockup { overflow: hidden; display: block; }
.brand-lockup svg { width: 100%; height: 100%; stroke: none; }
.brand-lockup-large { width: 170px; height: 82px; position: relative; z-index: 2; }
.login-message { margin: auto 0; position: relative; z-index: 2; max-width: 580px; }
.orange-rule { display: block; width: 48px; height: 4px; margin-bottom: 27px; border-radius: 3px; background: var(--orange); }
.login-kicker { color: #e49a43; font: 700 11px Montserrat, sans-serif; letter-spacing: .2em; }
.login-message h1 { margin: 14px 0 25px; color: #fff; font: 800 clamp(36px, 4.3vw, 64px)/1.04 Montserrat, sans-serif; letter-spacing: -.045em; }
.login-message h1 em { color: var(--orange); font-style: normal; }
.login-message > p:last-child { max-width: 460px; margin: 0; color: #bed0df; font-size: 16px; line-height: 1.75; }
.login-footer { position: relative; z-index: 2; margin: 0; color: #7892aa; font-size: 11px; letter-spacing: .03em; }
.login-form-panel { min-height: 100vh; display: grid; place-items: center; padding: 44px; background: #fbfbf9; }
.login-card { width: min(430px, 100%); padding: 24px 8px; }
.mobile-login-logo { display: none; }
.login-card h2 { margin: 5px 0 7px; color: var(--navy); font: 800 32px/1.2 Montserrat, sans-serif; letter-spacing: -.03em; }
.login-intro { margin: 0 0 31px; color: var(--muted); }
.input-group { position: relative; display: block; margin-bottom: 17px; }
.input-group > span { display: block; margin-bottom: 7px; color: #344a60; font-size: 12px; font-weight: 600; }
.input-group > i { position: absolute; left: 14px; bottom: 13px; height: 18px; color: #91a0ad; }
.input-group > i svg { width: 18px; height: 18px; }
.input-group input { width: 100%; height: 48px; padding: 0 45px; border: 1px solid var(--line-dark); border-radius: 10px; outline: none; background: #fff; color: var(--ink); font-size: 13px; transition: .18s; }
.input-group input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.input-group > button { position: absolute; right: 10px; bottom: 6px; width: 36px; height: 36px; border: 0; background: transparent; color: #8293a2; cursor: pointer; }
.input-group > button svg { width: 18px; height: 18px; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 22px; color: #697b8c; font-size: 11px; }
.login-options label { display: flex; align-items: center; gap: 7px; cursor: pointer; }
.login-options input { accent-color: var(--orange); }
.login-options button { padding: 0; border: 0; background: transparent; color: var(--orange); font-weight: 600; cursor: pointer; }
.brand-button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 0; border-radius: 9px; background: var(--orange); color: #fff; font: 700 12px Montserrat, sans-serif; cursor: pointer; box-shadow: 0 7px 18px rgba(217,122,11,.18); transition: transform .18s, background .18s, box-shadow .18s; }
.brand-button:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(217,122,11,.26); }
.brand-button svg { width: 17px; height: 17px; }
.login-button { width: 100%; height: 48px; justify-content: space-between; padding: 0 18px; }
.demo-divider { height: 43px; display: flex; align-items: center; gap: 12px; color: #a3adb6; font: 700 8px Montserrat, sans-serif; letter-spacing: .13em; }
.demo-divider::before, .demo-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.demo-buttons button { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 10px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: .18s; }
.demo-buttons button:hover { border-color: #e3a45a; background: #fffaf4; }
.demo-buttons b, .demo-buttons small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-buttons b { font-size: 10px; }
.demo-buttons small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.demo-avatar { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #fff; font-size: 9px; font-weight: 700; }
.demo-avatar.admin { background: var(--orange); }
.demo-avatar.member { background: var(--navy-2); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 22px 0 0; color: #a0aab3; font-size: 9px; }
.secure-note svg { width: 12px; height: 12px; }

/* Shell and sidebar */
.app-shell { display: none; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.app-shell.authenticated { display: grid; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 224px; display: flex; flex-direction: column; padding: 25px 17px 19px; background: var(--navy); color: #fff; }
.sidebar::after { content: ""; position: absolute; width: 260px; height: 260px; left: -140px; bottom: -120px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.02); pointer-events: none; }
.sidebar-logo { width: 129px; height: 65px; margin: 0 8px 35px; position: relative; z-index: 1; }
.sidebar-section-label { margin: 0 12px 9px; color: #66839f; font: 700 8px Montserrat, sans-serif; letter-spacing: .16em; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item { width: 100%; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: #a9bed0; font: 600 12px Inter, sans-serif; text-align: left; cursor: pointer; transition: .18s; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item b { min-width: 22px; margin-left: auto; padding: 3px 6px; border-radius: 10px; background: rgba(255,255,255,.08); color: #8ca6bd; font-size: 8px; text-align: center; }
.nav-item:hover, .nav-item:focus-visible { color: #fff; background: rgba(255,255,255,.065); }
.nav-item.active { color: #fff; background: rgba(217,122,11,.17); box-shadow: inset 3px 0 var(--orange); }
.nav-item.active svg { color: #ef9b3b; }
.nav-item.active b { background: rgba(217,122,11,.22); color: #ffc47c; }
.sidebar-bottom { position: relative; z-index: 1; margin-top: auto; }
.profile-card { display: grid; grid-template-columns: 1fr 32px; align-items: center; gap: 7px; padding: 17px 3px 0; border-top: 1px solid rgba(255,255,255,.1); }
.profile-identity { min-width: 0; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.profile-identity:hover strong { color: #f3a84e; }
.avatar { width: 36px; height: 36px; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--orange); color: #fff; font-size: 10px; font-weight: 700; }
.avatar img, .mini-avatar img, .avatar-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.profile-card strong, .profile-card small { display: block; }
.profile-card strong { overflow: hidden; color: #fff; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; transition: color .15s; }
.profile-card small { margin-top: 2px; color: #7290aa; font-size: 8px; }
.icon-plain { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #7592aa; cursor: pointer; }
.icon-plain:hover { color: #fff; background: rgba(255,255,255,.07); }
.icon-plain svg { width: 17px; height: 17px; }

/* Main header */
.app-shell main { grid-column: 2; min-width: 0; padding: 25px 31px 36px; }
.topbar { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.topbar h1 { margin: 0; color: var(--navy); font: 800 27px/1.15 Montserrat, sans-serif; letter-spacing: -.035em; }
.page-description { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.square-button { position: relative; width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #455b6e; cursor: pointer; transition: .18s; }
.square-button:hover { border-color: #cfd7df; background: #fafbfb; color: var(--navy); }
.square-button svg { width: 17px; height: 17px; }
.profile-top-button { width: 40px; height: 40px; display: none; place-items: center; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.profile-top-button .avatar { width: 34px; height: 34px; }

/* Summary */
.view { display: none; }
.view.active-view { display: block; }
.summary-grid { display: grid; grid-template-columns: 1.55fr repeat(3, 1fr); gap: 12px; margin-bottom: 15px; }
.summary-card { min-height: 126px; display: flex; align-items: center; gap: 14px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 18px rgba(1,34,72,.025); }
.summary-feature { position: relative; display: block; overflow: hidden; border: 0; background: var(--navy); color: #fff; }
.summary-feature::after { content: ""; position: absolute; width: 165px; height: 165px; right: -52px; top: -75px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 29px rgba(255,255,255,.025), 0 0 0 57px rgba(255,255,255,.018); }
.summary-feature::before { content: ""; position: absolute; width: 4px; height: 100%; left: 0; top: 0; background: var(--orange); }
.summary-top, .metric-line { position: relative; z-index: 1; display: flex; align-items: center; }
.summary-top { justify-content: space-between; color: #b9c9d6; font-size: 10px; font-weight: 600; }
.trend { padding: 4px 7px; border-radius: 11px; background: rgba(217,122,11,.2); color: #f3b364; font-size: 8px; }
.metric-line { gap: 9px; margin-top: 7px; }
.metric-line strong { font: 800 27px Montserrat, sans-serif; }
.metric-line span { color: #97aec1; font-size: 9px; }
.progress { position: relative; z-index: 1; height: 4px; overflow: hidden; margin: 8px 0 7px; border-radius: 3px; background: rgba(255,255,255,.14); }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--orange); transition: width .3s; }
.summary-card p { margin: 0; color: var(--muted); font-size: 9px; }
.summary-feature p { position: relative; z-index: 1; color: #9cb1c3; }
.summary-card > div > span { color: var(--muted); font-size: 10px; font-weight: 600; }
.summary-card > div > strong { display: block; margin: 4px 0; color: var(--navy); font: 800 24px Montserrat, sans-serif; }
.summary-feature .metric-line strong { color: #fff; }
.card-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.card-icon.alert { background: var(--red-soft); color: var(--red); }
.card-icon.blue { background: var(--blue-soft); color: var(--navy-2); }
.card-icon svg { width: 18px; height: 18px; }

/* Schedule */
.workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
.workspace-header { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.week-control, .tools { display: flex; align-items: center; gap: 7px; }
.date-button { height: 42px; min-width: 202px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.date-button > svg:first-child { color: var(--orange); }
.date-button > svg:last-child { width: 14px; height: 14px; color: #8898a6; }
.date-button span { flex: 1; }
.date-button b, .date-button small { display: block; }
.date-button b { font-size: 11px; }
.date-button small { margin-top: 1px; color: var(--muted); font-size: 8px; }
#weekPicker { position: absolute; opacity: 0; pointer-events: none; }
.outline-button { min-height: 40px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 9px; background: #fff; color: #43586a; font-size: 11px; font-weight: 600; cursor: pointer; }
.outline-button:hover { border-color: #b8c3cd; background: #fafbfb; }
.search { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.search svg { width: 16px; height: 16px; flex: 0 0 auto; color: #8596a5; }
.search input { width: 172px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.filter-button { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #4b5e6e; font-size: 10px; font-weight: 600; cursor: pointer; }
.filter-button svg { width: 15px; height: 15px; }
.filter-button.active { border-color: #e5b172; background: var(--orange-soft); color: #9b5708; }
.filter-button i { display: none; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.filter-button.active i { display: inline-block; }
.member-notice { display: none; align-items: center; gap: 10px; margin: 13px 17px 0; padding: 11px 14px; border: 1px solid #dce7ef; border-radius: 10px; background: var(--blue-soft); color: var(--navy-2); }
.member-notice > svg { width: 19px; height: 19px; }
.member-notice strong { font-size: 10px; }
.member-notice p { margin: 2px 0 0; color: #677f92; font-size: 8px; }
.table-wrap { overflow-x: auto; }
.schedule-grid { min-width: 990px; display: grid; grid-template-columns: minmax(195px, 1.55fr) repeat(7, minmax(84px, .76fr)) minmax(132px, 1fr); }
.schedule-head { height: 54px; border-bottom: 1px solid var(--line); background: #fafafa; }
.schedule-head > div { display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--line); }
.store-heading { justify-content: flex-start !important; padding-left: 19px; color: #7d8c99; font: 700 8px Montserrat, sans-serif; letter-spacing: .09em; }
.day-heading { gap: 6px; }
.day-heading b { color: var(--navy); font: 700 8px Montserrat, sans-serif; letter-spacing: .04em; }
.day-heading span { color: #8b98a4; font-size: 8px; }
.day-heading.weekend { background: #f6f7f8; }
.day-heading.today-column { position: relative; background: #fff0dd; box-shadow: inset 0 3px var(--orange), inset 1px 0 rgba(217,122,11,.16), inset -1px 0 rgba(217,122,11,.16); }
.day-heading.today-column b { color: #a85c06; }
.day-heading.today-column span { min-width: 20px; padding: 3px 5px; border-radius: 9px; background: var(--orange); color: #fff; font-weight: 700; text-align: center; }
.coverage-heading { border-right: 0 !important; color: #7d8c99; font: 700 8px Montserrat, sans-serif; letter-spacing: .09em; }
.owner-group-row { min-height: 43px; border-bottom: 1px solid var(--line); background: #f8f9f8; }
.owner-group-cell { grid-column: 1 / -1; display: flex; align-items: center; gap: 9px; padding: 0 19px; }
.owner-group-cell strong { color: var(--navy); font: 700 10px Montserrat, sans-serif; }
.owner-group-cell > span:nth-of-type(2) { color: var(--muted); font-size: 8px; }
.owner-group-cell i { flex: 1; height: 1px; margin-left: 5px; background: #dce2e6; }
.owner-badge { min-width: 30px; padding: 5px 8px; border-radius: 7px; background: var(--orange); color: #fff; font: 700 8px Montserrat, sans-serif; text-align: center; }
.owner-group-cell.owner-pol { margin-top: 2px; border-top: 2px solid var(--navy); background: #f2f6f9; }
.owner-group-cell.owner-pol .owner-badge { background: var(--navy); }
.owner-group-cell.owner-pol i { background: #cdd9e2; }
.store-row { min-height: 69px; border-bottom: 1px solid var(--line); transition: background .15s; }
.store-row:hover { background: #fcfcfa; }
.store-cell { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 11px 11px 11px 19px; border-right: 1px solid var(--line); }
.store-id { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--blue-soft); color: var(--navy-2); font: 700 9px Montserrat, sans-serif; }
.store-cell > div { min-width: 0; }
.store-cell strong, .store-cell p { overflow: hidden; display: block; text-overflow: ellipsis; white-space: nowrap; }
.store-cell strong { font-size: 10px; }
.store-cell p { margin: 3px 0 0; color: var(--muted); font-size: 8px; }
.store-menu { width: 28px; height: 28px; display: grid; place-items: center; margin-left: auto; border: 0; border-radius: 7px; background: transparent; color: #9aa6af; cursor: pointer; }
.store-menu:hover { background: var(--blue-soft); color: var(--navy); }
.store-menu svg { width: 16px; height: 16px; }
.day-cell { --coverage-tone: transparent; --coverage-card: transparent; --coverage-border: transparent; --coverage-text: var(--ink); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 7px; border: 0; border-right: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .15s; }
.day-cell:nth-of-type(7), .day-cell:nth-of-type(8) { background: #fcfcfd; }
.day-cell:hover { background: var(--orange-soft); }
.day-cell.coverage-required { --coverage-tone: var(--red); --coverage-card: #fff0eb; --coverage-border: #efc2b8; --coverage-text: #943d2d; background: #fff8f6; }
.day-cell.coverage-flexible { --coverage-tone: #d49a32; --coverage-card: #fff6df; --coverage-border: #ecd29a; --coverage-text: #80550e; background: #fffbf2; }
.day-cell.coverage-complete { --coverage-tone: var(--green); --coverage-card: #e8f6ef; --coverage-border: #b7ddcc; --coverage-text: #176d50; background: #f4fbf7; }
.day-cell.personal-muted-day { --coverage-tone: #d6dde3; background: #fafbfb; }
.day-cell.coverage-required:hover { background: #ffede8; }
.day-cell.coverage-flexible:hover { background: #fff3d5; }
.day-cell.coverage-complete:hover { background: #e8f6ef; }
.day-cell.personal-muted-day:hover { background: #f5f7f8; }
.day-cell::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 3px; background: var(--coverage-tone); }
.day-cell.today-column { background: #fffaf2 !important; box-shadow: inset 1px 0 rgba(217,122,11,.12), inset -1px 0 rgba(217,122,11,.12); }
.day-cell.today-column:hover { background: #ffefd9 !important; }
.assignment { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; border: 1px solid #d8e3eb; border-radius: 9px; background: var(--blue-soft); color: var(--navy-2); }
.day-cell[class*="coverage-"] .assignment { border-color: var(--coverage-border); background: var(--coverage-card); color: var(--coverage-text); }
.mini-avatar { width: 22px; height: 22px; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: #fff; font-size: 7px; font-style: normal; font-weight: 700; }
.avatar-stack { display: flex; align-items: center; flex: 0 0 auto; }
.avatar-stack .mini-avatar { border: 2px solid var(--blue-soft); }
.day-cell[class*="coverage-"] .avatar-stack .mini-avatar,
.day-cell[class*="coverage-"] .avatar-overflow { border-color: var(--coverage-card); }
.avatar-stack .mini-avatar + .mini-avatar { margin-left: -8px; }
.avatar-overflow { width: 22px; height: 22px; display: grid; place-items: center; margin-left: -8px; border: 2px solid var(--blue-soft); border-radius: 6px; background: var(--navy); color: #fff; font-size: 7px; font-style: normal; font-weight: 700; }
.assignment > span:last-child { max-width: 52px; overflow: hidden; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.assignment.multi-agent { flex-direction: column; justify-content: center; gap: 1px; padding: 3px; }
.assignment.multi-agent > span:last-child { max-width: 68px; font-size: 7px; line-height: 1; }
.day-cell.today-column .assignment { border-color: var(--coverage-tone); background: #fff1df; }
.day-cell.today-column .avatar-stack .mini-avatar, .day-cell.today-column .avatar-overflow { border-color: #fff1df; }
.open-day::after { content: "+"; color: #bdc5cb; font-size: 17px; opacity: 0; }
.store-row:hover .open-day::after, .open-day:focus::after { opacity: 1; }
.coverage-cell { display: flex; align-items: center; padding: 8px; }
.coverage-pill { width: 100%; padding: 7px 8px; border-radius: 9px; }
.coverage-pill.complete { background: var(--green-soft); color: #176d50; }
.coverage-pill.warning { background: var(--amber-soft); color: var(--amber); }
.coverage-pill.danger { background: var(--red-soft); color: var(--red); }
.coverage-pill b { font: 700 10px Montserrat, sans-serif; }
.coverage-pill small { display: block; margin-top: 2px; font-size: 7px; white-space: nowrap; }
.mini-progress { height: 3px; overflow: hidden; margin-top: 5px; border-radius: 3px; background: rgba(0,0,0,.08); }
.mini-progress i { display: block; height: 100%; background: currentColor; }
.legend { min-height: 43px; display: flex; align-items: center; gap: 21px; padding: 11px 19px; color: var(--muted); font-size: 8px; }
.legend > span:last-child { margin-left: auto; }
.legend-dot { width: 7px; height: 7px; display: inline-block; margin-right: 5px; border-radius: 2px; }
.legend-dot.required { background: var(--red); }
.legend-dot.flexible { background: #d49a32; }
.legend-dot.complete { background: var(--green); }
.empty-state { display: none; padding: 52px; color: var(--muted); text-align: center; }
.empty-state svg { width: 26px; height: 26px; }
.empty-state strong { display: block; margin: 7px; color: var(--ink); }
.empty-state p { margin: 0; font-size: 10px; }

/* Management views */
.management-view { min-height: 400px; }
.management-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.large-search { width: min(410px, 100%); height: 43px; background: #fff; }
.large-search input { width: 100%; font-size: 11px; }
.segmented { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.segmented button { height: 33px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; font-weight: 600; cursor: pointer; }
.segmented button.active { background: var(--navy); color: #fff; }
.management-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-bottom: 14px; }
.mini-stat { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mini-stat > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--orange-soft); color: var(--orange); }
.mini-stat > span svg { width: 17px; height: 17px; }
.mini-stat b, .mini-stat small { display: block; }
.mini-stat b { color: var(--navy); font: 700 18px Montserrat, sans-serif; }
.mini-stat small { color: var(--muted); font-size: 8px; }
.directory-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.directory-head { min-height: 46px; align-items: center; border-bottom: 1px solid var(--line); background: #fafafa; color: #7c8b98; font: 700 8px Montserrat, sans-serif; letter-spacing: .08em; }
.stores-directory-grid, .store-directory-row { display: grid; grid-template-columns: 1.15fr 1.35fr .55fr .85fr .65fr 120px; }
.users-directory-grid, .user-directory-row { display: grid; grid-template-columns: 1.45fr 1fr 1fr .75fr 120px; }
.directory-head span, .directory-row > div { padding: 0 17px; }
.directory-row { min-height: 69px; align-items: center; border-bottom: 1px solid var(--line); }
.directory-row:last-child { border-bottom: 0; }
.directory-primary { min-width: 0; display: flex; align-items: center; gap: 10px; }
.directory-primary > div { min-width: 0; }
.directory-primary strong, .directory-primary small, .directory-secondary strong, .directory-secondary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.directory-primary strong, .directory-secondary strong { font-size: 10px; }
.directory-primary small, .directory-secondary small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.coverage-rule b { font-size: 10px; }
.coverage-rule small { display: block; color: var(--muted); font-size: 8px; }
.status-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 12px; font-size: 8px; font-weight: 600; text-transform: capitalize; }
.status-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-chip.active { background: var(--green-soft); color: var(--green); }
.status-chip.archived, .status-chip.inactive { background: #f0f2f4; color: #7b8995; }
.role-chip { display: inline-block; padding: 5px 8px; border-radius: 6px; background: var(--blue-soft); color: var(--navy-2); font-size: 8px; font-weight: 600; }
.owner-chip { min-width: 34px; display: inline-flex; justify-content: center; padding: 5px 8px; border-radius: 7px; background: var(--orange-soft); color: #a45a07; font-size: 8px; font-weight: 700; }
.owner-chip.owner-pol { background: var(--blue-soft); color: var(--navy); }
.directory-actions { display: flex; gap: 4px; }
.action-icon { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #778996; cursor: pointer; }
.action-icon:hover { border-color: var(--line); background: #fafbfb; color: var(--navy); }
.action-icon.delete:hover { border-color: #f2d1ca; background: var(--red-soft); color: var(--red); }
.action-icon svg { width: 15px; height: 15px; }
.directory-empty { display: none; padding: 45px; color: var(--muted); text-align: center; font-size: 11px; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(1,25,52,.6); backdrop-filter: blur(5px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal { position: relative; width: min(450px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 27px; border-radius: 16px; background: #fff; box-shadow: 0 30px 80px rgba(1,24,52,.3); transform: translateY(8px) scale(.99); transition: transform .2s; }
.modal-backdrop.open .modal { transform: none; }
.modal h2 { margin: 0; color: var(--navy); font: 800 20px Montserrat, sans-serif; letter-spacing: -.02em; }
.modal-subtitle { margin: 5px 0 21px; color: var(--muted); font-size: 10px; }
.modal-close { position: absolute; right: 17px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #f2f4f5; color: #637482; cursor: pointer; }
.modal-close svg { width: 16px; height: 16px; }
.field-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font: 700 8px Montserrat, sans-serif; letter-spacing: .08em; }
.field-label span { color: #9aa6af; font: 500 8px Inter, sans-serif; letter-spacing: 0; }
.people-list { max-height: 340px; overflow-y: auto; display: grid; gap: 7px; margin: 8px 0 17px; padding: 2px 4px 2px 2px; scrollbar-color: #cbd4db transparent; scrollbar-width: thin; }
.person-option { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.person-option.selected { border-color: #e2a45a; background: var(--orange-soft); box-shadow: 0 0 0 2px #fff0dd; }
.person-option > span:nth-child(2) { min-width: 0; flex: 1; }
.person-option strong, .person-option small { display: block; }
.person-option strong { font-size: 10px; }
.person-option small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.person-option input { accent-color: var(--orange); }
.wide { width: 100%; margin-top: 5px; }
.text-danger-button { width: 100%; height: 37px; margin-top: 4px; border: 0; background: transparent; color: var(--red); font-size: 10px; font-weight: 600; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 19px 0 14px; }
.form-grid .form-wide { grid-column: 1 / -1; }
.form-grid label > span { display: block; margin-bottom: 6px; color: #526474; font-size: 9px; font-weight: 600; }
.form-grid input, .form-grid select { width: 100%; height: 41px; padding: 0 10px; border: 1px solid var(--line-dark); border-radius: 8px; outline: none; background: #fff; color: var(--ink); font-size: 10px; }
.form-grid input:focus, .form-grid select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.avatar-upload { display: flex; align-items: center; gap: 13px; margin: 17px 0 5px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafafa; }
.avatar-preview { width: 58px; height: 58px; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid #fff; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: 0 3px 12px rgba(1,34,72,.13); font: 700 13px Montserrat, sans-serif; }
.avatar-upload strong, .avatar-upload p { display: block; margin: 0; }
.avatar-upload strong { color: var(--navy); font-size: 10px; }
.avatar-upload p { margin-top: 2px; color: var(--muted); font-size: 8px; }
.upload-actions { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.upload-button { min-height: 28px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border: 1px solid #dfac6f; border-radius: 7px; background: var(--orange-soft); color: #a35b08; font-size: 8px; font-weight: 700; cursor: pointer; }
.upload-button:hover { border-color: var(--orange); background: #ffe9cd; }
.upload-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.remove-photo { padding: 0; border: 0; background: transparent; color: var(--red); font-size: 8px; font-weight: 600; cursor: pointer; }
.profile-avatar-editor { display: flex; flex-direction: column; align-items: center; padding: 8px 0 18px; text-align: center; }
.avatar-preview.large { width: 96px; height: 96px; margin-bottom: 12px; border-radius: 24px; font-size: 22px; }
.profile-avatar-editor strong { color: var(--navy); font: 700 13px Montserrat, sans-serif; }
.profile-avatar-editor > span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.large-upload { min-height: 34px; margin-top: 15px; padding: 0 14px; font-size: 9px; }
.profile-avatar-editor .remove-photo { margin-top: 9px; }
.confirm-modal { width: min(380px, 100%); text-align: center; }
.confirm-icon { width: 45px; height: 45px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.confirm-icon svg { width: 21px; height: 21px; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.danger-button { min-height: 40px; border: 0; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; }
.toast { position: fixed; right: 24px; bottom: 23px; z-index: 100; display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 10px; background: var(--navy); color: #fff; box-shadow: 0 14px 38px rgba(1,26,55,.25); opacity: 0; transform: translateY(70px); transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.toast > span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 6px; background: var(--orange); }
.toast svg { width: 12px; height: 12px; }
.toast p { margin: 0; font-size: 10px; font-weight: 600; }

/* Permissions */
body.member-mode .admin-only { display: none !important; }
body.member-mode .member-notice { display: flex; }
.square-button:disabled { opacity: .4; cursor: not-allowed; }
.square-button:disabled:hover { border-color: var(--line); background: #fff; color: #455b6e; }
body.member-mode .day-cell { pointer-events: none; }

@media (max-width: 1120px) {
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .workspace-header { align-items: flex-start; flex-direction: column; }
  .tools { width: 100%; }
  .tools .search { flex: 1; }
  .tools .search input { width: 100%; }
  .stores-directory-grid, .store-directory-row { grid-template-columns: 1.1fr 1.2fr .5fr .8fr .65fr 110px; }
}

@media (max-width: 820px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { padding: 25px; }
  .mobile-login-logo { width: 120px; height: 64px; display: block; margin: 0 0 25px; background: var(--navy); border-radius: 9px; }
  .app-shell.authenticated { display: block; }
  .sidebar { inset: auto 0 0; width: 100%; height: 67px; flex-direction: row; padding: 7px 14px; }
  .sidebar-logo, .sidebar-section-label, .sidebar-bottom { display: none; }
  .sidebar nav { width: 100%; display: flex; justify-content: space-around; }
  .nav-item { width: auto; min-width: 78px; height: 51px; flex-direction: column; justify-content: center; gap: 2px; padding: 0 8px; font-size: 8px; }
  .nav-item b { display: none; }
  .nav-item.active { box-shadow: inset 0 -3px var(--orange); }
  .app-shell main { padding: 18px 14px 88px; }
  .topbar { align-items: flex-start; }
  .profile-top-button { display: grid; }
  .topbar h1 { font-size: 22px; }
  .page-description { max-width: 230px; }
  .management-toolbar { align-items: stretch; flex-direction: column; }
  .segmented { align-self: flex-start; }
  .management-stats { grid-template-columns: 1fr; }
  .directory-card { overflow-x: auto; }
  .directory-head, .directory-row { min-width: 760px; }
}

@media (max-width: 600px) {
  .summary-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .summary-card { min-width: 220px; scroll-snap-align: start; }
  .summary-feature { min-width: 280px; }
  .workspace-header { padding: 13px; }
  .week-control { width: 100%; }
  .date-button { min-width: 0; flex: 1; }
  .outline-button#todayBtn { display: none; }
  .tools { flex-wrap: wrap; }
  .tools .search { min-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .form-wide { grid-column: auto; }
  .legend { overflow-x: auto; white-space: nowrap; }
  .demo-buttons { grid-template-columns: 1fr; }
  .login-form-panel { align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
