/* Documents page */
.store-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 16px; border-radius: 12px; background: var(--tint-teal); border: 1px solid var(--border-teal); font-size: 14px; color: var(--body); line-height: 1.55; }
.store-note > .i { color: var(--brand); margin-top: 4px; flex: none; }
.store-note strong { color: var(--heading); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--border-subtle); background: var(--page); cursor: pointer; text-align: left; font: inherit; transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
@media (hover: hover) and (pointer: fine) { .stat:hover { border-color: var(--brand); box-shadow: var(--shadow-card); } }
.stat-ic { width: 30px; height: 30px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; margin-bottom: 4px; }
.st-ready .stat-ic { background: var(--badge-green-bg); color: var(--badge-green-fg); }
.st-missing .stat-ic { background: var(--badge-gray-bg); color: var(--badge-gray-fg); }
.st-soon .stat-ic { background: var(--badge-orange-bg); color: var(--badge-orange-fg); }
.st-expired .stat-ic { background: #fde3e1; color: #b3261e; }
.stat-n { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1; color: var(--heading); }
.stat-l { font-size: 13px; color: var(--muted); }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
/* Needs attention and the privacy note on the left, "Your copies" beside them, so neither column has a gap */
.ov-grid { grid-template-areas: "alerts copies" "note copies"; align-items: start; }
.ov-grid > :first-child { grid-area: alerts; }
.ov-grid > .backup { grid-area: copies; align-self: stretch; }
.ov-grid > .store-note { grid-area: note; margin-top: 0; }
@media (max-width: 1100px) { .ov-grid { grid-template-areas: "alerts" "copies" "note"; } }
.ov-h { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); margin-bottom: 12px; display: block; }
.alerts { list-style: none; display: grid; gap: 8px; }
.alerts a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--page); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .alerts a:hover { background: var(--tint-teal); } }
.al-ic { width: 32px; height: 32px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 13px; background: var(--badge-orange-bg); color: var(--accent-ink); }
.al-ic.f-expired { background: #fde3e1; color: #b3261e; }
.al-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.al-b strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.al-none { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 12px; background: var(--badge-green-bg); color: var(--badge-green-fg); font-size: 14px; font-weight: 500; line-height: 1.5; }
.al-none .i { margin-top: 4px; flex: none; }
.backup { padding: 16px; border-radius: 16px; background: var(--page); display: grid; gap: 12px; align-content: start; }
.bk-state { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--body-strong); }
.bk-dot { width: 10px; height: 10px; margin-top: .45em; border-radius: 50%; background: #2f9e6b; flex: none; }
.bk-dot.warn { background: var(--accent); }
.bk-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-opts { display: grid; gap: 12px; }
.bk-vault { display: grid; gap: 8px; }
.bk-vault[hidden] { display: none; }
.bk-vault .vt-err:empty, .bk-vault .vt-msg:empty { display: none; }
.bk-opts[hidden] { display: none; }
.bk-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--brand); font: 600 14px var(--font-body); cursor: pointer; }
.bk-more[hidden] { display: none; }
.bk-more .i { transition: transform .2s ease-out; }
.bk-more.open .i { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .bk-more:hover { text-decoration: underline; } }
.bk-warn { font-size: 13px; color: var(--accent-ink); font-weight: 500; }
.bk-warn[hidden], #idbWarn[hidden] { display: none; }
.bk-small { font-size: 13px; color: var(--muted); }
.bk-drive { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); font-size: 14px; color: var(--body-strong); }
.bk-drive[hidden], #driveBtn[hidden], #driveGetBtn[hidden] { display: none; }
/* Your files on every device (locked copies in the account) */
.vault { margin-top: 20px; padding: 16px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); display: grid; gap: 12px; }
.vault[hidden] { display: none; }
.vt-head { display: flex; gap: 12px; align-items: flex-start; }
.vt-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--tint-teal); color: var(--brand); }
.vt-t { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.vt-s { display: block; margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--body); }
.vt-form { display: grid; gap: 12px; max-width: 440px; }
.vt-form .field input { background: var(--card); }
.vt-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--body); cursor: pointer; }
.vt-check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--brand); }
.vt-code { padding: 12px 16px; border-radius: 12px; background: var(--page); color: var(--heading); font: 600 19px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .05em; word-break: break-all; user-select: all; -webkit-user-select: all; }
.vt-err { font-size: 14px; font-weight: 500; color: #b3261e; }
.vt-msg { font-size: 14px; color: var(--body); }
.vt-err:empty, .vt-msg:empty { display: none; }
.vault .btn.link { justify-self: start; height: auto; min-height: 44px; padding: 0; background: none; border: 0; color: var(--brand); font-size: 14px; text-decoration: underline; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.danger { color: #b3261e; }
label.btn { cursor: pointer; position: relative; }
label.btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
label.btn:focus-within { outline: 3px solid rgba(0,151,178,.3); outline-offset: 2px; }

/* Packs */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; grid-auto-flow: row dense; }
/* Folding lists (14 Nov 2026): closed shows the name, progress and what's still to get; the header opens the rest.
   Closed cards in a row share one height; an open card takes the whole row. */
.pack-tg { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 12px; }
.pack-tg:focus-visible { outline: 3px solid rgba(0,151,178,.25); outline-offset: 4px; }
.pack-chev { flex: none; font-size: 13px; color: var(--muted); transition: transform .2s var(--ease); }
.pack.open .pack-chev { transform: rotate(180deg); }
.pack-prog { display: flex; align-items: center; gap: 12px; }
.pack-prog .pack-bar { flex: 1; }
.pack-miss { font-size: 13px; line-height: 1.5; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pack.open .pack-miss { display: none; }
.pack-body { display: flex; flex-direction: column; gap: 16px; }
.pack:not(.open) .pack-body { display: none; }
.pack.open { grid-column: 1 / -1; }
.pack.open .pack-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 24px; }
.pack-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .pack-foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; } .pack-foot .pack-note { max-width: 640px; } .pack-foot .pack-acts { flex: none; } }
body.printing .pack.print-me .pack-body { display: flex; }
body.printing .pack.print-me .pack-miss, body.printing .pack-chev { display: none; }
.pack { display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--card); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); }
.pack-top { display: flex; align-items: center; gap: 12px; }
.pack-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 16px; flex: none; }
.pack-h { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pack-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); line-height: 1.3; }
.pack-when { font-size: 13px; color: var(--muted); }
.pack-count { flex: none; font-size: 13px; font-weight: 600; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.pack-bar { height: 6px; border-radius: 999px; background: rgba(14,133,159,.14); overflow: hidden; }
.pack-bar span { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s var(--ease); }
.pack-list { list-style: none; display: grid; gap: 2px; }
.pack-list a { display: flex; align-items: center; gap: 12px; padding: 8px 8px; border-radius: 12px; text-decoration: none; font-size: 14px; color: var(--body-strong); }
@media (hover: hover) and (pointer: fine) { .pack-list a:hover { background: var(--page); } }
.pk-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 2px solid var(--icon-muted); }
.pack-list .f-ready .pk-dot { background: #2f9e6b; border-color: #2f9e6b; }
.pack-list .f-soon .pk-dot, .pack-list .f-check .pk-dot { background: var(--accent); border-color: var(--accent); }
.pack-list .f-expired .pk-dot { background: #b3261e; border-color: #b3261e; }
.pack-list .f-na { opacity: .55; }
.pk-n { flex: 1; min-width: 0; }
.pk-s { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pack-list .f-soon .pk-s, .pack-list .f-check .pk-s { color: var(--accent-ink); font-weight: 600; }
.pack-list .f-expired .pk-s { color: #b3261e; font-weight: 600; }
.pack-note { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pack-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Document list */
.dtools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.dsearch { display: flex; align-items: center; gap: 12px; flex: 1 1 240px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow-card); color: var(--icon-muted); }
.dsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 15px var(--font-body); color: var(--heading); }
.dsearch:focus-within { outline: 3px solid rgba(0,151,178,.25); }
.dsel { height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--card); box-shadow: var(--shadow-card); font: 600 14px var(--font-display); color: var(--body-strong); }
.catchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.catchip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font: 600 14px var(--font-display); color: var(--body); cursor: pointer; }
.catchip .i { font-size: 12px; color: var(--icon-muted); }
.catchip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.catchip.active .i { color: #fff; }
.add-box { margin-bottom: 20px; }
.add-box summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--tint-teal); border: 1px solid var(--border-teal); color: var(--brand-deep); font: 600 14px var(--font-display); cursor: pointer; }
.add-box summary::-webkit-details-marker { display: none; }
.add-form { margin-top: 12px; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); display: grid; grid-template-columns: 1fr 1.4fr 1.4fr auto; gap: 12px; align-items: end; }
.dgroup + .dgroup { margin-top: 28px; }
.dg-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dg-ic { width: 30px; height: 30px; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); font-size: 13px; }
.dg-n { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--heading); }
.dg-c { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--brand-deep); }
.dlist { list-style: none; display: grid; gap: 12px; }
.drow { background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); border: 1.5px solid transparent; scroll-margin: 120px; transition: border-color .2s var(--ease); }
.drow.flash { border-color: var(--brand); }
.drow.f-soon, .drow.f-check { border-color: var(--border-orange); }
.drow.f-expired { border-color: #f0b4ae; }
.drow.f-na { opacity: .7; }
.dmain { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.dic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--page); color: var(--icon-muted); font-size: 15px; flex: none; }
.f-ready .dic { background: var(--badge-green-bg); color: var(--badge-green-fg); }
.dtext { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dname { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--heading); }
.dopt { font: 600 11px var(--font-body); padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.dsub { font-size: 14px; color: var(--muted); }
.dchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.dchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--chip-fg); background: var(--chip); padding: 4px 12px; border-radius: 999px; }
.dchip .i { font-size: 12px; color: var(--icon-muted); }
.dchip.f-soon, .dchip.f-check { background: var(--badge-orange-bg); color: var(--badge-orange-fg); }
.dchip.f-expired { background: #fde3e1; color: #b3261e; }
.dmain .doc-pill { min-width: 104px; justify-content: center; }
.dtoggle .dchev { font-size: 11px; transition: transform .2s var(--ease); }
.drow.open .dchev { transform: rotate(180deg); }
.dpanel { padding: 4px 20px 20px 72px; display: grid; gap: 16px; }
.dp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.dpanel textarea { width: 100%; min-height: 64px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--page); font: 400 15px var(--font-body); color: var(--heading); resize: vertical; }
.dp-link { display: inline-flex; align-items: center; gap: 8px; height: 44px; font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.dp-link .i { font-size: 12px; }
.dp-files { padding: 16px; border-radius: 12px; background: var(--page); display: grid; gap: 12px; }
.dp-fh { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dp-ft { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.flist { list-style: none; display: grid; gap: 6px; }
.flist li { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 12px; background: var(--card); }
.fl-ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); flex: none; font-size: 14px; }
.fl-b { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fl-n { font-size: 14px; font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-s { font-size: 12px; color: var(--muted); }
.fl-a { display: flex; gap: 4px; flex: none; }
.flist .fl-none { background: transparent; padding: 4px 0; font-size: 14px; color: var(--muted); }
.ibtn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--body); cursor: pointer; display: grid; place-items: center; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .ibtn:hover { border-color: var(--brand); color: var(--brand); } }
.ibtn.danger.armed { border-color: #b3261e; color: #fff; background: #b3261e; }
@media (hover: hover) and (pointer: fine) { .ibtn.danger:hover { border-color: #b3261e; color: #fff; background: #b3261e; } }
.ibtn.ok { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.link.danger { justify-self: start; margin: 0; padding: 0; height: auto; color: #b3261e; }

/* Numbers */
.numlist { list-style: none; display: grid; gap: 8px; }
.numlist li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); }
.nm-l { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }
.nm-sync { font: 500 12px var(--font-body); color: var(--brand-deep); }
.nm-val { font: 600 15px var(--font-body); color: var(--heading); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.nm-val.masked { color: var(--body); letter-spacing: .08em; }
.nm-empty { font-size: 14px; color: var(--muted); }
.nm-in { width: 100%; height: 38px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--brand); font: 500 15px var(--font-body); }
.nm-a { display: flex; gap: 4px; }

/* Share codes */
.code-form { display: grid; grid-template-columns: minmax(230px, 1.3fr) repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; align-items: end; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); margin-bottom: 16px; }
.codelist { list-style: none; display: grid; gap: 8px; }
.codelist li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-card); }
.codelist li.expired { opacity: .7; }
.codelist .fl-none { box-shadow: none; background: transparent; padding: 4px 0; font-size: 14px; color: var(--muted); }
.cd-ic { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--badge-teal-bg); color: var(--brand); flex: none; font-size: 13px; }
.cd-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.cd-b strong { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--heading); }

/* Side */
.sc-list { display: grid; gap: 4px; margin-top: 16px; }
.sc-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px; background: var(--panel-row); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .sc-row:hover { background: var(--card); } }
.sc-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--card); color: var(--brand); font-size: 12px; }
.sc-n { flex: 1; font-size: 14px; font-weight: 600; color: var(--heading); }
.sc-c { font-size: 13px; font-weight: 600; color: var(--brand-deep); font-variant-numeric: tabular-nums; }

/* Viewer */
.viewer { position: fixed; inset: 0; z-index: 80; background: rgba(10,30,40,.6); display: grid; place-items: center; padding: 16px; }
.viewer[hidden] { display: none; }
.vw-card { width: min(960px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--card); border-radius: 24px; overflow: hidden; }
.vw-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px; border-bottom: 1px solid var(--border-subtle); }
.vw-n { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 600; color: var(--heading); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: var(--page); display: grid; place-items: center; }
.vw-body img { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); display: block; }
.vw-body iframe { width: 100%; height: calc(100vh - 120px); height: calc(100dvh - 120px); border: 0; background: #fff; }
.vw-none { display: flex; gap: 12px; align-items: center; padding: 40px; color: var(--muted); }
#vwSt { padding: 0 16px 12px; }
/* Phones: the document viewer fills the screen and slides up, like an app's full-screen preview (animation in site-fixes.css) */
@media (max-width: 640px) {
  .viewer { padding: 0; place-items: stretch; }
  .vw-card { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding-top: var(--safe-top); padding-bottom: var(--safe-bottom); animation: jf-sheet-up .26s cubic-bezier(.2, .8, .2, 1); }
  .vw-body img { max-height: none; }
  .vw-body iframe { height: 100%; align-self: stretch; }
  .vw-head .jn-close { width: 44px; height: 44px; }
}

@media (max-width: 1100px) { .ov-grid { grid-template-columns: 1fr; } .add-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dmain { flex-wrap: wrap; padding: 16px; gap: 12px; }
  .dtext { flex: 1 1 calc(100% - 56px); }
  .dmain .doc-pill { margin-left: 52px; min-width: 0; }
  .dtoggle { margin-left: auto; }
  .dpanel { padding: 0 16px 16px; }
  .add-form { grid-template-columns: 1fr; }
  .numlist li { grid-template-columns: 1fr auto; }
  .nm-l { grid-column: 1 / -1; }
  .dsel { flex: 1 1 100%; }
}
@media print {
  body.printing * { visibility: hidden !important; }
  body.printing .print-me, body.printing .print-me * { visibility: visible !important; }
  body.printing .print-me { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; }
  body.printing .pack-acts { display: none; }
}

.p-opt { background: var(--chip); color: var(--muted); }
.pack-list .f-opt .pk-dot { border-style: dashed; }

/* Doesn't apply controls */
.dmain .ck-nabtn { flex: none; }
.pack-list li { display: flex; align-items: center; gap: 4px; }
.pack-list li > a { flex: 1; min-width: 0; }
.pk-na { width: 28px; height: 28px; flex: none; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--icon-muted); cursor: pointer; display: grid; place-items: center; font-size: 11px; opacity: .6; transition: opacity .15s var(--ease); }
.pk-na:focus-visible,.pk-na.on { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .pack-list li:hover .pk-na { opacity: 1; } }
@media (hover: hover) and (pointer: fine) { .pk-na:hover { border-color: var(--border); color: var(--body); background: var(--page); } }
.pk-na.on { color: var(--brand-deep); }
.pack-acts .ck-nabtn { margin-left: auto; }
.pack.pack-na { opacity: .75; padding: 16px 20px; }
.pack.pack-na .pack-ic { background: var(--chip); color: var(--muted); }
.numlist li.nm-na { opacity: .7; }
@media (hover: none) { .pk-na { opacity: 1; } }
@media (max-width: 640px) { .dmain .ck-nabtn { margin-left: 52px; } .dmain .doc-pill + .ck-nabtn { margin-left: 0; } }
.pack-top .pack-nabtn { opacity: 1; width: 32px; height: 32px; border: 1px solid var(--border); background: var(--card); }
@media (hover: hover) and (pointer: fine) { .pack-top .pack-nabtn:hover { border-color: var(--brand); color: var(--brand); } }
@media (max-width: 640px) {
  .dmain .doc-pill { margin-left: 0; }
  .dmain .ck-nabtn, .dmain .doc-pill + .ck-nabtn { margin-left: 0; height: 34px; padding: 0 12px; font-size: 13px; }
  .dmain .dtoggle { padding: 0 12px; }
}
.stage-note { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: var(--tint-teal); font-size: 14px; color: var(--body); line-height: 1.5; }
.stage-note > .i { color: var(--brand); margin-top: 4px; flex: none; }
.stage-note .btn.link { height: auto; padding: 0; margin: 0 0 0 4px; font-size: 14px; color: var(--brand-deep); text-decoration: underline; }
/* The "For" dropdown needs room for "Landlord or letting agent"; one column on phones */
@media (max-width: 640px) { .code-form { grid-template-columns: 1fr; } }

/* Opening without jumps (12 Nov 2026): documents.js fills the note under the progress bar after the page first
   draws; hold its line(s) until then (measured 12 Nov 2026) */
#progMeta:empty { min-height: 21px; }
@media (max-width: 640px) { #progMeta:empty { min-height: 42px; } }
/* the four summary tiles (Ready, Missing, Due soon, Expired) */
#stats:empty { min-height: 128px; }
@media (max-width: 640px) { #stats:empty { min-height: 266px; } }

/* Your own details in Important numbers (16 Nov 2026): the same list as the Visa roadmap's */
.numlist li.nm-own-add { display: block; padding: 4px 0 0; background: none; box-shadow: none; }
.numlist li.nm-own-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; }
.nm-own-acts { display: flex; gap: 8px; }
.nm-in-l { height: 38px; }
@media (max-width: 640px) { .numlist li.nm-own-form { grid-template-columns: minmax(0, 1fr); } }
