:root {
  color-scheme: dark;
  --web-bg: #0d1623;
  --web-surface: #1c293d;
  --web-border: #354861;
  --web-text: #f5f7fc;
  --web-muted: #b0c2da;
  --web-lime: #c5ff52;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  background: var(--web-bg);
  color: var(--web-text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
button, input, summary { font: inherit; }
button, input, a, summary { -webkit-tap-highlight-color: transparent; }
button, a, input, summary { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--web-lime); }
button { cursor: pointer; }
button:disabled { cursor: default; }
svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
::selection { background: var(--web-lime); color: var(--web-bg); }
.web-shell { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; max-width: 1600px; margin: 0 auto; padding: 0 28px 20px; }
.web-skip { position: fixed; top: -100px; left: 16px; z-index: 10; min-height: 44px; padding: 12px 16px; border-radius: 8px; background: var(--web-lime); color: var(--web-bg); font-weight: 650; }
.web-skip:focus { top: 10px; }
.web-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; padding: 18px 0; }
.web-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; min-height: 48px; text-decoration: none; }
.web-brand-mark { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border-radius: 12px; background: var(--web-lime); color: var(--web-bg); font-size: 30px; font-weight: 900; }
.web-brand strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.15; letter-spacing: -.7px; }
.web-version { display: block; margin-top: 4px; color: var(--web-muted); font-size: 14px; line-height: 1.3; }
.web-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 12px; border-radius: 9px; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.web-back:hover { background: var(--web-surface); color: var(--web-lime); }
.web-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.web-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--web-border); border-radius: 14px; background: #152235; }
.web-address-form { display: flex; align-items: stretch; gap: 8px; min-width: 0; margin: 0; }
#web-address { display: block; flex: 1; width: 100%; min-width: 0; min-height: 46px; padding: 11px 14px; border: 1px solid #526986; border-radius: 9px; background: var(--web-bg); color: var(--web-text); font-size: 16px; line-height: 1.4; }
#web-address::placeholder { color: var(--web-muted); opacity: 1; }
#web-address:focus { border-color: var(--web-lime); }
.web-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; max-width: 100%; padding: 10px 15px; border: 1px solid #465b77; border-radius: 9px; background: var(--web-surface); color: var(--web-text); font-size: 14px; line-height: 1.45; font-weight: 650; text-align: center; }
.web-button:hover:not(:disabled) { border-color: #78965b; background: #273a51; }
.web-button:disabled { color: #9aaac0; opacity: .6; }
.web-button.web-go { min-width: 64px; border-color: var(--web-lime); background: var(--web-lime); color: var(--web-bg); }
.web-button.web-go:hover { border-color: #d8ff91; background: #d8ff91; }
.web-status { min-height: 0; margin: 0; padding: 0; color: var(--web-muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.web-status:not(:empty) { padding: 12px 4px; }
.web-error { margin: 12px 0; padding: 13px 15px; border: 1px solid #865f46; border-radius: 10px; background: #352c25; color: #ffdec4; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.web-error a { text-underline-offset: 3px; }
.web-welcome { display: flex; flex: 1; align-items: center; min-height: 65vh; padding: 50px clamp(22px, 7vw, 100px); }
.web-welcome-copy { width: 100%; max-width: 560px; }
.web-welcome h1 { margin: 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.08; letter-spacing: -1.7px; font-weight: 800; }
.web-welcome p { max-width: 430px; margin: 20px 0 24px; color: var(--web-muted); font-size: 17px; line-height: 1.65; }
.web-example { border-color: #5f7841; background: #23351f; color: var(--web-lime); }
.web-example:hover:not(:disabled) { background: #2d4525; }
.web-frame-host { display: flex; flex: 1 0 auto; min-width: 0; min-height: 65vh; height: max(65vh, calc(100dvh - 220px)); margin-top: 12px; overflow: hidden; border: 1px solid var(--web-border); border-radius: 11px; background: #fff; }
.web-frame-host iframe { display: block; flex: 1; width: 100%; height: 100%; min-height: 65vh; border: 0; background: #fff; }
.web-help { border-top: 1px solid #2b3b53; margin-top: 14px; color: var(--web-muted); }
.web-help summary { width: fit-content; max-width: 100%; min-height: 44px; padding: 13px 2px; color: #d2deed; font-size: 14px; font-weight: 650; cursor: pointer; }
.web-help-copy { max-width: 760px; padding: 0 2px 5px; font-size: 14px; line-height: 1.65; }
.web-help-copy p { margin: 0 0 10px; }
@media (max-width: 640px) {
  .web-shell { padding: 0 16px 16px; }
  .web-header { gap: 10px; min-height: 86px; padding: 16px 0; }
  .web-brand { gap: 9px; }
  .web-brand-mark { flex-basis: 36px; width: 36px; height: 38px; border-radius: 10px; font-size: 27px; }
  .web-brand strong { font-size: 21px; }
  .web-version { font-size: 13px; }
  .web-back { gap: 5px; padding: 10px 4px; font-size: 13px; }
  .web-back svg { width: 17px; height: 17px; flex-basis: 17px; }
  .web-toolbar { grid-template-columns: 1fr 1fr; gap: 9px; padding: 10px; }
  .web-address-form { grid-column: 1 / -1; grid-row: 1; }
  #web-home, #web-reload { min-height: 44px; }
  .web-welcome { padding: 42px 14px; }
  .web-welcome h1 { font-size: clamp(32px, 7.5vw, 45px); letter-spacing: -1px; }
  .web-welcome p { font-size: 16px; }
  .web-frame-host { height: max(65vh, calc(100dvh - 275px)); }
}
@media (max-width: 360px) {
  .web-shell { padding-right: 12px; padding-left: 12px; }
  .web-brand strong { font-size: 19px; }
  .web-back svg { display: none; }
  .web-back { font-size: 12px; }
  #web-address { padding-right: 10px; padding-left: 10px; }
  .web-button.web-go { min-width: 48px; padding-right: 11px; padding-left: 11px; }
  .web-welcome { padding-left: 6px; padding-right: 6px; }
}

.web-header-actions{display:flex;align-items:center;gap:8px}
.web-welcome .web-account-note{font-size:14px;color:#d2deed}
@media(max-width:640px){.web-header{flex-wrap:wrap}.web-header-actions{margin-left:auto}.web-header-actions .web-button{min-height:44px;padding:8px 10px}.web-brand strong{font-size:21px}.web-version{font-size:12px}}
