

.tb-hero { padding-bottom: clamp(28px, 4vw, 52px); }
.tb-section { padding-top: 0; }


.tb { display: none; }
.tb.is-js {
  display: grid; grid-template-columns: 300px minmax(0, 1fr) 290px; position: relative;
  background: var(--paper); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.09), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.tb-noscript { padding: 28px 30px; border-radius: var(--r-lg); background: var(--mist); }
.tb-side { padding: 34px 30px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; gap: 22px; }
.tb-side-k { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: -0.01em; }
.tb-side-t { font-size: clamp(26px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.026em; line-height: 1.1; margin-top: -16px; }
.tb-facts { display: grid; gap: 12px; }
.tb-facts li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink); }
.tb-facts svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tb-mode .flabel { font-size: 15px; margin-bottom: 10px; }
.tb-mode .hint { margin-top: 10px; }

.tb-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--mist); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); }
.tb-seg-opt { position: relative; cursor: pointer; }
.tb-seg-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tb-seg-opt span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 8px; border-radius: 999px; font-size: 14.5px; white-space: nowrap; font-weight: 550; color: var(--ink-2); transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.25s var(--ease); }
.tb-seg-opt svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tb-seg-opt input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.07), inset 0 0 0 0.5px rgba(0, 0, 0, 0.06); }
.tb-seg-opt input:focus-visible + span { outline: 3px solid rgba(36, 87, 245, 0.55); outline-offset: 2px; }
.tb-sum { padding: 18px 18px 16px; border-radius: var(--r-md); background: var(--signal-soft); }
.tb-sum-k { font-size: 13px; font-weight: 650; color: var(--signal-press); }
.tb-sum-d { margin-top: 6px; font-size: 17px; font-weight: 650; letter-spacing: -0.016em; }
.tb-sum-t { font-size: 17px; color: var(--ink); }
.tb-sum-z { margin-top: 4px; font-size: 13.5px; color: var(--ink-2); }
.tb-change { margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px; }


.tb-cal { padding: 30px 30px 26px; min-width: 0; position: relative; }
.tb-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.tb-month { font-size: 22px; font-weight: 700; letter-spacing: -0.022em; }
.tb-nav { display: flex; gap: 8px; }
.tb-navbtn { width: 38px; height: 38px; border: 0; border-radius: 999px; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: transform 0.2s var(--ease), opacity 0.2s ease; }
.tb-navbtn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-navbtn:hover:not([disabled]) { transform: scale(1.07); }
.tb-navbtn[disabled] { opacity: 0.35; cursor: default; }
.tb-wd, .tb-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.tb-wd { margin-bottom: 8px; }
.tb-wd span { text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.tb-grid [role="row"] { display: contents; }
.tb-dayc { aspect-ratio: 1; max-height: 54px; display: grid; place-items: center; }
.tb-daybtn {
  position: relative; width: 100%; max-width: 50px; aspect-ratio: 1; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 16px/1 var(--font); letter-spacing: -0.01em; color: var(--signal-press); background: var(--signal-soft);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease);
}
.tb-daybtn:hover { background: rgba(36, 87, 245, 0.15); }
.tb-daybtn:active { transform: scale(0.94); }
.tb-daybtn[aria-disabled="true"] { cursor: default; background: transparent; color: var(--ink-3); font-weight: 450; }
.tb-daybtn[aria-disabled="true"]:active { transform: none; }
.tb-daybtn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tb-daybtn.is-today::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.tb-tz { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }
.tb-state { display: flex; align-items: center; gap: 12px; padding: 18px 0; color: var(--ink-2); }
.tb-state--err { display: block; padding: 18px 20px; border-radius: var(--r-md); background: #fff4f2; color: var(--ink); }
.tb-state--err p + .btn { margin-top: 14px; }
.tb-state[hidden] { display: none; }
.tb[data-load="loading"] .tb-wd, .tb[data-load="loading"] .tb-grid, .tb[data-load="loading"] .tb-tz { opacity: 0.35; }
.tb[data-load="error"] .tb-wd, .tb[data-load="error"] .tb-grid, .tb[data-load="error"] .tb-cal-head, .tb[data-load="error"] .tb-tz, .tb[data-load="off"] .tb-wd, .tb[data-load="off"] .tb-grid, .tb[data-load="off"] .tb-cal-head, .tb[data-load="off"] .tb-tz { display: none; }
.tb[data-load="error"] .tb-times, .tb[data-load="off"] .tb-times { visibility: hidden; }


.tb-times { padding: 30px 26px 26px; border-left: 1px solid var(--hair); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tb-day { font-size: 17px; font-weight: 650; letter-spacing: -0.016em; min-height: 1.3em; }
.tb-empty { color: var(--ink-2); font-size: 15px; }
.tb-part { font-size: 12.5px; font-weight: 650; color: var(--ink-2); letter-spacing: 0.02em; margin-bottom: 8px; }
.tb-slotgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tb-slot {
  min-height: 46px; border: 0; border-radius: 14px; cursor: pointer; background: var(--paper); color: var(--signal-press);
  font: 600 16px/1 var(--font); letter-spacing: -0.01em; box-shadow: inset 0 0 0 1px rgba(36, 87, 245, 0.28);
  transition: box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s var(--ease);
}
.tb-slot:hover { box-shadow: inset 0 0 0 2px var(--signal); }
.tb-slot:active { transform: scale(0.96); }
.tb-slot[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.tb-next { width: 100%; margin-top: auto; }
.tb-next .chev { width: 8px; height: 12px; }


.tb-form { grid-column: 2 / 4; padding: 30px 34px 34px; }
.tb-form-head { display: grid; gap: 10px; }
.tb-form-t { font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.026em; }
.tb-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px; }
.tb-back svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tb-form select { width: 100%; }
.tb-slot-err { margin-top: -6px; }
.tb[data-step="form"] .tb-cal, .tb[data-step="form"] .tb-times { display: none; }


.tb-done, .tb-manage { grid-column: 1 / -1; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); text-align: center; }
.tb[data-step="done"] > :not(.tb-done), .tb[data-step="manage"] > :not(.tb-manage) { display: none; }
.tb-done-ic { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--ink); }
.tb-done-ic svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 4.2; stroke-linecap: round; stroke-linejoin: round; }
.tb-done-t { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.tb-done-d { margin: 14px auto 0; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); max-width: 30em; }
.tb-done .small, .tb-manage .small { margin: 14px auto 0; max-width: 34em; }
.tb-done .cta-row, .tb-manage .cta-row { justify-content: center; margin-top: 28px; }
.tb-warn { color: var(--warn) !important; }
.tb-ics svg, .tbpop [data-ics] svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tb-manage .tb-state { justify-content: center; }
.tb-manage .tb-state--err { max-width: 34em; margin: 0 auto; text-align: left; }
.tm-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; max-width: 30em; margin: 24px auto 0; text-align: left; font-size: 16px; }
.tm-facts dt { color: var(--ink-2); }
.tm-facts dd { overflow-wrap: anywhere; white-space: pre-line; }
.tm-status { margin-top: 18px; font-weight: 650; color: var(--bad); }
.tm-confirm { margin: 26px auto 0; padding: 20px; max-width: 30em; border-radius: var(--r-md); background: var(--mist); }
.tm-confirm .cta-row { margin-top: 14px; }
.tm-msg { margin-top: 16px; min-height: 1.4em; color: var(--ink-2); }
.tb-alt { margin-top: 22px; text-align: center; font-size: 15px; color: var(--ink-2); }


.tbpop .kpop-cta .btn[hidden] { display: none; }


@media (max-width: 1079px) {
  .tb.is-js { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
  .tb-side { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--hair); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px 32px; }
  .tb-side-k, .tb-side-t { grid-column: 1; }
  .tb-facts { grid-column: 1; }
  .tb-mode { grid-column: 2; grid-row: 1 / span 3; }
  .tb-sum { grid-column: 1 / -1; margin-top: 0; }
  .tb-form { grid-column: 1 / -1; }
}
@media (max-width: 759px) {
  .tb.is-js { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-lg); }
  .tb-side { display: flex; padding: 26px 22px; }
  .tb-cal { padding: 24px 18px 18px; }
  .tb-times { border-left: 0; border-top: 1px solid var(--hair); padding: 24px 22px; }
  .tb-slotgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tb-wd, .tb-grid { gap: 4px; }
  .tb-daybtn { font-size: 15px; }
  .tb-form { padding: 26px 22px 28px; }
  .tb-done, .tb-manage { padding: 40px 22px; }
  .tm-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tm-facts dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .tb-daybtn, .tb-slot, .tb-seg-opt span, .tb-navbtn { transition: none; } }

@media (max-width: 980px) { .steps.tb-steps { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; scroll-snap-type: none; padding-bottom: 0; } }
@media (max-width: 560px) { .steps.tb-steps { grid-template-columns: minmax(0, 1fr); } }


.ta-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.ta-section { padding-top: 0; }
.ta-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
#ta-login { max-width: 560px; }
.ta-msg { margin-top: 14px; min-height: 1.4em; color: var(--ink-2); font-size: 15px; }
.ta-msg.is-bad { color: var(--bad); }
.ta-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.ta-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.ta-side { display: grid; gap: 22px; }
.ta-count { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; margin-left: 6px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; vertical-align: 4px; }
.ta-count:empty { display: none; }
.ta-list { display: grid; gap: 12px; margin-top: 18px; }
.ta-dayh { margin-top: 14px; font-size: 14px; font-weight: 650; color: var(--ink-2); }
.ta-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 6px 18px; padding: 18px 20px; border-radius: var(--r-md); background: var(--mist); }
.ta-time { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ta-time small { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.ta-who { display: grid; gap: 4px; min-width: 0; }
.ta-name { font-size: 17px; font-weight: 650; letter-spacing: -0.014em; }
.ta-badge { display: inline-flex; align-items: center; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--ink-2); vertical-align: 2px; }
.ta-badge--video { color: #6d28d9; }
.ta-line { font-size: 15px; color: var(--ink-2); overflow-wrap: anywhere; }
.ta-line a { color: var(--signal); text-decoration: none; }
.ta-line a:hover { text-decoration: underline; }
.ta-msgtext { margin-top: 4px; font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.ta-acts { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ta-list--gone .ta-item { opacity: 0.7; background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.ta-h-gone { margin-top: 44px; }
.ta-none { margin-top: 14px; }
.ta-form { margin-top: 18px; gap: 16px; }
.ta-form select, .ta-form input[type="date"] { width: 100%; border: 0; border-radius: 14px; background: var(--mist); padding: 13px 14px; font: 400 16px/1.3 var(--font); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); min-height: 50px; }
.ta-check { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; }
.ta-check input { width: 20px; height: 20px; accent-color: var(--ink); }
.ta-h-blocks { margin-top: 28px; }
.ta-blocks { display: grid; gap: 8px; margin-top: 12px; }
.ta-blocks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--mist); font-size: 15px; }
.ta-blocks li span small { display: block; color: var(--ink-2); font-size: 13px; }
.ta-rules p { margin-top: 8px; }
@media (max-width: 900px) { .ta-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ta-item { grid-template-columns: minmax(0, 1fr); } .ta-acts { grid-column: 1; } }
