/* Shared planner refinements. Keep layout rules after the legacy stylesheet. */
:root { --muted: #595f5c; --green: #255f51; }
html { scroll-padding-top: 20px; }
body { line-height: 1.65; }
.page-heading { align-items: flex-start; text-align: left; padding: 24px 0; }
.page-heading > div { align-items: flex-start; max-width: 780px; }
.page-heading .eyebrow { color: #255f51; font-weight: 600; letter-spacing: 1px; }
.page-heading h1 { font-family: Georgia,'Times New Roman',serif; font-size: clamp(32px,4vw,48px); line-height: 1.2; letter-spacing: -1px; }
html:not([lang="en"]) .page-heading h1 { font-family: Arial,'Noto Sans JP','Microsoft JhengHei',sans-serif; font-size: clamp(28px,3.5vw,40px); line-height: 1.45; letter-spacing: 0; }
.intro { font-size: 16px; line-height: 1.8; }
.demo-banner { justify-content: flex-start; border: 0; border-left: 2px solid #a8b7ad; border-radius: 0; background: transparent; font-size: 14px; margin: 0 0 24px; }
.demo-banner strong { border: 0; border-radius: 0; padding: 0; font-size: 14px; }
.panel, .itinerary-card, .restaurant-card, #restaurant-step-host .restaurant-explorer { border-radius: 10px; }
.restaurant-card:hover { box-shadow: none; transform: none; }
.restaurant-card.is-chosen { box-shadow: inset 3px 0 #255f51; }
.meal-pill { background: transparent; border: 0; padding: 0; font-size: 13px; color: #595f5c; }
.guide-scene { height: 200px; max-width: 600px; margin-bottom: 24px; border-radius: 6px; }
.guide-scene .photo-label h2 { display: none; }
.guide-scene .photo-label { left: 20px; bottom: 16px; }
.guide-scene .photo-label > span { font-size: 14px; letter-spacing: .5px; }
.guide-scene .photo-label p { display: none; }
.site-reading-grid { gap: 0 28px; }
.site-reading-grid a { border: 0; border-top: 1px solid #dedfdb; border-radius: 0; padding: 20px 0; }
.site-reading-grid a:hover { background: transparent; color: #255f51; }
.site-reading h2 { font-size: clamp(24px,3vw,32px); line-height: 1.5; letter-spacing: 0; }
.language-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-block: 12px; font-size: 14px; }
.language-links a { min-height: 44px; display: inline-flex; align-items: center; }
.language-links [aria-current="page"] { font-weight: 700; color: #255f51; }
.noscript-note { padding: 16px; border-left: 3px solid #255f51; background: #f4f7f4; }
[hidden] { display: none !important; }
input, select, button { max-width: 100%; }
.workspace > *, .two-col > *, .flight-search-fields > *, .restaurant-filters > *, .place-drag-area > div { min-width: 0; }
.field input, .field select, .flight-search-fields .field input, .flight-search-fields .field select,
.restaurant-filters select, .inline-form input, .duration, .itinerary-edit-item > label input { font-size: 16px; min-height: 48px; }
.field input[type="date"], .field input[type="time"] { display: block; max-width: 100%; appearance: none; }
.field input::-webkit-date-and-time-value { text-align: left; }
.micro, .section-help, .restaurant-help, .flight-disclaimer, .flight-search-status, .place-subtitle,
.hotel-summary span, .event-content p, .event-content .japanese, .result-footer,
.buffer-details summary, .flight-search-fields .field > span, .restaurant-filters label > span,
.restaurant-card p, .restaurant-card-top > strong, .restaurant-actions a, .restaurant-selected { font-size: 14px; line-height: 1.65; color: var(--muted); }
.primary, .secondary, .flight-search-button, .flight-card > button, .share-actions button,
.itinerary-remove, .inline-form button { min-height: 48px; font-size: 16px; }
.choice-group label { min-height: 44px; font-size: 16px; }
.check { width: 24px; height: 24px; margin: 8px 0; }
.place-title { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.place.is-unselected { opacity: 1; }
.place-drag-area { min-height: 48px; }
.place.is-selected .place-drag-area, .itinerary-edit-drag { touch-action: auto; -webkit-touch-callout: none; }
.place.is-dragging, .itinerary-edit-item.is-dragging { box-shadow: 0 14px 35px #16362b30; outline: 2px solid #255f51; }
.source-groups li, .source-groups h3 { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.flight-search-heading .eyebrow, .itinerary-heading .eyebrow { font-size: 12px; }
.place-options label, .itinerary-edit-item > label, .itinerary-edit-name small { font-size: 14px; }
.itinerary-edit-name strong { white-space: normal; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.itinerary-edit-item > label input { width: 72px; }
.flight-options summary { cursor: pointer; font-weight: 600; padding-block: 4px; font-size: 16px; }
.flight-options > .section-help { margin: 12px 0 20px; }
.flight-options .flight-search { margin-inline: 0; }
.flight-options .flight-search:last-child { margin-bottom: 0; }
.flight-search-heading h3 { overflow-wrap: anywhere; }
.flight-disclaimer, .inline-source { overflow-wrap: anywhere; }
.flight-times strong { font-size: 16px; }
.flight-leg > div:first-child span, .flight-leg small, .flight-summary small { font-size: 13px; }
.flight-summary strong { font-size: 16px; }
.restaurant-card-top > div { min-width: 0; }
.restaurant-card h3 { overflow-wrap: anywhere; }
.restaurant-selection { margin: 16px 0; padding: 12px 16px; border-left: 3px solid #255f51; background: #f5f8f6; font-size: 15px; }
.restaurant-selection:empty { display: none; }
.restaurant-actions a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; }
.wizard-progress { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 12px; overflow: visible; scroll-margin-top: 16px; }
.wizard-progress > button { min-height: 68px; padding: 8px; border-radius: 6px; }
.wizard-progress > button::after, .wizard-progress span::after { display: none; }
.wizard-progress > button > span { background: transparent; }
.wizard-progress > button b { flex-shrink: 0; width: 28px; height: 28px; font-size: 14px; }
.wizard-progress > button em { display: block !important; font-size: 15px; font-weight: 600; white-space: normal; }
.wizard-progress > button small { font-size: 12px; white-space: normal; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.wizard-progress > button.is-current { background: #f0f5f2; }
.wizard-progress > button:disabled { cursor: default; color: #727772; }
.wizard-progress > button:disabled small { visibility: hidden; }
body[data-wizard-step="1"] .workspace, body[data-wizard-step="2"] .workspace, body[data-wizard-step="3"] .workspace { grid-template-columns: minmax(0,760px); }
body[data-wizard-step="4"] .workspace { grid-template-columns: minmax(0,920px); justify-content: center; }
body[data-wizard-step="4"] .controls { display: none; }
.wizard-step:not(.is-active) { display: none; }
.itinerary-heading { align-items: flex-start; }
.event-content { min-width: 0; overflow-wrap: anywhere; }
.event.transport h3 { font-size: 16px; }
.day-divider { flex-wrap: wrap; }
.share-actions span { font-size: 14px; }
.footer small { font-size: 12px; }
.footer > span, .footer small { overflow-wrap: anywhere; }
.footer a { display: inline-block; padding-block: 6px; }
@media (max-width: 740px) {
  .topbar { height: auto; min-height: 72px; padding: 12px 16px; gap: 12px; }
  .brand { gap: 8px; font-size: 20px; min-width: 0; }
  .brand-light { display: block; border: 0; margin: 1px 0 0; padding: 0; font-size: 14px; letter-spacing: .5px; }
  .sun { width: 32px; height: 32px; font-size: 18px; flex-shrink: 0; }
  .navright { gap: 0; flex-shrink: 0; }
  .language { font-size: 16px; min-height: 44px; padding: 7px 24px 7px 10px; max-width: 132px; }
  .language-wrap::after { right: 8px; }
  main { padding: 20px 16px 0; }
  .panel, #restaurant-step-host .restaurant-explorer, .itinerary-card { padding: 20px 16px; border-radius: 10px; }
  .wizard-progress { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 8px; margin-bottom: 20px; }
  .wizard-progress > button { min-height: 70px; }
  .wizard-progress > button > span { align-items: flex-start; text-align: left; }
  .section-title { gap: 8px; margin-bottom: 18px; }
  .section-title h2 { font-size: 18px; line-height: 1.5; }
  .section-number { display: none; }
  .two-col, #restaurant-step-host .restaurant-filters { grid-template-columns: minmax(0,1fr); gap: 0; }
  .restaurant-filters > label { margin-bottom: 14px; }
  .flight-search-fields, #flight-search-form .flight-search-fields, #return-flight-search-form .flight-search-fields { grid-template-columns: minmax(0,1fr); }
  .flight-search { padding: 14px; }
  .flight-leg { grid-template-columns: minmax(0,1fr); }
  .flight-summary { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 10px; }
  .restaurant-card { padding: 16px; }
  .place-top { gap: 10px; }
  .place-drag-area { gap: 8px; }
  .place-icon { width: 30px; height: 30px; font-size: 17px; flex-shrink: 0; }
  .place-options { margin-left: 34px; }
  .summary { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .summary .stat { border: 0; padding-left: 0; display: flex; align-items: baseline; gap: 12px; }
  .summary .stat strong { font-size: 24px; }
  .summary .stat span { font-size: 14px; }
  .itinerary-heading { flex-direction: column; }
  .itinerary-heading h2 { font-size: 28px; line-height: 1.35; }
  .event { grid-template-columns: 48px 24px minmax(0,1fr); gap: 6px; }
  .event-icon { width: 24px; height: 24px; }
  .event:not(:last-child)::after { left: 65px; }
  .event.transport .event-content { padding: 10px; }
  .itinerary-edit-drag { grid-column: 1 / -1; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form input { width: 100%; min-width: 0; }
  .wizard-actions .secondary { padding: 12px; flex-shrink: 0; }
  .wizard-actions .primary { padding: 12px; min-width: 0; text-align: left; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media print { .flight-options, .language-links, .site-reading, .noscript-note { display: none !important; } }
