/* account.css — styles for the alerts account page (RSD-131).
   Kept in its own file (the main stylesheet is owned by other in-flight tickets).
   Reuses the design tokens defined in styles.css :root. */

.account-prose { max-width: 1100px; }
.account-prose > .lead { max-width: 700px; }

.account-flash {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 15px;
  color: var(--ink);
}
.account-flash.is-ok {
  border-color: var(--pace);
  background: var(--pace-soft);
}
.account-flash.is-error {
  border-color: var(--sale);
  background: rgba(255, 77, 46, .08);
}
.account-flash a { color: var(--pace-dark); font-weight: 600; }

.account-card {
  margin: 22px 0;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.account-login {
  max-width: 680px;
}
.account-dashboard-shell {
  margin: 24px 0;
}
.account-card-title {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 6px;
}
.account-panel-head p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.45;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}
.account-stack {
  display: grid;
  gap: 18px;
}
.account-panel {
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(22, 21, 15, .05);
  padding: 20px 22px;
}
.account-panel-primary {
  border-color: color-mix(in srgb, var(--pace) 32%, var(--sand) 68%);
}
.account-panel-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.account-form { margin: 14px 0 4px; }
.account-field {
  display: block;
  border: 0;
  padding: 0;
  margin: 0 0 16px;
}
.account-field legend { padding: 0; }
.account-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--slate);
  margin-bottom: 6px;
}
.account-hint { font-weight: 400; color: var(--slate); }

.account-form input[type="email"],
.account-form input[type="text"],
.account-form input[type="number"],
.account-form select {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.account-form input[type="radio"],
.account-form input[type="checkbox"] {
  accent-color: var(--pace);
}
.account-form input:focus,
.account-form select:focus {
  outline: 2px solid var(--pace);
  outline-offset: 1px;
  border-color: var(--pace);
}

.account-radios { display: flex; flex-wrap: wrap; gap: 16px; }
.account-radios label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }

.account-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 16px;
  max-width: 560px;
}
.account-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }

/* RSD-153: real brand multiselect as toggle chips ("leave empty = all"). */
.account-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
}
.account-chip {
  font: inherit;
  font-size: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.account-chip:hover { border-color: var(--pace); }
.account-chip.is-on {
  background: var(--pace-soft);
  border-color: var(--pace);
  color: var(--pace-dark);
  font-weight: 600;
}
.account-chip:focus-visible { outline: 2px solid var(--pace); outline-offset: 1px; }

/* RSD-153: search-as-you-type shoe picker for specific-shoe watch alerts. */
.shoe-search { position: relative; }
.shoe-search-results {
  list-style: none;
  margin: 4px 0 0;
  padding: 4px;
  max-width: 420px;
  max-height: 280px;
  overflow-y: auto;
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.shoe-search-opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.shoe-search-opt:hover { background: var(--pace-soft); }
.shoe-search-opt-name { font-weight: 500; color: var(--ink); }
.shoe-search-opt-meta { font-size: 12px; color: var(--slate); flex-shrink: 0; }
.shoe-search-picked {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink);
}
.shoe-search-clear {
  font: inherit;
  font-size: 13px;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--pace-dark);
  cursor: pointer;
}
.shoe-search-clear:hover { border-color: var(--pace); }

.account-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.account-row .account-field { flex: 1 1 150px; }
.account-row .account-field input,
.account-row .account-field select { max-width: 100%; }

.account-dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.account-email { font-size: 18px; font-weight: 600; color: var(--ink); }
.account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.account-summary div {
  background: var(--pace-soft);
  border: 1px solid color-mix(in srgb, var(--pace) 24%, var(--sand) 76%);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
}
.account-summary strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.account-summary span {
  display: block;
  color: var(--slate);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: 5px;
}

.account-muted { color: var(--slate); font-size: 14px; }
.account-empty {
  margin: 8px 0 0;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--paper) 72%, var(--card) 28%);
  color: var(--slate);
  font-size: 14px;
}
.account-preview {
  margin: 4px 0 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--pace);
  border-radius: var(--radius-sm);
  background: var(--pace-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.account-toggle-row {
  padding: 13px 14px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--pace); color: var(--pace-dark); }

.alert-list { margin: 8px 0 4px; }
.favorite-list { margin: 8px 0 4px; }
.favorite-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--paper);
}
.favorite-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.favorite-main img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: var(--card);
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
}
.favorite-main strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}
.favorite-main small {
  display: block;
  color: var(--slate);
  font-size: 13px;
  margin-top: 2px;
}
.favorite-actions { display: flex; gap: 8px; flex-shrink: 0; }
.alert-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--paper);
  box-shadow: 0 5px 14px rgba(22, 21, 15, .04);
}
.alert-item.is-paused { opacity: .65; }
.alert-item-label { font-weight: 600; color: var(--ink); }
.alert-item-summary { font-size: 14px; color: var(--slate); margin-top: 2px; }
.alert-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.alert-paused-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--slate);
}

@media (max-width: 560px) {
  .alert-item { flex-direction: column; align-items: flex-start; }
  .favorite-item { flex-direction: column; align-items: flex-start; }
  .account-summary,
  .account-grid { grid-template-columns: 1fr; }
  .account-panel { padding: 18px 16px; }
  .account-dash-head { flex-direction: column; }
}
