/* ============================================================
   Voice Studio — one screen, one job.
   Aesthetic: studio console. Neutral dark chassis, a single
   amber signal colour reserved for "live" and the primary act.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Chassis — neutral, not blue. Lets the signal colour carry meaning. */
  --bg:          #0a0b0f;
  --bg-grain:    #0c0d12;
  --panel:       #12141a;
  --panel-hi:    #191c24;
  --panel-in:    #0e0f14;

  --line:        rgba(255, 255, 255, 0.07);
  --line-hi:     rgba(255, 255, 255, 0.14);

  --text:        #e8e9ed;
  --text-soft:   #b9bdc8;
  --muted:       #8b909d;
  --dim:         #5f6472;

  /* THE accent. Used only for: live state, primary action, active selection. */
  --signal:      #ff9e2c;
  --signal-lo:   rgba(255, 158, 44, 0.14);
  --signal-mid:  rgba(255, 158, 44, 0.34);

  --ok:          #4ade80;
  --err:         #ff6b6b;

  --font:        'IBM Plex Sans Thai', system-ui, sans-serif;
  --mono:        'IBM Plex Mono', ui-monospace, monospace;

  --r-sm:        6px;
  --r:           10px;
  --r-lg:        14px;

  --rail-w:      292px;
  --result-w:    336px;
  --bar-h:       56px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* Grain + a single soft light source from the top-left, like a desk lamp
   over a console. Cheap, static, gives the flat dark surface some depth. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 620px at 12% -8%, rgba(255, 158, 44, 0.055), transparent 60%),
    radial-gradient(900px 700px at 100% 100%, rgba(90, 120, 255, 0.045), transparent 62%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.032'/%3E%3C/svg%3E");
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.09);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.16); background-clip: content-box; }

/* ------------------------------------------------------------
   Shell
   ------------------------------------------------------------ */

.app {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.topbar {
  height: var(--bar-h);
  flex: 0 0 var(--bar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

/* Small animated level meter as the logo — the product is audio, so the
   mark should behave like audio. */
.brand-meter {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
  width: 22px;
}
.brand-meter i {
  flex: 1;
  background: var(--signal);
  border-radius: 1px;
  height: 30%;
  animation: meter 1.5s ease-in-out infinite;
}
.brand-meter i:nth-child(2) { animation-delay: 0.18s; }
.brand-meter i:nth-child(3) { animation-delay: 0.36s; }
.brand-meter i:nth-child(4) { animation-delay: 0.09s; }
@keyframes meter {
  0%, 100% { height: 22%; opacity: 0.5; }
  50%      { height: 100%; opacity: 1; }
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: -3px;
}

.topbar-spacer { flex: 1; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  background: var(--panel);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--dim);
  flex: 0 0 auto;
}
.status.is-live   { color: var(--text-soft); border-color: var(--signal-mid); }
.status.is-live .status-dot {
  background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-mid);
  animation: pulse 2.4s ease-out infinite;
}
.status.is-down { color: var(--err); border-color: rgba(255, 107, 107, 0.35); }
.status.is-down .status-dot { background: var(--err); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--signal-mid); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 158, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 158, 44, 0); }
}

.ghost-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: color 0.16s, background 0.16s;
}
.ghost-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

/* ------------------------------------------------------------
   Three-pane body
   ------------------------------------------------------------ */

.panes {
  flex: 1;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr) var(--result-w);
  min-height: 0;
}

.pane {
  min-height: 0;
  display: flex;
  flex-direction: column;
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.pane-rail   { border-right: 1px solid var(--line); animation-delay: 0.04s; }
.pane-main   { animation-delay: 0.1s; }
.pane-result { border-left: 1px solid var(--line); animation-delay: 0.16s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pane, .brand-meter i, .status-dot { animation: none !important; }
}

.pane-head {
  flex: 0 0 auto;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.pane-title {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 500;
}
.pane-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

/* ------------------------------------------------------------
   Left rail — voice browser
   ------------------------------------------------------------ */

.search {
  position: relative;
  margin-top: 11px;
}
.search input {
  width: 100%;
  padding: 9px 11px 9px 32px;
  background: var(--panel-in);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  outline: none;
  transition: border-color 0.16s, background 0.16s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--signal-mid); background: var(--panel); }
.search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--dim);
  pointer-events: none;
}

.tabs {
  display: flex;
  gap: 3px;
  margin-top: 11px;
  padding: 3px;
  background: var(--panel-in);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.tab {
  flex: 1;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  cursor: pointer;
  font-size: 12.5px;
  transition: background 0.16s, color 0.16s;
  white-space: nowrap;
}
.tab:hover { color: var(--text-soft); }
.tab.is-on {
  background: var(--panel-hi);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.tab-n {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  margin-left: 3px;
}

.voice-list { padding: 8px; }

.voice {
  width: 100%;
  text-align: left;
  display: block;
  padding: 10px 11px;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
}
.voice:hover { background: var(--panel); border-color: var(--line); }
.voice.is-on {
  background: var(--signal-lo);
  border-color: var(--signal-mid);
}
.voice-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.voice-name {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice.is-on .voice-name { color: var(--signal); }
.voice-sum {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--dim);
  flex: 0 0 auto;
  text-transform: uppercase;
}
.chip-f { color: #f0a3c8; border-color: rgba(240, 163, 200, 0.28); }
.chip-m { color: #8fb6f5; border-color: rgba(143, 182, 245, 0.28); }

.empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
}

/* ------------------------------------------------------------
   Centre — composer
   ------------------------------------------------------------ */

.pane-main .pane-body {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 20px;
  gap: 14px;
}

.picked {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.picked-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--signal-lo);
  border: 1px solid var(--signal-mid);
  color: var(--signal);
}
.picked-name { font-weight: 500; }
.picked-sum { font-size: 12.5px; color: var(--muted); }
.picked-none .picked-mark { background: var(--panel-hi); border-color: var(--line); color: var(--dim); }
.picked-none .picked-name { color: var(--muted); font-weight: 400; }

.composer {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.18s;
}
.composer:focus-within { border-color: var(--line-hi); }

.composer textarea {
  flex: 1;
  min-height: 150px;
  width: 100%;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  padding: 16px 18px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
}
.composer textarea::placeholder { color: var(--dim); }

.composer-foot {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel-in);
}
.count {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
}
.count.is-over { color: var(--err); }
.foot-spacer { flex: 1; }

.hint {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
kbd {
  font-family: var(--mono);
  font-size: 10px;
  padding: 2px 5px;
  border: 1px solid var(--line-hi);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--muted);
}

/* The one primary action on the screen. Nothing else gets this treatment. */
.go {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--r);
  background: var(--signal);
  color: #1a1206;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform 0.14s, box-shadow 0.18s, filter 0.16s;
  box-shadow: 0 2px 14px rgba(255, 158, 44, 0.24);
}
.go:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 4px 22px rgba(255, 158, 44, 0.34);
}
.go:active:not(:disabled) { transform: translateY(1px); }
.go:disabled {
  background: var(--panel-hi);
  color: var(--dim);
  box-shadow: none;
  cursor: not-allowed;
}

.adv {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}
.adv summary {
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}
.adv summary::-webkit-details-marker { display: none; }
.adv summary:hover { color: var(--text-soft); }
.adv summary .caret { transition: transform 0.2s; color: var(--dim); }
.adv[open] summary .caret { transform: rotate(90deg); }
.adv-body {
  padding: 4px 14px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
}
.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.field select,
.field input[type="text"] {
  width: 100%;
  padding: 8px 10px;
  background: var(--panel-in);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
}
.field select:focus,
.field input:focus { border-color: var(--signal-mid); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--signal); }
.range-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-soft);
  min-width: 22px;
  text-align: right;
}

/* ------------------------------------------------------------
   Right — result + history
   ------------------------------------------------------------ */

.pane-result .pane-body { padding: 14px; }

.stage {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 16px;
  margin-bottom: 16px;
}
.stage-idle {
  text-align: center;
  color: var(--dim);
  padding: 30px 16px;
  font-size: 13px;
  border-style: dashed;
}

/* Working state — bars that actually move, so waiting reads as "running"
   rather than "stuck". */
.wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 46px;
  margin-bottom: 12px;
}
.wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--signal);
  opacity: 0.85;
  animation: wv 1.05s ease-in-out infinite;
}
@keyframes wv {
  0%, 100% { height: 18%; }
  50%      { height: 100%; }
}

.prog {
  height: 3px;
  background: var(--panel-hi);
  border-radius: 99px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  width: 0%;
  background: var(--signal);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.stage-msg {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.stage-err {
  color: var(--err);
  font-size: 13px;
  text-align: center;
}

audio { width: 100%; margin-top: 4px; }

.result-acts {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.btn-quiet {
  flex: 1;
  padding: 8px 12px;
  background: var(--panel-hi);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.16s, color 0.16s;
}
.btn-quiet:hover { border-color: var(--line-hi); color: var(--text); }

.hist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.14s;
}
.hist-item:hover { border-color: var(--line-hi); }
.hist-play {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 99px;
  border: 1px solid var(--line-hi);
  color: var(--text-soft);
}
.hist-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hist-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  flex: 0 0 auto;
}

/* ------------------------------------------------------------
   Responsive — collapse the console into one column
   ------------------------------------------------------------ */

@media (max-width: 1180px) {
  :root { --rail-w: 250px; --result-w: 290px; }
}

@media (max-width: 960px) {
  body { overflow: auto; }
  .app { height: auto; min-height: 100vh; }
  .panes { grid-template-columns: 1fr; }
  .pane-rail, .pane-result { border: 0; border-top: 1px solid var(--line); }
  .pane-body { overflow: visible; }
  .composer textarea { min-height: 190px; }

  /* Cloning is step-ordered: record first, then write, then listen.
     Keep source order on narrow screens - no order overrides. */
  .pane-rail { order: 1; }
  .pane-main { order: 2; }
  .pane-result { order: 3; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 12px; gap: 10px; }
  .brand-sub { display: none; }
  .pane-main .pane-body { padding: 14px; }
  .go { width: 100%; justify-content: center; }
  .composer-foot { flex-wrap: wrap; }
  .hint { display: none; }
}

/* ============================================================
   Voice capture — the primary act of this product.
   The record control is the largest, warmest thing on screen.
   ============================================================ */

.capture { padding: 16px; }

.rec-shell {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  padding: 20px 16px 16px;
  text-align: center;
}

.rec-btn {
  width: 92px;
  height: 92px;
  border-radius: 99px;
  border: 1px solid var(--signal-mid);
  background: var(--signal-lo);
  color: var(--signal);
  cursor: pointer;
  display: grid;
  place-items: center;
  margin: 0 auto;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.rec-btn:hover:not(:disabled) {
  background: rgba(255, 158, 44, 0.2);
  box-shadow: 0 0 0 6px rgba(255, 158, 44, 0.07);
}
.rec-btn:active:not(:disabled) { transform: scale(0.96); }
.rec-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.rec-btn.is-rec {
  background: var(--signal);
  color: #1a1206;
  border-color: var(--signal);
  animation: recPulse 1.6s ease-out infinite;
}
@keyframes recPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 158, 44, 0.4); }
  70%  { box-shadow: 0 0 0 18px rgba(255, 158, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 158, 44, 0); }
}

.rec-timer {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
  margin-top: 14px;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.rec-timer.in-range { color: var(--ok); }
.rec-timer.too-long { color: var(--err); }

.rec-help { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Live input level while recording — proves the mic is actually working. */
.level {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 34px;
  margin-top: 12px;
}
.level i {
  width: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-hi);
  transition: height 0.08s linear, background 0.08s;
}
.level i.on { background: var(--signal); }

.or-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--dim);
  font-size: 11.5px;
  font-family: var(--mono);
}
.or-line::before, .or-line::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.drop {
  border: 1px dashed var(--line-hi);
  border-radius: var(--r);
  padding: 16px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.16s, background 0.16s, color 0.16s;
}
.drop:hover, .drop.is-over {
  border-color: var(--signal-mid);
  background: var(--signal-lo);
  color: var(--text-soft);
}

/* Captured sample */
.sample {
  border: 1px solid var(--signal-mid);
  background: var(--signal-lo);
  border-radius: var(--r);
  padding: 12px;
  margin-top: 14px;
  text-align: left;
}
.sample-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sample-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sample-dur {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--signal);
}
.sample audio { margin: 0; }
.link-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--text); }

.note {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.6;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.note b { color: var(--text-soft); font-weight: 500; }

.warn {
  color: var(--err);
  font-size: 12.5px;
  margin-top: 10px;
}

/* Consent — legally required for clone mode, so it must be legible,
   not a buried checkbox. */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.16s;
}
.consent:hover { border-color: var(--line-hi); }
.consent.is-on { border-color: var(--signal-mid); background: var(--signal-lo); }
.consent input { margin-top: 3px; accent-color: var(--signal); flex: 0 0 auto; width: 15px; height: 15px; }
.consent-text { font-size: 12.5px; color: var(--text-soft); line-height: 1.6; }
.consent-text b { color: var(--text); font-weight: 600; }

.field-inline { margin-bottom: 2px; }
.field-inline label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.field-inline input[type="text"] {
  width: 100%;
  padding: 9px 11px;
  background: var(--panel-in);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  outline: none;
  color: var(--text);
}
.field-inline input:focus { border-color: var(--signal-mid); }
.field-note { font-size: 11.5px; color: var(--dim); margin-top: 5px; }

.step-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--panel-hi);
  border: 1px solid var(--line-hi);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-right: 7px;
}
.step-tag.done { background: var(--signal); border-color: var(--signal); color: #1a1206; }
