@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #09151a;
  --panel: #102329;
  --panel-2: #142c32;
  --line: rgba(197, 226, 220, .14);
  --text: #eef9f4;
  --muted: #8ba6a4;
  --mint: #8be1b7;
  --mint-dark: #133e35;
  --amber: #ffc875;
  --red: #ff927e;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0%, #1c4144 0, transparent 35%), var(--bg); color: var(--text); font-family: Manrope, system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 32px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 10px; color: var(--mint); font: 500 11px/1.3 'DM Mono', monospace; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(28px, 5vw, 46px); letter-spacing: -.06em; }
h2 { margin-bottom: 8px; font-size: 28px; letter-spacing: -.04em; }
h3 { margin: 0; font-size: 15px; }
.card { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(24, 49, 55, .94), rgba(12, 29, 34, .94)); box-shadow: 0 18px 50px rgba(0, 0, 0, .18); }
.status-pill, .mini-pill { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); font: 500 11px 'DM Mono', monospace; white-space: nowrap; }
.status-pill.online, .mini-pill.good { border-color: rgba(139, 225, 183, .3); color: var(--mint); background: rgba(139, 225, 183, .08); }
.status-pill.offline, .mini-pill.bad { color: var(--red); background: rgba(255, 146, 126, .07); }
.mini-pill.warn { color: var(--amber); background: rgba(255, 200, 117, .08); }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; min-height: 230px; }
.muted { color: var(--muted); line-height: 1.65; }
.hero-copy { max-width: 560px; }
.lock-visual { display: grid; place-items: center; width: 128px; height: 128px; border-radius: 50%; font-size: 45px; flex: 0 0 auto; }
.lock-visual.locked { color: var(--mint); background: radial-gradient(circle, rgba(139, 225, 183, .25), rgba(139, 225, 183, .04) 68%); box-shadow: 0 0 0 14px rgba(139, 225, 183, .04); }
.lock-visual.unlocked { color: var(--amber); background: radial-gradient(circle, rgba(255, 200, 117, .25), rgba(255, 200, 117, .04) 68%); box-shadow: 0 0 0 14px rgba(255, 200, 117, .04); }
.control-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.control-grid.single-control { grid-template-columns: 1fr; }
.action-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 150px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; color: var(--text); background: var(--panel); text-align: left; transition: transform .2s, border-color .2s, background .2s; }
.action-card:hover { transform: translateY(-2px); }
.action-card.selected.lock-action { border-color: rgba(139, 225, 183, .7); background: linear-gradient(145deg, rgba(28, 80, 65, .9), var(--panel)); }
.action-card.selected.unlock-action { border-color: rgba(255, 200, 117, .7); background: linear-gradient(145deg, rgba(89, 61, 32, .75), var(--panel)); }
.action-card.open-action { border-color: rgba(255, 200, 117, .7); background: linear-gradient(145deg, rgba(89, 61, 32, .75), var(--panel)); }
.action-card.close-action { border-color: rgba(139, 225, 183, .7); background: linear-gradient(145deg, rgba(28, 80, 65, .9), var(--panel)); }
.action-card:disabled { cursor: wait; opacity: .65; }
.action-icon { font-size: 24px; color: var(--mint); }
.unlock-action .action-icon { color: var(--amber); }
.open-action .action-icon { color: var(--amber); }
.close-action .action-icon { color: var(--mint); }
.action-title { font-size: 18px; font-weight: 800; }
.action-note { color: var(--muted); font: 12px 'DM Mono', monospace; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.info-card { padding: 22px; }
.card-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
dl { margin: 0; }
dl div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(197, 226, 220, .08); }
dl div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; max-width: 60%; overflow: hidden; color: var(--text); font: 12px 'DM Mono', monospace; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 20px; }
.warning { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.text-button { padding: 0; border: 0; color: var(--muted); background: none; text-decoration: underline; }
.login-card { width: min(440px, 100%); margin: 50px auto 0; padding: 30px; }
.lock-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 14px; color: var(--mint); background: var(--mint-dark); font-size: 24px; }
.stack { display: grid; gap: 10px; margin-top: 24px; }
label { color: var(--muted); font-size: 12px; }
input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: rgba(0, 0, 0, .18); }
input:focus { border-color: var(--mint); }
.button { border: 0; border-radius: 10px; padding: 13px 16px; font-weight: 800; }
.button.primary { margin-top: 8px; color: #082019; background: var(--mint); }
.error { min-height: 18px; margin: 12px 0 0; color: var(--red); font-size: 12px; }
.hidden { display: none !important; }

@media (max-width: 680px) {
  .shell { width: min(100% - 22px, 560px); padding-top: 24px; }
  .topbar, .hero, .footer-row { align-items: flex-start; flex-direction: column; }
  .hero { padding: 24px; }
  .lock-visual { width: 92px; height: 92px; font-size: 32px; }
  .control-grid, .info-grid { grid-template-columns: 1fr; }
  .footer-row { gap: 12px; }
}
