:root {
  font-family:
    Segoe UI,
    Arial,
    sans-serif;
  color: #203942;
  background: #f5f7f9;
  font-size: 15px;
  --green: #167c62;
  --line: #dce5e9;
  --muted: #526c78;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #12674f;
}
button,
input,
select {
  font: inherit;
}
.bootstrap-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; margin: 24px 0; }
.bootstrap-steps button { padding: 12px 8px; font-size: 13px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.bootstrap-steps button span { display: grid; place-items: center; border-radius: 50%; background: #edf3f4; width: 25px; height: 25px; flex-shrink: 0; }
.bootstrap-steps button[aria-current="step"] { background: #e8f5ee; color: #12674f; border-color: #8ac5ae; }
.bootstrap-steps button[aria-current="step"] span { background: #167c62; color: white; }
.bootstrap-step h3 { margin: 26px 0 12px; font-size: 20px; }
.bootstrap-step > label { max-width: 620px; margin: 18px 0; }
.bootstrap-draft-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bootstrap-modules { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 22px 0; }
.bootstrap-module { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.bootstrap-module:has(input:checked) { background: #f0f8f3; border-color: #9bcab8; }
.bootstrap-module input, .bootstrap-sector input { width: 20px; min-height: 20px; height: 20px; margin: 2px 0; flex-shrink: 0; accent-color: var(--green); }
.bootstrap-module strong { display: block; font-size: 15px; margin: 0 0 8px; }
.bootstrap-module small { line-height: 1.6; }
.bootstrap-module .module-dependency { font-size: 11px; color: #356e57; }
.bootstrap-sector { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 12px 0; max-width: 620px; border: 1px solid var(--line); border-radius: 10px; }
.bootstrap-summary { display: grid; gap: 0; }
.bootstrap-summary > div { display: grid; grid-template-columns: minmax(100px,160px) minmax(0,1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bootstrap-summary dt { color: var(--muted); font-size: 13px; }
.bootstrap-summary dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
.bootstrap-checks { list-style: none; padding: 0; }
.bootstrap-checks li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.bootstrap-checks p { margin: 8px 0; font-size: 13px; }
.bootstrap-checks small { color: var(--muted); }
.bootstrap-actions { margin-top: 26px; }
button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--green);
  color: white;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}
button.secondary {
  background: #fff;
  color: #203942;
  border-color: #c4d2d9;
}
button.danger {
  background: #9a4037;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #54aece;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 3;
  background: #fff;
  padding: 12px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  width: 248px;
  inset: 0 auto 0 0;
  background: white;
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  overflow: auto;
}
.brand {
  font-size: 23px;
  color: var(--green);
  margin-bottom: 24px;
}
.brand small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav a {
  border-radius: 8px;
  padding: 13px 12px;
  color: #36535f;
  text-decoration: none;
  min-height: 44px;
}
.sidebar nav a[aria-current="page"] {
  background: #e8f5ee;
  color: #12674f;
  font-weight: 600;
}
.sidebar-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 26px 8px 20px;
}
#preview-link {
  font-size: 13px;
  margin: 12px 8px;
}
#logout {
  width: 100%;
  margin-top: 24px;
}
.shell {
  margin-left: 248px;
}
header {
  min-height: 95px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  gap: 16px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
#operator-label {
  margin: 8px 0 0;
  font-weight: 600;
}
main {
  padding: 28px 32px;
  max-width: 1600px;
  margin: auto;
}
h1 {
  font-size: 29px;
  margin: 26px 0 10px;
}
h2 {
  font-size: 19px;
  margin: 0 0 14px;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.notice {
  border: 1px solid #d7e6dd;
  background: #eff8f2;
  padding: 14px 18px;
  line-height: 1.65;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 18px;
}
.notice.error {
  background: #fff2ef;
  border-color: #efd4cf;
  color: #87382e;
}
.notice.warning {
  background: #fff7e8;
  border-color: #edddb9;
  color: #705627;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 12px;
  margin: 20px 0;
}
.grid .card {
  margin: 0;
}
.stat {
  font-size: 34px;
  font-weight: 700;
  color: #12674f;
  margin: 10px 0;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 4px 8px;
  background: #eef3f5;
  color: #385665;
  font-size: 12px;
  white-space: nowrap;
}
.badge.warning {
  background: #fff1d7;
  color: #785326;
}
.badge.good {
  background: #e3f4ea;
  color: #14684d;
}
.badge.error {
  background: #fff0eb;
  color: #8b3c30;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
table {
  border-collapse: collapse;
  min-width: 620px;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 14px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: #f8fafb;
  color: #466370;
  font-weight: 600;
}
td small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
td button,
td select {
  margin: 3px 0;
}
.empty {
  background: white;
  border: 1px dashed #c6d4d9;
  padding: 24px;
  border-radius: 12px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
}
input,
select {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid #bccdd4;
  border-radius: 8px;
  padding: 10px;
  background: white;
  margin-top: 8px;
  color: #203942;
}
label small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
  margin-top: 6px;
}
.list {
  padding: 0;
  list-style: none;
}
.list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.list li:first-child {
  padding-top: 0;
}
.list strong {
  display: block;
  margin-bottom: 8px;
}
.list p {
  margin: 10px 0 0;
}
.list li:last-child {
  border-bottom: 0;
}
.wide {
  width: 100%;
}
footer {
  padding: 24px 32px;
  font-size: 12px;
  color: var(--muted);
}
.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  max-width: 440px;
  width: 100%;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.login-card label {
  margin: 18px 0;
}
.login-card button {
  width: 100%;
  margin-top: 12px;
}
.login-card .password-field {
  margin: 18px 0;
}
.login-card .password-field label {
  margin: 0;
}
.login-card .password-input {
  position: relative;
  margin-top: 8px;
}
.login-card .password-input input {
  margin-top: 0;
  padding-right: 56px;
}
.login-card #password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  margin: 0;
  padding: 10px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  color: var(--muted);
}
.login-card #password-toggle:hover {
  background: #e8f5ee;
  color: var(--green);
}
.login-card #password-toggle svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
@media (max-width: 800px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }
  .sidebar nav a {
    white-space: nowrap;
  }
  .sidebar .brand {
    margin-bottom: 14px;
  }
  .sidebar-note {
    display: none;
  }
  #logout {
    width: auto;
    margin: 14px 0 0;
  }
  #preview-link {
    margin: 14px 6px;
  }
  .shell {
    margin-left: 0;
  }
  header {
    padding: 18px;
    min-height: 85px;
  }
  main {
    padding: 20px 18px;
  }
  h1 {
    font-size: 25px;
  }
  .card {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .bootstrap-steps { grid-template-columns: 1fr 1fr; }
  .bootstrap-steps button { justify-content: flex-start; }
  .bootstrap-modules { grid-template-columns: 1fr; }
  .bootstrap-summary > div { grid-template-columns: 1fr; gap: 6px; }
  .bootstrap-checks li { flex-direction: column; gap: 10px; }
  .bootstrap-actions > button { flex: 1 1 120px; }
  .login-card {
    padding: 22px;
  }
  footer {
    padding: 20px 18px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition: background-color 0.12s ease;
  }
}
