/* Daily Life Doc, round 13 (zone F1): the place Settings (js/settings/settings-page.js, settings-defaults.js): one
   card per part (Account, Defaults, Notify me, Telegram, Calls from zone B4), each with its small title; the fields
   tinted, not bordered; Defaults as rows of plain sentences with their label, Remove shown only while a sentence is
   edited (round 13, FX-F2); Sign out at the foot. */

.st-page { max-width: 640px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 12px; }
.st-card { padding: 14px 16px; border-radius: 16px; background: var(--card); }
.st-card h3 { margin: 0 0 10px; font-size: var(--t-sm); font-weight: 600; color: var(--ink2); }
.st-card .ac-f:last-of-type { margin-bottom: 10px; }
.st-card .nt-row:first-child { padding-top: 0; }
.st-out { align-self: flex-start; }

/* Defaults: one sentence per row. */
.df-list { display: flex; flex-direction: column; margin-bottom: 10px; }
.df-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: start; padding: 8px 0; border-top: 1px solid var(--cardline); }
.df-row:first-child { border-top: 0; padding-top: 0; }
.df-row b { grid-column: 1; font-size: var(--t-xs); font-weight: 600; color: var(--ink3); }
.df-row textarea { grid-column: 1; width: 100%; min-height: 24px; padding: 2px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: var(--t-s);
  line-height: 1.45; resize: none; outline: none; overflow: hidden; }
.df-row textarea:focus { background: var(--field); border-radius: 8px; padding: 2px 8px; margin: 0 -8px; width: calc(100% + 16px); }
.df-x { display: none; grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.df-row:focus-within .df-x { display: inline-flex; animation: dd-fade 160ms ease both; }

/* Round 16 (16-E, U1): Usage (js/settings/settings-use.js): the month and its total, then the table Who · AI ·
   Speech · Texts · Total in tabular figures; a tapped row opens By kind and By day under itself. */
.us-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: var(--t-s); font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.st-card .num, .us-head .num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.us-tbl { margin: 0 -4px; }
.us-tbl table { width: 100%; border-collapse: collapse; font-size: var(--t-xs); }
.us-tbl th { padding: 6px 4px; font-weight: 500; color: var(--ink3); text-align: left; border-bottom: 1px solid var(--cardline); }
.us-tbl td { padding: 9px 4px; border-top: 1px solid var(--cardline); color: var(--ink); vertical-align: top; }
.us-tbl tbody tr:first-child td { border-top: 0; }
.us-row { cursor: pointer; transition: background-color var(--m-press) ease; }
.us-row:hover td, .us-row[aria-expanded="true"] td { background: var(--app2); }
.us-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.us-who { font-size: var(--t-s); overflow-wrap: anywhere; }
.us-tot { font-weight: 600; }
.us-more { color: var(--ink3); font-size: var(--t-xs); }
.us-what i { font-style: normal; }
.us-none { margin: 0; font-size: var(--t-xs); color: var(--ink3); }
.us-sub > td { border-top: 0; padding: 2px 4px 12px; background: var(--app2); }
.us-open { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; animation: dd-fade 160ms ease both; }
.us-part h4 { margin: 4px 0; font-size: var(--t-2xs); font-weight: 600; color: var(--ink3); }
.us-part ul { list-style: none; margin: 0; padding: 0; }
.us-part li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 3px 0; font-size: var(--t-xs); }
@media (max-width: 520px) {
  .us-open { grid-template-columns: 1fr; }
  .us-tbl th, .us-tbl td { padding-left: 3px; padding-right: 3px; }
  /* The Total stands apart from the Texts column (W1 polish 7: "— $0.05" touched at 340 px). */
  .us-tbl th:last-child, .us-tbl td.us-tot { padding-left: 10px; }
  .us-what { display: block; }
  .us-what i { display: none; }
}

/* Round 16 (zone 16-D, P4): Settings → Payments (js/settings/settings-pay.js): "Test mode · On", one row per price
   (Name, $ Price, Monthly or Once, then the Description), tinted borderless fields, Remove while a row is edited. */
.py-mode { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; font-size: var(--t-s); }
.py-mode b { font-size: var(--t-xs); font-weight: 600; color: var(--good-d); }
.py-list { display: flex; flex-direction: column; }
.py-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; align-items: center; padding: 10px 0;
  border-top: 1px solid var(--cardline); }
.py-top { grid-column: 1; display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 6px; }
.py-row input, .py-row select, .py-row textarea { min-width: 0; min-height: 36px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--field); color: var(--ink);
  font: inherit; font-size: var(--t-s); outline: none; }
.py-row input:focus, .py-row select:focus, .py-row textarea:focus { box-shadow: inset 0 0 0 1.5px var(--sage); }
.py-name { font-weight: 500; }
.py-amt { display: flex; align-items: center; border-radius: 10px; background: var(--field); }
.py-amt span { padding-left: 10px; color: var(--ink3); font-size: var(--t-s); }
.py-amt input { width: 100%; padding-left: 3px; background: none; font-variant-numeric: tabular-nums; }
.py-amt:focus-within { box-shadow: inset 0 0 0 1.5px var(--sage); }
.py-amt input:focus { box-shadow: none; }
.py-covers { grid-column: 1; display: block; width: 100%; box-sizing: border-box; padding: 8px 10px !important; line-height: 1.35; resize: none; overflow: hidden; }
.py-x { display: none; grid-column: 2; grid-row: 1 / span 2; }
.py-row:focus-within .py-x { display: inline-flex; animation: dd-fade 160ms ease both; }
.py-acts { display: flex; gap: 8px; margin-top: 10px; }
.py-acts:empty { display: none; }
@media (max-width: 480px) {
  .py-top { grid-template-columns: minmax(0, 1fr) 84px; }
  .py-top select { grid-column: 1 / -1; }
}
