:root {
    --bg-main: #0f1720;
    --bg-panel: #16202b;
    --bg-panel-soft: #1a2633;
    --accent: #a36b2c;
    --accent-hover: #8b5a22;
    --editorial-blue: #001450;
    --text-main: #e6e6e6;
    --text-secondary: #8a94a6;
    --border: #2b3642;
    --success-bg: #173124;
    --success-text: #9fdab3;
    --error-bg: #351e1e;
    --error-text: #f0b0b0;
    --radius-lg: 8px;
    --radius-md: 6px;
    --page-max-width: 1450px;
    --page-fluid-width: 94vw;
    --space-1: 0.35rem;
    --space-2: 0.55rem;
    --space-3: 0.8rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --transition-fast: 0.18s ease;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100vh;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
}

a {
    color: inherit;
}

.app-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.app-workspace {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    justify-items: center;
}

.app-header {
    width: 100%;
    min-height: 62px;
    border-bottom: 1px solid var(--border);
    background: #121c27;
}

.app-header-inner {
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    padding-block: 0.48rem;
}

.atlas-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    text-decoration: none;
}

.atlas-brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: #f2ebdf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.atlas-brand-mark svg {
    width: 26px;
    height: 26px;
}

.atlas-brand-copy {
    min-width: 0;
    display: grid;
    gap: 0.05rem;
}

.atlas-brand-title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.atlas-brand-subtitle {
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.22;
}

.atlas-global-nav {
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.42rem;
}

.atlas-nav-link {
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.42rem 0.7rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
    white-space: nowrap;
}

.atlas-nav-link:hover {
    color: var(--text-main);
    border-color: #3a4653;
}

.atlas-nav-link.is-active {
    color: var(--accent);
    border-color: rgba(163, 107, 44, 0.5);
    background: rgba(163, 107, 44, 0.08);
}

.atlas-nav-link.is-disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.header-user {
    font-size: 0.82rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
}

.atlas-container {
    width: min(var(--page-fluid-width), var(--page-max-width));
    margin-inline: auto;
}

.view-content {
    padding: 0.72rem 0 0.92rem;
}

.ui-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: clamp(0.72rem, 1.05vw, 0.98rem);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.ui-card--compact {
    padding: clamp(0.58rem, 0.85vw, 0.78rem);
}

.ui-card--wide {
    padding: clamp(0.92rem, 1.45vw, 1.25rem);
}

.atlas-panel--compact {
    padding: clamp(0.52rem, 0.72vw, 0.7rem);
}

.atlas-panel--normal {
    padding: clamp(0.7rem, 0.95vw, 0.92rem);
}

.atlas-panel--wide {
    padding: clamp(0.86rem, 1.25vw, 1.12rem);
}

.atlas-grid {
    display: grid;
    gap: var(--space-3);
}

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

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

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

.atlas-grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.atlas-span-2 {
    grid-column: span 2;
}

.atlas-span-full {
    grid-column: 1 / -1;
}

h1 {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2.05rem);
    letter-spacing: 0.025em;
}

.subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(0.88rem, 1.2vw, 0.98rem);
    max-width: 62ch;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.52rem 0.96rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    background-color: var(--accent);
    color: #f2ebdf;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
    text-decoration: none;
}

.primary-button:hover {
    background-color: var(--accent-hover);
}

.primary-button:active {
    transform: translateY(1px);
}

.secondary-button {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.45rem 0.82rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.secondary-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(163, 107, 44, 0.08);
}

.compact-action {
    min-width: 150px;
}

.back-link {
    display: inline-block;
    margin-top: 0.45rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
}

.back-link:hover {
    color: var(--accent);
}

.form-page,
.coverage-page,
.coverage-list-page,
.dispatch-page,
.dispatch-new-page,
.dispatch-detail-page {
    min-width: 0;
    display: grid;
    gap: var(--space-3);
    align-content: start;
}

.coverage-page {
    grid-template-rows: auto auto;
    overflow: visible;
}

.form-card {
    width: min(1060px, 100%);
    justify-self: center;
}

.dispatch-new-page .form-card {
    width: 100%;
    justify-self: stretch;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem;
}

.list-tools {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

.search-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.52rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #131c27;
    color: var(--text-secondary);
    padding: 0.5rem 0.62rem;
}

.search-field svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.search-field input {
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.86rem;
}

.search-field input:disabled {
    opacity: 1;
}

.visual-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: flex-end;
}

.filter-chip,
.status-pill,
.photo-total {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1;
    padding: 0.34rem 0.56rem;
}

.filter-chip.is-active,
.status-pill {
    border-color: rgba(163, 107, 44, 0.48);
    color: var(--accent);
    background: rgba(163, 107, 44, 0.08);
}

.coverage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.coverage-card {
    min-width: 0;
    display: grid;
    gap: var(--space-2);
}

.coverage-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.coverage-card h2 {
    margin: 0;
    font-size: clamp(1rem, 1.3vw, 1.16rem);
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.coverage-card-meta {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
}

.coverage-card-meta div {
    min-width: 0;
}

.coverage-card-meta dt {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.coverage-card-meta dd {
    margin: 0.12rem 0 0;
    font-size: 0.84rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.coverage-card-actions {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 0.58rem;
}

.card-action {
    text-decoration: none;
}

.danger-button {
    border: 1px solid rgba(176, 108, 108, 0.48);
    background: transparent;
    color: #d8a3a3;
    border-radius: 999px;
    padding: 0.45rem 0.82rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.danger-button:hover {
    border-color: #c98282;
    color: #f0c4c4;
    background: rgba(176, 108, 108, 0.1);
}

.danger-button:active {
    transform: translateY(1px);
}

.empty-state {
    min-height: 170px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: var(--space-2);
}

.empty-state h2 {
    margin: 0;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
}

.empty-state p {
    margin: 0;
    color: var(--text-secondary);
    max-width: 58ch;
}

.coverage-form {
    margin-top: var(--space-2);
    display: grid;
    gap: var(--space-2);
}

.coverage-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 0.75rem;
}

.dispatch-form-column {
    display: grid;
    align-content: start;
    gap: 0.5rem;
}

.form-field {
    display: grid;
    gap: 0.22rem;
    align-content: start;
}

.field-help {
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.35;
}

.field-error {
    color: var(--error-text);
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0;
}

.dispatch-schedule-card {
    display: grid;
    gap: 0.48rem;
}

.dispatch-schedule-mode {
    border: 0;
    display: grid;
    gap: 0.42rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
}

.dispatch-schedule-mode legend {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    grid-column: 1 / -1;
    margin-bottom: 0.3rem;
    padding: 0;
}

.dispatch-schedule-option {
    align-items: center;
    background: #111a24;
    border: 1px solid rgba(43, 54, 66, 0.82);
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.42rem;
    min-height: 42px;
    padding: 0.42rem 0.52rem;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.dispatch-schedule-option:hover {
    border-color: rgba(163, 107, 44, 0.55);
}

.dispatch-schedule-option:has(input:focus-visible) {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(163, 107, 44, 0.55);
}

.dispatch-schedule-option:has(input:checked) {
    background: #16202b;
    border-color: var(--accent);
}

.dispatch-schedule-option label {
    color: var(--text-main);
    display: flex;
    align-items: center;
    flex: 1;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
}

.coverage-form .dispatch-schedule-option input {
    margin: 0;
    flex: 0 0 auto;
    width: auto;
}

.coverage-form .dispatch-schedule-option input:focus {
    outline: none;
}

.dispatch-mode-help {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.4;
    margin: 0;
}

.scheduled-delivery-fields {
    display: grid;
    gap: 0.48rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scheduled-delivery-fields[hidden] {
    display: none;
}

.field-label-static {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
}

.scheduled-timezone-display {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0.1rem 0 0;
}

.coverage-summary-grid {
    display: grid;
    gap: 0.62rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dispatch-summary-tile {
    align-content: start;
    display: grid;
    gap: 0.18rem;
    min-height: 0;
}

.dispatch-summary-tile > span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dispatch-summary-tile > strong {
    color: var(--text-main);
    font-size: 0.95rem;
    line-height: 1.28;
}

.dispatch-inline-action {
    min-width: 0;
    padding: 0.34rem 0.62rem;
}

.dispatch-timezone-selector {
    max-width: 620px;
}

.dispatch-photo-options {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0.72rem;
}

.dispatch-photo-options legend {
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 700;
    grid-column: 1 / -1;
    padding: 0 0.2rem;
}

.dispatch-photo-option {
    align-items: center;
    background: #111a24;
    border: 1px solid rgba(43, 54, 66, 0.82);
    border-radius: var(--radius-md);
    display: flex;
    gap: 0.5rem;
    min-height: 92px;
    padding: 0.42rem 0.48rem;
}

.coverage-form .dispatch-photo-option input {
    flex: 0 0 auto;
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.dispatch-photo-option.is-disabled {
    opacity: 0.68;
}

.dispatch-photo-thumb,
.dispatch-photo-thumb-placeholder {
    background: #0d141d;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex: 0 0 110px;
    height: 80px;
    object-fit: cover;
    width: 110px;
}

.dispatch-photo-copy {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.dispatch-photo-name {
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatch-photo-caption {
    color: var(--text-secondary);
    display: -webkit-box;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dispatch-docx-option {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    margin-bottom: 0.58rem;
}

.coverage-form .dispatch-docx-option input {
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.dispatch-docx-note {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 0 0 0.62rem;
}

.dispatch-recipient-list {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.7rem;
}

.dispatch-recipient-row {
    align-items: end;
    background: #111a24;
    border: 1px solid rgba(43, 54, 66, 0.82);
    border-radius: var(--radius-md);
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) auto;
    padding: 0.62rem;
}

.dispatch-recipient-row .field-error {
    grid-column: 1 / -1;
}

.dispatch-recipient-remove {
    min-height: 2.45rem;
}

.dispatch-form-summary {
    background: rgba(163, 107, 44, 0.11);
    border: 1px solid rgba(163, 107, 44, 0.28);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 0.68rem 0.8rem;
}

.dispatch-detail-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding-block: 0.85rem;
}

.dispatch-icons {
    display: none;
}

.dispatch-icon {
    fill: none;
    flex: 0 0 auto;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 1rem;
}

.dispatch-detail-page h2 {
    align-items: center;
    display: flex;
    gap: 0.45rem;
}

.dispatch-filter-panel {
    overflow-x: auto;
}

.dispatch-filter-list {
    display: flex;
    gap: 0.5rem;
    min-width: max-content;
}

.dispatch-bulk-action {
    margin: 0.75rem 0 0;
}

.dispatch-feedback {
    margin: 0;
}

.dispatch-filter-chip {
    align-items: center;
    background: #111a24;
    border: 1px solid rgba(43, 54, 66, 0.82);
    border-radius: 999px;
    color: var(--text-secondary);
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    gap: 0.4rem;
    padding: 0.4rem 0.62rem;
    text-decoration: none;
}

.dispatch-filter-chip.is-active,
.dispatch-filter-chip:hover {
    border-color: rgba(163, 107, 44, 0.55);
    color: var(--accent);
}

.dispatch-filter-chip strong {
    color: var(--text-main);
    font-size: 0.78rem;
}

.dispatch-manager-list,
.dispatch-shipment-list {
    display: grid;
    gap: 0.75rem;
}

.dispatch-manager-list h2 {
    margin: 0;
}

.dispatch-history-header {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.dispatch-history-header form {
    margin: 0;
}

.dispatch-shipment-row {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(180px, 1fr) minmax(360px, 1.6fr) auto;
}

.dispatch-shipment-main {
    min-width: 0;
}

.dispatch-shipment-main h3 {
    color: var(--text-main);
    font-size: 0.98rem;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dispatch-shipment-main p {
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin: 0.16rem 0 0;
}

.dispatch-shipment-facts {
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(130px, 1.4fr) repeat(3, minmax(74px, 0.6fr));
    margin: 0;
}

.dispatch-shipment-facts div {
    min-width: 0;
}

.dispatch-shipment-facts dt {
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dispatch-shipment-facts dd {
    color: var(--text-main);
    font-size: 0.82rem;
    margin: 0.16rem 0 0;
}

.dispatch-row-actions,
.dispatch-action-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dispatch-row-actions form,
.dispatch-action-bar form {
    margin: 0;
}

.dispatch-row-actions {
    justify-content: flex-end;
}

.dispatch-row-actions a,
.dispatch-row-actions button {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(163, 107, 44, 0.28);
    border-radius: 7px;
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    gap: 0.32rem;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    min-height: 2rem;
    padding: 0.34rem 0.52rem;
    text-decoration: none;
}

.dispatch-row-actions a:hover,
.dispatch-row-actions button:hover,
.dispatch-row-actions a:focus-visible,
.dispatch-row-actions button:focus-visible {
    background: rgba(163, 107, 44, 0.12);
    border-color: rgba(163, 107, 44, 0.5);
}

.dispatch-row-actions button:disabled,
.dispatch-action-bar button:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.dispatch-row-actions .dispatch-danger-link {
    color: #f0a4a4;
}

.dispatch-row-actions .dispatch-danger-link:hover,
.dispatch-row-actions .dispatch-revoke-action:hover,
.dispatch-row-actions .dispatch-revoke-action:focus-visible {
    border-color: rgba(240, 164, 164, 0.48);
    color: #ffd0d0;
}

.dispatch-copy-feedback {
    color: var(--success-text);
    font-size: 0.78rem;
    font-weight: 700;
}

.dispatch-download-activity {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
}

.dispatch-download-activity-row {
    border-bottom: 1px solid rgba(43, 54, 66, 0.72);
    min-height: 48px;
    padding: 0.4rem 0;
}

.dispatch-download-activity-row:last-child {
    border-bottom: 0;
}

.dispatch-download-activity-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.dispatch-download-activity-place {
    align-items: flex-start;
    display: flex;
    gap: 0.48rem;
}

.dispatch-download-activity-place strong,
.dispatch-download-activity-place span,
.dispatch-download-activity-place small {
    display: block;
}

.dispatch-download-activity-place strong {
    color: var(--text-main);
    font-size: 0.82rem;
}

.dispatch-download-activity-place span {
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-top: 0.08rem;
    overflow-wrap: anywhere;
}

.dispatch-download-activity-place small {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 0.08rem;
}

.dispatch-analytics-summary,
.dispatch-info-list {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
}

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

.dispatch-analytics-summary div {
    align-items: center;
    background: rgba(17, 26, 36, 0.72);
    border: 1px solid rgba(43, 54, 66, 0.65);
    border-radius: 6px;
    display: flex;
    gap: 0.45rem;
    min-width: 0;
    padding: 0.34rem 0.45rem;
}

.dispatch-info-list {
    grid-template-columns: 1fr;
}

.dispatch-info-list--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dispatch-info-list div {
    align-items: baseline;
    border-bottom: 1px solid rgba(43, 54, 66, 0.62);
    column-gap: 0.7rem;
    display: grid;
    grid-template-columns: minmax(110px, 0.72fr) minmax(0, 1fr);
    min-width: 0;
    padding: 0.3rem 0;
}

.dispatch-info-list div:last-child {
    border-bottom: 0;
}

.dispatch-analytics-summary dt,
.dispatch-info-list dt,
.dispatch-public-url label {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 0.65rem;
    font-weight: 850;
    gap: 0.35rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dispatch-analytics-summary dd,
.dispatch-info-list dd {
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 750;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dispatch-link-state {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 999px;
    color: var(--text-secondary);
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 850;
    line-height: 1;
    padding: 0.28rem 0.45rem;
}

.dispatch-link-state.is-active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.32);
    color: #9be7b0;
}

.dispatch-public-url {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.7rem;
}

.dispatch-public-url > div {
    align-items: center;
    background: #0d141d;
    border: 1px solid rgba(43, 54, 66, 0.9);
    border-radius: 7px;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.34rem;
}

.dispatch-link-field {
    background: transparent;
    border: 0;
    color: var(--text-main);
    font-size: 0.86rem;
    min-width: 0;
    overflow: hidden;
    padding: 0.3rem 0.35rem;
    text-overflow: ellipsis;
    width: 100%;
}

.dispatch-icon-button {
    align-items: center;
    background: rgba(163, 107, 44, 0.12);
    border: 1px solid rgba(163, 107, 44, 0.28);
    border-radius: 6px;
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.dispatch-delivery-actions {
    justify-content: flex-start;
    margin-top: 0.6rem;
}

.dispatch-map-panel {
    border-top: 1px solid var(--border);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.dispatch-map-panel summary {
    align-items: center;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 0.4rem;
}

.dispatch-download-map {
    background: #0d141d;
    border: 1px solid rgba(43, 54, 66, 0.9);
    border-radius: 7px;
    height: 220px;
    margin-top: 0.55rem;
    overflow: hidden;
}

.dispatch-detail-footer-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.3rem;
}

.dispatch-status-badge,
.dispatch-caption-badge {
    border: 1px solid rgba(163, 107, 44, 0.5);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.32rem 0.55rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.dispatch-operational-summary {
    align-items: center;
    background: rgba(163, 107, 44, 0.11);
    border: 1px solid rgba(163, 107, 44, 0.28);
    border-radius: var(--radius-md);
    color: var(--text-main);
    display: flex;
    gap: 0.7rem;
    padding: 0.62rem 0.78rem;
}

.dispatch-operational-summary p {
    line-height: 1.4;
    margin: 0;
}

.dispatch-operational-summary small {
    color: var(--text-secondary);
    display: block;
    margin-top: 0.2rem;
}

.dispatch-operational-badge {
    background: rgba(163, 107, 44, 0.18);
    border-radius: 999px;
    color: var(--accent);
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.32rem 0.55rem;
    text-transform: uppercase;
}

.dispatch-detail-grid {
    align-items: start;
    gap: 0.75rem;
}

.dispatch-detail-section {
    margin-top: 0.75rem;
}

.dispatch-detail-section.atlas-panel--compact {
    padding-block: 0.55rem;
}

.dispatch-detail-section p {
    margin-block: 0.28rem 0;
}

.dispatch-compact-meta {
    gap: 0.45rem;
}

.dispatch-recipient-summary {
    border-top: 1px solid var(--border);
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.dispatch-technical-details summary {
    color: var(--text-main);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
}

.dispatch-technical-details h3 {
    font-size: 0.95rem;
    margin: 0.85rem 0 0.45rem;
}

.dispatch-compact-list,
.dispatch-history-list {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding-left: 1.1rem;
}

.dispatch-photo-grid {
    display: grid;
    gap: 0.62rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.dispatch-photo-card {
    background: #111a24;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.dispatch-photo-card img,
.dispatch-photo-fallback {
    aspect-ratio: 3 / 2;
    background: #0d141d;
    color: var(--text-secondary);
    display: grid;
    font-size: 0.78rem;
    place-items: center;
    width: 100%;
}

.dispatch-photo-card img {
    object-fit: cover;
}

.dispatch-photo-card-body {
    display: grid;
    gap: 0.4rem;
    padding: 0.55rem 0.6rem;
}

.dispatch-photo-card-header {
    align-items: start;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.dispatch-photo-card h3 {
    font-size: 0.88rem;
    margin: 0;
    overflow-wrap: anywhere;
}

.dispatch-photo-card p {
    color: var(--text-secondary);
    display: -webkit-box;
    font-size: 0.8rem;
    line-height: 1.35;
    margin: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.dispatch-muted {
    color: var(--text-secondary);
}

.dispatch-history-list li {
    color: var(--text-secondary);
}

.dispatch-history-list strong {
    color: var(--text-main);
    margin: 0 0.35rem;
}

.dispatch-history-list em {
    font-style: normal;
}

.flow-page {
    display: grid;
    gap: 0.86rem;
}

.flow-hero {
    display: grid;
    gap: 0.18rem;
    padding-block: 0.9rem;
}

.flow-hero h1 {
    margin: 0;
}

.flow-hero .subtitle {
    margin: 0;
}

.flow-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.72rem;
    margin-bottom: 0.72rem;
}

.flow-section-header h2 {
    margin: 0;
}

.flow-section-header > span:not(.dispatch-status-badge) {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.flow-active-card {
    display: grid;
    gap: 0;
}

.flow-action-row,
.flow-session-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.72rem;
    margin-top: 0.72rem;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.flow-action-row span {
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 750;
}

.flow-active-meta {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.78rem;
}

.flow-photo-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 12px;
    background: rgba(15, 23, 32, 0.42);
}

.flow-photo-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, rgba(79, 191, 143, 0.16), rgba(15, 23, 32, 0.92)),
        radial-gradient(circle at 70% 30%, rgba(184, 139, 90, 0.18), transparent 38%);
    color: rgba(233, 238, 245, 0.78);
    font-size: 0.78rem;
    font-weight: 750;
    text-align: center;
}

.flow-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flow-photo-copy {
    display: grid;
    gap: 0.54rem;
    padding: 0.72rem;
}

.flow-photo-copy h3 {
    overflow: hidden;
    margin: 0;
    color: var(--text-main);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-photo-copy dl {
    display: grid;
    gap: 0.36rem;
    margin: 0;
}

.flow-photo-copy div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
}

.flow-photo-copy dt {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flow-photo-copy dd {
    overflow: hidden;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-session-list {
    display: grid;
    gap: 0.56rem;
}

.flow-session-row {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.72rem;
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 12px;
    padding: 0.68rem 0.76rem;
    background: rgba(15, 23, 32, 0.42);
}

.flow-session-row strong {
    display: block;
    margin-top: 0.42rem;
    color: var(--text-main);
}

.flow-session-row p {
    margin: 0.18rem 0 0;
    color: var(--text-secondary);
}

.flow-session-row .flow-session-lens-usage {
    color: #d8a3a3;
    font-size: 0.82rem;
    font-weight: 750;
}

.flow-session-row dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    margin: 0;
}

.flow-session-row dt {
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.flow-session-row dd {
    margin: 0.16rem 0 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.flow-coverage-form {
    display: grid;
    gap: 0.9rem;
}

.flow-session-delete-dialog h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 0.86rem;
}

.flow-session-delete-confirm {
    display: flex;
    align-items: flex-start;
    gap: 0.48rem;
    border: 1px solid rgba(176, 108, 108, 0.32);
    border-radius: var(--radius-md);
    padding: 0.58rem 0.68rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.flow-session-delete-confirm input {
    margin-top: 0.12rem;
}

.flow-session-delete-coverages {
    display: grid;
    gap: 0.5rem;
}

.flow-session-delete-coverage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.58rem 0.68rem;
    background: #131c27;
}

.flow-session-delete-coverage div {
    min-width: 0;
    display: grid;
    gap: 0.16rem;
}

.flow-session-delete-coverage strong,
.flow-session-delete-coverage span {
    overflow-wrap: anywhere;
}

.flow-session-delete-coverage span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

@media (max-width: 860px) {
    :root {
        --page-fluid-width: calc(100vw - 1.5rem);
    }

    .app-header-inner {
        grid-template-columns: 1fr;
    }

    .atlas-global-nav {
        justify-self: start;
        justify-content: flex-start;
    }

    .atlas-grid--2,
    .atlas-grid--3,
    .atlas-grid--4,
    .atlas-grid--auto,
    .atlas-span-2 {
        grid-template-columns: 1fr;
        grid-column: 1 / -1;
    }

    .page-heading,
    .list-tools {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .dispatch-schedule-mode {
        grid-template-columns: 1fr;
    }

    .coverage-summary-grid,
    .scheduled-delivery-fields {
        grid-template-columns: 1fr;
    }

    .dispatch-detail-header {
        display: grid;
    }

    .dispatch-operational-summary {
        align-items: flex-start;
    }

    .dispatch-shipment-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .dispatch-shipment-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dispatch-row-actions {
        justify-content: flex-start;
    }

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

    .dispatch-analytics-summary,
    .dispatch-info-list--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dispatch-info-list div {
        grid-template-columns: minmax(98px, 0.65fr) minmax(0, 1fr);
    }

    .dispatch-photo-options,
    .dispatch-recipient-row {
        grid-template-columns: 1fr;
    }

    .dispatch-photo-option {
        align-items: flex-start;
    }
}

.dispatch-photo-unavailable {
    color: var(--error-text);
    font-size: 0.78rem;
    font-weight: 600;
}

.coverage-form label,
.edit-dialog-form label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.coverage-form input,
.coverage-form select,
.edit-dialog-form input,
.edit-dialog-form select {
    width: 100%;
    border: 1px solid var(--border);
    background-color: #131c27;
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 0.52rem 0.62rem;
    font: inherit;
    min-height: 38px;
}


.coverage-form input[type="date"]::-webkit-calendar-picker-indicator,
.edit-dialog-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(57%) sepia(27%) saturate(890%) hue-rotate(352deg) brightness(88%) contrast(88%);
    opacity: 1;
}

.coverage-form input:focus,
.coverage-form select:focus,
.edit-dialog-form input:focus,
.edit-dialog-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(163, 107, 44, 0.55);
}

.coverage-form .primary-button {
    justify-self: start;
}

.form-success,
.form-error {
    border-radius: var(--radius-md);
    padding: 0.58rem 0.7rem;
    margin: 0;
    font-size: 0.84rem;
}

.form-success {
    border: 1px solid rgba(120, 193, 147, 0.5);
    background-color: var(--success-bg);
    color: var(--success-text);
}

.form-error {
    border: 1px solid rgba(232, 138, 138, 0.52);
    background-color: var(--error-bg);
    color: var(--error-text);
}

.coverage-header-card {
    display: grid;
    gap: 0.46rem;
}

.coverage-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.coverage-id {
    margin: 0;
    font-size: 0.76rem;
    color: var(--text-secondary);
}

.edit-information-button {
    white-space: nowrap;
}

.editorial-title {
    margin: 0;
    font-size: clamp(1rem, 1.6vw, 1.28rem);
    line-height: 1.24;
}

.coverage-meta-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

.coverage-meta-grid div {
    background: var(--bg-panel-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.5rem;
}

.coverage-meta-grid dt {
    margin: 0;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.coverage-meta-grid dd {
    margin: 0.16rem 0 0;
    font-size: 0.84rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ai-context-panel {
    margin-top: 0.72rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(18, 28, 39, 0.58);
    padding: 0.72rem;
}

.ai-context-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.66rem;
}

.ai-context-header h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 0.94rem;
}

.ai-context-header p {
    margin: 0.18rem 0 0;
    color: var(--text-secondary);
    font-size: 0.74rem;
}

.ai-context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.64rem;
}

.ai-context-grid textarea {
    min-height: 92px;
    resize: vertical;
}

.compact-link {
    margin-top: 0.1rem;
}

.coverage-tabs-card {
    display: grid;
    gap: 0.62rem;
    overflow: visible;
}

.coverage-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.48rem;
}

.tab-button,
.tab-link {
    border: 1px solid var(--border);
    background: #131c27;
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.36rem 0.74rem;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.tab-button:hover,
.tab-link:hover {
    color: var(--text-main);
    border-color: #3a4653;
}

.tab-button.is-active {
    color: var(--accent);
    border-color: rgba(163, 107, 44, 0.5);
    background: rgba(163, 107, 44, 0.08);
}

.tab-panel {
    margin: 0;
}

.coverage-section {
    background: transparent;
    border: 0;
    padding: 0;
}

.coverage-section h2 {
    margin: 0;
    font-size: clamp(0.96rem, 1.2vw, 1.06rem);
}

.coverage-section p {
    margin: 0.36rem 0 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.photo-section {
    border-top: 0;
    padding-top: 0;
}

.photo-workspace {
    display: grid;
    gap: 0.72rem;
}

.photo-workspace-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.photo-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.42rem;
    flex-wrap: wrap;
}

.toolbar-counter {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: #131c27;
    padding: 0.34rem 0.58rem;
    font-size: 0.78rem;
    line-height: 1;
}

.photo-workspace-grid {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(220px, 0.24fr) minmax(0, 0.76fr);
    grid-template-rows: auto auto;
    grid-template-areas:
        "browser preview"
        "browser editor";
    gap: var(--space-2);
    align-items: start;
}

.photo-browser-panel,
.photo-preview-panel,
.photo-info-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #131c27;
}

.photo-browser-panel {
    grid-area: browser;
    align-self: stretch;
    position: sticky;
    top: 0.7rem;
    padding: 0.52rem;
    min-height: 0;
    max-height: calc(100dvh - 1.4rem);
    overflow: auto;
    overscroll-behavior: contain;
}

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

.photo-grid-item,
.photo-grid-skeleton {
    min-width: 0;
    display: grid;
    gap: 0.36rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #111a24;
    color: var(--text-main);
    padding: 0.42rem;
}

.photo-grid-item {
    text-align: left;
    border-color: #46515e;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.photo-grid-item.has-caption {
    border-color: var(--editorial-blue);
}

.photo-grid-item.has-import-error {
    border-color: #ff8a8a;
    background: rgba(120, 28, 28, 0.24);
}

.photo-thumb-select {
    min-width: 0;
    display: grid;
    gap: 0.36rem;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.photo-grid-item:hover {
    border-color: #66727f;
    background: #16212c;
}

.photo-thumb-select:focus-visible,
.photo-thumb-action:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.photo-grid-item.is-active {
    border-color: var(--accent);
    background: rgba(163, 107, 44, 0.08);
}

.photo-grid-item.has-caption.is-active {
    border-color: var(--editorial-blue);
    box-shadow: 0 0 0 1px rgba(0, 20, 80, 0.58);
}

.photo-grid-item:active {
    transform: translateY(1px);
}

.photo-grid-skeleton {
    min-height: 156px;
    overflow: hidden;
}

.photo-grid-skeleton span {
    display: block;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #111a24 0%, #1b2835 48%, #111a24 100%);
    background-size: 220% 100%;
    animation: skeleton-pulse 1.1s ease-in-out infinite;
}

.photo-grid-skeleton span:first-child {
    aspect-ratio: 4 / 3;
}

.photo-grid-skeleton span:nth-child(2) {
    height: 12px;
    width: 82%;
}

.photo-grid-skeleton span:nth-child(3) {
    height: 10px;
    width: 46%;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 110% 0;
    }

    100% {
        background-position: -110% 0;
    }
}

.photo-grid-thumb-wrap {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--bg-main);
}

.photo-grid-thumb {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.photo-grid-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 0.8rem;
    background: linear-gradient(135deg, rgba(163, 107, 44, 0.14), rgba(17, 26, 36, 0.92));
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.35;
    text-align: center;
}

.photo-status-pill {
    position: absolute;
    left: 0.36rem;
    top: 0.36rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: var(--editorial-blue);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    line-height: 1;
    padding: 0.22rem 0.38rem;
}

.photo-thumb-actions {
    position: absolute;
    top: 0.38rem;
    right: 0.38rem;
    display: inline-flex;
    gap: 0.28rem;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.photo-grid-item:hover .photo-thumb-actions,
.photo-grid-item:focus-within .photo-thumb-actions {
    opacity: 1;
    transform: translateY(0);
}

.photo-thumb-action {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(43, 54, 66, 0.9);
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.9);
    color: var(--text-secondary);
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.photo-thumb-action:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(15, 23, 32, 0.98);
}

.photo-thumb-action:active {
    transform: translateY(1px);
}

.photo-thumb-action svg {
    width: 15px;
    height: 15px;
}

.photo-status-pill[hidden] {
    display: none;
}

.photo-grid-name,
.photo-grid-size {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-grid-name {
    font-size: 0.8rem;
    font-weight: 650;
}

.photo-grid-size {
    color: var(--text-secondary);
    font-size: 0.72rem;
}

.photo-import-state {
    color: var(--text-secondary);
    display: block;
    font-size: 0.72rem;
    line-height: 1.25;
    white-space: normal;
}

.photo-import-state[data-status="error"] {
    color: #ff8a8a;
    font-weight: 700;
}

.photo-empty-message {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.photo-preview-panel {
    grid-area: preview;
    min-height: 30vh;
    display: grid;
    place-items: center;
    padding: 0.52rem;
    background: #0f1720;
}

.photo-preview-empty,
.photo-info-empty {
    color: var(--text-secondary);
    font-size: 0.86rem;
    text-align: center;
}

.selected-photo-preview {
    width: 100%;
    max-height: min(64vh, 680px);
    object-fit: contain;
    border-radius: var(--radius-md);
}

.photo-info-panel {
    grid-area: editor;
    display: grid;
    align-content: start;
    gap: var(--space-2);
    padding: 0.58rem;
}

.caption-photo-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.04rem;
}

.caption-photo-counter {
    font-size: 0.9rem;
    font-weight: 750;
}

.caption-photo-current {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
}

.caption-photo-filename {
    color: var(--text-secondary);
    display: block;
    font-size: 0.78rem;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.caption-status-indicator {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    background: #101923;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
}

.caption-status-indicator[data-status="En edición"] {
    color: #d9b483;
    border-color: rgba(163, 107, 44, 0.54);
}

.caption-status-indicator[data-status="Revisado"] {
    color: #9fc5da;
    border-color: rgba(127, 171, 198, 0.5);
}

.caption-status-indicator[data-status="Aprobado"] {
    color: var(--success-text);
    border-color: rgba(120, 193, 147, 0.5);
}

.admin-area-field[hidden] {
    display: none;
}

.caption-nav-buttons {
    display: inline-flex;
    gap: 0.34rem;
}

.caption-nav-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #101923;
    color: var(--text-main);
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.caption-nav-button:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.caption-nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.photo-info-details {
    margin: 0;
    display: none;
    gap: 0.5rem;
}

.photo-info-details div {
    min-width: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.42rem;
}

.photo-info-details dt {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.photo-info-details dd {
    margin: 0.14rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

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

.caption-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.caption-editor-header h4,
.caption-block h5 {
    margin: 0;
}

.caption-editor-header h4 {
    font-size: 0.95rem;
}

.caption-editor-header span,
.caption-status-save-pill {
    border: 1px solid rgba(163, 107, 44, 0.46);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(163, 107, 44, 0.08);
    padding: 0.24rem 0.44rem;
    font-size: 0.68rem;
    font-weight: 700;
}

.caption-editor-header span[data-status="saved"],
.caption-status-save-pill[data-status="saved"],
.caption-footer-bar #caption-save-status-detail[data-status="saved"] {
    color: var(--success-text);
    border-color: rgba(120, 193, 147, 0.5);
    background: rgba(120, 193, 147, 0.08);
}

.caption-editor-header span[data-status="saving"],
.caption-status-save-pill[data-status="saving"],
.caption-footer-bar #caption-save-status-detail[data-status="saving"] {
    color: #d9b483;
}

.caption-editor-header span[data-status="dirty"],
.caption-status-save-pill[data-status="dirty"],
.caption-footer-bar #caption-save-status-detail[data-status="dirty"] {
    color: #d8a3a3;
    border-color: rgba(176, 108, 108, 0.48);
    background: rgba(176, 108, 108, 0.08);
}

.caption-editor-top-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    gap: 0.62rem;
    align-items: stretch;
}

.caption-block {
    display: grid;
    gap: var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #101923;
    padding: 0.56rem;
}

.caption-block h5,
.caption-block h6,
.caption-block label {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.caption-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.caption-ai-button {
    padding: 0.34rem 0.54rem;
    font-size: 0.74rem;
    cursor: pointer;
}

.caption-ai-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.34rem;
}

.caption-ai-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.caption-ai-status {
    min-height: 1rem;
    margin: 0.2rem 0 0;
    color: var(--accent);
    font-size: 0.74rem;
    line-height: 1.35;
}

.caption-ai-status[data-status="error"] {
    color: #ff9a9a;
}

.caption-ai-note {
    margin: 0.2rem 0 0;
    color: var(--text-secondary);
    font-size: 0.7rem;
    line-height: 1.35;
}

.ai-context-dialog {
    width: min(760px, calc(100vw - 1.4rem));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-panel);
    color: var(--text-main);
    padding: 0;
}

.ai-context-dialog::backdrop {
    background: rgba(8, 12, 16, 0.64);
}

.ai-context-dialog-shell {
    display: grid;
    gap: 0.72rem;
    padding: 0.9rem;
}

.ai-context-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.72rem;
}

.ai-context-dialog-header h2 {
    margin: 0;
    font-size: 1rem;
}

.ai-context-json {
    max-height: min(62vh, 560px);
    margin: 0;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0b121a;
    color: var(--text-secondary);
    padding: 0.86rem;
    font-size: 0.76rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

.caption-generated-fields {
    margin: 0;
    display: grid;
    gap: 0.42rem;
}

.caption-generated-fields div {
    min-width: 0;
}

.caption-generated-fields dt {
    color: var(--text-secondary);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.caption-generated-fields dd {
    margin: 0.1rem 0 0;
    font-size: 0.8rem;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.caption-block textarea,
.caption-block select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #131c27;
    color: var(--text-main);
    padding: 0.5rem;
    font: inherit;
}

.caption-block textarea {
    resize: vertical;
    min-height: 78px;
}

.caption-block select {
    min-height: 38px;
}

.caption-block textarea:focus,
.caption-block select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(163, 107, 44, 0.55);
}

.caption-text-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: -0.1rem 0 0;
    color: var(--text-secondary);
    font-size: 0.74rem;
}

.caption-status-block {
    align-content: start;
}

.caption-status-block select {
    margin-bottom: 0.28rem;
}

.caption-drone-toggle {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin: 0;
    color: var(--text-main);
    line-height: 1.3;
    text-transform: none;
}

.caption-drone-toggle input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--accent);
}

.caption-status-save-label {
    margin: 0.18rem 0 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.caption-status-save-pill {
    margin: 0;
    justify-self: start;
}

.caption-preview-block {
    min-height: 280px;
    align-content: start;
    background: #0f1720;
}

.caption-full-preview {
    margin: 0;
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.52;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.caption-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.62rem;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #101923;
    padding: 0.52rem 0.62rem;
}

.caption-footer-bar p,
.caption-footer-bar label {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 700;
}

.caption-footer-bar span {
    color: var(--text-secondary);
}

#caption-footer-status {
    color: var(--text-main);
}

.caption-footer-bar #caption-save-status-detail {
    border: 1px solid rgba(120, 193, 147, 0.5);
    border-radius: 999px;
    background: rgba(120, 193, 147, 0.08);
    color: var(--success-text);
    padding: 0.28rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.caption-warning {
    margin: 0;
    border: 1px solid rgba(163, 107, 44, 0.5);
    border-radius: var(--radius-md);
    background: rgba(163, 107, 44, 0.08);
    color: #d9b483;
    padding: 0.44rem 0.52rem;
    font-size: 0.76rem;
    line-height: 1.3;
}

.drop-zone {
    border: 1px dashed #43505e;
    border-radius: var(--radius-md);
    padding: 0.58rem 0.64rem;
    text-align: center;
    background: #121b25;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.drop-zone.is-dragover {
    border-color: #a36b2c;
    background-color: rgba(163, 107, 44, 0.16);
    box-shadow: inset 0 0 0 1px rgba(163, 107, 44, 0.24);
}

.drop-main {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.drop-secondary {
    margin: 0.3rem 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.hidden-message {
    display: none;
}

.hidden-message.is-visible {
    display: block;
    margin-top: 0.45rem;
}

.edit-dialog,
.delete-dialog {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    width: min(860px, calc(100vw - 1.4rem));
    background: var(--bg-panel);
    color: var(--text-main);
}

.edit-dialog::backdrop,
.delete-dialog::backdrop {
    background: rgba(8, 12, 16, 0.64);
}

.edit-dialog-form,
.delete-dialog-form {
    display: grid;
    gap: 0.62rem;
    padding: 0.9rem;
}

.edit-dialog-form h2,
.delete-dialog-form h2 {
    margin: 0;
    font-size: 1rem;
}

.delete-dialog {
    width: min(520px, calc(100vw - 1.4rem));
}

.delete-dialog-form p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.dispatch-delete-safety-list {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.delete-dialog-coverage-title {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #131c27;
    color: var(--text-main) !important;
    padding: 0.58rem 0.68rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.danger-confirm-button {
    color: #f0c4c4;
}

.photo-viewer-dialog {
    width: min(1180px, calc(100vw - 1.2rem));
    max-width: none;
    height: min(780px, calc(100vh - 1.2rem));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    background: #0f1720;
    color: var(--text-main);
}

.photo-viewer-dialog::backdrop {
    background: rgba(5, 8, 12, 0.78);
}

.photo-viewer-shell {
    height: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.photo-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    border-bottom: 1px solid var(--border);
    background: #121c27;
    padding: 0.72rem;
}

.photo-viewer-header h2,
.photo-viewer-header p {
    margin: 0;
}

.photo-viewer-header h2 {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.photo-viewer-header p {
    margin-top: 0.12rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.photo-viewer-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.38rem;
    flex-wrap: wrap;
}

.photo-viewer-stage {
    min-width: 0;
    min-height: 0;
    position: relative;
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 0.8rem 3.2rem;
}

.photo-viewer-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.photo-viewer-image.is-actual-size {
    max-width: none;
    max-height: none;
}

.photo-viewer-nav {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(43, 54, 66, 0.9);
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.92);
    color: var(--text-secondary);
    padding: 0;
    cursor: pointer;
    transform: translateY(-50%);
    transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.photo-viewer-nav:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(15, 23, 32, 0.98);
}

.photo-viewer-nav svg {
    width: 22px;
    height: 22px;
}

#photo-viewer-prev-button {
    left: 0.8rem;
}

#photo-viewer-next-button {
    right: 0.8rem;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.12rem;
}

@media (min-width: 760px) {
    .coverage-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dispatch-form-grid {
        align-items: start;
    }
}

@media (max-width: 1040px) {
    .coverage-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-workspace-grid {
        grid-template-columns: 220px minmax(0, 1fr);
    }

}

@media (max-width: 860px) {
    .coverage-page {
        height: auto;
        overflow: visible;
    }

    .coverage-tabs-card,
    .photo-workspace {
        overflow: visible;
    }

    .app-header-inner {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .atlas-global-nav {
        gap: 0.34rem;
    }

    .list-tools {
        grid-template-columns: 1fr;
    }

    .visual-filters {
        justify-content: flex-start;
    }

    .photo-workspace-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .photo-toolbar-actions {
        justify-content: flex-start;
    }

    .photo-thumb-actions {
        opacity: 1;
        transform: none;
    }

    .photo-workspace-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "browser"
            "preview"
            "editor";
    }

    .photo-browser-panel {
        min-height: 0;
        height: auto;
        max-height: none;
        overflow: visible;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    }

    .photo-preview-panel {
        min-height: 34vh;
    }
}

@media (max-width: 640px) {
    .view-content {
        padding: 0.66rem;
    }

    .app-header {
        min-height: 58px;
    }

    .app-header-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.55rem;
        padding-block: 0.46rem;
    }

    .atlas-brand {
        gap: 0.48rem;
    }

    .atlas-brand-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .atlas-brand-mark svg {
        width: 23px;
        height: 23px;
    }

    .atlas-brand-title {
        font-size: 0.84rem;
    }

    .atlas-brand-subtitle {
        font-size: 0.68rem;
    }

    .atlas-global-nav {
        justify-content: flex-start;
    }

    .atlas-nav-link {
        font-size: 0.72rem;
        padding: 0.34rem 0.5rem;
    }

    .header-user {
        padding: 0.22rem 0.5rem;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .coverage-grid,
    .coverage-card-meta {
        grid-template-columns: 1fr;
    }

    .coverage-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .coverage-card-actions .primary-button,
    .coverage-card-actions .secondary-button,
    .coverage-card-actions .danger-button {
        width: 100%;
    }

    .coverage-header-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .coverage-meta-grid {
        grid-template-columns: 1fr;
    }

    .coverage-tabs {
        overflow-x: hidden;
        white-space: nowrap;
        flex-wrap: wrap;
        padding-bottom: 0.34rem;
    }

    .tab-button,
.tab-link {
        white-space: normal;
    }

    .photo-toolbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .toolbar-counter,
    .photo-toolbar-actions .primary-button,
    .photo-toolbar-actions .secondary-button {
        width: 100%;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    }

    .photo-browser-panel,
    .photo-preview-panel {
        min-height: 32vh;
    }

    .selected-photo-preview {
        max-height: 58vh;
    }

    .photo-viewer-dialog {
        width: calc(100vw - 0.7rem);
        height: calc(100vh - 0.7rem);
    }

    .photo-viewer-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .photo-viewer-controls {
        width: 100%;
        justify-content: flex-start;
    }

    .photo-viewer-stage {
        padding: 0.7rem 2.7rem;
    }

    .photo-viewer-nav {
        width: 34px;
        height: 34px;
    }

    .dialog-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

.export-panel {
    display: grid;
    gap: 0.8rem;
}

.export-panel-header,
.export-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.export-engine-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(163, 107, 44, 0.45);
    border-radius: 999px;
    background: rgba(163, 107, 44, 0.09);
    color: var(--accent);
    padding: 0.34rem 0.62rem;
    font-size: 0.78rem;
}

.export-coverage-return {
    margin-right: auto;
}

.export-form,
.export-history {
    display: grid;
    gap: 0.72rem;
}

.export-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.export-card[hidden] {
    display: none !important;
}

.export-card {
    min-width: 0;
    display: grid;
    gap: 0.52rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #131c27;
    padding: 0.78rem;
    color: var(--text-main);
}

.export-card legend,
.export-card > span,
.export-history h3 {
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
}

.export-scope-card,
.export-content-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.export-card label,
.export-scope-card label,
.export-content-card label {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.export-card select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0f1822;
    color: var(--text-main);
    padding: 0.56rem 0.62rem;
}

.export-message {
    min-height: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.export-message[data-status="success"] {
    color: #76d39a;
}

.export-message[data-status="warning"] {
    color: #d7a84e;
}

.export-message[data-status="error"] {
    color: #ff8a8a;
}

.export-result-panel,
.export-history-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #111a24;
    padding: 0.9rem;
}

.export-result-panel[data-status="partial"] {
    border-color: #d7a84e;
}

.export-result-panel[data-status="failed"] {
    border-color: #ff8a8a;
}

.export-result-filename {
    font-weight: 700;
}

.export-result-actions,
.export-history-list li {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.export-history-list {
    display: grid;
    gap: 0.44rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.export-history-list li {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #111a24;
    color: var(--text-secondary);
    padding: 0.58rem 0.68rem;
    font-size: 0.82rem;
}

@media (max-width: 860px) {
    .export-options-grid,
    .export-scope-card,
    .export-content-card {
        grid-template-columns: 1fr;
    }
}

.export-format-card,
.export-content-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.export-filename-card input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0f1822;
    color: var(--text-main);
    padding: 0.56rem 0.62rem;
    font: inherit;
}

@media (max-width: 860px) {
    .export-format-card,
    .export-content-card {
        grid-template-columns: 1fr;
    }
}

.watermark-panel {
    display: grid;
    grid-template-columns: minmax(280px, 0.3fr) minmax(0, 0.7fr);
    gap: 1rem;
    align-items: stretch;
}

.watermark-config-panel,
.watermark-preview-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #121b26;
    padding: 0.9rem;
}

.watermark-config-panel,
.watermark-form-grid,
.watermark-card,
.watermark-actions {
    display: grid;
    gap: 0.72rem;
}

.watermark-panel-header,
.watermark-card-title-row,
.watermark-actions,
.watermark-preview-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.watermark-panel-header h2 {
    margin: 0;
}

.watermark-panel-header p,
.watermark-preview-footer,
.watermark-selected-list,
.watermark-card label {
    color: var(--text-secondary);
    font-size: 0.86rem;
}

.watermark-form-grid {
    grid-template-columns: 1fr;
}

.watermark-form-grid .form-field,
.watermark-resolution-field {
    min-width: 0;
}

.watermark-form-grid input,
.watermark-form-grid select {
    width: 100%;
}

.watermark-form-grid input[type="color"] {
    min-height: 2.45rem;
    padding: 0.2rem;
}

.watermark-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #131c27;
    padding: 0.78rem;
}

.watermark-card legend,
.watermark-card-title-row > span:first-child {
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
}

.watermark-card label,
.watermark-selected-list label {
    display: inline-flex;
    align-items: center;
    gap: 0.44rem;
}

.watermark-selected-list {
    display: grid;
    gap: 0.4rem;
    max-height: 9.5rem;
    overflow: auto;
    margin: 0;
    padding: 0;
    list-style: none;
}

.watermark-selected-list li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.watermark-preview-panel {
    display: grid;
    grid-template-rows: minmax(420px, 1fr) auto;
    gap: 0.8rem;
}

.watermark-preview-stage {
    display: grid;
    place-items: center;
    min-height: 58vh;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #0d151f;
    padding: 1rem;
    overflow: hidden;
}

.watermark-preview-canvas {
    display: block;
    max-width: 100%;
    max-height: 74vh;
    width: auto;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.watermark-preview-canvas[hidden] {
    display: none !important;
}

.watermark-preview-footer {
    align-items: flex-start;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #101923;
    padding: 0.7rem 0.78rem;
}

.watermark-preview-footer p {
    margin: 0;
}

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

    .watermark-preview-panel {
        grid-template-rows: minmax(340px, auto) auto;
    }

    .watermark-preview-stage {
        min-height: 44vh;
    }
}

.watermark-form-grid input:not([type="color"]),
.watermark-form-grid select {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0f1822;
    color: var(--text-main);
    padding: 0.56rem 0.62rem;
}

.watermark-form-grid input[type="range"] {
    padding: 0;
    accent-color: var(--accent);
}

.watermark-form-grid input[type="color"] {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #0f1822;
}

.watermark-compact-controls {
    display: grid;
    gap: 0.36rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #131c27;
    padding: 0.62rem 0.7rem;
}

.watermark-compact-row {
    display: grid;
    grid-template-columns: minmax(82px, 0.9fr) minmax(90px, 1.3fr) minmax(64px, auto);
    align-items: center;
    gap: 0.48rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.watermark-compact-row input[type="range"] {
    width: 100%;
    min-width: 0;
    padding: 0;
    accent-color: var(--accent);
}

.watermark-compact-row input[type="color"] {
    width: 1.7rem;
    height: 1.7rem;
    min-height: 0;
    border: 1px solid var(--border);
    border-radius: 0.42rem;
    background: #0f1822;
    padding: 0.16rem;
}

.watermark-compact-row code,
.watermark-compact-row output {
    justify-self: end;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.78rem;
}

@media (max-width: 560px) {
    .watermark-compact-row {
        grid-template-columns: 1fr auto;
    }

    .watermark-compact-row input[type="range"] {
        grid-column: 1 / -1;
    }
}

.settings-section-grid,
.settings-channel-list {
    display: grid;
    gap: 0.75rem;
}

.settings-section-card,
.settings-channel-card {
    display: grid;
    gap: 0.55rem;
}

.settings-section-card.is-disabled {
    opacity: 0.72;
}

.settings-section-card h2,
.settings-channel-card h2 {
    font-size: 1rem;
    margin: 0;
}

.settings-section-card p,
.settings-channel-card p {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.4;
    margin: 0;
}

.settings-channel-card {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.8rem 1.1rem;
}

.settings-channel-main,
.settings-channel-badges,
.settings-channel-side {
    display: grid;
    gap: 0.28rem;
}

.settings-channel-badges {
    grid-auto-flow: column;
    justify-content: end;
}

.settings-channel-side {
    justify-items: end;
    gap: 0.6rem;
}

.settings-channel-side .dispatch-row-actions {
    justify-content: end;
}

.settings-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.settings-toggle-row label {
    align-items: center;
    color: var(--text-secondary);
    display: inline-flex;
    font-size: 0.84rem;
    gap: 0.35rem;
}

.settings-toggle-row input {
    width: auto;
}

.settings-channel-form-section {
    display: grid;
    gap: 0.6rem;
    border-top: 1px solid var(--border);
    padding-top: 0.8rem;
}

.settings-channel-form-section h2 {
    font-size: 0.92rem;
    margin: 0;
}

.settings-channel-form-section[hidden] {
    display: none;
}

@media (max-width: 860px) {
    .settings-channel-card {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .settings-channel-side,
    .settings-channel-badges,
    .settings-channel-side .dispatch-row-actions {
        justify-items: start;
        justify-content: start;
    }
}

.dispatch-link-field {
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 0.3rem 0.35rem;
    color: var(--text-main);
    background: transparent;
}

.delivery-public-page {
    position: relative;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    padding: clamp(1rem, 3vw, 2.25rem) 0;
    background: radial-gradient(circle at top, rgba(184, 115, 51, 0.16), transparent 34%), #07111f;
    color: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.delivery-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.delivery-background-layer {
    position: absolute;
    inset: -4%;
    opacity: 0;
    background-position: center;
    background-size: cover;
    filter: blur(22px) saturate(0.54) brightness(0.42);
    transform: scale(1.02);
    transition: opacity 1.8s ease;
}

.delivery-background-layer.is-active {
    opacity: 0.38;
}

.delivery-background-layer.is-loaded.is-active {
    animation: deliveryKenBurns 11s ease-in-out forwards;
}

.delivery-background-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 26%, rgba(7, 17, 31, 0.62), rgba(7, 17, 31, 0.96) 70%),
        linear-gradient(180deg, rgba(7, 17, 31, 0.82), rgba(7, 17, 31, 0.94));
}

@keyframes deliveryKenBurns {
    from {
        transform: scale(1.02);
    }

    to {
        transform: scale(1.07);
    }
}

.delivery-public-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, 92vw);
    margin: 0 auto;
    display: grid;
    gap: 0.95rem;
}

.delivery-hero,
.delivery-file-summary,
.delivery-section {
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

.delivery-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 148px;
    border-radius: 18px;
    padding: clamp(1rem, 2.2vw, 1.55rem);
}

.delivery-hero-copy {
    min-width: 0;
}

.delivery-hero h1 {
    margin: 0.08rem 0 0.28rem;
    color: #f8fafc;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.delivery-expiration {
    margin: 0.34rem 0 0;
    color: #aeb9c8;
    font-size: 0.9rem;
}

.delivery-download-all {
    flex: 0 0 auto;
    min-height: 40px;
    padding-inline: 1.1rem;
}

.delivery-file-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    border-radius: 14px;
    padding: 0.7rem 0.9rem;
}

.delivery-file-summary div {
    min-width: 0;
}

.delivery-file-summary span,
.delivery-section-header span,
.delivery-file-row p {
    color: #94a3b8;
}

.delivery-file-summary span {
    display: block;
    margin-bottom: 0.12rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.delivery-file-summary strong {
    display: block;
    color: #e5edf7;
    font-size: 0.94rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delivery-section {
    border-radius: 16px;
    padding: 0.78rem;
}

.delivery-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.delivery-section-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.delivery-section-header span {
    font-size: 0.8rem;
}

.delivery-photo-grid,
.delivery-document-list {
    display: grid;
    gap: 0.5rem;
}

.delivery-file-row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 0.72rem;
    align-items: center;
    min-height: 64px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
    padding: 0.46rem 0.55rem;
    background: rgba(15, 23, 42, 0.58);
}

.delivery-file-thumb {
    display: grid;
    place-items: center;
    width: 56px;
    height: 44px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 20, 80, 0.72);
    color: #d8e2ef;
    font-size: 0.82rem;
    font-weight: 800;
}

.delivery-file-thumb--document {
    background: rgba(163, 107, 44, 0.2);
    color: #f4b46b;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.delivery-file-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-file-copy {
    min-width: 0;
}

.delivery-file-copy strong {
    display: block;
    overflow: hidden;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 760;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.delivery-file-row p {
    margin: 0.16rem 0 0;
    font-size: 0.76rem;
}

.delivery-file-action {
    border-radius: 999px;
    padding: 0.34rem 0.7rem;
    color: #f4b46b;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.delivery-file-action:hover,
.delivery-file-action:focus-visible {
    background: rgba(244, 180, 107, 0.12);
    outline: 1px solid rgba(244, 180, 107, 0.38);
    outline-offset: 2px;
}

@media (min-width: 1100px) {
    .delivery-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.atlas-dashboard {
    width: min(94vw, 1450px);
    display: grid;
    gap: clamp(1rem, 2vw, 1.55rem);
}

.atlas-dashboard-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    align-items: center;
    min-height: 210px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 14px;
    padding: clamp(1.3rem, 2.8vw, 2.4rem);
    background:
        radial-gradient(circle at 78% 42%, rgba(163, 107, 44, 0.14), transparent 32%),
        linear-gradient(135deg, rgba(22, 32, 43, 0.98), rgba(13, 23, 35, 0.98));
}

.atlas-dashboard-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.atlas-dashboard-kicker,
.atlas-dashboard-section-label {
    margin: 0;
    color: #b88b5a;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.atlas-dashboard-hero h1 {
    margin-top: 0.36rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: -0.035em;
}

.atlas-dashboard-hero p:not(.atlas-dashboard-kicker) {
    max-width: 620px;
    margin: 0.55rem 0 0;
    color: #a9b4c4;
    font-size: clamp(0.95rem, 1.35vw, 1.08rem);
    line-height: 1.6;
}

.atlas-dashboard-orbit {
    position: relative;
    z-index: 0;
    width: min(260px, 100%);
    aspect-ratio: 1;
    justify-self: end;
    opacity: 0.72;
}

.atlas-dashboard-orbit::before,
.atlas-dashboard-orbit::after,
.atlas-dashboard-orbit__ring {
    position: absolute;
    inset: 50%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    content: "";
    transform: translate(-50%, -50%) rotate(-18deg);
}

.atlas-dashboard-orbit::before {
    width: 88%;
    height: 44%;
}

.atlas-dashboard-orbit::after {
    width: 62%;
    height: 62%;
    border-color: rgba(184, 139, 90, 0.2);
}

.atlas-dashboard-orbit__ring:nth-child(1) {
    width: 96%;
    height: 30%;
    transform: translate(-50%, -50%) rotate(32deg);
}

.atlas-dashboard-orbit__ring:nth-child(2) {
    width: 36%;
    height: 36%;
    background: radial-gradient(circle, rgba(184, 139, 90, 0.18), transparent 68%);
}

.atlas-dashboard-orbit__dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #b88b5a;
    box-shadow: 0 0 0 5px rgba(184, 139, 90, 0.08);
}

.atlas-dashboard-orbit__dot:nth-child(3) {
    top: 31%;
    right: 16%;
}

.atlas-dashboard-orbit__dot:nth-child(4) {
    bottom: 25%;
    left: 20%;
    background: #6ab7c8;
}

.atlas-dashboard-section {
    display: grid;
    gap: 0.72rem;
}

.atlas-dashboard-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.atlas-module-grid,
.atlas-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.72rem, 1.2vw, 1rem);
}

.atlas-module-card,
.atlas-upcoming-card {
    border: 1px solid rgba(148, 163, 184, 0.13);
    border-radius: 12px;
    background: rgba(22, 32, 43, 0.88);
}

.atlas-module-card {
    --module-accent: #6f8fb6;
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 1rem;
    min-height: 248px;
    padding: clamp(1rem, 1.5vw, 1.22rem);
    transition: border-color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}

.atlas-module-card:hover {
    border-color: color-mix(in srgb, var(--module-accent) 48%, var(--border));
    background: rgba(25, 37, 50, 0.95);
    transform: translateY(-2px);
}

.atlas-module-card:focus-within {
    border-color: var(--module-accent);
}

.atlas-module-card--dispatch {
    --module-accent: #62b8c7;
}

.atlas-module-card--flow {
    --module-accent: #4fbf8f;
}

.atlas-module-card--settings {
    --module-accent: #9b85c8;
}

.atlas-module-card__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.82rem;
    align-items: start;
}

.atlas-module-card__icon,
.atlas-upcoming-card__icon {
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--module-accent, #b88b5a) 38%, transparent);
    border-radius: 10px;
    background: color-mix(in srgb, var(--module-accent, #b88b5a) 12%, transparent);
    color: var(--module-accent, #b88b5a);
}

.atlas-module-card__icon {
    width: 42px;
    height: 42px;
}

.atlas-module-card__icon svg,
.atlas-upcoming-card__icon svg {
    width: 22px;
    height: 22px;
}

.atlas-module-card h2 {
    margin: 0 0 0.38rem;
    font-size: clamp(1.28rem, 1.8vw, 1.55rem);
    letter-spacing: 0.035em;
}

.atlas-module-card p,
.atlas-upcoming-card p {
    margin: 0;
    color: #a5afbd;
    font-size: 0.92rem;
    line-height: 1.48;
}

.atlas-module-card__note {
    min-height: 2.7rem;
}

.atlas-module-card__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
    margin: 0;
}

.atlas-module-card__metrics div {
    border: 1px solid rgba(148, 163, 184, 0.11);
    border-radius: 10px;
    padding: 0.58rem 0.66rem;
    background: rgba(15, 23, 32, 0.48);
}

.atlas-module-card__metrics dt {
    color: #8f9aac;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.atlas-module-card__metrics dd {
    margin: 0.18rem 0 0;
    color: #f3f6f9;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1;
}

.atlas-module-card__cta {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 36px;
    border: 1px solid color-mix(in srgb, var(--module-accent) 34%, transparent);
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    color: color-mix(in srgb, var(--module-accent) 78%, #ffffff);
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.atlas-module-card__cta:hover,
.atlas-module-card__cta:focus-visible {
    border-color: var(--module-accent);
    outline: 0;
    background: color-mix(in srgb, var(--module-accent) 10%, transparent);
}

.atlas-upcoming-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
}

.atlas-upcoming-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.72rem;
    align-items: start;
    padding: 0.88rem;
    opacity: 0.72;
}

.atlas-upcoming-card__icon {
    width: 34px;
    height: 34px;
}

.atlas-upcoming-card__badge {
    display: inline-flex;
    margin-bottom: 0.36rem;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    padding: 0.16rem 0.42rem;
    color: #9aa6b8;
    font-size: 0.68rem;
    font-weight: 700;
}

.atlas-upcoming-card h3 {
    margin: 0 0 0.22rem;
    font-size: 1rem;
    letter-spacing: 0.06em;
}

.atlas-dashboard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 0.8rem 0 0.2rem;
    color: #8f9aac;
    font-size: 0.8rem;
}

.atlas-dashboard-footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    align-items: center;
}

.atlas-dashboard-footer strong {
    color: #d8dee7;
    letter-spacing: 0.08em;
}

.atlas-dashboard-footer dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 0.7rem 1.2rem;
    margin: 0;
}

.atlas-dashboard-footer dt {
    color: #6f7d90;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.atlas-dashboard-footer dd {
    margin: 0.1rem 0 0;
    color: #c8d0dc;
}

@media (max-width: 1024px) {
    .atlas-dashboard-hero {
        grid-template-columns: minmax(0, 1fr) 180px;
    }

    .atlas-module-grid,
    .atlas-upcoming-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow-active-meta,
    .flow-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .atlas-dashboard {
        width: min(100%, var(--page-fluid-width));
    }

    .atlas-dashboard-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .atlas-dashboard-orbit {
        display: none;
    }

    .atlas-module-grid,
    .atlas-upcoming-grid {
        grid-template-columns: 1fr;
    }

    .atlas-module-card {
        min-height: 0;
    }

    .flow-active-meta,
    .flow-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flow-session-row {
        grid-template-columns: 1fr;
    }

    .flow-action-row,
    .flow-session-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .atlas-dashboard-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .atlas-dashboard-footer dl {
        justify-content: start;
    }
}

@media (max-width: 640px) {
    .flow-active-meta,
    .flow-photo-grid,
    .flow-session-row dl {
        grid-template-columns: 1fr;
    }

    .delivery-background-layer.is-loaded.is-active {
        animation: none;
    }

    .delivery-file-row {
        grid-template-columns: 52px 1fr;
    }

    .delivery-file-thumb {
        width: 52px;
        height: 40px;
        border-radius: 10px;
    }

    .delivery-file-row a {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .delivery-background-layer {
        transition: none;
    }

    .delivery-background-layer.is-loaded.is-active {
        animation: none;
    }
}

.settings-profile-preview {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.9rem;
}

.settings-profile-avatar-preview {
    align-items: center;
    background: rgba(163, 107, 44, 0.18);
    border: 1px solid rgba(214, 169, 94, 0.3);
    border-radius: 999px;
    color: #f2c98c;
    display: grid;
    flex: 0 0 auto;
    font-size: 1.35rem;
    font-weight: 850;
    height: 76px;
    overflow: hidden;
    place-items: center;
    width: 76px;
}

.settings-profile-avatar-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.settings-profile-preview strong,
.settings-profile-preview p {
    margin: 0;
}

.settings-profile-preview p {
    color: var(--text-secondary);
}

.public-delivery-page {
    background:
        radial-gradient(circle at 18% 0%, rgba(184, 115, 51, 0.16), transparent 28%),
        linear-gradient(180deg, #07111f 0%, #0b1421 48%, #07111f 100%);
    color: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
}

.public-delivery-icons {
    display: none;
}

.public-delivery-icon {
    fill: none;
    flex: 0 0 auto;
    height: 1.25rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 1.25rem;
}

.public-delivery-topbar,
.public-delivery-shell,
.public-delivery-footer {
    margin-inline: auto;
    width: min(1180px, calc(100% - 2rem));
}

.public-delivery-topbar {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1.05rem 0;
}

.public-delivery-brand {
    align-items: center;
    color: #f8fafc;
    display: inline-flex;
    gap: 0.7rem;
}

.public-delivery-brand span {
    align-items: center;
    background: rgba(214, 169, 94, 0.14);
    border: 1px solid rgba(214, 169, 94, 0.34);
    border-radius: 8px;
    color: #f3c77f;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 850;
    gap: 0.4rem;
    min-height: 34px;
    padding: 0 0.65rem;
}

.public-delivery-brand strong {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
}

.public-delivery-topbar-meta {
    align-items: center;
    color: #aeb9c8;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.82rem;
    gap: 0.65rem;
    justify-content: flex-end;
}

.public-delivery-topbar-meta b {
    border: 1px solid rgba(78, 191, 148, 0.34);
    border-radius: 999px;
    color: #9ee7c7;
    font-size: 0.72rem;
    padding: 0.28rem 0.55rem;
}

.public-delivery-shell {
    display: grid;
    gap: 0.9rem;
}

.public-delivery-hero,
.public-delivery-profile,
.public-delivery-info,
.public-delivery-section {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.public-delivery-hero {
    border-radius: 14px;
    min-height: clamp(320px, 42vh, 360px);
    overflow: hidden;
    position: relative;
}

.public-delivery-hero-image {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.public-delivery-hero-overlay {
    background:
        linear-gradient(90deg, rgba(7, 17, 31, 0.9) 0%, rgba(7, 17, 31, 0.7) 46%, rgba(7, 17, 31, 0.42) 100%),
        linear-gradient(0deg, rgba(7, 17, 31, 0.72), rgba(7, 17, 31, 0.18));
    inset: 0;
    position: absolute;
}

.public-delivery-hero-content {
    align-content: center;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(190px, auto);
    gap: 1.2rem;
    min-height: inherit;
    padding: clamp(1.2rem, 3vw, 2.35rem);
    position: relative;
    z-index: 1;
}

.public-delivery-hero-main {
    align-content: center;
    display: grid;
    gap: 0.75rem;
}

.public-delivery-hero-actions {
    align-self: end;
    justify-self: end;
    margin-left: auto;
}

.public-delivery-kicker {
    color: #f3c77f;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.public-delivery-hero h1 {
    color: #f8fafc;
    font-size: clamp(1.8rem, 4.2vw, 3.75rem);
    font-weight: 900;
    line-height: 1.02;
    margin: 0;
    text-transform: uppercase;
}

.public-delivery-location {
    color: #d4deea;
    font-size: 1.02rem;
    margin: 0;
}

.public-delivery-hero-stats,
.public-delivery-info dl {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.public-delivery-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 590px;
}

.public-delivery-hero-stats div,
.public-delivery-info dl div {
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 10px;
    padding: 0.68rem 0.78rem;
}

.public-delivery-hero-stats dt,
.public-delivery-info dt {
    align-items: center;
    color: #94a3b8;
    display: flex;
    font-size: 0.82rem;
    font-weight: 850;
    gap: 0.36rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.public-delivery-hero-stats dt .public-delivery-icon {
    height: 1.3rem;
    width: 1.3rem;
}

.public-delivery-hero-stats dd,
.public-delivery-info dd {
    color: #f8fafc;
    font-weight: 760;
    margin: 0.12rem 0 0;
}

.public-delivery-download-all {
    align-items: center;
    border-radius: 13px;
    display: inline-flex;
    font-size: 1.04rem;
    font-weight: 760;
    gap: 0.56rem;
    justify-content: center;
    min-height: 60px;
    padding: 1rem 1.75rem;
    white-space: nowrap;
    width: max-content;
}

.public-delivery-download-all .public-delivery-icon {
    height: 1.18rem;
    width: 1.18rem;
}

.public-delivery-profile {
    align-items: center;
    border-radius: 12px;
    display: flex;
    gap: 1.65rem;
    min-height: 172px;
    padding: 1.65rem 1.85rem;
}

.public-delivery-avatar {
    align-items: center;
    background: rgba(214, 169, 94, 0.14);
    border: 1px solid rgba(214, 169, 94, 0.3);
    border-radius: 999px;
    color: #f3c77f;
    display: grid;
    flex: 0 0 auto;
    font-size: 2.4rem;
    font-weight: 850;
    height: 118px;
    overflow: hidden;
    place-items: center;
    width: 118px;
}

.public-delivery-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.public-delivery-profile-copy h2,
.public-delivery-profile-copy p {
    margin: 0;
}

.public-delivery-profile-copy {
    display: grid;
    gap: 0.42rem;
    min-width: 0;
}

.public-delivery-profile-copy h2 {
    color: #f8fafc;
    font-size: 1.62rem;
    font-weight: 740;
    line-height: 1.1;
}

.public-delivery-profile-copy p,
.public-delivery-profile-copy a {
    color: #aeb9c8;
    font-size: 1.06rem;
    margin-top: 0;
}

.public-delivery-profile-role {
    color: #f3c77f !important;
    font-size: 1.24rem !important;
    font-weight: 760;
    line-height: 1.2;
}

.public-delivery-profile-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem 1.1rem;
}

.public-delivery-profile-line {
    align-items: center;
    display: flex;
    gap: 0.52rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.public-delivery-profile-line .public-delivery-icon {
    color: #d6a95e;
    height: 1.45rem;
    width: 1.45rem;
}

.public-delivery-info,
.public-delivery-section {
    border-radius: 12px;
    padding: 0.9rem;
}

.public-delivery-info h2,
.public-delivery-section-header h2 {
    color: #f8fafc;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
}

.public-delivery-info h2 {
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    margin-bottom: 0.9rem;
    padding-bottom: 0.8rem;
}

.public-delivery-info dl {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
}

.public-delivery-info dl div {
    align-items: start;
    background: transparent;
    border: 0;
    border-radius: 0;
    display: grid;
    gap: 0.18rem 0.65rem;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0.2rem 0.9rem;
}

.public-delivery-info dl div + div {
    border-left: 1px solid rgba(148, 163, 184, 0.13);
}

.public-delivery-info dl div > .public-delivery-icon {
    color: #c4cedb;
    grid-row: 1 / 3;
    height: 1.62rem;
    margin-top: 0.08rem;
    width: 1.62rem;
}

.public-delivery-info dd {
    font-size: 1.18rem;
    font-weight: 800;
}

.public-delivery-section-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.7rem;
}

.public-delivery-section-header span {
    color: #94a3b8;
    font-size: 0.8rem;
}

.public-delivery-photo-grid {
    display: grid;
    gap: 0.62rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.public-delivery-photo-card,
.public-delivery-document-card {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 10px;
}

.public-delivery-photo-card {
    display: grid;
    gap: 0.58rem;
    padding: 0.55rem;
    transition: border-color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
}

.public-delivery-photo-card:hover,
.public-delivery-document-card:hover {
    background: rgba(18, 29, 48, 0.72);
    border-color: rgba(214, 169, 94, 0.24);
    transform: translateY(-1px);
}

.public-delivery-photo-thumb {
    aspect-ratio: 4 / 3;
    background: rgba(0, 20, 80, 0.56);
    border-radius: 8px;
    display: grid;
    max-height: 138px;
    overflow: hidden;
    place-items: center;
}

.public-delivery-photo-thumb img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.public-delivery-file-copy {
    min-width: 0;
}

.public-delivery-file-copy strong {
    color: #f1f5f9;
    display: block;
    font-size: 0.84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-delivery-file-copy p,
.public-delivery-empty {
    color: #94a3b8;
    font-size: 0.76rem;
    margin: 0.14rem 0 0;
}

.public-delivery-file-action {
    align-items: center;
    color: #f3c77f;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 750;
    gap: 0.34rem;
    text-decoration: none;
}

.public-delivery-file-action .public-delivery-icon {
    height: 1.2rem;
    width: 1.2rem;
}

.public-delivery-document-grid {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-delivery-document-card {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    min-height: 112px;
    padding: 0.9rem 1rem;
    transition: border-color var(--transition-fast), transform var(--transition-fast), background-color var(--transition-fast);
}

.public-delivery-document-icon {
    align-items: center;
    background: rgba(163, 107, 44, 0.2);
    border: 1px solid rgba(214, 169, 94, 0.28);
    border-radius: 10px;
    color: #f3c77f;
    display: grid;
    font-size: 0.72rem;
    font-weight: 850;
    height: 78px;
    justify-items: center;
    padding: 0.42rem 0.5rem;
    width: 70px;
}

.public-delivery-document-icon .public-delivery-icon {
    height: 2.7rem;
    width: 2.7rem;
}

.public-delivery-document-card .public-delivery-file-copy strong {
    font-size: 0.96rem;
}

.public-delivery-footer {
    align-items: center;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.78rem;
    gap: 0.55rem;
    justify-content: center;
    padding: 1.25rem 0 1.5rem;
}

.public-delivery-footer strong {
    align-items: center;
    color: #e5edf7;
    display: inline-flex;
    gap: 0.38rem;
}

@media (max-width: 920px) {
    .public-delivery-info dl,
    .public-delivery-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-delivery-info dl div:nth-child(odd) {
        border-left: 0;
    }

    .public-delivery-document-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .public-delivery-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .public-delivery-hero-stats,
    .public-delivery-info dl,
    .public-delivery-photo-grid {
        grid-template-columns: 1fr;
    }

    .public-delivery-hero-content {
        grid-template-columns: 1fr;
    }

    .public-delivery-hero-actions {
        justify-self: stretch;
        margin-left: 0;
    }

    .public-delivery-download-all {
        width: 100%;
    }

    .public-delivery-hero {
        min-height: 340px;
    }

    .public-delivery-profile,
    .public-delivery-document-card {
        align-items: flex-start;
    }

    .public-delivery-profile {
        padding: 1.2rem;
    }

    .public-delivery-avatar {
        height: 86px;
        width: 86px;
    }

    .public-delivery-document-card {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .public-delivery-document-card .public-delivery-file-action {
        grid-column: 2;
    }

    .public-delivery-info dl div,
    .public-delivery-info dl div + div {
        border-left: 0;
    }
}

.pulse-page {
    width: min(98vw, 1680px);
    padding-top: 0.7rem;
}

.pulse-shell {
    min-height: calc(100vh - 88px);
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #26313f;
    border-radius: 8px;
    background: #101820;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.pulse-sidebar {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-right: 1px solid #26313f;
    background: #111a23;
}

.pulse-brand,
.pulse-user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.pulse-brand-mark,
.pulse-user > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #f3f7fa;
    background: #b64b40;
    font-weight: 800;
}

.pulse-brand-mark::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12);
}

.pulse-brand strong {
    display: block;
    letter-spacing: 0.08em;
}

.pulse-brand span,
.pulse-user small,
.pulse-topbar p,
.pulse-section-heading span,
.pulse-event-copy p,
.pulse-event-copy dd,
.pulse-detail p {
    color: #9ba7b5;
}

.pulse-nav {
    overflow: auto;
}

.pulse-nav p {
    margin: 1rem 0 0.4rem;
    color: #6f7d8c;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.pulse-nav a {
    display: block;
    margin: 0.15rem 0;
    padding: 0.54rem 0.68rem;
    border-radius: 6px;
    color: #c8d1da;
    text-decoration: none;
    font-size: 0.88rem;
}

.pulse-nav a:hover,
.pulse-nav a.is-active {
    background: #1c2835;
    color: #ffffff;
}

.pulse-user {
    padding-top: 0.8rem;
    border-top: 1px solid #26313f;
}

.pulse-user > span {
    background: #203141;
    color: #dce6ef;
    font-size: 0.75rem;
}

.pulse-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: 0.85rem;
    padding: 1rem;
    background: #0f1720;
}

.pulse-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pulse-topbar h1,
.pulse-detail h2,
.pulse-section-heading h2,
.pulse-event-copy h3 {
    margin: 0;
    letter-spacing: 0;
}

.pulse-topbar p {
    margin: 0.25rem 0 0;
}

.pulse-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pulse-search,
.pulse-controls select,
.pulse-filter-button,
.pulse-icon-button {
    min-height: 38px;
    border: 1px solid #2b3847;
    border-radius: 6px;
    background: #15212c;
    color: #dce6ef;
}

.pulse-search {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0 0.7rem;
}

.pulse-search input {
    width: min(24vw, 290px);
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
}

.pulse-controls select,
.pulse-filter-button,
.pulse-icon-button {
    padding: 0 0.72rem;
}

.pulse-icon-button {
    width: 38px;
    padding: 0;
    font-weight: 900;
}

.pulse-demo-note {
    margin: 0;
    padding: 0.5rem 0.7rem;
    border: 1px solid rgba(183, 150, 86, 0.3);
    border-radius: 6px;
    color: #e5c778;
    background: rgba(183, 150, 86, 0.08);
    font-size: 0.84rem;
}

.pulse-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.pulse-metrics article,
.pulse-event-card,
.pulse-detail {
    border: 1px solid #26313f;
    border-radius: 8px;
    background: #141f2a;
}

.pulse-metrics article {
    padding: 0.8rem;
}

.pulse-metrics span,
.pulse-score span,
.pulse-event-copy dt {
    display: block;
    color: #8794a4;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pulse-metrics strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.7rem;
}

.pulse-metrics .is-urgent strong {
    color: #ff7d73;
}

.pulse-workgrid {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(430px, 1fr) minmax(330px, 420px);
    gap: 0.85rem;
}

.pulse-event-list,
.pulse-detail {
    min-width: 0;
}

.pulse-event-list {
    display: grid;
    align-content: start;
    gap: 0.65rem;
}

.pulse-section-heading,
.pulse-detail-head,
.pulse-event-meta,
.pulse-card-actions,
.pulse-detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.pulse-event-card {
    overflow: hidden;
}

.pulse-event-card.is-selected {
    border-color: rgba(182, 75, 64, 0.85);
    box-shadow: inset 3px 0 0 #b64b40;
}

.pulse-event-link {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr) 82px;
    gap: 0.8rem;
    padding: 0.75rem;
    text-decoration: none;
}

.pulse-event-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #203141;
}

.pulse-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse-event-thumb.is-empty {
    display: grid;
    place-items: center;
    color: #ffd0ca;
    font-weight: 900;
    font-size: 1.8rem;
}

.pulse-event-copy h3 {
    margin-top: 0.45rem;
    font-size: 1rem;
}

.pulse-event-copy p {
    margin: 0.35rem 0 0.55rem;
    line-height: 1.42;
}

.pulse-event-copy dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin: 0;
}

.pulse-event-copy dt,
.pulse-event-copy dd {
    margin: 0;
}

.pulse-priority,
.pulse-event-meta span:last-child {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    border-radius: 999px;
    padding: 0 0.52rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.pulse-priority--info {
    color: #b8d8ff;
    background: rgba(80, 139, 205, 0.18);
}

.pulse-priority--seguimiento {
    color: #ffe2a8;
    background: rgba(196, 149, 55, 0.18);
}

.pulse-priority--importante {
    color: #ffc2a8;
    background: rgba(218, 104, 55, 0.18);
}

.pulse-priority--urgente {
    color: #ffd2d2;
    background: rgba(230, 65, 56, 0.24);
}

.pulse-event-meta span:last-child {
    color: #bed0df;
    background: #203141;
}

.pulse-score {
    display: grid;
    place-items: center;
    align-self: stretch;
    border-left: 1px solid #26313f;
}

.pulse-score strong {
    font-size: 1.55rem;
}

.pulse-card-actions {
    justify-content: flex-end;
    padding: 0 0.75rem 0.75rem;
}

.pulse-card-actions form,
.pulse-detail-actions form {
    margin: 0;
}

.pulse-card-actions button,
.pulse-detail-actions button,
.pulse-detail-actions a {
    border: 1px solid #344557;
    border-radius: 6px;
    padding: 0.42rem 0.65rem;
    background: #1b2a38;
    color: #dce6ef;
    text-decoration: none;
    font-weight: 700;
}

.pulse-detail {
    align-self: start;
    padding: 0.9rem;
}

.pulse-detail-head span {
    color: #8794a4;
    font-size: 0.78rem;
}

.pulse-detail h2 {
    margin-top: 0.65rem;
    font-size: 1.15rem;
}

.pulse-tabs {
    display: flex;
    gap: 0.35rem;
    margin: 0.9rem 0;
    overflow-x: auto;
}

.pulse-tabs button {
    border: 1px solid #2b3847;
    border-radius: 999px;
    padding: 0.36rem 0.62rem;
    background: transparent;
    color: #aebccc;
    white-space: nowrap;
}

.pulse-tabs button.is-active {
    color: #ffffff;
    background: #b64b40;
    border-color: #b64b40;
}

.pulse-detail-score {
    padding: 0.75rem;
    border-radius: 8px;
    background: #101922;
}

.pulse-detail-score div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.45rem;
}

.pulse-detail-score progress {
    width: 100%;
    accent-color: #b64b40;
}

.pulse-detail-block {
    padding: 0.8rem 0;
    border-bottom: 1px solid #26313f;
}

.pulse-detail-block h3 {
    margin: 0 0 0.45rem;
    font-size: 0.78rem;
    color: #d7e0ea;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pulse-detail-block p {
    margin: 0.35rem 0 0;
    line-height: 1.45;
}

.pulse-chip-row,
.pulse-source-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pulse-chip-row span,
.pulse-source-list span {
    border-radius: 999px;
    padding: 0.3rem 0.55rem;
    color: #cbd6e0;
    background: #203141;
    font-size: 0.78rem;
}

.pulse-timeline {
    margin: 0;
    padding-left: 1.15rem;
    color: #aebccc;
}

.pulse-timeline li + li {
    margin-top: 0.35rem;
}

.pulse-detail-actions {
    justify-content: flex-start;
    margin-top: 0.8rem;
}

.pulse-detail-actions button:not(.is-muted),
.pulse-detail-actions a {
    border-color: #b64b40;
    background: #b64b40;
    color: #fff5f3;
}

.pulse-empty {
    padding: 1rem;
    border: 1px dashed #344557;
    border-radius: 8px;
}

@media (max-width: 1100px) {
    .pulse-shell,
    .pulse-workgrid {
        grid-template-columns: 1fr;
    }

    .pulse-sidebar {
        grid-template-rows: auto auto;
        border-right: 0;
        border-bottom: 1px solid #26313f;
    }

    .pulse-nav {
        display: flex;
        gap: 0.35rem;
        overflow-x: auto;
    }

    .pulse-nav p,
    .pulse-user {
        display: none;
    }
}

@media (max-width: 760px) {
    .pulse-topbar,
    .pulse-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .pulse-search input {
        width: 100%;
    }

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

    .pulse-event-link {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .pulse-score {
        grid-column: 1 / -1;
        min-height: 58px;
        border-top: 1px solid #26313f;
        border-left: 0;
    }

    .pulse-event-copy dl {
        grid-template-columns: 1fr;
    }
}
