:root {
  --navy: #071b31;
  --ink: #0f2438;
  --muted: #586a7c;
  --line: #dbe2ea;
  --surface: #eef2f6;
  --brand: #b24500;
  --orange: #fd6606;
  --green: #1d7a4c;
  --red: #b42318;
  --blue: #3e6e9e;
  --radius: 8px;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
.focus-order {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) 1fr 1fr 1.15fr;
  gap: 24px;
  padding: 0 0 22px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.focus-order h2 {
  font-size: 18px;
  margin-bottom: 5px;
}
.focus-order strong {
  font-size: 18px;
  display: block;
}
.focus-order .meta {
  display: block;
  margin-top: 5px;
}
.pdf-stage {
  height: 390px;
  overflow: auto;
  background: #e9eef1;
  padding: 12px;
  text-align: center;
}
.pdf-stage canvas {
  display: block;
  margin: 0 auto;
  background: white;
}
.pdf-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
@media (max-width: 800px) {
  .focus-order {
    grid-template-columns: 1fr 1fr;
  }
  .focus-order > div:first-child {
    grid-column: 1/-1;
  }
  .focus-order > div:last-child {
    grid-column: 1/-1;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font:
    15px/1.5 "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
  letter-spacing: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #3078a4;
  outline-offset: 3px;
}
::selection {
  background: #ffd7bb;
  color: #152b3a;
}
input,
textarea {
  caret-color: var(--brand);
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 12px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  line-height: 1.35;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
}
.muted,
.meta {
  color: var(--muted);
}
.meta {
  font-size: 13px;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  background: white;
}
.auth-visual {
  position: relative;
  overflow: hidden;
  padding: 46px 52px;
  display: flex;
  flex-direction: column;
  background-color: #082034;
  color: white;
}
.auth-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      180deg,
      rgba(5, 28, 47, 0.38),
      rgba(5, 28, 47, 0.6)
    );
  pointer-events: none;
}
.auth-visual > :not(.auth-background) {
  position: relative;
  z-index: 2;
}
.auth-logo {
  width: 245px;
  max-width: 75%;
  background: white;
  padding: 10px 16px;
  border-radius: 6px;
}
.auth-message {
  margin: 76px 0 64px;
  max-width: 580px;
}
.auth-message h1 {
  font-size: 38px;
}
.auth-message > p {
  font-size: 18px;
  color: #d7e6ef;
  margin: 20px 0 36px;
  max-width: 40ch;
}
.auth-highlights {
  display: grid;
  gap: 24px;
}
.auth-highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.auth-highlight .lucide {
  color: #ffad76;
  width: 23px;
  height: 23px;
  margin-top: 2px;
}
.auth-highlight strong {
  display: block;
  font-size: 17px;
}
.auth-highlight p {
  margin-top: 5px;
  font-size: 15px;
  color: #d7e6ef;
  max-width: 42ch;
}
.auth-foot {
  font-size: 13px;
  color: #d7e6ef;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid #6d8394;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.auth-box {
  width: 100%;
  max-width: 410px;
}
.auth-box h2 {
  font-size: 28px;
  margin-bottom: 28px;
}
.auth-box .segmented {
  margin-bottom: 24px;
}
.auth-demo {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.auth-demo strong {
  color: var(--ink);
}
.field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}
.field label {
  font-weight: 600;
  font-size: 14px;
}
.field small {
  color: var(--muted);
}
input,
select,
textarea {
  min-height: 42px;
  border: 1px solid #a9bac5;
  background: white;
  border-radius: 4px;
  padding: 9px 11px;
  color: var(--ink);
  max-width: 100%;
  width: 100%;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  accent-color: var(--brand);
}
input[type="file"] {
  padding: 8px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.form-error {
  color: var(--red);
  margin: 8px 0 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #acbdc9;
  background: white;
  color: var(--ink);
  border-radius: 4px;
  min-height: 40px;
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  white-space: normal;
}
.button:hover {
  background: #edf2f5;
  color: var(--ink);
}
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.button.primary:hover {
  background: #8b3309;
}
.button.danger {
  color: var(--red);
  border-color: #d8b2b2;
}
.button.wide {
  width: 100%;
}
.button.small {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 13px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
}
.icon-button:hover {
  background: #e9eef1;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 4px 0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.segmented {
  display: inline-flex;
  border: 1px solid #acbdc9;
  background: white;
  border-radius: 4px;
  max-width: 100%;
  flex-wrap: wrap;
}
.segmented button {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  min-height: 38px;
}
.segmented button[aria-pressed="true"] {
  background: #e8eef2;
  color: var(--ink);
  font-weight: 700;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 220px;
  min-width: 220px;
  background: white;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  padding: 26px 16px 18px;
}
.sidebar-brand {
  display: block;
  padding: 0 6px;
}
.sidebar-brand img {
  width: 180px;
  height: 44px;
  object-fit: contain;
}
.workspace-name {
  font-size: 13px;
  margin: 20px 12px 26px;
  color: var(--muted);
  font-weight: 600;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-button {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 0;
  text-align: left;
  border-radius: 4px;
  padding: 11px 12px;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
}
.nav-button:hover {
  background: #f1f4f6;
}
.nav-button[aria-current="page"] {
  background: #e9eff3;
  color: var(--ink);
  font-weight: 700;
}
.nav-count {
  margin-left: auto;
  background: #fbe8df;
  color: #963809;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.side-profile {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 10px 0;
  font-size: 13px;
}
.side-profile strong {
  display: block;
  font-size: 14px;
}
.app-body {
  margin-left: 220px;
  min-width: 0;
  width: calc(100% - 220px);
}
.topbar {
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.topbar-context,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-context {
  font-weight: 600;
  font-size: 14px;
}
.demo-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.review-date {
  font-size: 13px;
  color: var(--muted);
}
.mobile-menu {
  display: none;
}
.content {
  padding: 28px 32px 48px;
  max-width: 1600px;
  margin: 0 auto;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-head p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 75ch;
}
.head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.section {
  margin-top: 28px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 26px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  overflow: hidden;
}
.panel-pad {
  padding: 20px;
}
.panel h2 {
  margin-bottom: 8px;
}
.attention {
  background: #fff6ee;
  border: 1px solid #e8c6ac;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.attention-head {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #853208;
  margin-bottom: 8px;
}
.attention p {
  font-size: 14px;
}
.attention .button {
  margin-top: 12px;
}
.action-list {
  border-top: 1px solid var(--line);
}
.action-row {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.action-row p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0;
}
.action-row .button {
  flex-shrink: 0;
}
.mini-summary {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 22px 0;
}
.mini-summary > div {
  display: grid;
  gap: 3px;
}
.mini-summary strong {
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: white;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.order-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-ref {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}
.order-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.order-dates span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 3px;
}
.order-dates strong {
  font-size: 15px;
}
.order-note {
  font-size: 14px;
  max-width: 68ch;
}
.order-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  line-height: 1.4;
  max-width: 100%;
  white-space: normal;
}
.badge.good {
  background: #e7f3ec;
  color: var(--green);
}
.badge.warn {
  background: #fff0dd;
  color: #85500d;
}
.badge.bad {
  background: #fbe9e9;
  color: var(--red);
}
.badge.info {
  background: #eaf1f7;
  color: var(--blue);
}
.badge.neutral {
  background: #edf1f3;
  color: #4c626f;
}
.aside-section {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.aside-section h2 {
  font-size: 16px;
  margin-bottom: 12px;
}
.contact-name {
  font-weight: 700;
  margin: 14px 0 3px;
}
.contact-line {
  font-size: 14px;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.file-row:last-child {
  border-bottom: 0;
}
.file-info {
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}
.file-info > .lucide {
  color: var(--blue);
}
.file-info strong {
  font-size: 14px;
  display: block;
}
.file-info .meta {
  margin-top: 3px;
}
.file-actions {
  display: flex;
  gap: 4px;
}
.chart-toolbar,
.filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters .field {
  margin-bottom: 0;
  min-width: 145px;
  flex: 1;
}
.filters .search-field {
  flex: 2;
}
.chart-toolbar select {
  width: 115px;
}
.chart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 225px;
  border-bottom: 1px solid #afbec8;
  padding-top: 10px;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  background: transparent;
  border: 0;
  padding: 0 3px;
  color: var(--muted);
}
.chart-value {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
  white-space: nowrap;
  color: var(--ink);
}
.chart-bar-wrap {
  height: 165px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.chart-bar {
  width: min(35px, 100%);
  background: #39789c;
  border-radius: 3px 3px 0 0;
}
.chart-col:hover .chart-bar {
  background: var(--brand);
}
.chart-label {
  font-size: 12px;
  margin-top: 8px;
  margin-bottom: 7px;
}
.chart-key {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  margin-top: 14px;
  color: var(--muted);
}
.chart-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}
.chart-heading strong {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}
.chart-heading span {
  color: var(--muted);
  font-size: 14px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  background: #f0f4f6;
  color: #4e626f;
  font-size: 12px;
  padding: 13px 16px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
td .meta {
  margin-top: 4px;
}
tr:hover td {
  background: #fafcfd;
}
.numeric {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.empty {
  padding: 30px 18px;
  text-align: center;
  color: var(--muted);
  background: white;
  border: 1px dashed #afc0cc;
  border-radius: var(--radius);
}
.empty .lucide {
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
}
.empty p {
  margin: 8px auto;
  max-width: 55ch;
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.task-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.task-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.task-card p {
  font-size: 14px;
  color: var(--muted);
}
.task-card .button {
  align-self: flex-start;
  margin-top: auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.fact-label {
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.facts strong {
  display: block;
}
.timeline {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.timeline li {
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}
.timeline-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #edf1f3;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timeline-mark.done {
  background: #e7f3ec;
  color: var(--green);
}
.timeline-mark.hold {
  background: #fbe9e9;
  color: var(--red);
}
.timeline .lucide {
  width: 14px;
  height: 14px;
}
.timeline p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}
.plain-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.plain-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.plain-list p {
  font-size: 14px;
  margin-top: 4px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.profile-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  margin: 18px 0;
}
.profile-list dt,
.profile-list dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.profile-list dt {
  color: var(--muted);
  font-size: 14px;
}
.profile-list dd {
  overflow-wrap: anywhere;
}
.status-message {
  padding: 13px 16px;
  background: #edf3f7;
  border-radius: 4px;
  font-size: 14px;
  margin: 12px 0;
}
.status-message.warn {
  background: #fff0dd;
  color: #85500d;
}
.row-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.scenario {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.scenario p {
  margin: 8px 0 18px;
  font-size: 14px;
  color: var(--muted);
}
.scenario .lucide {
  color: var(--brand);
  margin-bottom: 10px;
}
dialog {
  border: 0;
  border-radius: 8px;
  padding: 0;
  width: min(650px, calc(100% - 32px));
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 14px 55px rgba(0, 20, 40, 0.22);
}
dialog::backdrop {
  background: rgba(12, 32, 48, 0.55);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-body {
  padding: 22px 24px;
  overflow: auto;
  max-height: 65vh;
}
.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #f7f9fa;
}
.dialog-body > p {
  margin-bottom: 16px;
  color: var(--muted);
}
.dialog-body iframe {
  width: 100%;
  height: 430px;
  border: 1px solid var(--line);
}
.dialog-body img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
}
.history-log {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.history-log li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 14px;
}
.history-log time {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #163349;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  max-width: calc(100% - 32px);
  z-index: 100;
  box-shadow: 0 5px 18px #0002;
}
.danger-note {
  color: var(--red);
  font-size: 14px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.customer-preview-link {
  font-size: 14px;
}
.login-error {
  margin-top: 16px;
}
.loading {
  padding: 40px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  .content {
    padding: 34px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
  .order-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 1150px) {
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
  }
  .content {
    padding: 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .order-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    width: 200px;
    min-width: 200px;
  }
  .app-body {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  .sidebar-brand img {
    width: 160px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .chart {
    gap: 5px;
  }
  .chart-value {
    font-size: 10px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    transform: translateX(-100%);
    width: 240px;
    box-shadow: 5px 0 25px #0002;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app-body {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    padding: 0 18px;
  }
  .review-date {
    display: none;
  }
  .content {
    padding: 22px 18px 40px;
  }
  .overview-layout,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .overview-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-visual {
    padding: 28px;
  }
  .auth-message {
    margin: 36px 0;
  }
  .auth-message h1 {
    font-size: 30px;
  }
  .auth-highlights {
    display: none;
  }
  .auth-foot {
    display: none;
  }
  .auth-main {
    padding: 32px 24px;
  }
  .auth-logo {
    width: 200px;
  }
  .scenario-grid {
    grid-template-columns: 1fr 1fr;
  }
  .chart-value {
    font-size: 11px;
  }
}
@media (max-width: 520px) {
  h1 {
    font-size: 25px;
  }
  .page-head {
    flex-direction: column;
    gap: 12px;
  }
  .task-grid,
  .order-grid,
  .scenario-grid,
  .form-grid,
  .overview-aside {
    grid-template-columns: 1fr;
  }
  .topbar-context {
    gap: 8px;
    font-size: 13px;
  }
  .demo-label {
    padding-left: 8px;
    font-size: 11px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .action-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .chart {
    gap: 2px;
    height: 195px;
  }
  .chart-bar-wrap {
    height: 140px;
  }
  .chart-value {
    font-size: 9px;
  }
  .chart-label {
    font-size: 10px;
  }
  .profile-list {
    grid-template-columns: 115px 1fr;
  }
  .dialog-body,
  .dialog-head,
  .dialog-foot {
    padding: 18px;
  }
  .facts {
    gap: 16px;
  }
  .order-card,
  .task-card {
    padding: 17px;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .mini-summary {
    gap: 20px;
  }
  .chart-key {
    flex-direction: column;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: appear 0.18s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.4;
      transform: translate(-50%, 5px);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0);
    }
  }
}

/* ===== 2026-10-09 brand layer ===== */
h1,
h2,
h3 {
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 {
  font-weight: 700;
}
h2,
h3 {
  font-weight: 650;
}
.code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0;
}
.button {
  border-radius: 6px;
}
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
}
.button.primary:hover {
  background: #8f3700;
  border-color: #8f3700;
  color: #fff;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-color: var(--orange);
}
.segmented,
input,
select,
textarea {
  border-radius: 6px;
}
/* sidebar */
.sidebar {
  background: var(--navy);
  border-right: 0;
  color: #c5d2df;
  padding: 24px 14px 18px;
}
.sidebar-brand img {
  width: 150px;
  height: 31px;
  object-fit: contain;
  object-position: left center;
}
.workspace-name {
  color: #7f92a8;
  margin: 14px 8px 26px;
  font-weight: 500;
}
.nav-button {
  color: #b8c6d6;
  position: relative;
  border-radius: 6px;
}
.nav-button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.nav-button[aria-current="page"] {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-weight: 600;
}
.nav-button[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--orange);
}
.nav-count {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
}
.side-profile {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #8fa2b6;
}
.side-profile strong {
  color: #fff;
}
.side-profile .meta {
  color: #8fa2b6;
}
.sidebar :focus-visible {
  outline-color: var(--orange);
}
/* topbar + notifications */
.topbar {
  border-bottom-color: var(--line);
}
.notif-anchor {
  position: relative;
}
.notif-button {
  position: relative;
}
.notif-count {
  position: absolute;
  top: 1px;
  left: 21px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: content-box;
}
.notif-panel {
  position: absolute;
  right: -8px;
  top: 46px;
  width: min(380px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(7, 27, 49, 0.18);
  z-index: 40;
  overflow: hidden;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.notif-head h2 {
  font-size: 15px;
}
.notif-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(60vh, 420px);
  overflow: auto;
}
.notif-item {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 13px 16px;
  color: var(--ink);
}
.notif-item:hover {
  background: #f6f8fa;
}
.notif-item.unread {
  background: #fff8f2;
}
.notif-item.unread strong::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: 7px;
  vertical-align: middle;
}
.notif-item .lucide {
  color: var(--blue);
  margin-top: 2px;
}
.notif-item.k-revision .lucide,
.notif-item.k-hold .lucide {
  color: var(--red);
}
.notif-item strong {
  display: block;
  font-size: 14px;
}
.notif-text {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.notif-item time {
  display: block;
  font-size: 12px;
  color: #8193a5;
  margin-top: 4px;
}
.notif-empty,
.notif-foot {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
}
.notif-foot {
  background: #f7f9fb;
  font-size: 12px;
}
/* KPI band */
.kpi-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 26px;
  overflow: hidden;
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  padding: 18px 20px 17px;
  color: var(--ink);
  position: relative;
  min-width: 0;
}
.kpi:first-child {
  border-left: 0;
}
.kpi:hover {
  background: #f7f9fb;
}
.kpi-label {
  font-size: 13px;
  color: var(--muted);
}
.kpi-value {
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}
.kpi-sub {
  font-size: 12.5px;
  color: var(--muted);
}
.kpi.attn::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--orange);
}
.kpi.attn .kpi-value {
  color: var(--brand);
}
/* order card */
.order-card {
  gap: 16px;
}
.order-title {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}
.order-title .badge {
  align-self: start;
}
.thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: #f1f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.order-ref {
  font-size: 12px;
}
/* progress rail */
.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.rail li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.rail-seg {
  height: 6px;
  border-radius: 3px;
  background: #d5dee7;
}
.st-done .rail-seg {
  background: var(--blue);
}
.st-current .rail-seg {
  background: linear-gradient(90deg, var(--blue) 0 55%, #c9d7e5 55%);
}
.st-review .rail-seg {
  background: repeating-linear-gradient(
    135deg,
    #8fb0cf 0 5px,
    #cddbe8 5px 10px
  );
}
.st-action .rail-seg {
  background: var(--orange);
}
.st-hold .rail-seg {
  background: var(--red);
}
.rail-label {
  font-size: 11.5px;
  color: #7a8a9a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-done .rail-label {
  color: var(--muted);
}
.rail li.is-now .rail-label {
  color: var(--ink);
  font-weight: 650;
}
.rail-caption {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.rail-caption.st-action {
  color: var(--brand);
}
.rail-caption.st-hold {
  color: var(--red);
}
.rail-wrap.large {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  margin: -4px 0 26px;
}
.rail-wrap.large .rail {
  gap: 6px;
}
.rail-wrap.large .rail-seg {
  height: 8px;
  border-radius: 4px;
}
.rail-wrap.large .rail-label {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  white-space: normal;
}
.rail-wrap.large .st-todo .rail-label {
  color: #7a8a9a;
  font-weight: 500;
}
.rail-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: -3px;
}
.rail-wrap.large .st-action .rail-sub {
  color: var(--brand);
  font-weight: 600;
}
.rail-wrap.large .st-hold .rail-sub {
  color: var(--red);
  font-weight: 600;
}
/* tracking */
.tracking .section-head {
  margin-bottom: 10px;
}
.route {
  margin: 0 0 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px 10px;
}
.route svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.route-base {
  fill: none;
  stroke: #c3d0dc;
  stroke-width: 2;
  stroke-dasharray: 5 6;
}
.route-done {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
}
.port {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 3;
}
.ship circle {
  fill: var(--orange);
  stroke: #fff;
  stroke-width: 3;
}
.ship path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.route text {
  font-size: 13px;
  fill: var(--muted);
  font-weight: 600;
}
.route figcaption {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 2px;
}
.track-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.track-facts > div {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  min-width: 0;
}
.track-facts > div:nth-child(-n + 3) {
  border-top: 0;
}
.track-facts > div:nth-child(3n + 1) {
  border-left: 0;
}
.track-facts dt {
  font-size: 12px;
  color: var(--muted);
}
.track-facts dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.track-facts .code {
  font-size: 13.5px;
  color: var(--navy);
}
.track-facts .pending {
  font-size: 13.5px;
  color: #7a8a9a;
}
.track-events {
  list-style: none;
  margin: 0 0 12px;
  padding: 0 0 0 4px;
}
.track-events li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 0 0 12px 18px;
  position: relative;
  font-size: 14px;
}
.track-events li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #b3c3d3;
  background: #fff;
}
.track-events li::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 19px;
  bottom: 0;
  width: 2px;
  background: #e1e8ef;
}
.track-events li:last-child::after {
  display: none;
}
.track-events li.done::before {
  border-color: var(--blue);
  background: var(--blue);
}
.track-events time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.track-events li:not(.done) span {
  color: var(--muted);
}
/* panels feel */
.order-card,
.task-card,
.scenario,
.table-wrap,
.empty {
  border-radius: var(--radius);
}
.attention {
  border-left: 4px solid var(--orange);
}
th {
  background: #f5f7fa;
}
.chart-bar {
  background: var(--blue);
}
.chart-col:hover .chart-bar {
  background: var(--orange);
}
.auth-box .button.primary {
  min-height: 46px;
}
@media (max-width: 1150px) {
  .kpi-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi:nth-child(3) {
    border-left: 0;
  }
  .kpi:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .track-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .track-facts > div:nth-child(-n + 3) {
    border-top: 1px solid var(--line);
  }
  .track-facts > div:nth-child(-n + 2) {
    border-top: 0;
  }
  .track-facts > div:nth-child(3n + 1) {
    border-left: 1px solid var(--line);
  }
  .track-facts > div:nth-child(2n + 1) {
    border-left: 0;
  }
}
.lbl-short {
  display: none;
}
@media (max-width: 800px) {
  .sidebar {
    box-shadow: none;
  }
  .sidebar.open {
    box-shadow: 8px 0 30px rgba(7, 27, 49, 0.35);
  }
}
@media (max-width: 520px) {
  .kpi {
    padding: 14px 14px 13px;
  }
  .kpi-value {
    font-size: 22px;
  }
  .rail-label {
    font-size: 10px;
  }
  .rail-wrap.large {
    padding: 14px 12px;
  }
  .rail-wrap.large .rail-label {
    font-size: 11px;
  }
  .rail-wrap.large .rail-sub,
  .lbl-full {
    display: none;
  }
  .lbl-short {
    display: inline;
  }
  .route text {
    font-size: 24px;
  }
  .order-title {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .order-title .badge {
    grid-column: 1/-1;
    justify-self: start;
  }
  .thumb {
    width: 48px;
    height: 48px;
  }
  .track-events li {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .notif-panel {
    position: fixed;
    right: 12px;
    top: 60px;
  }
}
.auth-message h1,
.auth-visual h1 {
  color: #fff;
}
.mini-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mini-summary > div {
  flex: 1 1 140px;
  padding: 14px 20px;
  border-left: 1px solid var(--line);
  margin-left: -1px;
}
.mini-summary strong {
  font-size: 24px;
  color: var(--navy);
}
/* ===== evidence, contacts, tour ===== */
.ev-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  border-radius: 8px;
  padding: 6px;
  text-align: left;
  color: var(--ink);
  width: 100%;
}
.ev-strip:hover {
  border-color: #b9c7d5;
  background: #fff;
}
.ev-strip img {
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}
.ev-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}
.ev-strip .lucide {
  width: 16px;
  height: 16px;
}
.ev-group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 18px;
  margin-bottom: 14px;
}
.ev-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.ev-head strong {
  color: var(--navy);
}
.ev-head time {
  font-size: 13px;
  color: var(--muted);
}
.ev-group > p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 12px;
  max-width: 72ch;
}
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ev-photo {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  color: var(--muted);
  font-size: 12.5px;
}
.ev-photo img {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  margin-bottom: 5px;
  background: #e6ebf0;
}
.ev-photo:hover img {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.lightbox {
  margin: 0;
}
.lightbox img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
  background: #0f2438;
  border-radius: 6px;
}
.lightbox figcaption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
}
.lightbox figcaption span {
  color: var(--muted);
  font-size: 13px;
}
.lb-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.lb-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 5px;
  background: none;
}
.lb-thumbs button.on {
  border-color: var(--orange);
}
.lb-thumbs img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  display: block;
  border-radius: 3px;
}
dialog:has(.lightbox) {
  width: min(900px, calc(100% - 24px));
}
.contact-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact-card:first-of-type {
  border-top: 0;
  padding-top: 2px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.contact-card strong {
  display: block;
  color: var(--navy);
}
.contact-card span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.contact-card .c-role {
  color: var(--ink);
  font-weight: 600;
}
.c-sla,
.c-links a {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
}
.c-sla {
  margin-top: 4px;
}
.c-sla .lucide,
.c-links .lucide {
  width: 14px;
  height: 14px;
}
.c-links {
  display: flex !important;
  gap: 14px;
  margin-top: 6px;
}
.c-links a {
  font-weight: 600;
  text-decoration: none;
}
.or-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0;
}
.or-line::before,
.or-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.demo-enter {
  min-height: 46px;
  border-color: var(--navy);
  color: var(--navy);
}
.tour-button .lucide {
  width: 15px;
  height: 15px;
}
.tour {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(380px, calc(100vw - 24px));
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 18px 20px 16px;
  box-shadow: 0 20px 50px rgba(7, 27, 49, 0.35);
  z-index: 60;
}
.tour h2 {
  color: #fff;
  font-size: 17px;
  margin: 4px 0 6px;
}
.tour p {
  color: #c9d5e2;
  font-size: 14px;
}
.tour-step {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
}
.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  gap: 10px;
}
.tour-actions > span {
  display: flex;
  gap: 8px;
}
.tour .text-button {
  color: #9fb2c6;
  font-weight: 500;
}
.tour .button:not(.primary) {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.tour .button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--navy);
}
.tour-focus {
  outline: 3px solid var(--orange) !important;
  outline-offset: 4px;
  border-radius: 8px;
  position: relative;
  z-index: 5;
}
@media (max-width: 520px) {
  .tour {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
  .ev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tour-button {
    display: none;
  }
}
.contact-card .avatar {
  display: flex;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.detail-actions {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 14px 20px 4px;
  margin: -8px 0 26px;
}
.detail-actions h2 {
  font-size: 16px;
}
.detail-actions .action-row:last-child {
  border-bottom: 0;
}

img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e6ebf0;
}
.contact-card {
  grid-template-columns: 48px 1fr;
}

.doc-toggles {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* single-line sidebar labels */
.sidebar {
  width: 240px;
  min-width: 240px;
}
.app-body {
  margin-left: 240px;
  width: calc(100% - 240px);
}
.nav-button > span:not(.nav-count) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.nav-count {
  flex-shrink: 0;
}
@media (max-width: 1150px) {
  .sidebar {
    width: 228px;
    min-width: 228px;
  }
  .app-body {
    margin-left: 228px;
    width: calc(100% - 228px);
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 260px;
    min-width: 0;
  }
  .app-body {
    margin-left: 0;
    width: 100%;
  }
}

/* ---- production build additions ---- */
dialog.wide {
  width: min(920px, calc(100% - 24px));
}
.form-section {
  margin: 22px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.dialog-body > .form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.copy-link {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.copy-link input {
  flex: 1;
  min-width: 0;
  font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f7f9;
}
.side-pw {
  margin-top: 6px;
  font-size: 12.5px;
  color: inherit;
  opacity: 0.8;
}
.admin-ev .ev-photo {
  position: relative;
}
.admin-ev .ev-photo .icon-button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(255, 255, 255, 0.92);
}
.demo-label.hidden {
  display: none;
}
