:root {
  color-scheme: light;
  --ink: #172338;
  --muted: #59677c;
  --line: #dbe2ec;
  --blue: #2457d5;
  --pale: #f2f5fa;
  --radius: 14px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--pale);
  color: var(--ink);
  font:
    15px/1.5 Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 14px;
  font-weight: 620;
  line-height: 1.3;
  cursor: pointer;
}
button:hover,
.primary:hover {
  background: #1947bc;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
.secondary {
  background: white;
  color: #254277;
  border-color: #cbd6e6;
}
.secondary:hover,
.quiet:hover {
  background: #f0f4fb;
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 5px 10px;
}
:focus-visible {
  outline: 3px solid #5480f2;
  outline-offset: 3px;
}
.wrap {
  width: min(100% - 80px, 1160px);
  margin-inline: auto;
}
.app-header {
  background: white;
  border-bottom: 1px solid var(--line);
}
.bar,
.brand,
#session,
.operator,
.actions,
.back,
.text-link,
.identity,
.school-title,
.hero,
.list-title,
.card-head,
.extension,
.school-name,
.standard {
  display: flex;
  align-items: center;
}
.bar {
  min-height: 66px;
  justify-content: space-between;
}
.brand {
  gap: 10px;
  color: var(--ink);
}
.brand b {
  font-size: 21px;
  letter-spacing: -0.045em;
  font-weight: 760;
}
.product {
  margin-left: 5px;
  padding-left: 15px;
  border-left: 1px solid #d3dae6;
  color: var(--muted);
  font-size: 14px;
}
.brand-mark {
  position: relative;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--blue);
  font-size: 0;
}
.brand-mark::before,
.brand-mark::after {
  content: '';
  position: absolute;
  top: 9px;
  width: 7px;
  height: 12px;
  border: 1.5px solid white;
}
.brand-mark::before {
  left: 7px;
  border-radius: 2px 3px 0 1px;
  transform: skewY(10deg);
}
.brand-mark::after {
  right: 7px;
  border-radius: 3px 2px 1px 0;
  transform: skewY(-10deg);
}
#session,
.operator {
  gap: 9px;
  font-size: 13px;
  font-weight: 560;
}
.operator {
  padding-right: 17px;
  border-right: 1px solid var(--line);
}
.operator i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-style: normal;
  background: #e7edf9;
  color: #405785;
}
.icon {
  flex: none;
  width: 17px;
  height: 17px;
}
h1,
h2,
h3,
p,
ol,
dl,
dd {
  margin: 0;
}
h1 {
  font-size: clamp(32px, 3.1vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 700;
  overflow-wrap: anywhere;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.025em;
  font-weight: 660;
}
.sheet-head {
  background: white;
  border-bottom: 1px solid var(--line);
}
.back,
.text-link {
  width: fit-content;
  gap: 7px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 560;
}
.back:hover,
.text-link:hover {
  text-decoration: underline;
}
.sheet-head .back {
  padding-top: 28px;
}
.hero {
  justify-content: space-between;
  gap: 25px;
  padding: 30px 0 28px;
}
.identity {
  gap: 18px;
  min-width: 0;
}
.identity-copy {
  min-width: 0;
}
.monogram {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  font-size: 30px;
  font-weight: 680;
  line-height: 1;
}
.iris {
  background: #e6eaff;
  color: #4d55a9;
}
.aqua {
  background: #d7f0ee;
  color: #286660;
}
.peach {
  background: #ffeadc;
  color: #8b5034;
}
.sky {
  background: #dceafa;
  color: #365d85;
}
.school-title {
  flex-wrap: wrap;
  gap: 10px 15px;
}
.domain,
.muted,
small,
time,
dt {
  color: var(--muted);
}
.domain {
  font-size: 14px;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.hero .button {
  flex: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  align-self: center;
  color: #4a5871;
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}
.pill::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: none;
  background: #8493a7;
  border-radius: 50%;
}
.pill.ready::before {
  background: #1b9961;
}
.pill.ready {
  color: #226547;
}
.pill.failed {
  color: #a93c33;
}
.pill.failed::before {
  background: #c2453b;
}
.pill.maintenance::before,
.pill.pending::before,
.pill.working::before {
  background: #b07615;
}
.tabs {
  display: flex;
  align-items: stretch;
  gap: 30px;
}
.tabs a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  border-bottom: 3px solid transparent;
  padding: 1px 0 0;
}
.tabs a[aria-current='page'] {
  color: var(--blue);
  border-color: var(--blue);
}
.tabs a:hover {
  color: var(--blue);
}
.body-wrap {
  padding-block: 28px 56px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(0, 1fr);
  gap: 20px;
}
.card,
.form-screen form,
#edit,
.record-details {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card,
.form-screen form,
#edit {
  padding: 26px 28px;
}
.card-head,
.list-title {
  justify-content: space-between;
  gap: 16px;
}
.card-head .secondary {
  font-size: 13px;
  min-height: 34px;
  padding: 6px 11px;
}
.version {
  font-size: clamp(29px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.05em;
  font-weight: 660;
  margin: 21px 0 22px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.extensions {
  border-top: 1px solid var(--line);
}
.extension {
  gap: 13px;
  padding: 14px 0;
}
.extension + .extension {
  border-top: 1px solid #ebeff5;
}
.extension:last-child {
  padding-bottom: 0;
}
.extension strong {
  font-size: 15px;
  font-weight: 570;
}
.ext-version {
  margin-left: auto;
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
}
.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #e7efff;
  color: #3e64c0;
}
.tile.rule {
  color: #247469;
  background: #dcf2ed;
}
.tile .icon {
  width: 20px;
  height: 20px;
}
.standard {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  gap: 10px;
}
.activity {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 20px 0 17px;
}
.timeline li {
  position: relative;
  padding: 0 0 16px 22px;
}
.timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 11px;
  bottom: -4px;
  width: 1px;
  background: #d8e0eb;
}
.timeline li::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 7px;
  height: 7px;
  background: #aebedb;
  border-radius: 50%;
}
.timeline li:first-child::before {
  background: var(--blue);
}
.timeline li:last-child {
  padding-bottom: 0;
}
time,
.release-line {
  display: block;
  font-size: 12px;
  line-height: 1.45;
}
.timeline strong {
  font-size: 14px;
  font-weight: 550;
}
.activity .text-link {
  margin-top: auto;
}
.facts {
  margin-top: 24px;
  padding: 20px 2px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}
.facts div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
dt {
  font-size: 13px;
}
dd {
  font-size: 14px;
  font-weight: 550;
}
.record {
  padding-bottom: 0;
}
.notice,
.pending-note {
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff3d7;
  color: #76550e;
  margin-bottom: 14px;
}
.actions {
  flex-wrap: wrap;
  gap: 10px;
}
.list-screen {
  padding: 44px 0 60px;
}
.list-title {
  margin-bottom: 26px;
}
.registry {
  padding: 0;
  overflow: hidden;
}
.registry-head,
.school-row {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(110px, 0.8fr) minmax(100px, 0.65fr) 16px;
  gap: 16px;
  align-items: center;
  padding: 20px 24px;
}
.registry-head {
  background: #f8faff;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding-block: 12px;
}
.school-row {
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.school-row:hover {
  background: #f6f9fe;
}
.school-row:focus-visible {
  outline-offset: -3px;
}
.school-name {
  gap: 13px;
  min-width: 0;
}
.school-name > span:last-child {
  min-width: 0;
}
.school-name strong,
.school-name small {
  display: block;
  overflow-wrap: anywhere;
}
.school-name strong {
  font-size: 16px;
  font-weight: 620;
}
.school-name small {
  font-size: 12px;
}
.school-name .monogram {
  width: 41px;
  height: 41px;
  font-size: 19px;
  border-radius: 10px;
}
.row-version {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.school-row > .icon {
  color: #78869b;
}
.empty {
  padding: 24px;
  color: var(--muted);
}
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.form-screen {
  width: min(100% - 40px, 600px);
  margin: 40px auto 60px;
}
.form-screen h1 {
  margin: 20px 0;
}
.login-screen {
  max-width: 440px;
  margin-top: 10vh;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 570;
  margin: 16px 0 6px;
}
input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #bac6d8;
  border-radius: 7px;
  padding: 9px 12px;
  background: white;
  color: var(--ink);
}
input[type='color'] {
  width: 68px;
  height: 40px;
  padding: 3px;
}
input[type='checkbox'] {
  width: auto;
  min-height: 0;
}
input[type='file'] {
  font-size: 13px;
}
form .actions,
.backup .actions {
  margin-top: 22px;
}
#edit,
.backup,
.journal,
.record-details {
  max-width: 780px;
}
.journal ol {
  padding: 0;
  list-style: none;
}
.journal li {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.journal li strong {
  font-weight: 600;
}
.journal button {
  margin-top: 16px;
}
.journal .long {
  color: #44536d;
  font-size: 14px;
}
.long,
.tech {
  overflow-wrap: anywhere;
}
.tech {
  color: var(--muted);
  font-size: 13px;
  margin-top: 16px;
}
.tech summary {
  cursor: pointer;
  color: #435677;
  width: fit-content;
}
.tech dl,
.tech p {
  margin-top: 10px;
}
.tech dd {
  font:
    12px/1.6 ui-monospace,
    monospace;
}
.record-details {
  padding: 16px 22px;
}
#release-preview {
  margin-top: 18px;
}
.backup h2 + p,
.card > h2 + p {
  margin-top: 12px;
}
#error {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 12px 18px;
  border-radius: 9px;
  max-width: 90vw;
  background: #842e35;
  color: white;
}
#error.success {
  background: #225d43;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hero {
    flex-wrap: wrap;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .registry-head,
  .school-row {
    grid-template-columns: minmax(0, 1.7fr) minmax(86px, 0.7fr) minmax(80px, 0.6fr) 14px;
    gap: 9px;
  }
}
@media (max-width: 580px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .bar {
    min-height: 54px;
  }
  .operator {
    display: none;
  }
  .sheet-head .back {
    padding-top: 17px;
  }
  .hero {
    gap: 16px;
    padding: 19px 0 12px;
  }
  .identity {
    align-items: flex-start;
    gap: 11px;
  }
  .identity .monogram {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 11px;
  }
  .school-title {
    gap: 5px 10px;
  }
  .school-title h1 {
    font-size: 28px;
  }
  .domain {
    font-size: 12px;
  }
  .hero .button {
    min-height: 38px;
  }
  .tabs {
    gap: clamp(9px, 3.6vw, 19px);
    flex-wrap: wrap;
  }
  .tabs a {
    font-size: 12.5px;
    min-height: 42px;
  }
  .body-wrap {
    padding-top: 15px;
  }
  .columns {
    gap: 13px;
  }
  .card,
  #edit,
  .form-screen form {
    padding: 18px;
  }
  .card-head {
    flex-wrap: wrap;
    gap: 10px;
  }
  h2 {
    font-size: 18px;
  }
  .card-head .secondary {
    min-height: 34px;
  }
  .version {
    margin: 16px 0;
  }
  .extension {
    gap: 10px;
  }
  .extension strong {
    font-size: 14px;
  }
  .facts {
    margin-top: 17px;
    gap: 9px 24px;
    padding: 14px 0;
  }
  .facts div {
    gap: 6px;
  }
  .list-screen {
    padding-top: 25px;
  }
  .list-title {
    align-items: start;
    flex-direction: column;
    gap: 17px;
  }
  .registry {
    padding: 0;
  }
  .registry-head {
    display: none;
  }
  .school-row {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 16px;
  }
  .school-name {
    grid-column: 1/-1;
    padding-right: 15px;
  }
  .school-name .monogram {
    width: 33px;
    height: 33px;
    font-size: 15px;
  }
  .school-row > .icon {
    position: absolute;
    right: 12px;
    top: 22px;
  }
  .school-row .row-version {
    margin-left: 46px;
  }
  .school-row .pill {
    font-size: 12px;
  }
}

@media (max-width: 580px) {
  .card-head {
    gap: 8px;
  }
  .card-head .secondary {
    min-height: 36px;
    padding: 4px 0;
    border: 0;
    color: var(--blue);
    font-size: 12px;
  }
}
.release > .tech {
  margin-top: 15px;
}
.record-details {
  margin-top: 16px;
}

.decision {
  width: min(450px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: white;
  box-shadow: 0 16px 64px #14233730;
}
.decision::backdrop {
  background: #13213966;
}
.decision p,
.load-error p {
  margin: 12px 0;
}
.decision .actions {
  justify-content: flex-end;
}
.decision .danger {
  background: #a43733;
}
.release-diff {
  margin: 14px 0;
  padding-left: 20px;
}
.release-diff li {
  margin-block: 6px;
}
#edit-feedback {
  margin-top: 16px;
  color: var(--ink);
  background: #edf2ff;
  padding: 10px 12px;
  border-radius: 7px;
}
.load-error {
  margin-top: 20px;
}
.merge-field {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.merge-field legend {
  font-weight: 600;
  font-size: 14px;
}
.merge-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.merge-field label:has(:checked) {
  background: #edf2ff;
  border-color: var(--blue);
}
.merge-field input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  flex: none;
  margin: 5px 0;
  accent-color: var(--blue);
}
.merge-field small,
.merge-field strong {
  display: block;
  overflow-wrap: anywhere;
}
.merge-field strong {
  font-weight: 560;
}

.monitor-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.monitor-header h2 { margin: 0; font-size: 24px; }
.monitor-header p, .monitor #log-scope { margin: 5px 0 0; font-size: 13px; color: var(--muted); }
.monitor-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "services side" "logs logs"; gap: 18px; align-items: start; }
.monitor-side { grid-area: side; display: grid; gap: 18px; grid-template-areas: "copies" "resources"; }
.monitor-services { grid-area: services; } .monitor-copies { grid-area: copies; }
.monitor-resources { grid-area: resources; } .monitor-logs { grid-area: logs; }
.monitor .card h3 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
.monitor .card { min-width: 0; }
.readings { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 14px; font-variant-numeric: tabular-nums; }
.readings th, .readings td { padding: 9px 0; text-align: right; border-top: 1px solid var(--line); }
.readings th:first-child { text-align: left; }
.readings thead th { color: var(--muted); font-size: 12px; font-weight: 500; border: 0; }
.readings tbody th { font-weight: 610; }
.readings small, .monitor-events small, .operation-attempt small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.signal { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.signal::before, .event-mark { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.signal.good { color: #116047; } .signal.bad, .event-mark.error { color: #a01d35; }
.signal.wait, .event-mark.warning { color: #8a550c; } .signal.idle, .event-mark.info { color: #62738b; }
.service-table td:last-child { color: var(--muted); font-size: 12px; padding-left: 9px; }
.operation-times { margin: 14px 0; display: grid; gap: 12px; }
.operation-times dt { font-size: 13px; color: var(--muted); }
.operation-times dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.resource-details { margin-top: 12px; } .resource-details summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 13px; }
.resource-details p, .operation-attempt { font-size: 13px; }
.operation-attempt { background: #fff4dc; color: #704717; padding: 10px 13px; border-radius: 8px; }
.monitor-filter { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 0; }
.monitor-filter select { margin: 0; min-height: 34px; width: auto; font-size: 13px; }
.monitor-events { margin: 15px 0 0; padding: 0; list-style: none; }
.monitor-events li { display: grid; grid-template-columns: 7px 1fr auto; align-items: baseline; gap: 0 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.monitor-events strong { font-size: 14px; font-weight: 600; } .monitor-events time, .repeats, .monitor-empty { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) {
  .monitor-side { display: contents; }
  .monitor-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copies" "services" "resources" "logs"; gap: 12px; }
  .operation-times { display: flex; flex-wrap: wrap; gap: 10px 22px; }
}
@media (max-width: 580px) {
  .monitor-header { margin-bottom: 13px; } .monitor-header h2 { font-size: 20px; }
  .monitor .card { padding: 16px; } .monitor .card-head { align-items: center; }
  .monitor-filter { flex-wrap: wrap; } .readings { font-size: 13px; } .service-table { table-layout: fixed; }
  .service-table th:first-child { width: 39%; } .service-table td:last-child { padding-left: 4px; }
  .monitor-events li { grid-template-columns: 7px 1fr; } .monitor-events time { grid-column: 2; }
}
