@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  /* Tabiro brand palette supplied by the project owner. */
  --forest: #1F2F2A;
  --clay: #A9574B;
  --sand: #A99886;
  --mint: #88E1D6;
  --charcoal: #2E2E2E;
  --white: #fff;
  --paper: color-mix(in srgb, var(--sand) 10%, white);
  --surface: color-mix(in srgb, var(--sand) 4%, white);
  --ink: var(--forest);
  --text: var(--charcoal);
  --muted: color-mix(in srgb, var(--charcoal) 76%, var(--sand));
  --line: color-mix(in srgb, var(--sand) 32%, white);
  --line-strong: color-mix(in srgb, var(--sand) 65%, white);
  --accent: var(--clay);
  --accent-hover: color-mix(in srgb, var(--clay) 82%, var(--forest));
  --accent-soft: color-mix(in srgb, var(--clay) 10%, white);
  --sand-soft: color-mix(in srgb, var(--sand) 18%, white);
  --mint-soft: color-mix(in srgb, var(--mint) 20%, white);
  --on-dark: color-mix(in srgb, var(--sand) 8%, white);
  --on-dark-muted: color-mix(in srgb, var(--sand) 45%, white);
  --radius: 16px;
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { border: none; }
button:disabled { cursor: default; opacity: .65; }
button, a, input, select { transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[tabindex='-1']:focus { outline: none; }
img { display: block; max-width: 100%; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: 'Manrope', 'Noto Sans JP', sans-serif; }
h1 { font-size: clamp(25px, 2.65vw, 36px); line-height: 1.3; letter-spacing: -1.2px; font-weight: 600; margin-bottom: 10px; }
h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.6px; font-weight: 600; margin-bottom: 12px; }
h3 { font-size: 17px; line-height: 1.45; font-weight: 600; letter-spacing: -.3px; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { letter-spacing: 0; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; background: var(--ink); color: white; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.accent { color: var(--accent); }
.brand { display: inline-flex; align-items: center; line-height: 1; }
.brand-lockup { width: 174px; max-width: 100%; height: auto; object-fit: contain; }
.brand-wordmark { width: 132px; height: auto; object-fit: contain; }
.icon.brand-icon { object-fit: contain; }
.mobile-brand { display: none; }
.footer-brand { flex-shrink: 0; }
.footer-brand .brand-wordmark { width: 90px; }

.sidebar { width: 242px; position: fixed; inset: 0 auto 0 0; z-index: 30; background: var(--forest); color: var(--on-dark); border-right: 1px solid var(--forest); padding: 35px 22px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar > .brand { margin: 0 5px 38px; }
.workspace-label { font-size: 9px; letter-spacing: 1.7px; color: var(--muted); margin: 0 14px 16px; font-weight: 600; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 12px 15px; font-size: 13px; color: var(--muted); border-radius: 9px; font-weight: 500; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item:hover { background: var(--mint-soft); color: var(--ink); }
.nav-item.active { background: var(--mint-soft); color: var(--ink); font-weight: 700; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: auto; flex-shrink: 0; }
.sidebar-promo { background: var(--sand-soft); border: 1px solid var(--line); border-radius: 12px; margin: auto 0 30px; padding: 19px 17px; }
.promo-symbol { color: var(--accent); font-size: 32px; line-height: 1; display: block; margin-bottom: 14px; }
.sidebar-promo h3 { font-size: 15px; margin-bottom: 8px; }
.sidebar-promo p { color: var(--muted); font-size: 11px; margin-bottom: 15px; }
.sidebar-promo a { display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; }
.sidebar-promo a:hover { color: var(--accent); }
.sidebar-bottom { border-top: 1px solid var(--line); padding-top: 15px; }
.sidebar-bottom p { color: var(--muted); font-size: 9px; text-align: center; margin: 15px 0 0; }
.workspace { margin-left: 242px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 86px; border-bottom: 1px solid var(--line); padding: 14px 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 22px; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.language-control { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; }
.language-control .icon { width: 17px; height: 17px; color: var(--muted); }
.language-control select { border: 0; background: transparent; padding: 8px 18px 8px 2px; width: auto; border-radius: 5px; font-size: 12px; }
.topbar-divider { height: 23px; border-left: 1px solid var(--line); }
.signin-link { font-size: 12px; white-space: nowrap; }
.signin-link:hover { color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 8px; padding: 13px 19px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.5; min-height: 46px; }
.button:hover:not(:disabled) { background: color-mix(in srgb, var(--forest) 88%, var(--mint)); border-color: color-mix(in srgb, var(--forest) 88%, var(--mint)); box-shadow: 0 4px 12px color-mix(in srgb, var(--forest) 6%, transparent); }
.button .icon { width: 17px; height: 17px; }
.button.small { font-size: 11px; padding: 10px 16px; min-height: 38px; }
.button.secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.button.secondary:hover:not(:disabled) { background: var(--mint-soft); border-color: var(--line-strong); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; }
.text-link:hover { color: var(--accent); }
.text-link .icon { width: 16px; height: 16px; }
.main { width: 100%; max-width: 1400px; padding: 35px 42px 50px; margin: 0 auto; flex: 1; }
.page-heading { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-heading > div { min-width: 0; }
.page-heading > .button { flex-shrink: 0; }
.eyebrow { font-size: 9px; letter-spacing: 1.7px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.page-intro { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0; }
.dashboard-hero { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--sand-soft); border: 1px solid var(--line); border-radius: 18px; min-height: 328px; overflow: hidden; align-items: center; }
.hero-content { padding: 35px 0 35px 35px; position: relative; z-index: 1; }
.accent-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-content h2 { font-size: clamp(30px, 3.5vw, 49px); line-height: 1.16; font-weight: 500; letter-spacing: -2px; margin-bottom: 15px; }
.hero-content > p:not(.eyebrow) { color: var(--muted); font-size: 12px; max-width: 320px; line-height: 1.8; margin-bottom: 23px; }
.hero-content .button:not(.secondary) { background: var(--accent); border-color: var(--accent); }
.hero-content .button:not(.secondary):hover { background: var(--accent-hover); }
.hero-art { position: relative; padding: 0 20px; }
.hero-art img { width: 100%; max-height: 340px; }
.art-caption { display: block; text-align: right; color: var(--muted); font: italic 13px Georgia, serif; position: absolute; right: 28px; bottom: 15px; transform: rotate(-7deg); }
.dashboard-stats { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 15px; margin: 22px 0 36px; }
.dashboard-stats > a { padding: 17px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.dashboard-stats > a:hover { border-color: var(--line-strong); }
.dashboard-stats > a > .icon:last-child { width: 15px; margin-left: auto; }
.dashboard-stats strong { font-size: 12px; font-weight: 600; display: block; }
.dashboard-stats div > span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.stat-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--mint-soft); display: grid; place-items: center; flex-shrink: 0; }
.stat-icon .icon { width: 18px; height: 18px; }
.stat-icon.peach { color: var(--accent); background: var(--accent-soft); }
.dashboard-stats .planner-shortcut { background: var(--accent-soft); border-color: var(--line-strong); }
.planner-shortcut > .icon:first-child { color: var(--accent); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 3px; }
.section-heading p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.section-heading > .text-link { flex-shrink: 0; }
.card-grid { display: grid; gap: 21px; }
.home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.explore-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.route-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--forest) 6%, transparent); }
.card-cover { height: 185px; position: relative; overflow: hidden; }
.card-cover > a { display: block; height: 100%; }
.card-cover > a > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.route-card:hover .card-cover > a > img { transform: scale(1.045); }
.image-japan { background: linear-gradient(145deg, var(--sand), var(--forest)); }
.image-mountains { background: linear-gradient(145deg, var(--sand), var(--forest)); }
.image-coast { background: linear-gradient(145deg, var(--mint), var(--mint)); }
.image-village { background: linear-gradient(145deg, var(--sand), var(--forest)); }
.category-badge { position: absolute; top: 13px; left: 13px; border-radius: 30px; padding: 5px 10px; background: color-mix(in srgb, var(--surface) 95%, transparent); color: var(--ink); font-size: 9px; font-weight: 600; }
.save-button { position: absolute; top: 12px; right: 12px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 95%, transparent); width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink); }
.save-button .icon { width: 17px; height: 17px; }
.save-button:hover { background: #fff; }
.save-button.is-saved { color: var(--accent); }
.save-button.is-saved .icon { fill: var(--accent); }
.card-content { padding: 18px 18px 12px; }
.location { color: var(--muted); font-size: 10px; display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.location .icon { width: 12px; height: 12px; }
.card-content h3 { font-size: 16px; margin-bottom: 17px; }
.card-content h3 a:hover { color: var(--accent); }
.card-bottom { border-top: 1px solid var(--line); padding-top: 11px; display: flex; align-items: center; justify-content: space-between; }
.card-bottom span { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.card-bottom .icon { width: 14px; height: 14px; }
.card-bottom a { display: grid; place-items: center; width: 30px; height: 30px; background: var(--sand-soft); border-radius: 50%; }
.card-bottom a:hover { background: var(--mint-soft); }
footer { margin: 0 42px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.preview-label { display: inline-flex; align-items: center; gap: 6px; }
.preview-label i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mint-soft); color: var(--ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; flex-shrink: 0; }
.avatar.large { width: 65px; height: 65px; font-size: 24px; }
.profile-link { display: flex; align-items: center; gap: 9px; }
.profile-name { font-size: 12px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { background: transparent; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 5px; }
.mobile-menu { display: none; }
.explore-tools { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin: 32px 0 22px; }
.search-field { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); padding: 0 15px; border-radius: 9px; flex: 1 1 260px; }
.search-field > .icon { color: var(--muted); width: 17px; }
.search-field input { background: transparent; border: 0; min-width: 0; width: 100%; padding: 13px 0; font-size: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { border: 1px solid var(--line); border-radius: 30px; background: transparent; padding: 9px 15px; font-size: 11px; }
.filter[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter:hover:not([aria-pressed='true']) { background: var(--mint-soft); }
.result-count { color: var(--muted); font-size: 11px; margin-bottom: 20px; }
.explore-grid .card-cover { height: 240px; }
.explore-grid .card-content h3 { font-size: 20px; }
.full-width { width: 100%; grid-column: 1 / -1; }
.empty-state { border: 1px dashed var(--line); background: var(--surface); text-align: center; border-radius: var(--radius); padding: 65px 30px; }
.empty-state > .icon { width: 36px; height: 36px; color: var(--muted); margin-bottom: 20px; }
.empty-state p { color: var(--muted); font-size: 13px; max-width: 440px; margin: 0 auto 22px; }
.empty-state h2 { margin-bottom: 10px; }
.empty-state.compact { padding: 35px 25px; }
.empty-state .button-row { justify-content: center; }
.back-link { margin-bottom: 23px; }
.route-hero { height: 370px; border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 32px; }
.route-hero > img { width: 100%; height: 100%; object-fit: cover; }
.route-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, color-mix(in srgb, var(--forest) 80%, transparent)); }
.route-hero-content { position: absolute; inset: auto 32px 28px; color: #fff; z-index: 1; }
.route-hero-content .category-badge { position: static; display: inline-block; margin-bottom: 12px; }
.route-hero-content h1 { font-size: 36px; max-width: 720px; margin-bottom: 10px; }
.route-hero-content > p { font-size: 12px; margin-bottom: 7px; }
.route-hero-content > span:last-child { font-size: 11px; color: var(--on-dark); }
.photo-label { position: absolute; z-index: 1; right: 15px; top: 15px; color: #fff; font-size: 9px; background: color-mix(in srgb, var(--forest) 50%, transparent); padding: 3px 8px; border-radius: 20px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 295px; gap: 40px; align-items: start; }
.route-description { font-size: 14px; line-height: 1.9; color: var(--muted); margin-bottom: 35px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 27px; }
.trip-summary { position: sticky; top: 25px; }
.trip-summary > .icon { color: var(--accent); width: 27px; height: 27px; margin-bottom: 19px; }
.trip-summary h2 { font-size: 22px; }
.trip-summary > p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.trip-summary > .button { width: 100%; margin-bottom: 12px; }
.notice { color: var(--muted); font-size: 11px; line-height: 1.8; background: var(--sand-soft); border-radius: 8px; padding: 14px; margin-bottom: 0; }
.trip-summary .notice { margin-top: 10px; }
.timeline { padding: 0; list-style: none; margin: 25px 0 0; }
.timeline li { display: flex; gap: 18px; position: relative; padding-bottom: 30px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 1px; background: var(--line); }
.day-number { width: 35px; height: 35px; display: grid; place-items: center; background: var(--mint-soft); color: var(--ink); border: 1px solid var(--line); border-radius: 50%; font-size: 11px; font-weight: 600; flex-shrink: 0; }
.timeline h3 { font-size: 15px; margin-bottom: 7px; }
.timeline p:not(.day-label) { color: var(--muted); font-size: 12px; line-height: 1.85; margin-bottom: 0; }
.day-label { color: var(--accent); font-size: 9px; letter-spacing: .6px; margin-bottom: 5px; font-weight: 600; }
.demo-notice { display: flex; gap: 10px; align-items: center; background: var(--accent-soft); border: 1px solid var(--line-strong); color: var(--accent); border-radius: 9px; padding: 12px 16px; font-size: 11px; margin-bottom: 24px; }
.demo-notice .icon { width: 17px; height: 17px; }
.planner-layout { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.3fr); gap: 23px; align-items: start; }
.planner-form-panel { position: sticky; top: 25px; }
.planner-form-panel h2 { font-size: 18px; margin-bottom: 25px; }
.field { display: flex; flex-direction: column; gap: 9px; font-size: 11px; font-weight: 600; margin-bottom: 22px; }
.field input, .field select { width: 100%; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 12px; font-size: 12px; font-weight: 400; min-height: 45px; }
.field input::placeholder { color: var(--muted); font-size: 11px; }
.field input:hover, .field select:hover { border-color: var(--line-strong); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset { padding: 0; margin: 0 0 23px; border: none; min-width: 0; }
legend { font-size: 11px; font-weight: 600; margin-bottom: 11px; padding: 0; }
.pace-options { display: grid; grid-template-columns: 1fr; gap: 7px; }
.pace-options label, .interest-options label { position: relative; cursor: pointer; }
.pace-options input, .interest-options input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pace-options span { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #fff; padding: 10px 13px; border-radius: 7px; font-size: 11px; }
.pace-options span::before { content: ''; display: inline-block; width: 11px; height: 11px; border: 1px solid var(--line-strong); border-radius: 50%; }
.pace-options input:checked + span { border-color: var(--sand); background: var(--mint-soft); }
.pace-options input:checked + span::before { background: var(--ink); box-shadow: inset 0 0 0 2px var(--mint-soft); border-color: var(--ink); }
.pace-options input:focus-visible + span, .interest-options input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.interest-options { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-options span { display: flex; gap: 6px; align-items: center; font-size: 10px; border: 1px solid var(--line); padding: 9px 10px; border-radius: 6px; }
.interest-options .icon { width: 14px; height: 14px; }
.interest-options input:checked + span { background: var(--accent-soft); border-color: var(--line-strong); color: var(--accent); }
.form-error, .field-error { color: var(--accent); font-size: 11px; line-height: 1.6; }
.form-error:empty, .field-error:empty { display: none; }
[aria-invalid='true'] { border-color: var(--accent) !important; }
.planner-output { min-height: 590px; }
.empty-planner { min-height: 535px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 35px 10px; }
.empty-orbit { width: 85px; height: 85px; border: 1px dashed var(--line-strong); background: var(--mint-soft); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 13px var(--sand-soft); margin-bottom: 37px; }
.empty-orbit .icon { width: 34px; height: 34px; color: var(--muted); }
.empty-planner h2 { font-size: 21px; max-width: 280px; }
.empty-planner p { font-size: 12px; color: var(--muted); max-width: 285px; line-height: 1.9; }
.skeleton-route { display: grid; gap: 14px; width: 190px; margin-top: 19px; }
.skeleton-route span { height: 7px; background: var(--mint-soft); border-radius: 5px; }
.skeleton-route span:nth-child(2) { width: 75%; }
.skeleton-route span:nth-child(3) { width: 88%; }
.output-heading { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.output-heading h2 { font-size: 24px; margin-bottom: 14px; }
.plan-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; color: var(--muted); font-size: 10px; }
.plan-meta span { display: flex; gap: 5px; align-items: center; }
.plan-meta .icon { width: 13px; height: 13px; }
.output-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.local-note { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; margin: 0 0 28px; }
.local-note .icon { width: 15px; }
.count-badge { font: 11px 'DM Sans',sans-serif; display: inline-grid; place-items: center; vertical-align: middle; min-width: 24px; height: 24px; background: var(--mint-soft); border-radius: 6px; margin-left: 7px; }
.plans-section { margin-top: 37px; }
.saved-plans { display: grid; gap: 12px; }
.saved-plan { display: flex; gap: 18px; align-items: center; border: 1px solid var(--line); padding: 22px; border-radius: 12px; background: #fff; }
.saved-plan h3 { font-size: 15px; margin-bottom: 6px; }
.saved-plan p { font-size: 11px; color: var(--muted); margin: 0; }
.saved-plan-actions { display: flex; align-items: center; gap: 20px; margin-left: auto; flex-shrink: 0; }
.subtle-button { padding: 8px 0; font-size: 11px; background: transparent; color: var(--muted); text-decoration: underline; }
.subtle-button:hover { color: var(--accent); }
.account-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 25px; align-items: start; }
.profile-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.profile-heading h2 { overflow-wrap: anywhere; }
.demo-badge { color: var(--accent); background: var(--sand-soft); border-radius: 5px; padding: 4px 8px; font-size: 10px; }
#profile-form { margin-top: 25px; }
.account-settings > p { font-size: 12px; color: var(--muted); }
.account-settings .language-control { display: flex; border: 1px solid var(--line); padding: 7px 12px; border-radius: 8px; }
.account-settings select { flex: 1; }
.account-settings hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.account-settings .text-link { margin: 22px 0; }
.account-empty .notice { margin-top: 28px; margin-bottom: 0; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 46% 54%; }
.auth-art { background: var(--mint-soft); padding: 42px 50px 30px; display: flex; flex-direction: column; }
.auth-story { margin: auto 0; padding-top: 50px; }
.auth-story h1 { font-size: clamp(30px, 3.7vw, 53px); font-weight: 500; letter-spacing: -2px; }
.auth-story > p:not(.eyebrow) { max-width: 370px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.auth-tagline { font: italic 13px Georgia,serif; color: var(--muted); margin-top: 20px; }
.auth-main { display: flex; flex-direction: column; background: var(--surface); }
.auth-top { display: flex; justify-content: flex-end; padding: 28px 40px; }
.auth-form-wrap { width: 100%; max-width: 440px; margin: auto; padding: 15px 20px 35px; }
.auth-form-wrap h2 { font-size: 30px; margin-bottom: 10px; letter-spacing: -1px; }
.auth-form-wrap .page-intro { margin-bottom: 23px; }
.auth-demo { font-size: 10px; align-items: flex-start; line-height: 1.7; padding: 12px; }
.auth-field { margin-bottom: 17px; gap: 7px; }
.input-wrap { position: relative; }
.input-wrap:has(.password-toggle) input { padding-right: 48px; }
.password-toggle { width: 42px; height: 42px; position: absolute; top: 2px; right: 2px; background: transparent; display: grid; place-items: center; color: var(--muted); border-radius: 6px; }
.password-toggle[aria-pressed='true'] { color: var(--accent); background: var(--accent-soft); }
.password-toggle .icon { width: 18px; height: 18px; }
.password-hint { color: var(--muted); font-size: 10px; margin: -4px 0 22px; }
.auth-switch { font-size: 12px; color: var(--muted); text-align: center; margin: 22px 0; }
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-left: 5px; }
.guest-link { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--muted); }
.guest-link .icon { width: 14px; }
.auth-mobile-brand { display: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 10px; box-shadow: 0 8px 40px color-mix(in srgb, var(--forest) 16%, transparent); padding: 14px 23px; font-size: 12px; z-index: 100; max-width: calc(100vw - 32px); width: max-content; }
.toast:empty { display: none; }
/* Brand artwork and palette placement. PNG files are used without filters or distortion. */
.sidebar .workspace-label, .sidebar-bottom p { color: var(--on-dark-muted); }
.sidebar .nav-item { color: var(--on-dark); }
.sidebar .nav-item:hover { background: color-mix(in srgb, var(--mint) 10%, var(--forest)); }
.sidebar .nav-item.active { background: var(--mint); color: var(--forest); }
.sidebar .nav-dot { background: var(--clay); }
.sidebar .nav-item .brand-icon { width: 27px; height: 27px; padding: 2px; border-radius: 6px; background: var(--surface); }
.sidebar-promo { background: color-mix(in srgb, var(--sand) 12%, var(--forest)); border-color: color-mix(in srgb, var(--sand) 35%, var(--forest)); }
.sidebar-promo h3, .sidebar-promo a { color: var(--on-dark); }
.sidebar-promo p { color: var(--on-dark-muted); }
.sidebar-promo a:hover { color: var(--mint); }
.promo-symbol .brand-icon { width: 42px; height: 42px; padding: 4px; background: var(--sand-soft); border-radius: 10px; }
.sidebar-bottom { border-color: color-mix(in srgb, var(--sand) 35%, var(--forest)); }
.dashboard-hero { background: linear-gradient(115deg, var(--sand-soft), var(--mint-soft)); }
.dashboard-stats .planner-shortcut { background: var(--mint-soft); border-color: color-mix(in srgb, var(--mint) 55%, var(--sand)); }
.stat-icon .brand-icon { width: 26px; height: 26px; }
.category-badge { display: inline-flex; align-items: center; gap: 5px; }
.category-badge .brand-icon { width: 19px; height: 19px; }
.location .brand-icon { width: 21px; height: 19px; }
.filter { display: inline-flex; align-items: center; gap: 6px; }
.filter .brand-icon { width: 21px; height: 21px; padding: 1px; background: var(--surface); border-radius: 4px; }
.filter[aria-pressed='true'] { background: var(--mint); border-color: var(--mint); color: var(--forest); }
.interest-options .brand-icon { width: 23px; height: 23px; }
.interest-options span { min-height: 43px; }
.interest-options input:checked + span { background: var(--mint-soft); border-color: var(--forest); color: var(--forest); }
.pace-options input:checked + span { background: var(--mint-soft); border-color: var(--forest); }
.day-number, .count-badge, .avatar { background: var(--mint-soft); color: var(--forest); }
.route-hero-content h1 { color: white; }
.route-hero-content .category-badge { display: inline-flex; }
.auth-art { background: var(--forest); color: var(--on-dark); }
.auth-story h1 { color: var(--on-dark); }
.auth-story .eyebrow, .auth-tagline { color: var(--mint); }
.auth-story > p:not(.eyebrow) { color: var(--on-dark-muted); }
.auth-brand-art { background: var(--sand-soft); border: 1px solid var(--sand); border-radius: 24px; padding: 20px; margin: 30px auto 15px; max-width: 360px; }
.auth-brand-art img { width: 100%; height: auto; object-fit: contain; }
.auth-mobile-brand .brand-wordmark { width: 125px; }
@media (max-width: 760px) {
  .mobile-brand { display: inline-flex; align-items: center; }
  .mobile-brand .brand-icon { width: 38px; height: 30px; }
}
@media (min-width: 1550px) {
  .main { padding-top: 45px; }
  .dashboard-hero { min-height: 390px; }
  .hero-art img { max-height: 385px; }
  .hero-content { padding-left: 45px; }
  .card-cover { height: 220px; }
  .sidebar-promo { margin-top: 80px; }
  .sidebar-bottom { margin-top: auto; }
}
@media (max-height: 800px) { .sidebar-promo { margin-top: 40px; margin-bottom: 25px; } }
@media (max-width: 1200px) {
  .sidebar { width: 215px; padding-left: 15px; padding-right: 15px; }
  .workspace { margin-left: 215px; }
  .main { padding: 30px 28px 40px; }
  .topbar { padding: 14px 28px; }
  .topbar-actions { gap: 15px; }
  footer { margin: 0 28px; }
  .hero-content { padding-left: 25px; }
  .hero-content h2 { font-size: 36px; }
  .hero-art { padding: 0 10px; }
  .dashboard-stats { gap: 10px; }
  .dashboard-stats > a { padding: 13px; gap: 9px; }
  .dashboard-stats > a > .icon:last-child { display: none; }
  .card-grid { gap: 15px; }
  .card-cover { height: 155px; }
  .card-content { padding: 14px; }
  .card-content h3 { font-size: 14px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 25px; }
  .planner-layout { grid-template-columns: minmax(260px,.9fr) minmax(0,1.1fr); gap: 18px; }
  .panel { padding: 22px; }
  .saved-plan-actions { flex-direction: column; gap: 5px; align-items: flex-end; }
  .auth-art { padding-left: 35px; padding-right: 35px; }
}
@media (max-width: 1000px) {
  .sidebar { width: 190px; padding-left: 12px; padding-right: 12px; }
  .sidebar > .brand { margin-left: 9px; }
  .nav-item { padding-left: 10px; padding-right: 10px; gap: 9px; font-size: 11px; }
  .workspace { margin-left: 190px; }
  .main { padding: 27px 23px 35px; }
  .topbar { padding: 14px 23px; }
  .topbar-actions { gap: 11px; }
  .hero-content .button-row { gap: 8px; }
  .hero-content .button { font-size: 11px; padding: 11px 13px; }
  .hero-content h2 { font-size: 32px; }
  .dashboard-hero { min-height: 310px; }
  .hero-content { padding: 25px 0 25px 25px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-stats .planner-shortcut { grid-column: 1 / -1; }
  .dashboard-stats .planner-shortcut > .icon:last-child { display: block; }
  .home-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-cards .route-card:last-child:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .home-cards .route-card:last-child:nth-child(3) .card-cover { height: 100%; min-height: 165px; }
  .home-cards .route-card:last-child:nth-child(3) .card-content { display: flex; flex-direction: column; justify-content: center; }
  .explore-grid .card-cover { height: 195px; }
  .section-heading > .text-link { font-size: 10px; }
  .detail-layout { grid-template-columns: 1fr; }
  .trip-summary { position: static; }
  .planner-layout { grid-template-columns: 1fr; }
  .planner-form-panel { position: static; }
  .pace-options { grid-template-columns: repeat(3,1fr); }
  .pace-options span { height: 100%; padding: 10px; }
  .planner-output { min-height: 400px; }
  .empty-planner { min-height: 350px; }
  .account-layout { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 43% 57%; }
  .auth-art { padding: 35px 25px; }
  .auth-story h1 { font-size: 34px; }
}
@media (max-width: 760px) {
  .sidebar { display: none; position: absolute; width: 260px; top: 73px; bottom: auto; min-height: calc(100vh - 73px); box-shadow: 15px 20px 50px color-mix(in srgb, var(--forest) 16%, transparent); }
  .sidebar.is-open { display: flex; }
  .sidebar > .brand { margin: 4px 12px 30px; }
  .nav-item { font-size: 13px; padding: 13px; }
  .sidebar-promo { margin-top: 40px; }
  .workspace { margin-left: 0; }
  .mobile-menu { display: grid; }
  .topbar { min-height: 73px; padding: 12px 20px; gap: 10px; }
  .topbar-left { gap: 10px; }
  .topbar-actions { gap: 12px; }
  .topbar-divider { display: none; }
  .topbar .button.small { font-size: 10px; padding: 9px 12px; }
  .main { padding: 28px 22px 38px; }
  .page-heading { margin-bottom: 24px; }
  h1 { font-size: 29px; }
  .hero-content h2 { font-size: 38px; }
  .hero-content { padding-left: 25px; }
  .hero-art img { max-height: 300px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr 1.2fr; margin-bottom: 28px; }
  .dashboard-stats .planner-shortcut { grid-column: auto; }
  .dashboard-stats .planner-shortcut > .icon:last-child { display: none; }
  .dashboard-stats strong { font-size: 11px; }
  .dashboard-stats div > span { font-size: 9px; }
  .home-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .home-cards .route-card:last-child:nth-child(3) { grid-column: auto; display: block; }
  .home-cards .route-card:last-child:nth-child(3) .card-cover { height: 155px; min-height: 0; }
  .card-content { padding: 12px; }
  .section-heading h2 { font-size: 19px; }
  footer { margin: 0 22px; font-size: 9px; flex-wrap: wrap; gap: 10px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-top { padding: 24px; justify-content: space-between; align-items: center; }
  .auth-mobile-brand { display: inline-flex; font-size: 28px; }
  .auth-form-wrap { padding: 28px 23px 45px; }
  .auth-main { min-height: 100vh; }
  .auth-main footer { margin-top: auto; }
}
@media (max-width: 560px) {
  .topbar { padding: 11px 13px; }
  .topbar .breadcrumb { display: none; }
  .topbar-actions { gap: 12px; }
  .topbar .signin-link { display: none; }
  .language-control { gap: 4px; }
  .language-control select { font-size: 11px; padding-right: 4px; }
  .main { padding: 25px 18px 35px; }
  .page-heading { display: block; }
  .page-heading > .button { margin-top: 18px; }
  h1 { font-size: 27px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .page-intro { font-size: 12px; }
  .dashboard-hero { grid-template-columns: 1fr; position: relative; }
  .hero-content { padding: 27px 23px 0; }
  .hero-content h2 { font-size: 40px; }
  .hero-content > p:not(.eyebrow) { max-width: 260px; }
  .hero-art { width: 78%; margin: -12px 0 0 auto; padding: 0 15px 12px 0; }
  .hero-art img { max-height: 245px; }
  .art-caption { font-size: 11px; right: 15px; bottom: 14px; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; gap: 9px; }
  .dashboard-stats .planner-shortcut { grid-column: 1 / -1; }
  .dashboard-stats .planner-shortcut > .icon:last-child { display: block; }
  .dashboard-stats > a { padding: 12px; }
  .dashboard-stats .stat-icon { width: 28px; height: 32px; }
  .dashboard-stats strong { font-size: 10px; }
  .section-heading { align-items: flex-start; gap: 10px; flex-wrap: wrap; }
  .section-heading p { font-size: 11px; }
  .home-cards, .explore-grid { grid-template-columns: 1fr; }
  .card-cover, .explore-grid .card-cover, .home-cards .route-card:last-child:nth-child(3) .card-cover { height: 210px; }
  .card-content { padding: 18px 20px 13px; }
  .card-content h3, .explore-grid .card-content h3 { font-size: 19px; }
  .location { font-size: 11px; }
  .explore-tools { gap: 15px; margin-top: 23px; }
  .filter { font-size: 10px; padding: 8px 12px; }
  .route-hero { height: 330px; }
  .route-hero-content { inset: auto 22px 24px; }
  .route-hero-content h1 { font-size: 28px; }
  .detail-layout { gap: 25px; }
  .panel { padding: 22px 19px; }
  .planner-layout { gap: 20px; }
  .pace-options { grid-template-columns: 1fr; }
  .field-row { gap: 12px; }
  .output-heading h2 { font-size: 22px; }
  .timeline { margin-top: 24px; }
  .timeline li { gap: 13px; }
  .timeline h3 { font-size: 14px; }
  .output-actions { flex-direction: column; }
  .saved-plan { padding: 18px; gap: 12px; flex-wrap: wrap; }
  .saved-plan > div:not(.saved-plan-actions) { flex: 1; min-width: 0; }
  .saved-plan-actions { flex-basis: 100%; flex-direction: row; justify-content: space-between; margin-top: 5px; padding-top: 12px; border-top: 1px solid var(--line); }
  .empty-state { padding: 40px 22px; }
  .empty-state h2 { font-size: 21px; }
  footer > .footer-tagline { display: none; }
  .auth-form-wrap h2 { font-size: 28px; }
  :lang(fr) .hero-content h2 { font-size: 36px; }
  :lang(ja) .hero-content h2 { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
