:root {
  --blue: #1b5fcb;
  --blue-hover: #154eaa;
  --ink: #182637;
  --muted: #596676;
  --line: #dfe4eb;
  --paper: #f5f6f8;
  --navy: #142337;
  --white: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.8px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
:is(button, input, a, [tabindex]):focus-visible {
  outline: 3px solid #7fb0ff;
  outline-offset: 3px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 10;
  background: white;
  color: var(--blue);
  padding: 12px;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.boot {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}
.loader {
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 650;
  color: white;
  letter-spacing: -0.2px;
}
.brand small {
  display: block;
  color: #bac7da;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 400;
  margin-top: 6px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #5488d7;
  background: #1b5fcb;
  border-radius: 11px;
  font-size: 21px;
  font-weight: 700;
  flex-shrink: 0;
}
.login-screen {
  display: grid;
  grid-template-columns: minmax(320px, 46%) 1fr;
  min-height: 100dvh;
}
.login-intro {
  background: var(--navy);
  padding: 48px 54px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 70px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.login-intro:after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid #2c405b;
  border-radius: 50%;
  right: -230px;
  bottom: -110px;
  pointer-events: none;
}
.intro-copy {
  max-width: 430px;
  position: relative;
  z-index: 1;
}
.intro-copy h1 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.2;
  letter-spacing: -1.6px;
}
.intro-copy .eyebrow {
  color: #9ebce7;
  margin-bottom: 24px;
}
.intro-copy p {
  color: #b9c7d9;
  margin-top: 26px;
  line-height: 1.8;
}
.intro-footer {
  color: #9baec5;
  font-size: 12px;
}
.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: #fcfcfd;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.login-form > .muted {
  margin-bottom: 30px;
}
.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 20px 0 8px;
}
.login-form input {
  width: 100%;
  height: 46px;
  border: 1px solid #b9c3d0;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  transition: border-color 0.15s;
}
.login-form input:hover {
  border-color: #6a7c92;
}
.login-form .code-input {
  font-variant-numeric: tabular-nums;
  letter-spacing: 6px;
  font-size: 19px;
  width: 180px;
  display: block;
}
.code-input::placeholder {
  color: #7b8797;
}
.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: var(--blue-hover);
}
.login-form .primary {
  margin-top: 26px;
  width: 100%;
  height: 46px;
  justify-content: space-between;
}
.secondary {
  background: white;
  color: var(--ink);
  border-color: #cbd3dd;
}
.secondary:hover {
  background: #edf3fd;
  border-color: #9eafc7;
}
.quiet {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.quiet:hover {
  color: var(--ink);
  background: #eef1f5;
}
.access-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 24px;
}
.notice {
  border: 1px solid;
  padding: 12px 14px;
  border-radius: 7px;
  margin: 18px 0;
  font-size: 13px;
}
.error {
  background: #fff2f0;
  border-color: #edc5bf;
  color: #9d3026;
}
.workspace {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
.sidebar {
  background: var(--navy);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.sidebar .brand {
  font-size: 16px;
  gap: 10px;
}
.sidebar .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 19px;
}
.sidebar nav {
  margin-top: 50px;
}
.nav-label {
  display: block;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
  color: #9fb0c7;
  margin: 0 10px 14px;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #c8d3e2;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 5px;
}
.nav-item:hover {
  background: #21334c;
  color: white;
}
.nav-item[aria-current="page"] {
  background: #29476e;
  color: white;
  border-color: #3b5e89;
}
.nav-symbol {
  font-size: 20px;
  width: 20px;
  text-align: center;
  line-height: 1;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 28px 10px 0;
  color: #c8d3e2;
}
.sidebar-caption {
  color: #a5b6cb;
  display: block;
  font-size: 11px;
  margin-bottom: 6px;
}
.sidebar-bottom strong {
  font-size: 13px;
}
.sidebar-bottom p {
  font-size: 11px;
  line-height: 1.8;
  margin-top: 15px;
  color: #9fb0c7;
}
.work-area {
  min-width: 0;
}
.topbar {
  min-height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb span {
  margin: 0 10px;
  color: #8c97a5;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.operator {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  min-width: 0;
}
.operator > span {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
main {
  padding: 38px 36px 20px;
  max-width: 1440px;
  margin: auto;
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading .muted {
  margin-top: 10px;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  color: #286344;
  background: #eaf4ef;
  border: 1px solid #cbdfd2;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  background: #39835b;
  border-radius: 50%;
}
.session-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.section-index {
  font-size: 11px;
  color: #7a8aa0;
  font-variant-numeric: tabular-nums;
}
.session-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 26px;
  margin: 0;
  padding: 26px 24px 30px;
}
.session-details > div {
  min-width: 0;
}
.session-details dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 9px;
}
.session-details dd {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.session-details .muted {
  font-weight: 400;
  display: block;
  font-size: 12px;
  margin-top: 7px;
  line-height: 1.6;
}
.security-line {
  padding: 17px 24px;
  background: #f5f8fc;
  border-top: 1px solid #e2e9f3;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.security-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  color: var(--blue);
  border: 1px solid #b6ccea;
  border-radius: 50%;
  font-size: 12px;
}
.security-line strong {
  font-size: 12px;
  font-weight: 600;
}
.security-line p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.scope-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding: 38px 4px;
}
.scope-section > .muted,
.scope-section p.muted {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
  max-width: 490px;
}
.next-sections {
  padding-left: 26px;
  border-left: 1px solid var(--line);
}
.next-sections h3 {
  margin-bottom: 12px;
}
.next-sections p {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0;
}
.next-sections .field-hint {
  margin-top: 17px;
}
.page-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 11px;
  color: var(--muted);
}
.table-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  overflow: hidden;
  margin-bottom: 34px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
th {
  background: #eef2f6;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 18px;
  white-space: nowrap;
}
td {
  border-top: 1px solid #e9edf2;
  padding: 14px 18px;
  vertical-align: top;
  overflow-wrap: anywhere;
  max-width: 340px;
}
td:first-child {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}
tbody tr:hover {
  background: #f7f9fc;
}
.table-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.table-footer {
  padding: 12px 18px;
  display: flex;
  justify-content: center;
}
.table-footer:has(button[hidden]) {
  display: none;
}
@media (min-width: 1500px) {
  main {
    padding-top: 48px;
  }
  .login-intro {
    padding: 56px 70px;
  }
}
@media (max-width: 1050px) {
  .workspace {
    grid-template-columns: 204px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 14px;
  }
  .topbar {
    padding: 16px 24px;
  }
  main {
    padding: 30px 24px 18px;
  }
  .session-details {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .session-details > div:last-child {
    grid-column: 1/-1;
  }
  .scope-section {
    gap: 30px;
  }
  .login-intro {
    padding: 38px 30px;
  }
}
@media (max-width: 720px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 24px;
    gap: 0;
  }
  .intro-copy,
  .intro-footer {
    display: none;
  }
  .login-side {
    padding: 36px 24px;
    align-items: flex-start;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    min-height: 0;
    padding: 18px 20px;
  }
  .sidebar .brand small {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
    margin-top: 20px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav-item {
    width: auto;
    min-height: 40px;
    margin: 0;
  }
  .topbar {
    min-height: 60px;
    padding: 12px 20px;
  }
  .operator {
    gap: 10px;
  }
  .operator > span {
    max-width: 150px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
  }
  main {
    padding: 25px 20px 18px;
    min-height: calc(100dvh - 194px);
  }
  h1 {
    font-size: 25px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 24px;
  }
  .page-heading .eyebrow {
    font-size: 10px;
  }
  .session-details {
    padding: 22px 20px;
    grid-template-columns: 1fr;
  }
  .session-details > div:last-child {
    grid-column: auto;
  }
  .panel-heading,
  .security-line {
    padding: 18px 20px;
  }
  .scope-section {
    grid-template-columns: 1fr;
    padding: 30px 0;
    gap: 24px;
  }
  .next-sections {
    padding-left: 16px;
  }
  .page-footer {
    font-size: 10px;
  }
  .login-form .eyebrow {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

select,
textarea {
  font: inherit;
  color: var(--ink);
}
:is(select, textarea):focus-visible {
  outline: 3px solid #7fb0ff;
  outline-offset: 3px;
}
.filter-bar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  background: white;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 18px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.filter-bar > div {
  min-width: 140px;
}
.filter-bar .search-field {
  flex: 1;
  min-width: min(100%, 260px);
}
.filter-bar label,
#action-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}
.filter-bar input,
.filter-bar select,
#action-form input,
#action-form textarea {
  width: 100%;
  border: 1px solid #b9c3d0;
  border-radius: 6px;
  padding: 9px 11px;
  background: white;
  min-height: 39px;
}
.link-button {
  background: none;
  color: var(--blue);
  border: 0;
  padding: 0;
  text-align: left;
  justify-content: flex-start;
  min-height: 32px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.link-button:hover {
  text-decoration: underline;
}
.user-detail {
  border: 1px solid #b9cce7;
  background: white;
  border-radius: 10px;
  margin-bottom: 32px;
  scroll-margin-top: 130px;
  overflow: hidden;
}
.detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.detail-top .eyebrow {
  margin-bottom: 5px;
}
.detail-top h2 {
  overflow-wrap: anywhere;
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.detail-section {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
}
.detail-section:first-child {
  border-top: 0;
}
.detail-section h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.detail-section .table-scroll {
  margin-top: 16px;
}
.detail-section th,
.detail-section td {
  padding: 10px 12px;
}
.detail-section td:first-child {
  white-space: normal;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  margin: 18px 0;
}
.facts div {
  min-width: 0;
}
.facts dt {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}
.facts dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.quota-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 1.2fr;
  gap: 4px 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.quota-row:last-child {
  border: 0;
}
.quota-row strong {
  font-size: 13px;
}
.quota-row small {
  grid-column: 2;
}
.empty-copy {
  padding: 15px 0;
  color: var(--muted);
  font-size: 13px;
}
.warning {
  background: #fff8e9;
  color: #795316;
  border-color: #e6d3a5;
}
.user-detail > .notice,
#user-content > .notice {
  margin: 16px 24px;
}
.scope-section .button {
  margin-top: 16px;
}
dialog {
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 80px #14233733;
  width: min(560px, calc(100% - 32px));
  padding: 24px;
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
dialog::backdrop {
  background: #14233788;
}
dialog .detail-top {
  padding: 0 0 16px;
  border: 0;
}
dialog .detail-top h2 {
  font-size: 20px;
}
#action-target {
  overflow-wrap: anywhere;
}
#action-form textarea {
  resize: vertical;
  min-height: 90px;
}
#action-until-wrap {
  margin-bottom: 18px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#action-dialog .notice {
  line-height: 1.65;
}
.sidebar nav {
  flex-wrap: wrap;
}
@media (max-width: 1050px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-top {
    flex-wrap: wrap;
  }
}
@media (max-width: 720px) {
  .filter-bar {
    position: static;
    gap: 10px;
    padding: 14px;
  }
  .filter-bar > div {
    flex: 1;
    min-width: 120px;
  }
  .filter-bar .search-field {
    flex-basis: 100%;
  }
  .detail-top,
  .detail-section {
    padding: 18px 16px;
  }
  .facts {
    gap: 18px;
  }
  .quota-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .quota-row small {
    grid-column: 1;
  }
  .detail-top .inline-actions {
    width: 100%;
  }
  .user-detail {
    scroll-margin-top: 16px;
  }
  .user-detail > .notice,
  #user-content > .notice {
    margin: 14px 16px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .sidebar nav {
    gap: 5px;
  }
  .nav-item {
    padding: 9px 10px;
    font-size: 12px;
  }
  .nav-symbol {
    display: none;
  }
}
@media (max-width: 380px) {
  .facts {
    grid-template-columns: 1fr;
  }
}

/* Operational finance: restrained data hierarchy, no decorative imagery. */
#finance > .field-hint {
  margin: -2px 0 16px;
}
#refund-content > .facts,
#refund-content > .inline-actions,
#refund-content > .notice {
  margin: 20px 24px;
}
#refund-title,
#refund-target {
  overflow-wrap: anywhere;
}
.multiline {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 12px;
  line-height: 1.7;
}
#refund-form textarea {
  min-height: 100px;
  resize: vertical;
}
#refund-form .notice {
  line-height: 1.65;
}
#costs .page-heading .inline-actions {
  align-items: flex-end;
}
#costs-content > .field-hint {
  margin: 16px 0;
}
.cost-summary {
  background: var(--navy);
  color: white;
  padding: 24px;
  border-radius: 10px 10px 0 0;
}
.cost-summary .facts {
  margin: 0;
}
.cost-summary dt {
  color: #b6c6db;
}
.cost-summary dd {
  font-size: 24px;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.cost-chart {
  margin: 0 0 24px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}
.cost-chart figcaption {
  font-weight: 650;
  margin-bottom: 18px;
}
.cost-chart svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 140px;
}
.chart-axis {
  stroke: #a3b0c0;
  stroke-width: 1;
}
.chart-bar {
  fill: var(--blue);
}
.chart-bar.partial {
  fill: #8dafdf;
  stroke: var(--blue);
  stroke-width: 1;
}
.chart-label {
  fill: var(--muted);
  font-size: 12px;
  font-family: inherit;
}
#costs-content > .detail-section {
  background: white;
  border: 1px solid var(--line);
  margin-top: 18px;
  border-radius: 8px;
}
#costs-content .table-scroll {
  margin-top: 16px;
}
#costs-content summary {
  font-weight: 650;
  cursor: pointer;
  padding: 4px 0;
}
#costs-content summary:focus-visible {
  outline: 3px solid #7fb0ff;
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .cost-summary,
  .cost-chart {
    padding: 18px 16px;
  }
  .cost-summary dd {
    font-size: 20px;
  }
  #refund-content > .facts,
  #refund-content > .inline-actions,
  #refund-content > .notice {
    margin: 18px 16px;
  }
}

.chart-unknown {
  fill: #956020;
  stroke: #fff;
  stroke-width: 1;
}

/* Operational review workspaces share the existing compact table vocabulary. */
.ops-detail .detail-section + .detail-section {
  border-top: 1px solid var(--line);
}
.ops-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
  margin-top: 20px;
  max-height: 480px;
  overflow: auto;
}
.ops-actions {
  margin-top: 20px;
}
.ops-detail h2,
.ops-detail h3,
.ops-detail td,
.ops-detail dd,
#ops-target {
  overflow-wrap: anywhere;
}
.ops-detail .facts dd {
  font-variant-numeric: tabular-nums;
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin-top: 18px;
}
.attachment-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}
.attachment-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #f0f3f8;
  border-radius: 4px;
  margin-bottom: 14px;
}
.attachment-card strong {
  display: block;
  overflow-wrap: anywhere;
}
.attachment-card .inline-actions {
  margin-top: 16px;
}
.file-link {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-block;
  padding: 6px 0;
}
.file-link:focus-visible {
  outline: 3px solid #7fb0ff;
  outline-offset: 3px;
}
.document-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  max-height: 560px;
  overflow-y: auto;
  padding: 20px;
  background: #f5f7fa;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.revision-preview {
  background: #fcfdff;
}
#ops-dialog {
  padding: 0;
  width: min(620px, calc(100% - 32px));
}
#ops-form {
  padding: 28px;
}
#ops-form .notice {
  line-height: 1.6;
}
#ops-form .check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 16px;
}
#ops-form .check-label input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 18px;
}
.system-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  overflow: hidden;
}
.system-metrics > div {
  padding: 20px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.system-metrics dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
.system-metrics dd {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 650;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
#system-content > .detail-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
}
@media (max-width: 960px) {
  .system-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  #ops-form {
    padding: 20px 16px;
  }
  .system-metrics > div {
    padding: 16px;
  }
  .system-metrics dd {
    font-size: 24px;
  }
  .document-body {
    padding: 14px;
  }
}

.question-context summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
  padding: 8px 0;
}
.question-context summary:focus-visible {
  outline: 3px solid #7fb0ff;
  outline-offset: 3px;
}
.question-context .ops-body {
  margin-top: 8px;
}
