:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef1f4;
  color: #17202a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(238, 241, 244, 0.94), rgba(238, 241, 244, 0.72)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-attachment: fixed;
}

.shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  padding: 34px 28px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
}

.rail h1 {
  font-size: 46px;
  line-height: 0.95;
  letter-spacing: 0;
  margin: 0 0 18px;
}

.rail-copy {
  color: #cbd5e1;
  line-height: 1.55;
}

.workspace {
  padding: 30px;
  display: grid;
  gap: 22px;
  align-content: start;
  animation: rise 420ms ease-out both;
}

.topbar, .operation-head, .request-row, .profile-band, .diagnostics {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.profile-band, .operation, .request-row, .diagnostics {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 8px;
  padding: 18px;
  backdrop-filter: blur(10px);
}

.profile-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.request-row {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) 190px;
}

.operation { display: grid; gap: 14px; }

.eyebrow, .label {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.rail .eyebrow { color: #94a3b8; }

h2, h3 {
  margin: 0;
  letter-spacing: 0;
}

h2 { font-size: 34px; }
h3 { font-size: 22px; }

strong {
  display: block;
  font-size: 22px;
}

button, .download {
  border: 0;
  border-radius: 6px;
  padding: 11px 14px;
  background: #1f7a8c;
  color: white;
  font-weight: 760;
  cursor: pointer;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease;
}

button:hover, .download:hover { transform: translateY(-1px); background: #145866; }
button.quiet, .download { background: #e2e8f0; color: #17202a; }
button.quiet:hover, .download:hover { background: #cbd5e1; }
button.danger { background: #b42318; }
button.danger:hover { background: #8f1d15; }
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.approval-hint {
  min-height: 44px;
  border: 1px solid rgba(31, 122, 140, 0.24);
  border-radius: 8px;
  background: rgba(236, 253, 245, 0.74);
  color: #145866;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.35;
}

.approval-hint:empty {
  display: none;
}

input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
}

pre {
  margin: 0;
  max-height: 300px;
  overflow: auto;
  background: #0f172a;
  color: #dbeafe;
  border-radius: 8px;
  padding: 14px;
  font-size: 12px;
}

.mode-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.mode-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 10px;
}

.mode-list dt { color: #94a3b8; }
.mode-list dd { margin: 0; font-weight: 800; text-align: right; }

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.timeline li {
  background: rgba(255, 255, 255, 0.82);
  border-left: 4px solid #1f7a8c;
  border-radius: 6px;
  padding: 12px 14px;
  animation: fadeIn 260ms ease-out both;
}

.timeline b { display: block; }
.timeline span { color: #64748b; font-size: 13px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .rail { min-height: auto; }
  .profile-band, .request-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .workspace { padding: 18px; }
  .topbar, .operation-head, .diagnostics { align-items: stretch; flex-direction: column; }
  .profile-band, .request-row { grid-template-columns: 1fr; }
}
