* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 18%, rgba(30, 58, 138, 0.18), transparent 24%),
        radial-gradient(circle at 82% 12%, rgba(107, 159, 245, 0.22), transparent 20%),
        radial-gradient(circle at 50% 78%, rgba(255, 255, 255, 0.92), rgba(237, 243, 251, 0.86) 42%, rgba(220, 231, 247, 0.92) 100%);
    min-height: 100vh;
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
    pointer-events: none;
    opacity: 0.55;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.auth-body { min-height: 100vh; }
.auth-shell {
    min-height: 112vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 40px;
    align-items: center;
    padding: 40px 36px 64px;
    max-width: 1680px;
    margin: 0 auto;
}
.auth-hero {
    min-height: 92vh;
    padding: 0 24px 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 44px;
}
.auth-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 8px;
    margin-left: -6px;
}
.auth-hero__body {
    display: grid;
    gap: 12px;
    max-width: 920px;
    padding-top: 12px;
    margin-top: 0;
    margin-bottom: 0;
    align-content: start;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.88rem;
    font-weight: 800;
}
.hero-kicker__line {
    width: 72px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), rgba(74, 127, 193, 0.45));
}
.auth-hero h1, .hero-panel h2, .panel h3, .job-card h4, .auth-panel h2 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.04em;
}
.auth-hero h1 {
    font-size: clamp(5.8rem, 9vw, 9.6rem);
    line-height: 0.88;
    margin: 0;
    max-width: 9ch;
    display: grid;
    gap: 0;
}
.hero-title-main,
.hero-title-dynamic {
    display: block;
}
.hero-title-main {
    color: var(--navy);
    font-weight: 700;
}
.hero-title-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.02em;
    flex-wrap: nowrap;
}
.hero-title-dynamic {
    font-size: clamp(4.6rem, 7vw, 7.8rem);
    line-height: 0.92;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--dynamic-color, #1e3a8a);
    transition: opacity 0.28s ease, transform 0.28s ease, color 0.28s ease;
    min-height: 1.05em;
    display: inline-block;
}
.hero-title-dynamic.is-changing {
    opacity: 0;
    transform: translateY(10px);
}
.hero-title-dot {
    display: inline-block;
    color: var(--navy);
    font-size: clamp(4.6rem, 7vw, 7.8rem);
    line-height: 0.92;
    font-weight: 700;
    margin-left: 0.01em;
}
.auth-hero__eyebrow, .kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.77rem;
    color: var(--accent);
    font-weight: 800;
}
.mini-card, .metric-card, .job-card, .panel, .auth-panel, .sidebar, .hero-panel {
    background: var(--panel);
    backdrop-filter: blur(22px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.mini-card {
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.mini-card span { color: var(--muted); font-size: 0.9rem; }
.mini-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.92rem;
}
.mini-card--feature {
    background: linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.55));
}
.auth-panel {
    margin: 0;
    border-radius: 32px;
    padding: 34px 34px 32px;
    align-self: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(255,255,255,0.52));
    box-shadow: var(--shadow-strong);
    width: 100%;
    max-width: 480px;
    justify-self: center;
}
.auth-panel__glow {
    position: absolute;
    inset: -20% auto auto 60%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(107, 159, 245, 0.3), transparent 70%);
    pointer-events: none;
}
.auth-panel__header {
    position: relative;
    z-index: 1;
}
.auth-panel__header p:last-child {
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.65;
}
.auth-panel h2 {
    margin: 0;
}
.auth-form, .stack-form {
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
    margin-top: 18px;
}
.auth-form label, .stack-form label {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--navy-soft);
}
.auth-form input, .stack-form input, .stack-form textarea, .stack-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 15px 16px;
    background: rgba(255,255,255,0.6);
    color: var(--text);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.password-field {
    position: relative;
}
.password-field input {
    padding-right: 84px;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 1px solid rgba(30, 58, 138, 0.14);
    background: rgba(255,255,255,0.72);
    color: var(--accent);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    min-width: 58px;
}
.password-toggle:hover {
    background: rgba(255,255,255,0.96);
}
.auth-form input:focus, .stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus {
    outline: none;
    border-color: rgba(30, 58, 138, 0.45);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}
.checkbox-line {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.checkbox-line input {
    width: 18px;
    height: 18px;
}
.button {
    border: 0;
    border-radius: 999px;
    padding: 13px 18px;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease, background 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
    font-weight: 700;
}
.button:hover { transform: translateY(-1px); }
.button:disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}
.button--primary {
    background: linear-gradient(135deg, #2d468f, #5878c9);
    color: white;
    box-shadow: 0 14px 30px rgba(45, 70, 143, 0.2);
}
.button--secondary {
    background: linear-gradient(135deg, #2f467f, #5f79b6);
    color: white;
    box-shadow: 0 12px 24px rgba(47, 70, 127, 0.18);
}
.button--ghost {
    background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(233, 241, 255, 0.72));
    color: var(--accent);
    border: 1px solid rgba(53, 89, 199, 0.18);
    box-shadow: 0 10px 24px rgba(30, 58, 138, 0.08);
}
.button--ghost:hover {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.12), rgba(74, 127, 193, 0.16));
    color: var(--navy);
    border-color: rgba(53, 89, 199, 0.3);
}
.button--danger {
    background: linear-gradient(135deg, #41578f, #6d85bf);
    color: white;
    box-shadow: 0 12px 24px rgba(65, 87, 143, 0.18);
}
.button--tiny { padding: 8px 12px; font-size: 0.84rem; }
.button--full { width: 100%; }

.app-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
    min-height: 100vh;
    gap: 12px;
    padding: 20px;
}
.sidebar {
    border-radius: 28px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.78));
    color: white;
}
.sidebar-top {
    display: grid;
    gap: 8px;
}
.sidebar-nav {
    display: grid;
    gap: 4px;
    margin-top: 18px;
}
.sidebar-refresh {
    margin-top: 14px;
    justify-self: stretch;
}
.sidebar-link {
    display: block;
    padding: 10px 4px;
    border-left: 2px solid transparent;
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    font-weight: 600;
    transition: color 160ms ease, border-color 160ms ease, padding-left 160ms ease;
}
.sidebar-link:hover {
    color: white;
    padding-left: 8px;
}
.sidebar-link.active {
    border-left-color: rgba(107, 159, 245, 0.95);
    color: white;
    padding-left: 12px;
}
.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), #4a7fc1);
    color: white;
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
}
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-lockup--hero {
    justify-content: flex-start;
}
.brand-lockup--sidebar {
    margin-bottom: 6px;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 6px;
}
.brand-copy strong {
    letter-spacing: 0.08em;
    font-size: 0.95rem;
}
.brand-copy span {
    text-transform: lowercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    color: #94a3b8;
}
.sidebar-spacer {
    flex: 1;
    background:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.22;
}

.workspace {
    display: grid;
    gap: 20px;
    align-content: start;
}
.workspace-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.workspace-topbar__title h2 {
    margin: 0;
    color: var(--navy);
    font-size: 1.7rem;
}
.workspace-topbar__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.workspace-user {
    display: flex;
    align-items: center;
    padding-right: 2px;
}
.workspace-user strong {
    color: var(--navy);
    font-size: 0.98rem;
    font-weight: 700;
}
.hero-panel, .panel {
    border-radius: 28px;
    padding: 28px;
}
.hero-panel--metrics {
    padding: 18px;
}
.hero-panel {
    display: grid;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5));
}
.hero-copy { color: var(--muted); max-width: 64ch; }
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.metric-card {
    border-radius: 20px;
    padding: 20px;
    display: grid;
    gap: 6px;
    background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(255,255,255,0.48));
}
.metric-card span, .metric-card small, .muted, .job-meta { color: var(--muted); }
.metric-card strong { font-size: 1.8rem; }
.panel--tabs {
    padding-top: 20px;
}
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.overview-grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.overview-card {
    display: grid;
    gap: 10px;
    min-height: 220px;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58));
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
}
.overview-card h3,
.overview-card p {
    margin: 0;
}
.overview-card__metric {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--navy);
}
.overview-card p {
    color: var(--muted);
    line-height: 1.65;
    max-width: 32ch;
}
.overview-card__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 800;
}
.overview-card--marketradar {
    background:
        radial-gradient(circle at top right, rgba(30, 58, 138, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58));
}
.overview-card--marketradar .overview-card__eyebrow {
    color: var(--accent);
}
.overview-card--ridhara {
    background:
        radial-gradient(circle at top right, rgba(15, 159, 154, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58));
}
.overview-card--ridhara .overview-card__eyebrow {
    color: #0f9f9a;
}
.overview-card--monitor {
    background:
        radial-gradient(circle at top right, rgba(74, 127, 193, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58));
}
.overview-card--monitor .overview-card__eyebrow {
    color: #3559c7;
}
.ptab-bar {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0 0 0.9rem;
    margin-bottom: 0.1rem;
    }
.ptab-bar::-webkit-scrollbar { display: none; }
.ptab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px 12px 0 0;
    background: rgba(255,255,255,0.46);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.04);
}
.ptab:hover {
    color: var(--navy);
    background: rgba(255,255,255,0.72);
}
.ptab.active {
    background: rgba(255,255,255,0.96);
    color: var(--navy);
    border-color: rgba(148, 163, 184, 0.24);
    border-bottom-color: rgba(255,255,255,0.96);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
    transform: translateY(1px);
}
.tab-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    opacity: 0.9;
}
.ptab-panels {
    margin-top: -1px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding-top: 18px;
}
.ptab-panel { display: none; }
.ptab-panel.active { display: block; }

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 18px;
}
.panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.panel-actions--inline-start {
    justify-content: flex-start;
    margin-bottom: 18px;
}
.ticker-toolbar {
    display: flex;
    align-items: end;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.ticker-toolbar--actions .panel-actions {
    margin-left: 0;
}
.ticker-search-group {
    display: flex;
    align-items: end;
    gap: 10px;
    flex-wrap: wrap;
}
.ticker-toolbar__search {
    min-width: min(360px, 100%);
}
.ticker-typeahead {
    position: fixed;
    z-index: 99999;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.18);
    max-height: 320px;
    overflow-y: auto;
}
.ticker-typeahead__item,
.ticker-typeahead__empty {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
}
.ticker-typeahead__item {
    cursor: pointer;
}
.ticker-typeahead__item.is-active,
.ticker-typeahead__item:hover {
    background: rgba(30, 58, 138, 0.08);
}
.ticker-typeahead__main,
.ticker-typeahead__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ticker-typeahead__main strong {
    color: var(--navy);
    font-size: 0.9rem;
}
.ticker-typeahead__main span,
.ticker-typeahead__meta span,
.ticker-typeahead__empty {
    color: var(--muted);
    font-size: 0.78rem;
}
.ticker-typeahead__meta {
    align-items: flex-end;
    text-align: right;
}
.table-wrap { overflow: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 880px;
}
.data-table th, .data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.data-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}
.data-table--marketradar th {
    color: var(--accent);
    font-weight: 800;
}
.data-table--marketradar td strong {
    color: var(--navy);
}
.row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge--ok { background: rgba(16, 185, 129, 0.14); color: #047857; }
.badge--muted { background: rgba(104, 113, 130, 0.14); color: var(--muted); }
.badge--info { background: rgba(30, 58, 138, 0.12); color: var(--accent); }
.badge--warn { background: rgba(180, 83, 9, 0.14); color: #b45309; }
.badge--outline { border: 1px solid var(--line); color: var(--muted); background: transparent; }

.monitor-tabs-shell {
    display: grid;
    gap: 18px;
    overflow: hidden;
}
.monitor-filters {
    display: flex;
    align-items: end;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(255,255,255,0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.42);
}
.monitor-filter {
    display: grid;
    gap: 6px;
    min-width: 160px;
    color: var(--navy-soft);
    font-size: 0.9rem;
    font-weight: 600;
}
.monitor-filter span {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 800;
}
.monitor-filter input {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.74);
    color: var(--navy);
}
.monitor-filter select {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.74);
    color: var(--navy);
}
.monitor-filter input:focus {
    outline: none;
    border-color: rgba(30, 58, 138, 0.4);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}
.monitor-filter select:focus {
    outline: none;
    border-color: rgba(30, 58, 138, 0.4);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.08);
}
.monitor-filter--compact {
    min-width: 220px;
}
.job-runs-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
.monitor-tabs {
    display: inline-flex;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(255,255,255,0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.42);
    overflow-x: auto;
}
.monitor-tabs::-webkit-scrollbar {
    display: none;
}
.monitor-tab {
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 12px 18px;
    background: transparent;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    white-space: nowrap;
}
.monitor-tab:hover {
    background: rgba(255,255,255,0.48);
    color: var(--navy);
}
.monitor-tab.is-active {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(74, 127, 193, 0.9));
    color: white;
    box-shadow: 0 14px 26px rgba(30, 58, 138, 0.18);
}
.monitor-panel {
    display: none;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(107, 159, 245, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.76), rgba(255,255,255,0.56));
    box-shadow: var(--shadow-strong);
}
.monitor-panel.is-active {
    display: block;
}
.panel-head--monitor {
    margin-bottom: 14px;
}
.monitor-kicker {
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
}
.monitor-meta {
    color: var(--muted);
    font-size: 0.88rem;
    text-align: right;
}
.monitor-panel .message {
    margin-bottom: 14px;
}
.table-wrap--monitor {
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(255,255,255,0.42);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.48);
}
.data-table--monitor {
    min-width: 960px;
    table-layout: fixed;
}
.data-table--monitor thead th {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.08), rgba(74, 127, 193, 0.02));
    color: var(--accent);
    font-weight: 800;
}
.data-table--sortable th {
    padding: 0;
}
.table-sort {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    text-transform: inherit;
    letter-spacing: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    padding: 12px 10px;
    cursor: pointer;
}
.table-sort::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.45rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(30, 58, 138, 0.35);
    vertical-align: middle;
    opacity: 0.5;
}
.table-sort.is-active::after {
    opacity: 1;
}
.table-sort.is-active[data-sort-direction="asc"]::after {
    border-top: 0;
    border-bottom: 5px solid var(--accent);
}
.table-sort.is-active[data-sort-direction="desc"]::after {
    border-top: 5px solid var(--accent);
    border-bottom: 0;
}
.table-sort:hover {
    color: var(--navy);
}
.data-table--monitor th,
.data-table--monitor td {
    padding: 12px 10px;
}
.data-table--monitor td {
    font-size: 0.94rem;
}
.data-table--monitor tbody tr:hover {
    background: rgba(255,255,255,0.46);
}
.data-table--ops {
    min-width: 840px;
}
.data-table--ops td {
    padding-top: 16px;
    padding-bottom: 16px;
}
.data-table--ops td:last-child {
    white-space: nowrap;
}
.row-actions--ops {
    justify-content: flex-start;
}
.monitor-pager {
    margin-top: 10px;
}
.rpt-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.7rem 0.1rem 0;
}
.pager-info {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 700;
}
.pager-btns {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.pager-btn {
    min-width: 32px;
    height: 30px;
    padding: 0 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(255,255,255,0.72);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
}
.pager-btn:hover:not(:disabled) {
    border-color: rgba(53, 89, 199, 0.42);
    color: var(--accent);
}
.pager-btn.active {
    background: linear-gradient(135deg, var(--accent), #3559c7);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(30, 58, 138, 0.18);
}
.pager-btn:disabled {
    opacity: 0.35;
    cursor: default;
}
.pager-ellipsis {
    font-size: 0.8rem;
    color: var(--muted);
    padding: 0 0.2rem;
}
.cell-detail {
    max-width: 24ch;
    color: var(--muted);
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.cell-detail--sql {
    max-width: 34ch;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.78rem;
    color: var(--navy-soft);
}
.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 24px 16px !important;
}
.col-monitor-symbol { width: 12%; }
.col-monitor-universe { width: 10%; }
.col-monitor-mode { width: 12%; }
.col-monitor-datetime { width: 12%; }
.col-monitor-status { width: 8%; }
.col-monitor-message { width: 22%; }
.col-monitor-job { width: 20%; }
.col-monitor-area { width: 8%; }
.col-monitor-http { width: 6%; }
.col-monitor-triggered { width: 11%; }
.col-monitor-response { width: 23%; }
.col-monitor-session { width: 8%; }
.col-monitor-resource { width: 18%; }
.col-monitor-wait { width: 20%; }
.col-monitor-program { width: 16%; }
.col-monitor-sql { width: 22%; }

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.job-card {
    border-radius: 22px;
    padding: 20px;
    display: grid;
    gap: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5));
}
.job-card__head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}
.job-area {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.job-card h4 { margin: 6px 0 0; font-size: 1.2rem; }
.job-log {
    margin: 0;
    color: var(--warn);
    font-size: 0.9rem;
}
.empty-state {
    border: 1px dashed rgba(30, 58, 138, 0.18);
    background: rgba(255,255,255,0.46);
    border-radius: 18px;
    padding: 22px;
    color: var(--muted);
}
.empty-state strong {
    display: block;
    color: var(--navy);
    margin-bottom: 8px;
}
.empty-state p {
    margin: 0 0 10px;
    line-height: 1.65;
}
.empty-state code {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--navy);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
}

.modal[hidden] { display: none; }
.modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 24, 34, 0.45);
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 40;
}
.modal__dialog {
    width: min(560px, 100%);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.64));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 26px;
    position: relative;
    backdrop-filter: blur(24px);
}
.modal__dialog--result {
    width: min(640px, 100%);
}
.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.6);
}
.info-box, .message {
    border-radius: 16px;
    padding: 14px 16px;
}
.info-box { background: rgba(30, 58, 138, 0.08); }
.message--error { background: rgba(154, 52, 18, 0.12); color: var(--danger); }
.job-result {
    display: grid;
    gap: 14px;
}
.job-result__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent);
}
.job-result h3,
.job-result__summary {
    margin: 0;
}
.job-result__summary {
    color: var(--muted);
    line-height: 1.6;
}
.job-result__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.job-result__code {
    color: var(--navy-soft);
    font-weight: 700;
}
.job-result__body {
    max-height: 240px;
    overflow: auto;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.58);
    color: var(--navy-soft);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 1080px) {
    .auth-shell,
    .app-shell,
    .hero-panel {
        grid-template-columns: 1fr;
    }
    .auth-shell {
        min-height: 100vh;
        padding: 18px;
        gap: 28px;
    }
    .auth-hero {
        min-height: auto;
        padding: 8px 6px 0;
        gap: 28px;
        justify-content: flex-start;
    }
    .auth-hero__body {
        padding-top: 0;
    }
    .auth-panel {
        margin: 0;
        justify-self: stretch;
        max-width: none;
    }
    .hero-metrics,
    .overview-grid,
    .overview-grid--triple { grid-template-columns: 1fr; }
    .workspace-topbar {
        align-items: flex-start;
    }
    .workspace-topbar__actions {
        width: 100%;
        justify-content: space-between;
    }
    .monitor-meta {
        text-align: left;
    }
    .monitor-filters {
        align-items: stretch;
    }
}

@media (max-width: 640px) {
    .panel-actions,
    .row-actions {
        grid-template-columns: 1fr;
    }
    .app-shell { padding: 12px; }
    .sidebar,
    .hero-panel,
    .panel { padding: 20px; }
    .auth-hero h1 {
        font-size: clamp(3.6rem, 10vw, 5.4rem);
        max-width: 9ch;
    }
    .hero-kicker {
        font-size: 0.74rem;
        gap: 10px;
    }
    .hero-kicker__line {
        width: 44px;
    }
    .hero-title-dynamic {
        font-size: clamp(2.8rem, 8vw, 4.2rem);
    }
}
