/* Settings, Profile (v2 build item 8). Prefixes .st-, .pf-. */
.st-sec{font-size:.6875rem;font-weight:700;color:var(--violet);text-transform:uppercase;
  letter-spacing:.08em;margin:28px 0 10px}
.st-card{border-radius:20px;padding:8px 32px}
/* The row wraps by its own width, not the window's: the text
   size setting applies CSS zoom to the view, which halves the
   row's effective width at Huge without moving any media
   query's viewport, so the side-by-side row crushed its label
   column to nothing beside a wide control (2026-12-02). With
   a basis on the texts, a control that no longer fits drops
   under the label — the same shape the phone rule below draws
   — at any window width. */
.st-row{display:flex;align-items:center;gap:14px;min-height:64px;padding:0;flex-wrap:wrap}
.st-texts{flex:1 1 180px;min-width:0}
.st-texts b{font-size:1rem;font-weight:700}
.st-blurb{margin:2px 0 0!important;font-size:.75rem}
.st-static{color:var(--muted);font-weight:700;font-size:.875rem}
/* The Settings links, steppers and ladder rungs stand 44px
   (UI audit cluster 7; the tap-target batch extended to this
   surface 2026-11-24): the links and rungs hand the growth
   back with equal negative margins so no row moves; the
   stepper buttons grow into the row's slack. The same link
   rule serves the Profile word list's Remove buttons. */
.st-link{color:var(--violet);font-weight:700;font-size:.875rem;text-decoration:none;background:none;border:0;
  font-family:inherit;cursor:pointer;padding:0;white-space:nowrap;display:inline-flex;align-items:center;min-height:44px;margin:-2px 0}
.st-danger{color:#c2432b}
.st-stepper{display:flex;align-items:center;gap:8px}
.st-step{width:44px;height:44px;border-radius:10px;border:0;
  background:var(--lav-1);color:var(--violet);font:inherit;font-size:1rem;font-weight:800;cursor:pointer}
.st-step-val{font-weight:800;font-size:.9375rem;min-width:100px;text-align:center}
.st-ladder{display:flex;gap:8px;flex-wrap:wrap}
.st-rung{height:44px;margin:-4px 0;padding:0 14px;border-radius:10px;border:1px solid var(--lav-2);
  background:var(--white);color:var(--muted);font:inherit;font-size:.75rem;font-weight:700;cursor:pointer}
.st-rung-on{background:var(--violet);border-color:var(--violet);color:#fff}
.st-switch{width:52px;height:30px;border-radius:999px;border:0;padding:0;flex:none;
  background:var(--lav-2);cursor:pointer;position:relative;font-size:0}
.st-switch::after{content:"";position:absolute;top:4px;left:4px;width:22px;height:22px;
  border-radius:50%;background:#fff;transition:left .15s ease}
.st-switch.st-on{background:var(--violet)}
.st-switch.st-on::after{left:26px}
.st-days{display:flex;gap:6px;flex-wrap:wrap}

/* Profile section boundaries share one rhythm — 24px (--sp-5,
   the Today grid gap): the title, the identity card, the level/
   words columns, coverage, the Pro card and the link list were
   4/0/24/0/12 apart, two card pairs touching outright (San,
   2026-11-20). The link list keeps its own 12px between rows. */
/* The head wraps by its own width for the same reason the
   settings rows do (see .st-row): at the large text sizes the
   zoom halves the card's effective width, the fixed avatar
   and button left the titles a sliver, and the name spilled
   past the card edge. The button's auto margin already keeps
   it at the right edge, so a growing titles box changes
   nothing when everything fits on one line. */
.pf-head{display:flex;gap:24px;align-items:center;min-height:130px;margin-top:20px;flex-wrap:wrap}
.pf-head .pa-titles{min-width:0;flex:1 1 180px}
.pf-head .pa-line{overflow-wrap:anywhere}
.pf-avatar{display:grid;place-items:center;width:70px;height:70px;border-radius:50%;
  background:var(--violet);color:var(--white);font-size:1.875rem;font-weight:800;flex:none}
.pf-head .pf-name{font-size:1.5rem;font-weight:800}
.pf-add[hidden]{display:none}
.pf-sub{font-size:.875rem}
.pf-name-row{display:flex;align-items:center;gap:12px}
/* The input's automatic minimum as a flex item is its
   intrinsic width (~185px from the default size), which with
   the Save button and the gap is wider than the titles column
   on a phone: the edit row overflowed the card and clipped
   Save at the screen edge (cluster-7 defect, 2026-11-24).
   min-width:0 lets the input shrink to the space the row
   actually has; Save keeps its full size. */
.pf-name-input{flex:1;min-width:0}
/* With Cancel beside Save (flow Q16, 2026-11-24), the
   phone-width row cannot hold the field and both full
   buttons on one line — the titles column is about 198px
   there. On a phone the field takes its own line and the
   two buttons sit beside each other under it, both fully
   inside the card (see the 640px block below); wider
   screens keep the single line. */
.pf-edit-btn{margin-left:auto;flex:none;width:218px;max-width:100%;height:56px;border-radius:16px;
  background:var(--white);border:1px solid var(--lav-2);color:var(--ink);
  font:inherit;font-size:.9375rem;font-weight:700;cursor:pointer}
.pf-cols{display:flex;gap:24px;align-items:stretch;margin-top:24px}
.pf-half{flex:1;min-width:0}
.pf-half:first-child{flex:0 0 540px}
.pf-big{font-size:1.625rem;font-weight:800;margin:6px 0 8px}
.pf-level-line{line-height:1.5}
.pf-repick{display:flex;align-items:center;gap:16px;margin-top:16px;flex-wrap:wrap}
.pf-repick-btn{flex:none;width:200px;height:44px;border-radius:12px;background:var(--lav-1);
  color:var(--violet);font-size:.875rem;font-weight:700;text-decoration:none;
  display:grid;place-items:center}
.pf-repick-note{font-size:.75rem}
.pf-words-label{color:#7a5fa0}
.pf-word{display:flex;align-items:center;gap:12px;min-height:40px}
.pf-word-main{flex:1;display:flex;align-items:baseline;min-width:0}
.pf-word-glyph{font-family:"Noto Sans JP",sans-serif;font-size:1rem;font-weight:700;
  flex:0 0 110px;overflow-wrap:anywhere}
.pf-word-sub{font-family:"Noto Sans JP",sans-serif;font-size:.8125rem;color:var(--muted)}
.pf-add{display:grid;gap:9px;margin-top:12px}
.pf-add-link{background:none;border:0;padding:0;margin:8px 0 -2px;color:#7a5fa0;min-height:44px;
  font:inherit;font-size:.875rem;font-weight:700;cursor:pointer;text-align:left}
/* The Profile text inputs (the name field, the Add-a-word
   form) are bare native inputs and measured 21px tall (UI
   audit cluster 7; tap-target batch extension 2026-11-24):
   they stand 44px tall like the Library's page-number input. */
.ak-input{min-height:44px}
.pf-words-note{font-size:.75rem;margin-top:10px}
.pf-coverage{margin-top:24px}
.pf-cov-row{display:flex;align-items:center;gap:16px;min-height:52px;padding:6px 0;border-top:1px solid var(--lav-2)}
.pf-cov-row:first-of-type{border-top:0}
.pf-cov-chip{flex:none;background:var(--lav-1);color:var(--violet);font-size:.8125rem;font-weight:800;
  border-radius:999px;padding:4px 12px}
.pf-cov-current .pf-cov-chip{background:var(--violet);color:var(--white)}
.pf-cov-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.pf-cov-start{color:var(--violet);font-size:.8125rem;font-weight:700}
.pf-cov-locked .pf-cov-head b{color:var(--muted)}
.pf-pro{display:flex;align-items:center;gap:24px;background:var(--violet-deep);
  border-color:transparent;min-height:130px;margin-top:24px;flex-wrap:wrap}
.pf-pro-label{color:var(--lav)}
.pf-pro-title{color:#fff;font-size:1.25rem;font-weight:800;margin:4px 0}
.pf-pro-line{color:var(--lav);font-size:.875rem}
.pf-pro-btn{margin-left:auto;flex:none;width:218px;max-width:100%;height:56px;border-radius:16px;
  background:var(--lime);color:var(--violet-deep);font-size:1rem;font-weight:800;
  text-decoration:none;display:grid;place-items:center}
/* The link row wraps by its own width too: the title's fixed
   300px plus a squeezed sub-label inside a fixed 64px row
   clipped the sub at the large text sizes. The title keeps
   its 300px when it fits (flex-basis, shrink allowed, never
   grows); when the sub no longer fits beside it, the sub
   drops to its own line and the row grows — the shape the
   phone rule below already draws. */
.pf-link{display:flex;align-items:center;min-height:64px;border-radius:16px;
  padding:0 32px;margin-top:12px;text-decoration:none;color:var(--ink);flex-wrap:wrap;row-gap:4px}
.pf-pro + .pf-link{margin-top:24px}
.pf-link-title{font-size:1rem;font-weight:700;flex:0 1 300px;min-width:0}
.pf-link-sub{font-size:.875rem;flex:1 1 160px;min-width:0}
.pf-link-arrow{margin-left:auto;color:var(--muted);font-size:1rem}
@media (max-width:900px){.pf-cols{flex-direction:column}.pf-half:first-child{flex:1}}
.pf-link:first-of-type{border-top:0}

@media (max-width:640px){
  /* Settings rows stack on a phone: label and blurb get the
     full width, the control sits under them. Side-by-side, a
     wide control (the day chips, the speed ladder) squeezed
     the label column to one word per line. */
  .st-row{flex-direction:column;align-items:flex-start;gap:8px;padding:10px 0}
  /* In the column direction the base rule's flex basis would
     set the texts' height, not their width — hand the height
     back to the content. */
  .st-texts{min-width:0;flex:0 1 auto}
  /* The name edit row wraps on a phone (see .pf-name-input
     above): the field takes the full line, Cancel and Save
     sit beside each other under it with a little less side
     padding so both keep clear of the card edge. Their
     height is the .btn height, unchanged. */
  .pf-name-row{flex-wrap:wrap}
  .pf-name-input{flex:1 1 100%}
  .pf-name-row .btn{padding-left:18px;padding-right:18px}
}
@media (max-width:900px){
  .pf-head{flex-wrap:wrap}
  .pf-edit-btn{width:100%;margin-left:0}
  .pf-link{height:auto;min-height:64px;padding:12px 20px;flex-wrap:wrap}
  .pf-link-title{flex:1 1 50%;order:1}
  .pf-link-arrow{order:2}
  .ab-arrow{order:2;margin-left:auto}
  .pf-link-sub{order:3;flex:1 1 100%;margin-top:2px}
  .pf-pro{flex-wrap:wrap}
  .pf-pro-btn{width:100%;margin-left:0}
  .st-card{padding:8px 16px}
  .st-stepper{flex:none}
  .st-step-val{min-width:64px}
}

.pf-pro .pf-pro-label{color:var(--lav)}
.pf-pro .pf-pro-line{color:var(--lav-1)}

.st-foot{color:var(--muted);font-size:.8125rem;text-align:center;margin:34px 0 0;
  padding:18px 0 8px;border-top:1px solid var(--lav-2)}
