/* ==========================================================================
   Your account (account.html) and Privacy (privacy.html), PASS 3. Made by PC 1, Oct 16 2026.
   LOAD ORDER (in <head>):  fonts.css, portal.css, client-pass3.css, account-pass3.css.
   Layout and sizes only. Every color and font comes from the names of portal.css and client-pass3.css
   (--ink, --soft, --rule, --line, --p3-gold, --p3-gold-ink ...), so the four looks keep working:
   frosted glass, Night sky, the gold frame of Engraved night, and cream paper with navy words.
   Both pages are a reading column (.p3-narrow, 760 wide on a computer), cards one under the other.
   This file replaces what account.html took from papers.css (papers.css is the Send papers page's).
   ========================================================================== */


/* ==========================================================================
   1  YOUR ACCOUNT: the column
   ========================================================================== */

.acct-you,
.acct-cards {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-width: 0;
}

/* a line that should not end on one lonely word */
.acct p,
.privacy-words p,
.privacy-words li {
  text-wrap: pretty;
}


/* ==========================================================================
   2  WHO IS SIGNED IN: a gold ring, "Signed in as", the name in the serif, the email under it
   ========================================================================== */

.acct-who-head {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.acct-ring {
  display: grid;
  place-items: center;
  flex: none;
  width: 4.25rem;
  height: 4.25rem;
  border: 2px solid var(--p3-gold);
  border-radius: 50%;
  background: var(--p3-chip-ground);
  color: var(--p3-gold-ink);
}

.acct-ring .icon {
  width: 32px;
  height: 32px;
  stroke-width: 1.7;
}

.acct-who-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.acct .you-name {
  color: var(--ink);
  font: var(--w-head) 2.25rem/1.15 var(--serif);
  letter-spacing: -.008em;
  overflow-wrap: anywhere;
}

.acct .you-mail {
  color: var(--soft);
  overflow-wrap: anywhere;
}

.acct .you-note {
  color: var(--soft);
}

.acct-who .name-btn {
  align-self: flex-start;
}


/* ==========================================================================
   3  WHO GETS YOUR EMAILS: one row per address, hairlines between them
   ========================================================================== */

.acct-mails {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* the rows keep the class file-row (older checkers look for it), with their own pass-3 layout */
.acct-mails > .file-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-height: 64px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}

.acct-mails > .file-row:first-child {
  border-top: 0;
}

.acct-mails .file-words {
  flex: 1 1 260px;
  min-width: 0;
}

.acct-mails .file-name {
  display: block;
  color: var(--ink);
  font-weight: var(--w-strong);
  overflow-wrap: anywhere;
}

.acct-mail-sub {
  display: block;
  color: var(--soft);
  font-size: var(--text-quiet);
}

.acct-mails .btn {
  flex: none;
}

.mail-gone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.mail-gone .thanks {
  flex: 1 1 300px;
  min-width: 0;
}

.acct .file-name {
  overflow-wrap: anywhere;
}

.mail-add .send-row > .btn {
  min-width: 132px;
}

.acct .q-wait {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--soft);
}

.acct .q-wait > .icon {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  color: var(--p3-gold-ink);
}

.acct .thanks > span,
.acct .error > span {
  min-width: 0;
}


/* ==========================================================================
   3b  WHICH EMAILS YOU GET (change 018): one row per email, its words and an On / Off switch.
   The switch is the same shape as the owner screen's (a pill with a sliding knob, the word On or Off beside it),
   made from the shared colors of portal.css, so the four looks keep working. 56px high: easy to press.
   ========================================================================== */

.acct-notices-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.acct-notice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  min-height: 72px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}

.acct-notice-row:first-child {
  border-top: 0;
}

.acct-notice-words {
  flex: 1 1 220px;
  min-width: 0;
  color: var(--ink);
  font-weight: var(--w-strong);
}

/* change 018, phase 2: "Off for your whole business for now." under a part the company switched off, and
   "For <company>" over the card of a login with 2 or more companies */
.acct-notice-off {
  display: block;
  margin-top: 2px;
  color: var(--soft);
  font-weight: 400;
}

.acct-notices-for {
  margin: 0 0 -6px;
  color: var(--soft);
  font-weight: var(--w-strong);
}

.acct-switch {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 12px;
  min-width: 128px;
  min-height: 56px;
  padding: 6px 18px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--box-bg, transparent);
  color: var(--ink);
  font: 600 var(--text)/1 var(--font-ui);
  cursor: pointer;
}

.acct-switch[aria-busy="true"] {
  cursor: progress;
}

.acct-switch-track {
  position: relative;
  flex: none;
  width: 58px;
  height: 34px;
  border: 1.5px solid var(--field-line);
  border-radius: 999px;
  background: var(--field-bg);
}

.acct-switch-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--quiet);
  transition: transform .15s ease;
}

.acct-switch[aria-checked="true"] .acct-switch-track {
  border-color: var(--tick-bg);
  background: var(--tick-bg);
}

.acct-switch[aria-checked="true"] .acct-switch-knob {
  background: var(--tick-ink);
  transform: translateX(24px);
}

/* polish (Oct 24 2026): her part is on, but the company switched it off for now: "Paused", the knob stays on her
   side and the track is not filled, so it never reads as on */
.acct-switch[data-company-off][aria-checked="true"] .acct-switch-track {
  border-style: dashed;
  border-color: var(--field-line);
  background: var(--field-bg);
}

.acct-switch[data-company-off][aria-checked="true"] .acct-switch-knob {
  background: var(--quiet);
}

@media (prefers-reduced-motion: reduce) {
  .acct-switch-knob {
    transition: none;
  }
}

/* a link inside the calm lock line keeps the line's color, underlined */
.p3-note .link {
  color: var(--ink);
}

/* a link in the middle of a sentence ("ask us.", "Ask us and"): no side padding, so no gap before the
   full stop; the top and bottom padding stay for the tap height */
.acct .you-note .link,
.p3-note .link {
  padding-inline: 0;
}

/* the list is full: the email box looks as switched off as the Add button beside it (dashed, no fill),
   and the reason stands above it */
.mail-add .input:disabled {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  cursor: not-allowed;
}

.mail-add #mail-full {
  margin: 0;
}


/* ==========================================================================
   4  YOUR LOOK: the four looks, each a small true picture (the same pieces as the "Your look" chooser of
      portal.js) with its name beside it. A calm list, so a setting does not outweigh the page: one under
      the other on a phone, two by two from 700 wide. The look in use has the same ring as in the header
      chooser (portal.css, var(--on)), a gold check and the words "Your look".
   ========================================================================== */

.acct-looks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.acct-looks .look-card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  grid-template-areas:
    "pic name"
    "pic state";
  align-items: center;
  gap: 2px 16px;
  min-height: 48px;
  padding: 10px 14px 10px 10px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--p3-line-bg);
}

.acct-looks .mini {
  grid-area: pic;
}

.acct-looks .look-name {
  grid-area: name;
  align-self: end;
  font-size: 1.375rem;
}

.acct-looks .look-state {
  grid-area: state;
  align-self: start;
}

@media (min-width: 700px) {
  .acct-looks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.acct-looks .look-card:hover {
  border-color: var(--p3-gold);
}

/* the look in use: the chooser's own ring (portal.css), restated here because the rule above sets the border */
.acct-looks .look-card[aria-pressed="true"] {
  border-color: var(--on);
}

.acct-looks .look-card[aria-pressed="true"] .look-state .icon {
  color: var(--p3-gold-ink);
}

.acct-looks .look-card:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.acct-looks .look-name {
  font-family: var(--serif);
}


/* ==========================================================================
   5  PASSWORD AND SIGNING OUT
   ========================================================================== */

.keys .p3-pair {
  max-width: 640px;
}


/* ==========================================================================
   6  POP-UPS (Change my name, Change my password): the pass-3 buttons, a calm gap
   ========================================================================== */

.acct-pop .actions {
  gap: 12px;
}


/* ==========================================================================
   7  PRIVACY: one reading card. Its inside is ALSO shown by "Set up your login" (signin.html takes the
      words of <article id="words">), so the inside keeps the plain portal.css names (.h2, .list, .box,
      .notice) and this file only dresses them on privacy.html itself.
   ========================================================================== */

.privacy-words.prose > .h2 {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font: var(--w-head) 1.75rem/1.2 var(--serif);
  letter-spacing: -.006em;
}

.privacy-words .privacy-firm .h2 {
  font: var(--w-head) 2rem/1.15 var(--serif);
}

.privacy-words .privacy-firm {
  display: flex;
  align-items: center;
  gap: 16px;
}

.privacy-words .lead {
  color: var(--soft);
}

/* "In short": the three promises, with a gold edge like the quote card of the pass-3 report */
.privacy-words .privacy-short {
  margin-top: 24px;
  padding: 18px 22px 20px 24px;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--p3-gold);
  border-radius: 0 var(--p3-radius) var(--p3-radius) 0;
  background: var(--p3-quote-bg);
}

.privacy-words .privacy-short .h3 {
  color: var(--p3-gold-ink);
  font: var(--w-head) 1.5rem/1.2 var(--serif);
}

/* how to delete: a calm inner box */
.privacy-words .privacy-delete {
  padding: 18px 22px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--p3-radius);
  background: var(--p3-chip-ground);
}

.privacy-words .privacy-delete > p + p {
  margin-top: 12px;
}

/* the last line: when the words last changed + the trademark line (Oct 20 2026, Intuit's live keys) */
.privacy-words .privacy-tm {
  margin-top: 26px;
  color: var(--soft);
  font-size: .875rem;
}

.privacy-words .list > li::before {
  background: var(--p3-gold);
}

.privacy-words .tag {
  margin-left: 4px;
  vertical-align: 1px;
}

/* demo only: a line the owner still has to confirm is marked as a placeholder; the dashed line keeps
   air around the words, and the tag sits on its own line so it stays neat when it wraps */
.privacy-words [data-placeholder] {
  margin-block: 10px;
  padding: 6px 8px;
  outline: 2px dashed var(--warn-line);
  outline-offset: 0;
  border-radius: 0.25rem;
}

.privacy-words [data-placeholder] .tag {
  display: table;
  margin: 8px 0 0;
  border-radius: 8px;
}

.privacy-end {
  display: flex;
}


/* ==========================================================================
   8  PHONE (up to 699 wide): every button the full width, the email rows one under the other
   ========================================================================== */

@media (max-width: 699px) {
  .acct-who-head {
    align-items: flex-start;
    gap: 14px;
  }

  .acct-ring {
    width: 3.25rem;
    height: 3.25rem;
  }

  .acct-ring .icon {
    width: 26px;
    height: 26px;
  }

  .acct .you-name {
    font-size: 1.875rem;
  }

  .acct-who .name-btn {
    align-self: stretch;
  }

  .acct-mails .btn {
    width: 100%;
  }

  .privacy-words.prose > .h2 {
    margin-top: 28px;
    padding-top: 24px;
    font-size: 1.5625rem;
  }

  .privacy-words .privacy-firm .h2 {
    font-size: 1.75rem;
  }

  .privacy-words .privacy-short,
  .privacy-words .privacy-delete {
    padding: 16px 16px 18px 18px;
  }
}

@media print {
  .acct-looks,
  .acct-ring {
    display: none !important;
  }
}

/* An email address breaks after the @ first: the part after it is one inline box that moves to the next line whole,
   and breaks again (before a dot) only when it is wider than the line (PC 2 fix step, Oct 17) */
.acct .mail-domain {
  display: inline-block;
  max-width: 100%;
}
