:root{
  --bg: #0b1220;
  --card: #101f38;
  --border: rgba(255,255,255,.10);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --green: #2ecc71;
  --green-2: #1faa59;
  --danger: #ff5c7a;
  --warn: #ffcc66;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --focus: 0 0 0 3px rgba(46, 204, 113, .35);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(46,204,113,.18), transparent 60%),
              radial-gradient(900px 500px at 85% 20%, rgba(46,204,113,.10), transparent 60%),
              var(--bg);
  color: var(--text);
}

.footer-brand {
  display: flex;
  align-items: center;   /* keeps them vertically aligned */
  gap: 15px;             /* 👈 space between logo and text */
}

.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:8px;
  background: var(--green);
  color: #06120c;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus{ left: 16px; outline: none; box-shadow: var(--focus); }

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,18,32,.70);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}
.brand__mark{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--green), rgba(46,204,113,.25));
  box-shadow: 0 10px 24px rgba(46,204,113,.18);
}
.brand__title{ font-weight: 800; letter-spacing: .2px; }
.brand__sub{ font-size: 13px; color: var(--muted); margin-top: 2px; }

.card{
  margin: 18px 0;
  background: linear-gradient(180deg, rgba(16,31,56,.95), rgba(16,31,56,.75));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__header{ padding: 18px 18px 8px 18px; }
.card > *:not(.card__header){ padding: 12px 18px 18px 18px; }

.h1{ font-size: 26px; margin: 0 0 6px 0; }
.h2{ font-size: 18px; margin: 0 0 6px 0; }
.h3{ font-size: 16px; margin: 0; }
.muted{ color: var(--muted); margin: 0; }

.grid{ display:grid; gap: 14px; }
.grid--2{ grid-template-columns: 1fr; }
.grid--1{ grid-template-columns: 1fr; }
@media (min-width: 900px){
  .grid--2{ grid-template-columns: 1fr 1fr; }
}

.label{
  display:block;
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}
.input:focus{ box-shadow: var(--focus); border-color: rgba(46,204,113,.55); }

.textarea{ resize: vertical; }

.input--compact{
  padding: 10px 10px;
  border-radius: 10px;
}

.help{
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.actions{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.btn{
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
}
.btn:focus{ outline: none; box-shadow: var(--focus); }
.btn:disabled{ opacity: .55; cursor: not-allowed; }

.btn--primary{
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: #05160d;
  border-color: rgba(46,204,113,.35);
}
.btn--ghost{ background: transparent; }

.message{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  min-height: 20px;
  color: var(--muted);
}
.message--success{
  color: rgba(46,204,113,.95);
  border-color: rgba(46,204,113,.35);
  background: rgba(46,204,113,.10);
}
.message--warn{
  color: rgba(255,204,102,.95);
  border-color: rgba(255,204,102,.35);
  background: rgba(255,204,102,.10);
}
.message--error{
  color: rgba(255,92,122,.95);
  border-color: rgba(255,92,122,.35);
  background: rgba(255,92,122,.10);
}

.dialog{
  width: min(720px, calc(100% - 24px));
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16,31,56,.98), rgba(16,31,56,.85));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
}
.dialog::backdrop{ background: rgba(0,0,0,.55); }
.dialog__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 14px 6px 14px;
  border-bottom: 1px solid var(--border);
}
.dialog__body{ padding: 14px; }

/* DSTI checklist */
.table-wrap{
  overflow: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.checklist{
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}
.checklist th, .checklist td{
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: middle;
}
.checklist th{
  text-align: left;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  background: rgba(0,0,0,.12);
}
.checklist td{
  color: rgba(255,255,255,.86);
}

.radio{
  display:flex;
  align-items:center;
  gap: 8px;
  user-select: none;
}
.radio input{ transform: translateY(1px); }
.check{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  padding: 10px 2px;
  color: rgba(255,255,255,.86);
}
.check input{
  transform: translateY(2px);
}
