:root {
  color: #f6f8ff;
  background: #0b1022;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(44, 103, 242, .25), transparent 36rem),
    #0b1022;
}

.shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 18px;
}

.panel {
  width: min(100%, 680px);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #26355d;
  border-radius: 24px;
  background: rgba(17, 25, 48, .96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

.eyebrow {
  margin-bottom: 14px;
  color: #62c7ff;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .12em;
}

h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.3rem); line-height: 1.15; }
h2 { margin: 0 0 18px; font-size: 1.25rem; }
.intro { margin: 14px 0 30px; color: #b8c3df; line-height: 1.6; }

form { display: grid; gap: 20px; }
.session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  color: #b5f5dd;
}
.field { display: grid; gap: 8px; }
label { font-weight: 650; }
label span, small { color: #8f9bb9; font-weight: 400; }
small { font-size: .78rem; line-height: 1.45; }

input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #33446f;
  border-radius: 12px;
  outline: none;
  color: #fff;
  background: #0a1126;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus { border-color: #3e92ff; box-shadow: 0 0 0 3px rgba(62, 146, 255, .2); }
input:invalid:not(:placeholder-shown) { border-color: #e96878; }

button {
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: linear-gradient(110deg, #2858db, #1da8ee);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(24, 120, 238, .25);
}

button:hover:not(:disabled) { filter: brightness(1.08); }
button:focus-visible { outline: 3px solid #96d6ff; outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .7; }
button.secondary {
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #40527e;
  background: #131d38;
  box-shadow: none;
  font-size: .85rem;
}
[hidden] { display: none !important; }

.status, .result {
  margin-top: 24px;
  padding: 17px 18px;
  border: 1px solid #40527e;
  border-radius: 14px;
  background: #0c1530;
}

.status[data-kind="working"] { border-color: #3d78cb; color: #b8dcff; }
.status[data-kind="error"] { border-color: #9d4050; color: #ffc4cc; background: #26131f; }
.status[data-kind="success"] { border-color: #237a63; color: #b5f5dd; background: #0d241f; }

.result { border-color: #287860; }
.result dl { display: grid; gap: 12px; margin: 0; }
.result dl div { display: grid; grid-template-columns: minmax(130px, .65fr) 1.35fr; gap: 10px; }
.result dt { color: #8f9bb9; }
.result dd { margin: 0; overflow-wrap: anywhere; }
.result-note { margin: 18px 0 0; color: #8f9bb9; font-size: .84rem; line-height: 1.5; }

@media (max-width: 520px) {
  .panel { border-radius: 18px; }
  .result dl div { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
