:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  color-scheme: light dark;
  --canvas: light-dark(#f3f6fb, #0e1727);
  --ink: light-dark(#172943, #e8f0fc);
  --muted: light-dark(#53657d, #adbed5);
  --line: light-dark(#dce5f0, #35475f);
  --paper: light-dark(#fff, #172438);
  --surface: light-dark(#f8faff, #1d2c42);
  --hover: light-dark(#f1f5fb, #25364f);
  --blue: light-dark(#2458a4, #a7cbff);
  --soft: light-dark(#e8f0fd, #263e62);
  --dark: light-dark(#13294a, #111c30);
  --input: light-dark(#fff, #121e31);
  --input-border: light-dark(#cbd8e8, #506580);
  --placeholder: light-dark(#65758a, #9eafc7);
  --focus: light-dark(#3a73cb, #82b2f6);
  --primary: light-dark(#285dab, #3469b4);
  --primary-hover: light-dark(#17478d, #3b71bd);
  --selected: light-dark(#edf4ff, #233958);
  --selected-line: light-dark(#dbe7fa, #3c5982);
  --accent-surface: light-dark(#e3efff, #253e65);
  --accent-border: light-dark(#d5e5fa, #435e86);
  --accent-ink: light-dark(#2b5ca0, #afd0ff);
  --status: light-dark(#edf1f7, #26354a);
  --status-ink: light-dark(#485a74, #bfcde1);
  --warning-bg: light-dark(#fcedea, #422733);
  --warning-ink: light-dark(#842823, #ffb4ab);
  --warning-border: light-dark(#f5d8d2, #714356);
  --tag-hover: light-dark(#d7e6fb, #395581);
  --panel-shadow: light-dark(#173b7009, #0003);
  --dialog-shadow: light-dark(#11295038, #0008);
  --radius: 14px;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.startup { min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 750; letter-spacing: -.8px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: #bad8ff; color: #13294a; flex: none; }
.brand-mark .icon { width: 20px; height: 20px; }
.auth-layout { min-height: 100dvh; display: grid; grid-template-columns: minmax(320px, 43%) minmax(0, 1fr); }
.auth-art { position: relative; isolation: isolate; overflow: hidden; padding: clamp(26px, 5vw, 76px); background: #13294a; color: #f8fbff; display: flex; flex-direction: column; justify-content: space-between; gap: 44px; }
.auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 62% 44%, #294f81 0, transparent 68%), linear-gradient(153deg, transparent 55%, #111f3d 100%); }
.auth-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#d8eaff0b 1px, transparent 1px), linear-gradient(90deg, #d8eaff0b 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(transparent 2%, #000 44%, transparent 97%); }
.art-center { flex: 1; align-content: center; justify-items: center; display: grid; min-height: 250px; }
.orbit { position: relative; display: grid; place-items: center; width: min(78%, 270px); aspect-ratio: 1; border: 1px solid #bad8ff56; border-radius: 50%; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid #bad8ff33; border-radius: 50%; }
.orbit::before { inset: 16%; }
.orbit::after { inset: -15%; border-style: dashed; }
.art-lock { z-index: 1; display: grid; place-items: center; width: 38%; aspect-ratio: 1; border: 1px solid #e3f0ff90; border-radius: 26%; background: linear-gradient(135deg, #d9ebff, #8dbcf8); color: #1c4780; box-shadow: 0 16px 60px #071a37aa; transform: rotate(-9deg); }
.art-lock .icon { width: 51%; height: 51%; }
.orbit-icon { display: grid; place-items: center; position: absolute; z-index: 1; width: 44px; height: 44px; border: 1px solid #92bafa62; border-radius: 13px; background: #224676; color: #bdd8ff; }
.orbit-icon.first { top: 8%; right: 1%; transform: rotate(10deg); }
.orbit-icon.second { bottom: 3%; left: 8%; transform: rotate(-14deg); }
.art-copy h2 { max-width: 400px; font-size: clamp(32px, 4vw, 55px); line-height: 1.03; font-weight: 670; letter-spacing: -.05em; }
.art-copy p { max-width: 320px; margin-top: 13px; color: #c9daef; line-height: 1.55; }
.auth-side { display: grid; place-items: center; padding: clamp(22px, 6vw, 90px); }
.auth-box { width: min(100%, 414px); }
.auth-box h1 { font-size: clamp(29px, 4vw, 42px); letter-spacing: -.052em; line-height: 1.13; }
.auth-box > p { color: var(--muted); margin-top: 10px; line-height: 1.55; }
.auth-box form { display: grid; gap: 16px; margin-top: 27px; }
.auth-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 19px; color: var(--muted); font-size: .92rem; }
.auth-box .button.primary { min-height: 46px; justify-content: center; }
.setup-qr { width: 176px; padding: 8px; display: block; background: white; border: 1px solid var(--line); border-radius: 13px; margin: 14px auto 12px; }
.setup-key { display: grid; gap: 5px; font-size: .82rem; color: var(--muted); }
.setup-key code { overflow-wrap: anywhere; color: var(--ink); background: var(--paper); padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; }
.recovery-list { display: grid; grid-template-columns: 1fr; gap: 5px; margin-block: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 13px 17px; }
.recovery-list code { color: var(--ink); font-size: .86rem; overflow-wrap: anywhere; }

.shell { min-height: 100dvh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100dvh; padding: 27px 17px 17px; background: var(--dark); color: #eff5ff; display: flex; flex-direction: column; }
.sidebar > .brand { margin: 0 10px 34px; }
.sidebar nav { overflow: auto; min-height: 0; }
.nav-heading { margin: 14px 10px 8px; display: flex; justify-content: space-between; align-items: center; color: #bfd0ec; font-weight: 680; font-size: .78rem; letter-spacing: .085em; text-transform: uppercase; }
.sidebar .icon-button { color: #d8e8ff; }
.sidebar .icon-button:hover { background: #ffffff14; }
.nav-link { color: #e8f0ff; background: transparent; border: 1px solid transparent; border-radius: 9px; min-height: 43px; padding: 8px 10px; width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; font-size: .92rem; }
.nav-link .icon { color: #afd0ff; }
.nav-link:hover { background: #ffffff0c; }
.nav-link[aria-current="page"] { background: #2c4e7f; border-color: #a9ceff30; font-weight: 680; }
.nav-link[aria-current="page"] .icon { color: #c6dfff; }
.nav-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.nav-count { color: #bdcff0; font-size: .78rem; padding-left: 6px; }
.account-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px; margin-top: auto; padding-top: 15px; border-top: 1px solid #b9d6ff24; }
.account-nav .nav-link { min-width: 0; padding-left: 6px; }
.avatar { width: 36px; height: 36px; border-radius: 12px; background: light-dark(#d4e6ff, #334c73); color: light-dark(#224a84, #d3e5ff); display: inline-grid; place-items: center; font-weight: 750; font-size: .8rem; flex: none; }
.account-name { display: grid; gap: 1px; min-width: 0; flex: 1; }
.account-name strong, .account-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-name small { color: #b7c8e3; font-size: .76rem; }
.workspace { min-width: 0; padding: 32px clamp(20px, 4vw, 60px) 50px; }
.workspace-inner { max-width: 1470px; margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.crumb { color: var(--muted); font-weight: 620; font-size: .88rem; display: flex; align-items: center; gap: 9px; }
.crumb .icon { width: 16px; height: 16px; }
.crumb strong { color: var(--ink); }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 31px 0 24px; }
.heading h1 { font-size: clamp(30px, 4.4vw, 45px); font-weight: 750; letter-spacing: -.054em; line-height: 1.12; overflow-wrap: anywhere; }
.heading-copy { min-width: 0; }
.heading p { color: var(--muted); margin-top: 8px; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.heading .actions { justify-content: end; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 9px; min-height: 39px; padding: 8px 13px; font-weight: 680; font-size: .9rem; white-space: nowrap; }
.button .icon { width: 17px; height: 17px; }
.button:hover { background: var(--hover); }
.button.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.button.danger { background: #9e322b; color: #fff; border-color: #9e322b; }
.button.danger:hover { background: #802821; }
.icon-button, .text-button { color: var(--blue); border: 1px solid transparent; background: transparent; border-radius: 7px; padding: 5px 7px; }
.icon-button { min-width: 33px; min-height: 33px; display: inline-grid; place-items: center; }
.icon-button:hover, .text-button:hover { background: var(--soft); }
.text-button { padding-inline: 4px; font-weight: 700; }
.mobile-menu { display: none; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px var(--panel-shadow); min-width: 0; }
.vault-grid { display: grid; grid-template-columns: minmax(250px, .87fr) minmax(310px, 1.4fr); min-height: 505px; }
.list-pane { min-width: 0; padding: 16px; border-right: 1px solid var(--line); }
.search { position: relative; display: block; margin-bottom: 15px; }
.search .icon { position: absolute; top: 11px; left: 11px; width: 17px; height: 17px; color: var(--muted); }
.search input { padding-left: 36px; background: var(--surface); }
.item-button { display: flex; align-items: center; gap: 11px; min-height: 62px; text-align: left; width: 100%; padding: 8px 9px; background: transparent; border: 1px solid transparent; color: var(--ink); border-radius: 10px; }
.item-button:hover { background: var(--hover); }
.item-button[aria-current="true"] { background: var(--selected); border-color: var(--selected-line); }
.item-tile { flex: none; display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; background: light-dark(#e9e9fb, #343451); color: light-dark(#59598f, #cecafa); }
.item-tile.tone-1 { background: var(--accent-surface); color: var(--accent-ink); }
.item-tile.tone-2 { background: light-dark(#f8ecde, #48362d); color: light-dark(#815a37, #f1bf94); }
.item-tile.tone-3 { background: light-dark(#e2eef7, #233e52); color: light-dark(#376484, #a9d7f4); }
.item-button .item-copy { display: grid; min-width: 0; gap: 2px; }
.item-copy strong, .item-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-copy strong { font-size: .93rem; }
.item-copy small { color: var(--muted); font-size: .8rem; }
.detail-pane { min-width: 0; display: flex; flex-direction: column; }
.detail-head { display: flex; align-items: center; gap: 13px; padding: 22px; border-bottom: 1px solid var(--line); }
.detail-head .item-tile { width: 49px; height: 49px; }
.detail-title { flex: 1; min-width: 0; }
.detail-title h2 { font-size: 1.23rem; overflow-wrap: anywhere; letter-spacing: -.025em; }
.detail-title p { color: var(--muted); font-size: .83rem; margin-top: 2px; }
.detail-fields { display: grid; gap: 15px; padding: 22px; }
.info-field { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.info-field dt { margin-bottom: 3px; color: var(--muted); font-size: .79rem; font-weight: 700; }
.info-field dd { min-width: 0; margin: 0; display: flex; gap: 6px; align-items: center; justify-content: space-between; }
.field-value { overflow-wrap: anywhere; white-space: pre-wrap; }
.field-value.secret { font-family: ui-monospace, monospace; font-size: .9rem; }
.detail-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 22px 20px; color: var(--muted); font-size: .8rem; }
.empty { display: grid; min-height: 330px; min-width: 0; flex: 1; place-content: center; justify-items: center; gap: 9px; text-align: center; color: var(--muted); padding: 22px; }
.empty h2 { color: var(--ink); font-size: 1.2rem; }
.empty p { max-width: 278px; font-size: .92rem; line-height: 1.5; }
.empty .button { margin-top: 6px; }
.empty-symbol { display: grid; place-items: center; width: 55px; height: 55px; background: var(--accent-surface); color: var(--accent-ink); border: 1px solid var(--accent-border); border-radius: 16px; margin-bottom: 4px; }
.empty-symbol .icon { width: 25px; height: 25px; }
.placeholder { color: var(--muted); padding: 11px 8px; font-size: .88rem; line-height: 1.45; }
.table-panel { padding: 5px 18px; overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 11px 8px; }
th { color: var(--muted); font-size: .84rem; }
tr:last-child td { border-bottom: 0; }
.member { display: flex; align-items: center; gap: 10px; }
.member > span:last-child { min-width: 0; }
.member strong, .member small { display: block; overflow-wrap: anywhere; }
.member small { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.status { font-size: .8rem; font-weight: 670; padding: 4px 8px; background: var(--status); color: var(--status-ink); border-radius: 6px; white-space: nowrap; }
.status.active { color: var(--accent-ink); background: var(--accent-surface); }
.settings { max-width: 600px; padding: 22px; display: grid; gap: 17px; }
.settings p { color: var(--muted); line-height: 1.45; }

label.field { font-size: .88rem; font-weight: 700; display: grid; gap: 6px; min-width: 0; }
input:not([type=checkbox]), textarea, select { width: 100%; min-height: 41px; color: var(--ink); background: var(--input); border: 1px solid var(--input-border); border-radius: 8px; padding: 8px 10px; }
.search input { padding-left: 36px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { min-height: 86px; resize: vertical; }
select { appearance: none; background: linear-gradient(45deg, transparent 50%, var(--placeholder) 50%) right 15px center / 5px 5px no-repeat, linear-gradient(135deg, var(--placeholder) 50%, transparent 50%) right 10px center / 5px 5px no-repeat, var(--input); padding-right: 29px; }
.field-help { font-size: .8rem; color: var(--muted); font-weight: 500; }
.form-error { color: var(--warning-ink); background: var(--warning-bg); border: 1px solid var(--warning-border); border-radius: 7px; padding: 9px 10px; font-size: .88rem; }
.inline-input { display: flex; gap: 7px; }
.inline-input input { min-width: 0; }
.check { display: flex; gap: 8px; align-items: center; }
.check input { accent-color: var(--blue); }
dialog { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(560px, calc(100% - 30px)); max-height: calc(100dvh - 30px); box-shadow: 0 22px 75px var(--dialog-shadow); }
dialog::backdrop { background: #102344a6; }
.modal-inner { padding: 20px 22px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin-bottom: 14px; }
.modal-head h2 { font-size: 1.38rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.modal-copy { color: var(--muted); line-height: 1.45; margin: -2px 0 14px; }
.modal-notice { margin-top: 10px; color: var(--blue); font-size: .86rem; }
.modal-form { display: grid; gap: 13px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 5px; }
.paired-apps-heading, .access-section-heading { margin: 20px 0 6px; }
.share-list { display: grid; gap: 9px; max-height: 48dvh; overflow: auto; }
.share-row { display: grid; grid-template-columns: minmax(0, 1fr) 136px; gap: 9px; align-items: center; padding: 8px 1px; border-bottom: 1px solid var(--line); }
.share-row.group-member-row { grid-template-columns: minmax(0, 1fr) auto auto; cursor: pointer; }
.group-member-row input { grid-column: 3; justify-self: end; }
.share-row:last-child { border-bottom: 0; }
.danger-text { color: var(--warning-ink); }
#toast { position: fixed; inset: auto 20px 20px auto; z-index: 5; max-width: min(375px, calc(100vw - 40px)); padding: 12px 15px; border-radius: 9px; background: #173c72; color: #fff; box-shadow: 0 6px 22px #11274750; font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 208px minmax(0, 1fr); }
  .workspace { padding-inline: 21px; }
  .vault-grid { grid-template-columns: minmax(190px, .8fr) minmax(245px, 1.2fr); }
  .heading { align-items: flex-start; }
  .detail-head, .detail-fields { padding-inline: 15px; }
  .detail-footer { padding-inline: 15px; }
}
@media (max-width: 740px) {
  .auth-layout { display: block; }
  .auth-art { padding: 16px 23px; }
  .art-center, .art-copy { display: none; }
  .auth-side { padding-top: 40px; }
  .shell { display: block; }
  .mobile-menu { display: inline-grid; }
  .sidebar { display: none; height: auto; position: static; }
  .shell.menu-open .sidebar { display: flex; }
  .sidebar > .brand { margin-bottom: 10px; }
  .account-nav { margin-top: 9px; }
  .workspace { padding: 14px 15px 30px; }
  .topbar { padding-bottom: 12px; }
  .heading { margin: 18px 0 17px; }
}
@media (max-width: 540px) {
  .heading { flex-direction: column; gap: 12px; }
  .heading .actions { justify-content: start; }
  .vault-grid { display: block; min-height: 0; }
  .list-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-pane { min-height: 260px; }
  .detail-pane .empty { min-height: 245px; }
  .share-row { grid-template-columns: minmax(0, 1fr) 120px; }
  .table-panel { padding-inline: 6px; }
  td, th { padding-inline: 5px; }
  .table-panel .member .avatar { display: none; }
}

.vault-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.vault-heading .actions { justify-content: flex-start; }
.heading-title { display: flex; align-items: center; gap: 13px; }
.vault-heading-icon { width: 48px; height: 48px; display: grid; flex: none; place-items: center; border: 1px solid var(--accent-border); border-radius: 13px; color: var(--accent-ink); background: var(--accent-surface); }
.vault-heading-icon .icon { width: 25px; height: 25px; }
.heading-copy p { white-space: pre-wrap; overflow-wrap: anywhere; }
.vault-status { display: flex; gap: 6px; margin: -12px 0 15px; }
.resource-menu {
  position: fixed; z-index: 8; display: grid; gap: 2px; min-width: min(184px, calc(100vw - 16px));
  max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; padding: 5px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: 0 12px 32px var(--dialog-shadow);
}
.resource-menu button {
  display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 0; border-radius: 6px;
  background: transparent; color: var(--ink); text-align: left; font-size: .86rem;
}
.resource-menu button.danger-text { color: var(--warning-ink); }
.resource-menu button:hover, .resource-menu button:focus-visible { background: var(--hover); }
.resource-menu hr { border: 0; border-top: 1px solid var(--line); margin: 3px 5px; }
.resource-menu .icon { width: 16px; height: 16px; flex: none; }
.list-search { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.list-search .search { flex: 1; min-width: 0; margin: 0; }
.list-search .icon-button { flex: none; }
.list-search .icon-button[aria-pressed="true"] { background: var(--selected); border-color: var(--selected-line); }
.list-tabs { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; }
.list-tabs .text-button { font-size: .85rem; padding: 5px 8px; }
.list-tabs .text-button[aria-pressed="true"] { color: var(--ink); background: var(--soft); }
#bulk-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 5px 0 9px; }
#bulk-actions .button { padding: 5px 8px; font-size: .83rem; }
.bulk-item-row { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 3px; }
.bulk-item-row input { justify-self: center; accent-color: var(--blue); }
.bulk-item-row .item-button { grid-column: 2; }
.list-tabs small { margin-left: auto; padding-right: 5px; color: var(--muted); font-size: .82rem; }
.icon-picker, .send-expiry { min-width: 0; margin: 0; padding: 0; border: 0; }
.icon-picker legend, .send-expiry legend { font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.icon-picker > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 7px; }
.icon-choice { position: relative; cursor: pointer; }
.icon-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.icon-choice span { display: grid; justify-items: center; gap: 5px; padding: 8px 3px; border: 1px solid var(--line); border-radius: 8px; font-size: .75rem; color: var(--muted); }
.icon-choice input:checked + span { color: var(--blue); background: var(--soft); border-color: var(--focus); font-weight: 650; }
.icon-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.archive-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.archive-panel { padding: 14px; }
.archive-panel h2 { font-size: 1rem; padding: 4px 8px 9px; }
.activity-panel { padding: 4px 18px; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.activity-list li:last-child { border-bottom: 0; }
.activity-list p, .activity-list small { color: var(--muted); font-size: .83rem; }
.activity-list strong, .activity-list p, .activity-list small { overflow-wrap: anywhere; display: block; }
.activity-list time { color: var(--muted); font-size: .79rem; text-align: right; }
.activity-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--blue); background: var(--soft); }
.activity-icon .icon { width: 17px; height: 17px; }
.activity-more { display: flex; justify-content: center; padding-block: 11px; }
.version-details .detail-fields { padding: 0; }
.public-send { width: min(660px, calc(100% - 30px)); margin: 0 auto; padding: clamp(30px, 6vw, 72px) 0; }
.public-brand { display: inline-block; margin-bottom: 20px; color: var(--ink); text-decoration: none; }
.public-card { padding: clamp(17px, 4vw, 30px); display: grid; gap: 15px; }
.public-card h1 { font-size: clamp(26px, 5vw, 36px); letter-spacing: -.045em; overflow-wrap: anywhere; }
.public-card > p { color: var(--muted); }
.send-expiry p { margin-top: 5px; }
.public-card form { max-width: 380px; }
.public-text { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.public-text pre { display: block; max-height: 40vh; overflow: auto; margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
@media (max-width: 540px) {
  .archive-grid { grid-template-columns: 1fr; }
  .activity-list time, .activity-list li > .actions { grid-column: 2; text-align: left; }
}

.vault-list-divider { border: 0; border-top: 1px solid var(--line); margin: 6px 9px; }
.folder-back { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; margin: 0 0 10px; }
.folder-back .icon { width: 17px; height: 17px; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.tag-chips span { border-radius: 6px; padding: 3px 8px; color: var(--blue); background: var(--soft); font-size: .78rem; overflow-wrap: anywhere; }
.detail-title .tag-chips { margin-top: 5px; }
.custom-editor { display: grid; justify-items: start; gap: 10px; min-width: 0; border: 0; margin: 3px 0 0; padding: 0; }
.custom-editor legend { margin-bottom: 6px; font-size: .88rem; font-weight: 700; }
.attribute-list { width: 100%; display: grid; gap: 8px; }
.attribute-list:empty { display: none; }
.attribute-row { display: grid; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; }
.attribute-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 7px; }
.attribute-value textarea { min-height: 55px; }
.custom-value { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; align-items: center; }
.totp-editor-list, .totp-editor-row { display: grid; gap: 7px; width: 100%; }
.totp-editor-list { gap: 10px; }
.totp-secret-input { align-items: center; }
.totp-secret-input input { flex: 1; }
.totp-remaining { padding: 2px 6px; border-radius: 5px; font-size: .76rem; font-weight: 650;
  min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
.totp-remaining[data-remaining="valid"] { color: light-dark(#14532d, #bbf7d0); background: light-dark(#dcfce7, #163525); }
.totp-remaining[data-remaining="warning"] { color: light-dark(#713f12, #fef08a); background: light-dark(#fef9c3, #443515); }
.totp-remaining[data-remaining="critical"] { color: light-dark(#991b1b, #fecaca); background: light-dark(#fee2e2, #4a262b); }
.inherited-choice { margin-bottom: 5px; font-weight: 650; }
.inherited-choice + p { margin-bottom: 12px; }
.sso-option { display: grid; gap: 6px; margin-top: 11px; }
@media (max-width: 540px) {
  .detail-head { flex-wrap: wrap; }
  .detail-head > .actions { margin-left: auto; }
  .vault-status { flex-wrap: wrap; }
}

input:not([type=checkbox]), textarea, select, input::file-selector-button { font-size: 16px; font-weight: 400; }
.topbar-actions { display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
.crumb { min-width: 0; }
.crumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-nav-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px; align-items: center; }
.vault-tree-toggle .icon { width: 15px; height: 15px; }
.vault-tree-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
.folder-tree { list-style: none; padding-inline-start: 12px; margin: 2px 0 4px 8px; border-inline-start: 1px solid #abc5e94d; }
.folder-tree .folder-tree .folder-tree .folder-tree .folder-tree { padding-inline-start: 0; margin-inline-start: 0; border: 0; }
.tree-folder { min-height: 35px; gap: 7px; font-size: .83rem; }
.tree-folder .icon, .folder-back .icon { width: 16px; height: 16px; }
.folder-back .icon { transform: rotate(180deg); }
.tree-status { font-size: .78rem; margin: 3px 9px 8px; color: #b7c8e3; overflow-wrap: anywhere; }
.global-find { display: grid; gap: 10px; }
.global-find .search { margin: 0; }
.global-find .check { color: var(--muted); font-size: .86rem; }
.global-results { margin-top: 12px; max-height: min(53dvh, 480px); overflow: auto; }
.global-hit .item-copy { flex: 1; }
.global-hit .tag-chips { justify-content: flex-end; max-width: 35%; }
.tag-editor { margin: 0; padding: 0; min-width: 0; border: 0; display: grid; gap: 6px; }
.tag-editor legend { font-size: .88rem; font-weight: 700; margin-bottom: 6px; }
.tag-input { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px 6px; min-width: 0; min-height: 42px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--input); }
.tag-input:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.editable-tags { display: contents; list-style: none; }
.editable-tags li { max-width: 100%; min-height: 28px; display: inline-flex; align-items: center; gap: 3px; padding: 0 4px 0 8px; border-radius: 6px; color: var(--blue); background: var(--soft); font-size: .83rem; }
.editable-tags li span { min-width: 0; overflow-wrap: anywhere; }
button.tag-remove { width: 24px; height: 24px; flex: none; display: grid; place-items: center; padding: 0; border: 0; border-radius: 4px; color: inherit; background: transparent; }
button.tag-remove:hover { background: var(--tag-hover); }
button.tag-remove .icon { width: 14px; height: 14px; }
.tag-input input { flex: 1 0 112px; min-width: 0; min-height: 28px; width: auto; border: 0; padding: 3px 4px; background: transparent; outline: none; }
.passkey-list { width: 100%; display: grid; gap: 8px; }
.passkey-list:empty { display: none; }
.passkey-existing, .passkey-import { border: 1px solid var(--line); border-radius: 9px; padding: 9px; }
.passkey-existing { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.passkey-label { min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.passkey-label small { color: var(--muted); font-size: .83rem; }
.passkey-import { display: grid; gap: 8px; }
.passkey-import-title { grid-template-columns: minmax(0, 1fr) auto; }

.settings-appearance { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 9px; }
.settings-appearance h2 { font-size: 1.05rem; }
.appearance-control { width: min(100%, 230px); }
input[type=file]::file-selector-button { border: 0; border-radius: 5px; margin-inline-end: 8px; padding: 4px 8px; color: var(--ink); background: var(--soft); }
.import-summary { padding: 9px 12px; border-radius: 8px; color: var(--ink); background: var(--soft); }
.import-titles { margin: 0; padding-inline-start: 22px; display: grid; gap: 4px; overflow-wrap: anywhere; }
.public-policy { margin-bottom: 13px; }
.public-new-link { margin-block: 12px 2px; }
.public-link-list { list-style: none; margin: 12px 0 0; padding: 0; max-height: 265px; overflow: auto; }
.public-link-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-block: 8px; border-top: 1px solid var(--line); }
.public-link-list li span { color: var(--muted); font-size: .84rem; }
.public-share { width: min(750px, calc(100% - 30px)); }
.public-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.public-share #public-item:not(:empty) { padding-top: 14px; border-top: 1px solid var(--line); }
.public-share #public-item h2 { font-size: 1.12rem; overflow-wrap: anywhere; }
.public-share .detail-fields { padding: 0; margin: 12px 0; }
.public-items { max-height: 270px; overflow: auto; }
.public-items .item-button { min-height: 50px; }


.server-info-section + .server-info-section { margin-top: 24px; }
.server-info-section h2 { margin-bottom: 10px; font-size: 1.06rem; }
.server-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr)); gap: 10px; margin: 0; }
.server-metric { min-width: 0; padding: 14px 16px; }
.server-metric dt { color: var(--muted); font-size: .86rem; }
.server-metric dd { margin: 4px 0 0; font-size: 1.42rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.server-metric small { display: block; margin-top: 3px; color: var(--muted); font-size: .77rem; font-weight: 400; }
.server-info-status { padding: 16px; color: var(--muted); }
.server-info-footer { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.server-info-footer p { margin-top: 4px; }
