:root {
  --bg: #0a0a0b;
  --bg-shell: #050505;
  --bg-elev: #121214;
  --bg-card: #17171a;
  --bg-card-hover: #1d1d21;
  --line: #2a2a2f;
  --text: #f4f4f5;
  --muted: #8d8d94;
  --faint: #5c5c64;
  --brand: #ff4d1c;
  --work: #ff4d1c;
  --rest: #2ee0c3;
  --prep: #ffc53d;
  --done: #f4f4f5;
  --danger: #ff5c7a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --safe-t: max(16px, env(safe-area-inset-top));
  --safe-b: max(20px, env(safe-area-inset-bottom));
  --safe-x: max(18px, env(safe-area-inset-left));
  --phase: var(--brand);
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(1100px 420px at 50% 0%, rgba(255, 77, 28, 0.28), #0a0a0b 68%);
  color: var(--text);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
}

body {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
}

button,
input {
  font: inherit;
  font-size: 16px;
  color: inherit;
  touch-action: manipulation;
}

.keep-awake {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

button:disabled {
  opacity: 0.35;
  cursor: default;
}

button,
.card-row,
.ex-row,
.prep-chip {
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
}

button.is-pressed,
.card-row.is-pressed,
.ex-row.is-pressed,
.prep-chip.is-pressed {
  transform: scale(0.97);
  filter: brightness(1.12);
}

.play-in.is-pressed {
  transform: scale(0.88);
  background: rgba(255, 77, 28, 0.16);
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.title-input:focus,
.title-input:focus-visible {
  outline: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: inherit;
}

.app {
  width: min(100%, 430px);
  min-height: 100dvh;
  background:
    radial-gradient(1100px 560px at 50% 0%, rgba(255, 77, 28, 0.28), transparent 62%),
    var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.app[data-phase="prepare"] {
  --phase: var(--prep);
  background:
    radial-gradient(1100px 560px at 50% 0%, rgba(255, 197, 61, 0.22), transparent 62%),
    var(--bg);
}

.app[data-phase="work"] {
  --phase: var(--work);
  background:
    radial-gradient(1100px 560px at 50% 0%, rgba(255, 77, 28, 0.32), transparent 62%),
    var(--bg);
}

.app[data-phase="rest"] {
  --phase: var(--rest);
  background:
    radial-gradient(1100px 560px at 50% 0%, rgba(46, 224, 195, 0.22), transparent 62%),
    var(--bg);
}

.app[data-phase="done"] {
  --phase: var(--done);
  background:
    radial-gradient(1100px 480px at 50% 0%, rgba(244, 244, 245, 0.08), transparent 58%),
    var(--bg);
}

@media (min-width: 480px) {
  .app {
    min-height: min(100dvh - 32px, 920px);
    height: min(100dvh - 32px, 920px);
    border-radius: 32px;
    border: 1px solid #1f1f23;
    box-shadow: var(--shadow);
  }
}

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  padding:
    calc(var(--safe-t) + 8px)
    calc(var(--safe-x) + 4px)
    var(--safe-b);
}

.view.timer {
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wordmark {
  font-family: "Bebas Neue", sans-serif;
  font-size: 42px;
  letter-spacing: 0.06em;
  line-height: 0.9;
}

.wordmark span {
  color: var(--brand);
}

.tagline {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: none;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.icon-btn.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #1a0703;
}

.lang-btn {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.top-actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.list-label {
  margin: 14px 4px 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ex-head,
.run-next-row,
.session-ex {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ex-copy {
  min-width: 0;
}

.ex-icon {
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: 11px;
  background: #1f1f23;
  color: #d6d6db;
  display: grid;
  place-items: center;
  flex: none;
}

.ex-icon img,
.run-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.row-last {
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  margin-top: 3px;
}

.icon-pick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.icon-pick button {
  min-height: 64px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.icon-pick button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.icon-pick button.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #1a0703;
}

.view > .hint {
  padding: 0 18px 6px;
}

.history-meta {
  padding: 0 18px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 4px 12px;
}

.filter-pill {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.filter-pill.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #1a0703;
}

.session-head {
  padding: 0 18px 12px;
}

.session-group {
  background: var(--bg-card);
  border: 1px solid #222227;
  border-radius: 18px;
  padding: 12px 12px 8px;
}

.session-ex {
  padding: 2px 4px 10px;
}

.set-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  min-height: 32px;
  padding: 5px 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.set-row.is-skipped {
  color: var(--faint);
}

.set-vals {
  text-align: right;
}

.run-icon {
  width: 56px;
  height: 56px;
  padding: 6px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #2a2a2f;
  display: grid;
  place-items: center;
  color: var(--text);
}

.prepare-field {
  padding: 0 4px 8px;
}

.prep-chip {
  width: 100%;
  min-height: 36px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  padding: 0 4px;
}

.menu-wrap {
  position: relative;
  flex: none;
}

.menu-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 188px;
  background: #1a1a1e;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  z-index: 8;
  box-shadow: var(--shadow);
}

.menu-item {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 12px;
  text-align: left;
  font-weight: 700;
}

.menu-item.danger {
  color: var(--danger);
}

.add-row {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px dashed #2b2b31;
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-row svg {
  width: 18px;
  height: 18px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px 8px;
  flex: 1;
}

.card-row,
.ex-row {
  display: flex;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid #222227;
  border-radius: 18px;
  overflow: hidden;
}

.row-main,
.ex-main {
  flex: 1;
  min-width: 0;
  text-align: left;
  min-height: 64px;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 12px 8px 11px 14px;
}

.ex-main {
  padding-left: 2px;
  padding-right: 14px;
}

.card-row:hover,
.ex-row:hover {
  background: var(--bg-card-hover);
}

.row-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.row-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.play-in,
.grip {
  flex: none;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--faint);
}

.play-in {
  width: 56px;
  color: var(--brand);
}

.grip {
  width: 40px;
  touch-action: none;
  color: #5a5a62;
}

.play-in svg {
  width: 20px;
  height: 20px;
}

.grip svg {
  width: 18px;
  height: 18px;
}

.ex-row.is-dragging {
  border-color: var(--brand);
}

.empty {
  margin: 8px 0;
  padding: 28px 18px;
  border: 1px dashed #2b2b31;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.back-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 18px;
}

.back-row h1 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.title-edit {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 10px;
  border-radius: 14px;
}

.title-edit:focus-within {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.title-input {
  flex: 0 1 auto;
  min-width: 1ch;
  width: auto;
  field-sizing: content;
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 0;
}

.title-input:focus,
.title-input:focus-visible {
  outline: none;
  background: transparent;
  box-shadow: none;
}

.pencil {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--faint);
  pointer-events: none;
}

.pencil svg {
  display: block;
  width: 18px;
  height: 18px;
}

.swipe {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.swipe-behind {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: #5a1422;
}

.swipe-delete {
  width: 88px;
  color: #fff;
  font-weight: 800;
  background: #ff5c7a;
}

.swipe .ex-row {
  position: relative;
  transition: transform 0.2s ease;
}

.ex-placeholder {
  border-radius: 18px;
  border: 1px dashed #2f2f36;
  background: #101012;
}

.swipe.is-lifted,
.ex-row.is-lifted {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform: scale(1.03);
  overflow: visible;
}

.swipe.is-lifted .swipe-behind {
  display: none;
}

.actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding: 12px 4px 8px;
}

.btn {
  min-height: 56px;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

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

.btn svg {
  width: 20px;
  height: 20px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--brand);
  color: #1a0703;
}

.btn-ghost {
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.btn-danger {
  color: var(--danger);
  background: rgba(255, 92, 122, 0.08);
  border: 1px solid rgba(255, 92, 122, 0.2);
}

.btn-xl {
  min-height: 72px;
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 4px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input[type="text"] {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0 14px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.segment {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.segment button {
  min-height: 48px;
  border-radius: 14px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-weight: 800;
}

.segment button.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #1a0703;
}

.stepper {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 8px;
  align-items: center;
}

.stepper button {
  height: 56px;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 24px;
  font-weight: 700;
}

.stepper output {
  min-height: 56px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid #222227;
  display: grid;
  place-items: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 0.04em;
}

.timer {
  padding-left: calc(var(--safe-x) + 8px);
  padding-right: calc(var(--safe-x) + 8px);
}

.run-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.text-btn {
  min-height: 44px;
  padding: 0 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.text-btn.danger {
  color: var(--danger);
}

.run-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
}

.run-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--phase);
}

.run-title {
  margin-top: 10px;
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.run-number {
  margin-top: 18px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(92px, 32vw, 148px);
  letter-spacing: 0.02em;
  line-height: 0.82;
  font-variant-numeric: tabular-nums;
}

.run-number.is-close {
  color: var(--phase);
  animation: pulse 1s ease-in-out infinite;
}

.run-unit,
.run-set {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.run-unit {
  margin-top: 8px;
}

.run-set {
  margin-top: 14px;
}

.run-stage.is-paused .run-number {
  opacity: 0.42;
}

.run-next {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #222227;
  border-radius: 18px;
  background: var(--bg-card);
  text-align: left;
}

.run-next[hidden] {
  display: none;
}

.run-next-label {
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.run-next-value {
  margin-top: 8px;
}

.run-next-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.run-next-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.run-actions {
  display: grid;
  gap: 10px;
  padding-bottom: 6px;
}

.confirm {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 6, 0.72);
  display: grid;
  place-items: end center;
  padding: 16px;
}

.confirm[hidden] {
  display: none;
}

.confirm-card {
  width: 100%;
  background: #141416;
  border: 1px solid #2a2a2f;
  border-radius: 24px;
  padding: 20px 16px 16px;
  display: grid;
  gap: 10px;
}

.confirm-card p {
  margin: 0 0 6px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.confirm-card .confirm-sub {
  margin-top: -4px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.done-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 24px 16px;
}

.done-kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}

.done-view h2 {
  margin: 0;
  font-size: 56px;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.done-view p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.done-stats {
  color: var(--text) !important;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.86;
  }
}

@media (prefers-reduced-motion: reduce) {
  .run-number.is-close,
  .btn {
    animation: none;
    transition: none;
  }
}

.settings {
  display: grid;
  gap: 12px;
  padding: 0 4px 24px;
}

.settings .hint,
.sync-banner {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.settings .hint.warn,
.settings .hint.error,
.sync-banner.error {
  color: var(--danger);
}

.settings .field {
  display: grid;
  gap: 6px;
}

.settings .field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 0 12px;
}

.field-value {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 14px 12px;
  word-break: break-all;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.server-line {
  word-break: break-all;
}

.copy-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.copy-row .btn {
  min-height: 48px;
}

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

.settings-group {
  display: grid;
  gap: 10px;
}

.settings-group > .list-label {
  margin: 10px 4px 0;
}

.settings-card {
  display: grid;
  background: var(--bg-card);
  border: 1px solid #222227;
  border-radius: 18px;
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 14px;
  border-top: 1px solid #222227;
}

.settings-card > .settings-row:first-child {
  border-top: 0;
}

.settings-row-label {
  min-width: 0;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.settings-value,
.settings-value-btn {
  flex: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.settings-value-btn {
  min-height: 36px;
  padding: 0 2px;
}

.switch {
  --switch-w: 50px;
  --switch-h: 30px;
  position: relative;
  flex: none;
  width: var(--switch-w);
  height: var(--switch-h);
  border-radius: 999px;
  background: #3a3a40;
  transition: background 0.18s ease;
}

.switch[aria-checked="true"] {
  background: var(--brand);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease;
}

.switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.switch:disabled {
  opacity: 0.4;
}

.settings-details {
  padding: 2px 2px 0;
}

.settings-details summary {
  cursor: pointer;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  padding: 8px 2px;
}

.settings-details summary::-webkit-details-marker {
  display: none;
}

.settings-details[open] summary {
  color: var(--text);
}

.settings-details .hint {
  margin: 0 2px 8px;
}

.recovery {
  display: grid;
  gap: 12px;
  padding: 4px 0 8px;
}

.recovery .list-label {
  margin: 0;
}

.build-meta {
  margin-top: 8px;
}

.build-meta .row-meta {
  padding: 0 2px;
}

.update-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 16px;
  background: #1a1a1e;
  color: #f4f4f5;
}

.update-banner p {
  margin: 0;
  font-weight: 600;
  font-size: 14px;
}

.update-banner .btn {
  min-height: 40px;
  padding: 0 14px;
  flex: none;
}

.recovery-code,
.pairing-card {
  background: var(--bg-card);
  border: 1px solid #222227;
  border-radius: 16px;
  padding: 14px;
  word-break: break-all;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pairing-card {
  display: grid;
  gap: 8px;
}

.pairing-card p {
  margin: 0;
}

.card-row.proposed {
  border-color: rgba(255, 77, 28, 0.35);
}

.text-in {
  flex: none;
  min-width: 72px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
}

.text-in.danger {
  color: var(--danger);
}

.equip-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.equip-pick button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.equip-pick button.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #1a0703;
}

.search-field {
  padding: 0 18px 12px;
}

.field input[type="number"],
.search-field input {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  padding: 0 14px;
}

.card-row .menu-wrap {
  display: grid;
  place-items: center;
  padding-right: 6px;
}

.card-row .menu-wrap .icon-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
}
