:root {
    --ta-ink: #123d48;
    --ta-muted: #526b72;
    --ta-line: #cfe0e3;
    --ta-bg: #f4f8f8;
    --ta-card: #fff;
    --ta-accent: #2c7888;
    --ta-accent-dark: #195563;
    --ta-danger: #9b2c2c;
    --ta-warning: #8a5c00;
    --ta-success: #1d6b46;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ta-ink);
    background: var(--ta-bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--ta-bg); color: var(--ta-ink); line-height: 1.55; }
a { color: var(--ta-accent-dark); }
.skip-link { position: fixed; left: 8px; top: 8px; transform: translateY(-180%); background: #fff; padding: 10px; z-index: 1000; }
.skip-link:focus { transform: none; }
.ta-header { display: flex; justify-content: center; padding: 18px 16px; background: #fff; border-bottom: 1px solid var(--ta-line); }
.ta-header img { display: block; width: min(360px, 82vw); height: auto; max-height: 88px; object-fit: contain; }
.ta-shell { width: min(1120px, calc(100% - 24px)); margin: 24px auto 48px; }
.ta-eyebrow { margin: 0 0 8px; color: var(--ta-danger); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 5vw, 2.7rem); margin: 0 0 14px; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
.ta-grid { display: grid; gap: 18px; }
.ta-grid--two { grid-template-columns: minmax(0, 1fr); }
.ta-card { background: var(--ta-card); border: 1px solid var(--ta-line); border-radius: 18px; padding: clamp(18px, 4vw, 30px); box-shadow: 0 14px 40px rgba(18, 61, 72, .07); overflow-wrap: anywhere; }
.ta-card + .ta-card { margin-top: 18px; }
.ta-warning-box { border-left: 5px solid #b36b00; background: #fffaf0; }
.ta-warning-box strong { display: block; color: #784800; font-size: 1.05rem; margin-bottom: 8px; }
.ta-alert { margin: 14px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--ta-line); background: #eef6f7; }
.ta-alert--error { color: #741f1f; background: #fff1f1; border-color: #e8b5b5; }
.ta-alert--success { color: #145737; background: #effaf4; border-color: #acd7bf; }
.ta-alert--warning { color: #684400; background: #fff8e8; border-color: #e6cb8f; }
.ta-form { display: grid; gap: 16px; }
.ta-field { display: grid; gap: 7px; }
.ta-field label, .ta-field legend { font-weight: 750; }
.ta-field input, .ta-field textarea, .ta-field select {
    width: 100%; min-height: 48px; border: 1px solid #aabfc4; border-radius: 11px; padding: 11px 13px;
    font: inherit; color: var(--ta-ink); background: #fff;
}
.ta-field textarea { min-height: 120px; resize: vertical; }
.ta-field input:focus, .ta-field textarea:focus, .ta-field select:focus { outline: 3px solid rgba(44, 120, 136, .24); border-color: var(--ta-accent); }
.ta-field small { color: var(--ta-muted); }
.ta-checks { display: grid; gap: 12px; padding: 0; border: 0; }
.ta-check { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; gap: 8px; padding: 10px; border: 1px solid var(--ta-line); border-radius: 12px; }
.ta-check input { width: 22px; height: 22px; margin: 4px auto; }
.ta-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 11px; background: var(--ta-accent-dark); color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.ta-button:hover { background: #103f4a; }
.ta-button--secondary { background: #fff; color: var(--ta-accent-dark); border-color: #97b4ba; }
.ta-button--danger { background: var(--ta-danger); }
.ta-agreement { max-height: 58vh; overflow: auto; border: 1px solid var(--ta-line); border-radius: 12px; padding: 18px; background: #fbfdfd; white-space: pre-wrap; }
.ta-table-wrap { overflow-x: auto; border: 1px solid var(--ta-line); border-radius: 12px; }
.ta-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.ta-table th, .ta-table td { padding: 11px; border-bottom: 1px solid var(--ta-line); text-align: left; vertical-align: top; }
.ta-table th { background: #edf5f6; }
.ta-status { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: #edf5f6; font-size: .82rem; font-weight: 750; }
.ta-meta { display: grid; gap: 7px; margin: 0; }
.ta-meta div { display: grid; grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid #edf3f4; }
.ta-meta dt { font-weight: 750; }.ta-meta dd { margin: 0; }
.ta-footer { padding: 24px 16px; text-align: center; color: var(--ta-muted); border-top: 1px solid var(--ta-line); background: #fff; }
.ta-token-loader { max-width: 680px; margin: 0 auto; text-align: center; }
.ta-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (min-width: 800px) {
    .ta-shell { margin-top: 36px; }
    .ta-grid--two { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: start; }
    .ta-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .ta-span-two { grid-column: 1 / -1; }
}
@media print {
    .ta-header, .ta-footer, .ta-actions, .skip-link { display: none !important; }
    body { background: #fff; }
    .ta-shell { width: 100%; margin: 0; }
    .ta-card { box-shadow: none; border-color: #888; }
}
