:root {
    --bg: #0f1419;
    --surface: #1a222d;
    --surface-2: #232d3b;
    --border: #2d3a4d;
    --text: #e8eef4;
    --muted: #8b9cb3;
    --accent: #3d9cf0;
    --accent-dim: #2b7fc4;
    --success: #3ecf8e;
    --warn: #e8b84a;
    --danger: #e07a7a;
    --radius: 14px;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    --space-section: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

/* Full-viewport utility / photogrammetry-style map atmosphere */
.page-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg);
}

.page-atmosphere__layer--grid {
    position: absolute;
    inset: -12%;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(45, 58, 77, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 58, 77, 0.55) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, black 20%, transparent 72%);
    animation: atmosphere-drift-grid 48s ease-in-out infinite alternate;
}

.page-atmosphere__layer--contours {
    position: absolute;
    inset: -10%;
    animation: atmosphere-drift-contours 14s ease-in-out infinite alternate;
}

.page-atmosphere__layer--contours svg {
    display: block;
    width: 100%;
    height: 100%;
}

.page-atmosphere__mapping-glow {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#ndm-atmo-glow);
}

.page-atmosphere__mapping-glow--sky {
    stroke: rgba(95, 130, 172, 0.22);
}

.page-atmosphere__mapping-glow--deep {
    stroke: rgba(82, 118, 155, 0.22);
}

.page-atmosphere__mapping-glow--cyan {
    stroke: rgba(88, 138, 158, 0.2);
}

.page-atmosphere__mapping-glow--peri {
    stroke: rgba(92, 128, 168, 0.2);
}

.page-atmosphere__mapping-core {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page-atmosphere__mapping-core--sky {
    stroke: rgba(110, 188, 248, 0.42);
}

.page-atmosphere__mapping-core--deep {
    stroke: rgba(130, 198, 255, 0.38);
}

.page-atmosphere__mapping-core--cyan {
    stroke: rgba(140, 228, 248, 0.44);
}

.page-atmosphere__mapping-core--peri {
    stroke: rgba(170, 200, 255, 0.4);
}

.page-atmosphere__mapping-fill {
    fill: rgba(61, 156, 240, 0.022);
    stroke: none;
}

.page-atmosphere__street-block {
    stroke: rgba(72, 98, 128, 0.2);
    stroke-width: 0.65;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.page-atmosphere__gps-dots {
    pointer-events: none;
}

.page-atmosphere__gps-dot {
    fill: rgba(110, 155, 195, 0.45);
    filter: url(#ndm-atmo-gps-dot);
}

.page-atmosphere__gps-dot-inner {
    fill: rgba(200, 225, 248, 0.85);
    filter: none;
}

.page-atmosphere__mapping-trace {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#ndm-atmo-glow-soft);
}

.page-atmosphere__mapping-trace--dash-a {
    stroke-dasharray: 14 30;
    animation: atmosphere-dash 26s linear infinite;
}

.page-atmosphere__mapping-trace--dash-b {
    stroke-dasharray: 7 18;
    animation: atmosphere-dash 17s linear infinite;
    animation-delay: -5s;
}

.page-atmosphere__mapping-trace--dash-c {
    stroke-dasharray: 20 16;
    animation: atmosphere-dash 31s linear infinite;
    animation-delay: -11s;
}

.page-atmosphere__mapping-trace--deep {
    stroke: rgba(78, 118, 155, 0.16);
}

.page-atmosphere__mapping-trace--slate {
    stroke: rgba(95, 135, 175, 0.16);
}

.page-atmosphere__mapping-trace--ice {
    stroke: rgba(115, 155, 190, 0.16);
}

@keyframes atmosphere-dash {
    to {
        stroke-dashoffset: -1200;
    }
}

.page-atmosphere__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -18%, rgba(61, 156, 240, 0.16), transparent 52%),
        radial-gradient(ellipse 70% 55% at 100% 80%, rgba(61, 156, 240, 0.05), transparent 45%),
        radial-gradient(ellipse 50% 40% at 0% 60%, rgba(43, 127, 196, 0.06), transparent 50%);
    animation: atmosphere-drift-glow 40s ease-in-out infinite alternate;
}

@keyframes atmosphere-drift-grid {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.34;
    }
    100% {
        transform: translate(3.2%, -2.8%) rotate(0.5deg);
        opacity: 0.44;
    }
}

@keyframes atmosphere-drift-contours {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(-2.8%, 2.2%) scale(1.04);
    }
}

@keyframes atmosphere-drift-glow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.94;
    }
    100% {
        transform: translate(1.8%, -1.2%) scale(1.025);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-atmosphere__layer--grid,
    .page-atmosphere__layer--contours,
    .page-atmosphere__vignette,
    .page-atmosphere__mapping-trace {
        animation: none;
    }

    .page-atmosphere__layer--grid {
        transform: none;
        opacity: 0.35;
    }

    .page-atmosphere__layer--contours {
        transform: none;
    }

    .page-atmosphere__vignette {
        transform: none;
        opacity: 1;
    }
}

.shell {
    position: relative;
    z-index: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.75rem 1.25rem 2.5rem;
}

.page-header {
    margin-bottom: 1.75rem;
}

.page-header__headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem 1.5rem;
    margin-bottom: 0.35rem;
}

.page-header__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-header__signout-wrap {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.page-header__signout {
    white-space: nowrap;
}

@media (max-width: 520px) {
    .page-header__headline {
        flex-wrap: wrap;
    }

    .page-header__signout-wrap {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}

.page-header p {
    margin: 0;
    max-width: 56ch;
    color: var(--muted);
    font-size: 0.95rem;
}

.page-header__featureline {
    margin: 0.75rem 0 0;
    max-width: 62ch;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.page-header__featureline strong {
    color: var(--text);
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.375rem;
    align-items: start;
}

@media (min-width: 960px) {
    .grid {
        grid-template-columns: minmax(300px, 400px) 1fr;
    }
}

.side-stack {
    display: flex;
    flex-direction: column;
    gap: 1.375rem;
    min-width: 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: visible;
}

.card-body {
    padding: 1.375rem 1.5rem;
}

.card-title {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.section {
    margin-top: var(--space-section);
}

.section:first-of-type {
    margin-top: 0;
}

#images.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 7.25rem;
    padding: 1.75rem 1.25rem;
    border: 2px dashed var(--border);
    border-radius: 12px;
    text-align: center;
    background: var(--surface-2);
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

#images.dropzone:hover {
    border-color: var(--accent);
    background: rgba(61, 156, 240, 0.06);
}

#images.dropzone.dz-drag-hover {
    border-color: var(--success);
    background: rgba(62, 207, 142, 0.08);
}

#images.dropzone .dz-message {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
}

#images.dropzone .dz-message .dz-hint {
    display: block;
    margin-top: 0.375rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 28ch;
    margin-left: auto;
    margin-right: auto;
}

#images.dropzone .dz-default.dz-message span .dz-hint {
    display: block;
    margin-top: 0.375rem;
    font-weight: 400;
    font-size: 0.875rem;
    color: var(--muted);
}

.file-meta {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.file-meta strong {
    color: var(--text);
    font-weight: 600;
}

.file-panel {
    margin-top: 0.75rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}

.file-panel__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.file-panel__title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.file-panel__head .btn-ghost {
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
}

.dropzone-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.5rem;
}

.dropzone-actions .btn-ghost {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
}

.dropzone-actions__hint {
    font-size: 0.75rem;
    color: var(--muted);
    max-width: 36ch;
    line-height: 1.4;
}

.file-panel[hidden] {
    display: none !important;
}

.file-list {
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: 11rem;
    overflow-y: auto;
    font-size: 0.8125rem;
}

.file-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.file-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.file-list .name {
    flex: 1 1 140px;
    min-width: 0;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.file-list .meta {
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.file-list .gps {
    flex: 1 0 100%;
    font-size: 0.75rem;
    color: var(--muted);
}

.file-list .gps.has {
    color: var(--success);
}

.file-list .gps.missing {
    color: #e8b84a;
}

.ndm-progress {
    margin-top: 0.75rem;
    height: 1.75rem;
    border-radius: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    overflow: hidden;
}

.ndm-progress__bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0a0e12;
    background: linear-gradient(165deg, var(--accent), var(--accent-dim));
    transition: width 0.2s ease;
    min-width: 2.5rem;
}

.ndm-progress__bar--file {
    background: rgba(61, 156, 240, 0.35);
    color: var(--text);
    justify-content: flex-start;
    padding-left: 0.5rem;
}

.upload-detail {
    margin-top: 0.75rem;
    max-height: 14rem;
    overflow-y: auto;
}

.error-block {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.14);
    color: #fecaca;
    font-size: 0.9rem;
    cursor: pointer;
}

.error-block .ndm-gcs-error-label {
    color: #ef4444;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 0.35rem;
}

.mode-switch {
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.mode-switch button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mode-switch button:hover {
    color: #6bb6f5;
}

.zip-field {
    margin-top: 0.5rem;
}

.ndm-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.ndm-label__req {
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text);
    opacity: 0.85;
}

.ndm-input,
.ndm-select {
    width: 100%;
    max-width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
}

.ndm-input:focus,
.ndm-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    margin-top: 0.5rem;
}

.checkbox-row input {
    margin-top: 0.25rem;
    accent-color: var(--accent);
}

.checkbox-row .label {
    font-weight: 500;
}

.opt-row {
    margin-bottom: 1rem;
}

.opt-row .opt-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
}

.opt-row label.field-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
}

.opt-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.25rem;
}

.btn-icon {
    appearance: none;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.btn-icon:hover {
    color: var(--text);
    border-color: var(--muted);
}

/* Info hint: not a control — hover for native title tooltip */
.ndm-info-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.65rem;
    height: 1.65rem;
    margin: 0 0.05rem;
    border: 1.5px solid var(--muted);
    border-radius: 50%;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.62rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
    cursor: help;
    user-select: none;
    vertical-align: middle;
    flex-shrink: 0;
    background: transparent;
}

.ndm-info-symbol:hover {
    color: var(--text);
    border-color: var(--text);
}

/* Instant hover tips (no native title — appears immediately on hover/focus) */
.ndm-tip-anchor {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.ndm-tip-anchor--info:focus {
    outline: none;
}

.ndm-tip-anchor--info:focus-visible .ndm-info-symbol {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 50%;
}

.ndm-instant-tip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 6px);
    max-width: min(92vw, 420px);
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.45;
    color: #e8eef5;
    background: #1a222c;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    z-index: 80;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    word-break: break-word;
    transition: none;
}

.ndm-tip-anchor:hover .ndm-instant-tip,
.ndm-tip-anchor:focus-within .ndm-instant-tip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.ndm-tip-anchor--btn .ndm-instant-tip {
    left: auto;
    right: 0;
    min-width: min(17rem, calc(100vw - 2rem));
    width: max-content;
    max-width: min(28rem, calc(100vw - 1.5rem));
    max-height: min(70vh, 22rem);
    overflow-y: auto;
    overflow-x: hidden;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: normal;
}

.options-panel .opt-row {
    position: relative;
    overflow: visible;
}

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

.btn-primary {
    appearance: none;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.375rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0a0e12;
    background: linear-gradient(165deg, var(--accent), var(--accent-dim));
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(61, 156, 240, 0.35);
    transition: transform 0.15s, filter 0.15s, opacity 0.15s;
}

.btn-primary:hover:not(:disabled) {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6875rem 1.125rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}

.btn-ghost:hover:not(:disabled) {
    color: var(--text);
    border-color: var(--muted);
}

.btn-ghost:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.options-toggle {
    margin-top: 1.25rem;
}

.options-panel {
    margin-top: 1rem;
}

.options-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(232, 184, 74, 0.45);
    background: rgba(232, 184, 74, 0.1);
    color: #f5e6c8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tasks-card {
    overflow: visible;
}

.tasks-card .card-body {
    padding: 0;
}

.tasks-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.tasks-header h2 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.tasks-header .sub {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.tasks-body {
    padding: 1rem 1.25rem 1.5rem;
}

.tasks-body > .alert-list {
    margin-bottom: 1rem;
}

.tasks-body .alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(232, 184, 74, 0.45);
    background: rgba(232, 184, 74, 0.1);
    color: #f5e6c8;
    font-size: 0.9rem;
}

.tasks-body .empty-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.tasks-body .task {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1rem;
    overflow: hidden;
}

.tasks-body .task:last-child {
    margin-bottom: 0;
}

.tasks-body .task--collapsed .task__head {
    border-radius: 12px;
}

.tasks-body .task__head {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.85rem 1.125rem;
    border: none;
    border-radius: 12px 12px 0 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: var(--text);
    transition: background 0.15s ease;
}

.tasks-body .task__head:hover {
    background: rgba(61, 156, 240, 0.06);
}

.tasks-body .task__chevron {
    flex-shrink: 0;
    width: 1.25rem;
    font-size: 0.7rem;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.tasks-body .task__head[aria-expanded="true"] .task__chevron {
    transform: rotate(90deg);
}

.tasks-body .task__head-text {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tasks-body .task__head-text strong {
    font-weight: 600;
}

.tasks-body .task__head-meta {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.8125rem;
}

.tasks-body .task__head .statusIcon {
    position: static;
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.tasks-body .task__head .statusIcon.spinning {
    font-size: 1.55rem;
}

.tasks-body .task__head .statusIcon--ok {
    color: var(--success);
    font-size: 1.2rem;
    font-weight: 700;
}

.tasks-body .task__head .statusIcon--failed {
    color: #c97a7a;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.tasks-body .task.task--failed .task__head {
    background: rgba(200, 90, 90, 0.12);
    border-bottom: 1px solid rgba(200, 100, 100, 0.28);
}

.tasks-body .task.task--failed .task__head:hover {
    background: rgba(200, 90, 90, 0.18);
}

.tasks-body .task.task--failed.task--collapsed .task__head {
    border-bottom: none;
}

.tasks-body .task.task--failed:not(.task--collapsed) .task__head {
    border-radius: 12px 12px 0 0;
}

.tasks-body .task__details {
    padding: 1rem 1.125rem 1rem;
    border-top: 1px solid var(--border);
}

.tasks-body .task__details--flush {
    border-top: none;
    padding-top: 0.35rem;
}

.tasks-body .task .taskItem {
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.tasks-body .task .taskItem a {
    color: var(--accent);
    text-decoration: none;
}

.tasks-body .task .taskItem a:hover {
    text-decoration: underline;
}

.tasks-body .task .consoleOutput {
    background: #0a0e12;
    color: #c8d4e0;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.tasks-body .task .actionButtons .btn-task {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    margin-left: 0.35rem;
}

.tasks-body .task .actionButtons .btn-task:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tasks-body .task .alert {
    margin-top: 0.5rem;
}

.tasks-body .pulsePositive {
    animation: pulsatePositiveDark 2s ease-out;
    animation-iteration-count: 1;
}

@keyframes pulsatePositiveDark {
    0% { background-color: var(--surface-2); }
    50% { background-color: rgba(62, 207, 142, 0.2); }
    100% { background-color: var(--surface-2); }
}

.tasks-body .pulseNegative {
    animation: pulsateNegativeDark 2s ease-out;
    animation-iteration-count: 1;
}

@keyframes pulsateNegativeDark {
    0% { background-color: var(--surface-2); }
    50% { background-color: rgba(224, 122, 122, 0.2); }
    100% { background-color: var(--surface-2); }
}

.spinning {
    display: inline-block;
    animation: spin 3s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-line {
    color: var(--muted);
    font-size: 0.9rem;
}

#options .selectBox select {
    width: 100%;
}

#options .checkbox {
    margin-right: 0;
}

.project-name-section .project-name-hint {
    margin: 0 0 0.5rem;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
    max-width: 42ch;
}

.project-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.project-name-row .ndm-input {
    flex: 1 1 200px;
    min-width: 0;
}

.ndm-input--duplicate-name {
    border-color: rgba(245, 101, 101, 0.75);
    box-shadow: 0 0 0 1px rgba(245, 101, 101, 0.35);
}

.project-name-gcs-status {
    margin-top: 0.5rem;
}

.project-name-gcs-status--warn {
    color: #f56565;
}

.project-name-gcs-status--ok {
    color: var(--muted);
}

fieldset.preset-fieldset {
    border: none;
    border-left: 4px solid var(--accent);
    margin: 0;
    padding: 0 0 0 1rem;
}

fieldset.preset-fieldset legend {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.option-row {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.radio-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.radio-pill:has(input:checked) {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.radio-pill input {
    margin-top: 0.2rem;
    accent-color: var(--accent);
}

.radio-pill .label {
    font-weight: 600;
    color: var(--text);
}

.radio-pill .desc {
    display: block;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 0.125rem;
}

.checkbox-row .desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.125rem;
}

.ndm-map-panel {
    margin-top: 0;
    overflow: hidden;
}

.ndm-map-panel .map-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.ndm-map-panel .map-header__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.ndm-map-panel .map-header__title-row h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ndm-map-panel .ndm-map-toggle {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
}

.ndm-map-panel--collapsed .map-header {
    border-bottom: none;
}

.ndm-map-panel--collapsed #mapGps {
    display: none;
}

.ndm-map-panel .map-header .sub {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.ndm-map-panel .map-header .sub.loading {
    color: var(--accent);
}

.ndm-map-wrap {
    position: relative;
}

#mapGps {
    height: min(42vh, 440px);
    min-height: 260px;
    width: 100%;
    background: var(--surface-2);
}

.ndm-map-panel--collapsed .map-polygon-banner {
    display: none !important;
}

.map-pin--deselected {
    background: #3a1619;
    border-color: #e85d5d !important;
    color: #ff6b6b;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.map-deselect-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    padding: 8px;
    box-shadow: var(--shadow);
}

.map-deselect-control button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.map-deselect-control button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.map-deselect-control button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.map-deselect-control button.active {
    background: rgba(232, 93, 93, 0.2);
    border-color: #e85d5d;
    color: #ff8a8a;
}

.map-deselect-control button svg {
    width: 20px;
    height: 20px;
    display: block;
}

.map-polygon-banner {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(26, 34, 45, 0.95);
    color: var(--text);
    font-size: 0.8125rem;
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.map-polygon-banner[hidden] {
    display: none !important;
}

.map-polygon-banner .banner-actions {
    display: flex;
    gap: 8px;
}

.map-polygon-banner button {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    background: var(--surface-2);
    color: var(--text);
}

.map-polygon-banner .map-poly-done {
    background: rgba(232, 93, 93, 0.25);
    border-color: #c44;
    color: #ffb4b4;
}

#mapGps.deselect-mode.leaflet-container {
    cursor: crosshair !important;
}

.file-list li.excluded .name {
    text-decoration: line-through;
    opacity: 0.75;
}

.file-list .proc {
    flex: 1 0 100%;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.file-list .proc.in {
    color: var(--success);
}

.file-list .proc.out {
    color: #ff6b6b;
}

.leaflet-container {
    font-family: "DM Sans", system-ui, sans-serif;
}

.map-popup {
    font-size: 13px;
    line-height: 1.45;
}

.map-popup strong {
    color: #1a222d;
}

.map-popup-preview-wrap {
    margin: 0 0 10px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(15, 20, 26, 0.06);
    max-width: 280px;
}

.map-popup-preview {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    vertical-align: middle;
    background: #0f141a;
}

.map-popup-preview-note {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--muted, #6b7a8c);
    line-height: 1.4;
}

.leaflet-popup.ndm-gps-popup .leaflet-popup-content {
    margin: 12px 14px;
}

.map-marker-wrap {
    background: transparent;
    border: none;
}

.map-pin {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #0d1117;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-pin.map-pin--selected {
    background: #3d9cf0;
}

/* Google OAuth login page (public/login.html) */
.shell--login .page-header--login {
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

.grid--login {
    display: flex;
    justify-content: center;
    max-width: 28rem;
    margin: 0 auto;
}

.grid--login-portal {
    flex-wrap: wrap;
    gap: 1.25rem;
    max-width: 52rem;
    align-items: stretch;
}

.grid--login-portal--two .login-card {
    flex: 1 1 16rem;
    max-width: 24rem;
}

.login-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: var(--text, #e8eaed);
}

.login-card--secondary .login-card__title {
    color: var(--text, #e8eaed);
}

.btn-google--outline {
    border: 1px solid rgba(255, 255, 255, 0.22);
}

/* One host in the URL bar: hide the other card; full dual UI only when origin is neither portal URL */
.shell--login.login-shell--single-host .grid--login-portal--two {
    max-width: 26rem;
}

.shell--login.login-shell--single-host .grid--login-portal--two .login-card {
    max-width: 100%;
}

.login-error--global {
    max-width: 52rem;
    margin-left: auto;
    margin-right: auto;
}

.login-back-home {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
}

.login-back-home__link {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-back-home__link:hover {
    color: var(--text, #e8eaed);
}

.login-card__badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7cb8ff;
    margin-bottom: 0.5rem;
}

.login-card--current {
    box-shadow: 0 0 0 2px rgba(61, 156, 240, 0.55);
}

/* Signed-in app: environment switcher */
.ndm-env-switch {
    margin: 1rem 0 0.25rem;
}

.ndm-env-switch__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: rgba(15, 22, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ndm-env-switch__lead {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-right: 0.25rem;
}

.ndm-env-switch__pill {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text, #e8eaed);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.ndm-env-switch__pill:hover {
    border-color: rgba(61, 156, 240, 0.5);
    color: #fff;
}

.ndm-env-switch__pill--active {
    background: rgba(61, 156, 240, 0.22);
    border-color: rgba(61, 156, 240, 0.65);
    color: #fff;
}

.ndm-env-switch__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.ndm-env-switch__tagline {
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--muted);
    max-width: 16rem;
}

.login-card__tagline {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
    margin: 0.35rem 0 0.75rem;
}

.login-card .card-body {
    padding: 1.75rem 1.5rem;
}

.login-lead {
    color: var(--muted);
    font-size: 0.9375rem;
    margin: 0;
    line-height: 1.5;
}

.login-actions {
    margin-top: 1.35rem;
}

.btn-google {
    display: block;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1.35;
}

.login-foot {
    margin-top: 1.25rem;
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.login-error {
    margin-bottom: 1rem;
}

/* RTK quality preview panel (sidebar: below map, above tasks) */
.ndm-rtk-panel {
    margin-top: 0;
    overflow: hidden;
}

.ndm-rtk-panel__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.ndm-rtk-panel__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}

.ndm-rtk-panel__title-row h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ndm-rtk-panel__header .sub {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.ndm-rtk-panel__body {
    position: relative;
    padding: 1rem 1.25rem 1.25rem;
    min-height: 6.5rem;
}

.ndm-rtk-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 16, 28, 0.82);
    border-radius: 0 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px);
}

.ndm-rtk-loading[hidden] {
    display: none !important;
}

.ndm-rtk-loading__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    padding: 1rem;
}

.ndm-rtk-spinner {
    width: 2.75rem;
    height: 2.75rem;
    border: 3px solid rgba(110, 182, 255, 0.22);
    border-top-color: var(--accent, #6eb6ff);
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.ndm-rtk-loading__label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent, #6eb6ff);
    letter-spacing: 0.02em;
}

.ndm-rtk-panel--loading .ndm-rtk-panel__header .sub {
    color: var(--accent, #6eb6ff);
    font-weight: 500;
}

.ndm-rtk-panel--loading .ndm-rtk-panel__body > :not(.ndm-rtk-loading) {
    opacity: 0.35;
    pointer-events: none;
}

.ndm-rtk-badge {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.ndm-rtk-badge--pending {
    color: var(--muted, #8b98a8);
    border-color: rgba(255, 255, 255, 0.12);
}

.ndm-rtk-badge--ok {
    color: #0d2a12;
    background: #6ee7a0;
}

.ndm-rtk-badge--warn {
    color: #3a2500;
    background: #ffd666;
}

.ndm-rtk-badge--error {
    color: #fff;
    background: #e5484d;
}

.ndm-rtk-badge--busy {
    color: #fff;
    background: var(--accent, #3d9cf0);
    border-color: rgba(110, 182, 255, 0.6);
    box-shadow: 0 0 12px rgba(61, 156, 240, 0.45);
    animation: ndm-rtk-badge-pulse 1.2s ease-in-out infinite;
}

@keyframes ndm-rtk-badge-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(61, 156, 240, 0.35); }
    50% { box-shadow: 0 0 16px rgba(61, 156, 240, 0.65); }
}

.ndm-rtk-banner {
    margin: 0.65rem 0 0.35rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.45;
}

.ndm-rtk-banner--warn {
    background: rgba(255, 214, 102, 0.14);
    border: 1px solid rgba(255, 214, 102, 0.45);
    color: #ffe8a3;
}

.ndm-rtk-banner--error {
    background: rgba(229, 72, 77, 0.14);
    border: 1px solid rgba(229, 72, 77, 0.5);
    color: #ffb4b4;
}

.ndm-rtk-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.65rem;
    font-size: 0.8125rem;
    color: var(--text, #e8eaed);
}

.ndm-rtk-stat strong {
    font-weight: 600;
}

.ndm-rtk-details {
    margin-top: 0.75rem;
    font-size: 0.8125rem;
}

.ndm-rtk-details summary {
    cursor: pointer;
    color: var(--accent, #6eb6ff);
}

.ndm-rtk-flagged {
    list-style: none;
    margin: 0.65rem 0 0;
    padding: 0;
    max-height: 220px;
    overflow: auto;
}

.ndm-rtk-flagged li {
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid #ffd666;
}

.ndm-rtk-flagged li.ndm-rtk-flagged--fail {
    border-left-color: #e5484d;
}

.ndm-rtk-flagged .name {
    display: block;
    font-weight: 600;
    word-break: break-all;
}

.ndm-rtk-flagged .issues {
    display: block;
    margin-top: 0.2rem;
    color: var(--muted, #8b98a8);
}

.ndm-rtk-report {
    margin: 0.75rem 0 0;
    padding: 0.75rem;
    max-height: 280px;
    overflow: auto;
    font-size: 0.72rem;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
}

.file-list li.rtk-pass {
    border-left: 3px solid #6ee7a0;
}

.file-list li.rtk-warn {
    border-left: 3px solid #ffd666;
}

.file-list li.rtk-fail {
    border-left: 3px solid #e5484d;
}

.file-list .rtk {
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.file-list .rtk.has-pass {
    color: #6ee7a0;
}

.file-list .rtk.has-warn {
    color: #ffd666;
}

.file-list .rtk.has-fail {
    color: #ff8a8a;
}

.file-list .rtk.missing {
    color: var(--muted, #8b98a8);
}

/* —— App shell: collapsible sidebar + views —— */
.app-layout {
    position: relative;
    z-index: 0;
    display: flex;
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
}

.ndm-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 20;
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    overflow-y: auto;
    padding: 1.25rem 0.75rem 1.5rem;
    background: rgba(12, 18, 28, 0.72);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: flex-basis 0.2s ease, padding 0.2s ease;
}

.app-layout.ndm-sidebar--collapsed .ndm-sidebar {
    flex-basis: 56px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.ndm-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.5rem 1rem;
    min-height: 2rem;
}

.ndm-sidebar__logo {
    color: var(--accent, #5eb3ff);
    font-size: 0.85rem;
}

.ndm-sidebar__title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.app-layout.ndm-sidebar--collapsed .ndm-sidebar__title,
.app-layout.ndm-sidebar--collapsed .ndm-nav-item__label {
    display: none;
}

.ndm-sidebar__collapse {
    align-self: flex-end;
    margin: 0 0.35rem 0.75rem auto;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}

.app-layout.ndm-sidebar--collapsed .ndm-sidebar__collapse span {
    display: inline-block;
    transform: rotate(180deg);
}

.ndm-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ndm-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ndm-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.ndm-nav-item--active {
    background: rgba(94, 179, 255, 0.12);
    border-color: rgba(94, 179, 255, 0.35);
    color: var(--text);
}

.ndm-nav-item__icon {
    flex: 0 0 1.25rem;
    text-align: center;
    font-size: 1rem;
    opacity: 0.85;
}

.app-main {
    flex: 1 1 auto;
    min-width: 0;
}

.app-main .shell {
    max-width: none;
    margin: 0;
}

.ndm-view[hidden] {
    display: none !important;
}

.grid--uploads {
    grid-template-columns: 1fr;
    max-width: 720px;
}

.grid--incomplete {
    grid-template-columns: 1fr;
    max-width: 960px;
}

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

.ndm-incomplete-status {
    margin: 0;
    flex: 1 1 200px;
}

.ndm-incomplete-status--loading {
    color: var(--muted);
}

.ndm-incomplete-status--error {
    color: #f56565;
}

.ndm-incomplete-empty,
.ndm-incomplete-unavailable {
    padding: 1.25rem 0;
    color: var(--muted);
}

.ndm-incomplete-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ndm-incomplete-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 0.875rem 1rem;
}

.ndm-incomplete-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.35rem;
}

.ndm-incomplete-item__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.ndm-incomplete-item__folder {
    font-size: 0.8125rem;
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ndm-incomplete-item__status {
    display: inline-block;
    font-size: 0.8125rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(245, 101, 101, 0.12);
    color: #f56565;
}

.ndm-incomplete-item__status--raw {
    background: rgba(237, 137, 54, 0.14);
    color: #ed8936;
}

.ndm-incomplete-item__uri {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
    word-break: break-all;
}

.ndm-incomplete-item__actions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.ndm-incomplete-item__no-inputs {
    margin: 0;
    color: var(--muted);
}

.ndm-incomplete-reprocess {
    font-size: 0.875rem;
    padding: 0.4rem 0.85rem;
}

.ndm-gcs-project-section {
    position: relative;
    z-index: 2;
}

.ndm-gcs-project-field {
    position: relative;
}

.ndm-gcs-project-field .project-name-row {
    position: relative;
    z-index: 1;
}

.ndm-gcs-project-field .ndm-input {
    width: 100%;
    min-height: 2.75rem;
    background: var(--surface-2);
    color: var(--text);
}

.ndm-gcs-project-field .ndm-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ndm-gcs-project-status {
    margin: 0.4rem 0 0;
    min-height: 1.25rem;
}

.ndm-gcs-project-status--loading {
    color: var(--muted);
}

.ndm-gcs-project-status--error {
    color: #ef4444;
    font-weight: 600;
}

.ndm-gcs-project-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% - 0.15rem);
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 240px;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    z-index: 20;
}

.ndm-gcs-project-suggest[hidden] {
    display: none !important;
}

.ndm-gcs-project-suggest__item {
    display: block;
    width: 100%;
    padding: 0.55rem 0.85rem;
    border: none;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
}

.ndm-gcs-project-suggest__item:hover,
.ndm-gcs-project-suggest__item:focus,
.ndm-gcs-project-suggest__item.ndm-gcs-project-suggest__item--active {
    background: rgba(94, 179, 255, 0.12);
    outline: none;
}

.ndm-gcs-project-suggest__meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--muted);
    font-family: ui-monospace, monospace;
}

.ndm-gcs-project-suggest__empty {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.ndm-gcs-dropzone {
    position: relative;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ndm-gcs-dropzone__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    pointer-events: none;
}

.ndm-gcs-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.ndm-gcs-dropzone__input--folder {
    display: none;
}

.ndm-gcs-dropzone.ndm-gcs-dropzone--drag {
    border-color: var(--accent, #5eb3ff);
    background: rgba(94, 179, 255, 0.06);
}

.ndm-gcs-file-list {
    margin-top: 0.75rem;
}

.ndm-gcs-file-list__summary {
    font-size: 0.9rem;
    color: var(--muted);
    padding: 0.35rem 0;
    list-style: none;
}

.ndm-gcs-file-list .name {
    word-break: break-all;
}

.ndm-gcs-elapsed {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text);
}

.ndm-gcs-live-status {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--text);
    min-height: 1.25em;
}

.ndm-gcs-live-status::before {
    content: "● ";
    color: var(--accent, #2a7ae4);
    animation: ndm-gcs-live-pulse 1.2s ease-in-out infinite;
}

.ndm-gcs-live-status--error {
    color: #ef4444;
    font-weight: 600;
}

.ndm-gcs-live-status--error::before {
    content: "✕ ";
    color: #ef4444;
    animation: none;
}

.ndm-gcs-progress-label--error {
    color: #ef4444;
    font-weight: 600;
}

.ndm-gcs-progress--error .ndm-progress__bar {
    background: #b91c1c;
}

.ndm-gcs-progress--done .ndm-gcs-live-status::before {
    content: "✓ ";
    color: #2e7d32;
    animation: none;
}

.ndm-gcs-progress--done .ndm-gcs-live-status--error::before {
    content: "✕ ";
    color: #ef4444;
}

@keyframes ndm-gcs-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.ndm-gcs-progress {
    margin-top: 1.25rem;
}

.ndm-gcs-progress--busy .ndm-progress {
    position: relative;
    overflow: hidden;
}

.ndm-gcs-progress__bar--indeterminate {
    position: relative;
    animation: ndm-gcs-progress-slide 1.4s ease-in-out infinite;
}

.ndm-gcs-progress__bar--pulse {
    position: relative;
    animation: ndm-gcs-progress-pulse 1.6s ease-in-out infinite;
}

@keyframes ndm-gcs-progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

@keyframes ndm-gcs-progress-slide {
    0% { margin-left: 0; }
    50% { margin-left: 65%; }
    100% { margin-left: 0; }
}

.ndm-gcs-log {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--muted);
    max-height: 200px;
    overflow: auto;
}

.ndm-gcs-log li {
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ndm-gcs-log li.ndm-gcs-log--ok {
    color: #6ee7a0;
}

.ndm-gcs-log li.ndm-gcs-log--err {
    color: #ef4444;
    font-weight: 600;
}

.ndm-gcs-log li.ndm-gcs-log--err::before {
    content: "Error: ";
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 720px) {
    .app-layout {
        flex-direction: column;
    }

    .ndm-sidebar {
        position: sticky;
        top: 0;
        flex: 0 0 auto;
        max-height: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.75rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .ndm-sidebar__brand {
        padding-bottom: 0;
        margin-right: auto;
    }

    .ndm-sidebar__nav {
        flex-direction: row;
        width: 100%;
        margin-top: 0.5rem;
    }

    .ndm-sidebar__collapse {
        margin: 0;
    }
}
