:root {
    --ink: #101713;
    --ink-soft: #253029;
    --paper: #f2f0e9;
    --panel: #fffdf7;
    --line: #c9c7bd;
    --line-dark: #777c76;
    --accent: #d8ff3e;
    --accent-dark: #657a00;
    --danger: #b82d2d;
    --warning: #8a5b00;
    --success: #1d6b3b;
    --muted: #687069;
    --shadow: 0 18px 45px rgba(16, 23, 19, 0.11);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--ink);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(rgba(16, 23, 19, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 23, 19, 0.035) 1px, transparent 1px),
        var(--paper);
    background-size: 24px 24px;
    color: var(--ink);
    font-family: "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

.page-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 20px 18px 40px;
}

.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 8px 2px;
}

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

.eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(1.65rem, 5vw, 2.7rem);
    letter-spacing: -0.045em;
    line-height: 0.96;
}

h2 {
    margin-bottom: 5px;
    font-size: clamp(1.35rem, 4vw, 2rem);
    letter-spacing: -0.035em;
}

.status-chip,
.user-chip,
.usage-badge {
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 800;
}

.status-chip {
    padding: 8px 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status-chip--idle {
    background: transparent;
}

.status-chip--ok {
    border-color: #7ea88b;
    background: #dff2e4;
    color: var(--success);
}

.status-chip--error {
    border-color: #d99898;
    background: #fde4e2;
    color: var(--danger);
}

.user-chip {
    display: grid;
    gap: 1px;
    padding: 6px 11px;
    background: #fffefb;
}

.user-chip__label {
    color: var(--muted);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logout-form {
    margin: 0;
}

.context-panel,
.workflow-panel,
.activity-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 247, 0.96);
    box-shadow: var(--shadow);
}

.context-panel {
    margin-bottom: 18px;
    padding: 16px;
}

.context-copy,
.panel-heading {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.context-copy {
    margin-bottom: 14px;
}

.context-copy strong,
.data-section__heading strong,
.location-creator__heading strong {
    display: block;
}

.context-copy small,
.data-section__heading small,
.location-creator__heading small,
.panel-heading p {
    color: var(--muted);
}

.section-index {
    display: grid;
    width: 34px;
    height: 28px;
    place-items: center;
    flex: 0 0 auto;
    background: var(--ink);
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    font-weight: 800;
    transform: rotate(-2deg);
}

.context-location-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.location-creator {
    margin-top: 14px;
    border: 1px dashed var(--line-dark);
    border-radius: 14px;
    background: #f9f7ef;
    padding: 14px;
}

.location-creator__heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}

.location-creator__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.icon-button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: 1.2rem;
}

.workflow-panel {
    padding: clamp(18px, 4vw, 30px);
}

.panel-heading {
    margin-bottom: 22px;
}

.panel-heading p {
    max-width: 650px;
    margin-bottom: 0;
    font-size: 0.93rem;
    line-height: 1.45;
}

.field {
    display: grid;
    gap: 7px;
}

.field > span {
    color: var(--ink-soft);
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.field small {
    color: var(--muted);
    line-height: 1.35;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line-dark);
    border-radius: 10px;
    outline: none;
    background: #fffefb;
    color: var(--ink);
    padding: 11px 12px;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.65);
}

select:disabled,
input:disabled,
textarea:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.capture-actions {
    display: grid;
    gap: 14px;
}

.scan-trigger,
.photo-drop {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid var(--ink);
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    padding: 16px;
    text-align: left;
}

.scan-trigger {
    cursor: pointer;
}

.scan-trigger:hover {
    transform: translateY(-1px);
}

.scan-trigger strong,
.photo-drop strong {
    display: block;
    font-size: 1rem;
}

.scan-trigger small,
.photo-drop small {
    display: block;
    margin-top: 3px;
    color: #bbc1bd;
}

.scan-icon,
.photo-drop__icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #657068;
    border-radius: 10px;
    color: var(--accent);
    font-size: 1.35rem;
}

.photo-drop {
    position: relative;
    background: #fffefb;
    color: var(--ink);
    cursor: pointer;
}

.photo-drop small {
    color: var(--muted);
}

.photo-drop input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

.scanner-panel {
    margin-bottom: 18px;
    border: 1px dashed var(--line-dark);
    border-radius: 14px;
    background: #fff;
    padding: 10px;
}

#reader {
    overflow: hidden;
    border-radius: 10px;
}

.button {
    min-height: 48px;
    border: 1px solid var(--ink);
    border-radius: 11px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.button--tiny {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.75rem;
}

.button--large {
    width: 100%;
    margin-top: 20px;
    min-height: 58px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
}

.button--primary {
    background: var(--accent);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}

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

.button--confirm {
    background: var(--ink);
    color: var(--accent);
}

.button-row {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 10px;
    margin-top: 22px;
}

.feedback {
    margin: 0 0 18px;
    border: 1px solid;
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 0.9rem;
    font-weight: 700;
}

.feedback--info {
    border-color: #879891;
    background: #e6ece8;
}

.feedback--error {
    border-color: #d99898;
    background: #fde4e2;
    color: #7d1b1b;
}

.feedback--success {
    border-color: #92b89e;
    background: #e1f3e6;
    color: #15562f;
}

.activity-panel {
    margin-bottom: 18px;
    padding: 16px;
    background: #121a15;
    color: #eef3ef;
    box-shadow: var(--shadow);
}

.activity-panel .eyebrow {
    color: #98a49d;
}

.activity-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 13px;
}

.activity-panel__controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.activity-toggle {
    min-height: 32px;
    border: 1px solid #66726b;
    border-radius: 999px;
    background: transparent;
    color: #d9e1dc;
    padding: 5px 10px;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.activity-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.activity-panel--collapsed .activity-panel__header {
    margin-bottom: 0;
}

.activity-panel--collapsed .activity-timeline {
    display: none;
}

.usage-badge {
    padding: 7px 10px;
    border-color: #66726b;
    background: #1d2821;
    color: var(--accent);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.activity-timeline {
    display: grid;
    gap: 8px;
}

.activity-item {
    display: grid;
    grid-template-columns: 15px 1fr;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #2f3a33;
    border-radius: 11px;
    padding: 11px;
    background: #17211b;
}

.activity-dot {
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border: 2px solid #69756e;
    border-radius: 50%;
}

.activity-item--active .activity-dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(216, 255, 62, 0.14);
    animation: pulse 1.1s infinite alternate;
}

.activity-item--done .activity-dot {
    border-color: var(--accent);
    background: var(--accent);
}

.activity-item--error .activity-dot {
    border-color: #ff8a8a;
    background: #ff8a8a;
}

.activity-item strong,
.activity-item small {
    display: block;
}

.activity-item small {
    margin-top: 3px;
    color: #98a49d;
}

.activity-item__content {
    min-width: 0;
}

.trace-block {
    display: grid;
    gap: 3px;
    margin-top: 9px;
    border-left: 2px solid #46524b;
    padding-left: 10px;
    color: #cbd3ce;
    font-size: 0.8rem;
}

.trace-block b {
    color: #fff;
}

.trace-block span,
.trace-block a {
    overflow-wrap: anywhere;
}

.trace-block a {
    color: var(--accent);
}

.activity-empty {
    color: #98a49d;
    font-size: 0.85rem;
}

@keyframes pulse {
    from { transform: scale(0.9); }
    to { transform: scale(1.15); }
}

.identity-card,
.product-summary,
.evidence-card {
    border: 1px solid var(--line);
    border-left: 5px solid var(--ink);
    border-radius: 12px;
    background: #faf8f1;
    padding: 15px 16px;
}

.identity-card,
.evidence-card {
    margin-bottom: 16px;
}

.identity-card strong,
.product-summary strong {
    display: block;
    font-size: 1.08rem;
}

.identity-card small,
.product-summary small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
}

.identity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.identity-meta span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 5px 8px;
    font-size: 0.74rem;
}

.evidence-card {
    display: grid;
    gap: 9px;
    border-left-color: var(--accent-dark);
    font-size: 0.82rem;
}

.evidence-card div {
    display: grid;
    gap: 4px;
}

.evidence-card span {
    color: var(--muted);
}

.evidence-card a {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.decision-summary {
    display: grid;
    gap: 3px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent-dark);
    border-radius: 10px;
    background: #f6f5ee;
    padding: 10px 12px;
    font-size: 0.8rem;
}

.decision-summary strong,
.decision-summary small {
    display: block;
}

.decision-summary small {
    color: var(--muted);
}

.decision-summary--manual {
    border-left-color: #b07b26;
}

.candidate-list {
    display: grid;
    gap: 10px;
}

.candidate-card {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 11px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffefb;
    padding: 14px;
    cursor: pointer;
}

.candidate-card:hover {
    border-color: var(--line-dark);
}

.candidate-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.candidate-card:has(input:checked) {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.candidate-card__marker {
    width: 18px;
    height: 18px;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.candidate-card:has(input:checked) .candidate-card__marker {
    background: radial-gradient(circle, var(--ink) 0 40%, transparent 43%);
}

.candidate-card__body strong,
.candidate-card__body small,
.candidate-reasons,
.candidate-conflicts {
    display: block;
}

.candidate-card__body small {
    margin-top: 4px;
    color: var(--muted);
}

.candidate-recommendation-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    padding: 3px 7px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.candidate-reasons {
    margin-top: 8px;
    color: #425047;
    font-size: 0.78rem;
    line-height: 1.4;
}

.candidate-conflicts {
    margin-top: 6px;
    color: #8d3d32;
    font-size: 0.76rem;
}

.candidate-score {
    min-width: 62px;
    border-radius: 999px;
    background: #efeee7;
    padding: 6px 8px;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.73rem;
    font-weight: 800;
}

.candidate-score--ai {
    background: var(--accent);
}

.candidate-card--new {
    margin-top: 10px;
    border-style: dashed;
}

.inline-alert,
.category-signal {
    margin-top: 13px;
    border-left: 4px solid #d1921b;
    background: #fff3d7;
    padding: 11px 13px;
    color: #6d4700;
    font-size: 0.86rem;
    line-height: 1.4;
}

.inline-alert--neutral,
.category-signal {
    border-color: #6d8076;
    background: #e9efeb;
    color: #35433c;
}

.category-resolution {
    display: grid;
    gap: 14px;
}

.category-ai-card {
    border: 1px solid var(--ink);
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    padding: 14px 15px;
}

.category-ai-card .eyebrow {
    color: var(--accent);
}

.category-ai-card strong,
.category-ai-card small {
    display: block;
}

.category-ai-card strong {
    font-size: 1.03rem;
}

.category-ai-card small {
    margin-top: 4px;
    color: #c5cbc6;
}

.category-ai-reasons {
    margin-top: 10px;
    border-top: 1px solid #3d4741;
    padding-top: 9px;
    color: #e5e8e6;
    font-size: 0.8rem;
    line-height: 1.45;
}

.category-choice-list {
    display: grid;
    gap: 9px;
}

.category-choice {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 11px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffefb;
    padding: 13px;
    cursor: pointer;
}

.category-choice:has(input[type="radio"]:checked) {
    border-color: var(--ink);
    box-shadow: inset 0 0 0 2px var(--accent);
}

.category-choice > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-choice__marker {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.category-choice:has(input[type="radio"]:checked) .category-choice__marker {
    background: radial-gradient(
        circle,
        var(--ink) 0 40%,
        transparent 43%
    );
}

.category-choice__content {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.category-choice__content strong,
.category-choice__content small {
    display: block;
}

.category-choice__content small {
    color: var(--muted);
    line-height: 1.35;
}

.category-choice__content select,
.category-choice__content input[type="text"] {
    margin-top: 4px;
}

.category-choice__content select:disabled,
.category-choice__content input:disabled {
    opacity: 0.48;
}

#categoryParentField {
    border-top: 1px dashed var(--line);
    padding-top: 13px;
}

#reviewForm {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.field--quantity input {
    min-height: 72px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
}

.data-section {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8f6ef;
    padding: 14px;
}

.data-section__heading {
    margin-bottom: 13px;
}

.data-section__heading small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.4;
}

textarea {
    min-height: 92px;
    resize: vertical;
    line-height: 1.45;
}

.signal-stack {
    display: grid;
    gap: 7px;
}

.signal-stack .category-signal {
    margin-top: 0;
}

.category-choice--quiet {
    border-style: dashed;
    background: transparent;
}

.brand-resolution {
    display: grid;
    gap: 14px;
}

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

.enrichment-section {
    padding: 0;
    overflow: hidden;
}

.enrichment-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    cursor: pointer;
    list-style: none;
}

.enrichment-section summary::-webkit-details-marker {
    display: none;
}

.enrichment-section summary span:first-child {
    display: grid;
    gap: 4px;
}

.enrichment-section summary small {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.details-caret {
    flex: 0 0 auto;
    font-size: 1.35rem;
    transition: transform 150ms ease;
}

.enrichment-section[open] .details-caret {
    transform: rotate(180deg);
}

.enrichment-fields {
    display: grid;
    gap: 13px;
    border-top: 1px solid var(--line);
    padding: 15px;
    background: #fffefb;
}

.local-photo-options {
    display: grid;
    gap: 10px;
}

.photo-drop--compact {
    padding: 12px 14px;
}

.photo-drop--compact .photo-drop__icon {
    width: 38px;
    height: 38px;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: #fffefb;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.4;
    cursor: pointer;
}

.check-row input {
    width: 17px;
    min-height: 17px;
    height: 17px;
    margin: 1px 0 0;
    flex: 0 0 auto;
}

.product-photo-section {
    display: grid;
    gap: 14px;
}

.photo-recommendation {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 12px;
    border: 1px solid #d7b44a;
    border-left: 5px solid var(--warning);
    border-radius: 10px;
    padding: 12px 14px;
    background: #fff8e7;
}

.photo-recommendation__badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--warning);
    color: #2a2109;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.photo-recommendation strong,
.photo-recommendation small {
    display: block;
}

.photo-recommendation strong {
    color: var(--ink);
    font-size: 0.86rem;
}

.photo-recommendation small {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 0.77rem;
    line-height: 1.45;
}

.photo-policy-note {
    border: 1px dashed var(--line-dark);
    border-radius: 10px;
    padding: 10px 12px;
    background: #f5f4ed;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.calculated-volume {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.82rem;
}

.calculated-volume strong {
    color: var(--ink);
}

.success-panel {
    text-align: center;
}

.success-mark {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-size: 2.2rem;
    font-weight: 900;
    box-shadow: 5px 5px 0 var(--ink);
}

.success-context {
    color: var(--muted);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0 4px;
}

.result-grid > div {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #faf8f1;
    padding: 13px 8px;
}

.result-grid span,
.result-grid strong {
    display: block;
}

.result-grid span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.result-grid strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.15rem;
}

.app-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 3px 0;
    color: #737972;
    font-size: 0.72rem;
}

/* Login */
.auth-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 20px;
}

.auth-shell {
    width: min(510px, 100%);
}

.auth-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 253, 247, 0.97);
    box-shadow: var(--shadow);
    padding: clamp(22px, 6vw, 38px);
}

.auth-brand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.auth-copy {
    margin: 24px 0;
    color: var(--muted);
    line-height: 1.55;
}

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

.auth-footnote {
    display: block;
    margin-top: 22px;
    color: var(--muted);
    line-height: 1.4;
}

.hidden {
    display: none !important;
}

@media (max-width: 720px) {
    .page-shell {
        padding: 14px 12px 28px;
    }

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

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

    .context-location-row,
    .location-creator__grid,
    .dimension-grid,
    .commercial-grid,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .candidate-card {
        grid-template-columns: 22px 1fr;
    }

    .candidate-score {
        grid-column: 2;
        justify-self: start;
    }

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


    .activity-panel__header,
    .app-footer {
        flex-direction: column;
    }

    .activity-panel__controls {
        justify-content: flex-start;
    }

    .usage-badge {
        align-self: flex-start;
    }

    .app-footer {
        gap: 5px;
    }
}
