:root {
  --green: #17705c;
  --green-dark: #115747;
  --green-soft: #e9f4f0;
  --ink: #17211f;
  --muted: #66736f;
  --line: #e3e9e6;
  --bg: #f4f7f5;
  --white: #fff;
  --danger: #c83d4a;
  --danger-soft: #fff0f1;
  --amber: #a96913;
  --amber-soft: #fff5df;
  --blue: #316da3;
  --blue-soft: #eaf3fb;
  --sidebar: 244px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Noto Sans SC", system-ui, sans-serif; font-size: 14px; letter-spacing: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
.app-shell[hidden], .login-page[hidden], .permission-hidden { display: none !important; }
.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(420px, 1.08fr) minmax(440px, .92fr); background: #fff; }
.login-visual { position: relative; min-height: 100vh; overflow: hidden; background: #163c32; }
.login-visual::after { position: absolute; inset: 0; background: rgba(13,46,37,.48); content: ""; }
.login-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.78); }
.login-visual-copy { position: absolute; right: 8%; bottom: 8%; left: 9%; z-index: 1; color: #fff; }
.login-visual-copy > span { display: inline-block; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.72); font-size: 12px; font-weight: 600; }
.login-visual-copy h1 { max-width: 620px; margin: 20px 0 13px; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.15; }
.login-visual-copy > p { max-width: 560px; margin: 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.8; }
.login-visual-copy > div { display: flex; gap: 42px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.28); }
.login-visual-copy > div span { display: flex; flex-direction: column; color: rgba(255,255,255,.7); font-size: 11px; }
.login-visual-copy > div strong { margin-bottom: 3px; color: #fff; font-size: 21px; }
.login-area { display: grid; min-height: 100vh; place-items: center; padding: 44px clamp(38px, 6vw, 92px); background: #fff; }
.login-box { width: min(430px, 100%); }
.login-brand { display: flex; align-items: center; gap: 11px; }
.login-brand img { width: 44px; height: 44px; object-fit: contain; }
.login-brand span { display: flex; flex-direction: column; }
.login-brand strong { font-size: 16px; }
.login-brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.login-heading { margin: 45px 0 25px; }
.login-heading > span { color: var(--green); font-size: 12px; font-weight: 700; }
.login-heading h2 { margin: 7px 0 7px; font-size: 27px; }
.login-heading p { margin: 0; color: var(--muted); }
.staff-login-form > label { display: block; margin-top: 15px; }
.staff-login-form > label > span { display: block; margin-bottom: 7px; color: #46534f; font-size: 12px; font-weight: 600; }
.input-wrap { display: flex; height: 44px; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #d5ddda; border-radius: 6px; }
.input-wrap:focus-within { border-color: #72a897; box-shadow: 0 0 0 3px rgba(23,112,92,.08); }
.input-wrap svg { width: 16px; color: #7d8985; }
.input-wrap input { flex: 1; min-width: 0; height: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; }
.login-options label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.login-options input { accent-color: var(--green); }
.login-options button { padding: 3px 0; color: var(--green); background: transparent; border: 0; font-size: 11px; }
.login-error { min-height: 18px; margin: 8px 0 2px; color: var(--danger); font-size: 11px; }
.login-submit { display: flex; width: 100%; height: 45px; align-items: center; justify-content: center; gap: 8px; color: #fff; background: var(--green); border: 1px solid var(--green); border-radius: 6px; font-weight: 600; }
.login-submit:hover { background: var(--green-dark); }
.login-submit svg { width: 16px; }
.demo-accounts { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-accounts > div:first-child { display: flex; justify-content: space-between; margin-bottom: 10px; }
.demo-accounts > div:first-child span { font-size: 11px; font-weight: 600; }
.demo-accounts > div:first-child small { color: #919b97; font-size: 10px; }
.demo-accounts > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-accounts button { display: flex; min-width: 0; height: 54px; align-items: center; gap: 8px; padding: 8px 9px; color: #4f5c58; background: #f7f9f8; border: 1px solid var(--line); border-radius: 6px; text-align: left; }
.demo-accounts button:hover { color: var(--green); background: var(--green-soft); border-color: #b9d3ca; }
.demo-accounts button svg { flex: 0 0 17px; width: 17px; }
.demo-accounts button span { min-width: 0; }
.demo-accounts button strong, .demo-accounts button small { display: block; }
.demo-accounts button strong { font-size: 11px; }
.demo-accounts button small { margin-top: 2px; overflow: hidden; color: #84908c; font-size: 9px; text-overflow: ellipsis; }
.login-box > footer { margin-top: 28px; color: #a0a9a5; font-size: 10px; text-align: center; }
.app-shell { min-height: 100vh; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 18px 14px; background: #fff; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; min-height: 46px; padding: 0 8px 16px; border-bottom: 1px solid var(--line); }
.brand img { width: 38px; height: 38px; object-fit: contain; margin-right: 10px; }
.brand span, .store-identity > span:nth-child(2), .support span, .user-menu > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; }
.brand strong { font-size: 15px; }
.brand small, .store-identity small, .support small, .user-menu small { margin-top: 2px; color: #84908c; font-size: 11px; }
.store-identity { display: flex; align-items: center; gap: 9px; margin: 15px 0 12px; padding: 10px; background: #f5f8f6; border: 1px solid var(--line); border-radius: 8px; }
.store-identity strong { max-width: 118px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.store-avatar { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 7px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; }
.icon-btn { display: grid; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; place-items: center; color: #586560; background: transparent; border: 0; border-radius: 6px; }
.icon-btn:hover { background: #eef3f1; }
.store-identity .icon-btn { margin-left: auto; }
.side-nav { flex: 1; overflow-y: auto; }
.side-nav p { margin: 18px 10px 6px; color: #9aa49f; font-size: 11px; font-weight: 600; }
.nav-item { display: flex; width: 100%; height: 42px; align-items: center; gap: 11px; margin: 2px 0; padding: 0 11px; color: #4e5b57; background: transparent; border: 0; border-radius: 6px; text-align: left; }
.nav-item:hover { color: var(--green); background: #f1f7f4; }
.nav-item.active { color: var(--green-dark); background: var(--green-soft); font-weight: 600; }
.nav-item span { flex: 1; }
.nav-item em { min-width: 22px; padding: 2px 6px; color: #5e6b67; background: #e9efec; border-radius: 10px; font-size: 11px; font-style: normal; text-align: center; }
.nav-item em.warn { color: var(--danger); background: var(--danger-soft); }
.support { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 10px; background: #f7f9f8; border-radius: 6px; }
.support svg { color: var(--green); }
.support strong { font-size: 12px; }
.support small { font-size: 10px; }

.main-area { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; height: 64px; align-items: center; padding: 0 32px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.global-search { display: flex; width: min(420px, 40vw); height: 38px; align-items: center; gap: 9px; padding: 0 11px; background: #f5f7f6; border: 1px solid transparent; border-radius: 6px; }
.global-search:focus-within { background: #fff; border-color: #98c0b4; box-shadow: 0 0 0 3px rgba(23,112,92,.08); }
.global-search svg { width: 16px; color: #7d8985; }
.global-search input { flex: 1; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.global-search kbd { color: #9ba5a1; font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.shift-status { display: flex; align-items: center; gap: 7px; color: #65716d; font-size: 12px; }
.shift-status i { width: 7px; height: 7px; background: #33a778; border-radius: 50%; box-shadow: 0 0 0 3px #ddf3e9; }
.notification-btn { position: relative; }
.notification-btn b { position: absolute; top: 1px; right: 0; display: grid; min-width: 16px; height: 16px; place-items: center; color: #fff; background: var(--danger); border: 2px solid #fff; border-radius: 8px; font-size: 9px; }
.user-menu { display: flex; align-items: center; gap: 9px; padding: 3px 2px 3px 5px; background: transparent; border: 0; }
.user-menu > span:first-child { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: #d19e56; border-radius: 50%; font-weight: 700; }
.user-menu strong { font-size: 12px; text-align: left; }
.user-menu svg { width: 15px; }
.account-popover { position: absolute; top: 56px; right: 28px; z-index: 31; display: none; width: 230px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 42px rgba(20,35,30,.16); }
.account-popover.open { display: block; }
.account-popover > div { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); }
.account-popover > div > span { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: #d19e56; border-radius: 50%; font-weight: 700; }
.account-popover p { display: flex; min-width: 0; flex-direction: column; margin: 0; }
.account-popover p small { margin-top: 2px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.account-popover > button { display: flex; width: 100%; height: 37px; align-items: center; gap: 9px; padding: 0 8px; color: #4e5b57; background: transparent; border: 0; border-radius: 5px; text-align: left; font-size: 12px; }
.account-popover > button:hover { background: #f2f6f4; }
.account-popover > button:last-child { color: var(--danger); }
.account-popover > button svg { width: 15px; }
.notification-popover { position: absolute; top: 56px; right: 104px; z-index: 30; display: none; width: 330px; padding: 8px 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 42px rgba(20,35,30,.16); }
.notification-popover.open { display: block; }
.notification-popover > div { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 10px; border-bottom: 1px solid var(--line); }
.notification-popover > div button { color: var(--green); background: none; border: 0; font-size: 12px; }
.notification-popover p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 11px 14px; }
.notification-popover p:hover { background: #f7f9f8; }
.notification-popover p span { display: flex; flex-direction: column; }
.notification-popover p small { margin-top: 3px; color: var(--muted); }
.dot { flex: 0 0 7px; height: 7px; margin-top: 7px; border-radius: 50%; }
.dot.danger { background: var(--danger); }.dot.amber { background: #d48c22; }.dot.green { background: #31a479; }

.content { width: min(1460px, 100%); margin: 0 auto; padding: 28px 32px 50px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-head p { margin: 0 0 5px; color: var(--muted); font-size: 12px; }
.page-head h1 { margin: 0 0 5px; font-size: 25px; line-height: 1.35; }
.page-head span { color: var(--muted); }
.page-head span strong { color: var(--green); }
.page-actions { display: flex; gap: 9px; }
.primary-btn, .secondary-btn { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border-radius: 6px; font-weight: 600; }
.primary-btn { color: #fff; background: var(--green); border: 1px solid var(--green); }
.primary-btn:hover { background: var(--green-dark); }
.secondary-btn { color: #45524e; background: #fff; border: 1px solid #d9e0dd; }
.secondary-btn:hover { background: #f7f9f8; }
.primary-btn svg, .secondary-btn svg { width: 16px; }

.alert-strip { display: flex; align-items: center; gap: 13px; min-height: 70px; margin-bottom: 16px; padding: 12px 15px; background: #fff8f8; border: 1px solid #f2d9dc; border-left: 4px solid var(--danger); border-radius: 7px; }
.alert-icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; color: var(--danger); background: #ffe8ea; border-radius: 7px; }
.alert-strip div { flex: 1; min-width: 0; }
.alert-strip strong { font-size: 14px; }
.alert-strip p { margin: 3px 0 0; overflow: hidden; color: #82575c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.alert-strip button { display: flex; align-items: center; gap: 5px; padding: 8px 9px; color: var(--danger); background: transparent; border: 0; font-weight: 600; }
.alert-strip button svg { width: 16px; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.metrics article { position: relative; min-height: 126px; padding: 19px 21px; }
.metrics article + article::before { position: absolute; top: 18px; bottom: 18px; left: 0; width: 1px; background: var(--line); content: ""; }
.metrics article > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.metrics article > span svg { width: 16px; color: var(--green); }
.metrics article div { margin-top: 8px; }
.metrics article strong { font-size: 28px; line-height: 1; }
.metrics article em { margin-left: 5px; color: var(--muted); font-size: 12px; font-style: normal; }
.metrics article p { margin: 10px 0 0; color: #8a9490; font-size: 11px; }
.metrics article p b { color: var(--green); font-weight: 600; }
.danger-text { color: var(--danger); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .8fr); gap: 16px; }
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.panel-head { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.segmented { display: flex; padding: 3px; background: #f0f4f2; border-radius: 6px; }
.segmented button { min-width: 52px; height: 28px; padding: 0 9px; color: var(--muted); background: transparent; border: 0; border-radius: 4px; font-size: 12px; }
.segmented button.active { color: var(--green-dark); background: #fff; box-shadow: 0 1px 3px rgba(15,35,28,.08); font-weight: 600; }
.task-list { min-height: 282px; }
.task-item { display: grid; grid-template-columns: 5px 38px minmax(0,1fr) auto 30px; min-height: 70px; align-items: center; gap: 12px; padding: 9px 16px 9px 0; border-bottom: 1px solid #edf1ef; }
.task-item:last-child { border-bottom: 0; }
.task-item:hover { background: #fafcfb; }
.task-item .priority { align-self: stretch; background: #b7c4bf; }
.task-item.urgent .priority { background: var(--danger); }
.task-symbol { display: grid; width: 36px; height: 36px; place-items: center; color: var(--green); background: var(--green-soft); border-radius: 7px; }
.task-item.urgent .task-symbol { color: var(--danger); background: var(--danger-soft); }
.task-copy { min-width: 0; }
.task-copy strong { display: block; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.task-copy span { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { text-align: right; }
.task-meta em { display: inline-block; padding: 3px 7px; color: #6d7874; background: #f1f4f3; border-radius: 4px; font-size: 10px; font-style: normal; }
.task-meta time { display: block; margin-top: 4px; color: #8c9692; font-size: 10px; }
.complete-task { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; color: #93a09b; background: #fff; border: 1px solid #d9e0dd; border-radius: 50%; }
.complete-task:hover { color: #fff; background: var(--green); border-color: var(--green); }
.complete-task svg { width: 14px; }
.task-item.done { opacity: .5; }
.task-item.done .task-copy strong { text-decoration: line-through; }
.panel-footer { display: flex; width: 100%; height: 44px; align-items: center; justify-content: center; gap: 5px; color: var(--green); background: #fbfcfb; border: 0; border-top: 1px solid var(--line); font-size: 12px; }
.panel-footer svg { width: 14px; }

.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.quick-grid button { min-height: 116px; padding: 14px; background: #fff; border: 0; text-align: left; }
.quick-grid button:hover { background: #fafcfb; }
.quick-grid button > span { display: grid; width: 34px; height: 34px; margin-bottom: 9px; place-items: center; border-radius: 7px; }
.quick-grid button strong, .quick-grid button small { display: block; }
.quick-grid button strong { font-size: 12px; }
.quick-grid button small { margin-top: 3px; color: #8a9490; font-size: 10px; }
.green-bg { color: var(--green); background: var(--green-soft); }.red-bg { color: var(--danger); background: var(--danger-soft); }.blue-bg { color: var(--blue); background: var(--blue-soft); }.amber-bg { color: var(--amber); background: var(--amber-soft); }
.shift-card { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.shift-card > div:first-child { display: flex; min-width: 84px; flex-direction: column; }
.shift-card > div:first-child span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.shift-card > div:first-child svg { width: 13px; }
.shift-card > div:first-child strong { margin-top: 2px; font-size: 12px; }
.avatar-stack { display: flex; flex: 1; }
.avatar-stack span { display: grid; width: 27px; height: 27px; margin-left: -5px; place-items: center; color: #fff; background: #739b8f; border: 2px solid #fff; border-radius: 50%; font-size: 10px; }
.avatar-stack span:first-child { margin-left: 0; background: #d19e56; }
.shift-card > button { padding: 5px; color: var(--green); background: transparent; border: 0; font-size: 11px; }

.trend-panel { min-height: 310px; }
.text-btn { display: flex; align-items: center; gap: 5px; color: var(--green); background: transparent; border: 0; font-size: 11px; }
.text-btn svg { width: 14px; }
.chart-wrap { display: grid; grid-template-columns: 30px 1fr; height: 242px; padding: 22px 24px 16px 17px; }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 22px; color: #9ba5a1; font-size: 9px; }
.bar-chart { display: grid; grid-template-columns: repeat(7,1fr); gap: 14px; align-items: end; background: repeating-linear-gradient(to bottom, #eef2f0 0, #eef2f0 1px, transparent 1px, transparent 33.33%); }
.bar-chart div { position: relative; display: grid; height: 100%; grid-template-rows: 1fr 20px; align-items: end; justify-items: center; }
.bar-chart i { width: min(28px, 70%); height: calc(var(--value) * 1%); min-height: 12px; background: #a7c9bf; border-radius: 4px 4px 0 0; }
.bar-chart div.today i { background: var(--green); }
.bar-chart span { position: absolute; bottom: calc(var(--value) * 1% + 23px); color: #6a7672; font-size: 9px; }
.bar-chart small { align-self: end; color: #87928e; font-size: 9px; }
.follow-panel { min-height: 310px; }
.role-staff .follow-panel { grid-column: 1 / -1; }
.member-list button { display: grid; width: 100%; min-height: 70px; grid-template-columns: 38px minmax(0,1fr) auto 72px 16px; align-items: center; gap: 10px; padding: 10px 16px; background: #fff; border: 0; border-bottom: 1px solid #edf1ef; text-align: left; }
.member-list button:hover { background: #fafcfb; }
.member-list button:last-child { border-bottom: 0; }
.member-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; font-weight: 600; }
.member-avatar.rose { color: #9f4650; background: #f9e7e9; }.member-avatar.blue { color: #3f719c; background: #e7f0f8; }.member-avatar.green { color: var(--green); background: var(--green-soft); }
.member-list button > span:nth-child(2) { min-width: 0; }
.member-list button > span:nth-child(2) strong, .member-list button > span:nth-child(2) small { display: block; }
.member-list button > span:nth-child(2) strong { font-size: 12px; }
.member-list button > span:nth-child(2) small, .member-list time { margin-top: 3px; color: #89938f; font-size: 10px; }
.member-list time { text-align: right; }
.member-list > button > svg { width: 14px; color: #9da7a3; }
.status { padding: 3px 7px; border-radius: 4px; font-size: 10px; font-style: normal; white-space: nowrap; }
.status.danger { color: var(--danger); background: var(--danger-soft); }.status.amber { color: var(--amber); background: var(--amber-soft); }.status.neutral { color: #62706b; background: #eff3f1; }

.modal { position: fixed; inset: 0; z-index: 50; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11,27,22,.52); border: 0; }
.modal-panel { position: relative; width: min(620px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: 8px; box-shadow: 0 24px 70px rgba(9,27,21,.26); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.modal-head span { color: var(--green); font-size: 11px; font-weight: 600; }
.modal-head h2 { margin: 3px 0 0; font-size: 18px; }
.modal form { padding: 20px 22px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { display: flex; flex-direction: column; gap: 7px; }
.form-grid label.full { grid-column: 1 / -1; }
.form-grid label > span { color: #495651; font-size: 12px; font-weight: 500; }
.form-grid label b { color: var(--danger); }
.form-grid input, .form-grid select { width: 100%; height: 40px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid #d9e0dd; border-radius: 5px; outline: 0; }
.form-grid input:focus, .form-grid select:focus { border-color: #7eb09f; box-shadow: 0 0 0 3px rgba(23,112,92,.08); }
.consent { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0; color: var(--muted); font-size: 11px; }
.consent input { margin-top: 2px; accent-color: var(--green); }
.modal form footer { display: flex; justify-content: flex-end; gap: 9px; margin: 0 -22px; padding: 14px 22px; background: #fafcfb; border-top: 1px solid var(--line); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; min-width: 260px; align-items: center; gap: 9px; padding: 12px 15px; color: #fff; background: #223a33; border-radius: 7px; box-shadow: 0 12px 32px rgba(9,27,21,.2); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.toast svg { color: #82d5b4; }
.mobile-only { display: none; }
.sidebar-backdrop { display: none; }

@media (max-width: 1080px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .quick-panel { grid-row: auto; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:nth-child(3)::before { display: none; }
  .metrics article:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .mobile-only { display: grid; }
  .sidebar { width: 268px; transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(10,25,20,.38); }
  .sidebar-backdrop.open { display: block; }
  .brand .mobile-only { margin-left: auto; }
  .main-area { margin-left: 0; }
  .topbar { height: 58px; padding: 0 14px; gap: 8px; }
  .topbar > .mobile-only { flex: 0 0 34px; }
  .global-search { width: auto; flex: 1; }
  .global-search kbd, .shift-status, .user-menu > span:nth-child(2), .user-menu > svg { display: none; }
  .top-actions { gap: 3px; margin-left: 0; }
  .user-menu { padding: 0; }
  .notification-popover { top: 52px; right: 12px; width: min(330px, calc(100vw - 24px)); }
  .account-popover { top: 52px; right: 12px; }
  .content { padding: 20px 14px 36px; }
  .page-head { align-items: flex-start; }
  .page-head h1 { font-size: 21px; }
  .page-head span { font-size: 12px; }
  .page-actions .secondary-btn { display: none; }
  .page-actions .primary-btn { width: 38px; padding: 0; }
  .page-actions .primary-btn { font-size: 0; }
  .page-actions .primary-btn svg { width: 18px; }
  .alert-strip { align-items: flex-start; }
  .alert-strip p { white-space: normal; }
  .alert-strip > button { align-self: center; font-size: 0; }
  .alert-strip > button svg { width: 20px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article { min-height: 110px; padding: 15px; }
  .metrics article strong { font-size: 23px; }
  .panel-head { padding: 12px 14px; }
  .segmented button { min-width: 44px; }
  .task-item { grid-template-columns: 4px 34px minmax(0,1fr) 28px; gap: 9px; padding-right: 12px; }
  .task-meta { display: none; }
  .member-list button { grid-template-columns: 36px minmax(0,1fr) auto 14px; padding: 10px 12px; }
  .member-list time { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-panel { width: 100%; max-height: 92vh; border-radius: 8px 8px 0 0; }
}

@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-area { padding: 32px 22px; }
  .login-heading { margin-top: 38px; }
}

@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
  .metrics article + article::before { display: none; }
  .metrics article:nth-child(n+2) { border-top: 1px solid var(--line); }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .bar-chart { gap: 7px; }
}
