:root {
    --bg: #f5f6f3;
    --surface: #fff;
    --ink: #202f2b;
    --muted: #6c7872;
    --line: #e4e9e3;
    --green: #22664e;
    --green-dark: #173d35;
    --green-soft: #edf5ef;
    --radius: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; }
button:disabled { opacity: .45; }
:focus-visible { outline: 3px solid #6d9d81; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.icon { flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -70px; padding: 12px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1320px; padding: 0 40px; margin: auto; min-height: 88px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; gap: 11px; align-items: center; color: var(--green-dark); font-size: 23px; font-weight: 750; letter-spacing: -.8px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: var(--green-dark); color: #e8f5e9; border-radius: 11px; width: 40px; height: 40px; }
.brand-mark .icon { width: 25px; height: 25px; }
.brand-divider { width: 1px; height: 21px; background: var(--line); margin: 0 3px 0 7px; }
.brand-caption { font-size: 12px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
nav { display: flex; gap: 6px; margin-left: auto; }
.nav-link { padding: 10px 15px; display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; font-weight: 600; border-radius: 7px; }
.nav-link:hover { background: #f4f7f3; text-decoration: none; }
.nav-link.is-active { background: var(--green-soft); color: var(--green-dark); }
.nav-link .icon { width: 17px; height: 17px; }
.local-indicator, .saved-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5d9a72; box-shadow: 0 0 0 3px #edf4ee; flex-shrink: 0; }
.main-container { max-width: 1320px; margin: auto; padding: 48px 40px 42px; min-height: calc(100vh - 180px); }
.dashboard-page .header-inner { min-height: 68px; }
.dashboard-page .main-container { padding-top: 24px; min-height: 0; }
.dashboard-page .nav-link { min-height: 44px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 32px; }
.eyebrow { color: var(--green); letter-spacing: 1.65px; font-size: 10px; font-weight: 750; margin-bottom: 9px; }
h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.22; font-weight: 650; letter-spacing: -1.15px; overflow-wrap: anywhere; }
.page-description { color: var(--muted); margin-top: 9px; font-size: 14px; }
.button { min-height: 40px; padding: 10px 16px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { text-decoration: none; }
.button .icon { width: 16px; height: 16px; }
.button-primary { background: var(--green); color: white; box-shadow: 0 2px 2px #173d3510; }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { background: white; color: var(--ink); border-color: #dce3dc; }
.button-secondary:hover { background: #f1f5f0; border-color: #bdcdbf; }
.button-transfer { background: #edf4ee; color: var(--green); border-color: #dce8de; padding: 9px 13px; }
.button-transfer:hover:not(:disabled) { background: #dcecdf; border-color: #b9d1bf; }
.button-small { font-size: 11px; min-height: 32px; padding: 6px 9px; }
.button-quiet { background: transparent; color: var(--muted); }
.button-quiet:hover { background: #f3f5f1; color: var(--ink); }
.button-small .icon { width: 14px; height: 14px; }
.icon-button { background: none; border: 0; display: inline-flex; align-items: center; justify-content: center; padding: 9px; border-radius: 6px; color: #7e8a81; }
.icon-button:hover { background: #edf2ec; color: var(--green); text-decoration: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; background: white; border: 1px solid var(--line); border-radius: 11px; padding: 22px; }
.stat-icon { width: 43px; height: 43px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.green { color: #347150; background: #edf5ed; }
.blue { color: #50798f; background: #edf3f8; }
.amber { color: #a1843a; background: #faf4e5; }
.violet { color: #7c6b9a; background: #f3eff8; }
.stat-label { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.stat-card strong { display: block; font-size: 27px; font-weight: 650; line-height: 1.2; letter-spacing: -.6px; }
.stat-caption { grid-column: 1 / -1; margin-top: 17px; padding-top: 12px; border-top: 1px solid #f0f2ed; color: #8a948d; font-size: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 5px #263c2603; overflow: hidden; }
.panel-heading { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h2 { display: flex; align-items: center; gap: 9px; font-size: 17px; line-height: 1.4; font-weight: 650; letter-spacing: -.3px; }
h2 > .icon { color: var(--green); width: 19px; height: 19px; margin-right: 3px; }
.panel-heading p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.key-panel .panel-heading { padding-top: 18px; padding-bottom: 16px; }
.key-panel h1 { display: flex; align-items: center; gap: 10px; font-size: 21px; letter-spacing: -.4px; }
.key-panel .empty-state { padding: 24px; }
.key-panel .empty-state h3 { font-size: 16px; }
.key-panel .empty-state p { margin-bottom: 0; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; font-size: 10px; min-width: 24px; min-height: 22px; padding: 2px 7px; border-radius: 5px; background: #f1f4ef; color: #677664; font-weight: 600; letter-spacing: 0; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.text-link .icon { width: 14px; height: 14px; }
.table-toolbar { padding: 0 26px 21px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.filter-group { display: flex; align-items: center; gap: 5px; }
.filter-button { border: 0; padding: 7px 11px; border-radius: 6px; color: var(--muted); background: transparent; font-size: 11px; white-space: nowrap; }
.filter-button:hover { background: #f5f7f3; }
.filter-button.is-active { background: #edf3eb; color: var(--green); font-weight: 600; }
.search-field { position: relative; width: 258px; }
.search-field .icon { position: absolute; top: 10px; left: 11px; width: 16px; height: 16px; color: #8b958c; }
input, select { width: 100%; min-height: 40px; border: 1px solid #dfe5dd; border-radius: 7px; padding: 9px 11px; background: white; color: var(--ink); font-size: 12px; line-height: 1.5; }
input::placeholder { color: #909990; }
select { padding-right: 28px; text-overflow: ellipsis; }
select:disabled { background: #f8f9f6; color: #8e968c; }
.search-field input { min-height: 36px; padding: 8px 12px 8px 34px; background: #fafbf9; font-size: 11px; }
.key-panel .search-field input { font-size: 13px; }
.key-panel .filter-button { min-height: 40px; font-size: 12px; }
.key-panel .transfer-form select { font-size: 14px; }
.keys-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.keys-table th { background: #f8faf6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; padding: 12px 16px; font-size: 10px; color: #7e887b; text-transform: uppercase; font-weight: 600; letter-spacing: .6px; }
.keys-table th:first-child { padding-left: 26px; width: 34%; }
.keys-table th:nth-child(2) { width: 24%; }
.keys-table th:nth-child(3) { width: 42%; }
.keys-table td { padding: 10px 16px; border-bottom: 1px solid #edf0e9; transition: background 1s; }
.keys-table td:first-child { padding-left: 26px; }
.keys-table tr:last-child td { border-bottom: 0; }
.key-identity, .item-identity { display: flex; align-items: center; gap: 13px; min-width: 0; }
.key-identity > div, .item-identity > div { min-width: 0; overflow-wrap: anywhere; }
.key-tile { width: 41px; height: 43px; display: grid; place-items: center; background: #f6f2e7; color: #9d8754; border: 1px solid #efeadb; border-radius: 9px; flex-shrink: 0; }
.key-tile .icon { width: 20px; height: 20px; }
.key-name { color: var(--ink); font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.keys-table .key-name { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--green); text-decoration: underline; text-decoration-color: #a8c3b1; text-underline-offset: 3px; }
.cell-meta { display: block; color: #84907f; font-size: 10px; margin-top: 4px; font-weight: 400; }
.holder { display: flex; align-items: center; gap: 9px; min-width: 0; }
.holder-name { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.keys-table .holder-name { font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #eaf0e5; color: #66834e; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; font-weight: 600; }
.unassigned-badge { display: inline-flex; align-items: center; gap: 7px; color: #9a874e; background: #fbf7eb; padding: 5px 9px; border-radius: 5px; font-size: 10px; }
.unassigned-badge > span { width: 5px; height: 5px; background: #b7a16c; border-radius: 50%; }
.transfer-form { display: flex; align-items: center; gap: 9px; }
.transfer-form select { min-width: 0; flex: 1; }
.table-bottom { border-top: 1px solid var(--line); padding: 15px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 10px; color: #86917e; }
.table-bottom > span:last-child { display: flex; align-items: center; gap: 6px; }
.table-bottom .icon { width: 13px; height: 13px; }
.key-panel .table-bottom { padding-top: 10px; padding-bottom: 10px; font-size: 11px; }
.bottom-note { margin: 23px 0 0; display: flex; align-items: flex-start; gap: 9px; color: #899281; font-size: 11px; }
.bottom-note > .icon { width: 15px; height: 15px; margin-top: 1px; }
.bottom-note code { overflow-wrap: anywhere; font-size: 10px; }
.empty-state { padding: 46px 24px 39px; text-align: center; }
.empty-illustration { display: inline-grid; place-items: center; width: 82px; height: 82px; margin-bottom: 23px; border-radius: 24px; background: #f2f5eb; color: #75915f; transform: rotate(-5deg); border: 1px solid #e9eedf; }
.empty-illustration .icon { width: 37px; height: 37px; }
.empty-state h3 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.empty-state > p { color: var(--muted); font-size: 13px; max-width: 400px; margin: 9px auto 22px; line-height: 1.8; }
.search-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.search-empty .icon { width: 28px; height: 28px; color: #94a18a; margin-bottom: 12px; }
.search-empty h3 { font-size: 15px; color: var(--ink); margin-bottom: 6px; }
.search-empty p { font-size: 12px; }
.inline-note { display: flex; align-items: center; gap: 9px; margin: 0 26px 20px; font-size: 12px; padding: 12px; border-radius: 7px; background: #f8f5e9; color: #8d7841; }
.inline-note .icon { width: 16px; height: 16px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.settings-panel .panel-heading { border-bottom: 1px solid var(--line); }
.add-form { padding: 24px 26px; background: #fafbf8; border-bottom: 1px solid var(--line); scroll-margin-top: 25px; }
.add-form label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
.add-form > input[type="text"] { margin-bottom: 16px; }
.optional { color: #98a08e; font-weight: 400; margin-left: 5px; font-size: 10px; }
.input-button-row { display: flex; gap: 9px; align-items: start; }
.input-button-row input, .input-button-row select { min-width: 0; flex: 1; }
.settings-list { padding: 0 26px; }
.people-list { max-height: min(420px, 55vh); overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.people-list:focus-visible { outline-offset: -3px; }
.settings-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; border-bottom: 1px solid #edf0e8; }
.settings-item:last-child { border-bottom: 0; }
.settings-item strong { font-size: 12px; font-weight: 600; }
.settings-item .avatar { width: 35px; height: 35px; }
.small { width: 35px; height: 37px; border-radius: 7px; }
.small .icon { width: 18px; height: 18px; }
.inline-form { flex-shrink: 0; }
.small-empty { display: flex; align-items: center; gap: 14px; padding: 32px 4px; color: #8b9683; }
.small-empty .icon { width: 24px; height: 24px; }
.small-empty p { font-size: 12px; color: var(--ink); line-height: 1.9; }
.small-empty p span { color: var(--muted); font-size: 11px; }
.archived-section { border-top: 1px solid var(--line); }
.archived-section summary { padding: 17px 26px; font-size: 11px; font-weight: 500; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.archived-section summary::before { content: '›'; font-size: 16px; margin-right: 2px; }
.archived-section[open] summary::before { transform: rotate(90deg); }
.archived-section summary::-webkit-details-marker { display: none; }
.archived-section summary > .icon { width: 14px; height: 14px; }
.archived-section summary .count-badge { margin-left: auto; }
.archived-section[open] summary { border-bottom: 1px solid var(--line); }
.muted-avatar { background: #f2f3ef; border-color: #e9ece4; color: #97a08f; }
.storage-note { margin-top: 26px; border: 1px solid #e2e8db; border-radius: 12px; padding: 23px; display: flex; gap: 17px; background: #f1f4eb; }
.storage-note h3 { font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.storage-note p { color: #7e8b70; font-size: 11px; line-height: 1.9; }
.storage-note code { color: #648050; font-size: 10px; overflow-wrap: anywhere; }
.storage-note .muted { margin-top: 5px; color: #8b9680; }
.back-link { display: inline-flex; gap: 7px; align-items: center; font-size: 11px; color: var(--muted); margin-bottom: 24px; }
.back-link .icon { width: 15px; height: 15px; }
.archive-badge { display: inline-block; font-size: 11px; color: #8b927e; padding: 5px 9px; background: #e9ece2; border-radius: 5px; vertical-align: middle; letter-spacing: 0; margin-left: 7px; }
.history-heading { margin-bottom: 25px; }
.history-overview { display: grid; grid-template-columns: 1fr 1fr 1.4fr; background: #edf2e8; border: 1px solid #dfe7d9; border-radius: 11px; padding: 25px 28px; gap: 24px; margin-bottom: 27px; }
.detail-label { display: block; color: #829174; font-size: 10px; margin-bottom: 7px; }
.overview-item { min-width: 0; overflow-wrap: anywhere; }
.overview-item + .overview-item { border-left: 1px solid #dce4d4; padding-left: 25px; }
.overview-item strong { font-size: 17px; font-weight: 600; color: #45633e; }
.overview-item .date-detail { font-size: 12px; font-weight: 500; }
.history-panel .panel-heading { border-bottom: 1px solid var(--line); }
.timeline { list-style: none; padding: 30px 32px 12px; margin: 0; }
.timeline-item { position: relative; display: flex; gap: 20px; padding-bottom: 34px; }
.timeline-item::before { content: ''; position: absolute; top: 39px; bottom: 0; left: 17px; border-left: 1px solid #e5eade; }
.timeline-item:last-child::before { display: none; }
.timeline-icon { position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #f2f5ed; color: #8a9c7b; flex-shrink: 0; border: 1px solid #e9eee2; }
.timeline-icon .icon { width: 16px; height: 16px; }
.timeline-icon.is-transfer { background: #e8f2ea; color: #40815b; border-color: #dbe9dd; }
.timeline-content { padding-top: 2px; min-width: 0; overflow-wrap: anywhere; }
.timeline-content h3 { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.timeline-content p { font-size: 12px; color: #86917c; }
.handover { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; color: #7e8974; }
.handover strong { font-weight: 500; color: #3a5e37; }
.handover .icon { width: 14px; height: 14px; color: #a1ae97; }
.timeline-time { font-size: 10px; color: #9aa38f; display: block; margin-top: 9px; }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid; border-radius: 8px; font-size: 12px; margin-bottom: 26px; }
.notice > .icon { width: 18px; height: 18px; }
.notice .icon-button { margin-left: auto; padding: 5px; color: inherit; }
.notice-success { background: #eaf4ec; border-color: #cfe3d2; color: #326b46; }
.notice-error { background: #fff0ec; border-color: #efdad2; color: #a2503e; }
.toast { position: fixed; z-index: 10; left: 50%; bottom: 30px; transform: translateX(-50%); max-width: min(600px, calc(100vw - 40px)); padding: 16px 24px; background: var(--green-dark); color: white; border: 1px solid #ffffff25; border-radius: 10px; box-shadow: 0 8px 35px #15342225; font-size: 13px; }
.toast.is-error { background: #894e3f; }
.just-updated td { background: #edf7ef; }
.is-stale td { background: #fcf7eb; }
.refresh-link { display: inline-block; font-size: 11px; margin-top: 8px; text-decoration: underline; }
.site-footer { max-width: 1320px; margin: auto; padding: 23px 40px 30px; display: flex; gap: 20px; align-items: center; color: #a0a897; font-size: 10px; }
.site-footer > span:first-child { display: flex; align-items: center; gap: 6px; font-weight: 600; color: #8d9a82; }
.site-footer .icon { width: 13px; height: 13px; }
.site-footer > span:last-child { margin-left: auto; }
.error-page { max-width: 650px; margin: 80px auto; padding: 30px; }
.error-page p { margin: 20px 0; }
@media (min-width: 1400px) { .main-container { padding-top: 60px; } }
@media (max-width: 1160px) {
    .header-inner { gap: 20px; }
    .brand-caption, .brand-divider { display: none; }
    .local-indicator { margin-left: 6px; }
    .keys-table th:first-child { width: 30%; }
    .keys-table th:nth-child(2) { width: 24%; }
    .keys-table th:nth-child(3) { width: 46%; }
    .transfer-form { gap: 6px; }
    .stat-card { padding: 18px; gap: 0 10px; }
}
@media (max-width: 960px) {
    .main-container { padding: 34px 24px; }
    .header-inner { padding: 0 24px; min-height: 76px; }
    .stats-grid { gap: 12px; }
    .stat-card { grid-template-columns: 34px 1fr; padding: 16px; gap: 0 9px; }
    .stat-icon { width: 34px; height: 36px; border-radius: 8px; }
    .stat-icon .icon { width: 18px; height: 18px; }
    .stat-label { font-size: 10px; }
    .stat-card strong { font-size: 24px; }
    .stat-caption { font-size: 9px; }
    .panel-heading { padding: 21px; }
    .table-toolbar { padding: 0 21px 18px; }
    .keys-table th { font-size: 9px; }
    .keys-table th, .keys-table td { padding-left: 12px; padding-right: 12px; }
    .keys-table th:first-child, .keys-table td:first-child { padding-left: 21px; }
    .key-tile { width: 32px; height: 35px; border-radius: 7px; }
    .key-identity { gap: 9px; }
    .transfer-form .button { padding: 9px; gap: 5px; }
    .transfer-form .button .icon { display: none; }
    .settings-grid { gap: 18px; }
    .add-form { padding: 21px; }
    .add-form .input-button-row { flex-wrap: wrap; }
    .add-form .input-button-row input, .add-form .input-button-row select { flex-basis: 100%; }
    .settings-list { padding: 0 21px; }
    .site-footer { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 720px) {
    .local-indicator { display: none; }
    .header-inner { gap: 12px; }
    .dashboard-page .header-inner { min-height: 64px; }
    .dashboard-page .main-container { padding: 12px 16px 24px; }
    .brand { font-size: 21px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
    .brand-mark .icon { width: 22px; height: 22px; }
    .nav-link { padding: 9px 10px; font-size: 12px; gap: 6px; }
    .page-heading { align-items: flex-start; margin-bottom: 25px; }
    h1 { font-size: 29px; }
    .page-description { font-size: 12px; }
    .page-heading > .button { font-size: 11px; padding: 9px 12px; }
    .eyebrow { font-size: 9px; letter-spacing: 1.1px; }
    .stats-grid { grid-template-columns: 1fr 1fr; margin-bottom: 25px; }
    .stat-card { grid-template-columns: 40px 1fr; padding: 18px; }
    .stat-icon { width: 36px; height: 38px; }
    .stat-caption { margin-top: 12px; padding-top: 10px; }
    .stat-label { font-size: 11px; }
    .stat-card strong { font-size: 26px; }
    .panel-heading { flex-wrap: wrap; gap: 12px; padding: 20px; }
    .panel-heading .text-link { font-size: 10px; }
    .table-toolbar { flex-wrap: wrap; padding: 0 20px 20px; gap: 15px; }
    .key-panel .panel-heading { padding: 14px 16px 10px; }
    .key-panel .table-toolbar { padding: 0 16px 12px; gap: 8px; }
    .key-panel .search-field { order: -1; }
    .key-panel .search-field input { font-size: 16px; min-height: 44px; padding-top: 10px; padding-bottom: 10px; }
    .key-panel .search-field .icon { top: 14px; }
    .key-panel .filter-group { width: 100%; }
    .key-panel .filter-button { min-height: 44px; flex: 1; }
    .search-field { width: 100%; }
    .keys-table, .keys-table tbody { display: block; }
    .keys-table thead { display: none; }
    .keys-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); gap: 0 12px; }
    .keys-table td { display: block; border: 0; padding: 0 !important; min-width: 0; }
    .keys-table td:first-child { grid-column: 1; grid-row: 1; }
    .keys-table td:nth-child(2) { grid-column: 2; grid-row: 1; display: flex; justify-content: flex-end; text-align: right; }
    .keys-table td:nth-child(3) { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
    .key-tile { width: 35px; height: 39px; }
    .key-name { font-size: 12px; }
    .key-identity { gap: 10px; }
    .holder-name { font-size: 11px; }
    .avatar { width: 26px; height: 26px; font-size: 10px; }
    .transfer-form { gap: 10px; }
    .transfer-form .button { padding: 9px 16px; gap: 7px; }
    .transfer-form .button .icon { display: block; }
    .key-panel .transfer-form select { min-height: 44px; font-size: 16px; }
    .key-panel .button-transfer { min-height: 44px; font-size: 13px; }
    .table-bottom { padding: 14px 20px; align-items: start; font-size: 9px; }
    .table-bottom > span:last-child { max-width: 190px; align-items: flex-start; }
    .settings-grid { grid-template-columns: 1fr; }
    .add-form .input-button-row { flex-wrap: nowrap; }
    .add-form .input-button-row input, .add-form .input-button-row select { flex-basis: auto; }
    .storage-note { padding: 20px; }
    .history-overview { grid-template-columns: 1fr 1fr; padding: 20px; gap: 20px; }
    .overview-item + .overview-item { padding-left: 18px; }
    .overview-item:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #dce4d4; padding: 15px 0 0; }
    .timeline { padding: 24px 20px 8px; }
    .timeline-item { gap: 15px; }
    .just-updated { background: #edf7ef; }
    .is-stale { background: #fcf7eb; }
    .site-footer { flex-wrap: wrap; gap: 10px; font-size: 9px; }
    .site-footer p { margin-left: auto; }
    .site-footer > span:last-child { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 460px) {
    .header-inner { padding: 0 16px; min-height: 70px; }
    .nav-link { padding: 8px; font-size: 11px; }
    .nav-link .icon { display: none; }
    .brand { gap: 8px; font-size: 20px; }
    .main-container { padding: 28px 16px; }
    .page-heading { flex-wrap: wrap; gap: 18px; }
    .page-heading > .button { min-height: 36px; }
    .stats-grid { gap: 10px; }
    .stat-card { padding: 14px; grid-template-columns: 32px 1fr; gap: 0 9px; }
    .stat-icon { width: 30px; height: 33px; }
    .stat-label { font-size: 10px; }
    .stat-card strong { font-size: 25px; }
    .empty-state { padding: 34px 20px; }
    .empty-state h3 { font-size: 19px; }
    .empty-state > p { font-size: 12px; }
    .storage-note { gap: 10px; padding: 17px; }
    .storage-note .stat-icon { display: none; }
    .site-footer { padding-left: 16px; padding-right: 16px; }
    .toast { bottom: 18px; padding: 14px 18px; font-size: 12px; width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
