@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #101116;
  --chrome-1: #3a3b40;
  --chrome-2: #2a2b30;
  --window: #202127;
  --panel: #191a1e;
  --card: #27282e;
  --card-2: #343841;
  --line: #3d3e42;
  --line-soft: rgb(255 255 255 / 8%);
  --text: #ffffff;
  --muted: rgb(255 255 255 / 48%);
  --muted-2: rgb(255 255 255 / 28%);
  --blue: #347ff1;
  --blue-deep: #2b75e7;
  --purple: #a83ed5;
  --cyan: #4dd8df;
  --green: #0cbd70;
  --green-deep: #08783f;
  --red: #ef5555;
  --red-deep: #7a1f24;
  --amber: #ff9d3c;
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  background:
    radial-gradient(circle at 12% -10%, rgb(52 127 241 / 16%), transparent 36%),
    radial-gradient(circle at 88% 8%, rgb(168 62 213 / 12%), transparent 32%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #8eb6ff;
  text-decoration: none;
}

a:hover {
  color: #fff;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 20;
  background: var(--blue);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.workspace {
  min-height: 100vh;
  padding: 28px 20px 40px;
}

.workspace-wide {
  padding: 18px 16px 32px;
}

.app-window {
  width: min(920px, 100%);
  margin: 0 auto;
  background: var(--window);
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 12px;
  box-shadow:
    0 28px 80px rgb(0 0 0 / 48%),
    0 0 48px rgb(76 108 233 / 8%);
  overflow: hidden;
}

.app-window-wide {
  width: min(1180px, 100%);
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 0 14px;
  background: linear-gradient(var(--chrome-1), var(--chrome-2));
  border-bottom: 1px solid #101115;
}

.window-bar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan), var(--green));
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(255 255 255 / 82%);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.window-brand img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.window-brand .version {
  color: var(--muted-2);
  font-weight: 500;
}

.traffic {
  display: none;
  gap: 6px;
}

.traffic i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
}

.traffic i:nth-child(2) {
  background: #febc2e;
}

.traffic i:nth-child(3) {
  background: #28c840;
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgb(255 255 255 / 55%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.window-status b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.window-status.off b {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.window-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
}

.window-nav a {
  color: inherit;
}

.window-nav a:hover {
  color: #fff;
}

.window-body {
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    var(--panel);
  background-size: 28px 28px;
}

.pad {
  padding: 28px 28px 32px;
}

.hero {
  margin-bottom: 22px;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgb(255 255 255 / 42%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker .dots {
  display: flex;
  gap: 4px;
}

.kicker .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.kicker .dots i:nth-child(2) {
  background: var(--amber);
}

.kicker .dots i:nth-child(3) {
  background: var(--purple);
}

h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.lede {
  margin-top: 10px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 15px;
}

.form-card,
.panel {
  background: linear-gradient(180deg, #24252b, #1d1e24);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  color: rgb(255 255 255 / 78%);
}

.hint {
  color: var(--muted-2);
  font-size: 12px;
}

.field input,
.field textarea,
.field select,
.search input {
  width: 100%;
  background: #18191d;
  border: 1px solid #303136;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgb(52 127 241 / 22%);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--red);
}

.error {
  color: #ff9a9a;
  font-size: 12px;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fineprint {
  color: var(--muted-2);
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(105deg, var(--blue-deep), var(--blue));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgb(255 255 255 / 7%);
}

.btn:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-ghost {
  background: linear-gradient(100deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-wide {
  width: 100%;
}

.btn-green {
  background: linear-gradient(105deg, var(--green-deep), var(--green));
}

.btn-purple {
  background: linear-gradient(105deg, #66307e, var(--purple));
}

.btn-red {
  background: linear-gradient(105deg, var(--red-deep), var(--red));
}

.btn.is-on {
  outline: 1px solid rgb(255 255 255 / 28%);
}

.alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.alert-error {
  background: rgb(239 85 85 / 12%);
  border: 1px solid rgb(239 85 85 / 28%);
  color: #ffb4b4;
}

.alert-ok {
  background: rgb(12 189 112 / 12%);
  border: 1px solid rgb(12 189 112 / 24%);
  color: #9be7bf;
}

.thanks {
  padding: 48px 8px 24px;
  text-align: center;
}

.thanks h1 {
  margin-top: 8px;
}

.thanks .lede {
  margin: 12px auto 0;
}

.req-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.req-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #18191d;
  border: 1px solid #303136;
  border-radius: var(--radius-sm);
}

.req-ok {
  color: var(--green);
}

.req-bad {
  color: var(--red);
}

.section-label {
  margin: 16px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0;
}

.stat {
  padding: 14px;
  background: linear-gradient(100deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: inherit;
}

.stat:hover {
  filter: brightness(1.08);
}

.stat strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.search {
  min-width: 240px;
}

.search input {
  border-radius: 980px;
  padding: 8px 14px;
}

.table-wrap {
  overflow: auto;
  background: #1f2024;
  border: 1px solid #34353a;
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid rgb(255 255 255 / 5%);
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  color: rgb(255 255 255 / 32%);
  background: #27282d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr.clickable {
  cursor: pointer;
}

tr.clickable:hover td {
  background: rgb(52 127 241 / 10%);
}

.person {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.person strong {
  font-weight: 600;
}

.person span,
.muted {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-pending {
  color: #ffd7a0;
  background: rgb(255 157 60 / 16%);
}

.badge-accepted {
  color: #9be7bf;
  background: rgb(12 189 112 / 16%);
}

.badge-reached_out {
  color: #b7ccff;
  background: rgb(52 127 241 / 20%);
}

.badge-declined {
  color: #ffb0b0;
  background: var(--red-deep);
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 10px;
  margin-top: 16px;
}

.answer {
  padding: 12px 0;
  border-bottom: 1px solid rgb(255 255 255 / 6%);
}

.answer:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.answer dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer dd {
  margin: 0;
  white-space: pre-wrap;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.status-form {
  display: grid;
  gap: 6px;
}

.status-form button {
  justify-content: flex-start;
}

.login-card {
  max-width: 420px;
}

.footer-note {
  width: min(920px, 100%);
  margin: 14px auto 0;
  color: var(--muted-2);
  font-size: 11px;
}

.footer-note.wide {
  width: min(1180px, 100%);
}

@media (max-width: 900px) {
  .stats,
  .detail-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 12px;
  }

  .pad {
    padding: 18px 16px 22px;
  }

  .traffic {
    display: none;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hide-sm {
    display: none;
  }
}
