/* P13: the phone's own forms — 新增 / 編輯 bot and 新增例行工作. Same 墨 Mono
   fields as pairing: a label above, a raised surface, 44 px touch height. */

.pf-form {
  gap: var(--space-4);
}

.pf-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pf-head .cs-title {
  margin: 0;
}

.pf-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}

.pf-label {
  color: var(--c-ink-muted);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
}

.pf-hint {
  color: var(--c-ink-faint);
  font-size: var(--text-xs);
  line-height: var(--leading-ui);
}

.pf-input {
  width: 100%;
  min-height: var(--touch);
  padding: 0 var(--space-4);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-md);
  outline: 0;
  background: var(--c-surface-raised);
  color: var(--c-ink);
  font: inherit;
  font-size: var(--text-sm);
}

.pf-input:focus-visible {
  border-color: var(--c-ink-muted);
}

.pf-area {
  min-height: 96px;
  padding: var(--space-3) var(--space-4);
  line-height: var(--leading-body, 1.6);
  resize: vertical;
}

.pf-select {
  appearance: none;
  padding-right: var(--space-6);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--c-ink-faint) 50%),
    linear-gradient(135deg, var(--c-ink-faint) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.pf-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-3);
}

.pf-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-height: var(--touch);
}

.pf-swatch {
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  font-size: var(--text-xs);
}

.pf-swatch[aria-checked="true"] {
  outline: 2px solid var(--c-ink);
  outline-offset: 2px;
}

.pf-seg {
  margin-bottom: 0;
}

.pf-when {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pf-inline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.pf-num {
  width: 5.5em;
  flex: none;
}

.pf-inline .pf-select {
  width: 7em;
  flex: none;
}

.pf-time {
  width: 8em;
  flex: none;
}

.pf-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.pf-switch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: var(--text-sm);
}

.tm-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--touch);
  margin: var(--space-3) 0 var(--space-2);
}
