:root {
    --brand: #cc3366;
    --brand-dark: #8c2b3c;
    --ink: #0f172a;
    --panel: #172033;
    --panel-soft: #111827;
    --line: #2b3850;
    --muted: #a5b0c2;
    --success: #34d399;
    --warning: #f6c453;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ink);
    color: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.tool-shell { max-width: 1120px; margin: 0 auto; padding: 0 20px 56px; }
.tool-topbar { border-bottom: 1px solid #263248; background: rgba(15, 23, 42, .96); }
.tool-topbar-inner { max-width: 1120px; margin: 0 auto; min-height: 72px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tool-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tool-brand img { width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; }
.tool-brand strong { display: block; font-size: 16px; letter-spacing: -.01em; }
.tool-brand span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.tool-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.tool-nav a { color: #cbd5e1; text-decoration: none; font-size: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; }
.tool-nav a:hover, .tool-nav a[aria-current="page"] { color: #fff; border-color: rgba(204, 51, 102, .55); background: rgba(204, 51, 102, .12); }
.tool-hero { padding: 48px 0 28px; max-width: 780px; }
.tool-kicker { color: #f08aab; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tool-hero h1 { margin: 10px 0 14px; font-size: clamp(30px, 5vw, 54px); line-height: 1.04; letter-spacing: -.04em; }
.tool-hero p { margin: 0; max-width: 680px; color: #cbd5e1; font-size: 16px; line-height: 1.65; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.tool-panel h2 { margin: 0 0 6px; font-size: 18px; }
.tool-panel p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.tool-form { display: grid; gap: 16px; margin-top: 20px; }
.tool-field { display: grid; gap: 7px; }
.tool-field label { color: #e2e8f0; font-size: 13px; font-weight: 700; }
.tool-field small { color: #8390a4; font-size: 11px; line-height: 1.4; }
.tool-field input { width: 100%; border: 1px solid #3a4860; border-radius: 8px; background: var(--panel-soft); color: #fff; padding: 11px 12px; font: inherit; font-size: 15px; outline: none; }
.tool-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(204, 51, 102, .18); }
.tool-button { border: 0; border-radius: 8px; background: var(--brand); color: #fff; padding: 12px 16px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.tool-button:hover { background: #e35b88; }
.tool-result { min-height: 340px; }
.tool-result.is-empty { display: grid; place-items: center; text-align: center; color: var(--muted); }
.tool-result h2 { margin-bottom: 18px; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.result-stat { background: var(--panel-soft); border: 1px solid var(--line); border-radius: 10px; padding: 15px; }
.result-stat span { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; }
.result-stat strong { display: block; margin-top: 6px; font-size: 24px; line-height: 1.1; }
.result-stat.brand strong { color: #f08aab; }
.result-stat.success strong { color: var(--success); }
.result-stat.warning strong { color: var(--warning); }
.tool-callout { margin-top: 18px; padding: 15px; border-left: 3px solid var(--brand); background: rgba(204, 51, 102, .10); color: #dbe4f0; font-size: 13px; line-height: 1.55; }
.tool-disclaimer { margin-top: 18px; color: #8290a4; font-size: 11px; line-height: 1.5; }
.tool-status { min-height: 18px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.tool-footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid #263248; color: #8290a4; font-size: 11px; line-height: 1.5; text-align: center; }
.schedule { display: grid; gap: 10px; margin-top: 18px; }
.schedule-item { padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel-soft); }
.schedule-item strong { color: #f08aab; font-size: 12px; }
.schedule-item p { margin: 5px 0 0; color: #d7dfeb; font-size: 13px; }
.tool-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tool-links a { color: #f08aab; font-size: 12px; text-decoration: none; }

@media (max-width: 760px) {
    .tool-topbar-inner { align-items: flex-start; flex-direction: column; }
    .tool-nav { justify-content: flex-start; }
    .tool-hero { padding-top: 34px; }
    .tool-grid { grid-template-columns: 1fr; }
    .tool-result { min-height: 260px; }
}
