:root {
    --bg: #06111f;
    --bg-deep: #020814;
    --panel: rgba(9, 22, 40, 0.74);
    --panel-border: rgba(111, 240, 255, 0.14);
    --text: #eefbff;
    --muted: rgba(199, 224, 236, 0.7);
    --dim: rgba(157, 189, 207, 0.55);
    --cyan: #56f0ff;
    --blue: #4c7dff;
    --green: #53ffc1;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
    --font-sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.progress-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    background:
        radial-gradient(circle at top left, rgba(76, 125, 255, 0.18), transparent 34%),
        radial-gradient(circle at 80% 16%, rgba(86, 240, 255, 0.14), transparent 28%),
        linear-gradient(180deg, #071120 0%, #030914 100%);
    color: var(--text);
    overflow-x: hidden;
}

.progress-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(86, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(86, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 92%);
}

.bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    opacity: 0.65;
}

.orb-a {
    width: 220px;
    height: 220px;
    top: 10%;
    left: -60px;
    background: rgba(86, 240, 255, 0.16);
}

.orb-b {
    width: 280px;
    height: 280px;
    right: -70px;
    top: 28%;
    background: rgba(76, 125, 255, 0.18);
}

.orb-c {
    width: 340px;
    height: 340px;
    bottom: -110px;
    left: 30%;
    background: rgba(83, 255, 193, 0.12);
}

.progress-nav {
    position: sticky;
    top: 18px;
    z-index: 10;
    width: min(1260px, calc(100vw - 28px));
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(4, 16, 31, 0.76);
    border: 1px solid rgba(86, 240, 255, 0.14);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.nav-left,
.nav-links {
    display: flex;
    align-items: center;
}

.nav-left {
    gap: 10px;
}

.nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.brand-text {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
}

.brand-chip {
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(86, 240, 255, 0.08);
    border: 1px solid rgba(86, 240, 255, 0.2);
    font-size: 0.75rem;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 8px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(86, 240, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(86, 240, 255, 0.14);
}

.nav-button {
    border: 1px solid transparent;
    font: inherit;
    cursor: pointer;
}

#progressLoginBtn {
    color: #03121c;
    font-weight: 700;
    min-width: 78px;
    justify-content: center;
    background: linear-gradient(135deg, #56f0ff 0%, #53ffc1 100%);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(86, 240, 255, 0.24), 0 12px 28px rgba(83, 255, 193, 0.22);
}

#progressLoginBtn:hover {
    color: #03121c;
    background: linear-gradient(135deg, #7af5ff 0%, #72ffd0 100%);
    box-shadow: 0 0 0 1px rgba(86, 240, 255, 0.36), 0 16px 34px rgba(83, 255, 193, 0.3);
}

#progressLogoutBtn {
    color: rgba(231, 244, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.admin-only {
    display: none !important;
}

body.is-admin .admin-only {
    display: inline-flex !important;
}

body.is-admin #progressLoginBtn {
    display: none;
}

.dashboard-shell {
    width: min(1260px, calc(100vw - 28px));
    margin: 26px auto 64px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.panel {
    background: linear-gradient(180deg, rgba(10, 24, 44, 0.88), rgba(7, 17, 31, 0.82));
    border: 1px solid var(--panel-border);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-panel {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 24px;
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -40% 40%;
    height: 260px;
    background: radial-gradient(circle, rgba(86, 240, 255, 0.12), transparent 65%);
    filter: blur(20px);
}

.eyebrow,
.section-kicker {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-panel h1 {
    margin: 0;
    max-width: 760px;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.6vw, 3.8rem);
    line-height: 1.04;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--dim);
    font-size: 0.82rem;
}

.admin-edit-btn,
.modal-primary,
.modal-secondary {
    min-height: 40px;
    border-radius: 999px;
    padding: 0 18px;
    border: 1px solid rgba(86, 240, 255, 0.22);
    color: var(--text);
    background: linear-gradient(135deg, rgba(86, 240, 255, 0.18), rgba(76, 125, 255, 0.18));
    cursor: pointer;
    font-weight: 600;
}

.admin-edit-btn:hover,
.modal-primary:hover,
.modal-secondary:hover {
    box-shadow: 0 0 28px rgba(86, 240, 255, 0.16);
}

.hero-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-content: start;
}

.mini-card {
    min-height: 124px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10, 34, 57, 0.92), rgba(7, 21, 38, 0.82));
    border: 1px solid rgba(86, 240, 255, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mini-label {
    color: var(--dim);
    font-size: 0.82rem;
}

.mini-card strong {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
}

.orb-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.orb-card {
    position: relative;
    overflow: hidden;
    padding: 30px 24px 26px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(8, 22, 39, 0.94), rgba(5, 13, 24, 0.9));
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-card::before {
    content: "";
    position: absolute;
    inset: -12% auto auto -8%;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    opacity: 0.26;
}

.orb-card-cyan::before {
    background: radial-gradient(circle, rgba(86, 240, 255, 0.5), transparent 72%);
}

.orb-card-blue::before {
    background: radial-gradient(circle, rgba(76, 125, 255, 0.52), transparent 72%);
}

.orb-card-green::before {
    background: radial-gradient(circle, rgba(83, 255, 193, 0.48), transparent 72%);
}

.orb-shell {
    --fill: 50%;
    position: relative;
    width: 230px;
    height: 230px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 36%), #2d3f7d;
    box-shadow: inset 0 -24px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 36px rgba(0, 0, 0, 0.22);
    animation: drift 7.8s ease-in-out infinite;
}

.orb-shell::before,
.orb-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.orb-shell::before {
    inset: 18px 40px auto 40px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
    filter: blur(2px);
    opacity: 0.52;
}

.orb-core {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}

.orb-value {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.18);
}

.orb-label {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(238, 251, 255, 0.88);
}

.orb-liquid {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--fill);
    overflow: hidden;
    z-index: 1;
}

.orb-liquid::before,
.orb-liquid::after {
    content: "";
    position: absolute;
    left: -10%;
    width: 120%;
}

.orb-liquid::before {
    top: -26px;
    height: 52px;
    border-radius: 42% 58% 0 0 / 70% 70% 0 0;
    opacity: 0.94;
    animation: waveOne 3.8s ease-in-out infinite;
}

.orb-liquid::after {
    top: -18px;
    height: 44px;
    border-radius: 46% 54% 0 0 / 72% 72% 0 0;
    opacity: 0.8;
    animation: waveTwo 5.2s ease-in-out infinite reverse;
}

.orb-card-cyan .orb-liquid {
    background: linear-gradient(180deg, #60a8ff 0%, #3fa3f7 100%);
}

.orb-card-cyan .orb-liquid::before {
    background: #5c83ff;
}

.orb-card-cyan .orb-liquid::after {
    background: #4da8ff;
}

.orb-card-blue .orb-liquid {
    background: linear-gradient(180deg, #3ca4dc 0%, #24b4d1 100%);
}

.orb-card-blue .orb-liquid::before {
    background: #2e8fcb;
}

.orb-card-blue .orb-liquid::after {
    background: #34addf;
}

.orb-card-green .orb-liquid {
    background: linear-gradient(180deg, #49c8ea 0%, #29d2cb 100%);
}

.orb-card-green .orb-liquid::before {
    background: #39b7e2;
}

.orb-card-green .orb-liquid::after {
    background: #22c3d5;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.summary-tile {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-tile .label {
    display: block;
    color: var(--dim);
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.summary-tile .value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
}

.summary-tile .meta {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.section-panel {
    padding: 24px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.7rem;
}

.section-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 18px;
}

.section-grid-wide {
    grid-template-columns: 1.25fr 0.95fr;
}

.chart-card,
.table-card,
.detail-card {
    min-width: 0;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(9, 29, 49, 0.88), rgba(6, 20, 34, 0.92));
    border: 1px solid rgba(86, 240, 255, 0.1);
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.card-head h3 {
    margin: 0;
    font-size: 1.05rem;
}

.legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gantt-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(86, 240, 255, 0.1);
}

.gantt-control-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.gantt-control-group span {
    color: var(--dim);
    font-size: 0.78rem;
    margin-right: 2px;
}

.gantt-controls button {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(86, 240, 255, 0.14);
    color: var(--text);
    background: rgba(86, 240, 255, 0.07);
    cursor: pointer;
}

.gantt-controls button:hover {
    background: rgba(86, 240, 255, 0.14);
}

.gantt-reset {
    border-color: rgba(83, 255, 193, 0.2) !important;
    background: rgba(83, 255, 193, 0.08) !important;
}

.legend-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    border: 1px solid transparent;
}

.legend-scheduled,
.status-scheduled {
    background: rgba(118, 93, 255, 0.18);
    border-color: rgba(118, 93, 255, 0.3);
    color: #c7b6ff;
}

.legend-pending,
.status-pending {
    background: rgba(255, 203, 107, 0.16);
    border-color: rgba(255, 203, 107, 0.32);
    color: #ffd979;
}

.legend-planned,
.status-planned {
    background: rgba(76, 125, 255, 0.16);
    border-color: rgba(76, 125, 255, 0.3);
    color: #9fbaff;
}

.legend-new,
.status-new {
    background: rgba(83, 255, 193, 0.16);
    border-color: rgba(83, 255, 193, 0.32);
    color: #91ffd6;
}

.legend-paused,
.status-paused {
    background: rgba(119, 135, 154, 0.18);
    border-color: rgba(119, 135, 154, 0.3);
    color: #bcc7d2;
}

.chart-box {
    position: relative;
    height: 560px;
}

.chart-box.is-deferred {
    display: grid;
    place-items: center;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(86, 240, 255, 0.12), transparent 46%),
        linear-gradient(180deg, rgba(5, 15, 28, 0.82), rgba(7, 19, 33, 0.94));
    border: 1px dashed rgba(86, 240, 255, 0.16);
    overflow: hidden;
}

.chart-placeholder {
    width: min(320px, calc(100% - 48px));
    display: grid;
    gap: 10px;
    text-align: center;
    color: rgba(199, 224, 236, 0.78);
}

.chart-placeholder strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--text);
}

.chart-placeholder p {
    margin: 0;
    line-height: 1.6;
}

.chart-placeholder .chart-badge {
    justify-self: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(86, 240, 255, 0.18);
    background: rgba(86, 240, 255, 0.08);
    color: var(--cyan);
    font-size: 0.82rem;
}

.table-scroll {
    max-height: 520px;
    overflow: auto;
    padding-right: 4px;
}

.table-scroll.tall {
    max-height: 540px;
}

.standard-table {
    min-width: 1020px;
}

.standard-table th:nth-child(1),
.standard-table td:nth-child(1) {
    min-width: 210px;
}

.standard-table th:nth-child(2),
.standard-table td:nth-child(2) {
    min-width: 260px;
}

.standard-table th:nth-child(3),
.standard-table td:nth-child(3),
.standard-table th:nth-child(4),
.standard-table td:nth-child(4) {
    min-width: 88px;
    white-space: nowrap;
}

.standard-table th:nth-child(5),
.standard-table td:nth-child(5) {
    min-width: 84px;
    white-space: nowrap;
}

.standard-table th:nth-child(6),
.standard-table td:nth-child(6) {
    min-width: 120px;
    white-space: nowrap;
}

.standard-table th:nth-child(7),
.standard-table td:nth-child(7) {
    min-width: 76px;
    white-space: nowrap;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(8, 22, 38, 0.96);
    color: rgba(227, 244, 255, 0.92);
    font-size: 0.82rem;
    font-weight: 600;
}

.data-table td {
    color: var(--muted);
    font-size: 0.86rem;
}

.data-table tbody tr:hover {
    background: rgba(86, 240, 255, 0.04);
}

.progress-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-inline .bar {
    position: relative;
    width: 88px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-inline .fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.progress-inline strong {
    color: var(--text);
    font-size: 0.84rem;
    min-width: 42px;
}

.clickable-table tbody tr {
    cursor: pointer;
}

.progress-percent {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
    white-space: nowrap;
}

.detail-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.detail-coverage {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(86, 240, 255, 0.09);
    border: 1px solid rgba(86, 240, 255, 0.18);
    color: var(--cyan);
    font-size: 0.82rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.detail-grid-standard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-metric {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-metric .metric-label {
    display: block;
    color: var(--dim);
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.detail-metric .metric-value {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
}

.detail-list h4 {
    margin: 0 0 12px;
    font-size: 0.98rem;
}

.detail-list ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--muted);
    line-height: 1.65;
}

.detail-note {
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

.detail-note.empty,
.empty-state {
    color: var(--dim);
}

.remark-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(83, 255, 193, 0.2);
    background: rgba(83, 255, 193, 0.08);
    color: #91ffd6;
    font-size: 0.76rem;
    white-space: nowrap;
}

.remark-chip.muted {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--dim);
}

.table-detail-btn {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(86, 240, 255, 0.16);
    background: rgba(86, 240, 255, 0.08);
    color: var(--text);
    cursor: pointer;
}

.table-detail-btn:hover {
    background: rgba(86, 240, 255, 0.14);
}

.attachment-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.attachment-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.attachment-caption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
    word-break: break-word;
}

.attachment-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-link,
.editor-attachment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.035);
}

.attachment-link a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
}

.attachment-link a:hover {
    color: var(--cyan);
}

.attachment-meta {
    color: var(--dim);
    font-size: 0.78rem;
    white-space: nowrap;
}

.editor-remark {
    min-width: 220px;
}

.editor-attachment-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 240px;
}

.editor-attachment-empty {
    color: var(--dim);
    font-size: 0.82rem;
}

.editor-upload-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-file-input {
    max-width: 100%;
    color: var(--muted);
    font-size: 0.8rem;
}

.editor-upload-status {
    min-height: 18px;
    color: var(--dim);
    font-size: 0.78rem;
}

.row-action.subtle {
    background: rgba(86, 240, 255, 0.07);
    border-color: rgba(86, 240, 255, 0.14);
    color: var(--text);
}

.coverage-orb {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: white;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.3), transparent 24%),
        linear-gradient(160deg, rgba(110, 247, 255, 0.92), rgba(32, 96, 255, 0.72));
    box-shadow: inset 0 -10px 18px rgba(1, 12, 29, 0.38), 0 0 22px rgba(86, 240, 255, 0.2);
}

.coverage-orb::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 11px;
    width: 18px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    transform: rotate(-18deg);
    filter: blur(2px);
}

.table-scroll::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: rgba(86, 240, 255, 0.18);
    border-radius: 999px;
}

.progress-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(1, 8, 18, 0.72);
    backdrop-filter: blur(12px);
}

.progress-modal.open {
    display: flex;
}

.progress-modal-card {
    width: min(960px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(8, 24, 44, 0.98), rgba(4, 14, 28, 0.98));
    border: 1px solid rgba(86, 240, 255, 0.16);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
}

.login-card {
    width: min(420px, 94vw);
    padding: 22px;
}

.editor-card {
    display: flex;
    flex-direction: column;
    width: min(1480px, 98vw);
    max-height: 94vh;
}

.modal-head,
.editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 0;
}

.modal-head h3 {
    margin: 0;
    font-size: 1.2rem;
}

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

.standard-detail-modal-card {
    display: flex;
    flex-direction: column;
    width: min(980px, 96vw);
}

.standard-detail-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    max-height: calc(88vh - 76px);
    overflow: auto;
}

.modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--muted);
}

.login-form input,
.editor-input,
.editor-select,
.editor-textarea {
    width: 100%;
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(86, 240, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    padding: 8px 10px;
    outline: none;
}

.editor-textarea {
    min-height: 84px;
    resize: vertical;
}

.form-error {
    min-height: 20px;
    color: #ff9d9d;
    font-size: 0.85rem;
}

.modal-secondary {
    background: rgba(255, 255, 255, 0.04);
}

.editor-tabs {
    display: flex;
    gap: 10px;
    padding: 14px 20px 0;
}

.editor-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.editor-tab {
    min-height: 38px;
    border: 1px solid rgba(86, 240, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    padding: 0 16px;
    cursor: pointer;
}

.editor-tab.active {
    color: var(--text);
    background: rgba(86, 240, 255, 0.12);
}

.editor-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 20px 24px 24px;
}

.editor-pane {
    display: none;
}

.editor-pane.active {
    display: block;
}

.editor-source-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.editor-source-table th,
.editor-source-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 9px 8px;
    text-align: left;
    vertical-align: top;
}

.editor-source-table th {
    color: var(--dim);
    font-size: 0.78rem;
    font-weight: 600;
}

.editor-section-title {
    margin: 20px 0 10px;
    color: var(--cyan);
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.attachment-editor-card {
    display: flex;
    flex-direction: column;
    width: min(880px, 96vw);
    max-height: 90vh;
}

.attachment-editor-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
    overflow: auto;
}

.attachment-editor-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.attachment-editor-field > span {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.attachment-editor-textarea {
    min-height: 140px;
}

.editor-attachment-trigger {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(86, 240, 255, 0.16);
    background: rgba(86, 240, 255, 0.08);
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}

.editor-attachment-trigger:hover {
    background: rgba(86, 240, 255, 0.14);
}

.editor-attachment-trigger.has-content {
    border-color: rgba(83, 255, 193, 0.24);
    background: rgba(83, 255, 193, 0.1);
    color: #91ffd6;
}

.row-action {
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(86, 240, 255, 0.14);
    background: rgba(86, 240, 255, 0.08);
    color: var(--text);
    padding: 0 12px;
    cursor: pointer;
    white-space: nowrap;
}

.row-action.danger {
    border-color: rgba(255, 109, 139, 0.24);
    background: rgba(255, 109, 139, 0.1);
    color: #ffb6c6;
}

#editorStatus {
    color: var(--muted);
    font-size: 0.86rem;
}

@keyframes drift {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-7px) rotate(2deg);
    }
}

@keyframes waveOne {
    0% {
        transform: translateX(-4%) skewX(-8deg);
        border-radius: 38% 62% 0 0 / 72% 64% 0 0;
    }
    50% {
        transform: translateX(5%) skewX(8deg);
        border-radius: 62% 38% 0 0 / 64% 72% 0 0;
    }
    100% {
        transform: translateX(-4%) skewX(-8deg);
        border-radius: 38% 62% 0 0 / 72% 64% 0 0;
    }
}

@keyframes waveTwo {
    0% {
        transform: translateX(6%) skewX(9deg);
        border-radius: 58% 42% 0 0 / 66% 78% 0 0;
    }
    50% {
        transform: translateX(-6%) skewX(-9deg);
        border-radius: 42% 58% 0 0 / 78% 66% 0 0;
    }
    100% {
        transform: translateX(6%) skewX(9deg);
        border-radius: 58% 42% 0 0 / 66% 78% 0 0;
    }
}

@media (max-width: 1100px) {
    .hero-panel,
    .section-grid,
    .section-grid-wide {
        grid-template-columns: 1fr;
    }

    .summary-strip,
    .orb-grid {
        grid-template-columns: 1fr;
    }

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

    .chart-box {
        height: 420px;
    }
}

@media (max-width: 780px) {
    .progress-nav {
        position: static;
        border-radius: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-button {
        min-width: 86px;
    }

    .hero-panel,
    .section-panel {
        padding: 20px;
    }

    .hero-side {
        grid-template-columns: 1fr 1fr;
    }

    .orb-shell {
        width: 180px;
        height: 180px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orb-shell,
    .orb-liquid::before,
    .orb-liquid::after {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}
