:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, .92);
  --surface-solid: #fff;
  --text: #14213d;
  --muted: #667085;
  --line: #e7eaf0;
  --brand: #2676ff;
  --brand-dark: #135bd0;
  --green: #1d9f67;
  --yellow: #d99a16;
  --red: #dc4455;
  --shadow: 0 18px 55px rgba(38, 55, 89, .09);
  --radius: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; color: var(--text); background: radial-gradient(circle at 85% -10%, rgba(38, 118, 255, .14), transparent 32rem), var(--bg); font-weight: 400; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button, input, select, textarea { font: inherit; font-weight: 400; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(38, 118, 255, .42); outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header { max-width: 1240px; min-height: 84px; margin: 0 auto; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: white; font-size: 23px; font-weight: 500; background: linear-gradient(145deg, #3a88ff, #165bd7); box-shadow: 0 10px 24px rgba(38, 118, 255, .25); }
.brand strong, .brand small { display: block; }.brand strong { font-size: 18px; font-weight: 500; }.brand small { color: var(--muted); margin-top: 1px; font-weight: 400; }
nav { display: flex; align-items: center; gap: 22px; } nav a, .link-button { color: var(--muted); font-weight: 500; text-decoration: none; }
.inline-form { display: inline; margin: 0; }.link-button { border: 0; background: none; padding: 10px 0; cursor: pointer; }
.page-shell { width: min(1184px, calc(100% - 40px)); margin: 28px auto 80px; }
.site-footer { padding: 30px 20px 44px; text-align: center; color: var(--muted); font-size: 13px; }

.hero { min-height: 420px; padding: 74px clamp(30px, 7vw, 88px); border-radius: 38px; background: linear-gradient(135deg, rgba(255,255,255,.97), rgba(241,246,255,.94)); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.9); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -110px; bottom: -190px; width: 440px; height: 440px; border-radius: 50%; background: linear-gradient(145deg, rgba(38,118,255,.2), rgba(38,118,255,.02)); }
.hero h1, .page-heading h1, .narrow-page h1, .auth-card h1 { margin: 8px 0 14px; font-size: clamp(38px, 6vw, 66px); font-weight: 400; line-height: .99; letter-spacing: -.035em; }
.hero p { max-width: 660px; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.5; color: var(--muted); }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.hero-actions, .button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.feature-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.feature-grid .card { grid-column: span 1; }
.card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 12px 42px rgba(29, 45, 78, .07); backdrop-filter: blur(18px); }
.card h2 { margin: 5px 0 8px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }.card p { color: var(--muted); line-height: 1.5; }
.card-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }.card-heading h2 { margin-top: 0; }
.card-icon { width: 42px; height: 42px; display: inline-grid; flex: none; place-items: center; border-radius: 14px; font-weight: 500; }
.card-icon.large { width: 64px; height: 64px; border-radius: 21px; font-size: 28px; margin-bottom: 16px; }
.card-icon.blue { color: #1765df; background: #e5efff; }.card-icon.green { color: #138354; background: #e3f7ee; }.card-icon.yellow { color: #a76e00; background: #fff3d5; }.card-icon.red { color: #c32f42; background: #ffe7eb; }
.span-2 { grid-column: span 2; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 29px; padding: 5px 11px; border-radius: 999px; color: var(--muted); background: #eef0f4; font-size: 12px; font-weight: 500; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }.status-pill.success { color: var(--green); background: #e7f7f0; }.status-pill.warning { color: #a56b00; background: #fff3d7; }.status-pill.danger { color: var(--red); background: #ffe8eb; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 22px; }
dl { margin: 0; } dl div { padding: 11px 0; border-top: 1px solid var(--line); } dt { color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; } dd { margin: 5px 0 0; font-weight: 500; }
.mono, code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .88em; }.truncate { display: block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.secret-line { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 12px; border-radius: 14px; background: rgba(125,135,155,.09); overflow: hidden; }.secret-line span { overflow-wrap: anywhere; }
.button { min-height: 46px; padding: 12px 19px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 14px; font-weight: 500; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }.button.primary { color: #fff; background: var(--brand); box-shadow: 0 10px 25px rgba(38,118,255,.23); }.button.primary:hover { background: var(--brand-dark); }.button.secondary { color: var(--text); background: rgba(130,140,160,.1); border-color: var(--line); }.button.operation { color: #fff; background: var(--brand); }.button.danger { color: #fff; background: var(--red); }.button.danger-outline { color: var(--red); border-color: rgba(220,68,85,.35); background: rgba(220,68,85,.06); }.button.disabled { color: var(--muted); background: rgba(130,140,160,.1); cursor: not-allowed; }.button.compact { min-height: 36px; padding: 8px 12px; font-size: 13px; }.button.wide { width: 100%; margin-top: 12px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 26px; }.page-heading h1, .narrow-page h1, .auth-card h1 { font-size: clamp(34px, 5vw, 52px); }.page-heading p, .narrow-page > p, .auth-card > p { color: var(--muted); font-size: 17px; }
.danger-zone { border-color: rgba(220,68,85,.19); background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,243,245,.92)); }.danger-actions { display: grid; grid-template-columns: 1.2fr 1fr; gap: 25px; }.danger-actions > div { display: flex; flex-direction: column; gap: 10px; }.danger-actions small { color: var(--muted); }
.stack-form { display: grid; gap: 18px; }.stack-form label, .filter { display: grid; gap: 8px; font-size: 14px; font-weight: 500; }.compact-form { margin: 0; }.compact-form label { margin: 0; }
input, textarea { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--text); background: var(--surface-solid); border: 1px solid #d6dae3; border-radius: 13px; outline: 0; }.password-field { display: flex; align-items: stretch; }.password-field input { border-radius: 13px 0 0 13px; }.icon-button { padding: 0 13px; color: var(--brand); background: var(--surface-solid); border: 1px solid #d6dae3; border-left: 0; border-radius: 0 13px 13px 0; font-weight: 500; cursor: pointer; }
textarea { min-height: 250px; resize: vertical; font-size: 13px; line-height: 1.45; }
.auth-wrap { min-height: 65vh; display: grid; place-items: center; }.auth-card { width: min(100%, 470px); padding: clamp(28px, 6vw, 48px); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }.auth-card h1 { font-size: 40px; }
.narrow-page { width: min(100%, 760px); margin: 40px auto; }.back-link { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; }.narrow-page .card { margin-top: 22px; }
.notice { margin: 18px 0; padding: 14px 17px; border-radius: 14px; line-height: 1.45; }.notice.error { color: #a72134; background: #ffe8ec; }.notice.warning { color: #76500a; background: #fff2d5; }.notice.success { color: #106b46; background: #e1f7ed; }
.result-page { text-align: center; }.result-secret { margin: 24px 0; padding: 17px; display: flex; justify-content: space-between; gap: 12px; border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); text-align: left; overflow-wrap: anywhere; }.result-page .button-row { justify-content: center; }.result-list { margin: 22px auto; text-align: left; }
.event-list { display: grid; gap: 12px; }.event { padding: 18px 21px; display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; align-items: center; gap: 14px; }.event > div { display: flex; align-items: center; gap: 10px; }.event strong { font-weight: 500; }.event time, .event code { color: var(--muted); font-size: 12px; font-weight: 400; }.filter { width: min(260px, 100%); }.empty-state { color: var(--muted); text-align: center; }
.event-preview { display: flex; flex-wrap: wrap; gap: 8px; }.event-preview span { padding: 8px 11px; border-radius: 11px; color: var(--muted); background: rgba(130,140,160,.09); font-size: 12px; }
.muted, small { color: var(--muted); } code { overflow-wrap: anywhere; }
strong, th { font-weight: 500; }
td { font-weight: 400; }

@media (max-width: 900px) {
  .feature-grid, .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid .card { grid-column: span 1; }
  .danger-actions { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 14px 20px; }.site-header nav a { display: none; }.page-shell { width: min(100% - 24px, 1184px); margin-top: 14px; }
  .hero { min-height: 0; padding: 48px 25px; border-radius: 28px; }.hero h1 { font-size: 42px; }.hero::after { opacity: .55; }
  .feature-grid, .dashboard-grid { grid-template-columns: 1fr; }.feature-grid .card, .span-2 { grid-column: span 1; }.card { padding: 21px; border-radius: 23px; }
  .page-heading { align-items: stretch; flex-direction: column; }.metric-grid { grid-template-columns: 1fr; }.danger-actions { display: block; }.danger-actions > * + * { margin-top: 18px; }
  .secret-line, .result-secret { align-items: stretch; flex-direction: column; }.event { grid-template-columns: 1fr; }.event > code { display: none; }
  .hero-actions .button, .button-row .button { flex: 1 1 100%; }.auth-card { padding: 27px 22px; border-radius: 26px; }
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg: #0d1421; --surface: rgba(20, 29, 44, .92); --surface-solid: #172132; --text: #f2f5fa; --muted: #a8b1c0; --line: #2d384a; --shadow: 0 18px 55px rgba(0,0,0,.25); }
  body { background: radial-gradient(circle at 85% -10%, rgba(38,118,255,.2), transparent 32rem), var(--bg); }
  .hero { background: linear-gradient(135deg, rgba(24,34,51,.98), rgba(19,31,51,.96)); border-color: rgba(255,255,255,.04); }
  .card { border-color: rgba(255,255,255,.045); }.danger-zone { background: linear-gradient(145deg, rgba(28,35,50,.96), rgba(53,27,35,.82)); }.button.secondary { background: rgba(255,255,255,.06); }.card-icon.blue { background: #19355c; }.card-icon.green { background: #173d31; }.card-icon.yellow { background: #49381c; }.card-icon.red { background: #4d2630; }
}

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