.trip-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border-subtle);
}
.trip-breadcrumb {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 4px;
}
.trip-breadcrumb a { color: var(--text-faint); }
.trip-breadcrumb a:hover { color: var(--text-muted); }
.trip-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.trip-title-input {
  border: none;
  background: transparent;
  padding: 2px 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  min-width: 120px;
  max-width: 420px;
}
.trip-title-input:focus {
  outline: none;
  border-bottom: 2px solid var(--brand);
}
.trip-date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
}
.trip-date-edit-fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.trip-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}
.avatar-stack {
  display: flex;
}
.avatar-stack .avatar + .avatar { margin-left: -9px; }
.share-popover-wrap {
  position: relative;
}
.app-shell {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
html:has(> body > .app-shell),
body:has(> .app-shell) {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.app-rail {
  display: flex;
  flex: 0 0 76px;
  background: var(--card);
  border-right: 1px solid var(--border-subtle);
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 10px;
}
.app-rail-home {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}
.app-rail-home:hover { color: var(--brand-fg); }
.app-rail-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}
.app-rail-brand-line {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.app-rail-brand-line.app-rail-brand-accent { color: var(--brand-fg); }
.app-rail-tabs { display: flex; flex-direction: column; gap: 2px; }
.app-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 76px;
  height: 56px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border-radius: 0;
}
.app-rail-btn .icon { width: 20px; height: 20px; }
.app-rail-btn:hover { background: var(--bg-sunken); color: var(--text); }
.app-rail-btn.active { background: var(--brand-soft); color: var(--brand-soft-text); }
.app-rail-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
}
.app-rail-bottom .avatar-stack { justify-content: center; }
@media (max-width: 860px) {
  .app-rail { display: none; }
}
.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
@media (max-width: 860px) {
  .app-header-left {
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
  }
  .app-header-right {
    flex-wrap: nowrap;
    width: 100%;
    gap: 4px;
  }
  .app-header .app-header-right { gap: 3px; }
  .app-header-right .btn { padding: 6px 8px; }
  #members-btn { gap: 2px; padding-right: 8px; }
  .app-header .app-header-right { gap: 6px; }
  .app-header-right .btn { height: 34px; min-width: 34px; justify-content: center; }
  .app-header-right > .app-header-mobile-nav + .share-popover-wrap { margin-left: auto; }
  .app-title-group { flex: 1 1 auto; min-width: 0; }
  .app-title-group .trip-title-input {
    max-width: none;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    min-width: 0;
  }
  #trip-status-badge,
  .app-header-left > .popover-wrap:not(.app-title-group) { flex-shrink: 0; }
  .app-date-btn { padding: 4px 6px; font-size: 11px; }
  .app-auth-area { font-size: 11px; flex-shrink: 0; }
}
.app-header-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-header-right { display: flex; align-items: center; gap: 8px; }
.app-auth-area { display: flex; align-items: center; gap: 8px; font-size: 12px; white-space: nowrap; }
.app-title-group { display: flex; align-items: center; gap: 2px; }
.app-title-group .trip-title-input {
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  padding: 4px 2px;
  width: auto;
  max-width: 220px;
  color: var(--text);
}
.app-title-chevron-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.app-title-chevron-btn:hover { background: var(--bg-sunken); color: var(--text); }
.app-title-chevron-btn .icon { width: 15px; height: 15px; transform: rotate(90deg); }
.app-date-btn {
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
}
.app-date-btn:hover { background: var(--bg-sunken); color: var(--text); }
.addr-popover-wrap { display: inline-flex; }
.addr-popover { width: 300px; }
.members-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  font-size: 13px;
}
.member-row > span:first-child { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-row .icon { width: 15px; height: 15px; color: var(--text-faint); }
.app-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.app-body .tab-panel { display: none; }
.app-body .tab-panel.active {
  display: block;
  padding: var(--container-pad-y) var(--container-pad-x);
}
@media (min-width: 861px) {
  #tab-panel-sched.active { padding: 0; overflow: hidden; }
}
@media (max-width: 860px) {
  .app-body { padding-bottom: 150px; }
}
@media (max-width: 860px) {
  #tab-panel-sched.active { padding: 0; overflow: hidden; }
  .app-body .tab-panel.active { padding: 12px; }
  #tab-panel-expense .card,
  #tab-panel-checklist .card,
  #tab-panel-voucher .card,
  #tab-panel-etc .card { padding: 14px; }
}
.flex-none { flex: 0 0 auto; }
.m-0 { margin: 0; }
.mt-1 { margin-top: 4px; }
.mb-1 { margin-bottom: 4px; }
.app-header-mobile-nav.btn { display: none; }
@media (max-width: 860px) {
  .app-header-mobile-nav.btn { display: inline-flex; padding: 6px 8px; }
}
.app-header-mobile-nav .nav-lbl { display: none; }
@media (max-width: 860px) {
  .app-header .app-header-right > .app-header-mobile-nav.btn {
    flex-direction: column;
    gap: 1px;
    min-width: 42px;
    padding: 1px 3px 0;
    border-color: transparent;
    background: none;
    box-shadow: none;
    color: var(--text-secondary);
  }
  .app-header-mobile-nav .icon-inline .icon { width: 18px; height: 18px; }
  .app-header-mobile-nav .nav-lbl { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.1; white-space: nowrap; letter-spacing: -0.01em; }
  .app-header-mobile-nav.btn:active { background: var(--bg-sunken); }
}
.btn-armed {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
}
.btn-armed:hover { background: var(--brand-dark); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--card)); }
.btn-danger:hover { background: color-mix(in srgb, var(--danger) 12%, var(--card)); }
.row > .flex-none { flex: 0 0 auto; }
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
}
.trip-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 20px;
  align-items: start;
}
.trip-col-main > .card:last-child,
.trip-col-map > .card:last-child {
  margin-bottom: 0;
}
#tab-panel-sched.active {
  height: auto;
}
@media (min-width: 861px) {
  #tab-panel-sched.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0;
  }
  #tab-panel-sched .trip-layout {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-height: 0;
  }
  #tab-panel-sched .trip-layout { gap: 0; }
  #tab-panel-sched .trip-col-main {
    flex: 1 1 560px;
    max-width: 672px;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    border-right: 1px solid var(--border-subtle);
  }
  #tab-panel-sched .trip-col-map {
    flex: 1;
    min-width: 0;
    display: flex;
  }
  #tab-panel-sched .trip-col-map .card.map-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: none;
  }
  #tab-panel-sched .trip-col-map .card.map-card #map {
    flex: 1;
    height: auto;
    width: 100%;
    border-radius: inherit;
    border: none;
  }
}
@media (min-width: 1280px) {
  #tab-panel-sched .trip-col-main { flex: 0 0 672px; max-width: 672px; }
}
@media (max-width: 860px) {
  .trip-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .trip-col-map { order: -1; }
  .trip-layout { gap: 0; }
  .trip-col-main { order: 0; }
  #tab-panel-sched .trip-col-map { display: none; }
  .trip-col-map .card {
    border-radius: 0;
    border: none;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
  }
  .trip-col-main > .sched-col {
    height: auto;
    padding-top: 8px;
    border-radius: 0;
    border: none;
  }
  .sched-aux { max-height: none; overflow: visible; }
  .sched-search-kbd { display: none; }
  .sched-empty { padding-top: 16px; }
  .app-body.map-view { overflow: hidden; }
  #tab-panel-sched.map-view.active {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 0;
  }
  #tab-panel-sched.map-view .trip-layout {
    flex: 1;
    min-height: 0;
  }
  #tab-panel-sched.map-view .trip-col-map {
    display: flex;
    flex: 1;
    min-height: 0;
  }
  #tab-panel-sched.map-view .trip-col-map .card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  #tab-panel-sched.map-view .trip-col-map #map { flex: 1; height: auto; min-height: 0; }
  #tab-panel-sched.map-view .trip-col-main {
    flex: 0 0 45%;
    min-height: 0;
    z-index: 2;
    border-radius: 20px 20px 0 0;
    background: var(--card);
    box-shadow: 0 -8px 30px -6px rgba(14, 17, 22, 0.16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  #tab-panel-sched.map-view.sheet-expanded .trip-col-main { flex: 1 1 auto; }
  #tab-panel-sched.map-view.sheet-expanded .trip-col-map { flex: 0 0 0; min-height: 0; }
  #tab-panel-sched.map-view.sheet-live-dragging .trip-col-main,
  #tab-panel-sched.map-view.sheet-live-dragging .trip-col-map { transition: none; }
  #tab-panel-sched.map-view.sheet-settling .trip-col-main,
  #tab-panel-sched.map-view.sheet-settling .trip-col-map { transition: flex-basis 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), flex-grow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
  #tab-panel-sched.map-view .trip-col-main > .sched-col {
    flex: 1;
    height: auto;
    min-height: 0;
    padding-top: 0;
    border-radius: inherit;
  }
  #tab-panel-sched.map-view .trip-col-main > .sched-empty { flex: 1; min-height: 0; overflow-y: auto; }
  #tab-panel-sched.map-view .sched-list { flex: 1; min-height: 0; overflow-y: auto; }
  #tab-panel-sched.map-view .sched-aux { max-height: 30vh; overflow-y: auto; }
  #tab-panel-sched.map-view:not(.sheet-expanded) .sched-search-row,
  #tab-panel-sched.map-view:not(.sheet-expanded) .sched-aux { display: none; }
  #tab-panel-sched.map-view .trip-col-main > .sheet-handle { display: block; }
}
.sheet-handle {
  display: none;
  position: relative;
  width: 100%;
  padding: 10px 0 8px;
  border: none;
  background: none;
  cursor: grab;
  touch-action: none;
  flex: 0 0 auto;
}
.sheet-handle::before {
  content: "";
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-faint);
  margin: 0 auto;
}
.sheet-handle::before { width: 44px; height: 5px; border-radius: 3px; background: var(--text-muted); opacity: 0.55; }
.sheet-handle:hover::before, .sheet-handle:active::before { opacity: 0.8; }
.sheet-handle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
}
.sheet-handle:active { cursor: grabbing; }
.mobile-action-bar { display: none; }
@media (max-width: 860px) {
  .mobile-action-bar.is-hidden { display: none; }
  .mobile-action-bar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 64px;
    padding: 10px 16px;
    background: var(--card);
    border-top: 1px solid var(--border-subtle);
    z-index: 59;
  }
  .mobile-action-primary {
    flex: 1;
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    border-radius: var(--radius-card);
    background: var(--brand);
    color: var(--brand-contrast);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
  }
  .mobile-action-primary .icon { width: 19px; height: 19px; }
  .mobile-action-icon {
    position: relative;
    width: 48px;
    flex: 0 0 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    background: var(--card);
    color: var(--text-secondary);
    cursor: pointer;
  }
  .mobile-action-icon .icon { width: 21px; height: 21px; }
  #mobile-view-toggle { touch-action: none; }
  .mobile-action-icon.active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: var(--brand-soft-text);
  }
  .mobile-action-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    box-sizing: border-box;
    border-radius: 999px;
    background: var(--danger);
    color: var(--brand-contrast);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
  }
  .mobile-action-badge[hidden] { display: none; }
  .app-body { padding-bottom: 160px; }
  .app-body.map-view { padding-bottom: 133px; }
}
.checklist-item,
.expense-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.checklist-item:last-child,
.expense-item:last-child {
  border-bottom: none;
}
.checklist-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.checklist-item label span.checked {
  text-decoration: line-through;
  color: var(--text-faint);
}
.checklist-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent-teal);
  cursor: pointer;
  flex-shrink: 0;
}
.trip-bottom-tabbar {
  display: none;
}
@media (max-width: 860px) {
  .trip-bottom-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    background: var(--card);
    border-top: 1px solid var(--border-subtle);
    z-index: 60;
  }
  .trip-bottom-tabbar button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 11px;
    color: var(--text-faint);
    background: none;
    border: none;
    cursor: pointer;
  }
  .trip-bottom-tabbar button .tab-icon { color: var(--text-faint); }
  .trip-bottom-tabbar button.active { color: var(--brand-fg); font-weight: 600; }
  .trip-bottom-tabbar button.active .tab-icon { color: var(--brand-fg); }
}
.app-rail-btn .icon-inline,
.app-header-mobile-nav .icon-inline {
  margin-right: 0;
}
.mobile-action-icon .icon-inline {
  margin-right: 0;
}
.top-tab.active {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  box-shadow: none;
  border-bottom-color: var(--brand);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.card-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.admin-topbar-user { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 16px; }
.summary-card .label { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.summary-card .big-number { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.summary-card .big-number .sub { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.progress-track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--brand); transition: width 0.3s ease; }
.progress-fill.over { background: var(--danger); }
.progress-caption { font-size: 12px; color: var(--text-muted); margin-top: 6px; display: flex; justify-content: space-between; gap: 10px; }
.add-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.field-row input, .field-row select { flex: 1; min-width: 90px; }
.expense-add-row { justify-content: flex-end; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .checklist-grid { grid-template-columns: 1fr; }
}
.segment {
  display: inline-flex;
  background: var(--bg-sunken);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.segment-btn {
  border: none;
  background: transparent;
  min-height: 30px;
  padding: 5px 12px;
  line-height: 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}
.segment-btn.active {
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.cat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
.cat-card h4 { margin: 0 0 8px; font-size: 13.5px; display: flex; align-items: center; gap: 6px; color: var(--text); }
.cat-count { margin-left: auto; font-size: 11px; color: var(--text-muted); font-weight: 500; }
.cat-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--card));
  color: var(--brand-fg);
}
.expense-main, .voucher-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.expense-title, .voucher-title { font-size: 14px; font-weight: 600; }
.expense-sub, .voucher-sub { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.expense-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.read-only-badge {
  background: var(--bg-sunken);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
}
.voucher-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 10px;
}
.voucher-item:last-child { margin-bottom: 0; }
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-info { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.contact-name { font-size: 14px; font-weight: 600; }
.contact-phone { font-size: 13px; color: var(--text-muted); }
.contact-item-actions { display: flex; align-items: center; gap: 2px; flex: none; }
.contact-item.is-editing { align-items: flex-start; }
.contact-item.is-editing .field-row { gap: 8px; }
.type-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: none;
  background: var(--brand-soft);
  color: var(--brand-fg);
}
.voucher-item-compact {
  padding: 10px;
  margin-bottom: 8px;
  gap: 10px;
}
.voucher-item-compact .voucher-title { font-size: 13px; }
.voucher-item-compact .voucher-sub { font-size: 11px; }
.type-icon-sm { width: 32px; height: 32px; font-size: 14px; }
.contact-item-compact {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 0;
}
.contact-item-compact .voucher-title { font-size: 13px; font-weight: 600; }
.side-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}
.side-layout-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-layout-side > .card { margin-bottom: 0; }
@media (max-width: 900px) {
  .side-layout { grid-template-columns: 1fr; }
}
.trip-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 10px;
  padding: 16px 4px;
  border: none;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.trip-list-item:last-child { border-bottom: none; }
.trip-list-item h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.dash-trip-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dash-status-tabs {
  flex-wrap: wrap;
}
.dash-trip-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-trip-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 280px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  background: var(--card);
}
.dash-trip-search-row .icon-inline { color: var(--text-faint); flex: none; }
.dash-trip-search-row .icon-inline .icon { width: 15px; height: 15px; }
.dash-trip-search {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: var(--text);
}
.dash-trip-search::placeholder { color: var(--text-faint); }
.dash-sort-select {
  flex: none;
  width: auto;
  font-size: 12.5px;
  padding: 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text-muted);
}
.dash-status-tabs .segment-btn span {
  margin-left: 5px;
  font-size: 11.5px;
}
.dash-trip-grid { display: block; }
.dash-done-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
  padding: 10px 4px;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.dash-done-toggle .icon { width: 15px; height: 15px; transition: transform 0.15s; }
.dash-done-toggle.expanded .icon { transform: rotate(180deg); }
.dash-done-group[hidden] { display: none; }
.trip-layout { grid-template-columns: 40% 1fr; }
.dash-card-menu-wrap { position: relative; }
.dash-card-menu-btn { padding: 5px 8px; }
.dash-card-menu {
  right: 0;
  left: auto;
  width: 160px;
  padding: 6px;
}
.dash-card-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.dash-card-menu-item:hover { background: var(--bg-sunken); }
.dash-card-menu-item.danger { color: var(--danger); }
.dash-trip-title-input {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  border: none;
  border-bottom: 1.5px solid var(--brand);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.dash-trip-title-input:focus { outline: none; }
.guide-card {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  color: inherit;
}
.guide-card:hover { border-color: var(--brand); }
.guide-request-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--card);
  flex-wrap: wrap;
}
.guide-request-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-card);
  background: var(--bg-sunken);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .guide-request-block > .row {
    flex: 1 1 100%;
    width: 100%;
  }
  .guide-request-block #guide-request-input {
    min-width: 0;
    flex: 1;
  }
}
.guide-city-name-badge {
  position: absolute;
  left: 12px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
}
.guide-city-body { padding: 12px 14px 14px; }
.tab.tab-all {
  font-size: 12px;
}
.leg-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.leg-tabs:empty { display: none; margin-bottom: 0; }
.leg-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.leg-tab-dot { width: 7px; height: 7px; border-radius: 999px; flex: 0 0 auto; }
.leg-tab .mono-num { color: inherit; opacity: 0.75; font-weight: 500; }
.leg-tab.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-fg);
}
.leg-tab-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: none;
  padding: 0;
  margin-left: 2px;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  flex: 0 0 auto;
}
.leg-tab-edit:hover { opacity: 1; }
.leg-tab-edit .icon { width: 13px; height: 13px; }
.sched-col > .leg-tabs { padding: 12px 24px 0; margin-bottom: 0; }
#tab-panel-sched.map-view .sched-daybar { padding-top: 4px; }
.sched-search-row {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 14px 24px 12px;
}
.sched-aux .sched-search-row { padding: 0 0 10px; }
.sched-search-wrap {
  flex: 1;
  min-width: 0;
  height: 38px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
}
.sched-search-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.sched-search-wrap .icon { width: 17px; height: 17px; color: var(--text-faint); flex: none; }
.sched-search-wrap input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.sched-search-wrap input:focus { outline: none; }
.sched-search-wrap input::placeholder { color: var(--text-faint); }
.sched-search-wrap input:disabled { color: var(--text-disabled); }
.sched-search-kbd {
  margin-left: auto;
  flex: none;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px 5px;
  background: var(--card);
}
.sched-search-btn {
  height: 38px;
  flex: none;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--card);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}
.sched-search-btn .icon { width: 16px; height: 16px; }
.sched-search-btn:hover { border-color: var(--text-faint); }
.sched-search-btn.active { border-color: var(--brand); color: var(--brand-fg); background: var(--brand-soft); }
.sched-search-btn:disabled { color: var(--text-disabled); cursor: default; }
.sched-search-btn:disabled:hover { border-color: var(--border-strong); }
.sched-aux {
  flex: 0 0 auto;
  padding: 0 24px;
  max-height: max(calc(38vh + 26px), 326px);
  overflow-y: auto;
}
.sched-aux:empty { display: none; }
.sched-summary-weather {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}
.sched-summary-weather .place { color: var(--text-faint); }
.sched-summary.is-inline { padding: 0 0 8px; border-bottom: none; }
#tab-panel-sched.map-view:not(.sheet-expanded) .sched-summary { padding-top: 14px; }
.day-group + .day-group { margin-top: 26px; }
.sched-comments {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.sched-comments-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.sched-comments-title .icon { width: 15px; height: 15px; }
.item-row-title {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
.pd-modal { width: 380px; }
.pd-basic p, .pd-note, .pd-rating, .pd-hours, .pd-website, .pd-phone { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; }
.pd-address { color: var(--text-secondary); }
.pd-category { font-size: 12.5px; }
.pd-photo-frame { height: 160px; margin: 4px 0 10px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-sunken); }
.pd-photo-frame--loading { animation: dash-weather-pulse 1.2s ease-in-out infinite; }
.pd-photo { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s ease; }
.pd-photo-frame.is-loaded .pd-photo { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .pd-photo-frame--loading { animation: none; }
  .pd-photo { transition: none; }
}
.pd-photo-attribution { font-size: 11px; margin: -6px 0 10px; }
.pd-photo-attribution a { color: inherit; }
.pd-google-attr { font-size: 11px; margin: 10px 0 0; }
.pd-rating { font-weight: 600; }
.pd-hours-closed { color: var(--danger); display: flex; align-items: center; gap: 5px; }
.pd-hours-closed .icon { width: 14px; height: 14px; flex: none; }
.pd-website a { color: var(--brand-fg); }
.pd-actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-actions .pd-act-btn { height: 40px; padding: 0 14px; gap: 6px; font-size: 14px; }
.pd-actions .pd-act-btn .icon { width: 16px; height: 16px; }
.pd-affiliate-btn .item-row-affiliate-label { display: inline; }
.pd-affiliate-btn .item-row-affiliate-badge { position: static; display: inline; width: auto; height: auto; padding: 1px 2px; background: none; font-size: 9.5px; line-height: 1.4; color: var(--text-faint); border-radius: 0; opacity: 0.75; overflow: visible; }
.item-row.dragging { opacity: 0.4; }
.item-row.drag-over { box-shadow: inset 0 2px 0 var(--brand); }
.item-row.presence-editing { background: var(--brand-soft); }
.gantt-empty {
  padding: 10px 4px;
  font-size: 13px;
}
.gantt-empty .icon { margin-right: 4px; vertical-align: -2px; }
.timeline-strip {
  margin-bottom: 14px;
  border-radius: var(--radius-md, 10px);
  background: var(--bg-sunken);
}
.timeline-collapsed {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 10px;
  cursor: pointer;
}
.timeline-collapsed-track {
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--border-faint, var(--border));
  border-radius: 4px;
  overflow: hidden;
}
.timeline-seg { position: absolute; top: 0; height: 100%; border-radius: 4px; min-width: 2px; }
.timeline-gap-label {
  flex: none;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
}
.timeline-expanded { padding: 10px 10px 8px; }
.timeline-axis {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint, var(--text-muted));
  padding: 0 2px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.timeline-track {
  position: relative;
  height: 46px;
  border-radius: var(--radius-sm);
}
.timeline-block {
  position: absolute;
  top: 4px;
  height: 38px;
  border-radius: var(--radius-sm);
  min-width: 2%;
  overflow: hidden;
  cursor: grab;
  display: flex;
  align-items: center;
  padding: 0 6px;
  box-shadow: var(--shadow-sm);
}
.timeline-block:active,
.timeline-block.dragging { cursor: grabbing; box-shadow: var(--shadow-md); z-index: 2; }
.timeline-block span {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.timeline-travel-bar {
  position: absolute;
  top: 20px;
  height: 6px;
  border-radius: 3px;
  background: var(--text-disabled, var(--border-strong));
}
.timeline-gap-block {
  position: absolute;
  top: 4px;
  height: 38px;
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-sm);
}
.timeline-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  margin-top: 8px;
}
.timeline-toggle-btn {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.timeline-toggle-btn:hover { background: var(--border-faint); color: var(--text); }
.timeline-toggle-btn .icon { width: 14px; height: 14px; transform: rotate(90deg); }
.timeline-expanded .timeline-toggle-btn .icon { transform: rotate(-90deg); }
.timeline-vertical { padding: 10px; }
.timeline-v-body { position: relative; }
.timeline-v-hours {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
}
.timeline-v-hour {
  position: absolute;
  left: 0;
  font-size: 10.5px;
  color: var(--text-faint);
  transform: translateY(-50%);
}
.timeline-v-track {
  position: relative;
  margin-left: 48px;
  height: 100%;
}
.timeline-v-block {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.item-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  margin-bottom: 0;
  background: var(--card);
}
.item-color-bar {
  width: 4px;
  align-self: stretch;
  border-radius: 999px;
  flex: none;
}
.item-main { flex: 1; min-width: 0; }
.item-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.item-meta-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
}
.item-meta-time {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}
.item-meta-category {
  font-size: 11px;
  color: var(--text-faint);
}
.item-card-title {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 2px;
  word-break: keep-all;
}
.item-card-memo {
  font-size: 12px;
  color: var(--text-muted);
}
.item-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.btn-xs {
  padding: 2px 8px;
  font-size: 11px;
  border-radius: 999px;
  min-height: 26px;
  justify-content: center;
}
.btn-xs .icon { width: 13px; height: 13px; }
@media (max-width: 860px) { .btn-xs { min-height: 30px; padding-left: 10px; padding-right: 10px; } .btn-xs .icon { width: 14px; height: 14px; } }
.place-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  margin-top: 6px;
  border-radius: var(--radius-sm);
}
.place-result-item:hover { background: var(--bg-sunken); }
.place-result-item.is-clickable { cursor: pointer; }
.place-result-item.is-selected { background: var(--brand-soft); }
.place-result-item.is-selected .place-result-info strong { color: var(--brand-soft-text); }
.place-result-info { min-width: 0; flex: 1; }
.place-result-info strong { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-result-info .muted { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place-result-title-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.place-result-icon { flex: none; display: flex; color: var(--text-muted); }
.place-result-icon .icon { width: 14px; height: 14px; }
.place-result-far-badge { flex: none; margin-left: 6px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--border); white-space: nowrap; }
.place-result-far-note { margin: 0 0 8px; font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
.place-result-area-badge {
  flex: none;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-sunken);
  border: 1px solid var(--border-faint);
  border-radius: 999px;
  padding: 1px 7px;
}
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
}
.category-chip .icon { width: 14px; height: 14px; }
.category-chip:hover { border-color: var(--text-faint); }
.category-chip.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-weight: 600;
}
.item-meta-time-empty {
  font-size: 11px;
  color: var(--brand-fg);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.item-photo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-sunken);
  color: var(--text-faint, var(--text-muted));
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
}
.item-photo .icon { width: 18px; height: 18px; }
.item-actions { display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.map-card { position: relative; }
.presence-cursor {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 20;
  transition: transform 80ms linear;
  filter: drop-shadow(0 1px 2px rgba(14, 17, 22, 0.35));
}
.widget-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.widget-tab {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.widget-tab.active {
  color: var(--brand-fg);
  border-bottom-color: var(--brand);
}
.share-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--bg);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
}
.share-box input { background: var(--card); }
.offline-day-group { margin-bottom: 18px; }
.offline-day-group h3 { font-size: 13px; margin: 0 0 6px; color: var(--text-secondary); }
.offline-item-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.notfound-wrap {
  max-width: 520px;
  padding-top: min(18vh, 140px);
}
.notfound-wrap .btn {
  margin-top: 14px;
}
#logged-in-view.dash-pending { position: relative; min-height: 70vh; }
#logged-in-view.dash-pending > * { visibility: hidden; }
#logged-in-view.dash-pending::before,
#logged-in-view.dash-pending::after {
  content: ""; position: absolute; left: 0; border-radius: var(--radius);
  background: var(--border); opacity: 0.55; animation: dash-skel-pulse 1.2s ease-in-out infinite alternate;
}
#logged-in-view.dash-pending::before { top: 22px; width: min(420px, 70%); height: 34px; }
#logged-in-view.dash-pending::after { top: 96px; right: 0; height: 320px; }
#logged-in-view.dash-reveal { animation: dash-reveal 0.18s ease-out; }
@media (prefers-reduced-motion: reduce) {
  #logged-in-view.dash-pending::before, #logged-in-view.dash-pending::after, #logged-in-view.dash-reveal { animation: none; }
}
.dash-date-label {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 6px;
}
.dash-greeting {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
  color: var(--text);
}
.dash-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}
.dash-sub b { color: var(--brand-fg); font-weight: 600; }
.dash-hero { text-align: center; }
.multi-leg-panel {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.3s ease, visibility 0s linear 0.3s;
  text-align: left;
}
.multi-leg-panel.open { max-height: 600px; visibility: visible; transition: max-height 0.3s ease, visibility 0s; }
.dash-mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
}
.dash-mini-row:last-child { border-bottom: none; }
.dash-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 6px 8px 6px 16px;
  box-shadow: var(--shadow-sm);
}
.dash-search-row > .icon-inline { margin-right: 0; color: var(--text-muted); }
.dash-search-row input {
  flex: 1;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--text);
}
.dash-chip-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.dash-hero--compact .dash-hero-title,
.dash-hero--compact .dash-hero-sub,
.dash-hero--compact .dash-hero-collapsible {
  display: none;
}
.dash-hero--compact.dash-hero { padding: 14px 20px; }
.dash-hero--compact .dash-search-row { max-width: none; margin: 0; }
.leg-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.leg-row .leg-city-input { flex: 1; width: auto; }
.leg-row .leg-date-input { width: 110px; flex: 0 0 110px; cursor: pointer; }
.nearby-places-block { margin-bottom: 16px; }
.card-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 6px 2px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}
.card-link-btn:hover { color: var(--brand-fg); }
#nearby-places-section { margin-bottom: 16px; }
.nearby-places-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.nearby-places-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  min-width: 0;
  max-width: 100%;
}
.nearby-place-card {
  flex: 0 0 auto;
  width: 140px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 12px;
  cursor: pointer;
  background: var(--card);
  text-align: left;
}
.nearby-place-card:hover { border-color: var(--brand); }
.nearby-place-card .name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nearby-place-card .add-hint {
  font-size: 11.5px;
  color: var(--brand-fg);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nearby-place-card.is-added { background: var(--bg-sunken); border-style: dashed; }
.nearby-place-card.is-added .name { color: var(--text-muted); }
.nearby-place-card.is-added .add-hint { color: var(--text-muted); }
.nearby-badge {
  display: inline-block;
  margin-bottom: 5px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-size: 10.5px;
  font-weight: 700;
}
.nearby-empty { line-height: 1.6; }
.currency-result-ref { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.wc-continent { border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; overflow: hidden; }
.wc-continent-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: var(--bg-sunken);
  list-style: none;
}
.wc-continent-summary::-webkit-details-marker { display: none; }
.wc-continent-summary::before {
  content: "▸";
  margin-right: 8px;
  color: var(--text-faint);
  transition: transform 0.15s ease;
}
.wc-continent[open] .wc-continent-summary::before { transform: rotate(90deg); }
.wc-continent-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  background: var(--card);
  border-radius: 999px;
  padding: 1px 8px;
}
.wc-continent-cities { padding: 4px 14px 6px; }
.mt-3 { margin-top: 12px; }
.tools-note-list { margin: 8px 0 0; padding-left: 18px; }
.tools-details > summary { cursor: pointer; }
.hr-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.pack-dest-row { align-items: flex-end; }
.pack-dest-row .field { margin-bottom: 0; }
.pack-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.pack-card__head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--pk-soft); color: var(--pk-ink); font-size: 13.5px; font-weight: 700; }
.pack-card__head .icon { width: 16px; height: 16px; }
.tool-card-highlight { animation: tool-card-flash 1.8s ease-in-out; }
.sched-empty {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 40px 56px;
  background: var(--card);
}
.sched-empty[hidden] { display: none; }
.sched-empty-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  word-break: keep-all;
}
.sched-empty-lead {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  word-break: keep-all;
  text-wrap: pretty;
}
.sched-empty-search {
  margin-top: 24px;
  height: 48px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.sched-empty-search .icon { width: 19px; height: 19px; color: var(--brand-fg); flex: none; }
.sched-empty-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}
.sched-empty-search input::placeholder { color: var(--text-disabled); }
.sched-empty-results:not(:empty) { margin-top: 12px; }
.sched-empty-chips {
  margin-top: 14px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.sched-empty-chip {
  height: var(--chip-h);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-frame);
  background: var(--card);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}
.sched-empty-chip:hover { border-color: var(--brand); color: var(--brand-fg); }
.sched-empty-outs {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sched-empty-outs-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.sched-empty-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
}
.sched-empty-card[hidden] { display: none; }
.sched-empty-card:hover { border-color: var(--brand); }
.sched-empty-card-icon { flex: 0 0 22px; margin-top: 2px; color: var(--brand-fg); }
.sched-empty-card-icon .icon { width: 22px; height: 22px; }
.sched-empty-card-body { flex: 1; min-width: 0; }
.sched-empty-card-title { display: block; font-size: 15px; font-weight: 600; }
.sched-empty-card-sub {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  word-break: keep-all;
  text-wrap: pretty;
}
.sched-empty-card-go { flex: 0 0 18px; margin-top: 4px; color: var(--text-disabled); }
.sched-empty-card-go .icon { width: 18px; height: 18px; }
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-sunken);
}
.map-placeholder[hidden] { display: none; }
.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-faint) 1px, transparent 1px);
  background-size: 78px 78px;
}
.map-placeholder-inner {
  position: relative;
  width: 420px;
  max-width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.map-placeholder-pin { color: var(--text-disabled); }
.map-placeholder-pin .icon { width: 40px; height: 40px; stroke-width: 1.5; }
.map-placeholder-title { font-size: 16px; font-weight: 600; color: var(--text); word-break: keep-all; }
.map-placeholder-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  word-break: keep-all;
  text-wrap: pretty;
}
.map-placeholder-btn {
  margin-top: 6px;
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
}
.map-placeholder-btn:hover { border-color: var(--brand); color: var(--brand-fg); }
.map-placeholder-btn .icon { width: 17px; height: 17px; }
.card.map-card { position: relative; }
.app-rail-btn.is-dimmed,
.btn.is-dimmed { color: var(--text-disabled); }
.app-rail-btn.is-dimmed .icon,
.btn.is-dimmed .icon { color: var(--text-disabled); }
.trip-title-pencil { flex: none; color: var(--text-faint); }
.trip-title-pencil[hidden] { display: none; }
.trip-title-pencil .icon { width: 16px; height: 16px; }
.app-date-btn.is-unset {
  background: var(--bg-sunken);
  border-color: transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text-muted);
}
.app-date-btn.is-unset .mono-num { font-family: var(--font-sans); font-size: 12px; }
@media (max-width: 860px) {
  .sched-empty { padding: 24px 16px 32px; overflow: visible; flex: none; }
  .map-placeholder-inner { width: 100%; }
  .map-placeholder { position: static; min-height: 300px; }
}
.map-scope {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.map-scope[hidden] { display: none; }
.map-scope-btn {
  height: 26px;
  padding: 0 10px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}
.map-scope-btn:hover { color: var(--text); }
.map-scope-btn.active {
  background: var(--brand);
  color: var(--brand-contrast);
}
.map-google-attrib {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.map-google-attrib[hidden] { display: none; }
.dash-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}
.dash-main { min-width: 0; }
.dash-side { min-width: 0; }
@media (max-width: 1100px) {
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
}
.dash-featured-panel {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.dash-featured-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-featured-top { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dash-featured-title {
  margin: 8px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: keep-all;
  text-wrap: pretty;
}
.dash-featured-metrics {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.dash-metric { display: flex; align-items: center; gap: 8px; position: relative; }
.dash-metric-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dash-metric + .dash-metric::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: var(--border-strong);
}
.dash-metric[hidden] { display: none; }
.dash-metric-label { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.dash-metric-value { font-size: 16px; font-weight: 600; white-space: nowrap; }
.dash-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius);
  background: var(--dcat-soft);
  color: var(--dcat-ink);
  flex: none;
}
.dash-metric-icon .icon { width: 13px; height: 13px; }
.dash-featured-weather:not(:empty) { margin-top: 14px; font-size: 13px; }
.dash-featured-voucher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--accent-teal-soft);
  color: var(--accent-teal-soft-text);
  font-size: 13px;
}
.dash-featured-voucher[hidden] { display: none; }
.dash-featured-voucher .icon { width: 16px; height: 16px; flex: none; }
.dash-weather-day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; background: var(--bg-sunken); border-radius: var(--radius-sm); min-width: 0; }
.dash-weather-day-label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.dash-weather-day-icon { font-size: 20px; line-height: 1; }
.dash-weather-day-temp { font-size: 12.5px; font-weight: 600; }
.dash-featured-todo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-size: 13px;
}
.dash-featured-todo[hidden] { display: none; }
.dash-featured-todo .icon { width: 16px; height: 16px; flex: none; }
.dash-featured-todo .btn { margin-left: auto; flex: none; }
.dash-featured-todo--info { background: var(--card); color: var(--text); border: 1px solid var(--border); box-shadow: inset 3px 0 0 var(--brand); }
.dash-featured-todo--info > .icon-inline { color: var(--brand-fg); }
.dash-featured-actions { display: flex; gap: 8px; margin-top: 16px; }
.dash-featured-map {
  flex: 0 0 320px;
  width: 320px;
  height: 232px;
  border-radius: var(--radius-card);
  overflow: hidden;
  display: block;
}
@media (max-width: 860px) {
  .dash-featured-panel { flex-direction: column; padding: 16px; }
  .dash-featured-map { flex: none; width: 100%; height: 160px; }
}
.dash-trip-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 80px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-subtle);
}
.dash-row-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.dash-row-thumb .route-cover { height: 48px; }
.dash-row-main { flex: 1; min-width: 0; }
.dash-row-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.dash-row-sep { width: 1px; height: 11px; background: var(--border-strong); flex: none; }
.dash-row-side { display: flex; align-items: center; gap: 8px; flex: none; }
@media (max-width: 640px) {
  .dash-trip-row { flex-wrap: wrap; }
  .dash-row-side { width: 100%; justify-content: flex-end; }
}
.dash-tool-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}
.dash-tool-row:last-child { border-bottom: none; }
.dash-tool-row:hover { color: var(--brand-fg); }
.dash-tool-label { flex: 1; min-width: 0; }
.dash-tool-value { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.dash-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  background: var(--dcat-soft);
  color: var(--dcat-ink);
  flex: none;
}
.dash-tool-icon .icon { width: 16px; height: 16px; }
.dash-country-badge {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-soft-text);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: 2px 9px;
  flex: none;
}
.dash-country-badge[hidden] { display: none; }
.share-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 6px 16px;
  background: #14161a;
  color: #fff;
  font-size: 13px;
}
.share-topbar[hidden] { display: none; }
.share-topbar-msg { font-weight: 600; }
.share-topbar-sub { color: rgba(255, 255, 255, 0.62); }
.share-topbar-btn {
  margin-left: auto;
  flex: none;
  height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: none;
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.share-topbar-btn:hover { background: rgba(255, 255, 255, 0.14); }
.share-topbar-btn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 640px) {
  .share-topbar { flex-wrap: wrap; row-gap: 4px; }
  .share-topbar-sub { display: none; }
}
.share-comments-card { margin-bottom: 0; }
.share-memo-cards { display: grid; gap: 10px; margin-bottom: 12px; }
.share-memo-cat { font-size: 12px; font-weight: 600; color: var(--brand-fg); }
.share-memo-title { display: block; margin: 4px 0 6px; font-size: 14px; word-break: keep-all; }
.share-memo-card .comment-body { margin: 0; }
.share-memo-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.share-memo-list li { display: flex; gap: 7px; align-items: center; }
.share-memo-list li svg { flex: none; width: 14px; height: 14px; color: var(--brand-fg); }
.share-memo-list li.done > span:last-child { text-decoration: line-through; color: var(--text-muted); }
.share-memo-box { flex: none; width: 13px; height: 13px; border: 1.5px solid var(--border); border-radius: 4px; }
.share-memo-link { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; }
.share-memo-link svg { width: 13px; height: 13px; }
@media (min-width: 861px) {
  #share-panel-sched .trip-col-main {
    flex: 1 1 560px;
    max-width: 672px;
    min-width: 0;
    overflow-y: auto;
    padding-right: 20px;
    border-right: 1px solid var(--border-subtle);
  }
  #share-panel-sched .trip-col-map { flex: 1; min-width: 0; display: flex; }
  #share-panel-sched .trip-col-map .card { flex: 1; display: flex; flex-direction: column; margin: 0; }
  #share-panel-sched .trip-col-map #map { flex: 1; height: auto; width: 100%; }
}
@media (min-width: 1280px) {
  #share-panel-sched .trip-col-main { flex: 0 0 672px; }
}
.avatar.avatar-more {
  background: var(--bg-sunken);
  color: var(--text-muted);
  font-size: 11px;
}
.expense-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 20px;
  align-items: start;
}
.expense-main { min-width: 0; }
.expense-side { min-width: 0; }
@media (max-width: 1100px) {
  .expense-layout { grid-template-columns: minmax(0, 1fr); }
}
.expense-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.expense-summary-metrics { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.expense-metric { display: flex; flex-direction: column; gap: 2px; }
.expense-metric-label { font-size: 12px; color: var(--text-muted); }
.expense-metric-value { font-size: 17px; font-weight: 600; }
.expense-metric-value.is-big { font-size: 30px; letter-spacing: -0.02em; }
.expense-metric-note { font-size: 12px; color: var(--text-muted); align-self: center; }
.expense-metric-note .icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.expense-summary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; flex: 0 1 auto; min-width: 0; }
.expense-stack {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-sunken);
}
.expense-stack:empty { display: none; }
.expense-stack i { display: block; height: 100%; }
.expense-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; margin-bottom: 22px; font-size: 12.5px; color: var(--text-secondary); }
.expense-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.expense-legend-item i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.expense-stack-head { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.expense-add-form {
  margin: 16px 0 20px;
  padding: 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.expense-add-form[hidden] { display: none; }
.expense-field-label { flex: 0 0 92px; font-size: 13px; color: var(--text-muted); align-self: center; }
.expense-payer-row[hidden],
.expense-split-row[hidden],
.expense-filter-row[hidden] { display: none; }
.expense-cat-row { display: flex; align-items: center; gap: 8px; }
.expense-cat-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.expense-cat-chip,
.expense-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--chip-h);
  padding: 0 12px 0 9px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.expense-cat-chip .icon,
.expense-filter-chip .icon { width: 16px; height: 16px; flex: none; color: var(--cat-ink, var(--text-muted)); }
.expense-cat-chip:hover,
.expense-filter-chip:hover { background: var(--cat-soft, var(--bg-sunken)); }
.expense-cat-chip.selected {
  border-color: var(--cat, var(--brand));
  background: var(--cat-soft, var(--brand-soft));
  color: var(--cat-ink, var(--brand-soft-text));
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--cat, var(--brand));
}
.expense-filter-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.expense-filter-chip { height: var(--chip-h); padding: 0 12px; }
.expense-filter-chip .icon { margin-right: -1px; }
.expense-filter-chip .mono-num { font-size: 11.5px; color: var(--text-muted); }
.expense-filter-chip.selected {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.expense-filter-chip.selected .icon,
.expense-filter-chip.selected .mono-num { color: var(--bg); }
.expense-filter-chip[data-expense-cat].selected {
  border-color: var(--cat, var(--brand));
  background: var(--cat-soft, var(--brand-soft));
  color: var(--cat-ink, var(--brand-soft-text));
  box-shadow: 0 0 0 1px var(--cat, var(--brand));
}
.expense-filter-chip[data-expense-cat].selected .icon,
.expense-filter-chip[data-expense-cat].selected .mono-num { color: var(--cat-ink, var(--brand-soft-text)); }
.expense-solo-hint { margin: 0; font-size: 12px; line-height: 1.5; }
.expense-solo-hint + .expense-add-row { margin-top: -2px; }
@media (max-width: 640px) {
  .expense-cat-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .expense-cat-row .expense-field-label { flex: none; }
}
.expense-split-row { display: flex; align-items: center; gap: 8px; }
.expense-split-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.expense-split-chip {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
  font-family: inherit;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}
.expense-split-chip.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-weight: 600;
}
.expense-group + .expense-group { margin-top: 18px; }
.expense-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 0 6px;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.expense-group-head-left { display: flex; align-items: center; gap: 4px; }
.expense-group-head-left .icon { width: 14px; height: 14px; transition: transform 0.15s; }
.expense-group-head.is-collapsed .expense-group-head-left .icon { transform: rotate(-90deg); }
.expense-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.expense-row.is-settled { opacity: 0.55; }
.expense-row-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius-card);
  background: var(--cat-soft, var(--bg-sunken));
  color: var(--cat-ink, var(--text-muted));
  display: flex;
  align-items: center;
  justify-content: center;
}
.expense-row-icon .icon { width: 21px; height: 21px; }
.expense-row-body { flex: 1; min-width: 0; }
.expense-row-title { font-size: 14.5px; font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; }
.expense-row-memo-inline { font-weight: 400; color: var(--text-muted); overflow-wrap: anywhere; }
.expense-row-meta { margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.expense-row-amounts { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.expense-row-krw { font-size: 15px; font-weight: 600; }
.expense-row-original { font-size: 12px; color: var(--text-faint); }
.expense-row-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.expense-row-edit,
.expense-row-del { flex: none; opacity: 0; transition: opacity 0.12s; }
.expense-row:hover .expense-row-edit,
.expense-row:hover .expense-row-del,
.expense-row:focus-within .expense-row-edit,
.expense-row:focus-within .expense-row-del { opacity: 1; }
@media (hover: none) {
  .expense-row-edit,
  .expense-row-del { opacity: 1; }
}
@media (max-width: 860px) {
  .expense-row { flex-wrap: wrap; row-gap: 6px; }
  .expense-row-actions { flex-basis: 100%; justify-content: flex-end; }
  .expense-row-edit,
  .expense-row-del { opacity: 1; }
}
.settle-table { display: flex; flex-direction: column; gap: 2px; }
.settle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.settle-row:last-child { border-bottom: none; }
.settle-row span:nth-child(2) { flex: 1; min-width: 0; }
.budget-nums { display: flex; align-items: baseline; gap: 6px; font-size: 18px; font-weight: 600; }
.budget-nums .muted { font-size: 13px; font-weight: 400; }
.check-assignee {
  width: 22px;
  height: 22px;
  flex: none;
  border: none;
  border-radius: 50%;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-assignee.is-empty {
  background: none;
  border: 1px dashed var(--border-strong);
  color: var(--text-faint);
  font-weight: 400;
}
.check-assignee.is-empty:hover { border-color: var(--brand); color: var(--brand-fg); }
.assignee-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 6px;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.assignee-row:hover { background: var(--bg-sunken); }
.assignee-row.active { background: var(--brand-soft); color: var(--brand-soft-text); font-weight: 600; }
.assignee-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.assignee-avatar {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.assignee-avatar.is-empty {
  background: var(--bg-sunken);
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
}
.cat-card .cat-add-input {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
}
.cat-card .cat-add-input::placeholder { color: var(--text-faint); }
.cat-card .row:has(.cat-add-input) {
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--border-dashed);
  border-radius: var(--radius-sm);
}
.cat-card .row:has(.cat-add-input):focus-within { border-color: var(--brand); border-style: solid; }
.checklist-suggest {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-size: 13px;
}
.checklist-suggest[hidden] { display: none; }
.checklist-suggest .icon { width: 16px; height: 16px; flex: none; }
.checklist-suggest-text { flex: 1; min-width: 0; word-break: keep-all; }
.checklist-suggest .btn { border-color: var(--brand); }
.rate-mode-segment { margin-bottom: 4px; }
.expense-row-original.is-fallback { color: var(--danger); }
.viewer-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
  flex: 0 0 auto;
}
.viewer-banner[hidden] { display: none; }
.viewer-banner .icon { width: 15px; height: 15px; flex: none; }
.is-viewer .mobile-action-primary { display: none; }
.is-viewer .mobile-action-bar { justify-content: flex-end; }
.check-assignee.is-static { cursor: default; }
@media (max-width: 860px) {
  body:has(#mobile-action-bar:not(.is-hidden)) .fb-launcher-btn { bottom: 148px; }
  body:has(#mobile-action-bar:not(.is-hidden)) .fb-launcher-btn { display: none; }
}
.fb-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.fb-modal-head h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.av-me--acct { padding: 4px 0 6px; }
.av-me--acct .ui-row__main { font-size: 13px; }
.acct-del .ui-dialog { width: min(400px, 100%); }
.acct-del__list { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.acct-del__list li + li { margin-top: 3px; }
.acct-del__type { display: block; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.acct-del__type .ui-field { margin-top: 6px; min-height: 46px; }
.acct-del__type .ui-field > input { padding: 10px 0; }
.ui-dialog .acct-del__err { margin: 10px 0 0; font-size: 13px; color: var(--danger, #d92d20); font-weight: 500; }
.acct-del__err[hidden] { display: none; }
-google-btn/-legal-links 참고. */
.login-consent-actions { justify-content: flex-end; margin-top: 4px; }
.login-consent-body-main { margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: var(--text); }
.login-consent-body-legal { margin: 0 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--text-faint); }
.login-consent-actions .btn { height: 32px; min-height: 32px; padding-top: 0; padding-bottom: 0; }
.login-consent-legal-links { display: flex; justify-content: center; gap: 16px; margin-top: 14px; font-size: 12px; }
.login-consent-legal-links a { color: var(--text-faint); }
.login-consent-legal-links a:hover { color: var(--text-muted); }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  font-family: inherit;
  display: block;
}
.link-btn:hover { color: var(--text-secondary); }
.share-reissue-confirm { margin-top: 8px; }
.sched-add-toggle-row { flex: 0 0 auto; padding: 12px 24px 12px; }
.sched-add-panel > .sched-search-row { padding-top: 0; }
.sched-add-toggle-row[hidden] { display: none; }
.sched-add-toggle {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.sched-add-toggle:hover { background: var(--bg-sunken); }
.sched-add-toggle .icon { width: 16px; height: 16px; flex: none; }
.sched-add-toggle-sub { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-faint); }
.sched-add-toggle-chev { display: inline-flex; }
.sched-add-toggle-chev .icon { transition: transform 0.15s; }
.sched-add-toggle.is-open { border-style: solid; border-color: var(--brand); color: var(--brand-fg); }
.sched-add-toggle.is-open .sched-add-toggle-chev .icon { transform: rotate(180deg); }
@media (max-width: 860px) {
  .sched-add-toggle-sub { display: none; }
  .sched-add-toggle-chev { margin-left: auto; }
  #tab-panel-sched.map-view:not(.sheet-expanded) .sched-add-toggle-row { display: none; }
}
.sched-day-card.drop-target { outline: 2px dashed var(--brand); outline-offset: -2px; background: var(--brand-soft); }
@media (max-width: 560px) {
  .sched-summary-weather { margin-left: 0; }
}
.expense-krw-preview { margin: -2px 0 0; font-size: 12.5px; font-weight: 600; color: var(--brand-soft-text); }
.expense-krw-preview[hidden] { display: none; }
.budget-pace { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; padding: 9px 11px; border-radius: var(--radius-card); background: var(--brand-soft); color: var(--brand-soft-text); font-size: 12.5px; line-height: 1.5; }
.budget-pace b { font-size: 13px; }
@media (hover: hover) and (pointer: fine) {
  #empty-place-query { font-size: 15px; }
}
@media (hover: hover) and (pointer: fine) {
  #place-query,
  #nearby-dest-input,
  #dest-search-input { font-size: 14px; }
}
#place-query::placeholder,
#nearby-dest-input::placeholder,
#dest-search-input::placeholder { font-size: 14px; }
.dash-featured-top > .status-badge,
.dash-featured-top > .mono-num { display: inline-flex; align-items: center; height: 22px; line-height: 1; }
.dash-featured-top > .status-badge:first-child { margin-left: 0; }
.dash-featured-top > .mono-num { font-size: 12.5px; }
.dash-weather-days--loading .dash-weather-day { height: 72px; opacity: 0.55; animation: dash-weather-pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .dash-weather-days--loading .dash-weather-day { animation: none; }
}
html:lang(ja) .app-date-btn.is-unset,
html:lang(zh) .app-date-btn.is-unset { white-space: nowrap; }
@media (max-width: 860px) {
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="range"]):not([type="color"]), textarea, select, [contenteditable="true"]):focus)
    :is(.mobile-action-bar, .trip-bottom-tabbar, .mobile-tabbar, .fb-launcher-btn) {
    display: none !important;
  }
  body:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="range"]):not([type="color"]), textarea, select, [contenteditable="true"]):focus)
    :is(.app-body, .app-body.map-view, .container) {
    padding-bottom: 12px !important;
  }
}
.save-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  margin-left: 2px;
  padding: 1px 8px 1px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  background: transparent;
  color: var(--text-muted);
}
.save-status[hidden] { display: none; }
.save-status .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.save-status.is-saving .icon { color: var(--brand-fg); animation: save-status-pulse 1s ease-in-out infinite; }
.save-status.is-saved { color: var(--text-secondary); }
.save-status.is-saved .icon { color: var(--accent-teal-soft-text); }
.save-status.is-error { border-color: var(--danger); background: color-mix(in oklch, var(--danger) 10%, var(--card)); color: var(--danger); }
@media (prefers-reduced-motion: reduce) { .save-status.is-saving .icon { animation: none; } }
.app-shell.is-viewer .save-status { display: none; }
@media (max-width: 860px) {
  .save-status { font-size: 11px; padding: 1px 7px 1px 5px; gap: 3px; margin-left: 0; }
  .save-status .icon { width: 12px; height: 12px; }
}
.travel-modes { display: inline-flex; flex: none; gap: 2px; padding: 2px; border-radius: 999px; background: var(--bg-subtle, var(--border-subtle)); }
.travel-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-faint);
  cursor: pointer;
}
.travel-mode-btn:hover { color: var(--text); }
.travel-mode-btn.active { background: var(--card); color: var(--brand-fg); box-shadow: var(--shadow-sm); }
.travel-rare { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; }
@media (max-width: 380px) {
  .app-header .app-header-right { gap: 3px; }
  .app-header .app-header-right > .app-header-mobile-nav.btn { min-width: 40px; }
}
.save-status.just-saved { animation: save-status-flash 1.6s ease-out; }
.save-status.just-saved .icon { animation: save-status-pop 0.45s ease-out; }
@media (prefers-reduced-motion: reduce) { .save-status.just-saved, .save-status.just-saved .icon { animation: none; } }
@media (max-width: 640px) {
  .dash-featured-metrics {
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-right: -4px;
    padding: 2px 4px 2px 0;
  }
  .dash-featured-metrics::-webkit-scrollbar { display: none; }
  .dash-metric { flex: none; }
}
.dash-weather-days > .dash-weather-day { flex: 0 0 calc((100% - 20px) / 3); scroll-snap-align: start; }
.dash-weather-days:has(> .dash-weather-day:nth-child(4)) > .dash-weather-day { flex-basis: calc((100% - 30px) / 3.25); }
@media (max-width: 640px) {
  .dash-featured-panel { align-items: stretch; }
  .dash-featured-body { width: 100%; }
  .dash-featured-metrics {
    display: grid;
    grid-template-columns: repeat(var(--metric-n, 4), minmax(0, 1fr));
    gap: 0;
    overflow: visible;
    margin-right: 0;
    padding: 0;
  }
  .dash-featured-metrics:not(:has(> [data-metric-wrap="members"]:not([hidden]))) { --metric-n: 3; }
  .dash-metric { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 4px; row-gap: 2px; align-items: center; padding: 0 8px; min-width: 0; }
  .dash-metric:first-child { padding-left: 0; }
  .dash-metric + .dash-metric::before { left: 0; }
  .dash-metric-icon { width: 16px; height: 16px; border-radius: var(--radius-sm); }
  .dash-metric-icon .icon { width: 10px; height: 10px; }
  .dash-metric-text { display: contents; }
  .dash-metric-label { grid-column: 2; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
  .dash-metric-value { grid-column: 1 / -1; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 640px) {
  .dash-featured-metrics { grid-template-columns: repeat(var(--metric-n, 4), minmax(0, max-content)); justify-content: space-between; }
  .dash-metric { padding: 0 6px; }
  .dash-metric:last-child { padding-right: 0; }
}
@media (max-width: 640px) { .dash-metric + .dash-metric { padding-left: 9px; } }
@media (min-width: 861px) {
  body:has(.app-rail [data-my-sheet]) .fb-launcher-btn { display: none; }
}
.pd-uikit gmp-place-details {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  --gmp-mat-color-surface: var(--card);
  --gmp-mat-color-on-surface: var(--text);
  --gmp-mat-color-on-surface-variant: var(--text-secondary);
  --gmp-mat-color-primary: var(--brand);
  --gmp-mat-color-outline-decorative: var(--border);
  --gmp-mat-color-neutral-container: var(--bg-sunken);
  --gmp-mat-color-secondary-container: var(--bg-sunken);
  --gmp-mat-color-on-secondary-container: var(--text);
  --gmp-mat-font-family: var(--font-sans);
}
:root[data-theme="light"] .pd-uikit gmp-place-details { color-scheme: light; }
:root[data-theme="dark"] .pd-uikit gmp-place-details { color-scheme: dark; }
.pd-uikit { margin: 0 -4px 10px; min-height: 120px; }
.pd-modal.is-uikit #pd-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd-modal.is-uikit .fb-modal-head { justify-content: flex-end; margin-bottom: 0; min-height: 0; }
.pd-modal.is-uikit { position: relative; padding: 0; overflow-x: hidden; }
.pd-modal.is-uikit .fb-modal-head { position: absolute; top: 10px; right: 10px; z-index: 2; margin: 0; }
.pd-modal.is-uikit .fb-close-btn {
  width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(14, 17, 22, 0.55); color: #fff; font-size: 20px; line-height: 1;
}
.pd-modal.is-uikit .pd-uikit { margin: 0; min-height: 0; }
.pd-uikit gmp-place-details-compact {
  width: 100%;
  border: none;
  border-radius: 0;
  --gmp-mat-color-surface: var(--card);
  --gmp-mat-color-on-surface: var(--text);
  --gmp-mat-color-on-surface-variant: var(--text-secondary);
  --gmp-mat-color-primary: var(--brand);
  --gmp-mat-color-outline-decorative: var(--border);
  --gmp-mat-color-neutral-container: var(--bg-sunken);
  --gmp-mat-color-secondary-container: var(--brand-soft);
  --gmp-mat-color-on-secondary-container: var(--brand-soft-text);
  --gmp-mat-font-family: var(--font-sans);
}
:root[data-theme="light"] .pd-uikit gmp-place-details-compact { color-scheme: light; }
:root[data-theme="dark"] .pd-uikit gmp-place-details-compact { color-scheme: dark; }
.pd-modal.is-uikit .pd-actions { margin: 0; padding: 4px 16px 16px; }
.pd-modal.is-uikit .pd-actions:empty { display: none; }
.pd-uikit.is-loading { background: var(--bg-sunken); animation: dash-weather-pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pd-uikit.is-loading { animation: none; } }
.pd-modal.is-uikit .fb-modal-head { position: static; display: flex; justify-content: flex-end; padding: 8px 8px 4px; margin: 0; }
.pd-modal.is-uikit .fb-close-btn {
  width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%;
  background: transparent; color: var(--text-muted); font-size: 22px;
}
.pd-modal.is-uikit .fb-close-btn:hover { background: var(--bg-sunken); color: var(--text); }
.pd-modal.is-uikit .pd-actions { margin: 0; padding: 12px 16px 16px; border-top: 1px solid var(--border); }
:is(.card, .dash-featured-panel):has(div.data-credit) { position: relative; }
:is(.card, .dash-featured-panel) div.data-credit { position: absolute; right: 8px; bottom: 2px; z-index: 2; }
.timeline-caption--top { margin: 0 0 10px; gap: 8px; }
.timeline-caption--bottom { justify-content: flex-end; margin-top: 10px; }
.timeline-collapse-btn { flex: none; display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.timeline-collapse-btn .icon { width: 13px; height: 13px; transform: rotate(-90deg); }
.timeline-collapse-btn:hover { color: var(--text); background: var(--border-faint); }
.dash-featured-weather { position: relative; }
.dash-featured-weather > div.data-credit { top: 3px; left: 3px; right: auto; bottom: auto; }
.dash-featured-weather > .data-credit .data-credit-btn > span { display: none; }
.dash-featured-weather > .data-credit .data-credit-links { left: 0; right: auto; top: calc(100% + 4px); bottom: auto; }
.dash-featured-weather > .data-credit .data-credit-links::after { top: auto; bottom: 100%; }
#sched-aux { display: flex; flex-direction: column; }
#sched-aux > #nearby-places-block { order: -1; padding-top: 3px; }
.ai-new-badge { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-soft-text); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; vertical-align: 1px; }
#ai-import-btn { display: inline-flex; align-items: center; gap: 4px; }
#ai-import-btn .icon-inline .icon { width: 14px; height: 14px; }
.fb-modal.ai-import-modal { width: 680px; }
.ai-import-step { margin-bottom: 14px; }
.ai-import-step-label { margin: 0 0 6px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.ai-import-step-label b { display: inline-flex; margin-right: 6px; vertical-align: 1px; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: var(--brand-contrast); font-size: 11px; }
.ai-import-step-label .muted { font-weight: 400; font-size: 12px; }
.ai-import-prompt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg-sunken); }
.ai-import-prompt-text { flex: 1; min-width: 0; margin: 0; font-family: inherit; font-size: 12px; line-height: 1.55; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; }
.ai-import-text { width: 100%; box-sizing: border-box; min-height: 140px; resize: vertical; font-size: 13px; line-height: 1.55; }
.ai-import-pdf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12px; }
.ai-import-pdf-btn { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.ai-import-city-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; font-size: 13px; }
.ai-import-city-row > span { flex: none; width: 48px; color: var(--text-secondary); }
.ai-import-city-row input { flex: 1; min-width: 0; }
.ai-import-dates-note { margin: 6px 0 0 58px; font-size: 12px; }
.ai-import-summary { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.ai-import-progress { margin: 4px 0 0; font-size: 12.5px; }
.ai-import-progress { color: var(--text-secondary); }
.ai-imp-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 6px; font-size: 13px; }
.ai-imp-stats > span { display: inline-flex; align-items: center; gap: 4px; }
.ai-imp-stats .icon, .ai-st .icon { width: 15px; height: 15px; }
.ai-st--found { color: var(--positive); }
.ai-st--choose { color: var(--text-warning); }
.ai-st--none { color: var(--danger); }
.ai-imp-list { border-top: 1px solid var(--border); }
.ai-imp-day { margin: 12px 0 2px; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.ai-imp-row { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-faint); font-size: 13.5px; }
.ai-imp-day + .ai-imp-row { border-top: 0; }
.ai-imp-row.is-off .ai-imp-name { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--border-strong); }
.ai-imp-row > .ai-st { flex: none; margin-top: 2px; }
.ai-imp-main { flex: 1; min-width: 0; }
.ai-imp-name { font-weight: 600; word-break: keep-all; overflow-wrap: anywhere; }
.ai-imp-main small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-secondary); overflow-wrap: anywhere; }
.ai-imp-time { margin-right: 6px; font-variant-numeric: tabular-nums; font-weight: 500; color: var(--text-secondary); }
.ai-imp-tag { margin-right: 6px; padding: 0 6px; border-radius: 999px; background: var(--accent-violet-soft); color: var(--accent-violet-soft-text); font-size: 11px; font-weight: 600; }
.ai-imp-select { display: block; width: 100%; margin-top: 6px; font-size: 12.5px; }
.ai-imp-ctl { flex: none; display: flex; align-items: center; }
.ai-imp-ctl input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; }
.ai-imp-opt { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-secondary); white-space: nowrap; cursor: pointer; }
.ai-imp-opt input { width: 16px; height: 16px; margin: 0; }
@media (max-width: 640px) {
  .fb-modal.ai-import-modal { padding: 18px 16px; }
  .ai-import-prompt { flex-direction: column; }
  .ai-import-dates-note { margin-left: 0; }
}
.ai-import-step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ai-import-step-head .ai-import-step-label { margin: 0; }
.ai-import-guest-limit { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--warn-border); border-radius: var(--radius-md); background: var(--warn-bg); color: var(--warn-text); font-size: 12.5px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.ai-import-guest-limit .icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.ai-import-guest-limit b { font-weight: 600; }
@media (max-width: 640px) { .ai-import-step-head { align-items: flex-start; } }
.ai-import-city-row[hidden] { display: none; }
.ai-import-guest-limit { border: 1.5px solid var(--brand); background: var(--brand-soft); color: var(--brand-soft-text); font-size: 13px; padding: 12px 14px; }
.ai-import-guest-limit b { font-size: 14px; font-weight: 700; }
.ai-import-guest-limit .icon { width: 17px; height: 17px; }
#ai-import-overlay { padding: 10px; }
#ai-import-overlay .fb-modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
.ai-import-modal .ai-import-foot { position: sticky; bottom: -22px; z-index: 1; flex-wrap: wrap; margin: 16px -22px -22px; padding: 12px 22px; background: var(--card); border-top: 1px solid var(--border-faint); }
@media (max-width: 640px) {
  .ai-import-modal .ai-import-foot { bottom: -18px; margin: 14px -16px -18px; padding: 10px 16px; }
  #ai-import-commit-login { flex: 1 1 100%; order: 3; }
}
.sched-empty-card { -webkit-appearance: none; appearance: none; }
.sched-empty-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 2px 4px; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.sched-empty-chips::-webkit-scrollbar { display: none; }
.sched-empty-chip { flex: none; }
.sched-empty-outs { margin-top: 26px; padding-top: 0; border-top: 0; gap: 0; }
.sched-empty-outs-label { padding-bottom: 4px; }
.sched-empty-card { align-items: center; gap: 12px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--border-subtle); border-radius: 0; background: none; }
.sched-empty-card:last-child { border-bottom: 0; }
.sched-empty-card:hover { border-color: var(--border-subtle); background: var(--bg-sunken); }
.sched-empty-card-icon { margin-top: 0; }
.sched-empty-card-icon .icon { width: 20px; height: 20px; }
.sched-empty-card-title { font-size: 15px; }
.sched-empty-card-sub { margin-top: 1px; font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sched-empty-card-go { margin-top: 0; }
.expense-pay-row { display: flex; align-items: center; gap: 8px; }
.expense-pay-row[hidden] { display: none; }
.expense-pay-chips { display: flex; gap: 6px; flex: 1; min-width: 0; }
.expense-pay-chips .expense-filter-chip.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-soft-text);
  box-shadow: 0 0 0 1px var(--brand);
}
.expense-pay-chips .expense-filter-chip.selected .icon { color: var(--brand-soft-text); }
.expense-row-pay { display: inline-flex; align-items: center; gap: 3px; vertical-align: -2px; }
.expense-row-pay .icon { width: 13px; height: 13px; }
.expense-pay-total { margin: -6px 0 12px; font-size: 13px; color: var(--text-secondary); }
.pd-affiliate-btn .item-row-affiliate-short { display: none; }
.sms-list { display: flex; flex-direction: column; margin-top: 6px; }
.sms-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
.sms-row:last-child { border-bottom: 0; }
.sms-row.is-off .sms-main, .sms-row.is-off .sms-side { opacity: 0.5; }
.sms-main { min-width: 0; }
.sms-modal .sms-merchant { display: block; width: 100%; height: auto; min-height: 0; padding: 2px 0; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: none; box-shadow: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-overflow: ellipsis; }
.sms-modal .sms-merchant:focus { outline: 0; border-bottom-color: var(--brand); }
.sms-meta { margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.sms-flag { color: var(--warning-text, var(--text-secondary)); font-weight: 600; }
.sms-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sms-amount { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sms-cat { display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 6px 0 8px; border: 0; border-radius: var(--radius-sm); background: var(--bg-sunken); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.sms-cat .icon { width: 14px; height: 14px; color: var(--text-muted); flex: none; }
.sms-ta > textarea { min-height: 168px; font-size: 15px; }
.sms-modal .ai-import-foot.ui-dialog__btns { flex-wrap: nowrap; justify-content: stretch; }
.sms-modal .ai-import-foot > .ui-btn--quiet { flex: 0 0 96px; }
.sms-cat-sheet .row-state .icon { width: 18px; height: 18px; color: var(--brand-fg); }
.dash-footprint-share { margin: 0 0 0 auto; font-size: 12.5px; font-weight: 500; }
.dash-footprint-share[hidden] { display: none; }
#triple-import-btn { display: inline-flex; align-items: center; gap: 4px; }
#triple-import-btn[hidden] { display: none; }
#triple-import-btn .icon-inline .icon { width: 14px; height: 14px; }
.triple-steps { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.triple-steps li + li { margin-top: 4px; }
.triple-link-row { display: block; }
.triple-link-row input { width: 100%; box-sizing: border-box; }
.ai-import-flight-note { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.ai-import-flight-note .icon { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.ai-st--found .icon { color: inherit; }
.tmv-done { text-align: center; padding: 8px 0 4px; }
.tmv-done__ok { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 32px; background: color-mix(in srgb, var(--positive) 14%, transparent); color: var(--positive); }
.tmv-done__ok svg { width: 32px; height: 32px; }
.tmv-done h2 { margin: 0 0 4px; font-size: 22px; }
.tmv-done p { margin: 0 0 20px; font-size: 14px; color: var(--text-muted); }
.tmv-done .ui-btn + .ui-btn { margin-top: 8px; }
.tmv-done p.tmv-done__note { margin: -12px 0 20px; font-size: 13px; color: var(--warn-text); text-wrap: pretty; }
.tmv-done .tmv-how { margin-top: 10px; }
.dash-worldmap-head { gap: 5px !important; }
.dash-worldmap-head .icon-inline { margin-right: 0; }
.dash-worldmap-head .dash-country-badge { margin-left: 4px; }
.dash-worldmap-head .dash-footprint-share { gap: 5px; margin: 0 0 0 auto; padding: 4px 2px; }
.dash-worldmap-head .dash-footprint-share .icon-inline { margin-right: 0; }
.my-theme .theme-menu-label:first-child { margin-top: 0; }
.my-theme .theme-menu-label { display: none; }
.my-langs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.my-lang { padding: 9px 4px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-lang.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-soft-text); font-weight: 600; }
.app-header-back { display: none; }
.app-header-titles, .app-header-meta { display: contents; }
.app-header-more .icon { width: 18px; height: 18px; }
.app-auth-area:empty { display: none; }
@media (max-width: 860px) {
  .app-shell .app-header { flex-wrap: nowrap; gap: 4px; padding: 6px 8px 6px 2px; min-height: 56px; }
  .app-shell .app-header-left { width: auto; flex: 1 1 auto; min-width: 0; gap: 0; }
  .app-shell .app-header-right { width: auto; flex: none; gap: 2px; }
  .app-shell .app-header-back { display: grid; place-items: center; width: 36px; height: 44px; flex: none; color: var(--text); border-radius: var(--radius-md); }
  .app-shell .app-header-back .icon-inline { margin: 0; }
  .app-shell .app-header-back .icon { width: 22px; height: 22px; }
  .app-shell .app-header-titles { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1 1 auto; }
  .app-shell .app-title-group { width: 100%; }
  .app-shell .app-title-group .trip-title-input { font-size: 16px; padding: 0 2px; height: 24px; }
  .app-shell .app-title-chevron-btn { display: none; }
  .app-shell .app-header-meta { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
  .app-shell .app-header-meta .app-date-btn { padding: 0 2px; font-size: 11.5px; height: 18px; color: var(--text-muted); border: 0; background: none; }
  .app-shell .app-header-meta #trip-status-badge .status-badge,
  .app-shell .app-header-meta .save-status { font-size: 10.5px; padding: 0 6px; height: 18px; line-height: 16px; }
  .app-shell .app-header-right .btn:not(.popover .btn) { height: 40px; min-width: 40px; padding: 0 9px; border-color: transparent; background: none; }
  .app-shell .app-header-right .btn:not(.popover .btn):hover { background: var(--bg-sunken); }
  .app-shell .app-header-right .icon { width: 20px; height: 20px; }
  .app-shell #members-btn { padding: 0 7px; gap: 1px; }
  .app-body { padding-bottom: 80px; }
  body:has(#trip-bottom-tabbar) .fb-launcher-btn { display: none; }
}
.trip-bottom-tabbar button, .app-rail-btn { position: relative; }
.tab-badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.tab-badge[hidden] { display: none; }
.prep-seg {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 14px;
  border-radius: var(--radius-md); background: var(--bg-sunken);
}
.prep-seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border: 0; border-radius: var(--radius); background: none; color: var(--text-muted);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.prep-seg button .icon-inline { margin: 0; }
.prep-seg button.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) {
  .prep-seg { display: flex; }
  .prep-seg button { flex: 1; justify-content: center; padding: 0 8px; font-size: 13.5px; }
}
.chat-panel { max-width: 760px; margin: 0 auto; }
.chat-head { margin: 4px 0 14px; }
.chat-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.chat-title .icon-inline { margin: 0; color: var(--brand-fg); }
.chat-sub { margin: 0; color: var(--text-muted); font-size: 13.5px; text-wrap: pretty; }
.day-add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 4px; }
.day-add-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 42px; padding: 0 8px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-card); background: none;
  color: var(--text-secondary, var(--text)); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.day-add-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-add-btn .icon { width: 16px; height: 16px; flex: none; }
.day-add-btn:first-child { border-style: solid; border-color: var(--brand); color: var(--brand-fg); background: var(--brand-soft); }
.day-add-btn:hover { background: var(--bg-sunken); }
.day-add-btn:first-child:hover { background: var(--brand-soft); filter: brightness(.97); }
@media (max-width: 860px) {
  .app-body.map-view { padding-bottom: 64px; }
  .app-shell .app-header-meta .save-status { border: 0; padding: 0; background: none; }
  .app-shell .app-header-meta .save-status-label { display: none; }
  .app-shell .app-header-meta .save-status .icon { width: 14px; height: 14px; }
}
@media (max-width: 640px) {
  .day-add-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .day-add-btn { font-size: 12.5px; gap: 4px; padding: 0 4px; }
  .day-add-btn .icon { width: 14px; height: 14px; }
}
.share-memo-row { display: block; padding: 6px 0 6px 24px; border-top: 0; }
.chat-dock-close, .chat-win-btn, .chat-resize { display: none; }
@media (min-width: 861px) {
  body.chat-docked .app-body #tab-panel-chat { display: flex; flex-direction: column; position: fixed; z-index: 40; padding: 14px; background: var(--card); }
  body.chat-side .app-body #tab-panel-chat { top: var(--chat-side-top, 68px); right: 0; bottom: 0; width: var(--chat-side-w); border-left: 1px solid var(--border); }
  body.chat-side .app-body { margin-right: var(--chat-side-w); }
  body.chat-side #tab-panel-sched .trip-col-main { flex: 0 0 var(--sched-list-w, 50%); max-width: none; }
  body.chat-float .app-body #tab-panel-chat { border: 1px solid var(--border); border-radius: var(--radius-panel); box-shadow: 0 18px 50px -12px rgba(14, 17, 22, 0.32); }
  body.chat-float #tab-panel-chat .chat-head { cursor: move; user-select: none; -webkit-user-select: none; touch-action: none; }
  body.chat-float .chat-resize { display: block; position: absolute; z-index: 2; touch-action: none; }
  body.chat-float .chat-resize--bottom { left: 12px; right: 22px; bottom: -4px; height: 12px; cursor: ns-resize; }
  body.chat-float .chat-resize--corner { right: -2px; bottom: -2px; width: 22px; height: 22px; cursor: nwse-resize; }
  body.chat-float .chat-resize--corner::after { content: ""; position: absolute; right: 6px; bottom: 6px; width: 9px; height: 9px; border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint); border-bottom-right-radius: 3px; }
  body.chat-win-busy { user-select: none; -webkit-user-select: none; cursor: grabbing; }
  body.chat-win-busy iframe, body.chat-win-busy #map { pointer-events: none; }
  body.chat-snap-hint::after { content: ""; position: fixed; z-index: 39; top: var(--chat-side-top, 68px); right: 0; bottom: 0; width: var(--chat-side-w); background: color-mix(in oklch, var(--brand) 14%, transparent); border-left: 2px dashed var(--brand); pointer-events: none; }
  body.chat-docked #tab-panel-chat .chat-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: none; margin: 0; width: 100%; }
  body.chat-docked #tab-panel-chat .chat-head { position: relative; margin: 0 0 10px; padding-right: 72px; }
  body.chat-docked #tab-panel-chat .chat-title { font-size: 17px; }
  body.chat-docked #tab-panel-chat .chat-sub { font-size: 12.5px; }
  body.chat-docked #tab-panel-chat #comments-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body.chat-docked #tab-panel-chat .chat-box { flex: 1; min-height: 0; max-height: none; }
  body.chat-docked .chat-dock-close, body.chat-docked .chat-win-btn { display: inline-grid; place-items: center; position: absolute; top: -4px; right: -4px; width: 34px; height: 34px; padding: 0; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-muted); cursor: pointer; }
  body.chat-docked .chat-win-btn { right: 32px; }
  body.chat-docked .chat-win-btn[hidden] { display: none; }
  body.chat-docked .chat-dock-close:hover, body.chat-docked .chat-win-btn:hover { background: var(--bg-sunken); color: var(--text); }
  body.chat-docked .chat-dock-close .icon-inline, body.chat-docked .chat-win-btn .icon-inline { margin: 0; }
  body.chat-docked .chat-win-btn .icon { width: 17px; height: 17px; }
  .app-rail-btn.is-docked { background: var(--brand-soft); color: var(--brand-fg); }
}
.pd-item-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.pd-item-act { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.pd-item-act:hover { border-color: var(--brand); color: var(--brand-fg); }
.pd-item-act .icon { width: 15px; height: 15px; }
.pd-item-act.is-danger { color: var(--danger); }
.pd-item-act.is-danger:hover { border-color: var(--danger); color: var(--danger); }
.pd-modal.is-uikit .pd-item-actions { margin: 0; padding: 10px 16px 16px; }
.pd-modal.is-uikit .pd-actions:has(+ .pd-item-actions) { padding-bottom: 10px; }
.dash-newtrip-row { display: flex; margin-top: 14px; }
.dash-hero--compact .dash-newtrip-row { margin-top: 10px; }
.dash-newtrip-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; font-weight: 600; }
.dash-newtrip-btn .icon-inline { margin: 0; }
.app-sheet.nt-sheet { display: flex; flex-direction: column; min-height: min(560px, 80dvh); }
@media (min-width: 641px) { .app-sheet.nt-sheet { width: min(480px, 100%); } }
.app-sheet.nt-sheet > .app-sheet-body { flex: 1; display: flex; flex-direction: column; }
.nt-wrap { flex: 1; display: flex; flex-direction: column; }
.nt-head { display: flex; align-items: center; gap: 8px; }
.nt-head-text { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.nt-head-text b { font-size: 17px; }
.nt-head-text span { font-size: 12.5px; color: var(--text-muted); }
.nt-steps { display: flex; gap: 6px; margin: 10px 0 18px; }
.nt-steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.nt-steps i.is-on { background: var(--brand); }
.nt-body { flex: 1; }
.nt-q { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.nt-city-input { display: flex; gap: 8px; }
.nt-city-input input { flex: 1; min-width: 0; height: 44px; font-size: 16px; }
.nt-city-input .btn { flex: none; height: 44px; }
.nt-cities { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.nt-cities:empty { display: none; }
.nt-city-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-soft-text); font-size: 14px; font-weight: 600; }
.nt-city-chip b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; }
.nt-city-chip button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.nt-city-chip button .icon { width: 14px; height: 14px; }
.nt-hint { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.55; text-wrap: pretty; }
.nt-popular { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.nt-blank { display: inline-block; margin-top: 18px; font-size: 13px; }
.nt-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nt-dates label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--text-muted); }
.nt-dates input, .nt-leg input { height: 44px; font-size: 15px; }
.nt-legs { display: flex; flex-direction: column; gap: 10px; }
.nt-leg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.nt-leg-city { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; font-size: 14px; }
.nt-leg-city span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; }
.nt-choice { display: flex; flex-direction: column; gap: 8px; }
.nt-error { margin: 10px 0 0; }
.nt-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; }
.nt-foot .btn { height: 42px; min-width: 96px; justify-content: center; }
.nt-head .de-x { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-muted); cursor: pointer; }
.nt-head .de-x:hover { background: var(--bg-sunken); color: var(--text); }
.nt-head .de-x .icon { width: 20px; height: 20px; }
.rail-me-face { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.rail-me-face.has-face { font-size: 13px; font-weight: 700; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--border); }
.rail-me-face .icon-inline { margin: 0; }
.app-rail-me:hover .rail-me-face.has-face { box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--brand); }
#trip-avatar-stack[hidden] { display: none; }
@media (pointer: coarse), (max-width: 860px) {
  .map-scope-btn::after, .gd-legend::after { content: ""; position: absolute; inset: -7px 0; }
}
.sched-empty-courses { margin: 22px 0 0; }
.sched-empty-courses[hidden] { display: none; }
.invite-nudge { display: flex; align-items: center; gap: 12px; width: 100%; margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--border-accent, var(--brand)); border-radius: var(--radius-card); background: var(--brand-soft); color: var(--brand-soft-text, var(--brand)); text-align: left; cursor: pointer; }
.invite-nudge[hidden] { display: none; }
.invite-nudge .icon { width: 18px; height: 18px; flex: none; }
.invite-nudge .icon-inline { margin: 0; }
.invite-nudge-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.invite-nudge-text b { font-size: 14px; font-weight: 600; }
.invite-nudge-text span { font-size: 12.5px; opacity: .85; }
.invite-nudge-go .icon { width: 16px; height: 16px; opacity: .7; }
.invite-nudge--bar { margin: 0 0 8px; padding: 0; gap: 0; cursor: default; }
.invite-nudge-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px 0 12px; border: 0; background: none; color: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.invite-nudge-main .invite-nudge-go { margin-left: auto; }
.invite-nudge-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-left: 1px solid color-mix(in oklch, currentColor 18%, transparent); background: none; color: inherit; cursor: pointer; }
.invite-nudge-x .icon { width: 15px; height: 15px; }
.dash-today { margin-top: 12px; padding: 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--bg-sunken); }
.dash-today[hidden] { display: none; }
.dash-today-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.dash-today-head b { font-size: 14px; }
.dash-today-head span { color: var(--text-muted); font-size: 12px; }
.dash-today-next { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--card); color: var(--text); text-decoration: none; }
.dash-today-next:hover { border-color: var(--border); }
.dash-today-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; color: #fff; font-size: 12.5px; font-weight: 700; }
.dash-today-next.is-done .dash-today-num { opacity: 0.55; }
.dash-today-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.dash-today-label { font-size: 12.5px; font-weight: 600; color: var(--brand-fg); font-variant-numeric: tabular-nums; }
.dash-today-next.is-done .dash-today-label { color: var(--text-muted); }
.dash-today-title { font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.dash-today-next.is-done .dash-today-title { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.dash-today-leg { font-size: 12.5px; color: var(--text-muted); text-wrap: pretty; }
.dash-today-rest { margin-top: 8px; font-size: 12.5px; color: var(--text-muted); text-align: left; overflow-wrap: anywhere; }
.dash-today-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dash-today-actions .btn { gap: 5px; }
.dash-today-actions .btn .icon { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .dash-today-actions { flex-wrap: nowrap; }
  .dash-today-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 0; padding-left: 6px; padding-right: 6px; white-space: nowrap; font-size: 13px; }
  .dash-today-actions .btn .icon { display: none; }
}
.flash-focus { animation: flash-focus 2s ease-out 1; }
@media (prefers-reduced-motion: reduce) { .flash-focus { animation: none; outline: 2px solid var(--brand); } }
.expense-row .expense-row-actions { display: none; }
.expense-row[data-open-expense] { cursor: pointer; border-radius: var(--radius-md); }
.expense-row[data-open-expense]:hover { background: var(--bg-sunken); }
@media (max-width: 860px) { .expense-row { flex-wrap: nowrap; row-gap: 0; } }
.expense-sheet-sub { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.expense-stack-head { justify-content: space-between; align-items: center; gap: 8px; }
.expense-stack-head .card-link-btn { min-height: var(--ctl-h-sm); margin: 0; }
@media (max-width: 860px) {
  .expense-group-head { min-height: 34px; padding-bottom: 4px; }
  #expense-sms-btn { min-height: var(--ctl-h-sm); }
  .ck-linkbtn { position: relative; }
  .ck-linkbtn::after { content: ""; position: absolute; inset: -9px -6px; }
}
@media (max-width: 640px) {
  .fb-overlay:has(> .vc-modal), .fb-overlay:has(> .mm-modal), .fb-overlay:has(> .ck-modal) { align-items: flex-end; padding: 0; }
  .fb-overlay > .vc-modal, .fb-overlay > .mm-modal, .fb-overlay > .ck-modal { width: 100%; max-width: 100%; max-height: 92dvh; border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation: sheet-up 0.2s ease; }
}
@media (prefers-reduced-motion: reduce) { .fb-overlay > .vc-modal, .fb-overlay > .mm-modal, .fb-overlay > .ck-modal { animation: none; } }
@media (min-width: 861px) {
  body.chat-side .sched-list .day-group > .sched-summary.is-inline > .sched-summary-item { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body.chat-side .sched-list .day-group > .sched-summary.is-inline > .day-edit-btn { flex: none; margin-left: auto; }
}
.lbl-s, #tab-panel-voucher .vc-drop__title-short, #tab-panel-voucher .vc-drop__hint-short { display: none; }
@media (max-width: 640px) {
  .lbl-l { display: none; }
  .lbl-s { display: inline; }
  #tab-panel-voucher .vc-filters, #tab-panel-etc .mm-filters, #tab-panel-checklist .ck-summary__cats, #tab-panel-checklist .ck-filters, .expense-filter-row, .expense-legend {
    flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-right: 18px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent);
  }
  #tab-panel-voucher .vc-filters::-webkit-scrollbar, #tab-panel-etc .mm-filters::-webkit-scrollbar, #tab-panel-checklist .ck-summary__cats::-webkit-scrollbar, #tab-panel-checklist .ck-filters::-webkit-scrollbar, .expense-filter-row::-webkit-scrollbar, .expense-legend::-webkit-scrollbar { display: none; }
  #tab-panel-voucher .vc-filters > *, #tab-panel-etc .mm-filters > *, #tab-panel-checklist .ck-summary__cats > *, #tab-panel-checklist .ck-filters > *, .expense-filter-row > *, .expense-legend > * { flex: none; white-space: nowrap; }
  #tab-panel-voucher .vc-toolbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; margin-bottom: 10px; }
  #tab-panel-voucher .vc-toolbar > .vc-filters { display: flex; flex: 1 1 0; min-width: 0; gap: 5px; }
  #tab-panel-voucher .vc-toolbar .vc-chip, #tab-panel-voucher .vc-toolbar .vc-chip:nth-child(n + 4) { order: 0; }
  #tab-panel-voucher .vc-toolbar::after { content: none; }
  #tab-panel-voucher #voucher-add-open-btn { order: 0; margin-left: 0; flex: none; }
  #tab-panel-voucher .vc-drop { flex-wrap: nowrap; gap: 10px; margin-top: 12px; padding: 10px 12px; }
  #tab-panel-voucher .vc-drop__text { flex: 1 1 0; flex-basis: 0; min-width: 0; gap: 1px; }
  #tab-panel-voucher .vc-drop .vc-drop__title-drag, #tab-panel-voucher .vc-drop .vc-drop__title-touch, #tab-panel-voucher .vc-drop .vc-drop__hint { display: none; }
  #tab-panel-voucher .vc-drop .vc-drop__title-short { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #tab-panel-voucher .vc-drop .vc-drop__hint-short { display: block; font-size: 12px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #tab-panel-checklist .ck-summary { gap: 8px; padding: 12px 14px; margin-bottom: 10px; }
  #tab-panel-checklist .ck-summary__top { flex-wrap: nowrap; align-items: center; gap: 8px; }
  #tab-panel-checklist .ck-summary__main { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  #tab-panel-checklist .ck-summary__num { margin-top: 0; font-size: 20px; line-height: 1.2; }
  #tab-panel-checklist .ck-summary__pct { margin-left: 6px; font-size: 13px; }
  #tab-panel-checklist .ck-summary__note { flex: none; max-width: none; font-size: 12.5px; white-space: nowrap; }
  #tab-panel-checklist .ck-summary__hint { display: none; }
  #tab-panel-checklist .ck-toolbar { flex-wrap: nowrap; gap: 8px; margin-bottom: 10px; }
  #tab-panel-checklist .ck-toolbar > .ck-filters { flex: 1 1 0; min-width: 0; }
  #tab-panel-checklist .ck-toolbar > .ck-toolbar__btns { flex-wrap: nowrap; flex: none; gap: 6px; }
  #tab-panel-etc .mm-toolbar { flex-wrap: nowrap; gap: 8px; margin-bottom: 8px; }
  #tab-panel-etc .mm-toolbar > .mm-search { flex: 1 1 0; max-width: none; }
  #tab-panel-etc .mm-filters { margin-bottom: 10px; }
  #tab-panel-expense .expense-main > .card:first-child { position: relative; }
  .expense-display-currency-row { position: absolute; top: 14px; right: 14px; margin: 0 !important; z-index: 1; }
  .expense-display-currency-row > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .expense-display-currency-row > select { flex: none !important; width: 84px; min-height: var(--ctl-h-sm); height: var(--ctl-h-sm); padding-top: 0; padding-bottom: 0; }
  .expense-summary-row { gap: 8px; }
  .expense-summary-metrics { gap: 14px; padding-right: 96px; min-height: 44px; }
  .expense-metric-value.is-big { font-size: 24px; }
  .expense-summary-actions { flex: 1 1 100%; flex-wrap: nowrap; gap: 6px; }
  .expense-summary-actions > #expense-add-toggle { flex: 1 1 0; justify-content: center; }
  .expense-summary-actions > .btn { white-space: nowrap; }
  .expense-legend { gap: 10px; margin-top: 8px; margin-bottom: 10px; }
  .expense-filter-row { margin: 0 0 10px; }
  #tab-panel-expense .card:has(#expense-list > .empty-state) .expense-stack-head { display: none; }
  #tab-panel-expense #expense-list > .empty-state { padding: 18px 14px; }
  .app-body #tab-panel-chat.active { display: flex; flex-direction: column; height: 100%; padding-top: 10px; padding-bottom: 8px; }
  #tab-panel-chat .chat-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; width: 100%; }
  #tab-panel-chat .chat-head { margin-bottom: 8px; }
  #tab-panel-chat .chat-sub { display: none; }
}
@media (max-width: 640px) {
  #tab-panel-checklist .side-layout { grid-template-columns: minmax(0, 1fr); }
  #tab-panel-checklist .side-layout-main, #tab-panel-checklist .ck-summary, #tab-panel-checklist .ck-summary > *, #tab-panel-checklist .ck-toolbar, #tab-panel-etc .mm-filters, #tab-panel-voucher .vc-toolbar { min-width: 0; max-width: 100%; }
  #tab-panel-expense .expense-main, #tab-panel-expense .expense-main > .card, .expense-legend, .expense-filter-row { min-width: 0; max-width: 100%; }
}
@media (max-width: 640px) {
  #tab-panel-voucher .empty-state, #tab-panel-etc .empty-state, #tab-panel-checklist .empty-state, #tab-panel-expense .empty-state { padding: 16px 14px; }
  #tab-panel-voucher .empty-state .empty-state-icon, #tab-panel-etc .empty-state .empty-state-icon, #tab-panel-expense .empty-state .empty-state-icon { margin-bottom: 6px; }
  #tab-panel-voucher .empty-state .empty-state-icon .icon, #tab-panel-etc .empty-state .empty-state-icon .icon, #tab-panel-expense .empty-state .empty-state-icon .icon { width: 24px; height: 24px; }
}
@media (max-width: 860px) {
  .app-body.map-view:not(:has(> #tab-panel-sched.active)) { overflow-y: auto; }
}
@media (min-width: 861px) {
  .dash-featured-panel { align-items: stretch; }
  .dash-featured-body { justify-content: center; }
  .dash-featured-map { height: auto; min-height: 232px; }
  .dash-featured-metrics { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; }
  .dash-featured-metrics > .dash-metric { padding: 0 16px; min-width: 0; }
  .dash-featured-metrics > .dash-metric:first-child { padding-left: 0; }
  .dash-featured-metrics > .dash-metric + .dash-metric::before { left: 0; }
  .dash-hero--compact.dash-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
  .dash-hero--compact.dash-hero > .dash-search-row { flex: 1 1 320px; }
  .dash-hero--compact.dash-hero > .dash-newtrip-row { flex: none; margin: 0; }
  .dash-hero--compact.dash-hero > .dash-newtrip-row .dash-newtrip-btn { height: 44px; padding: 0 16px; }
  .dash-hero--compact.dash-hero > :not(.dash-search-row):not(.dash-newtrip-row) { flex: 1 0 100%; }
}
@media (max-width: 640px) {
  #tab-panel-expense .expense-summary-metrics { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 8px; min-width: 0; }
  #tab-panel-expense .expense-summary-metrics > :first-child { flex: 1 0 100%; padding-right: 96px; min-width: 0; }
  #tab-panel-expense .expense-summary-metrics > * { min-width: 0; }
  #tab-panel-expense .expense-main > .card:last-child { margin-bottom: 0; }
  #tab-panel-voucher .vc-filters, #tab-panel-etc .mm-filters, #tab-panel-checklist .ck-filters, #tab-panel-checklist .ck-summary__cats,
  #tab-panel-expense .expense-filter-chips, #tab-panel-expense .expense-legend { padding-top: 2px; padding-bottom: 2px; margin-top: -2px; margin-bottom: -2px; }
}
.chat-sub { text-wrap: balance; word-break: keep-all; }
.ck-card.is-empty .ck-card__count, .ck-card.is-empty .ck-card__badge { display: none; }
.ck-card.is-empty .ck-items { display: none; }
.sched-summary-weather .weather-icon .icon.wx-icon { width: 18px; height: 18px; }
.dash-weather-day .weather-icon .icon.wx-icon { width: 26px; height: 26px; }
@media (min-width: 861px) {
  .dash-featured-map { flex: 0 0 auto; width: auto; aspect-ratio: 320 / 232; max-width: 42%; min-width: 320px; }
}
.dash-featured-top { min-height: 32px; }
.dash-featured-top > .dash-featured-actions--top { margin: 0 0 0 auto; gap: 6px; flex: none; }
.dash-featured-edit { display: inline-flex; align-items: center; gap: 5px; }
.dash-featured-edit .icon { width: 14px; height: 14px; }
.dash-card-menu a.dash-card-menu-item { text-decoration: none; color: inherit; }
.dash-newtrip-btn { background: transparent; border-color: transparent; color: var(--text-secondary); font-weight: 500; gap: 4px; }
.dash-newtrip-btn:hover { background: var(--bg-sunken); border-color: transparent; color: var(--text); }
.dash-newtrip-btn .dash-newtrip-caret .icon { width: 14px; height: 14px; }
@media (min-width: 861px) {
  .dash-featured-panel > .dash-featured-map { align-self: center; flex: 0 0 clamp(320px, 38%, 440px); width: clamp(320px, 38%, 440px); max-width: none; min-width: 0; min-height: 0; height: auto; aspect-ratio: 320 / 232; }
}
.t-card { font-size: var(--t-card); font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; margin: 0; }
.t-sub { font-size: var(--t-sub); color: var(--text-muted); line-height: 1.45; margin: 0; }
.t-tag { font-size: var(--t-tag); font-weight: 600; line-height: 1.3; margin: 0; }
.t-num { font-variant-numeric: tabular-nums; }
.t-say { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; margin: 0; text-wrap: balance; }
.t-say em { font-style: normal; color: var(--brand-fg); }
.ui-tabs__end { margin-left: auto; align-self: center; padding: 0 !important; box-shadow: none !important; }
.ui-row__end { text-align: right; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; flex: none; }
.ui-row__end > b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.ui-row--dense { padding: 5px 0; border-bottom: 0; }
.ui-row--danger, .ui-row--danger .ui-row__main > b, .ui-row--danger > svg { color: var(--alert); }
.ui-thumb--lg { width: 56px; height: 56px; border-radius: 10px; }
.ui-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--k, var(--text-muted)); color: #fff; display: inline-grid; place-items: center; flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ui-dot svg, .ui-dot .icon-inline { width: 17px; height: 17px; margin: 0; }
.ui-dot--sm { width: 24px; height: 24px; font-size: 12px; }
.ui-dot--sm svg { width: 14px; height: 14px; }
.ui-tag { display: inline-block; font-size: 11px; font-weight: 700; line-height: 1.3; padding: 2px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-fg); vertical-align: 1px; white-space: nowrap; }
.ui-tag--muted { background: var(--bg-sunken); color: var(--text-muted); }
.ui-radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.ui-radio:checked { box-shadow: inset 0 0 0 6.5px var(--brand); }
.ui-switch { width: 44px; height: 26px; border-radius: 13px; background: var(--border-strong); transition: background 0.15s; }
.ui-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.ui-switch:checked { background: var(--brand); }
.ui-switch:checked::after { left: 21px; }
@media (prefers-reduced-motion: reduce) {
  .ui-switch, .ui-switch::after { transition: none; }
}
.ui-hint { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--brand-soft); }
.ui-hint > svg { color: var(--brand-fg); flex: none; }
.ui-sum__n { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; font-variant-numeric: tabular-nums; margin: 0; }
.ui-bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--border); }
.ui-bar > i { display: block; background: var(--k, var(--brand)); border-radius: 2px; }
@media (min-width: 861px) {
  body:has(.app-rail) .toast { left: 96px; }
}
.fb-modal-head { min-height: 52px; margin-bottom: 6px; }
.fb-modal-head h2 { font-size: 19px; font-weight: 800; }
@media (max-width: 640px) {
  .fb-modal-head { position: sticky; top: 0; z-index: 2; background: var(--card); min-height: 54px; margin: 0 -12px 8px; }
  .fb-modal-head h2 { flex: 1; text-align: center; font-size: 17px; }
  .fb-modal-head .fb-close-btn { order: -1; margin: 0; }
  .fb-modal-head::after { content: ""; width: 40px; flex: none; }
}
@media (max-width: 640px) {
  body.has-app-view header.topbar { display: none; }
}
body.has-app-view #logged-in-view, body.has-app-view #logged-out-view { display: none !important; }
#app-view[hidden] { display: none; }
.av-wrap { max-width: 560px; margin: 0 auto; padding-bottom: 24px; }
@media (max-width: 640px) { #app-view.container { padding: 0 var(--gutter) 88px; } }
.av-sub { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; height: 54px; margin: 0 -8px; }
.av-sub b { text-align: center; font-size: 17px; font-weight: 800; }
.av-group { padding: 22px 0 2px; }
.av-row-val { font-size: 14px; color: var(--text-muted); flex: none; }
.av-row--plain .ui-row__main > b, .av-row--plain > .icon { color: var(--alert); }
.av-me { display: flex; align-items: center; gap: 14px; padding: 2px 0 14px; }
.av-me .ui-row__main > b { font-size: 19px; font-weight: 800; }
.av-face { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--brand-contrast); display: grid; place-items: center; font-size: 20px; font-weight: 700; flex: none; }
.av-stats { display: flex; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 67px; }
.av-stats a { flex: 1; text-align: center; padding: 11px 0; font-size: 12.5px; color: var(--text-muted); text-decoration: none; }
.av-stats a + a { box-shadow: -1px 0 0 var(--border); }
.av-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.av-login { margin-top: 2px; }
.av-empty { padding-top: 4px; }
.av-slot { display: none; }
.av-note { padding: 8px 0 0; }
.av-pick .av-row:last-child { border-bottom: 0; }
.av-pick .ui-radio { pointer-events: none; }
.av-thumb { object-fit: cover; }
#logged-in-view.mt-on > :not(#mytrips):not(.app-footer) { display: none !important; }
#mytrips { max-width: 960px; margin: 0 auto; padding-bottom: 96px; }
.mt-title { padding: 22px 0 16px; }
.mt-hero { position: relative; height: 248px; border-radius: var(--radius-frame); overflow: hidden; background: var(--bg-sunken); }
.mt-hero--none { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--bg-sunken)), var(--bg-sunken)); }
.mt-hero__link { position: absolute; inset: 0; display: block; }
.mt-hero__link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-hero:not(.mt-hero--none)::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(8, 12, 20, 0.78)); pointer-events: none; }
.mt-hero__pill { position: absolute; left: 14px; top: 14px; z-index: 1; background: rgba(8, 12, 20, 0.5); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; pointer-events: none; }
.mt-hero__more { position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(8, 12, 20, 0.45); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.mt-hero__more .icon { width: 22px; height: 22px; }
.mt-hero__b { position: absolute; left: 18px; right: 16px; bottom: 16px; z-index: 1; color: #fff; pointer-events: none; }
.mt-hero--none .mt-hero__b { color: var(--text); }
.mt-hero--none .mt-hero__pill { background: var(--text); color: var(--bg); }
.mt-hero--none .mt-hero__more { background: var(--card); color: var(--text); }
.mt-hero__b h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.mt-hero__b p { margin: 2px 0 0; font-size: 14px; opacity: 0.9; font-variant-numeric: tabular-nums; }
.mt-under { min-height: 66px; }
.mt-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.mt-under > .mt-line:first-child, .mt-under > .mt-pc-only:first-child .mt-line { margin-top: 0; }
.mt-line > .icon { width: 24px; height: 24px; color: var(--brand-fg); flex: none; }
.mt-line .ui-row__main { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-line .ui-row__main > b { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.mt-line .ui-row__chev .icon { width: 20px; height: 20px; color: var(--text-faint); }
.mt-pc-only { display: none; }
.mt-sec { padding: 26px 0 8px; font-size: 17px; font-weight: 800; }
.mt-row { display: flex; align-items: center; gap: 4px; }
.mt-row__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--text); text-decoration: none; }
.mt-thumb { object-fit: cover; }
.mt-more { margin-right: -8px; color: var(--text-faint); }
.mt-today { padding: 16px 0 4px; }
.mt-today__k { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 15px; }
.mt-today__k b { font-weight: 800; }
.mt-today__k span { font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.mt-today__n { display: flex; align-items: center; gap: 12px; padding: 12px 0 10px; color: var(--text); text-decoration: none; }
.mt-today__n .ui-row__main { font-size: 12.5px; white-space: normal; }
.mt-today__n .ui-row__main > b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; white-space: normal; }
.mt-today__r { margin: 0; font-size: 13px; color: var(--text-muted); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mt-today__b { display: flex; gap: 8px; padding-top: 12px; }
.mt-today__b > * { flex: 1; text-decoration: none; }
.mt-empty { padding: 8px 0 0; }
.mt-empty__s { color: var(--text-muted); margin-top: 4px; }
.mt-empty__btn { margin-top: 20px; }
@media (max-width: 640px) { body:has(#logged-in-view.mt-on) header.topbar { display: none; } .mt-title { padding-top: 22px; } }
@media (min-width: 641px) { .mt-dock { display: none; } #mytrips { padding-bottom: 32px; } }
@media (min-width: 861px) {
  .mt-top { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
  .mt-pc-only { display: block; }
  .mt-under { border-top: 1px solid var(--border); }
  .mt-under:empty { border-top: 0; }
  .mt-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
.fp-lent { border: 0 !important; padding: 0 !important; box-shadow: none !important; background: none !important; }
.app-sheet.nw-sheet { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.app-sheet.nw-sheet > .app-sheet-grip, .app-sheet.nw-sheet > .app-sheet-head { display: none; }
.app-sheet.nw-sheet > .app-sheet-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nw-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; }
@media (max-width: 640px) {
  .app-sheet.nw-sheet { width: 100%; height: 100dvh; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
}
@media (min-width: 641px) {
  .app-sheet.nw-sheet { width: min(520px, 100%); height: min(680px, calc(100dvh - 48px)); }
}
.nw-top { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; height: 54px; padding: 0 8px; flex: none; }
.nw-top__t { text-align: center; font-size: 17px; font-weight: 800; }
.nw-top__n { text-align: right; padding-right: 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.nw-prog { display: flex; gap: 4px; padding: 0 var(--gutter); flex: none; }
.nw-prog[hidden] { display: flex; visibility: hidden; }
.nw-prog i { flex: 1; height: 3px; border-radius: 2px; background: var(--border); }
.nw-prog i.is-on { background: var(--text); }
.nw-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--gutter) 12px; }
.nw-q { margin: 0; padding: 26px 0 18px; font-size: var(--t-screen); font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.nw-qs { margin: -10px 0 14px; font-size: 14px; color: var(--text-muted); text-wrap: pretty; }
.nw-inp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 52px; padding: 8px 14px; border-radius: var(--radius-md); background: var(--bg-sunken); cursor: text; }
.nw-inp:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand); }
.nw-inp > .icon { width: 20px; height: 20px; flex: none; color: var(--text-muted); }
.nw-inp > input, .nw-inp > input[data-orig-type] { flex: 1; min-width: 96px; height: 36px; border: 0; background: none; outline: 0; box-shadow: none; padding: 0; font-size: 16px; color: var(--text); caret-color: var(--brand); }
.nw-inp ::placeholder { color: var(--text-faint); }
.nw-tok { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; white-space: nowrap; }
.nw-tok button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; opacity: 0.7; cursor: pointer; }
.nw-tok button:hover { opacity: 1; }
.nw-tok button .icon { width: 14px; height: 14px; }
.nw-sug { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 12px 0 22px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
.nw-sug::-webkit-scrollbar { display: none; }
.nw-sug:empty { padding: 0 0 22px; }
.nw-sug .ui-chip { flex: none; }
.nw-fld { border-top: 1px solid var(--border); padding: 16px 0 14px; }
.nw-fld > .ui-label { padding-bottom: 6px; }
.nw-fld__r { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.nw-fld__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 4px 0; text-align: left; color: var(--text-muted); font: inherit; font-size: 13px; }
button.nw-fld__main { cursor: pointer; }
.nw-fld__main > .icon { width: 24px; height: 24px; flex: none; color: var(--text); }
.nw-fld__main > span { min-width: 0; }
.nw-fld__main b { display: block; font-size: 17px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-fld__r > .ui-link { flex: none; }
.nw-add { display: inline-flex; align-items: center; gap: 2px; }
.nw-add .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.nw-blank { display: inline-block; margin: 6px 0 4px; font-size: 13px; }
.nw-opts { display: flex; flex-direction: column; }
.nw-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; font: inherit; font-size: 13px; color: var(--text-muted); cursor: pointer; }
.nw-opt:last-child { border-bottom: 0; }
.nw-opt > span:not(.ui-thumb) { flex: 1; min-width: 0; line-height: 1.4; }
.nw-opt b { display: block; font-size: 16px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.nw-opt .ui-thumb { object-fit: cover; color: var(--text-muted); }
.nw-opt .ui-thumb .icon { width: 22px; height: 22px; }
.nw-rd { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.nw-rd.is-on { box-shadow: inset 0 0 0 6.5px var(--brand); }
.nw-error { margin: 0 var(--gutter) 8px; }
.nw-foot { flex: none; padding: 10px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); }
.ai-import-tabs { padding: 0; margin: -4px 0 16px; }
.av-face--xl { width: 72px; height: 72px; font-size: 28px; }
.av-row--static { cursor: default; }
.av-row-val { display: inline-flex; align-items: center; gap: 8px; }
.av-flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px var(--border); flex: none; }
.av-flag--lead { width: 28px; height: 20px; }
.av-group--first { padding-top: 10px; }
.av-group__s { margin-left: 8px; font-weight: 500; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.av-sw { display: block; pointer-events: none; }
.av-sw.is-on { background: var(--brand); }
.av-sw.is-on::after { left: 21px; }
.av-nts { display: flex; flex-direction: column; }
.av-nt { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text-muted); font-size: 13px; }
.av-nt:last-child { border-bottom: 0; }
.av-nt .ui-row__main > b { white-space: normal; font-size: 15px; font-weight: 600; line-height: 1.4; }
.av-nt.is-new .ui-row__main > b { font-weight: 700; }
.av-nt time { display: block; margin-top: 2px; font-size: 12px; color: var(--text-faint); }
.av-nt__face { width: 36px; height: 36px; font-size: 14px; margin-top: 1px; }
.av-nt__face--ic { background: var(--bg-sunken); color: var(--text); }
.av-nt__face--ic .icon { width: 18px; height: 18px; }
.av-nt__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--alert); flex: none; margin-top: 8px; }
.av-pop__t { margin: 6px 0 2px; font-size: 16px; font-weight: 800; color: var(--text); }
.app-sheet-backdrop.is-menu .app-sheet.av-bell-pop { width: 360px; overflow-y: auto; }
.av-bell-pop .av-quiet { padding: 28px 0 20px; }
.av-bell-pop .av-group { padding-top: 12px; }
.av-pick__s { margin: -2px 0 8px; }
.av-pick-sheet .av-pick { max-height: min(56dvh, 460px); overflow-y: auto; }
.av-pf { display: flex; align-items: center; gap: 16px; padding: 4px 0 6px; }
.av-pf .t-sub { margin: 0; text-wrap: pretty; }
.av-pf__l { padding-top: 18px; }
.av-swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 360px; }
.av-swatch { aspect-ratio: 1; width: 100%; max-width: 38px; border: 0; padding: 0; border-radius: 50%; background: var(--fc); cursor: pointer; }
.av-swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }
.av-notice { border-bottom: 1px solid var(--border); }
.av-notice > summary { display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; list-style: none; }
.av-notice > summary::-webkit-details-marker { display: none; }
.av-notice > p { margin: 0 0 16px; white-space: pre-line; color: var(--text-muted); }
.av-notice > .ui-btn { margin: -4px 0 16px; }
.av-notice > summary b { font-size: 15.5px; }
.av-group--policy { padding-top: 32px; }
.av-notice--policy > summary { padding: 10px 0; }
.av-notice--policy > summary b { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.av-notice--policy > p { font-size: 13px; }
.nfp-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: var(--ctl-h-sm); height: var(--ctl-h-sm); border: 0; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--card) 80%, transparent); color: var(--text-muted); cursor: pointer; }
.nfp-x .icon { width: 16px; height: 16px; }
.nfp-art { position: relative; height: 210px; overflow: hidden; background: linear-gradient(180deg, var(--brand-soft) 0%, color-mix(in srgb, var(--brand-soft) 35%, var(--card)) 100%); }
.nfp-cloud { position: absolute; background: var(--card); border-radius: 99px; opacity: 0.9; }
.nfp-cloud::before, .nfp-cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; }
.nfp-cloud--1 { width: 70px; height: 20px; left: 18px; top: 26px; }
.nfp-cloud--1::before { width: 30px; height: 30px; left: 12px; top: -14px; }
.nfp-cloud--1::after { width: 22px; height: 22px; left: 36px; top: -9px; }
.nfp-cloud--2 { width: 56px; height: 16px; right: 54px; top: 58px; }
.nfp-cloud--2::before { width: 24px; height: 24px; left: 10px; top: -11px; }
.nfp-cloud--2::after { width: 18px; height: 18px; left: 28px; top: -7px; }
.nfp-q { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 8px; background: var(--card); border-radius: 14px; box-shadow: 0 6px 18px -8px rgba(55, 48, 163, 0.35); }
.nfp-q__al { height: 30px; padding: 0 10px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-soft-text); font-weight: 800; display: grid; place-items: center; }
.nfp-q__no { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; color: var(--text); }
.nfp-q__cur { width: 2px; height: 22px; background: var(--brand); margin-left: -4px; animation: nfp-blink 1s steps(1) infinite; }
.nfp-down { position: absolute; left: 50%; top: 90px; transform: translateX(-50%) rotate(90deg); color: var(--brand); opacity: 0.55; display: grid; }
.nfp-down .icon { width: 18px; height: 18px; }
.nfp-res { position: absolute; left: 22px; right: 22px; top: 118px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 16px; background: var(--card); border-radius: 16px; box-shadow: 0 10px 26px -12px rgba(55, 48, 163, 0.45); color: var(--text); }
.nfp-res b { display: block; font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nfp-res span { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.nfp-res__r { text-align: right; }
.nfp-res__mid { position: relative; height: 18px; color: var(--brand); }
.nfp-res__mid::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted color-mix(in srgb, var(--brand) 35%, transparent); }
.nfp-res__mid .icon { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%) rotate(90deg); background: var(--card); }
.nfp-ok { position: absolute; right: 16px; top: 108px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--card); }
.nfp-ok .icon { width: 14px; height: 14px; stroke-width: 3; }
.nfp-body { padding: 20px 22px 18px; }
.nfp-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--brand); }
.nfp-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ui-dialog.nfp .nfp-body p { margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--text-muted); word-break: keep-all; }
.nfp-btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 20px; }
.nfp-btns .ui-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .nfp-q__cur { animation: none; } }
.trip-chips { display: flex; gap: 8px; padding: 2px var(--gutter) 10px; overflow-x: auto; scrollbar-width: none; flex: none; background: var(--bg); }
.trip-chips::-webkit-scrollbar { display: none; }
.trip-chips[hidden] { display: none; }
.trip-chips .ui-chip { flex: none; padding: 0 12px 0 9px; }
.trip-chips .ui-chip .icon { width: 16px; height: 16px; stroke-width: 2; }
.trip-chips--col { display: none; }
body[data-trip-tab]:not([data-trip-tab="sched"]) .trip-chips--top { display: none; }
@media (min-width: 861px) {
  .trip-chips--top { display: none !important; }
  .trip-chips--col:not([hidden]) { display: flex; padding: 12px 20px 4px; }
}
@media (max-width: 860px) { .trip-chips--top { padding: 2px 12px 8px; } }
.app-header-chat { position: relative; }
.app-header-chat[hidden] { display: none; }
.app-header-chat .tab-badge { position: absolute; top: -3px; right: -3px; }
body.chat-docked .app-header-chat { color: var(--brand-fg); }
.chat-back { display: none; }
@media (max-width: 860px) {
  body[data-trip-tab="chat"] .chat-back { display: inline-grid; margin-left: -8px; }
  body[data-trip-tab="chat"] .chat-sub { display: none; }
  body[data-trip-tab="chat"] .chat-head { display: flex; align-items: center; gap: 4px; min-height: 54px; padding-top: env(safe-area-inset-top, 0px); }
}
.pd-item-extra { padding: 12px 0 0; }
.pd-modal.is-uikit .pd-item-extra { padding: 12px 16px 0; border-top: 1px solid var(--border); }
.pd-item-extra .react-row { margin: 0; }
.pd-item-actions { display: flex; flex-wrap: nowrap; gap: 0; margin-top: 10px; padding-top: 8px; }
.pd-modal.is-uikit .pd-item-actions { padding: 8px 8px 12px; }
.pd-item-extra + .pd-item-actions { border-top: 1px solid var(--border); margin-top: 12px; }
.pd-modal.is-uikit .pd-item-extra + .pd-item-actions { margin: 12px 16px 0; padding: 8px 0 12px; }
.pd-item-act { flex: 1 1 0; min-width: 0; height: auto; flex-direction: column; justify-content: center; gap: 5px; padding: 6px 2px; border: 0; background: none; border-radius: var(--radius-md); font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.pd-item-act:hover { background: var(--bg-sunken); color: var(--text); border: 0; }
.pd-item-act .icon { width: 22px; height: 22px; }
.pd-item-act span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pd-item-act.is-danger, .pd-item-act.is-danger:hover { color: var(--alert); }
.ie2-l { padding-top: 18px; }
.ie2-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.ie2-kind { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border: 0; border-radius: 18px; background: none; box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.ie2-kind i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ie2-kind.is-on { box-shadow: inset 0 0 0 1.5px var(--text); }
.ie2-sheet .ui-field > textarea { min-height: 52px; }
.share-set { flex: none; font-size: 14px; font-weight: 600; color: var(--text-muted); padding: 8px 0 8px 12px; cursor: pointer; }
.share-set:hover { color: var(--text); }
.share-sheet2 .app-sheet-label:first-child { margin-top: 6px; }
.share-invite-note { margin: 0 0 8px; text-wrap: pretty; }
.app-header-right > #members-popover-wrap { order: 1; }
.app-header-right > .app-header-chat { order: 2; }
.app-header-right > .share-popover-wrap { order: 3; }
.app-header-right > .app-header-more { order: 4; }
.app-header-right > #auth-area { order: 5; }
.prep-seg { display: flex; gap: 22px; padding: 0; margin: 0 0 14px; border-radius: 0; background: none; border-bottom: 1px solid var(--border); }
.prep-seg button { height: auto; padding: 10px 0 11px; border-radius: 0; font-size: 16px; font-weight: 700; color: var(--text-faint); gap: 5px; }
.prep-seg button .icon-inline { display: none; }
.prep-seg button small { font-size: 13px; font-weight: 600; }
.prep-seg button.active { background: none; color: var(--text); box-shadow: inset 0 -2px 0 var(--text); }
.prep-dock, #tab-panel-etc #memo-add-open-btn { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 22px 0 16px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-contrast, #fff); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--brand) 70%, #000); }
.prep-dock .icon { width: 20px; height: 20px; }
#tab-panel-etc #memo-add-open-btn .icon-inline { margin: 0; }
.is-viewer .prep-dock, .is-viewer #tab-panel-etc #memo-add-open-btn { display: none !important; }
@media (max-width: 860px) {
  .prep-dock, #tab-panel-etc #memo-add-open-btn { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 20; }
  #tab-panel-checklist, #tab-panel-etc { padding-bottom: 96px; }
}
@media (min-width: 861px) {
  #tab-panel-checklist, #tab-panel-etc, #tab-panel-local { position: relative; }
  .prep-dock, #tab-panel-etc #memo-add-open-btn { height: 34px; padding: 0 16px 0 12px; font-size: 14px; box-shadow: none; }
  .prep-dock { position: absolute; top: 24px; right: 32px; }
  .prep-dock .icon { width: 17px; height: 17px; }
}
body.sheet-open .prep-dock { visibility: hidden; }
#tab-panel-checklist .ck-summary { display: block; padding: 4px 0 0; margin: 0 0 14px; border: 0; border-radius: 0; background: none; box-shadow: none; }
#tab-panel-checklist .ck-summary > .ck-summary__top, #tab-panel-checklist .ck-summary > .ck-summary__cats, #tab-panel-checklist .ck-summary > .ck-summary__hint { display: none !important; }
.ck-line { display: flex; align-items: baseline; gap: 5px; margin: 0 0 10px; font-size: 16px; color: var(--text-muted); }
.ck-line b { color: var(--text); font-weight: 800; }
.ck-line small { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--text-faint); }
#tab-panel-checklist .ck-summary .progress-track { height: 6px; border-radius: 3px; background: var(--bg-sunken); }
#tab-panel-checklist .ck-summary.is-empty .progress-track { display: none; }
#tab-panel-checklist .ck-suggest:not(.is-open) { padding: 0; margin: 0 0 6px; background: none; color: inherit; border-radius: 0; }
.ck-tip { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ck-tip__icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-fg); }
.ck-tip__icon .icon { width: 19px; height: 19px; }
.ck-tip__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; color: var(--text-muted); }
.ck-tip__text b { font-size: 15px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.ck-tip__add { flex: none; border: 0; background: none; padding: 8px 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--brand-fg); cursor: pointer; }
.ck-tip .ck-suggest__x { flex: none; width: 28px; height: 28px; border: 0; background: none; color: var(--text-faint); font-size: 20px; line-height: 1; cursor: pointer; }
.ck-tip__more { display: block; border: 0; background: none; padding: 8px 0 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.ck-suggest__fold { flex: none; width: 32px; height: 32px; border: 0; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; transform: rotate(180deg); }
.ck-suggest__fold .icon { width: 18px; height: 18px; }
#tab-panel-checklist .ck-toolbar { margin: 10px 0 2px; }
#tab-panel-checklist .ck-grid { display: block; }
#tab-panel-checklist .ck-card { border: 0; border-radius: 0; background: none; overflow: visible; margin: 0; }
#tab-panel-checklist .ck-card__head { background: none; color: var(--text-muted); padding: 22px 0 6px; gap: 8px; }
#tab-panel-checklist .ck-card__title { font-size: 13px; font-weight: 700; color: var(--text-muted); }
#tab-panel-checklist .ck-card__count { margin-left: auto; font-size: 13px; font-weight: 600; opacity: 1; color: var(--text-faint); }
#tab-panel-checklist .ck-card__badge { display: none; }
#tab-panel-checklist .ck-items { padding: 0; }
#tab-panel-checklist .ck-item { gap: 6px; border-bottom: 1px solid var(--border); min-height: 52px; }
#tab-panel-checklist .ck-item:last-child { border-bottom: 1px solid var(--border); }
#tab-panel-checklist .ck-row { padding: 13px 0; gap: 12px; }
#tab-panel-checklist .ck-box { width: 24px; height: 24px; border-radius: 50%; }
#tab-panel-checklist .ck-text { font-size: 16px; }
#tab-panel-checklist .ck-item .ck-edit, #tab-panel-checklist .ck-item .ck-del { display: none !important; }
.ck-more { flex: none; width: 32px; height: 36px; border: 0; background: none; color: var(--text-faint); cursor: pointer; display: grid; place-items: center; }
.ck-more .icon { width: 18px; height: 18px; }
#tab-panel-checklist .ck-add { padding: 0; gap: 0; border-bottom: 1px solid var(--border); }
#tab-panel-checklist .ck-add input { height: 48px; border: 0; background: none; box-shadow: none; padding: 0 0 0 36px; font-size: 15px; border-radius: 0; }
#tab-panel-checklist .ck-add input:focus { outline: 0; }
#tab-panel-checklist .ck-add { position: relative; }
#tab-panel-checklist .ck-add::before { content: "+"; position: absolute; left: 6px; top: 50%; transform: translateY(-52%); font-size: 20px; font-weight: 400; color: var(--text-faint); pointer-events: none; }
#tab-panel-checklist .ck-add .btn { border: 0; background: none; box-shadow: none; font-weight: 700; color: var(--brand-fg); height: 48px; padding: 0 4px; opacity: 0; }
#tab-panel-checklist .ck-add:focus-within .btn { opacity: 1; }
#tab-panel-checklist .ck-card.is-empty .ck-card__head { padding-bottom: 0; }
.ck-add-sheet .ck-add-cats { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; }
.ck-add-sheet .ui-chip { box-shadow: inset 0 0 0 1px var(--line); }
.ck-add-sheet .ui-chip.is-on { box-shadow: none; }
@media (min-width: 861px) {
  #tab-panel-checklist .side-layout-main { max-width: 720px; }
}
#tab-panel-etc .mm-board { column-width: auto; columns: 1; max-width: 720px; }
@media (min-width: 1100px) { #tab-panel-etc .mm-board { columns: 2; column-gap: 40px; max-width: none; } }
#tab-panel-etc .mm-board > * { margin: 0; }
#tab-panel-etc .mm-card { border: 0; border-radius: 0; background: none; padding: 16px 0; gap: 6px; border-bottom: 1px solid var(--border); overflow: visible; }
#tab-panel-etc .mm-card__head { background: none; padding: 0; color: var(--mc-ink, var(--text-muted)); font-size: 12.5px; font-weight: 700; min-height: 28px; }
#tab-panel-etc .mm-card__head > .icon { width: 15px; height: 15px; }
#tab-panel-etc .mm-card__body { padding: 0; }
#tab-panel-etc .mm-card .mm-title { font-size: 17px; font-weight: 700; }
#tab-panel-etc .mm-card .mm-text { font-size: 15px; line-height: 1.6; color: var(--text); }
#tab-panel-etc .mm-card .mm-foot { padding: 0; font-size: 12.5px; color: var(--text-faint); }
#tab-panel-etc .mm-card__actions { opacity: 1; gap: 0; }
.mm-icon-btn { display: inline-grid; place-items: center; flex: none; width: var(--ctl-h-sm); height: var(--ctl-h-sm); padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-faint); cursor: pointer; }
.mm-icon-btn:hover { color: var(--text); background: var(--bg-sunken); }
.mm-icon-btn .icon { width: 17px; height: 17px; }
#tab-panel-etc .mm-search input { border: 0; background: var(--bg-sunken); height: 44px; border-radius: var(--radius-md); }
#tab-panel-etc .mm-search { height: 44px; max-width: 420px; }
#tab-panel-etc .mm-link { border: 0; background: none; padding: 4px 0; color: var(--brand-fg); font-weight: 600; }
@media (min-width: 861px) { #tab-panel-etc #memo-add-open-btn { position: static; } }
#tab-panel-local .mm-info { background: none; border: 0; border-radius: 0; padding: 0; color: var(--text); gap: 0; }
#tab-panel-local .mm-info__head { padding: 2px 0 0; }
#tab-panel-local .mm-info__globe, #tab-panel-local .mm-info__eyebrow { display: none; }
#tab-panel-local .mm-info__title { font-size: 13px; font-weight: 700; color: var(--text-muted); }
#tab-panel-local .mm-info:not(.has-say) .mm-info__title { font-size: 24px; font-weight: 800; color: var(--text); }
#tab-panel-local .mm-info__rows { gap: 0; }
#tab-panel-local .mm-info__row, #tab-panel-local .mm-info__rows .travel-alert-slot { background: none; border-radius: 0; padding: 14px 0; border-top: 1px solid var(--border); gap: 14px; align-items: flex-start; }
#tab-panel-local .mm-info__icon { width: 22px; height: 22px; background: none; color: var(--text-muted); margin-top: 1px; }
#tab-panel-local .mm-info__label { font-size: 13px; color: var(--text-muted); }
#tab-panel-local .mm-info__val { font-size: 15.5px; }
#tab-panel-local .mm-info__note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-faint); }
#tab-panel-local .mm-info__link { color: var(--brand-fg); font-weight: 700; }
#tab-panel-local .lc-contacts { margin-top: 28px; }
#tab-panel-local .lc-contacts__title .icon { display: none; }
#tab-panel-local .lc-contacts__head .btn { border: 0; background: none; box-shadow: none; padding: 0; color: var(--brand-fg); font-weight: 700; }
#tab-panel-local .lc-contacts__list { column-width: auto; columns: 1; }
#tab-panel-local .lc-contacts__list > * { margin: 0; }
#tab-panel-local .mm-card { border: 0; border-radius: 0; background: none; padding: 14px 0; border-top: 1px solid var(--border); gap: 4px; overflow: visible; }
#tab-panel-local .mm-card__head { background: none; padding: 0; color: var(--text-muted); font-size: 12.5px; min-height: 26px; }
#tab-panel-local .mm-card__body { padding: 0; }
#tab-panel-local .mm-card .mm-foot { display: none; }
#tab-panel-local .mm-card__actions { opacity: 1; gap: 0; }
#tab-panel-local .mm-card__actions .btn { border: 0; background: none; box-shadow: none; color: var(--text-faint); width: 32px; min-width: 32px; height: 32px; padding: 0; }
.prep-seg { justify-content: flex-start; width: auto; }
.prep-seg button { flex: none !important; width: auto; }
#tab-panel-local .mm-info__link { display: inline-block; border: 0; background: none; padding: 10px 0 0; text-align: left; width: auto; box-shadow: none; }
#tab-panel-local .mm-info__rows .travel-alert-slot [class*=icon] { background: none; }
.mm-modal .mm-modal__head, .ck-modal .ck-modal__head { background: none; color: var(--text); padding: 20px 22px 12px; }
.mm-modal .mm-modal__title, .ck-modal .ck-modal__title { font-size: 20px; font-weight: 800; color: var(--text); }
.mm-modal .fb-close-btn, .ck-modal .fb-close-btn { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--text-muted); font-size: 24px; line-height: 1; flex: none; }
.mm-modal .mm-field__label { font-size: 13px; }
.mm-modal .mm-modal__body input:not([type=checkbox]), .mm-modal .mm-modal__body select { height: 44px; border-radius: var(--radius-md); }
.mm-modal .mm-modal__foot { border-top: 0; flex-wrap: nowrap; gap: 8px; padding-top: 8px; }
@media (max-width: 560px) { .mm-modal .mm-modal__head, .ck-modal .ck-modal__head { padding-left: 16px; padding-right: 16px; } }
.mm-modal .mm-modal__foot { flex-direction: column; align-items: stretch; }
.mm-modal .mm-modal__foot-note:empty { display: none; }
.mm-modal .mm-modal__foot-note { flex: none; }
.mm-modal .mm-modal__actions { display: flex; gap: 8px; margin: 0; }
@media (max-width: 640px) { .fb-overlay > .mm-modal, .fb-overlay > .ck-modal { height: auto; padding: 0 0 env(safe-area-inset-bottom, 0px); } }
.lc-wx__n { min-height: 15px; font-size: 11px; font-weight: 700; color: var(--brand-fg); white-space: nowrap; }
.lc-wx__wet { display: inline-flex; align-items: center; gap: 1px; height: 28px; color: var(--wx-rain, var(--brand-fg)); font-size: 11.5px; font-weight: 700; }
.lc-wx__wet .icon { width: 14px; height: 14px; }
.lc-wx__wet i { font-style: normal; }
.lc-wx__wet.is-dry { color: var(--text-faint); }
.lc-wx__basis { margin: 0 0 10px; font-size: 12.5px; color: var(--text-faint); }
#tab-panel-local .mm-info:has(.lc-wx) .mm-info__temp, #tab-panel-local .mm-info:has(.lc-wx) .mm-info__row .mm-info__muted { display: none; }
#tab-panel-expense.ex2 { position: relative; }
.ex2 .expense-main > .card { border: 0; background: none; padding: 0; margin: 0; box-shadow: none; border-radius: 0; }
.ex2 .expense-display-currency-row, .ex2 .expense-summary-row, .ex2 .expense-stack-head, .ex2 #expense-stack, .ex2 #expense-legend, .ex2 #expense-filter-chips, .ex2 .expense-side > .card { display: none !important; }
.ex2 .expense-layout { display: block; }
.ex2 .expense-main { display: block; max-width: 720px; }
.ex2 .expense-side { max-width: 720px; }
.ex-tabs { margin: 0 calc(var(--gutter) * -1); align-items: center; }
.ex-tabs__end { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 0 !important; box-shadow: none !important; }
.ex-add-pc { display: none; }
.ex2--solo .ex-tabs [data-exview] { display: none; }
.ex2--solo .ex-tabs { border-bottom: 0; justify-content: flex-end; min-height: 44px; margin-bottom: -44px; position: relative; z-index: 1; pointer-events: none; }
.ex2--solo .ex-tabs__end { pointer-events: auto; }
#ex2-sum { padding: 16px 0 6px; }
.ex-lb { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ex-n { margin: 2px 0 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; font-family: var(--font-sans); }
.ex-sub { display: block; margin: 2px 0 0; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--text-muted); text-align: left; font-variant-numeric: tabular-nums; }
button.ex-sub { cursor: pointer; }
.ex-sub.is-link { color: var(--brand-fg); font-weight: 700; }
.ex-sub.is-over { color: var(--alert); }
.ex-bar { display: flex; gap: 3px; height: 8px; margin: 12px 0 8px; }
.ex-bar i { min-width: 3px; border-radius: 2px; background: var(--xk, var(--text)); }
.ex-bar i:first-child { border-radius: 4px 2px 2px 4px; }
.ex-bar i:last-child { border-radius: 2px 4px 4px 2px; }
.ex-bar--two i:first-child { background: var(--text); }
.ex-bar--two i:last-child { background: var(--brand); }
.ex-leg { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0; }
.ex-leg button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--text-muted); cursor: pointer; }
.ex-leg button i { width: 8px; height: 8px; border-radius: 50%; background: var(--xk); }
.ex-leg button[aria-pressed="true"] { color: var(--text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.ex-split { display: flex; gap: 28px; margin: 4px 0 0; }
.ex-split span { font-size: 12.5px; color: var(--text-muted); }
.ex-split b { display: block; font-size: 16px; font-weight: 800; color: var(--text); font-family: var(--font-sans); }
.ex-split b.is-acc { color: var(--brand-fg); }
.ex-warn { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; color: var(--alert); }
.ex-warn .icon { width: 15px; height: 15px; }
.ex-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 0; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; text-align: left; color: var(--text); cursor: pointer; }
#ex2-links .ex-link:last-child { border-bottom: 1px solid var(--border); }
.ex-link > .icon:first-child { width: 22px; height: 22px; color: var(--text-muted); flex: none; }
.ex-link > .icon:last-child { width: 20px; height: 20px; color: var(--text-faint); flex: none; }
.ex-link span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-muted); }
.ex-link b { display: block; font-size: 15px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.ex-link.is-acc b, .ex-link.is-acc > .icon:first-child { color: var(--brand-fg); }
#ex2-links:empty { display: none; }
.ex2 .expense-group { margin: 0; border: 0; }
.ex2 .expense-group-head { display: flex; justify-content: space-between; align-items: baseline; width: 100%; min-height: 0; padding: 18px 0 4px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.ex2 .expense-group-head .icon { display: none; }
.ex2 .expense-group-head-left > .mono-num { display: none; }
.ex2 .expense-group-head > .mono-num { font-weight: 500; color: var(--text-muted); }
.ex2 .expense-group-head.is-collapsed { color: var(--text-muted); }
.ex-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border: 0; background: none; cursor: pointer; }
.ex-row:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-md); }
.ex-row.is-settled { opacity: 0.55; }
.ex-kd { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--xk, var(--k-etc)); color: #fff; }
.ex-kd .icon { width: 18px; height: 18px; }
.ex-kd--s { width: 26px; height: 26px; }
.ex-kd--s .icon { width: 14px; height: 14px; }
.ex-kd--ink { background: var(--text); color: var(--bg); }
.ex-kd--ink.is-dim { background: var(--k-etc); color: #fff; }
.ex-row__m { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-row__m b { display: block; font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.ex-row__a { flex: none; text-align: right; font-size: 12px; color: var(--text-muted); }
.ex-row__a b { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.ex-only { font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand-fg); margin-left: 6px; }
.ex-row--flat { cursor: default; }
.ex-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--border); }
.ex-foot:empty { display: none; }
.ex-foot button { display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.ex-foot button .icon { width: 16px; height: 16px; }
.is-viewer .ex-dock, .is-viewer .ex-add-pc { display: none !important; }
body.ex-add-open .ex-dock { visibility: hidden; }
@media (max-width: 860px) { #tab-panel-expense.ex2 { padding-bottom: 96px; } }
@media (min-width: 861px) {
  .ex-dock { display: none !important; }
  .ex-tabs { margin: 0; }
  .ex-add-pc { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 16px 0 12px; border: 0; border-radius: 999px; background: var(--brand); color: var(--brand-contrast, #fff); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
  .ex-add-pc .icon { width: 17px; height: 17px; }
}
@media (min-width: 1101px) {
  .ex2 .expense-layout { display: grid; grid-template-columns: minmax(0, 640px) 320px; gap: 44px; align-items: start; }
  .ex2 .expense-side { padding-top: 46px; }
  #ex2-side #ex2-links .ex-link:first-child { border-top: 0; }
}
.ex-side-cats:empty { display: none; }
.ex-side-h { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 4px; font-size: 13px; }
.ex-side-h button { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--brand-fg); cursor: pointer; }
@media (max-width: 1100px) { #ex2-side { display: none; } }
.ex-hb { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.ex-hb > div { flex: 1; min-width: 0; }
.ex-hb p { display: flex; align-items: baseline; gap: 6px; margin: 0; font-size: 15px; }
.ex-hb p b { font-weight: 700; }
.ex-hb p span { font-size: 12.5px; color: var(--text-muted); }
.ex-hb p em { font-style: normal; margin-left: auto; font-weight: 700; }
.ex-hb > div > i { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--brand); margin-top: 6px; }
.ex-hb--s { padding: 6px 0; gap: 10px; }
.ex-hb--s p { font-size: 13.5px; }
.ex-hb--s > div > i { height: 5px; margin-top: 4px; }
.ex-hb--dim > div > i { background: var(--text-faint); }
.ex-hb__s { font-size: 12.5px !important; color: var(--text-muted); padding-top: 5px; justify-content: space-between; }
.ex-hb__s b { font-weight: 700; }
.ex-hb__s b.is-plus { color: var(--brand-fg); }
.ex-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--member-1); }
.ex-av[data-av="2"] { background: var(--member-2); }
.ex-av[data-av="3"] { background: var(--member-3); }
.ex-av[data-av="4"] { background: var(--member-4); }
.ex-av[data-av="5"] { background: var(--member-5); }
.ex-det__h { display: flex; align-items: center; gap: 12px; }
.ex-det__h > span:last-child { font-size: 13px; color: var(--text-muted); min-width: 0; }
.ex-det__h b { display: block; font-size: 18px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }
.ex-det__n { margin: 12px 0 10px; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-sans); }
.ex-det__n small { font-size: 15px; font-weight: 600; color: var(--text-muted); margin-left: 8px; letter-spacing: 0; }
.ex-dl { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.ex-dl b { font-weight: 600; color: var(--text); text-align: right; overflow-wrap: anywhere; }
.ex-dl b small { display: block; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.ex-det__b { display: flex; gap: 8px; margin-top: 14px; }
.ex-det__b .ui-btn { flex: 1; }
.ex-det__b .ex-del { color: var(--alert); }
.ex-win { display: flex; flex-direction: column; width: 100%; height: 100dvh; background: var(--card); padding-top: env(safe-area-inset-top, 0px); }
.ex-win__top { display: flex; align-items: center; gap: 4px; height: 54px; padding: 0 12px 0 6px; flex: none; }
.ex-win__top > b { flex: 1; text-align: center; font-size: 17px; font-weight: 800; }
.ex-win__r { min-width: 44px; height: 40px; border: 0; background: none; padding: 0 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--brand-fg); cursor: pointer; white-space: nowrap; }
.ex-win__r.is-del { color: var(--alert); }
.ex-win__r[hidden] { display: block; visibility: hidden; }
.ex-win__body { flex: 1; overflow-y: auto; padding: 0 20px 12px; }
.ex-win__foot { flex: none; padding: 12px 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 861px) {
  .ex-win { width: 520px; height: auto; max-height: calc(100dvh - 48px); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55); }
  .ex-win__top > b { text-align: left; padding-left: 8px; font-size: 19px; }
  .ex-win__top { flex-direction: row-reverse; padding: 4px 12px 0 18px; }
  .ex-win__top > b { order: 3; } .ex-win__top > .ex-win__r { order: 2; }
  .ex-win__body { padding: 0 26px 8px; } .ex-win__foot { padding: 10px 26px 22px; }
}
.ex-form.add-form { display: flex; flex-direction: column; gap: 0; padding: 0; margin: 0; border: 0; background: none; }
.ex-form > * { margin: 0 !important; }
.ex-form .ex-f-amt { order: 1; display: flex; align-items: center; gap: 10px; padding: 14px 0 0; }
.ex-form .ex-f-amt select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ex-form .ex-f-amt #expense-amount { flex: 1; min-width: 0; height: 56px; border: 0; background: none; box-shadow: none; padding: 0; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--font-sans); color: var(--text); caret-color: var(--brand); }
.ex-form .ex-f-amt #expense-amount:focus { outline: 0; }
.ex-cur { display: inline-flex; align-items: center; gap: 2px; height: 34px; padding: 0 8px 0 13px; border: 0; border-radius: 999px; background: var(--bg-sunken); font: inherit; font-size: 14px; font-weight: 800; color: var(--text); cursor: pointer; flex: none; }
.ex-cur .icon { width: 16px; height: 16px; color: var(--text-muted); }
.ex-form .ex-f-prev { order: 2; font-size: 14px; color: var(--text-muted); padding: 0 0 4px; }
.ex-form .ex-f-title { order: 3; display: block; border-top: 1px solid var(--border); margin-top: 12px !important; padding: 14px 0 0; }
.ex-form .ex-f-title #expense-title { width: 100%; height: 40px; border: 0; background: none; box-shadow: none; padding: 0; font-size: 17px; font-weight: 700; }
.ex-form .ex-f-title #expense-title:focus, .ex-form .ex-f-memo input:focus { outline: 0; }
.ex-form .ex-f-memo { order: 4; }
.ex-form .ex-f-memo input { width: 100%; height: 34px; border: 0; background: none; box-shadow: none; padding: 0; font-size: 14px; }
.ex-form .ex-f-cat { order: 5; display: block; padding: 8px 0 16px; }
.ex-form .ex-f-cat > label, .ex-form .ex-f-pay > label, .ex-form .ex-f-payer > label, .ex-form .ex-f-share > label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 0 0 8px; width: auto; }
.ex-form .ex-f-cat > label { display: none; }
.ex-form .expense-cat-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px; }
.ex-form .expense-cat-chips::-webkit-scrollbar { display: none; }
.ex-form .expense-cat-chips > * { flex: none; }
.ex-form .ex-f-payer { order: 6; display: block; border-top: 1px solid var(--border); padding: 14px 0; }
.ex-form .ex-f-payer select, .ex-form .ex-f-share #expense-split-chips { display: none !important; }
.ex-form .ex-f-share { order: 7; display: block; border-top: 1px solid var(--border); padding: 14px 0; }
.ex-form .ex-f-pay { order: 8; display: block; border-top: 1px solid var(--border); padding: 14px 0; }
.ex-form .ex-f-date { order: 9; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding: 10px 0; }
.ex-form .ex-f-date #expense-date { flex: none !important; width: 150px; height: 40px; border: 0; background: var(--bg-sunken); border-radius: var(--radius-md); text-align: center; font-weight: 600; cursor: pointer; }
.ex-form .expense-solo-hint, .ex-form .expense-add-row { display: none !important; }
.ex-form [hidden] { display: none !important; }
.ex-pick { flex-wrap: wrap; }
.ex-hint { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); }
.ex-win__foot .ui-btn--full { width: 100%; }
.ex-pr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; }
.ex-pr:first-child { border-top: 0; }
.ex-pr:not(.is-on) > span, .ex-pr:not(.is-on) .ex-av { opacity: 0.45; }
.ex-cb { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line, #c3c8d1); flex: none; position: relative; }
.ex-pr.is-on .ex-cb { background: var(--brand); box-shadow: none; }
.ex-pr.is-on .ex-cb::after { content: ""; position: absolute; left: 8px; top: 4.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.ex-cr { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; text-align: left; color: var(--text); cursor: pointer; }
.ex-cur-sheet .ui-label + .ex-cr { border-top: 0; }
.ex-cr > b { flex: none; width: 46px; font-size: 14px; font-weight: 800; }
.ex-cr > span { flex: 1; min-width: 0; }
.ex-cr > span b { display: block; font-size: 15px; font-weight: 600; }
.ex-cr > span i { font-style: normal; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ex-cr > .icon { width: 20px; height: 20px; color: var(--brand-fg); }
.ex-cur-l { padding-top: 14px; }
.ex-cur-sheet .app-sheet-body { max-height: min(70dvh, 560px); overflow-y: auto; }
.ex-bud-f select { flex: none; width: auto; height: 34px; border: 0; border-radius: 999px; background: var(--card); padding: 0 8px 0 12px; font-weight: 800; font-size: 14px; }
.ex-bud-f input { font-weight: 700; font-variant-numeric: tabular-nums; }
.ex-budget .ui-label small { font-weight: 500; color: var(--text-faint); margin-left: 4px; }
@media (max-width: 860px) {
  .app-sheet.ex-win-sheet { width: 100%; height: 100dvh; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top, 0px); }
  .app-sheet.ex-win-sheet .app-sheet-grip { display: none; }
}
@media (min-width: 861px) { .app-sheet.ex-win-sheet { width: min(560px, 100%); max-height: calc(100dvh - 48px); } }
.ex-win-sheet .app-sheet-body { overflow-y: auto; }
.ex-an-top { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.ex-an-tabs { flex: 1; border-bottom: 0; padding: 0; }
.ex-an-cur { flex: none; width: auto; height: 32px; border: 0; border-radius: 999px; background: var(--bg-sunken); padding: 0 8px 0 12px; font-size: 13px; font-weight: 800; }
.ex-an-k { margin: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ex-an-k b { color: var(--text); }
.ex-say { margin: 4px 0 12px; font-size: 22px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
.ex-say em { font-style: normal; color: var(--brand-fg); }
.ex-an-h { margin: 22px 0 2px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 700; }
.ex-an-h + .ex-dl { border-top: 0; }
.ex-an-empty { padding: 48px 0; text-align: center; color: var(--text-muted); }
.ex-settle #settlement-sub, .ex-settle .card-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; }
.ex-settle .settle-box { border: 0; background: var(--bg-sunken); border-radius: var(--radius-md); }
.ex2 .expense-group-count { display: none; }
.ex2 .expense-group-rows { padding: 0; margin: 0; border: 0; }
.ex2 .expense-group-head { padding-left: 0; padding-right: 0; }
.ex2 #expense-list { padding: 0; margin: 0; }
.app-sheet.ex-win-sheet .app-sheet-close, .app-sheet.ex-slot-sheet .app-sheet-close { display: grid !important; }
@media (min-width: 641px) { .app-sheet.ex-slot-sheet { width: min(560px, 100%); } }
.app-sheet.ex-slot-sheet .settle-box { margin-bottom: 14px; }
#tab-panel-expense.ex2 .expense-main > .card { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; margin: 0 !important; }
.ex-bud-cur { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.ex-bud-cur select { width: auto; height: 34px; border: 0; border-radius: 999px; background: var(--bg-sunken); padding: 0 8px 0 12px; font-weight: 800; font-size: 14px; }
.ex-bud-l2 { padding-top: 16px; }
.ex-cash-note { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; }
.ex-cash-note .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.ex-cash-c + .ex-cash-c { margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--border); }
.ex-cash-c .ex-det__n { margin: 10px 0 0; }
.ex-cash-c .ex-det__n.is-over { color: var(--alert); }
.ex-cash-c .ex-bar--two i:first-child { background: var(--text); }
.ex-cash-c .ex-bar--two i:last-child { background: var(--brand); }
.ex-cash-c .ex-split { margin-bottom: 8px; }
.ex-fx { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.ex-fx > span { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-muted); }
.ex-fx > span b { display: block; font-size: 16px; font-weight: 800; color: var(--text); }
.ex-fx em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.ex-fx .ui-icon-btn { width: 34px; height: 34px; color: var(--text-faint); margin-right: -8px; }
.ex-fx .ui-icon-btn .icon { width: 17px; height: 17px; }
.ex-cash-empty { padding: 28px 0; text-align: center; color: var(--text-muted); margin: 0; }
.ex-cash .ex-det__b { margin-top: 18px; }
.ex-fx-date { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.ex-fx-date input { width: 150px; height: 40px; border: 0; background: var(--bg-sunken); border-radius: var(--radius-md); text-align: center; font-weight: 600; cursor: pointer; }
.sms-share { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.sms-share .ex-lb { padding-bottom: 8px; }
.ex-pr { padding: 6px 0; gap: 8px; cursor: default; }
.ex-pr__t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--text); text-align: left; cursor: pointer; }
.ex-pr:not(.is-on) .ex-pr__t > span, .ex-pr:not(.is-on) .ex-pr__t .ex-av { opacity: 0.45; }
.ex-mini { flex: none; width: 108px; height: 38px; padding: 0 12px; border: 0; border-radius: var(--radius-md); background: var(--bg-sunken); font: inherit; font-size: 15px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; font-style: normal; display: inline-flex; align-items: center; justify-content: flex-end; }
.ex-mini.is-read { background: none; color: var(--text-muted); }
.ex-mini:disabled { background: none; }
.ex-pick-mode { margin: 0 0 8px; }
.ex-hint.is-warn { color: #b4530a; }
:root[data-theme="dark"] .ex-hint.is-warn { color: #f0a45a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ex-hint.is-warn { color: #f0a45a; } }
.ex-pick button .icon { width: 16px; height: 16px; }
.ex-av--pool { background: var(--text); color: var(--bg); }
.ex-av--pool .icon { width: 15px; height: 15px; }
.ex-pool-r { margin-top: 14px; }
.ex-pool-h { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 8px 0 2px; border-top: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--text-muted); }
.ex-pool-h button { width: 32px; height: 32px; border: 0; background: none; color: var(--text-faint); cursor: pointer; margin-right: -8px; }
.ex-pool-h button .icon { width: 16px; height: 16px; }
.ex-pool-p { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 6px 0; border: 0; background: none; font: inherit; text-align: left; color: var(--text); cursor: pointer; }
.ex-pool-p > span { flex: 1; font-size: 15px; font-weight: 700; }
.ex-pool-p > span small { font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.ex-pool-p em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 700; color: var(--text-faint); }
.ex-pool-p.is-paid em { color: var(--brand-fg); }
.ex-pool-p em .icon { width: 15px; height: 15px; }
.ex-pool .ex-det__n.is-over { color: var(--alert); }
.ex-pool .ex-det__b { margin-top: 18px; }
.ex-pool-tot { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-muted); }
.ex-pool-tot b { font-size: 15px; font-weight: 800; color: var(--text); }
.ex-pool-add #ex2-pool-amt[hidden] { display: none; }
.settle-mark { flex: none; height: 28px; padding: 0 11px; border: 0; border-radius: var(--radius-sm); background: var(--card); box-shadow: none; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; }
.settle-mark.is-undo { box-shadow: inset 0 0 0 1.5px var(--line, #c9ced6); color: var(--text-muted); }
.settle-h { margin: 14px 0 4px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.settle-pool { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg-sunken); font-size: 15px; font-weight: 700; }
.settle-pool .icon { width: 20px; height: 20px; color: var(--text-muted); }
.settle-avatar.is-pool { background: var(--text) !important; color: var(--bg); display: grid; place-items: center; }
.settle-avatar.is-pool .icon { width: 13px; height: 13px; }
.ex-guest-tag { font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-muted); background: var(--bg-sunken); padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.ex-guest-add { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 10px 0 2px; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; text-align: left; color: var(--text); cursor: pointer; }
.ex-guest-add .icon { width: 18px; height: 18px; color: var(--brand-fg); flex: none; }
.ex-guest-add span { font-size: 12px; color: var(--text-muted); }
.ex-guest-add b { display: block; font-size: 14px; font-weight: 700; color: var(--brand-fg); }
.ex-pr input.ex-mini { flex: 0 0 108px; width: 108px; min-width: 0; max-width: 108px; height: 38px; margin: 0; box-shadow: none; }
.ex-pr input.ex-mini:focus { outline: 2px solid var(--brand); outline-offset: -2px; }
.settle-pool { display: block; margin: 0 0 6px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--bg-sunken); font-size: 14px; font-weight: 400; }
.settle-pool__t { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 800; }
.settle-pool__t .icon { width: 20px; height: 20px; color: var(--text-muted); flex: none; }
.settle-pool__s { margin: 4px 0 0 28px; font-size: 14px; color: var(--text-muted); }
.settle-pool__r { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 0 28px; font-size: 14px; }
.settle-pool__r b { font-weight: 700; color: var(--brand-fg); }
.settle-pool__r.is-more b { color: var(--alert); }
.settle-pool .settle-mark { margin: 10px 0 0 28px; }
.smp-card { position: relative; display: block; flex: none; width: 200px; height: 150px; border-radius: 16px; overflow: hidden; background: var(--bg-sunken); color: #fff; text-decoration: none; }
.smp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smp-card::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.68)); }
.smp-card__tag { position: absolute; left: 10px; top: 10px; z-index: 1; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); color: #10141b; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; }
.smp-card__b { position: absolute; left: 14px; right: 30px; bottom: 12px; z-index: 1; display: block; font-size: 12px; line-height: 1.4; }
.smp-card__b b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.smp-card__b span { opacity: 0.94; }
.smp-card__credit { position: absolute; right: 8px; bottom: 8px; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.smp-card--hero { width: auto; height: 230px; }
.smp-card--hero .smp-card__b b { font-size: 24px; }
.smp-card--hero .smp-card__b { font-size: 13px; left: 18px; bottom: 16px; }
.smp-rest { margin-top: 6px; }
.smp-rowi { gap: 14px; padding: 9px 0; }
.smp-rowi .ui-thumb { object-fit: cover; }
.smp-rowi .ui-row__main > b { font-size: 16px; }
.smp-rowi em.ui-tag { font-style: normal; margin-left: 4px; }
.mt-empty--smp { text-align: left; }
.mt-empty--smp .mt-empty__s { margin: 0 0 14px; }
.mt-empty--smp .mt-empty__btn { margin-top: 16px; }
@media (min-width: 861px) {
  .mt-empty--smp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .mt-empty--smp .mt-empty__s { grid-column: 1 / -1; margin-bottom: 0; }
  .mt-empty--smp .smp-card--hero { height: 200px; }
  .mt-empty--smp .smp-rest { display: contents; }
  .mt-empty--smp .smp-rowi { position: relative; display: block; height: 200px; padding: 0; border: 0; border-radius: 16px; overflow: hidden; color: #fff; }
  .mt-empty--smp .smp-rowi .ui-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
  .mt-empty--smp .smp-rowi::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, 0.68)); }
  .mt-empty--smp .smp-rowi .ui-row__main { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; }
  .mt-empty--smp .smp-rowi .ui-row__main > b { color: #fff; font-size: 24px; font-weight: 800; }
  .mt-empty--smp .smp-rowi .ui-row__chev { display: none; }
}
.viewer-banner.sample-banner { justify-content: flex-start; gap: 10px; background: var(--brand-soft); color: var(--text-muted); font-size: 12.5px; padding: 8px var(--gutter, 20px); }
.viewer-banner.sample-banner > .icon { width: 18px; height: 18px; color: var(--brand-fg); }
.viewer-banner.sample-banner > span { flex: 1; min-width: 0; text-align: left; }
.viewer-banner.sample-banner b { color: var(--brand-fg); font-weight: 800; margin-right: 4px; }
.sample-go { height: 34px; padding: 0 14px; font-size: 13px; flex: none; }
.sample-dock { display: none; }
@media (max-width: 860px) {
  .viewer-banner.sample-banner .sample-go { display: none; }
  .sample-dock { display: block; position: fixed; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); z-index: 40; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--border); }
  .sample-dock .ui-btn { height: 48px; }
  body.is-sample .app-body { padding-bottom: 72px; }
}
body.is-sample [data-trip-chips] { display: none !important; }
body.is-sample .chat-composer { display: none; }
.av-pf--c { flex-direction: column; gap: 8px; padding: 2px 0 0; }
.av-pf__re { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border: 0; background: none; color: var(--brand-fg, var(--brand)); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: var(--radius-sm); }
.av-pf__re svg { width: 15px; height: 15px; }
.av-photo-pick > * { white-space: nowrap; }
.av-crop { position: relative; width: 280px; height: 280px; margin: 6px auto 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-sunken); touch-action: none; }
.av-crop canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.av-crop canvas:active { cursor: grabbing; }
.av-crop__ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 200px color-mix(in oklch, var(--card) 72%, transparent), inset 0 0 0 2px var(--brand); pointer-events: none; }
.av-crop__hint { text-align: center; margin: 12px 0 0; }
.av-crop__zoom { display: flex; align-items: center; gap: 12px; padding: 12px 20px 4px; color: var(--text-muted); font-size: 18px; }
.av-crop__zoom input { flex: 1; accent-color: var(--brand); }
.mem-face { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.member-row .mem-face .icon { width: 14px; height: 14px; color: inherit; }
.mm-avatar { position: relative; overflow: hidden; }
.mt-wx { display: none; }
@media (min-width: 861px) {
  .mt-wx:not([hidden]) { display: block; padding-top: 14px; }
  .mt-wx__h { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 12px; font-weight: 500; color: var(--text-muted); position: relative; }
  .mt-wx__d { flex: 1 0 64px; max-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: var(--radius); background: var(--bg-sunken); }
  .mt-wx__d.is-off { background: none; box-shadow: inset 0 0 0 1px var(--border); }
  .mt-wx__date { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mt-wx__date em { font-style: normal; font-weight: 500; color: var(--text-muted); }
  .mt-wx__d.is-off .mt-wx__date { color: var(--text-muted); }
  .mt-wx__ic .icon { width: 24px; height: 24px; }
  .mt-wx__t { font-size: 12px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
  .mt-wx__t b { font-weight: 700; color: var(--text); }
}
@media (min-width: 861px) { .mt-wx__h .data-credit { position: static; margin: 0 0 0 auto; } }
@media (min-width: 861px) {
  #tab-panel-voucher, #tab-panel-expense { position: relative; }
  #tab-panel-voucher #voucher-add-open-btn, #tab-panel-expense .ex-add-pc, #tab-panel-etc #memo-add-open-btn {
    position: absolute; top: 24px; right: 32px; z-index: 2; height: 34px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
    background: var(--brand); color: var(--brand-contrast, #fff); font-size: 14px; font-weight: 700; box-shadow: none;
  }
  #tab-panel-voucher #voucher-add-open-btn .icon, #tab-panel-etc #memo-add-open-btn .icon { width: 17px; height: 17px; }
}
@media (min-width: 861px) {
  .app-shell .app-body { position: relative; }
  #tab-panel-voucher { position: static; }
  #tab-panel-etc #memo-add-open-btn { height: 34px; }
}
@media (min-width: 861px) {
  #tab-panel-voucher { position: static !important; }
  #tab-panel-etc #memo-add-open-btn, #tab-panel-voucher #voucher-add-open-btn { min-height: 0; height: 34px; }
}
@media (min-width: 861px) {
  #tab-panel-expense, #tab-panel-checklist { scrollbar-gutter: stable; }
  #tab-panel-expense .ex-add-pc, #tab-panel-checklist .prep-dock { right: 17px; }
}
#members-popover { display: none !important; }
.pp-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pp-face { position: relative; overflow: hidden; width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.pp-face .icon { width: 18px; height: 18px; }
.pp-face--line { background: none; color: var(--text-muted); box-shadow: inset 0 0 0 1.5px var(--border-strong, var(--border)); }
.pp-row .ui-row__main { flex: 1; min-width: 0; font-size: 13px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-row .ui-row__main > b { display: block; font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.pp-role { flex: none; font-size: 13px; color: var(--text-muted); }
.pp-more { margin-right: -8px; color: var(--text-faint); }
.pp-act { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left; font: inherit; cursor: pointer; color: var(--text-muted); font-size: 13px; }
.pp-act > i { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-sunken); color: var(--brand-fg, var(--brand)); font-style: normal; }
.pp-act > i .icon { width: 20px; height: 20px; }
.pp-act b { display: block; font-size: 15px; font-weight: 700; color: var(--brand-fg, var(--brand)); }
.pp-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
@media (min-width: 861px) { .app-sheet.pp-sheet { width: 400px; } }
@media (max-width: 640px) {
  #app-view.container { padding: 0 var(--gutter) calc(var(--tabbar-h) + var(--frame-end) + env(safe-area-inset-bottom, 0px)); }
  #mytrips { padding-bottom: var(--dock-room); }
}
@media (max-width: 640px) { .av-wrap { padding-bottom: 0; } }
@media (max-width: 640px) {
  body.has-app-view .container:has(> #logged-in-view) { padding: 0; }
}
@media (min-width: 641px) { #app-view .av-head, #app-view .sv-head, #app-view .fp-head { padding-top: 0; } #app-view .sv-view, #app-view .fp-view { padding-top: 0; } }
@media (max-width: 860px) {
  .trip-bottom-tabbar { height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--border); }
  .trip-bottom-tabbar button { gap: 2px; font-size: 11px; font-weight: 500; color: var(--text-faint); }
  .trip-bottom-tabbar button .tab-icon .icon, .trip-bottom-tabbar button .tab-icon svg { width: 24px; height: 24px; }
  .trip-bottom-tabbar button.active { color: var(--text); font-weight: 700; }
  .trip-bottom-tabbar button.active .tab-icon { color: var(--text); }
  .app-shell .app-body { padding-bottom: calc(var(--tabbar-h) + var(--frame-end) + env(safe-area-inset-bottom, 0px)); }
  .app-body #tab-panel-voucher.active, .app-body #tab-panel-expense.active, .app-body #tab-panel-checklist.active, .app-body #tab-panel-etc.active, .app-body #tab-panel-local.active { padding: 12px var(--gutter) 0; }
  .app-body #tab-panel-voucher.active, .app-body #tab-panel-expense.active, .app-body #tab-panel-checklist.active, .app-body #tab-panel-etc.active { padding-bottom: var(--dock-room); }
  .prep-dock, #tab-panel-etc #memo-add-open-btn, #tab-panel-voucher #voucher-add-open-btn { bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 861px) { #tab-panel-expense .ex-tabs { padding-left: 0; padding-right: 0; } }
@media (max-width: 860px) {
  .app-shell .app-body:has(> #tab-panel-chat.active) { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
#checklist-packing-card[hidden] { display: none !important; }
.mt-under[data-done]:empty { min-height: 0; }
.chat-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 861px) { body.chat-docked #tab-panel-chat .chat-sub { margin-right: -72px; } }
.sched-list .day-group > .sched-summary.is-inline > .day-add2-btn { margin-left: 6px; flex: none; }
.sched-list .day-group > .sched-summary.is-inline:not(:has(.sched-summary-weather)) > .day-add2-btn { margin-left: auto; }
.sched-list .day-group > .sched-summary.is-inline > .day-add2-btn + .day-edit-btn { margin-left: 2px !important; }
.day-add2-btn, .day-add2-btn .icon { color: var(--brand-fg, var(--brand)); }
.day-add2-btn { gap: 2px; }
@media (min-width: 861px) { body.chat-side .sched-list .day-group > .sched-summary.is-inline > .day-add2-btn { margin-left: auto; } }
.pp-inv { margin-top: 10px; padding: 14px 14px 12px; border-radius: var(--radius-lg); background: var(--bg-sunken); }
.pp-inv__l { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.pp-inv__pick > * { background: var(--card); }
.pp-inv__send { margin-top: 10px; gap: 6px; }
.pp-inv__send .icon { width: 18px; height: 18px; }
.pp-inv__h { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); text-wrap: pretty; }
.app-sheet-backdrop.is-menu .app-sheet.pp-sheet { width: 340px; padding: 8px 16px 12px; overflow-y: auto; scrollbar-width: none; }
.app-sheet-backdrop.is-menu .app-sheet.pp-sheet::-webkit-scrollbar { display: none; }
.app-sheet-backdrop.is-menu .app-sheet.pp-sheet .app-sheet-head { display: flex; min-height: 40px; }
.app-sheet-backdrop.is-menu .app-sheet.pp-sheet .app-sheet-title { font-size: 16px; }
.app-sheet-backdrop.is-menu .app-sheet.pp-sheet .app-sheet-close { display: none; }
.share-why { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; align-self: flex-start; font-size: 12.5px !important; font-weight: 600; color: var(--brand-fg, var(--brand)) !important; cursor: pointer; position: relative; }
.share-why::after { content: ""; position: absolute; inset: -8px -10px; }
.share-why .icon { width: 14px; height: 14px; }
.share-why[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }
.share-cmp { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; padding: 10px 0 12px; border-bottom: 1px solid var(--border); }
.share-cmp[hidden] { display: none; }
.share-cmp > i { align-self: center; font-style: normal; font-size: 11px; font-weight: 700; color: var(--text-faint); }
.share-cmp__c { border-radius: var(--radius-lg); padding: 10px 10px 11px; background: var(--bg-sunken); }
.share-cmp__c.is-on { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.share-cmp__c em { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.share-cmp__c.is-on em { color: var(--brand-fg, var(--brand)); }
.share-cmp__c b { display: block; font-size: 15px; font-weight: 800; padding: 1px 0 6px; }
.share-cmp__c p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
.share-cmp__c p.is-key { color: var(--text); font-weight: 600; }
.app-sheet-backdrop.is-menu .app-sheet.share-sheet2 { width: 340px; }
.tm-sec { margin: 4px 0 0; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.tm-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-sec--gap { margin: 8px calc(var(--gutter) * -1) 0; padding: 14px var(--gutter) 0; border-top: 8px solid var(--bg-sunken); }
.tm-go { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 0 4px; }
.tm-go__i { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 0 10px; border: 0; border-radius: var(--radius-lg); background: var(--bg-sunken); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 600; text-decoration: none; cursor: pointer; min-width: 0; }
.tm-go__i span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-go__i .icon { width: 24px; height: 24px; }
.tm-go__i:hover { filter: brightness(0.97); }
.app-sheet-backdrop.is-menu .app-sheet.tm-sheet { width: 300px; padding: 10px 16px; }
.app-sheet-backdrop.is-menu .tm-title { font-size: 17px; }
.app-sheet-backdrop.is-menu .tm-sec--gap { margin-inline: -16px; padding-inline: 16px; border-top-width: 6px; }
.ts-note { margin: 8px 0 4px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.ts-sheet .app-sheet-rows { margin-top: 4px; max-height: min(50dvh, 420px); overflow-y: auto; overscroll-behavior: contain; }
.ts-sheet .app-sheet-row-text b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ts-sheet .app-sheet-row-text span { font-variant-numeric: tabular-nums; }
.ts-new { width: 100%; margin-top: 10px; text-decoration: none; }
.ts-new .icon { width: 18px; height: 18px; }
.tm-sw { display: flex; align-items: center; gap: 14px; padding: 13px 0 4px; margin-top: 4px; border-top: 1px solid var(--border); cursor: pointer; }
.tm-sw .ui-switch { margin-left: auto; }
.app-sheet-backdrop.is-menu .app-sheet.pp-sheet { max-height: calc(100dvh - 76px); }
.mt-wx__d { border: 0; font: inherit; color: inherit; cursor: pointer; }
.mt-wx__d:hover { filter: brightness(0.97); }
.mt-wx__d.is-off:hover { background: var(--bg-sunken); }
@media (min-width: 861px) {
  .mt-wx__h { flex-wrap: nowrap; }
  .mt-wx__h .data-credit { display: inline-flex; width: auto; white-space: nowrap; }
  .mt-top > .mt-side { align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
  .mt-side > .mt-under[data-done]:empty + .mt-wx:not([hidden]) { flex: 1; display: flex; flex-direction: column; padding-top: 0; }
  .mt-side > .mt-under[data-done]:empty + .mt-wx .mt-wx__row { flex: 1; gap: 8px; padding-bottom: 0; }
  .mt-side > .mt-under[data-done]:empty + .mt-wx .mt-wx__d { max-width: none; flex: 1 0 68px; justify-content: center; gap: 12px; border-radius: var(--radius-lg); }
  .mt-side > .mt-under[data-done]:empty + .mt-wx .mt-wx__date { font-size: 14px; }
  .mt-side > .mt-under[data-done]:empty + .mt-wx .mt-wx__ic .icon { width: 36px; height: 36px; }
  .mt-side > .mt-under[data-done]:empty + .mt-wx .mt-wx__t { font-size: 14px; }
  .mt-side > .mt-under[data-done]:empty + .mt-wx .mt-wx__t b { font-size: 17px; }
}
.share-note { padding: 2px 0 12px 38px; border-bottom: 1px solid var(--border); }
.share-note[hidden] { display: none; }
.share-note ul { margin: 0; padding: 10px 14px 10px 28px; border-radius: var(--radius-lg); background: var(--bg-sunken); font-size: 12.5px; line-height: 1.55; color: var(--text-muted); }
.share-note li + li { margin-top: 4px; }
.app-sheet-rows > .share-note:last-child { border-bottom: 0; padding-bottom: 4px; }
.mt-top + .mt-sec { padding-top: 40px; }
@media (max-width: 640px) { #mytrips > .mt-head > .mt-title { padding-top: 0; } }
@media (min-width: 861px) {
  #tab-panel-expense .ex-tabs__end { position: absolute; top: 21px; right: 17px; z-index: 2; display: flex; align-items: center; gap: 8px; }
  #tab-panel-expense .ex-tabs__end .ex-add-pc { position: static; }
}
@media (min-width: 861px) {
  .app-shell .app-body:has(> #tab-panel-voucher.active), .app-shell .app-body:has(> #tab-panel-etc.active) { scrollbar-gutter: stable; }
  .app-shell .app-body:has(> #tab-panel-voucher.active) #voucher-add-open-btn, .app-shell .app-body:has(> #tab-panel-etc.active) #memo-add-open-btn { right: 17px; }
}
body.is-sample #comments-panel[data-sample-note]::after { content: attr(data-sample-note); display: block; flex: none; padding: 12px 14px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.5; color: var(--text-muted); text-align: center; text-wrap: balance; }
@media (max-width: 860px) {
  .app-shell { position: fixed; inset: 0; height: auto; }
  .app-sheet-backdrop > .app-sheet.ex-win-sheet { height: 100%; }
  .app-sheet.ex-win-sheet .ex-win { height: 100%; }
}
@media (max-width: 640px) {
  .app-sheet-backdrop > .app-sheet.nw-sheet { height: 100%; }
  .app-sheet-backdrop > .app-sheet.day-edit-sheet { height: 92%; max-height: 92%; }
}
@media (min-width: 861px) {
  .app-shell .app-body:has(> #tab-panel-expense.active), .app-shell .app-body:has(> #tab-panel-checklist.active) { scrollbar-gutter: stable; }
  #tab-panel-expense.ex2--solo .ex-tabs { position: static; }
}
@media (max-width: 860px) {
  .app-shell:has(.fb-overlay:not([hidden])), body.add-open .app-shell { z-index: 100; }
}
@media (min-width: 861px) {
  .app-header-right > .btn, .app-header-right > .popover-wrap > .btn, .app-header-right #members-btn, .app-header-right #trip-chat-btn, .app-header-right #share-btn, .app-header-right #trip-more-btn { height: 34px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
  .app-header-right #trip-more-btn, .app-header-right #trip-chat-btn { width: 44px; padding: 0; }
  .app-header-right #trip-more-btn .icon-inline, .app-header-right #trip-chat-btn .icon-inline { margin: 0; display: inline-flex; }
}
@media (max-width: 860px) {
  .app-shell .app-header-right #guest-login-save-btn { height: 34px; min-width: 0; padding: 0 12px; border-radius: 999px; background: var(--brand); color: var(--brand-contrast, #fff); font-weight: 700; }
  .app-shell .app-header-right #auth-area { order: 8; }
  .app-shell .app-header-right #trip-more-btn { order: 9; }
}
.app-sheet.ps-sheet { position: relative; scrollbar-width: none; }
.app-sheet.ps-sheet::-webkit-scrollbar { display: none; }
.ps-x { display: none; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.ps-x:hover { background: var(--bg-sunken); }
.ps-x .icon { width: 22px; height: 22px; }
.ps-name { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding-bottom: 4px; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
.ps-name > span { min-width: 0; }
.ps-dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; }
.ps-dot--none { box-shadow: inset 0 0 0 2px var(--border-strong); }
.ps-when { margin: 0; padding-left: 20px; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.ps-memo { margin: 0; padding: 6px 0 0 20px; font-size: 14.5px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.ps-addr { display: flex; align-items: center; gap: 10px; width: calc(100% - 20px); margin: 8px 0 0 20px; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); text-align: left; cursor: pointer; }
.ps-addr > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ps-addr > em { flex: none; display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 600; color: var(--brand-fg); white-space: nowrap; }
.ps-addr .icon { width: 14px; height: 14px; }
.ps-react { margin-top: 12px; }
.ps-react .react-row { margin: 0; }
.ps-info { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 12px; padding: 12px 0; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; color: var(--text); text-align: left; text-decoration: none; cursor: pointer; }
.ps-info > .icon { flex: none; width: 24px; height: 24px; }
.ps-info > .icon:last-child { width: 20px; height: 20px; color: var(--text-faint); transition: transform 0.15s ease; }
.ps-info.is-open > .icon:last-child { transform: rotate(180deg); }
.ps-info__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ps-info__t b { font-size: 16px; font-weight: 600; }
.ps-info__t small { font-size: 12.5px; color: var(--text-muted); }
.ps-info.is-open .ps-info__t small { display: none; }
.ps-card { margin-bottom: 4px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.ps-card[hidden] { display: none; }
.ps-card.is-loading { min-height: 120px; background: var(--bg-sunken); animation: dash-weather-pulse 1.2s ease-in-out infinite; }
.ps-card .pd-uikit { margin: 0; min-height: 0; }
@media (prefers-reduced-motion: reduce) { .ps-card.is-loading { animation: none; } .ps-info > .icon:last-child { transition: none; } }
.ps-book { display: flex; align-items: center; gap: 10px; min-height: 46px; margin-top: 8px; padding: 0 14px; border-radius: var(--radius-md); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 700; color: var(--text); text-decoration: none; }
.ps-book:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.ps-book > .icon { flex: none; width: 20px; height: 20px; color: var(--brand-fg); }
.ps-book .item-row-affiliate-label { display: inline; }
.ps-book .item-row-affiliate-short { display: none; }
.ps-book .item-row-affiliate-badge { position: static; display: inline; width: auto; height: auto; padding: 0; background: none; font-size: 11.5px; font-weight: 500; color: var(--text-faint); opacity: 1; }
.ps-acts { display: flex; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.ps-act { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px 2px; border: 0; border-radius: var(--radius-md); background: none; font: inherit; font-size: 12px; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.ps-act:hover { background: var(--bg-sunken); }
.ps-act .icon { width: 22px; height: 22px; }
.ps-act span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-act.is-danger { color: var(--alert); }
@media (min-width: 641px) {
  .app-sheet.ps-sheet { padding-top: 20px; max-height: calc(100dvh - 48px); }
  .ps-x { display: inline-flex; }
  .ps-name { padding-right: 34px; }
}
.plan-ban { display: flex; align-items: center; gap: 8px; margin: 4px var(--gutter) 12px; padding: 10px 4px 10px 14px; border-radius: var(--radius-lg); background: var(--brand-soft); color: var(--brand-soft-text); position: relative; z-index: 4; }
.plan-ban__t { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.45; word-break: keep-all; text-wrap: balance; }
.plan-ban__t b { display: block; font-size: 13.5px; }
.plan-ban__go { flex: none; }
.plan-ban__x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: inherit; display: grid; place-items: center; cursor: pointer; }
.plan-ban__x .icon { width: 16px; height: 16px; }
.guest-share-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 2px; font-size: 12.5px; color: var(--text-muted); }
.guest-share-or::before, .guest-share-or::after { content: ""; flex: 1; height: 1px; background: var(--border-subtle); }
@media (max-width: 340px) { .plan-ban { flex-wrap: wrap; } .plan-ban__t { flex-basis: calc(100% - 42px); } .plan-ban__x { order: 2; } .plan-ban__go { order: 3; } }
.ai-import-linkmode { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; }
.ai-import-linkmode .ui-link { font-size: 13px; font-weight: 700; }
.ai2-ta .ai-import-text { display: block; width: 100%; min-height: 168px; padding: 14px 14px 6px; border: 0; background: none; box-shadow: none; outline: 0; resize: none; font: inherit; font-size: 14px; line-height: 1.6; color: var(--text); }
.ai2-pdf { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--bg-sunken); font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; }
.ai2-pdf .icon { width: 14px; height: 14px; }
.ai2-pdfnote { min-width: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai2-pdfnote[hidden] { display: none; }
.ai-import-modal #ai-import-pv-full { margin: 8px 2px 0; }
.ai-import-modal #ai-import-pv-full[hidden] { display: none; }
.ai2-copy { flex: none; display: inline-flex; align-items: center; gap: 4px; height: var(--ctl-h-sm); padding: 0 12px; border: 0; border-radius: 999px; background: var(--text); color: var(--card); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ai2-copy .icon { width: 14px; height: 14px; }
.ai2-link { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 0 14px; border: 0; border-radius: var(--radius-md); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: inherit; font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.ai2-link .icon { flex: none; width: 16px; height: 16px; }
.ai2-link span { flex: 1; min-width: 0; }
.ai2-link em { flex: none; font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-faint); }
.ai2-link.is-done, .ai2-copy.is-done { opacity: 0.75; }
.ai2-linknote { margin: 6px 2px 10px; font-size: 12px; line-height: 1.5; color: var(--text-muted); word-break: keep-all; }
.ai2-show { display: block; margin: 0 auto; }
.ai2-how__body .ai-import-prompt-text { margin: 10px 0 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--card); font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow-y: auto; }
.ai2-how__body .ai-import-prompt-text[hidden] { display: none; }
.ai-import-modal .ai2-foot { justify-content: stretch; }
.ai-import-modal .ai2-foot .ui-btn { flex: 1 1 auto; }
.ai-import-modal .ai2-foot .ui-btn.is-off { opacity: 0.45; }
body:has(.fb-overlay.al-view:not([hidden])) .app-sheet-backdrop { z-index: 1260; }
.ai-import-modal .ai-import-foot { bottom: -20px; margin-bottom: -20px; }
@media (max-width: 640px) { .ai-import-modal .ai-import-foot { bottom: -20px; margin-bottom: -20px; } }
@media (min-width: 641px) {
  #ai-import-body:has(> .ai-import-tabs) { display: flex; flex-direction: column; min-height: 452px; }
  #ai-import-body:has(> .ai-import-tabs) > .ai-import-foot { margin-top: auto; }
  #ai-import-body:has(> .ai-import-tabs) > .ai2-how { margin-bottom: 16px; }
}
.app-rail-brand { width: 34px; height: 34px; overflow: hidden; background: url("/assets/brand/icon.svg?v=1") center / contain no-repeat; }
.app-rail-brand > .app-rail-brand-line { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-offline-snapshot .app-shell { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
body.is-offline-snapshot .trip-bottom-tabbar { display: none; }
body.is-offline-snapshot .app-shell > .container { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)) !important; }
.offline-item-row--voucher { align-items: center; flex-wrap: wrap; }
.offline-v-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.offline-v-main > b { font-weight: 700; overflow-wrap: anywhere; }
.offline-v-main > .muted { font-size: 13px; }
.offline-vf { display: flex; flex-wrap: wrap; gap: 6px; }
.offline-vf > button { display: inline-flex; align-items: center; gap: 5px; max-width: 220px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: var(--brand-soft); color: var(--brand-soft-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.offline-vf > button .icon { width: 14px; height: 14px; flex: none; }
.offline-vf > button > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.members-count-pill[hidden] { display: none; }
.dash-off { display: flex; flex-direction: column; }
.dash-off > .banner { margin-bottom: 8px; }
.dash-off__row { text-decoration: none; }
.dash-off__row > .icon { width: 20px; height: 20px; flex: none; color: var(--text-muted); }
.dash-off__row .ui-row__main > span { font-size: 12.5px; color: var(--text-muted); }
.dash-off__row.is-off { opacity: 0.55; }
.dash-off__need { flex: none; font-size: 12px; color: var(--text-muted); }
.ck-tip__more { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 0 12px; height: var(--chip-h); border-radius: 999px; background: var(--brand-soft); color: var(--brand-soft-text); font-weight: 700; }
.ck-tip__more::after { content: ""; width: 7px; height: 7px; margin: -3px 0 0 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.ck-tip__more:hover { filter: brightness(0.97); }
.jr-banner { margin: 4px 0 12px; padding: 12px 14px; border-radius: var(--radius-card); background: var(--warn-bg); }
.jr-banner__h { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 14.5px; color: var(--warn-text); }
.jr-banner__h .icon { width: 16px; height: 16px; }
.jr-req { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--warn-text) 18%, transparent); }
.jr-req:first-of-type { border-top: 0; }
.jr-req__t { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jr-req__t b { font-size: 15px; }
.jr-req__t small { font-size: 12.5px; color: var(--text-muted); }
.jr-req__b { display: flex; gap: 6px; flex: none; }
.jr-req__b .ui-btn { height: var(--ctl-h-sm); padding: 0 14px; font-size: 13.5px; }
.jr-sheet { margin-top: 12px; }
.jr-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-top: 1px solid var(--border-subtle); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.jr-toggle > span { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.jr-toggle b { font-size: 15px; }
.jr-toggle small { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.jr-sw { flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--border); transition: background .15s; }
.jr-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.jr-toggle[aria-checked="true"] .jr-sw { background: var(--brand); }
.jr-toggle[aria-checked="true"] .jr-sw::after { transform: translateX(18px); }
.jr-sheet__h { margin: 10px 0 2px; font-size: 13px; font-weight: 800; color: var(--warn-text); }
.jr-wait { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.jr-wait__in { width: 100%; max-width: 380px; text-align: center; }
.jr-wait__ic { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-fg); }
.jr-wait__ic .icon { width: 34px; height: 34px; }
.jr-wait h1 { margin: 0 0 8px; font-size: 22px; }
.jr-wait p { margin: 0 0 22px; font-size: 15px; color: var(--text-muted); line-height: 1.6; word-break: keep-all; }
.jr-wait .ui-btn + .ui-btn { margin-top: 8px; }
.jr-dash { max-width: 960px; margin: 0 auto 10px; }
.jr-dash__row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-card); background: var(--brand-soft); color: var(--brand-soft-text); margin-top: 8px; }
.jr-dash__row > .icon { width: 18px; height: 18px; flex: none; }
.jr-dash__row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jr-dash__row b { font-size: 15px; }
.jr-dash__row small { font-size: 12.5px; opacity: .85; }
.ex-rate-note { margin: 0 0 12px; font-size: 13px; line-height: 1.55; color: var(--text-muted); word-break: keep-all; }
.ex-rate-note .icon { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.ex-rate-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 4px 10px; padding: 10px 0; border-top: 1px solid var(--border-subtle); font-size: 14px; }
.ex-rate-row:last-of-type { border-bottom: 1px solid var(--border-subtle); margin-bottom: 12px; }
.ex-rate-row small { display: block; color: var(--text-muted); font-size: 12px; }
.ex-rate-row .mono-num { white-space: nowrap; }
.ex-rate-row > b { font-size: 15px; }
.ex-rate-empty { margin: 4px 0; color: var(--text-muted); font-size: 14px; }
.mt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mt-head > .mt-title { min-width: 0; }
@media (max-width: 860px) { .mt-under[data-done]:not(:has(> :not(.mt-pc-only))) { min-height: 0; } }
.mt-smp[hidden] { display: none; }
.mt-smp__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mt-smp__x { flex: none; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.mt-smp__s { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.mt-top + .mt-smp > .mt-sec { padding-top: 40px; }
@media (min-width: 861px) {
  .mt-smp .smp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .mt-smp .smp-card { width: auto; height: 170px; }
}
.ss-sheet .ss-sub { margin: 0 0 12px; color: var(--text-muted); font-size: 13.5px; word-break: keep-all; text-wrap: pretty; }
.ss-sheet .ss-url { min-height: 48px; padding-right: 6px; }
.ss-sheet .ss-url > input { font-size: 14px; padding: 12px 0; text-overflow: ellipsis; }
.ss-sheet .ss-url > .ui-btn { flex: none; height: var(--ctl-h); }
.ss-sheet .ss-lbl { margin: 16px 0 2px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.ss-sheet .ss-row { cursor: pointer; }
.ss-sheet .ss-row .ui-row__main { flex: 1; min-width: 0; }
.ss-sheet .ss-row .ui-row__main b { display: block; font-size: 15px; font-weight: 600; }
.ss-sheet .ss-row .ui-row__main small { display: block; color: var(--text-muted); font-size: 12.5px; line-height: 1.4; word-break: keep-all; }
.ss-sheet .ss-row .ui-switch:disabled { opacity: 0.45; cursor: default; }
.ss-sheet .ss-note { margin: 14px 0 0; color: var(--text-muted); font-size: 13px; }
.ui-dialog__btns--sheet { margin-top: 14px; }
.ui-dialog__btns--sheet > .ui-btn { height: 48px; }
.ui-dialog__btns--sheet > .ui-btn--quiet:first-child { flex: 0 0 96px; }
.offline-strip { display: flex; align-items: center; gap: 8px; margin: 12px var(--gutter, 16px) 0; padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg-sunken); font-size: 13px; line-height: 1.45; color: var(--text-muted); word-break: keep-all; }
.offline-strip .icon { flex: none; width: 17px; height: 17px; }
.container.offline-wrap { max-width: 720px; padding: 14px var(--gutter, 16px) 24px; }
.offline-title { margin: 6px 0 2px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.offline-range { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.offline-jump { margin: 14px 0 4px; }
.offline-jump small { font-weight: 600; opacity: 0.7; }
.offline-h { margin: 26px 0 4px; font-size: 17px; font-weight: 800; scroll-margin-top: 12px; }
.offline-wrap .offline-day-group { margin: 0 0 6px; }
.offline-wrap .offline-day-group h3 { margin: 14px 0 2px; font-size: 13.5px; font-weight: 800; color: var(--text); }
.offline-wrap .offline-item-row { align-items: flex-start; gap: 12px; min-height: 44px; padding: 8px 0; }
.offline-tm { flex: none; width: 46px; font-size: 14px; font-weight: 800; }
.offline-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.offline-t b { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offline-t small { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offline-wrap .offline-item-row--voucher { align-items: center; }
.offline-v-ic { flex: none; width: 36px; height: 36px; border-radius: var(--radius-md); display: grid; place-items: center; background: var(--bg-sunken); color: var(--text-muted); }
.offline-v-ic .icon { width: 18px; height: 18px; }
.offline-v-no { font-size: 13px; color: var(--text-muted); }
.offline-v-no b { color: var(--text); font-size: 14.5px; letter-spacing: 0.03em; }
.offline-tel { align-items: center !important; justify-content: space-between; font-size: 14px; }
.offline-tel a { font-weight: 700; color: var(--brand-fg); text-decoration: none; white-space: nowrap; }
.offline-back { margin-top: 28px; }
