/* Account panels of the settings dialog (account.js): signatures, filters,
   vacation reply, contacts. Tokens: tokens.css. */

.settings-tabs {
  display: flex;
  gap: 4px;
  margin: 0 -4px 16px;
  padding: 4px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--surface-2);
}
.settings-tab {
  flex: none;
  padding: 7px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.settings-tab[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-1); }

.panel { display: grid; gap: 12px; }
.panel-status { display: grid; place-items: center; gap: 10px; min-height: 160px; }
.stacked { display: grid; gap: 4px; font-size: 14px; }
.stacked > span { color: var(--muted); }
.field.area { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; line-height: 1.5; }
.small-field { width: auto; height: 36px; padding: 0 8px; }
.identity { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.identity legend { padding: 0 6px; font-weight: 600; }

.rule-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.rule {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 6px 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.rule-text { display: grid; flex: 1; min-width: 0; }
.rule-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rule-editor { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); }
.rule-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rule-row > .field { flex: 1 1 180px; width: auto; }
.rule-row > .small-field { flex: none; }
.rule-row > .stacked { flex: 1 1 160px; }
.rule-head { margin: 4px 0 0; font-weight: 600; }
.check-label { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 14px; cursor: pointer; }
.check-label input { width: 18px; height: 18px; accent-color: var(--accent); }

@media (pointer: coarse) {
  .settings-tab { padding: 12px 16px; }
  .check-label { min-height: 44px; }
  .small-field { height: 44px; }
}
