:root {
  --paper: #f7f5ef;
  --white: #fffefa;
  --ink: #232c2b;
  --muted: #63706c;
  --line: #dedfd6;
  --orange: #a43c19;
  --orange-soft: #f8e5d7;
  --green: #276551;
  --shadow: 0 12px 35px #182f2510;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--orange);
}
button {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.35;
}
button:hover {
  background: #34433e;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  color: var(--ink);
  background: #e9ece4;
}
button.quiet,
a.quiet {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 8px 0;
  text-decoration: none;
  font-weight: 550;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #bfc6bd;
  background: var(--white);
  border-radius: 7px;
  color: var(--ink);
  margin-top: 7px;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 18px 0;
}
label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  line-height: 1.5;
}
label.check input {
  width: 18px;
  margin: 3px 0 0;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 550;
}
h2 {
  font-size: 1.65rem;
  letter-spacing: -0.025em;
  font-weight: 600;
}
h3 {
  font-size: 1rem;
  font-weight: 650;
}
p {
  line-height: 1.6;
}
.eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  font-weight: 750;
  color: var(--muted);
  margin-bottom: 20px;
}
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--ink);
  font-size: 1.65rem;
  font-weight: 750;
  letter-spacing: -0.065em;
}
.brand-mark {
  color: var(--orange);
  font-size: 2rem;
}
.login-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-story {
  padding: 48px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #e9ede3;
}
.login-story .brand {
  position: absolute;
  top: 35px;
}
.login-story .eyebrow {
  margin-top: 70px;
}
.story-copy {
  max-width: 29rem;
  color: #59665f;
}
.story-footer {
  margin-top: 65px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  color: #64725f;
}
.login-panel {
  padding: 60px 9vw;
  display: flex;
  align-items: center;
}
.login-panel form {
  width: 100%;
  max-width: 380px;
}
.login-panel button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}
.error {
  color: #a02921;
  font-size: 0.85rem;
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.workspace {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100dvh;
}
.sidebar {
  padding: 25px 20px;
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.sidebar > .eyebrow {
  margin: 38px 12px 12px;
}
.nav-item {
  display: block;
  width: 100%;
  text-align: left;
  color: #5c6660;
  background: none;
  padding: 12px;
  margin: 3px 0;
  font-size: 0.86rem;
  font-weight: 550;
}
.nav-item:hover {
  background: #e9ece3;
}
.nav-item.active {
  background: #e2e9dc;
  color: #203b29;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.sidebar-bottom p {
  overflow-wrap: anywhere;
  margin: 0;
}
.main {
  padding: 0 42px;
  min-width: 0;
}
.topbar {
  height: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  gap: 16px;
}
.topbar > span {
  font-weight: 650;
}
.page-heading {
  padding: 34px 0 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.page-heading h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.page-heading .eyebrow {
  margin-bottom: 12px;
}
.page-heading p {
  max-width: 620px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 10px 0 25px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.stat strong {
  display: block;
  font-size: 2.2rem;
  letter-spacing: -0.04em;
  font-weight: 550;
  margin: 15px 0 5px;
}
.stat span {
  font-size: 0.75rem;
  color: var(--muted);
}
.stat h3 {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items: start;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 22px;
  overflow: hidden;
}
.card h2 {
  font-size: 1.15rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.empty {
  padding: 35px 15px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.empty strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border: 0;
}
.row p {
  margin: 0;
  font-size: 0.85rem;
}
.row small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 4px;
}
.badge {
  font-size: 0.67rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 9px;
  background: #e8eee4;
  color: #33543c;
  border-radius: 4px;
  white-space: nowrap;
}
.badge.pending {
  background: #f5ead9;
  color: #76562a;
}
.notice {
  padding: 13px 16px;
  background: var(--orange-soft);
  color: #6c311b;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 0.85rem;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  text-align: left;
}
th {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
td select {
  min-width: 105px;
  padding: 6px;
  margin: 0;
  font-size: 0.8rem;
}
td button {
  padding: 6px 10px;
  font-size: 0.78rem;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 18px;
}
.workspace-footer {
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.72rem;
}
.detail {
  margin-top: 20px;
  background: #f1f2eb;
  padding: 22px;
  border-radius: 10px;
}
.message {
  max-width: 85%;
  background: #e9eee4;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 0.9rem;
}
.message.user {
  margin-left: auto;
  background: var(--ink);
  color: white;
}
.message small {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  opacity: 0.75;
  margin-bottom: 6px;
}
.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.status-grid .row {
  padding: 10px;
  background: var(--paper);
  border: 0;
  border-radius: 6px;
}
.skip {
  position: fixed;
  top: -60px;
  left: 12px;
  background: var(--ink);
  color: white;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid #b95832;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.guide-body {
  background: var(--paper);
}
.guide-shell {
  max-width: 860px;
  min-height: 100dvh;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 0 25px;
}
.guide-header {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.guide-header h1 {
  font-size: 1.15rem;
  margin: 4px 0;
}
.guide-header .eyebrow {
  margin: 0;
  font-size: 0.6rem;
}
.guide-header .brand {
  font-size: 1.1rem;
}
.guide-intro {
  text-align: center;
  padding: 38px 20px 10px;
}
.guide-intro h2 {
  font-size: 1.8rem;
}
.guide-intro p {
  max-width: 530px;
  margin: 0 auto 10px;
  font-size: 0.9rem;
  color: var(--muted);
}
#messages {
  flex: 1;
  min-height: 180px;
  padding-bottom: 20px;
}
.composer {
  position: sticky;
  bottom: 0;
  background: var(--paper);
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.composer form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.composer textarea {
  margin: 0;
  min-height: 48px;
  max-height: 150px;
  resize: vertical;
}
.composer .voice {
  background: var(--orange);
  white-space: nowrap;
}
.composer p {
  font-size: 0.7rem;
  margin: 10px 0 0;
  color: var(--muted);
}
.guide-contact {
  margin: 20px 0;
}
.guide-contact summary {
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}
.guide-contact .card {
  margin-top: 15px;
}
.guide-contact h3 {
  margin-top: 10px;
}
.recording {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.65;
  }
}
.source-list {
  font-size: 0.7rem;
  color: var(--muted);
  margin: 5px 0 15px;
}
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.health-note {
  font-size: 0.8rem;
  padding: 12px;
  background: #f7edde;
  border-radius: 8px;
  margin-top: 15px;
}
@media (max-width: 1050px) {
  .main {
    padding: 0 25px;
  }
  .workspace {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    padding: 20px 12px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 650px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 35px 25px;
  }
  .login-story .brand {
    position: static;
  }
  .login-story .eyebrow {
    margin-top: 35px;
  }
  .story-footer {
    margin-top: 15px;
  }
  .login-panel {
    padding: 35px 25px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .eyebrow,
  .sidebar-bottom {
    display: none;
  }
  .sidebar .brand {
    font-size: 1.35rem;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
    margin-top: 12px;
  }
  .nav-item {
    width: auto;
    white-space: nowrap;
    padding: 8px;
    font-size: 0.75rem;
  }
  .main {
    padding: 0 18px;
  }
  .topbar {
    height: 65px;
  }
  .page-heading {
    padding-top: 25px;
  }
  .page-heading h1 {
    font-size: 1.7rem;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 1.8rem;
  }
  .card {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .guide-shell {
    padding: 0 15px;
  }
  .guide-intro {
    padding: 25px 5px 10px;
  }
  .guide-header .brand {
    display: none;
  }
  .composer form {
    flex-wrap: wrap;
  }
  .composer textarea {
    flex-basis: 100%;
  }
  .composer button {
    flex: 1;
  }
  .message {
    max-width: 95%;
  }
  .status-grid {
    grid-template-columns: 1fr;
  }
  .page-heading {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
:root .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.guide-shell:has(.guide-contact[open]) .composer {
  position: static;
}

.operations-card table {
  min-width: 620px;
}
.operations-card td,
.operations-card th {
  overflow-wrap: normal;
}
.operations-card td:first-child {
  white-space: nowrap;
}
.mobile-table-hint {
  display: none;
}
@media (max-width: 650px) {
  .mobile-table-hint {
    display: block;
    font-size: 0.8rem;
  }
}
