/* GeoDeck: ??????? ?????. ????????? ?? style.css 2026-06-16. */

:root {
color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    color: #18202a;
    background: #f5f6f8;
    --surface: #ffffff;
    --line: #d8dee8;
    --text: #18202a;
    --muted: #667085;
    --accent: #226c8a;
    --accent-strong: #174f66;
    --ok: #2f7d55;
    --warn: #9a6b17;
    --danger: #9d2525;
    --danger-soft: #fff1f1;
    --sidebar: #171829;
    --sidebar-strong: #111226;
    --sidebar-line: #2c2e45;
    --sidebar-text: #eef3ff;
    --sidebar-muted: #aab3c7;
    --blue: #3b82f6;
}

* {
box-sizing: border-box;
}

.pdf-document-dialog,
.postcard-pdf-dialog {
    width: min(1000px, calc(100vw - 32px));
    height: min(760px, calc(100vh - 32px));
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
}

.pdf-document-dialog::backdrop,
.postcard-pdf-dialog::backdrop {
    background: rgb(15 23 42 / 35%);
}

.pdf-document-dialog > section,
.postcard-pdf-dialog > section {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
}

.pdf-document-dialog header,
.pdf-document-dialog footer,
.postcard-pdf-dialog header,
.postcard-pdf-dialog footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e6ef;
}

.pdf-document-dialog footer,
.postcard-pdf-dialog footer {
    justify-content: end;
    border-top: 1px solid #e1e6ef;
    border-bottom: 0;
}

.pdf-document-dialog h2,
.postcard-pdf-dialog h2 {
    margin: 0;
    font-size: 16px;
    overflow-wrap: anywhere;
}

.pdf-document-dialog iframe,
.postcard-pdf-dialog iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

body {
margin: 0;
    min-height: 100vh;
    background: #f5f6f8;
}

.app-shell-body {
display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    min-height: 100vh;
    background: #eef1f5;
    transition: grid-template-columns 0.18s ease;
}

.app-shell-body.app-sidebar-collapsed {
grid-template-columns: 68px minmax(0, 1fr);
}

.app-sidebar {
position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    min-width: 0;
    border-right: 1px solid var(--sidebar-line);
    background: var(--sidebar);
    color: var(--sidebar-text);
}

.app-sidebar-brand {
padding: 24px 18px 16px;
}

.app-sidebar-brand-main {
display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.app-sidebar-title {
display: inline-flex;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
}

.app-sidebar-toggle {
flex: 0 0 34px;
    width: 34px;
    min-height: 34px;
    padding: 0;
    border-color: #3b3d58;
    border-radius: 8px;
    color: #dbe6ff;
    background: #24263a;
}

.app-sidebar-toggle:hover {
border-color: #6ea0ff;
    background: #31528e;
}

.app-sidebar-toggle svg {
width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.18s ease;
}

.app-sidebar-brand p {
margin: 10px 0 0;
    color: var(--sidebar-muted);
    font-size: 12px;
    line-height: 1.45;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-sidebar-nav {
display: grid;
    gap: 4px;
    padding: 12px 0;
}

.app-sidebar-nav-bottom {
    margin-top: auto;
}

.app-sidebar-link {
display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-right: 3px solid transparent;
    color: #d4d9e7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.app-sidebar-link:hover,
.app-sidebar-link.active {
color: #ffffff;
    background: #22345f;
    border-right-color: var(--blue);
}

.app-sidebar-icon {
display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #3b3d58;
    border-radius: 6px;
    color: #dbe6ff;
    background: #24263a;
    font-size: 12px;
    font-weight: 800;
}

.app-sidebar-icon svg {
width: 15px;
    height: 15px;
    fill: currentColor;
}

.app-sidebar-link.active .app-sidebar-icon,
.app-sidebar-link:hover .app-sidebar-icon {
border-color: #6ea0ff;
    background: #31528e;
}

.app-sidebar-user {
display: grid;
    gap: 12px;
    padding: 18px 18px 20px;
    border-top: 1px solid var(--sidebar-line);
    background: var(--sidebar-strong);
}

.app-sidebar-user strong,
.app-sidebar-user span {
display: block;
}

.app-sidebar-user-details {
display: block;
    padding: 4px 6px;
    border-radius: 6px;
    color: inherit;
    text-decoration: none;
}

.app-sidebar-user-details:hover {
background: rgba(255, 255, 255, 0.08);
}

.app-sidebar-user strong {
color: #ffffff;
    font-size: 15px;
}

.app-sidebar-user span {
margin-top: 4px;
    color: var(--sidebar-muted);
    font-size: 13px;
}

.app-sidebar-user form {
margin: 0;
}

.app-sidebar-role-preview {
display: grid;
    gap: 5px;
}

.app-sidebar-role-preview label {
color: var(--sidebar-muted);
    font-size: 11px;
}

.app-sidebar-role-preview select {
width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 0 8px;
    border: 1px solid #3b3d58;
    border-radius: 6px;
    color: var(--sidebar-text);
    background: #24263a;
}

.app-sidebar-user button {
min-height: 36px;
    padding: 0 16px;
    border: 1px solid #5d2637;
    border-radius: 6px;
    color: #ffffff;
    background: #7f2940;
    font-weight: 700;
    cursor: pointer;
}

.app-sidebar-logout {
gap: 8px;
}

.app-sidebar-logout-icon {
display: none;
}

.app-sidebar-logout-icon svg {
width: 16px;
    height: 16px;
    fill: currentColor;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-brand {
padding: 14px 12px 12px;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-brand-main {
justify-content: center;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-title,
.app-shell-body.app-sidebar-collapsed .app-sidebar-brand p,
.app-shell-body.app-sidebar-collapsed .app-sidebar-label,
.app-shell-body.app-sidebar-collapsed .app-sidebar-user-details,
.app-shell-body.app-sidebar-collapsed .app-sidebar-logout-text {
display: none;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-toggle svg {
transform: rotate(180deg);
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-nav {
gap: 6px;
    padding: 10px 8px;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-link {
justify-content: center;
    gap: 0;
    min-height: 44px;
    padding: 0;
    border-right: 0;
    border-radius: 8px;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-icon {
width: 30px;
    height: 30px;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-user {
justify-items: center;
    gap: 10px;
    padding: 12px;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-user form,
.app-shell-body.app-sidebar-collapsed .app-sidebar-logout {
width: 100%;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-role-preview label {
display: none;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-role-preview select {
width: 44px;
    padding: 0 4px;
    font-size: 10px;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-logout {
padding: 0;
}

.app-shell-body.app-sidebar-collapsed .app-sidebar-logout-icon {
display: inline-grid;
}

button,
.button-primary,
.button-secondary,
.button-ghost,
.button-danger,
.button-danger-ghost {
display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid #b9c2cf;
    border-radius: 6px;
    color: var(--text);
    background: #ffffff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

button:hover:not(:disabled),
.button-secondary:hover,
.button-ghost:hover {
border-color: #9bb5ca;
    background: #f8fbff;
}

.app-sidebar .app-sidebar-toggle:hover:not(:disabled) {
border-color: #6ea0ff;
    color: #ffffff;
    background: #31528e;
}

.app-sidebar-user .app-sidebar-logout:hover:not(:disabled) {
border-color: #7f3650;
    color: #ffffff;
    background: #94334d;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
outline: 2px solid rgba(59, 130, 246, 0.55);
    outline-offset: 2px;
}

button:disabled,
.button-primary:disabled,
.button-secondary:disabled,
.button-danger:disabled,
.button-danger-ghost:disabled {
color: #98a2b3;
    background: #f3f6fa;
    border-color: #c9d2de;
    cursor: not-allowed;
    box-shadow: none;
}

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

.app-content-page {
width: 100%;
    max-width: none;
    margin: 0;
}

.topbar {
display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 56px;
    padding: 0 32px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
}

.topbar-left {
display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.brand {
color: #18202a;
    font-weight: 700;
    text-decoration: none;
}

.topbar-project-link {
color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.userbar {
display: flex;
    align-items: center;
    gap: 16px;
    color: #4b5965;
    font-size: 14px;
}

.userbar a {
color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.userbar form {
margin: 0;
}

.userbar button,
.inline-form button,
td button {
min-height: 36px;
    padding: 0 14px;
    border: 1px solid #b9c2cf;
    border-radius: 6px;
    color: #18202a;
    background: #ffffff;
    cursor: pointer;
}

.page {
display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
}

.auth-body {
min-height: 100vh;
    background:
        linear-gradient(120deg, rgba(21, 23, 43, 0.98), rgba(16, 54, 92, 0.98)),
        #10223d;
}

.auth-page {
display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 32px;
}

.workspace {
width: 100%;
    margin: 0;
    padding: 36px 34px 28px;
}

.workspace-header {
display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 620px);
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
}

.workspace-header h1 {
margin-bottom: 6px;
    font-size: 30px;
}

.workspace-header p {
margin: 0;
    font-size: 16px;
}

.home-header {
align-items: start;
    padding: 0 0 8px;
}

.single-column-header {
grid-template-columns: 1fr;
    align-items: start;
}

.intro {
width: min(720px, 100%);
}

.eyebrow {
margin: 0 0 12px;
    color: #2b6f6a;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

h1 {
margin: 0 0 16px;
    font-size: 42px;
    line-height: 1.1;
}

p {
margin: 0 0 24px;
    color: #4b5965;
    font-size: 18px;
    line-height: 1.55;
}

.health-link {
display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #2b6f6a;
    border-radius: 6px;
    color: #ffffff;
    background: #2b6f6a;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.health-link:hover {
background: #225955;
}

.auth-panel {
width: min(420px, 100%);
    padding: 48px 40px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(5, 12, 28, 0.34);
}

.auth-heading {
display: grid;
    gap: 10px;
    margin-bottom: 34px;
    text-align: center;
}

.auth-heading h1 {
margin: 0;
    color: #111827;
    font-size: 30px;
    line-height: 1.15;
}

.auth-heading p,
.auth-intro {
margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.45;
}

.auth-intro {
margin-bottom: 28px;
    color: #1f2937;
    text-align: center;
}

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

label {
display: grid;
    gap: 8px;
    color: #4b5965;
    font-size: 14px;
    font-weight: 700;
}

input {
width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #d7dde6;
    border-radius: 6px;
    color: #18202a;
    background: #ffffff;
    font: inherit;
}

.primary-button,
.button-primary {
display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--blue);
    border-radius: 6px;
    color: #ffffff;
    background: var(--blue);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button:hover:not(:disabled),
.button-primary:hover:not(:disabled) {
background: #2563eb;
}

.inline-form .primary-button,
.inline-form .button-primary {
border-color: var(--blue);
    color: #ffffff;
    background: var(--blue);
}

.inline-form .primary-button:hover:not(:disabled),
.inline-form .button-primary:hover:not(:disabled) {
background: #2563eb;
}

.button-secondary {
border-color: #b9c2cf;
    color: #263445;
    background: #ffffff;
}

.button-ghost {
border-color: transparent;
    color: var(--accent);
    background: transparent;
}

.danger-button,
.button-danger {
border-color: var(--danger);
    color: #ffffff;
    background: var(--danger);
}

.danger-button:hover:not(:disabled),
.button-danger:hover:not(:disabled) {
border-color: #7e1d1d;
    background: #7e1d1d;
}

.danger-ghost,
.button-danger-ghost {
border-color: #e2a3a3;
    color: var(--danger);
    background: #ffffff;
}

.danger-ghost:hover:not(:disabled),
.button-danger-ghost:hover:not(:disabled) {
border-color: var(--danger);
    background: var(--danger-soft);
}

.primary-link,
.secondary-link,
.text-link {
display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.primary-link {
border: 1px solid var(--accent);
    color: #ffffff;
    background: var(--accent);
}

.secondary-link,
.text-link {
color: var(--accent);
}

.secondary-link {
border: 1px solid #b9c2cf;
    background: #ffffff;
}

.secondary-link:hover {
border-color: #9bb5ca;
    background: #f8fbff;
}

.text-link {
min-height: 0;
    padding: 0;
}

.error {
padding: 12px 14px;
    border: 1px solid #e4b4b4;
    border-radius: 6px;
    color: #8d1d1d;
    background: #fff1f1;
    font-size: 15px;
}

.error-text {
color: var(--danger);
}

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

.content.app-content-page {
width: 100%;
    max-width: none;
    margin: 0;
}

.projects-intro {
width: min(1120px, 100%);
}

.home-create-panel {
width: min(100%, 1120px);
    margin: 0 0 18px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.home-create-panel .panel-heading {
align-items: flex-start;
    margin-bottom: 12px;
}

.home-create-panel h2,
.home-create-panel p {
margin: 0;
}

.home-create-panel p {
margin-top: 4px;
}

.home-toolbar {
width: min(100%, 980px);
    margin: 4px 0 20px;
}

.home-toolbar label {
max-width: 420px;
}

.muted {
color: #71808c;
    font-size: 13px;
}

.no-export-note {
margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.results-panel-head,
.results-timeline-head {
display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.results-panel-head h2,
.results-timeline-head h2 {
margin: 0;
    font-size: 16px;
}

.results-queue-all-toggle {
justify-self: start;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    color: #4b5a68;
    background: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
}

.results-queue-all-toggle:hover {
border-color: #9dc7d8;
    color: var(--accent);
    background: #eef7fb;
}

.results-queue-list,
.results-queue-items {
display: grid;
    gap: 5px;
}

.results-queue-section {
display: grid;
    align-content: start;
    align-self: start;
    gap: 3px;
}

.results-queue-header {
display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
    align-items: center;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #e9edf3;
    border-radius: 8px;
    color: #1f2937;
    background: #f6f8fc;
    font-size: 13px;
    font-weight: 700;
    white-space: normal;
}

.results-queue-section.active .results-queue-header {
border-color: #9dc7d8;
    background: #eef7fb;
}

.results-queue-section.context:not(.active) .results-queue-header {
border-color: #d6e6ef;
    background: #f8fbfd;
}

.results-queue-toggle {
display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    min-width: 22px;
    min-height: 22px;
    padding: 0;
    border: 0;
    color: #8a93a6;
    background: transparent;
    line-height: 1;
    cursor: pointer;
}

.results-queue-toggle:hover {
color: var(--accent);
}

.results-queue-chevron,
.results-tree-chevron {
transition: transform 0.15s ease;
}

.results-queue-section.collapsed .results-queue-chevron,
.results-tree-toggle[aria-expanded="false"] .results-tree-chevron {
transform: rotate(-90deg);
}

.results-queue-title {
display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    color: #1f2937;
    text-align: left;
    background: transparent;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.results-queue-title:hover {
color: var(--accent);
}

.results-queue-header strong {
margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.results-tree-toggle,
.results-tree-spacer {
width: 28px;
    min-width: 28px;
}

.results-tree-toggle {
display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    margin-top: 3px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #8a93a6;
    background: transparent;
    line-height: 1;
    cursor: pointer;
}

.results-tree-toggle:hover {
color: var(--accent);
}

.results-tree-spacer {
display: block;
}

.results-child-list {
display: grid;
    gap: 4px;
    padding: 0 6px 4px 16px;
}

.results-queue-card {
display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 10px;
    font-weight: 800;
}

.results-pill {
display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--muted);
    background: #eef2f5;
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
    text-align: left;
    white-space: normal;
}

.results-pill.category {
color: var(--status-color, var(--accent));
    background: color-mix(in srgb, var(--status-color, #2563eb), #ffffff 88%);
}

.results-map-legend {
position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: min(250px, calc(100% - 28px));
    max-height: calc(100% - 28px);
    padding: 11px 12px;
    overflow-y: auto;
    border: 1px solid rgba(23, 33, 43, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(23, 33, 43, 0.12);
    font-size: 12px;
}

.results-map-legend h3 {
margin: 0 0 8px;
    font-size: 14px;
}

.legend-mode-toggle {
display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 8px;
    padding: 3px;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    background: #f4f7f9;
}

.legend-mode-toggle button {
min-height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 4px;
    color: var(--muted);
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.legend-mode-toggle button.active {
color: var(--ink);
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(23, 33, 43, 0.12);
}

.legend-section {
margin: 9px 0 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.legend-row {
display: flex;
    gap: 8px;
    align-items: center;
    margin: 6px 0;
}

.legend-row i {
flex: 0 0 auto;
    width: 22px;
    height: 14px;
    border: 1px solid rgba(23, 33, 43, 0.22);
    border-radius: 3px;
    background: var(--legend-color, #607080);
}

.legend-note {
margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.results-map-status {
position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 4;
    max-width: min(460px, calc(100% - 28px));
    padding: 10px 12px;
    border: 1px solid rgba(23, 33, 43, 0.14);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 26px rgba(23, 33, 43, 0.12);
    font-size: 12px;
    line-height: 1.35;
}

.timeline-control {
display: grid;
    gap: 10px;
}

.results-timeline-current {
color: var(--muted);
    font-size: 12px;
}

.results-timeline-current b {
color: var(--accent);
    font-size: 18px;
}

.results-timeline-toolbar {
display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.results-timeline-buttons {
display: flex;
    gap: 6px;
    align-items: center;
}

.results-timeline-buttons button {
display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    padding: 0;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    color: #4b5a68;
    background: #f8fafc;
    cursor: pointer;
}

.results-timeline-buttons button:hover,
.results-timeline-buttons button.active {
border-color: #9dc7d8;
    color: var(--accent);
    background: #eef7fb;
}

.results-timeline-buttons svg {
width: 15px;
    height: 15px;
    fill: currentColor;
}

.results-timeline-mode {
color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.results-timeline-mode.active {
color: var(--accent);
}

.results-timeline-axis {
display: grid;
    gap: 6px;
    min-width: 0;
}

.results-timeline-slider {
width: 100%;
    height: 6px;
    border-radius: 999px;
    appearance: none;
    outline: none;
    background: #dce4eb;
}

.results-timeline-slider::-webkit-slider-thumb {
width: 18px;
    height: 18px;
    border-radius: 50%;
    appearance: none;
    background: var(--accent);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.results-timeline-ticks {
display: grid;
    grid-template-columns: repeat(var(--timeline-step-count), minmax(0, 1fr));
    min-height: 34px;
    color: var(--muted);
}

.results-timeline-tick {
display: grid;
    justify-items: center;
    min-width: 0;
    font-size: 10px;
    line-height: 1.1;
}

.results-timeline-tick i {
display: block;
    width: 1px;
    height: 9px;
    margin-bottom: 3px;
    background: #cbd5df;
}

.results-timeline-tick b {
display: block;
    max-width: 100%;
    color: inherit;
    font-weight: 700;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.results-timeline-tick.active {
color: var(--accent);
}

.results-timeline-tick.active i {
width: 2px;
    height: 14px;
    background: var(--accent);
}

.results-timeline-events {
display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.results-event {
min-height: 50px;
    padding: 7px 8px;
    background: #f8fafc;
}

.results-event.active {
border-color: var(--accent);
    background: #eef6ff;
}

.results-event b,
.results-event span {
display: block;
}

.results-event span {
margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.results-empty {
padding: 14px;
    border: 1px dashed #b7c6c3;
    border-radius: 8px;
    color: var(--muted);
    background: #ffffff;
}

.results-empty-notice {
margin: 0 0 10px;
}

.checkbox-row {
display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    color: #4b5565;
    font-size: 13px;
}

.checkbox-row input {
flex: 0 0 auto;
    width: auto;
    min-height: 0;
}

.map-placeholder {
display: grid;
    place-items: center;
    min-height: 520px;
    padding: 18px;
    color: var(--muted);
    text-align: center;
}

.map-placeholder-compact {
min-height: 100%;
}

.map-placeholder-content {
display: grid;
    gap: 8px;
    max-width: 420px;
}

.map-placeholder-content strong {
color: var(--text);
    font-size: 16px;
}

.map-placeholder-content span {
font-size: 13px;
    line-height: 1.4;
}

.map-placeholder-actions {
display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 2px;
}

.empty {
padding: 18px;
    border: 1px dashed #b7c6c3;
    border-radius: 6px;
    background: #ffffff;
    font-size: 16px;
}

.inline-form {
display: grid;
    grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

.account-password-panel {
max-width: 560px;
}

.user-actions-cell {
min-width: 360px;
}

.user-actions,
.user-password-reset {
display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.user-actions form {
margin: 0;
}

.user-password-reset input {
width: min(220px, 100%);
}

.panel {
padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
}

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

.panel h2 {
margin: 0 0 10px;
    font-size: 18px;
}

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

.inline-check {
display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 0;
    color: var(--text);
}

.link-button {
padding: 0;
    border: 0;
    color: var(--accent);
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.selected-row {
background: #eef6ff;
}

.compact-table-wrap {
margin-top: 10px;
}

.compact-input {
min-height: 30px;
    padding: 5px 8px;
}

.color-swatch {
display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 1px solid #b9c2cf;
    border-radius: 3px;
    vertical-align: text-bottom;
}

.inspector-list {
display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px 8px;
    margin: 0;
    font-size: 12px;
}

.inspector-list dt {
color: var(--muted);
}

.inspector-list dd {
min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-actions {
display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.row-actions button {
min-height: 30px;
    padding: 0 9px;
}

.row-actions .danger-button,
td .danger-button {
border-color: #e2a3a3;
    color: var(--danger);
    background: #ffffff;
}

.row-actions .danger-button:hover:not(:disabled),
td .danger-button:hover:not(:disabled) {
border-color: var(--danger);
    background: var(--danger-soft);
}

.danger-ghost {
border-color: #e2a3a3;
    color: var(--danger);
    background: #ffffff;
}

.modal {
width: min(620px, calc(100% - 32px));
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0;
    background: var(--surface);
    color: var(--text);
}

.modal::backdrop {
background: rgb(15 23 42 / 45%);
}

.modal-body {
display: grid;
    gap: 14px;
    padding: 18px;
}

.modal-body h2 {
margin: 0;
    font-size: 20px;
}

.modal-copy {
margin: 0;
    color: var(--text);
    font-size: 16px;
}

.modal-warning {
padding: 12px 14px;
    border: 1px solid #f0c4a4;
    border-radius: 6px;
    color: #7a3b00;
    background: #fff8ed;
    font-size: 14px;
    line-height: 1.45;
}

.modal-actions {
display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.loading-state,
.empty-state,
.error-state {
display: grid;
    gap: 6px;
    align-content: start;
    padding: 12px 14px;
    border: 1px solid #d7dee8;
    border-radius: 6px;
    color: #475467;
    background: #f8fafc;
    font-size: 13px;
    line-height: 1.4;
}

.loading-state::before {
content: "";
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d7e3f2, #3b82f6, #d7e3f2);
    background-size: 200% 100%;
    animation: loading-glide 1.1s linear infinite;
}

.loading-state-table {
margin: 2px 0;
}

.empty-state strong,
.error-state strong {
color: var(--text);
    font-size: 14px;
}

.error-state {
border-color: #f0b4b4;
    color: #8a1f1f;
    background: #fff5f5;
}

.error-state span {
color: #8a1f1f;
}

.state-actions {
display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

@keyframes loading-glide {
from {
        background-position: 0 0;
    }

    to {
        background-position: 200% 0;
    }
}

.delete-warning-list {
display: grid;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #e1d2aa;
    border-radius: 6px;
    color: var(--warn);
    background: #fff8e6;
}

.details-list {
display: grid;
    gap: 8px;
    color: #364152;
    font-size: 14px;
}

.status-strip,
.status-grid {
display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-strip {
justify-content: flex-end;
}

.status-flag {
display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid #d7dde6;
    border-radius: 999px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.status-flag.ok {
border-color: #b8d8c6;
    color: var(--ok);
    background: #edf8f1;
}

.status-flag.pending {
border-color: #e1d2aa;
    color: var(--warn);
    background: #fff8e6;
}

.status-flag.running {
border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.status-flag.done {
border-color: #b8d8c6;
    color: var(--ok);
    background: #edf8f1;
}

.status-flag.failed {
border-color: #e4b4b4;
    color: var(--danger);
    background: #fff1f1;
}

.status-flag.ready,
.status-flag.complete,
.status-flag.linked {
border-color: #b8d8c6;
    color: var(--ok);
    background: #edf8f1;
}

.status-flag.partial {
border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;
}

.status-flag.current {
border-color: #86efac;
    color: #166534;
    background: #f0fdf4;
}

.status-flag.unlinked {
border-color: #e1d2aa;
    color: var(--warn);
    background: #fff8e6;
}

.button-secondary.active {
border-color: #9fc0ff;
    background: #eef5ff;
    color: #1d4ed8;
}

.metric-card {
display: grid;
    gap: 10px;
    min-height: 96px;
    padding: 18px 20px;
    border: 1px solid #e1e6ef;
    border-left: 4px solid #94a3b8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.metric-card span {
color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.metric-card strong {
color: #0f172a;
    font-size: 30px;
    line-height: 1;
}

.metric-card.accent {
border-left-color: var(--blue);
}

.metric-card.warning {
border-left-color: #f59e0b;
}

.metric-card.danger {
border-left-color: #ef4444;
}

textarea,
select {
width: 100%;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid #b7c6c3;
    border-radius: 6px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
}

textarea {
resize: vertical;
}

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

.status-flag.error-status {
border-color: #fecaca;
    background: #fef2f2;
    color: #b42318;
}

.map-active-key-panel {
display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.map-active-key-panel h2,
.map-active-key-panel p {
margin: 0;
}

.map-active-key-panel code {
width: max-content;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
    color: #1d2939;
    overflow-wrap: anywhere;
}

.checkbox-label {
display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label input {
width: 18px;
    min-height: 18px;
}

.table-wrap {
margin-top: 28px;
    overflow-x: auto;
}

table {
width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
padding: 12px;
    border-bottom: 1px solid #d8e1df;
    text-align: left;
}

th {
color: #4b5965;
    font-size: 13px;
    text-transform: uppercase;
}

@media (max-width: 720px) {
    .app-shell-body {
    grid-template-columns: 1fr;
            min-width: 0;
    }

    .app-sidebar {
    position: static;
            height: auto;
            max-width: 100vw;
            overflow: hidden;
    }

    .app-sidebar-toggle {
    display: none;
    }

    .app-sidebar-brand {
    padding: 18px 18px 10px;
    }

    .app-sidebar-nav {
    display: flex;
            gap: 6px;
            min-width: 0;
            max-width: 100%;
            overflow-x: auto;
            padding: 8px 12px 14px;
    }

    .app-sidebar-link {
    min-height: 40px;
            padding: 0 12px;
            border-right: 0;
            border-radius: 6px;
            white-space: nowrap;
    }

    .app-sidebar-user {
    padding: 14px 18px 16px;
    }

    .app-sidebar-role-preview {
    max-width: 360px;
    }

    .auth-page {
    padding: 18px;
    }

    .auth-panel {
    padding: 34px 24px;
    }

    .topbar,
        .userbar {
    align-items: flex-start;
            flex-direction: column;
    }

    .topbar {
    padding: 12px 16px;
    }

    .topbar-left {
    align-items: flex-start;
            flex-direction: column;
            gap: 6px;
    }

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

    .panel-heading {
    align-items: flex-start;
            flex-direction: column;
            gap: 4px;
    }

    .workspace {
    padding: 14px 18px;
    }
}
