:root {
  --wine: #f58220;
  --wine-dark: #c95f08;
  --tomato: #e86f0b;
  --cream: #f5f4f2;
  --paper: #ffffff;
  --ink: #231f20;
  --muted: #6c6768;
  --line: #e3e0df;
  --olive: #f58220;
  --gold: #d66b13;
  --blue: #596a73;
  --shadow: 0 12px 35px rgba(35, 31, 32, .07);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { background: var(--cream); }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 256px; display: flex; flex-direction: column; padding: 22px 18px 18px; color: #f7f6f5; background: linear-gradient(170deg, #2d292a 0%, #1d1a1b 100%); box-shadow: 8px 0 28px rgba(35, 31, 32, .16); }
.portal-personal .sidebar { background: linear-gradient(170deg, #363233 0%, #211e1f 100%); }
.brand { display: flex; align-items: center; flex-direction: column; gap: 8px; padding: 0 4px 24px; }
.brand-logo-wrap { width: 100%; height: 112px; display: grid; place-items: center; padding: 7px 12px; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 9px 25px rgba(0,0,0,.18); }
.brand-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.brand > small { color: rgba(255,255,255,.53); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.main-nav { display: grid; gap: 5px; }
.nav-link { position: relative; min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 12px; color: rgba(255,255,255,.68); font-size: 14px; font-weight: 600; transition: .18s ease; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; background: rgba(245,130,32,.16); box-shadow: inset 3px 0 #f58220; }
.nav-icon { width: 22px; color: rgba(255,255,255,.8); font-size: 20px; text-align: center; }
.table-nav-icon { height: 22px; display: grid; place-items: center; }
.table-nav-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.new-badge { min-width: 30px; padding-inline: 6px; font-size: 7px; text-transform: uppercase; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #231f20; background: #f7a45d; font-size: 11px; }
.nav-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #f58220; }
.sidebar-card { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(255,255,255,.055); }
.sidebar-card div, .user-card > span:nth-child(2), .notice-author > span:last-child { display: flex; flex-direction: column; }
.sidebar-card strong, .user-card strong { font-size: 12px; }
.sidebar-card small, .user-card small { margin-top: 2px; color: rgba(255,255,255,.5); font-size: 10px; }
.status-pulse { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.34); border-radius: 50%; background: #f58220; box-shadow: 0 0 0 5px rgba(245,130,32,.13); }
.user-card { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 8px 2px; border-top: 1px solid rgba(255,255,255,.09); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: white; background: linear-gradient(145deg, #c66b51, #8c2936); font-size: 11px; font-style: normal; font-weight: 700; }
.user-card button, .row-menu { margin-left: auto; color: inherit; border: 0; background: transparent; cursor: pointer; }
.sidebar-backdrop { display: none; }

.main-area { width: calc(100% - 256px); min-height: 100vh; margin-left: 256px; }
.topbar { height: 72px; display: flex; align-items: center; gap: 22px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,253,249,.86); backdrop-filter: blur(16px); }
.menu-button, .mobile-brand { display: none; }
.mobile-brand img { width: 35px; height: 35px; object-fit: contain; padding: 3px; border-radius: 8px; background: white; }
.search-box { width: min(390px, 42vw); height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: #978e86; border: 1px solid var(--line); border-radius: 11px; background: white; }
.search-box input { min-width: 0; flex: 1; color: var(--ink); border: 0; outline: 0; background: transparent; }
.search-box kbd { padding: 3px 6px; color: #a49c94; border: 1px solid #e7e0d8; border-radius: 5px; background: #faf8f5; font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.icon-button, .circle-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #5b554f; background: white; cursor: pointer; }
.notification-dot { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: #b83b45; }
.today { color: var(--muted); font-size: 12px; }
.page-content { max-width: 1500px; margin: 0 auto; padding: 34px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.kicker { display: block; margin-bottom: 7px; color: var(--wine); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; }
.portal-personal .kicker { color: var(--olive); }
.page-heading h1 { margin: 0; font: 700 clamp(28px, 3.2vw, 40px)/1.08 "Roboto Slab", serif; letter-spacing: -.6px; }
.page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.heading-actions { display: flex; gap: 10px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button.primary { color: #231f20; background: var(--wine); box-shadow: 0 9px 20px rgba(245,130,32,.22); }
.portal-personal .button.primary { color: #231f20; background: var(--olive); box-shadow: 0 9px 20px rgba(245,130,32,.22); }
.button.secondary { color: #5d5650; border-color: var(--line); background: var(--paper); }
.button:hover { transform: translateY(-1px); }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.metric-card, .panel { border: 1px solid rgba(223,214,203,.86); background: var(--paper); box-shadow: var(--shadow); }
.metric-card { position: relative; min-height: 165px; padding: 19px; overflow: hidden; border-radius: 16px; }
.metric-card::after { content: ""; position: absolute; inset: auto -20px -42px auto; width: 95px; height: 95px; border-radius: 50%; background: var(--accent); opacity: .08; }
.accent-wine { --accent: var(--wine); }.accent-olive { --accent: var(--olive); }.accent-gold { --accent: var(--gold); }.accent-blue { --accent: var(--blue); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, white); font-size: 18px; }
.trend { padding: 4px 7px; border-radius: 6px; color: #827a72; background: #f3f0eb; font-size: 9px; font-weight: 700; }
.trend.positive { color: #a54b05; background: #fff0e3; }.trend.negative { color: #9c3d3d; background: #f8e9e7; }
.metric-label { display: block; margin-top: 16px; color: var(--muted); font-size: 11px; font-weight: 600; }
.metric-value { display: block; margin-top: 3px; font: 700 25px/1.15 "Roboto Slab", serif; }
.metric-card > small { display: block; margin-top: 7px; color: #9a928b; font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .85fr); gap: 18px; margin-bottom: 18px; }
.panel { border-radius: var(--radius); }
.panel-heading { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.panel-heading .kicker { margin-bottom: 3px; }
.panel-heading h2 { margin: 0; font: 700 18px/1.2 "Roboto Slab", serif; }
.panel-heading > a { color: var(--wine); font-size: 10px; font-weight: 700; }
.task-list { padding: 2px 20px 9px; }
.task-row { min-height: 65px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; border-bottom: 1px solid #eee8df; }
.task-row:last-child { border-bottom: 0; }
.task-row.done { opacity: .68; }
.task-check { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #6d655e; background: #f1ede7; font-size: 12px; font-weight: 800; }
.task-check.urgent { color: #a83c3c; background: #f8e5e3; }.task-check.success { color: #4e5f68; background: #e8ecee; }
.task-main { display: flex; flex-direction: column; }
.task-main strong { font-size: 12px; }.task-main small { margin-top: 3px; color: #918980; font-size: 10px; }
.tag { display: inline-flex; align-items: center; justify-content: center; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.tag.red { color: #9f3737; background: #f7e3e1; }.tag.amber { color: #9b4b0b; background: #fff0e3; }.tag.slate { color: #5c6871; background: #e9edf0; }.tag.green { color: #4e5f68; background: #e8ecee; }
.debit-total { display: flex; justify-content: space-between; padding: 14px 20px; background: #faf6f0; }
.debit-total span { color: var(--muted); font-size: 10px; }.debit-total strong { font-size: 12px; }
.debit-list { padding: 4px 20px; }
.debit-row { min-height: 65px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid #eee8df; }
.debit-row:last-child { border-bottom: 0; }
.date-box { width: 34px; height: 39px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e3dbd1; border-radius: 8px; background: white; }
.date-box strong { font: 700 13px/1 "Roboto Slab", serif; }.date-box small { margin-top: 3px; color: #9a9087; font-size: 7px; }
.debit-row div { display: flex; flex-direction: column; }.debit-row div strong, .debit-row > b { font-size: 10px; }.debit-row div small { margin-top: 3px; color: #938a82; font-size: 8px; }
.panel-footer-link { display: block; padding: 14px 20px; color: var(--wine); border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; }
.activity-panel { overflow: hidden; }
.segmented { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #f0ece6; }
.segmented button { padding: 5px 10px; color: #857c74; border: 0; border-radius: 7px; background: transparent; font-size: 9px; cursor: pointer; }
.segmented button.active { color: #554c45; background: white; box-shadow: 0 2px 8px rgba(40,30,20,.07); }
.activity-table { width: 100%; }
.activity-row { min-height: 61px; display: grid; grid-template-columns: 2fr .7fr .7fr .6fr .6fr; align-items: center; gap: 15px; padding: 7px 20px; border-top: 1px solid #eee8df; font-size: 10px; }
.activity-row.table-head { min-height: 34px; color: #9c948c; border-top: 0; background: #faf8f4; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.activity-row > span:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; }
.activity-row > span:first-child b, .activity-row > span:first-child small { grid-column: 2; }.activity-row > span:first-child small { color: #958d85; }
.activity-icon { width: 31px; height: 31px; grid-row: 1 / 3; display: grid; place-items: center; border-radius: 9px; font-style: normal; }.activity-icon.receipt { color: var(--wine-dark); background: #fff0e3; }.activity-icon.closing { color: #80601d; background: #f7edd4; }.activity-icon.waste { color: var(--olive); background: #fff0e3; }
.status-pill { padding: 5px 8px; border-radius: 999px; font-size: 8px; font-style: normal; font-weight: 700; }.status-pill.new { color: #a54b05; background: #fff0e3; }.status-pill.review { color: #88611c; background: #f6edd9; }.status-pill.complete { color: #4e5f68; background: #e8ecee; }

.personal-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; margin-bottom: 18px; }
.next-shift-card { position: relative; min-height: 300px; padding: 24px; overflow: hidden; color: white; border-radius: 20px; background: linear-gradient(135deg, #4e4a4b, #231f20); box-shadow: 0 18px 40px rgba(35,31,32,.19); }
.shift-glow { position: absolute; right: -70px; bottom: -95px; width: 260px; height: 260px; border: 45px solid rgba(255,255,255,.035); border-radius: 50%; }
.shift-top { position: relative; display: flex; justify-content: space-between; }.kicker.light { color: rgba(255,255,255,.66); }.live-badge { padding: 5px 9px; border-radius: 999px; color: #344a39; background: #f3ddb2; font-size: 9px; font-weight: 800; }
.shift-date { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 16px; }.shift-date > strong { font: 700 54px/1 "Roboto Slab", serif; }.shift-date > span { display: flex; flex-direction: column; font: 600 19px/1.15 "Roboto Slab", serif; }.shift-date small { margin-top: 3px; color: rgba(255,255,255,.55); font: 500 10px/1 "DM Sans", sans-serif; }
.shift-time { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; margin-top: 20px; padding: 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(255,255,255,.07); }.shift-time span { grid-row: 1 / 3; font-size: 20px; }.shift-time strong { font-size: 13px; }.shift-time small { color: rgba(255,255,255,.55); font-size: 9px; }
.shift-team { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 17px; color: rgba(255,255,255,.65); font-size: 9px; }.avatar-stack { display: flex; }.avatar-stack i { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -6px; border: 2px solid #302c2d; border-radius: 50%; background: #f58220; color: #231f20; font-size: 7px; font-style: normal; font-weight: 700; }.avatar-stack i:first-child { margin-left: 0; }.avatar-stack i:nth-child(2) { background: #87939a; }.avatar-stack i:nth-child(3) { background: #d4a271; }
.shift-button { position: relative; width: 100%; height: 40px; margin-top: 17px; color: #231f20; border: 0; border-radius: 10px; background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.notice-card blockquote { margin: 23px 24px; color: #4e4944; font: 600 20px/1.45 "Roboto Slab", serif; }.pin { color: var(--gold); }.notice-author { display: flex; align-items: center; gap: 10px; margin: 0 24px; }.notice-author strong { font-size: 11px; }.notice-author small { color: var(--muted); font-size: 9px; }.reactions { display: flex; align-items: center; gap: 7px; margin: 20px 24px; padding-top: 14px; border-top: 1px solid var(--line); }.reactions button { padding: 5px 8px; color: #655e57; border: 1px solid var(--line); border-radius: 999px; background: #faf7f2; font-size: 9px; }.reactions a { margin-left: auto; color: var(--olive); font-size: 9px; font-weight: 700; }
.personal-grid { grid-template-columns: 1.35fr .85fr; }.count-bubble { padding: 6px 9px; border-radius: 999px; color: #a54b05; background: #fff0e3; font-size: 9px; font-weight: 800; }
.timeline { padding: 5px 20px 10px; }.reservation-row { position: relative; min-height: 65px; display: grid; grid-template-columns: 42px 12px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #eee8df; }.reservation-row:last-child { border-bottom: 0; }.reservation-row.featured { margin: 0 -9px; padding: 0 9px; border-radius: 10px; background: #fff4e9; }.reservation-row .time { color: #4e4842; font-size: 10px; font-weight: 700; }.timeline-dot { width: 7px; height: 7px; border: 2px solid #f58220; border-radius: 50%; box-shadow: 0 0 0 4px #fff0e3; }.reservation-row div { display: flex; flex-direction: column; }.reservation-row div strong { font-size: 11px; }.reservation-row div small { margin-top: 3px; color: #918981; font-size: 9px; }
.hours { color: var(--olive); font: 700 20px "Roboto Slab", serif; }.week-bars { height: 155px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 7px; padding: 22px 20px 12px; }.week-bars div { height: 100%; display: grid; grid-template-rows: 14px 1fr 14px; align-items: end; text-align: center; }.week-bars span, .week-bars small { color: #9a928a; font-size: 7px; font-weight: 700; }.week-bars i { width: 100%; height: var(--h); display: block; border-radius: 6px 6px 2px 2px; background: #eee9e5; }.week-bars .today-bar i { background: var(--olive); }.week-bars .today-bar span { color: var(--olive); }.week-note { display: flex; align-items: center; gap: 10px; margin: 0 20px 18px; padding: 12px; border-radius: 11px; background: #fff0e3; }.week-note > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #231f20; background: var(--olive); font-size: 10px; }.week-note div { display: flex; flex-direction: column; }.week-note strong { font-size: 10px; }.week-note small { margin-top: 2px; color: #8a6d57; font-size: 8px; }
.mobile-nav { display: none; }
.empty-state { min-height: 65vh; display: grid; place-items: center; align-content: center; text-align: center; }.empty-state > span { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; color: #9c353f; background: #f2dadd; font: 700 24px "Roboto Slab", serif; }.empty-state h1 { margin-bottom: 0; font-family: "Roboto Slab", serif; }.empty-state p { color: var(--muted); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .personal-hero-grid { grid-template-columns: 1fr; }
  .debit-panel { order: 2; }
}

@media (max-width: 760px) {
  .sidebar { width: min(82vw, 290px); transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(25,18,16,.46); backdrop-filter: blur(2px); }
  .sidebar-open .sidebar-backdrop { display: block; }
  .main-area { width: 100%; margin-left: 0; }
  .topbar { position: sticky; top: 0; z-index: 20; height: 61px; padding: 0 16px; }
  .menu-button { width: 34px; height: 34px; display: grid; place-items: center; color: #5e5650; border: 1px solid var(--line); border-radius: 9px; background: white; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 12px; }
  .search-box, .today { display: none; }
  .top-actions { gap: 0; }
  .page-content { padding: 22px 15px 92px; }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 21px; }
  .page-heading h1 { font-size: 30px; }
  .page-heading p { max-width: 92%; line-height: 1.5; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric-card { min-height: 150px; padding: 15px; }
  .metric-value { font-size: 21px; }
  .metric-card > small { line-height: 1.35; }
  .panel-heading { min-height: 68px; padding: 14px 15px; }
  .task-list, .debit-list, .timeline { padding-inline: 15px; }
  .task-row { grid-template-columns: auto 1fr auto; }
  .task-row .tag { display: none; }
  .activity-table { overflow-x: auto; }
  .activity-row { min-width: 690px; }
  .personal-hero-grid { gap: 13px; }
  .next-shift-card { min-height: 312px; padding: 20px; }
  .notice-card blockquote { margin: 20px; font-size: 18px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 20; height: calc(68px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding: 8px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,253,249,.96); backdrop-filter: blur(16px); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: #958c84; font-size: 18px; }.mobile-nav small { font-size: 8px; }.mobile-nav a.active { color: var(--wine); }.portal-personal .mobile-nav a.active { color: var(--olive); }
  .mobile-add { width: 44px; height: 44px; display: grid; place-items: center; justify-self: center; margin-top: -22px; padding: 0; color: #231f20; border: 4px solid var(--cream); border-radius: 50%; background: var(--wine); box-shadow: 0 7px 18px rgba(245,130,32,.3); font-size: 24px; line-height: 1; }.portal-personal .mobile-add { background: var(--olive); }
}

@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 135px; }
  .metric-label { margin-top: 11px; }
  .heading-actions { flex-direction: column-reverse; }
  .personal-heading .heading-actions { flex-direction: column; }
  .reservation-row { grid-template-columns: 38px 10px 1fr; }
  .reservation-row .tag { display: none; }
}
