.hydra-root {
    width: min(1500px, calc(100% - 24px));
}

.hydra-board {
    display: grid;
    gap: 18px;
    padding-top: 14px;
}

.hydra-hero-panel,
.hydra-tabs-shell,
.hydra-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 16%),
        linear-gradient(135deg, rgba(56, 189, 248, 0.08), transparent 42%),
        rgba(9, 16, 26, 0.88);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    overflow: hidden;
}

.hydra-hero-panel::before,
.hydra-tabs-shell::before,
.hydra-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 32%, transparent 70%, rgba(250, 204, 21, 0.14));
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.hydra-hero-panel {
    display: grid;
    grid-template-columns: minmax(340px, 1.15fr) minmax(280px, 0.85fr);
    gap: 18px;
    padding: 22px;
}

.hydra-hero-panel__copy {
    min-width: 0;
}

.hydra-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.28);
    background: rgba(250, 204, 21, 0.08);
    color: #fde68a;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hydra-kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #38bdf8);
    box-shadow: 0 0 18px rgba(250, 204, 21, 0.4);
}

.hydra-hero-panel h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
}

.hydra-hero-panel p {
    color: var(--text-soft);
    font-size: 0.98rem;
    line-height: 1.7;
}

.quota-panel--hydra {
    display: grid;
    gap: 12px;
    padding: 18px 18px 20px;
    align-self: stretch;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 34%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.12), transparent 30%),
        rgba(7, 13, 21, 0.74);
}

.hydra-tabs-shell {
    padding: 16px;
}

.hydra-tabs-bar {
    display: inline-flex;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(3, 8, 14, 0.58);
    margin-bottom: 16px;
}

.hydra-tab-btn {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 10px 16px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.hydra-tab-btn:hover {
    transform: translateY(-1px);
    color: var(--text);
    border-color: rgba(56, 189, 248, 0.2);
    background: rgba(56, 189, 248, 0.08);
}

.hydra-tab-btn--active {
    color: #051019;
    background: linear-gradient(135deg, #facc15, #60a5fa);
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(96, 165, 250, 0.22);
}

.hydra-tab-panel {
    display: none;
}

.hydra-tab-panel--active {
    display: block;
}

.hydra-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 16px;
}

.hydra-main-grid--secondary {
    grid-template-columns: 1fr;
    margin-top: 16px;
}

.hydra-card {
    padding: 18px;
}

.hydra-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hydra-card__head h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.hydra-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.hydra-status-chip--working {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.34);
}

.hydra-status-chip--warmup {
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.34);
}

.hydra-status-chip--ready {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.34);
}

.hydra-status-chip--partial {
    color: #cffafe;
    background: rgba(20, 184, 166, 0.18);
    border-color: rgba(20, 184, 166, 0.34);
}

.hydra-status-chip--blocked {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.34);
}

.hydra-line {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.65;
}

.hydra-line + .hydra-line {
    margin-top: 6px;
}

.hydra-line--soft {
    color: var(--text-soft);
}

.hydra-pivot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.hydra-pivot-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
        rgba(15, 25, 38, 0.82);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.hydra-pivot-card--rank-1,
.hydra-pivot-card--rank-2 {
    border-color: rgba(250, 204, 21, 0.26);
    background:
        linear-gradient(180deg, rgba(250, 204, 21, 0.12), transparent 24%),
        rgba(15, 25, 38, 0.86);
}

.hydra-pivot-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hydra-pivot-rank,
.hydra-pivot-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hydra-pivot-rank {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #bae6fd;
}

.hydra-pivot-score {
    background: rgba(250, 204, 21, 0.12);
    border: 1px solid rgba(250, 204, 21, 0.22);
    color: #fde68a;
}

.hydra-pivot-core {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.hydra-pivot-core__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.hydra-pivot-core__number {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.hydra-pivot-core__number--red {
    color: #fca5a5;
}

.hydra-pivot-core__number--black {
    color: #e2e8f0;
}

.hydra-pivot-core__number--green {
    color: #86efac;
}

.hydra-zone-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hydra-zone-number {
    display: grid;
    gap: 2px;
    justify-items: center;
    padding: 10px 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.hydra-zone-number strong {
    font-size: 1rem;
    line-height: 1;
}

.hydra-zone-number small {
    color: var(--text-faint);
    font-size: 0.68rem;
    font-weight: 700;
}

.hydra-zone-number--red {
    color: #fecaca;
}

.hydra-zone-number--black {
    color: #e2e8f0;
}

.hydra-zone-number--green {
    color: #86efac;
}

.hydra-gr-strip,
.hydra-mini-gr {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hydra-gr-strip {
    min-height: 58px;
    padding: 14px;
    border-radius: 20px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(3, 9, 15, 0.5);
}

.hydra-gr-chip,
.hydra-number-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.8rem;
}

.hydra-gr-chip--hit {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.hydra-gr-chip--miss {
    color: #fee2e2;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.hydra-gr-chip--latest {
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.24);
}

.hydra-empty {
    color: var(--text-faint);
    font-size: 0.94rem;
}

.hydra-empty--panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 22px;
    text-align: center;
    border-radius: 22px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.hydra-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(4, 10, 16, 0.58);
}

.hydra-model-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1120px;
}

.hydra-model-table th,
.hydra-model-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
    vertical-align: middle;
    font-size: 0.9rem;
}

.hydra-model-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(8, 15, 23, 0.96);
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
}

.hydra-model-row--active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.06), transparent 42%);
}

.hydra-model-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hydra-model-name small {
    display: block;
    color: var(--text-faint);
    font-size: 0.74rem;
    margin-top: 2px;
}

.hydra-model-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--hydra-model-color, #60a5fa);
    box-shadow: 0 0 18px color-mix(in srgb, var(--hydra-model-color, #60a5fa) 48%, transparent);
    flex-shrink: 0;
}

.hydra-table-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hydra-table-pill--active {
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.16);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

.hydra-table-pill--idle {
    color: #dbeafe;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.28);
}

.hydra-model-notes {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-soft);
    line-height: 1.65;
}

.hydra-table-empty {
    text-align: center;
    color: var(--text-faint);
    padding: 22px !important;
}

.hydra-table-cell--wide {
    min-width: 220px;
}

.hydra-number-pill--red {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.24);
}

.hydra-number-pill--black {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hydra-number-pill--green {
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.24);
}

@media (max-width: 1180px) {
    .hydra-hero-panel,
    .hydra-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hydra-pivot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hydra-root {
        width: min(100%, calc(100% - 16px));
    }

    .hydra-hero-panel,
    .hydra-card,
    .hydra-tabs-shell {
        border-radius: 24px;
    }

    .hydra-hero-panel,
    .hydra-card,
    .hydra-tabs-shell {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hydra-tabs-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .hydra-pivot-grid {
        grid-template-columns: 1fr;
    }

    .hydra-zone-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
