/* The account, rebuilt (27 Sep): top navigation, the menu, Home, You and the
 * organisation's page. Colours are the page's own tokens (account.html :root),
 * so dark mode follows. */

#signedIn { padding-top: 0; }
#signedIn > .acct-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; margin: 0 0 4px; padding: 14px 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); }
.acct-nav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.acct-nav::-webkit-scrollbar { display: none; }
.acct-nav [role=tab] { all: unset; box-sizing: border-box; cursor: pointer; height: 38px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--body); color: var(--soft); white-space: nowrap; border: 1px solid transparent; transition: background .15s ease, color .15s ease; }
.acct-nav [role=tab]:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.acct-nav [role=tab][aria-selected=true] { background: var(--card); border-color: var(--line); color: var(--ink); font-weight: 700; }
.acct-nav [role=tab]:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.acct-nav__mark { width: 22px; height: 22px; border-radius: 50%; background: #eceeea; color: #14171c; border: 2px solid #fff; font: 700 10px var(--body); display: grid; place-items: center; }
.acct-top__end { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.acct-new { height: 42px; padding: 0 18px; border-radius: 10px; background: var(--card); color: var(--ink); border: 1px solid var(--line); font: 700 15px var(--body); display: inline-flex; align-items: center; gap: 8px; text-decoration: none; box-shadow: none; }
.acct-new:hover { background: var(--paper); color: var(--ink); }
.acct-new--quiet { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; font-weight: 600; }
.home-head__links { display: inline-flex; gap: 16px; }
.acct-new--quiet:hover { background: var(--paper); color: var(--ink); }
.acct-menu-wrap { position: relative; }
.acct-avatar { width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 2px solid var(--ember); background: var(--ink); color: var(--paper); font: 800 15px var(--body); }
.acct-avatar:hover { border-color: var(--ember-deep); }
.acct-menu { position: absolute; right: 0; top: 52px; z-index: 40; width: 290px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 2px 6px rgba(20,23,28,.06), 0 24px 48px -16px rgba(20,23,28,.28); display: flex; flex-direction: column; }
.acct-menu[hidden] { display: none; }
.acct-menu__who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; }
.acct-menu__who b { font-size: 15px; }
.signed .acct-menu__who #who { margin: 0; font: 400 13px var(--body); color: var(--soft); overflow-wrap: anywhere; }
.acct-menu [role=menuitem] { all: unset; box-sizing: border-box; cursor: pointer; padding: 10px 12px; border-radius: 10px; font: 600 15px var(--body); color: var(--ink); display: flex; align-items: center; justify-content: space-between; }
.acct-menu [role=menuitem]:hover, .acct-menu [role=menuitem]:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.acct-menu [role=menuitem][hidden] { display: none; }
.acct-menu .acct-menu__admin { margin-top: 4px; background: var(--ember-soft); color: var(--ember-deep); font-weight: 700; }
.acct-menu .acct-menu__admin span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.acct-menu .acct-menu__out { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: var(--soft); }
.acct-body { padding: 30px 0 0; min-width: 0; }
.acct-back { all: unset; cursor: pointer; font: 600 14px var(--body); color: var(--soft); margin-bottom: 14px; display: inline-block; }
.acct-back:hover { color: var(--ink); }

.muted { color: var(--soft); font-size: 13.5px; margin: 6px 0; }
.home-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.home-card h2 { margin: 0; font: 800 18px var(--body); letter-spacing: -.01em; }
.btn-ember, .btn-quiet { height: 40px; padding: 0 16px; border-radius: 10px; font: 700 14px var(--body); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer; text-decoration: none; }
.btn-ember { background: var(--ember); border: 1px solid var(--ember); color: var(--ember-ink); }
.btn-ember:hover:not(:disabled) { background: var(--ember-deep); border-color: var(--ember-deep); }
.btn-quiet { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.btn-quiet:hover { border-color: var(--soft); }

/* Home */
.home { display: flex; flex-direction: column; gap: 28px; align-items: stretch; min-width: 0; }
.home-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 18px; align-items: stretch; }
.home__main, .home__side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.home__hello h1 { margin: 0; font: 800 clamp(30px, 3.4vw, 40px)/1.1 var(--display); letter-spacing: -0.04em; }
.home__hello p { margin: 8px 0 0; font-size: 17px; color: var(--soft); }
.home-news { padding: 8px; }
.home-card__head { padding: 14px 16px 10px; display: flex; align-items: baseline; justify-content: space-between; }
.home-count { font: 800 13px var(--body); color: var(--ember-ink); background: var(--ember); border-radius: 999px; padding: 3px 10px; }
.home-empty { margin: 4px 16px 16px; color: var(--soft); font-size: 15px; }
.news { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 14px; color: var(--ink); text-decoration: none; transition: background .15s ease; }
.news:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.news--unread:first-child { background: color-mix(in srgb, var(--ember-soft) 45%, var(--card)); }
.news__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: #FBE3EC; color: #9C1249; }
.news--comments .news__icon { background: #E0F2EF; color: #0F7B6C; }
.news--back .news__icon { background: #E3EEFC; color: #1557B8; }
.news--decide .news__icon { background: #FDEBDC; color: #9E4600; }
.news__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news__text b { font-size: 16px; overflow-wrap: anywhere; }
.news__text span { font-size: 14px; color: var(--soft); }
.news__act { flex: none; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: 700 14px var(--body); display: inline-flex; align-items: center; }
.news--unread .news__text b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); margin: 0 8px 2px 0; vertical-align: middle; }
.news--unread:first-child .news__act { background: var(--ember); border-color: var(--ember); color: var(--ember-ink); }
.home-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.home-head h2 { margin: 0; font: 800 18px var(--body); }
.home-head a { font-weight: 600; color: var(--ember-deep); }
.home-recent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recent { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .16s ease, box-shadow .16s ease; }
.recent:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.recent__th { height: 150px; background: color-mix(in srgb, var(--ink) 5%, var(--paper)); display: grid; place-items: center; }
.recent__th img { max-width: 86%; max-height: 124px; object-fit: contain; border-radius: 4px; box-shadow: 0 6px 18px -8px rgba(20,23,28,.3); background: #fff; }
.recent__in { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.recent__in b { font-size: 16px; overflow-wrap: anywhere; }
.recent__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.recent--new { grid-column: 1 / -1; padding: 28px; align-items: flex-start; gap: 4px; border-style: dashed; }
.recent--new span:last-child { color: var(--soft); font-size: 14px; }
.recent__plus { font: 800 28px var(--body); color: var(--ember); }
.tag { font: 600 12.5px var(--body); padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--soft); }
.tag--new { background: #FBE3EC; color: #9C1249; font-weight: 700; }
.tag--back { background: #E3EEFC; color: #1557B8; font-weight: 700; }
.tag--ok { background: #DDF1E4; color: #046E32; font-weight: 700; }
.tag--warn { background: #FDEBDC; color: #9E4600; font-weight: 700; }
.tag--quiet { background: transparent; padding-left: 0; }
.home-month { display: flex; flex-direction: column; gap: 18px; min-height: 212px; }
.home-month__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.home-month__head h2 { margin: 0; font: 700 15px var(--body); }
.home-month p { font-size: 15px; color: var(--soft); margin: 6px 0 0; }
.home-month__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.home-month b { display: block; font: 800 34px/1 var(--body); letter-spacing: -0.03em; color: var(--ink); min-height: 34px; }
.home-month b.is-waiting { width: 64px; border-radius: 6px; background: #e9ebe8; color: transparent; }
.home-month span { font-size: 14px; color: var(--soft); }
.eyebrow-s { font: 700 13px var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.home-setup { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.home-setup[hidden] { display: none; }
.setup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.setup-head h2 { margin: 0; font: 800 18px var(--body); }
.setup-count { font: 700 14px var(--body); color: var(--soft); }
.setup-bar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); margin: 14px 0 4px; overflow: hidden; }
.setup-bar > span { display: block; height: 100%; background: #047857; border-radius: inherit; }
.setup-steps { list-style: none; margin: 0; padding: 0; }
.setup-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); min-height: 71.5px; box-sizing: border-box; }
.setup-step.is-next { min-height: 99px; align-items: start; padding-top: 16px; }
.setup-step b { font-size: 15px; }
.setup-step .why, .setup-step .also { display: block; font-weight: 400; color: var(--soft); font-size: 14px; margin-top: 4px; }
.setup-step .also a { font-weight: 600; color: var(--ink); }
.setup-step .act { display: flex; justify-content: flex-end; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; display: grid; place-items: center; }
.setup-step.is-done .tick { background: #047857; border-color: #047857; color: #fff; }
.btn-main { height: 40px; padding: 0 16px; border-radius: 10px; font: 700 14px var(--body); display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer; text-decoration: none; background: #047857; border: 1px solid #047857; color: #fff; }
.btn-main:hover { background: #065f46; border-color: #065f46; color: #fff; }
.home-alldone { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.home-alldone p { margin: 0; }
.home-alldone .x { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 20px; line-height: 1; cursor: pointer; }
.setup-error { margin: 12px 0 0; color: var(--soft); }
.sk { background: #e9ebe8; border-radius: 6px; display: block; }
:root[data-theme=dark] .sk, :root[data-theme=dark] .home-month b.is-waiting, :root[data-theme=dark] .recent--sk .recent__th { background: #2a3033; }
.sk-tick { width: 26px; height: 26px; border-radius: 50%; }
.sk-line { height: 14px; margin-bottom: 8px; }
.sk-sub { height: 12px; }
.sk-btn { height: 40px; width: 140px; border-radius: 10px; }
.sk-mark { width: 32px; height: 32px; border-radius: 9px; }
.sk-foot { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.sk-row.cached-done .act { display: none; }
.shimmer .sk { animation: sk-pulse 1.2s ease-in-out infinite; }
@keyframes sk-pulse { 50% { opacity: .55; } }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.firm-foot { margin: 0; color: var(--soft); }
.mac-download { margin: 12px 0 0; }
.mac-download .btn-quiet:disabled, #macNudgeOff:disabled { opacity: .65; cursor: not-allowed; }
.recent--sk { pointer-events: none; }
.recent--sk .recent__th { background: #e9ebe8; }
.recent--sk .recent__in { display: flex; flex-direction: column; gap: 8px; }
.home-org { display: flex; flex-direction: column; gap: 14px; min-height: 212px; box-sizing: border-box; }
.home-org p { margin: 0; font-size: 15px; color: var(--soft); }
.home-card__title { font-size: 17px; }
.org-id { display: flex; align-items: center; gap: 12px; }
.org-id > div { display: flex; flex-direction: column; }
.org-id b { font-size: 17px; }
.org-id > div span { font-size: 14px; color: var(--soft); }
.org-mark { width: 44px; height: 44px; border-radius: 50%; background: #eceeea; color: #14171c; border: 2px solid #fff; box-shadow: inset 0 0 0 1px rgba(20, 23, 28, .06); font: 700 16px var(--body); display: grid; place-items: center; flex: none; }
.org-progress { display: flex; flex-direction: column; gap: 8px; }
.org-progress > div { display: flex; justify-content: space-between; font-size: 14px; }
.org-progress > div span { color: var(--soft); }
.org-progress i { display: block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.org-progress i span { display: block; height: 100%; background: #f5821f; border-radius: 999px; transition: width .4s ease; }
.org-next { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.org-next p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.home-plan { display: flex; align-items: center; gap: 14px; padding: 18px 24px; }
.home-plan > div { flex: 1; display: flex; flex-direction: column; }
.home-plan b { font-size: 15px; }
.home-plan span { font-size: 14px; color: var(--soft); }
.home-plan a { font-weight: 700; color: var(--ember-deep); }

/* Forms shared by You and the organisation */
.org-sec { display: flex; flex-direction: column; }
.org-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.org-sec label { font-size: 14px; margin: 16px 0 6px; }
.org-sec input[type=text], .org-sec textarea, .you input[type=text] { width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: 15px/1.5 var(--body); background: var(--paper); color: var(--ink); resize: vertical; }
.org-sec input:disabled, .org-sec textarea:disabled { opacity: .75; }
.org-sec textarea:focus-visible, .org-sec input:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font: 600 14px var(--body); max-width: 100%; overflow-wrap: anywhere; }
.chip button, .swatch button, .org-rules button { all: unset; cursor: pointer; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--soft); font-size: 16px; line-height: 1; }
.chip button:hover, .swatch button:hover, .org-rules button:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.chip-add { display: inline-flex; gap: 6px; flex: 1 1 240px; }
.chip-add input { flex: 1; min-width: 0; padding: 7px 12px !important; border-radius: 999px !important; font-size: 14px !important; }
.chip-add button { padding: 6px 12px; border-radius: 999px; font: 700 13px var(--body); }
.save-bar { position: relative; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--card) 94%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); transition: box-shadow .2s ease, border-color .2s ease; }
.save-bar.is-dirty { position: sticky; border-color: color-mix(in srgb, var(--ember) 45%, var(--line)); box-shadow: 0 10px 30px -12px rgba(20,23,28,.35); }
.save-bar[hidden] { display: none; }

/* You */
.you { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; outline: none; }
.you__form, .you__side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.you__intro h2 { margin: 0 0 8px; }
.you__intro p { margin: 0; max-width: 62ch; color: var(--soft); font-size: 15.5px; }
.you__intro .you__steps { margin-top: 10px; font: 400 15px/1.45 var(--body); color: var(--ink); }
#profileCompletion { margin: 14px 0 0; max-width: 68ch; font: 400 15px/1.45 var(--body); color: var(--ink); }
.you #nameRow { margin: 10px 0 0; }
.you #nameRow label { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink) !important; }
.you #nameRow input { flex: 1; min-width: 200px; width: auto !important; padding: 11px 13px !important; font: 15px var(--body) !important; border-radius: 10px !important; background: var(--paper) !important; color: var(--ink); }
.you-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.you-row--top { align-items: flex-start; }
.you-row__label { width: 130px; flex: none; font-weight: 700; font-size: 14px; padding-top: 6px; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg button { padding: 8px 14px; border-radius: 999px; font: 600 14px var(--body); background: var(--card); border: 1px solid var(--line); color: var(--soft); }
.seg button[aria-checked=true], .seg button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.you-preview pre { margin: 12px 0 0; white-space: pre-wrap; font: 13px/1.6 var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; max-height: 360px; overflow: auto; color: var(--ink); }
.you-share { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.share-list { display: flex; flex-direction: column; gap: 6px; }
.share-list button { text-align: left; padding: 11px 14px 11px 40px; position: relative; font: 600 14px var(--body); border-radius: 12px; white-space: normal; }
.share-list button::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; }
.share-list button[aria-checked=true] { border-color: var(--ember); background: color-mix(in srgb, var(--ember-soft) 50%, var(--card)); }
.share-list button[aria-checked=true]::before { border: 4px solid var(--ember); }
.share-list button[hidden] { display: none; }
.you__side .card { padding: 22px 24px; }
.you-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.you-links .hub-link { font-size: 14px; font-weight: 700; }
.you-links #signOut { margin-top: 8px; }

/* Organisation */
.org-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.org-main, .org-side, #orgPage { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
#orgPage[hidden], .org-none[hidden] { display: none; }
.org-none p { font-size: 15.5px; max-width: 64ch; }
.org-steps { margin: 6px 0 10px; padding-left: 22px; font-size: 15px; line-height: 1.9; }
.org-import { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; margin-top: 10px; border: 1px dashed var(--line); border-radius: 14px; }
.org-import[hidden] { display: none; }
.org-import > div { flex: 1 1 260px; display: flex; flex-direction: column; }
.org-import > div span { font-size: 14px; color: var(--soft); }
.org-import .muted:empty { display: none; }
.org-import .muted { flex-basis: 100%; }
.org-sec label.org-file { margin: 0; position: relative; overflow: hidden; }
.org-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.org-suggest { margin-top: 12px; padding: 16px; border-radius: 14px; background: #fff; border: 1px solid #E3E5E1; max-width: 100%; }
.org-suggest[hidden] { display: none; }
.org-suggest p { margin: 8px 0; font-size: 15px; }
.org-suggest .row { display: flex; gap: 10px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
button.btn-ghost { height: 44px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #E3E5E1; background: transparent; color: var(--ink); font: 700 14px var(--body); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; cursor: pointer; }
button.btn-ghost:hover { border-color: #5C636B; background: transparent; }
.org-saved-label { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--soft); }
.org-logo-block { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.org-logo-block > .muted { margin: 0; }
.org-logo { display: flex; align-items: center; }
.org-logo-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.org-logo-actions[hidden] { display: none; }
.org-logo-tile { width: 72px; height: 72px; box-sizing: border-box; flex: none; padding: 8px; background: #F4F5F3; border: 1px solid #E3E5E1; border-radius: 8px; display: grid; }
.org-logo-tile img { width: 100%; height: 100%; object-fit: contain; display: block; background: transparent; border: 0; padding: 0; }
.org-sec label.org-logo-pick { position: relative; display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; padding: 10px 12px; min-height: 44px; border: 1px solid #E3E5E1; border-radius: 12px; background: #fff; font-weight: 500; font-size: 14px; cursor: pointer; }
.org-logo-pick input { position: absolute; width: 18px; height: 18px; margin: 0; opacity: 0; }
.org-logo-pick input:focus-visible { outline: none; }
.org-sec label.org-logo-pick:has(input:focus-visible) { outline: 2px solid #5C636B; outline-offset: 3px; }
.org-tick { width: 18px; height: 18px; box-sizing: border-box; flex: none; border: 1px solid #C5C8C2; border-radius: 4px; background: #fff; display: grid; place-items: center; }
.org-logo-pick input:checked + .org-tick { background: #5C636B; border-color: #5C636B; }
.org-logo-pick input:checked + .org-tick::after { content: ""; width: 8px; height: 4px; margin-top: -2px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.org-logo-pick span { display: flex; flex-direction: column; min-width: 0; }
.org-logo-pick .org-tick, .org-logo-pick .org-logo-tile { display: grid; }
.org-logo-pick .muted { margin: 0; font-size: 14px; }
.org-sec .btn-quiet, .org-sec .btn-ember, .org-sec .btn-ghost, .org-sec label.org-file { min-height: 44px; height: 44px; box-sizing: border-box; font-size: 14px; }
.org-sec .muted, .org-sec .swatch > span, .org-sec .swatch code { font-size: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.swatch i { width: 34px; height: 34px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.swatch > span { display: flex; flex-direction: column; font-size: 13px; }
.swatch code { font: 12px var(--mono); color: var(--soft); }
.org-inline { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.org-inline[hidden] { display: none; }
.org-inline input[type=text] { flex: 1; min-width: 0; }
.org-inline input[type=color] { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
@media (max-width: 740px) {
  .org-inline { flex-wrap: wrap; }
  .org-sec input[type=text], .org-sec textarea, .org-sec .chip-add input { min-height: 44px; }
  .org-sec .swatch button, .org-sec .chip button, .org-sec .chip-add button { min-width: 44px; min-height: 44px; height: 44px; font-size: 14px; }
  .org-sec .chip-add { flex-basis: 100%; }
}
.org-fonts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.org-rules { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.org-rules li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.org-rules li > span:nth-child(2) { flex: 1; }
.org-rules li.muted { border-style: dashed; }
.rule-n { width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--ink); color: var(--paper); font: 800 12px var(--body); display: grid; place-items: center; }
.org-sec label.org-check { display: flex; gap: 10px; align-items: center; font-weight: 500; margin-top: 18px; cursor: pointer; }
.org-side > .card { padding: 22px 24px; }
.org-can p { margin: 8px 0 0; font-size: 14.5px; color: var(--soft); }
.org-can h2 { font-size: 16px; }

@media (max-width: 1100px) {
  .you, .org-layout { grid-template-columns: 1fr; }
  .home-row { grid-template-columns: 1fr; }
}
@media (max-width: 740px) {
  #signedIn > .acct-top { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .acct-nav { order: 2; flex-basis: 100%; }
  .acct-nav [role=tab] { height: 36px; padding: 0 11px; font-size: 14px; }
  .acct-top__end { margin-left: auto; }
  .acct-new span { display: none; }
  .acct-new { padding: 0 12px; }
  .home-recent { grid-template-columns: 1fr; }
  .news { flex-wrap: wrap; gap: 12px; padding: 12px; }
  .news__text { flex: 1 1 calc(100% - 60px); }
  .news__act { margin-left: 56px; }
  .recent__th { height: 110px; }
  .home-head { flex-wrap: wrap; gap: 6px; }
  .org-fonts { grid-template-columns: 1fr; }
  .you-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .you-row__label { width: auto; padding: 0; }
  .home-card { padding: 18px; }
  .setup-step { grid-template-columns: 26px minmax(0, 1fr); }
  .setup-step .act { grid-column: 2; justify-content: flex-start; }
  .setup-step:not(.is-done) { min-height: 122px; }
  .setup-step.is-next, .sk-row.sk-next { min-height: 168px; }
  .home-month__stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .recent, .news, .org-progress i span { transition: none; }
  .shimmer .sk { animation: none; }
}

/* Account sidebar. Replaces the top tabs. One outline button, raspberry only on unread. */
.signed header.acct-mobile { display: none; }
.acct-frame { min-width: 0; }
.acct-row { display: grid; grid-template-columns: 232px minmax(0, 1fr); align-items: stretch; min-height: 100dvh; }
.acct-side {
  position: sticky; top: 0; height: 100dvh; max-height: 100dvh;
  display: flex; flex-direction: column; gap: 2px;
  padding: 16px 12px 12px; background: var(--card);
  border-right: 1px solid var(--line); overflow: hidden; min-width: 0;
}
.side-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; color: var(--ink); text-decoration: none; font: 800 17px/1 var(--display); letter-spacing: -0.03em; }
.side-brand img { width: 26px; height: 26px; object-fit: contain; display: block; }
.side-new { position: relative; display: flex; margin: 0 0 8px; }
.side-new__go, .side-new__more {
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  font: 600 14px var(--body); cursor: pointer; text-decoration: none;
}
.side-new__go { flex: 1; min-width: 0; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 9px 0 0 9px; border-right: 0; }
.side-new--one .side-new__go { border-radius: 9px; border-right: 1px solid var(--line); }
.side-new__more { width: 40px; height: 40px; border-radius: 0 9px 9px 0; display: grid; place-items: center; padding: 0; }
.side-new__go:hover, .side-new__more:hover { background: color-mix(in srgb, var(--ink) 4%, var(--card)); }
.side-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 12px 32px rgba(20, 23, 28, 0.12); }
.side-pop[hidden] { display: none; }
.side-pop [role="menuitem"] { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font: 600 14px var(--body); }
.side-pop [role="menuitem"]:hover, .side-pop [role="menuitem"]:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.side-scroll { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; flex: 1; }
.side-nav { display: flex; flex-direction: column; gap: 2px; min-height: 0; min-width: 0; overflow: auto; flex: 1; padding-bottom: 8px; }
.side-cue { display: none; }
.side-link, .side-org {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  min-height: 36px; padding: 0 10px; border-radius: 8px;
  color: var(--soft); font: 500 14px/1.3 var(--body);
}
.side-link > span:first-of-type, .side-org > span:last-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-link svg { flex: none; }
.side-link:hover, .side-org:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 4%, transparent); }
/* A selected child leaves Organisations unfilled: ink at 600, no grey pill. */
.side-link.is-here { background: transparent; color: var(--ink); font-weight: 600; }
.side-link[aria-current="page"], .side-org[aria-current="page"], .side-link.is-here[aria-current="page"] {
  background: #ECEEEA; color: #14171c; font-weight: 600;
}
.side-link:focus-visible, .side-org:focus-visible, .side-new__go:focus-visible, .side-new__more:focus-visible, .side-me:focus-visible, .acct-mobile__menu:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 2px;
}
.side-badge {
  margin-left: auto; flex: none; min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: 99px; background: #C2185B; color: #fff;
  font: 700 12px/18px var(--body); text-align: center;
}
.side-meta, .side-link[aria-current="page"] .side-meta, .side-link.is-here .side-meta { margin-left: auto; flex: none; color: var(--faint); font: 500 12px var(--body); font-weight: 500; }
.side-split { display: none; }
.side-group { font: 700 12px var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 14px 10px 4px; }
.side-orgs { display: flex; flex-direction: column; gap: 2px; max-height: 168px; overflow: auto; }
.side-orgs[hidden] { display: none; }
.side-org { min-height: 32px; padding-left: 28px; font-size: 13.5px; }
.side-tile { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--body); flex: none; background: #eceeea; color: #14171c; border: 2px solid #fff; box-shadow: inset 0 0 0 1px rgba(20, 23, 28, .06); }
.side-tile--wait, .side-skel { background: color-mix(in srgb, var(--ink) 8%, var(--card)); color: transparent; border-color: transparent; box-shadow: none; }
.side-skel { display: block; height: 10px; width: 72%; border-radius: 5px; }
.side-org--wait { pointer-events: none; }
.side-miss { margin: 0 10px 8px 36px; color: var(--faint); font: 400 12px/1.4 var(--body); }
.side-miss[hidden] { display: none !important; }
body.account-ready #boot { display: none !important; }
.side-foot { flex: none; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-usage { padding: 0 8px; color: var(--soft); font: 400 13px/1.4 var(--body); }
.side-usage i { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.side-usage i b { display: block; height: 100%; background: var(--soft); width: 0; }
.side-me {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 8px;
}
.side-me:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.side-av { width: 32px; height: 32px; border-radius: 50%; background: #ECE4D6; color: #6B5634; display: grid; place-items: center; font: 700 12px var(--body); flex: none; overflow: hidden; }
.side-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.side-me__text { min-width: 0; display: flex; flex-direction: column; }
.side-me__text b { font: 600 14px var(--body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-me__text span { font: 400 13px var(--body); color: var(--faint); }
.acct-side .acct-menu-wrap { position: relative; }
.acct-side .acct-menu { left: 0; right: 0; width: auto; top: auto; bottom: calc(100% + 8px); }
@media (max-width: 760px) {
  /* The account links sit in one row. The row scrolls inside itself, with a
     cue at whichever edge still has links, and the page does not scroll sideways. */
  html:has(body.account-ready),
  body.account-ready { overflow-x: clip; }
  body.account-ready .wrap,
  .acct-frame, .acct-row, .acct-body, .acct-panel, .home, .you, .org-layout, .acct-side, .side-scroll { min-width: 0; max-width: 100%; }
  .acct-row { display: block; min-height: 0; }
  .signed header.acct-mobile {
    display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px;
    background: var(--card); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50; max-width: 100%; box-sizing: border-box;
  }
  .acct-mobile__mark { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
  .acct-mobile__mark img { width: 32px; height: 32px; object-fit: contain; }
  .acct-mobile__title { flex: 1; min-width: 0; font: 700 16px var(--display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acct-mobile__menu {
    min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 9px;
    border: 1px solid var(--line); background: var(--card); color: var(--ink);
    font: 600 14px var(--body); cursor: pointer; flex: none;
  }
  .acct-side {
    display: block; position: sticky; top: 56px; height: auto; max-height: none;
    width: 100%; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line);
    padding: 0; z-index: 30; background: var(--card);
  }
  .acct-side > :not(.side-scroll) { display: none; }
  .side-scroll { flex: none; }
  .side-nav {
    flex-direction: row; flex-wrap: nowrap; align-items: center;
    width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    gap: 4px; padding: 6px 8px; scroll-padding-inline: 48px; scrollbar-width: none;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-link, .side-org { flex: 0 0 auto; width: auto; max-width: none; min-height: 44px; white-space: nowrap; }
  .side-orgs { flex-direction: row; flex: 0 0 auto; max-height: none; overflow: visible; }
  .side-group { display: none; }
  .side-split { display: block; flex: none; width: 1px; height: 22px; align-self: center; margin: 0 6px; background: var(--line); }
  .side-cue {
    display: grid; place-items: center; position: absolute; top: 0; bottom: 0; z-index: 2;
    width: 52px; min-height: 44px; border: 0; padding: 0; cursor: pointer; color: var(--ink);
    background: linear-gradient(90deg, var(--card) 0 18px, transparent);
  }
  .side-cue svg { width: 28px; height: 28px; padding: 5px; box-sizing: border-box; background: var(--card); border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 1px 4px rgba(17, 19, 22, .16); }
  .side-cue--left { left: 0; justify-items: start; padding-left: 4px; }
  .side-cue--right { right: 0; justify-items: end; padding-right: 4px; background: linear-gradient(270deg, var(--card) 0 18px, transparent); }
  .acct-side.is-open {
    display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    width: 100%; max-width: 100%; height: auto; overflow-x: hidden; overflow-y: auto; border-right: 0; border-bottom: 0;
    padding: 16px 12px 12px; box-sizing: border-box;
  }
  .acct-side.is-open > :not(.side-scroll) { display: flex; }
  .acct-side.is-open .side-nav { flex-direction: column; align-items: stretch; overflow: visible; }
  .acct-side.is-open .side-link, .acct-side.is-open .side-org, .acct-side.is-open .side-me { width: 100%; }
  .acct-side.is-open .side-orgs { flex-direction: column; }
  .acct-side.is-open .side-cue { display: none; }
  .acct-side.is-open .side-group { display: block; flex: none; align-self: stretch; padding: 14px 10px 4px; }
  .acct-side.is-open .side-split { display: none; }
  .acct-side.is-open .side-brand { display: none; }
  .side-brand { min-height: 44px; box-sizing: border-box; }
  .side-link, .side-org, .side-me, .side-pop [role="menuitem"] { min-height: 44px; min-width: 0; font-size: 15px; box-sizing: border-box; }
  .side-new { max-width: 100%; }
  .side-new__go, .side-new__more { height: 44px; min-height: 44px; font-size: 15px; }
  .side-new__more { width: 44px; min-width: 44px; flex: none; }
  .side-group, .side-usage, .side-meta, .side-me__text span { font-size: 14px; }
  .side-badge { font-size: 14px; height: 22px; line-height: 22px; min-width: 22px; }
  .side-org { font-size: 15px; }
  .side-tile { width: 28px; height: 28px; font-size: 14px; }
  #nameRow, #identityRow, .acct-panel .card .row { flex-wrap: wrap; max-width: 100%; }
  .you #nameRow input { min-width: 0; width: 100% !important; max-width: 100%; }
}
body.side-open { overflow: hidden; }

/* Profile. One column of sections. The only emerald fill on this screen is .pf-go. */
#sideProfileCount:not([hidden]) { display: inline-flex; align-items: center; gap: 5px; }
.side-ring { flex: none; display: block; }

:root:not([data-theme="dark"]) .pf-page {
  --ink: #1D2126;
  --soft: #555C63;
  --faint: #6B7178;
  --line: #E3E5E1;
}
.pf-page { max-width: 900px; padding: 8px 8px 48px; outline: none; color: var(--ink); font: 400 14px/1.45 var(--body); }
.pf-page h1 { font: 700 26px/1.2 var(--display); letter-spacing: -0.02em; margin: 0; }
.pf-page h2 { font: 700 15px/1.3 var(--body); letter-spacing: -0.005em; margin: 0; }
.pf-page h3 { font: 700 14px/1.3 var(--body); margin: 0 0 4px; }
.pf-page label, .pf-page .pf-lab { display: block; font: 600 13px/1.3 var(--body); margin: 0 0 6px; color: var(--ink); }
.pf-page .pf-opt { font-weight: 400; color: var(--faint); }
.pf-page input[type="text"], .pf-page textarea, .pf-page .pf-select {
  width: 100%; box-sizing: border-box; border: 1px solid #D3D6D0; border-radius: 8px;
  background: var(--card); color: var(--ink); padding: 8px 11px; font: 400 14px/1.4 var(--body);
}
.pf-page textarea { min-height: 64px; resize: vertical; }
.pf-page input::placeholder, .pf-page textarea::placeholder { color: #6E747A; opacity: 1; }
.pf-page .pf-select {
  appearance: none; height: 36px; width: auto; min-width: 220px; max-width: 100%;
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7178' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.pf-page #nameInput { max-width: 340px; }
.pf-page #nameSave { display: none !important; }
.pf-page :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.pf-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.pf-head__text { min-width: 0; }
.pf-page .pf-head p { margin: 4px 0 0; color: var(--soft); font-size: 14px; line-height: 1.45; max-width: 62ch; }
.pf-redo {
  margin-left: auto; flex: none; color: var(--soft); text-decoration: none;
  font: 600 13px/1 var(--body); height: 30px; padding: 0 10px;
  display: inline-flex; align-items: center; border-radius: 8px;
}
.pf-redo:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }

.pf-comp {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px; align-items: center; margin: 0 0 28px;
}
.pf-page #profileCompletion { margin: 0; max-width: none; font: 700 15px/1.3 var(--body); color: var(--ink); }
.pf-tally { font-size: 13px; color: var(--soft); font-weight: 500; margin-left: 8px; }
.pf-comp.is-complete { grid-template-columns: 1fr; gap: 10px; }
.pf-comp.is-complete .pf-tally { margin-left: 0; }
.pf-comp.is-complete .pf-segs,
.pf-comp.is-complete .pf-next,
.pf-comp.is-complete .pf-go { display: none; }
.pf-segs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.pf-segs i { display: block; height: 5px; border-radius: 3px; background: var(--line); }
.pf-segs i.is-done { background: #555C63; }
.pf-page .pf-next { font-size: 13.5px; color: var(--soft); margin: 8px 0 0; }
.pf-page .pf-next b { color: var(--ink); font-weight: 600; }
.pf-go {
  background: #047857; border: 1px solid #047857; color: #fff;
  height: 36px; padding: 0 14px; border-radius: 9px; font: 600 13.5px/1 var(--body);
  cursor: pointer; white-space: nowrap;
}
.pf-go:hover { background: #065f46; border-color: #065f46; color: #fff; }
.pf-steps {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 13px; color: var(--soft); border-top: 1px solid var(--line); padding-top: 12px;
}
.pf-steps span { display: inline-flex; align-items: center; gap: 6px; }
.pf-steps span.is-done { color: var(--soft); }
.pf-steps span.is-done svg { color: var(--soft); }
.pf-steps span.is-todo::before, .pf-steps span.is-next::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #9AA0A6; flex: none; box-sizing: border-box;
}
.pf-steps span.is-next { color: var(--ink); font-weight: 600; }
.pf-steps span.is-next::before { border-color: var(--ink); }

.pf-sec { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.pf-page .pf-why { font-size: 13px; color: var(--soft); margin: 4px 0 0; max-width: 28ch; }
.pf-fields { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-field { min-width: 0; scroll-margin: 24px; }
.pf-page .pf-hint, .pf-page .pf-note { display: block; margin: 6px 0 0; font-size: 12.5px; color: var(--faint); font-weight: 400; }
.pf-note:empty { display: none; }
.pf-faint { color: var(--faint); font-weight: 400; font-size: 12.5px; }
.pf-page .pf-error { margin: 6px 0 0; font: 500 13px/1.35 var(--body); color: #9F1239; }
.pf-page .pf-saved { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; font: 500 12.5px/1 var(--body); color: var(--faint); }

.pf-photo { display: flex; gap: 14px; align-items: center; }
.pf-photo__acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-page .profile-photo {
  width: 52px; height: 52px; margin: 0; border-radius: 50%; overflow: hidden;
  background: #ECE4D6; color: #6B5634; font: 700 17px/1 var(--body);
  display: grid; place-items: center;
}
.pf-page .profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-btn, .pf-page .photo-choose, .pf-page .photo-remove {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid #D3D6D0;
  background: var(--card); color: var(--ink); font: 600 13px/1 var(--body); cursor: pointer;
}
.pf-btn--ghost, .pf-page .photo-remove { color: var(--soft); }
.pf-page .photo-choose input, .pf-page .pf-file input {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}

.pf-seg { display: inline-flex; border: 1px solid #D3D6D0; border-radius: 9px; padding: 2px; background: var(--card); width: fit-content; }
.pf-seg button {
  border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 7px;
  font: 500 13.5px/1 var(--body); color: var(--soft); cursor: pointer;
}
.pf-seg button[aria-checked="true"] { background: #ECEEEA; color: #14171c; font-weight: 600; box-shadow: inset 0 0 0 1px #D3D6D0; }
.pf-tone { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-tone button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 1px solid #D3D6D0; border-radius: 99px; background: var(--card);
  font: 500 13px/1 var(--body); color: var(--soft); cursor: pointer;
}
.pf-tone button[aria-pressed="true"] { background: #ECEEEA; color: #14171c; font-weight: 600; border-color: #BFC3BB; }
.pf-tone button[aria-pressed="true"]::before {
  content: ""; width: 12px; height: 12px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314171c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pf-tag {
  display: inline-flex; align-items: center; gap: 2px; min-height: 30px; padding: 0 2px 0 11px;
  border: 1px solid #D3D6D0; border-radius: 99px; background: #F8F9F7; color: var(--ink); font: 500 13px/1 var(--body);
}
.pf-tag button {
  position: relative; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--faint); font: 500 16px/1 var(--body); cursor: pointer;
  display: grid; place-items: center;
}
.pf-tag button::after { content: ""; position: absolute; inset: -6px; }
.pf-add { display: inline-flex; align-items: center; }
.pf-add__go {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 1px dashed #D3D6D0; border-radius: 99px; background: var(--card); color: var(--soft);
  font: 500 13px/1 var(--body); cursor: pointer;
}
.pf-add input { width: 180px; max-width: 100%; height: 30px; border-radius: 99px; padding: 0 11px; }

.pf-share { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 4px; }
.pf-share button {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  width: 100%; min-height: 36px; padding: 8px 10px 8px 34px; border: 0; border-radius: 7px;
  background: transparent; color: var(--ink); font: 500 13.5px/1.35 var(--body); text-align: left; cursor: pointer;
}
.pf-share button small { display: block; color: var(--faint); font: 400 12.5px/1.3 var(--body); }
.pf-share button::before {
  content: ""; position: absolute; left: 10px; top: 11px; width: 14px; height: 14px; box-sizing: border-box;
  border-radius: 50%; border: 1.5px solid #9AA0A6; background: transparent;
}
.pf-share button[aria-checked="true"] { background: #F6F7F4; }
.pf-share button[aria-checked="true"]::before { border: 4.5px solid var(--ink); }
.pf-page #pfShareOrg { margin-top: 8px; }
.pf-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pf-page .pf-check { display: inline-flex; align-items: center; gap: 9px; margin: 0; font: 500 13.5px/1.3 var(--body); cursor: pointer; }
.pf-check input {
  appearance: none; width: 16px; height: 16px; margin: 0; flex: none; border-radius: 4px;
  border: 1.5px solid #8E949A; background: var(--card); display: grid; place-items: center;
}
.pf-check input:checked {
  background: #5C636B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
  border-color: #5C636B;
}

.pf-disc, .pf-brand-row {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: 400 13.5px/1.4 var(--body); color: var(--ink); text-align: left;
}
.pf-disc { cursor: pointer; }
.pf-brand-row { cursor: default; }
.pf-disc > svg, .pf-brand-row > svg { color: var(--faint); flex: none; }
.pf-disc b, .pf-brand-row b { font-weight: 600; }
.pf-disc .pf-chev { margin-left: auto; flex: none; color: var(--faint); }
.pf-brand-row > span { flex: 1; min-width: 0; }
#pfBrandToggle { margin-left: auto; flex: none; }
.pf-brand-row.is-open {
  background: transparent; border-color: transparent; padding: 0; min-height: 0;
}
.pf-brand-row.is-open > svg { display: none; }
#pfBrandBody { display: flex; flex-direction: column; gap: 16px; }
#pfPreview { margin: 8px 0 0; white-space: pre-wrap; font: 13px/1.55 var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; max-height: 280px; overflow: auto; color: var(--ink); }
.pf-templates { display: flex; flex-direction: column; align-items: stretch; margin-top: 4px; width: 100%; }
.pf-templates .pf-why { max-width: none; width: 100%; margin: 4px 0 8px; }
#accountTemplates { display: flex; flex-direction: column; align-items: flex-start; }
.pf-templates .material-files { margin-top: 0; }
.pf-page .pf-field:has(#accountMaterials) > .pf-lab { margin-bottom: 0; }
.pf-page #accountMaterials .material-files { margin-top: 0; }
.pf-page #accountMaterials .material-files:not(:empty) { margin-top: 8px; }
.pf-page .pf-file {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: auto; height: 30px; margin: 8px 0 0; padding: 0 10px;
  border: 1px solid #D3D6D0; border-radius: 8px; background: var(--card); color: var(--ink);
  font: 600 13px/1 var(--body); cursor: pointer;
}
.pf-page .pf-templates .pf-file { margin-top: 0; }
.pf-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pf-page .material-files { margin-top: 8px; }
.pf-page .material-files:empty { display: none; }
.pf-page .material-row { font-size: 13.5px; }
.pf-page .photo-status, .pf-page .material-status { margin: 6px 0 0; font-size: 12.5px; color: var(--soft); }
.pf-page .photo-status:empty, .pf-page .material-status:empty { display: none; }

.pf-foot { border-top: 1px solid var(--line); padding: 28px 0 8px; display: flex; flex-direction: column; gap: 16px; }
.pf-foot > h2 { margin: 0; }
.pf-foot .card h2 { font: 600 19px/1.25 var(--display); margin: 0 0 6px; }
.pf-foot .card { margin: 0; }
.pf-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.pf-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.pf-foot .pf-select { width: 100%; }
.pf-ghost {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--soft); font: 600 13.5px/1 var(--body); cursor: pointer;
}
.pf-ghost:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.pf-load-error { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 0 20px; }
.pf-page .pf-load-error p { color: var(--ink); font-size: 15px; margin: 0; }
.pf-page .pf-load-error .pf-btn { margin: 0; }
.pf-page #identityOther { margin-top: 8px; }

.pf-skel-wrap { display: flex; flex-direction: column; gap: 18px; }
.pf-skel {
  border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, var(--card)) 0%, color-mix(in srgb, var(--ink) 3%, var(--card)) 50%, color-mix(in srgb, var(--ink) 7%, var(--card)) 100%);
  background-size: 200% 100%; animation: pf-shimmer 1.2s ease-in-out infinite;
}
.pf-skel--strip { height: 132px; }
.pf-skel--sec { height: 108px; }
.pf-skel--line { height: 16px; width: 28%; border-radius: 6px; }
@keyframes pf-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .pf-skel { animation: none; } }

:root[data-theme="dark"] .pf-tag { background: color-mix(in srgb, var(--ink) 8%, var(--card)); }
:root[data-theme="dark"] .pf-share button[aria-checked="true"] { background: color-mix(in srgb, var(--ink) 8%, var(--card)); }
:root[data-theme="dark"] .pf-page .profile-photo { background: #3a342c; color: #f3e6d0; }

@media (max-width: 760px) {
  .pf-page { padding: 4px 0 40px; }
  .pf-page h1 { font-size: 22px; }
  .pf-head { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 16px; }
  .pf-redo { margin-left: 0; align-self: flex-start; }
  .pf-comp { grid-template-columns: 1fr; padding: 14px; }
  .pf-go { width: 100%; display: inline-flex; align-items: center; justify-content: center; }
  .pf-sec { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; }
  .pf-page .pf-why { max-width: none; }
  .pf-page .pf-select, .pf-page #nameInput { width: 100%; min-width: 0; max-width: none; }
  .pf-seg { display: flex; width: 100%; }
  .pf-seg button { flex: 1; text-align: center; }
  .pf-share button, .pf-page .pf-check { min-height: 44px; }
  .pf-steps { max-width: 100%; }
  .pf-page { overflow-x: clip; }
}
