/* =============================================================
   Components — Card · Button · Chip · Form · Timeline · Landing
   ============================================================= */

/* --- Step Indicator (event-create) ------------------------- */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 12px 0 16px;
}
.step-indicator__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.step-indicator__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--osh-border);
  color: var(--osh-text-muted);
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.step-indicator__label {
  font-size: .72rem;
  color: var(--osh-text-muted);
  white-space: nowrap;
}
.step-indicator__item.is-active .step-indicator__num {
  background: var(--oshi-1);
  color: var(--oshi-1-text);
}
.step-indicator__item.is-active .step-indicator__label {
  color: var(--osh-text);
  font-weight: 700;
}
.step-indicator__item.is-done .step-indicator__num {
  background: var(--oshi-1);
  color: var(--oshi-1-text);
  opacity: .6;
}
.step-indicator__line {
  flex: 1;
  height: 2px;
  background: var(--osh-border);
  margin: 0 6px;
  margin-bottom: 14px;
}

/* --- Oshi Image Picker (event-create) ---------------------- */
.oshi-image-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.oshi-image-preview {
  width: 72px; height: 72px;
  border-radius: var(--r-card);
  border: 2px dashed var(--osh-border);
  background: var(--osh-surface-2);
  background-size: cover;
  background-position: center;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  color: var(--osh-text-muted);
  transition: border-color .2s;
  overflow: hidden;
}
.oshi-image-preview.has-image {
  border-style: solid;
  border-color: var(--oshi-1);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Card -------------------------------------------------- */
.card {
  background: var(--osh-surface);
  border: 1px solid var(--osh-border);
  border-radius: var(--r-card);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
}
.card + .card    { margin-top: var(--sp-3); }
.card--flat      { box-shadow: none; }
.card--accent    { border-top: 4px solid var(--oshi-1); }
.card-label {
  font-size: .78rem; font-weight: 700;
  color: var(--osh-text-muted); letter-spacing: .04em;
  display: flex; align-items: center; gap: var(--sp-1);
  margin-bottom: var(--sp-2);
}
.card-label svg { width: 13px; height: 13px; flex-shrink: 0; }
.card-heading { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.card-body    { font-size: .875rem; color: var(--osh-text-muted); margin-top: 4px; }

/* --- Section heading --------------------------------------- */
.section-heading {
  font-size: .78rem; font-weight: 700;
  color: var(--osh-text-muted); letter-spacing: .04em;
  text-transform: uppercase;
  padding: var(--sp-4) 0 var(--sp-2);
}

/* --- Button ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2); padding: 12px var(--sp-5);
  border-radius: var(--r-btn); border: none;
  font-size: .9rem; font-weight: 700; line-height: 1;
  cursor: pointer; user-select: none;
  transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }

.btn--primary   { background: var(--osh-accent); color: #fff; }
.btn--primary:hover { opacity: .87; }

.btn--secondary {
  background: transparent; color: var(--osh-accent);
  border: 2px solid var(--osh-accent);
}
.btn--secondary:hover { background: var(--osh-accent-light); }

.btn--ghost {
  background: transparent; color: var(--osh-text-muted);
  border: 1.5px solid var(--osh-border);
}
.btn--ghost:hover { background: var(--osh-bg-subtle); }

.btn--oshi {
  background: var(--osh-surface);
  color: var(--osh-text);
  border: none;
  box-shadow: inset 0 0 0 4px var(--oshi-1),
              0 0 0 1.5px rgba(0,0,0,0.10),
              0 2px 8px rgba(0,0,0,.12);
}
.btn--oshi:hover { background: var(--osh-bg-subtle); }
.btn--wide { width: 100%; }
.btn--sm   { padding: 8px 14px; font-size: .82rem; }
.btn--lg   { padding: 16px 32px; font-size: 1rem; }

.icon-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--osh-border);
  background: var(--osh-surface);
  color: var(--osh-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: var(--osh-bg-subtle); color: var(--osh-text); }
.icon-btn:active { transform: scale(.96); }
.icon-btn--danger { color: var(--osh-error); border-color: rgba(255,77,109,.45); }
.icon-btn--danger:hover { background: #fff1f4; border-color: var(--osh-error); }

/* --- Chip / Tag ------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 3px 10px; border-radius: var(--r-chip);
  font-size: .75rem; font-weight: 600; line-height: 1;
  border: 1.5px solid transparent; white-space: nowrap;
}
.chip--default { background: var(--osh-bg-subtle); color: var(--osh-text-muted); border-color: var(--osh-border); }
.chip--items-move { background: rgba(139, 92, 246, 0.12); color: #6d28d9; border-color: rgba(139, 92, 246, 0.38); }
.chip--items-locker { background: rgba(96, 165, 250, 0.12); color: #1d4ed8; border-color: rgba(96, 165, 250, 0.38); }
.chip--success { background: #e6f9ef; color: #2a9a5a; }
.chip--warning { background: #fff5e0; color: #b07200; }
.chip--error   { background: #ffe8eb; color: #c0002f; }
.chip--oshi    { background: transparent; border-color: var(--oshi-1); color: var(--osh-text-muted); }
.chip--locker-loc { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; font-size: .68rem; }

/* --- Form ------------------------------------------------- */
.form-group             { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-group + .form-group { margin-top: var(--sp-4); }
.form-label             { font-size: .82rem; font-weight: 600; color: var(--osh-text); }
.form-label .required   { color: var(--osh-error); margin-left: 4px; font-size: .75rem; }
.form-control {
  display: block; width: 100%;
  padding: 12px var(--sp-3);
  border: 1.5px solid var(--osh-border);
  border-radius: var(--r-btn);
  background: var(--osh-surface); color: var(--osh-text);
  font-size: 1rem; outline: none;
  transition: border-color .15s; -webkit-appearance: none;
}
/* select は矢印アイコンを追加して選択式と分かるように */
select.form-control {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-control:focus { border-color: var(--osh-accent); }
.form-control::placeholder { color: var(--osh-text-light); }
.achievement-praise-input {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1.5px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.36);
  border-radius: 12px;
  background: #fff;
  color: var(--osh-text, #2d2d2d); font-size: .8rem; line-height: 1.5;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.03),
    0 0 0 1px rgba(255,255,255,0.65);
}
.achievement-praise-input:focus {
  border-color: var(--osh-accent, #8b5cf6);
  box-shadow:
    0 0 0 3px rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.12),
    inset 0 1px 2px rgba(15, 23, 42, 0.04);
  outline: none;
}
.achievement-praise-input::placeholder { color: var(--osh-text-light, #9ca3af); }
.form-hint { font-size: .78rem; color: var(--osh-text-muted); }
.legal-consent-text {
  margin-left: 8px;
  display: inline;
  line-height: 1.75;
}
.legal-inline-link {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin: 0 3px;
  border-radius: 999px;
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.45);
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.12);
  color: var(--osh-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-inline-link:hover {
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.2);
}
.form-section-title {
  font-size: .85rem; font-weight: 700; color: var(--osh-accent);
  padding: var(--sp-5) 0 var(--sp-3);
  border-bottom: 1px dashed var(--osh-border); margin-bottom: var(--sp-4);
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.form-grid-2 { align-items: stretch; }
.form-grid-2 > .form-group {
  margin-top: 0;
  height: 100%;
}
.form-grid-2 .form-hint {
  min-height: 1.1em;
}

/* Color picker */
.color-pick-row { display: flex; align-items: center; gap: var(--sp-3); }
.color-swatch {
  width: 40px; height: 40px; border-radius: var(--r-chip);
  border: 2px solid var(--osh-border); cursor: pointer;
  overflow: hidden; position: relative; flex-shrink: 0;
}
.color-swatch input[type="color"] {
  position: absolute; width: 200%; height: 200%;
  top: -25%; left: -25%; border: none; padding: 0; opacity: 0; cursor: pointer;
}
.color-swatch-preview { width: 100%; height: 100%; border-radius: var(--r-chip); }

/* --- Progress bar ----------------------------------------- */
.progress-bar {
  height: 8px; border-radius: 999px;
  background: var(--osh-bg-subtle);
  border: 1.5px solid var(--osh-border);
  overflow: visible;
  position: relative;
  margin: 5px 0;
}
.progress-bar__fill {
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  height: 16px; border-radius: 999px;
  background: var(--oshi-1);
  transition: width .4s ease;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.25);
}

/* --- MyPage event actions/list -------------------------------- */
.myp-event-primary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.myp-event-primary-actions .btn { width: 100%; }
.myp-current-event-card {
  position: relative;
  padding-top: 18px;
}
.myp-current-event-edit {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}
.myp-event-danger-zone {
  display: flex;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px dashed var(--osh-border-light);
}

.myp-event-list-card {
  border: 1px solid var(--osh-border-light);
  border-radius: 12px;
  background: var(--osh-surface);
  padding: 12px;
}
.myp-event-list-card.is-active {
  border-color: var(--osh-accent);
  box-shadow:
    0 0 0 1px rgba(239, 68, 68, .30),
    0 6px 18px rgba(239, 68, 68, .14);
}
.myp-event-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.myp-event-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.myp-event-list-title { font-size: .9rem; font-weight: 700; line-height: 1.35; }
.myp-event-list-sub { font-size: .75rem; color: var(--osh-text-muted); margin-top: 2px; }
.myp-event-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.myp-event-list-actions-left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.myp-event-list-actions-right {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.myp-event-detail {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--osh-border-light);
}
.myp-event-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.myp-event-detail-item {
  font-size: .75rem;
  color: var(--osh-text-muted);
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),.05);
  border: 1px solid var(--osh-border-light);
  border-radius: 8px;
  padding: 6px 8px;
}
.myp-event-detail-item strong {
  display: block;
  color: var(--osh-text);
  font-size: .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.myp-event-image-mini {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  border: 1px solid var(--osh-border);
  background: #fff center/cover no-repeat;
}

.myp-event-note {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--osh-border-light);
  border-radius: 10px;
  background: #fff;
}
.myp-event-note__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--osh-text);
  margin-bottom: 6px;
}
.myp-event-note__input {
  width: 100%;
  min-height: 78px;
  resize: vertical;
  border: 1px solid var(--osh-border);
  border-radius: 8px;
  padding: 8px;
  font-size: .8rem;
  color: var(--osh-text);
  background: #fff;
}
.myp-event-note__actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.myp-event-records {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--osh-border-light);
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),.04);
}
.myp-event-records__title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--osh-text);
  margin-bottom: 8px;
}
.myp-event-records__body {
  display: grid;
  gap: 8px;
}
.myp-record-row {
  border: 1px solid var(--osh-border-light);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}
.myp-record-row__head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.myp-record-row__title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--osh-text);
}
.myp-record-row__meta {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .72rem;
  color: var(--osh-text-muted);
}
.myp-record-row__meta a {
  color: var(--osh-accent);
  text-decoration: none;
}
.myp-record-row__memo {
  margin-top: 6px;
  font-size: .75rem;
  color: var(--osh-text-muted);
  white-space: pre-wrap;
}
.myp-record-images {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.myp-record-image-link {
  display: inline-flex;
}
.myp-record-image {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--osh-border-light);
  object-fit: cover;
}

.chip--active-event {
  background: #ffe8eb;
  color: #c0002f;
  border-color: rgba(239,68,68,.45);
}

.myp-ach-layer-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.myp-ach-layer-switch .is-active {
  background: var(--osh-accent-light);
  border-color: var(--osh-accent);
  color: var(--osh-accent);
}

.myp-ach-node {
  margin-top: 12px;
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.34);
  border-radius: 12px;
  background:
    linear-gradient(160deg,
      rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.13) 0%,
      rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.07) 100%);
  overflow: hidden;
}
.myp-ach-node[data-level="2"] {
  border-color: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.40);
  background:
    linear-gradient(160deg,
      rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.15) 0%,
      rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.09) 100%);
}
.myp-ach-node[data-level="3"] {
  border-color: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.46);
  background:
    linear-gradient(160deg,
      rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.17) 0%,
      rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.11) 100%);
}
.myp-ach-node-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(255,255,255,0.56);
  border: 0;
  border-bottom: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.28);
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--osh-text-muted);
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
}
.myp-ach-node-content {
  padding: 12px;
  background: rgba(255,255,255,0.90);
}
.myp-ach-node-children {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.24);
}

.mypage-screen .card > .card-label {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  width: calc(100% + (var(--sp-4) * 2));
  margin-top: calc(-1 * var(--sp-4));
  margin-left: calc(-1 * var(--sp-4));
  margin-right: calc(-1 * var(--sp-4));
  margin-bottom: 12px;
  padding: 11px 14px;
  border-radius: var(--r-card) var(--r-card) 0 0;
  border: 0;
  border-bottom: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.28);
  background:
    linear-gradient(120deg,
      rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.24) 0%,
      rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.14) 100%);
  color: var(--osh-text);
}
.mypage-screen .card > .card-label svg {
  color: var(--oshi-1);
}
.myp-current-event-card > .card-label {
  padding-right: 52px;
}

/* --- MyPage scope grouping ------------------------------------ */
.myp-scope-card { position: relative; overflow: hidden; }
.myp-scope-card::after {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}
.myp-scope-card--account {
  border-color: rgba(37,99,235,.30);
  background:
    linear-gradient(180deg,
      rgba(37,99,235,.06) 0%,
      rgba(255,255,255,1) 18%);
}
.myp-scope-card--account::after {
  content: 'アカウント共通';
  color: #1e40af;
  border: 1px solid rgba(37,99,235,.30);
  background: rgba(37,99,235,.10);
}
.myp-scope-card--event {
  border-color: rgba(5,150,105,.32);
  background:
    linear-gradient(180deg,
      rgba(5,150,105,.07) 0%,
      rgba(255,255,255,1) 18%);
}
.myp-scope-card--event::after {
  content: '有効イベントのみ';
  color: #065f46;
  border: 1px solid rgba(5,150,105,.32);
  background: rgba(5,150,105,.11);
}

@media (max-width: 399px) {
  .myp-event-primary-actions { grid-template-columns: 1fr; }
  .myp-event-detail-grid { grid-template-columns: 1fr; }
}

/* --- Event header card ------------------------------------- */
.event-header-card {
  background: rgba(var(--_o1r,255),var(--_o1g,127),var(--_o1b,150),.08);
  border: 1px solid var(--osh-border);
  border-radius: var(--r-card);
  padding: var(--sp-4); position: relative; overflow: hidden;
}
/* Simple fallback: accent border stripe */
.event-header-card::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 14px; border-radius: var(--r-card) 0 0 var(--r-card);
  background: var(--oshi-1);
  border-right: 2px solid var(--oshi-2);
}
.event-header-card__name { font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.event-header-card__meta {
  font-size: .82rem; color: var(--osh-text-muted);
  margin-top: var(--sp-1);
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
}
.event-header-card__colors { display: flex; gap: 6px; margin-top: var(--sp-3); }
.oshi-pip {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* --- Alert card ------------------------------------------- */
.alert-card {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: #fff9e6; border: 1px solid #f5d06a;
  border-radius: 12px; padding: var(--sp-3) var(--sp-4);
  font-size: .875rem;
}
.alert-card--info  { background: #eef5ff; border-color: #b3d0ff; }
.alert-card--error { background: #ffe8eb; border-color: #ffb3be; }
.alert-icon        { flex-shrink: 0; font-size: 1.1rem; line-height: 1.6; }

/* --- Achievement popup ------------------------------------- */
.achievement-popup {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.achievement-popup[hidden] { display: none; }
.achievement-popup.is-visible { opacity: 1; pointer-events: auto; }
.achievement-popup__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.achievement-popup__card {
  position: relative; z-index: 1;
  width: min(90vw, 360px);
  border-radius: 20px; overflow: hidden;
  background: var(--osh-card-bg, #fff);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transform: scale(0.92);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.achievement-popup.is-visible .achievement-popup__card { transform: scale(1); }
.achievement-popup__stripe { height: 14px; }
.achievement-popup__body {
  padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
/* 推し画像 → 吹き出し → 完了タイトル の縦並び */
.achievement-popup__bubble-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.achievement-popup__img-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}
.achievement-popup__img-wrap[hidden] { display: none; }
.achievement-popup__oshi-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.14));
}
.achievement-popup__bubble {
  position: relative;
  width: 100%;
  background: #f5f5f7;
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.18);
  border-radius: 18px;
  padding: 12px 14px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.06);
}
.achievement-popup__bubble::before {
  content: '';
  position: absolute;
  top: -10px; left: 32px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.18);
}
.achievement-popup__bubble::after {
  content: '';
  position: absolute;
  top: -8px; left: 33px;
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid #f5f5f7;
}
.achievement-popup__img-wrap[hidden] ~ .achievement-popup__bubble {
  border-radius: 12px;
}
.achievement-popup__praise {
  font-size: 0.82rem;
  color: var(--osh-text, #1a1a1a);
  line-height: 1.6;
  margin: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}
.achievement-popup__title {
  font-size: 1.02rem; font-weight: 800;
  color: var(--osh-text, #1a1a1a);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}
.achievement-popup__close {
  width: 100%; padding: 10px; margin-top: 4px;
}

/* --- Weather card ------------------------------------------ */
.weather-card {
  background: var(--osh-card-bg, #fff);
  border-radius: var(--osh-radius, 12px);
  box-shadow: var(--osh-shadow-sm, 0 1px 4px rgba(0,0,0,.08));
  padding: 14px 16px;
}
.weather-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.weather-card__head-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.weather-card__head-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--osh-text-muted, #888);
  text-transform: uppercase;
}
.weather-card__head-label svg { width: 13px; height: 13px; }
.weather-card__location {
  font-size: 11px;
  color: var(--osh-text-muted, #888);
}
.weather-card__location-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.weather-card__location-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.10);
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.22);
  color: var(--osh-text);
  font-size: 11px;
  font-weight: 700;
}
.weather-card__location-edit {
  font-size: 11px;
  font-weight: 700;
  color: var(--osh-accent);
  text-decoration: none;
}
.weather-card__location-edit:hover {
  text-decoration: underline;
}
.weather-card__day {
  padding: 8px 0;
  border-top: 1px solid var(--osh-border-light, #eee);
}
.weather-card__day:first-of-type { border-top: none; padding-top: 0; }
.weather-card__day-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--osh-text, #333);
  margin-bottom: 5px;
}
.weather-card__day-main {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.weather-card__icon {
  width: 26px; height: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.weather-card__icon svg { width: 100%; height: 100%; }
.weather-card__icon--clear   { color: #f59e0b; }
.weather-card__icon--cloud   { color: #94a3b8; }
.weather-card__icon--rain    { color: #3b82f6; }
.weather-card__icon--snow    { color: #93c5fd; }
.weather-card__icon--thunder { color: #7c3aed; }
.weather-card__icon--fog     { color: #94a3b8; }
.weather-card__wlabel {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 40px;
}
.weather-card__temp {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-size: 13px;
}
.weather-card__temp-max { color: #e05252; font-weight: 700; }
.weather-card__temp-sep { color: var(--osh-text-muted, #bbb); font-size: 11px; margin: 0 1px; }
.weather-card__temp-min { color: #3b82f6; font-weight: 600; }
.weather-card__precip {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px; color: #3b82f6;
  background: #eff6ff; border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
.weather-card__wind {
  display: flex; align-items: center; gap: 3px;
  font-size: 12px;
  color: var(--osh-text-muted, #888);
  white-space: nowrap;
}
.weather-card__tips-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.weather-card__tips-spacer {
  flex: 1;
}
.weather-card__tips {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--osh-surface, #f5f5f7);
  border-radius: 8px;
  padding: 5px 10px;
  border: 1px solid var(--osh-border-light, #e5e7eb);
}
.weather-card__tip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--osh-text, #444);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--osh-border-light, #e5e7eb);
  border-radius: 999px;
  padding: 3px 8px;
}
.weather-card__tip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--oshi-1);
  flex-shrink: 0;
}
.weather-card__tip--secondary::before {
  background: var(--oshi-2);
}
.weather-card__tip--primary {
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.10);
  border-color: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.18);
}
.weather-card__tip--secondary {
  background: rgba(var(--_ot_r2,201),var(--_ot_g2,125),var(--_ot_b2,255),0.12);
  border-color: rgba(var(--_ot_r2,201),var(--_ot_g2,125),var(--_ot_b2,255),0.18);
}
/* 詳細トグルボタン */
.weather-card__detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 0;
  font-size: 11px;
  color: var(--osh-text-muted, #888);
  background: none;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 4px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.weather-card__detail-btn:hover { color: var(--osh-text, #333); }
.weather-chevron {
  width: 14px; height: 14px;
  transition: transform 0.2s ease;
}
.weather-card__detail-btn.is-open .weather-chevron { transform: rotate(180deg); }
/* 時間帯別詳細グリッド */
.weather-card__hourly {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.weather-card__hourly::-webkit-scrollbar { display: none; }
.weather-card__hourly-grid {
  display: flex;
  justify-content: space-evenly;
  min-width: 100%;
  gap: 0;
}
.weather-card__hour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--osh-surface, #f5f5f7);
  border-radius: 8px;
  padding: 6px 2px;
  flex: 1;
  min-width: 30px;
}
.weather-card__hour-time {
  font-size: 10px;
  color: var(--osh-text-muted, #888);
  font-weight: 600;
  white-space: nowrap;
}
.weather-card__hour-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
}
.weather-card__hour-icon svg { width: 100%; height: 100%; }
.weather-card__hour-temp {
  position: relative;
  display: block;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: var(--osh-text, #1a1a1a);
  text-align: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.weather-card__hour-temp-num {
  display: inline-block;
}
.weather-card__hour-temp-unit {
  position: absolute;
  left: calc(50% + 0.72em);
  top: 0;
  font-size: .9em;
}
.weather-card__hour-precip {
  position: relative;
  display: block;
  width: 100%;
  font-size: 10px;
  color: #3b82f6;
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.weather-card__hour-precip-num {
  display: inline-block;
}
.weather-card__hour-precip-unit {
  position: absolute;
  left: calc(50% + 0.56em);
  top: 0;
}
/* ── タイムライン: 画像ギャラリー（横スクロール大型） ── */
.tl-card__images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tl-card__images::-webkit-scrollbar { display: none; }
.tl-card__img-thumb {
  flex-shrink: 0;
  width: calc(100% - 24px);
  max-width: 320px;
  height: 180px;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  border: none; background: none; padding: 0; cursor: pointer;
}
.tl-card__img-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* 複数枚のときはやや小さく横並び */
.tl-card__images--multi .tl-card__img-thumb {
  width: 72%; max-width: 240px; height: 140px;
}
/* 画像フルスクリーンオーバーレイ */
.tl-img-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.tl-img-overlay__bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.82);
}
.tl-img-overlay__inner {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 90vh;
}
.tl-img-overlay__img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; display: block;
  border-radius: 8px;
}
.tl-img-overlay__close {
  position: absolute; top: -36px; right: 0;
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.tl-card__step-back {
  padding: 6px 0 2px;
  border-top: 1px solid var(--osh-border-light, #eee);
  margin-top: 4px;
}
/* ── タイムライン: チェックリスト ── */
.tl-card__checklist {
  padding: 8px 0 2px;
  border-top: 1px solid var(--osh-border-light, #eee);
  margin-top: 6px;
}
.tl-card__cl-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.tl-card__cl-label {
  font-size: 11px; font-weight: 700;
  color: var(--osh-text-muted, #888);
  text-transform: uppercase; letter-spacing: .04em;
}
.tl-card__cl-count {
  font-size: 11px; font-weight: 700;
  color: var(--oshi-1, #8b5cf6);
}
.tl-card__cl-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--osh-border-light, #f5f5f5);
  font-size: 13px;
}
.tl-card__cl-item:last-child { border-bottom: none; }
.tl-card__cl-item.is-done .tl-card__cl-text {
  text-decoration: line-through; color: var(--osh-text-muted, #aaa);
}
.tl-card__cl-text { flex: 1; color: var(--osh-text, #1a1a1a); }
/* ── タイムライン: 宿泊まとめ表示 CI/CO ── */
.tl-card__stay-times {
  padding: 6px 0 2px;
  border-top: 1px solid var(--osh-border-light, #eee);
  margin-top: 6px;
}
.tl-card__stay-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; font-size: 12px;
}
.tl-card__stay-badge { flex-shrink: 0; }
.tl-card__stay-time { font-weight: 700; color: var(--osh-text, #1a1a1a); }
.tl-card__stay-date-end { color: var(--osh-text-muted, #888); font-size: 11px; }
/* ── メモ画面: チェックリスト入力行 ── */
.sched-check-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.sched-check-row input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; accent-color: var(--oshi-1, #8b5cf6);
}
.sched-check-text {
  flex: 1; padding: 5px 8px !important; font-size: 13px !important;
}
.sched-check-remove {
  flex-shrink: 0; background: none; border: none;
  color: var(--osh-text-muted, #aaa); cursor: pointer; padding: 4px;
}
/* ── タイムライン: 乗り換えルート ── */
.tl-card__steps {
  padding: 6px 0 2px;
  border-top: 1px solid var(--osh-border-light, #eee);
  margin-top: 6px;
}
.tl-card__steps-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.tl-card__steps-label {
  font-size: 11px; font-weight: 700;
  color: var(--osh-text-muted, #888);
  text-transform: uppercase; letter-spacing: .04em;
}
.tl-card__steps-toggle {
  font-size: 11px; color: var(--osh-accent, #8b5cf6);
  background: none; border: 1px solid var(--osh-accent, #8b5cf6);
  border-radius: 999px; padding: 1px 10px; cursor: pointer;
}
.tl-card__step {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 4px; padding: 4px 0;
  border-bottom: 1px dashed var(--osh-border-light, #f0f0f0);
  font-size: 12px;
}
.tl-card__step:last-child { border-bottom: none; }
.tl-card__step.is-done { opacity: 0.5; text-decoration: line-through; }
.tl-card__step-time { font-weight: 700; color: var(--osh-text-muted, #888); min-width: 42px; }
.tl-card__step-arr  { font-size: 10px; color: var(--osh-text-muted, #aaa); }
.tl-card__step-from, .tl-card__step-to { color: var(--osh-text, #1a1a1a); font-weight: 600; }
.tl-card__step-arrow { color: var(--osh-text-muted, #bbb); }
.tl-card__step-memo { color: var(--osh-text-muted, #888); font-size: 11px; }
/* ── メモ画面: 画像プレビュー ── */
.sched-img-preview {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.sched-img-thumb {
  position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
}
.sched-img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sched-img-remove {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,0.55); border: none; border-radius: 50%;
  width: 20px; height: 20px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
}
.sched-img-label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
/* ── メモ画面: ステップエディタ ── */
.sched-step-row {
  background: var(--osh-surface, #f5f5f7);
  border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
}
.sched-step-row__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
.sched-step-row__num {
  font-size: 11px; font-weight: 700;
  color: var(--osh-text-muted, #888);
}
.sched-step-row__fields {
  display: flex; flex-direction: column; gap: 6px;
}
/* ── メモ画面: 種別タブ ── */
.sched-type-tabs {
  display: flex; gap: 6px; margin-top: 4px;
}
.sched-type-tab {
  flex: 1; padding: 6px 4px; font-size: 12px; font-weight: 600;
  border: 1.5px solid var(--osh-border, #e0e0e0);
  border-radius: 8px; background: #fff; color: var(--osh-text-muted, #888);
  cursor: pointer; transition: all 0.15s;
}
.sched-type-tab.is-active {
  border-color: var(--oshi-1, #8b5cf6);
  background: var(--oshi-1, #8b5cf6);
  color: #fff;
}
/* ── メモ画面: 予定カード ── */
.sched-card {
  background: var(--osh-card-bg, #fff);
  border-radius: 12px;
  border: 1.5px solid var(--osh-border-light, #eee);
  margin-bottom: 10px;
  overflow: hidden;
  transition: opacity 0.2s;
}
.sched-card.is-done { opacity: 0.65; }
/* サマリー行（常時表示） */
.sched-card__summary {
  display: flex; align-items: flex-start;
  padding: 10px 10px 8px;
  gap: 6px;
}
.sched-card__summary-main { flex: 1; min-width: 0; }
.sched-card__summary-row1 {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap; margin-bottom: 4px;
}
.sched-card__chevron {
  flex-shrink: 0; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: none; cursor: pointer;
  border-radius: 6px; color: var(--osh-text-muted, #aaa);
  transition: transform .2s;
}
.sched-card__chevron:hover { background: var(--osh-surface, #f5f5f5); }
.sched-card__chevron.is-open { transform: rotate(180deg); color: var(--osh-accent, #8b5cf6); }
/* 詳細パネル（トグル） */
.sched-card__detail {
  padding: 0 12px 10px;
  border-top: 1px solid var(--osh-border-light, #f0f0f0);
}
/* 旧構造との互換（head/body） */
.sched-card__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 0;
}
.sched-card__type {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--osh-surface, #f0f0f0); color: var(--osh-text-muted, #666);
}
.sched-card__type svg { width: 12px; height: 12px; flex-shrink: 0; }
.sched-card__type--move    { background: #e0f0ff; color: #1d72b8; }
.sched-card__type--stay    { background: #fff0e0; color: #b86a1d; }
.sched-card__type--packing { background: #e8f5e0; color: #2d7a3e; }
.sched-card__type--custom  { background: #f0e8ff; color: #6d28d9; }
.sched-card__actions {
  display: flex; align-items: center; gap: 2px;
}
.sched-card__body {
  padding: 8px 12px 10px;
}
.sched-card__datetime {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px;
}
.sched-card__date {
  font-size: 12px; font-weight: 700;
  color: var(--osh-text, #1a1a1a);
}
.sched-card__time {
  font-size: 12px; color: var(--osh-text-muted, #888);
}
.sched-card__checkout {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--osh-text-muted, #888);
  margin-bottom: 4px; margin-top: 6px;
}
.sched-card__title {
  font-size: 15px; font-weight: 700; color: var(--osh-text, #1a1a1a);
  margin-bottom: 2px; line-height: 1.3;
}
.sched-card__title.is-done { text-decoration: line-through; color: var(--osh-text-muted, #aaa); }
.sched-card__meta {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--osh-text-muted, #777);
  margin-top: 5px;
}
.sched-card__meta svg { flex-shrink: 0; }
.sched-card__meta--booking { flex-wrap: wrap; }
.sched-card__meta--address { flex-wrap: wrap; }
.sched-card__copy-btn {
  font-size: 10px; padding: 1px 8px;
  border: 1px solid var(--osh-border, #ddd); border-radius: 999px;
  background: #fff; cursor: pointer; color: var(--osh-text-muted, #666);
}
.sched-card__map-link {
  font-size: 10px; padding: 1px 8px;
  border: 1px solid var(--osh-accent, #8b5cf6); border-radius: 999px;
  background: #fff; color: var(--osh-accent, #8b5cf6) !important;
  text-decoration: none; cursor: pointer;
}
.sched-card__memo {
  font-size: 12px; color: var(--osh-text-muted, #888);
  margin-top: 6px; white-space: pre-wrap; word-break: break-all;
}
/* チェックリスト（詳細内） */
.sched-card__checklist {
  margin-top: 8px;
  padding: 6px 8px;
  background: var(--osh-surface, #f8f8f8);
  border-radius: 8px;
}
.sched-card__check-item {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 12px; color: var(--osh-text, #333);
  padding: 4px 0; line-height: 1.4;
  width: 100%; text-align: left; border: none; background: none; cursor: pointer;
}
.sched-card__check-item svg { flex-shrink: 0; margin-top: 1px; }
.sched-card__check-item.is-done span {
  text-decoration: line-through; color: var(--osh-text-muted, #aaa);
}
/* 移動ステップ（詳細内） */
.sched-card__steps {
  margin-top: 8px;
  padding: 6px 8px;
  background: #e8f0ff;
  border-radius: 8px;
  border-left: 3px solid #1d72b8;
}
.sched-card__steps-header {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; color: #1d72b8;
  margin-bottom: 6px;
}
.sched-card__step-row {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 11px; color: var(--osh-text, #333);
}
.sched-card__step-row:last-child { border-bottom: none; }
.sched-card__step-row.is-done { opacity: 0.5; }
.sched-card__step-num {
  flex-shrink: 0; width: 16px; height: 16px;
  background: #1d72b8; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; margin-top: 1px;
}
.sched-card__step-body {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center; flex: 1;
}
.sched-card__step-time { color: var(--osh-text-muted, #888); }
.sched-card__step-place { font-weight: 600; }
.sched-card__step-arrow { color: var(--osh-text-muted, #888); }
.sched-card__step-transport {
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  background: #1d72b8; color: #fff;
}
.sched-card__step-memo {
  width: 100%; font-size: 10px; color: var(--osh-text-muted, #888); margin-top: 2px;
}
/* 画像サムネイル（詳細内） */
.sched-card__imgs {
  display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px solid var(--osh-border-light, #f0f0f0);
}
.sched-card__img-thumb {
  width: 68px; height: 68px;
  object-fit: cover; border-radius: 8px;
  border: 1px solid var(--osh-border-light, #eee);
  cursor: pointer;
}
.sched-card__badges {
  display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap;
}
.sched-card__badge {
  font-size: 10px; padding: 2px 8px; border-radius: 999px;
  background: var(--osh-surface, #f0f0f0); color: var(--osh-text-muted, #777);
}
.sched-card__footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 0 0;
}
.sched-card__complete-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--osh-border, #ddd); border-radius: 999px;
  background: var(--osh-surface, #f5f5f5); padding: 5px 12px;
  color: var(--osh-text-muted, #666); transition: all .15s;
}
.sched-card__complete-btn.is-done {
  border-color: var(--osh-accent, #8b5cf6);
  background: var(--osh-accent, #8b5cf6); color: #fff;
}
.sched-card__complete-btn svg { flex-shrink: 0; }
.sched-card__trash-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 6px; border: none;
  background: none; cursor: pointer; color: var(--osh-text-muted, #aaa);
  flex-shrink: 0; transition: color .15s, background .15s;
}
.sched-card__trash-btn:hover { color: #e53e3e; background: #fff0f0; }
.sched-card__summary-actions {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.sched-card__edit-btn { opacity: 0.55; }
.sched-card__edit-btn:hover { opacity: 1; }
.sched-card__link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--osh-accent, #8b5cf6);
  text-decoration: none; font-weight: 600;
}
.sched-card__link svg { flex-shrink: 0; }
/* 予算タブ: 記録連動セクション */
.budget-rec-section {
  background: var(--osh-surface, #f8f8f8);
  border-radius: 10px; padding: 10px 12px;
  margin-top: 16px;
  border: 1.5px solid var(--osh-border, #ddd);
  border-left: 4px solid var(--osh-accent, #8b5cf6);
}
.budget-rec-header {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  color: var(--osh-accent, #8b5cf6);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--osh-border-light, #eee);
}
/* empty / loading / error states */
.weather-card--empty,
.weather-card--loading,
.weather-card--error,
.weather-card--out-range,
.weather-card--no-data {
  background: var(--osh-card-bg, #fff);
  border-radius: var(--osh-radius, 12px);
  box-shadow: var(--osh-shadow-sm, 0 1px 4px rgba(0,0,0,.08));
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--osh-text-muted, #888);
}
.weather-card__icon-sm { width: 18px; height: 18px; flex-shrink: 0; color: #94a3b8; }
.weather-card__icon-sm svg { width: 100%; height: 100%; }
.weather-card--out-range svg,
.weather-card--error svg   { width: 16px; height: 16px; flex-shrink: 0; color: #94a3b8; margin-right: 4px; }

/* toggle switch */
.toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-label {
  display: inline-block; width: 44px; height: 24px;
  background: var(--osh-border, #ddd); border-radius: 12px;
  cursor: pointer; position: relative; transition: background 0.2s;
}
.toggle-label::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.toggle-input:checked + .toggle-label { background: var(--oshi-1); }
.toggle-input:checked + .toggle-label::after { transform: translateX(20px); }

/* --- Tab bar ---------------------------------------------- */
.tab-bar {
  display: flex;
  gap: 0;
  padding: 0;
  border-bottom: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.24);
  background: transparent;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 12px;
  align-items: stretch;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-item {
  position: relative;
  padding: 8px 18px 8px;
  font-size: .875rem; font-weight: 700;
  color: var(--osh-text-muted);
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.35);
  border-bottom: 0;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.08);
  white-space: nowrap; cursor: pointer;
  transition: all .15s ease;
  min-height: 34px;
  margin: 0;
  flex: 0 0 auto;
  line-height: 1.3;
  margin-left: -1px;
  margin-bottom: -1px;
}
.tab-item:first-child {
  margin-left: 0;
}
.tab-item + .tab-item {
  margin-left: -1px;
  border-left: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.35);
}
.tab-item.is-active {
  color: var(--osh-accent);
  background: #fff;
  border-color: var(--osh-accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  z-index: 1;
}
.tab-item.is-active::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; bottom: -1px;
  height: 8px;
  background: var(--osh-accent);
}
.tab-panel          { display: none; }
.tab-panel.is-active { display: block; }

/* --- Timeline --------------------------------------------- */
.timeline-group + .timeline-group { margin-top: var(--sp-6); }
.timeline-group__label {
  font-size: .75rem; font-weight: 700;
  color: var(--osh-text-muted); letter-spacing: .04em; text-transform: uppercase;
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--osh-border); margin-bottom: var(--sp-3);
}
.timeline-item {
  display: flex; gap: var(--sp-3); padding: var(--sp-3) 0;
}
.timeline-item + .timeline-item { border-top: 1px solid var(--osh-border-light); }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--osh-border); flex-shrink: 0; margin-top: 5px;
}
.timeline-dot--oshi  { background: var(--oshi-1); box-shadow: 0 0 0 1.5px rgba(0,0,0,.08); }
.timeline-dot--alert { background: var(--osh-warning); }
.timeline-dot--done  { background: var(--osh-success); }
.timeline-content    { flex: 1; }
.timeline-time  { font-size: .75rem; color: var(--osh-text-muted); margin-bottom: 2px; }
.timeline-label { font-size: .9rem; font-weight: 600; }
.timeline-sub   { font-size: .8rem; color: var(--osh-text-muted); margin-top: 2px; }

/* --- Item row --------------------------------------------- */
.item-row {
  display: flex; align-items: center; gap: var(--sp-3); padding: 10px 0;
}
.item-row + .item-row { border-top: 1px solid var(--osh-border-light); }
.item-row__check {
  width: 26px; height: 26px; border-radius: 7px;
  border: 2px solid var(--osh-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .15s;
  background: var(--osh-surface); color: transparent;
}
.item-row__check.is-checked {
  background: var(--oshi-1); border-color: var(--oshi-1);
  color: var(--oshi-1-text);
  box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.12);
}
.item-row__name { flex: 1; font-size: .9rem; }
.item-row__name.is-done { text-decoration: line-through; color: var(--osh-text-muted); }
.item-row__bag  { font-size: .75rem; color: var(--osh-text-muted); }

/* --- Add button ------------------------------------------- */
.add-btn {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-btn); border: 1.5px dashed var(--osh-accent);
  background: transparent; color: var(--osh-accent);
  font-size: .875rem; font-weight: 600;
  width: 100%; justify-content: center;
  margin-top: var(--sp-3); cursor: pointer;
  transition: background .15s;
}
.add-btn:hover { background: var(--osh-accent-light); }

/* --- Modal / Bottom sheet ---------------------------------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(47,42,58,.45);
  z-index: 300;
  display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.bottom-sheet {
  background: var(--osh-surface);
  border-radius: 24px 24px 0 0;
  padding: var(--sp-5) var(--sp-4) calc(var(--bnav-h) + var(--sp-5));
  width: 100%; max-width: var(--app-max);
  margin: 0 auto;
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  max-height: 85dvh; overflow-y: auto;
}
.modal-overlay.is-open .bottom-sheet { transform: translateY(0); }
.sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--osh-border); margin: 0 auto var(--sp-4);
}
.sheet-title { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-5); }

/* --- Oshi stripe (decorative) ------------------------------ */
.oshi-stripe {
  height: 14px; border-radius: 999px;
  background: var(--oshi-1);
  border-bottom: 2px solid var(--oshi-2);
}

/* ============================================================
   Landing page components
   ============================================================ */
.top-screen__body {
  padding-top: var(--header-h);
  padding-bottom: var(--sp-6);
  background:
    radial-gradient(700px 260px at 50% -40px, rgba(255, 173, 111, .24) 0%, rgba(255,255,255,0) 75%),
    linear-gradient(180deg, #fffdf7 0%, #fff 52%, #fffbfe 100%);
}
.top-screen__content {
  padding: 0 var(--sp-4) var(--sp-4);
}
.top-auth-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max);
  min-height: var(--header-h);
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255, 126, 94, .24);
  backdrop-filter: blur(8px);
  border-radius: 0;
}
.top-auth-header__title {
  font-weight: 800;
  letter-spacing: .04em;
  color: #ff6b52;
}
.top-auth-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.hero {
  position: relative;
  padding: 40px var(--sp-4) 30px;
  max-width: 960px;
  margin: 0 auto;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 96px;
  height: 96px;
  top: 14px;
  right: 0;
  border-radius: 36% 64% 62% 38% / 38% 35% 65% 62%;
  background: rgba(110, 231, 206, .26);
}
.hero::after {
  width: 68px;
  height: 68px;
  left: -6px;
  bottom: 84px;
  border-radius: 58% 42% 43% 57% / 44% 57% 43% 56%;
  background: rgba(255, 170, 80, .28);
}
.hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: #fff4d8;
  color: #8f5300;
  border: 1px solid rgba(255, 162, 52, .35);
  padding: 4px 12px; border-radius: var(--r-chip);
  font-size: .82rem; font-weight: 700; margin-bottom: var(--sp-4);
}
.hero__title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.72rem, 7.2vw, 2.44rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -.025em;
}
.hero__title span {
  color: #ff5e84;
  text-shadow: 0 2px 0 rgba(255, 94, 132, .12);
}
.hero__lead {
  position: relative;
  z-index: 1;
  font-size: .98rem;
  color: #695f75;
  margin-top: var(--sp-3);
  line-height: 1.78;
}
.hero__shots {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 10px;
}
.hero__shot {
  min-height: 96px;
  border: 1px dashed rgba(255, 143, 84, .44);
  border-radius: 10px 18px 10px 18px;
  background:
    linear-gradient(0deg, rgba(255,255,255,.88), rgba(255,255,255,.88)),
    repeating-linear-gradient(-45deg, rgba(255,124,95,.16) 0, rgba(255,124,95,.16) 8px, rgba(255,255,255,.8) 8px, rgba(255,255,255,.8) 16px);
  box-shadow: 0 6px 14px rgba(255, 124, 95, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}
.hero__shot--wide {
  grid-row: span 2;
  min-height: 202px;
  border-color: rgba(90, 182, 255, .44);
  background:
    linear-gradient(0deg, rgba(255,255,255,.9), rgba(255,255,255,.9)),
    repeating-linear-gradient(-45deg, rgba(90,182,255,.16) 0, rgba(90,182,255,.16) 8px, rgba(255,255,255,.8) 8px, rgba(255,255,255,.8) 16px);
  box-shadow: 0 6px 14px rgba(90, 182, 255, .12);
}
.hero__shot p {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.45;
  color: #785d49;
}
.hero__cta {
  position: relative;
  z-index: 1;
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-5);
}
.hero__note {
  position: relative;
  z-index: 1;
  font-size: .79rem;
  color: #7f6f82;
  margin-top: var(--sp-3);
  text-align: center;
}

.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
  padding: var(--sp-7) var(--sp-2);
  max-width: 960px;
  margin: 0 auto;
}
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),.22);
  border-radius: 8px;
  padding: var(--sp-5);
  box-shadow: 0 8px 18px rgba(var(--_ot_r,82),var(--_ot_g,65),var(--_ot_b,117),.08);
  transform: translateY(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #ff8d6e 0%, #ff5e84 100%);
}
.feature-card:nth-child(even)::before {
  background: linear-gradient(180deg, #58cdd8 0%, #67b4ff 100%);
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card__icon  { font-size: 1.8rem; margin-bottom: var(--sp-3); }
.feature-card__title { font-size: .95rem; font-weight: 700; margin-bottom: var(--sp-2); }
.feature-card__body  { font-size: .875rem; color: var(--osh-text-muted); line-height: 1.6; }

.lp-section {
  padding: var(--sp-9) var(--sp-5);
  max-width: 960px;
  margin: 0 auto;
}
.lp-section-heading {
  font-size: 1.38rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--sp-6);
}
.lp-section-heading span { color: #ff5f7a; }

.benefit-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 560px; margin: 0 auto; }
.benefit-list {
  position: relative;
  padding-left: 18px;
}
.benefit-list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  border-left: 2px dashed rgba(255, 126, 94, .45);
}
.benefit-item {
  position: relative;
  display: flex; gap: var(--sp-4); align-items: flex-start;
  padding: var(--sp-4);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),.18);
  border-radius: 6px 14px 14px 6px;
  box-shadow: 0 8px 14px rgba(var(--_ot_r,82),var(--_ot_g,65),var(--_ot_b,117),.07);
}
.benefit-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff8d6e;
  box-shadow: 0 0 0 3px #fff;
}
.benefit-icon           { font-size: 1.4rem; flex-shrink: 0; }
.benefit-text__title    { font-weight: 700; font-size: .9rem; }
.benefit-text__body     { font-size: .82rem; color: var(--osh-text-muted); margin-top: 2px; }

.lp-free-note {
  background: #fff9ed;
  border: 1px dashed rgba(255, 167, 38, .45);
  border-radius: 10px;
  padding: var(--sp-5); text-align: center;
  max-width: 480px; margin: var(--sp-6) auto 0;
}
.lp-free-note__title { font-size: 1rem; font-weight: 700; margin-bottom: var(--sp-2); }
.lp-free-note__body  { font-size: .875rem; color: var(--osh-text-muted); line-height: 1.7; }

.lp-cta {
  text-align: center;
  padding: var(--sp-10) var(--sp-5);
  border-radius: 0;
  max-width: 960px;
  margin: 8px auto 0;
  background:
    linear-gradient(180deg, rgba(255, 141, 110, .10) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(120deg, rgba(90, 182, 255, .08) 0%, rgba(255,255,255,0) 58%);
}
.lp-cta-title   { font-size: 1.3rem; font-weight: 800; margin-bottom: var(--sp-4); }
.lp-cta-buttons { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

/* --- Use-case scenes (利用シーン紹介 G-1) --------------------- */
.lp-section--alt {
  background: linear-gradient(180deg, rgba(255, 248, 233, .82) 0%, rgba(255,255,255,.8) 100%);
  border-radius: 0;
  padding-top: var(--sp-10);
  padding-bottom: var(--sp-10);
  max-width: 960px;
  margin: 12px auto 0;
}
.lp-section--alt .lp-section-heading { max-width: 960px; margin-left: auto; margin-right: auto; margin-bottom: var(--sp-6); }
.scene-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: var(--sp-4);
  max-width: 960px; margin: 0 auto;
}
.scene-card {
  background: #fff;
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),.2);
  border-radius: 8px;
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: 0 8px 14px rgba(var(--_ot_r,82),var(--_ot_g,65),var(--_ot_b,117),.08);
}
.scene-card__phase {
  display: inline-block;
  font-size: .72rem; font-weight: 800;
  color: var(--osh-accent);
  background: var(--osh-accent-light);
  border-radius: 100px;
  padding: 2px 10px;
  width: fit-content;
}
.scene-card__icon  { color: var(--osh-accent); margin-top: var(--sp-1); }
.scene-card__title { font-size: .9rem; font-weight: 700; margin-top: var(--sp-1); }
.scene-card__body  { font-size: .82rem; color: var(--osh-text-muted); line-height: 1.65; }
.scene-card__image-slot {
  min-height: 96px;
  border: 1px dashed rgba(255, 141, 110, .46);
  border-radius: 10px;
  background:
    linear-gradient(0deg, rgba(255,255,255,.9), rgba(255,255,255,.9)),
    repeating-linear-gradient(-45deg, rgba(255,141,110,.16) 0, rgba(255,141,110,.16) 8px, rgba(255,255,255,.8) 8px, rgba(255,255,255,.8) 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}
.scene-card__image-slot p {
  margin: 0;
  font-size: .74rem;
  line-height: 1.45;
  color: #786050;
  font-weight: 700;
}

.top-screen .hero,
.top-screen .feature-card,
.top-screen .benefit-item,
.top-screen .scene-card,
.top-screen .lp-cta,
.top-screen .site-footer {
  animation: topCardRise .55s ease both;
}
.top-screen .feature-card:nth-child(2),
.top-screen .benefit-item:nth-child(2),
.top-screen .scene-card:nth-child(2) { animation-delay: .08s; }
.top-screen .feature-card:nth-child(3),
.top-screen .benefit-item:nth-child(3),
.top-screen .scene-card:nth-child(3) { animation-delay: .14s; }
.top-screen .feature-card:nth-child(4),
.top-screen .benefit-item:nth-child(4),
.top-screen .scene-card:nth-child(4) { animation-delay: .2s; }

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

@media (max-width: 880px) {
  .hero__shots { grid-template-columns: 1fr 1fr; }
  .hero__shot--wide { grid-column: span 2; grid-row: auto; min-height: 140px; }
}

@media (max-width: 640px) {
  .hero { padding-top: 30px; }
  .hero__shots { grid-template-columns: 1fr; }
  .hero__shot--wide { grid-column: auto; min-height: 124px; }
  .hero__shot { min-height: 88px; }
}

/* --- Day panel (複数日イベント) -------------------------------- */
.day-panels-wrap { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-2); }

.day-panel {
  border: 1.5px solid var(--osh-border);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--osh-surface);
}
.day-panel__head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--osh-bg-subtle);
  font-size: .85rem; font-weight: 700;
  border-bottom: 1px solid var(--osh-border-light);
}
.day-panel__head-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: var(--r-chip);
  background: rgba(0,0,0,.1);
  color: var(--osh-text);
  font-size: .72rem; font-weight: 800;
  flex-shrink: 0;
}
.day-panel__body { padding: var(--sp-3) var(--sp-4); }

.day-panel__stay {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px dashed var(--osh-border-light);
}
.day-panel__stay-label {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: .82rem; font-weight: 600;
  cursor: pointer;
}
.day-panel__stay-note {
  margin-top: var(--sp-2);
  display: none;
}
.day-panel__stay-note.is-open { display: block; }

/* ==========================================================
   持ち物画面 — インライン CRUD スタイル
   ========================================================== */

/* Inline form (持ち物・鞄の追加フォーム) */
.inline-form {
  background: var(--osh-bg-subtle);
  border: 1.5px solid var(--osh-accent);
  border-radius: var(--r-btn);
  padding: var(--sp-3);
}
.inline-form__actions { display: flex; gap: var(--sp-2); }

/* Icon button */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px; border: none; background: transparent;
  color: var(--osh-text-muted); cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-icon:hover               { background: var(--osh-bg-subtle); }
.btn-icon--edit:hover         { color: var(--osh-accent); }
.btn-icon--save               { color: var(--osh-success); }
.btn-icon--save:hover         { background: #e6f9ef; color: var(--osh-success); }
.btn-icon--del:hover          { background: #ffe8eb; color: var(--osh-error); }

/* Item edit row (インライン編集行) */
.item-edit-row {
  display: flex; align-items: stretch; gap: var(--sp-2);
  padding: 8px 0;
  border-top: 1px solid var(--osh-border-light);
}
.item-edit-row__form {
  display: flex; flex: 1; gap: var(--sp-2); align-items: stretch; min-width: 0;
}
.item-edit-row__fields {
  flex: 1; display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; align-self: stretch;
}
.item-edit-row__actions {
  display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; justify-content: center;
}
.form-control--sm { padding: 7px 10px; font-size: .875rem; }

/* Bag section (収納別タブ) */
.bag-section {
  background: var(--osh-surface);
  border: 1px solid var(--osh-border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.bag-section__head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--osh-bg-subtle);
  border-bottom: 1px solid var(--osh-border-light);
  font-size: .875rem; font-weight: 700;
}
.bag-section__head.bag-section__head { /* form reset */ margin: 0; }
.bag-section__name { flex: 1; }
.bag-section--warn .bag-section__head { background: #fff8e1; border-bottom-color: #f5d06a; }
.bag-section .items-list { padding: 0 var(--sp-3); }

/* Drag & Drop */
.dd-grip { display:inline-flex; align-items:center; cursor:grab; padding:0 2px; flex-shrink:0; }
.dd-grip:active { cursor:grabbing; }
[data-dd-item].dd-dragging, .bag-section.dd-dragging { opacity: .4; }
/* 薄いストリップ: 通常は不可視、ドラッグ中にホバーで可視化 */
.dd-strip {
  height: 6px; border-radius: 3px; margin: 1px 0;
  transition: background .12s, height .1s;
}
.dd-strip.dd-over {
  background: var(--osh-accent, #8b5cf6);
  height: 4px;
}
[data-dd-drop-bag].dd-over {
  outline: 2px dashed var(--osh-accent, #8b5cf6);
  outline-offset: -2px;
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),.05);
}

/* Packing group (荷造りタブ) */
.packing-group {
  background: var(--osh-surface);
  border: 1px solid var(--osh-border);
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.packing-group__head {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--osh-bg-subtle);
  border-bottom: 1px solid var(--osh-border-light);
  font-size: .82rem; font-weight: 700;
}
.packing-group--warn .packing-group__head { background: #fff8e1; }
.packing-group .items-list { padding: 0 var(--sp-3); }

/* Section label */
.section-label {
  font-size: .75rem; font-weight: 700;
  color: var(--osh-text-muted); letter-spacing: .04em;
  text-transform: uppercase;
  padding: var(--sp-2) 0;
}

/* Locker check button variant */
.item-row__check--locker.is-checked {
  background: #6c5ce7;
  border-color: #6c5ce7;
  color: #fff;
}

/* ===================== v3 styles ===================== */

/* Item card (すべてタブ: 展開可能) */
.item-card { border-top: 1px solid var(--osh-border-light); }
.item-card:first-child { border-top: none; }
.items-list > .dd-strip:first-child + .item-card { border-top: none; }
.item-card.is-expanded { background: var(--osh-bg-subtle); }
.item-row__body { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }

/* Item detail (展開時の詳細エリア) */
.item-detail { padding: 8px 0 8px 36px; font-size: .78rem; color: var(--osh-text-muted); }
.item-detail__field { margin-bottom: 4px; }
.item-detail__label { font-weight: 700; color: var(--osh-text); margin-right: 4px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 100px; font-size: .68rem; font-weight: 700; flex-shrink: 0; }
.badge--opt    { background: #f0f0f0; color: var(--osh-text-muted); }
.badge--locker { background: #ede9fe; color: #5b21b6; }
.badge--move   { background: #dbeafe; color: #1d4ed8; }

/* Item edit card (フル編集フォーム) */
.item-edit-card { padding: 12px; background: var(--osh-bg-subtle); border-top: 2px solid var(--osh-accent); }

/* Inline add form (モーダル廃止 → ボタン直下インライン展開) */
.inline-add-form {
  background: var(--osh-bg-subtle);
  border: 1.5px solid var(--osh-border);
  border-radius: var(--r-card);
  padding: var(--sp-4);
  margin-top: var(--sp-3);
}
.inline-add-form__actions {
  display: flex; gap: var(--sp-2); margin-top: var(--sp-4);
}
.form-row-2col { display: flex; gap: var(--sp-2); }
.form-row-2col > * { flex: 1; min-width: 0; }
.qty-input { max-width: 72px; flex: 0 0 72px; text-align: center; }
.toggle-row { display: flex; align-items: center; gap: var(--sp-2); font-size: .875rem; cursor: pointer; padding: 4px 0; }
.toggle-row input[type=checkbox] { width: 16px; height: 16px; flex-shrink: 0; }
.sub-form { padding: 8px 0 4px 24px; border-left: 2px solid var(--osh-border-light); margin-left: 8px; display: flex; flex-direction: column; gap: var(--sp-2); }
.form-row-move { display: flex; align-items: center; gap: var(--sp-2); }
.form-row-move > select { flex: 1; min-width: 0; }
.move-arrow { font-size: 1rem; color: var(--osh-text-muted); flex-shrink: 0; }
.item-edit-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; align-items: center; }

/* Nested bag sections (収納別タブ) */
.bag-section--l1 { margin: 0 var(--sp-3) var(--sp-2); border-radius: var(--r-btn); border-left: 3px solid var(--osh-accent); }
.bag-section--l1 .bag-section__head { font-size: .82rem; background: var(--osh-surface); }
.bag-section--l2 { margin: 0 var(--sp-3) var(--sp-2); border-radius: var(--r-btn); border-left: 3px solid var(--osh-border); }
.bag-section--l2 .bag-section__head { font-size: .78rem; background: var(--osh-surface); }
.bag-children { padding: var(--sp-2) 0 var(--sp-2); }
.bag-section__footer { padding: 6px var(--sp-3); border-top: 1px dashed var(--osh-border-light); }
.bag-add-inline-btn { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--osh-accent); background: none; border: none; cursor: pointer; padding: 2px 0; }
.bag-add-inline-btn:hover { text-decoration: underline; }

/* Task rows (ロッカータブ) */
.task-row { display: flex; align-items: flex-start; gap: var(--sp-2); padding: 8px 0; border-top: 1px solid var(--osh-border-light); }
.task-row:first-child { border-top: none; }
.task-row__body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.task-row__sub { font-size: .78rem; color: var(--osh-text-muted); }
.task-row.is-done .item-row__name { text-decoration: line-through; color: var(--osh-text-muted); }
.task-row.is-done { opacity: .65; }

/* Timing labels (ロッカータブ) */
.timing-label { font-size: .72rem; font-weight: 700; color: var(--osh-text-muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 0 4px; border-top: 1px dashed var(--osh-border-light); margin-top: 4px; }
.timing-label:first-of-type { border-top: none; margin-top: 0; }

/* ===================== Edit form sections (v3.1) ===================== */

/* Edit section: フォーム内セクション区切り */
.edit-section { padding: 10px 0 6px; border-top: 1px solid var(--osh-border-light); }
.edit-section:first-of-type { border-top: none; padding-top: 0; }
.edit-section__title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--osh-text-muted); margin-bottom: 8px; }

/* オプションセクション（ロッカー・移動） */
.edit-section--opt { background: var(--osh-bg-subtle); margin: 4px -12px 0; padding: 8px 12px 6px; border-radius: 0; border-top: 1px solid var(--osh-border-light); }
.edit-section--opt:last-of-type { border-radius: 0 0 var(--r-card) var(--r-card); }

/* セクションヘッダー兼トグル */
.toggle-row--section { font-size: .9rem; font-weight: 600; padding: 4px 0 6px; }
.toggle-row__label { display: inline-flex; align-items: center; gap: 5px; }

/* form-hint: インラインヒント */
.form-hint { font-size: .72rem; font-weight: 400; color: var(--osh-text-muted); }

/* Timing datetime row */
.timing-dt-row { margin-top: 4px; }
.timing-dt-input { width: 100%; padding: 5px 8px; font-size: .82rem; border: 1px solid var(--osh-border); border-radius: var(--r-btn); background: var(--osh-surface); color: var(--osh-text); }
.timing-dt-input[readonly] { background: var(--osh-bg-subtle); color: var(--osh-text-muted); border-style: dashed; cursor: default; }
.timing-dt-input:focus { outline: 2px solid var(--osh-accent); outline-offset: 1px; }

/* Add button close variant */
.add-btn--close { color: var(--osh-text-muted); border-color: var(--osh-border); }
.add-btn--close:hover { background: var(--osh-bg-subtle); }

/* ===================== v6 styles ===================== */

/* 2-col action button row (すべてタブ下部) */
.action-btn-pair { display: flex; gap: 8px; margin-top: 12px; }
.action-btn-pair > .add-btn { flex: 1; margin-top: 0; }

/* Toggle section button (ロッカー/移動 ON/OFF) */
.toggle-section-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 10px 12px;
  background: var(--osh-surface);
  border: 1.5px dashed var(--osh-border);
  border-radius: var(--r-btn);
  font-size: .875rem; font-weight: 600;
  color: var(--osh-text-muted); cursor: pointer; text-align: left;
  transition: border-color .15s, color .15s, background .15s;
}
.toggle-section-btn.is-active {
  border-style: solid; border-color: var(--osh-accent);
  color: var(--osh-accent);
  background: var(--osh-accent-light, #fff0f8);
}
.toggle-section-btn__check { margin-left: auto; }

/* Entry block (ロッカー・移動の各設定行) */
.entry-block {
  background: var(--osh-surface);
  border: 1px solid var(--osh-border-light);
  border-radius: var(--r-btn);
  padding: 10px 12px 8px;
  margin-bottom: 8px;
}
.entry-block__head {
  display: flex; align-items: center;
  margin-bottom: 8px;
}
.entry-block__title {
  flex: 1; font-size: .72rem; font-weight: 700;
  color: var(--osh-text-muted); text-transform: uppercase; letter-spacing: .04em;
}

/* 鞄編集カード */
.bag-edit-card {
  background: var(--osh-bg-subtle);
  border-top: 2px solid var(--osh-accent);
  padding: 12px;
}

/* ロッカータブ セクションヘッダー */
.locker-section-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0 6px;
  font-size: .9rem; font-weight: 700;
  border-bottom: 2px solid var(--osh-border-light);
  margin-bottom: 2px;
}
.locker-section-head--locker { color: #5b21b6; border-bottom-color: #ede9fe; }
.locker-section-head--move   { color: #1d4ed8; border-bottom-color: #dbeafe; }
.locker-section-icon { display: inline-flex; align-items: center; }
.locker-section-icon svg { width: 16px; height: 16px; }

/* タイミンググループ区切り */
.timing-group-head { padding: 6px 0 2px; }
.timing-group-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 100px;
  font-size: .7rem; font-weight: 700;
  background: #ede9fe; color: #5b21b6;
  border: 1px solid #d8b4fe;
}
.timing-group-chip--move { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.timing-group-chip--warn { background: var(--osh-bg-subtle); color: var(--osh-text-muted); border-color: var(--osh-border); }

/* タスク行 タイプ別 左ボーダー */
.task-row--locker { border-left: 3px solid #7c3aed; padding-left: 8px; margin-left: -3px; }
.task-row--move   { border-left: 3px solid #2563eb; padding-left: 8px; margin-left: -3px; }

/* ロッカー/移動カード（item-card モディファイア） */
.item-card--locker { border-left: 3px solid #7c3aed; }
.item-card--move   { border-left: 3px solid #2563eb; }
.item-card.is-done { opacity: .65; }

.task-row--locker { border-left: 3px solid #7c3aed; padding-left: 8px; margin-left: -3px; }
.task-row--move   { border-left: 3px solid #2563eb; padding-left: 8px; margin-left: -3px; }

/* ロッカー/移動カード（item-card モディファイア） */
.item-card--locker { border-left: 3px solid #7c3aed; }
.item-card--move   { border-left: 3px solid #2563eb; }
.item-card.is-done { opacity: .65; }

/* タスク行 メタ情報 */
.task-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 2px; }
.task-row__datetime { font-size: .75rem; color: var(--osh-text-muted); white-space: nowrap; }
.task-row__move-path { font-size: .78rem; color: var(--osh-text-muted); font-weight: 600; }

/* ============================================================
   lk-card — ロッカータブ専用カードレイアウト
   ============================================================ */
.lk-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.07);
  margin-bottom: 6px;
}
.lk-card--locker { border-left: 3px solid #7c3aed; }
.lk-card--move   { border-left: 3px solid #2563eb; }
.lk-card.is-done { opacity: .6; }
.lk-card__check {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--osh-border);
  background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.lk-card__check.is-checked { background: var(--osh-accent); border-color: var(--osh-accent); color: #fff; }
.lk-card__body { flex: 1; min-width: 0; }
.lk-card__name {
  font-size: .88rem; font-weight: 700; color: var(--osh-text);
  line-height: 1.35; display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.lk-card.is-done .lk-card__name { text-decoration: line-through; color: var(--osh-text-muted); }
.lk-card__meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.lk-card__bag-tag {
  font-size: .7rem; color: var(--osh-text-muted);
  background: var(--osh-bg-subtle); border: 1px solid var(--osh-border);
  padding: 1px 8px; border-radius: 100px;
}
.lk-card__loc-tag {
  font-size: .7rem; color: #6b21a8; background: #f3e8ff;
  border: 1px solid #d8b4fe; padding: 1px 8px; border-radius: 100px;
}
.lk-card__timings { margin-top: 7px; display: flex; flex-direction: column; gap: 4px; }
.lk-card__timing  { display: flex; align-items: center; gap: 6px; font-size: .78rem; }
.lk-card__timing-arrow { width: 14px; text-align: center; flex-shrink: 0; font-size: .8rem; }
.lk-card__timing--in   .lk-card__timing-arrow { color: #7c3aed; }
.lk-card__timing--out  .lk-card__timing-arrow { color: #059669; }
.lk-card__timing--move .lk-card__timing-arrow { color: #2563eb; }
.lk-card__timing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.lk-card__timing-badge svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
.lk-card__timing-badge--in {
  color: #6d28d9;
  background: #f3e8ff;
}
.lk-card__timing-badge--out {
  color: #047857;
  background: #ecfdf5;
}
.lk-card__timing-text { color: var(--osh-text); line-height: 1.4; }
.lk-card__timing-dt   { color: var(--osh-text-muted); font-size: .72rem; margin-left: 2px; }
.lk-card__move-path { display: flex; align-items: center; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.lk-card__move-from { font-size: .8rem; color: var(--osh-text-muted); font-weight: 600; }
.lk-card__move-arrow{ font-size: .8rem; color: var(--osh-text-muted); }
.lk-card__move-to   { font-size: .8rem; color: var(--osh-accent); font-weight: 700; }

/* タイムライン ロッカー場所インライン編集 */
.tl-locker-loc { margin-top: 10px; }
.tl-locker-loc__label { font-size: .74rem; font-weight: 600; color: var(--osh-text-muted); margin-bottom: 5px; }
.tl-locker-loc__row { display: flex; gap: 6px; }
.tl-locker-loc__input {
  flex: 1; min-width: 0; height: 32px; padding: 0 9px;
  border: 1px solid var(--osh-border); border-radius: 7px;
  font-size: .8rem; background: #fff; color: var(--osh-text);
}
.tl-locker-loc__save {
  flex-shrink: 0; height: 32px; padding: 0 11px;
  border-radius: 7px; background: #7c3aed; color: #fff;
  font-size: .78rem; font-weight: 700; border: none; cursor: pointer;
  white-space: nowrap;
}
.tl-locker-loc__save:disabled { opacity: .7; cursor: not-allowed; }

.is-deeplink-focus {
  animation: deeplinkFocusPulse 1.2s ease-out;
}

@keyframes deeplinkFocusPulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.36); }
  100% { box-shadow: 0 0 0 14px rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0); }
}

/* ============================================================
   Timeline Card (tl-card) — redesigned card-based timeline
   ============================================================ */

/* === Section === */
.tl-section { margin-top: var(--sp-5); }
.tl-section:first-child { margin-top: 0; }
.tl-section + .tl-section { margin-top: calc(var(--sp-5) + 8px); }

.tl-section__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: var(--sp-2);
  width: fit-content;
  max-width: 100%;
  padding: 6px 12px 6px 14px;
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.38);
  border-top-right-radius: 18px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 10px;
  border-top-left-radius: 6px;
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.12);
  box-shadow: none;
}
.tl-section__head::before { display: none; }
.tl-section__label {
  font-size: .72rem; font-weight: 800;
  color: var(--osh-text); letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tl-section__count {
  font-size: .68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8em;
  height: 1.5rem;
  padding: 0 0.5rem;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.25);
  border-radius: 999px;
  color: var(--osh-text-muted);
  margin-left: auto;
  line-height: 1;
}

/* === Now marker === */
.tl-now-marker {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0;
  font-size: .75rem; font-weight: 700; color: var(--osh-text-muted);
}
.tl-now-marker::before,
.tl-now-marker::after {
  content: ''; flex: 1; height: 1.5px;
  background: var(--oshi-1);
  opacity: .4;
}

/* === Card === */
.tl-card {
  background: var(--osh-surface);
  border: 1px solid var(--osh-border);
  border-radius: var(--r-card);
  padding: 10px 12px;
  margin-top: var(--sp-2);
  display: flex; gap: 10px; align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: opacity .2s;
}
.tl-card + .tl-card { margin-top: var(--sp-1); }

/* Accent variants */
.tl-card--oshi  { border-left: 3px solid var(--oshi-1); }
.tl-card--done  { border-left: 3px solid var(--osh-success, #2a9a5a); }
.tl-card--alert { border-left: 3px solid #f59e0b; }
.tl-card--info  { border-left: 3px solid var(--osh-border); }
.tl-card[data-card-type="items-locker"] { border-left: 3px solid #60a5fa; background: #fff; }
.tl-card[data-card-type="items-move"] { border-left: 3px solid #8b5cf6; background: #fff; }
.tl-card[data-card-type="items-locker-group"] { border-left: 3px solid #60a5fa; background: #fff; }
.tl-card[data-card-type="items-move-group"] { border-left: 3px solid #8b5cf6; background: #fff; }
.tl-card[data-card-type="items-locker"].is-checked,
.tl-card[data-card-type="items-move"].is-checked,
.tl-card[data-card-type="items-locker-group"].is-checked,
.tl-card[data-card-type="items-move-group"].is-checked { background: #eef1f4; }

/* Completed state */
.tl-card.is-checked {
  background: linear-gradient(180deg, #f3f4f6 0%, #eceef2 100%);
  border-color: #d1d5db;
  box-shadow: inset 0 0 0 1px rgba(107,114,128,.08);
}
.tl-card.is-checked .tl-card__title { text-decoration: line-through; color: var(--osh-text-muted); }
.tl-card.is-checked .tl-card__sub,
.tl-card.is-checked .tl-card__time,
.tl-card.is-checked .tl-card__location,
.tl-card.is-checked .tl-card__address,
.tl-card.is-checked .tl-card__nav-link { color: #6b7280; }

/* Check button */
.tl-card__check {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--osh-border);
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--osh-text-muted);
  transition: border-color .15s, background .15s, color .15s;
  margin-top: 1px;
  -webkit-tap-highlight-color: transparent;
}
.tl-card__check:active { transform: scale(.9); }
.tl-card__check.is-checked {
  border-color: var(--oshi-1);
  background: var(--oshi-1);
  color: var(--oshi-1-text);
}

/* Dot (for non-checkable cards) */
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0; margin-top: 5px;
  background: var(--osh-border);
}
.tl-dot--oshi  { background: var(--oshi-1); }
.tl-dot--done  { background: var(--osh-success, #2a9a5a); }
.tl-dot--alert { background: #f59e0b; }

/* Main content */
.tl-card__main { flex: 1; min-width: 0; }

.tl-card__time {
  font-size: .72rem; font-weight: 700;
  color: var(--osh-text-muted); letter-spacing: .02em;
  font-feature-settings: 'tnum';
}
.tl-card__chip-row { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 2px; }
.tl-card__title {
  font-size: .9rem; font-weight: 700; line-height: 1.35;
  color: var(--osh-text);
}
.tl-card__sub {
  font-size: .78rem; color: var(--osh-text-muted);
  margin-top: 2px; line-height: 1.4;
}
.tl-card__location {
  font-size: .78rem; color: var(--osh-text-muted);
  margin-top: 3px;
  display: flex; align-items: center; gap: 4px;
}
.tl-card__location svg { flex-shrink: 0; }
.tl-card__address {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  font-size: .75rem; color: var(--osh-text-muted);
  margin-top: 3px;
}
.tl-card__address svg { flex-shrink: 0; }
.tl-card__addr-btn {
  font-size: .68rem; padding: 2px 8px;
  border: 1px solid var(--osh-border, #ddd); border-radius: 999px;
  background: #fff; cursor: pointer; color: var(--osh-text-muted, #666);
  text-decoration: none; display: inline-flex; align-items: center;
  line-height: 1.4;
}
.tl-card__addr-btn:hover { background: var(--osh-bg-soft, #f5f5f5); }
.tl-card__addr-map { color: var(--osh-accent, #8b5cf6) !important; border-color: var(--osh-accent, #8b5cf6); }
.tl-event-card__address {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  font-size: .75rem; color: var(--osh-text-muted);
  margin-top: 4px;
}
.tl-event-card__address svg { flex-shrink: 0; }
.tl-url-link {
  font-size: .78rem; color: var(--osh-accent);
  font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 3px;
}
.tl-card__url-link:active { opacity: .7; }

/* Expand button */
.tl-card__expand {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--osh-text-muted); margin-top: 2px;
  transition: transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.tl-card__expand.is-open { transform: rotate(180deg); }

/* Expandable detail area */
.tl-card__detail {
  border-top: 1px solid var(--osh-border);
  margin-top: 8px; padding-top: 8px;
  grid-column: 1 / -1;
}
/* Full-width detail (spans check + main + expand) */
.tl-card--with-detail {
  flex-wrap: wrap;
}
.tl-card--with-detail .tl-card__detail { width: 100%; }

.tl-card__nav-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
  color: var(--osh-accent); font-size: .82rem; font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--osh-border);
  gap: 6px;
}
.tl-card__nav-link:last-child { border-bottom: none; }
.tl-card__nav-link:active { opacity: .7; }
.tl-card__nav-link svg { flex-shrink: 0; }

/* Items mini-list inside detail */
.tl-item-list { margin-top: 6px; }
.tl-item-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--osh-border);
  font-size: .82rem;
}
.tl-item-row:last-child { border-bottom: none; }
.tl-item-row__check {
  width: 22px; height: 22px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--osh-border);
  background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.tl-item-row__check.is-checked {
  border-color: var(--oshi-1);
  background: var(--oshi-1);
  color: #fff;
}
.tl-item-row__name { flex: 1; min-width: 0; }
.tl-item-row__name.is-done { text-decoration: line-through; color: var(--osh-text-muted); }
.tl-item-row__bag { font-size: .7rem; color: var(--osh-text-muted); }

/* Copy button inside card */
.tl-copy-btn {
  background: var(--osh-bg-subtle);
  border: 1px solid var(--osh-border);
  border-radius: var(--r-btn);
  padding: 3px 10px; font-size: .72rem;
  cursor: pointer; color: var(--osh-text-muted);
  -webkit-tap-highlight-color: transparent;
}

/* === Filter bar sticky wrapper === */
.tl-filter-wrap {
  position: sticky; top: 0; z-index: 30;
  background: var(--osh-bg);
  padding: 0 0 0;
  margin: 18px calc(-1 * var(--sp-4)) 0;
  padding-left: var(--sp-4);
  border-bottom: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.24);
}
.tl-filter-wrap .tab-bar {
  margin-bottom: 0;
  border-bottom: none;
}

/* === Event summary card (top of timeline) === */
.tl-event-card {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--osh-border);
}
.tl-event-card__stripe {
  height: 14px;
  background: var(--oshi-1);
  border-bottom: 2px solid var(--oshi-2);
}
.tl-event-card__body { padding: 14px; background: var(--osh-surface); }
.tl-event-card__name {
  font-size: 1.05rem; font-weight: 800; line-height: 1.3;
}
.tl-event-card__meta {
  font-size: .78rem; color: var(--osh-text-muted);
  margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center;
}
.tl-event-card__meta-sep { color: var(--osh-border); }
.tl-event-card__detail-panel {
  margin-top: 10px; border: 1px solid var(--osh-border); border-radius: 12px;
  background: rgba(255,255,255,0.78); overflow: hidden;
}
.tl-event-card__toggle {
  width: 100%; border: none; border-bottom: 1px solid transparent;
  background: transparent; color: var(--osh-text); padding: 8px 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; font-weight: 700; text-align: left;
}
.tl-event-card__detail-panel.is-open .tl-event-card__toggle {
  border-bottom-color: var(--osh-border);
}
.tl-event-card__toggle.is-open svg { transform: rotate(180deg); }
.tl-event-card__toggle svg { transition: transform .15s ease; }
.tl-event-card__detail-list {
  padding: 10px 12px;
  background: rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.08);
}
.tl-event-card__detail-list-item {
  display: grid; grid-template-columns: 62px 1fr; gap: 8px; align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.24);
}
.tl-event-card__detail-list-item:last-child { border-bottom: none; }
.tl-event-card__detail-label {
  font-size: .7rem; font-weight: 700; color: var(--osh-text-muted);
}
.tl-event-card__detail-value {
  font-size: .76rem; color: var(--osh-text); line-height: 1.5;
  overflow-wrap: anywhere;
}
.tl-event-card__progress { margin-top: 10px; }

/* === Floating "今ここ" button === */
.tl-now-btn {
  position: fixed; bottom: 76px; right: 16px; z-index: 50;
  background: #ec4899;
  color: #fff;
  border: none; border-radius: 999px;
  padding: 9px 16px 9px 12px;
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 800; line-height: 1;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(236,72,153,.50),
              0 4px 20px rgba(0,0,0,.20);
  transition: opacity .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.tl-now-btn:active { opacity: .8; transform: scale(.96); }
.tl-now-btn[hidden] { display: none; }

/* === Time-proportional axis rail (当日セクション) === */
.tl-timed-wrap {
  position: relative;
}
/* レールライン: check button center = card-padding(12) + half-button(14) = 26px */
.tl-timed-wrap::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--oshi-1);
  opacity: 0.18;
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}
.tl-timed-wrap > .tl-card {
  position: relative;
  z-index: 1;
}

/* === Circle dot for event-time cards on the axis === */
.tl-card__dot-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
  border: 2px solid var(--oshi-1);
  background: none;
  color: var(--osh-text-muted);
}
.tl-card__dot-circle--oshi {
  background: var(--oshi-1); border-color: var(--oshi-1); color: #fff;
}
.tl-card__dot-circle--done {
  background: var(--osh-success, #2a9a5a); border-color: var(--osh-success, #2a9a5a); color: #fff;
}
.tl-card__dot-circle--alert {
  background: #f59e0b; border-color: #f59e0b; color: #fff;
}

/* === Event time cards: add rotating oshi orb === */
.tl-card[data-card-type="event-time"] {
  min-height: 96px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.tl-event-time-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.tl-event-time-layout__text {
  flex: 1;
  min-width: 0;
}
.tl-event-time-orb {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background-image:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.82) 0 18%, rgba(255,255,255,0) 44%),
    var(--oshi-image-url),
    linear-gradient(135deg, rgba(var(--_o1r,255),var(--_o1g,127),var(--_o1b,150),0.95) 0%, rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.95) 100%);
  background-size: 100% 100%, cover, 100% 100%;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 18px rgba(var(--_ot_r,82),var(--_ot_g,65),var(--_ot_b,117),0.24);
  animation: tlEventOrbSpin 18s linear infinite;
  cursor: pointer;
  outline: none;
  padding: 0;
}
.tl-event-time-orb:active {
  transform: scale(.95);
}

.tl-event-orb-bubble {
  position: absolute;
  right: 2px;
  top: -56px;
  min-width: 46px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.35);
  box-shadow: 0 8px 16px rgba(var(--_ot_r,82),var(--_ot_g,65),var(--_ot_b,117),0.16);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  animation: tlOrbBubblePop .25s ease-out;
}
.tl-event-orb-bubble.is-music {
  background: rgba(255,255,255,0.97);
}
.tl-event-orb-bubble.is-heart {
  background: linear-gradient(135deg, rgba(255,241,248,0.98) 0%, rgba(255,229,241,0.98) 100%);
  border-color: rgba(var(--_o1r,255),var(--_o1g,127),var(--_o1b,150),0.45);
}
.tl-event-orb-bubble::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.94);
  border-right: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.35);
  border-bottom: 1px solid rgba(var(--_ot_r,139),var(--_ot_g,92),var(--_ot_b,246),0.35);
  transform: rotate(45deg);
}
.tl-event-orb-bubble__symbol {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  color: var(--oshi-1);
  opacity: 0;
  transform: translateY(6px) scale(.85);
  animation: tlOrbSymbolFloat .72s ease-out forwards;
}
.tl-event-orb-bubble.is-heart .tl-event-orb-bubble__symbol {
  color: rgba(var(--_o1r,255),var(--_o1g,127),var(--_o1b,150),1);
}
.tl-event-orb-bubble.is-heart::after {
  background: linear-gradient(135deg, rgba(255,241,248,0.98) 0%, rgba(255,229,241,0.98) 100%);
  border-right-color: rgba(var(--_o1r,255),var(--_o1g,127),var(--_o1b,150),0.45);
  border-bottom-color: rgba(var(--_o1r,255),var(--_o1g,127),var(--_o1b,150),0.45);
}

@keyframes tlOrbBubblePop {
  from { opacity: 0; transform: translateY(6px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes tlOrbSymbolFloat {
  0% { opacity: 0; transform: translateY(6px) scale(.85) rotate(0deg); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-8px) scale(1.06) rotate(-8deg); }
}

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

/* === 今日やることカード (tl-today-card) === */
.tl-today-card {
  background: var(--osh-card-bg, #fff);
  border: 1.5px solid var(--oshi-1);
  border-radius: 12px;
  padding: 14px 16px;
}
.tl-today-card__head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  min-height: 30px;
}
.tl-today-card__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 62px; font-size: 11px; font-weight: 800;
  background: #fff; color: var(--osh-text);
  border: 2px solid var(--oshi-1);
  border-radius: 999px; padding: 4px 10px;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 8px rgba(0,0,0,.08);
}
.tl-today-card__title {
  font-size: 14px; font-weight: 700; color: var(--osh-text, #1a1a1a);
  letter-spacing: 0.01em;
}
.tl-today-card__tasks {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 12px;
}
.tl-today-card__row {
  display: flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--osh-text, #1a1a1a);
}
.tl-today-card__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--oshi-1); flex-shrink: 0;
}
.tl-today-card__time {
  font-size: 12px; color: var(--osh-text-muted, #888);
}
.tl-today-card__more,
.tl-today-card__empty {
  font-size: 12px; color: var(--osh-text-muted, #888);
  margin: 0 0 12px 14px;
}
.tl-today-card__done-msg {
  font-size: 13px; color: var(--osh-success, #2a9a5a);
  margin: 0 0 12px;
}
.tl-today-card__goto {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 100%; padding: 10px 12px;
  border: none; border-radius: 8px;
  background: #ec4899; color: #fff;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(236,72,153,.35);
}
.tl-today-card__goto:hover { opacity: .88; }

/* ================================================================
   スパークルエフェクト (チェック完了演出)
   ================================================================ */
.sparkle-particle {
  position: fixed; pointer-events: none; z-index: 9999;
  width: 7px; height: 7px; border-radius: 50%;
  animation: oshi-sparkle-fly 0.65s ease-out forwards;
}
.sparkle-particle--line {
  width: 3px; height: 11px; border-radius: 2px;
  transform-origin: center;
}
@keyframes oshi-sparkle-fly {
  0%   { opacity: 1; transform: scale(1) translate(0, 0) rotate(0deg); }
  60%  { opacity: 0.75; }
  100% { opacity: 0; transform: scale(0.3) translate(var(--sp-dx), var(--sp-dy)) rotate(60deg); }
}
