@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
    --bg: #f5f8ff;
    --bg-soft: #edf4ff;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --ink: #102447;
    --muted: #60759c;
    --line: rgba(36, 91, 214, 0.14);
    --brand: #174bb7;
    --brand-2: #1f91db;
    --brand-3: #57d8ff;
    --brand-deep: #0f2d73;
    --brand-night: #081734;
    --ok: #17906b;
    --warn: #cc8a16;
    --danger: #d7475c;
    --shadow: 0 22px 70px rgba(24, 53, 115, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(87, 216, 255, 0.28), transparent 26%),
        radial-gradient(circle at 88% 10%, rgba(23, 75, 183, 0.18), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #edf5ff 50%, #f8fbff 100%);
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(23, 75, 183, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(23, 75, 183, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

a {
    color: var(--brand);
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2rem;
    backdrop-filter: blur(18px);
    background: rgba(248, 251, 255, 0.8);
    border-bottom: 1px solid rgba(23, 75, 183, 0.08);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 0.3rem;
    background:
        radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.32) 44%, rgba(31, 145, 219, 0.08) 100%),
        linear-gradient(180deg, rgba(23, 75, 183, 0.14), rgba(31, 145, 219, 0.08));
    border: 1px solid rgba(23, 75, 183, 0.08);
    box-shadow:
        0 16px 32px rgba(23, 75, 183, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(23, 75, 183, 0.18));
}

.brand-logo {
    width: 184px;
    height: auto;
}

.brand {
    display: inline-block;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: none;
}

.brand span {
    color: var(--brand-2);
    text-transform: uppercase;
}

.subtitle,
.muted {
    color: var(--muted);
}

.brand-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-meta .subtitle {
    max-width: 760px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.nav a,
.button-link,
button {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(23, 75, 183, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.nav a {
    padding: 0.72rem 1rem;
    font-size: 0.92rem;
}

.nav a:hover,
.button-link:hover,
button:hover,
.mini-button:hover,
.mini-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 18px 30px rgba(23, 75, 183, 0.22);
}

.button-link.secondary {
    background: linear-gradient(135deg, #dce9ff, #f5fbff);
    color: var(--ink);
    box-shadow: none;
}

.button-link.danger-soft {
    background: linear-gradient(135deg, rgba(215, 71, 92, 0.14), rgba(240, 102, 127, 0.12));
    color: #b53d53;
    box-shadow: none;
}

.page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
}

.build-badge {
    position: fixed;
    right: 18px;
    bottom: 16px;
    z-index: 30;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: rgba(8, 23, 52, 0.88);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 24px rgba(8, 23, 52, 0.24);
    backdrop-filter: blur(10px);
}

.snow-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.snow {
    position: absolute;
    top: -40px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(87, 216, 255, 0.34));
    box-shadow: 0 0 18px rgba(87, 216, 255, 0.45);
    opacity: 0.75;
    animation: snow-fall linear infinite;
}

.snow::before,
.snow::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
}

.snow::before {
    width: 2px;
    height: 16px;
}

.snow::after {
    width: 16px;
    height: 2px;
}

.snow-a { left: 8%; animation-duration: 16s; animation-delay: 0s; }
.snow-b { left: 22%; animation-duration: 19s; animation-delay: 2s; transform: scale(1.1); }
.snow-c { left: 40%; animation-duration: 15s; animation-delay: 5s; transform: scale(0.7); }
.snow-d { left: 63%; animation-duration: 18s; animation-delay: 1s; }
.snow-e { left: 79%; animation-duration: 17s; animation-delay: 3s; transform: scale(0.9); }
.snow-f { left: 91%; animation-duration: 21s; animation-delay: 6s; transform: scale(1.2); }

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(10, 25, 66, 0.98), rgba(23, 75, 183, 0.94) 58%, rgba(31, 145, 219, 0.92));
    box-shadow: var(--shadow);
    color: white;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -40% auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(87, 216, 255, 0.45), rgba(87, 216, 255, 0.02) 68%);
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #dff6ff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 1rem 0 0.9rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    line-height: 1.65;
}

.hero-badges {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-badge::before {
    content: "✦";
    font-size: 0.72rem;
    color: #d6fbff;
}

.hero-side {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    align-content: end;
}

.hero-card {
    padding: 1.2rem 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.hero-card strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.4rem;
}

.grid {
    display: grid;
    grid-template-columns: minmax(320px, 520px) minmax(380px, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.live-grid {
    grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr);
}

.panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 1.55rem;
}

.panel-selected {
    border-color: rgba(38, 132, 255, 0.38);
    box-shadow: 0 28px 90px rgba(28, 86, 214, 0.18);
}

.scheduled-item {
    display: block;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(247, 251, 255, 0.82);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.scheduled-item:hover {
    transform: translateY(-1px);
    border-color: rgba(38, 132, 255, 0.34);
    box-shadow: 0 18px 46px rgba(28, 86, 214, 0.12);
}

.scheduled-item-selected {
    border-color: rgba(38, 132, 255, 0.42);
    box-shadow: 0 18px 52px rgba(28, 86, 214, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 246, 255, 0.96));
}

.scheduled-list {
    display: grid;
    gap: 1rem;
}

.scheduled-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
    margin-bottom: 0.7rem;
}

.scheduled-item-copy {
    min-width: 0;
}

.scheduled-item-copy strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1.1;
    color: var(--brand-deep);
}

.scheduled-item-subline {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.35;
    word-break: break-word;
}

.scheduled-item-stats {
    margin: 0.9rem 0 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scheduled-city-chips {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}

.scheduled-hero-panel {
    padding: 1.8rem;
}

.scheduled-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1.5rem;
    align-items: start;
}

.scheduled-hero-copy h1 {
    margin: 0.9rem 0 0.8rem;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.scheduled-hero-copy p {
    margin: 0;
    max-width: 780px;
    line-height: 1.7;
}

.scheduled-hero-actions {
    display: grid;
    gap: 0.85rem;
    justify-items: start;
    padding: 1.15rem;
    border: 1px solid rgba(23, 75, 183, 0.1);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(23, 75, 183, 0.05), rgba(87, 216, 255, 0.08));
}

.scheduled-cta-form {
    display: flex;
    width: 100%;
}

.scheduled-cta-form button {
    width: 100%;
    justify-content: center;
}

.scheduled-cta-note {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

.scheduled-top-stats {
    margin-bottom: 0;
}

.scheduled-grid-simple {
    grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
}

.scheduled-item-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.scheduled-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.95rem 0 0.8rem;
}

.scheduled-metric-pill {
    padding: 0.8rem 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(23, 75, 183, 0.08);
}

.scheduled-metric-pill span,
.scheduled-card-footer span,
.scheduled-live-stats span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.scheduled-metric-pill strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--brand-deep);
    font-size: 1.22rem;
    line-height: 1;
}

.scheduled-insight {
    margin: 0;
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.55;
}

.scheduled-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(23, 75, 183, 0.12);
}

.scheduled-card-footer span {
    max-width: 48%;
}

.scheduled-insight-box {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(87, 216, 255, 0.12), rgba(23, 75, 183, 0.05));
    border: 1px solid rgba(23, 75, 183, 0.08);
}

.scheduled-insight-box strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--brand-deep);
}

.scheduled-insight-box p {
    margin: 0;
    line-height: 1.6;
}

.scheduled-action-strip {
    margin-top: 1rem;
    align-items: center;
}

.scheduled-mini-note {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.scheduled-progress-card {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
}

.scheduled-live-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.8rem;
}

.scheduled-live-stats span {
    padding: 0.8rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(23, 75, 183, 0.08);
}

.scheduled-detail-line {
    margin: 0.8rem 0 0;
}

.scheduled-jobs-table {
    margin-top: 1rem;
}

.enterprise-shell {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
}

.enterprise-login-panel {
    width: min(100%, 460px);
    padding: 1.4rem;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.enterprise-login-panel h1 {
    margin: 0.2rem 0 0.35rem;
    font-size: 2rem;
    line-height: 1.05;
}

.enterprise-form {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.enterprise-form textarea {
    min-height: 120px;
    resize: vertical;
}

.enterprise-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.enterprise-toolbar h1 {
    margin: 0.2rem 0 0.2rem;
    font-size: 1.9rem;
    line-height: 1.08;
}

.enterprise-bridge-note {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.45rem 0 0;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(43, 181, 232, 0.25);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(231, 248, 255, 0.95), rgba(238, 252, 255, 0.72));
    color: var(--brand-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.enterprise-grid {
    display: grid;
    grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
    gap: 1.5rem;
    align-items: start;
}

.enterprise-today-card {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.enterprise-today-card > strong {
    color: var(--brand-deep);
    font-size: 1.5rem;
    line-height: 1.1;
}

.enterprise-today-card > span {
    color: var(--muted);
}

.enterprise-job-link {
    justify-self: start;
}

.enterprise-ok {
    background: linear-gradient(180deg, rgba(23, 144, 107, 0.12), rgba(23, 144, 107, 0.06));
    color: var(--ok);
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 46px;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-deep);
    text-decoration: none;
    font-weight: 700;
}

.button-secondary.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
    opacity: 0.9;
}

.panel h1,
.panel h2 {
    margin-top: 0;
}

.panel h1 {
    font-size: 1.65rem;
}

.panel h2 {
    font-size: 1.15rem;
}

.form,
.details {
    display: grid;
    gap: 1rem;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

label {
    display: grid;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-deep);
}

input,
textarea,
select {
    width: 100%;
    padding: 0.92rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(23, 75, 183, 0.12);
    background: linear-gradient(180deg, #ffffff, #f4f9ff);
    color: var(--ink);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(31, 145, 219, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 145, 219, 0.14);
}

.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.inline-checkbox {
    margin-top: -0.15rem;
}

.checkbox input {
    width: auto;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.progress-shell {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(23, 75, 183, 0.06), rgba(87, 216, 255, 0.06));
    border: 1px solid rgba(23, 75, 183, 0.08);
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.progress-meta strong {
    font-size: 1.2rem;
    color: var(--brand-deep);
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(16, 36, 71, 0.08);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
    box-shadow: 0 0 14px rgba(31, 145, 219, 0.35);
}

.progress-live-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.live-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(23, 144, 107, 0.25);
    box-shadow: 0 0 0 0 rgba(23, 144, 107, 0.2);
}

.live-pulse.is-active {
    background: var(--ok);
    animation: live-pulse 1.8s infinite;
}

.stat {
    position: relative;
    overflow: hidden;
    padding: 1.1rem;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(23, 75, 183, 0.08), rgba(87, 216, 255, 0.08)),
        rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(23, 75, 183, 0.08);
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--brand-deep);
}

.stat span {
    color: var(--muted);
}

.secondary-stats {
    margin-top: -0.15rem;
}

.compact-stat {
    padding: 0.9rem 1rem;
}

.compact-stat strong {
    font-size: 1.35rem;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.table thead th {
    position: sticky;
    top: 0;
    background: rgba(234, 242, 255, 0.96);
    color: var(--brand-deep);
}

.table th,
.table td {
    padding: 0.95rem 0.7rem;
    border-bottom: 1px solid rgba(23, 75, 183, 0.08);
    text-align: left;
    vertical-align: top;
}

.table tbody tr:hover {
    background: rgba(31, 145, 219, 0.04);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.32rem 0.78rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(23, 75, 183, 0.12);
    color: var(--brand);
}

.badge-failed,
.badge-discarded {
    background: rgba(215, 71, 92, 0.12);
    color: var(--danger);
}

.badge-approved,
.badge-completed {
    background: rgba(23, 144, 107, 0.12);
    color: var(--ok);
}

.badge-pending,
.badge-queued,
.badge-running,
.badge-merged {
    background: rgba(204, 138, 22, 0.12);
    color: var(--warn);
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.title-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form {
    display: flex;
    gap: 0.75rem;
    align-items: end;
    flex-wrap: wrap;
}

.inline-form label {
    min-width: 140px;
}

.inline-form input {
    width: 100%;
}

.alert {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(215, 71, 92, 0.1), rgba(215, 71, 92, 0.06));
    color: #a72d45;
    border: 1px solid rgba(215, 71, 92, 0.14);
}

.details {
    grid-template-columns: 180px 1fr;
}

.details dt {
    font-weight: 700;
    color: var(--muted);
}

.details dd {
    margin: 0;
}

.list {
    display: grid;
    gap: 0.7rem;
    padding-left: 1.25rem;
}

.duplicate-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.dup-card {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(23, 75, 183, 0.08), rgba(87, 216, 255, 0.06));
    border: 1px solid rgba(23, 75, 183, 0.1);
}

.dup-card small,
.mono {
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    word-break: break-all;
    color: var(--muted);
}

.quick-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.mini-button,
.mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.72rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.mini-button {
    border: none;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.mini-button.ok {
    background: linear-gradient(135deg, #14906a, #28be8f);
}

.mini-button.danger {
    background: linear-gradient(135deg, #ce4058, #f0667f);
}

.mini-link {
    background: rgba(23, 75, 183, 0.08);
    color: var(--brand-deep);
}

.compact-form {
    gap: 0.8rem;
}

.dup-actions {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.live-feed {
    display: grid;
    gap: 0.85rem;
    max-height: 520px;
    overflow: auto;
    padding-right: 0.25rem;
}

.timeline-feed {
    display: grid;
    gap: 0.75rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 75, 183, 0.05), rgba(87, 216, 255, 0.03));
    border: 1px solid rgba(23, 75, 183, 0.08);
}

.timeline-item strong {
    font-size: 0.92rem;
}

.timeline-item span {
    color: var(--muted);
    font-size: 0.82rem;
    white-space: nowrap;
}

.live-card {
    display: grid;
    gap: 0.45rem;
    padding: 1rem 1rem 0.95rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(23, 75, 183, 0.06), rgba(87, 216, 255, 0.04));
    border: 1px solid rgba(23, 75, 183, 0.08);
}

.live-card.is-historical {
    border-color: rgba(23, 144, 107, 0.22);
    background: linear-gradient(180deg, rgba(240, 253, 248, 0.98), rgba(230, 248, 241, 0.94));
}

.live-card p {
    margin: 0;
    color: var(--muted);
}

.live-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: start;
}

.live-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--brand-deep);
}

.live-card-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    align-items: center;
}

.mini-muted {
    display: inline-flex;
    margin-top: 0.2rem;
    color: var(--ok);
    font-size: 0.78rem;
    font-weight: 700;
}

.job-map {
    width: 100%;
    height: 520px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(23, 75, 183, 0.08);
    background: linear-gradient(180deg, rgba(23, 75, 183, 0.08), rgba(87, 216, 255, 0.04));
}

.map-legend {
    display: grid;
    gap: 0.35rem;
    min-width: 180px;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 28px rgba(16, 36, 71, 0.12);
    border: 1px solid rgba(23, 75, 183, 0.08);
    color: var(--ink);
    font-size: 0.82rem;
}

.map-legend strong {
    margin-bottom: 0.2rem;
}

.map-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.swatch-pending { background: #f0b44a; }
.swatch-approved { background: #2dc494; }
.swatch-discarded { background: #f0667f; }
.swatch-merged { background: #9f7aea; }
.swatch-sector {
    background: rgba(87, 216, 255, 0.5);
    border: 1px dashed rgba(31, 145, 219, 0.8);
}
.swatch-sector-current {
    background: rgba(23, 75, 183, 0.6);
    border: 1px solid #174bb7;
}

.hidden {
    display: none !important;
}

.leads-hero {
    margin-bottom: 1.5rem;
}

.leads-overview-grid {
    grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
}

.rank-list {
    display: grid;
    gap: 0.85rem;
}

.rank-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(23, 75, 183, 0.06), rgba(87, 216, 255, 0.03));
    border: 1px solid rgba(23, 75, 183, 0.08);
}

.rank-item span {
    color: var(--muted);
    font-size: 0.9rem;
}

.lead-line,
.lead-contact {
    display: grid;
    gap: 0.2rem;
}

.lead-line span,
.lead-contact span:last-child {
    color: var(--muted);
    font-size: 0.85rem;
}

.surface-grid {
    display: grid;
    gap: 1.5rem;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes snow-fall {
    0% {
        transform: translate3d(0, -30px, 0);
        opacity: 0;
    }
    12% {
        opacity: 0.8;
    }
    100% {
        transform: translate3d(20px, 108vh, 0);
        opacity: 0;
    }
}

@keyframes live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(23, 144, 107, 0.28);
        transform: scale(1);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(23, 144, 107, 0);
        transform: scale(1.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(23, 144, 107, 0);
        transform: scale(1);
    }
}

.hero,
.panel {
    animation: floatIn 0.45s ease;
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .scheduled-hero,
    .scheduled-grid-simple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .grid,
    .row,
    .row-4 {
        grid-template-columns: 1fr;
    }

    .topbar,
    .title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .scheduled-metric-strip,
    .scheduled-live-stats {
        grid-template-columns: 1fr;
    }

    .scheduled-card-footer {
        flex-direction: column;
    }

    .scheduled-card-footer span {
        max-width: none;
    }

    .enterprise-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .enterprise-grid {
        grid-template-columns: 1fr;
    }

    .details {
        grid-template-columns: 1fr;
    }

    .page {
        padding: 1rem;
    }

    .hero {
        padding: 1.35rem;
        border-radius: 26px;
    }

    .brand-logo {
        width: 150px;
    }

    .brand-mark {
        width: 58px;
        height: 58px;
    }
}
