:root {
    color-scheme: dark;
    --bg: #080c12;
    --surface-1: #0d131c;
    --surface-2: #111a25;
    --surface-3: #172231;
    --border: #243143;
    --text: #f4f7fb;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#blazor-error-ui {
    color-scheme: dark;
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    color: var(--text);
    bottom: 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.65rem 1.25rem 0.75rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .reload {
    margin-left: 0.75rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

#blazor-error-ui button.dismiss {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
}

#blazor-error-ui button.dismiss:hover {
    background: var(--surface-3);
    color: var(--text);
}

#blazor-error-ui.detailed-browser-error {
    max-height: min(72vh, 720px);
    overflow: auto;
    padding-right: 3rem;
}

.browser-error-details {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.browser-error-details-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.browser-error-details-header div {
    display: grid;
    gap: 0.25rem;
}

.browser-error-details-header span,
.browser-error-details summary,
.browser-error-details li {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.browser-error-details pre {
    max-height: 34vh;
    overflow: auto;
    margin: 0;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #060a10;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.45;
}

.copy-error-details {
    min-height: 34px;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    color: var(--text);
    cursor: pointer;
}

.copy-error-details:hover {
    border-color: var(--accent-hover);
}

.browser-error-details ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

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

a:hover {
    color: var(--text);
}

button,
input,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 3px;
}

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

.sidebar {
    position: sticky;
    top: 0;
    z-index: 60;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 18px;
    background: #0a0f16;
    border-right: 1px solid var(--border);
}

.brand {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 700;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.42);
    color: var(--accent-hover);
}

.nav-list {
    display: grid;
    gap: 8px;
}

.nav-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.nav-list a.active,
.nav-list a:hover {
    color: var(--text);
    background: rgba(59, 130, 246, 0.14);
}

.nav-list a.nav-subitem {
    min-height: 38px;
    margin-left: 14px;
    padding-block: 8px;
    font-size: 0.92rem;
}

.nav-list a.nav-subitem span {
    opacity: 0.82;
}

.nav-section {
    margin: 18px 12px 4px;
    color: var(--text-muted);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.account-menu {
    margin-top: auto;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
}

.language-switcher {
    display: inline-flex;
    width: fit-content;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
    background: rgba(13, 19, 28, 0.78);
}

.sidebar .language-switcher {
    margin-top: auto;
}

.install-button {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(96, 165, 250, 0.36);
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.16);
    color: var(--text);
    cursor: pointer;
    font-weight: 800;
}

.install-button:hover {
    background: rgba(59, 130, 246, 0.24);
}

.install-icon-button {
    font-size: 1.25rem;
    font-weight: 900;
}

.sidebar .language-switcher + .account-menu {
    margin-top: 0;
}

.language-option {
    min-width: 38px;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.language-option:hover,
.language-option.active {
    background: rgba(59, 130, 246, 0.18);
    color: var(--text);
}

.account-button {
    min-height: 52px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--text);
}

.account-button:hover {
    background: var(--surface-2);
    color: var(--text);
}

.account-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.42);
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.16);
    color: var(--accent-hover);
    font-size: 0.92rem;
    font-weight: 800;
}

.account-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.account-copy span,
.account-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-copy span {
    font-weight: 800;
}

.account-copy small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.logout-button {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    border: 1px solid rgba(239, 68, 68, 0.38);
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    cursor: pointer;
    font-weight: 800;
}

.logout-button:hover {
    background: rgba(239, 68, 68, 0.16);
}

.main-area {
    min-width: 0;
}

.mobile-bar {
    display: none;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-account-menu {
    position: relative;
    flex: 0 0 auto;
}

.mobile-account-trigger {
    list-style: none;
}

.mobile-account-trigger::-webkit-details-marker {
    display: none;
}

.mobile-account-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 180px;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
    box-shadow: var(--shadow);
}

.mobile-account-panel a,
.mobile-account-panel button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-weight: 800;
}

.mobile-account-panel a {
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
}

.mobile-account-panel button {
    border: 1px solid rgba(239, 68, 68, 0.38);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
    cursor: pointer;
}

.account-manage-header {
    margin-bottom: 18px;
}

.account-manage-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.account-manage-menu {
    position: sticky;
    top: 24px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    box-shadow: var(--shadow);
}

.account-settings-nav {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-settings-link {
    min-height: 44px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 800;
}

.account-settings-link span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.account-settings-link:hover,
.account-settings-link.active {
    border-color: rgba(96, 165, 250, 0.32);
    background: rgba(59, 130, 246, 0.14);
    color: var(--text);
}

.account-settings-link:hover span,
.account-settings-link.active span {
    border-color: rgba(96, 165, 250, 0.42);
    background: rgba(59, 130, 246, 0.16);
    color: var(--accent-hover);
}

.account-manage-content {
    min-width: 0;
}

.account-manage-content h3 {
    margin: 0 0 18px;
    font-size: 1.2rem;
    letter-spacing: 0;
}

.account-manage-content h4,
.account-manage-content h5 {
    margin: 18px 0 10px;
    letter-spacing: 0;
}

.account-manage-content p,
.account-manage-content dl {
    color: var(--text-muted);
}

.account-manage-content .row {
    display: block;
}

.account-manage-content [class*="col-"] {
    width: min(560px, 100%);
}

.account-manage-content form,
.account-manage-content .form-section-lite {
    display: grid;
    gap: 16px;
}

.account-manage-content .form-floating {
    display: grid;
    gap: 7px;
    margin-bottom: 0;
}

.account-manage-content .form-floating > label,
.account-manage-content .form-label {
    order: -1;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.account-manage-content .form-control {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    padding: 10px 12px;
}

.account-manage-content .form-control::placeholder {
    color: transparent;
}

.account-manage-content .form-control:disabled,
.account-manage-content .form-control[readonly] {
    background: rgba(23, 34, 49, 0.62);
    color: var(--text-muted);
    cursor: not-allowed;
}

.account-manage-content .form-control:focus {
    border-color: var(--accent-hover);
    outline: 2px solid rgba(96, 165, 250, 0.28);
    outline-offset: 0;
}

.account-manage-content .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
}

.account-manage-content .input-group > label {
    grid-column: 1 / -1;
}

.account-manage-content .input-group-append {
    display: contents;
}

.account-manage-content .input-group-text {
    min-height: 44px;
    display: grid;
    place-items: center;
    padding: 0 14px;
    border: 1px solid rgba(34, 197, 94, 0.38);
    border-radius: var(--radius-sm);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-weight: 900;
}

.account-manage-content .text-danger,
.account-manage-content .validation-message {
    color: #fecaca;
}

.account-manage-content .text-success {
    color: #86efac;
}

.account-manage-content .alert {
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin: 0 0 16px;
}

.account-manage-content .alert-info {
    border: 1px solid rgba(96, 165, 250, 0.36);
    background: rgba(59, 130, 246, 0.12);
    color: #bfdbfe;
}

.account-manage-content .alert-warning {
    border: 1px solid rgba(245, 158, 11, 0.4);
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
}

.account-manage-content .validation-summary-errors {
    border: 1px solid rgba(239, 68, 68, 0.42);
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
    padding: 12px 14px;
}

.account-manage-content .validation-summary-valid {
    display: none;
}

.account-manage-content .btn,
.account-manage-content button.btn,
.account-manage-content a.btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-align: center;
}

.account-manage-content .btn-primary {
    background: var(--accent);
    color: white;
}

.account-manage-content .btn-primary:hover {
    background: var(--accent-hover);
    color: white;
}

.account-manage-content .btn-danger {
    border-color: rgba(239, 68, 68, 0.48);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.account-manage-content .btn-link {
    min-height: 36px;
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent-hover);
}

.account-manage-content .w-100 {
    width: 100%;
}

.account-manage-content .table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.account-manage-content .table th,
.account-manage-content .table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.account-manage-content .table th {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
}

.account-manage-content .table tr:last-child td {
    border-bottom: 0;
}

.account-manage-content .table form {
    display: inline-grid;
}

.content-wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 32px;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.page-header h1,
.empty-state h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.page-header p,
.empty-state p {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--text-muted);
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--accent-hover);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.panel,
.asset-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    box-shadow: var(--shadow);
}

.panel {
    padding: 22px;
}

.toolbar {
    margin-bottom: 18px;
    padding: 14px 18px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    text-align: center;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

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

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

.button-secondary,
.button-ghost {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text);
}

.button-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.48);
    color: #fecaca;
}

.action-row,
.card-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.asset-command-bar {
    display: grid;
    grid-template-columns: minmax(22rem, 1.5fr) minmax(16rem, 1fr) auto;
    gap: 12px;
    margin: -8px 0 18px;
}

.asset-command-group {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    background: var(--surface-1);
    box-shadow: var(--shadow);
}

.asset-command-group-public {
    min-width: 0;
}

.asset-command-group-danger {
    min-width: 9rem;
}

.asset-command-heading,
.asset-command-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.asset-command-heading {
    min-height: 28px;
}

.asset-command-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.asset-command-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.asset-command-status.published {
    border-color: rgba(34, 197, 94, 0.32);
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
}

.asset-command-status.draft {
    border-color: rgba(245, 158, 11, 0.28);
    background: rgba(245, 158, 11, 0.09);
    color: #fcd34d;
}

.asset-command-status.reserved {
    border-color: rgba(168, 85, 247, 0.34);
    background: rgba(168, 85, 247, 0.12);
    color: #d8b4fe;
}

.asset-command-bar .button {
    min-height: 38px;
    padding-inline: 12px;
}

.asset-public-phone-field {
    min-width: min(100%, 15rem);
    display: grid;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.asset-public-phone-field .input {
    min-height: 38px;
    font-size: 0.92rem;
    font-weight: 500;
    text-transform: none;
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 16px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    display: grid;
    align-content: space-between;
    gap: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--asset-card-accent, rgba(96, 165, 250, 0.64));
    opacity: 0.86;
}

.dashboard-stat-green {
    --asset-card-accent: #22c55e;
    --asset-card-accent-soft: rgba(34, 197, 94, 0.12);
    --asset-card-accent-border: rgba(34, 197, 94, 0.32);
    --asset-card-accent-text: #86efac;
}

.dashboard-stat-blue {
    --asset-card-accent: #3b82f6;
    --asset-card-accent-soft: rgba(59, 130, 246, 0.13);
    --asset-card-accent-border: rgba(96, 165, 250, 0.34);
    --asset-card-accent-text: #bfdbfe;
}

.dashboard-stat-purple {
    --asset-card-accent: #a855f7;
    --asset-card-accent-soft: rgba(168, 85, 247, 0.13);
    --asset-card-accent-border: rgba(192, 132, 252, 0.34);
    --asset-card-accent-text: #e9d5ff;
}

.dashboard-stat-amber {
    --asset-card-accent: #f59e0b;
    --asset-card-accent-soft: rgba(245, 158, 11, 0.13);
    --asset-card-accent-border: rgba(251, 191, 36, 0.34);
    --asset-card-accent-text: #fde68a;
}

.dashboard-stat-green,
.dashboard-stat-blue,
.dashboard-stat-purple,
.dashboard-stat-amber {
    border-color: var(--asset-card-accent-border);
    background: linear-gradient(135deg, var(--asset-card-accent-soft), var(--surface-1) 44%);
}

.stat-card strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 1.55rem;
    line-height: 1.15;
    letter-spacing: 0;
}

.stat-card span:last-child,
.empty-inline {
    color: var(--text-muted);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-stat-green .stat-label,
.dashboard-stat-blue .stat-label,
.dashboard-stat-purple .stat-label,
.dashboard-stat-amber .stat-label {
    color: var(--asset-card-accent-text);
}

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

.section-heading h2 {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0;
}

.asset-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.asset-list li {
    display: block;
}

.asset-list-link {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
}

.dashboard-asset-link::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--asset-card-accent, rgba(96, 165, 250, 0.64));
}

.dashboard-asset-link {
    border-color: var(--asset-card-accent-border);
    background: linear-gradient(135deg, var(--asset-card-accent-soft), var(--surface-2) 46%);
}

.asset-list-link:hover,
.asset-list-link:focus-visible {
    border-color: color-mix(in srgb, var(--asset-card-accent, var(--accent-hover)) 54%, var(--border));
    background: color-mix(in srgb, var(--surface-2) 82%, var(--asset-card-accent, var(--accent)) 18%);
    color: var(--text);
}

.asset-list-link:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.42);
    outline-offset: 2px;
}

.asset-list-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.asset-list-photo {
    width: 64px;
    height: 54px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-3);
}

.asset-list-photo-empty {
    display: block;
}

.asset-list h3 {
    margin: 9px 0 4px;
    font-size: 1rem;
    letter-spacing: 0;
}

.asset-list p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.asset-list strong {
    min-width: max-content;
    font-size: 0.98rem;
}

.asset-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0;
    overflow: hidden;
    padding: 0;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.asset-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--asset-card-accent, rgba(96, 165, 250, 0.64));
    opacity: 0.86;
    z-index: 1;
}

.asset-card:hover,
.asset-card:focus-within {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--asset-card-accent, var(--accent-hover)) 54%, var(--border));
    background: color-mix(in srgb, var(--surface-1) 88%, var(--asset-card-accent, var(--accent)) 12%);
}

.asset-card-green {
    --asset-card-accent: #22c55e;
    --asset-card-accent-soft: rgba(34, 197, 94, 0.12);
    --asset-card-accent-border: rgba(34, 197, 94, 0.32);
    --asset-card-accent-text: #86efac;
}

.asset-card-blue {
    --asset-card-accent: #3b82f6;
    --asset-card-accent-soft: rgba(59, 130, 246, 0.13);
    --asset-card-accent-border: rgba(96, 165, 250, 0.34);
    --asset-card-accent-text: #bfdbfe;
}

.asset-card-purple {
    --asset-card-accent: #a855f7;
    --asset-card-accent-soft: rgba(168, 85, 247, 0.13);
    --asset-card-accent-border: rgba(192, 132, 252, 0.34);
    --asset-card-accent-text: #e9d5ff;
}

.asset-card-amber {
    --asset-card-accent: #f59e0b;
    --asset-card-accent-soft: rgba(245, 158, 11, 0.13);
    --asset-card-accent-border: rgba(251, 191, 36, 0.34);
    --asset-card-accent-text: #fde68a;
}

.asset-card-red {
    --asset-card-accent: #ef4444;
    --asset-card-accent-soft: rgba(239, 68, 68, 0.12);
    --asset-card-accent-border: rgba(248, 113, 113, 0.34);
    --asset-card-accent-text: #fecaca;
}

.asset-card-muted {
    --asset-card-accent: #64748b;
    --asset-card-accent-soft: rgba(100, 116, 139, 0.14);
    --asset-card-accent-border: rgba(148, 163, 184, 0.28);
    --asset-card-accent-text: #cbd5e1;
}

.asset-card-photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    background: var(--surface-2);
    color: var(--text-muted);
}

.asset-card-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.asset-card-photo-empty span {
    font-size: 0.86rem;
    font-weight: 700;
}

.asset-card-body {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 14px 16px 16px;
}

.asset-card-title-row {
    display: grid;
    gap: 8px;
}

.asset-card h2 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.asset-public-offer-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 28px;
}

.asset-public-offer-row a {
    color: var(--accent-hover);
    font-size: 0.84rem;
    font-weight: 800;
}

.asset-public-offer-row a:hover {
    color: var(--text);
}

.asset-public-offer-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(34, 197, 94, 0.32);
    border-radius: 999px;
    padding: 0 9px;
    background: rgba(34, 197, 94, 0.1);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.asset-type-chip {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(17, 26, 37, 0.68);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    font-size: 0.84rem;
    font-weight: 700;
}

.status-badge-green,
.status-badge-blue,
.status-badge-purple,
.status-badge-amber,
.status-badge-red,
.status-badge-muted {
    background: var(--asset-card-accent-soft);
    border-color: var(--asset-card-accent-border);
    color: var(--asset-card-accent-text);
}

.asset-card-highlight {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.asset-card-highlight span {
    min-width: 0;
    display: grid;
    gap: 4px;
    border: 1px solid var(--asset-card-accent-border);
    border-radius: var(--radius-sm);
    padding: 10px;
    background: linear-gradient(135deg, var(--asset-card-accent-soft), rgba(17, 26, 37, 0.52));
}

.asset-card-highlight small {
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.asset-card-highlight strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.96rem;
    line-height: 1.2;
}

.asset-card-facts {
    gap: 0;
    border-top: 1px solid var(--border);
}

.asset-card-facts div {
    grid-template-columns: minmax(7.5rem, 0.85fr) minmax(0, 1fr);
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.asset-card-facts div:last-child {
    border-bottom: 0;
}

.asset-card-facts dd {
    text-align: right;
}

.asset-card-footer {
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    background: rgba(13, 19, 28, 0.4);
}

.asset-card-footer .button {
    width: 100%;
    min-height: 38px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.public-site-domain-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.public-site-domain-list span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.92rem;
}

.public-site-settings-actions {
    margin-top: 18px;
}

.public-site-image-control {
    display: grid;
    grid-template-columns: minmax(10rem, 18rem) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: var(--surface-2);
}

.public-site-image-control img,
.public-site-image-placeholder {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-1);
}

.public-site-image-control img {
    height: 8rem;
    object-fit: contain;
}

.public-site-image-control.banner-control img,
.public-site-image-control.banner-control .public-site-image-placeholder {
    height: 11rem;
    object-fit: cover;
}

.public-site-image-placeholder {
    min-height: 8rem;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    text-align: center;
}

.public-site-image-control.banner-control .public-site-image-placeholder {
    min-height: 11rem;
}

.public-site-image-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.public-site-image-actions small {
    flex-basis: 100%;
    color: var(--text-muted);
}

.public-site-upload-button {
    position: relative;
    overflow: hidden;
}

.public-site-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.public-set-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-color: rgba(245, 158, 11, 0.28);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), var(--surface-1) 48%);
}

.public-set-notice h2,
.public-set-notice p {
    margin: 0;
}

.public-set-notice span {
    min-width: max-content;
    border: 1px solid rgba(245, 158, 11, 0.34);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(245, 158, 11, 0.12);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 800;
}

.public-set-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.public-set-list-card {
    display: grid;
    gap: 14px;
}

.public-set-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.public-set-list-item {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.public-set-list-item:hover,
.public-set-list-item:focus-visible,
.public-set-list-item.active {
    border-color: rgba(96, 165, 250, 0.58);
    background: rgba(59, 130, 246, 0.12);
}

.public-set-list-main,
.public-set-list-meta {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.public-set-list-main strong,
.public-set-list-main small {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-set-list-main small,
.public-set-list-meta small {
    color: var(--text-muted);
}

.public-set-list-meta {
    justify-items: end;
}

.public-set-builder,
.public-set-preview-card {
    display: grid;
    gap: 18px;
}

.public-set-upload-card {
    display: grid;
    gap: 1rem;
}

.public-set-upload-surface {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: rgba(8, 12, 18, 0.26);
}

.public-set-upload-summary {
    min-width: 0;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.public-set-upload-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.1);
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
}

.public-set-upload-summary strong {
    display: block;
    color: var(--text);
}

.public-set-upload-summary small {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.public-set-image-warning {
    border-color: rgba(245, 158, 11, 0.38);
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.public-set-upload-field {
    position: relative;
    overflow: hidden;
    min-height: 4.75rem;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(96, 165, 250, 0.42);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), var(--surface-2) 62%);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.public-set-upload-field:hover,
.public-set-upload-field:focus-within {
    border-color: rgba(147, 197, 253, 0.86);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), var(--surface-2) 58%);
}

.public-set-upload-field span {
    pointer-events: none;
    color: #bfdbfe;
    font-size: 0.9rem;
    font-weight: 800;
}

.public-set-upload-actions {
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 0.7rem;
}

.public-set-upload-actions .button {
    width: 100%;
}

.public-set-heading-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
}

.public-set-delete-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: var(--radius-md);
    padding: 0.9rem;
    background: rgba(127, 29, 29, 0.14);
}

.public-set-delete-confirm strong {
    color: #fecaca;
}

.public-set-delete-confirm p {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    line-height: 1.45;
}

.public-set-delete-actions {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

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

.public-set-form-grid label {
    display: grid;
    gap: 6px;
}

.public-set-form-grid label span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-set-form-grid label small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.public-set-description-field {
    grid-column: 1 / -1;
}

.public-set-description-field textarea {
    min-height: 7rem;
    resize: vertical;
}

.public-set-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.public-set-assets {
    display: grid;
    gap: 12px;
}

.public-set-add-area-controls {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) minmax(14rem, 22rem) auto auto;
    gap: 0.6rem;
    align-items: center;
}

.section-heading.compact {
    align-items: center;
    margin-bottom: 0;
}

.section-heading.compact h3 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0;
}

.public-set-table {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.public-set-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(5rem, 0.9fr) minmax(6rem, 0.8fr) minmax(7rem, 0.9fr) minmax(7rem, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: var(--text);
    text-align: left;
}

.public-set-row:last-child {
    border-bottom: 0;
}

.public-set-row.header {
    background: rgba(17, 26, 37, 0.76);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.public-set-row.selectable {
    appearance: none;
    border-top: 0;
    border-right: 0;
    border-left: 0;
    background: transparent;
    cursor: pointer;
}

.public-set-row:not(.header):hover {
    background: rgba(59, 130, 246, 0.08);
}

.public-set-row.selectable.active {
    background: rgba(59, 130, 246, 0.14);
    box-shadow: inset 3px 0 0 rgba(96, 165, 250, 0.84);
}

.public-set-row-actions {
    display: flex;
    justify-content: flex-end;
}

.button-compact {
    min-height: 2rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
}

.public-set-row-empty {
    color: var(--text-muted);
}

.public-set-state {
    display: grid;
    gap: 0.65rem;
    max-width: 46rem;
}

.public-set-state h2 {
    margin: 0;
}

.public-set-state p {
    margin: 0;
    color: var(--text-muted);
}

.public-set-state-error {
    border-color: rgba(248, 113, 113, 0.32);
}

.public-set-preview-image {
    width: 100%;
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.public-set-preview-placeholder {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.4rem;
    border: 1px dashed rgba(96, 165, 250, 0.34);
    border-radius: var(--radius-md);
    background: rgba(8, 12, 18, 0.34);
    color: var(--text);
    text-align: center;
}

.public-set-preview-placeholder span {
    max-width: 30rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.public-set-editor-card {
    order: -1;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.plot-editor-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
}

.plot-editor-shell .public-set-preview-image {
    border: 0;
    border-radius: 0;
}

.plot-editor-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    touch-action: none;
    user-select: none;
}

.plot-editor-polygon {
    cursor: pointer;
    stroke: rgba(226, 232, 240, 0.74);
    stroke-width: 0.28;
    stroke-dasharray: 1.2 0.8;
    transition: fill 0.16s ease, stroke 0.16s ease, stroke-width 0.16s ease, filter 0.16s ease;
}

.plot-editor-available {
    fill: rgba(34, 197, 94, 0.3);
}

.plot-editor-reserved {
    fill: rgba(148, 163, 184, 0.34);
}

.plot-editor-sold {
    fill: rgba(15, 23, 42, 0.58);
}

.plot-editor-polygon:hover,
.plot-editor-polygon.selected {
    stroke: #60a5fa;
    stroke-width: 0.48;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.56));
}

.plot-editor-polygon {
    cursor: move;
}

.plot-editor-label {
    cursor: move;
    fill: var(--text);
    font-size: 2.45px;
    font-weight: 900;
    paint-order: stroke;
    stroke: rgba(8, 12, 18, 0.74);
    stroke-width: 0.22;
    user-select: none;
}

.plot-editor-handle {
    cursor: grab;
    fill: #bfdbfe;
    stroke: #1d4ed8;
    stroke-width: 0.34;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.plot-editor-overlay.dragging,
.plot-editor-overlay.dragging .plot-editor-handle,
.plot-editor-overlay.dragging .plot-editor-polygon,
.plot-editor-overlay.dragging .plot-editor-label {
    cursor: grabbing;
}

.plot-editor-grid {
    pointer-events: none;
}

.plot-editor-grid-line {
    fill: none;
    stroke: rgba(191, 219, 254, 0.24);
    stroke-width: 0.12;
}

.plot-editor-actions,
.plot-editor-point-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plot-snap-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    background: rgba(17, 26, 37, 0.58);
}

.plot-snap-size {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
}

.plot-snap-size span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plot-snap-size .input {
    min-height: 38px;
}

.plot-editor-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    background: rgba(17, 26, 37, 0.58);
}

.public-set-editor-card > .detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plot-editor-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.plot-editor-field-grid label,
.plot-point-row label {
    display: grid;
    gap: 5px;
}

.plot-editor-field-grid label span,
.plot-point-row label span {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.plot-point-list {
    display: grid;
    gap: 8px;
    max-height: 18rem;
    overflow: auto;
    padding-right: 2px;
}

.plot-point-row {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: end;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    background: rgba(13, 19, 28, 0.62);
}

.plot-point-row.active {
    border-color: rgba(96, 165, 250, 0.64);
    background: rgba(59, 130, 246, 0.12);
}

.plot-point-row .input {
    min-height: 36px;
    padding: 7px 9px;
}

.compact-list,
.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.compact-list div,
.detail-list div {
    display: grid;
    gap: 4px;
}

dt {
    color: var(--text-muted);
    font-size: 0.82rem;
}

dd {
    margin: 0;
}

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

.status-strip {
    margin-bottom: 16px;
}

.status-strip .detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.archive-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.archive-actions h2 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.detail-main-photo {
    width: min(260px, 30vw);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.photo-panel {
    margin-bottom: 16px;
}

.map-panel {
    grid-column: 1 / -1;
    margin-bottom: 16px;
}

.success-panel {
    margin-bottom: 16px;
}

.new-created-grid {
    display: grid;
    gap: 16px;
}

.success-panel h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.success-panel p {
    margin: 0;
    color: var(--text-muted);
}

.section-note {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-section-heading {
    margin: 18px 0 12px;
}

.asset-detail-tabs {
    position: sticky;
    top: 0;
    z-index: 55;
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    margin: 0 0 18px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(13, 19, 28, 0.92);
    backdrop-filter: blur(14px);
}

.asset-detail-tab {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    white-space: nowrap;
}

.asset-detail-tab:hover,
.asset-detail-tab:focus-visible {
    background: rgba(59, 130, 246, 0.12);
    color: var(--text);
}

.asset-detail-tab.active {
    border-color: rgba(96, 165, 250, 0.36);
    background: rgba(59, 130, 246, 0.16);
    color: var(--text);
}

.asset-detail-section {
    scroll-margin-top: 76px;
}

.section-heading-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.map-shell {
    position: relative;
    z-index: 0;
    isolation: isolate;
    min-height: 340px;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #edf2f7;
}

.map-canvas {
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 340px;
    background: #edf2f7;
}

.map-canvas .leaflet-pane,
.map-canvas .leaflet-top,
.map-canvas .leaflet-bottom,
.public-offer-map .leaflet-pane,
.public-offer-map .leaflet-top,
.public-offer-map .leaflet-bottom {
    z-index: 1;
}

.map-canvas .leaflet-popup-pane,
.public-offer-map .leaflet-popup-pane {
    z-index: 2;
}

.map-canvas .leaflet-tile-pane {
    filter: brightness(1.06) saturate(1.02) contrast(0.96);
}

.map-canvas .leaflet-control-attribution,
.map-canvas .leaflet-popup-content-wrapper,
.map-canvas .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.94);
    color: #1f2937;
}

.map-canvas .leaflet-control-attribution a,
.map-canvas .leaflet-popup-content a {
    color: #2563eb;
}

.map-fallback {
    min-height: 340px;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 18px;
    background:
        linear-gradient(rgba(96, 165, 250, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 165, 250, 0.12) 1px, transparent 1px),
        radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.24), transparent 18%),
        var(--surface-3);
    background-size: 34px 34px, 34px 34px, 100% 100%;
    color: var(--text-muted);
    text-align: center;
}

.map-fallback strong {
    color: var(--text);
}

.map-loading,
.map-error {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(8, 12, 18, 0.72);
    color: var(--text-muted);
    text-align: center;
    pointer-events: none;
}

.map-error {
    color: #fecaca;
    gap: 0.75rem;
    pointer-events: auto;
}

.map-error span {
    display: block;
}

.map-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.map-controls .button.active {
    border-color: color-mix(in srgb, var(--warning) 70%, var(--border));
    background: color-mix(in srgb, var(--warning) 18%, var(--surface-2));
    color: var(--text);
}

.map-note {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.map-empty {
    min-height: 340px;
    display: grid;
    place-items: center;
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-muted);
    text-align: center;
}

.map-empty strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}

.photo-dropzone {
    position: relative;
    min-height: 168px;
    display: grid;
    place-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 22px;
    border: 1px dashed rgba(96, 165, 250, 0.58);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    text-align: center;
}

.photo-dropzone:hover,
.photo-dropzone:focus-within {
    border-color: var(--accent-hover);
    background: var(--surface-3);
}

.photo-dropzone.is-uploading {
    cursor: wait;
    opacity: 0.72;
}

.photo-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-input:disabled {
    cursor: wait;
}

.dropzone-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.46);
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.16);
    color: var(--accent-hover);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.dropzone-title {
    font-weight: 800;
}

.dropzone-subtitle {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    align-items: start;
}

.photo-tile {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    cursor: grab;
    transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.photo-tile:active {
    cursor: grabbing;
}

.photo-tile:hover {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.photo-tile.is-dragging {
    border-color: var(--accent-hover);
    opacity: 0.62;
    transform: scale(0.98);
}

.photo-frame {
    position: relative;
    overflow: hidden;
}

.photo-frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    background: var(--surface-3);
}

.photo-overlay {
    position: absolute;
    inset: 10px 10px auto 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.drag-handle,
.main-photo-pill {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(244, 247, 251, 0.16);
    background: rgba(8, 12, 18, 0.74);
    color: var(--text);
    backdrop-filter: blur(10px);
}

.drag-handle {
    width: 34px;
    justify-content: center;
    font-weight: 800;
    letter-spacing: -0.12rem;
}

.main-photo-pill {
    padding: 0 10px;
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 800;
}

.photo-tile figcaption {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.photo-tile figcaption span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-tile figcaption strong {
    flex: 0 0 auto;
    color: #86efac;
}

.photo-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-3);
    color: var(--text);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
}

.icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.danger-icon {
    border-color: rgba(239, 68, 68, 0.44);
    color: #fecaca;
}

.danger-icon:hover {
    background: rgba(239, 68, 68, 0.12);
}

.photo-empty {
    min-height: 112px;
    display: grid;
    place-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text-muted);
    text-align: center;
}

.photo-empty strong {
    color: var(--text);
}

.document-panel {
    display: grid;
    gap: 1rem;
}

.document-upload {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(13rem, 18rem);
    gap: 1rem;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: rgba(8, 12, 18, 0.26);
}

.document-description-field {
    min-width: 0;
}

.document-dropzone {
    position: relative;
    overflow: hidden;
    min-height: 7.25rem;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0.35rem;
    border: 1px dashed var(--asset-card-accent-border, rgba(96, 165, 250, 0.42));
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), var(--surface-2) 62%);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.16s ease, background 0.16s ease;
}

.document-dropzone .photo-input {
    z-index: 2;
}

.document-dropzone .dropzone-icon,
.document-dropzone .dropzone-title,
.document-dropzone .dropzone-subtitle {
    pointer-events: none;
}

.document-dropzone:hover,
.document-dropzone:focus-within {
    border-color: rgba(147, 197, 253, 0.86);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), var(--surface-2) 58%);
}

.document-dropzone.is-uploading {
    cursor: progress;
    opacity: 0.72;
}

.document-list {
    display: grid;
    gap: 0.65rem;
}

.document-row {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.document-row:hover {
    border-color: rgba(96, 165, 250, 0.36);
    background: color-mix(in srgb, var(--surface-2) 72%, rgba(59, 130, 246, 0.1));
}

.document-icon {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.1);
    color: #bfdbfe;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0;
}

.document-details {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.document-details strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    white-space: nowrap;
}

.document-details span {
    color: var(--text-muted);
    font-size: 0.84rem;
}

.document-details p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.document-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.document-actions .button {
    min-height: 36px;
    padding-inline: 0.75rem;
}

.timeline-panel {
    overflow: hidden;
}

.timeline-heading {
    align-items: center;
}

.timeline-add-button {
    min-width: 136px;
}

.timeline-add-button span {
    font-size: 1.25rem;
    line-height: 1;
}

.asset-timeline {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 6px 0 8px;
}

.asset-timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 34px;
    left: 148px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.48), rgba(148, 163, 184, 0.16));
}

.timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 116px 40px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.timeline-date {
    min-width: 0;
    padding-top: 19px;
    color: var(--text-muted);
    text-align: right;
}

.timeline-date time {
    display: grid;
    gap: 5px;
}

.timeline-date span {
    font-size: 0.84rem;
}

.timeline-date strong {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.1;
}

.timeline-rail-node {
    position: relative;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-top: 10px;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 999px;
    background: var(--surface-1);
    color: var(--text-muted);
    box-shadow: 0 0 0 6px var(--surface-1);
}

.timeline-rail-node span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1;
}

.timeline-card {
    min-width: 0;
    position: relative;
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(23, 34, 49, 0.88), rgba(13, 19, 28, 0.82));
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.timeline-card-top {
    min-width: 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.timeline-title-block {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 12px;
}

.timeline-title-block h3 {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 1.06rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.timeline-card-time {
    display: none;
    width: 100%;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.timeline-type-pill {
    flex: 0 0 auto;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.timeline-description {
    max-width: 78ch;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text-muted);
    line-height: 1.55;
}

.timeline-status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: start;
    min-height: 28px;
    padding: 3px 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(8, 12, 18, 0.26);
    color: var(--text-muted);
    font-size: 0.84rem;
}

.timeline-status-line strong {
    color: var(--text);
}

.timeline-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timeline-action-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(17, 26, 37, 0.76);
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 800;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.timeline-action-button svg,
.timeline-data-row svg,
.timeline-party-name svg,
.button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timeline-action-button:hover,
.timeline-action-button:focus-visible {
    border-color: rgba(96, 165, 250, 0.5);
    background: rgba(59, 130, 246, 0.16);
    color: var(--text);
    transform: translateY(-1px);
}

.timeline-action-button:active {
    transform: translateY(0);
}

.timeline-action-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.timeline-action-danger {
    border-color: rgba(239, 68, 68, 0.36);
    color: #fca5a5;
}

.timeline-action-danger:hover,
.timeline-action-danger:focus-visible {
    border-color: rgba(239, 68, 68, 0.58);
    background: rgba(239, 68, 68, 0.13);
    color: #fecaca;
}

.timeline-party-card {
    display: grid;
    gap: 12px;
    margin-top: 2px;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(8, 12, 18, 0.18);
}

.timeline-party-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #fde68a;
}

.timeline-party-name strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.timeline-party-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.timeline-data-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 22px minmax(74px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.timeline-data-row span {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.timeline-data-row a,
.timeline-data-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--text);
}

.timeline-data-row a:hover {
    color: var(--accent-hover);
}

.timeline-party-note,
.timeline-party-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.timeline-party-empty {
    color: #cbd5e1;
}

.timeline-event-baseline .timeline-card {
    opacity: 0.76;
    border-style: dashed;
    box-shadow: none;
}

.timeline-event-baseline .timeline-card h3 {
    color: #cbd5e1;
}

.timeline-card-amber .timeline-card {
    border-left-color: #f59e0b;
}

.timeline-card-purple .timeline-card {
    border-left-color: #a855f7;
}

.timeline-card-green .timeline-card {
    border-left-color: #22c55e;
}

.timeline-card-red .timeline-card {
    border-left-color: #ef4444;
}

.timeline-card-blue .timeline-card {
    border-left-color: #3b82f6;
}

.timeline-card-neutral .timeline-card,
.timeline-card-muted .timeline-card {
    border-left-color: #64748b;
}

.timeline-node-amber {
    border-color: rgba(245, 158, 11, 0.58);
    color: #fbbf24;
}

.timeline-node-amber span {
    background: rgba(245, 158, 11, 0.17);
}

.timeline-node-purple {
    border-color: rgba(168, 85, 247, 0.6);
    color: #c084fc;
}

.timeline-node-purple span {
    background: rgba(168, 85, 247, 0.17);
}

.timeline-node-green {
    border-color: rgba(34, 197, 94, 0.58);
    color: #86efac;
}

.timeline-node-green span {
    background: rgba(34, 197, 94, 0.16);
}

.timeline-node-red {
    border-color: rgba(239, 68, 68, 0.58);
    color: #fca5a5;
}

.timeline-node-red span {
    background: rgba(239, 68, 68, 0.16);
}

.timeline-node-blue {
    border-color: rgba(59, 130, 246, 0.58);
    color: #93c5fd;
}

.timeline-node-blue span {
    background: rgba(59, 130, 246, 0.17);
}

.timeline-pill-amber {
    border-color: rgba(245, 158, 11, 0.36);
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.timeline-pill-purple {
    border-color: rgba(168, 85, 247, 0.38);
    background: rgba(168, 85, 247, 0.13);
    color: #d8b4fe;
}

.timeline-pill-green {
    border-color: rgba(34, 197, 94, 0.34);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.timeline-pill-red {
    border-color: rgba(239, 68, 68, 0.36);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.timeline-pill-blue {
    border-color: rgba(59, 130, 246, 0.38);
    background: rgba(59, 130, 246, 0.13);
    color: #93c5fd;
}

.timeline-pill-neutral {
    border-color: rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

.timeline-state {
    min-height: 156px;
    display: grid;
    place-items: center;
    gap: 7px;
    padding: 22px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(17, 26, 37, 0.62);
    color: var(--text-muted);
    text-align: center;
}

.timeline-state strong {
    color: var(--text);
}

.timeline-state-icon,
.timeline-empty-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.36);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-hover);
    font-size: 1.3rem;
    font-weight: 900;
}

.timeline-state-loading .timeline-state-icon {
    border-top-color: var(--accent-hover);
    animation: spin 900ms linear infinite;
}

.timeline-event-modal {
    width: min(760px, 100%);
    max-height: min(760px, calc(100vh - 36px));
    overflow: auto;
    background: linear-gradient(180deg, rgba(23, 34, 49, 0.98), rgba(13, 19, 28, 0.98));
}

.timeline-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.timeline-modal-heading h2 {
    margin: 0;
}

.timeline-event-form {
    display: grid;
    gap: 16px;
}

.timeline-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.timeline-form-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.06);
}

.timeline-form-section h3 {
    margin: 0;
    font-size: 0.95rem;
    letter-spacing: 0;
}

.button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(244, 247, 251, 0.36);
    border-top-color: currentColor;
    border-radius: 999px;
    animation: spin 900ms linear infinite;
}

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

.photo-skeleton {
    min-height: 180px;
    background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
}

.detail-grid h2,
.form-section h2,
.empty-state h2 {
    margin: 0 0 16px;
    font-size: 1.05rem;
    letter-spacing: 0;
}

.asset-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
}

.asset-form > :not(.asset-form-actions) {
    grid-column: 1;
}

.asset-form-actions {
    position: fixed;
    top: 50%;
    right: max(12px, env(safe-area-inset-right));
    transform: translateY(-50%);
    z-index: 30;
    grid-column: auto;
    grid-row: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: auto;
    justify-self: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    background: rgba(13, 19, 28, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.asset-form-actions .asset-form-action-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.asset-form-actions .primary-icon {
    background: var(--accent);
    border-color: transparent;
    color: white;
}

.asset-form-actions .primary-icon:hover,
.asset-form-actions .primary-icon:focus-visible {
    background: var(--accent-hover);
}

.form-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    padding: 20px;
}

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

.field {
    display: grid;
    gap: 7px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.bilingual-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 650;
}

.required-marker {
    color: var(--warning);
    margin-left: 0.2rem;
}

.label-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.location-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.location-tab {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    padding: 0.55rem 0.75rem;
    cursor: pointer;
}

.location-tab.active {
    border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
    background: color-mix(in srgb, var(--accent) 18%, var(--surface-2));
}

.location-search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.75rem;
    align-items: end;
}

.location-search-row .button {
    min-height: 42px;
}

.location-results {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.location-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface-2) 74%, transparent);
}

.location-result.active,
.location-result:focus-within {
    border-color: color-mix(in srgb, var(--accent) 62%, var(--border));
    background: color-mix(in srgb, var(--accent) 12%, var(--surface-2));
}

.location-result div {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}

.location-result-actions {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem !important;
}

.location-result strong {
    overflow-wrap: anywhere;
}

.location-result span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.location-warning {
    color: var(--warning) !important;
}

.teryt-lookup {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 0.9rem;
}

.teryt-results {
    display: grid;
    gap: 0.5rem;
}

.teryt-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.teryt-result div {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.teryt-result strong {
    overflow-wrap: anywhere;
}

.teryt-result span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.location-select-map {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.location-select-map-canvas {
    min-height: 320px;
}

.offer-public-shell {
    display: grid;
    gap: 1.1rem;
    max-width: 76rem;
    margin: 0 auto;
}

.offer-public-topbar,
.offer-public-hero,
.offer-contact-band,
.offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.offer-public-topbar {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.offer-public-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
    background: rgba(13, 19, 28, 0.78);
}

.offer-public-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.offer-public-tabs a:hover,
.offer-public-tabs a.active {
    color: var(--text);
    background: rgba(59, 130, 246, 0.18);
}

.offer-public-hero {
    align-items: end;
    padding: 1rem 0 0.35rem;
}

.offer-public-hero h1 {
    margin: 0.45rem 0 0.4rem;
    max-width: 48rem;
    font-size: clamp(2rem, 4vw, 3.6rem);
    letter-spacing: 0;
}

.offer-back-link,
.offer-location-line {
    color: var(--text-muted);
}

.offer-back-link {
    display: flex;
    width: fit-content;
    margin-bottom: 1.1rem;
    text-decoration: none;
}

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

.offer-type-pill,
.offer-status-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.7rem;
    border: 1px solid rgba(34, 197, 94, 0.28);
    border-radius: 999px;
    padding: 0.22rem 0.65rem;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 0.78rem;
    font-weight: 700;
}

.offer-status-pill.tone-warning {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

.offer-status-pill.tone-danger {
    border-color: rgba(239, 68, 68, 0.32);
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
}

.offer-location-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-weight: 600;
}

.offer-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    gap: 0.8rem;
    margin-top: 1.1rem;
}

.offer-hero-metrics span {
    display: grid;
    gap: 0.2rem;
    min-width: 8.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    background: rgba(17, 26, 37, 0.72);
    color: var(--text-muted);
    font-size: 0.82rem;
}

.offer-hero-metrics strong {
    color: var(--text);
    font-size: 1rem;
}

.offer-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
    gap: 1.1rem;
    align-items: start;
}

.offer-preview-main,
.offer-preview-side {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.offer-gallery {
    position: relative;
    min-height: 26rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
}

.offer-gallery-main {
    display: block;
    width: 100%;
    height: min(55vh, 32rem);
    object-fit: cover;
}

.offer-gallery-count {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.55rem;
    background: rgba(8, 12, 18, 0.78);
    color: var(--text);
    font-weight: 700;
}

.offer-gallery-empty {
    display: grid;
    place-content: center;
    gap: 0.35rem;
    min-height: 26rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.offer-gallery-empty strong {
    color: var(--text);
}

.offer-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.offer-thumbnail-button {
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0;
    background: var(--surface-1);
    cursor: pointer;
    overflow: hidden;
}

.offer-thumbnail-button:hover,
.offer-thumbnail-button:focus-visible,
.offer-thumbnail-button.active {
    border-color: rgba(96, 165, 250, 0.72);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.18);
}

.offer-thumbnail-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-thumbnail-more {
    display: grid;
    place-items: center;
    color: var(--text);
    font-weight: 800;
}

.offer-description-card,
.offer-price-card,
.offer-map-card {
    gap: 0.75rem;
}

.offer-description-card h2,
.offer-price-card h2,
.offer-map-card h2 {
    margin: 0;
}

.offer-description-card p {
    margin: 0;
    max-width: 62rem;
    color: var(--text);
    line-height: 1.65;
}

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

.offer-price-card {
    position: sticky;
    top: 1rem;
    display: grid;
}

.offer-price-card span,
.offer-price-card small {
    color: var(--text-muted);
}

.offer-price-card strong {
    color: var(--text);
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.1;
}

.offer-price-card .button {
    justify-content: center;
    margin-top: 0.65rem;
}

.offer-fact-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
}

.offer-fact-list div {
    display: grid;
    grid-template-columns: minmax(7rem, 0.9fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.offer-fact-list dt {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.offer-fact-list dd {
    margin: 0;
    color: var(--text);
    text-align: right;
    font-weight: 700;
}

.offer-fact-list.compact {
    gap: 0.8rem;
}

.offer-preview-location {
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
}

.offer-map-preview {
    position: relative;
    min-height: 12rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background:
        linear-gradient(135deg, rgba(59, 130, 246, 0.18), transparent 32%),
        linear-gradient(25deg, transparent 0 42%, rgba(148, 163, 184, 0.16) 42% 44%, transparent 44% 100%),
        linear-gradient(145deg, transparent 0 58%, rgba(148, 163, 184, 0.12) 58% 60%, transparent 60% 100%),
        var(--surface-2);
}

.public-offer-map {
    background: var(--surface-2);
}

.map-empty {
    display: grid;
    place-items: center;
    min-height: inherit;
    padding: 1rem;
    color: var(--text-muted);
    text-align: center;
}

.offer-map-preview > span {
    position: absolute;
    left: 52%;
    top: 47%;
    width: 1.4rem;
    height: 1.4rem;
    border: 0.3rem solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    background: var(--accent);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0.4rem rgba(59, 130, 246, 0.14);
}

.offer-map-card p {
    margin: 0;
}

.offer-safety-card ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-muted);
}

.offer-safety-card li::marker {
    color: var(--accent-hover);
}

.offer-contact-band {
    margin-top: 0.3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    background: var(--surface-2);
}

.offer-contact-band h2,
.offer-contact-band p {
    margin: 0;
}

.offer-contact-band p,
.offer-footer {
    color: var(--text-muted);
}

.offer-footer {
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .offer-public-hero,
    .offer-preview-layout,
    .offer-public-grid,
    .offer-contact-band {
        grid-template-columns: 1fr;
    }

    .offer-public-hero,
    .offer-contact-band {
        display: grid;
        align-items: start;
    }

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

    .offer-price-card {
        position: static;
    }
}

@media (max-width: 620px) {
    .offer-public-shell {
        gap: 0.85rem;
    }

    .offer-public-topbar,
    .offer-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .offer-public-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .offer-public-tabs a {
        flex: 1 0 max-content;
        justify-content: center;
    }

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

    .offer-gallery,
    .offer-gallery-empty {
        min-height: 18rem;
    }

    .offer-gallery-main {
        height: 20rem;
    }

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

    .offer-fact-list div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .offer-fact-list dd {
        text-align: left;
    }
}

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

.parcel-row {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.parcel-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1rem;
    background: rgba(8, 12, 18, 0.34);
}

.parcel-row-title {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.parcel-row-title span {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.parcel-row-title strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 0.98rem;
}

.parcel-row-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.parcel-row-actions .button {
    min-height: 36px;
    padding-inline: 0.75rem;
}

.parcel-row-body {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.parcel-main-grid,
.parcel-advanced-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
}

.parcel-main-grid .field,
.parcel-advanced-grid .field {
    gap: 0.45rem;
}

.parcel-advanced {
    border-top: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
    padding-top: 0.75rem;
}

.parcel-advanced summary {
    width: fit-content;
    border-radius: 6px;
    padding: 0.25rem 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
}

.parcel-advanced summary:hover {
    color: var(--text);
}

.parcel-advanced[open] summary {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.parcel-geojson-input {
    min-height: 7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.82rem;
    line-height: 1.45;
}

.parcel-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}

.parcel-flags .toggle {
    min-height: 34px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.total-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem;
    background: rgba(8, 12, 18, 0.26);
    color: var(--text);
}

@media (max-width: 720px) {
    .parcel-row-header {
        display: grid;
        gap: 0.75rem;
    }

    .parcel-row-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .parcel-row-actions .button {
        width: 100%;
    }

    .parcel-main-grid,
    .parcel-advanced-grid {
        grid-template-columns: 1fr;
    }

    .parcel-flags,
    .total-area {
        display: grid;
    }
}

.field-wide {
    grid-column: 1 / -1;
}

.input {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    padding: 10px 12px;
}

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

.input-invalid {
    border-color: var(--danger);
}

.field-error {
    color: #fecaca;
    font-size: 0.84rem;
}

.alert {
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 18px;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.alert-danger {
    border: 1px solid rgba(239, 68, 68, 0.42);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.alert-success {
    border: 1px solid rgba(34, 197, 94, 0.38);
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.empty-state,
.loading-block {
    text-align: center;
}

.empty-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--accent-hover);
}

.toggle {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.toggle input {
    width: 18px;
    height: 18px;
}

.skeleton {
    min-height: 210px;
}

.skeleton div {
    height: 18px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
}

.preline {
    white-space: pre-line;
    color: var(--text-muted);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
    z-index: 20;
}

.modal {
    width: min(460px, 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    padding: 22px;
}

.modal h2 {
    margin-top: 0;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(280px, 380px);
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px;
    background: var(--bg);
}

.auth-card,
.auth-side-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    box-shadow: var(--shadow);
}

.auth-card {
    padding: 28px;
}

.auth-state-card {
    width: min(520px, 100%);
}

.auth-side-panel {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.auth-heading {
    display: grid;
    gap: 28px;
    margin-bottom: 24px;
}

.auth-heading h1,
.auth-side-panel h2 {
    margin: 0;
    letter-spacing: 0;
}

.auth-heading h1 {
    font-size: 2rem;
    line-height: 1.1;
}

.auth-side-panel h2 {
    font-size: 1.25rem;
}

.auth-heading p:not(.eyebrow),
.auth-side-panel p,
.auth-footer-text,
.auth-provider-empty p {
    margin: 8px 0 0;
    color: var(--text-muted);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-submit {
    width: 100%;
}

.auth-toggle {
    justify-content: flex-start;
    font-size: 0.94rem;
}

.auth-toggle input {
    accent-color: var(--accent);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding-top: 4px;
    font-size: 0.92rem;
}

.auth-footer-text {
    text-align: center;
}

.auth-provider-empty,
.auth-provider-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}

.auth-provider-empty strong {
    color: var(--text);
}

.auth-points {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--text-muted);
    list-style: none;
}

.auth-points li {
    position: relative;
    padding-left: 18px;
}

.auth-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent-hover);
}

.validation-summary:empty {
    display: none;
}

.validation-message {
    color: #fecaca;
}

.blazor-error-boundary {
    background: var(--danger);
    padding: 1rem;
    color: white;
}

@media (max-width: 820px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .mobile-bar {
        position: sticky;
        top: 0;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
        background: rgba(8, 12, 18, 0.94);
        border-bottom: 1px solid var(--border);
    }

    .content-wrap {
        padding: 20px 16px 32px;
    }

    .page-header {
        display: grid;
    }

    .page-header h1 {
        font-size: 1.65rem;
    }

    .asset-command-bar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        margin-top: -4px;
    }

    .asset-command-group,
    .asset-command-group-danger {
        display: grid;
    }

    .asset-command-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .asset-command-bar .button {
        width: 100%;
    }

    .document-upload,
    .public-set-upload-surface,
    .document-row {
        grid-template-columns: 1fr;
    }

    .document-icon {
        width: fit-content;
        min-width: 3rem;
        height: 2rem;
        padding-inline: 0.6rem;
    }

    .document-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .document-actions .button {
        width: 100%;
    }

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

    .asset-form > :not(.asset-form-actions) {
        grid-column: 1;
    }

    .asset-card-facts div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .asset-card-facts dd {
        text-align: left;
    }

    .detail-grid,
    .form-grid,
    .summary-grid,
    .dashboard-grid,
    .account-manage-layout {
        grid-template-columns: 1fr;
    }

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

    .archive-actions {
        display: grid;
    }

    .account-manage-menu {
        position: static;
        overflow-x: auto;
        padding: 10px;
    }

    .account-settings-nav {
        display: flex;
        gap: 8px;
        min-width: max-content;
    }

    .account-settings-link {
        grid-template-columns: 28px max-content;
        padding: 7px 9px;
    }

    .section-heading,
    .asset-list-link {
        display: grid;
    }

    .page-header-actions,
    .page-header-actions .button {
        width: 100%;
    }

    .public-set-notice,
    .public-set-layout,
    .public-set-editor-card,
    .public-set-list,
    .public-set-form-grid,
    .plot-editor-field-grid {
        display: grid;
        grid-template-columns: 1fr;
    }

    .plot-point-row {
        grid-template-columns: 2.4rem minmax(0, 1fr);
    }

    .plot-point-row label:last-child {
        grid-column: 2;
    }

    .plot-snap-controls {
        grid-template-columns: 1fr;
    }

    .public-set-add-area-controls {
        grid-template-columns: 1fr;
    }

    .public-set-notice span {
        min-width: 0;
        width: fit-content;
    }

    .public-set-table {
        overflow-x: auto;
    }

    .public-set-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .public-set-row.header {
        display: none;
    }

    .public-set-row-actions {
        justify-content: stretch;
    }

    .public-set-row-actions .button {
        width: 100%;
    }

    .asset-detail-tabs {
        top: 57px;
        flex-wrap: wrap;
        overflow-x: visible;
        margin-inline: -2px;
        padding: 5px;
    }

    .asset-detail-tab {
        flex: 1 1 calc(50% - 4px);
        min-height: 38px;
        padding: 0 8px;
    }

    .asset-detail-section {
        scroll-margin-top: 118px;
    }

    .asset-list-main {
        align-items: flex-start;
    }

    .detail-main-photo {
        width: 100%;
        max-width: 420px;
    }

    .asset-list strong {
        min-width: 0;
    }

    .button {
        width: 100%;
    }

    .timeline-heading {
        align-items: stretch;
    }

    .asset-timeline {
        gap: 14px;
    }

    .asset-timeline::before {
        left: 20px;
        top: 24px;
        bottom: 24px;
    }

    .timeline-event {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
    }

    .timeline-date {
        display: none;
    }

    .timeline-rail-node {
        grid-column: 1;
        margin-top: 8px;
    }

    .timeline-card {
        grid-column: 2;
        padding: 15px;
    }

    .timeline-card-top {
        display: grid;
        gap: 12px;
    }

    .timeline-card-time {
        display: block;
    }

    .timeline-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-action-button {
        width: 100%;
        min-height: 38px;
    }

    .timeline-party-grid,
    .timeline-form-grid {
        grid-template-columns: 1fr;
    }

    .timeline-data-row {
        grid-template-columns: 22px minmax(0, 1fr);
        gap: 4px 8px;
    }

    .timeline-data-row span {
        grid-column: 2;
    }

    .timeline-data-row a,
    .timeline-data-row strong {
        grid-column: 2;
    }

    .timeline-modal-heading {
        align-items: center;
    }

    .mobile-actions .button,
    .mobile-actions .icon-button {
        width: auto;
    }

    .auth-page {
        min-height: 100vh;
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
        padding: 18px;
        background: var(--bg);
    }

    .auth-card,
    .auth-side-panel {
        padding: 20px;
    }

    .auth-heading {
        gap: 22px;
    }

    .auth-heading h1 {
        font-size: 1.65rem;
    }

    .auth-links {
        display: grid;
    }
}
