:root {
  --tw-bg: #f4f6f1;
  --tw-bg-alt: #eef3f2;
  --tw-surface: #ffffff;
  --tw-surface-soft: #faf7ef;
  --tw-line: #dfe7df;
  --tw-line-soft: #edf1ea;
  --tw-ink: #1f2a37;
  --tw-ink-soft: #4a5663;
  --tw-ink-mute: #7a8274;
  --tw-primary: #1f6f78;
  --tw-primary-ink: #114951;
  --tw-primary-bg: #ddeef0;
  --tw-accent: #c44a2c;
  --tw-accent-bg: #fbe4dc;
  --tw-gold: #b9871a;
  --tw-gold-bg: #f5e8c8;
  --tw-good: #2f7d4f;
  --tw-good-bg: #dceedd;
  --tw-warn: #a86f16;
  --tw-warn-bg: #f4e6c8;
  --tw-bad: #9f4a3a;
  --tw-bad-bg: #f3ddd6;
  --tw-font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  --tw-font-num: "Helvetica Neue", "Hiragino Sans", system-ui, sans-serif;
}

html,
body.tokka-watch-body {
  margin: 0;
  padding: 0;
}

body.tokka-watch-body {
  min-height: 100vh;
  background: var(--tw-bg);
  color: var(--tw-ink);
  font-family: var(--tw-font-jp);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.tokka-watch-body * {
  box-sizing: border-box;
  letter-spacing: 0;
}

body.tokka-watch-body a {
  color: inherit;
  text-decoration: none;
}

body.tokka-watch-body h1,
body.tokka-watch-body h2,
body.tokka-watch-body h3,
body.tokka-watch-body p {
  margin: 0;
}

body.tokka-watch-body button,
body.tokka-watch-body input,
body.tokka-watch-body select {
  font: inherit;
}

body.tokka-watch-body button {
  cursor: pointer;
}

.tw-num {
  font-family: var(--tw-font-num);
  font-variant-numeric: tabular-nums;
}

.tw-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.twSeoFaq {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(31, 42, 55, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.twSeoFaq h2 {
  font-size: 18px;
  line-height: 1.35;
  color: var(--tw-ink);
}

.twSeoFaq-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.twSeoFaq-item {
  border: 1px solid var(--tw-line-soft);
  border-radius: 8px;
  background: #fff;
}

.twSeoFaq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--tw-ink);
  font-weight: 800;
  cursor: pointer;
}

.twSeoFaq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--tw-primary);
  font-size: 18px;
  line-height: 1;
}

.twSeoFaq-item[open] summary::after {
  content: "-";
}

.twSeoFaq-item p {
  padding: 0 14px 14px;
  color: var(--tw-ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.twCategoryHero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(31, 42, 55, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.twCategoryHero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--tw-primary-bg);
  color: var(--tw-primary-ink);
  font-size: 11px;
  font-weight: 800;
}

.twCategoryHero h1 {
  margin-top: 8px;
  color: var(--tw-ink);
  font-size: 24px;
  line-height: 1.25;
}

.twCategoryHero p {
  margin-top: 8px;
  max-width: 760px;
  color: var(--tw-ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.twCategoryLinks {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
}

.twCategoryLinks-label {
  flex: 0 0 auto;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
}

.twCategoryLinks-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
}

.twCategoryLinks-link:hover,
.twCategoryLinks-link.is-active {
  border-color: rgba(79, 158, 255, 0.42);
  background: rgba(79, 158, 255, 0.12);
  color: var(--accent);
}

.twProductCrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 700;
}

.twProductCrumbs a {
  color: var(--accent);
}

.twProductCrumbs span:last-child {
  color: var(--ink-2);
}

.tw-app {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(31, 111, 120, 0.08), rgba(244, 246, 241, 0) 260px),
    var(--tw-bg);
  display: flex;
  flex-direction: column;
}

.tw-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.tw-sister {
  background: var(--tw-primary-ink);
  color: #fff;
  font-size: 12px;
}

.tw-sister__row {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tw-sister__chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.tw-sister__link {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tw-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--tw-line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}

.tw-header__row {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tw-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-right: auto;
}

.tw-header__logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--tw-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.tw-header__logo .dashicons {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

.tw-header__title {
  display: grid;
  min-width: 0;
}

.tw-header__name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.tw-header__tag {
  color: var(--tw-ink-mute);
  font-size: 11px;
  white-space: nowrap;
}

.tw-header__nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.tw-header__nav-link,
.tw-header__login {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--tw-ink-soft);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tw-header__nav-link.is-active,
.tw-header__nav-link:hover,
.tw-header__login:hover {
  background: var(--tw-primary-bg);
  color: var(--tw-primary-ink);
}

.tw-header__login {
  border: 1px solid var(--tw-line);
  background: var(--tw-surface);
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tw-pageHead {
  padding: 34px 0 22px;
}

.tw-pageHead--compact {
  padding: 28px 0 18px;
}

.tw-pageHead__title {
  max-width: 760px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.tw-pageHead__title em {
  color: var(--tw-primary);
  font-style: normal;
}

.tw-pageHead__sub {
  max-width: 760px;
  margin-top: 12px;
  color: var(--tw-ink-soft);
  font-size: 15px;
}

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

.tw-stat__card {
  min-height: 94px;
  border: 1px solid var(--tw-line);
  border-radius: 8px;
  background: var(--tw-surface);
  padding: 14px;
  box-shadow: 0 8px 24px rgba(31, 42, 55, 0.06);
}

.tw-stat__label {
  color: var(--tw-ink-mute);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tw-stat__value {
  margin-top: 8px;
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
}

.tw-stat__value--date {
  font-size: 18px;
  line-height: 1.15;
}

.tw-stat__hint {
  margin-top: 6px;
  color: var(--tw-ink-mute);
  font-size: 12px;
}

.tw-main {
  flex: 1;
  padding-bottom: 32px;
}

.tw-toolbar {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
}

.tw-toolbar--mypage {
  align-items: center;
}

.tw-search {
  height: 46px;
  border: 1px solid var(--tw-line);
  border-radius: 8px;
  background: var(--tw-surface);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.tw-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--tw-ink);
}

.tw-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.tw-tabs__btn {
  min-height: 38px;
  border: 1px solid var(--tw-line);
  border-radius: 999px;
  background: var(--tw-surface);
  color: var(--tw-ink-soft);
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tw-tabs__btn span {
  color: var(--tw-ink-mute);
  font-size: 11px;
}

.tw-tabs__btn--active,
.tw-tabs__btn:hover {
  border-color: var(--tw-primary);
  background: var(--tw-primary-bg);
  color: var(--tw-primary-ink);
}

.tw-section {
  margin-top: 22px;
}

.tw-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tw-section__title {
  min-width: 0;
  color: var(--tw-ink);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tw-section__count {
  color: var(--tw-ink-mute);
  font-size: 12px;
  font-weight: 800;
}

.tw-section__link {
  color: var(--tw-primary);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tw-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.tw-card,
.tw-fav,
.tw-log,
.tw-empty,
.tw-settings {
  border: 1px solid var(--tw-line);
  border-radius: 8px;
  background: var(--tw-surface);
  box-shadow: 0 8px 24px rgba(31, 42, 55, 0.06);
}

.tw-card {
  padding: 12px;
}

.tw-card.is-hidden {
  display: none;
}

.tw-card__top {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tw-img {
  width: 92px;
  height: 92px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31, 111, 120, 0.18), rgba(185, 135, 26, 0.16)),
    var(--tw-bg-alt);
  display: grid;
  place-items: center;
  color: var(--tw-primary-ink);
  border: 1px solid var(--tw-line-soft);
  flex: 0 0 auto;
}

.tw-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tw-img__ph {
  width: 32px;
  height: 32px;
  font-size: 32px;
  z-index: 1;
}

.tw-img__label {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  min-height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--tw-primary-ink);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
  padding: 2px 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tw-img__rank {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--tw-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tw-card__head {
  min-width: 0;
}

.tw-card__cat,
.tw-fav__cat {
  color: var(--tw-ink-mute);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.tw-card__name,
.tw-fav__name {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.tw-card__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.tw-badge {
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 900;
}

.tw-badge--good {
  background: var(--tw-good-bg);
  color: var(--tw-good);
}

.tw-badge--warn {
  background: var(--tw-warn-bg);
  color: var(--tw-warn);
}

.tw-badge--bad {
  background: var(--tw-bad-bg);
  color: var(--tw-bad);
}

.tw-badge--ghost {
  background: var(--tw-bg-alt);
  color: var(--tw-ink-soft);
}

.tw-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

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

.tw-price,
.tw-compare__cell {
  min-width: 0;
  border: 1px solid var(--tw-line-soft);
  border-radius: 8px;
  background: var(--tw-surface-soft);
  padding: 10px;
}

.tw-price__head,
.tw-compare__label,
.tw-card__meta {
  color: var(--tw-ink-mute);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tw-price__head {
  justify-content: space-between;
}

.tw-price__brand {
  color: var(--tw-ink-soft);
}

.tw-price__val,
.tw-compare__val {
  display: block;
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.tw-price__val--note {
  color: var(--tw-ink-soft);
  font-size: 13px;
}

.tw-price__meta {
  margin-top: 6px;
  color: var(--tw-ink-mute);
  font-size: 11px;
  font-weight: 700;
}

.tw-linkBtn {
  min-height: 34px;
  margin-top: 8px;
  border-radius: 8px;
  background: var(--tw-primary);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.tw-adNote {
  margin-top: 5px;
  color: var(--tw-ink-mute);
  font-size: 12px;
  line-height: 1.45;
}

.tw-compare__val--pos {
  color: var(--tw-good);
}

.tw-compare__val--neg {
  color: var(--tw-bad);
}

.tw-card__meta {
  margin-top: 10px;
}

.tw-card__actions {
  margin-top: 12px;
}

.tw-offers,
.tw-buyback {
  margin-top: 12px;
  border: 1px solid var(--tw-line-soft);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.tw-offers__head,
.tw-buyback__head,
.tw-alert-form__head {
  min-height: 38px;
  padding: 10px;
  background: var(--tw-bg-alt);
  color: var(--tw-ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
}

.tw-offers__head strong,
.tw-buyback__head strong,
.tw-alert-form__head strong {
  color: var(--tw-ink);
}

.tw-offers__head span:last-child,
.tw-buyback__head span:last-child,
.tw-alert-form__head span:last-child {
  color: var(--tw-ink-mute);
  font-weight: 700;
}

.tw-offers__list {
  display: grid;
}

.tw-offerRow {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-top: 1px solid var(--tw-line-soft);
}

.tw-offerRow__rank {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--tw-primary-bg);
  color: var(--tw-primary-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.tw-offerRow__body {
  min-width: 0;
}

.tw-offerRow__name {
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tw-offerRow__meta {
  color: var(--tw-ink-mute);
  font-size: 11px;
  font-weight: 700;
}

.tw-offerRow__price {
  font-size: 14px;
  font-weight: 900;
}

.tw-offerRow__link {
  min-height: 30px;
  border: 1px solid var(--tw-line);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--tw-primary);
  font-size: 12px;
  font-weight: 900;
}

.tw-buyback__grid {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.tw-buybackBuyer {
  border: 1px solid var(--tw-line-soft);
  border-radius: 8px;
  overflow: hidden;
}

.tw-buybackBuyer__name {
  padding: 8px 10px;
  background: var(--tw-surface-soft);
  font-size: 12px;
  font-weight: 900;
}

.tw-buybackRow {
  display: grid;
  grid-template-columns: 72px auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-top: 1px solid var(--tw-line-soft);
  color: var(--tw-ink-soft);
  font-size: 12px;
}

.tw-buybackRow strong {
  color: var(--tw-ink);
  font-size: 13px;
}

.tw-buybackRow em {
  color: var(--tw-ink-mute);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tw-watch-form,
.tw-fav__form {
  display: grid;
  gap: 8px;
}

.tw-alert-form {
  border: 1px solid var(--tw-line-soft);
  border-radius: 8px;
  background: var(--tw-surface-soft);
  overflow: hidden;
  padding: 0 10px 10px;
}

.tw-alert-form__head {
  margin: 0 -10px 10px;
}

.tw-alert-form__email,
.tw-alert-form__numbers {
  min-width: 0;
}

.tw-alert-form__checks,
.tw-alert-form__numbers {
  display: grid;
  gap: 8px;
}

.tw-alert-form__checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tw-alert-form__email strong,
.tw-alert-form__login {
  color: var(--tw-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tw-alert-form__note {
  margin: 0;
  color: var(--tw-ink-mute);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.tw-watch-form label,
.tw-fav__form label {
  display: grid;
  gap: 4px;
  color: var(--tw-ink-mute);
  font-size: 11px;
  font-weight: 800;
}

.tw-watch-form input,
.tw-fav__form input,
.tw-fav__form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--tw-line);
  border-radius: 8px;
  background: #fff;
  color: var(--tw-ink);
  padding: 8px 10px;
}

.tw-btn {
  min-height: 40px;
  border: 1px solid var(--tw-line);
  border-radius: 8px;
  background: var(--tw-surface);
  color: var(--tw-ink-soft);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tw-btn--primary {
  border-color: var(--tw-primary);
  background: var(--tw-primary);
  color: #fff;
}

.tw-btn--lg {
  min-width: 180px;
  margin-top: 18px;
}

.tw-empty {
  padding: 22px;
}

.tw-empty h2 {
  font-size: 18px;
  font-weight: 900;
}

.tw-empty p {
  margin-top: 6px;
  color: var(--tw-ink-soft);
}

.tw-logList,
.tw-favList {
  display: grid;
  gap: 10px;
}

.tw-log {
  padding: 12px;
}

.tw-log__top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--tw-ink-mute);
  font-size: 12px;
  font-weight: 800;
}

.tw-log__dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--tw-ink-mute);
}

.tw-log__dot--good {
  background: var(--tw-good);
}

.tw-log__msg {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 900;
}

.tw-log__detail {
  margin-top: 4px;
  color: var(--tw-ink-soft);
  font-size: 13px;
}

.tw-fav {
  padding: 12px;
}

.tw-fav__top {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tw-fav .tw-img {
  width: 76px;
  height: 76px;
}

.tw-fav__body {
  min-width: 0;
}

.tw-fav__form {
  margin-top: 12px;
}

.tw-check {
  display: flex !important;
  align-items: center;
  grid-template-columns: none !important;
  gap: 8px !important;
  min-height: 40px;
  color: var(--tw-ink-soft) !important;
}

.tw-check input {
  width: 18px !important;
  min-height: 18px !important;
  padding: 0 !important;
}

.tw-fav__spread {
  min-height: 40px;
  border-radius: 8px;
  background: var(--tw-bg-alt);
  color: var(--tw-ink-soft);
  padding: 10px;
  font-size: 13px;
  font-weight: 900;
}

.tw-settings {
  display: grid;
  overflow: hidden;
}

.tw-setting {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--tw-line-soft);
}

.tw-setting:last-child {
  border-bottom: 0;
}

.tw-setting span {
  color: var(--tw-ink-soft);
}

.tw-setting strong {
  color: var(--tw-primary-ink);
}

.tw-setting--note {
  align-items: flex-start;
  justify-content: flex-start;
}

.tw-setting--note span {
  color: var(--tw-ink-mute);
  line-height: 1.55;
}

.tokka-watch-notice {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 14px auto;
  border-left: 4px solid var(--tw-primary);
  border-radius: 8px;
  background: var(--tw-primary-bg);
  color: var(--tw-primary-ink);
  padding: 12px 14px;
  font-weight: 800;
}

.tw-footer {
  margin-top: auto;
  border-top: 1px solid var(--tw-line);
  background: var(--tw-primary-ink);
  color: #fff;
  padding: 28px 0 86px;
}

.tw-footer__grid {
  display: grid;
  gap: 18px;
}

.tw-footer__brand {
  font-size: 18px;
  font-weight: 900;
}

.tw-footer__desc,
.tw-footer__copy,
.tw-footer__list {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.tw-footer__desc {
  margin-top: 6px;
}

.tw-footer__h {
  font-size: 14px;
  font-weight: 900;
}

.tw-footer__list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.tw-footer__copy {
  margin-top: 18px;
}

.tw-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  border-top: 1px solid var(--tw-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.tw-bottom__row {
  height: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.tw-bottom__btn {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: var(--tw-ink-mute);
  font-size: 11px;
  font-weight: 900;
}

.tw-bottom__btn.is-active {
  color: var(--tw-primary);
}

@media (min-width: 700px) {
  .tw-container {
    padding: 0 24px;
  }

  .tw-header__nav {
    display: flex;
  }

  .tw-pageHead {
    padding: 46px 0 28px;
  }

  .tw-pageHead__title {
    font-size: 40px;
  }

  .tw-stat {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tw-toolbar {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    align-items: center;
  }

  .tw-toolbar--mypage {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tw-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tw-card {
    padding: 14px;
  }

  .tw-card__top {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .tw-img {
    width: 112px;
    height: 112px;
  }

  .tw-watch-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
  }

  .tw-alert-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tw-alert-form__numbers {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tw-alert-form__checks {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tw-buyback__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tw-fav__form {
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) 108px minmax(112px, 140px) minmax(122px, 1fr) 92px;
    align-items: end;
  }

  .tw-footer {
    padding-bottom: 34px;
  }

  .tw-footer__grid {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .tw-bottom {
    display: none;
  }
}

@media (min-width: 1040px) {
  .tw-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .tw-header__tag {
    display: none;
  }

  .tw-header__login {
    display: none;
  }

  .tw-pageHead__title {
    font-size: 27px;
  }

  .tw-prices,
  .tw-compare {
    grid-template-columns: 1fr;
  }

  .tw-offerRow {
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .tw-offerRow__link {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .tw-buybackRow {
    grid-template-columns: 64px auto;
  }

  .tw-buybackRow em {
    grid-column: 1 / -1;
  }
}

/* Design v2: Keepa / CamelCamelCamel style chart dashboard */
body.tokka-watch-body:has(.tw-v2) {
  background: #0e1116;
  overflow: hidden;
}

.tw-app:has(.tw-v2) {
  background: #0e1116;
  min-height: 100vh;
  overflow: hidden;
}

body.tokka-watch-body:has(.twSupport-page) {
  overflow: auto;
}

.tw-app:has(.twSupport-page) {
  overflow: visible;
}

.tw-v2.designA {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1c2128;
  --surface-3: #22272e;
  --border: #2d333b;
  --border-strong: #444c56;
  --ink: #e6edf3;
  --ink-2: #adbac7;
  --ink-3: #768390;
  --ink-4: #545d68;
  --accent: #4f9eff;
  --accent-soft: #1f3a5f;
  --good: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  --apple: #adbac7;
  --rakuten: #f85149;
  --amazon: #d29922;
  --buyback: #4f9eff;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "palt";
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.tw-v2 *,
.tw-v2 *::before,
.tw-v2 *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.tw-v2 a {
  color: inherit;
  text-decoration: none;
}

.tw-v2 button,
.tw-v2 input {
  font: inherit;
}

.tw-v2 button {
  cursor: pointer;
}

.dA-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: 52px 36px minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

.dA-hdr {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.dA-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dA-brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.dA-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 18px;
  min-width: 0;
}

.dA-tab {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.dA-tab:hover,
.dA-tab.on {
  color: var(--ink);
  background: var(--surface-2);
}

.dA-tab span {
  opacity: 0.6;
  margin-left: 3px;
}

.dA-hdr-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dA-mobile-icons {
  display: none;
}

.dA-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  display: inline-block;
  margin-right: 5px;
  box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.4);
  animation: dA-pulse 1.8s infinite;
}

.dA-hdr-status.is-warn .dA-status-dot,
.dA-monitor.is-warn .dA-monitor-dot {
  background: var(--warn);
  animation: none;
}

.dA-hdr-status.is-stale .dA-status-dot,
.dA-hdr-status.is-unknown .dA-status-dot,
.dA-monitor.is-stale .dA-monitor-dot,
.dA-monitor.is-unknown .dA-monitor-dot {
  background: var(--bad);
  animation: none;
}

.dA-monitor {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 36px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.96);
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
}

.dA-monitor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  flex: 0 0 auto;
}

.dA-monitor span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes dA-pulse {
  70% { box-shadow: 0 0 0 8px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.dA-btn {
  min-height: 32px;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.dA-btn:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.dA-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.dA-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dA-side-hdr {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  z-index: 1;
}

.dA-search {
  position: relative;
  display: block;
}

.dA-search span {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 14px;
}

.dA-search input {
  width: 100%;
  height: 32px;
  padding: 7px 10px 7px 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
}

.dA-search input:focus {
  border-color: var(--accent);
}

.dA-search input::placeholder {
  color: var(--ink-4);
}

.dA-cat-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.dA-cat-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 500;
}

.dA-cat-chip.on {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

.dA-cat-chip .ct {
  color: var(--ink-4);
  margin-left: 4px;
  font-size: 10px;
}

.dA-side-list {
  flex: 1;
  overflow-y: auto;
}

.dA-side-list::-webkit-scrollbar,
.dA-main::-webkit-scrollbar {
  width: 10px;
}

.dA-side-list::-webkit-scrollbar-thumb,
.dA-main::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
  border: 2px solid var(--surface);
}

.dA-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background .1s;
}

.dA-row:hover {
  background: var(--surface-2);
}

.dA-row.sel {
  background: var(--surface-3);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.dA-row.is-hidden {
  display: none;
}

.tw-product-thumb {
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.tw-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tw-product-thumb__ph {
  color: #768390;
  font-size: 19px;
}

.dA-thumb,
.twMp-thumb {
  width: 40px;
  height: 40px;
}

.dA-row-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
}

.dA-row-dot.buy {
  background: var(--good);
}

.dA-row-dot.wait {
  background: var(--warn);
}

.dA-row-mid {
  min-width: 0;
  display: grid;
}

.dA-row-name {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dA-row-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 10.5px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dA-row-end {
  text-align: right;
  display: grid;
  gap: 1px;
}

.dA-row-profit,
.dA-row-price,
.dA-store-price,
.dA-bb-price,
.dA-stat .val {
  font-family: "Inter", "Helvetica Neue", monospace;
  font-variant-numeric: tabular-nums;
}

.dA-row-profit {
  font-size: 12px;
  font-weight: 700;
}

.dA-row-profit.pos {
  color: var(--good);
}

.dA-row-profit.neg,
.dA-row-price {
  color: var(--ink-3);
}

.dA-row-price {
  font-size: 10.5px;
}

.dA-main {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px 60px;
  background: var(--bg);
}

.dA-detail-panel {
  display: none;
  min-width: 0;
}

.dA-detail-panel.is-active {
  display: block;
}

.dA-detail-hdr {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.dA-detail-hdr > div:first-child {
  min-width: 0;
  flex: 1;
}

.dA-detail-titleBlock {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dA-detail-thumb {
  width: 74px;
  height: 74px;
  padding: 7px;
}

.dA-detail-copy {
  min-width: 0;
}

.dA-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 11.5px;
  margin-bottom: 6px;
}

.dA-detail-cat {
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
}

.dA-status-label {
  font-weight: 600;
}

.dA-status-label.buy {
  color: var(--good);
}

.dA-status-label.wait {
  color: var(--warn);
}

.dA-detail-name {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.dA-detail-color {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
}

.dA-detail-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.dA-mobile-profit-row {
  display: none;
}

.dA-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.dA-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dA-stat .lbl {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.dA-stat .lbl .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dA-stat .val {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.dA-stat.profit .val.pos {
  color: var(--good);
}

.dA-stat.profit .val.neg {
  color: var(--ink-2);
}

.dA-stat .sub {
  color: var(--ink-4);
  font-size: 11px;
}

.dA-stat .delta {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-family: "Inter", monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.dA-stat .delta.pos {
  background: rgba(63, 185, 80, 0.15);
  color: var(--good);
}

.dA-stat .delta.neg {
  background: rgba(248, 81, 73, 0.15);
  color: var(--bad);
}

.dA-stat .delta.flat {
  background: var(--surface-2);
  color: var(--ink-3);
}

.dA-chart-card,
.dA-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.dA-chart-card {
  padding: 18px;
  margin-bottom: 20px;
  min-width: 0;
  overflow: hidden;
}

.dA-chart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.dA-chart-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dA-chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.dA-chart-legend-mobile {
  display: none;
}

.dA-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-2);
  font-size: 11px;
}

.dA-legend-item .swatch {
  width: 11px;
  height: 2px;
  border-radius: 1px;
}

.dA-chart-range {
  display: flex;
  gap: 2px;
}

.dA-chart-range button {
  padding: 4px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
}

.dA-chart-range button.on {
  background: var(--surface-3);
  color: var(--ink);
}

.dA-chart-svg {
  width: 100%;
  height: 280px;
  display: block;
}

.dA-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.dA-panel {
  overflow: hidden;
}

.dA-panel-hdr {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dA-panel-hdr .ct {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 500;
}

.dA-panel-body {
  padding: 8px 0;
}

.dA-store {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.dA-store:last-child {
  border-bottom: none;
}

.dA-store:hover {
  background: var(--surface-2);
}

.dA-store-rank {
  color: var(--ink-3);
  text-align: center;
  font-size: 11px;
}

.dA-store-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.dA-store-meta {
  display: block;
  margin-top: 1px;
  color: var(--ink-4);
  font-size: 10.5px;
}

.dA-store-stock {
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
}

.dA-store-stock.in {
  background: rgba(63, 185, 80, 0.15);
  color: var(--good);
}

.dA-store-stock.out {
  background: var(--surface-2);
  color: var(--ink-3);
}

.dA-store-price {
  font-weight: 600;
  white-space: nowrap;
}

.dA-bb-row {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.dA-bb-row:last-child {
  border-bottom: none;
}

.dA-bb-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.dA-bb-shop {
  font-size: 12px;
  font-weight: 600;
}

.dA-bb-note {
  margin-left: 6px;
  color: var(--ink-3);
  font-size: 10.5px;
}

.dA-bb-price {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.dA-bb-spark {
  height: 22px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.dA-bb-spark .bar {
  flex: 1;
  background: var(--accent-soft);
  border-radius: 1px;
}

.dA-bb-spark .bar.last {
  background: var(--accent);
}

.dA-empty-line {
  padding: 16px;
  color: var(--ink-3);
  font-size: 12px;
}

.dA-alert-form {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px auto;
  gap: 8px;
}

.dA-alert-form[hidden] {
  display: none;
}

.dA-alert-form input {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 7px 10px;
  outline: none;
}

.dA-alert-destination {
  min-height: 34px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  padding: 7px 10px;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dA-alert-note {
  grid-column: 1 / -1;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
}

.mobA-tab-bar {
  display: none;
}

body.tokka-watch-body:has(.twIphone) {
  background: #0f141b;
}

.tw-app:has(.twIphone) {
  min-height: 100vh;
  background: #0f141b;
}

.twIphone {
  --ip-bg: #0f141b;
  --ip-panel: #151b23;
  --ip-panel-2: #1b222c;
  --ip-line: #2d3642;
  --ip-line-soft: rgba(255, 255, 255, 0.07);
  --ip-ink: #eef4fb;
  --ip-ink-2: #afbac7;
  --ip-ink-3: #7d8997;
  --ip-blue: #5aa2ff;
  --ip-green: #4fd37a;
  --ip-red: #ff6b6b;
  --ip-yellow: #f2c94c;
  min-height: 100vh;
  padding: 18px;
  background: var(--ip-bg);
  color: var(--ip-ink);
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.twIphone *,
.twIphone *::before,
.twIphone *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.twIphone a {
  color: inherit;
  text-decoration: none;
}

.twIphone-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto 16px;
}

.twIphone-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ip-ink-2);
  font-size: 13px;
  font-weight: 800;
}

.twIphone-brand span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--ip-blue);
  color: #fff;
  display: grid;
  place-items: center;
}

.twIphone h1 {
  margin: 12px 0 4px;
  color: var(--ip-ink);
  font-size: 28px;
  line-height: 1.18;
}

.twIphone p {
  margin: 0;
  color: var(--ip-ink-2);
  font-size: 13px;
}

.twIphone-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.twIphone-nav a,
.twIphone-chips button {
  min-height: 34px;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  background: var(--ip-panel);
  color: var(--ip-ink-2);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.twIphone-nav a:hover,
.twIphone-chips button:hover,
.twIphone-chips button.is-active {
  border-color: rgba(90, 162, 255, 0.6);
  background: rgba(90, 162, 255, 0.12);
  color: var(--ip-ink);
}

.twIphone-summary {
  max-width: 1440px;
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.twIphone-summary div {
  min-height: 74px;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  background: var(--ip-panel);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.twIphone-summary span,
.twIphone-summary small {
  color: var(--ip-ink-3);
  font-size: 12px;
  font-weight: 800;
}

.twIphone-summary strong {
  color: var(--ip-ink);
  font-size: 22px;
  line-height: 1.1;
}

.twIphone-tools {
  max-width: 1440px;
  margin: 0 auto 10px;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.twIphone-search {
  display: grid;
  gap: 6px;
  color: var(--ip-ink-3);
  font-size: 12px;
  font-weight: 800;
}

.twIphone-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  background: var(--ip-panel);
  color: var(--ip-ink);
  padding: 9px 11px;
  outline: none;
}

.twIphone-search input:focus {
  border-color: var(--ip-blue);
}

.twIphone-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.twIphone-chips span {
  color: var(--ip-ink-3);
  margin-left: 4px;
}

.twIphone-note {
  max-width: 1440px;
  margin: 0 auto 10px;
  border: 1px solid rgba(242, 201, 76, 0.26);
  border-radius: 8px;
  background: rgba(242, 201, 76, 0.08);
  color: var(--ip-ink-2);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
}

.twIphone-note strong {
  color: var(--ip-yellow);
}

.twIphone-tableWrap {
  max-width: 1440px;
  margin: 0 auto;
  border: 1px solid var(--ip-line);
  border-radius: 8px;
  background: var(--ip-panel);
  overflow-x: auto;
  overflow-y: hidden;
}

.twIphone-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}

.twIphone-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111821;
  color: var(--ip-ink-3);
  padding: 10px 9px;
  border-bottom: 1px solid var(--ip-line);
  text-align: right;
  white-space: nowrap;
  font-weight: 900;
}

.twIphone-table th:first-child,
.twIphone-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  background: var(--ip-panel);
}

.twIphone-table th:first-child {
  z-index: 3;
  background: #111821;
}

.twIphone-table td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--ip-line-soft);
  color: var(--ip-ink-2);
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}

.twIphone-table tr:hover td,
.twIphone-table tr:hover td:first-child {
  background: var(--ip-panel-2);
}

.twIphone-product {
  min-width: 190px;
}

.twIphone-product strong,
.twIphone-product span,
.twIphone-max span {
  display: block;
}

.twIphone-product strong {
  color: var(--ip-ink);
  font-size: 13px;
}

.twIphone-product span,
.twIphone-date,
.twIphone-max span,
.twIphone-muted {
  color: var(--ip-ink-3);
  font-size: 11px;
}

.twIphone-price {
  color: var(--ip-ink);
  font-weight: 900;
}

a.twIphone-price {
  color: var(--ip-blue);
}

.twIphone-price.is-muted {
  color: var(--ip-ink-3);
}

.twIphone-max .twIphone-price {
  color: var(--ip-green);
}

.twIphone-table .is-plus {
  color: var(--ip-green);
  font-weight: 900;
}

.twIphone-table .is-minus {
  color: var(--ip-red);
  font-weight: 900;
}

.twIphone-table .is-flat {
  color: var(--ip-ink-3);
  font-weight: 800;
}

.twIphone-empty {
  padding: 34px !important;
  text-align: center !important;
  color: var(--ip-ink-3) !important;
}

@media (max-width: 760px) {
  .twIphone {
    padding: 14px;
  }

  .twIphone-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .twIphone h1 {
    font-size: 24px;
  }

  .twIphone-nav {
    justify-content: flex-start;
  }

  .twIphone-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .twIphone-tools {
    grid-template-columns: 1fr;
  }
}

.twSupport-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.twSupport-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 20px 72px;
}

.twSupport-hero {
  margin-bottom: 24px;
}

.twSupport-kicker {
  display: inline-flex;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.twSupport-hero h1 {
  max-width: 780px;
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
  font-weight: 800;
}

.twSupport-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.twSupport-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 18px;
  align-items: start;
}

.twSupport-panel,
.twSupport-inline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.twSupport-panelHead {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.twSupport-panelHead h2,
.twSupport-inline h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.twSupport-panelHead p,
.twSupport-inline p {
  margin: 7px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

.twSupport-cardGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.twSupport-card {
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-2);
}

.twSupport-card.is-primary {
  border-color: rgba(79, 158, 255, 0.5);
  background: linear-gradient(180deg, rgba(31, 58, 95, 0.62), var(--surface-2));
}

.twSupport-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--accent);
  font-weight: 900;
}

.twSupport-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.twSupport-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
}

.twSupport-btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.twSupport-btn.is-primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.twSupport-btn.is-good {
  border-color: rgba(63, 185, 80, 0.45);
  background: rgba(63, 185, 80, 0.12);
  color: #79d98c;
}

.twSupport-note {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border: 1px dashed rgba(173, 186, 199, 0.22);
  border-radius: 8px;
  background: rgba(14, 17, 22, 0.5);
  color: var(--ink-3);
  font-size: 12.5px;
}

.twSupport-form {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.twSupport-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
}

.twSupport-form input,
.twSupport-form textarea,
.twSupport-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

.twSupport-form textarea {
  min-height: 128px;
  resize: vertical;
}

.twSupport-form input:focus,
.twSupport-form textarea:focus,
.twSupport-form select:focus {
  border-color: var(--accent);
}

.twSupport-inline {
  margin-top: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.twSupport-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.twSupport-inline-form {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.twSupport-inline-form .twSupport-form {
  padding: 0;
}

@media (min-width: 721px) {
  .tw-v2 .dA-shell {
    position: fixed;
    inset: 0;
  }
}

@media (max-width: 1080px) {
  .dA-hdr-status {
    display: none;
  }

  .dA-tabs {
    gap: 0;
  }

  .dA-tab {
    padding: 6px 8px;
  }
}

@media (max-width: 980px) {
  .dA-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dA-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.tokka-watch-body {
    background: #0e1116;
    overflow: auto;
  }

  .tw-app:has(.tw-v2) {
    overflow: visible;
  }

  .dA-shell {
    display: block;
    height: auto;
    min-height: 100vh;
  }

  .dA-hdr {
    min-height: 68px;
    padding: 14px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0e1116;
  }

  .dA-monitor {
    min-height: 38px;
    padding: 0 16px;
    gap: 8px;
    font-size: 11px;
    position: sticky;
    top: 68px;
    z-index: 19;
  }

  .dA-brand {
    font-size: 17px;
  }

  .dA-brand-mark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 13px;
  }

  .dA-tabs,
  .dA-hdr-end {
    display: none;
  }

  .dA-mobile-icons {
    margin-left: auto;
    display: flex;
    gap: 6px;
  }

  .dA-mobile-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink-2);
    display: grid;
    place-items: center;
  }

  .dA-side {
    display: none;
  }

  .dA-main {
    padding: 0 0 108px;
    overflow: visible;
  }

  .twCategoryHero {
    flex-direction: column;
    gap: 12px;
    margin: 14px;
    padding: 14px;
  }

  .twCategoryHero h1 {
    font-size: 20px;
  }

  .dA-detail-panel {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .dA-detail-panel.is-active {
    display: flex;
    flex-direction: column;
  }

  .dA-detail-hdr {
    order: 1;
    margin: 0;
    padding: 14px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: block;
  }

  .dA-detail-titleBlock {
    align-items: flex-start;
    gap: 10px;
  }

  .dA-detail-thumb {
    width: 54px;
    height: 54px;
    padding: 5px;
  }

  .dA-detail-meta {
    font-size: 11px;
    margin-bottom: 4px;
    flex-wrap: wrap;
  }

  .dA-detail-name {
    font-size: 17px;
    line-height: 1.25;
  }

  .dA-detail-color {
    font-size: 12px;
  }

  .dA-detail-actions {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 56px;
    z-index: 30;
    display: flex;
    gap: 8px;
  }

  .dA-detail-actions .dA-btn {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    background: rgba(22, 27, 34, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 14px;
    font-weight: 700;
  }

  .dA-detail-actions .dA-btn.primary {
    background: var(--accent);
  }

  .dA-mobile-profit-row {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    background: var(--border);
  }

  .dA-mobile-profit-cell {
    min-width: 0;
    background: var(--surface);
    padding: 12px 14px;
  }

  .dA-mobile-profit-cell .lbl {
    color: var(--ink-3);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .dA-mobile-profit-cell .val {
    color: var(--ink);
    font-family: "Inter", "Helvetica Neue", monospace;
    font-size: 19px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .dA-mobile-profit-cell.profit .val.pos {
    color: var(--good);
  }

  .dA-mobile-profit-cell.profit .val.neg {
    color: var(--ink-2);
  }

  .dA-mobile-profit-cell .sub {
    color: var(--ink-3);
    font-size: 10.5px;
  }

  .dA-stats {
    order: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 14px 14px;
    background: transparent;
  }

  .dA-stat {
    border: 0;
    border-radius: 9px;
    padding: 10px;
  }

  .dA-stat.profit {
    display: none;
  }

  .dA-stat .lbl {
    font-size: 9.5px;
  }

  .dA-stat .val {
    font-size: 13.5px;
    font-weight: 700;
  }

  .dA-stat .sub {
    font-size: 10px;
  }

  .dA-chart-card {
    order: 3;
    margin: 14px;
    padding: 14px;
    border-radius: 10px;
    max-width: calc(100vw - 28px);
  }

  .dA-chart-hdr {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .dA-chart-range {
    margin-left: auto;
    gap: 0;
    padding: 2px;
    border-radius: 5px;
    background: var(--bg);
  }

  .dA-chart-range button {
    padding: 4px 8px;
    font-size: 10.5px;
    font-weight: 600;
  }

  .dA-chart-title {
    font-size: 12px;
  }

  .dA-chart-legend {
    display: none;
  }

  .dA-chart-svg {
    height: 160px;
    max-width: 100%;
    min-width: 0;
  }

  .dA-chart-legend-mobile {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 10.5px;
  }

  .dA-panels {
    order: 5;
    display: block;
    padding: 0 14px;
  }

  .dA-panel {
    margin-bottom: 14px;
  }

  .dA-store {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    padding: 10px 14px;
  }

  .dA-store-price {
    grid-column: 3;
  }

  .dA-store-stock {
    grid-column: 2;
    width: fit-content;
    margin-top: 4px;
  }

  .dA-alert-form {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 108px;
    z-index: 35;
    grid-template-columns: 1fr;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  }

  .mobA-tab-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    height: 50px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(14, 17, 22, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .mobA-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #768390;
    font-size: 9px;
    font-weight: 600;
  }

  .mobA-tab.on {
    color: #4f9eff;
  }

  .twSupport-header {
    min-height: 68px;
    padding: 14px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 20;
  }

  .twSupport-header .dA-tabs {
    display: none;
  }

  .twSupport-main {
    padding: 22px 14px 72px;
  }

  .twSupport-hero h1 {
    font-size: 28px;
  }

  .twSupport-hero p {
    font-size: 13px;
  }

  .twSupport-layout,
  .twSupport-cardGrid {
    grid-template-columns: 1fr;
  }

  .twSupport-panelHead {
    padding: 14px;
  }

  .twSupport-cardGrid,
  .twSupport-form {
    padding: 14px;
  }

  .twSupport-inline {
    order: 6;
    grid-template-columns: 1fr;
    margin: 0 14px 14px;
    padding: 14px;
  }

  .twSupport-actions {
    justify-content: stretch;
  }

  .twSupport-actions .twSupport-btn {
    flex: 1 1 150px;
    width: auto;
  }
}

/* Design v2: Tokka Watch mypage */
body.tokka-watch-body:has(.twMypage) {
  background: #0e1116;
  overflow: hidden;
}

.tw-app:has(.twMypage) {
  background: #0e1116;
  min-height: 100vh;
  overflow: hidden;
}

.twMypage {
  --bg: #0e1116;
  --surface: #161b22;
  --surface-2: #1c2128;
  --surface-3: #22272e;
  --border: #2d333b;
  --border-strong: #444c56;
  --ink: #e6edf3;
  --ink-2: #adbac7;
  --ink-3: #768390;
  --ink-4: #545d68;
  --accent: #4f9eff;
  --accent-soft: #1f3a5f;
  --good: #3fb950;
  --warn: #d29922;
  --bad: #f85149;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "palt";
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.twMypage *,
.twMypage *::before,
.twMypage *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.twMypage a {
  color: inherit;
  text-decoration: none;
}

.twMypage button,
.twMypage input,
.twMypage select {
  font: inherit;
}

.twMypage button {
  cursor: pointer;
}

.twMp-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  grid-template-rows: 52px 36px minmax(0, 1fr);
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background: var(--bg);
}

.twMp-shell--login {
  grid-template-columns: 1fr;
}

.twMp-shell--login .twMp-side {
  display: none;
}

.twMp-shell--login .twMp-main {
  width: min(100%, 960px);
  justify-self: center;
}

.twMp-header {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.twMp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
}

.twMp-brandMark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.twMp-tabs {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 16px;
  overflow: hidden;
}

.twMp-tab {
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.twMp-tab:hover,
.twMp-tab.is-active {
  color: var(--ink);
  background: var(--surface-2);
}

.twMp-headerEnd {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
  min-width: 0;
}

.twMp-headerEnd span:last-child {
  max-width: 220px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twMp-statusDot,
.twMp-monitorDot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  flex: 0 0 auto;
}

.twMp-statusDot {
  margin-right: 5px;
  box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.42);
  animation: twMpPulse 1.8s infinite;
}

.twMp-monitor {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.96);
  color: var(--ink-3);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
}

.twMp-monitorText {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes twMpPulse {
  70% { box-shadow: 0 0 0 8px rgba(63, 185, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

.twMp-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.twMp-sideHead {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  z-index: 1;
}

.twMp-sideTitle {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.twMp-sideLead {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.55;
}

.twMp-search {
  position: relative;
  display: block;
}

.twMp-search span {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.twMp-search input {
  width: 100%;
  height: 32px;
  padding: 7px 10px 7px 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12.5px;
}

.twMp-search input:focus {
  border-color: var(--accent);
}

.twMp-search input::placeholder {
  color: var(--ink-4);
}

.twMp-chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.twMp-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 600;
}

.twMp-chip:hover,
.twMp-chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.twMp-list {
  flex: 1;
  overflow-y: auto;
}

.twMp-list::-webkit-scrollbar,
.twMp-main::-webkit-scrollbar {
  width: 10px;
}

.twMp-list::-webkit-scrollbar-thumb,
.twMp-main::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
  border: 2px solid var(--surface);
}

.twMp-row {
  width: 100%;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background 0.12s;
}

.twMp-row:hover {
  background: var(--surface-2);
}

.twMp-row.is-active {
  background: var(--surface-3);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

.twMp-row[hidden],
.twMp-detailPanel[hidden] {
  display: none;
}

.twMp-rowDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  display: inline-block;
  flex: 0 0 auto;
}

.twMp-rowDot.wait {
  background: var(--warn);
}

.twMp-rowDot.stop {
  background: var(--ink-3);
}

.twMp-rowMid {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.twMp-rowName {
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.twMp-rowMeta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.twMp-rowEnd {
  text-align: right;
  display: grid;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}

.twMp-rowPrice {
  color: var(--good);
  font-size: 12px;
  font-weight: 800;
}

.twMp-rowType {
  color: var(--ink-3);
  font-size: 10.5px;
}

.twMp-emptySide {
  display: grid;
  gap: 4px;
  padding: 18px 14px;
  color: var(--ink-3);
}

.twMp-emptySide strong {
  color: var(--ink);
}

.twMp-main {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px 64px;
  background: var(--bg);
}

.twMp-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.twMp-kicker {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.twMp-title {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  text-wrap: balance;
}

.twMp-lead {
  max-width: 720px;
  margin: 7px 0 0;
  color: var(--ink-3);
  font-size: 13px;
}

.twMp-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.twMp-btn {
  min-height: 32px;
  padding: 7px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.twMp-btn:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.twMp-btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.twMp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.twMp-stat,
.twMp-panel,
.twMp-chart,
.twMp-loginCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.twMp-stat {
  min-width: 0;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}

.twMp-statLabel {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.twMp-statValue {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.twMp-statValue.good {
  color: var(--good);
}

.twMp-statValue.warn {
  color: var(--warn);
}

.twMp-statSub {
  color: var(--ink-3);
  font-size: 11px;
}

.twMp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

.twMp-chart {
  padding: 18px;
  min-width: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.twMp-panel {
  overflow: hidden;
}

.twMp-panelHead,
.twMp-chartHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.twMp-chartHead {
  padding: 0 0 14px;
  border-bottom: 0;
}

.twMp-panelTitle,
.twMp-chartTitle {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.twMp-range {
  display: flex;
  gap: 2px;
}

.twMp-range button {
  padding: 4px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 700;
}

.twMp-range button.is-active {
  background: var(--surface-3);
  color: var(--ink);
}

.twMp-chartSvg {
  width: 100%;
  height: 260px;
  display: block;
}

.twMp-panelBody {
  padding: 8px 0;
}

.twMp-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.twMp-rule:last-child {
  border-bottom: 0;
}

.twMp-ruleName {
  color: var(--ink);
  font-weight: 700;
}

.twMp-ruleMeta {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.twMp-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.twMp-pill.good {
  color: var(--good);
  background: rgba(63, 185, 80, 0.12);
  border-color: rgba(63, 185, 80, 0.24);
}

.twMp-pill.warn {
  color: var(--warn);
  background: rgba(210, 153, 34, 0.13);
  border-color: rgba(210, 153, 34, 0.24);
}

.twMp-pill.bad {
  color: var(--bad);
  background: rgba(248, 81, 73, 0.12);
  border-color: rgba(248, 81, 73, 0.24);
}

.twMp-detailPanels {
  min-width: 0;
}

.twMp-detailPanel.is-active {
  display: block;
}

.twMp-detailHead {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.twMp-detailThumb {
  width: 62px;
  height: 62px;
  padding: 6px;
}

.twMp-detailCopy {
  min-width: 0;
}

.twMp-detailHead h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  text-wrap: balance;
}

.twMp-detailCat {
  color: var(--ink-3);
  font-size: 11.5px;
  font-weight: 700;
}

.twMp-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border);
  background: rgba(13, 17, 23, 0.28);
}

.twMp-formRow {
  display: grid;
  gap: 6px;
}

.twMp-formRow span {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
}

.twMp-formRow input,
.twMp-formRow select {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  padding: 8px 10px;
  outline: none;
}

.twMp-formRow input:focus,
.twMp-formRow select:focus {
  border-color: var(--accent);
}

.twMp-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.twMp-check {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  padding: 7px 9px;
  color: var(--ink-2);
  font-weight: 700;
  font-size: 12px;
}

.twMp-check input {
  accent-color: var(--accent);
}

.twMp-note {
  margin: 0;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.55;
}

.twMp-emptyLine,
.twMp-emptyDetail {
  padding: 18px 16px;
  color: var(--ink-3);
}

.twMp-emptyDetail {
  display: grid;
  gap: 10px;
}

.twMp-emptyDetail strong {
  color: var(--ink);
  font-size: 16px;
}

.twMp-emptyDetail p {
  margin: 0;
}

.twMp-loginPanel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.twMp-loginCard {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.twMp-loginCard span {
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 800;
}

.twMp-loginCard strong {
  color: var(--ink);
  font-size: 16px;
}

.twMp-loginCard p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.6;
}

.twMp-mobileBar {
  display: none;
}

@media (min-width: 721px) {
  .twMypage .twMp-shell {
    position: fixed;
    inset: 0;
  }

  body.admin-bar.tokka-watch-body:has(.twMypage) .twMp-shell,
  body.tokka-watch-body:has(#wpadminbar):has(.twMypage) .twMp-shell {
    top: 32px;
    height: calc(100vh - 32px);
  }
}

@media (min-width: 721px) and (max-width: 782px) {
  body.admin-bar.tokka-watch-body:has(.twMypage) .twMp-shell,
  body.tokka-watch-body:has(#wpadminbar):has(.twMypage) .twMp-shell {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

@media (max-width: 1080px) {
  .twMp-tabs {
    margin-left: 4px;
  }

  .twMp-tab {
    padding: 6px 8px;
  }

  .twMp-headerEnd span:last-child {
    display: none;
  }
}

@media (max-width: 980px) {
  .twMp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .twMp-layout,
  .twMp-loginPanel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.tokka-watch-body:has(.twMypage) {
    background: #0e1116;
    overflow: auto;
  }

  .tw-app:has(.twMypage) {
    overflow: visible;
  }

  .twMp-shell,
  .twMp-shell--login {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .twMp-header {
    min-height: 68px;
    padding: 14px 16px 12px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #0e1116;
  }

  .twMp-brand {
    font-size: 17px;
  }

  .twMp-brandMark {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 13px;
  }

  .twMp-tabs,
  .twMp-headerEnd {
    display: none;
  }

  .twMp-monitor {
    min-height: 38px;
    padding: 0 16px;
    gap: 8px;
    font-size: 11px;
    position: sticky;
    top: 68px;
    z-index: 19;
  }

  .twMp-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .twMp-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .twMp-row {
    min-width: 260px;
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .twMp-detailHead {
    align-items: flex-start;
    gap: 10px;
  }

  .twMp-detailThumb {
    width: 52px;
    height: 52px;
    padding: 5px;
  }

  .twMp-main {
    padding: 18px 14px 82px;
    overflow: visible;
  }

  .twMp-hero {
    flex-direction: column;
    gap: 14px;
    padding-bottom: 16px;
  }

  .twMp-title {
    font-size: 22px;
  }

  .twMp-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .twMp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .twMp-stat {
    padding: 11px;
  }

  .twMp-statValue {
    font-size: 18px;
  }

  .twMp-chart {
    padding: 14px;
  }

  .twMp-chartHead {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .twMp-chartSvg {
    height: 190px;
  }

  .twMp-rule {
    grid-template-columns: 1fr;
  }

  .twMp-checks {
    grid-template-columns: 1fr;
  }

  .twMp-mobileBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    height: 50px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(14, 17, 22, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .twMp-mobileBar a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #768390;
    font-size: 11px;
    font-weight: 800;
  }

  .twMp-mobileBar a.is-active {
    color: #4f9eff;
  }
}

@media (max-width: 420px) {
  .twMp-sideHead {
    padding: 10px;
  }

  .twMp-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .twMp-chip {
    flex: 0 0 auto;
  }
}
