/* The account page only, in the site's own House Lights tokens (site.css). Amber stays "you are here":
   the current section tab and the focus glow; everything else is ivory on teal. */
.account-who { margin-top: 18px; }
.account-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-bottom: 10px;
                border-bottom: 1px solid rgba(239, 230, 216, 0.10); }
.tab { position: relative; min-height: 40px; padding: 0 14px; font-size: 1rem; font-weight: 500;
       background: transparent; color: var(--ivory-secondary); border: 1px solid transparent; }
.tab:hover { color: var(--ivory); background: rgba(239, 230, 216, 0.06); }
.tab[aria-current="page"], .tab[aria-pressed="true"] { color: var(--ivory); font-weight: 600; border-color: var(--quiet-border); }
.account-tabs .tab[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px;
                                                height: 3px; border-radius: 9999px; background: var(--amber); }
.account-view { margin-top: 26px; max-width: 52rem; }
.account-view > h2 { margin-bottom: 8px; }
.account-card { margin-top: 16px; }
.account-card h3 { margin-bottom: 4px; }
.account-card h4 { margin: 18px 0 2px; font-size: 1.02rem; color: var(--ivory); }
.account-list { list-style: none; margin: 0; padding: 0; }
.account-list > li.muted { margin-top: 16px; }
.inline-form { max-width: 30rem; }
.inline-form .actions { margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.add-profile .check { min-height: 44px; }
.add-profile input[type="text"], .add-profile select { max-width: 100%; }
.check input { flex: none; width: 20px; height: 20px; accent-color: var(--ivory); }
/* A key, a server password or a PIN: shown as dots, but a text field, so password managers leave it alone. */
input.secret { -webkit-text-security: disc; }
select { font-family: inherit; font-size: 1rem; line-height: 1.3; color: var(--ivory); background: var(--ground-deep);
         border: 1px solid var(--quiet-border); border-radius: var(--r-button); padding: 10px 12px; max-width: 100%; }
select:focus-visible, input:focus-visible { outline: 2px solid var(--ivory); outline-offset: 2px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head h3 { overflow-wrap: anywhere; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-card);
          font-weight: 700; font-size: 1.3rem; color: var(--on-ivory); background: var(--ivory-secondary); }
.avatar-1 { background: #E9C9A0; } .avatar-2 { background: #A9C8C0; } .avatar-3 { background: #C7B6D9; }
.avatar-4 { background: #D9A9A0; } .avatar-5 { background: #B9CC9A; } .avatar-6 { background: #9FB8D6; }
.avatar-7 { background: #E0D49A; } .avatar-8 { background: #C9C2B6; }
.avatar-g1 { background: #F0B8A8; } .avatar-g2 { background: #A8D4E6; }
.avatar-g3 { background: #C8DC9C; } .avatar-g4 { background: #E4B4D0; }
.avatar-g5 { background: #B4B8E6; } .avatar-g6 { background: #F2D7A0; }
.confirm { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-button); border: 1px solid var(--quiet-border);
           border-left: 4px solid var(--ivory); background: var(--ground-container); }
.confirm p { color: var(--ivory); }
.confirm .actions { margin-top: 12px; }
.addon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px;
             padding: 10px 14px; border-radius: var(--r-button); background: var(--ground-low);
             border: 1px solid rgba(239, 230, 216, 0.10); }
.addon-url { overflow-wrap: anywhere; color: var(--ivory); font-size: 0.95rem; }
.kind-icon { flex: none; width: 28px; height: 28px; }
.device-card .profile-head { gap: 12px; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.settings-tabs .tab { gap: 8px; }
.settings-tabs .kind-icon { width: 20px; height: 20px; }
.settings-intro { margin-top: 12px; }
.profile-pick { margin: 10px 0 6px; font-weight: 500; }
.setting-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; align-items: center;
               padding: 14px 0; border-top: 1px solid rgba(239, 230, 216, 0.08); }
.setting-row:first-of-type { border-top: 0; }
.setting-text { min-width: 0; }
.setting-label { display: inline; font-weight: 600; color: var(--ivory); }
.setting-text .pill { margin-left: 8px; min-height: 22px; font-size: 0.78rem; vertical-align: 2px; }
.setting-text p { margin-top: 2px; }
.origin { color: var(--ivory-secondary); }
.setting-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.small-button { min-height: 34px; padding: 0 12px; font-size: 0.92rem; }
.switch-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.switch { width: 22px; height: 22px; accent-color: var(--ivory); }
.differ { color: var(--ivory); }
.linkish { display: inline; min-height: 0; padding: 0; background: none; border: 0; color: var(--ivory);
           font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkish:focus-visible { transform: none; box-shadow: none; }
.set-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: end; }
.set-members li { display: flex; align-items: center; gap: 10px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
             border-top: 1px solid rgba(239, 230, 216, 0.08); }
.title-row:first-child { border-top: 0; }
.title-row p { margin-top: 2px; }
.title-id { color: var(--ivory); font-weight: 600; overflow-wrap: anywhere; }
.title-main { min-width: 0; }
.title-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.title-label .poster { flex: none; width: 46px; height: 69px; object-fit: cover; border-radius: 4px;
                       background: rgba(239, 230, 216, 0.08); }
.title-text { display: flex; flex-direction: column; min-width: 0; }
.title-name { color: var(--ivory); font-weight: 600; overflow-wrap: anywhere; unicode-bidi: isolate; }
.title-meta { color: var(--ivory-secondary); }
#lists-attribution { margin-top: 12px; color: var(--ivory-secondary); }
.title-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; }
.title-actions .confirm { margin-top: 0; max-width: 22rem; }
.server-address, .server-user { color: var(--ivory); overflow-wrap: anywhere; }
.key-state { color: var(--ivory); }
#step-reset .actions, #step-signin .actions { margin-top: 12px; }
.stays { color: var(--ivory-secondary); padding-left: 1.2rem; margin: 10px 0 0; }
.stays li + li { margin-top: 6px; }
@media (max-width: 640px) {
  .setting-row { grid-template-columns: 1fr; }
  .set-members { justify-items: start; }
  .addon-row { flex-direction: column; align-items: flex-start; }
  .title-row { flex-direction: column; align-items: flex-start; }
  .title-actions { align-items: flex-start; }
}
/* ds-jmlu: the app's sections, search, marks, the Kids age group and the add-on list. */
.settings-search { position: relative; margin-top: 14px; max-width: 30rem; display: grid; gap: 6px; font-weight: 500; }
.settings-search input { font-family: inherit; font-weight: 400; font-size: 1rem; line-height: 1.3; color: var(--ivory);
                         background: var(--ground-deep); border: 1px solid var(--quiet-border); border-radius: var(--r-button);
                         padding: 12px 14px; width: 100%; }
.addon-add { margin-top: 18px; padding-top: 4px; border-top: 1px solid rgba(239, 230, 216, 0.08); }
.search-results { list-style: none; margin: 0; padding: 6px; border-radius: var(--r-button); background: var(--ground-container);
                  border: 1px solid var(--quiet-border); display: grid; gap: 2px; max-height: 22rem; overflow-y: auto; }
.search-result { display: grid; gap: 2px; width: 100%; min-height: 0; padding: 8px 10px; text-align: left; background: transparent;
                 border: 0; color: var(--ivory); font: inherit; cursor: pointer; border-radius: var(--r-button); }
.search-result:hover { background: rgba(239, 230, 216, 0.06); }
.search-result .small { color: var(--ivory-secondary); }
.found { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: var(--r-button); }
.settings-group { margin-top: 22px; }
#view-account > .settings-group > .group-title { margin-bottom: 2px; }
.group-caption:empty { display: none; }
.scope-bar { margin-top: 6px; }
.info-line { color: var(--ivory); margin-top: 6px; }
.pill.mark { margin-left: 8px; min-height: 22px; font-size: 0.78rem; vertical-align: 2px; }
p.mark { color: var(--ivory); }
.kids-levels { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--quiet-border); border-radius: var(--r-button); }
.kids-levels legend { padding: 0 6px; font-weight: 600; color: var(--ivory); }
.kids-level { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; font-weight: 500; cursor: pointer; }
.kids-level input { flex: none; margin-top: 3px; width: 20px; height: 20px; accent-color: var(--ivory); }
.kids-level > span { display: grid; gap: 2px; }
.kids-level-label { color: var(--ivory); }
.addon-main { min-width: 0; }
.addon-main p { margin-top: 2px; }
.addon-host { color: var(--ivory); font-weight: 600; overflow-wrap: anywhere; }
.addon-controls { flex: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.addon-controls .confirm { flex-basis: 100%; }
.notice { margin-top: 14px; }
.notice h4 { margin: 0 0 4px; }
@media (max-width: 640px) {
  .addon-controls { justify-content: flex-start; }
}

/* The picture choice (ds-s58m): a collapsed row, then tabs of the server's groups and a grid of round thumbnails. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.inline-form:has(> .picture-choice) { max-width: min(42rem, 100%); }
.inline-form:has(> .picture-choice) > :not(.picture-choice) { max-width: 30rem; }
.picture-choice { min-width: 0; }
.picture-label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ivory); }
.picture-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.picture-now { flex: none; display: inline-flex; width: 48px; height: 48px; }
.picture-name { flex: 1 1 8rem; min-width: 0; color: var(--ivory); overflow-wrap: anywhere; }
.picture-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.picture-status { margin: 8px 0 0; }
.picture-status:empty { display: none; }
.picture-retry { margin-top: 8px; min-height: 44px; }
.picture-panel { min-width: 0; margin: 14px 0 0; padding: 0; border: 0; }
.picture-choice .avatar { border-radius: 50%; }
.picture-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--ground-high); }
.picture-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.picture-tab { min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--ivory); background: transparent;
               border: 1px solid var(--quiet-border); border-radius: 9999px; }
.picture-tab:hover { background: var(--ground-high); }
.picture-tab[aria-selected="true"] { background: var(--amber); border-color: var(--amber); color: var(--on-ivory); }
.picture-grid { display: grid; grid-template-columns: repeat(auto-fill, 56px); gap: 8px; margin-top: 14px; }
.picture-cell { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; min-height: 0; padding: 0;
                color: var(--ivory); background: transparent; border: 0; border-radius: 50%; }
.picture-cell:hover { background: var(--ground-high); }
.picture-cell > img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--ground-high); }
.picture-cell[aria-checked="true"] > img, .picture-cell[aria-checked="true"] > .avatar { box-shadow: 0 0 0 2px var(--ground-low), 0 0 0 5px var(--amber); }
.picture-cell:focus-visible { outline: 2px solid var(--ivory); outline-offset: 1px; transform: none;
                              box-shadow: 0 0 0 4px var(--rail), 0 0 22px 6px rgba(242, 165, 74, 0.55); }
.picture-cell.failed::before { content: ""; width: 48px; height: 48px; border-radius: 50%; background: var(--ground-high); }
.picture-cell:disabled { cursor: not-allowed; }
.picture-defaults { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(239, 230, 216, 0.10); }
.picture-cell.picture-wide { display: inline-flex; width: auto; min-height: 56px; padding: 4px 16px 4px 4px; gap: 10px; border-radius: 9999px;
                             font-size: 0.95rem; font-weight: 600; border: 1px solid var(--quiet-border); }
.picture-cell.picture-wide[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ground-low), 0 0 0 5px var(--amber); }
.picture-cell.picture-wide[aria-checked="true"] > img, .picture-cell.picture-wide[aria-checked="true"] > .avatar { box-shadow: none; }
.picture-cell.picture-wide:focus-visible { box-shadow: 0 0 0 4px var(--rail), 0 0 22px 6px rgba(242, 165, 74, 0.55); }
.picture-cell.picture-wide[aria-checked="true"]:focus-visible { box-shadow: 0 0 0 2px var(--ground-low), 0 0 0 5px var(--amber), 0 0 22px 8px rgba(242, 165, 74, 0.55); }
.picture-cell[aria-checked="true"]:focus-visible > img, .picture-cell[aria-checked="true"]:focus-visible > .avatar { box-shadow: 0 0 0 2px var(--ground-low), 0 0 0 5px var(--amber); }
@media (max-width: 640px) {
  .picture-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .picture-tab { padding: 0 6px; font-size: 13px; }
  .picture-grid { gap: 6px; }
}
