:root {
  color: var(--text);
  background: var(--page-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  font-weight: 400;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --page-bg: #f5f5f7;
  --surface: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { width: 100%; max-width: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 8%, rgba(220, 232, 255, .72), transparent 28rem),
    linear-gradient(180deg, color-mix(in srgb, var(--page-bg), white 55%) 0, var(--page-bg) 46rem);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 113, 227, .3); outline-offset: 2px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background: rgba(250, 250, 252, .78);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.nav-wrap { width: min(1120px, calc(100% - 44px)); height: 100%; margin: auto; display: flex; align-items: center; }
.brand { display: flex; align-items: center; color: var(--text); text-decoration: none; min-width: 190px; }
.brand-logo { display: block; width: auto; height: 38px; max-width: 178px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; align-items: center; gap: 34px; margin: auto; }
.nav-links a { color: #424245; text-decoration: none; font-size: 12px; transition: color .18s; }
.nav-links a:hover { color: var(--blue); }
.secure-badge {
  min-width: 190px;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  color: #4f8c5f;
  font-size: 11px;
  font-weight: 600;
}
.secure-badge svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.page { width: min(1120px, calc(100% - 44px)); max-width: 100%; min-width: 0; margin: auto; }
.theme-intro { display: none; }
.generator {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 28px;
  background: color-mix(in srgb, var(--surface), transparent 8%);
  box-shadow: 0 32px 90px rgba(28,39,60,.12), 0 2px 5px rgba(0,0,0,.04);
  margin-top: 48px;
  width: min(680px, 100%);
  max-width: 100%;
  min-width: 0;
  margin-right: auto;
  margin-left: auto;
}
.input-side { min-width: 0; padding: 58px 62px 52px; background: color-mix(in srgb, var(--surface), transparent 7%); }
.panel-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 32px; }
.step-number { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #e8f2ff; color: var(--blue); font-size: 12px; font-weight: 700; }
.panel-heading h2 { margin: 1px 0 5px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.field-group { margin-bottom: 17px; }
.field-group > label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-size: 12px; font-weight: 600; }
.field-group > label span { color: #a1a1a6; font-size: 10px; font-weight: 400; }
.field-shell { height: 54px; display: flex; align-items: center; position: relative; border: 1px solid #d2d2d7; border-radius: 13px; background: #fbfbfd; transition: .18s ease; }
.field-shell:focus-within { border-color: #79b8f5; background: white; box-shadow: 0 0 0 4px rgba(0,113,227,.1); }
.field-shell > svg { flex: 0 0 auto; width: 18px; margin-left: 15px; fill: none; stroke: #8e8e93; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field-shell input { min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 14px 0 11px; color: var(--text); font-size: 14px; }
.field-shell input::placeholder { color: #aaaab0; }
#secret { padding-right: 14px; font-variant-numeric: tabular-nums; letter-spacing: .055em; text-transform: uppercase; }
.icon-button { position: absolute; right: 7px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #737378; cursor: pointer; }
.icon-button:hover { background: #ececf0; }
.icon-button svg { width: 19px; margin: 0; fill: none; stroke: currentColor; stroke-width: 1.6; }
.icon-button.muted { opacity: .55; }
.error { min-height: 16px; margin: 5px 2px 0; color: #d70015; font-size: 11px; line-height: 1.35; }
.remember { display: flex; align-items: center; gap: 11px; margin: 2px 0 20px; cursor: pointer; }
.remember > input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 38px; height: 22px; padding: 2px; border-radius: 999px; background: #d1d1d6; transition: .2s; }
.switch i { display: block; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.23); transition: .2s; }
.remember > input:checked + .switch { background: #34c759; }
.remember > input:checked + .switch i { transform: translateX(16px); }
.remember > input:focus-visible + .switch { outline: 3px solid rgba(0,113,227,.25); outline-offset: 2px; }
.remember-copy { display: flex; flex-direction: column; gap: 2px; }
.remember-copy strong { font-size: 11px; font-weight: 600; }
.remember-copy small { color: #8e8e93; font-size: 9px; line-height: 1.4; }
.generate {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  background: var(--blue);
  background: linear-gradient(180deg, color-mix(in srgb, var(--blue), white 12%), var(--blue));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px rgba(0,113,227,.2);
  color: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.generate svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.generate:hover { background: color-mix(in srgb, var(--blue), white 7%); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 22px rgba(0,113,227,.25); transform: translateY(-1px); }
.generate:active { transform: scale(.99); }
.generate:disabled { opacity: .65; cursor: wait; transform: none; }
.privacy { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 14px 0 0; color: #8e8e93; font-size: 9px; }
.privacy svg { width: 14px; fill: none; stroke: #5f9f6d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.result-side {
  display: none;
  position: relative;
  min-width: 0;
  color: white;
  background: linear-gradient(145deg, #222225 0%, #111113 72%);
  overflow: hidden;
  max-width: 100%;
}
.window-bar { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 19px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); }
.window-bar > span { width: 10px; height: 10px; border-radius: 50%; }
.window-bar > span:nth-child(1) { background: #ff5f57; }
.window-bar > span:nth-child(2) { background: #febc2e; }
.window-bar > span:nth-child(3) { background: #28c840; }
.window-bar small { position: absolute; left: 50%; transform: translateX(-50%); color: #8e8e93; font-size: 10px; }
.result-content { position: relative; z-index: 2; display: flex; flex-direction: column; height: calc(100% - 48px); padding: 43px 48px 42px; }
.result-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.status-pill { display: flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid rgba(88,218,123,.17); border-radius: 999px; background: rgba(52,199,89,.08); color: #7ce392; font-size: 9px; font-weight: 600; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52,199,89,.1); }
.result-label { max-width: 210px; color: #8e8e93; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-wrap { margin: auto 0; text-align: center; }
#code {
  display: block;
  color: #fff;
  font-size: clamp(48px, 4.2vw, 64px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .105em;
  line-height: 1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-shadow: 0 0 40px rgba(75,164,255,.22);
}
.code-wrap p { max-width: 330px; margin: 18px auto 0; color: #8e8e93; font-size: 10px; line-height: 1.5; }
.timer-card { padding: 15px 17px 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; background: rgba(255,255,255,.045); }
.timer-meta { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 11px; color: #a1a1a6; font-size: 9px; }
.timer-meta strong { color: #d7d7db; font-size: 10px; font-weight: 500; }
.timer-meta b { color: white; font-size: 16px; font-variant-numeric: tabular-nums; }
.progress { width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); }
.progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0a84ff, #64d2ff); box-shadow: 0 0 10px rgba(10,132,255,.45); transition: width .3s linear; }
.result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.copy-button {
  width: 100%;
  height: 48px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.08);
  color: white;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: .18s;
}
.copy-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.copy-button:not(:disabled):hover { background: rgba(255,255,255,.13); }
.copy-button:disabled { color: #6e6e73; cursor: default; }
.copy-button.copied { border-color: rgba(52,199,89,.4); background: rgba(52,199,89,.13); color: #85e39b; }
.share-button { border-color: rgba(10,132,255,.25); background: rgba(10,132,255,.13); }
.share-button:not(:disabled):hover { background: rgba(10,132,255,.23); }
.share-note { min-height: 14px; margin: 9px 2px 0; color: #727277; font-size: 8px; line-height: 1.45; text-align: center; }
.shared-warning, .shared-home { display: none; }
.shared-warning { color: #ffcc66 !important; }
.shared-mode .input-side, .shared-mode .link-ads, .shared-mode .ad-slot { display: none !important; }
.shared-mode .generator { width: min(620px, 100%); grid-template-columns: 1fr; margin-right: auto; margin-left: auto; }
.shared-mode .result-side { display: block; min-height: 540px; border-radius: inherit; }
.shared-mode .shared-warning, .shared-mode .shared-home { display: block; }
.shared-home { margin-top: 13px; color: #8abff3; font-size: 9px; text-align: center; text-decoration: none; }
.shared-home:hover { color: white; }
.shared-error #code { font-size: clamp(24px, 5vw, 34px); letter-spacing: -.02em; white-space: normal; }
.result-glow { position: absolute; width: 330px; height: 330px; left: 50%; top: 28%; transform: translate(-50%,-50%); border-radius: 50%; background: rgba(0,113,227,.1); filter: blur(70px); }
.result-side.ready { animation: ready .55s ease; }
@keyframes ready { 50% { box-shadow: inset 0 0 0 2px rgba(10,132,255,.5); } }

.saved {
  margin-top: 72px;
  padding: 40px;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface), transparent 12%);
  box-shadow: 0 14px 45px rgba(30,45,70,.07);
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; padding-bottom: 26px; border-bottom: 1px solid #e5e5e7; }
.section-kicker { color: var(--blue); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.section-heading h2, .security h2 { margin: 7px 0 8px; font-size: 31px; letter-spacing: -.035em; line-height: 1.1; }
.section-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.accounts-lock { display: flex; align-items: center; gap: 7px; color: #7b7b80; font-size: 9px; white-space: nowrap; }
.accounts-lock svg { width: 14px; fill: none; stroke: #4e9b61; stroke-width: 1.8; }
.saved-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding-top: 22px; }
.empty { grid-column: 1 / -1; min-height: 126px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; margin: 0; color: #8e8e93; font-size: 11px; text-align: center; }
.empty > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f0f0f2; }
.empty svg { width: 17px; fill: none; stroke: #929297; stroke-width: 1.7; stroke-linecap: round; }
.saved-item { min-width: 0; min-height: 78px; display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e2e2e6; border-radius: 15px; background: #fbfbfd; transition: .18s; }
.saved-item:hover { border-color: #c8dcf1; background: white; box-shadow: 0 6px 18px rgba(0,83,166,.07); }
.saved-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #e5f1ff, #d8eaff); color: #0878e6; font-size: 15px; font-weight: 700; }
.saved-name { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.saved-name strong { overflow: hidden; color: #2b2b2d; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.saved-name small { color: #99999e; font-size: 9px; }
.use-saved { flex: 0 0 auto; height: 32px; padding: 0 11px; border: 0; border-radius: 9px; background: #e9f3ff; color: #0674dd; font-size: 10px; font-weight: 600; cursor: pointer; }
.use-saved:hover { background: var(--blue); color: white; }
.delete-saved { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #aeaeb2; font-size: 20px; cursor: pointer; }
.delete-saved:hover { background: #fff0f0; color: #ff3b30; }

.ad-slot {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 16px;
  overflow: hidden;
  border: 1px dashed #c9c9ce;
  border-radius: 16px;
  background: rgba(255,255,255,.5);
  color: #8e8e93;
  text-align: left;
}
.ad-banner-primary { margin-top: 24px; }
.ad-banner-footer { margin: 24px 0 68px; }
.ad-label { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 45px; height: 21px; padding: 0 7px; border: 1px solid #d5d5d9; border-radius: 6px; background: rgba(255,255,255,.75); color: #9a9a9f; font-size: 8px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ad-slot > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ad-slot strong { color: #707075; font-size: 11px; font-weight: 600; }
.ad-slot small { color: #aaaab0; font-size: 9px; }
.ad-slot > img { max-width: 46%; max-height: 58px; object-fit: contain; border-radius: 7px; }
.ad-clickable { cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.ad-clickable:hover { border-color: #98bfe4; background: rgba(255,255,255,.86); transform: translateY(-1px); }

.link-ads {
  width: 100%;
  max-width: 100%;
  margin-top: 24px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
}
.link-ads-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.link-ads-heading > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.link-ads-heading strong { font-size: 11px; }
.link-ads-heading small { color: #99999e; font-size: 9px; }
.link-ad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.link-ad-item { min-width: 0; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 13px; border: 1px solid #e2e2e6; border-radius: 12px; background: #fbfbfd; color: #68686d; }
.link-ad-item > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.link-ad-item b { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.link-ad-item small { overflow: hidden; color: #aaaab0; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }
.link-ad-item i { flex: 0 0 auto; color: #9a9a9f; font-size: 13px; font-style: normal; }
.link-ad-item > img { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }

footer { border-top: 1px solid #d9d9dd; background: rgba(255,255,255,.55); }
.footer-inner { width: min(1120px, calc(100% - 44px)); min-height: 95px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: flex; align-items: center; color: var(--text); text-decoration: none; }
.footer-brand img { display: block; width: auto; height: 31px; max-width: 120px; object-fit: contain; object-position: left center; }
.footer-inner p { color: #929297; font-size: 10px; }
.public-api-link { flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #3c3c40; border-radius: 11px; background: #29292c; color: #f5f5f7; box-shadow: 0 7px 18px rgba(0,0,0,.12); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: transform .18s, background .18s; }
.public-api-link b { color: #24dc51; font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace; }.public-api-link i { color: #8e8e93; font-style: normal; }.public-api-link:hover { background: #1f1f22; transform: translateY(-1px); }
.standard-link { color: #6e6e73; text-decoration: none; font-size: 10px; }
.standard-link:hover { color: var(--blue); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .secure-badge { margin-left: auto; min-width: auto; }
  .generator { grid-template-columns: 1fr; }
  .input-side { padding: 42px; }
  .result-side { min-height: 520px; }
}

@media (max-width: 680px) {
  .topbar { height: 64px; }
  .nav-wrap, .page, .footer-inner { width: calc(100% - 28px); max-width: 520px; }
  .brand { min-width: 0; }
  .brand-logo { height: 32px; max-width: 125px; }
  .secure-badge { font-size: 0; gap: 0; }
  .secure-badge svg { width: 18px; }
  .generator { margin-top: 28px; border-radius: 21px; }
  .input-side { padding: 32px 22px 30px; }
  .result-side { min-height: 450px; }
  .result-content { padding: 31px 23px 27px; }
  #code { font-size: clamp(42px, 13vw, 56px); }
  .saved { margin-top: 38px; padding: 28px 20px; border-radius: 20px; }
  .section-heading { align-items: flex-start; }
  .accounts-lock { display: none; }
  .saved-list { grid-template-columns: 1fr; }
  .ad-slot { min-height: 62px; padding: 11px; border-radius: 13px; }
  .ad-banner-primary { margin-top: 16px; }
  .ad-banner-footer { margin: 16px 0 45px; }
  .ad-slot strong { font-size: 10px; }
  .ad-slot small { font-size: 8px; }
  .link-ads { margin-top: 16px; padding: 15px; }
  .link-ad-grid { grid-template-columns: 1fr; gap: 8px; }
  .link-ad-item { width: 100%; }
  .footer-inner { min-height: 110px; flex-wrap: wrap; padding: 24px 0; }
  .footer-inner p { order: 3; width: 100%; margin: 0; }
  .public-api-link { order: 4; width: 100%; justify-content: center; }
}

@media (max-width: 390px) {
  .result-topline { align-items: flex-start; flex-direction: column; }
  .result-label { max-width: 100%; }
  .saved-item { gap: 9px; }
  .use-saved { padding: 0 9px; }
  .input-side { padding-left: 18px; padding-right: 18px; }
  .result-content { padding-left: 18px; padding-right: 18px; }
  #code { font-size: 41px; letter-spacing: .08em; }
}

/* Gece Konsolu: Klasik temadan bağımsız, koyu ve asimetrik çalışma alanı. */
html[data-theme="command"] {
  color-scheme: dark;
  --command-accent: color-mix(in srgb, var(--blue), #baff45 72%);
  --command-bg: #050a08;
  --command-panel: #0b1410;
  --command-panel-strong: #0f1d17;
  --command-line: #26382f;
  --command-muted: #829087;
  color: #f2f6ef;
  background: var(--command-bg);
  font-family: "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
}
html[data-theme="command"] body {
  position: relative;
  isolation: isolate;
  color: #f2f6ef;
  background:
    linear-gradient(rgba(160,255,100,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,255,100,.035) 1px, transparent 1px),
    radial-gradient(circle at 14% 22%, rgba(91,176,98,.18), transparent 26rem),
    radial-gradient(circle at 86% 56%, rgba(35,113,91,.16), transparent 32rem),
    var(--command-bg);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}
html[data-theme="command"] body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0 56%, rgba(183,243,77,.035) 56% 56.12%, transparent 56.12% 100%);
}
html[data-theme="command"] button:focus-visible,
html[data-theme="command"] input:focus-visible,
html[data-theme="command"] a:focus-visible { outline-color: color-mix(in srgb, var(--command-accent), transparent 35%); }
html[data-theme="command"] .topbar {
  height: 90px;
  border-bottom: 1px solid var(--command-line);
  background: rgba(5,10,8,.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html[data-theme="command"] .nav-wrap { width: min(1320px, calc(100% - 64px)); }
html[data-theme="command"] .brand {
  width: fit-content;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #33443b;
  background: #f2f6ef;
}
html[data-theme="command"] .brand-logo { height: 29px; max-width: 150px; }
html[data-theme="command"] .secure-badge {
  min-width: 0;
  gap: 9px;
  color: var(--command-accent);
  font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
}
html[data-theme="command"] .secure-badge::before { content: '●'; font-size: 8px; animation: commandPulse 1.8s ease-in-out infinite; }
html[data-theme="command"] .secure-badge svg { display: none; }
html[data-theme="command"] .page {
  width: min(1320px, calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr);
  align-items: start;
  column-gap: clamp(50px,7vw,110px);
}
html[data-theme="command"] .theme-intro {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-top: 86px;
}
html[data-theme="command"] .theme-intro-kicker { display: flex; align-items: center; gap: 11px; color: var(--command-accent); font: 700 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .17em; }
html[data-theme="command"] .theme-intro-kicker i { width: 32px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
html[data-theme="command"] .theme-intro h1 { margin: 31px 0 23px; color: #f3f7ef; font: 650 clamp(44px,4.6vw,72px)/.98 "Segoe UI Variable Display","Segoe UI",Arial,sans-serif; letter-spacing: -.055em; }
html[data-theme="command"] .theme-intro h1 em { color: var(--command-accent); font-style: normal; }
html[data-theme="command"] .theme-intro > p { max-width: 540px; margin: 0; color: #91a198; font-size: 15px; line-height: 1.75; }
html[data-theme="command"] .theme-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 46px; border-top: 1px solid var(--command-line); border-bottom: 1px solid var(--command-line); }
html[data-theme="command"] .theme-metrics > div { min-width: 0; padding: 18px 18px 18px 0; }
html[data-theme="command"] .theme-metrics > div + div { padding-left: 18px; border-left: 1px solid var(--command-line); }
html[data-theme="command"] .theme-metrics strong { display: block; color: #f0f5ed; font: 700 14px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace; }
html[data-theme="command"] .theme-metrics span { display: block; margin-top: 6px; color: #6f7f76; font-size: 9px; line-height: 1.35; text-transform: uppercase; letter-spacing: .08em; }
html[data-theme="command"] .theme-signal { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
html[data-theme="command"] .signal-orbit { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #405349; border-radius: 50%; }
html[data-theme="command"] .signal-orbit::before { content: ''; position: absolute; inset: 6px; border: 1px dashed #536a5d; border-radius: 50%; animation: commandSpin 8s linear infinite; }
html[data-theme="command"] .signal-orbit i { width: 7px; height: 7px; border-radius: 50%; background: var(--command-accent); box-shadow: 0 0 16px var(--command-accent); }
html[data-theme="command"] .theme-signal > div { display: flex; flex-direction: column; gap: 4px; }
html[data-theme="command"] .theme-signal b { color: var(--command-accent); font: 700 10px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .12em; }
html[data-theme="command"] .theme-signal small { color: #6e7c74; font-size: 9px; }
html[data-theme="command"] .generator {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin: 58px 0 0;
  overflow: visible;
  border: 1px solid #31463a;
  border-radius: 2px;
  background: var(--command-panel);
  box-shadow: 18px 18px 0 rgba(32,55,43,.36), 0 35px 90px rgba(0,0,0,.4);
}
html[data-theme="command"] .generator::before { content: 'AUTH / TOTP / GENERATOR'; position: absolute; top: -26px; left: -1px; color: #6d7c73; font: 700 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .15em; }
html[data-theme="command"] .generator::after { content: ''; position: absolute; top: -1px; left: -1px; width: 92px; height: 3px; background: var(--command-accent); box-shadow: 0 0 18px rgba(183,243,77,.28); }
html[data-theme="command"] .input-side { padding: 50px 48px 44px; background: linear-gradient(145deg, rgba(19,35,27,.98), rgba(8,17,13,.98)); }
html[data-theme="command"] .panel-heading { margin-bottom: 38px; padding-bottom: 25px; border-bottom: 1px solid var(--command-line); }
html[data-theme="command"] .panel-heading h2 { margin: 0 0 10px; color: #f1f5ed; font: 650 clamp(24px,2.4vw,34px)/1.05 "Segoe UI Variable Display","Segoe UI",Arial,sans-serif; letter-spacing: -.045em; }
html[data-theme="command"] .panel-heading p { color: #829087; font-size: 11px; }
html[data-theme="command"] .field-group > label { margin-bottom: 10px; color: #a9b7ae; font: 700 9px/1 ui-monospace,SFMono-Regular,Consolas,monospace; text-transform: uppercase; letter-spacing: .12em; }
html[data-theme="command"] .field-shell { height: 62px; border: 1px solid #35483e; border-radius: 0; background: #050a08; }
html[data-theme="command"] .field-shell:focus-within { border-color: var(--command-accent); background: #070d0a; box-shadow: 0 0 0 1px var(--command-accent), 0 0 28px rgba(160,240,90,.08); }
html[data-theme="command"] .field-shell > svg { width: 20px; margin-left: 17px; stroke: var(--command-accent); }
html[data-theme="command"] .field-shell input { color: #eef4eb; font: 600 14px/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
html[data-theme="command"] .field-shell input::placeholder { color: #4f5e56; }
html[data-theme="command"] .error { color: #ff7a83; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
html[data-theme="command"] .generate { height: 58px; border: 1px solid var(--command-accent); border-radius: 0; background: var(--command-accent); box-shadow: none; color: #071009; font: 800 11px/1 ui-monospace,SFMono-Regular,Consolas,monospace; text-transform: uppercase; letter-spacing: .13em; }
html[data-theme="command"] .generate:hover { background: #d5ff7e; box-shadow: 7px 7px 0 rgba(183,243,77,.15); transform: translate(-2px,-2px); }
html[data-theme="command"] .privacy { justify-content: flex-start; margin-top: 18px; color: #68776e; font: 500 8px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; text-transform: uppercase; letter-spacing: .06em; }
html[data-theme="command"] .privacy svg { stroke: var(--command-accent); }
html[data-theme="command"] .result-side { border-radius: 0; background: #07100c; }
html[data-theme="command"] .window-bar { border-color: #25372e; background: #0e1914; }
html[data-theme="command"] .window-bar > span { width: 7px; height: 7px; border-radius: 0; background: #506159 !important; }
html[data-theme="command"] .window-bar > span:first-child { background: var(--command-accent) !important; }
html[data-theme="command"] .window-bar small { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; text-transform: uppercase; letter-spacing: .12em; }
html[data-theme="command"] .status-pill,
html[data-theme="command"] .timer-card,
html[data-theme="command"] .copy-button { border-radius: 0; }
html[data-theme="command"] .status-pill { border-color: #38503f; background: #0d2015; color: var(--command-accent); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
html[data-theme="command"] .status-pill i { border-radius: 0; background: var(--command-accent); }
html[data-theme="command"] #code { color: var(--command-accent); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; text-shadow: 0 0 38px rgba(183,243,77,.2); }
html[data-theme="command"] .progress i { border-radius: 0; background: var(--command-accent); box-shadow: 0 0 12px rgba(183,243,77,.4); }
html[data-theme="command"] .copy-button { border-color: #34473d; background: #0f1e17; }
html[data-theme="command"] .share-button { border-color: #647f3b; background: #182319; color: var(--command-accent); }
html[data-theme="command"] .ad-slot,
html[data-theme="command"] .link-ads {
  grid-column: 1 / -1;
  border-color: #31433a;
  border-radius: 0;
  background: rgba(9,18,14,.86);
  color: #829087;
}
html[data-theme="command"] .ad-banner-primary { margin-top: 62px; }
html[data-theme="command"] .ad-banner-footer { margin-bottom: 74px; }
html[data-theme="command"] .ad-label { border-color: #4f654a; border-radius: 0; background: #132017; color: var(--command-accent); font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
html[data-theme="command"] .ad-slot strong,
html[data-theme="command"] .link-ads-heading strong { color: #d8e0d9; }
html[data-theme="command"] .ad-slot small,
html[data-theme="command"] .link-ads-heading small { color: #6c7b72; }
html[data-theme="command"] .link-ad-item { border-color: #2c4035; border-radius: 0; background: #0d1813; color: #bdc8c0; }
html[data-theme="command"] .link-ad-item small { color: #6e7d74; }
html[data-theme="command"] .ad-clickable:hover { border-color: var(--command-accent); background: #101d16; }
html[data-theme="command"] footer { border-top-color: #26372f; background: #030605; }
html[data-theme="command"] .footer-inner { width: min(1320px, calc(100% - 64px)); min-height: 116px; }
html[data-theme="command"] .footer-brand { padding: 8px 11px; background: #eef3eb; }
html[data-theme="command"] .footer-brand img { height: 25px; }
html[data-theme="command"] .footer-inner p,
html[data-theme="command"] .standard-link { color: #65736b; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
html[data-theme="command"] .public-api-link { border-color: var(--command-accent); border-radius: 0; background: transparent; color: var(--command-accent); box-shadow: none; }
html[data-theme="command"] .public-api-link:hover { background: var(--command-accent); color: #071009; }
html[data-theme="command"] body.shared-mode .theme-intro { display: none; }
html[data-theme="command"] body.shared-mode .page { grid-template-columns: 1fr; }
html[data-theme="command"] body.shared-mode .generator { grid-column: 1; width: min(720px,100%); margin: 72px auto; }
html[data-theme="command"] body.shared-mode .result-side { min-height: 570px; }
@keyframes commandSpin { to { transform: rotate(360deg); } }
@keyframes commandPulse { 50% { opacity: .35; } }

@media (max-width: 980px) {
  html[data-theme="command"] .page { grid-template-columns: 1fr; }
  html[data-theme="command"] .theme-intro { grid-column: 1; padding-top: 62px; }
  html[data-theme="command"] .theme-intro h1 { max-width: 720px; }
  html[data-theme="command"] .generator { grid-column: 1; grid-row: 2; margin-top: 78px; }
  html[data-theme="command"] .ad-slot,
  html[data-theme="command"] .link-ads { grid-column: 1; }
}

@media (max-width: 680px) {
  html[data-theme="command"] .topbar { height: 72px; }
  html[data-theme="command"] .nav-wrap,
  html[data-theme="command"] .page,
  html[data-theme="command"] .footer-inner { width: calc(100% - 28px); max-width: 560px; }
  html[data-theme="command"] .brand { padding: 8px 10px; }
  html[data-theme="command"] .brand-logo { height: 24px; }
  html[data-theme="command"] .secure-badge { font-size: 0; }
  html[data-theme="command"] .secure-badge::before { font-size: 9px; }
  html[data-theme="command"] .theme-intro { padding-top: 48px; }
  html[data-theme="command"] .theme-intro h1 { margin-top: 25px; font-size: clamp(40px,13vw,58px); }
  html[data-theme="command"] .theme-intro > p { font-size: 13px; }
  html[data-theme="command"] .theme-metrics { grid-template-columns: 1fr; }
  html[data-theme="command"] .theme-metrics > div,
  html[data-theme="command"] .theme-metrics > div + div { padding: 14px 0; border-left: 0; border-top: 1px solid var(--command-line); }
  html[data-theme="command"] .theme-metrics > div:first-child { border-top: 0; }
  html[data-theme="command"] .generator { margin-top: 64px; box-shadow: 10px 10px 0 rgba(32,55,43,.36); }
  html[data-theme="command"] .input-side { padding: 38px 21px 30px; }
  html[data-theme="command"] .panel-heading h2 { font-size: 28px; }
  html[data-theme="command"] .result-content { padding: 34px 20px 28px; }
  html[data-theme="command"] .result-actions { grid-template-columns: 1fr; }
  html[data-theme="command"] .ad-banner-primary { margin-top: 45px; }
  html[data-theme="command"] .footer-inner { padding: 28px 0; }
}

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