:root {
  --bg: #f6efe6;
  --bg-alt: #efe2d1;
  --panel: #fffaf2;
  --panel-strong: #f5eadb;
  --border: rgba(146, 64, 14, 0.2);
  --text: #24160b;
  --muted: #6f5a43;
  --accent: #d97706;
  --accent-strong: #92400e;
  --accent-soft: rgba(217, 119, 6, 0.14);
  --success: #047857;
  --warning: #b45309;
  --danger: #ef4444;
  --shadow: none;
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --sidebar: #fff7ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg), var(--bg-alt));
}

[hidden] {
  display: none !important;
}

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 520px);
  padding: 32px;
}

.auth-card h1 {
  margin: 14px 0 10px;
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: -0.04em;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-demo {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(47, 36, 25, 0.08);
}

.auth-demo h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 20px;
  min-height: 100vh;
  padding: 20px;
}

.sidebar,
.main-content {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  align-self: start;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding-right: 6px;
}

.panel {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
}

.soft-panel {
  background: rgba(255, 248, 239, 0.86);
  padding: 22px 20px;
}

.highlight-panel {
  background: linear-gradient(180deg, rgba(47, 36, 25, 0.97), rgba(67, 46, 27, 0.94));
  color: #fffaf3;
  padding: 20px;
  margin-top: auto;
}

.brand-block,
.nav,
.hero,
.side-panel,
.section-view {
  padding: 20px;
}

.brand-block {
  margin-bottom: 16px;
}

.brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-copy {
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #fffaf2;
  color: var(--accent-strong);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(143, 63, 23, 0.18);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.business-logo {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
}

.brand-block h1,
.hero h2 {
  margin: 10px 0 8px;
  font-family: "IBM Plex Sans", sans-serif;
  letter-spacing: -0.04em;
}

.brand-block p,
.hero p,
.section-title p,
.field span,
.muted,
td small,
.policy-card p {
  color: var(--muted);
}

a {
  color: inherit;
}

.brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(200, 111, 49, 0.12);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2,
.hero h2,
.side-panel h2 {
  font-size: 1.35rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  background: rgba(47, 36, 25, 0.06);
  border-radius: 16px;
}

.week-switcher {
  min-width: 280px;
}

.segmented button,
.nav-link,
.action-btn,
.badge-btn {
  border: 0;
  cursor: pointer;
  transition: 0.2s ease;
}

.segmented button {
  border-radius: 12px;
  padding: 12px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.segmented button.active {
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(47, 36, 25, 0.06);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 500;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(47, 36, 25, 0.08);
  background: var(--panel-strong);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
}

.nav {
  display: grid;
  gap: 8px;
}

.mobile-section-jump {
  display: none;
}

.nav-link {
  text-align: left;
  padding: 12px 15px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(200, 111, 49, 0.12);
  color: var(--accent-strong);
}

.nav-link.active {
  box-shadow: inset 0 0 0 1px rgba(200, 111, 49, 0.18);
}

.mini-list,
.step-list,
.rule-list {
  margin: 0;
  padding-left: 18px;
}

.mini-list li,
.step-list li,
.rule-list li {
  margin-bottom: 10px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(249, 234, 216, 0.88)),
    linear-gradient(135deg, rgba(200, 111, 49, 0.12), rgba(43, 127, 99, 0.08));
}

.hero-actions {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.hero-stat {
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.stat-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.content-column,
.content-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.section-view {
  display: none;
}

.section-view.active {
  display: block;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.compact-grid {
  margin-bottom: 18px;
}

.recipe-form-copy {
  margin: -2px 0 0;
}

.allergen-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.allergen-quick-card {
  display: grid;
  gap: 10px;
}

.allergen-pill-row {
  min-height: 40px;
}

.allergen-service-box {
  background: rgba(43, 127, 99, 0.08);
}

.allergen-footnote {
  display: block;
  margin-top: 2px;
}

.warn-tag {
  background: rgba(217, 146, 46, 0.16);
  color: var(--warning);
}

.stat-card,
.chat-card,
.policy-card,
.shift-card,
.inventory-card,
.employee-card {
  border-radius: 20px;
  padding: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(47, 36, 25, 0.08);
  box-shadow: 0 10px 24px rgba(63, 44, 26, 0.04);
}

.starter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel-strong);
}

.starter-panel h4 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
}

.starter-panel p {
  margin: 0;
  color: var(--muted);
}

.starter-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.starter-steps button {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.starter-steps button strong {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf2;
  font-family: "IBM Plex Mono", monospace;
}

.starter-steps button span {
  font-weight: 600;
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.supplier-card {
  display: grid;
  gap: 12px;
}

.section-help {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}

.section-help article {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 242, 0.78);
}

.section-help strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.86rem;
}

.section-help span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.stat-card strong,
.employee-name,
.inventory-value {
  display: block;
  margin-top: 10px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.35rem;
}

.stat-card small {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
}

.compact-stat {
  padding: 16px;
}

.conflict-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(163, 61, 51, 0.1);
  color: var(--danger);
}

.next-shift-banner {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(200, 111, 49, 0.12);
  border: 1px solid rgba(200, 111, 49, 0.18);
}

.next-shift-banner strong {
  font-family: "IBM Plex Sans", sans-serif;
}

.status-pill,
.tag,
.priority-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pill.ok,
.priority-pill.low {
  background: rgba(43, 127, 99, 0.12);
  color: var(--success);
}

.status-pill.warn,
.priority-pill.medium {
  background: rgba(217, 146, 46, 0.12);
  color: var(--warning);
}

.status-pill.danger,
.priority-pill.high {
  background: rgba(163, 61, 51, 0.12);
  color: var(--danger);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-header h3 {
  margin: 0;
  font-size: 1.3rem;
  font-family: "IBM Plex Sans", sans-serif;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 66ch;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.action-btn,
.badge-btn {
  padding: 12px 15px;
  border-radius: 14px;
  font-weight: 600;
}

.action-btn.primary {
  background: var(--accent);
  color: white;
}

.action-btn.secondary {
  background: rgba(47, 36, 25, 0.06);
  color: var(--text);
}

.badge-btn {
  background: rgba(43, 127, 99, 0.12);
  color: var(--success);
}

.badge-btn.active-filter {
  background: rgba(200, 111, 49, 0.14);
  color: var(--accent-strong);
}

.mini-action {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(43, 127, 99, 0.14);
  color: var(--success);
  font-weight: 600;
  cursor: pointer;
}

.mini-action.alt {
  background: rgba(163, 61, 51, 0.12);
  color: var(--danger);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(47, 36, 25, 0.08);
  background: rgba(255, 252, 247, 0.92);
}

.table-wrap table {
  width: max-content;
  min-width: 100%;
}

.compact-header {
  margin-bottom: 12px;
}

.order-focus-row {
  background: rgba(200, 111, 49, 0.08);
}

.weekly-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(160px, 1fr));
  gap: 12px;
  margin: 18px 0;
  overflow-x: auto;
}

.day-column {
  min-width: 160px;
  border: 1px solid rgba(47, 36, 25, 0.08);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.95);
}

.day-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
}

.day-column-header h4 {
  margin: 0;
}

.day-column-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.day-column-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.shift-chip {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(200, 111, 49, 0.1);
  border: 1px solid rgba(200, 111, 49, 0.12);
}

.shift-chip.conflict {
  background: rgba(163, 61, 51, 0.1);
  border-color: rgba(163, 61, 51, 0.2);
}

.shift-chip.warning {
  background: rgba(255, 245, 223, 0.96);
  border-color: rgba(217, 146, 46, 0.22);
}

.shift-chip strong,
.shift-chip span,
.shift-chip small {
  display: block;
}

.day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shift-plan-form {
  display: grid;
  gap: 16px;
}

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

.shift-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.plan-day-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(47, 36, 25, 0.08);
  background: rgba(255, 252, 247, 0.95);
}

.plan-day-card.blocked {
  background: rgba(255, 236, 234, 0.95);
  border-color: rgba(163, 61, 51, 0.2);
}

.plan-day-card.warning {
  background: rgba(255, 245, 223, 0.96);
  border-color: rgba(217, 146, 46, 0.2);
}

.plan-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-time-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.availability-pill.free {
  background: rgba(43, 127, 99, 0.12);
  color: var(--success);
}

.availability-pill.pending {
  background: rgba(217, 146, 46, 0.12);
  color: var(--warning);
}

.availability-pill.approved {
  background: rgba(163, 61, 51, 0.12);
  color: var(--danger);
}

.day-check {
  position: relative;
  cursor: pointer;
}

.day-check span {
  line-height: 1.25;
}

.day-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.day-check span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(47, 36, 25, 0.08);
  color: var(--text);
  font-weight: 600;
  transition: 0.2s ease;
}

.day-check input:checked + span {
  background: rgba(200, 111, 49, 0.16);
  color: var(--accent-strong);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel-strong);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(47, 36, 25, 0.06);
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
}

th {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

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

.list-card {
  padding: 16px 18px;
  border: 1px solid rgba(47, 36, 25, 0.08);
  background: var(--panel-strong);
  border-radius: 18px;
  min-width: 0;
  box-shadow: 0 8px 18px rgba(63, 44, 26, 0.03);
}

.list-card h4,
.chat-card h4,
.policy-card h4 {
  margin: 0 0 6px;
}

.chat-grid,
.employee-grid,
.policy-grid {
  display: grid;
  gap: 14px;
}

.chat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.chat-tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(47, 36, 25, 0.08);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.chat-tab.active {
  background: rgba(200, 111, 49, 0.16);
  color: var(--accent-strong);
}

.chat-room {
  margin-top: 18px;
  border: 1px solid rgba(47, 36, 25, 0.08);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.95);
  overflow: hidden;
}

.chat-room-header {
  padding: 18px 18px 8px;
}

.chat-room-header h4 {
  margin: 0 0 6px;
}

.chat-room-header p {
  margin: 0;
  color: var(--muted);
}

.chat-thread {
  display: grid;
  gap: 12px;
  padding: 18px;
  max-height: 420px;
  overflow-y: auto;
}

.chat-message {
  max-width: 80%;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 8px;
  background: #fff7ef;
  border: 1px solid rgba(47, 36, 25, 0.08);
}

.chat-message.own {
  margin-left: auto;
  border-radius: 18px 18px 8px 18px;
  background: rgba(200, 111, 49, 0.12);
}

.chat-message.urgent {
  box-shadow: inset 0 0 0 1px rgba(163, 61, 51, 0.2);
  background: rgba(255, 236, 234, 0.96);
}

.chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.chat-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-composer {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(47, 36, 25, 0.08);
  background: rgba(255, 249, 241, 0.95);
}

.chat-composer-box {
  display: block;
}

.chat-composer-box textarea {
  min-height: 72px;
  resize: vertical;
  border-radius: 18px;
  background: #fffdf8;
}

.chat-composer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-urgent-toggle {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 36, 25, 0.06);
}

.inline-form {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.92);
  border: 1px solid rgba(47, 36, 25, 0.08);
}

.inline-form h4 {
  margin-top: 0;
}

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

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

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
}

.check-row input {
  width: auto;
}

.check-stack {
  display: grid;
  gap: 10px;
}

.recipe-detail-block {
  min-width: 0;
}

.recipe-service-note {
  background: rgba(200, 111, 49, 0.08);
}

.admin-mode-grid {
  display: grid;
  gap: 10px;
}

.admin-mode-card {
  display: block;
  width: 100%;
  border: 1px solid rgba(47, 36, 25, 0.08);
  background: rgba(255, 252, 247, 0.95);
  border-radius: 18px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

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

.admin-mode-card span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.admin-mode-card.active {
  background: rgba(200, 111, 49, 0.14);
  border-color: rgba(200, 111, 49, 0.25);
}

.admin-mode-card:hover {
  border-color: rgba(200, 111, 49, 0.25);
  transform: translateY(-1px);
}

.info-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(47, 36, 25, 0.05);
  border: 1px solid rgba(47, 36, 25, 0.06);
}

.info-note span {
  color: var(--muted);
  line-height: 1.45;
}

.mode-explainer {
  margin-bottom: 12px;
}

.compact-note {
  gap: 4px;
  padding: 12px 14px;
}

.compact-card {
  padding: 14px 16px;
  border-radius: 16px;
}

.subsection-title {
  margin: 4px 0 2px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metric-card {
  border: 1px solid rgba(47, 36, 25, 0.08);
  background: rgba(255, 252, 247, 0.95);
}

.metric-card.warning {
  border-color: rgba(217, 146, 46, 0.28);
  background: rgba(255, 247, 233, 0.95);
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.5rem;
  font-family: "IBM Plex Sans", sans-serif;
}

.metric-label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat-card.urgent {
  border-color: rgba(163, 61, 51, 0.28);
  box-shadow: inset 0 0 0 1px rgba(163, 61, 51, 0.18);
}

.chat-card p,
.employee-card p {
  margin: 8px 0;
}

.tag {
  background: rgba(47, 36, 25, 0.08);
  color: var(--text);
  margin-right: 6px;
}

.status-pill.critico {
  background: rgba(163, 61, 51, 0.12);
  color: var(--danger);
}

.status-pill.justo {
  background: rgba(217, 146, 46, 0.12);
  color: var(--warning);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.brand-preview-card {
  display: grid;
  gap: 12px;
}

.brand-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.95);
  border: 1px solid rgba(47, 36, 25, 0.08);
}

.brand-preview-text strong,
.brand-preview-text span {
  display: block;
}

.brand-preview-text span {
  color: var(--muted);
  margin-top: 4px;
}

.metric-ring {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 12px auto 0;
  background:
    radial-gradient(circle at center, var(--panel-strong) 46%, transparent 47%),
    conic-gradient(var(--accent) var(--progress), rgba(47, 36, 25, 0.08) 0);
}

.metric-ring strong {
  font-size: 1.5rem;
  font-family: "IBM Plex Sans", sans-serif;
}

.empty-note {
  padding: 18px;
  border-radius: 16px;
  background: rgba(47, 36, 25, 0.04);
  color: var(--muted);
}

@media (max-width: 1500px) {
  .content-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .app-shell,
  .two-column {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .content-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 12px;
  }

  .sidebar > div {
    display: grid;
    gap: 12px;
  }

  .brand-block,
  .nav,
  .hero,
  .side-panel,
  .section-view,
  .soft-panel,
  .highlight-panel {
    padding: 16px;
  }

  .brand-head {
    align-items: flex-start;
  }

  .brand-block {
    margin-bottom: 0;
  }

  .brand-block p {
    display: none;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .brand-block h1,
  .hero h2,
  .section-header h3,
  .side-panel h2,
  .section-title h2 {
    font-size: 1.18rem;
  }

  .hero {
    flex-direction: column;
    gap: 16px;
  }

  .hero p {
    display: none;
  }

  .hero-actions {
    display: none;
  }

  .section-header,
  .chat-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header {
    gap: 12px;
  }

  .section-header p {
    max-width: 100%;
  }

  .sidebar {
    gap: 14px;
  }

  .soft-panel {
    order: 3;
    padding: 14px 16px;
  }

  .soft-panel .section-title {
    margin-bottom: 10px;
  }

  .soft-panel .section-title p,
  .soft-panel .info-note:last-of-type {
    display: none;
  }

  .soft-panel .field {
    margin-top: 10px;
  }

  .nav.panel {
    display: none;
  }

  .mobile-section-jump {
    order: 2;
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    position: sticky;
    top: 10px;
    z-index: 20;
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(18px);
  }

  .mobile-section-jump span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 600;
  }

  .mobile-section-jump select {
    min-height: 48px;
    border-radius: 16px;
    font-weight: 700;
    background: var(--panel-strong);
  }

  .highlight-panel {
    display: none;
  }

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

  .cards-grid,
  .allergen-quick-grid,
  .two-column,
  .shift-plan-head,
  .shift-plan-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .weekly-board {
    grid-template-columns: repeat(7, minmax(220px, 1fr));
  }

  .day-column,
  .week-switcher {
    min-width: 0;
  }

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

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

  .plan-time-row {
    grid-template-columns: 1fr;
  }

  .plan-time-row span {
    display: none;
  }

  .day-picker {
    display: grid;
    grid-template-columns: 1fr;
  }

  .day-check span {
    width: 100%;
    justify-content: flex-start;
  }

  .table-wrap {
    border-radius: 16px;
  }

  .table-wrap table {
    min-width: 680px;
  }

  th,
  td {
    padding: 12px 12px;
    font-size: 0.95rem;
  }

  th {
    font-size: 0.8rem;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-composer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .section-header .action-row {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .section-header .action-btn,
  .section-header .badge-btn {
    width: auto;
    flex: 0 0 auto;
  }

  .form-actions {
    width: 100%;
  }

  .form-actions .action-btn,
  .form-actions .badge-btn {
    width: 100%;
    justify-content: center;
  }

  .starter-panel {
    grid-template-columns: 1fr;
  }

  .starter-steps {
    grid-template-columns: 1fr;
  }

  .section-help {
    grid-template-columns: 1fr;
  }
}

/* BrasaFlow readable warm identity refresh */
.auth-shell,
.app-shell {
  background: linear-gradient(135deg, var(--bg), var(--bg-alt));
}

.panel,
.auth-card,
.section-view,
.side-panel,
.stat-card,
.chat-card,
.policy-card,
.shift-card,
.inventory-card,
.employee-card,
.list-card,
.chat-room,
.inline-form,
.metric-card,
.admin-mode-card,
.brand-preview,
.compact-card,
.plan-day-card,
.day-column,
.table-wrap,
.hero-stat,
.soft-panel {
  border-color: var(--border);
  background: var(--panel);
  box-shadow: none;
  border-radius: var(--radius-xl);
}

.sidebar .brand-block,
.sidebar .nav,
.sidebar .soft-panel,
.sidebar .highlight-panel {
  border: 1px solid var(--border);
  background: var(--sidebar);
  border-radius: var(--radius-xl);
  box-shadow: none;
}

.brand-block {
  padding: 16px;
}

.highlight-panel {
  color: var(--text);
}

.highlight-panel,
.hero {
  background: linear-gradient(135deg, #fffaf2, #f2e3cf);
}

.brand-logo {
  border-radius: var(--radius-xl);
  background: var(--panel);
  color: var(--accent-strong);
  box-shadow: none;
}

.business-logo {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fffaf2;
}

.brand-block h1,
.hero h2,
.section-title h2,
.section-header h3,
.side-panel h2,
.list-card h4,
.chat-card h4,
.policy-card h4 {
  letter-spacing: 0;
  color: var(--text);
}

.brand-kicker,
.status-pill,
.tag,
.priority-pill,
.availability-pill,
.stat-label,
.badge-pop,
.addon-item,
td small,
th,
.metric-card strong,
.stat-card strong,
.employee-name,
.inventory-value,
.price-amount,
.brand-preview-text strong,
.progress-ring span {
  font-family: "IBM Plex Mono", monospace;
}

.brand-kicker,
.segmented,
.chat-tab,
.chat-urgent-toggle,
.day-check span,
.action-btn.secondary,
.badge-btn,
.mini-action,
.mobile-section-jump,
select,
input,
textarea {
  border-color: var(--border);
  background: var(--panel-strong);
  color: var(--text);
}

.field span {
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 0;
  display: inline;
}

select,
input,
textarea,
.chat-composer-box textarea {
  border-radius: var(--radius-xl);
}

.brand-kicker,
.segmented button.active,
.nav-link:hover,
.nav-link.active,
.badge-btn.active-filter,
.chat-tab.active,
.day-check input:checked + span,
.order-focus-row,
.next-shift-banner,
.shift-chip,
.allergen-service-box {
  background: rgba(232, 130, 12, 0.14);
  color: var(--accent-strong);
  border-color: var(--border);
  box-shadow: none;
}

.nav-link {
  border-radius: var(--radius-xl);
}

.action-btn.primary,
.price-cta,
.demo-link,
.nav-cta {
  background: var(--accent);
  color: #fffaf2;
  box-shadow: none;
}

.action-btn.primary:hover,
.price-cta:hover,
.demo-link:hover,
.nav-cta:hover {
  background: var(--accent-strong);
  color: #fffaf2;
}

.action-btn,
.badge-btn,
.mini-action,
.segmented button,
.nav-link,
.chat-tab,
.form-actions button {
  border-radius: var(--radius-xl);
}

.hero-stat,
.chat-message,
.chat-composer,
.day-column,
.plan-day-card,
.shift-chip,
.table-wrap,
table,
.inline-form,
.brand-preview,
.admin-mode-card,
.metric-card,
.list-card {
  background: var(--panel-strong);
}

.inline-form {
  scroll-margin-top: 18px;
}

.inline-form.form-opened {
  border-color: rgba(245, 200, 66, 0.55);
  outline: 2px solid rgba(232, 130, 12, 0.28);
  outline-offset: 2px;
}

.action-btn.secondary {
  background: #fffaf2;
  color: var(--text);
  border: 1px solid var(--border);
}

.action-btn.secondary:hover {
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent-strong);
}

.chat-message.own {
  background: rgba(232, 130, 12, 0.14);
}

.chat-message.urgent,
.conflict-banner,
.plan-day-card.blocked,
.shift-chip.conflict {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
  box-shadow: none;
}

.shift-chip.warning,
.plan-day-card.warning,
.metric-card.warning {
  background: rgba(245, 200, 66, 0.12);
  border-color: rgba(245, 200, 66, 0.28);
}

.status-pill.ok,
.priority-pill.low,
.availability-pill.free,
.badge-btn,
.mini-action {
  background: rgba(245, 200, 66, 0.14);
  color: var(--success);
}

.status-pill.warn,
.priority-pill.medium,
.availability-pill.pending,
.warn-tag {
  background: rgba(245, 200, 66, 0.14);
  color: var(--warning);
}

.status-pill.danger,
.priority-pill.high,
.availability-pill.approved,
.mini-action.alt,
.allergen-pill.danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

th,
td {
  border-bottom-color: rgba(232, 130, 12, 0.14);
}

.table-wrap {
  border-color: var(--border);
}

.progress-ring {
  background: conic-gradient(var(--accent) var(--progress), rgba(245, 237, 224, 0.1) 0);
}

.mobile-section-jump {
  background: rgba(255, 250, 242, 0.96);
  backdrop-filter: blur(12px);
}

.brand-kicker,
.status-pill,
.tag,
.priority-pill,
.availability-pill,
.chat-tab,
.chat-urgent-toggle,
.day-check span,
.badge-pop,
.addon-item,
.chat-message,
.chat-message.own,
.chat-composer-box textarea,
.next-shift-banner,
.conflict-banner,
.shift-chip,
.plan-day-card,
.table-wrap,
.chat-room,
.inline-form,
.hero-stat {
  border-radius: var(--radius-xl);
}

@media (max-width: 760px) {
  .mobile-section-jump {
    background: rgba(255, 250, 242, 0.96);
  }
}

