html, body {
    font-family: 'Cabin', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.map-viewport {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background: #e8f4f8;
}

.map-error-overlay {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(220, 53, 69, 0.92);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    max-width: 90vw;
    text-align: center;
    font-size: 0.875rem;
}

.map-error-detail {
    margin-top: 0.5rem;
    text-align: left;
    font-size: 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 40vh;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

/* ── Dev WebSocket console bar ──────────────────────────────────────────── */
.ws-console {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9200;
    height: 18vh;
    min-height: 80px;
    max-height: 50vh;
    resize: vertical;
    overflow: hidden;
    background: rgba(13, 17, 23, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    font-family: 'Consolas', 'SFMono-Regular', monospace;
    font-size: 0.7rem;
}

.ws-console-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.2rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.ws-console-title {
    font-weight: 600;
    color: #74c0fc;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.65rem;
}

.ws-console-count {
    color: #6c757d;
    font-size: 0.65rem;
    flex: 1;
}

.ws-console-clear {
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: #6c757d;
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
}

.ws-console-clear:hover {
    color: #dee2e6;
    border-color: rgba(255,255,255,0.3);
}

.ws-copy-confirm {
    font-size: 0.65rem;
    color: #6fcf97;
    font-style: italic;
}

.ws-console-show-btn {
    position: fixed;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(30,30,30,0.85);
    border: 1px solid rgba(255,255,255,0.15);
    color: #6c757d;
    font-size: 0.65rem;
    font-family: inherit;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    z-index: 1100;
}

.ws-console-show-btn:hover {
    color: #dee2e6;
    border-color: rgba(255,255,255,0.3);
}

.ws-console-body {
    overflow-y: auto;
    flex: 1;
}

.ws-log-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.1rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    line-height: 1.4;
    cursor: pointer;
}

.ws-log-row:hover {
    background: rgba(255,255,255,0.04);
}

.ws-log-row--selected {
    background: rgba(116, 192, 252, 0.12);
}

.ws-log-row--selected:hover {
    background: rgba(116, 192, 252, 0.18);
}

.ws-log-row:last-child {
    border-bottom: none;
}

.ws-log-time {
    color: #6c757d;
    white-space: nowrap;
    flex-shrink: 0;
}

.ws-log-header {
    color: #63e6be;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 12em;
}

.ws-log-raw {
    color: #adb5bd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-detail-pane {
    display: flex;
    flex-direction: column;
    height: 40%;
    min-height: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    background: rgba(22, 27, 34, 0.98);
}

.ws-detail-header {
    display: flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
    gap: 0.5rem;
}

.ws-detail-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #74c0fc;
    flex: 1;
}

.ws-detail-body {
    margin: 0;
    padding: 0.4rem 0.6rem;
    overflow: auto;
    flex: 1;
    color: #e9ecef;
    white-space: pre;
    font-size: 0.68rem;
    line-height: 1.45;
}

/* ── Full-screen splash / loading overlay ───────────────────────────────── */
.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    background: #080d14 url('/img/splash.jpg') center / cover no-repeat;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: splash-in 0.7s ease both;
}

.splash-overlay--out {
    animation: splash-out 0.65s ease forwards;
}

@keyframes splash-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes splash-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.splash-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(8, 13, 20, 0.97) 0%,
        rgba(8, 13, 20, 0.55) 30%,
        rgba(8, 13, 20, 0.08) 65%,
        transparent 100%
    );
}

.splash-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    padding: 0 2rem 7vh;
    text-align: center;
}

.splash-logo {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.65);
    line-height: 1;
}

.splash-logo em {
    color: #0d6e6b;
    font-style: normal;
}

.splash-tagline {
    font-size: clamp(0.65rem, 1.4vw, 0.8rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
    margin-top: -0.25rem;
}

.splash-bar-wrap {
    width: clamp(180px, 28vw, 280px);
    height: 2px;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
}

.splash-bar {
    height: 100%;
    width: 50%;
    background: linear-gradient(90deg, transparent, #74c0fc, transparent);
    border-radius: 2px;
    animation: splash-sweep 1.4s ease-in-out infinite;
}

@keyframes splash-sweep {
    0%   { transform: translateX(-200%); }
    100% { transform: translateX(400%); }
}

.splash-status {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.28);
}

/* ── Left-edge icon sidebar ─────────────────────────────────────────────── */
.map-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 44px;
    height: 100vh;
    z-index: 9100;
    background: rgba(22, 27, 34, 0.92);
    backdrop-filter: blur(6px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0.25rem;
}

.sidebar-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    color: #6c757d;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}

.sidebar-btn svg {
    width: 18px;
    height: 18px;
}

.sidebar-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #dee2e6;
}

.sidebar-btn--active {
    background: rgba(116, 192, 252, 0.15);
    color: #74c0fc;
}

.sidebar-btn--active:hover {
    background: rgba(116, 192, 252, 0.25);
    color: #a5d8ff;
}

.sidebar-separator {
    width: 26px;
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 0.2rem 0;
    flex-shrink: 0;
}

/* Container for panels that float to the right of the sidebar */
.map-sidebar-panels {
    position: fixed;
    left: 48px;
    top: 1rem;
    z-index: 9000;
    display: block;
    overflow-y: auto;
    max-height: calc(100vh - 2rem);
    width: 260px;
}

/* Container for panels that float on the right edge */
.map-right-panels {
    position: fixed;
    right: 0.75rem;
    top: 0.6rem;
    z-index: 9000;
    width: 360px;
    max-height: calc(100vh - 1.2rem);
    overflow: visible;
    display: flex;
    flex-direction: column;
    --right-panel-gap: 0.5rem;
    --panel-connector-protrusion: 9px;
    gap: var(--right-panel-gap);
    pointer-events: none;
}

/* Restore interactivity on everything inside the container;
   only the container's own empty areas remain click-through. */
.map-right-panels > * {
    pointer-events: auto;
}

/* Plan detail / create-plan panels — fixed to bottom-right, grow upward */
.map-plan-panels {
    position: fixed;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 295px;
    z-index: 9000;
    pointer-events: none;
}

/* Shared text baseline for all panels */
.layer-panel,
.legend-panel,
.users-panel,
.plans-panel {
    font-size: 0.8125rem;
}

/* Online users panel */
.users-panel {
    background: rgba(33, 37, 41, 0.65);
    color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem 0.6rem;
    width: 100%;
    box-sizing: border-box;
    height: 15vh;
    min-height: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: vertical;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);
    margin-bottom: 0.5rem;
}

.users-panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.users-panel-content {
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    box-sizing: border-box;
    padding-right: 0.65rem;
    flex: 1;
    min-height: 0;
}

.users-panel-title {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    flex: 1;
}

.users-refresh-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 3px 4px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.users-refresh-btn:hover {
    color: #dee2e6;
    background: rgba(255,255,255,0.08);
}

.users-refresh-btn svg {
    width: 12px;
    height: 12px;
}

.panel-close-btn {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.panel-close-btn:hover {
    color: #dee2e6;
    background: rgba(255,255,255,0.08);
}

.user-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.18rem 0;
}

.user-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #dee2e6;
}

.users-status {
    color: #adb5bd;
    font-size: 0.75rem;
    padding: 0.2rem 0;
}

.users-status--error {
    color: #ff6b6b;
}

.users-my-country {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.75rem;
    color: #adb5bd;
}

/* Plans panel — free-floating, centred by default, draggable via header */
.plans-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9600;
    width: 340px;
    height: 50vh;
    min-height: 120px;
    min-width: 240px;
    max-height: 80vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: both;
    background: rgba(33, 37, 41, 0.65);
    color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem 0.6rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.60);
}

/* Once the panel has been dragged, JS removes transform and sets explicit left/top */
.plans-panel--dragged {
    transform: none;
}

.plans-panel-drag-handle {
    cursor: grab;
    user-select: none;
}

.plans-panel-drag-handle:active {
    cursor: grabbing;
}

.plans-panel-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
}

.plans-panel-content {
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    box-sizing: border-box;
    padding-right: 0.65rem;
    flex: 1;
    min-height: 0;
}

.plans-panel-title {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    flex: 1;
}

.plans-panel-count {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.12);
    color: #adb5bd;
    border-radius: 9px;
    padding: 0.05rem 0.4rem;
}

.plan-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.22rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
}

.plan-row:hover {
    background: rgba(255,255,255,0.06);
}

.plan-row--selected {
    background: rgba(255, 215, 0, 0.12);
}

.plan-row--selected .plan-name {
    color: #FFD700;
}

.plan-row:last-child {
    border-bottom: none;
}

/* Issue badge in plans-panel rows */
.plan-issue-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 2px;
}

.plan-issue-badge-icon {
    width: 100%;
    height: 100%;
}

.plan-issue-badge--error   { color: #ff6b6b; }
.plan-issue-badge--warning { color: #FFD700; }
.plan-issue-badge--info    { color: #74c0fc; }

.plan-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #dee2e6;
}

.plan-date {
    flex-shrink: 0;
    font-size: 0.7rem;
    color: #adb5bd;
    white-space: nowrap;
}

.plan-state {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    background: rgba(255,255,255,0.12);
    color: #adb5bd;
}
.plan-state--design      { background: rgba(13,110,253,0.25); color: #74b8ff; }
.plan-state--approval    { background: rgba(255,193,7,0.25);  color: #ffe08a; }
.plan-state--approved    { background: rgba(25,135,84,0.25);  color: #75d4a0; }
.plan-state--implemented { background: rgba(25,135,84,0.45);  color: #a8efca; }
.plan-state--rejected    { background: rgba(220,53,69,0.25);  color: #f08080; }

.plans-status {
    color: #adb5bd;
    font-size: 0.75rem;
    padding: 0.2rem 0;
}

.plan-group {
    margin-top: 0.25rem;
}

.plan-group-header {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #adb5bd;
    padding: 0.15rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.plan-group-header::-webkit-details-marker { display: none; }
.plan-group-header::before {
    content: '\25BC';
    font-size: 0.55rem;
    transition: transform 0.15s;
}
.plan-group[open] > .plan-group-header::before { transform: rotate(0deg); }
.plan-group:not([open]) > .plan-group-header::before { transform: rotate(-90deg); }

.plan-group-count {
    margin-left: auto;
    font-size: 0.68rem;
    background: rgba(255,255,255,0.10);
    color: #adb5bd;
    border-radius: 8px;
    padding: 0.05rem 0.35rem;
    font-weight: 400;
}

.plan-group > .plan-row {
    padding-left: 0.6rem;
}

.plans-empty-state {
    padding: 0.15rem 0.6rem 0.25rem;
    font-size: 0.68rem;
    color: #adb5bd;
    font-style: italic;
}

/* Layer selection panel */
.layer-panel {
    background: rgba(33, 37, 41, 0.65);
    color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem 0.6rem;
    width: 100%;
    box-sizing: border-box;
    height: 45vh;
    min-height: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: vertical;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);
    margin-bottom: 0.5rem;
}

.layer-panel-title {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    margin-bottom: 0.4rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.layer-panel-content {
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    box-sizing: border-box;
    padding-right: 0.65rem;
    flex: 1;
    min-height: 0;
}

.layer-search {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.3rem;
    color: #f8f9fa;
    font-size: 0.78rem;
    padding: 0.2rem 0.45rem;
    margin-bottom: 0.4rem;
    outline: none;
}

.layer-search::placeholder {
    color: #6c757d;
}

.layer-search:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
}

.layer-panel-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.2rem 0 0.2rem 1rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.layer-panel-row:hover .layer-panel-name {
    color: #fff;
}

.layer-panel-row input[type="checkbox"] {
    accent-color: #74c0fc;
    cursor: pointer;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.layer-panel-name {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #dee2e6;
}

/* Hierarchical category/subcategory groups */
.layer-cat,
.layer-sub {
    margin-top: 0.25rem;
}

.layer-cat-header,
.layer-sub-header {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #adb5bd;
    padding: 0.15rem 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.layer-cat-header::before {
    content: '\25BC';
    font-size: 0.55rem;
    transition: transform 0.15s;
}

.layer-cat[open] > .layer-cat-header::before { transform: rotate(0deg); }
.layer-cat:not([open]) > .layer-cat-header::before { transform: rotate(-90deg); }

.layer-sub-header {
    font-weight: 500;
    font-size: 0.68rem;
    color: #adb5bd;
    padding-left: 0.5rem;
}

.layer-sub-header::before {
    content: '\25B8';
    font-size: 0.55rem;
    transition: transform 0.15s;
}

.layer-sub[open] > .layer-sub-header::before { content: '\25BE'; }

/* Tooltip on hover */


/* Legend panel – sits below the layer panel inside .map-panel-stack */
.legend-panel {
    background: rgba(33, 37, 41, 0.65);
    color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem 0.6rem;
    width: 100%;
    box-sizing: border-box;
    height: 30vh;
    min-height: 2.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    resize: vertical;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.legend-panel-title {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    margin-bottom: 0.35rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.legend-panel-content {
    overflow-y: auto;
    scrollbar-gutter: stable both-edges;
    box-sizing: border-box;
    padding-right: 0.65rem;
    flex: 1;
    min-height: 0;
}

.legend-layer {
    margin-top: 0.35rem;
    user-select: none;
}

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

.legend-layer-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.legend-name-group {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.legend-layer-name {
    color: #adb5bd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    color: #6c757d;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.15s;
    padding: 4px 3px;
    margin: -4px -3px;
}

.legend-drag-handle svg {
    width: 10px;
    height: 14px;
}

.legend-layer:hover .legend-drag-handle {
    opacity: 0.8;
}

.legend-hide-btn {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 0.75rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.legend-hide-btn:hover {
    background: rgba(220, 53, 69, 0.25);
    color: #ff6b6b;
}

/* ⓘ wiki info link — used in layer panel rows and legend rows/headers */
.info-icon-link {
    flex-shrink: 0;
    color: #74c0fc;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.15s;
    padding: 3px 4px;
    margin: -3px -4px;
}

.info-icon-link:hover {
    opacity: 1;
    color: #a5d8ff;
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.1rem 0 0.1rem 1rem;
}

.legend-swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

.legend-label {
    color: #dee2e6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Map properties popup – bottom-right floating card */
.map-popup {
    position: fixed;
    z-index: 9100;
    background: rgba(33, 37, 41, 0.65);
    color: #f8f9fa;
    border-radius: 0.5rem;
    width: 260px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    font-size: 0.8125rem;
    overflow: hidden;
}

.map-popup-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.map-popup-title {
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #adb5bd;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-popup-close {
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 0.65rem;
    line-height: 1;
    padding: 2px 4px;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
}

.map-popup-close:hover {
    background: rgba(220, 53, 69, 0.25);
    color: #ff6b6b;
}

.map-popup-body {
    overflow-y: auto;
    padding: 0.4rem 0.65rem 0.5rem;
}

.map-popup-empty {
    color: #adb5bd;
    font-style: italic;
    padding: 0.25rem 0;
}

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

.map-popup-table th,
.map-popup-table td {
    padding: 0.18rem 0.3rem;
    vertical-align: top;
    word-break: break-word;
}

.map-popup-table th {
    color: #adb5bd;
    font-weight: 500;
    white-space: nowrap;
    padding-right: 0.6rem;
    width: 1%;
}

.map-popup-table td {
    color: #f8f9fa;
}

.map-popup-table tr + tr th,
.map-popup-table tr + tr td {
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── Game state bar ──────────────────────────────────────────────────────── */
.game-bar {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(33, 37, 41, 0.65);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    padding: 0.45rem 0.9rem 0.45rem 0.65rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);
    color: #f8f9fa;
    flex-shrink: 0;
    user-select: none;
}

.game-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.game-bar-plan-view {
    border-top: 1px solid rgba(255,255,255,0.10);
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.game-bar-plan-time {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    justify-content: center;
}

.game-bar-plan-eye {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #FFD700;
    opacity: 0.9;
}

.game-bar-plan-time-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-bar-plan-time-date {
    font-size: 0.88rem;
    font-weight: 700;
    color: #FFD700;
    letter-spacing: 0.02em;
}

.game-bar-plan-modes {
    display: flex;
    gap: 0.35rem;
    width: 100%;
}

.plan-mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.22rem;
    padding: 0.3rem 0.3rem 0.28rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.35rem;
    color: #adb5bd;
    cursor: pointer;
    font-size: 0.59rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
    min-width: 0;
}

.plan-mode-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.plan-mode-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #dee2e6;
    border-color: rgba(255,255,255,0.22);
}

.plan-mode-btn--active {
    background: rgba(255, 215, 0, 0.14);
    border-color: rgba(255, 215, 0, 0.45);
    color: #FFD700;
}

.game-bar-clock {
    flex-shrink: 0;
    color: #adb5bd;
    display: flex;
    align-items: center;
}

.game-bar-clock svg {
    width: 28px;
    height: 28px;
}

.game-bar-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.game-bar-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8f9fa;
    text-align: center;
    letter-spacing: 0.01em;
}

.game-bar-timeline {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.game-bar-year {
    font-size: 0.68rem;
    color: #adb5bd;
    flex-shrink: 0;
}

.game-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.18);
    border-radius: 2px;
    position: relative;
}

.game-bar-fill {
    height: 100%;
    background: rgba(116,192,252,0.6);
    border-radius: 2px;
    pointer-events: none;
}

.game-bar-needle {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 12px;
    background: #74c0fc;
    border-radius: 1px;
    transform: translateX(-50%);
    pointer-events: none;
}

.game-bar-plan-needle {
    position: absolute;
    top: -5px;
    width: 2px;
    height: 14px;
    background: #FFD700;
    border-radius: 1px;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
}

.game-bar-state {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
    min-width: 4.5rem;
}

.game-bar-state-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
}

.game-bar-timeleft {
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8f9fa;
    font-variant-numeric: tabular-nums;
}

.game-bar-state--clickable {
    cursor: pointer;
    transition: background 0.12s;
    padding: 0.3rem 0.5rem;
    margin: -0.3rem -0.5rem;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
}

.game-bar-state--clickable:focus-visible {
    outline: 2px solid rgba(116, 192, 252, 0.9);
    outline-offset: 2px;
}

.game-bar-state--clickable:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Plan detail panel ───────────────────────────────────────────────────── */
.plan-detail-panel {
    background: transparent; /* ::before provides background + blur */
    position: relative;
    isolation: isolate;      /* stacking context without backdrop root */
    pointer-events: none;    /* pass map pan/zoom events through the panel body */
    color: #f8f9fa;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);
    font-size: 0.8125rem;
    display: flex;
    flex-direction: column;
    overflow: visible;
    max-height: 80vh;
}

/* Blurred background layer — sits behind all content but does NOT make
   plan-detail-panel a backdrop root, so child panels blur the map correctly. */
.plan-detail-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(33, 37, 41, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    z-index: -1;
    pointer-events: none;
}

/* Restore pointer events for all interactive content inside the panel */
.plan-detail-panel button,
.plan-detail-panel input,
.plan-detail-panel select,
.plan-detail-panel textarea,
.plan-detail-panel summary,
.plan-detail-panel .plan-detail-action-row,
.plan-detail-panel .plan-detail-info-row--clickable,
.plan-detail-panel .plan-detail-state-row,
.plan-message-panel {
    pointer-events: auto;
}

.plan-detail-panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    padding: 0.4rem 0.55rem 0.3rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    border-radius: 0.5rem 0.5rem 0 0;
    flex-shrink: 0;
}

.plan-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.5rem 0.55rem 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    flex-shrink: 0;
}

.plan-detail-header-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.plan-detail-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #f8f9fa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Description: single-line truncated by default, expands via Blazor toggle */
.plan-detail-header .user-dot {
    align-self: flex-start;
    margin-top: 3px;
}

.plan-detail-desc {
    display: flex;
    align-items: flex-start;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: #adb5bd;
    line-height: 1.35;
}

.plan-detail-desc-text {
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.plan-detail-desc-text--expanded {
    display: block;
    overflow: visible;
}

.plan-detail-desc-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid rgba(116,192,252,0.4);
    border-radius: 3px;
    color: #74c0fc;
    cursor: pointer;
    padding: 1px 3px;
    line-height: 1;
    margin-top: 1px;
}

.plan-detail-desc-btn svg {
    width: 10px;
    height: 10px;
}

.plan-detail-desc-btn:hover {
    background: rgba(116,192,252,0.12);
    border-color: rgba(116,192,252,0.7);
}

.plan-detail-section {
    border-bottom: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
}

.plan-detail-section--communication {
    overflow: visible;
}

.plan-detail-section:last-of-type {
    border-bottom: none;
}

.plan-detail-section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.32rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    background: rgba(255,255,255,0.055);
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.plan-detail-section-hdr::-webkit-details-marker { display: none; }

.plan-detail-section[open] > .plan-detail-section-hdr::after {
    content: '▲';
    font-size: 0.55rem;
    opacity: 0.6;
}

.plan-detail-section:not([open]) > .plan-detail-section-hdr::after {
    content: '▼';
    font-size: 0.55rem;
    opacity: 0.6;
}

.plan-detail-section-body {
    padding: 0.35rem 0.75rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.plan-detail-chat-row {
    position: relative;
    overflow: visible;
}

.plan-detail-issues-row {
    position: relative;
    overflow: visible;
}

.plan-detail-approval-row {
    position: relative;
    overflow: visible;
}

/* Plan state row — clickable info-row variant */
.plan-detail-section--state {
    overflow: visible;
}

.plan-detail-state-row {
    position: relative;
    overflow: visible;
}

.plan-detail-info-row--clickable {
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.12s;
}

.plan-detail-info-row--clickable:hover {
    background: rgba(255,255,255,0.07);
}

.plan-state-chevron {
    margin-left: auto;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Plan state floating panel */
.plan-state-panel {
    width: 220px;
}

.plan-state-panel-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    overflow: visible;
    position: relative;
}

/* Custom dropdown */
.plan-state-dropdown {
    position: relative;
    width: 100%;
}

.plan-state-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.35rem;
    color: #f8f9fa;
    font-size: 0.8rem;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.12s, background 0.12s;
}

.plan-state-dropdown-trigger:hover:not(:disabled) {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.plan-state-dropdown-trigger:disabled {
    opacity: 0.45;
    cursor: default;
}

.plan-state-dropdown-arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.15s;
}

.plan-state-dropdown.open .plan-state-dropdown-arrow {
    transform: rotate(180deg);
}

.plan-state-dropdown-list {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(28, 31, 35, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.35rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    overflow: hidden;
}

.plan-state-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
    color: #ced4da;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.plan-state-dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: #f8f9fa;
}

.plan-state-dropdown-item.selected {
    color: #74c0fc;
    background: rgba(116,192,252,0.1);
}

.plan-state-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
}

.plan-state-btn {
    flex: 1;
    padding: 0.3rem 0;
    border-radius: 0.35rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.12s;
}

.plan-state-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.plan-state-btn--cancel {
    background: rgba(220, 53, 69, 0.25);
    color: #ff8080;
    border: 1px solid rgba(220, 53, 69, 0.35);
}

.plan-state-btn--cancel:hover:not(:disabled) {
    background: rgba(220, 53, 69, 0.4);
}

.plan-state-btn--confirm {
    background: rgba(40, 167, 69, 0.25);
    color: #69db7c;
    border: 1px solid rgba(40, 167, 69, 0.35);
}

.plan-state-btn--confirm:hover:not(:disabled) {
    background: rgba(40, 167, 69, 0.4);
}

/* Approval panel — same floating style as messages / issues */
.plan-approval-panel {
    max-height: 40vh;
}

.plan-approval-entry {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.plan-approval-entry:last-child {
    border-bottom: none;
}

.plan-approval-entry-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.plan-approval-country {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 500;
    color: #e9ecef;
}

/* Approval table */
.plan-approval-table {
    width: 100%;
    border-collapse: collapse;
}

.plan-approval-th {
    font-size: 0.68rem;
    color: #ced4da;
    font-weight: 600;
    text-align: center;
    padding: 0 0.25rem 0.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.plan-approval-th--name {
    text-align: left;
    width: 100%;
}

.plan-approval-row td {
    padding: 0.28rem 0.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.plan-approval-row:last-child td {
    border-bottom: none;
}

.plan-approval-td--name {
    font-size: 0.78rem;
    color: #e9ecef;
    white-space: nowrap;
    padding-right: 0.5rem !important;
}

.plan-approval-td--vote {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.plan-approval-reasons-row td {
    padding: 0 0.25rem 0.25rem !important;
    border-bottom: none !important;
}

/* Vote radio-style buttons (shown when plan is in APPROVAL state for user's own country) */
.plan-approval-vote-btn {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: none;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, opacity 0.12s;
    vertical-align: middle;
}

.plan-approval-vote-btn:hover:not(:disabled) {
    border-color: rgba(255,255,255,0.7);
}

.plan-approval-vote-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.plan-approval-why-btn {
    background: none;
    border: none;
    color: #74c0fc;
    opacity: 0.6;
    cursor: pointer;
    padding: 2px 3px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transition: opacity 0.15s, color 0.15s;
}

.plan-approval-why-btn:hover {
    opacity: 1;
    color: #a5d8ff;
}

.plan-approval-why-btn svg {
    width: 0.9rem;
    height: 0.9rem;
}

.plan-approval-reasons {
    margin: 0.15rem 0 0.1rem 1rem;
    padding: 0;
    list-style: disc;
    color: #adb5bd;
    font-size: 0.72rem;
    line-height: 1.45;
}

.plan-approval-reasons li {
    margin-bottom: 0.15rem;
}

.plan-message-panel {
    position: absolute;
    right: calc(100% + var(--right-panel-gap) + var(--panel-connector-protrusion));
    bottom: -0.25rem;
    width: 320px;
    max-width: min(320px, calc(100vw - 5rem));
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    background: rgba(33, 37, 41, 0.65);
    color: #f8f9fa;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 2px 10px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: visible;
    z-index: 9650;
}

.plan-message-panel::after {
    content: '';
    position: absolute;
    right: -7px;
    bottom: 0.8rem;
    width: 12px;
    height: 12px;
    background: rgba(33, 37, 41, 0.65);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-right: 1px solid rgba(255,255,255,0.08);
    transform: rotate(45deg);
    pointer-events: none;
}

.plan-message-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.35rem 0.55rem 0.3rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    position: relative;
}

.plan-message-panel-title {
    flex: 1;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #adb5bd;
}



.plan-message-panel-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 40vh;
    background: rgba(255,255,255,0.02);
    overflow-y: auto;
}

.plan-message-empty {
    color: #adb5bd;
    font-size: 0.76rem;
    padding: 0.2rem 0.15rem;
}

.plan-message-row {
    display: flex;
}

.plan-message-row--own {
    justify-content: flex-end;
}

.plan-message-row--other {
    justify-content: flex-start;
}

.plan-message-bubble {
    max-width: 82%;
    border-radius: 0.7rem;
    padding: 0.45rem 0.55rem 0.4rem;
    background: rgba(248,249,250,0.95);
    color: #212529;
    box-shadow: 0 1px 2px rgba(0,0,0,0.14);
}

.plan-message-row--own .plan-message-bubble {
    background: rgba(248,249,250,0.96);
}

.plan-message-row--other .plan-message-bubble {
    background: rgba(234,242,255,0.98);
}

.plan-issue-bubble {
    max-width: 100%;
    width: 100%;
}

.plan-issue-entry {
    border: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.plan-issue-entry:hover {
    box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.35), 0 1px 4px rgba(0,0,0,0.16);
}

.plan-issue-severity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.75rem;
    border-radius: 999px;
    padding: 0.05rem 0.35rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.plan-issue-severity--info {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.plan-issue-severity--warning {
    background: rgba(255, 193, 7, 0.2);
    color: #9c6b00;
}

.plan-issue-severity--error {
    background: rgba(220, 53, 69, 0.2);
    color: #b02a37;
}

.plan-issue-layers {
    margin-top: 0.2rem;
    color: #5c636a;
    font-size: 0.66rem;
    line-height: 1.25;
}

.plan-message-meta {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin-bottom: 0.1rem;
    font-size: 0.66rem;
    line-height: 1.2;
}

.plan-message-dot {
    width: 8px;
    height: 8px;
    align-self: center;
}

.plan-message-sender {
    font-weight: 700;
    color: #0d6e6b;
}

.plan-message-time {
    color: #6c757d;
    white-space: nowrap;
}

.plan-message-text {
    font-size: 0.78rem;
    line-height: 1.35;
    word-break: break-word;
    white-space: pre-wrap;
}

.plan-message-panel-composer {
    display: flex;
    gap: 0.4rem;
    padding: 0.45rem 0.55rem;
    border-top: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.02);
}

/* ── Common input textbox style ──────────────────────────────────────────── */
.app-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.3rem;
    color: #f8f9fa;
    font-size: 0.78rem;
    padding: 0.2rem 0.45rem;
    outline: none;
    font: inherit;
    transition: background 0.15s, border-color 0.15s;
}

.app-input::placeholder {
    color: #6c757d;
}

.app-input:focus {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
}

.plan-message-input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.plan-message-send {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.35rem;
    padding: 0.4rem 0.75rem;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    color: #dee2e6;
    background: rgba(255,255,255,0.07);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.plan-message-send:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.28);
    color: #f8f9fa;
}

.plan-message-panel .panel-close-btn:hover {
    background: rgba(255,255,255,0.08);
}

.plan-message-send:disabled,
.plan-message-input:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.plan-message-send-error {
    color: #ff8787;
    font-size: 0.7rem;
    padding: 0 0.55rem 0.35rem;
}

.plan-detail-action-row {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.plan-detail-action-row:hover {
    color: #f8f9fa;
}

.plan-detail-info-row,
.plan-detail-item-row,
.plan-detail-action-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #dee2e6;
    font-size: 0.8rem;
    line-height: 1.35;
}

.plan-detail-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #adb5bd;
}

/* ── Time Manager ─────────────────────────────────────────────────── */
.time-manager-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-manager-panel {
    width: 520px;
    background: linear-gradient(135deg, #3e4c4f 0%, #2d3639 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
}

.time-manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
}

.time-manager-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f8f9fa;
}

.time-manager-close {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent;
    color: #adb5bd;
    cursor: pointer;
    transition: color 0.12s;
}

.time-manager-close:hover {
    color: #f8f9fa;
}

.time-manager-close svg {
    width: 100%;
    height: 100%;
}

.time-manager-content {
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.time-manager-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.time-manager-section-title {
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 500;
}

.time-manager-time-display {
    display: flex;
    gap: 0.6rem;
}

.time-manager-time-block {
    flex: 1;
    padding: 0.6rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f8f9fa;
    font-family: 'Courier New', monospace;
}

.time-manager-time-editable {
    cursor: pointer;
    display: block;
    width: 100%;
}

.time-manager-time-editable:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.time-manager-time-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    color: #f8f9fa;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 0.2rem;
}

.time-manager-time-input:focus {
    outline: none;
    border-color: #0d6efd;
    background: rgba(255, 255, 255, 0.15);
}

.time-manager-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.time-manager-timeline-years {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #adb5bd;
    padding: 0 0.2rem;
}

.time-manager-timeline-track {
    height: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.time-manager-timeline-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #5bc0de 0%, #46b8da 100%);
    transition: width 0.3s ease;
}

.time-manager-controls {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.time-manager-control-btn {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: #f8f9fa;
    cursor: pointer;
    transition: all 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-manager-control-btn:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.time-manager-control-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.time-manager-control-btn svg {
    width: 20px;
    height: 20px;
}


.plan-detail-panel > .plan-edit-btn {
    display: block;
    width: calc(100% - 1.5rem);
    margin: 0.55rem 0.75rem;
    padding: 0.45rem 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.35rem;
    color: #dee2e6;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.plan-detail-panel > .plan-edit-btn:hover {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.28);
    color: #f8f9fa;
}

.plan-detail-scroll {
    flex: 1;
    overflow-x: visible;
    /*
     * The margin-left + padding-left trick extends the overflow clipping rect
     * 340 px to the left so absolutely-positioned side panels (chat, approval,
     * issues, policy picker) that appear to the left of the detail panel are
     * not clipped by this scroll container.
     */
    margin-left: -340px;
    padding-left: 340px;
    width: calc(100% + 340px);
    box-sizing: border-box;
}

/* ── Plan edit mode inputs ──────────────────────────────────────────────── */
.plan-edit-input,
.plan-edit-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.3rem;
    color: #f8f9fa;
    font-size: 0.8rem;
    padding: 0.3rem 0.45rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.12s;
}

.plan-edit-input:focus,
.plan-edit-textarea:focus {
    border-color: rgba(116,192,252,0.6);
}

.plan-edit-input:disabled,
.plan-edit-textarea:disabled {
    opacity: 0.45;
    cursor: default;
}

.plan-edit-textarea {
    resize: vertical;
    min-height: 3rem;
    line-height: 1.4;
}

/* Year + Month dropdowns */
.plan-edit-date-row {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

.plan-edit-date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.plan-edit-select {
    flex: 1;
    box-sizing: border-box;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.3rem;
    color: #f8f9fa;
    font-size: 0.78rem;
    padding: 0.28rem 0.4rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    color-scheme: dark;
    transition: border-color 0.12s;
}

.plan-edit-select option {
    background: #2b2d31;
    color: #f8f9fa;
}

.plan-edit-select:focus {
    border-color: rgba(116,192,252,0.6);
}

.plan-edit-select:disabled {
    opacity: 0.45;
    cursor: default;
}

.plan-edit-select--invalid {
    border-color: rgba(255,100,100,0.55);
}

.plan-edit-date-hint {
    display: block;
    font-size: 0.72rem;
    color: #868e96;
    margin-top: 0.1rem;
}

.plan-edit-date-hint--error {
    color: #ff8080;
}

/* "Add or remove …" button inside sections */
.plan-edit-add-btn {
    display: block;
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.3rem 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 0.3rem;
    color: #ced4da;
    font-size: 0.78rem;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.plan-edit-add-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.25);
    color: #f8f9fa;
}

.plan-edit-add-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Error message */
.plan-edit-error {
    margin: 0.3rem 0.75rem 0;
    font-size: 0.75rem;
    color: #ff8080;
}

.plan-edit-status {
    margin: 0.3rem 0.75rem 0;
    font-size: 0.75rem;
    color: #adb5bd;
    text-align: center;
}

/* ── Geometry Tool Panel ─────────────────────────────────────────────────────── */
.geometry-tool-panel {
    position: absolute;
    right: calc(100% + var(--right-panel-gap) + var(--panel-connector-protrusion));
    top: auto;
    bottom: 0;
    width: 240px;
    max-width: min(240px, calc(100vw - 5rem));
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    background: rgba(33, 37, 41, 0.65);
    color: #f8f9fa;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: visible;
    z-index: 9650;
    pointer-events: auto;
}

.geometry-tool-panel::after {
    content: '';
    position: absolute;
    right: -7px;
    bottom: 0.8rem;
    width: 12px;
    height: 12px;
    background: rgba(33, 37, 41, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    pointer-events: none;
}

.geometry-tool-section {
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.geometry-tool-section-title {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adb5bd;
    margin-bottom: 0.35rem;
}

.geometry-type-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.22rem 0.2rem;
    font-size: 0.82rem;
    color: #c9d1d9;
    cursor: pointer;
    border-radius: 0.25rem;
}

.geometry-type-row:hover { background: rgba(255, 255, 255, 0.05); }

.geometry-type-row--active { color: #fff; font-weight: 600; }

.geometry-type-row input[type="radio"],
.geometry-type-row input[type="checkbox"] { accent-color: #0d6efd; cursor: pointer; }

.geometry-type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.geometry-tool-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.35rem;
    padding: 0.55rem;
}

.geometry-tool-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.4rem 0.2rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.35rem;
    color: #c9d1d9;
    font-size: 0.68rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    pointer-events: auto;
}

.geometry-tool-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.geometry-tool-btn:disabled { opacity: 0.38; cursor: not-allowed; }

.geometry-tool-btn--active {
    background: rgba(253, 126, 20, 0.22);
    border-color: rgba(253, 126, 20, 0.55);
    color: #fd7e14;
}

.geometry-tool-btn--active:hover:not(:disabled) { background: rgba(253, 126, 20, 0.32); }

.geometry-tool-btn--danger:not(:disabled) { color: #ff8080; }

.geometry-tool-btn--danger:hover:not(:disabled) {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.4);
}

.geometry-tool-btn--success:not(:disabled) { color: #80c080; }

.geometry-tool-btn--success:hover:not(:disabled) {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.4);
}

.geometry-tool-btn svg { width: 18px; height: 18px; }

/* Selectable layer rows in edit mode */
.plan-detail-item-row--selectable {
    cursor: pointer;
    border-radius: 0.3rem;
    width: 100%;
    text-align: left;
    background: none;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    transition: background 0.12s, border-color 0.12s;
}

.plan-detail-item-row--selectable:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.plan-detail-item-row--active {
    background: rgba(253, 126, 20, 0.15) !important;
    border-color: rgba(253, 126, 20, 0.45) !important;
}

/* Cancel / Accept footer */
.plan-edit-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.55rem 0.75rem;
    flex-shrink: 0;
}

.plan-edit-footer-btn {
    flex: 1;
    padding: 0.4rem 0;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}

.plan-edit-footer-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.plan-edit-footer-btn--cancel {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    color: #dee2e6;
}

.plan-edit-footer-btn--cancel:hover:not(:disabled) {
    background: rgba(255,255,255,0.13);
    border-color: rgba(255,255,255,0.28);
    color: #f8f9fa;
}

.plan-edit-footer-btn--accept {
    background: rgba(40,167,69,0.2);
    border: 1px solid rgba(40,167,69,0.35);
    color: #69db7c;
}

.plan-edit-footer-btn--accept:hover:not(:disabled) {
    background: rgba(40,167,69,0.35);
    border-color: rgba(40,167,69,0.5);
}

/* ── Create plan form ───────────────────────────────────────────────── */
.create-plan-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.5rem 0.75rem 0.5rem;
}

.create-plan-field {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.create-plan-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #adb5bd;
    text-transform: uppercase;
}

.create-plan-optional {
    font-weight: 400;
    text-transform: none;
    opacity: 0.7;
}
 ───────────────────────────────────────────── */
.plan-lock-icon,
.plan-row-indicator {
    flex-shrink: 0;
    width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-lock-icon svg {
    width: 16px;
    height: 16px;
}

button.plan-lock-icon {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

button.plan-lock-icon:hover {
    filter: brightness(1.4);
}

/* ── Policy row (wrapper giving absolute-panel a position:relative anchor) */
.plan-detail-policy-row {
    position: relative;
    overflow: visible;
}

/* Picker panels anchored to their triggering button row, growing upward */
.plan-detail-policy-row .plan-message-panel,
.plan-detail-layers-row .plan-message-panel {
    top: auto;
    bottom: 0;
}

.plan-detail-policy-row .plan-message-panel::after,
.plan-detail-layers-row .plan-message-panel::after {
    top: auto;
    bottom: 0.8rem;
}

/* The policies section must not clip its side-panel when picker is open */
.plan-detail-section--policies-picker {
    overflow: visible;
}

.plan-detail-section--layers-picker {
    overflow: visible;
}

/* Scrollable list of selected layer names — keeps the section from growing unbounded */
.plan-detail-layers-list {
    max-height: 4rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    pointer-events: auto;
}

/* ── Policy picker panel ────────────────────────────────────────────────── */
.plan-policy-picker-body {
    padding: 0.35rem 0.55rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

/* ── Layer picker panel (same positioning as other side panels) ─────────── */
.plan-layer-picker-panel {
    /* wider than policy picker to fit layer names with category tree */
    width: 340px;
    max-width: min(340px, calc(100vw - 5rem));
    max-height: 50vh;
}

.plan-layer-picker-body {
    padding: 0.35rem 0.55rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

/* category/sub headers inside picker inherit layer-cat/sub styles;
   reduce left-padding so they fit in the narrower panel body */
.plan-layer-picker-body .layer-panel-row {
    padding-left: 0.5rem;
}

/* rows anchoring the picker panel's toggle button */
.plan-detail-layers-row {
    position: relative;
    overflow: visible;
}

.plan-policy-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.28rem 0.4rem;
    border-radius: 0.3rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.1s;
}

.plan-policy-item:hover:not(.plan-policy-item--disabled) {
    background: rgba(255,255,255,0.07);
}

.plan-policy-item--disabled {
    opacity: 0.4;
    cursor: default;
}

.plan-policy-toggle {
    accent-color: #74c0fc;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    cursor: default;
}

.plan-policy-name {
    font-size: 0.8rem;
    color: #dee2e6;
}

/* ── Dependencies page ────────────────────────────────────────────────────── */
.dep-graph {
    position: fixed;
    inset: 0;
    overflow: visible;
    background: radial-gradient(ellipse at center, #0d2233 0%, #07141e 100%);
}

.dep-hint {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(180,210,230,0.55);
    font-size: 0.78rem;
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.dep-back-btn {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: rgba(15,30,45,0.82);
    border: 1px solid rgba(116,185,214,0.3);
    border-radius: 6px;
    color: #74b9d6;
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    z-index: 300;
}

.dep-back-btn:hover {
    background: rgba(20,45,65,0.92);
    border-color: rgba(116,185,214,0.6);
    color: #a5d8f0;
}

.dep-no-data {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #07141e;
    color: #74b9d6;
    font-size: 1rem;
}

.dep-no-data p { margin: 0; color: #aed6ea; }

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

