:root {
      --tak-navy: #0f2b73;
      --tak-blue: #0969da;
      --tak-yellow: #ffd21f;
      --tak-border: #d7e1ee;
      --tak-safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      width: 100%;
      height: 100%;
      margin: 0;
      overflow: hidden;
      background: #e8eef5;
      color: #111827;
      font-family: Arial, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
      -webkit-text-size-adjust: 100%;
    }

    button,
    input,
    textarea,
    select {
      font: inherit;
    }

    button {
      -webkit-tap-highlight-color: transparent;
    }

    .tak-map-app {
      position: fixed;
      inset: 0;
      display: flex;
      flex-direction: column;
      width: 100%;
      height: 100%;
      background: #e8eef5;
    }

    .tak-map-appbar {
      position: relative;
      z-index: 80;
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr) auto;
      align-items: center;
      gap: 8px;
      min-height: 56px;
      padding: 6px 10px;
      border-bottom: 1px solid #dbe5f1;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
    }

    .tak-map-back {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      padding: 0;
      border: 0;
      border-radius: 12px;
      background: #f1f5f9;
      color: var(--tak-navy);
      font-size: 24px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-map-app-title {
      min-width: 0;
    }

    .tak-map-app-title strong {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--tak-navy);
      font-size: 18px;
      line-height: 1.25;
      font-weight: 1000;
      letter-spacing: -0.035em;
    }

    .tak-map-version {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 20px;
      padding: 2px 7px;
      border: 1px solid #bfd2ee;
      border-radius: 999px;
      background: #eef6ff;
      color: #0f4cc9;
      font-size: 10px;
      line-height: 1;
      font-style: normal;
      font-weight: 1000;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .tak-map-app-title span {
      display: block;
      margin-top: 1px;
      overflow: hidden;
      color: #64748b;
      font-size: 11px;
      line-height: 1.35;
      font-weight: 800;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .tak-nearby-toggle {
      appearance: none;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 40px;
      padding: 7px 10px;
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      background: #fff;
      color: #475569;
      font-size: 11px;
      line-height: 1.1;
      font-weight: 1000;
      white-space: nowrap;
      cursor: pointer;
    }

    .tak-nearby-toggle::before {
      content: "";
      width: 11px;
      height: 11px;
      border-radius: 50%;
      background: #94a3b8;
      box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
    }

    .tak-nearby-toggle.on {
      border-color: #86efac;
      background: #f0fdf4;
      color: #166534;
    }

    .tak-nearby-toggle.on::before {
      background: #22c55e;
      box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    }

    .tak-push-toggle {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 48px;
      min-height: 38px;
      padding: 7px 10px;
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      background: #fff;
      color: #475569;
      font-size: 11px;
      line-height: 1;
      font-weight: 1000;
      white-space: nowrap;
      cursor: pointer;
    }

    .tak-push-toggle.on {
      border-color: #93c5fd;
      background: #eff6ff;
      color: #1d4ed8;
    }

    .tak-push-toggle.busy {
      opacity: .65;
      cursor: wait;
    }

    .tak-push-toggle-label {
      display: inline-block;
    }

    .tak-map-alert-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 19px;
      height: 19px;
      margin-left: 5px;
      padding: 0 5px;
      border-radius: 999px;
      background: #ef4444;
      color: #fff;
      font-size: 10px;
      font-weight: 1000;
      line-height: 1;
    }

    .tak-map-alert-badge[hidden] {
      display: none !important;
    }

    .tak-nearby-alert {
      position: fixed;
      top: calc(68px + env(safe-area-inset-top, 0px));
      left: 50%;
      z-index: 205;
      display: none;
      width: min(520px, calc(100vw - 24px));
      transform: translateX(-50%);
      border: 1px solid #b9cdf1;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.99);
      box-shadow: 0 18px 46px rgba(15, 43, 115, 0.32);
      overflow: hidden;
      animation: takNearbyAlertDrop .24s ease-out;
    }

    .tak-nearby-alert.show {
      display: block;
    }

    @keyframes takNearbyAlertDrop {
      from { opacity: 0; transform: translate(-50%, -14px) scale(.97); }
      to { opacity: 1; transform: translate(-50%, 0) scale(1); }
    }

    .tak-nearby-alert-head {
      display: grid;
      grid-template-columns: 44px minmax(0, 1fr) 34px;
      align-items: center;
      gap: 10px;
      padding: 13px 13px 9px;
    }

    .tak-nearby-alert-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: #fff4bd;
      font-size: 22px;
      box-shadow: inset 0 0 0 1px #f4d768;
    }

    .tak-nearby-alert-title {
      display: block;
      color: #0f2b73;
      font-size: 16px;
      line-height: 1.3;
      font-weight: 1000;
      letter-spacing: -0.035em;
    }

    .tak-nearby-alert-meta {
      display: block;
      margin-top: 2px;
      color: #64748b;
      font-size: 11px;
      line-height: 1.35;
      font-weight: 900;
    }

    .tak-nearby-alert-close {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      padding: 0;
      border: 0;
      border-radius: 10px;
      background: #f1f5f9;
      color: #475569;
      font-size: 20px;
      font-weight: 900;
      cursor: pointer;
    }

    .tak-nearby-alert-body {
      margin: 0;
      padding: 0 15px 13px;
      color: #111827;
      font-size: 15px;
      line-height: 1.55;
      font-weight: 850;
      word-break: keep-all;
    }

    .tak-nearby-alert-actions {
      display: grid;
      grid-template-columns: .8fr 1.2fr;
      gap: 8px;
      padding: 10px 13px 13px;
      border-top: 1px solid #edf2f7;
      background: #f8fbff;
    }

    .tak-nearby-alert-btn {
      appearance: none;
      min-height: 44px;
      border-radius: 13px;
      font-size: 13px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-nearby-alert-btn.later {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #475569;
    }

    .tak-nearby-alert-btn.view {
      border: 1px solid #0f2b73;
      background: #0f2b73;
      color: #fff;
    }

    @media (max-width: 420px) {
      .tak-nearby-alert {
        top: calc(62px + env(safe-area-inset-top, 0px));
        width: calc(100vw - 16px);
        border-radius: 17px;
      }

      .tak-nearby-alert-head {
        grid-template-columns: 40px minmax(0, 1fr) 32px;
        padding: 11px 11px 8px;
      }

      .tak-nearby-alert-icon {
        width: 40px;
        height: 40px;
      }

      .tak-nearby-alert-body {
        padding: 0 12px 11px;
        font-size: 14px;
      }

      .tak-nearby-alert-actions {
        padding: 9px 11px 11px;
      }
    }

    .tak-map-stage {
      position: relative;
      flex: 1 1 auto;
      min-height: 0;
      overflow: hidden;
      background: #dfe8f1;
    }

    #takMap {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      touch-action: none;
    }

    .tak-filter-row {
      position: absolute;
      top: 10px;
      left: 8px;
      right: 8px;
      z-index: 35;
      display: flex;
      gap: 7px;
      overflow-x: auto;
      padding: 2px 2px 8px;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .tak-filter-row::-webkit-scrollbar {
      display: none;
    }

    .tak-filter-btn {
      appearance: none;
      flex: 0 0 auto;
      min-height: 38px;
      padding: 8px 13px;
      border: 1px solid rgba(148, 163, 184, 0.82);
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.97);
      color: #475569;
      font-size: 12px;
      line-height: 1;
      font-weight: 1000;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: 0 6px 17px rgba(15, 23, 42, 0.12);
      backdrop-filter: blur(6px);
    }

    .tak-filter-btn.active {
      border-color: var(--tak-navy);
      background: var(--tak-navy);
      color: #fff;
    }

    .tak-filter-btn[aria-expanded="true"] {
      border-color: var(--tak-navy);
      box-shadow: 0 0 0 3px rgba(15, 43, 115, 0.13), 0 6px 17px rgba(15, 23, 42, 0.12);
    }

    .tak-filter-submenu {
      position: absolute;
      top: 57px;
      left: 8px;
      right: 8px;
      z-index: 38;
      display: none;
      align-items: center;
      min-height: 46px;
      pointer-events: none;
    }

    .tak-filter-submenu.show {
      display: flex;
    }

    .tak-subfilter-group {
      display: none;
      align-items: center;
      gap: 7px;
      max-width: 100%;
      overflow-x: auto;
      padding: 5px 7px;
      border: 1px solid rgba(148, 163, 184, 0.72);
      border-radius: 15px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
      pointer-events: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .tak-subfilter-group::-webkit-scrollbar {
      display: none;
    }

    .tak-subfilter-group.show {
      display: flex;
    }

    .tak-subfilter-btn {
      appearance: none;
      flex: 0 0 auto;
      min-height: 34px;
      padding: 7px 12px;
      border: 1px solid #cbd5e1;
      border-radius: 999px;
      background: #fff;
      color: #475569;
      font-size: 11px;
      line-height: 1;
      font-weight: 1000;
      white-space: nowrap;
      cursor: pointer;
    }

    .tak-subfilter-btn.active {
      border-color: var(--tak-navy);
      background: var(--tak-navy);
      color: #fff;
    }

    .tak-map-stage.submenu-open .tak-map-area-search,
    .tak-map-stage.submenu-open .tak-detail-panel {
      top: 105px;
    }

    .tak-map-area-search {
      position: absolute;
      top: 58px;
      left: 50%;
      z-index: 34;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 9px 17px;
      transform: translateX(-50%);
      border: 1px solid #1d4ed8;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.98);
      color: #0637b8;
      font-size: 13px;
      font-weight: 1000;
      white-space: nowrap;
      cursor: pointer;
      box-shadow: 0 9px 24px rgba(15, 23, 42, 0.18);
    }

    .tak-map-area-search.show {
      display: inline-flex;
    }

    @media (max-width: 760px) {
      .tak-map-area-search {
        top: 58px;
        left: auto;
        right: 10px;
        min-height: 38px;
        padding: 8px 13px;
        transform: none;
        font-size: 12px;
        z-index: 45;
      }

      .tak-map-stage.submenu-open .tak-map-area-search {
        top: 105px;
      }

      .tak-map-stage.recommend-open .tak-map-area-search {
        top: 58px;
      }

      .tak-map-stage.submenu-open.recommend-open .tak-map-area-search {
        top: 105px;
      }
    }

    .tak-detail-panel {
      position: absolute;
      top: 60px;
      left: 10px;
      right: 10px;
      z-index: 46;
      display: none;
      max-width: 680px;
      margin: 0 auto;
      padding: 14px 42px 14px 15px;
      border: 1px solid #cbd5e1;
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 14px 35px rgba(15, 23, 42, 0.19);
      backdrop-filter: blur(8px);
    }

    .tak-detail-panel.show {
      display: block;
    }

    .tak-detail-panel {
      max-height: calc(100% - 138px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
    }

    .tak-detail-close {
      appearance: none;
      position: absolute;
      top: 8px;
      right: 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      padding: 0;
      border: 0;
      border-radius: 9px;
      background: #f1f5f9;
      color: #475569;
      font-size: 20px;
      font-weight: 900;
      cursor: pointer;
    }

    .tak-detail-type {
      display: inline-flex;
      align-items: center;
      min-height: 24px;
      padding: 4px 8px;
      border-radius: 999px;
      background: #eef6ff;
      color: #0f2b73;
      font-size: 10px;
      font-weight: 1000;
    }

    .tak-detail-title {
      margin: 7px 0 5px;
      color: #111827;
      font-size: 17px;
      line-height: 1.38;
      font-weight: 1000;
      letter-spacing: -0.025em;
    }

    .tak-detail-body {
      margin: 0;
      color: #475569;
      font-size: 13px;
      line-height: 1.58;
      font-weight: 750;
      white-space: pre-line;
    }

    .tak-detail-meta {
      margin-top: 6px;
      color: #64748b;
      font-size: 11px;
      line-height: 1.45;
      font-weight: 800;
    }

    .tak-detail-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-top: 10px;
    }

    .tak-detail-btn {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 38px;
      padding: 8px 12px;
      border-radius: 10px;
      font-size: 12px;
      line-height: 1.1;
      font-weight: 1000;
      text-decoration: none;
      cursor: pointer;
    }

    .tak-detail-btn.primary {
      border: 1px solid var(--tak-navy);
      background: var(--tak-navy);
      color: #fff;
    }

    .tak-detail-btn.secondary {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #334155;
    }

    .tak-detail-actions > .tak-detail-btn,
    .tak-detail-actions > a.tak-detail-btn {
      flex: 1 1 calc(50% - 4px);
    }


    .tak-detail-live-panel {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #dbe5f1;
    }

    .tak-detail-live-panel[hidden] {
      display: none !important;
    }

    .tak-detail-live-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .tak-detail-live-title {
      color: #0f2b73;
      font-size: 15px;
      line-height: 1.35;
      font-weight: 1000;
      letter-spacing: -0.025em;
    }

    .tak-detail-live-description {
      margin-top: 3px;
      color: #64748b;
      font-size: 10px;
      line-height: 1.45;
      font-weight: 800;
    }

    .tak-detail-live-close {
      appearance: none;
      flex: 0 0 auto;
      min-width: 52px;
      min-height: 31px;
      padding: 5px 9px;
      border: 1px solid #cbd5e1;
      border-radius: 9px;
      background: #fff;
      color: #475569;
      font-size: 10px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-detail-live-content {
      min-width: 0;
    }

    .tak-detail-live-panel .tak-sheet-actions {
      position: static;
      margin-top: 10px;
      padding: 0;
      background: transparent;
    }

    @media (max-width: 760px) {
      .tak-detail-panel {
        max-height: calc(100% - 118px);
      }

      .tak-detail-live-panel {
        margin-top: 10px;
        padding-top: 10px;
      }
    }

    .tak-realtime-loading,
    .tak-realtime-empty,
    .tak-realtime-error {
      padding: 18px 14px;
      border: 1px solid #dbe5f1;
      border-radius: 14px;
      background: #f8fafc;
      color: #475569;
      font-size: 13px;
      line-height: 1.65;
      font-weight: 800;
      text-align: center;
    }

    .tak-realtime-error {
      border-color: #fecaca;
      background: #fff1f2;
      color: #9f1239;
    }

    .tak-realtime-status {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;
      margin-bottom: 10px;
    }

    .tak-realtime-badge {
      display: inline-flex;
      align-items: center;
      min-height: 28px;
      padding: 5px 9px;
      border-radius: 999px;
      background: #dcfce7;
      color: #166534;
      font-size: 11px;
      font-weight: 1000;
    }

    .tak-realtime-badge.wait {
      background: #fef3c7;
      color: #92400e;
    }

    .tak-realtime-badge.stop {
      background: #e2e8f0;
      color: #475569;
    }

    .tak-realtime-vehicle-count {
      color: #0f2b73;
      font-size: 12px;
      font-weight: 1000;
    }

    .tak-arrival-list {
      display: grid;
      gap: 9px;
    }

    .tak-arrival-card {
      padding: 12px;
      border: 1px solid #dbe5f1;
      border-radius: 14px;
      background: #fff;
    }

    .tak-arrival-card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .tak-arrival-card-head strong {
      color: #0f2b73;
      font-size: 13px;
      font-weight: 1000;
    }

    .tak-arrival-time {
      color: #111827;
      font-size: 18px;
      font-weight: 1000;
      letter-spacing: -0.03em;
    }

    .tak-arrival-meta {
      margin-top: 6px;
      color: #64748b;
      font-size: 11px;
      line-height: 1.55;
      font-weight: 800;
    }

    .tak-realtime-foot {
      margin-top: 10px;
      color: #64748b;
      font-size: 10px;
      line-height: 1.55;
      font-weight: 750;
    }

    .tak-realtime-route-list {
      display: grid;
      gap: 8px;
    }

    .tak-realtime-route-btn {
      appearance: none;
      width: 100%;
      padding: 12px;
      border: 1px solid #bfdbfe;
      border-radius: 13px;
      background: #eff6ff;
      color: #0f2b73;
      text-align: left;
      cursor: pointer;
    }

    .tak-realtime-route-btn strong {
      display: block;
      font-size: 14px;
      font-weight: 1000;
    }

    .tak-realtime-route-btn span {
      display: block;
      margin-top: 3px;
      color: #475569;
      font-size: 11px;
      line-height: 1.45;
      font-weight: 800;
    }

    .tak-realtime-all-list {
      display: grid;
      gap: 11px;
    }

    .tak-realtime-route-card {
      padding: 14px;
      border: 1px solid #bfdbfe;
      border-radius: 16px;
      background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
      box-shadow: 0 6px 16px rgba(15, 43, 115, 0.06);
    }

    .tak-realtime-route-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .tak-realtime-route-number {
      color: #0637b8;
      font-size: 21px;
      line-height: 1.15;
      font-weight: 1000;
      letter-spacing: -0.04em;
    }

    .tak-realtime-route-direction {
      margin-top: 4px;
      color: #111827;
      font-size: 13px;
      line-height: 1.45;
      font-weight: 950;
      word-break: keep-all;
    }

    .tak-realtime-route-time {
      margin-top: 7px;
      color: #64748b;
      font-size: 10px;
      line-height: 1.5;
      font-weight: 800;
    }

    .tak-destination-chip-list {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
      margin-top: 8px;
    }

    .tak-destination-chip {
      display: inline-flex;
      align-items: center;
      min-height: 25px;
      padding: 4px 8px;
      border: 1px solid #f5c842;
      border-radius: 999px;
      background: #fff7cc;
      color: #713f12;
      font-size: 10px;
      line-height: 1.2;
      font-weight: 1000;
    }

    .tak-realtime-route-card .tak-arrival-list {
      margin-top: 10px;
    }

    .tak-realtime-route-card .tak-realtime-empty,
    .tak-realtime-route-card .tak-realtime-error {
      margin-top: 10px;
      padding: 13px 11px;
    }

    .tak-realtime-summary-foot {
      margin-top: 12px;
      padding: 10px 11px;
      border-radius: 12px;
      background: #f8fafc;
      color: #64748b;
      font-size: 10px;
      line-height: 1.6;
      font-weight: 800;
    }

    .tak-sheet-btn:disabled {
      opacity: 0.58;
      cursor: not-allowed;
      filter: grayscale(0.12);
    }

    .tak-transit-detail-routes {
      display: grid;
      gap: 7px;
      margin-top: 8px;
      max-height: 390px;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding-right: 2px;
    }

    .tak-transit-detail-route.is-realtime {
      border-color: #93c5fd;
      background: #f4f8ff;
    }

    .tak-transit-route-status {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      padding: 3px 7px;
      border-radius: 999px;
      background: #e8f1ff;
      color: #0b4cc4;
      font-size: 10px;
      line-height: 1;
      font-weight: 1000;
      white-space: nowrap;
    }

    .tak-transit-route-status.schedule {
      background: #f1f5f9;
      color: #475569;
    }

    .tak-transit-detail-route {
      padding: 9px 10px;
      border: 1px solid #dbeafe;
      border-radius: 12px;
      background: #f8fbff;
    }

    .tak-transit-detail-route-head {
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 7px;
    }

    .tak-transit-detail-route-no {
      color: #0637b8;
      font-size: 16px;
      font-weight: 1000;
    }

    .tak-transit-detail-direction {
      color: #111827;
      font-size: 12px;
      font-weight: 950;
    }

    /* 163 v43: 상단 운행 노선의 노선안내 버튼을 카드 세로 중앙에 고정 */
    .tak-naver-route-card {
      position: relative;
      padding-right: 88px !important;
      box-sizing: border-box;
    }

    .tak-transit-detail-route-head.tak-naver-route-head {
      display: block;
      width: 100%;
    }

    .tak-naver-route-main {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
      min-width: 0;
    }

    .tak-naver-route-button {
      position: absolute;
      top: 50%;
      right: 10px;
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 66px;
      min-height: 32px;
      padding: 7px 10px;
      border: 1px solid #8fb5ff;
      border-radius: 10px;
      background: #ffffff;
      color: #0f4cc9;
      font-size: 11px;
      line-height: 1;
      font-weight: 1000;
      cursor: pointer;
      white-space: nowrap;
      box-sizing: border-box;
      z-index: 2;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
    }

    .tak-naver-route-button:hover,
    .tak-naver-route-button:focus-visible {
      border-color: #0f4cc9;
      background: #eef5ff;
      outline: none;
    }

    @media (max-width: 560px) {
      .tak-naver-route-card {
        padding-right: 78px !important;
      }

      .tak-naver-route-button {
        right: 8px;
        min-width: 60px;
        min-height: 30px;
        padding: 6px 8px;
        font-size: 10px;
      }
    }

    .tak-transit-detail-note {
      margin-top: 7px;
      color: #64748b;
      font-size: 10px;
      line-height: 1.5;
      font-weight: 800;
    }

    .tak-transit-route-empty {
      margin-top: 8px;
      padding: 13px 12px;
      border: 1px solid #dbeafe;
      border-radius: 12px;
      background: #f8fbff;
      color: #334155;
      font-size: 12px;
      line-height: 1.55;
      font-weight: 900;
      text-align: center;
    }

    .tak-map-utility-row {
      position: absolute;
      left: 8px;
      right: 8px;
      bottom: 10px;
      z-index: 36;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: stretch;
      gap: 6px;
      pointer-events: none;
    }

    .tak-inline-controls {
      display: flex;
      align-items: stretch;
      gap: 6px;
      pointer-events: auto;
    }

    .tak-control-btn {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      min-width: 48px;
      min-height: 46px;
      padding: 4px 3px;
      border: 1px solid rgba(148, 163, 184, 0.82);
      border-radius: 13px;
      background: rgba(255, 255, 255, 0.98);
      color: var(--tak-navy);
      font-size: 10px;
      line-height: 1.15;
      font-weight: 1000;
      text-align: center;
      cursor: pointer;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    }

    .tak-control-btn:disabled {
      opacity: 0.5;
      cursor: wait;
    }

    .tak-map-status {
      position: relative;
      z-index: 34;
      display: -webkit-box;
      align-items: center;
      min-width: 0;
      min-height: 46px;
      max-height: 52px;
      overflow: hidden;
      padding: 8px 10px;
      border: 1px solid rgba(191, 219, 254, 0.96);
      border-radius: 13px;
      background: rgba(255, 255, 255, 0.96);
      color: #334155;
      font-size: 11px;
      line-height: 1.35;
      font-weight: 900;
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
      backdrop-filter: blur(6px);
      pointer-events: auto;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    @media (max-width: 360px) {
      .tak-map-utility-row { left: 6px; right: 6px; gap: 4px; }
      .tak-inline-controls { gap: 4px; }
      .tak-control-btn { width: 43px; min-width: 43px; min-height: 44px; font-size: 9px; border-radius: 12px; }
      .tak-map-status { min-height: 44px; max-height: 48px; padding: 7px 8px; font-size: 10px; }
    }

    .tak-map-status.success {
      border-color: #bbf7d0;
      color: #166534;
    }

    .tak-map-status.warning {
      border-color: #fde68a;
      color: #854d0e;
    }

    .tak-map-status.error {
      border-color: #fecaca;
      color: #b91c1c;
    }

    .tak-bottom-actions {
      position: relative;
      z-index: 70;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      min-height: calc(66px + var(--tak-safe-bottom));
      padding: 9px 10px calc(9px + var(--tak-safe-bottom));
      border-top: 1px solid #dbe5f1;
      background: rgba(255, 255, 255, 0.98);
      box-shadow: 0 -5px 20px rgba(15, 23, 42, 0.09);
    }

    .tak-bottom-btn {
      appearance: none;
      min-height: 48px;
      padding: 10px 12px;
      border-radius: 13px;
      font-size: 14px;
      line-height: 1.1;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-bottom-btn.field {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #0f2b73;
    }

    .tak-bottom-btn.shout {
      border: 1px solid var(--tak-navy);
      background: var(--tak-navy);
      color: #fff;
    }

    .tak-bottom-btn.together {
      border: 1px solid #047857;
      background: #059669;
      color: #fff;
    }

    .tak-bottom-actions.has-private-action {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tak-bottom-btn.private {
      border: 1px solid #1e40af;
      background: #dbeafe;
      color: #0f2b73;
    }

    .tak-bottom-btn[hidden] {
      display: none !important;
    }

    .tak-map-error {
      position: absolute;
      inset: 0;
      z-index: 100;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 22px;
      background: rgba(248, 250, 252, 0.98);
      text-align: center;
    }

    .tak-map-error.show {
      display: flex;
    }

    .tak-map-error-box {
      width: 100%;
      max-width: 480px;
      padding: 24px 20px;
      border: 1px solid #fecaca;
      border-radius: var(--tak-card-radius);
      background: #fff;
      color: #991b1b;
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
    }

    .tak-map-error-box strong {
      display: block;
      margin-bottom: 8px;
      font-size: 20px;
      line-height: 1.4;
      font-weight: 1000;
    }

    .tak-map-error-box p {
      margin: 0;
      font-size: 14px;
      line-height: 1.75;
      font-weight: 800;
    }

    .tak-sheet-backdrop {
      position: fixed;
      inset: 0;
      z-index: 120;
      display: none;
      align-items: flex-end;
      justify-content: center;
      padding: 0;
      background: rgba(15, 23, 42, 0.5);
    }

    .tak-sheet-backdrop.show {
      display: flex;
    }

    .tak-sheet {
      width: 100%;
      max-width: 620px;
      max-height: min(82vh, 720px);
      overflow-y: auto;
      padding: 18px 16px calc(18px + var(--tak-safe-bottom));
      border-radius: 22px 22px 0 0;
      background: #fff;
      box-shadow: 0 -18px 48px rgba(15, 23, 42, 0.22);
    }

    .tak-sheet-handle {
      width: 42px;
      height: 5px;
      margin: 0 auto 14px;
      border-radius: 999px;
      background: #cbd5e1;
    }

    .tak-sheet-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 14px;
    }

    .tak-sheet-head h2 {
      margin: 0;
      color: #0f2b73;
      font-size: 20px;
      line-height: 1.35;
      font-weight: 1000;
      letter-spacing: -0.035em;
    }

    .tak-sheet-head p {
      margin: 4px 0 0;
      color: #64748b;
      font-size: 12px;
      line-height: 1.55;
      font-weight: 800;
    }

    .tak-sheet-close {
      appearance: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 auto;
      width: 36px;
      height: 36px;
      padding: 0;
      border: 0;
      border-radius: 10px;
      background: #f1f5f9;
      color: #475569;
      font-size: 22px;
      cursor: pointer;
    }

    .tak-form-row {
      margin-top: 13px;
    }

    .tak-form-row label {
      display: block;
      margin-bottom: 6px;
      color: #334155;
      font-size: 13px;
      font-weight: 1000;
    }

    .tak-form-control {
      width: 100%;
      min-height: 46px;
      padding: 11px 12px;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      background: #fff;
      color: #111827;
      font-size: 14px;
      line-height: 1.5;
      font-weight: 750;
      outline: none;
    }

    textarea.tak-form-control {
      min-height: 104px;
      resize: vertical;
    }

    .tak-form-control:focus {
      border-color: #60a5fa;
      box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.16);
    }

    .tak-form-help {
      margin-top: 6px;
      color: #64748b;
      font-size: 11px;
      line-height: 1.5;
      font-weight: 750;
    }

    .tak-sheet-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-top: 17px;
    }

    .tak-sheet-btn {
      appearance: none;
      min-height: 48px;
      padding: 10px 12px;
      border-radius: 13px;
      font-size: 14px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-sheet-btn.cancel {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #475569;
    }

    .tak-sheet-btn.confirm {
      border: 1px solid #0f2b73;
      background: #0f2b73;
      color: #fff;
    }

    .tak-route-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 10px;
    }

    .tak-route-btn {
      appearance: none;
      min-height: 54px;
      padding: 10px 8px;
      border: 1px solid #cbd5e1;
      border-radius: 13px;
      background: #fff;
      color: #0f2b73;
      font-size: 13px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-toast {
      position: fixed;
      left: 50%;
      bottom: calc(84px + var(--tak-safe-bottom));
      z-index: 160;
      display: none;
      max-width: calc(100vw - 28px);
      padding: 11px 15px;
      transform: translateX(-50%);
      border-radius: 999px;
      background: rgba(15, 23, 42, 0.94);
      color: #fff;
      font-size: 12px;
      line-height: 1.45;
      font-weight: 900;
      text-align: center;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
    }

    .tak-toast.show {
      display: block;
    }

    .tak-room-alert-layer {
      position: fixed;
      inset: 0;
      z-index: 210;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 22px;
      background: rgba(15, 23, 42, 0.20);
      backdrop-filter: blur(1.5px);
    }

    .tak-room-alert-layer.show {
      display: flex;
    }

    .tak-room-alert-card {
      width: min(360px, calc(100vw - 36px));
      padding: 22px 20px 18px;
      border: 1px solid #dbe5f5;
      border-radius: 22px;
      background: #fff;
      color: #111827;
      text-align: center;
      box-shadow: 0 22px 60px rgba(15, 43, 115, 0.30);
      animation: takRoomAlertPop 0.22s ease-out;
    }

    .tak-room-location-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 9px;
      padding: 11px 12px;
      border: 1px solid #bfdbfe;
      border-radius: 13px;
      background: #eff6ff;
    }

    @media (max-width: 480px) {
      .tak-room-location-box {
        align-items: stretch;
        flex-direction: column;
      }
      .tak-room-location-box .tak-room-phone-toggle {
        width: 100%;
      }
    }

    @keyframes takRoomAlertPop {
      from { opacity: 0; transform: translateY(12px) scale(0.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .tak-room-alert-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 54px;
      height: 54px;
      margin: 0 auto 12px;
      border-radius: 18px;
      background: #fff4bd;
      color: #0f2b73;
      font-size: 25px;
      box-shadow: inset 0 0 0 1px #f4d768;
    }

    .tak-room-alert-title {
      margin: 0;
      color: #0f2b73;
      font-size: 19px;
      line-height: 1.35;
      font-weight: 1000;
    }

    .tak-room-alert-message {
      margin: 10px 0 18px;
      color: #334155;
      font-size: 15px;
      line-height: 1.55;
      font-weight: 800;
      word-break: keep-all;
    }

    .tak-room-alert-actions {
      display: grid;
      grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
      gap: 9px;
    }

    .tak-room-alert-actions.three {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tak-room-alert-btn {
      appearance: none;
      min-height: 47px;
      border-radius: 14px;
      font-size: 14px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-room-alert-btn.close {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #475569;
    }

    .tak-room-alert-btn.reject {
      border: 1px solid #fecaca;
      background: #fff1f2;
      color: #b91c1c;
    }

    .tak-room-alert-btn.action {
      border: 1px solid #0f2b73;
      background: #0f2b73;
      color: #fff;
    }

    .tak-room-alert-btn.action:only-child {
      grid-column: 1 / -1;
    }

    @media (max-width: 420px) {
      .tak-room-alert-layer {
        padding: 16px;
      }

      .tak-room-alert-card {
        width: min(340px, calc(100vw - 28px));
        padding: 20px 17px 16px;
        border-radius: 19px;
      }
    }


    .tak-callpoint-recommend {
      position: absolute;
      top: 60px;
      left: 10px;
      right: 10px;
      z-index: 42;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      max-width: 680px;
      min-height: 44px;
      margin: 0 auto;
      padding: 8px 10px 8px 13px;
      border: 1px solid rgba(15, 43, 115, 0.22);
      border-radius: 14px;
      background: rgba(255, 255, 255, 0.97);
      box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
      backdrop-filter: blur(7px);
    }

    .tak-callpoint-recommend[hidden] { display: none; }
    .tak-callpoint-recommend strong { display:block; color:#0f2b73; font-size:12px; font-weight:1000; }
    .tak-callpoint-recommend span { display:block; margin-top:2px; color:#64748b; font-size:11px; font-weight:800; }
    .tak-callpoint-recommend button {
      flex:0 0 auto; min-height:32px; padding:7px 10px; border:1px solid #cbd5e1;
      border-radius:999px; background:#fff; color:#475569; font-size:11px; font-weight:1000; cursor:pointer;
    }
    .tak-callpoint-recommend button.active { border-color:#0f2b73; background:#0f2b73; color:#fff; }
    .tak-map-stage.recommend-open .tak-detail-panel { top: 112px; }
    .tak-map-stage.submenu-open.recommend-open .tak-detail-panel { top: 158px; }

    .tak-map-stage.recommend-open .tak-map-area-search { top: 58px; }
    .tak-map-stage.submenu-open.recommend-open .tak-map-area-search { top: 105px; }
    .tak-map-stage.submenu-open .tak-callpoint-recommend { top:108px; }

    .tak-basic-marker.callpoint.callpoint-recommended .tak-basic-marker-pin {
      background:#ffd21f;
      color:#111827;
      box-shadow:0 0 0 6px rgba(255,210,31,.28),0 5px 14px rgba(15,23,42,.29);
    }
    .tak-basic-marker.callpoint.callpoint-normal .tak-basic-marker-pin { background:#fbbf24; }
    .tak-basic-marker.shelter .tak-basic-marker-pin { background:#a78bfa; color:#fff; }
    .tak-basic-marker.shelter.shelter-closed {
      opacity:.48;
      filter:grayscale(.9);
    }
    .tak-basic-marker.shelter.shelter-closed .tak-basic-marker-pin {
      background:#94a3b8;
      color:#f8fafc;
      box-shadow:0 3px 9px rgba(15,23,42,.18);
    }
    .tak-basic-marker.shelter.shelter-closed.selected {
      opacity:.82;
      filter:grayscale(.45);
    }

    .tak-bottom-actions.has-callpoint-action,
    .tak-bottom-actions.has-callpoint-action.has-private-action { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tak-bottom-btn.callpoint { border:1px solid #d97706; background:#f59e0b; color:#111827; }

    @media (max-width:620px) {
      .tak-bottom-actions.has-callpoint-action,
      .tak-bottom-actions.has-callpoint-action.has-private-action { grid-template-columns:repeat(2,minmax(0,1fr)); }
    }

    @media (max-width:520px) {
      .tak-callpoint-recommend { left:7px; right:7px; }
      .tak-callpoint-recommend span { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    }

    .tak-basic-marker {
      position: relative;
      width: 39px;
      height: 39px;
    }

    .tak-basic-marker-pin {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 39px;
      height: 39px;
      border: 3px solid #fff;
      border-radius: 50% 50% 50% 9px;
      color: #111827;
      font-size: 13px;
      font-weight: 1000;
      transform: rotate(-45deg);
      box-shadow: 0 5px 14px rgba(15, 23, 42, 0.29);
    }

    .tak-basic-marker-pin span {
      transform: rotate(45deg);
    }

    .tak-basic-marker.selected .tak-basic-marker-pin {
      outline: 4px solid rgba(15, 43, 115, 0.28);
      transform: rotate(-45deg) scale(1.08);
    }

    .tak-basic-marker.callpoint .tak-basic-marker-pin {
      background: #2563eb;
      color: #fff;
    }

    .tak-basic-marker.callpoint.callpoint-delivery .tak-basic-marker-pin {
      background: #f97316;
      color: #fff;
    }

    .tak-basic-marker.callpoint.callpoint-both .tak-basic-marker-pin {
      background: #8b5cf6;
      color: #fff;
    }

    .tak-basic-marker.public_toilet .tak-basic-marker-pin {
      background: #60a5fa;
      color: #fff;
    }

    .tak-basic-marker.my_toilet .tak-basic-marker-pin {
      background: #facc15;
      color: #422006;
    }

    .tak-basic-marker.taktle .tak-basic-marker-pin {
      background: #22c55e;
      color: #053b1f;
    }

    .tak-basic-marker.transit.transit-static .tak-basic-marker-pin {
      background: #172554;
      color: #fff;
      box-shadow:
        0 0 0 5px rgba(30, 64, 175, 0.20),
        0 5px 14px rgba(15, 23, 42, 0.29);
    }

    .tak-basic-marker.transit.transit-running .tak-basic-marker-pin {
      background: #2563eb;
      color: #fff;
      box-shadow:
        0 0 0 5px rgba(37, 99, 235, 0.20),
        0 5px 14px rgba(15, 23, 42, 0.29);
    }

    .tak-basic-marker.transit.transit-upcoming .tak-basic-marker-pin {
      background: #facc15;
      color: #713f12;
      box-shadow:
        0 0 0 5px rgba(250, 204, 21, 0.22),
        0 5px 14px rgba(15, 23, 42, 0.24);
    }

    .tak-basic-marker.transit.transit-off .tak-basic-marker-pin {
      border-color: rgba(255, 255, 255, 0.92);
      background: #cbd5e1;
      color: #64748b;
      opacity: 0.62;
      box-shadow: 0 3px 9px rgba(15, 23, 42, 0.15);
    }

    .tak-basic-marker.encyclopedia .tak-basic-marker-pin {
      background: #fb923c;
      color: #fff;
    }

    .tak-message-marker {
      position: relative;
      display: inline-flex;
      align-items: center;
      max-width: 112px;
      min-height: 34px;
      padding: 7px 10px;
      border: 2px solid #fff;
      border-radius: 13px;
      background: #fff;
      color: #0f2b73;
      font-size: 12px;
      line-height: 1;
      font-weight: 1000;
      white-space: nowrap;
      box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
    }

    .tak-message-marker::after {
      content: "";
      position: absolute;
      left: 15px;
      bottom: -7px;
      width: 12px;
      height: 12px;
      border-right: 2px solid #fff;
      border-bottom: 2px solid #fff;
      background: inherit;
      transform: rotate(45deg);
    }

    .tak-message-marker.field {
      background: #fff7d6;
      color: #7c5200;
    }

    .tak-message-marker.shout {
      background: #dbeafe;
      color: #0f2b73;
    }

    .tak-message-marker.together {
      background: #dcfce7;
      color: #166534;
    }

    .tak-message-marker.selected {
      outline: 4px solid rgba(15, 43, 115, 0.25);
      transform: scale(1.06);
    }

    .tak-current-marker {
      position: relative;
      width: 34px;
      height: 34px;
      border: 5px solid #fff;
      border-radius: 50%;
      background: #0969da;
      box-shadow:
        0 0 0 4px rgba(9, 105, 218, 0.23),
        0 5px 14px rgba(15, 23, 42, 0.3);
    }

    .tak-current-marker::after {
      content: "";
      position: absolute;
      inset: 8px;
      border-radius: 50%;
      background: #fff;
    }

    @media (min-width: 900px) {
      .tak-map-appbar {
        min-height: 62px;
        padding-left: 16px;
        padding-right: 16px;
      }

      .tak-map-app-title strong {
        font-size: 20px;
      }

      .tak-filter-row {
        left: 16px;
        right: 16px;
      }

      .tak-bottom-actions {
        grid-template-columns: minmax(180px, 260px) minmax(180px, 260px);
        justify-content: center;
      }

      .tak-bottom-actions.has-private-action {
        grid-template-columns: repeat(2, minmax(180px, 260px));
      }
    }

    @media (max-width: 760px) {
      .tak-filter-row {
        left: 4px;
        right: 4px;
        gap: 3px;
        justify-content: flex-start;
        overflow-x: visible;
        padding-left: 0;
        padding-right: 0;
      }

      .tak-filter-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 36px;
        padding: 7px 3px;
        font-size: clamp(9px, 2.7vw, 11px);
        letter-spacing: -0.06em;
      }
    }

    @media (max-width: 350px) {
      .tak-filter-row {
        gap: 2px;
      }

      .tak-filter-btn {
        min-height: 34px;
        padding: 6px 2px;
        font-size: 9px;
      }
    }

    @media (max-width: 390px) {
      .tak-map-appbar {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        padding-left: 7px;
        padding-right: 7px;
      }

      .tak-map-back {
        width: 38px;
        height: 38px;
      }

      .tak-map-app-title strong {
        font-size: 16px;
      }

      .tak-nearby-toggle {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 10px;
      }

      .tak-push-toggle {
        min-width: 42px;
        min-height: 36px;
        padding: 6px 8px;
        font-size: 10px;
      }

      .tak-detail-panel {
        left: 7px;
        right: 7px;
      }
    }

    .tak-room-shortcut {
      appearance: none;
      position: absolute;
      left: 12px;
      bottom: 82px;
      z-index: 36;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      padding: 0;
      border: 1px solid #0f2b73;
      border-radius: 50%;
      background: #0f2b73;
      color: #fff;
      font-size: 21px;
      line-height: 1;
      font-weight: 1000;
      cursor: pointer;
      box-shadow: 0 8px 22px rgba(15, 43, 115, 0.28);
    }

    .tak-room-shortcut.pending {
      border-color: #f59e0b;
      background: #fff7cc;
      color: #7c2d12;
    }

    .tak-room-shortcut[hidden] {
      display: none !important;
    }

    .tak-room-shortcut-icon {
      transform: translateY(-1px);
    }

    .tak-room-shortcut-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 21px;
      height: 21px;
      padding: 0 5px;
      border: 2px solid #fff;
      border-radius: 999px;
      background: #dc2626;
      color: #fff;
      font-size: 10px;
      line-height: 1;
      font-weight: 1000;
      box-shadow: 0 3px 8px rgba(127, 29, 29, 0.3);
    }

    .tak-room-shortcut-badge[hidden] {
      display: none !important;
    }

    .tak-room-capacity-options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
    }

    .tak-room-capacity-option {
      position: relative;
    }

    .tak-room-capacity-option input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }

    .tak-room-capacity-option span {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      background: #fff;
      color: #475569;
      font-size: 14px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-room-capacity-option input:checked + span {
      border-color: #f59e0b;
      background: #fff7cc;
      color: #7c2d12;
      box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    }

    .tak-room-summary {
      padding: 12px 13px;
      border: 1px solid #fde68a;
      border-radius: 14px;
      background: #fffbeb;
    }

    .tak-room-summary strong {
      display: block;
      color: #7c2d12;
      font-size: 15px;
      line-height: 1.45;
      font-weight: 1000;
    }

    .tak-room-summary span {
      display: block;
      margin-top: 4px;
      color: #92400e;
      font-size: 12px;
      line-height: 1.5;
      font-weight: 850;
    }

    .tak-room-section {
      margin-top: 14px;
    }

    .tak-room-section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 7px;
      color: #334155;
      font-size: 13px;
      font-weight: 1000;
    }

    .tak-room-members {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .tak-room-member {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      min-height: 34px;
      padding: 6px 9px;
      border: 1px solid #dbeafe;
      border-radius: 999px;
      background: #eff6ff;
      color: #1e3a8a;
      font-size: 12px;
      font-weight: 900;
    }

    .tak-room-member.owner {
      border-color: #fde68a;
      background: #fffbeb;
      color: #92400e;
    }

    .tak-room-call-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 27px;
      padding: 4px 8px;
      border: 1px solid #16a34a;
      border-radius: 8px;
      background: #16a34a;
      color: #fff;
      font-size: 11px;
      font-weight: 1000;
      text-decoration: none;
      white-space: nowrap;
    }

    .tak-room-phone-box {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 9px;
      padding: 10px 11px;
      border: 1px solid #dbeafe;
      border-radius: 12px;
      background: #f8fbff;
    }

    .tak-room-phone-copy {
      min-width: 0;
    }

    .tak-room-phone-copy strong {
      display: block;
      color: #0f2b73;
      font-size: 12px;
      font-weight: 1000;
    }

    .tak-room-phone-copy span {
      display: block;
      margin-top: 3px;
      color: #64748b;
      font-size: 10px;
      line-height: 1.45;
      font-weight: 750;
      word-break: keep-all;
    }

    .tak-room-phone-toggle {
      flex: 0 0 auto;
      min-height: 34px;
      padding: 6px 10px;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      background: #fff;
      color: #334155;
      font-size: 11px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-room-phone-toggle.on {
      border-color: #16a34a;
      background: #ecfdf5;
      color: #047857;
    }

    .tak-room-phone-toggle:disabled {
      cursor: default;
      opacity: 0.55;
    }

    .tak-room-mini-btn {
      appearance: none;
      min-height: 28px;
      padding: 4px 8px;
      border: 1px solid #cbd5e1;
      border-radius: 8px;
      background: #fff;
      color: #475569;
      font-size: 11px;
      font-weight: 900;
      cursor: pointer;
    }

    .tak-room-mini-btn.approve {
      border-color: #2563eb;
      background: #2563eb;
      color: #fff;
    }

    .tak-room-request-list {
      display: grid;
      gap: 7px;
    }

    .tak-room-request {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 9px 10px;
      border: 1px solid #e2e8f0;
      border-radius: 11px;
      background: #f8fafc;
    }

    .tak-room-request strong {
      color: #334155;
      font-size: 12px;
      font-weight: 1000;
    }

    .tak-room-request-actions {
      display: flex;
      gap: 5px;
    }

    .tak-room-chat {
      height: 245px;
      overflow-y: auto;
      padding: 10px;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      background: #f8fafc;
    }

    .tak-room-empty {
      padding: 30px 10px;
      color: #94a3b8;
      text-align: center;
      font-size: 12px;
      font-weight: 850;
    }

    .tak-room-message {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-bottom: 9px;
    }

    .tak-room-message.mine {
      align-items: flex-end;
    }

    .tak-room-message.system {
      align-items: center;
      margin: 7px 0;
    }

    .tak-room-message-name {
      margin: 0 5px 4px;
      color: #0f2b73;
      font-size: 11px;
      font-weight: 1000;
      letter-spacing: -0.02em;
    }

    .tak-room-message.mine .tak-room-message-name {
      color: #1d4ed8;
    }

    .tak-room-message-bubble {
      max-width: 82%;
      padding: 9px 11px;
      border: 1px solid #dbe5f1;
      border-radius: 12px 12px 12px 4px;
      background: #ffffff;
      color: #111827;
      font-size: 13px;
      line-height: 1.55;
      font-weight: 800;
      word-break: break-word;
      box-shadow: 0 2px 5px rgba(15, 23, 42, 0.07);
    }

    .tak-room-message.mine .tak-room-message-bubble {
      border-color: #173b8f;
      border-radius: 12px 12px 4px 12px;
      background: #173b8f;
      color: #ffffff;
    }

    .tak-room-message.system .tak-room-message-bubble {
      max-width: 96%;
      padding: 5px 9px;
      border-radius: 999px;
      background: #e2e8f0;
      color: #64748b;
      font-size: 10px;
      font-weight: 850;
      box-shadow: none;
    }

    .tak-room-message-time {
      margin: 3px 5px 0;
      color: #64748b;
      font-size: 9px;
      font-weight: 800;
    }

    .tak-room-quick {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      margin-top: 8px;
    }

    .tak-room-quick button {
      appearance: none;
      min-height: 36px;
      padding: 6px 4px;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      background: #fff;
      color: #475569;
      font-size: 11px;
      font-weight: 900;
      cursor: pointer;
    }

    .tak-room-message-form {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 7px;
      margin-top: 8px;
    }

    .tak-room-message-form input {
      min-width: 0;
      min-height: 44px;
      padding: 9px 11px;
      border: 1px solid #cbd5e1;
      border-radius: 11px;
      font-size: 13px;
      font-weight: 750;
      outline: none;
    }

    .tak-room-message-form button {
      appearance: none;
      min-width: 62px;
      border: 1px solid #0f2b73;
      border-radius: 11px;
      background: #0f2b73;
      color: #fff;
      font-size: 13px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-room-notice {
      padding: 12px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: #f8fafc;
      color: #475569;
      font-size: 12px;
      line-height: 1.65;
      font-weight: 800;
    }


    /* V23: 현재 이용 가능한 이동수단 확인창 · 모바일 압축/스크롤/터치 보정 */
    .tak-judge-loading {
      padding: 18px 14px;
      border: 1px solid #bfdbfe;
      border-radius: 15px;
      background: #eff6ff;
      color: #1e3a8a;
      font-size: 13px;
      line-height: 1.65;
      font-weight: 900;
      text-align: center;
    }

    .tak-judge-mode-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      margin-bottom: 12px;
    }

    .tak-judge-mode-btn {
      appearance: none;
      min-height: 44px;
      padding: 9px 10px;
      border: 1px solid #cbd5e1;
      border-radius: 12px;
      background: #fff;
      color: #475569;
      font-size: 13px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-judge-mode-btn.active {
      border-color: #0f2b73;
      background: #0f2b73;
      color: #fff;
      box-shadow: 0 0 0 3px rgba(15, 43, 115, 0.12);
    }

    .tak-judge-summary {
      margin-bottom: 10px;
      padding: 12px 13px;
      border: 1px solid #bfdbfe;
      border-radius: 14px;
      background: #eff6ff;
      color: #1e3a8a;
    }

    .tak-judge-summary strong {
      display: block;
      font-size: 15px;
      line-height: 1.45;
      font-weight: 1000;
    }

    .tak-judge-summary span {
      display: block;
      margin-top: 3px;
      color: #475569;
      font-size: 11px;
      line-height: 1.55;
      font-weight: 800;
    }

    .tak-judge-list {
      position: relative;
      z-index: 2;
      display: grid;
      gap: 7px;
      max-height: 306px;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 1px 3px 2px 1px;
      overscroll-behavior: contain;
      touch-action: pan-y;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
    }

    .tak-judge-card {
      position: relative;
      z-index: 2;
      padding: 9px 10px;
      border: 1px solid #dbe5f1;
      border-radius: 13px;
      background: #fff;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    }

    .tak-judge-card-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .tak-judge-kind {
      display: inline-flex;
      align-items: center;
      min-height: 23px;
      padding: 4px 8px;
      border-radius: 999px;
      background: #e0ecff;
      color: #0f2b73;
      font-size: 10px;
      line-height: 1;
      font-weight: 1000;
      white-space: nowrap;
    }

    .tak-judge-card h3 {
      margin: 0;
      color: #111827;
      font-size: 14px;
      line-height: 1.3;
      font-weight: 1000;
      letter-spacing: -0.025em;
    }

    .tak-judge-status {
      margin-top: 3px;
      color: #166534;
      font-size: 11px;
      line-height: 1.35;
      font-weight: 1000;
    }

    .tak-judge-status.upcoming { color: #854d0e; }
    .tak-judge-status.reference { color: #475569; }

    .tak-judge-route {
      margin-top: 2px;
      color: #64748b;
      font-size: 10px;
      line-height: 1.35;
      font-weight: 800;
      word-break: keep-all;
    }

    .tak-judge-actions {
      position: relative;
      z-index: 6;
      display: grid;
      grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
      gap: 6px;
      margin-top: 7px;
      pointer-events: auto;
    }

    .tak-judge-action {
      appearance: none;
      position: relative;
      z-index: 7;
      min-height: 34px;
      padding: 6px 7px;
      border-radius: 10px;
      font-size: 11px;
      line-height: 1.15;
      font-weight: 1000;
      cursor: pointer;
      pointer-events: auto;
      touch-action: manipulation;
      -webkit-tap-highlight-color: transparent;
    }

    .tak-judge-action.map {
      border: 1px solid #cbd5e1;
      background: #fff;
      color: #334155;
    }

    .tak-judge-action.route {
      border: 1px solid #0f2b73;
      background: #0f2b73;
      color: #fff;
    }

    .tak-judge-scroll-hint {
      margin: 6px 2px 0;
      color: #64748b;
      font-size: 10px;
      line-height: 1.4;
      font-weight: 850;
      text-align: center;
    }

    .tak-sheet-backdrop.transport-judge-mode .tak-sheet {
      display: flex;
      flex-direction: column;
      width: min(100%, 620px);
      max-height: min(88dvh, 700px);
      overflow: hidden;
    }

    .tak-sheet-backdrop.transport-judge-mode #takSheetContent {
      min-height: 0;
      overflow: hidden;
      touch-action: pan-y;
    }

    .tak-judge-notice {
      margin-top: 12px;
      padding: 11px 12px;
      border: 1px solid #fde68a;
      border-radius: 13px;
      background: #fffbeb;
      color: #7c5200;
      font-size: 11px;
      line-height: 1.65;
      font-weight: 850;
      word-break: keep-all;
    }

    .tak-judge-empty {
      padding: 16px 13px;
      border: 1px solid #e2e8f0;
      border-radius: 14px;
      background: #f8fafc;
      color: #475569;
      font-size: 13px;
      line-height: 1.65;
      font-weight: 850;
      text-align: center;
    }

    @media (max-width: 760px) {
      .tak-sheet-backdrop.transport-judge-mode .tak-sheet {
        height: min(90dvh, 680px);
        max-height: min(90dvh, 680px);
        padding: 12px 10px calc(12px + var(--tak-safe-bottom));
      }

      .tak-sheet-backdrop.transport-judge-mode .tak-sheet-head {
        margin-bottom: 9px;
      }

      .tak-sheet-backdrop.transport-judge-mode .tak-sheet-head h2 {
        font-size: 18px;
      }

      .tak-judge-mode-grid {
        gap: 6px;
        margin-bottom: 8px;
      }

      .tak-judge-mode-btn {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 12px;
        touch-action: manipulation;
      }

      .tak-judge-summary {
        margin-bottom: 7px;
        padding: 8px 10px;
      }

      .tak-judge-summary strong {
        font-size: 13px;
      }

      .tak-judge-summary span {
        font-size: 10px;
      }

      .tak-judge-list {
        max-height: 282px;
      }

      .tak-judge-notice {
        margin-top: 8px;
        padding: 8px 9px;
        font-size: 10px;
        line-height: 1.5;
      }
    }



    .tak-subway-realtime-list {
      display: grid;
      gap: 11px;
    }

    .tak-subway-realtime-card {
      padding: 14px;
      border: 1px solid #bfdbfe;
      border-radius: 16px;
      background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
      box-shadow: 0 6px 16px rgba(15, 43, 115, 0.06);
    }

    .tak-subway-realtime-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 10px;
    }

    .tak-subway-realtime-line {
      color: #0637b8;
      font-size: 20px;
      line-height: 1.2;
      font-weight: 1000;
      letter-spacing: -0.04em;
    }

    .tak-subway-realtime-direction {
      margin-top: 3px;
      color: #111827;
      font-size: 13px;
      line-height: 1.4;
      font-weight: 950;
    }

    .tak-subway-arrival-destination {
      color: #0f2b73;
      font-size: 13px;
      font-weight: 1000;
    }

    .tak-subway-last-badge {
      display: inline-flex;
      align-items: center;
      min-height: 22px;
      margin-left: 5px;
      padding: 3px 7px;
      border-radius: 999px;
      background: #fff1f2;
      color: #be123c;
      font-size: 9px;
      font-weight: 1000;
      vertical-align: middle;
    }

    .tak-subway-refresh-row {
      display: flex;
      justify-content: flex-end;
      margin-top: 10px;
    }

    .tak-subway-refresh-btn {
      appearance: none;
      min-height: 35px;
      padding: 7px 12px;
      border: 1px solid #93c5fd;
      border-radius: 10px;
      background: #eff6ff;
      color: #0f2b73;
      font-size: 11px;
      font-weight: 1000;
      cursor: pointer;
    }

    .tak-subway-refresh-btn:disabled {
      border-color: #dbe5f1;
      background: #f8fafc;
      color: #94a3b8;
      cursor: not-allowed;
    }
