:root {
  color-scheme: light;
  --canvas: #F6F3ED;
  --surface: #FFFFFF;
  --ink: #302B27;
  --muted: #71675E;
  --line: #E4DED5;
  --accent: #6F4E37;
  --accent-dark: #573C2A;
  --highlight: #E7EDE5;
  --decorative: #C9956B;
  --sidebar: #28231F;
  --shadow: 0 5px 24px rgb(40 35 31 / 4%);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.6 "Segoe UI", Arial, sans-serif; }
a { color: var(--accent-dark); text-underline-offset: 4px; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--highlight); color: var(--ink); }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; top: -100px; left: 16px; background: white; color: var(--ink); padding: 12px 18px; z-index: 20; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100svh; }
.sidebar { height: 100svh; position: sticky; top: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 32px 18px 22px; background: var(--sidebar); color: var(--canvas); }
.sidebar-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; color: #CFC4B8; text-decoration: none; }
.sidebar-brand img { display: block; filter: brightness(0) invert(1); }
.sidebar-brand span { font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.nav-label { margin: 42px 16px 12px; color: #B9AA9A; font-size: 9px; letter-spacing: 2px; }
.navigation-links { display: flex; flex-direction: column; gap: 7px; }
.navigation-links a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 10px; color: #DED4C9; font-size: 13px; font-weight: 600; text-decoration: none; }
.navigation-links a:hover { background: #3B322B; color: white; }
.navigation-links a[aria-current="page"] { background: var(--accent); color: white; box-shadow: 0 7px 18px rgb(0 0 0 / 10%); }
.sidebar-bottom { margin-top: auto; padding-top: 36px; }
.sidebar-note { border: 1px solid #514338; border-radius: 12px; padding: 17px; margin: 24px 8px; color: #CFC4B8; }
.cup-mark { display: block; width: 54px; height: 54px; color: var(--decorative); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cup-mark .cup-saucer { opacity: .55; }
/* Steam grows from the rim and disperses above it; the cup stays stationary. */
.cup-steam .steam-wisp {
  opacity: .32;
  transform-box: view-box;
  transform-origin: 21.5px 20.5px;
  animation: steam-rise var(--duration, 4s) ease-in-out var(--delay, 0s) infinite;
}
.cup-steam .w1 { --duration: 4.6s; --delay: -1.2s; --drift: -1.6px; --sway: .6px; --density: .52; }
.cup-steam .w2 { --duration: 5.2s; --delay: -3.6s; --drift: 1.8px; --sway: -.7px; --density: .44; }
.cup-steam .w3 { --duration: 5.7s; --delay: -4.8s; --drift: -2.6px; --sway: -.4px; --density: .32; }
.cup-steam .w4 { --duration: 4.9s; --delay: -2.5s; --drift: 2.3px; --sway: .5px; --density: .34; }
.cup-steam .w5 { --duration: 4.2s; --delay: -.3s; --drift: .4px; --sway: -.5px; --density: .38; }
@keyframes steam-rise {
  0% { opacity: 0; transform: translate(0, 0) scale(.55, .48); }
  18% { opacity: var(--density); transform: translate(0, -.3px) scale(.7, .63); }
  46% { opacity: var(--density); transform: translate(var(--sway), -1.5px) scale(.95, .88); }
  72% { opacity: .15; transform: translate(var(--drift), -3.4px) scale(1.2, 1.04); }
  100% { opacity: 0; transform: translate(var(--drift), -5px) scale(1.4, 1.13); }
}
.sidebar-note p { margin: 8px 0 0; font-size: 11px; line-height: 1.8; }
.sidebar-caption { display: block; text-align: center; font-size: 8px; letter-spacing: 1.8px; color: #B9AA9A; margin-top: 22px; }
.logout-form { margin: 0; }
.logout-form button { width: 100%; display: flex; align-items: center; gap: 12px; background: transparent; border: 0; color: var(--canvas); padding: 13px 16px; text-align: left; font-size: 13px; border-radius: 10px; }
.logout-form button:hover { background: #3B322B; }
.sidebar :focus-visible, .mobile-menu > nav :focus-visible { outline-color: var(--decorative); }
.main-shell { min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 82px; display: flex; align-items: center; gap: 20px; padding: 18px 36px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 70%); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; }
.breadcrumb span { color: var(--muted); }
.breadcrumb strong { font-weight: 600; color: var(--ink); }
.topbar-account { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.profile-form fieldset { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.profile-form legend { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.profile-grid { display: grid; gap: 18px 24px; }
.profile-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.profile-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-wide { grid-column: 1 / -1; }
.profile-form textarea { box-sizing: border-box; width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; resize: vertical; }
.profile-form #id_address { min-height: 130px; }
.profile-photo-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.profile-page > .page-heading { display: block; }
.profile-photo-frame { position: relative; width: 160px; height: 160px; flex: 0 0 160px; }
.profile-photo, .profile-photo-initial { width: 160px; height: 160px; border-radius: 50%; box-sizing: border-box; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.profile-photo { position: relative; object-fit: cover; }
.profile-photo-initial { position: absolute; inset: 0; display: grid; place-items: center; background: var(--highlight); color: var(--accent); font-size: 56px; font-weight: 700; }
.photo-camera { position: absolute; right: 2px; bottom: 4px; width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--surface); background: var(--highlight); color: var(--ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 1px 4px #0002; }
.photo-camera:hover { background: var(--line); }
.photo-editor-actions { flex: 1 1 280px; }
.profile-form [hidden] { display: none !important; }
.profile-weekdays { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 22px; }
.profile-form .profile-checkbox { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--highlight); border-radius: 8px; cursor: pointer; }
.profile-form input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
@media (max-width: 760px) { .profile-grid-three, .profile-grid-two { grid-template-columns: 1fr; } }
.role-label { font-size: 11px; color: var(--muted); }
.user-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--highlight); color: var(--accent); font-size: 13px; font-weight: 700; }
.mobile-brand, .mobile-menu { display: none; }
main { flex: 1; min-width: 0; padding: 32px 36px; }
.workspace { max-width: 1280px; margin: 0 auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.eyebrow, .card-kicker { margin: 0 0 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.6px; }
.eyebrow { color: var(--accent-dark); }
.page-title { margin: 0; font-size: clamp(27px, 2.7vw, 36px); line-height: 1.25; letter-spacing: -1px; font-weight: 700; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: 18px; line-height: 1.4; letter-spacing: -.35px; font-weight: 650; }
.intro { color: var(--muted); margin: 10px 0 0; font-size: 13px; line-height: 1.8; }
.date-pill { flex-shrink: 0; border: 1px solid var(--line); background: white; padding: 9px 14px; border-radius: 20px; color: var(--muted); font-size: 11px; margin-top: 20px; }
.panel { min-width: 0; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); overflow-wrap: anywhere; }
.panel p { line-height: 1.8; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature-card { min-height: 338px; display: flex; flex-direction: column; align-items: flex-start; border-top: 3px solid var(--decorative); }
.feature-card .card-kicker { color: var(--accent); }
.feature-card p:not(.card-kicker) { color: var(--muted); font-size: 12px; margin: 10px 0 20px; }
.feature-card h2 { font-size: 23px; }
.feature-emblem { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--highlight); color: var(--accent); margin: 20px 0; }
.feature-emblem .icon { width: 37px; height: 37px; stroke-width: 1.4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 19px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: white; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.button:hover { background: var(--accent-dark); }
.button .icon { width: 16px; height: 16px; }
.feature-card .button { margin-top: auto; }
.button-small { font-size: 11px; padding: 8px 12px; }
.button-secondary { background: white; color: var(--accent-dark); border-color: var(--accent); }
.button-secondary:hover { background: var(--highlight); }
.metric-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.metric-card .card-kicker { align-self: flex-start; text-align: left; color: var(--muted); }
.metric-card p:not(.card-kicker) { font-size: 12px; color: var(--muted); margin: 10px 0 18px; }
.donut { width: 142px; height: 142px; position: relative; margin: 7px 0 14px; }
.donut svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 10px; }
.donut-track { stroke: var(--highlight); }
.donut-fill { stroke: var(--accent); stroke-linecap: round; }
.donut strong { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; font-size: 30px; letter-spacing: -1px; }
.donut small { font-size: 16px; margin-left: 2px; }
.number-orbit, .identity-orbit { width: 130px; height: 130px; border-radius: 50%; background: var(--highlight); display: flex; justify-content: center; align-items: center; flex-direction: column; margin: 13px 0 20px; border: 1px solid var(--line); }
.number-orbit span { font-size: 37px; line-height: 1.3; font-weight: 700; color: var(--accent); }
.number-orbit small { font-size: 10px; color: var(--muted); }
.identity-orbit { font-size: 42px; color: var(--accent); font-weight: 600; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 600; text-decoration: none; margin-top: auto; }
.text-link:hover { text-decoration: underline; }
.text-link .icon { width: 15px; height: 15px; }
.dashboard-lower { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 22px; margin-top: 24px; }
.quick-actions > .eyebrow, .section-heading .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
.action-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.action-row:last-child { border-bottom: 0; padding-bottom: 0; }
.action-row > span:nth-child(2) { min-width: 0; flex: 1; }
.action-row > .icon { width: 16px; height: 16px; color: var(--muted); }
.action-row strong { display: block; font-size: 12px; font-weight: 600; }
.action-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.action-row:hover strong { color: var(--accent-dark); }
.action-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; background: var(--highlight); color: var(--accent); flex-shrink: 0; }
.action-icon .icon { width: 17px; height: 17px; }
.action-icon.caramel { background: var(--decorative); color: var(--sidebar); }
.action-icon.cream { background: var(--canvas); color: var(--accent); }
.section-heading { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.status-chip, .role-badge { border-radius: 20px; padding: 5px 10px; background: var(--highlight); color: var(--accent-dark); font-size: 10px; font-weight: 600; white-space: nowrap; }
.muted { color: var(--muted); font-size: 12px; }
.access-bar { display: flex; height: 12px; background: var(--highlight); border-radius: 10px; overflow: hidden; margin: 35px 0 25px; }
.access-bar span { background: var(--accent); border-radius: inherit; }
.overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.overview-stats strong { display: block; margin-top: 9px; font-size: 26px; }
.stat-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.muted-dot { background: #938578; }
.empty-note { margin: 24px 0 0; padding: 12px; border-radius: 9px; font-size: 11px; background: var(--highlight); color: var(--muted); }
.soft-icon { width: 130px; height: 130px; margin: 13px 0 20px; display: grid; place-items: center; border-radius: 50%; background: var(--highlight); color: var(--accent); }
.soft-icon .icon { width: 42px; height: 42px; }
.staff-note { display: flex; align-items: center; gap: 22px; padding: 25px; margin-top: 22px; border-radius: 12px; background: var(--highlight); color: var(--ink); }
.staff-note > .icon { width: 35px; height: 35px; }
.staff-note p { margin: 0; font-size: 13px; }
.account-section { max-width: 510px; margin: 25px auto 45px; }
.account-section > .intro { margin-bottom: 25px; }
.account-section > .page-title { font-size: 34px; }
.account-form { display: grid; gap: 20px; }
.form-field { min-width: 0; }
.form-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.form-field input, .form-field select { width: 100%; min-width: 0; padding: 11px 12px; background: white; color: var(--ink); border: 1px solid #938578; border-radius: 8px; font-size: 14px; }
.form-field input[aria-invalid="true"] { border-color: #A43B32; }
.help-text { margin-top: 8px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.help-text ul { padding-left: 17px; margin: 7px 0; }
.errorlist, .form-summary { color: #94352D; font-size: 12px; line-height: 1.6; }
.errorlist { padding-left: 18px; }
.form-summary { background: #FBEEEB; border-radius: 8px; padding: 12px 14px; }
.form-summary p { margin: 0; }
.messages { max-width: 1280px; margin: 0 auto 24px; padding: 5px 16px; border: 1px solid #B7C6B1; border-radius: 10px; background: var(--highlight); color: #3D593A; font-size: 12px; }
.messages p { display: flex; align-items: flex-start; gap: 9px; }
.messages .icon { width: 17px; height: 17px; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.team-grid .panel > p { font-size: 12px; color: var(--muted); }
.team-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 13px; margin-top: 22px; }
.filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.filter-actions a { font-size: 11px; }
.member-list { list-style: none; padding: 0; margin: 20px 0 0; }
.member-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 16px 0; }
.member-list li > div { min-width: 0; }
.member-list strong { font-size: 12px; font-weight: 600; }
.member-username { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.member-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; }
.member-actions form { margin: 0; }
.member-actions .button { font-size: 10px; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 18px 0; font-size: 11px; }
.pagination span { color: var(--muted); }
.welcome-note { margin-top: 16px; color: var(--muted); font-size: 11px; }
.welcome { max-width: 1060px; margin: 35px auto; }
.welcome h1 { font-size: clamp(38px, 5vw, 68px); letter-spacing: -2.5px; line-height: 1.1; margin: 18px 0; }
.welcome h1 em { color: var(--accent); font-style: normal; }
.welcome > .intro { max-width: 470px; font-size: 15px; margin: 22px 0 30px; }
.welcome-card { display: flex; align-items: flex-start; gap: 20px; max-width: 610px; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.card-number { width: 45px; height: 45px; flex-shrink: 0; display: grid; place-items: center; background: var(--highlight); border-radius: 12px; color: var(--accent); font-weight: 700; }
.card-label { margin: 0 0 8px; font-size: 9px; letter-spacing: 1.7px; color: var(--muted); }
.welcome-card p:last-child { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.welcome > .button { margin-top: 12px; }
.site-footer { padding: 20px 36px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 9px; }
@media (min-width: 1650px) { main { padding-top: 45px; } }
@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  main { padding: 26px 24px; }
  .topbar { padding-inline: 24px; }
  .panel { padding: 21px; }
  .dashboard-grid { gap: 16px; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-lower { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) and (min-width: 761px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { grid-column: 1 / -1; min-height: 250px; }
  .feature-emblem { display: none; }
  .feature-card h2 { margin-top: 20px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { position: relative; min-height: 72px; padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
  .mobile-brand { display: block; }
  .mobile-brand img { display: block; border-radius: 10px; }
  .breadcrumb { font-size: 11px; gap: 7px; }
  .breadcrumb > span, .breadcrumb > strong { display: none; }
  .topbar-account { gap: 8px; }
  .role-label { display: none; }
  .user-avatar { width: 30px; height: 30px; border-radius: 50%; font-size: 11px; }
  .mobile-menu { display: block; }
  .mobile-menu > summary { list-style: none; padding: 7px 11px; border: 1px solid #938578; background: white; border-radius: 8px; font-size: 12px; cursor: pointer; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] > summary { background: var(--highlight); }
  .mobile-menu > nav { position: absolute; left: 16px; right: 16px; top: calc(100% - 2px); z-index: 10; border-radius: 12px; padding: 12px; background: var(--sidebar); box-shadow: 0 12px 30px rgb(0 0 0 / 16%); }
  main { padding: 26px 20px; }
  .page-heading { flex-wrap: wrap; gap: 12px; }
  .date-pill { margin: 0; padding: 6px 10px; font-size: 10px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-card { grid-column: 1 / -1; min-height: 260px; }
  .feature-emblem { width: 60px; height: 60px; margin: 10px 0; }
  .feature-emblem .icon { width: 28px; height: 28px; }
  .feature-card h2 { font-size: 24px; }
  .dashboard-lower { margin-top: 18px; gap: 18px; }
  .account-section { margin-top: 12px; }
  .site-footer { padding: 20px; flex-wrap: wrap; gap: 5px; }
  .welcome { margin: 20px auto; }
  .welcome h1 { letter-spacing: -1.5px; }
}
@media (max-width: 460px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-card { grid-column: auto; }
  .metric-card { padding: 22px; }
  .team-filters { grid-template-columns: minmax(0, 1fr); }
  .member-list li { flex-wrap: wrap; }
  .member-actions { justify-content: flex-start; }
  .overview-stats { gap: 10px; }
  .stat-label { font-size: 9px; }
  .overview-stats strong { font-size: 23px; }
  .welcome-card { padding: 20px; gap: 12px; }
  .welcome-card h2 { font-size: 17px; }
}
.import-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 24px; margin-top: 28px; align-items: start; }
.import-form { margin-top: 20px; }
.import-form input[type="checkbox"] { width: auto; }
.import-form input[type="file"] { max-width: 100%; }
.import-history li { flex-wrap: wrap; }
.import-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 24px 0 12px; }
.import-metrics strong { display: block; font-size: clamp(19px, 2vw, 26px); overflow-wrap: anywhere; }
.import-notice { margin-bottom: 22px; }
.import-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 20px 0; }
.import-table-wrap { overflow-x: auto; }
.import-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.import-table th { background: var(--highlight); color: var(--ink); }
.import-table th, .import-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 110px; }
.import-table td:last-child { min-width: 230px; }
.import-table p { margin: 6px 0; }
.import-table ul { padding-left: 18px; }
.import-table .amount { text-align: right; white-space: nowrap; }
@media (max-width: 1120px) { .import-layout { grid-template-columns: minmax(0, 1fr); } .import-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .import-metrics { grid-template-columns: minmax(0, 1fr); } }
.sales-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 24px; border-top: 3px solid var(--decorative); }
.sales-currency { margin: 20px 0 0; font-size: 12px; color: var(--muted); }
.sales-total { display: block; font-size: clamp(24px, 3vw, 42px); line-height: 1.25; color: var(--accent); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sales-coverage { align-self: center; }
.sales-coverage .card-kicker { color: var(--muted); }
@media (max-width: 760px) { .sales-summary { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.dashboard-page p, .dashboard-page .muted, .dashboard-page .form-field label { font-size: 14px; line-height: 1.7; }
.dashboard-page .muted { color: var(--muted); }
.dashboard-heading { align-items: center; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.dashboard-actions .button, .dashboard-page .button { font-size: 14px; }
.sales-filters { margin-bottom: 24px; }
.sales-filter-fields { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)) auto; gap: 16px; align-items: end; }
.sales-filters > p { margin: 12px 0 0; }
.period-label { color: var(--muted); margin-bottom: 0; }
.sales-coverage .freshness-label { font-weight: 600; margin: 0; }
.sales-coverage .freshness-date { font-size: clamp(20px, 2vw, 28px); font-weight: 700; margin: 4px 0 14px; color: var(--accent); }
.sales-detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.monthly-chart { max-height: 440px; overflow-y: auto; padding: 4px 8px 4px 0; }
.month-row { display: grid; grid-template-columns: 78px minmax(25px, 1fr) 105px; gap: 6px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 14px; }
.month-label { font-weight: 600; }
.month-plot { height: 16px; border-radius: 4px; background: var(--highlight); overflow: hidden; }
.month-plot > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.month-missing { background: repeating-linear-gradient(135deg, var(--canvas), var(--canvas) 4px, var(--line) 4px, var(--line) 8px); }
.month-total { text-align: right; font-variant-numeric: tabular-nums; }
.month-coverage { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.recent-imports { list-style: none; padding: 0; margin-bottom: 0; }
.recent-imports li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.recent-imports li:last-child { border: 0; }
.recent-imports strong { display: block; margin-bottom: 10px; overflow-wrap: anywhere; }
.recent-imports p { margin: 8px 0; }
.recent-imports .status-chip { font-size: 13px; }
.team-access-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 24px; }
.team-access-card p { margin-bottom: 0; }
.staff-workspace { max-width: 650px; }
.staff-dashboard .page-title { font-size: clamp(32px, 4vw, 48px); }
.staff-dashboard .page-heading .intro { font-size: 22px; margin: 8px 0; }
.staff-dashboard .page-heading time { font-size: 15px; }
.staff-ready-banner { display: flex; align-items: center; gap: 24px; background: var(--highlight); border-radius: 16px; padding: 24px; margin: 8px 0 24px; }
.staff-ready-banner > .icon { width: 36px; height: 36px; flex-shrink: 0; }
.staff-ready-banner strong { font-size: 20px; }
.staff-ready-banner p { margin: 6px 0 0; }
.staff-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.staff-dashboard-grid .panel { display: flex; flex-direction: column; min-width: 0; padding: 28px; }
.staff-feature-card { border-top: 5px solid var(--accent); }
.staff-card-label { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; font-size: 14px; }
.staff-card-label > .icon { width: 30px; height: 30px; }
.staff-card-label .status-chip { margin-left: auto; }
.staff-dashboard-grid h2 { font-size: clamp(22px, 2vw, 30px); margin: 0 0 8px; }
.staff-card-actions { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.staff-card-actions .button { flex: 1; }
.staff-dashboard-grid .shift-hours { font-size: 27px; margin: 8px 0; }
.staff-note { margin: 0; padding: 18px; border-radius: 14px; background: var(--canvas); overflow-wrap: anywhere; }
.staff-checklist-progress { width: 100%; height: 14px; accent-color: #73866c; }
.staff-task-preview { list-style: none; padding: 0; }
.staff-task-preview li { display: flex; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); }
.staff-task-preview span { color: #46613d; font-size: 22px; }
@media (max-width: 850px) { .staff-dashboard-grid { grid-template-columns: 1fr; } }
.product-period { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; }
.product-table-wrap { overflow-x: auto; }
.product-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.product-table th, .product-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.product-table th:last-child, .product-table td:last-child { text-align: right; }
.product-table thead th { font-size: 13px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; color: var(--ink); padding-top: 10px; padding-bottom: 11px; border-bottom: 2px solid var(--accent); white-space: nowrap; }
.product-table tbody a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.product-table tbody a:hover { color: var(--accent-dark); border-bottom-color: var(--decorative); }
.product-table tbody a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.product-table-grouped thead th:not(:first-child), .product-table-grouped td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.product-table-grouped tbody + tbody .category-row th, .product-table-grouped tbody + tbody .category-row td { border-top: 2px solid var(--line); }
.product-table-grouped .category-row th, .product-table-grouped .category-row td { background: var(--canvas); font-weight: 700; font-size: 14px; letter-spacing: 0.2px; text-transform: none; color: var(--ink); padding-top: 14px; padding-bottom: 14px; }
.product-table-grouped .category-row a { color: inherit; text-decoration: none; }
.product-table-grouped .category-row a:hover { color: var(--accent-dark); border-bottom-color: var(--decorative); }
.product-table-grouped .product-cell { padding-left: 28px; }
@media (max-width: 600px) { .product-table-grouped .product-cell { padding-left: 18px; } }
.product-favorite { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin: 22px 0; }
.product-favorite progress { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--accent); }
.product-favorite progress::-webkit-progress-bar { background: var(--highlight); border-radius: 8px; }
.product-favorite progress::-webkit-progress-value { background: var(--accent); border-radius: 8px; }
.product-favorite progress::-moz-progress-bar { background: var(--accent); }
.dashboard-page > .panel { margin-bottom: 24px; }
@media (max-width: 1120px) { .sales-detail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .sales-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .sales-filter-fields { grid-template-columns: minmax(0, 1fr); } .month-row { grid-template-columns: 70px minmax(15px, 1fr) 95px; gap: 6px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; }
  .cup-steam .steam-wisp { animation: none; transform: none; opacity: .3; }
  .cup-steam .w3, .cup-steam .w4, .cup-steam .w5 { opacity: 0; } }

/* Topbar: where you are on the left, who you are on the right. Both were set
   at caption size, so the bar read as a rule with two labels rather than as
   part of the page. */
.topbar { min-height: 96px; padding: 20px 36px; }
.breadcrumb { align-items: baseline; gap: 10px; font-size: 13px; }
.crumb-root { color: var(--muted); }
.crumb-sep { color: var(--line); }
.crumb-current { font-size: 21px; font-weight: 600; line-height: 1.15; letter-spacing: -.3px; color: var(--ink); }
.account-chip { display: flex; align-items: center; gap: 14px; padding: 6px 6px 6px 18px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; transition: background .15s ease, border-color .15s ease; }
.account-chip:hover { background: var(--surface); border-color: var(--line); }
.account-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.account-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.account-text strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.account-text small { font-size: 10px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.topbar .user-avatar { width: 48px; height: 48px; font-size: 16px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.account-chip:hover .user-avatar { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--decorative); }
@media (max-width: 760px) {
  /* The current page is the part worth keeping when the bar gets tight. */
  .topbar { min-height: 76px; padding: 14px 20px; }
  .breadcrumb .crumb-root, .breadcrumb .crumb-sep { display: none; }
  .breadcrumb .crumb-current { display: block; font-size: 17px; }
  .account-text { display: none; }
  .account-chip { padding: 4px; gap: 0; }
  .topbar .user-avatar { width: 40px; height: 40px; }
}
/* Schedule month navigation */
.schedule-calendars { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.schedule-calendar { width:100%; table-layout:fixed; border-collapse:separate; border-spacing:2px; text-align:center; }
.schedule-calendar th { font-size:12px; padding:6px 0; text-align:center; }
.schedule-calendar td { padding:0; text-align:center; border-radius:5px; }
.schedule-calendar a { display:block; padding:8px 0; text-decoration:none; border-radius:5px; }
.schedule-calendar .current-week { background:#E7EDE5; }
.schedule-calendar .selected-week { outline:1px solid #6F4E37; }
.schedule-calendar .outside-month a { color:#81766c; }
.schedule-calendar a[aria-current=date] { font-weight:700; box-shadow:inset 0 0 0 2px #6F4E37; }.schedule-calendar a[aria-current=page] { background:#6F4E37; color:white; font-weight:700; }.calendar-jump { margin:18px 0 0; }
.schedule-calendar a:hover { box-shadow:inset 0 0 0 2px #C9956B; }
.calendar-jump { margin-top:24px; }
@media(max-width:1000px) { .schedule-calendars { grid-template-columns:1fr; } }
