:root {
    --navy: #111922;
    --navy-2: #2D4162;
    --cream: #EAE4D8;
    --sand: #C4A882;
    --white: #F9F7F4;
    --paper: #FFFFFF;
    --teal: #1A6E7A;
    --text: #1C2B3A;
    --muted: #6B7A8D;
    --line: #EDE8E0;
    --soft-line: rgba(28, 43, 58, 0.08);
    --shadow: 0 8px 32px rgba(28, 43, 58, 0.08);
    --glass: rgba(255, 255, 255, 0.74);
    --red: #B73A2E;
    --green: #1A6E7A;
    --orange: #B47B26;
}

html {
    scroll-behavior: smooth;
}

body.li-app {
    min-height: 100vh;
    font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--white) 48%, #ffffff 100%);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.li-app *,
.li-app *::before,
.li-app *::after {
    letter-spacing: 0;
}

.li-app .hidden {
    display: none !important;
}

/* Hero */
.li-app #hero {
    min-height: 100svh;
    padding: 72px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--white) 48%, #ffffff 100%);
}

.li-app #hero::before {
    display: none;
}

.li-app .hero-account-actions {
    position: fixed;
    left: 50%;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: min(260px, calc(100vw - 32px));
    transform: translateX(-50%);
    opacity: 0.42;
    transition: opacity 0.15s ease;
}

.li-app .hero-account-actions:hover,
.li-app .hero-account-actions:focus-within {
    opacity: 0.86;
}

.li-app .hero-box {
    width: min(100%, 820px);
    max-width: none;
    padding: 0;
    background: transparent;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.li-app .hero-brand-lockup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 700;
}

.li-app .hero-brand-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.li-app .hero-brand-home:hover,
.li-app .hero-brand-home:focus-visible {
    color: inherit;
}

.li-app .hero-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.li-app .hero-brand-logo svg {
    width: 17px;
    height: 17px;
}

.li-app .hero-brand-sep {
    color: rgba(28, 43, 58, 0.25);
    font-weight: 500;
}

.li-app #search-form {
    width: min(100%, 560px);
    margin: 0 auto;
}

.li-app .hero-inputs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr) auto;
    align-items: stretch;
    gap: 12px;
    margin: 0;
    padding: 12px;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
}

.li-app .form-field {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 0 16px;
    text-align: left;
}

.li-app .form-field + .form-field {
    border-left: 1px solid rgba(28, 43, 58, 0.08);
}

.li-app .form-field label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 14px;
}

.li-app .hero-inputs input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--navy);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
}

.li-app .hero-inputs input::placeholder {
    color: var(--muted);
}

.li-app .hero-inputs .input-wrap {
    flex: none;
}

.li-app .hero-inputs .input-wrap input {
    border-right: 0;
}

.li-app #search-form button,
.li-app #new-search-btn,
.li-app #export-pdf-btn,
.li-app .panel-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: auto;
    border: 1.5px solid var(--navy);
    border-radius: 999px;
    background: transparent;
    color: var(--navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.li-app #search-form button {
    width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    align-self: center;
    flex-shrink: 0;
}

.li-app #search-form button svg {
    width: 20px;
    height: 20px;
    transform: rotate(90deg); /* the Arhipedija "A" becomes a right arrow */
}

.li-app #search-form button:hover,
.li-app #new-search-btn:hover,
.li-app #export-pdf-btn:hover,
.li-app .panel-icon-btn:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.li-app #search-form button:hover {
    background: var(--navy-2);
    border-color: var(--navy-2);
    color: #fff;
}

.li-app .credit-widget {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.li-app .hero-account-actions .credit-widget {
    color: var(--navy);
}

.li-app .credit-widget.is-visible {
    display: inline-flex;
}

.li-app #search-form button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.li-app .hero-labels {
    display: none;
}

/* Autocomplete */
.li-app .ko-dropdown {
    top: calc(100% + 18px);
    left: 0;
    right: 0;
    z-index: 200;
    max-height: 240px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(28, 43, 58, 0.12);
}

.li-app .ko-dropdown .ko-item {
    padding: 10px 14px;
    color: var(--navy);
    font-size: 13px;
    gap: 12px;
}

.li-app .ko-dropdown .ko-item:hover,
.li-app .ko-dropdown .ko-item.active {
    background: rgba(26, 110, 122, 0.08);
}

.li-app .ko-dropdown .ko-id {
    color: var(--muted);
}

/* Loading and error */
.li-app #loading {
    background: rgba(249, 247, 244, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.li-app .spinner-block,
.li-app .step-spinner-block {
    background: var(--teal);
    border-radius: 2px;
}

.li-app .loading-step {
    color: var(--muted);
    font-size: 13px;
}

.li-app .loading-step.active {
    color: var(--navy);
}

.li-app .loading-step.done {
    color: var(--teal);
}

.li-app #error-msg {
    max-width: 640px;
    margin: 0 auto 20px;
    padding: 14px 18px;
    color: var(--red);
    background: #fff;
    border: 1px solid rgba(183, 58, 46, 0.28);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

/* Results shell */
.li-app #results {
    padding-top: 12px;
}

.li-app main {
    max-width: 1180px;
}

.li-app main {
    padding: 24px 32px 64px;
}

/* Title bar — brand lockup stacked above the parcel info, actions right */
.li-app .title-bar {
    margin-bottom: 18px;
    padding: 14px 18px;
    background: var(--navy);
    color: var(--white);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 25, 34, 0.12);
    font-size: 16px;
    font-weight: 700;
}

.li-app .title-bar-left {
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.li-app .title-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(249, 247, 244, 0.72);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.li-app .title-brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.li-app .title-brand-logo svg {
    width: 12px;
    height: 12px;
}

.li-app .title-brand-name {
    color: var(--white);
    font-weight: 700;
}

.li-app .title-brand-sep {
    color: rgba(249, 247, 244, 0.35);
    font-weight: 500;
}

.li-app .title-brand-product {
    font-weight: 500;
    white-space: nowrap;
}

.li-app .title-parcel {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 17px;
}

.li-app .title-sep {
    color: rgba(249, 247, 244, 0.38);
    opacity: 1;
}

.li-app .title-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Uniform action buttons: icon + short title, same border and height */
.li-app #new-search-btn,
.li-app #export-pdf-btn {
    min-height: 34px;
    gap: 7px;
    padding: 0 14px;
    color: var(--white);
    border-color: rgba(249, 247, 244, 0.45);
    font-size: 12px;
}

.li-app #new-search-btn svg,
.li-app #export-pdf-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.li-app #new-search-btn:hover,
.li-app #export-pdf-btn:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.li-app .panel-icon-btn {
    width: 30px;
    height: 30px;
    min-height: 30px;
    justify-content: center;
    padding: 0;
    color: var(--muted);
    border-color: rgba(26, 110, 122, 0.22);
    background: rgba(255, 255, 255, 0.58);
}

.li-app .panel-icon-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.li-app .panel-icon-btn:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.li-app .panel-icon-btn .icon-collapse {
    display: none;
}

.li-app .panel-icon-btn.is-expanded .icon-expand {
    display: none;
}

.li-app .panel-icon-btn.is-expanded .icon-collapse {
    display: block;
}

.li-app .auth-signin-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--navy);
    border: 1.5px solid rgba(17, 25, 34, 0.24);
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.li-app .auth-signin-btn:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--navy);
    filter: none;
}

/* Panels */
.li-app .top-row {
    gap: 16px;
    margin-bottom: 16px;
}

.li-app .top-row > .panel {
    width: 100%;
}

.li-app .top-row.map-expanded .map-panel,
.li-app .top-row.map-expanded .envelope-panel {
    grid-column: 1 / -1;
    width: 100%;
}

.li-app .panel,
.li-app .card,
.li-app .detail-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 22px rgba(28, 43, 58, 0.04);
}

.li-app .panel {
    overflow: hidden;
    border-top: 2px solid rgba(26, 110, 122, 0.18);
}

.li-app .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    background: rgba(249, 247, 244, 0.56);
    border-bottom: 1px solid var(--line);
}

.li-app .panel h2 {
    padding: 13px 16px;
    color: var(--muted);
    background: rgba(249, 247, 244, 0.56);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.li-app .panel-header h2 {
    padding: 0;
    background: transparent;
    border-bottom: 0;
}

.li-app #map,
.li-app #envelope-diagram {
    height: 460px;
    background: #fbfaf7;
}

.li-app .pdf-map-placeholder {
    min-height: 180px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    background: var(--white);
    text-align: center;
}

.li-app .pdf-image-panel {
    min-height: 0;
    background: #fbfaf7;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.li-app .pdf-panel-image {
    display: block;
    width: 100%;
    height: auto;
}

.li-app .top-row.map-expanded #map {
    height: clamp(560px, 62vh, 660px);
}

.li-app #envelope-diagram {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.li-app .envelope-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 32px;
}

.li-app .envelope-placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--muted);
    opacity: 0.6;
}

.li-app .envelope-placeholder-icon svg {
    width: 100%;
    height: 100%;
}

.li-app .envelope-placeholder--blocked {
    color: var(--red);
    text-align: center;
}

.li-app .envelope-placeholder--blocked .envelope-placeholder-icon {
    color: var(--red);
    opacity: 1;
}

.li-app .envelope-placeholder--blocked h3 {
    margin: 0;
    color: var(--red);
    font-size: 18px;
    font-weight: 700;
}

.li-app .envelope-3d-wrap .objekt-preview {
    background:
        linear-gradient(90deg, rgba(28, 43, 58, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(28, 43, 58, 0.035) 1px, transparent 1px),
        #fbfaf7;
    background-size: 28px 28px;
}

.li-app .objekt-dim-label {
    font-family: inherit;
}

.li-app .objekt-dim-bld,
.li-app .odmik-label {
    color: var(--navy);
    border-color: var(--navy);
    border-radius: 999px;
    box-shadow: 0 5px 14px rgba(28, 43, 58, 0.1);
}

.li-app .envelope-gabarit {
    background: transparent;
    color: var(--navy);
    padding: 0 1px;
    border-radius: 0;
    font-family: inherit;
    letter-spacing: 0.8px;
}

/* Envelope info panel sits top-right, like the map's infra legend
   (10px matches the Leaflet control margin). */
.li-app .envelope-3d-info {
    top: 10px;
    right: 10px;
    left: auto;
    align-items: flex-end;
}

.li-app .envelope-kv {
    font-family: inherit;
    border-color: rgba(28, 43, 58, 0.06);
    gap: 10px;
}

.li-app .envelope-kv .k {
    color: var(--muted);
}

.li-app .envelope-kv .v {
    color: var(--navy);
}

.li-app .muted,
.li-app .loading-inline,
.li-app .diagram-loading-step {
    color: var(--muted);
}

/* Leaflet */
.li-app .leaflet-container {
    font-family: inherit;
}

.li-app .leaflet-control-zoom a {
    color: var(--navy);
    border-color: var(--line);
}

/* Overlay boxes — the map legend and the 3D envelope panel share one
   style: top-right corner, identical fixed width, padding, slightly
   transparent background and border. */
.li-app .infra-legend,
.li-app .envelope-panel {
    box-sizing: border-box;
    width: 158px;
    min-width: 0;
    padding: 8px 10px;
    color: var(--navy);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(28, 43, 58, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: inherit;
}

.li-app .infra-legend-row {
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    padding: 3.5px 4px;
}

.li-app .infra-legend-row:hover {
    background: rgba(26, 110, 122, 0.08);
}

/* Summary cards */
.li-app .cards-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.li-app .card {
    min-height: 154px;
    padding: 18px;
    gap: 7px;
    border-top: 2px solid rgba(26, 110, 122, 0.16);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.li-app .card:hover {
    border-color: rgba(26, 110, 122, 0.38);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.li-app .card-icon {
    margin-bottom: 6px;
}

.li-app .card-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--teal);
    stroke-width: 1.7;
}

.li-app .card-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.li-app .card-value {
    color: var(--navy);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.li-app .card-sub {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.li-app .val--red {
    color: var(--red);
}

.li-app .val--green {
    color: var(--teal);
}

.li-app .val--orange {
    color: var(--orange);
}

/* Details */
.li-app .details {
    gap: 10px;
}

.li-app .detail-section {
    overflow: hidden;
}

/* Sections are always expanded — header is a plain heading, not a toggle */
.li-app .detail-header {
    padding: 15px 18px 16px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    gap: 10px;
    cursor: default;
    user-select: auto;
}

.li-app .detail-header:hover {
    background: transparent;
}

.li-app .detail-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--navy);
    border: 1px solid var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.li-app .detail-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.li-app .detail-body {
    padding: 0 18px 18px;
    overflow-x: auto;
}

.li-app table {
    font-size: 14px;
}

.li-app th {
    padding: 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.li-app td {
    padding: 10px;
    color: var(--text);
    border-bottom: 1px solid rgba(28, 43, 58, 0.06);
}

.li-app .rules-group {
    border-bottom: 1px solid var(--line);
}

.li-app .rules-group h4 {
    color: var(--teal);
    border-left: 3px solid var(--teal);
    font-size: 12px;
    font-weight: 700;
}

.li-app .rules-list li {
    color: var(--navy);
    background: rgba(26, 110, 122, 0.06);
    border: 1px solid rgba(26, 110, 122, 0.14);
    border-radius: 999px;
}

.li-app .rules-kv li {
    border-bottom: 1px solid rgba(28, 43, 58, 0.06);
}

.li-app .rules-kv .kv-label {
    color: var(--muted);
}

.li-app .zone-list li {
    border-bottom: 1px solid rgba(28, 43, 58, 0.06);
}

.li-app .warning-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.li-app .warning-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--text);
    border-bottom: 1px solid rgba(28, 43, 58, 0.06);
    line-height: 1.45;
}

.li-app .location-disclaimer {
    margin: 18px 2px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.li-app .zone-dot--orange {
    background: var(--orange);
}

.li-app .zone-dot--red {
    background: var(--red);
}

.li-app .buildability-notice {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

.li-app .buildability-notice strong {
    display: block;
    margin-bottom: 6px;
}

.li-app .buildability-notice ul {
    margin: 0;
    padding-left: 18px;
}

.li-app .buildability-notice--blocked {
    color: var(--red);
    background: rgba(183, 58, 46, 0.13);
    border: 1px solid rgba(183, 58, 46, 0.42);
}

.li-app .buildability-notice--warning {
    color: var(--orange);
    background: rgba(180, 123, 38, 0.08);
    border: 1px solid rgba(180, 123, 38, 0.28);
}

.li-app .diagram-loading {
    margin: auto;
}

@media (max-width: 980px) {
    .li-app .hero-inputs {
        grid-template-columns: 1fr;
        border-radius: 24px;
        padding: 12px;
    }

    .li-app .form-field {
        min-height: 58px;
        padding: 0 14px;
        border-left: 0 !important;
        border-bottom: 1px solid rgba(28, 43, 58, 0.08);
    }

    .li-app #search-form button {
        margin: 4px auto 0;
    }

    .li-app .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .li-app .top-row {
        grid-template-columns: 1fr;
    }

    .li-app #map,
    .li-app #envelope-diagram {
        height: 380px;
    }

    .li-app .top-row.map-expanded #map {
        height: 460px;
    }
}

@media (max-width: 720px) {
    .li-app #hero {
        min-height: 100svh;
        padding: 72px 18px 48px;
    }

    .li-app .hero-brand-lockup {
        font-size: 19px;
    }

    .li-app main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .li-app .title-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .li-app .title-bar-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .li-app .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .li-app .hero-brand-lockup {
        font-size: 17px;
        gap: 8px;
    }

    .li-app .hero-inputs {
        border-radius: 18px;
    }

    .li-app .cards-grid {
        grid-template-columns: 1fr;
    }

    .li-app #map,
    .li-app #envelope-diagram {
        height: 320px;
    }

    .li-app .top-row.map-expanded #map {
        height: 380px;
    }
}

@media print {
    html,
    body,
    body.li-app {
        height: auto !important;
        min-height: 0 !important;
        background: #fff !important;
    }

    #hero,
    #loading,
    .li-app .title-bar-actions,
    .li-app .detail-header .arrow,
    .li-app .card-icon,
    .li-app .detail-icon,
    .li-app .panel-icon-btn { display: none !important; }

    /* Title bar: strip navy, show as clean text header */
    .li-app .title-bar {
        background: none !important;
        color: #1a1a1a !important;
        box-shadow: none !important;
        border: none !important;
        border-bottom: 2px solid #1a1a1a !important;
        border-radius: 0 !important;
        padding: 6px 0 10px !important;
    }
    .li-app .title-brand-logo { display: none !important; }
    .li-app .title-brand-name,
    .li-app .title-brand-product,
    .li-app .title-brand-sep,
    .li-app .title-parcel { color: #1a1a1a !important; }

    .li-app main {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .li-app #results {
        padding-top: 0 !important;
    }

    /* PDF export: one full-width map row; the envelope panel is omitted. */
    .li-app .top-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }

    /* Strip all box chrome — panels, cards, sections */
    .li-app .panel,
    .li-app .card,
    .li-app .detail-section {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .li-app .top-row > .panel {
        break-inside: avoid;
    }

    /* Panel h2 labels: thin rule instead of filled bar */
    .li-app .panel h2 {
        background: none !important;
        border: none !important;
        border-bottom: 1px solid #ccc !important;
        padding: 0 0 4px !important;
        color: #555 !important;
    }

    /* Detail section headers: simple rule */
    .li-app .detail-header {
        background: none !important;
        border: none !important;
        border-bottom: 1.5px solid #333 !important;
        padding: 8px 0 5px !important;
    }
    .li-app .detail-body {
        display: block !important;
        padding: 8px 0 12px !important;
    }
    .li-app .details { gap: 0 !important; }

    /* Cards: strip borders, keep grid */
    .li-app .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0 !important;
        margin-bottom: 12px !important;
    }
    .li-app .card {
        border-right: 1px solid #eee !important;
        border-bottom: 1px solid #eee !important;
        border-radius: 0 !important;
        padding: 8px !important;
        min-height: 0 !important;
        gap: 3px !important;
    }
    .li-app .card-value { font-size: 20px !important; }
    .li-app .card-sub {
        display: none !important;
    }

    .li-app .pdf-image-panel {
        border: 1px solid #e3ddd2 !important;
        border-radius: 6px !important;
        min-height: 0 !important;
    }
    .li-app .pdf-panel-image {
        width: 100% !important;
        max-height: 360px !important;
        object-fit: cover !important;
    }

    .li-app #map { height: 360px !important; }

    /* Tables: lighter styling */
    .li-app table { font-size: 11px !important; }
    .li-app th { background: none !important; border-bottom: 1px solid #bbb !important; }
    .li-app td { border-bottom: 1px solid #eee !important; }

    @page {
        margin: 1.2cm 1.5cm;
        size: A4 portrait;
    }
}
