:root {
  --bg: #f6f7f5;
  --panel: #fff;
  --ink: #24332f;
  --muted: #7b8781;
  --line: #e5e9e4;
  --accent: #167c6d;
  --accent-dark: #0b6155;
  --accent-soft: #eaf4ef;
  --danger: #b44e48;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, dialog:focus-visible { outline: 3px solid #65b8a6; outline-offset: 4px; }
input { min-width: 0; }
h1, h2, h3, p { margin: 0; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 200; left: 20px; top: -80px; padding: 12px 20px; color: #fff; background: var(--accent); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 8px; padding: 9px 15px; font-size: 13px; font-weight: 500; line-height: 1.4; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.button .icon { width: 17px; height: 17px; }
.button-primary { background: var(--accent); color: white; box-shadow: 0 3px 7px #167c6d12; }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); box-shadow: 0 4px 10px #167c6d26; }
.button-secondary { background: white; border-color: #dfe5df; }
.button-secondary:hover:not(:disabled) { background: #f5f8f4; border-color: #c6d2c9; }
.button-quiet { color: var(--accent); background: transparent; padding-inline: 10px; }
.button-quiet:hover:not(:disabled) { background: var(--accent-soft); }
.button-danger { color: white; background: var(--danger); }
.button-danger:hover:not(:disabled) { background: #9d3e38; }
.button-danger-quiet { color: var(--danger); background: transparent; }
.button-danger-quiet:hover:not(:disabled) { background: #fff0ee; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: #76817c; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button:hover { background: #eef2ed; color: var(--ink); }
.icon-button.danger:hover { background: #fff0ee; color: var(--danger); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.6px; }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 11px; color: white; background: var(--accent); }
.brand-mark svg { width: 31px; height: 31px; }
.brand-subtitle { display: block; margin-top: 5px; color: #87938b; font-size: 10px; font-weight: 400; letter-spacing: 2.3px; }
.sidebar { width: 226px; padding: 33px 21px 22px; position: fixed; inset: 0 auto 0 0; border-right: 1px solid var(--line); background: #fdfefb; display: flex; flex-direction: column; z-index: 10; }
.sidebar > .brand { margin-left: 6px; margin-bottom: 57px; }
.nav-label { padding: 0 14px; margin-bottom: 12px; color: #94a097; font-size: 11px; letter-spacing: 1px; }
.nav-link { display: flex; width: 100%; align-items: center; gap: 11px; border: 0; border-radius: 8px; padding: 11px 13px; background: transparent; font-size: 13px; color: #6d7a72; text-align: left; }
.nav-link:hover { background: #f0f4ee; color: var(--ink); }
.nav-link.active { color: var(--accent); background: #e9f2eb; font-weight: 600; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-count { margin-left: auto; border-radius: 5px; color: #5e8474; background: #fff9; font-size: 11px; font-weight: 600; padding: 1px 6px; }
.sidebar-bottom { margin-top: auto; }
.private-note { display: flex; gap: 10px; margin: 0 4px 24px; padding: 16px 8px 20px; border-bottom: 1px solid var(--line); }
.private-note > .icon { width: 19px; height: 19px; color: #87a693; margin-top: 2px; }
.private-note strong { font-size: 12px; font-weight: 500; color: #63786b; }
.private-note p { font-size: 11px; color: #97a196; margin-top: 5px; line-height: 1.9; }
.sidebar-version { display: flex; align-items: center; gap: 8px; padding: 24px 13px 0; color: #a4ada5; font-size: 10px; }
.main-content { max-width: 1700px; margin-left: 226px; padding: 35px 43px 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 31px; }
.breadcrumb { font-size: 11px; color: #929b94; margin-bottom: 16px; }
.breadcrumb span { padding: 0 11px; color: #bac1b9; }
.page-header h1 { font-size: 29px; line-height: 1.35; font-weight: 650; letter-spacing: -.6px; }
.heading-dot { color: var(--accent); margin-left: 2px; }
.page-header p { color: var(--muted); margin-top: 10px; font-size: 12px; }
.page-header > .button { margin-top: 27px; }
.statistics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 35px; }
.stat-card { padding: 22px 23px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 2px 3px #21352b02; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-value { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; }
.stat-value strong { font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.stat-value > span { color: #939c94; font-size: 12px; }
.stat-icon { display: grid; place-items: center; border-radius: 11px; width: 43px; height: 43px; color: #6e9b82; background: #f0f6ee; flex: 0 0 auto; }
.stat-icon-warm { color: #b59b70; background: #f9f5eb; }
.stat-icon-blue { color: #7e95a4; background: #edf3f6; }
.stat-icon .icon { width: 21px; height: 21px; }
.library-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.library-title { display: flex; gap: 10px; align-items: center; }
.library-title h2 { font-size: 16px; font-weight: 600; }
.count-badge { font-size: 11px; color: #839184; border: 1px solid #e1e8de; border-radius: 20px; line-height: 1; padding: 4px 8px; background: #eff3ec; font-variant-numeric: tabular-nums; }
.filter-controls { display: flex; gap: 5px; align-items: center; }
.date-filter { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; color: #879087; }
.date-filter .icon { width: 16px; height: 16px; }
.date-filter input { border: 0; padding: 0; background: transparent; color: #68766b; font-size: 12px; line-height: 20px; width: 120px; font-family: var(--font); }
.date-filter input:focus { outline-offset: 8px; }
.library-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 13px 0 24px; color: #97a096; font-size: 11px; }
.sync-status { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sync-status i { width: 5px; height: 5px; border-radius: 50%; background: #8aa68c; }
.sync-status.is-error { color: #b07b6c; }
.sync-status.is-error i { background: #b07b6c; }
.sync-status.is-loading i { animation: pulse 1.1s ease-in-out infinite; }
.date-group + .date-group { margin-top: 30px; }
.date-group-heading { display: flex; align-items: center; gap: 9px; color: #778277; font-size: 12px; font-weight: 500; margin-bottom: 13px; }
.date-group-heading span { color: #acb3aa; font-size: 10px; font-weight: 400; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.screenshot-card { min-width: 0; border-radius: 10px; background: #fff; border: 1px solid #e2e8e0; overflow: hidden; transition: box-shadow .18s, border-color .18s, transform .18s; }
.screenshot-card:hover { border-color: #b9cec0; box-shadow: 0 6px 17px #1a4a3310; transform: translateY(-2px); }
.screenshot-open { display: block; width: 100%; padding: 0; border: 0; background: #edf0ec; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.screenshot-open img { display: block; width: 100%; height: 100%; object-fit: contain; background: #edf0ec; transition: opacity .15s; }
.screenshot-open:hover img { opacity: .9; }
.screenshot-open:focus-visible { outline-offset: -4px; }
.image-fallback { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; position: absolute; inset: 0; color: #9aa69a; font-size: 11px; }
.image-fallback > .icon { width: 28px; height: 28px; stroke-width: 1.2; }
.image-fallback .fallback-detail { color: #8fa18f; font-size: 10px; }
.screenshot-info { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 12px 13px 12px 15px; }
.screenshot-time { display: block; font-weight: 600; font-size: 12px; color: #47554a; letter-spacing: .3px; font-variant-numeric: tabular-nums; }
.screenshot-dimensions { display: block; color: #9ba49b; font-size: 10px; margin-top: 4px; letter-spacing: .1px; }
.screenshot-actions { display: flex; gap: 1px; }
.screenshot-actions .icon-button { width: 29px; height: 31px; padding: 6px; color: #a0aaa0; }
.screenshot-actions .icon-button:hover { color: var(--accent); background: #eef5ef; }
.screenshot-actions .icon-button.danger:hover { color: var(--danger); background: #fff0ee; }
.screenshot-actions .icon { width: 15px; height: 15px; }
.error-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; margin-bottom: 22px; border: 1px solid #ebd9ce; border-radius: 8px; color: #a26b51; background: #fff9f1; font-size: 12px; }
.error-banner .button { color: #a26b51; flex: 0 0 auto; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 340px; padding: 38px 18px 44px; text-align: center; border: 1px dashed #d7e1d7; border-radius: 12px; background: #fafcf8; }
.empty-icon { width: 67px; height: 67px; display: grid; place-items: center; color: #94b29c; background: #edf3e9; border: 7px solid #f4f7ef; border-radius: 20px; margin-bottom: 20px; }
.empty-icon .icon { width: 29px; height: 29px; stroke-width: 1.4; }
.empty-state h3 { font-weight: 500; font-size: 16px; }
.empty-state p { color: #8d998d; font-size: 12px; line-height: 1.9; margin: 10px 0 22px; }
.empty-state .button { font-size: 12px; }
.skeleton-card { border: 1px solid var(--line); background: #fff; border-radius: 10px; overflow: hidden; padding-bottom: 18px; }
.skeleton-card > div { width: 100%; aspect-ratio: 16 / 10; margin-bottom: 16px; background: #ebefea; }
.skeleton-card i { display: block; height: 9px; margin: 10px 16px; border-radius: 3px; width: 42%; background: #edf1eb; }
.skeleton-card i:last-child { width: 62%; height: 7px; }
.skeleton-card { animation: skeleton 1.5s ease-in-out infinite; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding-top: 25px; margin-top: 28px; border-top: 1px solid var(--line); color: #8d978c; font-size: 11px; }
.pagination > div { display: flex; align-items: center; gap: 14px; }
.pagination .button { min-height: 34px; font-size: 11px; padding: 7px 12px; }
.pagination .icon { width: 13px; height: 13px; }
#page-position { color: #718171; font-variant-numeric: tabular-nums; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 38px; color: #a6afa3; font-size: 10px; }
.modal-open { overflow: hidden; }
dialog { color: var(--ink); padding: 0; border: 1px solid #dbe3db; border-radius: 14px; box-shadow: 0 25px 90px #102c3340; max-height: calc(100dvh - 48px); }
dialog::backdrop { background: #182f2b9e; backdrop-filter: blur(5px); }
.preview-dialog { width: min(1250px, calc(100vw - 64px)); height: min(880px, calc(100dvh - 48px)); max-width: none; overflow: hidden; }
.preview-dialog[open] { display: flex; flex-direction: column; }
.preview-header { display: flex; flex: 0 0 auto; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 22px; background: #fff; }
.preview-header h2 { font-size: 14px; font-weight: 600; }
.preview-header p { color: #8a968a; font-size: 11px; margin-top: 3px; }
.preview-toolbar { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; background: #fbfcfa; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 21px; }
.preview-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.preview-tools .button { font-size: 11px; min-height: 34px; padding: 7px 10px; white-space: nowrap; }
.preview-tools .icon { width: 16px; height: 16px; }
.preview-tools .preview-zoom-button { width: 34px; padding: 7px; }
#preview-zoom-level { min-width: 43px; text-align: center; color: #526b5f; font-size: 11px; font-variant-numeric: tabular-nums; }
.preview-tool-divider { height: 20px; width: 1px; background: var(--line); margin-inline: 2px; }
.preview-tool-hint { margin: 0; color: #84917f; font-size: 10px; }
.preview-canvas { position: relative; flex: 1 1 auto; min-height: 0; background-color: #eaf0e9; background-image: linear-gradient(45deg, #e3e9e2 25%, transparent 25%), linear-gradient(-45deg, #e3e9e2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e3e9e2 75%), linear-gradient(-45deg, transparent 75%, #e3e9e2 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; overflow: hidden; touch-action: none; user-select: none; }
.preview-canvas > img { position: absolute; left: 50%; top: 50%; display: block; max-width: none; max-height: none; min-height: 0; transform-origin: center; pointer-events: none; user-select: none; }
.preview-canvas.can-pan { cursor: grab; }
.preview-canvas.is-dragging { cursor: grabbing; }
.preview-canvas > img.is-loading { opacity: 0; }
.preview-loading, .preview-error { position: absolute; inset: 0; display: grid; place-items: center; background: #eef3eb; color: #84927f; font-size: 13px; padding: 32px; text-align: center; }
.preview-error { color: #a16e59; }
.preview-arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 36px; height: 48px; padding: 0; border-radius: 8px; border: 1px solid #c5d0c2; background: #ffffffeb; color: #6c7d67; box-shadow: 0 2px 10px #2435200c; }
.preview-arrow:hover:not(:disabled) { background: white; color: var(--accent); }
.preview-arrow:disabled { opacity: .2; }
.preview-arrow-left { left: 14px; }
.preview-arrow-right { right: 14px; }
.preview-arrow .icon { width: 17px; height: 17px; }
.preview-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; background: #fff; padding: 16px 21px; }
.preview-footer > span { font-size: 11px; color: #85917f; }
.preview-actions { display: flex; gap: 8px; }
.preview-actions .button { font-size: 12px; min-height: 36px; }
.small-dialog { width: 420px; max-width: calc(100vw - 40px); padding: 29px; }
.small-dialog h2 { font-size: 19px; font-weight: 600; margin: 15px 0 10px; }
.small-dialog > p { color: #8c9688; font-size: 12px; line-height: 1.85; }
.dialog-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; }
.danger-icon { color: var(--danger); background: #fceeea; }
.dialog-icon .icon { width: 22px; height: 22px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.small-dialog > .delete-target { border: 1px solid #e6ebe3; border-radius: 7px; padding: 8px 12px; margin-top: 16px; font-size: 11px; background: #f8faf5; }
.small-dialog .form-error { margin-top: 16px; }
.dialog-close { position: absolute; top: 16px; right: 16px; }
.password-dialog { width: 450px; padding-top: 34px; }
.password-dialog h2 { margin-top: 8px; }
.password-dialog > p { color: #6d7b72; }
.change-password-form { margin-top: 22px; }
.password-form-field + .password-form-field { margin-top: 16px; }
.password-form-field > label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 500; }
.field-hint { margin-top: 6px; color: var(--muted); font-size: 11px; }
.change-password-form .dialog-actions { margin-top: 24px; }
.change-password-form[aria-busy="true"] .password-field { background: #f6f7f5; }
.help-dialog { width: 465px; padding: 34px 30px 28px; }
.eyebrow { display: block; color: #95a18c; font-size: 9px; font-weight: 600; letter-spacing: 2.1px; }
.help-dialog h2 { margin: 8px 0 25px; }
.help-steps { list-style: none; padding: 0; margin: 0; }
.help-steps li { display: flex; gap: 17px; margin-bottom: 24px; }
.help-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #e0e9dd; border-radius: 50%; color: var(--accent); background: #f5f8f1; flex: 0 0 auto; font-size: 10px; }
.help-steps h3 { font-weight: 500; font-size: 13px; margin: 2px 0 5px; }
.help-steps p { color: #8d9888; line-height: 1.9; font-size: 11px; }
kbd { display: inline-block; font: 10px/1.3 var(--font); border: 1px solid #dbe3d7; border-bottom-width: 2px; border-radius: 4px; background: #f6f9f3; color: #6b7b63; padding: 2px 5px; white-space: nowrap; }
.help-note { padding: 12px 14px; color: #8a967f; font-size: 10px; background: #f5f8ef; border-radius: 7px; margin-top: 4px; line-height: 1.9; }
.help-done { display: flex; width: 100%; margin-top: 22px; }
.toast { position: fixed; bottom: 28px; left: calc(50% + 113px); transform: translateX(-50%); z-index: 100; color: #fff; background: #344d3c; border-radius: 8px; padding: 11px 20px; box-shadow: 0 4px 20px #213e3526; font-size: 12px; max-width: calc(100vw - 40px); }
.noscript-notice { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #fff4df; border: 1px solid #decaa0; border-radius: 8px; padding: 16px 24px; color: #8a7448; z-index: 100; }
.login-page { background: #fafbf7; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100dvh; }
.login-story { display: flex; flex-direction: column; padding: 46px 56px 32px; background: #1c493e; color: #fff; overflow: hidden; position: relative; }
.login-story::after { content: ""; position: absolute; width: 430px; height: 430px; border: 1px solid #7ea1891c; border-radius: 50%; bottom: -250px; right: -160px; pointer-events: none; }
.brand-light .brand-mark { background: #ffffff16; color: #dcebdd; }
.brand-light .brand-subtitle { color: #9ab8a3; }
.story-body { margin: auto 0; padding: 60px 0 40px; }
.light-eyebrow { color: #98b4a0; font-size: 9px; letter-spacing: 2.2px; }
.story-body h1 { font-size: clamp(38px, 4vw, 58px); line-height: 1.32; font-weight: 500; letter-spacing: -1.2px; margin: 22px 0; color: #f0f5e9; }
.story-body > p { color: #a9c1ad; font-size: 13px; line-height: 2.05; }
.capture-illustration { position: relative; max-width: 340px; margin-top: 49px; padding: 22px 23px 24px; }
.illustration-window { border: 1px solid #88a99477; border-radius: 9px; overflow: hidden; background: #517866; box-shadow: 0 12px 30px #0d281b33; transform: rotate(-3deg); }
.illustration-titlebar { display: flex; align-items: center; gap: 4px; height: 25px; background: #b1c6ae; padding: 0 9px; }
.illustration-titlebar i { display: inline-block; width: 4px; height: 4px; background: #718e76; border-radius: 50%; }
.illustration-titlebar span { font-size: 7px; color: #607d64; margin-left: 60px; }
.illustration-content { display: flex; padding: 17px 12px; min-height: 131px; }
.illustration-sidebar { width: 48px; padding: 3px 12px 0 0; }
.illustration-sidebar i { display: block; height: 4px; background: #8ba78d; border-radius: 1px; margin-bottom: 9px; }
.illustration-sidebar i:last-child { width: 65%; }
.illustration-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.illustration-cards i { border-radius: 3px; min-height: 42px; background: #7e9b7b; }
.illustration-cards i:nth-child(2) { background: #9aac87; }
.illustration-cards i:nth-child(3) { background: #94ad9d; }
.illustration-cards i:nth-child(4) { background: #688875; }
.illustration-key { position: absolute; display: flex; gap: 6px; align-items: center; right: -4px; bottom: 10px; padding: 10px 13px; border: 1px solid #98b79a80; background: #315e4b; box-shadow: 0 6px 18px #123c2422; border-radius: 7px; transform: rotate(3deg); }
.illustration-key kbd { border-color: #96ae8d; color: #e4edda; background: #6d8c68; border-radius: 4px; padding: 3px 7px; font-size: 9px; }
.illustration-key > span { color: #8da885; font-size: 9px; }
.illustration-corner { position: absolute; width: 15px; height: 15px; border-color: #adc69f; border-style: solid; border-width: 0; }
.corner-tl { left: 3px; top: 2px; border-top-width: 1px; border-left-width: 1px; }
.corner-tr { right: 1px; top: 2px; border-top-width: 1px; border-right-width: 1px; }
.corner-bl { left: 3px; bottom: 4px; border-bottom-width: 1px; border-left-width: 1px; }
.corner-br { right: 1px; bottom: 4px; border-bottom-width: 1px; border-right-width: 1px; }
.story-footer { display: flex; align-items: center; gap: 8px; color: #85a48e; font-size: 10px; }
.small-dot { width: 5px; height: 5px; background: #a7c39c; border-radius: 50%; }
.login-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; padding: 60px 40px 100px; }
.login-card { width: 100%; max-width: 340px; }
.login-lock { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #dce8d6; background: #f0f5e8; color: #819e72; border-radius: 13px; margin-bottom: 29px; }
.login-lock svg { width: 24px; height: 24px; }
.login-card h2 { font-size: 25px; font-weight: 600; letter-spacing: -.5px; margin: 10px 0 13px; }
.login-description { color: #8b9688; font-size: 12px; line-height: 1.9; margin-bottom: 31px; }
.login-form > label { display: block; color: #60745a; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.password-field { display: flex; background: #fff; border: 1px solid #dbe3d4; border-radius: 8px; overflow: hidden; }
.password-field:focus-within { border-color: #9ebc8f; box-shadow: 0 0 0 3px #8ebc7712; }
.password-field > input { flex: 1; padding: 13px 14px; border: 0; width: 100%; outline: none; background: transparent; font-size: 13px; }
.password-field > input::placeholder { color: #aab3a4; font-size: 12px; }
.password-field > input:focus-visible { outline: none; }
.password-toggle { flex: 0 0 auto; border: 0; background: transparent; padding: 0 13px; font-size: 11px; color: #9aa78f; }
.password-toggle:hover { color: var(--accent); }
.password-toggle:focus-visible { outline-offset: -4px; }
.login-submit { width: 100%; display: flex; justify-content: space-between; margin-top: 18px; padding: 13px 17px; font-size: 12px; }
.login-submit svg { width: 17px; height: 17px; }
.login-help { margin-top: 26px; padding-top: 21px; border-top: 1px solid #e5eade; font-size: 10px; color: #a1ab97; line-height: 1.9; }
.form-error { background: #fcf2eb; border: 1px solid #edd9cb; border-radius: 7px; color: #a97b5e; font-size: 12px; padding: 10px 12px; margin-bottom: 18px; }
.form-success { background: var(--accent-soft); border: 1px solid #cfe4da; border-radius: 7px; color: var(--accent-dark); font-size: 12px; padding: 10px 12px; margin-bottom: 18px; }
.login-footer { position: absolute; bottom: 30px; color: #b0b8a5; font-size: 10px; }
.login-footer span { padding: 0 9px; }
@keyframes pulse { 50% { opacity: .25; } }
@keyframes skeleton { 50% { opacity: .55; } }
@media (min-width: 1700px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1170px) {
  .main-content { padding: 30px 28px 24px; }
  .sidebar { width: 204px; padding-inline: 17px; }
  .main-content { margin-left: 204px; }
  .gallery-grid { gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statistics { gap: 13px; }
  .stat-card { padding: 19px 17px; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-value strong { font-size: 27px; }
  .toast { left: calc(50% + 102px); }
  .login-story { padding-inline: 40px; }
}
@media (max-width: 850px) {
  .sidebar { width: 180px; padding-inline: 13px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .main-content { margin-left: 180px; padding: 29px 22px 24px; }
  .statistics { gap: 10px; }
  .stat-card { padding: 17px 14px; }
  .stat-icon { display: none; }
  .stat-value strong { font-size: 25px; }
  .toast { left: calc(50% + 90px); }
  .login-story { padding-inline: 30px; }
  .login-panel { padding-inline: 28px; }
  .login-card h2 { font-size: 22px; }
  .story-body > p { font-size: 11px; }
  .light-eyebrow { font-size: 8px; letter-spacing: 1.3px; }
}
@media (max-width: 680px) {
  .sidebar { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--line); padding: 15px 20px; }
  .sidebar > .brand { margin: 0; }
  .sidebar .brand-subtitle { font-size: 8px; letter-spacing: 2px; margin-top: 4px; }
  .nav-label, .sidebar nav, .private-note, .sidebar-version { display: none; }
  .sidebar-bottom { display: flex; align-items: center; margin: 0; gap: 1px; }
  .sidebar-bottom .nav-link { padding: 9px; }
  .sidebar-bottom .nav-link > span { display: none; }
  .sidebar-bottom .nav-link .icon { width: 19px; height: 19px; }
  .main-content { margin-left: 0; padding: 24px 20px; }
  .page-header { margin-bottom: 24px; gap: 10px; }
  .breadcrumb { margin-bottom: 10px; font-size: 10px; }
  .page-header h1 { font-size: 25px; }
  .page-header p { font-size: 11px; margin-top: 8px; }
  .page-header > .button { padding: 9px 12px; font-size: 11px; margin-top: 14px; }
  .page-header > .button .icon { width: 14px; height: 14px; }
  .statistics { gap: 9px; margin-bottom: 27px; }
  .stat-card { padding: 15px 13px; border-radius: 9px; }
  .stat-label { font-size: 10px; }
  .stat-value { margin-top: 8px; gap: 4px; }
  .stat-value strong { font-size: 24px; }
  .stat-value > span { font-size: 9px; }
  .library-title h2 { font-size: 14px; }
  .library-title { gap: 6px; }
  .library-toolbar { gap: 8px; }
  .date-filter { padding: 6px 8px; gap: 7px; }
  .date-filter .icon { display: none; }
  .date-filter input { font-size: 11px; width: 114px; }
  .filter-controls .button { font-size: 11px; padding-inline: 5px; }
  .library-meta { font-size: 9px; align-items: flex-start; margin-bottom: 20px; }
  .gallery-grid { gap: 12px; }
  .screenshot-info { padding: 11px 10px; }
  .screenshot-time { font-size: 11px; }
  .screenshot-dimensions { font-size: 9px; }
  .screenshot-actions { gap: 0; }
  .screenshot-actions .icon-button { width: 26px; height: 30px; padding: 6px; }
  .screenshot-actions .icon { width: 14px; height: 14px; }
  .pagination > span { display: none; }
  .pagination { justify-content: center; }
  .pagination > div { justify-content: space-between; width: 100%; }
  .page-footer { font-size: 9px; margin-top: 30px; padding-top: 17px; }
  .toast { left: 50%; }
  .preview-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .preview-header { padding: 13px 15px; }
  .preview-header h2 { font-size: 12px; }
  .preview-header p { font-size: 10px; }
  .preview-toolbar { padding: 9px 12px; gap: 7px; }
  .preview-tools { gap: 5px; }
  .preview-tools .button { padding-inline: 8px; }
  .preview-tool-hint { font-size: 9px; }
  .preview-arrow { width: 29px; height: 41px; }
  .preview-arrow-left { left: 7px; }
  .preview-arrow-right { right: 7px; }
  .preview-footer { flex-direction: column; align-items: flex-start; padding: 13px 15px; gap: 13px; }
  .preview-actions { width: 100%; justify-content: flex-end; gap: 5px; }
  .preview-actions .button { padding: 8px 9px; font-size: 11px; }
  .preview-actions .button .icon { width: 14px; height: 14px; }
  .preview-actions .button:first-child { margin-right: auto; }
  .small-dialog { padding: 25px; }
  .login-layout { display: block; min-height: 100dvh; }
  .login-story { padding: 22px 25px; }
  .login-story .brand { font-size: 20px; }
  .story-body, .story-footer { display: none; }
  .login-panel { min-height: calc(100dvh - 84px); padding: 45px 30px 85px; }
  .login-lock { margin-bottom: 23px; }
  .login-card { max-width: 360px; }
  .login-card h2 { font-size: 25px; }
  .login-description { margin-bottom: 27px; }
}
@media (max-width: 420px) {
  .main-content { padding: 22px 16px; }
  .sidebar { padding-inline: 16px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .screenshot-open { aspect-ratio: 16 / 9; }
  .screenshot-info { padding: 12px 14px; }
  .screenshot-time { font-size: 12px; }
  .screenshot-dimensions { font-size: 10px; }
  .screenshot-actions .icon-button { width: 34px; height: 34px; }
  .screenshot-actions .icon { width: 16px; height: 16px; }
  .stat-card { padding: 14px 11px; }
  .stat-value strong { font-size: 22px; }
  .page-header p { font-size: 10px; }
  .page-header > .button { padding: 9px; }
  .sync-status { gap: 4px; }
  .sync-status i { width: 4px; height: 4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
