/*
 * Shared visual system for the Shiny atlas.
 *
 * Page modules generate semantic class names in R; this stylesheet owns the
 * responsive shell, map/plot surfaces, auth pages, modals, and saved-plot UI.
 */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fff;
    --fg: #0e0a09;
    --mg: #c5c5c5;
    --blue-primary: oklch(0.638 0.197 253.095);
    --blue-primary-a15: oklch(0.638 0.197 253.095 / 0.15);
    --blue-primary-a16: oklch(0.638 0.197 253.095 / 0.16);
    --blue-secondary: oklch(0.706 0.164 246.132);
    --blue-secondary-a22: oklch(0.706 0.164 246.132 / 0.22);
    --blue-secondary-a24: oklch(0.706 0.164 246.132 / 0.24);
    --blue-secondary-a48: oklch(0.706 0.164 246.132 / 0.48);
    --blue-tertiary: oklch(0.797 0.112 243.138);
    --blue-tertiary-a28: oklch(0.797 0.112 243.138 / 0.28);
    --blue-tertiary-a38: oklch(0.797 0.112 243.138 / 0.38);
    --blue-tertiary-a42: oklch(0.797 0.112 243.138 / 0.42);
    --blue-tertiary-a45: oklch(0.797 0.112 243.138 / 0.45);
    --blue-tertiary-a48: oklch(0.797 0.112 243.138 / 0.48);
    --blue-quaternary: oklch(0.75 0.138 244.877);
    --blue-quinary: oklch(0.91 0.047 242.504);
    --blue-quinary-a22: oklch(0.91 0.047 242.504 / 0.22);
    --blue-quinary-a24: oklch(0.91 0.047 242.504 / 0.24);
    --blue-quinary-a34: oklch(0.91 0.047 242.504 / 0.34);
    --blue-quinary-a38: oklch(0.91 0.047 242.504 / 0.38);
    --blue-quinary-a42: oklch(0.91 0.047 242.504 / 0.42);
    --blue-quinary-a45: oklch(0.91 0.047 242.504 / 0.45);
    --blue-quinary-a62: oklch(0.91 0.047 242.504 / 0.62);
    --blue-quinary-a68: oklch(0.91 0.047 242.504 / 0.68);
    --blue-quinary-a72: oklch(0.91 0.047 242.504 / 0.72);
    --blue-quinary-a90: oklch(0.91 0.047 242.504 / 0.9);
    --blue-quinary-a98: oklch(0.91 0.047 242.504 / 0.98);
    --home-instruction-surface: oklch(0.568 0.13 253.095);
    --home-instruction-border: oklch(0.48 0.13 253.095);
    --home-instruction-text: #fff;
    --page-slide-dur: 120ms;
    --page-fade-dur: 100ms;
    --page-slide-distance: 6px;
    --page-blur: 0px;
    --page-stagger: 0ms;
    --page-exit-enabled: 1;
    --page-slide-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --page-fade-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --panel-open-dur: 400ms;
    --panel-close-dur: 350ms;
    --panel-translate-y: 100px;
    --panel-blur: 2px;
    --panel-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

::selection {
    background: var(--blue-quinary);
    color: var(--blue-secondary);
}

::-moz-selection {
    background: var(--blue-quinary);
    color: var(--blue-secondary);
}

mark,
.text-highlight {
    background: var(--blue-quinary);
    color: var(--blue-secondary);
}

html,
body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif,
        Arial,
        "Helvetica Neue",
        sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizelegibility;

    color: var(--fg);
    background-color: var(--bg);

    font-size: 16px;
    line-height: 1.5;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

* {
    scrollbar-width: thin;
    scrollbar-color: gray transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background-color: gray;
    border: 2px solid transparent;
    background-clip: content-box;
}

a.styled-link {
    color: var(--blue-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    font-style: italic;
}

a.styled-link:hover {
    color: var(--blue-secondary);
}

a.styled-link:hover::after {
    width: 100%;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: inherit;
    font-size: inherit;
}

ul {
    list-style: none;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.styled-link {
    position: relative;
    font-weight: inherit;
    line-height: inherit;
    color: var(--blue-primary);
}

/* Home page container */
.home-container {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-y: auto;
}

.auth-shell.home-container {
    justify-content: flex-start;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    padding: 2rem 1.25rem;
    scroll-padding: 2rem;
    -webkit-overflow-scrolling: touch;
}

.auth-shell.home-container {
    justify-content: safe center;
}

/* Custom Button Styles */
#button-container,
.custom-button-container {
    border-radius: 28px;
    display: inline-block;
    margin-bottom: 24px;
    height: 50px;
    border: 0.5px solid rgba(0, 0, 0, 0.5);
    background: linear-gradient(
        180deg,
        #fff,
        #4d4d4d 50%,
        var(--blue-quinary) 92%
    );
    box-shadow:
        0 0 16px 0 rgba(0, 0, 0, 0.08),
        inset 0 0 1px 1px rgba(0, 0, 0, 0.25);
    padding: 3px;
    position: relative;
}

#button,
.custom-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 28px;
    color: #fff;
    padding: 0 32px;
    background: linear-gradient(180deg, #c4c4c4, #797a7a);
    z-index: 1;
    position: relative;
}

#button span,
.custom-button span {
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 -0.5px 0 rgba(0, 0, 0, 0.5);
    margin-top: -3px;
}

#hover,
.custom-hover {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 28px;
    background: radial-gradient(
        125.34% 30.72% at 50.16% 50%,
        hsla(0, 0%, 100%, 0.2) 0,
        #fff 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

#button-container:hover #hover,
.custom-button-container:hover .custom-hover {
    opacity: 0.12;
}

#button-container:hover #hover {
    display: flex;
}

.shadow,
.custom-shadow {
    --tw-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --tw-shadow-colored:
        0 1px 3px 0 var(--tw-shadow-color),
        0 1px 2px -1px var(--tw-shadow-color);
    box-shadow:
        var(--tw-ring-offset-shadow, 0 0 #0000),
        var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

#button-shadow-1,
#button-shadow-2,
.custom-shadow {
    z-index: 0;
    content: "";
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 4px;
    border-radius: 100px;
    opacity: 0.5;
    background: linear-gradient(
        92deg,
        var(--blue-primary) -36.06%,
        var(--blue-secondary) 22.63%,
        var(--blue-quaternary) 77.25%,
        var(--blue-tertiary) 126.98%
    );
    width: 80px;
    height: 16px;
}

#button-shadow-1,
.custom-shadow-1 {
    filter: blur(24px);
}

#button-shadow-2,
.custom-shadow-2 {
    filter: blur(12px);
}

#button-shadow-3,
#hover {
    position: absolute;
    left: 0;
    right: 0;
    border-radius: 100px;
}

#button-shadow-3,
.custom-shadow-3 {
    z-index: 0;
    content: "";
    margin: auto;
    bottom: 4px;
    opacity: 0.25;
    background: linear-gradient(
        92deg,
        var(--blue-primary) -36.06%,
        var(--blue-secondary) 22.63%,
        var(--blue-quaternary) 77.25%,
        var(--blue-tertiary) 126.98%
    );
    filter: blur(24px);
    width: 106px;
    height: 16px;
}

/* Custom sidebar panel styling for all pages */
.well {
    background-color: #f6f6f6;
    border: none;
    border-radius: 28px;
    border-bottom: 1px solid #e2e2e2;
    padding: 24px;
    box-shadow: none;
}

.well .form-group {
    margin-bottom: 20px;
}

.well .control-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.well .selectize-input {
    border: 1px solid #e2e2e2;
    background: #fafafa;
    padding: 12px 15px;
    border-radius: 14px;
    color: rgba(0, 0, 0, 0.78);
    box-shadow: none;
    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        box-shadow 140ms ease;
}

.well .selectize-input:hover {
    background: #fff;
    border-color: var(--blue-tertiary-a42);
}

.well .selectize-input.focus {
    background: #fff;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px var(--blue-primary-a16);
}

.well .selectize-dropdown {
    margin-top: 0.35rem;
    border-radius: 14px;
    border: 1px solid var(--blue-tertiary-a42);
    background: #fff;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
}

.well .selectize-dropdown-content {
    max-height: 14rem;
    padding: 0.35rem;
}

.well .selectize-dropdown-content .option {
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    line-height: 1.2;
    transition:
        background-color 120ms ease,
        color 120ms ease;
}

.well .selectize-dropdown-content .option.active {
    background: var(--blue-quinary-a62);
    color: var(--blue-primary);
}

.well .selectize-dropdown-content .option.selected {
    background: var(--blue-primary-a15);
    color: var(--blue-primary);
}

.well .selectize-dropdown-content .option.active.selected {
    background: var(--blue-primary);
    color: #fff;
}

.well .selectize-dropdown .no-results {
    padding: 0.65rem 0.75rem;
    color: rgba(0, 0, 0, 0.46);
    font-size: 0.92rem;
}

/* Sidebar-specific button */
#sidebar-button-container.custom-button-container {
    width: 100%;
    margin-bottom: 0;
}

#sidebar-button.custom-button {
    width: 100%;
    justify-content: center;
}

/* Make sure shadows work for sidebar button */
#sidebar-button-shadow-1,
#sidebar-button-shadow-2 {
    z-index: 0;
    content: "";
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 4px;
    border-radius: 100px;
    opacity: 0.5;
    background: linear-gradient(
        92deg,
        var(--blue-primary) -36.06%,
        var(--blue-secondary) 22.63%,
        var(--blue-quaternary) 77.25%,
        var(--blue-tertiary) 126.98%
    );
    width: 80%;
    height: 16px;
}

#sidebar-button-shadow-1 {
    filter: blur(24px);
}

#sidebar-button-shadow-2 {
    filter: blur(12px);
}

#sidebar-button-shadow-3 {
    z-index: 0;
    content: "";
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    bottom: 4px;
    border-radius: 100px;
    opacity: 0.25;
    background: linear-gradient(
        92deg,
        var(--blue-primary) -36.06%,
        var(--blue-secondary) 22.63%,
        var(--blue-quaternary) 77.25%,
        var(--blue-tertiary) 126.98%
    );
    filter: blur(24px);
    width: 90%;
    height: 16px;
}

/* Well header with close button */
.well-header {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    column-gap: 0;
    align-items: center;
    position: relative;
    margin: 0 0 25px 0;
    padding: 0;
    width: 100%;
}

.well-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    min-width: 0;
    margin-right: 0;
    padding: 8px 0;
    margin-bottom: 5px;
}

.close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ececec;
    color: rgba(0, 0, 0, 0.86);
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
    z-index: 10;
}

.close-button:hover {
    background-color: #e0e0e0;
}

.well-help-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #0a0a0a;
    color: #fff;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        color 150ms ease;
    z-index: 10;
}

.well-help-button__mark {
    font-size: 17px;
    line-height: 1;
    font-weight: 500;
}

.well-help-button:focus-visible,
.close-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 116, 255, 0.18);
}

@media (hover: hover) {
    .well-help-button:hover {
        background-color: #0a0a0a;
        color: #fff;
    }
}

.ioda-cross-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.ioda-cross-icon svg {
    display: block;
}

.ioda-modal__header-close.close-button {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
}

/* Circle icon using CSS */
.circle-icon {
    position: relative;
    width: 14px;
    height: 14px;
}

/* Checkmark/tick icon using CSS */
.circle-icon:before {
    content: "";
    position: absolute;
    width: 10px;
    height: 6px;
    border-left: 3px solid #fff;
    border-bottom: 3px solid #fff;
    transform: rotate(-45deg);
    top: 3px;
    left: 2px;
}

/* Header action button styling */
.header-button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    padding: 2px;
    margin-bottom: 0;
}

.header-button .custom-button {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header-action-container {
    border-radius: 50%;
}

#header-action-button {
    border-radius: 50%;
}

/* Remove old styles */
.header-title,
.sidebar-close-container {
    display: none;
}

/* Hidden button for action trigger */
.hidden-button {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
    pointer-events: none;
}

/* Make custom button container clickable */
#sidebar-button-container,
.button-trigger {
    cursor: pointer;
    position: relative;
}

/* Page layout containers */
.container-fluid {
    padding: 0;
    height: 100%;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    height: 100%;
}

.viewport-page {
    width: 100%;
}

/* Rounded map container */
.rounded-map-container .leaflet-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rounded-map-container {
    border-radius: 12px;
    overflow: hidden;
    margin-top: 6px;
    margin-bottom: 10px;
}

.plot-page-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    padding: 8px;
    background: #ffffff;
    overflow: hidden;
    z-index: 10;
}

.plot-page-shell .page-container {
    max-width: 1680px;
    --plot-page-well-width: clamp(440px, 30%, 540px);
    width: 100%;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
}

.plot-page-well.well {
    --plot-well-title-size: 17px;
    --plot-well-section-label-size: 14px;
    --plot-well-label-size: 14px;
    --plot-well-input-size: 14px;
    --plot-well-detail-size: 12.5px;
    --plot-well-label-line-height: 1.25;
    flex: 0 0 var(--plot-page-well-width);
    width: var(--plot-page-well-width);
    min-width: var(--plot-page-well-width);
    max-width: var(--plot-page-well-width);
    height: 100%;
    padding: 10px 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
    position: relative;
}

.plot-page-well.well .form-group {
    margin-bottom: 12px;
}

.plot-page-well.well .control-label {
    margin-bottom: 6px;
    font-size: var(--plot-well-label-size);
    font-weight: 600;
    line-height: var(--plot-well-label-line-height);
    color: rgba(0, 0, 0, 0.78);
}

.plot-page-well.well .well-header {
    margin-bottom: 10px;
}

.plot-page-well.well .well-title {
    padding: 2px 0;
    margin-bottom: 0;
    color: rgba(0, 0, 0, 0.86);
    font-size: var(--plot-well-title-size);
    font-weight: 650;
    line-height: 1.2;
}

.plot-page-well.well .radio label,
.plot-page-well.well .checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0;
    font-size: var(--plot-well-input-size);
    line-height: var(--plot-well-label-line-height);
    margin-bottom: 0;
    color: rgba(0, 0, 0, 0.78);
    text-wrap: pretty;
}

.plot-page-well.well .radio input[type="radio"],
.plot-page-well.well .checkbox input[type="checkbox"] {
    position: static;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.plot-page-well.well .radio,
.plot-page-well.well .checkbox {
    margin-top: 4px;
    margin-bottom: 4px;
}

.plot-page-well.well .shiny-input-container > .checkbox {
    margin-top: 10px;
    margin-bottom: 2px;
}

.plot-page-well.well .shiny-input-radiogroup .radio-inline {
    margin-right: 12px;
    font-size: var(--plot-well-input-size);
    line-height: var(--plot-well-label-line-height);
}

.plot-page-well.well #map_animated_data_range > .control-label,
.plot-page-well.well #map_data_range > .control-label {
    margin-bottom: 10px;
}

.plot-page-well.well #map_animated_data_range .shiny-options-group,
.plot-page-well.well #map_data_range .shiny-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plot-page-well.well #map_animated_data_range .radio,
.plot-page-well.well #map_data_range .radio {
    margin-top: 0;
    margin-bottom: 0;
}

.ioda-overlay-section .map-contour-options {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin: 2px 0 10px;
}

.ioda-overlay-section .map-contour-options .form-group {
    width: auto;
    margin-bottom: 0;
}

.ioda-overlay-section .map-contour-options .checkbox {
    margin: 0;
}

.plot-page-well.well .selectize-input {
    padding: 8px 12px;
    min-height: 36px;
    font-size: var(--plot-well-input-size);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plot-page-well.well .selectize-input .item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.plot-page-well.well .selectize-input input {
    font-size: var(--plot-well-input-size);
}

.plot-page-well.well .selectize-dropdown {
    font-size: var(--plot-well-input-size);
    line-height: 1.25;
}

.plot-page-well.well .form-control {
    min-height: 36px;
    padding: 6px 10px !important;
    border: 1px solid #e2e2e2;
    border-radius: 14px !important;
    background: #fafafa;
    color: rgba(0, 0, 0, 0.78);
    font-size: var(--plot-well-input-size);
    line-height: 1.25;
    box-shadow: none;
    font-variant-numeric: tabular-nums;
    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        box-shadow 140ms ease;
}

.plot-page-well.well .form-control::placeholder {
    color: rgba(0, 0, 0, 0.42);
}

.plot-page-well.well .form-control:hover {
    background: #fff;
    border-color: var(--blue-tertiary-a42);
}

.plot-page-well.well .form-control:focus {
    background: #fff;
    border-color: var(--blue-primary);
    box-shadow: 0 0 0 3px var(--blue-primary-a16);
}

.plot-well-divider {
    height: 1px;
    margin: 12px 0;
    flex: 0 0 auto;
    background: rgba(0, 0, 0, 0.06);
}

.well-body {
    flex: 1 1 0;
    height: 0;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    padding-top: 8px;
    z-index: 1;
}

.plot-page-well.well::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 52px;
    height: 80px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(246, 246, 246, 0) 0%,
        rgba(246, 246, 246, 0.4) 40%,
        rgba(246, 246, 246, 0.85) 70%,
        rgba(246, 246, 246, 1) 100%
    );
    transition: opacity 0.18s ease;
}

.plot-page-well.well.well-footer-fade-active::after {
    opacity: 1;
}

.well-body::-webkit-scrollbar {
    display: none;
}

.well-footer {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    padding-top: 8px;
    padding-bottom: 2px;
    position: relative;
    z-index: 3;
}

.well-footer > * {
    flex: 1 1 auto;
    min-width: 0;
}

.well-footer .custom-button-container {
    display: block;
    height: 50px;
    margin-bottom: 0;
    width: 100%;
}

.well-footer .button-trigger {
    display: block;
    width: 100%;
}

.well-footer .custom-button {
    width: 100%;
    justify-content: center;
}

.well-footer .custom-shadow,
.well-footer .custom-shadow-3 {
    display: none;
}

.plot-sidebar-copy {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.plot-sidebar-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a7a87;
}

.plot-sidebar-description,
.plot-sidebar-note p {
    color: #5b5654;
    font-size: 0.95rem;
}

.plot-sidebar-selection {
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: 1px solid var(--blue-tertiary-a45);
    background: var(--blue-quinary-a45);
    color: var(--blue-primary);
    font-weight: 600;
}

.plot-sidebar-note {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: var(--blue-quinary-a22);
    border: 1px solid var(--blue-tertiary-a28);
}

/* ── Map page sidebar: compass & controls ─────────────────── */
.compass-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.2rem 0 0.5rem;
    width: 100%;
}

.compass-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.compass-row-mid {
    width: 100%;
}

.compass-row-mid .form-group {
    flex: 1;
    min-width: 0;
}

.compass-row-mid .compass-icon {
    flex-shrink: 0;
}

.compass-row-top,
.compass-row-bottom {
    width: calc((100% - 48px - 1rem) / 2);
}

.compass-row .form-group {
    margin-bottom: 0;
}

.compass-row .form-control {
    text-align: center;
    padding: 6px 8px !important;
    min-height: 34px;
    font-size: var(--plot-well-input-size) !important;
}

.compass-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.compass-icon svg {
    width: 48px;
    height: 48px;
}

.radio-with-tooltips {
    overflow: visible;
}

.radio-with-tooltips .radio {
    position: relative;
}

.radio-with-tooltips .radio label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.radio-tooltip {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: help;
    font-size: 1.05rem;
    color: #8a949e;
    line-height: 1;
}

.radio-tooltip:hover,
.radio-tooltip:focus-visible,
.radio-tooltip[aria-expanded="true"] {
    color: #8a949e;
}

.radio-tooltip svg {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
}

.radio-tooltip:focus-visible {
    outline: 2px solid var(--blue-secondary);
    outline-offset: 2px;
}

.tooltip-popover {
    position: fixed;
    top: 0;
    left: 0;
    max-width: min(320px, calc(100vw - 24px));
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: #f7fafc;
    box-shadow:
        0 18px 40px rgba(15, 23, 31, 0.28),
        0 6px 14px rgba(15, 23, 31, 0.18);
    z-index: 4000;
    pointer-events: none;
}

.tooltip-popover[hidden] {
    display: none;
}

.tooltip-popover__text {
    font-size: 0.82rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.tooltip-popover::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(0, 0, 0, 0.96);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tooltip-popover[data-placement="left"]::after {
    top: 50%;
    right: -7px;
    transform: translateY(-50%) rotate(-45deg);
}

.tooltip-popover[data-placement="right"]::after {
    top: 50%;
    left: -7px;
    transform: translateY(-50%) rotate(135deg);
}

.tooltip-popover[data-placement="top"]::after {
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%) rotate(45deg);
}

.tooltip-popover[data-placement="bottom"]::after {
    left: 50%;
    top: -7px;
    transform: translateX(-50%) rotate(-135deg);
}

.well-section-label {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: var(--plot-well-section-label-size, 14px);
    font-weight: 600;
    color: #333;
    line-height: 1.25;
    text-wrap: balance;
}

.plot-well-divider + .well-section-label,
.plot-well-divider + .map-type-step .map-type-step-title {
    margin-top: 0;
}

.well-section-description {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: var(--plot-well-detail-size, 12.5px);
    color: #555;
    text-align: center;
    line-height: 1.4;
    text-wrap: pretty;
}

.side-by-side-selects {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 4px;
}

.side-by-side-selects > .form-group,
.side-by-side-selects > div {
    flex: 1;
    min-width: 0;
}

.side-by-side-selects .form-group {
    margin-bottom: 0;
}

.transect-coord-controls {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.25rem 0 0.5rem;
}

.transect-coord-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transect-coord-row .form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.transect-coord-label {
    flex-shrink: 0;
    font-size: var(--plot-well-detail-size, 12.5px);
    font-weight: 600;
    color: #333;
    min-width: 70px;
}

.transect-coord-to {
    flex-shrink: 0;
    font-size: var(--plot-well-detail-size, 12.5px);
    color: #555;
}

.transect-coord-row .form-control {
    padding: 6px 8px !important;
    min-height: 34px;
    font-size: var(--plot-well-input-size) !important;
}

.plot-main-panel {
    flex: 1 1 0%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    --plot-options-panel-height: clamp(180px, 32%, 320px);
}

.plot-main-panel
    > [data-display-if]:not([style*="display: none"]):not(
        [style*="display:none"]
    ) {
    display: contents;
}

.plot-output-flag {
    display: none !important;
}

.plot-options-panel {
    flex: 0 0 var(--plot-options-panel-height);
    height: var(--plot-options-panel-height);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
    border-radius: 0;
    background: transparent;
    border: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.plot-options-panel--compact {
    --plot-options-panel-height: clamp(148px, 24%, 208px);
}

.plot-options-panel--compact-tight {
    --plot-options-panel-height: clamp(104px, 16%, 124px);
}

.plot-options-panel--compact-map {
    --plot-options-panel-height: clamp(156px, 25%, 220px);
}

.plot-options-panel > .plot-main-toolbar-slot {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    min-height: 100%;
}

.plot-options-panel .plot-main-toolbar,
.plot-options-panel .line-plot-toolbar,
.plot-options-panel .map-toolbar-top,
.plot-options-panel .map-toolbar-bottom {
    width: 100%;
}

.plot-main-panel-empty {
    justify-content: center;
}

.plot-api-error {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 0.25rem 0.5rem;
}

.plot-api-error-message,
.plot-api-error-hint {
    margin: 0;
    color: #5b5654;
    line-height: 1.5;
}

.plot-api-error-hint {
    font-size: 0.92rem;
}

.plot-main-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding: 0;
}

.plot-main-toolbar .form-group {
    margin-bottom: 0;
}

.plot-main-toolbar .custom-button-container {
    height: 50px;
    margin-bottom: 0;
}

.plot-main-toolbar-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plot-export-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plot-main-toolbar-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.plot-data-toolbar,
.line-plot-toolbar {
    display: grid;
    gap: 1rem;
    align-items: end;
}

.plot-data-toolbar--with-save,
.line-plot-toolbar--with-save {
    grid-template-columns: minmax(0, 1.7fr) minmax(160px, 0.42fr) minmax(160px, 0.42fr);
}

.plot-data-toolbar--no-save,
.line-plot-toolbar--no-save {
    grid-template-columns: minmax(0, 1.85fr) minmax(180px, 0.5fr);
}

.plot-export-panel,
.plot-data-stats-panel,
.plot-save-panel,
.line-plot-export-panel,
.line-plot-stats-panel,
.line-plot-save-panel {
    min-height: 0;
}

.plot-main-toolbar-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.plot-main-toolbar-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line-plot-export-grid {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0.9rem 1rem;
    align-items: start;
}

.line-plot-export-label {
    padding-top: 0.45rem;
    font-size: 1rem;
    color: #0e0a09;
}

.line-plot-export-grid .shiny-input-radiogroup {
    margin-bottom: 0;
}

.line-plot-export-grid .radio {
    margin-top: 0;
    margin-bottom: 0.7rem;
}

.line-plot-export-grid .radio:last-child {
    margin-bottom: 0;
}

.line-plot-export-grid .radio label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 500;
}

.line-plot-export-grid input[type="radio"] {
    margin-top: 0;
}

.line-plot-export-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.line-plot-export-actions > .form-group {
    margin-bottom: 0;
}

.line-plot-export-actions .button-trigger {
    display: inline-flex;
    align-items: center;
}

.line-plot-export-actions .custom-button-container {
    height: 50px;
    margin-bottom: 0;
}

.plot-export-panel .button-trigger,
.plot-export-panel .custom-button-container,
.plot-export-panel .custom-button,
.plot-save-panel .plot-library-actions-inline,
.line-plot-export-panel .button-trigger,
.line-plot-export-panel .custom-button-container,
.line-plot-export-panel .custom-button,
.line-plot-save-panel .plot-library-actions-inline {
    width: 100%;
}

.plot-export-panel .custom-button-container,
.plot-save-panel .custom-button-container,
.line-plot-export-panel .custom-button-container,
.line-plot-save-panel .custom-button-container {
    margin-bottom: 0;
}

.plot-save-panel .plot-library-actions-inline,
.line-plot-save-panel .plot-library-actions-inline {
    margin-bottom: 0;
}

.plot-export-panel .custom-shadow,
.plot-export-panel .custom-shadow-3,
.plot-save-panel .custom-shadow,
.plot-save-panel .custom-shadow-3,
.line-plot-export-panel .custom-shadow,
.line-plot-export-panel .custom-shadow-3,
.line-plot-save-panel .custom-shadow,
.line-plot-save-panel .custom-shadow-3,
.map-toolbar-action .custom-shadow,
.map-toolbar-action .custom-shadow-3 {
    display: none;
}

.plot-save-panel .button-trigger,
.plot-save-panel .custom-button-container,
.plot-save-panel .custom-button,
.line-plot-save-panel .button-trigger,
.line-plot-save-panel .custom-button-container,
.line-plot-save-panel .custom-button {
    width: 100%;
}

.plot-stats-box {
    border: 0;
    border-radius: 0;
    padding: 0;
    min-height: 80px;
    max-height: 160px;
    overflow-y: auto;
    font-size: 0.9rem;
    background: transparent;
}

.plot-stats-box .shiny-html-output {
    display: block;
    line-height: 1.45;
}

.plot-stats-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 0;
}

.plot-stats-row {
    display: inline-flex;
    align-items: baseline;
    gap: 0.45rem;
}

.plot-stats-row:not(:last-child)::after {
    content: "|";
    margin: 0 0.55rem;
    color: #7a7674;
}

.plot-stats-label {
    color: #201c1a;
}

.plot-stats-value {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-variant-numeric: tabular-nums;
    color: #111;
}

.plot-stats-fallback {
    color: #555;
}

.line-plot-stats-panel .plot-stats-box {
    min-height: 40px;
    max-height: 64px;
}

/* ── Map page toolbar ─────────────────────────────────────── */

.map-toolbar-top {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.map-toolbar-top--with-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.map-toolbar-top--with-actions .map-stats-panel {
    max-width: 100%;
}

.map-toolbar-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.map-type-hidden-input {
    display: none;
}

.map-type-step {
    padding: 0;
    background: transparent;
    border: 0;
    margin-bottom: 14px;
}

.map-type-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.map-type-step-heading {
    min-width: 0;
}

.map-type-step-title {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: var(--plot-well-label-size, 14px);
    line-height: var(--plot-well-label-line-height, 1.25);
    color: #333;
}

.map-type-choice-grid {
    display: grid;
    gap: 0;
}

.map-type-choice-item {
    min-width: 0;
}

.map-type-choice-button.btn {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20px;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    text-align: left;
    white-space: normal;
    padding: 12px 0;
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #333;
    box-shadow: none;
    transition:
        background-color 140ms ease,
        box-shadow 140ms ease,
        color 140ms ease;
}

.map-type-choice-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.map-type-choice-title {
    display: block;
    color: rgba(0, 0, 0, 0.78);
    font-size: var(--plot-well-input-size, 14px);
    font-weight: 500;
    font-variation-settings: "wght" 500;
    line-height: 1.2;
    transition:
        color 0.15s ease,
        font-variation-settings 0.25s ease;
}

.map-type-choice-description {
    display: block;
    color: rgba(0, 0, 0, 0.38);
    font-size: var(--plot-well-detail-size, 12.5px);
    font-weight: 400;
    line-height: 1.25;
    text-wrap: pretty;
    transition: color 0.15s ease;
}

.map-type-choice-arrow {
    justify-self: end;
    color: rgba(0, 0, 0, 0.46);
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
    transition: color 140ms ease;
}

.map-type-choice-button.btn:focus {
    outline: none;
}

.map-type-choice-button.btn:focus-visible {
    background: transparent;
    color: #333;
    box-shadow: 0 0 0 3px rgba(0, 116, 255, 0.16);
    outline: none;
}

.map-type-choice-button.btn:active {
    background: transparent;
    color: #333;
    box-shadow: none;
    outline: none;
}

@media (hover: hover) and (pointer: fine) {
    .map-type-choice-button.btn:hover {
        background: transparent;
        color: #333;
        box-shadow: none;
        outline: none;
    }

    .map-type-choice-button.btn:hover .map-type-choice-title {
        color: rgba(0, 0, 0, 0.92);
        font-variation-settings: "wght" 550;
    }

    .map-type-choice-button.btn:hover .map-type-choice-description {
        color: rgba(0, 0, 0, 0.56);
    }

    .map-type-choice-button.btn:hover .map-type-choice-arrow {
        color: rgba(0, 0, 0, 0.68);
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-type-choice-button.btn,
    .map-type-choice-title,
    .map-type-choice-description,
    .map-type-choice-arrow {
        transition: none;
    }
}

.map-type-back-button.btn {
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    background: #f9f9f9;
    color: #333;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 6px 14px;
    box-shadow: none;
}

.map-type-back-button.btn:hover,
.map-type-back-button.btn:focus,
.map-type-back-button.btn:active {
    background: #f5f5f5;
    border-color: var(--blue-secondary-a48);
    color: #333;
    box-shadow: none;
    outline: none;
}

/* ── Map type stack: horizontal drill-down between select and config ── */
.map-type-stack {
    display: grid;
    grid-template-areas: "stack";
    position: relative;
    width: 100%;
}

.map-type-pane {
    grid-area: stack;
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    filter: blur(calc(var(--page-blur) * var(--page-exit-enabled)));
    will-change: transform, opacity, filter;
    transition:
        opacity var(--page-fade-dur) var(--page-fade-ease),
        transform var(--page-slide-dur) var(--page-slide-ease),
        filter var(--page-slide-dur) var(--page-slide-ease),
        visibility 0s linear var(--page-fade-dur);
}

.map-type-pane--select {
    --t-page-from-x: calc(var(--page-slide-distance) * -1);
    transform: translateX(calc(var(--t-page-from-x) * var(--page-exit-enabled)));
}

.map-type-pane--config {
    --t-page-from-x: var(--page-slide-distance);
    transform: translateX(calc(var(--t-page-from-x) * var(--page-exit-enabled)));
}

.map-type-pane.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    filter: blur(0);
    pointer-events: auto;
    transition:
        opacity var(--page-fade-dur) var(--page-fade-ease),
        transform var(--page-slide-dur) var(--page-slide-ease),
        filter var(--page-slide-dur) var(--page-slide-ease),
        visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
    .map-type-pane,
    .map-type-pane.is-active {
        transition: none;
        transform: none;
        filter: none;
    }
}

.map-type-card {
    flex: 1 1 auto;
    border: 1px solid var(--blue-tertiary-a42);
    border-radius: 12px;
    padding: 12px 16px;
    background: #fff;
}

.map-type-card-title {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.map-type-card-body {
    display: flex;
    gap: 16px;
}

.map-type-radios {
    flex-shrink: 0;
}

.map-type-radios .radio {
    margin-top: 2px;
    margin-bottom: 2px;
}

.map-type-radios .radio label {
    font-size: var(--plot-well-label-size, 14px);
    line-height: var(--plot-well-label-line-height, 1.25);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.map-type-options {
    flex: 1;
    min-width: 0;
}

.map-type-options--sidebar .map-computed-layout {
    flex-direction: column;
    gap: 12px;
}

.map-type-options .form-group {
    margin-bottom: 0;
}

.map-type-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-type-fields-row {
    display: flex;
    gap: 10px;
}

.map-type-fields-row > div {
    flex: 1;
    min-width: 0;
}

.map-type-field-label {
    display: block;
    font-size: var(--plot-well-label-size, 14px);
    line-height: var(--plot-well-label-line-height, 1.25);
    color: #333;
    margin-bottom: 2px;
}

.map-computed-layout {
    display: flex;
    gap: 16px;
}

.map-computed-radios {
    flex-shrink: 0;
}

.map-computed-radios .radio {
    margin-top: 2px;
    margin-bottom: 6px;
}

.map-computed-radios .radio label {
    font-size: var(--plot-well-label-size, 14px);
    line-height: var(--plot-well-label-line-height, 1.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem;
}

.map-computed-inputs {
    flex: 1;
    min-width: 0;
}

.map-computed-inputs .form-group {
    margin-bottom: 0;
}

.map-toolbar-top--with-actions .map-stats-panel {
    flex: 0 1 760px;
    max-width: 100%;
}

.map-stats-panel {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.map-stats-panel .plot-stats-box {
    flex: 1;
}

.map-toolbar-bottom {
    display: flex;
    align-items: flex-end;
    gap: 1rem 1.5rem;
    padding: 6px 0 0;
    flex-wrap: wrap;
}

.map-toolbar-bottom .form-group {
    margin-bottom: 0;
}

.map-toolbar-bottom-left,
.map-toolbar-bottom-right {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    font-size: 0.85rem;
}

.map-toolbar-bottom-left {
    gap: 1rem;
    flex-wrap: wrap;
}

.map-toolbar-bottom-right {
    margin-left: auto;
}

.map-toolbar-action {
    min-width: 150px;
}

.map-toolbar-actions .button-trigger,
.map-toolbar-actions .custom-button-container,
.map-toolbar-actions .custom-button,
.map-toolbar-actions .plot-library-actions-inline {
    width: 100%;
}

.map-toolbar-actions .plot-library-actions,
.map-toolbar-actions .plot-library-actions-inline {
    margin-bottom: 0;
    align-items: center;
}

.map-toolbar-inline-label {
    font-weight: 400;
    color: #555;
    font-size: 0.82rem;
}

.map-toolbar-bottom .custom-button-container {
    height: 50px;
    margin-bottom: 0;
}

.plot-output-area {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    border-radius: 8px;
    background: #fff !important;
    container-type: size;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.plot-output-area--empty {
    border: 1px dashed var(--blue-tertiary-a48);
    background: var(--blue-quinary-a24) !important;
}

.plot-api-error-preview {
    max-width: 28rem;
    padding: 2rem;
    text-align: center;
    color: #5b5654;
}

.plot-api-error-preview h3 {
    margin: 0 0 0.6rem;
    color: var(--blue-primary);
    font-size: 1.3rem;
}

.plot-api-error-preview p {
    margin: 0;
    line-height: 1.5;
}

.plot-output-loading-overlay {
    z-index: 5;
    pointer-events: none;
}

.plot-output-loading-overlay[hidden] {
    display: none;
}

.overlay {
    --plot-loader-primary: #69717d;
    background: rgba(255, 255, 255, 0.92);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.page-loading-overlay {
    --plot-loader-primary: #69717d;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: transparent;
}

.auth-redirect-shell {
    --plot-loader-primary: #69717d;
}

.auth-redirect-loader {
    position: relative;
    width: min(100%, 32rem);
    min-height: 10rem;
}

.plot-output-area.is-loading .plot-render-slot {
    pointer-events: none;
    opacity: 0;
}

.plot-output-area .plot-render-slot {
    transition: opacity 150ms ease-out;
}

/* ── Plot page entrance animations ───────────────────────── */
@keyframes plot-page-enter-from-left {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes plot-page-enter-from-below {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plot-page-shell .plot-page-well {
    animation: plot-page-enter-from-left 280ms ease-out both;
}

.plot-page-shell .plot-main-panel {
    animation: plot-page-enter-from-below 280ms ease-out both;
    animation-delay: 60ms;
}

@media (prefers-reduced-motion: reduce) {
    .plot-output-area .plot-render-slot,
    .plot-page-shell .plot-page-well,
    .plot-page-shell .plot-main-panel {
        transition: none;
        animation: none;
    }
}

.spinner {
    font-size: 46px;
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
}

.spinner.center {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.spinner-blade {
    position: absolute;
    left: 0.468em;
    bottom: 0;
    width: 0.056em;
    height: 0.225em;
    border-radius: 0.5em;
    background-color: transparent;
    transform-origin: center -0.18em;
    -webkit-animation: spinner-fade 1s infinite linear;
    animation: spinner-fade 1s infinite linear;
}

.spinner-blade:nth-child(1) {
    -webkit-animation-delay: 0s;
    animation-delay: 0s;
    transform: rotate(0deg);
}

.spinner-blade:nth-child(2) {
    -webkit-animation-delay: 0.083s;
    animation-delay: 0.083s;
    transform: rotate(30deg);
}

.spinner-blade:nth-child(3) {
    -webkit-animation-delay: 0.166s;
    animation-delay: 0.166s;
    transform: rotate(60deg);
}

.spinner-blade:nth-child(4) {
    -webkit-animation-delay: 0.249s;
    animation-delay: 0.249s;
    transform: rotate(90deg);
}

.spinner-blade:nth-child(5) {
    -webkit-animation-delay: 0.332s;
    animation-delay: 0.332s;
    transform: rotate(120deg);
}

.spinner-blade:nth-child(6) {
    -webkit-animation-delay: 0.415s;
    animation-delay: 0.415s;
    transform: rotate(150deg);
}

.spinner-blade:nth-child(7) {
    -webkit-animation-delay: 0.498s;
    animation-delay: 0.498s;
    transform: rotate(180deg);
}

.spinner-blade:nth-child(8) {
    -webkit-animation-delay: 0.581s;
    animation-delay: 0.581s;
    transform: rotate(210deg);
}

.spinner-blade:nth-child(9) {
    -webkit-animation-delay: 0.664s;
    animation-delay: 0.664s;
    transform: rotate(240deg);
}

.spinner-blade:nth-child(10) {
    -webkit-animation-delay: 0.747s;
    animation-delay: 0.747s;
    transform: rotate(270deg);
}

.spinner-blade:nth-child(11) {
    -webkit-animation-delay: 0.83s;
    animation-delay: 0.83s;
    transform: rotate(300deg);
}

.spinner-blade:nth-child(12) {
    -webkit-animation-delay: 0.913s;
    animation-delay: 0.913s;
    transform: rotate(330deg);
}

.plot-output-loading-text {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 48px);
    margin: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--plot-loader-primary);
}

.plot-output-area .shiny-plot-output {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
}

.plot-output-area .plot-static-frame {
    flex: 0 0 auto;
    margin: auto;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.plot-output-area .plot-static-frame--map {
    --plot-static-aspect-ratio: 1;
    aspect-ratio: var(--plot-static-aspect-ratio);
}

.plot-output-area .map-animation-player {
    --plot-static-aspect-ratio: 1.33333333;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    padding: 8px;
    background: #fff;
}

.map-animation-frame {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.map-animation-frame img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.map-animation-frame .shiny-bound-output.recalculating,
.map-animation-frame .shiny-plot-output.recalculating {
    opacity: 1 !important;
}

.map-animation-controls {
    display: grid;
    grid-template-columns: auto auto auto minmax(8rem, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.map-animation-button {
    min-width: 56px;
    height: 32px;
    border: 1px solid #cfd5dd;
    border-radius: 6px;
    background: #fff;
    color: #243142;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

.map-animation-button--primary {
    color: #fff;
    border-color: var(--blue-primary);
    background: var(--blue-primary);
}

.map-animation-range {
    width: 100%;
    min-width: 0;
}

.map-animation-label,
.map-animation-count {
    white-space: nowrap;
    color: #4f5967;
    font-size: 0.8rem;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.map-animation-label {
    min-width: 5.5rem;
}

@supports (width: 100cqw) and (height: 100cqh) {
    .plot-output-area .plot-static-frame--map {
        width: min(100cqw, calc(100cqh * var(--plot-static-aspect-ratio)));
        height: min(100cqh, calc(100cqw / var(--plot-static-aspect-ratio)));
    }
}

@media (max-width: 700px) {
    .map-animation-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .map-animation-range,
    .map-animation-label,
    .map-animation-count {
        grid-column: 1 / -1;
    }

    .map-animation-button {
        min-width: 0;
        width: 100%;
    }
}

.plot-output-area .shiny-html-output,
.plot-output-area .plot-render-slot {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.plot-output-area .html-widget,
.plot-output-area .plotly,
.plot-output-area .js-plotly-plot {
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
}

.transect-plot-stack {
    display: grid;
    grid-template-rows: minmax(0, 1.335fr) minmax(0, 0.665fr);
    gap: 16px;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
}

.transect-plot-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}

.transect-plot-panel--profile > .html-widget,
.transect-plot-panel--profile > .plotly,
.transect-plot-panel--profile > .js-plotly-plot {
    flex: 1 1 auto;
}

.transect-plot-panel--map > .shiny-plot-output {
    flex: 1 1 auto;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
}

.transect-map-heading {
    flex: 0 0 auto;
    margin: 0;
    margin-block-end: 8px;
    color: #333;
    font-size: 0.82rem;
    font-weight: 600;
}

@-webkit-keyframes spinner-fade {
    0% {
        background-color: var(--plot-loader-primary);
    }

    100% {
        background-color: transparent;
    }
}

@keyframes spinner-fade {
    0% {
        background-color: var(--plot-loader-primary);
    }

    100% {
        background-color: transparent;
    }
}

/* Auth and account layout */
#router-page-wrapper,
#router-page-wrapper > .router {
    height: 100%;
}

.app-shell {
    width: 100%;
    height: 100%;
}

.auth-content {
    --panel-translate-y: 16px;
    --panel-blur: 1.5px;
    width: min(100%, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 0 1.5rem;
}

.account-content {
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    text-align: left;
    padding: 0;
}

.account-view-stack {
    width: 100%;
}

.account-view {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.9rem;
}

.account-view.is-active {
    display: flex;
}

.auth-header {
    display: inline-flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: center;
    color: rgba(0, 0, 0, 0.85);
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    color: currentColor;
}

.auth-logo svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.auth-eyebrow {
    color: var(--mg);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.auth-title {
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 600;
    color: currentColor;
}

.auth-subtitle {
    max-width: 36rem;
    color: #5b5654;
    font-size: 1rem;
}

.button-link-plain {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
}

.button-link-plain:focus-visible {
    outline: none;
}

.button-link-plain:focus-visible .custom-button-container {
    outline: 2px solid var(--blue-secondary);
    outline-offset: 4px;
}

.t-panel-slide {
    transform: translateY(var(--panel-translate-y));
    opacity: 0;
    filter: blur(var(--panel-blur));
    pointer-events: none;
    transition:
        transform var(--panel-close-dur) var(--panel-ease),
        opacity var(--panel-close-dur) var(--panel-ease),
        filter var(--panel-close-dur) var(--panel-ease);
    will-change: transform, opacity, filter;
}

.t-panel-slide[data-open="true"] {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    transition:
        transform var(--panel-open-dur) var(--panel-ease),
        opacity var(--panel-open-dur) var(--panel-ease),
        filter var(--panel-open-dur) var(--panel-ease);
}

@media (prefers-reduced-motion: reduce) {
    .t-panel-slide {
        transition: none !important;
    }
}

.service-status-card {
    width: min(100%, 640px);
    padding: 1.35rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.84),
            rgba(246, 246, 246, 0.96)
        ),
        linear-gradient(
            135deg,
            rgba(255, 243, 243, 0.7),
            var(--blue-quinary-a24)
        );
    border: 1px solid rgba(226, 226, 226, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.service-status-card-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    text-align: left;
}

.service-status-card .page-status {
    margin: 0;
}

.service-status-card-title,
.service-status-card-summary,
.service-status-card-hint,
.service-status-card-detail {
    margin: 0;
}

.service-status-card-title {
    max-width: 22ch;
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: rgba(0, 0, 0, 0.9);
}

.service-status-card-summary,
.service-status-card-hint,
.service-status-card-detail {
    max-width: 58ch;
    color: #5b5654;
}

.service-status-card-detail {
    color: rgba(0, 0, 0, 0.54);
    font-size: 0.92rem;
}

.service-status-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.service-status-card-compact {
    width: 100%;
    padding: 1.15rem 1.2rem;
    gap: 0.85rem;
    margin-bottom: 1.4rem;
}

.service-status-card-compact .service-status-card-title {
    max-width: none;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.08;
}

.service-status-card-compact .service-status-card-summary,
.service-status-card-compact .service-status-card-hint,
.service-status-card-compact .service-status-card-detail {
    max-width: none;
    font-size: 0.95rem;
}

.auth-form,
.register-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-form .form-group,
.auth-form .shiny-input-container {
    margin-bottom: 0;
}

.form-group {
    width: 100%;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.82rem;
}

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.auth-label-row label {
    margin-bottom: 0;
}

.auth-forgot-link {
    color: rgba(0, 0, 0, 0.46);
    border-bottom: 1px solid transparent;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none !important;
    transition:
        color 0.18s ease,
        border-color 0.18s ease;
}

.auth-forgot-link:focus-visible {
    outline: 2px solid var(--blue-secondary);
    outline-offset: 2px;
    color: var(--blue-primary);
    border-bottom-color: var(--blue-primary);
}

@media (hover: hover) {
    .auth-forgot-link:hover {
        color: var(--blue-primary);
        border-bottom-color: var(--blue-primary);
    }
}

.form-group .form-control,
.form-group .selectize-input {
    border: 1px solid #e2e2e2 !important;
    border-radius: 14px !important;
    background: #fafafa !important;
    box-shadow: none !important;
    padding: 9px 13px !important;
    min-height: 44px;
    font-size: 1rem !important;
}

.form-group .form-control:focus {
    border-color: var(--blue-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px var(--blue-primary-a16) !important;
}

.form-group .selectize-input {
    display: flex !important;
    align-items: center;
    color: rgba(0, 0, 0, 0.78) !important;
    transition:
        border-color 140ms ease,
        background-color 140ms ease,
        box-shadow 140ms ease !important;
}

.form-group .selectize-input.focus,
.form-group .selectize-input:focus-within {
    border-color: var(--blue-primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px var(--blue-primary-a16) !important;
}

.form-group .selectize-control.single .selectize-input:after {
    right: 14px;
    border-color: rgba(0, 0, 0, 0.5) transparent transparent transparent;
}

.auth-form .selectize-control.single .selectize-input.dropdown-active:after {
    border-color: transparent transparent var(--blue-primary) transparent;
}

.auth-form .selectize-dropdown {
    margin-top: 0.35rem;
    border: 1px solid var(--blue-tertiary-a42);
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
}

.auth-form .selectize-dropdown-content {
    max-height: 14rem;
    padding: 0.35rem;
}

.auth-form .selectize-dropdown-content .option {
    border-radius: 10px;
    padding: 0.55rem 0.7rem;
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    line-height: 1.2;
    transition:
        background-color 120ms ease,
        color 120ms ease;
}

.auth-form .selectize-dropdown-content .option.active {
    background: var(--blue-quinary-a62);
    color: var(--blue-primary);
}

.auth-form .selectize-dropdown-content .option.selected {
    background: var(--blue-primary-a15);
    color: var(--blue-primary);
}

.auth-form .selectize-dropdown-content .option.active.selected {
    background: var(--blue-primary);
    color: #fff;
}

.auth-form .selectize-dropdown .no-results {
    padding: 0.65rem 0.75rem;
    color: rgba(0, 0, 0, 0.46);
    font-size: 0.92rem;
}

.auth-password-field {
    position: relative;
    width: 100%;
}

.auth-password-field .shiny-input-container {
    width: 100% !important;
    margin-bottom: 0;
}

.auth-password-field .form-control {
    padding-right: 44px !important;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(0, 0, 0, 0.42);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        background-color 140ms ease,
        color 140ms ease;
}

.auth-password-toggle svg {
    width: 18px;
    height: 18px;
}

.auth-password-toggle .auth-password-icon-slash {
    display: none;
}

.auth-password-toggle[data-visible="true"] .auth-password-icon-open {
    display: none;
}

.auth-password-toggle[data-visible="true"] .auth-password-icon-slash {
    display: inline;
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--blue-secondary);
    outline-offset: 2px;
}

.auth-password-toggle[data-visible="true"] {
    color: rgba(0, 0, 0, 0.7);
}

@media (hover: hover) {
    .auth-password-toggle:hover {
        color: rgba(0, 0, 0, 0.7);
    }
}

.auth-form .button-trigger,
.auth-form .button-link {
    display: block;
    width: 100%;
}

.auth-submit-wrapper {
    width: 100%;
}

.auth-inline-message {
    width: 100%;
    border: 1px solid rgba(35, 75, 150, 0.16);
    border-radius: 14px;
    background: rgba(35, 75, 150, 0.06);
    color: rgba(0, 0, 0, 0.68);
    font-size: 0.9rem;
    line-height: 1.45;
    padding: 0.8rem 0.9rem;
    text-align: left;
}

.auth-form .button-trigger {
    margin-top: 0.35rem;
}

.auth-form .custom-button-container {
    width: 100%;
    height: 44px;
    margin-bottom: 0;
    box-shadow: none;
}

.auth-form .custom-button {
    width: 100%;
    padding: 0 22px;
}

.auth-form .custom-button span {
    font-size: 15px;
    font-weight: 600;
}

.auth-form .custom-hover,
.auth-form .custom-shadow,
.auth-form .custom-shadow-3 {
    display: none;
}

.auth-form .auth-secondary-button .custom-button-container {
    border-color: rgba(0, 0, 0, 0.16);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.auth-form .auth-secondary-button .custom-button {
    color: rgba(0, 0, 0, 0.74);
    background: linear-gradient(180deg, #fff, #f5f5f5);
}

.auth-form .auth-secondary-button .custom-button span {
    text-shadow: none;
}

@media (hover: hover) {
    .auth-form .auth-secondary-button:hover .custom-button {
        background: linear-gradient(180deg, #fff, #eeeeee);
    }
}

.auth-home-link {
    align-self: center;
    color: rgba(0, 0, 0, 0.46);
    font-size: 0.86rem;
    line-height: 1.3;
    text-decoration: none;
}

@media (hover: hover) {
    .auth-home-link:hover {
        color: rgba(0, 0, 0, 0.68);
    }
}

.app-shell input[type="radio"],
.app-shell input[type="checkbox"] {
    accent-color: var(--blue-primary);
}

.app-shell input[type="radio"]:focus-visible,
.app-shell input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--blue-secondary);
    outline-offset: 2px;
}

.auth-links,
.account-actions {
    width: 100%;
    display: flex;
    gap: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.account-actions {
    justify-content: flex-start;
}

.account-summary {
    max-width: none;
    margin: 0;
}

.account-card {
    width: 100%;
    padding: 0;
    overflow: hidden;
}

.account-profile-row,
.account-list-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 54px;
    padding: 1rem 1.2rem;
}

.account-nav-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 54px;
    padding: 1rem 1.2rem;
    transition: background-color 0.18s ease;
}

.account-profile-card .account-profile-row {
    min-height: 112px;
    align-items: center;
}

.account-profile-copy,
.account-list-row-copy {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
    flex: 1 1 auto;
}

.account-list-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.25rem;
    align-self: flex-start;
    margin-top: 0.08rem;
    color: var(--mg);
}

.account-list-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.account-nav-row-icon,
.account-nav-row-arrow {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.25rem;
    color: var(--mg);
}

.account-nav-row-icon svg,
.account-nav-row-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

.account-nav-row-arrow {
    align-self: center;
    color: rgba(0, 0, 0, 0.58);
}

.account-profile-nav-button {
    appearance: none;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.account-profile-nav-button:focus-visible .account-nav-row {
    background: var(--blue-quinary-a24);
}

.account-profile-nav-button:focus-visible {
    outline: none;
}

.account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 72px;
    background:
        radial-gradient(
            circle at 28% 25%,
            rgba(255, 255, 255, 0.9),
            rgba(255, 255, 255, 0) 42%
        ),
        linear-gradient(145deg, oklch(0.89 0.05 232), oklch(0.82 0.08 210));
    color: oklch(0.38 0.09 242);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.account-name,
.account-primary,
.account-secondary,
.account-list-label,
.account-list-meta,
.account-list-value {
    margin: 0;
}

.account-name {
    font-size: 1.25rem;
    line-height: 1.15;
    font-weight: 650;
    color: rgba(0, 0, 0, 0.92);
}

.account-primary {
    color: rgba(0, 0, 0, 0.62);
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

.account-secondary {
    color: rgba(0, 0, 0, 0.46);
    font-size: 0.9rem;
}

.account-card-divider {
    height: 1px;
    margin: 0 1.2rem 0 calc(1.2rem + 1.25rem + 1rem);
    background: rgba(0, 0, 0, 0.06);
}

.account-list-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.86);
}

.account-list-meta {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.48);
}

.account-list-value {
    min-width: 0;
    max-width: 48%;
    color: rgba(0, 0, 0, 0.58);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.account-joined {
    margin: 0;
    text-align: center;
}

.account-actions {
    padding-top: 0;
}

.account-actions-standalone {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.account-auth-content {
    max-width: 32rem;
    align-items: stretch;
    gap: 1rem;
    text-align: left;
    padding: 0;
}

.account-auth-copy {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.15rem;
}

.account-auth-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 600;
}

.account-auth-actions {
    width: 100%;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 0;
}

.account-auth-actions .button-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.account-auth-login,
.account-auth-register {
    width: 100%;
}

.account-library-page-card {
    padding: 1.1rem 1.2rem 1.2rem;
}

.account-library-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.account-library-page-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
}

.account-library-page-title,
.account-library-page-subtitle {
    margin: 0;
}

.account-library-page-title {
    font-size: 1.1rem;
    font-weight: 650;
    color: rgba(0, 0, 0, 0.88);
}

.account-library-page-subtitle {
    color: rgba(0, 0, 0, 0.56);
    font-size: 0.94rem;
    line-height: 1.45;
}

.account-library-back {
    flex-shrink: 0;
}

.account-library-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem 1.2rem 1.2rem;
}

.account-library-heading {
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    color: rgba(0, 0, 0, 0.88);
}

.account-library-empty {
    margin: 0;
    color: rgba(0, 0, 0, 0.52);
    font-size: 0.95rem;
}

.account-library-grid {
    display: grid;
    gap: 0.85rem;
}

.account-library-grid--gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.6rem;
}

.account-gallery-tile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    overflow: hidden;
    background: #0a0a0a;
    cursor: pointer;
    transition:
        transform 180ms cubic-bezier(0.215, 0.61, 0.355, 1),
        border-color 180ms cubic-bezier(0.215, 0.61, 0.355, 1),
        box-shadow 180ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

@media (hover: hover) and (pointer: fine) {
    .account-gallery-tile:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 0, 0, 0.14);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    }
}

.account-gallery-tile:focus-visible {
    outline: none;
    border-color: var(--blue-secondary-a48);
    box-shadow: 0 0 0 3px var(--blue-quinary-a72);
}

.account-gallery-tile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-gallery-tile-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 520px) {
    .account-library-grid--gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.account-library-card {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.9rem;
}

.account-library-card-interactive {
    cursor: pointer;
    transition:
        transform 220ms cubic-bezier(0.23, 1, 0.32, 1),
        border-color 220ms cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 220ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
    .account-library-card-interactive:hover {
        transform: translateY(-2px);
        border-color: rgba(0, 0, 0, 0.12);
        box-shadow:
            0 16px 36px rgba(15, 23, 42, 0.08),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.account-library-card-interactive:focus-visible {
    outline: none;
    border-color: var(--blue-secondary-a48);
    box-shadow:
        0 0 0 3px var(--blue-quinary-a72),
        0 16px 36px rgba(15, 23, 42, 0.08);
}

.account-library-preview {
    width: 112px;
    min-width: 112px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
}

.account-library-preview-image {
    display: block;
    width: 100%;
    height: 76px;
    object-fit: cover;
}

.account-library-preview-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 76px;
    color: rgba(0, 0, 0, 0.48);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-library-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 0.38rem;
}

.account-library-title,
.account-library-caption,
.account-library-meta {
    margin: 0;
}

.account-library-title {
    font-size: 0.98rem;
    font-weight: 620;
    color: rgba(0, 0, 0, 0.88);
}

.account-library-caption {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.93rem;
    line-height: 1.45;
}

.account-library-caption-muted {
    color: rgba(0, 0, 0, 0.42);
}

.account-library-meta {
    color: rgba(0, 0, 0, 0.42);
    font-size: 0.85rem;
}

.account-library-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.2rem;
}

.account-inline-button {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.78);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 550;
    cursor: pointer;
}

.account-inline-button:hover,
.account-inline-button:focus-visible {
    border-color: rgba(0, 0, 0, 0.16);
    color: rgba(0, 0, 0, 0.92);
}

.ioda-modal-scroll-lock {
    overflow: hidden;
    touch-action: none;
}

.ioda-app-root {
    min-height: 100%;
}

.ioda-modal {
    --ioda-modal-ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ioda-modal-dur: 220ms;
    --ioda-modal-dur-exit: 180ms;
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: grid;
    align-items: center;
    justify-items: center;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    pointer-events: none;
}

.ioda-modal[hidden] {
    display: none !important;
}

.ioda-modal__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    cursor: default;
    background: rgba(14, 10, 9, 0.38);
    opacity: 0;
    transition: opacity var(--ioda-modal-dur) var(--ioda-modal-ease-out);
}

.ioda-modal__dialog {
    position: relative;
    z-index: 1;
    pointer-events: none;
    width: min(100%, 520px);
    max-height: min(90vh, 900px);
    overflow: hidden auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--fg);
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 24px 64px rgba(15, 23, 42, 0.14),
        0 2px 10px rgba(15, 23, 42, 0.06);
    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity var(--ioda-modal-dur) var(--ioda-modal-ease-out),
        transform var(--ioda-modal-dur) var(--ioda-modal-ease-out);
    will-change: transform, opacity;
}

.ioda-modal--l .ioda-modal__dialog {
    width: min(100%, 860px);
}

.ioda-modal__dialog:has(.ioda-modal__saved-plot-surface) {
    width: min(100%, 820px);
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

.ioda-modal__dialog:has(.ioda-modal__body--dark) {
    width: min(100%, 460px);
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

.ioda-modal__header--dark {
    display: flex;
    align-items: center;
    padding: 24px 24px 10px;
    border-bottom: none;
}

.ioda-modal__header--dark .ioda-modal__title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    flex-grow: 1;
    min-width: 0;
    margin: 0;
    margin-right: 30px;
    padding: 2px 0;
    text-align: center;
    text-wrap: balance;
}

.ioda-modal__header-close {
    flex-shrink: 0;
    padding: 0;
    border: none;
    appearance: none;
    font: inherit;
}

.ioda-modal__header-close:focus-visible {
    outline: 2px solid var(--blue-quinary);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .ioda-modal__header-close.close-button:hover {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
    }
}

.ioda-modal__body--dark {
    color: rgba(255, 255, 255, 0.88);
    padding: 10px 24px 16px;
}

.ioda-modal__body--dark .form-group {
    margin-bottom: 1rem;
}

.ioda-modal__body--dark .shiny-input-container,
.ioda-modal__body--dark .form-group,
.ioda-modal__body--dark .selectize-control {
    width: 100% !important;
    max-width: none;
    box-sizing: border-box;
}

.ioda-modal__body--dark .control-label,
.ioda-modal__body--dark label {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 550;
    font-size: 0.95rem;
}

.ioda-modal__body--dark .form-group .form-control {
    background: #1f1f1f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    border-radius: 14px !important;
    width: 100%;
    box-sizing: border-box;
    transition:
        border-color 150ms ease,
        background-color 150ms ease;
}

.ioda-modal__body--dark .form-group select.form-control,
.ioda-modal__body--dark .form-group .selectize-input {
    width: 100% !important;
}

.ioda-overlay-section .form-group select.form-control {
    -webkit-appearance: none;
    appearance: none;
    height: 44px !important;
    min-height: 44px;
    padding: 9px 40px 9px 13px !important;
    border-radius: 14px !important;
    background-color: #1f1f1f !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-opacity='0.86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
    background-size: 18px 18px !important;
    line-height: 1.35;
}

.ioda-overlay-section input[type="number"] {
    font-variant-numeric: tabular-nums;
}

.ioda-modal__body--dark .input-group .form-control,
.ioda-modal__body--dark .input-group .btn,
.ioda-modal__body--dark .btn-file {
    border-radius: 14px !important;
}

.ioda-modal__body--dark .input-group .btn,
.ioda-modal__body--dark .btn-file {
    background: #1f1f1f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.88) !important;
    min-height: 44px;
    padding: 9px 13px !important;
    box-shadow: none !important;
    transition:
        border-color 150ms ease,
        background-color 150ms ease;
}

.ioda-modal__body--dark .form-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.36);
}

.ioda-modal__body--dark .form-group .form-control:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.32) !important;
    background: #262626 !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

@media (hover: hover) {
    .ioda-modal__body--dark .input-group .btn:hover,
    .ioda-modal__body--dark .btn-file:hover {
        background: #262626 !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
    }
}

.ioda-help-content {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

.ioda-modal__dialog:has(.ioda-help-content) {
    border: none;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 8px 24px rgba(0, 0, 0, 0.22);
}

.ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__header-close {
    width: 40px;
    height: 40px;
    transition:
        background-color 150ms ease-out,
        color 150ms ease-out,
        transform 150ms ease-out;
}

.ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__header-close:active,
.ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__btn:active {
    transform: scale(0.96);
}

.ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__header--dark .ioda-modal__title {
    margin-right: 40px;
}

.ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__btn {
    transition:
        border-color 150ms ease-out,
        background-color 150ms ease-out,
        color 150ms ease-out,
        transform 150ms ease-out;
}

.ioda-help-content h1,
.ioda-help-content h2,
.ioda-help-content h3 {
    color: #fff;
    font-weight: 650;
    letter-spacing: 0;
    text-wrap: balance;
}

.ioda-help-content h1 {
    margin: 0 0 0.9rem;
    font-size: 1.35rem;
}

.ioda-help-content h2 {
    margin: 1rem 0 0.45rem;
    font-size: 1.05rem;
}

.ioda-help-content p,
.ioda-help-content ul,
.ioda-help-content ol {
    margin: 0 0 0.85rem;
}

.ioda-help-content p,
.ioda-help-content li {
    text-wrap: pretty;
}

.ioda-help-content ul,
.ioda-help-content ol {
    text-align: left;
}

.ioda-help-content ul {
    padding: 0;
}

.ioda-help-content ol {
    padding: 0 0 0 1.2rem;
}

.ioda-help-content li + li {
    margin-top: 0.3rem;
}

.ioda-help-content--empty {
    color: rgba(255, 255, 255, 0.68);
}

@media (prefers-reduced-motion: reduce) {
    .ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__header-close,
    .ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__btn {
        transition: none;
    }

    .ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__header-close:active,
    .ioda-modal__dialog:has(.ioda-help-content) .ioda-modal__btn:active {
        transform: none;
    }
}

.ioda-modal-help-note {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.45;
    text-wrap: pretty;
}

.ioda-modal__body--dark hr {
    margin: 1.5rem 0 1.35rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.ioda-overlay-stack {
    display: grid;
    row-gap: 0;
}

.ioda-overlay-section {
    display: grid;
    gap: 0.85rem;
}

.ioda-overlay-divider {
    height: 1px;
    margin: 1.3rem 0;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0.18) 18%,
        rgba(255, 255, 255, 0.18) 82%,
        rgba(255, 255, 255, 0)
    );
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.32);
}

.ioda-overlay-primary-toggle > .form-group,
.ioda-overlay-dependent-option .form-group,
.ioda-overlay-section > .form-group:first-child {
    margin-bottom: 0;
}

.ioda-overlay-section .checkbox,
.ioda-overlay-section .radio {
    margin-top: 0;
    margin-bottom: 0;
}

.ioda-overlay-section .checkbox label,
.ioda-overlay-section .radio label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.25;
    transition:
        color 150ms ease,
        opacity 150ms ease;
}

.ioda-overlay-section .checkbox input[type="checkbox"],
.ioda-overlay-section .radio input[type="radio"] {
    position: static;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.ioda-overlay-primary-toggle .checkbox label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 650;
}

.ioda-overlay-dependent-option {
    min-height: 40px;
}

.ioda-overlay-dependent-option .shiny-html-output {
    margin: 0;
}

.ioda-overlay-section .shiny-input-radiogroup {
    margin-bottom: 1rem;
}

.ioda-overlay-section .shiny-input-radiogroup .shiny-options-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ioda-overlay-section .shiny-input-radiogroup .radio {
    margin-top: 0;
    margin-bottom: 0;
}

.ioda-overlay-section .form-group:last-child,
.ioda-overlay-section .shiny-input-container:last-child {
    margin-bottom: 0;
}

.ioda-modal__body--dark .radio {
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.ioda-modal__body--dark .radio:last-child {
    margin-bottom: 0;
}

.ioda-modal__body--dark .radio label {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 500;
}

.ioda-modal__body--dark textarea.form-control {
    resize: vertical;
    min-height: 96px;
}

.ioda-modal__footer--dark {
    padding: 0 24px 24px;
    border-top: none;
    position: relative;
    isolation: isolate;
    background: #0a0a0a;
}

.ioda-modal__footer--dark .custom-button-container,
.ioda-modal__footer--dark .button-trigger {
    width: 100%;
    flex: 1 1 100%;
}

.ioda-modal__footer--dark .custom-button-container {
    margin-bottom: 0;
    border-color: rgba(255, 255, 255, 0.35);
    background: linear-gradient(
        180deg,
        #6a6a6a,
        #0a0a0a 50%,
        var(--blue-primary) 92%
    );
    box-shadow: inset 0 0 1px 1px rgba(255, 255, 255, 0.12);
}

.ioda-modal__footer--dark .custom-button {
    background: linear-gradient(180deg, #3f3f3f, #141414);
}

.ioda-modal__footer--dark .custom-shadow,
.ioda-modal__footer--dark .custom-shadow-1,
.ioda-modal__footer--dark .custom-shadow-2,
.ioda-modal__footer--dark .custom-shadow-3 {
    display: none;
}

.ioda-modal__footer--dark .custom-button-container:hover .custom-hover {
    opacity: 0.05;
}

.ioda-modal__submit-wrapper {
    width: 100%;
    display: flex;
    position: relative;
    z-index: 1;
}

.ioda-modal__footer--dark:has(.ioda-modal__submit-wrapper--overlay)::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -56px;
    height: 56px;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0) 0%,
        rgba(10, 10, 10, 0.22) 42%,
        rgba(10, 10, 10, 0.72) 78%,
        #0a0a0a 100%
    );
    transition: opacity 0.18s ease;
}

.ioda-modal__footer--dark.ioda-modal__footer-fade-active:has(.ioda-modal__submit-wrapper--overlay)::before {
    opacity: 1;
}

.custom-button-container.is-loading {
    pointer-events: none;
    cursor: default;
}

.button-trigger.is-loading {
    cursor: default;
}

.custom-button-container.is-loading .custom-button span:not(.ioda-button-spinner):not(.spinner-blade) {
    visibility: hidden;
}

.ioda-button-spinner.spinner {
    --plot-loader-primary: #ffffff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    pointer-events: none;
}

.ioda-modal__dialog #ioda_custom_modal {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
}

.ioda-modal--open .ioda-modal__backdrop {
    opacity: 1;
    pointer-events: auto;
}

.ioda-modal--open .ioda-modal__dialog {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.ioda-modal--leaving .ioda-modal__backdrop {
    opacity: 0;
    transition-duration: var(--ioda-modal-dur-exit);
}

.ioda-modal--leaving .ioda-modal__dialog {
    opacity: 0;
    transform: scale(0.98);
    transition-duration: var(--ioda-modal-dur-exit);
}

.ioda-modal__header {
    padding: 1.1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ioda-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 650;
}

.ioda-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.25rem 1.25rem;
}

.ioda-modal__body .shiny-input-container {
    margin-bottom: 0.85rem;
}

.ioda-modal__footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
    align-items: center;
    padding: 0 1.25rem 1.15rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ioda-modal__footer .button-trigger {
    min-height: 44px;
    min-width: 44px;
    box-sizing: border-box;
}

.ioda-modal__btn {
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: rgba(0, 0, 0, 0.82);
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    min-height: 44px;
    font-size: 0.85rem;
    font-weight: 560;
    cursor: pointer;
    transition:
        border-color 150ms ease,
        background-color 150ms ease,
        color 150ms ease;
}

.ioda-modal__btn:focus-visible {
    outline: 2px solid var(--blue-primary);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .ioda-modal__btn--secondary:hover {
        border-color: rgba(0, 0, 0, 0.22);
        background: #fff;
        color: #000;
    }
}

.ioda-modal__btn--secondary:focus-visible {
    border-color: rgba(0, 0, 0, 0.22);
    background: #fff;
    color: #000;
}

.ioda-modal__saved-plot-surface {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    flex-direction: column;
    overflow: hidden;
    border-radius: inherit;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.92);
}

.ioda-modal__body--saved-plot {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1rem 0;
}

.ioda-modal__icon-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.88);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transition:
        background-color 150ms ease,
        color 150ms ease;
}

.ioda-modal__icon-close:focus-visible {
    outline: 2px solid var(--blue-quinary);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .ioda-modal__icon-close:hover {
        border-color: rgba(255, 255, 255, 0.28);
        background: #1f1f1f;
        color: #fff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ioda-modal__backdrop,
    .ioda-modal__dialog {
        transition: none;
    }

    .ioda-modal--open .ioda-modal__backdrop {
        opacity: 1;
    }

    .ioda-modal--open .ioda-modal__dialog {
        opacity: 1;
        transform: none;
    }

    .ioda-modal--leaving .ioda-modal__backdrop,
    .ioda-modal--leaving .ioda-modal__dialog {
        opacity: 0;
    }
}

.account-saved-plot-modal-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.account-saved-plot-modal-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: #000;
}

.account-saved-plot-modal-image {
    display: block;
    width: 100%;
    max-height: min(62vh, 640px);
    object-fit: contain;
    background: #fff;
}

.account-saved-plot-modal-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 240px;
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.account-saved-plot-modal-copy {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 0.25rem 0;
}

.account-saved-plot-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0.9rem 0.25rem 1rem;
}

.account-saved-plot-modal-action.btn,
.account-saved-plot-confirm-delete.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    box-shadow: none;
    transition:
        background-color 150ms ease,
        border-color 150ms ease,
        color 150ms ease,
        transform 120ms ease;
}

.account-saved-plot-modal-action.btn:focus-visible,
.account-saved-plot-confirm-delete.btn:focus-visible {
    outline: 2px solid var(--blue-quinary);
    outline-offset: 2px;
}

.account-saved-plot-modal-action.btn:active:not(:disabled),
.account-saved-plot-confirm-delete.btn:active:not(:disabled) {
    transform: scale(0.96);
}

.account-saved-plot-modal-action.btn:disabled,
.account-saved-plot-confirm-delete.btn:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.account-saved-plot-modal-action.btn.is-loading:disabled,
.account-saved-plot-confirm-delete.btn.is-loading:disabled {
    cursor: wait;
}

.account-saved-plot-modal-action--download.btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.92);
}

.account-saved-plot-modal-action--delete.btn {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1f1f1f;
    color: #ff5a5f;
}

@media (hover: hover) and (pointer: fine) {
    .account-saved-plot-modal-action--download.btn:hover:not(:disabled) {
        border-color: rgba(255, 255, 255, 0.18);
        background: #262626;
        color: #fff;
    }

    .account-saved-plot-modal-action--delete.btn:hover:not(:disabled) {
        border-color: rgba(255, 90, 95, 0.42);
        background: #2a2021;
        color: #ff7377;
    }
}

.account-saved-plot-modal-action-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.account-saved-plot-modal-action-icon svg {
    display: block;
}

.account-saved-plot-delete-confirmation p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

.account-saved-plot-delete-confirmation .account-saved-plot-delete-warning {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.9rem;
}

.ioda-modal__dialog:has(.ioda-modal__body--delete-confirmation) {
    width: min(100%, 520px);
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 2px 10px rgba(0, 0, 0, 0.3);
}

.ioda-modal__header--delete-confirmation {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 0;
}

.ioda-modal__header--delete-confirmation .ioda-modal__title {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1.3;
}

.ioda-modal__body--delete-confirmation {
    flex: 0 1 auto;
    padding: 1rem 1.5rem 0;
    overflow: visible;
}

.ioda-modal__footer--delete-confirmation {
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 0;
}

.ioda-modal__footer--delete-confirmation .ioda-modal__btn {
    min-width: 132px;
    min-height: 48px;
}

.ioda-modal__footer--delete-confirmation .ioda-modal__btn--secondary {
    border-color: rgba(255, 255, 255, 0.12);
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.88);
}

.ioda-modal__footer--delete-confirmation .ioda-modal__btn--secondary:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    background: #262626;
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .ioda-modal__footer--delete-confirmation .ioda-modal__btn--secondary:hover {
        border-color: rgba(255, 255, 255, 0.28);
        background: #262626;
        color: #fff;
    }
}

.account-saved-plot-confirm-delete.btn {
    border: 1px solid #ef4444;
    background: #ef4444;
    color: #fff;
}

.account-saved-plot-confirm-delete.btn:focus-visible {
    outline-color: #ff7377;
}

@media (hover: hover) and (pointer: fine) {
    .account-saved-plot-confirm-delete.btn:hover:not(:disabled) {
        border-color: #dc2626;
        background: #dc2626;
        color: #fff;
    }
}

.account-saved-plot-modal-caption,
.account-saved-plot-modal-created {
    margin: 0;
}

.account-saved-plot-modal-caption {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.55;
}

.account-saved-plot-modal-caption-muted {
    color: rgba(255, 255, 255, 0.42);
}

.account-saved-plot-modal-created {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
}

.plot-library-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.plot-library-actions-inline {
    margin-bottom: 0.8rem;
}

.map-toolbar-bottom-left .plot-library-actions-inline {
    margin-bottom: 0;
    align-items: center;
}

.plot-main-toolbar-left .plot-library-actions-inline {
    margin-bottom: 0;
    align-items: center;
}

.library-note-preview-shell {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.library-note-preview-shell h4 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 650;
}

.library-note-preview {
    min-height: 80px;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.82);
}

.library-note-preview p,
.library-note-preview ul,
.library-note-preview h1,
.library-note-preview h2,
.library-note-preview h3 {
    margin-top: 0;
}

.account-auth-actions .custom-button-container {
    margin-bottom: 0;
}

.account-auth-login .custom-button-container {
    border-color: var(--blue-tertiary-a45);
    background: var(--blue-quinary);
    box-shadow: none;
}

.account-auth-login .custom-button {
    background: var(--blue-quinary);
    color: var(--blue-primary);
}

.account-auth-login .custom-button span {
    color: var(--blue-primary);
    text-shadow: none;
}

.account-auth-login .custom-hover,
.account-auth-login .custom-shadow,
.account-auth-login .custom-shadow-3 {
    display: none;
}

.account-actions .button-trigger {
    width: 100%;
}

.account-actions .custom-button-container,
.account-actions .custom-button {
    width: 100%;
}

.account-signout-actions .custom-shadow,
.account-signout-actions .custom-shadow-3 {
    display: none;
}

@media (max-width: 640px) {
    .ioda-modal__header--delete-confirmation {
        padding: 1.25rem 1.25rem 0;
    }

    .ioda-modal__body--delete-confirmation {
        padding: 0.875rem 1.25rem 0;
    }

    .ioda-modal__footer--delete-confirmation {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1.125rem 1.25rem 1.25rem;
    }

    .ioda-modal__footer--delete-confirmation .ioda-modal__btn {
        min-width: 0;
        width: 100%;
    }

    .ioda-modal__body--saved-plot {
        padding: 0.75rem 0.75rem 0;
    }

    .account-saved-plot-modal-figure {
        border-radius: 14px;
    }

    .account-saved-plot-modal-copy {
        padding: 0.85rem 0.125rem 0;
    }

    .account-saved-plot-modal-actions {
        margin: 0.75rem 0.125rem;
    }

    .account-saved-plot-modal-image,
    .account-saved-plot-modal-fallback {
        max-height: 52vh;
        min-height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-library-card-interactive,
    .account-gallery-tile {
        transition: none;
    }

    .account-gallery-tile:hover {
        transform: none;
    }
}

/* Routed plot template pages */
.dashboard-shell {
    height: 100vh;
    height: 100dvh;
    padding: 32px 24px 48px;
    background: #ffffff;
    overflow-y: auto;
}

.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.page-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 760px;
}

.dashboard-title {
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 0.94;
    font-weight: 700;
}

.dashboard-subtitle {
    max-width: 54rem;
    color: #5b5654;
    font-size: 1.05rem;
}

.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.page-status,
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--blue-tertiary-a42);
    background: var(--blue-quinary-a42);
    color: var(--blue-primary);
    backdrop-filter: blur(8px);
}

.page-status-error {
    border-color: #f0c3c3;
    background: rgba(255, 242, 242, 0.9);
    color: #8a3b3b;
}

.page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.page-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--blue-tertiary-a42);
    background: var(--blue-quinary-a34);
    color: var(--blue-primary);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.page-nav-link:hover {
    transform: translateY(-1px);
    border-color: var(--blue-secondary);
    background: var(--blue-quinary-a68);
}

.page-nav-link.is-active {
    border-color: var(--blue-primary);
    background: var(--blue-primary);
    color: #ffffff;
}

/* ── Home layout: atlas landing screen ────────────────────── */
.home-layout {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: block;
    padding: 0;
    overflow: hidden;
    position: relative;
    isolation: isolate;
    background: #dceafa;
}

.home-background-layers {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-background-pale,
.home-background-arch,
.home-background-blue,
.home-background-blue-glow {
    position: absolute;
    pointer-events: none;
}

.home-background-pale {
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(220, 234, 250, 0.98) 46%, rgba(196, 218, 245, 0.94) 100%),
        #dceafa;
    opacity: 1;
    transition-property: opacity;
    transition-duration: 200ms;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
    /* Brighten after the navy has mostly retracted (matches return duration) */
    transition-delay: 160ms;
}

.home-background-arch {
    display: none;
    inset: 0;
    z-index: 1;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: radial-gradient(
        118vw 142vh at 100% 100%,
        transparent 0 68.5%,
        #fff 68.8% 78.8%,
        transparent 79.2%
    );
}

.home-background-blue {
    top: -30vh;
    left: 40vw;
    width: 82vw;
    height: 172vh;
    z-index: 2;
    border-radius: 50% 0 0 50% / 50% 0 0 50%;
    background: #062e75;
    filter: blur(0);
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: 30% 45%;
    will-change: transform, opacity;
    /* Return to Plots: snappy ease-out (this rule applies when leaving content) */
    transition-property: left, width, top, height, border-radius, opacity, transform;
    transition-duration: 240ms;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.home-background-blue-glow {
    top: 8vh;
    left: 48vw;
    width: 54vw;
    height: 54vw;
    z-index: 3;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 35% 40%,
            rgba(74, 144, 226, 0.42) 0%,
            rgba(6, 46, 117, 0.18) 42%,
            transparent 72%
        );
    filter: blur(28px);
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.92);
    will-change: transform, opacity;
    /* Glow exits fast with the return */
    transition-property: opacity, transform;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.home-layout[data-home-surface="content"] .home-background-pale {
    opacity: 0.55;
    transition-delay: 0ms;
}

.home-layout[data-home-surface="content"] .home-background-blue {
    top: -38vh;
    left: 26vw;
    width: 100vw;
    height: 180vh;
    border-radius: 46% 0 0 54% / 42% 0 0 58%;
    background:
        radial-gradient(circle at 30% 34%, rgba(28, 92, 168, 0.28) 0%, transparent 50%),
        linear-gradient(160deg, #0a3a8c 0%, #062e75 52%, #052861 100%);
    filter: blur(36px);
    opacity: 1;
    transform: translate3d(-2%, 1%, 0) scale(1.06);
    /* Expand into content: ease-in-out morph; no drift keyframes (they fight the tab morph) */
    transition-duration: 280ms;
    transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
}

.home-layout[data-home-surface="content"] .home-background-blue-glow {
    top: -6vh;
    left: 36vw;
    width: 68vw;
    height: 68vw;
    background:
        radial-gradient(
            circle at 35% 40%,
            rgba(74, 144, 226, 0.18) 0%,
            rgba(6, 46, 117, 0.12) 44%,
            transparent 72%
        );
    opacity: 0.4;
    transform: translate3d(0, 0, 0) scale(1);
    transition-duration: 280ms;
    transition-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
    transition-property: opacity, transform, left, top, width, height;
}

@media (prefers-reduced-motion: reduce) {
    .home-background-pale,
    .home-background-blue,
    .home-background-blue-glow {
        transition: none;
    }

    .home-layout[data-home-surface="content"] .home-background-blue {
        transform: translate3d(-2%, 1%, 0) scale(1.04);
    }

    .home-layout[data-home-surface="content"] .home-background-blue-glow {
        transform: none;
        opacity: 0.38;
    }
}

.home-page-well.well {
    position: relative;
    z-index: 1;
    --home-header-height: 0px;
    --home-well-surface-rgb: 220, 234, 250;
    --home-well-surface: transparent;
    --resize-dur: 150ms;
    --resize-ease: cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    display: grid;
    grid-template-columns: minmax(220px, 27vw) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    padding: 0;
    overflow: hidden;
    border: none;
    border-bottom: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.home-page-well.well.is-resizing {
    transition: height var(--resize-dur) var(--resize-ease);
    will-change: height;
}

.home-page-well.well::before {
    content: "";
    position: absolute;
    top: var(--home-header-height);
    left: 0;
    right: 0;
    height: 64px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgb(var(--home-well-surface-rgb)) 0%,
        rgba(var(--home-well-surface-rgb), 0.78) 42%,
        rgba(var(--home-well-surface-rgb), 0) 100%
    );
    transition: opacity 0.18s ease;
}

.home-page-well.well.home-top-fade-active::before {
    opacity: 1;
}

.home-layout[data-home-surface="content"] .home-page-well.well {
    --home-well-surface-rgb: 4, 31, 82;
}

.home-well-header {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: clamp(2rem, 5vh, 4rem);
    padding: clamp(2rem, 4vw, 3.4rem) clamp(1.5rem, 4vw, 4rem);
    background: transparent;
    position: relative;
    z-index: 3;
}

.home-sidebar-top {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
}

.home-brand {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
}

.home-brand-title {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    line-height: 1;
    margin: 0;
}

.home-brand-image {
    display: block;
    width: auto;
    max-width: min(22rem, 24vw);
    height: auto;
    max-height: clamp(7rem, 16vw, 13.5rem);
    object-fit: contain;
}

.home-tabs {
    display: flex;
    flex-direction: column;
    gap: clamp(1.15rem, 3vh, 2rem);
    align-items: flex-start;
    justify-content: flex-start;
    max-width: 100%;
    margin-top: clamp(2rem, 4vh, 3rem);
    padding: 0;
}

.home-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    text-align: left;
    text-decoration: none;
    font-size: clamp(1.1rem, 1.75vw, 1.6rem);
    font-family: inherit;
    font-weight: 700;
    color: #070707;
    cursor: pointer;
    scale: 1;
    transition:
        color 150ms ease,
        transform 150ms ease,
        scale 150ms ease-out,
        text-decoration-color 150ms ease;
}

.home-tab-button:active {
    scale: 0.96;
}

.home-tab-button:focus-visible {
    outline: none;
    color: #062e75;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.28rem;
}

@media (hover: hover) and (pointer: fine) {
    .home-tab-button:hover {
        color: #062e75;
        transform: translateX(3px);
    }
}

.home-tab-button.is-active {
    color: #062e75;
}

.home-tab-button[data-tab="notifications"].is-active {
    color: #070707;
}

.home-partner-logos {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: clamp(0.85rem, 2vh, 1.35rem);
    min-height: 0;
}

.home-ird-logo {
    display: block;
    width: min(14rem, 20vw);
    height: auto;
    object-fit: contain;
}

.home-main {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow-y: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.home-main.is-scrollable {
    overflow-y: auto;
}

.home-main::-webkit-scrollbar {
    display: none;
}

.home-main > .service-status-card {
    position: absolute;
    top: clamp(1rem, 3vh, 2rem);
    left: clamp(1rem, 3vw, 2rem);
    right: clamp(1rem, 3vw, 2rem);
    z-index: 4;
    margin: 0 auto;
}

/* Tab panels — stacked in a grid cell so cross-fade has no layout jump */
.home-tab-panels {
    --page-slide-dur: 110ms;
    --page-fade-dur: 100ms;
    --page-slide-distance: 2px;
    --page-blur: 0px;
    --home-tab-enter-x: var(--page-slide-distance);
    --home-tab-exit-x: calc(var(--page-slide-distance) * -1);
    display: grid;
    grid-template-areas: "stack";
    position: relative;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
}

.home-tab-panels[data-direction="back"] {
    --home-tab-enter-x: calc(var(--page-slide-distance) * -1);
    --home-tab-exit-x: var(--page-slide-distance);
}

.home-tab-panel {
    grid-area: stack;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    height: 100%;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(var(--home-tab-enter-x));
    filter: blur(var(--page-blur));
    transition:
        opacity var(--page-fade-dur) var(--page-fade-ease),
        transform var(--page-slide-dur) var(--page-slide-ease),
        filter var(--page-slide-dur) var(--page-slide-ease),
        visibility 0s linear var(--page-slide-dur);
    will-change: opacity, transform, filter;
    pointer-events: none;
    z-index: 0;
}

.home-tab-panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    filter: blur(0);
    transition:
        opacity var(--page-fade-dur) var(--page-fade-ease),
        transform var(--page-slide-dur) var(--page-slide-ease),
        filter var(--page-slide-dur) var(--page-slide-ease),
        visibility 0s linear 0s;
    pointer-events: auto;
    z-index: 1;
}

.home-tab-panel.is-exiting {
    position: absolute;
    opacity: 0;
    visibility: visible;
    transform: translateX(var(--home-tab-exit-x));
    filter: blur(var(--page-blur));
    pointer-events: none;
    z-index: 0;
}

#home-tab-plots,
#home-tab-about,
#home-tab-account,
#home-tab-contact,
#home-tab-notifications {
    align-items: stretch;
    padding-top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .home-page-well.well.is-resizing {
        transition: none !important;
    }

    .home-tab-panel {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ── Home page entrance animations ───────────────────────── */
@keyframes home-enter-from-left {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes home-enter-from-below {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.home-page-well {
    animation: home-enter-from-below 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
}

.home-instruction {
    animation: home-enter-from-below 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: 60ms;
}

.home-plot-links > .plots-card {
    animation: home-enter-from-below 240ms cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: calc(100ms + 50ms * var(--tile-index, 0));
}

.home-plot-links > .plots-card:nth-child(1) {
    --tile-index: 0;
}
.home-plot-links > .plots-card:nth-child(2) {
    --tile-index: 1;
}
.home-plot-links > .plots-card:nth-child(3) {
    --tile-index: 2;
}
.home-plot-links > .plots-card:nth-child(4) {
    --tile-index: 3;
}
.home-plot-links > .plots-card:nth-child(5) {
    --tile-index: 4;
}
.home-plot-links > .plots-card:nth-child(6) {
    --tile-index: 5;
}

@media (prefers-reduced-motion: reduce) {
    .home-page-well,
    .home-instruction,
    .home-plot-links > .plots-card {
        animation: none;
    }

    .home-tab-button,
    .plots-card,
    .plots-card-icon-shell,
    .plots-card-title {
        transition: none;
    }

    .home-tab-button:active,
    .plots-card:active {
        scale: 1;
    }
}

/* ── About tab ───────────────────────────────────────────── */
.about-content,
.contact-content,
.plots-content,
.notifications-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-content,
.plots-content {
    max-width: 32rem;
    margin: 0 auto;
    align-items: stretch;
}

.plots-content {
    max-width: none;
}

.about-title,
.contact-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.42);
}

.home-about-content {
    max-width: min(42rem, calc(100vw - 3rem));
    max-height: calc(100dvh - 5rem);
    margin: 0 auto;
    align-items: stretch;
    gap: 1.5rem;
    overflow-y: auto;
    padding: clamp(0.75rem, 2vw, 1.5rem) 0.35rem 1.5rem;
    border-radius: 0;
    background: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-shadow: none;
    color: #fff;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.contact-content {
    max-width: min(34rem, calc(100vw - 3rem));
    max-height: calc(100dvh - 5rem);
    margin: 0 auto;
    align-items: stretch;
    gap: 1.25rem;
    overflow-y: auto;
    padding: clamp(0.75rem, 2vw, 1.5rem) 0.35rem 1.5rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#home-tab-about,
#home-tab-contact,
#home-tab-account,
#home-tab-notifications {
    justify-content: flex-start;
    align-items: center;
    padding: clamp(1.25rem, 4vw, 3rem);
}

.home-layout[data-home-surface="content"] #home-tab-account .account-content {
    max-width: min(36rem, calc(100vw - 3rem));
    margin: 0 auto;
    color: inherit;
    -webkit-font-smoothing: antialiased;
}

.plots-content.home-plots-stage {
    --home-plots-rail-right: clamp(1.25rem, 2.5vw, 2.75rem);
    --home-plots-rail-width: min(38rem, calc(100% - var(--home-plots-rail-right)));
    --home-plots-instruction-gap: clamp(1rem, 2vw, 2.5rem);
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.home-plots-rail {
    position: absolute;
    top: 50%;
    right: var(--home-plots-rail-right);
    z-index: 2;
    display: flex;
    box-sizing: border-box;
    width: var(--home-plots-rail-width);
    max-width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: clamp(1.1rem, 2.6vh, 1.75rem);
    padding-inline-end: 0;
    transform: translateY(-50%);
}

.home-instruction {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: calc(
        var(--home-plots-rail-right) +
        var(--home-plots-rail-width) +
        var(--home-plots-instruction-gap)
    );
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-height: 1px;
    margin: 0 auto;
    padding-inline-start: clamp(10rem, 19vw, 26rem);
    color: var(--home-instruction-text);
    text-align: center;
}

.home-instruction p {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: min(100%, 27rem);
    aspect-ratio: 1.57;
    margin: 0;
    padding: clamp(2rem, 3vw, 3.75rem);
    border: 2px solid var(--home-instruction-border);
    border-radius: 50%;
    background: var(--home-instruction-surface);
    font-family: inherit;
    font-size: clamp(1.2rem, 1.55vw, 1.75rem);
    font-weight: 760;
    line-height: 1.18;
    text-wrap: balance;
}

.home-plot-links {
    position: static;
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    gap: clamp(1rem, 3vh, 2.1rem);
    transform: none;
}

.plots-card {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(0.75rem, 1.6vw, 1.15rem);
    text-decoration: none !important;
    border-radius: 0;
    background-color: transparent;
    border: none !important;
    box-shadow: none !important;
    isolation: isolate;
    min-height: clamp(6.5rem, 9.5vw, 11.5rem);
    min-width: 0;
    overflow: visible;
    padding: 0;
    position: relative;
    transform: translateX(0);
    scale: 1;
    transition-property: transform, scale;
    transition-duration: 160ms;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.plots-card:hover,
.plots-card:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none;
    text-decoration: none !important;
}

.plots-card:active {
    scale: 0.97;
}

.plots-card::before,
.plots-card::after {
    content: none;
}

@media (hover: hover) and (pointer: fine) {
    .plots-card:hover,
    .plots-card:focus-visible {
        border: none !important;
        box-shadow: none !important;
        transform: translateX(-6px);
    }

    .plots-card:hover .plots-card-icon-shell,
    .plots-card:focus-visible .plots-card-icon-shell {
        transform: scale(1.03);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.14),
            0 2px 4px rgba(0, 0, 0, 0.12),
            0 18px 40px rgba(0, 17, 51, 0.22);
    }

    .plots-card:hover .plots-card-title,
    .plots-card:focus-visible .plots-card-title {
        color: #fff200;
        opacity: 1;
    }
}

.plots-card:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.88) !important;
    outline-offset: 8px;
}

.plots-card-icon-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 clamp(6.5rem, 9.5vw, 11.5rem);
    width: clamp(6.5rem, 9.5vw, 11.5rem);
    aspect-ratio: 1;
    overflow: hidden;
    background: #fff;
    position: relative;
    z-index: 1;
    transform: scale(1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.1),
        0 14px 36px rgba(0, 17, 51, 0.2);
    transition-property: transform, box-shadow;
    transition-duration: 180ms;
    transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
}

.plots-card-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: 1px solid rgba(0, 0, 0, 0.1);
    outline-offset: -1px;
}

.plots-card-title {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(0.95rem, 1.35vw, 1.65rem);
    font-weight: 820;
    line-height: 1.15;
    color: #fff200;
    text-decoration: none !important;
    text-shadow: none;
    text-align: right;
    text-transform: uppercase;
    white-space: normal;
    text-wrap: balance;
    transition-property: opacity;
    transition-duration: 160ms;
    transition-timing-function: ease;
}

@media (min-width: 1201px) and (max-width: 1800px) {
    .plots-content.home-plots-stage {
        --home-plots-rail-width: min(30rem, calc(100% - var(--home-plots-rail-right)));
    }

    .home-instruction {
        padding-inline-start: clamp(8rem, 14vw, 14rem);
    }

    .home-instruction p {
        width: min(100%, 23rem);
    }
}

@media (min-width: 641px) and (max-width: 1200px) {
    .plots-content.home-plots-stage {
        --home-plots-rail-right: clamp(1rem, 2vw, 1.5rem);
        --home-plots-rail-width: min(30rem, calc(100% - var(--home-plots-rail-right)));
        --home-plots-instruction-gap: clamp(0.75rem, 1.5vw, 1.25rem);
    }

    .home-instruction {
        padding-inline-start: clamp(1rem, 4vw, 3rem);
    }

    .home-instruction p {
        width: min(100%, 21rem);
        font-size: clamp(1.15rem, 2.1vw, 1.75rem);
    }
}

@media (min-width: 641px) and (max-width: 800px) {
    .plots-content.home-plots-stage > .home-instruction {
        top: clamp(1.5rem, 5vh, 3rem);
        bottom: auto;
        right: 0;
        padding-inline-start: 0;
        transform: none;
    }

    .plots-content.home-plots-stage > .home-instruction p {
        width: min(100%, 19rem);
        padding: 2rem;
    }

    .home-plots-rail {
        top: auto;
        bottom: clamp(1rem, 3vh, 2rem);
        transform: none;
    }
}

.about-acknowledgements {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.35rem;
    padding: 0.5rem 0 1.75rem;
    text-align: center;
}

.about-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 720;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    -webkit-font-smoothing: antialiased;
}

.about-toc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.about-toc-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.2rem 0.15rem;
    border-radius: 0;
    color: #fff200;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    font-weight: 560;
    line-height: 1.3;
    text-decoration: none !important;
    background: transparent;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 242, 0, 0.85);
    scale: 1;
    transition-property: color, border-color, opacity, scale;
    transition-duration: 160ms;
    transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}

.about-toc-link:hover,
.about-toc-link:focus-visible {
    color: #fff;
    background: transparent;
    box-shadow: none;
    border-bottom-color: rgba(255, 255, 255, 0.95);
}

.about-toc-link:focus-visible {
    outline: 2px solid #fff200;
    outline-offset: 6px;
}

.about-toc-link:active {
    scale: 0.96;
}

@media (prefers-reduced-motion: reduce) {
    .about-toc-link {
        transition: none;
    }

    .about-toc-link:active {
        scale: 1;
    }
}

@media (hover: hover) and (pointer: fine) {
    .about-toc-link:hover {
        background: transparent;
    }
}

.about-section {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    scroll-margin-top: 1.25rem;
}

.about-section-title,
.about-acknowledgements-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01rem;
    line-height: 1.25;
    margin: 0;
    text-wrap: balance;
}

.account-joined {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    font-weight: 460;
    letter-spacing: 0.00063rem;
    line-height: 1.2;
}

.about-text,
.contact-text {
    font-size: 1.0625rem;
    font-weight: 520;
    line-height: 1.62;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.94);
    text-wrap: pretty;
    max-width: 65ch;
}

.about-text-muted {
    color: rgba(232, 241, 255, 0.88);
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.00063rem;
    line-height: 1.55;
    text-wrap: pretty;
    max-width: 65ch;
}

.about-authors {
    color: #fff;
    font-weight: 620;
}

.contact-text {
    width: 100%;
    text-align: left;
}

.about-variables {
    gap: 0.95rem;
}

.about-datasets-figure {
    margin: 0;
    width: 100%;
}

.about-datasets-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fff;
    outline: 1px solid rgba(255, 255, 255, 0.1);
    outline-offset: -1px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.12),
        0 18px 40px rgba(0, 10, 40, 0.28);
}

.home-about-content .about-link,
.contact-content .about-link,
.about-acknowledgements .about-link {
    color: #fff200;
}

.home-about-content .about-link:hover,
.home-about-content .about-link:focus-visible,
.about-acknowledgements .about-link:hover,
.about-acknowledgements .about-link:focus-visible {
    color: #fff;
}

.home-about-content .about-link .about-link-label,
.about-acknowledgements .about-link .about-link-label {
    border-bottom-color: rgba(255, 242, 0, 0.75);
}

.home-about-content .about-link:hover .about-link-label,
.home-about-content .about-link:focus-visible .about-link-label,
.about-acknowledgements .about-link:hover .about-link-label,
.about-acknowledgements .about-link:focus-visible .about-link-label {
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.about-link {
    display: inline-flex;
    align-items: center;
    gap: 0.18rem;
    vertical-align: baseline;
    cursor: pointer;
    color: #fff200;
    text-decoration: none !important;
    font-weight: 560;
}

.about-link-label {
    border-bottom: 1px solid rgba(255, 242, 0, 0.75);
    transition-property: color, border-color;
    transition-duration: 160ms;
    transition-timing-function: ease;
}

.about-link:hover,
.about-link:focus-visible {
    color: #fff;
    text-decoration: none !important;
}

.about-link:hover .about-link-label,
.about-link:focus-visible .about-link-label {
    border-bottom-color: rgba(255, 255, 255, 0.9);
}

.about-link:focus-visible {
    outline: 2px solid #fff200;
    outline-offset: 3px;
}

.about-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.8rem;
    height: 0.8rem;
    flex: 0 0 auto;
}

.about-link-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── Contact tab ─────────────────────────────────────────── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.contact-field {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    text-align: left;
}

.contact-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.contact-field .shiny-input-container {
    width: 100%;
    margin-bottom: 0;
}

.contact-field .form-control,
.contact-field .selectize-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.94) !important;
    box-shadow: none !important;
    padding: 12px 15px !important;
    min-height: 46px;
    font-size: 1rem !important;
}

.contact-field .form-control::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.contact-field .form-control:focus,
.contact-field .selectize-input.focus,
.contact-field .selectize-input:focus-within {
    border-color: rgba(186, 220, 255, 0.55) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 0 0 3px rgba(186, 220, 255, 0.16) !important;
}

.contact-form .button-trigger {
    width: 100%;
    align-self: stretch;
}

.contact-form .custom-button-container,
.contact-form .custom-button {
    width: 100%;
}

.contact-form .custom-button-container {
    display: block;
    margin-bottom: 0;
}

.contact-form .custom-shadow,
.contact-form .custom-shadow-3 {
    display: none;
}

.contact-field textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.home-layout[data-home-surface="content"] #home-tab-account .account-card,
.home-layout[data-home-surface="content"] #home-tab-account .account-auth-content,
.home-layout[data-home-surface="content"] #home-tab-account .service-status-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 12px 36px rgba(0, 10, 40, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: rgba(0, 0, 0, 0.86);
}

.home-layout[data-home-surface="content"] #home-tab-account .account-nav-row:hover,
.home-layout[data-home-surface="content"] #home-tab-account .account-nav-row:focus-visible {
    background: rgba(15, 76, 146, 0.06);
}

.home-layout[data-home-surface="content"] #home-tab-account .account-card-divider {
    border-color: rgba(0, 0, 0, 0.08);
}

/* ── Notifications tab ───────────────────────────────────── */
.notifications-content {
    width: min(36rem, calc(100vw - 3rem));
    max-height: calc(100dvh - 5rem);
    margin: 0 auto;
    gap: 0.9rem;
    overflow-y: auto;
    padding: clamp(0.75rem, 2vw, 1.5rem) 0.35rem 1.25rem;
    color: #fff;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.notifications-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.notifications-header h1,
.notifications-header p,
.notification-card-title,
.notification-card-body,
.notifications-empty h2,
.notifications-empty p {
    margin: 0;
}

.notifications-header h1 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 680;
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.notifications-header > p:last-child {
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    line-height: 1.45;
    text-wrap: pretty;
}

.notifications-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: rgba(0, 0, 0, 0.86);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 1px 2px -1px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 10, 40, 0.12);
}

.notifications-empty {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: rgba(0, 0, 0, 0.86);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 12px 36px rgba(0, 10, 40, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.notification-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.2rem 1.35rem 1.3rem;
    cursor: pointer;
    transition:
        background-color 150ms ease,
        box-shadow 150ms ease;
}

.notification-card:focus-visible {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(6, 46, 117, 0.72);
}

@media (hover: hover) and (pointer: fine) {
    .notification-card:hover {
        background: #fff;
    }

    .notification-card:hover .notification-card-read-arrow {
        transform: translateX(2px);
    }
}

.notification-card + .notification-card {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.notification-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    color: rgba(0, 0, 0, 0.48);
    font-size: 0.74rem;
    font-variant-numeric: tabular-nums;
}

.notification-card-kind {
    color: #073b7d;
    font-weight: 650;
}

.notification-card-data .notification-card-kind {
    color: #0c637f;
}

.notification-card-meta time::before {
    content: "\00b7";
    margin-inline-end: 0.5rem;
    color: rgba(0, 0, 0, 0.28);
}

.notification-card-title {
    margin-top: 0.55rem;
    color: rgba(0, 0, 0, 0.9);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.3;
    text-wrap: balance;
}

.notification-card-body {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 0.3rem;
    max-width: 65ch;
    color: rgba(0, 0, 0, 0.62);
    font-size: 0.88rem;
    line-height: 1.5;
    white-space: pre-line;
    text-wrap: pretty;
}

.notification-fact {
    display: grid;
    grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.9rem 0 0;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.76rem;
}

.notification-fact dt,
.notification-fact dd {
    margin: 0;
}

.notification-fact dt {
    font-weight: 520;
}

.notification-fact dd {
    color: #0c637f;
    font-weight: 680;
}

.notification-card-read {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.35rem;
    margin-top: 0.9rem;
    color: #073b7d;
    font-size: 0.76rem;
    font-weight: 650;
}

.notification-card-data .notification-card-read {
    color: #0c637f;
}

.notification-card-read-arrow {
    display: inline-block;
    transition: transform 150ms ease;
}

.ioda-modal__dialog:has(.notification-reader) {
    width: min(100%, 620px);
}

.ioda-modal__dialog:has(.notification-reader) .ioda-modal__header--dark {
    position: relative;
    padding: 1.5rem 4.5rem 0.75rem 1.5rem;
}

.ioda-modal__dialog:has(.notification-reader) .ioda-modal__header-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
}

.ioda-modal__dialog:has(.notification-reader) .ioda-modal__title {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1.3;
    text-align: start;
}

.ioda-modal__body--dark:has(.notification-reader) {
    padding: 0.5rem 1.5rem 1.25rem;
}

.notification-reader-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.notification-reader-kind {
    color: rgba(186, 220, 255, 0.9);
    font-weight: 650;
}

.notification-reader-meta time::before {
    content: "\00b7";
    margin-inline-end: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.notification-reader-body {
    margin: 1.1rem 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.95rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    text-wrap: pretty;
}

.notification-reader-fact {
    display: grid;
    grid-template-columns: minmax(8rem, auto) minmax(0, 1fr);
    align-items: baseline;
    gap: 1rem;
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.8rem;
}

.notification-reader-fact dt,
.notification-reader-fact dd {
    margin: 0;
}

.notification-reader-fact dd {
    color: rgba(186, 220, 255, 0.95);
    font-weight: 680;
}

.ioda-modal__footer--dark:has(.notification-reader-close) {
    padding: 0 1.5rem 1.5rem;
}

.notification-reader-close.ioda-modal__btn {
    width: 100%;
    min-height: 48px;
    border-color: rgba(255, 255, 255, 0.12);
    background: #1f1f1f;
    color: rgba(255, 255, 255, 0.9);
}

.notification-reader-close.ioda-modal__btn:focus-visible {
    outline-color: var(--blue-quinary);
}

@media (hover: hover) and (pointer: fine) {
    .notification-reader-close.ioda-modal__btn:hover {
        border-color: rgba(255, 255, 255, 0.24);
        background: #262626;
        color: #fff;
    }
}

@media (max-width: 640px) {
    .notification-fact {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .notification-reader-fact {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
}

.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem 1.15rem;
}

.notifications-empty-kicker {
    color: #0c637f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notifications-empty h2 {
    font-size: 1rem;
    font-weight: 650;
}

.notifications-empty p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.88rem;
    line-height: 1.5;
    text-wrap: pretty;
}

.notifications-empty-error .notifications-empty-kicker {
    color: #a1442d;
}

/* Keep template page label/title/card styles available */
.template-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a7a87;
}

.template-card-title {
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.template-card-text {
    color: #5b5654;
}

.template-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.template-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.5rem;
    border-radius: 28px;
    border: 1px solid #e2ebf2;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 45px rgba(14, 10, 9, 0.06);
}

.template-card-primary {
    min-height: 520px;
    grid-row: span 2;
}

.plot-placeholder {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.plot-placeholder-copy {
    max-width: 26rem;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.plot-placeholder-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 500;
    color: #5b5654;
}

.template-list {
    list-style: none;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.template-list li {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid #e6eef5;
    background: #f8fbfd;
}

@media (max-width: 980px) {
    .map-toolbar-top--with-actions {
        grid-template-columns: 1fr;
    }

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

    .home-layout {
        padding: 0;
    }

    .home-page-well.well {
        grid-template-columns: minmax(170px, 25vw) minmax(0, 1fr);
        max-height: none;
    }

    .home-well-header {
        flex-direction: column;
        align-items: stretch;
        gap: clamp(1.25rem, 4vh, 2rem);
        padding: clamp(1.4rem, 3vw, 2.25rem);
    }

    .home-brand-image {
        max-width: min(18rem, 27vw);
    }

    .home-ird-logo {
        width: min(12rem, 20vw);
    }

    .home-tabs {
        flex-direction: column;
        justify-content: flex-start;
        width: auto;
        margin-top: clamp(2.5rem, 7vh, 4.5rem);
    }

    .home-main {
        padding: 0;
    }

    .home-plots-rail {
        right: var(--home-plots-rail-right);
        width: var(--home-plots-rail-width);
    }

    .plots-content.home-plots-stage {
        --home-plots-rail-right: clamp(1rem, 2vw, 1.75rem);
        --home-plots-rail-width: min(30rem, calc(100% - var(--home-plots-rail-right)));
        --home-plots-instruction-gap: clamp(0.75rem, 1.5vw, 1.25rem);
    }

    .home-instruction {
        padding-inline-start: clamp(1rem, 4vw, 2.5rem);
    }

    .home-instruction p {
        width: min(100%, 21rem);
    }

    .plots-card-icon-shell {
        flex-basis: clamp(5.75rem, 11vw, 7.5rem);
        width: clamp(5.75rem, 11vw, 7.5rem);
    }

    .plots-card {
        min-height: clamp(5.75rem, 11vw, 7.5rem);
    }

    .plots-card-title {
        font-size: clamp(0.95rem, 2.2vw, 1.4rem);
    }
}

@media (max-width: 640px) {
    .home-layout {
        padding: 0;
        overflow-y: auto;
    }

    .home-background-arch {
        inset: 0;
        width: auto;
        height: auto;
        border: 0;
        border-radius: 0;
        background: radial-gradient(
            145vw 115vh at 100% 100%,
            transparent 0 58%,
            #fff 58.4% 68%,
            transparent 68.4%
        );
    }

    .home-background-blue {
        top: 10rem;
        left: 0;
        width: 100%;
        height: calc(100% + 12rem);
        border-radius: 50% 50% 0 0 / 10% 10% 0 0;
    }

    .home-page-well.well {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        max-height: none;
        overflow: visible;
    }

    .home-well-header {
        grid-column: 1;
        grid-row: 1;
        height: auto;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1.1rem 0.75rem;
    }

    .home-brand-image {
        max-width: min(13rem, 58vw);
        max-height: 5.5rem;
    }

    .home-partner-logos {
        display: none;
    }

    .home-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem 1rem;
        width: 100%;
        margin-top: 1rem;
    }

    .home-tab-button {
        flex: 0 0 auto;
        min-height: 36px;
        font-size: 1rem;
    }

    .home-main {
        grid-column: 1;
        grid-row: 2;
        height: auto;
        min-height: calc(100dvh - 9rem);
        padding: 0;
        overflow: visible;
    }

    .home-tab-panels {
        min-height: calc(100dvh - 9rem);
        overflow: visible;
    }

    .home-tab-panel {
        min-height: calc(100dvh - 9rem);
    }

    .home-container {
        margin: 0;
        padding: 2rem 1.25rem;
    }

    .auth-title {
        font-size: 1.2rem;
    }

    .custom-button-container {
        width: 100%;
    }

    .custom-button {
        width: 100%;
        padding: 0 24px;
    }

    .account-content {
        padding: 0 1.25rem;
    }

    .account-auth-content {
        padding: 0;
    }

    #home-tab-about,
    #home-tab-contact,
    #home-tab-account,
    #home-tab-notifications {
        justify-content: flex-start;
        padding: 1rem;
    }

    .home-about-content,
    .contact-content,
    .notifications-content {
        max-width: 100%;
        max-height: none;
        padding: 0.35rem 0.15rem 1.25rem;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .home-layout[data-home-surface="content"] .home-background-blue {
        left: -10vw;
        width: 140vw;
        top: -20vh;
        border-radius: 40% 40% 0 0 / 18% 18% 0 0;
    }

    .home-layout[data-home-surface="content"] .home-background-blue-glow {
        left: 10vw;
        width: 90vw;
        height: 90vw;
        top: 8vh;
    }

    .about-datasets-image {
        border-radius: 10px;
    }

    .plots-content.home-plots-stage {
        display: flex;
        min-height: calc(100dvh - 9rem);
        flex-direction: column;
        justify-content: flex-start;
        padding: 0 1rem 2.5rem;
    }

    .home-plots-rail {
        position: relative;
        top: auto;
        right: auto;
        width: min(100%, 26rem);
        margin: clamp(4.5rem, 18vh, 7rem) auto 0;
        gap: 1.5rem;
        transform: none;
    }

    .home-instruction {
        position: relative;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        width: auto;
        margin: 0;
        padding-inline-start: 0;
        text-align: center;
        transform: none;
    }

    .home-instruction p {
        width: min(100%, 19rem);
        margin: 0 auto;
        padding: clamp(1.75rem, 9vw, 2.75rem);
        font-size: clamp(1.15rem, 5.4vw, 1.6rem);
    }

    .home-plot-links {
        width: 100%;
        gap: 0.85rem;
    }

    .plots-card {
        min-height: 5.75rem;
        gap: 0.75rem;
    }

    .plots-card-icon-shell {
        flex-basis: 5.75rem;
        width: 5.75rem;
    }

    .plots-card-title {
        font-size: clamp(1rem, 5vw, 1.45rem);
    }

    .account-profile-row,
    .account-list-row,
    .account-nav-row {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .account-card-divider {
        margin-left: calc(1rem + 1.25rem + 1rem);
        margin-right: 1rem;
    }

    .account-list-row {
        align-items: flex-start;
    }

    .account-list-value {
        max-width: 52%;
        font-size: 0.92rem;
    }

    .dashboard-shell {
        padding: 24px 16px 40px;
    }

    .dashboard-title {
        font-size: 2.5rem;
    }

    .page-nav-link {
        width: 100%;
    }

    .home-main {
        padding: 0.65rem 1rem 1.5rem;
    }

    #home-tab-contact {
        padding-top: 0;
    }

    .contact-content,
    .contact-form {
        max-width: 100%;
    }

    .plot-page-shell {
        padding: 6px;
    }

    .plot-page-shell .page-container {
        gap: 6px;
    }

    .plot-page-well.well {
        padding: 10px 12px;
    }

    .plot-main-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .plot-data-toolbar,
    .line-plot-toolbar {
        grid-template-columns: 1fr;
    }

    .line-plot-export-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .line-plot-export-label {
        padding-top: 0;
    }

    .plot-main-toolbar-left,
    .plot-main-toolbar-center,
    .plot-main-toolbar-right {
        width: 100%;
    }

    .plot-export-row {
        flex-wrap: wrap;
    }

    .plot-export-row > .form-group {
        flex: 1 1 120px;
        min-width: 0;
    }

    .plot-export-row > .custom-button-container {
        flex: 1 1 140px;
        width: auto;
    }

    .line-plot-export-actions .button-trigger,
    .line-plot-export-actions .custom-button-container {
        width: 100%;
    }

    .compass-row-top,
    .compass-row-bottom {
        width: 100%;
    }

    .side-by-side-selects {
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    .template-grid,
    .home-grid,
    .plot-page-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        flex-direction: column;
    }

    .page-hero-actions {
        justify-content: flex-start;
    }

    .home-grid,
    .template-grid {
        display: grid;
    }

    .template-card-primary {
        min-height: auto;
        grid-row: auto;
    }

    .plot-page-shell {
        min-height: 100vh;
        min-height: 100dvh;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .plot-page-shell .page-container {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .plot-page-well.well {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: auto;
        overflow: visible;
        position: static;
        flex: 0 0 auto;
    }

    .plot-main-panel {
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .plot-output-area {
        flex: 0 0 auto;
        min-height: 350px;
        height: min(60vh, 520px);
    }

    .plot-options-panel {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }

    .well-body {
        flex: 0 0 auto;
        height: auto;
        overflow: visible;
    }

    .well-footer {
        position: static;
    }
}
