:root {
  --ts-bg: #050805;
  --ts-card: rgba(9, 23, 14, .88);
  --ts-card-2: rgba(3, 12, 8, .92);
  --ts-border: rgba(0, 230, 118, .18);
  --ts-green: #00e676;
  --ts-green-2: #69f0ae;
  --ts-text: #e8f5e9;
  --ts-muted: #91ad98;
  --ts-warn: #ffcc80;
  --ts-danger: #ff8a80;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 16% 0, rgba(0,230,118,.09), transparent 28%), var(--ts-bg); color: var(--ts-text); font-family: Inter, "Noto Sans SC", system-ui, sans-serif; }
a { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 9999; padding: 10px 14px; border-radius: 8px; background: var(--ts-green); color: #001b0d; font-weight: 800; }
.skip-link:focus { top: 12px; }
.ts-nav { position: sticky; top: 0; z-index: 500; border-bottom: 1px solid var(--ts-border); background: rgba(3,8,5,.93); backdrop-filter: blur(18px); }
.ts-nav-inner { width: min(1240px, calc(100% - 32px)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 22px; }
.ts-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.ts-brand img { width: 38px; height: 38px; object-fit: contain; }
.ts-brand strong { font-size: 16px; }
.ts-nav-links { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.ts-nav-links a { color: #a5d6a7; text-decoration: none; font-size: 13px; }
.ts-nav-links a:hover, .ts-nav-links a:focus-visible { color: var(--ts-green); }
.ts-auth { display: flex; gap: 8px; }
.ts-auth button { min-height: 36px; padding: 0 14px; border: 1px solid var(--ts-border); border-radius: 10px; background: rgba(0,230,118,.07); color: var(--ts-text); cursor: pointer; }
.ts-menu { display: none; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--ts-border); border-radius: 10px; background: transparent; color: var(--ts-text); font-size: 20px; }
.ts-shell { width: min(1000px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 72px; }
.ts-breadcrumb { display: flex; gap: 8px; margin-bottom: 20px; color: var(--ts-muted); font-size: 13px; }
.ts-breadcrumb a { color: var(--ts-green-2); text-decoration: none; }
.ts-hero { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--ts-border); border-radius: 22px; background: linear-gradient(145deg, rgba(0,230,118,.07), rgba(0,0,0,.16)); }
.ts-kicker { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--ts-border); border-radius: 999px; color: var(--ts-green-2); font-size: 12px; }
.ts-hero h1 { margin: 14px 0 10px; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; }
.ts-hero p { max-width: 760px; margin: 0; color: #b8cebE; font-size: 15px; line-height: 1.75; }
.ts-scenario { margin-top: 16px; padding: 13px 15px; border-left: 3px solid var(--ts-green); border-radius: 8px; background: rgba(0,230,118,.05); color: #bfe7cb; font-size: 13px; line-height: 1.65; }
.ts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); gap: 18px; margin-top: 20px; }
.ts-panel { min-width: 0; padding: 22px; border: 1px solid var(--ts-border); border-radius: 18px; background: var(--ts-card); }
.ts-panel h2 { margin: 0 0 15px; font-size: 18px; }
.ts-field { margin-bottom: 14px; }
.ts-field label { display: block; margin-bottom: 7px; color: #b9d9c2; font-size: 12px; font-weight: 700; }
.ts-field input, .ts-field select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--ts-border); border-radius: 11px; background: rgba(0,0,0,.3); color: var(--ts-text); font: inherit; font-size: 14px; outline: none; }
.ts-field input:focus, .ts-field select:focus { border-color: var(--ts-green); box-shadow: 0 0 0 3px rgba(0,230,118,.08); }
.ts-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ts-check { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; color: #c6dccd; font-size: 13px; }
.ts-check input { width: 18px; height: 18px; accent-color: var(--ts-green); }
.ts-action { width: 100%; min-height: 46px; border: 0; border-radius: 11px; background: linear-gradient(135deg, var(--ts-green), #00b95f); color: #001b0d; font-weight: 900; cursor: pointer; }
.ts-action:disabled { cursor: wait; opacity: .6; }
.ts-note, .ts-boundary { color: var(--ts-muted); font-size: 12px; line-height: 1.7; }
.ts-boundary { margin-top: 14px; padding: 12px 13px; border: 1px solid rgba(255,204,128,.18); border-radius: 10px; color: var(--ts-warn); background: rgba(255,183,77,.04); }
.ts-result { min-height: 150px; }
.ts-empty { display: grid; min-height: 130px; place-items: center; color: var(--ts-muted); text-align: center; line-height: 1.7; }
.ts-result-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ts-metric { min-width: 0; padding: 13px; border: 1px solid rgba(0,230,118,.11); border-radius: 12px; background: var(--ts-card-2); }
.ts-metric span { display: block; color: var(--ts-muted); font-size: 11px; }
.ts-metric strong { display: block; margin-top: 6px; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45; }
.ts-status { margin-bottom: 12px; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.6; }
.ts-status.ok { border: 1px solid rgba(0,230,118,.24); background: rgba(0,230,118,.07); color: #a7f3c2; }
.ts-status.warn { border: 1px solid rgba(255,183,77,.25); background: rgba(255,183,77,.06); color: var(--ts-warn); }
.ts-status.error { border: 1px solid rgba(255,82,82,.25); background: rgba(255,82,82,.06); color: var(--ts-danger); }
.ts-pre { max-height: 280px; overflow: auto; margin: 12px 0 0; padding: 12px; border-radius: 10px; background: #020604; color: #b9d9c2; font: 12px/1.55 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.ts-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ts-links a, .ts-links button { min-height: 36px; padding: 8px 11px; border: 1px solid var(--ts-border); border-radius: 9px; background: rgba(0,230,118,.05); color: var(--ts-green-2); text-decoration: none; font: inherit; font-size: 12px; cursor: pointer; }
.ts-guide { margin-top: 18px; }
.ts-guide h2 { margin: 0 0 12px; font-size: 17px; }
.ts-guide ol { margin: 0; padding-left: 20px; color: #b9cdbf; font-size: 13px; line-height: 1.85; }
.ts-noscript { margin: 20px auto; padding: 14px; border: 1px solid rgba(255,82,82,.3); border-radius: 10px; color: var(--ts-danger); }
@media (max-width: 780px) {
  .ts-nav-inner { width: calc(100% - 24px); min-height: 62px; }
  .ts-brand strong { font-size: 14px; }
  .ts-nav-links { display: none; position: absolute; left: 10px; right: 10px; top: 66px; padding: 12px; border: 1px solid var(--ts-border); border-radius: 14px; background: #061009; flex-direction: column; align-items: stretch; }
  .ts-nav-links.open { display: flex; }
  .ts-nav-links a { min-height: 40px; display: flex; align-items: center; }
  .ts-menu { display: block; }
  .ts-auth { display: none; }
  .ts-shell { width: calc(100% - 24px); padding: 22px 0 54px; }
  .ts-hero { padding: 22px 18px; border-radius: 16px; }
  .ts-hero h1 { font-size: 27px; }
  .ts-grid { grid-template-columns: 1fr; }
  .ts-panel { padding: 17px 14px; border-radius: 14px; }
}
@media (max-width: 430px) {
  .ts-row, .ts-result-grid { grid-template-columns: 1fr; }
}
