:root {
    --bg: #edf2ff;
    --bg-accent: #f7f9ff;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.82);
    --border: rgba(105, 126, 173, 0.18);
    --border-strong: rgba(75, 107, 175, 0.24);
    --ink: #12203d;
    --subtle: #5f6f91;
    --muted: #8d9bb7;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --accent: #f59e0b;
    --danger: #dc2626;
    --success: #16a34a;
    --shadow-sm: 0 8px 18px rgba(18, 32, 61, 0.08);
    --shadow-md: 0 18px 40px rgba(18, 32, 61, 0.14);
    --shadow-lg: 0 28px 60px rgba(18, 32, 61, 0.22);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --font-sans: "Plus Jakarta Sans", "Noto Sans SC", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.14), transparent 28%),
        linear-gradient(180deg, #f6f8ff 0%, #edf2ff 38%, #e8eefb 100%);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

button {
    border: none;
    background: none;
    color: inherit;
}

.page-shell {
    height: 100%;
    display: flex;
    justify-content: center;
}

.app-root {
    position: relative;
    width: min(100%, 480px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2)),
        linear-gradient(180deg, #f7f9ff 0%, #edf2ff 100%);
}

.app-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "brand"
        "search"
        "summary";
    gap: 12px;
    padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
    background:
        linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(248, 250, 255, 0.82)),
        rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(118, 137, 180, 0.12);
    backdrop-filter: blur(18px);
}

.brand-block {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 30%, #7fb0ff, transparent 42%),
        linear-gradient(135deg, #2563eb 0%, #4f88ff 55%, #94b7ff 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), var(--shadow-sm);
}

.brand-mark span {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.22),
        0 0 0 10px rgba(255, 255, 255, 0.08);
}

.brand-copy {
    min-width: 0;
}

.brand-copy__eyebrow {
    display: inline-block;
    margin-bottom: 2px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--primary);
}

.brand-copy__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-copy__desc {
    margin: 4px 0 0;
    max-width: 32ch;
    font-size: 11px;
    line-height: 1.45;
    color: var(--subtle);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.search-panel {
    grid-area: search;
    display: grid;
    gap: 6px;
    min-width: 0;
}

.search-bar {
    position: relative;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 14px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid rgba(120, 140, 187, 0.18);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.search-input-wrap:focus-within {
    border-color: rgba(37, 99, 235, 0.36);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        var(--shadow-sm);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex-shrink: 0;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.search-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
}

.search-input::placeholder {
    color: var(--muted);
}

.search-clear {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(137, 154, 192, 0.18);
    color: var(--subtle);
    cursor: pointer;
    flex-shrink: 0;
}

.search-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 2px;
    font-size: 11px;
    color: var(--subtle);
}

.search-meta__label {
    color: var(--muted);
}

.search-meta__value {
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
}

.summary-panel {
    grid-area: summary;
    display: flex;
    align-items: stretch;
    gap: 8px;
    justify-self: stretch;
    width: 100%;
}

.summary-card,
.favorites-entry {
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid rgba(120, 140, 187, 0.18);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    min-height: 68px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.summary-card {
    flex: 1.18 1 0;
}

.summary-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-card__label {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
}

.summary-card__value {
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--ink);
}

.summary-card__meta {
    font-size: 11px;
    color: var(--subtle);
}

.favorites-entry {
    flex: 0.82 1 0;
    cursor: pointer;
}

.favorites-entry__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.favorites-entry__label {
    font-size: 10px;
    color: var(--subtle);
    font-weight: 700;
}

.favorites-entry__count {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--primary);
}

.favorites-entry__meta {
    font-size: 11px;
    color: var(--muted);
    text-align: left;
}

.map-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

#map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.amap-logo,
.amap-copyright {
    z-index: 12 !important;
}

.map-stage__veil {
    position: absolute;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 8;
}

.map-stage__veil--top {
    top: 0;
    height: 180px;
    background: linear-gradient(180deg, rgba(237, 242, 255, 0.56), transparent 88%);
}

.map-stage__veil--bottom {
    bottom: 0;
    height: 190px;
    background: linear-gradient(0deg, rgba(237, 242, 255, 0.72), transparent 82%);
}

.map-status {
    position: absolute;
    inset: 0;
    z-index: 16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
    background: rgba(245, 248, 255, 0.76);
    backdrop-filter: blur(6px);
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.map-status.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.map-status.is-error {
    background: rgba(255, 248, 248, 0.88);
}

.map-status__spinner {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 3px solid rgba(37, 99, 235, 0.16);
    border-top-color: var(--primary);
    animation: spin 0.9s linear infinite;
}

.map-status__text {
    max-width: 26ch;
    margin: 0;
    color: var(--subtle);
    line-height: 1.55;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.filter-bar {
    position: absolute;
    top: 18px;
    z-index: 15;
    pointer-events: none;
}

.filter-bar--left {
    left: 12px;
}

.filter-bar--right {
    right: 12px;
}

.filter-stack {
    display: grid;
    gap: 8px;
    pointer-events: auto;
}

.filter-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
    min-width: 0;
    scrollbar-width: none;
    pointer-events: auto;
}

.filter-scroll--jobs {
    justify-content: space-between;
    width: 100%;
    position: relative;
    z-index: 20;
}

.filter-scroll--actions {
    justify-content: flex-end;
}

.filter-scroll--top {
    justify-content: space-between;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-group {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(109, 126, 173, 0.16);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
}

.filter-group--job {
    min-width: 0;
}

.filter-distance {
    flex: 0 0 auto;
}

.filter-distance .filter-chip,
.filter-distance .filter-chip.active {
    background: var(--primary) !important;
    color: #fff !important;
}

.filter-chip {
    height: 34px;
    min-width: 64px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--subtle);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.filter-chip.active {
    background: var(--ink);
    color: #fff;
}

.filter-distance .filter-chip.active {
    background: var(--primary);
}

.filter-chip--dropdown {
    display: inline-flex;
    min-width: 64px;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 14px;
}

.filter-chip--dropdown.active {
    background: var(--primary) !important;
    color: #fff !important;
}

.distance-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 86px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(109, 126, 173, 0.16);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    z-index: 40;
    pointer-events: auto;
}

.distance-menu.show {
    display: grid;
    gap: 4px;
}

.filter-distance.is-open .distance-menu {
    display: grid;
    gap: 4px;
}

.filter-distance {
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
}

.filter-distance.is-open {
    z-index: 36;
}

.filter-chip__text {
    display: inline-block;
    width: 100%;
    text-align: center;
}

.filter-chip__caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: currentColor;
    opacity: 0.7;
}

.distance-option {
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--subtle);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
}

.distance-option.active {
    background: var(--primary);
    color: #fff;
}

.map-pill-group {
    position: absolute;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 14;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.map-pill-group--left {
    left: 16px;
}

.map-pill-group--right {
    right: 16px;
    bottom: calc(90px + env(safe-area-inset-bottom));
}

.map-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 220px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(109, 126, 173, 0.16);
    box-shadow: var(--shadow-sm);
    color: var(--subtle);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(16px);
}

.map-pill--strong {
    color: var(--ink);
}

.map-pill--button {
    pointer-events: auto;
    cursor: pointer;
}

.map-controls {
    position: absolute;
    right: 16px;
    bottom: calc(70px + env(safe-area-inset-bottom));
    z-index: 14;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control {
    min-width: 48px;
    height: 48px;
    border-radius: 18px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(109, 126, 173, 0.18);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    cursor: pointer;
    backdrop-filter: blur(18px);
}

.map-control svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.map-control--wide {
    justify-content: flex-start;
    min-width: 108px;
}

.map-control__icon {
    font-size: 16px;
}

.map-control__text {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.empty-toast {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 18;
    max-width: 280px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(18, 32, 61, 0.88);
    color: #f8fbff;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.empty-toast.show {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 6px));
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 32;
    display: none;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(120, 140, 187, 0.18);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.search-dropdown.show {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    border-bottom: 1px solid rgba(118, 137, 180, 0.12);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item .item-icon {
    width: 30px;
    height: 30px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(37, 99, 235, 0.08);
}

.search-dropdown-item .item-content {
    flex: 1;
    min-width: 0;
}

.search-dropdown-item .item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-item .item-address {
    margin-top: 4px;
    font-size: 12px;
    color: var(--subtle);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-item .item-distance {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}

.search-dropdown-empty {
    padding: 18px;
    text-align: center;
    color: var(--subtle);
    font-size: 13px;
}

.overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    background: rgba(18, 32, 61, 0.28);
    backdrop-filter: blur(3px);
    transition: opacity 0.24s ease;
}

.overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.company-card,
.favorites-panel,
.results-panel {
    position: fixed;
    left: 50%;
    bottom: 0;
    width: min(100vw, 480px);
    max-width: 480px;
    border-radius: 28px 28px 0 0;
    border: 1px solid rgba(118, 137, 180, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
        #ffffff;
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, 104%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0.37, 1);
    overflow: hidden;
}

.company-card {
    z-index: 1050;
    display: flex;
    flex-direction: column;
    max-height: 72vh;
}

.company-card.open,
.favorites-panel.open,
.results-panel.open {
    transform: translate(-50%, 0);
}

.company-card.full {
    max-height: 84vh;
}

.favorites-panel {
    z-index: 1060;
    display: flex;
    flex-direction: column;
    max-height: 72vh;
}

.results-panel {
    z-index: 1060;
    display: flex;
    flex-direction: column;
    max-height: 72vh;
}

.sheet-handle-row {
    position: relative;
    padding: 10px 16px 0;
    flex-shrink: 0;
    pointer-events: auto;
}

.card-handle {
    width: 40px;
    height: 4px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(137, 154, 192, 0.42);
}

.sheet-close,
.panel-close {
    position: absolute;
    right: 16px;
    top: 10px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(137, 154, 192, 0.12);
    color: var(--subtle);
    cursor: pointer;
    z-index: 1070;
    pointer-events: auto;
}

.card-content,
.panel-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 20px 24px;
    scrollbar-width: thin;
}

.card-content {
    padding-top: 8px;
}

.panel-header {
    position: relative;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(118, 137, 180, 0.12);
    flex-shrink: 0;
}

.panel-eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 800;
}

.panel-title {
    margin-top: 4px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.result-list {
    display: flex;
    flex-direction: column;
}

.result-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

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

.result-content {
    flex: 1;
    min-width: 0;
}

.result-line1 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-distance {
    font-size: 12px;
    color: var(--muted);
    flex-shrink: 0;
}

.result-line2 {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--subtle);
    line-height: 1.4;
}

.result-line2 span:not(.result-tag-hiring) {
    white-space: nowrap;
}

.result-tag-hiring {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
    font-size: 11px;
    font-weight: 500;
}

.result-star {
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
}

.result-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 48px;
}

.result-rating-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.result-empty {
    padding: 48px 24px;
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
}

.panel-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0 20px 24px;
    scrollbar-width: thin;
    padding-top: 8px;
}

.card-peek {
    display: grid;
    gap: 16px;
}

.card-hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-company-name {
    margin: 0;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.card-meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--subtle);
}

.card-favorite-btn {
    display: inline-flex;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, 0.12);
    font-size: 16px;
    cursor: pointer;
    margin-left: 8px;
}

.card-score-panel {
    padding: 16px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.09), rgba(255, 255, 255, 0.95)),
        #ffffff;
    border: 1px solid rgba(75, 107, 175, 0.12);
}

.card-score-panel__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-score-panel__label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.card-score-panel__value {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 800;
    color: var(--ink);
}

.card-score-panel__value strong {
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.card-score-panel__value span {
    font-size: 13px;
    color: var(--subtle);
}

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

.summary-stat {
    padding: 14px 12px;
    border-radius: 18px;
    background: rgba(244, 247, 255, 0.9);
    border: 1px solid rgba(118, 137, 180, 0.12);
}

.summary-stat__label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.summary-stat__value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tag,
.job-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.card-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.card-tag.is-warm,
.job-tag {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.card-expand-btn,
.card-collapse-btn {
    height: 48px;
    width: 100%;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    cursor: pointer;
}

.card-expand-btn {
    background: var(--ink);
    color: #fff;
}

.card-collapse-btn {
    margin-top: 8px;
    background: rgba(118, 137, 180, 0.12);
    color: var(--subtle);
}

.card-detail {
    display: none;
    padding-top: 18px;
    border-top: 1px solid rgba(118, 137, 180, 0.12);
}

.company-card.full .card-detail {
    display: block;
}

.detail-section + .detail-section {
    margin-top: 18px;
}

.detail-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-section__title {
    font-size: 15px;
    font-weight: 800;
}

.detail-section__meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.review-item {
    padding: 14px;
    border-radius: 18px;
    background: rgba(244, 247, 255, 0.9);
    border: 1px solid rgba(118, 137, 180, 0.12);
}

.review-item + .review-item {
    margin-top: 10px;
}

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

.review-stars {
    color: var(--accent);
    letter-spacing: 0.08em;
    font-size: 12px;
}

.review-meta {
    font-size: 13px;
    font-weight: 800;
    color: var(--accent);
}

.review-content {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--ink);
}

.review-footer {
    margin-top: 10px;
    font-size: 12px;
    color: var(--subtle);
}

.expand-btn {
    width: 100%;
    margin-top: 10px;
    height: 44px;
    border-radius: 14px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
}

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

.job-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(118, 137, 180, 0.12);
}

.job-title {
    font-size: 14px;
    font-weight: 700;
}

.job-salary {
    font-size: 14px;
    font-weight: 800;
    color: var(--danger);
    white-space: nowrap;
}

.card-no-rating,
.favorite-empty {
    padding: 18px;
    border-radius: 18px;
    background: rgba(244, 247, 255, 0.78);
    color: var(--subtle);
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.card-action-btn {
    width: 100%;
    height: 50px;
    margin-top: 18px;
    border-radius: 16px;
    background: rgba(18, 32, 61, 0.08);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.favorite-item {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(118, 137, 180, 0.12);
    cursor: pointer;
}

.favorite-item + .favorite-item {
    margin-top: 10px;
}

.favorite-item__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.favorite-name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.favorite-distance {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.favorite-meta {
    font-size: 13px;
    color: var(--subtle);
    line-height: 1.6;
}

.favorite-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.favorite-chip {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.favorite-chip.is-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.results-item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(118, 137, 180, 0.12);
    cursor: pointer;
}

.results-item + .results-item {
    margin-top: 10px;
}

.results-item__top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
}

.results-item__name {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.results-item__distance {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.results-item__meta {
    font-size: 13px;
    color: var(--subtle);
}

.results-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.results-tag {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.results-tag.is-danger {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

.waitlist-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
}

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

.waitlist-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 32, 61, 0.36);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(calc(100vw - 32px), 360px);
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.98)),
        #ffffff;
    border: 1px solid rgba(118, 137, 180, 0.16);
    box-shadow: var(--shadow-lg);
    transform: translate(-50%, -50%);
}

.modal-badge {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.modal-title {
    margin-top: 14px;
    font-size: 22px;
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.modal-desc {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--subtle);
}

.modal-input {
    width: 100%;
    height: 50px;
    margin-top: 18px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(118, 137, 180, 0.18);
    background: rgba(244, 247, 255, 0.92);
    outline: none;
    color: var(--ink);
}

.modal-input::placeholder {
    color: var(--muted);
}

.modal-input:focus {
    border-color: rgba(37, 99, 235, 0.36);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.modal-btn {
    width: 100%;
    height: 48px;
    margin-top: 10px;
    border-radius: 16px;
    font-weight: 800;
    cursor: pointer;
}

.modal-btn.primary {
    background: var(--primary);
    color: #fff;
}

.modal-btn.primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.modal-btn.secondary {
    background: rgba(118, 137, 180, 0.12);
    color: var(--subtle);
}

.success-toast {
    position: fixed;
    left: 50%;
    top: calc(18px + env(safe-area-inset-top));
    z-index: 1300;
    max-width: calc(100vw - 32px);
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.96);
    box-shadow: var(--shadow-md);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    transform: translate(-50%, -8px);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.success-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.map-marker {
    width: 18px;
    height: 18px;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.map-marker__core,
.map-marker__glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.map-marker__glow {
    opacity: 0;
    transition: opacity 0.16s ease;
}

.map-marker.has-review {
    background: linear-gradient(135deg, #2563eb 0%, #5e8eff 100%);
    border: 2px solid rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.24);
}

.map-marker.has-review .map-marker__core {
    inset: 3px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.24);
}

.map-marker.no-review {
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid rgba(95, 111, 145, 0.72);
    box-shadow: 0 5px 14px rgba(95, 111, 145, 0.16);
}

.map-marker.no-review .map-marker__core {
    inset: 4px;
    border-radius: 999px;
    background: rgba(95, 111, 145, 0.22);
}

.map-marker.hiring::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--danger);
    border: 2px solid rgba(255, 255, 255, 0.96);
}

.map-marker.active {
    transform: scale(1.18);
}

.map-marker.active.has-review {
    box-shadow:
        0 0 0 6px rgba(37, 99, 235, 0.18),
        0 12px 24px rgba(37, 99, 235, 0.32);
}

.map-marker.active.no-review {
    box-shadow:
        0 0 0 6px rgba(95, 111, 145, 0.18),
        0 12px 24px rgba(95, 111, 145, 0.18);
}

.map-marker.active .map-marker__glow {
    opacity: 1;
    inset: -5px;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0));
}

.center-marker {
    width: 34px;
    height: 34px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-marker__ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 1.5px dashed rgba(245, 158, 11, 0.72);
    background: rgba(245, 158, 11, 0.08);
    animation: centerPulse 1.8s ease-in-out infinite;
}

.center-marker__core {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 100%);
    border: 3px solid rgba(255, 255, 255, 0.98);
    box-shadow:
        0 0 0 6px rgba(245, 158, 11, 0.16),
        0 8px 18px rgba(245, 158, 11, 0.24);
    position: relative;
    z-index: 2;
}

.center-marker__cross {
    position: absolute;
    background: rgba(245, 158, 11, 0.86);
    z-index: 1;
    border-radius: 999px;
}

.center-marker__cross--h {
    width: 22px;
    height: 2px;
}

.center-marker__cross--v {
    width: 2px;
    height: 22px;
}

@keyframes centerPulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.78;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

.amap-marker-cluster {
    background: linear-gradient(135deg, #2563eb, #4f88ff);
    border-radius: 999px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

@media (max-width: 359px) {
    .app-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "summary"
            "search";
    }

    .summary-panel {
        justify-self: stretch;
    }

    .summary-card,
    .favorites-entry {
        flex: 1;
    }

    .filter-group--job .filter-chip {
        min-width: 56px;
        padding: 0 8px;
        font-size: 11px;
    }

    .filter-chip--dropdown {
        min-width: 56px;
    }
}

@media (max-width: 520px) {
    .brand-copy__desc {
        -webkit-line-clamp: 1;
    }

    .search-meta__label {
        display: none;
    }

    .filter-scroll {
        gap: 8px;
    }

    .filter-group {
        gap: 4px;
        padding: 5px;
    }

    .filter-chip {
        padding: 0 10px;
        font-size: 11px;
    }

    .filter-chip--dropdown {
        min-width: 56px;
        padding: 0 14px;
    }

    .filter-scroll--jobs {
        align-items: stretch;
    }

}

@media (min-width: 860px) {
    body {
        padding: 24px;
    }

    .app-root {
        height: min(100%, 920px);
        border-radius: 34px;
        border: 1px solid rgba(109, 126, 173, 0.16);
        box-shadow: 0 30px 80px rgba(18, 32, 61, 0.18);
    }
}
