/* NIT AssureGraph – self-contained, accessible design tokens; no external font/CDN dependencies. */
:root {
  color-scheme:light;
  --navy:#152a43;
  --navy2:#203b58;
  --cyan:#168fbe;
  --cyan-hover:#0b7eae;
  --ink:#20344b;
  --muted:#687b8f;
  --page:#f5f7f9;
  --surface:#fff;
  --surface2:#f8fafc;
  --line:#e2e9ef;
  --sidebar:#172c43;
  --sidebarText:#e8eff6;
  --selected:rgba(62,172,214,.15);
  --shadow:0 9px 30px rgba(25,46,67,.035);
  --radius:14px;
  --approved:#138562;
  --pending:#b48216;
  --draft:#758397;
  color:var(--ink);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-synthesis:none
}

:root[data-theme=dark] {
  color-scheme:dark;
  --navy:#eaf4ff;
  --navy2:#dbe7f5;
  --ink:#dfeaf4;
  --muted:#a8b8c9;
  --page:#0d1927;
  --surface:#152539;
  --surface2:#1b2e44;
  --line:#2d4359;
  --sidebar:#101b2b;
  --sidebarText:#dfeaf4;
  --selected:rgba(40,165,211,.19);
  --shadow:none;
  --approved:#59c9a4;
  --pending:#e6bc60;
  --draft:#aeb8c6
}

* {
  box-sizing:border-box
}

body {
  margin:0;
  background:var(--page);
  color:var(--ink)
}

a {
  color:var(--cyan);
  text-decoration:none
}

a:hover {
  text-decoration:underline
}

button,input,select {
  font:inherit
}

button {
  cursor:pointer
}

button:disabled {
  cursor:not-allowed;
  opacity:.6
}

.muted {
  color:var(--muted)
}

.eyebrow {
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
  color:var(--cyan);
  text-transform:uppercase
}

.visually-hidden {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)
}

h1,h2,p {
  margin-top:0
}

h1 {
  font-size:clamp(26px,3vw,34px);
  letter-spacing:-.045em;
  line-height:1.12;
  margin-bottom:12px;
  font-weight:750
}

h2 {
  font-size:17px;
  letter-spacing:-.025em;
  margin-bottom:10px
}

p {
  line-height:1.6
}

.app-shell {
  display:flex;
  min-height:100vh
}

.sidebar {
  width:256px;
  min-width:256px;
  position:sticky;
  top:0;
  height:100vh;
  background:var(--sidebar);
  color:var(--sidebarText);
  display:flex;
  flex-direction:column;
  padding:23px 13px 16px;
  z-index:20
}

.side-brand {
  padding:0 14px 30px
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  white-space:nowrap
}

.brand-symbol {
  font-size:34px;
  font-weight:950;
  letter-spacing:-.13em;
  line-height:1;
  color:white
}

.brand-dot {
  color:#35b5dd
}

.brand-name {
  font-size:17px;
  font-weight:500;
  letter-spacing:-.04em;
  color:white
}

.brand-name strong {
  font-weight:780
}

.side-subtitle {
  display:block;
  font-size:9px;
  letter-spacing:.16em;
  color:#89a3bc;
  margin-top:13px;
  font-weight:700
}

.side-section-label {
  font-size:9px;
  letter-spacing:.17em;
  color:#859eb5;
  font-weight:800;
  margin:13px 17px
}

.side-nav {
  display:grid;
  gap:5px
}

.side-link {
  color:#b9c9d7;
  display:flex;
  align-items:center;
  gap:14px;
  border-radius:9px;
  padding:12px 13px;
  font-weight:560;
  font-size:13px;
  transition:background .15s,color .15s
}

.side-link:hover {
  color:white;
  text-decoration:none;
  background:rgba(255,255,255,.07)
}

.side-link.active {
  color:white;
  background:var(--selected)
}

.nav-icon {
  font-size:22px;
  line-height:1;
  width:23px;
  text-align:center;
  opacity:.85
}

.sidebar-spacer {
  flex:1
}

.sidebar-note {
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:13px;
  border:1px solid rgba(215,234,249,.13);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  margin-bottom:20px
}

.sidebar-note-pip {
  margin-top:5px;
  width:7px;
  height:7px;
  background:#33b7d3;
  border-radius:50%;
  flex-shrink:0
}

.sidebar-note strong {
  display:block;
  font-size:11px;
  font-weight:670
}

.sidebar-note small {
  display:block;
  font-size:10px;
  line-height:1.5;
  color:#a6bbcb;
  margin-top:6px
}

.sidebar-user {
  display:flex;
  gap:9px;
  align-items:center;
  border-top:1px solid rgba(255,255,255,.12);
  padding:16px 9px 0
}

.avatar {
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 32px;
  height:32px;
  background:rgba(64,179,216,.24);
  color:#a5e9fa;
  border-radius:9px;
  font-weight:800
}

.side-user-details {
  min-width:0
}

.side-user-details strong {
  display:block;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.side-user-details small {
  display:block;
  font-size:10px;
  color:#96aec3;
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}

.main-shell {
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0
}

.topbar {
  height:67px;
  flex-shrink:0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  padding:0 clamp(20px,3vw,44px)
}

.topbar-left,.topbar-right {
  display:flex;
  align-items:center;
  gap:15px
}

.breadcrumb-root {
  font-size:10px;
  color:var(--muted);
  letter-spacing:.1em;
  font-weight:750
}

.breadcrumb-separator {
  font-size:20px;
  color:#adc0cb
}

.breadcrumb-current {
  font-size:13px;
  font-weight:700
}

.env-pill {
  border:1px solid var(--line);
  padding:7px 12px;
  border-radius:50px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
  display:flex;
  gap:8px;
  align-items:center
}

.live-dot {
  width:7px;
  height:7px;
  background:#34af85;
  border-radius:50%
}

.icon-button {
  border:0;
  background:transparent;
  color:var(--muted);
  font-size:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:34px;
  border-radius:7px
}

.icon-button:hover {
  background:var(--surface2);
  color:var(--ink)
}

.mobile-menu {
  display:none
}

.logout-form {
  margin:0
}

.top-progress {
  height:3px;
  position:absolute;
  left:256px;
  right:0;
  top:67px;
  overflow:hidden;
  z-index:21;
  opacity:0;
  transition:opacity .15s
}

.top-progress.active {
  opacity:1
}

.top-progress>div {
  height:100%;
  width:32%;
  background:var(--cyan);
  animation:loading-bar 1s ease-in-out infinite alternate
}

.content {
  padding:clamp(22px,3vw,42px);
  width:100%;
  max-width:1580px;
  margin:0 auto;
  flex:1;
  min-height:320px
}

.app-footer {
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid var(--line);
  padding:17px clamp(22px,3vw,44px);
  font-size:10px;
  color:var(--muted)
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:28px
}

.page-heading .muted {
  font-size:13px;
  margin:0
}

.page-heading h1 {
  margin-top:10px
}

.light-info {
  font-size:10px;
  color:var(--muted);
  background:var(--surface);
  padding:9px 13px;
  border:1px solid var(--line);
  border-radius:20px;
  white-space:nowrap
}

.metrics-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:19px
}

.metric-card,.panel {
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  border-radius:var(--radius)
}

.metric-card {
  padding:23px
}

.metric-label {
  display:block;
  font-size:11px;
  color:var(--muted);
  font-weight:650
}

.metric-card strong {
  display:block;
  font-size:35px;
  letter-spacing:-.055em;
  margin:12px 0
}

.metric-foot {
  font-size:10px;
  color:var(--muted)
}

.dashboard-columns {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);
  gap:18px
}

.panel {
  padding:24px
}

.panel-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:22px
}

.panel-heading p {
  font-size:11px;
  color:var(--muted);
  margin:0
}

.panel-heading h2 {
  margin-bottom:6px
}

.tiny-label {
  font-size:9px;
  color:var(--muted);
  letter-spacing:.09em;
  font-weight:750
}

.distribution-list {
  display:grid;
  gap:15px
}

.distribution-row {
  display:grid;
  grid-template-columns:minmax(115px,1fr) minmax(50px,2fr) 22px;
  align-items:center;
  gap:14px;
  font-size:12px
}

.distribution-row strong {
  text-align:right;
  font-weight:700
}

.bar-track {
  height:7px;
  background:var(--surface2);
  border-radius:99px;
  overflow:hidden
}

.bar-fill {
  height:100%;
  background:linear-gradient(90deg,#2083ae,#50b5d4);
  border-radius:99px
}

.status-overview {
  display:grid;
  gap:20px;
  margin-top:30px
}

.status-tally {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px
}

.status-tally strong {
  margin-left:auto;
  font-size:19px
}

.status-indicator {
  width:9px;
  height:9px;
  border-radius:50%
}

.status-indicator.status-draft {
  background:var(--draft)
}

.status-indicator.status-pending {
  background:var(--pending)
}

.status-indicator.status-approved {
  background:var(--approved)
}

.panel-note {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:28px;
  color:var(--muted);
  font-size:11px;
  line-height:1.6
}

.panel-note strong {
  color:var(--ink)
}

.overview-next {
  margin-top:19px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px
}

.overview-next h2 {
  font-size:19px;
  margin:10px 0
}

.overview-next p {
  font-size:12px;
  margin-bottom:0
}

.button {
  border-radius:9px;
  padding:11px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  white-space:nowrap;
  border:1px solid transparent;
  font-size:12px;
  font-weight:750
}

.button-primary {
  color:white;
  background:var(--cyan)
}

.button-primary:hover {
  background:var(--cyan-hover);
  color:white;
  text-decoration:none
}

.button-secondary {
  color:var(--ink);
  background:var(--surface);
  border-color:var(--line)
}

.button-secondary:hover {
  background:var(--surface2);
  text-decoration:none
}

.revision-caption {
  font-size:10px;
  color:var(--muted);
  margin:20px 0 0;
  overflow-wrap:anywhere
}

.table-panel {
  padding:0
}

.filter-row {
  padding:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  border-bottom:1px solid var(--line)
}

.field-input {
  height:38px;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  border-radius:8px;
  padding:8px 11px;
  font-size:12px;
  min-width:140px
}

.search-field {
  min-width:230px;
  flex:1
}

.field-input:focus-visible,.button:focus-visible,.icon-button:focus-visible,.side-link:focus-visible {
  outline:2px solid var(--cyan);
  outline-offset:2px
}

.table-count {
  font-size:11px;
  color:var(--muted);
  padding:12px 19px
}

.responsive-table {
  overflow-x:auto
}

table {
  border-collapse:collapse;
  width:100%;
  text-align:left
}

thead {
  background:var(--surface2)
}

th {
  font-size:10px;
  letter-spacing:.045em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:750;
  padding:14px 17px;
  white-space:nowrap
}

td {
  font-size:12px;
  padding:17px;
  border-top:1px solid var(--line);
  vertical-align:middle
}

tbody tr:hover {
  background:var(--surface2)
}

.id-link {
  font-size:12px;
  font-weight:750;
  color:var(--cyan)
}

.type-pill {
  border:1px solid var(--line);
  background:var(--surface2);
  color:var(--muted);
  font-size:10px;
  padding:5px 8px;
  border-radius:6px;
  white-space:nowrap
}

.status-pill {
  font-size:10px;
  font-weight:700;
  border-radius:50px;
  padding:6px 9px;
  white-space:nowrap
}

.status-pill.status-approved {
  background:rgba(44,160,111,.1);
  color:var(--approved)
}

.status-pill.status-draft {
  background:rgba(128,144,158,.13);
  color:var(--draft)
}

.status-pill.status-pending {
  background:rgba(208,160,45,.13);
  color:var(--pending)
}

.muted-cell {
  color:var(--muted);
  font-size:11px
}

.good-dot {
  color:var(--approved)
}

.warn-dot {
  color:var(--pending)
}

.empty-state {
  text-align:center;
  color:var(--muted);
  padding:40px
}

.back-row {
  margin-bottom:22px;
  font-size:12px
}

.detail-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(250px,.38fr);
  gap:18px
}

.detail-description {
  font-size:14px;
  white-space:normal;
  line-height:1.75;
  margin:18px 0
}

.divider-line {
  height:1px;
  background:var(--line);
  margin:26px 0
}

.kv-list>div {
  display:grid;
  grid-template-columns:190px 1fr;
  gap:12px;
  padding:11px 0;
  border-bottom:1px solid var(--line);
  font-size:12px
}

.kv-list dt,.side-kv dt {
  color:var(--muted)
}

.kv-list dd,.side-kv dd {
  margin:0;
  overflow-wrap:anywhere
}

.side-kv {
  font-size:11px
}

.side-kv dt {
  margin-top:19px
}

.side-kv dd {
  margin-top:6px;
  font-weight:600
}

.path-label {
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:10px
}

.trace-links {
  display:grid;
  gap:9px;
  margin-top:13px
}

.trace-row {
  display:flex;
  align-items:center;
  gap:16px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:11px
}

.coming-soon {
  text-align:center;
  min-height:320px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center
}

.coming-soon p {
  max-width:490px;
  font-size:12px
}

.placeholder-icon {
  font-size:48px;
  color:var(--cyan);
  margin-bottom:13px
}

.error-panel {
  max-width:640px;
  margin:auto
}

.page-skeleton {
  padding-top:24px
}

.skeleton-line {
  height:26px;
  width:35%;
  background:var(--line);
  border-radius:7px;
  animation:pulse 1.4s ease-in-out infinite
}

.skeleton-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:40px
}

.skeleton-tile {
  height:140px;
  background:var(--line);
  border-radius:14px;
  animation:pulse 1.4s ease-in-out infinite
}

.toast-region {
  position:fixed;
  bottom:20px;
  right:20px;
  z-index:90
}

.login-layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(420px,1.04fr) minmax(380px,1fr)
}

.login-story {
  position:relative;
  min-height:650px;
  background:radial-gradient(circle at 100% 15%,#2a526d 0%,transparent 37%),linear-gradient(135deg,#12263c,#1c3d5b);
  padding:48px clamp(32px,5vw,80px);
  color:white;
  display:flex;
  flex-direction:column;
  justify-content:space-between
}

.brand-large .brand-symbol {
  font-size:44px
}

.brand-large .brand-name {
  font-size:23px
}

.login-pitch {
  max-width:580px
}

.eyebrow-inverse {
  color:#6bd6ff
}

.login-pitch h1 {
  font-size:clamp(39px,4.7vw,68px);
  line-height:1.1;
  letter-spacing:-.055em;
  margin:20px 0
}

.login-pitch h1 em {
  font-style:normal;
  color:#77ceec
}

.login-pitch p {
  font-size:16px;
  color:#c7d5e3;
  max-width:500px
}

.login-tokens {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:36px
}

.login-tokens span {
  border:1px solid #4b6983;
  padding:9px 11px;
  font-size:9px;
  letter-spacing:.1em;
  border-radius:30px;
  font-weight:750;
  color:#c9dbe6
}

.login-footer {
  color:#8daabd;
  font-size:11px
}

.login-form-wrap {
  display:flex;
  align-items:center;
  justify-content:center;
  padding:35px;
  background:var(--page)
}

.login-panel {
  max-width:400px;
  width:100%
}

.login-panel h2 {
  font-size:31px;
  letter-spacing:-.05em;
  margin:14px 0
}

.login-panel>.muted {
  font-size:14px
}

.login-button {
  width:100%;
  font-size:14px;
  margin:22px 0
}

.small-note {
  font-size:11px;
  color:var(--muted)
}

.login-corner {
  border-top:1px solid var(--line);
  margin-top:55px;
  padding-top:20px;
  font-size:11px;
  color:var(--muted);
  display:flex;
  gap:10px;
  align-items:center
}

.tiny-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#2abb92
}

.alert {
  padding:14px;
  font-size:12px;
  border-radius:9px;
  line-height:1.6;
  margin:20px 0
}

.alert-warning {
  background:rgba(228,168,41,.13);
  color:var(--ink);
  border:1px solid rgba(228,168,41,.3)
}

@keyframes loading-bar {
  from {
    transform:translateX(-80%)
  }

  to {
    transform:translateX(260%)
  }

}

@keyframes pulse {
  50% {
    opacity:.45
  }

}

@media(max-width:1100px) {
  .metrics-grid {
    grid-template-columns:repeat(2,1fr)
  }

  .dashboard-columns {
    grid-template-columns:1fr
  }

}

@media(max-width:800px) {
  .sidebar {
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    transform:translateX(-102%);
    transition:transform .18s;
    box-shadow:0 16px 48px #0003
  }

  .sidebar.expanded {
    transform:translateX(0)
  }

  .mobile-menu {
    display:flex
  }

  .top-progress {
    left:0
  }

  .topbar {
    padding:0 16px
  }

  .content {
    padding:24px 17px
  }

  .detail-layout {
    grid-template-columns:1fr
  }

  .app-footer {
    padding:16px
  }

  .login-layout {
    grid-template-columns:1fr
  }

  .login-story {
    min-height:350px;
    padding:30px
  }

  .login-pitch h1 {
    font-size:38px
  }

  .login-footer,.login-tokens {
    display:none
  }

  .login-form-wrap {
    min-height:420px
  }

  .page-heading {
    align-items:flex-start
  }

}

@media(max-width:500px) {
  .metrics-grid,.skeleton-grid {
    grid-template-columns:1fr
  }

  .overview-next {
    flex-direction:column;
    align-items:flex-start
  }

  .env-pill {
    font-size:9px;
    padding:6px
  }

  .breadcrumb-root,.breadcrumb-separator {
    display:none
  }

  .filter-row .field-input {
    flex:1;
    min-width:100%
  }

  .page-heading h1 {
    font-size:26px
  }

}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important
  }

}

.metric-progress {
  width:100%;
  height:7px;
  appearance:none;
  border:none;
  background:var(--surface2);
  border-radius:99px;
  overflow:hidden
}

.metric-progress::-webkit-progress-bar {
  background:var(--surface2);
  border-radius:99px
}

.metric-progress::-webkit-progress-value {
  background:linear-gradient(90deg,#2083ae,#50b5d4);
  border-radius:99px
}

.metric-progress::-moz-progress-bar {
  background:#168fbe;
  border-radius:99px
}

/* I1: shared, accessible editable workspace components. */
.heading-actions {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end
}

.draft-indicator {
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(21,144,190,.35);
  background:rgba(21,144,190,.11);
  color:var(--cyan);
  font-size:10px;
  border-radius:40px;
  padding:7px 10px;
  font-weight:750;
  white-space:nowrap
}

.notice {
  padding:13px 17px;
  border:1px solid var(--line);
  border-radius:10px;
  font-size:12px;
  line-height:1.6;
  margin:12px 0 22px
}

.notice-warning {
  background:rgba(204,145,25,.08);
  border-color:rgba(204,145,25,.27)
}

.notice-neutral {
  background:var(--surface2)
}

.create-control {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap
}

.create-control label {
  font-size:11px;
  font-weight:650;
  color:var(--muted)
}

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

.editor-form .panel {
  padding:24px
}

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

.editor-field {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  font-size:12px
}

.editor-field>span {
  font-weight:680
}

.editor-field .field-input {
  width:100%;
  font-size:13px;
  min-width:0;
  height:40px
}

.editor-field textarea.field-input {
  height:auto;
  resize:vertical;
  min-height:90px;
  line-height:1.5
}

.editor-field .field-input[readonly] {
  background:var(--surface2);
  opacity:.78
}

.editor-wide {
  grid-column:1/-1
}

.editor-check {
  grid-column:1/-1;
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  color:var(--ink)
}

.editor-check input {
  accent-color:var(--cyan)
}

.editor-actions {
  position:sticky;
  bottom:0;
  z-index:5;
  padding:14px 18px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
  box-shadow:0 -6px 24px rgba(14,37,59,.05)
}

.edit-state {
  margin-right:auto;
  font-size:12px;
  color:var(--muted);
  min-width:0
}

.error-text {
  color:#c84047;
  font-weight:650
}

.relationship-editor {
  display:grid;
  gap:8px;
  margin-bottom:12px
}

.relation-edit-row {
  display:grid;
  grid-template-columns:minmax(140px,.55fr) minmax(180px,1fr) 36px;
  gap:8px;
  align-items:center
}

.relation-edit-row .field-input {
  width:100%;
  min-width:0
}

.delete-relation {
  border:1px solid var(--line);
  border-radius:8px;
  height:36px
}

.mini-note {
  font-size:11px;
  color:var(--muted);
  line-height:1.6;
  margin:10px 0
}

.code-area,.yaml-preview {
  font-family:ui-monospace,Menlo,Consolas,monospace;
  font-size:11px
}

.queue-panel {
  margin-bottom:15px
}

.queue-heading,.queue-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap
}

.queue-heading {
  font-size:13px;
  font-weight:600
}

.queue-actions {
  justify-content:flex-end;
  margin-top:13px
}

.diff-details {
  border-top:1px solid var(--line);
  padding-top:15px;
  margin-top:15px
}

.diff-details summary {
  cursor:pointer;
  font-size:12px;
  font-weight:650;
  color:var(--cyan)
}

.diff-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:12px
}

.diff-grid h3 {
  font-size:11px;
  margin:0 0 8px
}

.yaml-preview {
  margin:0;
  padding:14px;
  border:1px solid var(--line);
  background:var(--surface2);
  border-radius:8px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  max-height:400px;
  overflow:auto;
  line-height:1.55
}

.button-danger {
  border-color:rgba(201,54,68,.36);
  background:transparent;
  color:#c84047
}

.button-danger:hover {
  background:rgba(201,54,68,.07);
  text-decoration:none
}

.toast {
  padding:13px 16px;
  margin:6px;
  border-radius:10px;
  background:#175d4d;
  color:white;
  box-shadow:0 8px 26px #0002;
  max-width:400px;
  font-size:12px
}

.toast-error {
  background:#9d343c
}

@media(max-width:800px) {
  .editor-grid,.diff-grid {
    grid-template-columns:1fr
  }

  .relation-edit-row {
    grid-template-columns:1fr 1fr 32px
  }

  .heading-actions {
    justify-content:flex-start
  }

  .editor-actions {
    flex-wrap:wrap
  }

}

