@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./assets/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("./assets/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("./assets/fonts/inter-tight-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("./assets/fonts/inter-tight-latin-700-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #172026;
  --muted: #677178;
  --line: rgba(23, 32, 38, 0.13);
  --line-strong: rgba(193, 121, 45, 0.42);
  --surface: #fffdf8;
  --surface-soft: #f7f4ec;
  --page: #00131a;
  --sidebar: #00151b;
  --sidebar-soft: #061f28;
  --brand: #d9953b;
  --brand-bright: #f0bd6f;
  --brand-dark: #9a571b;
  --brand-soft: #fff5e6;
  --accent: #1f6f6a;
  --accent-strong: #104f4a;
  --blue: #2563a8;
  --amber: #b86b00;
  --red: #b13b3b;
  --green: #287a44;
  --shadow: 0 18px 42px rgba(0, 12, 17, 0.12);
  --shadow-strong: 0 28px 72px rgba(0, 12, 17, 0.28);
  font-family: "Inter Tight", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(16, 66, 76, 0.34), transparent 30rem),
    linear-gradient(180deg, #00131a 0%, #001820 44%, #001118 100%);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.auth-required {
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
  min-width: 0;
}

button {
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

img,
svg {
  max-width: 100%;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--brand-bright);
  outline-offset: 3px;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(0, 19, 26, 0.94), rgba(0, 11, 15, 0.98)),
    var(--page);
}

.auth-panel {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 1fr);
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(240, 189, 111, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 111, 0.08), transparent 42%),
    rgba(0, 21, 27, 0.96);
  color: #f6faf9;
  box-shadow: var(--shadow-strong);
}

.auth-brand {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
  padding: 10px;
}

.auth-brand .brand-mark {
  width: 72px;
  height: 72px;
}

.auth-brand h1 {
  margin: 0 0 8px;
  color: #fff5e8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 46px;
  line-height: 0.96;
}

.auth-brand p:last-child {
  margin: 0;
  color: rgba(246, 250, 249, 0.72);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  align-self: start;
}

.auth-tab {
  min-height: 38px;
  border: 1px solid rgba(240, 189, 111, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 250, 249, 0.76);
  font-weight: 900;
}

.auth-tab.active {
  border-color: rgba(240, 189, 111, 0.56);
  background: rgba(240, 189, 111, 0.12);
  color: var(--brand-bright);
}

.auth-form {
  display: none;
  grid-column: 2;
  gap: 10px;
  align-self: start;
  padding: 16px;
  border: 1px solid rgba(240, 189, 111, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  color: var(--ink);
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.auth-form input,
.auth-form select {
  min-height: 42px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 700;
}

.auth-message {
  grid-column: 2;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 111, 106, 0.22);
  border-radius: 8px;
  background: #eef7f4;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.auth-message[data-tone="error"] {
  border-color: #efb2a4;
  background: #fff0ed;
  color: var(--red);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background:
    radial-gradient(circle at 78% 8%, rgba(217, 149, 59, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(0, 21, 27, 0.12), rgba(0, 12, 17, 0.18));
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(0, 11, 15, 0.98), rgba(0, 21, 27, 0.96)),
    var(--sidebar);
  color: #f6faf9;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  border-right: 1px solid rgba(193, 121, 45, 0.2);
  box-shadow: inset -1px 0 0 rgba(240, 189, 111, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand > div {
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: block;
  border: 1px solid rgba(255, 221, 156, 0.72);
  border-radius: 6px;
  background: #001016;
  box-shadow: 0 0 16px rgba(0, 204, 220, 0.16), inset 0 1px 0 rgba(255, 221, 156, 0.18);
  overflow: hidden;
}

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

.brand span,
.source-box span,
.source-box small {
  display: block;
  color: rgba(246, 250, 249, 0.72);
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand strong,
.source-box strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand strong {
  color: #fff5e8;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.brand span {
  margin-top: 2px;
  color: var(--brand-bright);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.nav-tabs {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.nav-tab {
  border: 1px solid rgba(240, 189, 111, 0.14);
  color: rgba(246, 250, 249, 0.76);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px 13px;
  text-align: left;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-tab.active,
.nav-tab:hover {
  background: rgba(240, 189, 111, 0.1);
  color: var(--brand-bright);
  border-color: rgba(240, 189, 111, 0.56);
  transform: translateX(1px);
}

.source-box {
  margin-top: auto;
  border: 1px solid rgba(240, 189, 111, 0.18);
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 111, 0.06), transparent 48%),
    rgba(255, 255, 255, 0.045);
  display: grid;
  gap: 8px;
  min-width: 0;
}

.role-switcher {
  display: grid;
  gap: 5px;
  color: rgba(246, 250, 249, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.role-switcher select {
  min-height: 38px;
  border: 1px solid rgba(240, 189, 111, 0.26);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 700;
  width: 100%;
}

.advanced-toggle {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
  color: rgba(246, 250, 249, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.advanced-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
}

.workspace {
  min-width: 0;
  padding: 26px 26px 126px;
}

body.dock-menu-open .workspace {
  padding-bottom: 190px;
}

.command-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(240, 189, 111, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 245, 230, 0.88), rgba(255, 253, 248, 0.97) 50%),
    var(--surface);
  box-shadow: var(--shadow-strong);
}

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

.command-copy h2 {
  margin: 0 0 6px;
  color: #102228;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.command-copy p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.command-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.command-actions .secondary-action {
  min-width: 118px;
}

.command-chips {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.command-next-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.first-run-master {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 79, 74, 0.07), transparent 58%),
    rgba(255, 255, 255, 0.78);
}

.first-run-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.first-run-head h3,
.first-run-head p {
  margin: 0;
}

.first-run-head h3 {
  color: #102228;
  font-size: 18px;
}

.first-run-head p:last-child {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.first-run-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 4px 9px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.first-run-step span {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #102228;
  color: var(--brand-bright);
  font-size: 12px;
  font-weight: 900;
}

.first-run-step strong,
.first-run-step small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.first-run-step strong {
  font-size: 14px;
}

.first-run-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.first-run-step em {
  align-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f2f0ea;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.first-run-step.active {
  border-color: rgba(217, 149, 59, 0.58);
  background: #fff6e5;
}

.first-run-step.done {
  border-color: #cae4d0;
  background: #eef8f0;
}

.first-run-step.done span {
  background: var(--green);
  color: white;
}

.first-run-step.wait {
  opacity: 0.78;
}

.first-run-step:disabled {
  cursor: default;
}

.command-next-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

button.command-next-card {
  width: 100%;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

button.command-next-card:hover {
  border-color: rgba(217, 149, 59, 0.64);
  background: #fff8ec;
  transform: translateY(-1px);
}

.command-next-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.command-next-card strong {
  font-size: 16px;
}

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

.command-next-card.good {
  border-color: #cae4d0;
}

.command-next-card.warn {
  border-color: #f2d5a4;
}

.command-next-card.danger {
  border-color: #f4c8bf;
}

.command-chips span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(193, 121, 45, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.command-chips strong {
  color: var(--ink);
  font-size: 18px;
  text-transform: none;
}

.topbar,
.topbar-actions,
.section-head,
.filter-row {
  display: flex;
  gap: 12px;
}

.topbar {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(240, 189, 111, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 18, 24, 0.92), rgba(0, 26, 34, 0.82)),
    var(--sidebar);
  color: #f4ede5;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  min-width: 0;
}

.topbar > div:first-child {
  min-width: 0;
}

.topbar h1,
.section-head h2 {
  margin: 0;
}

.topbar h1 {
  color: #fff5e8;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.topbar .eyebrow {
  color: var(--brand-bright);
}

.topbar-actions,
.filter-row {
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.role-guide {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(240, 189, 111, 0.34);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 245, 230, 0.9), rgba(255, 253, 248, 0.98) 58%),
    var(--surface);
  box-shadow: var(--shadow-strong);
}

.role-guide.collapsed {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.quick-dock {
  position: fixed;
  left: 306px;
  right: 26px;
  bottom: 16px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(160px, 0.72fr) minmax(190px, 0.88fr) minmax(360px, 1.4fr);
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(240, 189, 111, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 111, 0.12), transparent 38%),
    rgba(0, 18, 24, 0.96);
  color: #f6faf9;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.quick-dock-status,
.quick-dock-primary,
.quick-dock-nav button,
.quick-dock-menu button {
  min-width: 0;
  border-radius: 6px;
}

.quick-dock-status {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(240, 189, 111, 0.16);
  background: rgba(255, 255, 255, 0.045);
}

.quick-dock-status span,
.quick-dock-primary span {
  color: var(--brand-bright);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-dock-status strong,
.quick-dock-primary strong,
.quick-dock-nav strong,
.quick-dock-menu strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-dock-status strong {
  color: #fff5e8;
  font-size: 17px;
  line-height: 1.05;
}

.quick-dock-status small,
.quick-dock-primary small,
.quick-dock-nav small,
.quick-dock-menu small {
  min-width: 0;
  color: rgba(246, 250, 249, 0.7);
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quick-dock-primary {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 221, 156, 0.56);
  background: linear-gradient(180deg, #e1a14e, #bd721e);
  color: #1a1208;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.quick-dock-primary span,
.quick-dock-primary small {
  color: rgba(26, 18, 8, 0.72);
}

.quick-dock-primary strong {
  font-size: 15px;
  line-height: 1.05;
}

.quick-dock-nav,
.quick-dock-menu {
  display: grid;
  gap: 6px;
}

.quick-dock-nav {
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
}

.quick-dock-menu {
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-top: 2px;
}

.quick-dock-nav button,
.quick-dock-menu button {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 58px;
  padding: 8px 9px;
  border: 1px solid rgba(240, 189, 111, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(246, 250, 249, 0.82);
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.quick-dock-menu button {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.07);
}

.quick-dock-nav button.active,
.quick-dock-menu button.active,
.quick-dock-nav button:hover,
.quick-dock-menu button:hover {
  border-color: rgba(240, 189, 111, 0.62);
  background: rgba(240, 189, 111, 0.13);
  color: var(--brand-bright);
}

.guide-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.guide-main h2 {
  margin: 0 0 6px;
  color: #102228;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  line-height: 1;
}

.guide-main p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.guide-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-content: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.guide-steps article span {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff1d4;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.guide-steps article strong {
  min-width: 0;
  font-size: 14px;
}

.guide-steps article p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.guide-procedure {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 245, 230, 0.74), rgba(255, 253, 248, 0.92)),
    #fffdf8;
}

.guide-procedure-head h3 {
  margin: 0;
  color: #102228;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.guide-procedure ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-procedure li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.guide-procedure li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #102228;
  color: var(--brand-bright);
  font-size: 12px;
  font-weight: 900;
}

.guide-procedure strong {
  display: block;
  min-width: 0;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.guide-procedure p {
  min-width: 0;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.guide-procedure p:last-child {
  margin-bottom: 0;
}

.guide-procedure b {
  color: var(--brand-dark);
  font-weight: 900;
}

.guide-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: start;
}

.guide-checklist,
.guide-cabinets {
  display: grid;
  gap: 8px;
}

.guide-checklist {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.guide-checklist span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(23, 32, 38, 0.11);
  border-radius: 999px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.guide-checklist .good {
  border-color: #cae4d0;
  background: #eef8f0;
  color: var(--green);
}

.guide-checklist .warn {
  border-color: #f2d5a4;
  background: #fff6e8;
  color: var(--amber);
}

.guide-checklist .danger {
  border-color: #efb2a4;
  background: #fff0ed;
  color: var(--red);
}

.guide-cabinets {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.guide-cabinets button,
.guide-collapsed-button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.guide-cabinets button.active {
  border-color: rgba(217, 149, 59, 0.72);
  background: #fff6e5;
  box-shadow: inset 0 0 0 1px rgba(217, 149, 59, 0.18);
}

.guide-cabinets strong,
.guide-collapsed-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guide-cabinets small,
.guide-collapsed-button small,
.guide-collapsed-button span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.guide-collapsed-button {
  width: 100%;
  border-color: rgba(240, 189, 111, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 245, 230, 0.86), rgba(255, 253, 248, 0.96)),
    var(--surface);
  box-shadow: var(--shadow);
}

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

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

.hotel-controls input {
  min-height: 40px;
  width: 130px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 5px;
  padding: 0 10px;
  color: var(--ink);
  background: #fffdf8;
  font-weight: 700;
}

.hotel-summary {
  display: grid;
  gap: 10px;
  padding: 0 16px 0;
}

.hotel-status-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(16, 79, 74, 0.06), transparent 58%),
    #fffdf8;
}

.hotel-status-hero.problem {
  background:
    linear-gradient(135deg, rgba(176, 69, 49, 0.08), transparent 58%),
    #fffdf8;
}

.hotel-status-hero.wait {
  background:
    linear-gradient(135deg, rgba(217, 149, 59, 0.1), transparent 58%),
    #fffdf8;
}

.hotel-status-hero h3,
.hotel-status-hero p {
  margin: 0;
}

.hotel-status-hero h3 {
  color: #102228;
  font-size: 20px;
  line-height: 1.15;
}

.hotel-status-hero p:last-child {
  color: var(--muted);
  line-height: 1.35;
}

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

.hotel-status-pill {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.hotel-status-pill span,
.hotel-status-pill small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hotel-status-pill strong {
  color: #102228;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 0.9;
}

.hotel-status-pill small {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.2;
  text-transform: none;
}

.hotel-status-pill.ready.active,
.hotel-status-pill.ready:hover {
  border-color: #cae4d0;
  background: #eef8f0;
}

.hotel-status-pill.problem.active,
.hotel-status-pill.problem:hover {
  border-color: #f4c8bf;
  background: #fff0ed;
}

.hotel-status-pill.wait.active,
.hotel-status-pill.wait:hover {
  border-color: #f2d5a4;
  background: #fff6e8;
}

.hotel-filter-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.assignment-summary {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(193, 121, 45, 0.2);
  border-radius: 5px;
  color: var(--muted);
  background: #fffdf8;
  font-size: 12px;
  font-weight: 800;
}

.workflow-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(193, 121, 45, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 111, 0.09), rgba(255, 253, 248, 0.96) 46%),
    #fffdf8;
  box-shadow: none;
}

.workflow-hero h2 {
  margin: 0 0 6px;
  color: #12242a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1.05;
}

.workflow-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.director-system-band {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(420px, 1.8fr) minmax(250px, 0.9fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
}

.director-system-band .workflow-hero {
  display: grid;
  gap: 10px;
  align-content: start;
  margin-bottom: 0;
  padding: 14px;
}

.director-system-band .workflow-hero h2 {
  font-size: 18px;
}

.director-system-band .workflow-hero p {
  font-size: 13px;
}

.director-system-band .workflow-hero button {
  width: fit-content;
  min-height: 34px;
}

.operation-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.director-system-band .operation-flow {
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 0;
}

.flow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.director-system-band .flow-step {
  align-content: start;
  align-items: center;
  min-height: 46px;
  padding: 10px;
}

.director-system-band .flow-step span {
  width: 24px;
  height: 24px;
}

.director-system-band .flow-step strong {
  font-size: 13px;
}

.director-system-band .flow-step small {
  display: none;
}

.flow-step span {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f8eddd;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.flow-step strong {
  min-width: 0;
  font-size: 14px;
}

.flow-step small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.flow-step.done {
  border-color: rgba(40, 122, 68, 0.24);
}

.flow-step.done span {
  background: #e8f5ed;
  color: var(--green);
}

.flow-step.active {
  border-color: rgba(240, 189, 111, 0.56);
  background: #fff8e8;
}

.flow-step.active span {
  background: linear-gradient(180deg, #f4c777, #d9913d);
  color: #15110c;
}

.room-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  padding: 16px;
}

.room-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(0, 12, 17, 0.04);
}

.room-card.blocked,
.room-card.critical {
  border-left: 4px solid var(--red);
}

.room-card.completed {
  border-left: 4px solid var(--amber);
}

.room-card.approved {
  border-left: 4px solid var(--green);
}

.room-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.room-card-top strong {
  font-size: 20px;
}

.room-card-top small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.room-card h3 {
  margin: 0;
  font-size: 16px;
}

.room-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.room-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef1f0;
  color: #59636c;
  font-size: 12px;
  font-weight: 900;
}

.room-status.completed {
  background: #fff3dc;
  color: var(--amber);
}

.room-status.approved {
  background: #e8f5ed;
  color: var(--green);
}

.room-status.blocked {
  background: #fff0ed;
  color: var(--red);
}

.room-facts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.room-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(23, 32, 38, 0.11);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.next-step {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: #fffdf8;
}

.next-step span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.next-step strong {
  font-size: 14px;
}

.next-step.good {
  border-color: #cae4d0;
  background: #eef8f0;
}

.next-step.warn {
  border-color: #f2d5a4;
  background: #fff8e8;
}

.next-step.danger {
  border-color: #f4c8bf;
  background: #fff0ed;
}

.next-step.active {
  border-color: #c9d9ef;
  background: #f0f6ff;
}

.room-worker {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.room-card-action .row-actions {
  justify-content: flex-start;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.date-chip {
  display: grid;
  gap: 4px;
  color: rgba(244, 237, 229, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.date-chip input,
.mapping-form input,
.mapping-form select,
.connector-form input,
.connector-form select,
.worker-select,
textarea {
  border: 1px solid rgba(23, 32, 38, 0.14);
  background: var(--surface);
  color: var(--ink);
  border-radius: 5px;
}

.date-chip input {
  min-height: 40px;
  padding: 0 12px;
  border-color: rgba(240, 189, 111, 0.3);
  background: rgba(0, 11, 15, 0.42);
  color: #fff5e8;
}

.mapping-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.connector-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.manual-import-panel {
  margin-bottom: 16px;
}

.manual-room-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px;
}

.manual-room-form label,
.manual-room-form .manual-notes {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.manual-room-form input,
.manual-room-form select {
  min-height: 40px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 700;
}

.manual-notes {
  grid-column: span 2;
}

.manual-room-draft {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
}

.manual-room-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.5fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.manual-room-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.manual-error {
  padding: 10px 12px;
  border: 1px solid #efb2a4;
  border-radius: 8px;
  background: #fff0ed;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.mapping-form label,
.connector-form label,
.settings-form label,
.worker-setting label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mapping-form input,
.mapping-form select,
.connector-form input,
.connector-form select,
.settings-form input,
.worker-setting input,
.worker-select {
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink);
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
}

.settings-form input,
.worker-setting input {
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 5px;
  background: #fffdf8;
}

.worker-settings-list {
  display: grid;
  gap: 10px;
}

.access-section {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.access-section h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.access-message {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.access-message[data-tone="error"] {
  border-color: #efb2a4;
  background: #fff0ed;
  color: var(--red);
}

.access-user-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
}

.access-user-card.disabled,
.access-user-card.rejected {
  background: #f7f2ea;
}

.access-user-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.access-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef1f0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.access-status.active {
  background: #e8f5ed;
  color: var(--green);
}

.access-status.disabled,
.access-status.rejected {
  background: #fff0ed;
  color: var(--red);
}

.worker-setting {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.worker-setting-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.worker-setting-head strong {
  min-width: 0;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
}

.toggle-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.toggle-row input {
  min-height: auto;
  width: 18px;
  height: 18px;
}

.readiness-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  padding: 16px;
}

.readiness-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.readiness-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-card strong {
  font-size: 22px;
}

.readiness-card.ready,
.readiness-card.ready_with_warnings {
  border-color: #cae4d0;
}

.readiness-card.not_ready,
.readiness-card.fail {
  border-color: #f4c8bf;
}

.readiness-card.warning {
  border-color: #f2d5a4;
}

.readiness-checks {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.readiness-check {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.readiness-check p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.readiness-check span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.readiness-check.pass {
  border-left: 4px solid var(--green);
}

.readiness-check.warning {
  border-left: 4px solid var(--amber);
}

.readiness-check.fail {
  border-left: 4px solid var(--red);
}

.cycle-monitor {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  padding: 16px;
}

.cycle-step {
  display: grid;
  gap: 5px;
  min-height: 112px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  padding: 12px;
}

.cycle-step strong {
  font-size: 14px;
}

.cycle-step span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.cycle-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.cycle-step.pass {
  border-left: 4px solid var(--green);
}

.cycle-step.pass span {
  background: #e8f5ed;
  color: #1d6b3b;
}

.cycle-step.wait {
  border-left: 4px solid var(--amber);
}

.cycle-step.wait span {
  background: #fff3dc;
  color: #8a5a00;
}

.runbook-panel {
  margin-top: 16px;
}

.runbook-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  padding: 16px;
}

.runbook-list {
  display: grid;
  gap: 8px;
}

.runbook-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  font-weight: 700;
}

.runbook-item input {
  width: 18px;
  height: 18px;
}

.runbook-contacts,
.runbook-rollback {
  display: grid;
  gap: 10px;
}

.runbook-contacts label,
.runbook-rollback label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.runbook-contacts input,
.runbook-rollback input,
.runbook-rollback textarea {
  min-height: 40px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--ink);
  padding: 8px 10px;
}

.runbook-rollback textarea {
  min-height: 120px;
  resize: vertical;
}

.signoff-status {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.signoff-status span {
  color: var(--muted);
  font-size: 13px;
}

.worker-select {
  width: 150px;
  background: white;
}

.mapping-columns {
  display: grid;
  gap: 16px;
}

.audit-panel {
  margin-top: 16px;
}

.audit-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.audit-controls input,
.audit-controls select {
  min-height: 40px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 5px;
  padding: 0 10px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 700;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 16px;
  padding: 16px;
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  padding: 0;
}

.audit-event {
  text-align: left;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
}

.audit-event.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.audit-detail {
  min-height: 240px;
  padding: 16px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.audit-detail h3 {
  margin: 0 0 12px;
}

.audit-summary {
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.45;
}

.audit-visibility {
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid rgba(31, 111, 106, 0.18);
  border-radius: 5px;
  background: #eef7f4;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.audit-detail dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 10px;
  margin: 0 0 14px;
  font-size: 13px;
}

.audit-detail dt {
  color: var(--muted);
  font-weight: 800;
}

.audit-detail dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.audit-json {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.audit-json summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 900;
}

.audit-changes {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.audit-change-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 5px;
  background: #fffaf0;
}

.audit-change-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.audit-change-row p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.audit-json pre {
  max-height: 180px;
  overflow: auto;
  margin: 0 0 8px;
  padding: 10px;
  border-radius: 5px;
  background: #fffaf0;
  border: 1px solid rgba(23, 32, 38, 0.1);
  color: var(--muted);
  font-size: 12px;
  white-space: pre-wrap;
}

.primary-action,
.secondary-action,
.small-action,
.filter-button {
  border: 1px solid transparent;
  border-radius: 5px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, filter 160ms ease;
}

.primary-action {
  border: 1px solid rgba(255, 246, 214, 0.36);
  background: linear-gradient(180deg, #f4c777 0%, #d9913d 100%);
  color: #15110c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 10px 26px rgba(0, 0, 0, 0.12),
    0 0 18px rgba(240, 189, 111, 0.12);
}

.secondary-action,
.small-action,
.filter-button {
  background: #fffdf8;
  color: #173137;
  border-color: rgba(23, 32, 38, 0.13);
}

.small-action.primary-small {
  background: linear-gradient(180deg, #f4c777 0%, #d9913d 100%);
  border-color: rgba(217, 149, 59, 0.72);
  color: #15110c;
}

.small-action.danger-small {
  border-color: rgba(176, 69, 49, 0.28);
  background: #fff0ed;
  color: var(--red);
}

.primary-action:hover,
.secondary-action:hover,
.small-action:hover,
.filter-button:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  filter: brightness(1.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 12px 30px rgba(0, 0, 0, 0.16),
    0 0 20px rgba(240, 189, 111, 0.16);
}

.secondary-action:hover,
.small-action:hover,
.filter-button:hover {
  border-color: rgba(217, 149, 59, 0.45);
  box-shadow: 0 6px 16px rgba(0, 12, 17, 0.06);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.filter-button {
  min-height: 32px;
  color: var(--muted);
}

.filter-button.active {
  color: var(--ink);
  border-color: rgba(217, 149, 59, 0.72);
  background: #fff6e5;
  box-shadow: inset 0 0 0 1px rgba(217, 149, 59, 0.22);
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-note {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  background: #fffdf8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.task-note.success {
  border-color: #cae4d0;
  background: #eef8f0;
  color: var(--green);
}

.task-note.warning {
  border-color: #f2d5a4;
  background: #fff6e8;
  color: var(--amber);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.metrics-grid,
.health-grid,
.import-report {
  display: grid;
  gap: 12px;
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-bottom: 16px;
}

.compact-metrics {
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  margin-bottom: 0;
}

.metric,
.health-card,
.panel-wide,
.side-panel,
.stack-item,
.worker-card {
  background: var(--surface);
  border: 1px solid rgba(240, 189, 111, 0.18);
  border-radius: 8px;
}

.metric {
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(240, 189, 111, 0.08), transparent 46%),
    #fffdf8;
  box-shadow: var(--shadow);
}

.compact-metrics .metric {
  padding: 12px;
  box-shadow: none;
}

.compact-metrics .metric strong {
  font-size: 24px;
}

.metric span,
.health-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric strong {
  display: block;
  margin-top: 6px;
  color: #102228;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  min-width: 0;
}

.panel-wide,
.side-panel {
  background: #fffdf8;
  box-shadow: var(--shadow-strong);
  min-width: 0;
}

.side-panel {
  padding: 16px;
}

.section-head {
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid rgba(193, 121, 45, 0.16);
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.72), rgba(255, 253, 248, 0));
}

.section-head.compact {
  padding: 0 0 12px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(23, 32, 38, 0.1);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.badge,
.priority,
.client-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.badge,
.priority.low,
.client-status.ready {
  color: var(--green);
  background: #eef8f0;
  border-color: #cae4d0;
}

.priority.critical,
.client-status.problem {
  color: var(--red);
  background: #fff0ed;
  border-color: #f4c8bf;
}

.priority.high {
  color: var(--amber);
  background: #fff6e8;
  border-color: #f2d5a4;
}

.client-status.wait {
  color: var(--amber);
  background: #fff6e8;
  border-color: #f2d5a4;
}

.priority.normal {
  color: var(--blue);
  background: #edf5ff;
  border-color: #c9d9ef;
}

.priority.blocked,
.client-status.open,
.client-status.waiting {
  color: #5b6168;
  background: #f1f3f4;
  border-color: #d8dde1;
}

.safe-timeline {
  display: grid;
  min-width: 240px;
  gap: 4px;
  white-space: normal;
}

.safe-timeline span {
  display: inline-flex;
  width: fit-content;
  max-width: 320px;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f7f4ec;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.safe-timeline .ready {
  color: var(--green);
  background: #eef8f0;
}

.safe-timeline .problem {
  color: var(--red);
  background: #fff0ed;
}

.safe-timeline .waiting {
  color: var(--amber);
  background: #fff6e8;
}

.publish-log-panel {
  margin-top: 16px;
}

.publish-log {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 16px;
}

.publish-log-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #fffdf8;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
}

.publish-log-item span {
  color: var(--muted);
  font-size: 13px;
}

.stack-list,
.mobile-list {
  display: grid;
  gap: 10px;
}

.stack-item,
.worker-card {
  padding: 12px;
  background: #fffdf8;
  min-width: 0;
}

.stack-item strong,
.stack-item p,
.worker-card strong,
.worker-card p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.worker-card.critical,
.worker-card.blocked {
  border-left: 4px solid var(--red);
}

.worker-card.high {
  border-left: 4px solid var(--amber);
}

.worker-card.normal {
  border-left: 4px solid var(--blue);
}

.worker-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.worker-card h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.worker-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.worker-meta span,
.worker-next {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(23, 32, 38, 0.11);
  border-radius: 999px;
  background: #fffaf0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.worker-next {
  width: fit-content;
  margin-top: 8px;
  border-color: rgba(217, 149, 59, 0.24);
  background: #fff6e5;
  color: var(--brand-dark);
}

.problem-label {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stack-item p,
.worker-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.phone-frame {
  max-width: 420px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(0, 11, 15, 0.98), rgba(0, 22, 29, 0.98)),
    var(--sidebar);
  border: 1px solid rgba(240, 189, 111, 0.28);
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.38), 0 0 24px rgba(240, 189, 111, 0.06);
}

.phone-top {
  color: #fff5e8;
  display: flex;
  justify-content: space-between;
  padding: 10px 8px 16px;
  font-size: 13px;
}

.phone-top strong {
  color: var(--brand-bright);
}

.worker-picker {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
  padding: 0 4px;
  color: rgba(246, 250, 249, 0.72);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.worker-picker span {
  color: rgba(246, 250, 249, 0.72);
}

.worker-picker select {
  min-height: 38px;
  border: 1px solid rgba(240, 189, 111, 0.24);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 900;
}

.worker-picker strong {
  display: block;
  min-height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(240, 189, 111, 0.24);
  border-radius: 8px;
  background: var(--sidebar-soft);
  color: #f6faf9;
  font-size: 14px;
}

.worker-brief {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(240, 189, 111, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(240, 189, 111, 0.08), transparent 52%),
    var(--sidebar-soft);
  color: #f6faf9;
}

.worker-brief strong {
  font-size: 18px;
}

.worker-brief span,
.worker-brief small {
  color: rgba(246, 250, 249, 0.72);
}

.worker-focus {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.worker-focus-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(240, 189, 111, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 245, 230, 0.94), rgba(255, 253, 248, 0.98) 56%),
    var(--surface);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.worker-focus-card.critical,
.worker-focus-card.blocked {
  border-color: rgba(177, 59, 59, 0.36);
  box-shadow: inset 4px 0 0 var(--red), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.worker-focus-card.high {
  border-color: rgba(184, 107, 0, 0.32);
  box-shadow: inset 4px 0 0 var(--amber), 0 16px 34px rgba(0, 0, 0, 0.18);
}

.worker-focus-card h2,
.worker-focus-card h3,
.worker-focus-card p {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.worker-focus-card h2 {
  color: #102228;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 0.98;
}

.worker-focus-card h3 {
  color: var(--ink);
  font-size: 18px;
}

.worker-focus-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.worker-focus-top,
.worker-focus-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.worker-focus-top {
  justify-content: space-between;
}

.worker-focus-top span,
.worker-focus-top strong,
.worker-focus-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.worker-focus-top span {
  background: #102228;
  color: var(--brand-bright);
  text-transform: uppercase;
}

.worker-focus-top strong,
.worker-focus-meta span {
  border: 1px solid rgba(23, 32, 38, 0.1);
  background: #fffaf0;
  color: var(--muted);
}

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

.worker-focus-actions.problem-mode {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.worker-focus-actions button {
  min-height: 50px;
  border-radius: 8px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  background: #fffdf8;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.worker-focus-actions .worker-focus-main {
  grid-column: 1 / -1;
}

.worker-focus-actions .worker-primary {
  background: linear-gradient(180deg, #f4c777 0%, #d9913d 100%);
  border-color: rgba(217, 149, 59, 0.72);
  color: #15110c;
}

.worker-focus-actions .worker-problem {
  background: #fff0ed;
  border-color: #f4c8bf;
  color: var(--red);
}

.worker-focus-actions .worker-done {
  background: #eef8f0;
  border-color: #cae4d0;
  color: var(--green);
}

.worker-focus-actions button:disabled {
  color: #98a2a8;
  background: #f2f0ea;
}

.worker-queue-heading {
  padding: 2px 2px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.worker-sync-details {
  margin-bottom: 10px;
  border: 1px solid rgba(240, 189, 111, 0.16);
  border-radius: 8px;
  background: rgba(6, 31, 40, 0.78);
  color: white;
}

.worker-sync-details summary {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.worker-sync-details .sync-controls,
.worker-sync-details .queue-summary {
  padding: 0 8px 8px;
}

.sync-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}

.sync-button {
  min-height: 34px;
  border-radius: 5px;
  border: 1px solid rgba(240, 189, 111, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f6faf9;
  font-size: 12px;
  font-weight: 800;
}

.sync-button:disabled {
  color: #789;
  background: rgba(0, 0, 0, 0.12);
}

.queue-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 8px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.queue-summary span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 189, 111, 0.12);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.16);
}

.mobile-list {
  background: #f7f4ec;
  border: 1px solid rgba(240, 189, 111, 0.18);
  border-radius: 18px;
  padding: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.worker-card-compact {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-left-width: 4px;
  border-radius: 10px;
  color: var(--ink);
  text-align: left;
}

.worker-card-compact span,
.worker-card-compact strong,
.worker-card-compact small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.worker-card-compact span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.worker-card-compact small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.worker-completed-note {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #cae4d0;
  border-radius: 8px;
  background: #eef8f0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.worker-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.problem-select {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  border: 1px solid rgba(23, 32, 38, 0.14);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 700;
}

.worker-actions button {
  min-height: 34px;
  border-radius: 5px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  background: #fffdf8;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.worker-actions .worker-main-action {
  grid-column: 1 / -1;
  min-height: 44px;
  font-size: 14px;
}

.worker-actions .worker-primary {
  background: linear-gradient(180deg, #f4c777 0%, #d9913d 100%);
  border-color: rgba(217, 149, 59, 0.72);
  color: #15110c;
}

.worker-actions .worker-problem {
  background: #fff0ed;
  border-color: #f4c8bf;
  color: var(--red);
}

.worker-actions .worker-done {
  background: #eef8f0;
  border-color: #cae4d0;
  color: var(--green);
}

.hotel-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  padding: 16px;
}

.hotel-room-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(0, 12, 17, 0.04);
}

.hotel-room-card.ready {
  border-left: 4px solid var(--green);
}

.hotel-room-card.problem {
  border-left: 4px solid var(--red);
}

.hotel-room-card.wait {
  border-left: 4px solid var(--amber);
}

.hotel-room-card.waiting {
  border-left: 4px solid var(--amber);
}

.hotel-room-head,
.hotel-room-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.hotel-room-head strong {
  display: block;
  color: #102228;
  font-size: 28px;
  line-height: 1;
}

.hotel-room-head span:not(.client-status) {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hotel-room-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.hotel-room-signal {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: #fffaf0;
}

.hotel-room-signal span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hotel-room-signal strong {
  font-size: 18px;
}

.hotel-room-signal p {
  color: var(--muted);
  line-height: 1.35;
}

.hotel-room-facts span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.queue-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.queue-item {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: #eef5f4;
  color: var(--ink);
  font-size: 12px;
}

.queue-item span,
.queue-item p {
  margin: 0;
  color: var(--muted);
}

.queue-item.failed {
  background: #fff0ed;
}

.queue-item.synced {
  background: #eef8f0;
}

.queue-item.syncing,
.queue-item.pending {
  background: #fff6e8;
}

.queue-section {
  margin-top: 16px;
}

.fallback-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.fallback-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.fallback-card span,
.adapter-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fallback-card strong {
  font-size: 17px;
}

.fallback-card p,
.adapter-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.fallback-card.good {
  border-color: #cae4d0;
  background: #eef8f0;
}

.fallback-card.warn {
  border-color: #f2d5a4;
  background: #fff8e8;
}

.fallback-card.danger {
  border-color: #efb2a4;
  background: #fff0ed;
}

.adapter-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.simulation-lab {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.production-console {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.production-readiness,
.tenant-setup-board,
.contract-readiness {
  display: grid;
  gap: 10px;
}

.production-score,
.contract-gate-hero {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.production-score span,
.contract-gate-hero span,
.monitor-card span,
.tenant-setup-item span,
.tenant-hotel-card span,
.production-alert p,
.contract-gate-item span,
.contract-gate-item p,
.tenant-contract p,
.tenant-contract small,
.required-hotel-box span {
  color: var(--muted);
  font-size: 12px;
}

.production-score strong,
.contract-gate-hero strong {
  font-size: 22px;
}

.production-score p,
.contract-gate-hero p,
.production-alert p,
.tenant-contract p,
.contract-gate-item p {
  margin: 0;
  line-height: 1.4;
}

.production-score.go_live_ready,
.contract-gate-hero.go_live_ready {
  border-color: #cae4d0;
  background: #eef8f0;
}

.production-score.pilot_ready,
.contract-gate-hero.pilot_ready {
  border-color: #ead7a2;
  background: #fff8e8;
}

.production-monitor-grid,
.tenant-setup-list,
.contract-gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.monitor-card,
.tenant-setup-item,
.contract-gate-item,
.tenant-hotel-card,
.production-alert,
.required-hotel-box {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.monitor-card,
.tenant-setup-item,
.contract-gate-item {
  display: grid;
  gap: 4px;
}

.monitor-card.pass,
.tenant-setup-item.pass,
.contract-gate-item.pass,
.production-alert.good {
  border-color: #cae4d0;
  background: #eef8f0;
}

.monitor-card.warning,
.tenant-setup-item.warning,
.contract-gate-item.warning,
.production-alert.warn {
  border-color: #ead7a2;
  background: #fff8e8;
}

.monitor-card.fail,
.tenant-setup-item.fail,
.contract-gate-item.fail,
.production-alert.danger {
  border-color: #efb2a4;
  background: #fff0ed;
}

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

.tenant-hotel-card {
  display: grid;
  gap: 10px;
}

.tenant-contract {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(23, 32, 38, 0.1);
}

.production-alerts {
  display: grid;
  gap: 8px;
}

.production-alert strong {
  display: block;
  margin-bottom: 3px;
}

.required-hotel-box {
  display: grid;
  gap: 10px;
}

.required-hotel-box div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.required-hotel-box span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef1f0;
  font-weight: 900;
}

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

.sim-hotel-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.sim-hotel-card span,
.sim-hotel-card small,
.simulation-note,
.simulation-run small {
  color: var(--muted);
  font-size: 12px;
}

.sim-hotel-card > div:first-child span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sim-hotel-card strong {
  display: block;
  margin-top: 3px;
}

.sim-hotel-card p,
.simulation-run p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.sim-hotel-card small {
  display: block;
  line-height: 1.35;
}

.sim-hotel-metrics,
.simulation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-hotel-metrics span,
.simulation-summary span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef1f0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.simulation-result {
  display: grid;
  gap: 10px;
}

.simulation-note {
  padding: 10px 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  font-weight: 800;
}

.simulation-note.good {
  border-color: #cae4d0;
  background: #eef8f0;
  color: var(--green);
}

.simulation-note.danger {
  border-color: #efb2a4;
  background: #fff0ed;
  color: var(--red);
}

.simulation-runs {
  display: grid;
  gap: 8px;
}

.simulation-run {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #cae4d0;
  border-radius: 8px;
  background: #eef8f0;
}

.adapter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
}

.adapter-card strong {
  display: block;
  margin-top: 3px;
}

.adapter-card em {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f3f4;
  color: #5b6168;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.adapter-card.ready em {
  background: #eef8f0;
  color: var(--green);
}

.adapter-card.requires_credentials em {
  background: #fff6e8;
  color: var(--amber);
}

.adapter-card p {
  grid-column: 1 / -1;
}

.writeback-queue {
  display: grid;
  gap: 8px;
}

.writeback-job {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  font-size: 12px;
}

.writeback-job strong,
.writeback-job span,
.writeback-job p {
  margin: 0;
}

.writeback-job span,
.writeback-job p {
  color: var(--muted);
}

.writeback-job.sent {
  border-color: #a8d5b1;
  background: #eef8f0;
}

.writeback-job.failed {
  border-color: #efb2a4;
  background: #fff0ed;
}

.writeback-job.pending {
  border-color: #efd19a;
  background: #fff8e8;
}

.review-card {
  border-left: 4px solid var(--accent);
}

.health-grid {
  grid-template-columns: repeat(3, 1fr);
  padding: 16px;
}

.health-card {
  padding: 14px;
  background: #fffdf8;
}

.health-card strong {
  display: block;
  margin-top: 6px;
}

textarea {
  width: calc(100% - 32px);
  min-height: 300px;
  margin: 16px;
  resize: vertical;
  padding: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.5;
}

.import-report {
  grid-template-columns: repeat(4, 1fr);
  padding: 0 16px 16px;
}

.preview-report {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 16px 16px;
}

.preview-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfb;
}

.preview-card strong {
  display: block;
  margin-bottom: 8px;
}

.preview-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.history-wrap {
  border-top: 1px solid var(--line);
  padding: 16px;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfcfb;
  color: var(--muted);
  font-size: 13px;
}

.empty {
  color: var(--muted);
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

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

  .quick-dock {
    left: 16px;
    right: 16px;
    grid-template-columns: minmax(150px, 0.68fr) minmax(180px, 0.86fr) minmax(320px, 1.3fr);
  }

  .sidebar {
    gap: 14px;
    padding-bottom: 16px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .nav-tabs {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .source-box {
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) auto;
    align-items: end;
    margin-top: 0;
    gap: 10px;
  }

  .source-box span,
  .source-box small {
    font-size: 12px;
  }

  .source-box > small,
  .source-box > strong {
    grid-column: 1;
  }

  .role-switcher {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .advanced-toggle {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
    white-space: nowrap;
  }

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

  .director-system-band {
    grid-template-columns: 1fr;
  }

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

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

  .metrics-grid,
  .health-grid,
  .import-report,
  .preview-report,
  .readiness-summary,
  .cycle-monitor,
  .manual-room-form,
  .fallback-panel,
  .command-chips,
  .command-next-list {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .operation-flow {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 900px) {
  #director .table-wrap,
  #hotel .table-wrap {
    overflow-x: visible;
  }

  #director table,
  #hotel table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  #director thead,
  #hotel thead {
    display: none;
  }

  #director tbody,
  #hotel tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  #director tr,
  #hotel tr {
    display: grid;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  #director td,
  #hotel td {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }

  #director td:last-child,
  #hotel td:last-child {
    border-bottom: 0;
  }

  #director td::before,
  #hotel td::before {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  #director td:nth-child(1)::before { content: "Zimmer"; }
  #director td:nth-child(2)::before { content: "Leistung"; }
  #director td:nth-child(3)::before { content: "Priorität"; }
  #director td:nth-child(4)::before { content: "Status"; }
  #director td:nth-child(5)::before { content: "Mitarbeiter"; }
  #director td:nth-child(6)::before { content: "Frist"; }
  #director td:nth-child(7)::before { content: "Aktion"; }

  #hotel td:nth-child(1)::before { content: "Zimmer"; }
  #hotel td:nth-child(2)::before { content: "Status"; }
  #hotel td:nth-child(3)::before { content: "Freigegeben"; }
  #hotel td:nth-child(4)::before { content: "Hinweis"; }
  #hotel td:nth-child(5)::before { content: "Hotelnotiz"; }
  #hotel td:nth-child(6)::before { content: "Verlauf"; }
  #hotel td:nth-child(7)::before { content: "Aktualisiert"; }

  #director td[colspan],
  #hotel td[colspan] {
    display: block;
  }

  #director td[colspan]::before,
  #hotel td[colspan]::before {
    content: "";
  }

  .worker-select {
    width: 100%;
    max-width: 260px;
  }

  #director .row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .app-shell,
  .workspace,
  .sidebar,
  .topbar,
  .role-guide,
  .command-center {
    width: 100%;
    max-width: 100%;
  }

  .workspace,
  .sidebar {
    padding: 16px;
    overflow-x: clip;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    padding: 10px 10px 154px;
  }

  body.dock-menu-open .workspace {
    padding-bottom: 244px;
  }

  .quick-dock {
    left: 8px;
    right: 8px;
    bottom: 8px;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 8px;
  }

  .quick-dock-status {
    display: none;
  }

  .quick-dock-primary {
    min-height: 46px;
    padding: 8px 10px;
  }

  .quick-dock-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .quick-dock-nav button,
  .quick-dock-menu button {
    min-height: 48px;
    padding: 7px 6px;
    text-align: center;
  }

  .source-box {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .source-box > small,
  .source-box > strong {
    grid-column: auto;
  }

  .role-switcher {
    grid-column: auto;
    grid-row: auto;
  }

  .advanced-toggle {
    grid-column: auto;
    grid-row: auto;
  }

  .topbar,
  .topbar-actions,
  .section-head,
  .board-controls,
  .hotel-controls,
  .audit-controls,
  .nav-tabs,
  .workflow-hero,
  .guide-main,
  .guide-bottom,
  .command-center,
  .command-actions {
    display: grid;
  }

  .section-head,
  .board-controls,
  .hotel-controls,
  .audit-controls {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
  }

  .board-controls button,
  .hotel-controls input,
  .audit-controls input,
  .audit-controls select {
    width: 100%;
  }

  body[data-role="hotel"] #hotel .metrics-grid,
  body[data-role="hotel_manager"] #hotel .metrics-grid {
    display: none;
  }

  body[data-role="hotel"] .publish-log-panel {
    display: none;
  }

  .hotel-summary {
    padding: 0 10px;
  }

  .hotel-status-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .hotel-status-hero .secondary-action {
    width: 100%;
  }

  #hotelStatusFilters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }

  #hotelStatusFilters .filter-button {
    width: 100%;
    padding: 0 6px;
  }

  .hotel-status-pills {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hotel-status-pill {
    min-height: 68px;
    padding: 8px;
  }

  .hotel-status-pill strong {
    font-size: 26px;
  }

  .hotel-status-pill small {
    font-size: 10px;
  }

  .hotel-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .hotel-room-card {
    gap: 8px;
    padding: 12px;
    box-shadow: none;
  }

  .hotel-room-head {
    align-items: flex-start;
  }

  .hotel-room-head strong {
    font-size: 30px;
  }

  .hotel-room-signal {
    padding: 10px;
  }

  .hotel-room-signal strong {
    font-size: 17px;
  }

  body[data-role="hotel"] .hotel-room-facts {
    display: none;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    position: sticky;
    top: 0;
    z-index: 8;
    margin: -10px -10px 10px;
    padding: 12px 14px;
    border-radius: 0 0 8px 8px;
  }

  .topbar h1 {
    font-size: 28px;
    line-height: 1;
  }

  .topbar .eyebrow {
    font-size: 11px;
  }

  .topbar-actions {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
  }

  .topbar-actions {
    display: none;
  }

  .topbar-actions button,
  .topbar-actions .date-chip,
  .date-chip input {
    width: 100%;
  }

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

  .nav-tab {
    padding: 10px;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .guide-main,
  .guide-bottom,
  .guide-procedure ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .guide-actions button {
    width: 100%;
  }

  .role-guide.collapsed {
    display: none;
  }

  .role-guide:not(.collapsed) {
    margin-bottom: 10px;
    padding: 12px;
  }

  .guide-steps,
  .guide-bottom,
  .guide-procedure {
    display: none;
  }

  .command-center {
    gap: 10px;
    margin-bottom: 10px;
    padding: 14px;
    box-shadow: var(--shadow);
  }

  .command-copy h2 {
    font-size: 27px;
  }

  .command-copy p:last-child {
    font-size: 14px;
  }

  .command-actions .secondary-action,
  .command-next-list,
  .director-system-band,
  #director .side-panel {
    display: none;
  }

  .command-actions .primary-action {
    width: 100%;
    min-height: 48px;
  }

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

  .command-chips span:nth-child(n+5),
  #director .board-controls {
    display: none;
  }

  body.needs-day-start .command-chips {
    display: none;
  }

  body.needs-day-start .command-next-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  body.needs-day-start .command-next-card {
    min-height: 66px;
  }

  .first-run-master {
    padding: 10px;
  }

  .first-run-head,
  .first-run-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .first-run-head .secondary-action {
    width: 100%;
  }

  .first-run-step {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    min-height: 64px;
  }

  .first-run-step span {
    grid-row: span 3;
  }

  .first-run-step strong {
    line-height: 1.15;
  }

  .first-run-step em {
    grid-column: 2;
    justify-self: start;
  }

  body[data-role="director"].needs-day-start .first-run-master {
    gap: 8px;
    padding: 9px;
  }

  body[data-role="director"].needs-day-start .first-run-head {
    gap: 8px;
  }

  body[data-role="director"].needs-day-start .first-run-head h3 {
    font-size: 17px;
  }

  body[data-role="director"].needs-day-start .first-run-head p:last-child {
    font-size: 12px;
  }

  body[data-role="director"].needs-day-start .first-run-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-role="director"].needs-day-start .first-run-step {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 5px;
    min-height: 88px;
    padding: 8px;
  }

  body[data-role="director"].needs-day-start .first-run-step span {
    grid-row: auto;
    width: 26px;
    height: 26px;
  }

  body[data-role="director"].needs-day-start .first-run-step strong {
    font-size: 12px;
    line-height: 1.15;
  }

  body[data-role="director"].needs-day-start .first-run-step small {
    display: none;
  }

  body[data-role="director"].needs-day-start .first-run-step em {
    grid-column: auto;
    justify-self: start;
    padding: 3px 6px;
    font-size: 10px;
  }

  .room-card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0 0;
  }

  .connector-form,
  .settings-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-user-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .access-user-card .row-actions,
  .access-user-card .small-action {
    width: 100%;
  }

  .worker-setting-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .worker-setting-head .small-action {
    width: 100%;
  }

  .connector-form label,
  .settings-form label,
  .toggle-row {
    width: 100%;
    min-width: 0;
  }

  body[data-role="worker"] .brand,
  body[data-role="worker"] .nav-tabs,
  body[data-role="worker"] .topbar {
    display: none;
  }

  body[data-role="worker"] .sidebar {
    padding: 10px 12px;
  }

  body[data-role="worker"] .source-box {
    margin-top: 0;
    padding: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 1fr);
  }

  body[data-role="worker"] .source-box > span,
  body[data-role="worker"] #roleAccessSummary {
    display: none;
  }

  body[data-role="worker"] .source-box > strong,
  body[data-role="worker"] .source-box > small {
    grid-column: 1;
  }

  body[data-role="worker"] .role-switcher {
    display: none;
  }

  body[data-role="worker"] .workspace {
    padding-top: 12px;
    padding-bottom: 154px;
  }

  body[data-role="worker"] .phone-frame {
    margin-top: 0;
  }

  .command-center {
    grid-template-columns: 1fr;
  }

  .command-actions {
    justify-content: stretch;
  }

  .command-actions button {
    width: 100%;
  }

  .metrics-grid,
  .health-grid,
  .import-report,
  .preview-report,
  .readiness-summary,
  .cycle-monitor,
  .manual-room-form,
  .manual-room-row,
  .fallback-panel,
  .guide-steps,
  .guide-cabinets,
  .guide-checklist,
  .guide-procedure ol,
  .command-chips,
  .command-next-list,
  .history-row {
    grid-template-columns: 1fr;
  }

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

  .auth-form,
  .auth-message {
    grid-column: 1;
  }

  .manual-notes {
    grid-column: auto;
  }

  #director .metrics-grid,
  #hotel .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation-flow {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 0;
  }

  .worker-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .auth-gate {
    padding: 16px;
  }

  .auth-panel {
    padding: 16px;
  }

  .topbar h1 {
    font-size: 28px;
  }

  .workspace {
    padding-bottom: 142px;
  }

  body.dock-menu-open .workspace {
    padding-bottom: 228px;
  }

  .quick-dock-nav button,
  .quick-dock-menu button {
    min-height: 42px;
  }

  .quick-dock-nav small {
    display: none;
  }

  .quick-dock-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-dock-primary small,
  .quick-dock-menu small {
    font-size: 10px;
  }

  .source-box {
    grid-template-columns: 1fr;
  }

  .nav-tabs {
    grid-template-columns: 1fr;
  }

  .source-box > small,
  .source-box > strong,
  .role-switcher,
  .advanced-toggle {
    grid-column: auto;
    grid-row: auto;
  }
}

body.guide-open {
  overflow: hidden;
}

.role-guide {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.role-guide.collapsed {
  display: none;
}

.role-guide.open {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  padding: 24px;
}

.guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 24, 0.62);
  backdrop-filter: blur(6px);
}

.guide-widget {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(240, 189, 111, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 245, 230, 0.94), rgba(255, 253, 248, 0.99) 56%),
    var(--surface);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.guide-widget-head,
.guide-now {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.guide-widget-head h2 {
  margin: 0 0 6px;
  color: #102228;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 0.98;
}

.guide-widget-head p,
.guide-now p,
.guide-simple-steps p,
.guide-map small,
.guide-safety li {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.guide-close {
  min-width: 118px;
}

.guide-role-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.guide-role-tabs button,
.guide-map button {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 32, 38, 0.12);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
}

.guide-role-tabs button.active {
  border-color: rgba(217, 149, 59, 0.72);
  background: #fff5e6;
  box-shadow: inset 0 0 0 1px rgba(217, 149, 59, 0.2);
}

.guide-role-tabs strong,
.guide-map strong,
.guide-now strong,
.guide-simple-steps strong,
.guide-safety strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.guide-role-tabs small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.guide-now {
  padding: 14px;
  border: 1px solid rgba(217, 149, 59, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 189, 111, 0.18), transparent 58%),
    #fff9ed;
}

.guide-now span {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.guide-now strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.06;
}

.guide-simple-section,
.guide-map-section {
  display: grid;
  gap: 9px;
}

.guide-simple-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-simple-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 32, 38, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.guide-simple-steps li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #102228;
  color: var(--brand-bright);
  font-size: 12px;
  font-weight: 900;
}

.guide-simple-steps strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 14px;
}

.guide-simple-steps small {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.guide-simple-steps p {
  font-size: 13px;
}

.guide-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.guide-map button {
  min-height: 54px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, background 160ms ease;
}

.guide-map button:hover {
  border-color: rgba(217, 149, 59, 0.62);
  background: #fff5e6;
}

.guide-safety {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(177, 59, 59, 0.18);
  border-radius: 8px;
  background: #fff5f2;
}

.guide-safety strong {
  color: var(--red);
}

.guide-safety ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.guide-widget-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .role-guide.open {
    display: grid;
    place-items: end stretch;
    padding: 0;
  }

  .guide-backdrop {
    background: rgba(0, 18, 24, 0.7);
  }

  .guide-widget {
    width: 100%;
    max-height: 100dvh;
    padding: 14px 12px calc(16px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .guide-widget-head,
  .guide-now,
  .guide-simple-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-widget-head h2 {
    font-size: 28px;
  }

  .guide-close,
  .guide-now .primary-action,
  .guide-widget-actions button {
    width: 100%;
  }

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

  .guide-role-tabs button {
    min-height: 54px;
    padding: 9px;
    text-align: center;
  }

  .guide-simple-steps li {
    padding: 10px;
  }

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

  .guide-widget-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}
