:root {
    --bg-top: #fff6f7;
    --bg-bottom: #fff9f1;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --surface-soft: rgba(255, 246, 248, 0.92);
    --border: rgba(151, 105, 123, 0.14);
    --border-strong: rgba(151, 105, 123, 0.24);
    --shadow-lg: 0 22px 48px rgba(150, 110, 125, 0.14);
    --shadow-md: 0 14px 30px rgba(166, 125, 139, 0.12);
    --shadow-sm: 0 8px 18px rgba(166, 125, 139, 0.08);
    --text: #362530;
    --text-soft: #7d6670;
    --accent: #d95f8a;
    --accent-soft: #fde4ed;
    --accent-warm: #f3dcc1;
    --success: #2e8a59;
    --danger: #d55b6b;
    --font-display: "Jua", "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: "Pretendard Variable", "Pretendard", "Apple SD Gothic Neo", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: -0.015em;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 220, 228, 0.72), transparent 28%),
        radial-gradient(circle at top right, rgba(255, 238, 213, 0.78), transparent 24%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.3;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 84%);
}

body::after {
    content: "";
    position: fixed;
    inset: auto -14% 8% auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 181, 207, 0.34), rgba(255, 233, 210, 0.04) 66%, transparent 72%);
    filter: blur(16px);
    pointer-events: none;
    animation: orbFloat 9s ease-in-out infinite;
}

.ambient-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.scene-orb,
.scene-line {
    position: absolute;
    display: block;
}

.scene-orb {
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.66;
    animation: orbFloat 11s ease-in-out infinite;
}

.scene-orb-a {
    top: -110px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255, 212, 227, 0.82), rgba(255, 212, 227, 0) 72%);
}

.scene-orb-b {
    top: 18%;
    right: -96px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 233, 198, 0.82), rgba(255, 233, 198, 0) 72%);
    animation-duration: 14s;
}

.scene-orb-c {
    bottom: 9%;
    left: 6%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(227, 220, 255, 0.54), rgba(227, 220, 255, 0) 72%);
    animation-duration: 17s;
}

.scene-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
    opacity: 0.42;
}

.scene-line-a {
    top: 24%;
    left: -12%;
    width: 54%;
    transform: rotate(-12deg);
}

.scene-line-b {
    bottom: 16%;
    right: -12%;
    width: 50%;
    transform: rotate(18deg);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.app-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    width: min(100%, 520px);
    margin: 0 auto;
    padding: max(16px, env(safe-area-inset-top)) 14px calc(92px + env(safe-area-inset-bottom));
}

.app-shell::before,
.app-shell::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(18px);
}

.app-shell::before {
    top: 88px;
    left: max(4px, calc(50% - 300px));
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 196, 213, 0.48), transparent 72%);
    animation: orbFloat 12s ease-in-out infinite;
}

.app-shell::after {
    right: max(4px, calc(50% - 320px));
    top: 240px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 230, 186, 0.34), transparent 74%);
    animation: orbFloat 15s ease-in-out infinite reverse;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 4px 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 250, 250, 0.86), rgba(255, 250, 246, 0.38));
    backdrop-filter: blur(18px);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 54px;
    height: 54px;
    padding: 5px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 239, 242, 0.94));
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: contain;
}

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

.top-kicker,
.card-kicker,
.form-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 68%, white 14%);
}

.sort-label {
    margin-top: 6px;
}

.brand-copy h1,
.hero-card h2,
.panel-head h2,
.card h3,
.bottom-sheet h3 {
    font-family: var(--font-display);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.brand-copy h1 {
    font-size: 1.7rem;
}

.top-location,
.panel-copy,
.card-copy,
.hero-copy,
.note-card p,
.summary-card span,
.chat-text,
.inline-meta-text {
    font-size: 0.94rem;
    line-height: 1.72;
    color: var(--text-soft);
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.top-actions,
.hero-badges,
.hero-meta,
.hero-actions,
.chip-row,
.card-actions,
.inline-meta,
.sheet-actions,
.prompt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.icon-btn,
.choice-chip,
.primary-btn,
.secondary-btn,
.text-btn,
.tab-btn,
.prompt-chip {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

.icon-btn:active,
.choice-chip:active,
.primary-btn:active,
.secondary-btn:active,
.text-btn:active,
.tab-btn:active,
.prompt-chip:active {
    transform: scale(0.98);
}

.app-main {
    position: relative;
    z-index: 1;
}

.tab-panel {
    display: none;
    gap: 14px;
}

.tab-panel.is-active {
    display: grid;
    animation: panelIn 0.35s ease;
}

.hero-card,
.card,
.metric-card,
.bottom-nav,
.bottom-sheet,
.chat-bubble,
.loading-card,
.state-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.hero-card,
.card {
    border-radius: 28px;
    padding: 20px;
}

.hero-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at top right, rgba(255, 230, 236, 0.92), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 250, 0.92));
}

.hero-card::before,
.hero-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero-card::before {
    width: 220px;
    height: 220px;
    right: -54px;
    top: -62px;
    background: radial-gradient(circle, rgba(255, 216, 228, 0.84), rgba(255, 216, 228, 0.08) 64%, transparent 72%);
    animation: pulseGlow 7s ease-in-out infinite;
}

.hero-card::after {
    left: -20%;
    right: -20%;
    top: -80px;
    height: 180px;
    transform: rotate(8deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
    opacity: 0.72;
}

.hero-card h2 {
    margin-top: 8px;
    font-size: clamp(2.05rem, 10.6vw, 2.95rem);
    max-width: 9.4em;
    word-break: keep-all;
    overflow-wrap: normal;
}

.hero-title-line {
    display: inline;
}

.hero-copy {
    margin-top: 12px;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 249, 0.9));
}

.home-preview-card {
    display: grid;
    gap: 14px;
}

.home-preview-card .card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    margin-bottom: 0;
}

.home-preview-head-copy {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 4px;
}

.home-preview-card .card-kicker,
.home-preview-card h3,
.home-preview-card .card-copy,
.home-preview-card .inline-meta-text {
    text-wrap: pretty;
}

.home-preview-card h3 {
    max-width: none;
    font-size: clamp(1.24rem, 5.7vw, 1.48rem);
    white-space: nowrap;
    text-wrap: balance;
}

.home-preview-card .text-btn {
    flex-shrink: 0;
    margin-top: 3px;
}

.home-preview-body {
    max-width: 29ch;
}

.home-preview-card .card-copy {
    line-height: 1.6;
}

.home-preview-meta {
    align-items: center;
    gap: 8px 10px;
}

.home-preview-card .inline-meta-text {
    max-width: 24ch;
    line-height: 1.56;
}

.badge,
.meta-pill,
.inline-pill,
.playlist-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge,
.meta-pill,
.inline-pill,
.playlist-pill {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.verification-pill {
    color: color-mix(in srgb, var(--accent) 82%, #6f4c43 18%);
    background: linear-gradient(135deg, rgba(255, 245, 246, 0.96), rgba(255, 251, 242, 0.96));
    border-color: rgba(224, 191, 202, 0.76);
}

.proof-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.place-photo-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.place-photo-strip.is-compact {
    gap: 7px;
}

.place-photo-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.12;
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 246, 0.88));
    border: 1px solid rgba(234, 209, 218, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.place-photo-strip.is-compact .place-photo-frame {
    aspect-ratio: 1.22;
    border-radius: 16px;
}

.place-photo-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.review-pill {
    min-height: 30px;
    padding: 6px 12px;
    background: rgba(255, 248, 250, 0.92);
    border: 1px solid rgba(236, 209, 217, 0.84);
    color: var(--text-main);
}

.review-note {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-strong);
}

.curation-pill {
    color: #7b4d32;
    border-color: rgba(204, 175, 148, 0.72);
}

.curation-pill.is-popular {
    background: linear-gradient(135deg, rgba(255, 244, 229, 0.96), rgba(255, 250, 239, 0.98));
}

.curation-pill.is-quiet {
    background: linear-gradient(135deg, rgba(246, 239, 232, 0.96), rgba(255, 248, 242, 0.98));
}

.curation-pill.is-rising {
    background: linear-gradient(135deg, rgba(255, 236, 228, 0.96), rgba(255, 245, 238, 0.98));
}

.curation-pill.is-steady {
    background: linear-gradient(135deg, rgba(251, 242, 235, 0.96), rgba(255, 249, 244, 0.98));
}

.trust-pill {
    color: #6a4a36;
    border-color: rgba(197, 168, 149, 0.7);
}

.trust-pill.is-high {
    background: linear-gradient(135deg, rgba(255, 242, 225, 0.98), rgba(255, 250, 241, 0.96));
}

.trust-pill.is-medium {
    background: linear-gradient(135deg, rgba(249, 241, 234, 0.98), rgba(255, 248, 244, 0.96));
}

.badge-soft,
.choice-chip.active,
.zone-chip.active,
.tab-btn.is-active {
    background: linear-gradient(135deg, rgba(250, 224, 233, 0.96), rgba(255, 247, 239, 0.96));
}

.tab-btn.is-active {
    color: var(--text);
    transform: translateY(-4px);
    box-shadow: 0 12px 22px rgba(214, 121, 152, 0.18);
}

.hero-meta {
    margin-top: 14px;
}

.hero-showcase {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.showcase-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 6px;
    min-height: 128px;
    padding: 16px;
    border-radius: 24px;
    background:
        linear-gradient(140deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 248, 0.86)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.showcase-card::after {
    content: "";
    position: absolute;
    inset: auto -22% -44% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(223, 120, 162, 0.18), transparent 72%);
}

.showcase-card-soft {
    background:
        linear-gradient(140deg, rgba(255, 251, 244, 0.96), rgba(255, 240, 231, 0.88)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent);
}

.showcase-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--accent) 74%, white 12%);
}

.showcase-card strong {
    font-size: 1.05rem;
    line-height: 1.3;
}

.showcase-card p {
    font-size: 0.83rem;
    line-height: 1.55;
    color: var(--text-soft);
}

.hero-actions {
    margin-top: 16px;
}

.quick-action-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.quick-action-btn {
    min-height: 86px;
    display: grid;
    place-items: center;
    gap: 6px;
    padding: 12px 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.quick-action-primary {
    background: linear-gradient(135deg, rgba(250, 224, 233, 0.96), rgba(255, 247, 239, 0.96));
}

.quick-action-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.quick-action-label {
    font-size: 0.82rem;
    font-weight: 800;
}

.glance-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.weather-brief-card {
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 240, 214, 0.72), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 244, 0.92));
}

.weather-brief-grid {
    display: grid;
    gap: 12px;
}

.weather-main,
.weather-note-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.weather-main strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1;
}

.weather-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 245, 228, 0.98), rgba(255, 229, 238, 0.98));
    font-size: 1.8rem;
    flex-shrink: 0;
}

.weather-note-box {
    align-items: flex-start;
    flex-direction: column;
}

.spot-category-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.spot-category-row .choice-chip {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 10px 0;
    justify-content: center;
    font-size: 0.82rem;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.glance-card {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 88px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
}

.glance-card strong {
    font-size: 0.9rem;
    line-height: 1.45;
}

.spot-note {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    color: var(--text);
}

.primary-btn,
.secondary-btn,
.choice-chip,
.prompt-chip {
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 18px;
}

.primary-btn {
    color: white;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #f0b97d 20%));
    box-shadow: 0 16px 28px rgba(185, 93, 127, 0.22);
}

.secondary-btn {
    color: var(--text);
    background: rgba(255, 250, 245, 0.94);
    border: 1px solid rgba(230, 210, 197, 0.72);
}

.block-btn,
.chat-submit {
    width: 100%;
}

.choice-chip,
.prompt-chip {
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    border: 1px solid rgba(210, 186, 196, 0.62);
}

.text-btn {
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
}

.card-head,
.tracker-head,
.sheet-head,
.subsection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-head,
.tracker-head,
.subsection-head {
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.52rem;
}

.panel-head {
    padding: 4px 2px 2px;
}

.panel-head h2 {
    margin-top: 4px;
    font-size: 2rem;
}

.panel-copy {
    margin-top: 8px;
}

.lead-copy {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

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

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

.metric-card {
    border-radius: 22px;
    padding: 16px;
    min-height: 100px;
}

.metric-card span {
    font-size: 0.8rem;
    color: var(--text-soft);
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.14rem;
    line-height: 1.35;
}

.preview-list,
.stack-list,
.note-list,
.chat-messages {
    display: grid;
    gap: 10px;
}

.preview-card,
.place-card,
.bookmark-card,
.course-card,
.chat-bubble,
.ritual-card,
.loading-card,
.state-card {
    border-radius: 20px;
    padding: 15px 16px;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.preview-card,
.place-card,
.bookmark-card,
.course-card,
.ritual-card {
    display: grid;
    gap: 8px;
}

.place-top,
.bookmark-top,
.course-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.place-top-side {
    display: grid;
    justify-items: end;
    gap: 8px;
    flex-shrink: 0;
}

.distance-pill {
    min-height: 30px;
    padding: 6px 12px;
    color: #6b4a38;
    background: linear-gradient(135deg, rgba(255, 243, 227, 0.98), rgba(255, 249, 240, 0.96));
    border: 1px solid rgba(220, 191, 165, 0.76);
}

.place-top h4,
.bookmark-card h4,
.course-card h4,
.note-card h4,
.subsection-head h4,
.small-title {
    font-size: 1rem;
}

.bookmark-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(215, 184, 197, 0.72);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-soft);
    flex-shrink: 0;
}

.bookmark-toggle.active {
    color: var(--accent);
}

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

.bookmark-accordion-list.is-home {
    gap: 8px;
}

.bookmark-accordion {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 252, 251, 0.92);
    border: 1px solid rgba(234, 212, 219, 0.72);
    box-shadow: var(--shadow-sm);
}

.bookmark-accordion summary {
    list-style: none;
}

.bookmark-accordion summary::-webkit-details-marker {
    display: none;
}

.bookmark-accordion-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    color: var(--text);
    cursor: pointer;
}

.bookmark-accordion-summary::after {
    content: "⌄";
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-soft);
    transition: transform 0.2s ease;
}

.bookmark-accordion[open] .bookmark-accordion-summary::after {
    transform: rotate(180deg);
}

.bookmark-accordion-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.98rem;
    font-weight: 800;
}

.bookmark-accordion-count {
    min-width: 52px;
    padding: 6px 10px;
    border-radius: 999px;
    text-align: center;
    background: rgba(255, 245, 248, 0.92);
    border: 1px solid rgba(234, 212, 219, 0.76);
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.bookmark-accordion-items {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
}

.bookmark-entry-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(243, 225, 231, 0.82);
}

.bookmark-entry-main {
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 2px;
    text-align: left;
    color: var(--text);
}

.bookmark-entry-name {
    display: block;
    font-size: 0.95rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookmark-entry-remove {
    width: 36px;
    height: 36px;
}

.ai-lab-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 230, 236, 0.96), transparent 32%),
        linear-gradient(135deg, rgba(255, 251, 252, 0.98), rgba(255, 244, 238, 0.96));
}

.ai-lab-card::after {
    content: "";
    position: absolute;
    inset: auto -28px -48px auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219, 112, 147, 0.18), transparent 72%);
    pointer-events: none;
}

.agent-strip,
.ai-stat-grid {
    display: grid;
    gap: 10px;
}

.agent-strip {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.agent-badge,
.chat-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(226, 198, 207, 0.72);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-soft);
}

.agent-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(217, 95, 138, 0.72);
    box-shadow: 0 0 0 6px rgba(217, 95, 138, 0.08);
}

.agent-badge.is-active::before {
    background: var(--success);
    box-shadow: 0 0 0 6px rgba(46, 138, 89, 0.12);
}

.agent-badge.is-running::before {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(217, 95, 138, 0.16);
}

.agent-badge.is-off::before {
    background: rgba(141, 128, 134, 0.5);
    box-shadow: none;
}

.agent-badge.is-error::before {
    background: var(--danger);
    box-shadow: 0 0 0 6px rgba(213, 91, 107, 0.14);
}

.ai-stat-grid {
    margin-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-stat-card {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.ai-stat-card span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.ai-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

.source-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.source-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-sm);
}

.source-card h4 {
    font-size: 0.96rem;
}

.source-card p {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-soft);
}

.source-card a {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    word-break: break-all;
}

.simple-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
    list-style: none;
}

.simple-list li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-soft);
}

.simple-list li::before {
    content: "•";
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
}

.subsection {
    margin-top: 16px;
}

.note-list {
    grid-template-columns: 1fr;
}

.note-card {
    border-radius: 18px;
    padding: 14px 15px;
    background: rgba(255, 250, 246, 0.9);
    border: 1px solid rgba(230, 213, 205, 0.6);
}

.note-card p {
    margin-top: 6px;
}

.playlist-pill {
    margin-top: 10px;
}

.tracker-card {
    background:
        radial-gradient(circle at top, rgba(255, 233, 238, 0.82), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 248, 0.92));
}

.status-pill {
    background: rgba(255, 249, 244, 0.96);
    color: #8f6a57;
}

.status-pill.live {
    background: rgba(251, 224, 233, 0.96);
    color: var(--accent);
}

.notice-card {
    margin-top: 14px;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 245, 223, 0.94);
    color: #896039;
    line-height: 1.6;
}

.timer-card {
    margin-top: 16px;
    border-radius: 24px;
    padding: 24px 18px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.timer-card strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 2.8rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.summary-card {
    margin-top: 14px;
    border-radius: 18px;
    padding: 14px;
    background: rgba(255, 252, 249, 0.9);
    border: 1px solid rgba(229, 213, 205, 0.6);
}

.summary-card strong {
    display: block;
    margin-top: 6px;
    font-size: 0.96rem;
    line-height: 1.5;
}

.dual-grid {
    display: grid;
    gap: 14px;
}

.small-title {
    margin-bottom: 10px;
    color: var(--text);
}

.ritual-card {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.ritual-card.done {
    background: rgba(243, 250, 246, 0.94);
}

.ritual-card button {
    min-width: 62px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(252, 230, 237, 0.94);
    color: var(--accent);
    font-weight: 700;
}

.ritual-card.done button {
    background: rgba(220, 243, 229, 0.98);
    color: var(--success);
}

.chat-messages {
    margin-top: 14px;
    min-height: 220px;
    max-height: 360px;
    overflow-y: auto;
}

.chat-bubble {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-bubble.user {
    background: rgba(255, 241, 245, 0.96);
}

.chat-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 249, 243, 0.94);
    flex-shrink: 0;
}

.chat-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.chat-meta {
    width: fit-content;
    margin-top: 10px;
    min-height: 0;
    padding: 8px 12px;
}

.chat-source-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.chat-source-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(230, 210, 197, 0.58);
}

.chat-source-card strong {
    font-size: 0.92rem;
    line-height: 1.45;
}

.chat-source-card p {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--text-soft);
}

.chat-source-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chat-source-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 247, 248, 0.98);
    border: 1px solid rgba(224, 191, 202, 0.7);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.chat-compose {
    display: grid;
    gap: 8px;
}

.chat-helper {
    margin-top: -2px;
}

.assistant-shortcuts {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.status-pill.online {
    background: rgba(232, 247, 239, 0.98);
    color: var(--success);
}

.status-pill.offline {
    background: rgba(255, 236, 239, 0.98);
    color: var(--danger);
}

.status-pill.standby {
    background: rgba(255, 245, 223, 0.98);
    color: #896039;
}

.chat-input {
    width: 100%;
    min-width: 0;
    min-height: 96px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(210, 186, 196, 0.72);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    outline: none;
    resize: vertical;
    font: inherit;
}

.chat-input:focus {
    border-color: rgba(214, 105, 146, 0.52);
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 30;
    width: min(calc(100% - 22px), 490px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 247, 0.9));
    box-shadow: 0 22px 44px rgba(133, 92, 107, 0.2);
}

.tab-btn {
    min-height: 56px;
    padding: 8px 4px;
    display: grid;
    place-items: center;
    gap: 2px;
    border-radius: 999px;
    color: var(--text-soft);
}

.tab-icon {
    font-size: 1rem;
}

.tab-label {
    font-size: 0.72rem;
    font-weight: 700;
}

.sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    align-items: end;
    padding: 14px;
    background: rgba(38, 26, 32, 0.24);
    backdrop-filter: blur(8px);
}

.bottom-sheet {
    width: min(100%, 520px);
    margin: 0 auto;
    border-radius: 28px 28px 18px 18px;
    padding: 20px;
}

.map-preview-shell {
    margin-top: 16px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(224, 206, 193, 0.76);
    background:
        radial-gradient(circle at top right, rgba(255, 236, 214, 0.82), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 240, 0.96));
    box-shadow: var(--shadow-sm);
}

.map-preview-canvas,
.map-preview-frame {
    display: block;
    width: 100%;
    height: 240px;
    border: 0;
    background: #f6efe8;
}

.map-preview-canvas {
    position: relative;
}

.map-preview-fallback {
    min-height: 148px;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.sheet-form {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.sheet-form label {
    display: grid;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text-soft);
}

.sheet-form input,
.sheet-form select {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(210, 186, 196, 0.72);
    background: rgba(255, 255, 255, 0.96);
    outline: none;
}

.sheet-form input:focus,
.sheet-form select:focus {
    border-color: rgba(214, 105, 146, 0.52);
}

.loading-card,
.state-card {
    text-align: center;
    color: var(--text-soft);
}

.loading-card::after {
    content: "";
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid rgba(210, 186, 196, 0.42);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

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

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -14px, 0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@media (min-width: 640px) {
    .app-shell {
        width: min(100%, 980px);
        padding-inline: 20px;
    }

    .app-main {
        width: min(100%, 640px);
        margin: 0 auto;
    }

    .dual-grid,
    .form-block,
    .note-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 430px) {
    .hero-card,
    .card,
    .metric-card,
    .bottom-sheet {
        border-radius: 24px;
    }

    .hero-card h2 {
        font-size: 2.45rem;
    }

    .hero-title-line {
        display: block;
    }

    .hero-showcase {
        grid-template-columns: 1fr;
    }

    .panel-head h2 {
        font-size: 1.95rem;
    }

    .card h3 {
        font-size: 1.45rem;
    }

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

    .ai-stat-grid {
        grid-template-columns: 1fr;
    }

    .glance-grid {
        grid-template-columns: 1fr;
    }

    .spot-category-row {
        gap: 6px;
    }

    .spot-category-row .choice-chip {
        min-height: 38px;
        font-size: 0.78rem;
    }

    .metric-grid .metric-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .timer-card strong {
        font-size: 2.6rem;
    }
}
