:root {
    color-scheme: light;
    font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
    --bg: #f8fafb;
    --bg-deep: #f2f4f5;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --line: rgba(106, 122, 122, 0.16);
    --line-strong: rgba(106, 122, 122, 0.26);
    --text: #2b3334;
    --muted: #586869;
    --brand: #00b2b1;
    --brand-strong: #006a69;
    --accent: #03fcfb;
    --accent-soft: rgba(3, 252, 251, 0.12);
    --warning: #e1c62d;
    --warning-soft: rgba(225, 198, 45, 0.18);
    --danger: #ba1a1a;
    --danger-strong: #8f1616;
    --success: #006a69;
    --shadow-lg: 0 30px 80px rgba(25, 28, 29, 0.12);
    --shadow-md: 0 18px 40px rgba(25, 28, 29, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(3, 252, 251, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(0, 106, 105, 0.08), transparent 26%),
        linear-gradient(145deg, var(--bg), var(--bg-deep));
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 32vw;
    height: 32vw;
    max-width: 440px;
    max-height: 440px;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.46;
    pointer-events: none;
    z-index: 0;
    animation: drift 16s ease-in-out infinite;
}

body::before {
    top: -120px;
    right: -80px;
    background: radial-gradient(circle, rgba(3, 252, 251, 0.18), transparent 70%);
}

body::after {
    left: -120px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(0, 178, 177, 0.14), transparent 70%);
    animation-delay: -8s;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 40px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.64);
    color: var(--brand-strong);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    box-shadow: 0 0 0 5px rgba(3, 252, 251, 0.12);
}

.hero-panel,
.section-card,
.surface-card,
.metric-card,
.entry-card,
.login-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 251, 0.88));
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.hero-panel,
.surface-card,
.login-card,
.section-card {
    border-radius: var(--radius-xl);
}

.auth-layout {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: 1.1fr minmax(320px, 420px);
    gap: 22px;
    align-items: stretch;
}

.hero-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 18% -16% auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(3, 252, 251, 0.16), transparent 70%);
    border-radius: 999px;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-title,
.page-title,
.section-title,
.metric-value,
.entry-ip {
    font-family: "Bahnschrift", "Aptos", "Trebuchet MS", sans-serif;
}

.hero-title {
    margin: 16px 0 14px;
    font-size: clamp(2.2rem, 3.8vw, 4rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    max-width: 10ch;
}

.hero-copy p,
.page-subtitle,
.section-copy,
.metric-label,
.meta-line,
.helper-text,
.status-line,
.subtle {
    color: var(--muted);
}

.hero-copy p {
    max-width: 48ch;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 22px;
}

.hero-points,
.quick-pills,
.meta-grid,
.metric-grid,
.actions-row,
.entry-meta,
.login-points {
    display: grid;
    gap: 12px;
}

.hero-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.point-card {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.64);
}

.point-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.point-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.point-card span {
    display: block;
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.92rem;
}

.login-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.panel-top {
    margin-bottom: 26px;
}

.login-brand {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.login-brand-logo {
    display: block;
    width: min(250px, 100%);
    height: auto;
    filter: drop-shadow(0 12px 20px rgba(25, 28, 29, 0.08));
}

.panel-title,
.page-title,
.section-title {
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}

.panel-title {
    font-size: 2rem;
}

.page-title {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.96;
}

.page-subtitle,
.section-copy {
    margin: 0;
    line-height: 1.6;
}

.auth-form,
.stack,
.dashboard-layout,
.list-stack {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

.field-row {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field label,
.field-legend {
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--brand-strong);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(3, 252, 251, 0.18);
    transform: translateY(-1px);
}

.helper-text {
    font-size: 0.88rem;
    line-height: 1.5;
}

.btn,
.pill-button,
.mode-button {
    appearance: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn:hover,
.pill-button:hover,
.mode-button:hover {
    transform: translateY(-1px);
}

.btn:disabled,
.pill-button:disabled,
.mode-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-strong), var(--brand));
    color: #fff;
    box-shadow: 0 16px 28px rgba(0, 106, 105, 0.22);
}

.btn-secondary {
    background: rgba(0, 106, 105, 0.08);
    color: var(--brand-strong);
    border: 1px solid rgba(0, 106, 105, 0.14);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), var(--danger-strong));
    color: #fff;
    box-shadow: 0 16px 28px rgba(186, 26, 26, 0.2);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    border: 1px solid rgba(106, 122, 122, 0.12);
}

.login-points {
    margin-top: 14px;
}

.login-point {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(106, 122, 122, 0.1);
}

.login-point::before {
    content: "";
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--brand));
    box-shadow: 0 0 0 6px rgba(3, 252, 251, 0.12);
}

.login-point strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.login-point span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.dashboard-layout {
    grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
    align-items: start;
}

.page-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.top-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
}

.meta-card,
.surface-card {
    padding: 18px 20px;
    border-radius: var(--radius-lg);
}

.surface-card {
    padding: 24px;
}

.meta-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.64);
}

.meta-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-strong);
}

.meta-value {
    margin-top: 8px;
    font-size: 1.08rem;
    font-weight: 700;
}

.metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.metric-card {
    padding: 18px;
    border-radius: var(--radius-lg);
}

.metric-label {
    margin-bottom: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-value {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 8px;
}

.section-card {
    padding: 24px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.quick-pills {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mode-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(106, 122, 122, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mode-button.is-active {
    background: linear-gradient(135deg, rgba(3, 252, 251, 0.16), rgba(0, 178, 177, 0.14));
    color: var(--brand-strong);
    border-color: rgba(0, 106, 105, 0.18);
}

.mode-panel {
    display: none;
    gap: 18px;
}

.mode-panel.is-active {
    display: grid;
}

.pill-button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    border: 1px solid rgba(106, 122, 122, 0.12);
    font-size: 0.88rem;
    font-weight: 700;
}

.pill-button.is-active {
    background: linear-gradient(135deg, rgba(3, 252, 251, 0.16), rgba(0, 178, 177, 0.14));
    color: var(--brand-strong);
    border-color: rgba(0, 106, 105, 0.18);
}

.actions-row {
    grid-template-columns: repeat(2, minmax(0, max-content));
    justify-content: start;
}

.status-line {
    min-height: 24px;
    font-size: 0.92rem;
}

.status-line.is-error {
    color: var(--danger);
}

.status-line.is-success {
    color: var(--success);
}

.list-stack {
    gap: 14px;
}

.entry-card {
    padding: 20px;
    border-radius: var(--radius-lg);
}

.entry-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.entry-ip {
    margin: 0 0 6px;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.entry-note {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.badge-fixed {
    color: var(--brand-strong);
    background: rgba(0, 106, 105, 0.12);
}

.badge-temporary {
    color: #7a6900;
    background: var(--warning-soft);
}

.badge-soon {
    color: var(--danger);
    background: rgba(161, 58, 44, 0.12);
}

.entry-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.entry-meta .meta-chip {
    padding: 14px 14px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(106, 122, 122, 0.1);
}

.meta-chip-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.meta-chip-value {
    font-size: 0.92rem;
    line-height: 1.45;
}

.entry-actions {
    display: flex;
    justify-content: flex-end;
}

.empty-state {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.68);
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.empty-state span {
    color: var(--muted);
    line-height: 1.6;
}

.mono {
    font-family: "Consolas", "Courier New", monospace;
}

@keyframes drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 18px, 0) scale(1.04);
    }
}

@media (max-width: 1080px) {
    .auth-layout,
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .hero-points,
    .metric-grid,
    .quick-pills,
    .entry-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 100%);
        padding: 18px 0 28px;
    }

    .hero-panel,
    .login-card,
    .section-card,
    .surface-card {
        padding: 22px;
    }

    .page-top,
    .section-head {
        flex-direction: column;
    }

    .top-actions,
    .actions-row {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .top-actions .btn,
    .actions-row .btn {
        width: 100%;
    }

    .field-row,
    .hero-points,
    .meta-grid,
    .metric-grid,
    .quick-pills,
    .entry-meta {
        grid-template-columns: 1fr;
    }

    .entry-top {
        flex-direction: column;
    }

    .entry-actions {
        justify-content: stretch;
    }

    .entry-actions .btn {
        width: 100%;
    }
}
