#as-body {
    --as-bg: #07101d;
    --as-bg-2: #0b1627;
    --as-surface: rgba(255,255,255,0.065);
    --as-surface-2: rgba(255,255,255,0.105);
    --as-line: rgba(255,255,255,0.12);
    --as-text: #edf7ff;
    --as-muted: #9eb0c7;
    --as-soft: #607086;
    --as-brand: #38f2c2;
    --as-brand-2: #45a6ff;
    --as-good: #37d67a;
    --as-warn: #ffbf4d;
    --as-bad: #ff5d73;
    --as-radius: 22px;
    --as-radius-small: 14px;
    color: var(--as-text);
    background: radial-gradient(circle at 12% -10%, rgba(69,166,255,0.24), transparent 34%), radial-gradient(circle at 88% 0%, rgba(56,242,194,0.18), transparent 32%), linear-gradient(180deg, #07101d 0%, #09111e 45%, #050913 100%);
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}
#as-body,
#as-body *,
#as-body *::before,
#as-body *::after {
    box-sizing: border-box;
}
#as-body a {
    color: inherit;
    text-decoration: none;
}
#as-body a:hover {
    color: var(--as-brand);
}
#as-body input,
#as-body select,
#as-body textarea {
    width: 100%;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius-small);
    background: rgba(255,255,255,0.07);
    color: var(--as-text);
    padding: 12px 14px;
    outline: none;
    font: inherit;
    max-width: 100%;
}
#as-body textarea {
    min-height: 110px;
    resize: vertical;
}
#as-body input:focus,
#as-body select:focus,
#as-body textarea:focus {
    border-color: rgba(56,242,194,0.75);
    box-shadow: 0 0 0 4px rgba(56,242,194,0.12);
}
#as-topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    background: rgba(7,16,29,0.78);
    backdrop-filter: blur(18px);
}
.as-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 68px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.as-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.03em;
}
.as-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #06111f;
    background: linear-gradient(135deg, var(--as-brand), var(--as-brand-2));
    font-weight: 900;
}
.as-nav-list {
    list-style: none;
    display: flex;
    gap: 4px;
    padding: 0;
    margin: 0;
    flex: 1;
}
.as-nav-list a,
.as-top-actions a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 12px;
    color: var(--as-muted);
    font-size: 14px;
    font-weight: 650;
}
.as-nav-list a.active,
.as-bottom-nav a.active {
    color: var(--as-brand);
    background: rgba(56,242,194,0.1);
}
.as-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
#content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 104px 22px 104px;
}
.as-shell {
    display: grid;
    gap: 24px;
}
.as-narrow {
    max-width: 760px;
    margin: 0 auto;
}
.as-hero {
    min-height: 72vh;
    display: grid;
    align-items: center;
    gap: 30px;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}
.as-hero h1,
.as-page-title h1 {
    font-size: clamp(42px, 8vw, 88px);
    line-height: 0.94;
    letter-spacing: -0.07em;
    margin: 0;
}
.as-page-title h1 {
    font-size: clamp(34px, 6vw, 64px);
}
.as-gradient-text {
    background: linear-gradient(120deg, #fff, var(--as-brand) 52%, var(--as-brand-2));
    -webkit-background-clip: text;
    color: transparent;
}
.as-lead {
    color: var(--as-muted);
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.55;
    max-width: 740px;
}
.as-muted {
    color: var(--as-muted);
}
.as-soft {
    color: var(--as-soft);
}
.as-danger-text {
    color: var(--as-bad);
}
.as-note {
    color: var(--as-muted);
    font-size: 13px;
    line-height: 1.5;
}
.as-kicker {
    display: inline-flex;
    color: var(--as-brand);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 12px;
    font-weight: 800;
}
.as-card,
.as-source-panel,
.as-notice,
.as-panel {
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.045));
    box-shadow: 0 24px 80px rgba(0,0,0,0.28);
    padding: 22px;
}
.as-card h2,
.as-card h3,
.as-panel h2,
.as-panel h3 {
    margin: 8px 0 10px;
    letter-spacing: -0.03em;
}
.as-card-head,
.as-actions,
.as-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.as-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.as-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.as-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.as-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}
.as-stack {
    display: grid;
    gap: 16px;
}
.as-button {
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    color: var(--as-text);
    line-height: 1;
    min-height: 44px;
    text-align: center;
}
.as-button-primary {
    color: #06111f;
    background: linear-gradient(135deg, var(--as-brand), var(--as-brand-2));
    box-shadow: 0 14px 45px rgba(56,242,194,0.2);
}
.as-button-secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--as-line);
}
.as-button-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
}
.as-button-danger {
    color: #fff;
    background: rgba(255,93,115,0.22);
    border: 1px solid rgba(255,93,115,0.3);
}
.as-button-small {
    padding: 9px 12px;
    font-size: 13px;
}
.as-badge,
.as-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 850;
}
.as-badge-info {
    background: rgba(69,166,255,0.14);
    color: #9bd0ff;
}
.as-badge-good {
    background: rgba(55,214,122,0.14);
    color: var(--as-good);
}
.as-badge-warn {
    background: rgba(255,191,77,0.14);
    color: var(--as-warn);
}
.as-badge-bad {
    background: rgba(255,93,115,0.14);
    color: var(--as-bad);
}
.as-metric {
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 14px;
    min-width: 0;
}
.as-metric strong {
    display: block;
    font-size: 20px;
    margin-top: 5px;
    letter-spacing: -0.04em;
}
.as-metric small {
    display: block;
    color: var(--as-muted);
    margin-top: 4px;
}
.as-score,
.as-score-big {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 22px;
    font-weight: 950;
}
.as-score-big {
    width: 118px;
    height: 118px;
    border-radius: 34px;
    font-size: 46px;
}
.as-score-good,
.as-score-panel-good .as-score-big {
    background: rgba(55,214,122,0.16);
    color: var(--as-good);
}
.as-score-warn,
.as-score-panel-warn .as-score-big {
    background: rgba(255,191,77,0.16);
    color: var(--as-warn);
}
.as-score-bad,
.as-score-panel-bad .as-score-big {
    background: rgba(255,93,115,0.16);
    color: var(--as-bad);
}
.as-score-panel {
    display: grid;
    justify-items: start;
    gap: 10px;
    border-radius: var(--as-radius);
    padding: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--as-line);
}
.as-reason-list {
    margin: 12px 0 0;
    padding-left: 22px;
    color: var(--as-muted);
}
.as-reason-list li {
    margin: 8px 0;
}
.as-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--as-line);
    border-radius: var(--as-radius);
    position: relative;
    -webkit-overflow-scrolling: touch;
}
.as-table-wrap::after {
    content: '← Desliza →';
    display: block;
    padding: 7px 0 9px;
    color: var(--as-soft);
    font-size: 12px;
    text-align: center;
    background: rgba(7,16,29,0.62);
}
.as-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}
.as-table th,
.as-table td {
    padding: 13px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    white-space: nowrap;
}
.as-table th {
    color: var(--as-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.as-table tr:last-child td {
    border-bottom: 0;
}
.as-field {
    display: grid;
    gap: 8px;
    font-weight: 750;
    color: var(--as-muted);
}
.as-field span,
.as-check span {
    font-size: 14px;
}
.as-check {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--as-muted);
    min-height: 44px;
    padding: 8px 0;
    line-height: 1.35;
}
.as-check input {
    width: auto;
    min-width: 20px;
    min-height: 20px;
}
.as-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.as-form-full {
    grid-column: 1 / -1;
}
.as-inline-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.as-form-card {
    scroll-margin-top: 86px;
}
.as-alert-actions {
    justify-content: flex-start;
}
.as-alert-actions form,
.as-form-actions form {
    margin: 0;
}
.as-example {
    color: var(--as-soft);
    font-size: 13px;
}
.as-center {
    text-align: center;
}
.as-emoji {
    display: inline-flex;
    font-size: 46px;
    margin-bottom: 8px;
}
.as-notice {
    margin-bottom: 18px;
}
.as-notice-good {
    border-color: rgba(55,214,122,0.35);
}
.as-notice-danger {
    border-color: rgba(255,93,115,0.35);
}
.as-notice-info {
    border-color: rgba(69,166,255,0.35);
}
.as-ai-card {
    background: linear-gradient(145deg, rgba(56,242,194,0.16), rgba(69,166,255,0.08) 45%, rgba(255,255,255,0.05));
}
.as-source-panel {
    background: rgba(69,166,255,0.08);
}
.as-forecast-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.as-beach-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
    gap: 22px;
    align-items: stretch;
}
.as-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
#as-bottom-nav {
    display: none;
}
@media (max-width: 860px) {
    .as-hero,
    .as-beach-hero,
    .as-grid-2,
    .as-grid-3,
    .as-grid-4,
    .as-form-grid {
        grid-template-columns: 1fr;
    }
    .as-mini-grid,
    .as-forecast-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .as-nav-list {
        display: none;
    }
    .as-topbar-inner {
        min-height: 62px;
        padding: 0 14px;
    }
    #content {
        padding: 86px 14px 92px;
    }
    #as-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 25;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background: rgba(7,16,29,0.92);
        backdrop-filter: blur(18px);
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 7px 6px max(7px, env(safe-area-inset-bottom));
    }
    #as-bottom-nav a {
        display: grid;
        justify-items: center;
        gap: 2px;
        color: var(--as-muted);
        padding: 10px 4px;
        border-radius: 16px;
        min-height: 48px;
    }
    #as-bottom-nav span {
        font-size: 20px;
    }
    #as-bottom-nav small {
        font-size: 11px;
        font-weight: 800;
    }
    .as-top-actions .as-button-primary {
        display: none;
    }
}
@media (max-width: 520px) {
    #as-body input,
    #as-body select,
    #as-body textarea {
        font-size: 16px;
    }
    .as-mini-grid,
    .as-forecast-strip {
        grid-template-columns: 1fr;
    }
    .as-inline-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .as-card,
    .as-source-panel,
    .as-panel {
        padding: 18px;
    }
    .as-actions,
    .as-form-actions,
    .as-card-head {
        align-items: stretch;
    }
    .as-actions .as-button,
    .as-actions form,
    .as-actions button,
    .as-form-actions .as-button,
    .as-form-actions button {
        width: 100%;
    }
    .as-check-grid {
        gap: 8px;
    }
}
@media (min-width: 681px) {
    .as-table-wrap::after {
        display: none;
    }
}
