:root {
  --forest-950: #0d2d20;
  --forest-900: #123c2b;
  --forest-800: #174a35;
  --forest-700: #1f6045;
  --forest-600: #2b7657;
  --forest-100: #dcece4;
  --forest-50: #edf7f1;
  --ink: #17201b;
  --muted: #637069;
  --line: #dfe5e1;
  --surface: #ffffff;
  --canvas: #f4f5f1;
  --cream: #fbfaf6;
  --gold: #e7ac43;
  --gold-soft: #fbf1da;
  --blue: #3676d8;
  --blue-soft: #e7effc;
  --purple: #7a55c5;
  --purple-soft: #eee8fa;
  --orange: #d87632;
  --orange-soft: #fbeddf;
  --red: #c9514d;
  --red-soft: #fae9e7;
  --shadow-sm: 0 1px 2px rgba(21, 45, 32, 0.08), 0 5px 18px rgba(21, 45, 32, 0.05);
  --shadow-md: 0 12px 32px rgba(21, 45, 32, 0.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --rail-width: 108px;
  --content-max: 1320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(54, 118, 216, 0.35);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--rail-width);
  padding: 18px 12px;
  background: var(--forest-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
}

.brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f0c66c, var(--gold));
  color: var(--forest-950);
  font-weight: 950;
  font-size: 20px;
  letter-spacing: -1px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  min-height: 68px;
  border: 0;
  border-radius: 16px;
  padding: 8px 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.nav-item svg {
  width: 24px;
  height: 24px;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.rail-spacer {
  flex: 1;
}

.rail-status {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 50%;
  background: #60d394;
  box-shadow: 0 0 0 4px rgba(96, 211, 148, 0.12);
}

.status-dot.offline {
  background: #f0b45b;
  box-shadow: 0 0 0 4px rgba(240, 180, 91, 0.14);
}

.page-frame {
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: var(--rail-width);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 78px;
  padding: 14px clamp(20px, 3vw, 42px);
  background: rgba(244, 245, 241, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 229, 225, 0.75);
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-copy {
  min-width: 0;
  flex: 1;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--forest-700);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.sync-pill,
.staff-pill {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.staff-pill {
  border: 0;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.staff-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--forest-100);
  color: var(--forest-800);
  font-weight: 900;
}

.page-content {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 38px) clamp(20px, 4vw, 56px) 46px;
  flex: 1;
}

.offline-banner {
  margin-bottom: 18px;
  border: 1px solid #efcc8e;
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  background: #fff5df;
  color: #724b11;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.offline-banner button {
  border: 0;
  background: transparent;
  color: #724b11;
  font-weight: 850;
  cursor: pointer;
  flex-shrink: 0;
  min-height: 44px;
}

.offline-banner > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.offline-banner svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.hero h2 {
  margin: 0 0 7px;
  max-width: 760px;
  font-size: clamp(30px, 4.7vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.45;
}

.today-card {
  min-width: 188px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.today-card strong,
.today-card span {
  display: block;
}

.today-card strong {
  font-size: 15px;
}

.today-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.action-card {
  position: relative;
  min-height: 182px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.action-card:active {
  transform: translateY(0);
}

.layout-compact .action-card {
  min-height: 138px;
  padding: 16px;
}

.layout-compact .action-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.layout-compact .action-icon svg {
  width: 23px;
  height: 23px;
}

.layout-compact .action-card h3 {
  margin-top: 12px;
  font-size: 18px;
}

.layout-compact .action-card p {
  font-size: 12px;
}

.action-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
}

.action-icon svg {
  width: 28px;
  height: 28px;
}

.action-card h3 {
  margin: 18px 0 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.action-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.action-meta {
  position: absolute;
  top: 20px;
  right: 18px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0 9px;
  display: grid;
  place-items: center;
  background: var(--canvas);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.tone-green .action-icon { background: var(--forest-100); color: var(--forest-800); }
.tone-blue .action-icon { background: var(--blue-soft); color: var(--blue); }
.tone-teal .action-icon { background: #dff1ed; color: #19705f; }
.tone-purple .action-icon { background: var(--purple-soft); color: var(--purple); }
.tone-orange .action-icon { background: var(--orange-soft); color: var(--orange); }
.tone-gold .action-icon { background: var(--gold-soft); color: #996814; }
.tone-red .action-icon { background: var(--red-soft); color: var(--red); }

.section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button {
  min-height: 48px;
  border-radius: 14px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  cursor: pointer;
}

.primary-button {
  border: 1px solid var(--forest-800);
  background: var(--forest-800);
  color: #fff;
  box-shadow: 0 7px 18px rgba(23, 74, 53, 0.18);
}

.primary-button:hover {
  background: var(--forest-700);
}

.primary-button:disabled {
  border-color: #aab3ae;
  background: #aab3ae;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.danger-button {
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
}

.text-button {
  min-height: 42px;
  border: 0;
  padding: 0 10px;
  background: transparent;
  color: var(--forest-700);
}

.primary-button svg,
.secondary-button svg,
.danger-button svg,
.text-button svg {
  width: 20px;
  height: 20px;
}

.segmented {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segment {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.segment.is-active {
  border-color: var(--forest-800);
  background: var(--forest-800);
  color: #fff;
}

.list-stack {
  display: grid;
  gap: 11px;
}

.list-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

button.list-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.priority-bar {
  width: 5px;
  align-self: stretch;
  min-height: 48px;
  border-radius: 99px;
  background: var(--line);
}

.priority-bar.urgent { background: var(--red); }
.priority-bar.high { background: var(--orange); }
.priority-bar.normal { background: var(--blue); }
.priority-bar.low { background: #97a29c; }

.list-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.list-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  min-height: 25px;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.chip.urgent { background: var(--red-soft); color: #973834; }
.chip.high { background: var(--orange-soft); color: #9f4e1a; }
.chip.active { background: var(--blue-soft); color: #2a62b9; }
.chip.done { background: var(--forest-100); color: var(--forest-700); }

.chevron {
  color: #8b9690;
}

.chevron svg {
  width: 22px;
  height: 22px;
}

.empty-state {
  min-height: 300px;
  border: 1px dashed #cbd4cf;
  border-radius: var(--radius-lg);
  padding: 34px;
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
  display: grid;
  place-items: center;
}

.empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 15px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: var(--forest-100);
  color: var(--forest-800);
}

.empty-icon svg {
  width: 32px;
  height: 32px;
}

.empty-state h3 {
  margin: 0 0 7px;
  font-size: 22px;
}

.empty-state p {
  margin: 0 auto;
  max-width: 440px;
  color: var(--muted);
}

.search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 21px;
  height: 21px;
  color: #758079;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 0 18px 0 48px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  font-size: 16px;
}

.order-search-panel { margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.order-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.order-search-wrap { margin-bottom: 0; }
.order-search-button, .order-clear-button { min-height: 56px; }
.order-search-help { margin: 9px 2px 12px; color: var(--muted); font-size: 12px; }
.order-segments { padding-bottom: 0; }
.order-results-head { margin: 0 2px 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.order-results-head strong { font-size: 15px; }
.order-results-head span { color: var(--muted); font-size: 12px; }
.order-list, .order-loading { display: grid; gap: 12px; }
.order-loading .skeleton { height: 176px; border-radius: var(--radius-lg); }
.order-line-card { border: 1px solid var(--line); border-left: 6px solid var(--forest-600); border-radius: var(--radius-lg); padding: 19px 20px; background: var(--surface); box-shadow: var(--shadow-sm); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; }
.order-line-card.is-closed { border-left-color: #9aa79f; background: #fbfcfb; }
.order-line-heading { margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.order-number { color: var(--forest-800); font-size: 16px; font-weight: 950; letter-spacing: 0.02em; }
.order-line-card h3 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -0.025em; }
.order-variation { margin: 4px 0 0; color: var(--forest-700); font-size: 14px; font-weight: 800; }
.order-customer { margin-top: 13px; }
.order-customer strong, .order-customer span { display: block; }
.order-customer strong { font-size: 15px; }
.order-customer span { margin-top: 3px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.order-details { margin-top: 11px; }
.order-notes { margin: 11px 0 0; border-radius: 11px; padding: 9px 11px; background: var(--gold-soft); color: #664815; font-size: 12px; }
.order-line-action { width: min(250px, 28vw); display: grid; justify-items: stretch; }
.pickup-button { min-height: 56px; white-space: normal; line-height: 1.25; text-align: center; }
.closed-note { color: var(--muted); font-size: 12px; text-align: right; }
.result-note { margin-top: 14px; border-radius: 13px; padding: 12px 14px; background: var(--blue-soft); color: #2a5da6; font-size: 13px; font-weight: 700; text-align: center; }
.file-drop { min-height: 210px; border: 2px dashed #b9c9c0; border-radius: 20px; padding: 28px; background: var(--surface); display: grid; place-items: center; align-content: center; gap: 8px; color: var(--forest-800); text-align: center; cursor: pointer; }
.file-drop:hover { border-color: var(--forest-600); background: var(--forest-50); }
.file-drop svg { width: 42px; height: 42px; }
.file-drop strong { font-size: 18px; }
.file-drop span { max-width: 430px; color: var(--muted); font-size: 13px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.import-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.import-summary > div { border: 1px solid var(--line); border-radius: 16px; padding: 15px; background: var(--surface); }
.import-summary strong, .import-summary span { display: block; }
.import-summary strong { color: var(--forest-800); font-size: 27px; }
.import-summary span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.import-safety { margin: 14px 0; border-radius: 13px; padding: 12px 13px; background: var(--forest-50); color: var(--forest-800); display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 750; }
.import-safety svg { width: 20px; height: 20px; flex: 0 0 20px; }
.import-progress { margin: 15px 0; }
.import-progress .progress-track { margin-bottom: 8px; }
.import-progress span { color: var(--muted); font-size: 12px; }

.notice-card,
.pin-storage-card {
  margin-bottom: 18px;
  border: 1px solid #cfe2d6;
  border-radius: var(--radius);
  padding: 15px 17px;
  background: var(--forest-50);
  color: var(--forest-800);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.notice-card > svg,
.pin-storage-card > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.pin-storage-card strong { font-size: 16px; }
.pin-storage-card p { margin: 4px 0 0; color: #49685a; }

.message-board,
.schedule-list,
.account-list {
  display: grid;
  gap: 12px;
}

.message-card,
.shift-card,
.account-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.message-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
}

.message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--forest-100);
  color: var(--forest-800);
  font-size: 14px;
  font-weight: 950;
}

.message-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.message-meta strong { font-size: 14px; }
.message-meta span { color: var(--muted); font-size: 11px; }
.message-copy p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.55; }
.message-delete { color: var(--muted); }

.shift-card {
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(260px, 1.35fr) auto;
  align-items: center;
  gap: 18px;
  border-left: 6px solid var(--blue);
}

.shift-card.is-past { border-left-color: #a4ada8; opacity: .76; }
.shift-date strong, .shift-date span { display: block; }
.shift-date strong { font-size: 16px; }
.shift-date span { margin-top: 4px; color: var(--forest-700); font-size: 15px; font-weight: 850; }
.shift-person { display: flex; align-items: center; gap: 12px; }
.shift-person h3 { margin: 0; font-size: 18px; }
.shift-person p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

.account-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.account-card.is-disabled { background: #f2f4f2; opacity: .76; }
.account-copy h3 { margin: 0 0 7px; font-size: 18px; }
.account-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.guide-card {
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  border-color: #b8c9bf;
  box-shadow: var(--shadow-md);
}

.guide-kicker {
  color: var(--forest-700);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.guide-card h3 {
  margin: 9px 0 12px;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.guide-card .chips {
  margin-top: auto;
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-row {
  width: 100%;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 15px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.check-box {
  width: 32px;
  height: 32px;
  border: 2px solid #afbbb4;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: transparent;
}

.check-row.is-checked {
  border-color: #b8d7c5;
  background: var(--forest-50);
}

.check-row.is-checked .check-box {
  border-color: var(--forest-700);
  background: var(--forest-700);
  color: #fff;
}

.check-row.is-checked .check-label {
  color: #537064;
  text-decoration: line-through;
}

.check-label {
  font-size: 16px;
  font-weight: 720;
  line-height: 1.35;
}

.progress-card {
  position: sticky;
  bottom: 18px;
  z-index: 8;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-copy {
  min-width: 120px;
}

.progress-copy strong,
.progress-copy span {
  display: block;
}

.progress-copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.progress-track {
  height: 10px;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: #e7ece9;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--forest-700);
  transition: width 180ms ease;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
}

.event-date {
  min-height: 68px;
  border-radius: 18px;
  background: var(--orange-soft);
  color: #9b4e1d;
  display: grid;
  place-items: center;
  align-content: center;
}

.event-date strong,
.event-date span {
  display: block;
  line-height: 1;
}

.event-date strong {
  font-size: 25px;
}

.event-date span {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 2px 0 6px;
  font-size: 18px;
}

.event-card p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 18px;
}

.quick-panel,
.settings-card,
.detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quick-panel {
  align-self: start;
}

.quick-panel h3,
.settings-card h3,
.detail-card h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.quick-panel p,
.settings-card p,
.detail-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-row {
  min-height: 72px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.settings-row:first-of-type {
  border-top: 0;
}

.settings-row strong,
.settings-row span {
  display: block;
}

.manager-card {
  border-color: #c5d9cc;
  background: linear-gradient(145deg, #ffffff, var(--forest-50));
}

.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
  align-items: start;
  gap: 18px;
}

.studio-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.studio-panel-head,
.subhead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.studio-panel-head {
  margin-bottom: 20px;
}

.studio-panel-head h3 {
  margin: 5px 0 4px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.studio-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.field-wide {
  grid-column: 1 / -1;
}

.menu-editor,
.studio-preview-wrap {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.subhead {
  align-items: baseline;
  margin-bottom: 12px;
}

.subhead h4 {
  margin: 0;
  font-size: 16px;
}

.subhead span {
  color: var(--muted);
  font-size: 12px;
}

.studio-menu-row {
  display: grid;
  grid-template-columns: 116px minmax(160px, 0.8fr) minmax(220px, 1.2fr);
  align-items: end;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid #edf0ee;
}

.studio-menu-row:first-of-type {
  border-top: 0;
}

.order-buttons {
  min-height: 49px;
  display: grid;
  grid-template-columns: 38px 28px 38px;
  align-items: center;
  justify-content: start;
  gap: 4px;
}

.order-buttons > span {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.icon-button.small {
  width: 38px;
  height: 38px;
  min-height: 38px;
  flex-basis: 38px;
  border-radius: 11px;
}

.icon-button.small:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mini-home {
  border: 1px solid #d9e2dc;
  border-radius: 18px;
  padding: 18px;
  background: var(--canvas);
}

.mini-home h5 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.mini-home > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.mini-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-action {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.mini-home.is-compact .mini-action {
  min-height: 76px;
  padding: 8px;
}

.mini-dot {
  width: 18px;
  height: 18px;
  margin-bottom: 9px;
  border-radius: 6px;
  background: var(--forest-100);
}

.mini-action.tone-blue .mini-dot { background: var(--blue-soft); }
.mini-action.tone-teal .mini-dot { background: #dff1ed; }
.mini-action.tone-purple .mini-dot { background: var(--purple-soft); }
.mini-action.tone-orange .mini-dot { background: var(--orange-soft); }
.mini-action.tone-gold .mini-dot { background: var(--gold-soft); }
.mini-action.tone-red .mini-dot { background: var(--red-soft); }

.mini-action strong {
  font-size: 11px;
}

.mini-action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
}

.studio-actions {
  margin-top: 18px;
}

.studio-guide-list {
  display: grid;
  gap: 8px;
  max-height: 72vh;
  overflow-y: auto;
}

.studio-guide-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.studio-guide-row:hover {
  border-color: #b8c9bf;
  background: var(--forest-50);
}

.studio-guide-row strong,
.studio-guide-row small {
  display: block;
}

.studio-guide-row strong {
  font-size: 13px;
}

.studio-guide-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.edit-mark svg {
  width: 18px;
  height: 18px;
  color: var(--forest-700);
}

.guide-markdown-input {
  min-height: 320px !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.guide-preview-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.guide-preview-card .markdown-view {
  margin-top: 12px;
}

.guide-manager-actions {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.settings-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.event-form-grid,
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.event-form-grid .field-wide {
  grid-column: 1 / -1;
}

.toggle-field {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  background: #fff;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.toggle-field input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--forest-700);
}

.toggle-field span {
  display: grid;
  gap: 3px;
}

.toggle-field strong {
  font-size: 14px;
}

.toggle-field small {
  color: var(--muted);
  line-height: 1.35;
}

.language-field {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
}

.language-field legend {
  padding: 0 6px;
  font-weight: 800;
  font-size: 14px;
}

.language-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.language-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  cursor: pointer;
}

.language-options input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--forest-700);
}

.registration-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.registration-event { width: 100%; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.registration-event-meta { display: block; margin-top: 6px; font-size: 14px; }
.registration-row > div, .registration-event > span { min-width: 0; overflow-wrap: anywhere; }

.registration-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.registration-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--forest-800);
  color: #fff;
  font-weight: 900;
}

.registration-row p {
  margin: 5px 0;
  color: var(--muted);
  line-height: 1.45;
}

.registration-row a {
  color: var(--forest-700);
  font-weight: 700;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: #465149;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 49px;
  border: 1px solid #ccd5d0;
  border-radius: 13px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.helper {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 18px;
  background: rgba(13, 45, 32, 0.58);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
}

.modal {
  width: min(100%, 540px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  border-radius: 26px;
  padding: 24px;
  background: var(--cream);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.24);
}

.modal.wide {
  width: min(100%, 720px);
}

.modal-head {
  margin-bottom: 19px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.modal-head h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.035em;
}

.modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.login-shell {
  width: min(100%, 440px);
  border-radius: 30px;
  padding: 30px;
  background: var(--cream);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.login-brand {
  width: 76px;
  height: 76px;
  margin-bottom: 22px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--forest-800);
  color: #fff;
  font-size: 23px;
  font-weight: 950;
}

.login-shell h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.login-shell > p {
  margin: 8px 0 24px;
  color: var(--muted);
  line-height: 1.45;
}

.pin-input {
  width: 100%;
  min-height: 66px;
  border: 1px solid #c8d1cc;
  border-radius: 17px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.35em;
}

.login-shell .primary-button {
  width: 100%;
  margin-top: 12px;
}

.mode-note {
  margin-top: 17px;
  border-radius: 13px;
  padding: 11px 12px;
  background: var(--gold-soft);
  color: #765113;
  font-size: 12px;
  line-height: 1.45;
}

.mode-note strong {
  display: block;
  margin-bottom: 2px;
}

.detail-section {
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.detail-section:first-of-type {
  border-top: 0;
}

.detail-section h4 {
  margin: 0 0 7px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-section p {
  margin: 0;
  color: var(--ink);
}

.markdown-view {
  color: #253129;
  font-size: 15px;
  line-height: 1.6;
}

.markdown-view h2,
.markdown-view h3 {
  margin: 20px 0 8px;
  line-height: 1.25;
}

.markdown-view h2:first-child,
.markdown-view h3:first-child {
  margin-top: 0;
}

.markdown-view ol,
.markdown-view ul {
  margin: 8px 0;
  padding-left: 22px;
}

.markdown-view li {
  margin: 7px 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: min(90vw, 560px);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--forest-950);
  color: #fff;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 750;
  transform: translateX(-50%);
  animation: toast-in 180ms ease-out;
}

.toast.error {
  background: #8d312e;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(100deg, #e6ebe8 20%, #f5f7f5 35%, #e6ebe8 50%);
  background-size: 220% 100%;
  animation: shimmer 1.2s infinite linear;
}

@keyframes shimmer {
  to { background-position-x: -220%; }
}

.bottom-nav {
  display: none;
}

@media (max-width: 1100px) {
  .action-card {
    min-height: 174px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-layout {
    grid-template-columns: 1fr;
  }

  .studio-guide-list {
    max-height: none;
  }
}

@media (max-width: 899px) {
  :root {
    --bottom-height: 78px;
  }

  .rail {
    display: none;
  }

  .page-frame {
    margin-left: 0;
    padding-bottom: calc(var(--bottom-height) + env(safe-area-inset-bottom));
  }

  .bottom-nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    min-height: calc(var(--bottom-height) + env(safe-area-inset-bottom));
    padding: 7px max(10px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(10px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
  }

  .bottom-nav .nav-item {
    min-height: 60px;
    color: #718078;
    font-size: 10px;
  }

  .bottom-nav .nav-item:hover,
  .bottom-nav .nav-item.is-active {
    background: var(--forest-50);
    color: var(--forest-800);
  }

  .topbar {
    min-height: 70px;
    padding: 11px 18px;
  }

  .sync-pill {
    display: none;
  }

  .staff-pill {
    min-height: 44px;
    padding: 7px 9px;
  }

  .staff-name {
    display: none;
  }

  .page-content {
    padding: 24px 18px 34px;
  }

  .action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .action-card {
    min-height: 168px;
  }

  .hero {
    align-items: flex-start;
  }

  .today-card {
    display: none;
  }

  .customer-grid,
  .settings-grid,
  .editor-fields {
    grid-template-columns: 1fr;
  }

  .form-grid { grid-template-columns: 1fr; }

  .field-wide {
    grid-column: auto;
  }

  .studio-menu-row {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .studio-menu-row .field:last-child {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .topbar h1 {
    font-size: 21px;
  }

  .topbar .eyebrow {
    display: none;
  }

  .hero {
    margin-bottom: 19px;
  }

  .hero h2 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  .action-grid {
    gap: 11px;
  }

  .action-card {
    min-height: 148px;
    border-radius: 20px;
    padding: 15px;
  }

  .action-icon {
    width: 45px;
    height: 45px;
    border-radius: 14px;
  }

  .action-icon svg {
    width: 24px;
    height: 24px;
  }

  .action-card h3 {
    margin-top: 13px;
    font-size: 18px;
  }

  .action-card p {
    font-size: 12px;
  }

  .action-meta {
    top: 14px;
    right: 12px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .orders-head .primary-button, .orders-head .secondary-button { width: 100%; }
  .order-search-panel { padding: 12px; }
  .order-search-form { grid-template-columns: 1fr 1fr; }
  .order-search-wrap { grid-column: 1 / -1; }
  .order-search-button, .order-clear-button { width: 100%; }
  .order-results-head { align-items: flex-start; flex-direction: column; gap: 3px; }
  .order-line-card { padding: 16px; grid-template-columns: 1fr; gap: 15px; }
  .order-line-card h3 { font-size: 19px; }
  .order-line-action { width: 100%; }
  .import-summary { grid-template-columns: 1fr; }

  .message-card { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 15px; }
  .message-meta { align-items: flex-start; flex-direction: column; gap: 2px; }
  .message-copy p { font-size: 15px; }
  .shift-card { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .shift-card > .secondary-button { width: 100%; }
  .account-card { grid-template-columns: 44px minmax(0, 1fr); padding: 15px; }
  .account-actions { grid-column: 1 / -1; justify-content: stretch; }
  .account-actions .secondary-button { flex: 1; }

  .section-actions,
  .section-actions .primary-button,
  .section-actions .secondary-button {
    width: 100%;
  }

  .event-form-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .guide-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .list-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .list-card .chevron {
    display: none;
  }

  .progress-card {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .progress-track {
    flex-basis: calc(100% - 150px);
  }

  .progress-card .primary-button {
    width: 100%;
  }

  .login-shell {
    padding: 24px 20px;
  }

  .studio-panel {
    padding: 17px;
  }

  .studio-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .studio-panel-head .primary-button {
    width: 100%;
  }

  .studio-menu-row {
    grid-template-columns: 1fr;
  }

  .studio-menu-row .field:last-child {
    grid-column: auto;
  }

  .order-buttons {
    margin-bottom: -2px;
  }

  .mini-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Staff + manager cleanup: compact working surfaces and a readable handbook. */
.hero { padding: 8px 0 20px; background: transparent; border: 0; box-shadow: none; }
.hero h2 { font-size: clamp(23px, 3.2vw, 32px); line-height: 1.2; }
.hero p { max-width: 55ch; font-size: 15px; }
.today-card { background: transparent; border: 0; padding-right: 0; }
.action-grid { gap: 14px; }
.action-card { min-height: 145px; border-radius: 16px; box-shadow: none; }
.action-card h3 { font-size: 18px; }
.action-card p { font-size: 14px; line-height: 1.5; }
.topbar h1 { font-size: clamp(22px, 3vw, 30px); }
.edition-manager .rail { background: #24334a; }
.manager-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 24px; }
.manager-shortcuts button { border: 1px solid #d6dde7; border-radius: 14px; padding: 18px; background: #fff; display: flex; text-align: left; align-items: center; gap: 13px; cursor: pointer; }
.manager-shortcuts svg { width: 23px; height: 23px; flex: 0 0 auto; color: #304563; }
.manager-shortcuts button>svg:last-child { width: 16px; margin-left: auto; }
.manager-shortcuts strong,.manager-shortcuts small { display: block; }
.manager-shortcuts small { color: var(--muted); margin-top: 5px; line-height: 1.4; }
.login-shell { width: min(420px,100%); }
.login-shell .eyebrow { margin: 22px 0 6px; color: var(--forest-700); font-weight: 800; }
.login-shell h1 { font-size: 30px; }
.login-overlay { background: #edf1ed; }
.edition-picker { display: grid; grid-template-columns: 1fr 1fr; background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin: 20px 0; }
.edition-picker button { border: 0; background: transparent; border-radius: 8px; padding: 11px; cursor: pointer; }
.edition-picker [aria-pressed="true"] { background: white; box-shadow: var(--shadow-sm); font-weight: 750; }
.remember-choice { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; cursor: pointer; text-align: left; }
.remember-choice input { width: 19px; height: 19px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--forest-700); }
.remember-choice small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.login-error { padding: 12px; background: var(--red-soft); border-radius: 9px; color: #8c2f29; line-height: 1.5; }
.resume-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--forest-800); }
.resume-screen strong { font-size: 36px; }
.guide-card { text-align: left; box-shadow: none; border-radius: 15px; }
.guide-summary { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 9px 0 14px; }
.modal.wide { width: min(960px,calc(100vw - 24px)); }
.markdown-view { font-size: 16px; line-height: 1.75; max-width: 75ch; }
.markdown-view h2 { margin: 30px 0 12px; font-size: 21px; color: var(--forest-900); border-top: 1px solid var(--line); padding-top: 22px; }
.markdown-view h2:first-child { margin-top: 22px; }
.markdown-view li { padding-left: 6px; margin-bottom: 13px; }
.markdown-view a,.guide-sources a,figcaption a { color: #246444; text-underline-offset: 3px; overflow-wrap: anywhere; }
.guide-notice { display: flex; gap: 10px; padding: 14px; margin: 16px 0; border-radius: 12px; background: var(--gold-soft); line-height: 1.6; font-size: 14px; }
.guide-notice svg { width: 21px; height: 21px; flex: 0 0 auto; }
.guide-portal { display: inline-flex; text-decoration: none; margin: 4px 0 8px; }
.guide-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 26px 0; }
.guide-photos>h3,.guide-photos>p { grid-column: 1 / -1; margin: 0; }
.guide-photos>p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.guide-photos figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.guide-photos img { width: 100%; height: 250px; object-fit: contain; display: block; cursor: zoom-in; background: #f6f7f8; }
.guide-photos figure.expanded { grid-column: 1 / -1; }
.guide-photos figure.expanded img { height: auto; cursor: zoom-out; }
.guide-photos figcaption { padding: 13px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.guide-sources { padding: 20px 0; border-top: 1px solid var(--line); }
.guide-sources a { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 14px; }
.guide-sources a svg { width: 15px; height: 15px; flex: 0 0 auto; }
.guide-sources p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.guide-signoff { padding: 20px; border: 1px solid #cfe0d5; background: var(--forest-50); border-radius: 14px; margin: 12px 0 0; }
.guide-signoff p { font-size: 14px; line-height: 1.6; }
.signoff-status { margin-bottom: 0; font-weight: 700; }
.audit-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 22px; }
.audit-filter label { display: grid; gap: 7px; min-width: 190px; font-size: 13px; font-weight: 700; }
.audit-filter select { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 12px; font-size: 15px; }
.activity-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; margin-bottom: 20px; }
.activity-row { display: flex; gap: 14px; padding: 18px; align-items: start; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row>div:nth-child(2) { flex: 1; min-width: 0; }
.activity-row p { margin: 6px 0; }
.activity-row small { color: var(--muted); overflow-wrap: anywhere; }
.activity-time { margin-left: auto; display: grid; gap: 8px; justify-items: end; flex-shrink: 0; }
.activity-time time { color: var(--muted); font-size: 12px; }
@media(max-width:760px) {
  .manager-shortcuts { grid-template-columns: 1fr; gap: 9px; margin-bottom: 18px; }
  .manager-shortcuts button { padding: 14px; }
  .action-card { min-height: 143px; padding: 16px; }
  .action-card h3 { font-size: 16px; }
  .action-card p { font-size: 13px; }
  .guide-photos { grid-template-columns: 1fr; }
  .guide-photos img { height: 230px; }
  .guide-signoff { padding: 15px; }
  .guide-signoff .button-row { flex-direction: column; align-items: stretch; }
  .activity-row { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .activity-time { flex-basis: 100%; margin-left: 46px; display: flex; justify-content: space-between; }
  .audit-filter label { min-width: 0; flex: 1 1 40%; }
  .audit-filter button { flex: 1 1 100%; }
}
