:root {
  color-scheme: light;
  --surface: #fffdf8;
  --paper: #f8f5ef;
  --ink: #253830;
  --muted: #5c6a61;
  --subtle: #68746d;
  --line: #e8e0d3;
  --pine: #225446;
  --pine-hover: #163e32;
  --sage: #e1eadf;
  --blush: #f5e4d7;
  --clay: #904d3d;
  --error: #a1372c;
  --display: "Songti SC", "Noto Serif CJK SC", SimSun, Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #699680; outline-offset: 3px; }
::selection { background: #dcebdc; color: #183b2c; }

.icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; z-index: 30; top: 12px; left: 12px; padding: 8px 15px; background: var(--pine); color: white; border-radius: 8px; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.no-script { padding: 20px; text-align: center; }
.loading-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #dce5d9; border-top-color: var(--pine); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  white-space: nowrap;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.btn .icon { width: 18px; height: 18px; }
.btn.primary { background: var(--pine); color: white; box-shadow: 0 4px 9px #224c3f19; }
.btn.primary:hover { background: var(--pine-hover); }
.btn.secondary { background: var(--surface); border-color: var(--line); }
.btn.secondary:hover { background: #f0f3e9; border-color: #c4d2c0; }
.btn.subtle { background: transparent; color: var(--pine); }
.btn.subtle:hover { background: #e9eee4; }
.btn.danger { color: #fff; background: #9e4134; }
.btn.danger:hover { background: #7e3228; }
.btn:disabled { opacity: .58; cursor: default; }
.icon-btn { min-width: 37px; min-height: 37px; display: inline-grid; place-items: center; border: 0; background: transparent; border-radius: 9px; color: var(--muted); cursor: pointer; }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--pine); background: #edf0e8; }
.icon-btn.danger:hover { color: #a1372c; background: #f9e7df; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; line-height: 1.15; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: #e2ebdf; color: var(--pine); border-radius: 13px; }
.brand-mark .icon { width: 23px; height: 23px; }
.brand-title { display: block; font-size: 21px; letter-spacing: .06em; font-family: var(--display); }
.brand-caption { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 540; letter-spacing: .11em; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(ellipse at 7% 95%, #efe2cc8c 0%, transparent 40%), var(--paper); }
.login-layout { width: min(100%, 980px); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid #e5ded1; border-radius: 26px; min-height: 588px; box-shadow: 0 18px 70px #594c3620; background: var(--surface); }
.login-art { position: relative; overflow: hidden; padding: 40px; isolation: isolate; background: linear-gradient(163deg, #e8eddd, #d9e3d2 56%, #c7d8c8); }
.login-art .brand-mark { background: #fcfaf2aa; }
.login-copy { position: relative; z-index: 1; margin-top: 77px; max-width: 330px; }
.login-copy h1 { font-family: var(--display); font-size: clamp(40px, 4.4vw, 61px); font-weight: 700; line-height: 1.16; letter-spacing: .035em; }
.login-copy p { margin-top: 16px; color: #455b50; font-size: 15px; }
.login-panel { align-self: center; padding: clamp(30px, 6vw, 68px); min-width: 0; }
.login-panel h2 { font-family: var(--display); font-size: 31px; margin-bottom: 10px; }
.login-panel p { color: var(--muted); margin-bottom: 22px; }
.login-panel .btn.primary { width: 100%; min-height: 46px; }
.login-panel .brand { display: none; }
.login-panel .demo-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; color: #674335; background: #f7e8db; font-size: 12px; border-radius: 100px; margin-bottom: 16px; }
.login-panel .demo-pill .icon { width: 14px; height: 14px; }
.login-auth-form { display: grid; gap: 15px; }
.art { position: absolute; pointer-events: none; inset: auto 0 0; height: 50%; }
.art::before { content: ""; position: absolute; width: 91%; height: 82%; border-radius: 60% 54% 0 0; background: #b6cbbb; bottom: -30%; right: -8%; transform: rotate(-13deg); }
.art::after { content: ""; position: absolute; width: 67%; height: 52%; border-radius: 65% 65% 0 0; background: #a3bba9; bottom: -27%; left: -16%; transform: rotate(12deg); }
.paper-photo { position: absolute; width: 144px; height: 118px; padding: 8px 8px 15px; border-radius: 5px; background: #fff9e9; box-shadow: 0 10px 26px #38584435; isolation: isolate; }
.paper-photo::before { position: absolute; content: ""; z-index: 2; width: 52px; height: 16px; top: -8px; left: calc(50% - 26px); transform: rotate(-8deg); background: #dec28f9e; }
.paper-photo.back { bottom: 32%; left: 17%; transform: rotate(-12deg); }
.paper-photo.front { bottom: 18%; left: 48%; transform: rotate(11deg); }
.photo-scene { position: relative; display: block; height: 100%; overflow: hidden; background: linear-gradient(#e9c6a8, #f5dec6 68%, #d9aa8d 69%); }
.photo-scene::before { content: ""; position: absolute; left: 61%; top: 15%; width: 25px; height: 25px; border-radius: 50%; background: #f6e3a6; }
.photo-scene::after { content: ""; position: absolute; width: 130%; height: 65%; left: -19%; bottom: -38%; border-radius: 55% 68% 0 0; background: #ac806d; box-shadow: -14px -12px #bc9580; transform: rotate(-8deg); }
.photo-scene.green { background: linear-gradient(#dbe7cf, #d2e1b7 65%, #a4b99b 66%); }
.photo-scene.green::before { background: #fbedd1; left: 24%; }
.photo-scene.green::after { background: #7b9c84; box-shadow: -22px -11px #92ab87; transform: rotate(10deg); }

.shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { z-index: 4; position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 28px 19px 20px; background: #fbf8f1; border-right: 1px solid #eae2d5; }
.sidebar > a:first-child { margin: 0 10px 35px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; font-weight: 640; }
.nav-link:hover { background: #f1ede4; color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--sage); color: #225343; }
.nav-link .icon { width: 19px; height: 19px; }
.profile { margin-top: auto; border-top: 1px solid var(--line); padding: 15px 0 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 35px; height: 35px; display: grid; flex: 0 0 auto; place-items: center; background: #efe3d6; color: #735646; border-radius: 50%; font-weight: 750; }
.profile-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 670; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.profile-name small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.profile .icon-btn { height: 33px; min-height: 33px; min-width: 33px; }
.mobile-header { display: none; }
.workspace { width: 100%; min-width: 0; }
.page { max-width: 1230px; padding: 38px clamp(28px, 5vw, 64px) 60px; margin: 0 auto; }
.page-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; color: var(--muted); font-size: 13px; }
.breadcrumb { display: flex; align-items: center; gap: 5px; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb a:hover { color: var(--pine); text-decoration: underline; text-underline-offset: 3px; }
.mode-flag { display: inline-flex; align-items: center; gap: 6px; color: #724c3a; background: #f5e7da; padding: 4px 8px; border-radius: 7px; font-size: 11px; }
.mode-flag .icon { width: 13px; height: 13px; }
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 240px; display: flex; align-items: center; padding: 34px clamp(26px, 4.4vw, 47px); border: 1px solid #d8e3d2; border-radius: 22px; background: linear-gradient(108deg, #e9eddf 0%, #e1eadb 63%, #cedecf 100%); }
.hero-copy { position: relative; z-index: 1; max-width: 66%; }
.hero h1, .page-heading h1 { font-family: var(--display); font-size: clamp(35px, 4.4vw, 58px); line-height: 1.12; letter-spacing: .045em; font-weight: 700; }
.hero p { color: #435c50; margin-top: 13px; }
.hero .btn { margin-top: 20px; }
.hero .art { top: 0; right: 0; left: auto; bottom: 0; width: 39%; height: 100%; }
.hero .art .back { bottom: 32%; left: 6%; }
.hero .art .front { bottom: 20%; left: 39%; }
.section-head, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.section-head { margin: 30px 0 12px; }
.section-head h2 { font-family: var(--display); font-size: 25px; line-height: 1.25; }
.section-head a { color: var(--pine); font-weight: 650; font-size: 13px; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; text-underline-offset: 3px; }
.section-head a .icon { margin-left: 4px; width: 16px; height: 16px; }
.page-heading { margin-bottom: 26px; }
.page-heading p { color: var(--muted); margin-top: 8px; }
.page-heading h1 { font-size: clamp(35px, 4.4vw, 53px); }
.dashboard-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.dashboard-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; min-height: 111px; display: flex; align-items: center; padding: 18px; gap: 14px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.dashboard-card:hover { border-color: #b9cbb8; box-shadow: 0 7px 21px #233b2710; transform: translateY(-2px); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 14px; background: var(--blush); color: var(--clay); }
.card-icon.green { background: var(--sage); color: var(--pine); }
.card-icon .icon { width: 24px; height: 24px; }
.card-information { flex: 1; min-width: 0; }
.card-information strong { display: block; font-size: 16px; }
.card-information span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.card-arrow { color: var(--subtle); width: 18px; height: 18px; }

.collection-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; display: flex; align-items: center; gap: 13px; padding: 19px; color: var(--muted); }
.collection-summary .icon { color: var(--pine); }
.recent-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; }
.recent-column { min-width: 0; }
.recent-list { display: grid; gap: 8px; }
.recent-item { background: var(--surface); display: flex; align-items: center; gap: 11px; min-height: 57px; padding: 8px 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.recent-item:hover { border-color: #bacbb9; }
.recent-item .icon { color: var(--clay); width: 19px; height: 19px; }
.recent-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 640; font-size: 13px; }
.recent-item time { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.recent-media { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.recent-media .media-preview { border-radius: 10px; aspect-ratio: 1 / 1; }

.members-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.member-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.member-details { min-width: 0; overflow-wrap: anywhere; }
.member-details p { color: var(--muted); font-size: 13px; }
.member-self { font-size: 11px; font-weight: 600; color: var(--muted); }
.member-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.member-badge { display: inline-block; padding: 3px 8px; border-radius: 20px; background: #efede6; color: #4e5a51; font-size: 11px; white-space: nowrap; }
.member-badge.admin { background: var(--sage); color: var(--pine); }
.member-badge.inactive { background: var(--blush); color: #824535; }
.member-row .btn { min-height: 35px; padding-inline: 10px; font-size: 13px; }

.empty { text-align: center; padding: 37px 18px; background: var(--surface); border: 1px dashed #d9d8c7; border-radius: 16px; }
.empty .card-icon { margin: 0 auto 13px; }
.empty h2 { font-size: 17px; margin-bottom: 5px; }
.empty p { font-size: 13px; color: var(--muted); }
.empty .btn { margin-top: 15px; }
.timeline { display: grid; padding-left: 20px; position: relative; gap: 14px; }
.timeline::before { content: ""; position: absolute; top: 18px; bottom: 20px; left: 4px; width: 1px; background: #cddbcf; }
.timeline-item { position: relative; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 16px 18px 17px; }
.timeline-item::before { content: ""; position: absolute; left: -22px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: #68947b; border: 2px solid var(--paper); }
.timeline-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.timeline-meta time { font-weight: 650; color: var(--pine); }
.timeline-item h2 { font-size: 19px; margin-top: 5px; overflow-wrap: anywhere; }
.timeline-item p { font-size: 14px; color: #4a5d51; margin-top: 7px; white-space: pre-wrap; overflow-wrap: anywhere; }
.item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.item-actions { display: flex; align-items: center; flex-shrink: 0; }

.filters { padding: 13px; display: grid; grid-template-columns: minmax(150px, 1.5fr) repeat(4, minmax(105px, 1fr)); gap: 8px; background: #fcfaf4; border: 1px solid var(--line); border-radius: 13px; align-items: end; }
.filters label { color: var(--muted); font-size: 11px; display: grid; gap: 3px; }
.filters input, .filters select { width: 100%; min-width: 0; padding: 7px 8px; min-height: 37px; font-size: 13px; }
.filters .search-field { position: relative; }
.filters .search-field input { padding-left: 31px; }
.filters .search-field .icon { position: absolute; left: 9px; bottom: 10px; width: 16px; height: 16px; }
.results-count { color: var(--muted); font-size: 13px; margin: 14px 0 11px; }
.album-sortbar { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.album-sortbar label { color: var(--muted); font-size: 11px; display: flex; align-items: center; white-space: nowrap; gap: 7px; }
.album-sortbar select { font-size: 12px; min-height: 33px; padding: 4px 7px; }
.group-heading { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 21px; margin: 22px 0 10px; }
.group-heading span { color: var(--muted); font-family: var(--body); font-size: 12px; font-weight: 500; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(205px,1fr)); gap: 13px; }
.album-item { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.media-preview { position: relative; display: grid; width: 100%; place-items: center; border: 0; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; cursor: pointer; background: #e8ece1; color: var(--pine); }
.media-preview img, .media-preview video { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform .28s; }
.media-preview:hover img, .media-preview:hover video { transform: scale(1.045); }
.media-preview .placeholder { display: grid; justify-items: center; gap: 6px; font-size: 12px; }
.media-preview .placeholder .icon { width: 28px; height: 28px; }
.video-marker { position: absolute; display: grid; place-items: center; width: 30px; height: 30px; bottom: 8px; right: 8px; background: #162c23bd; color: white; border-radius: 50%; }
.video-marker .icon { width: 16px; height: 16px; }
.media-meta { padding: 8px 10px 10px; }
.media-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; line-height: 32px; }
.media-meta .item-top { align-items: center; }
.media-meta .icon-btn { min-width: 26px; min-height: 32px; }
.media-meta .icon-btn .icon { width: 15px; height: 15px; }
.media-subtitle { display: flex; gap: 6px 9px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.media-subtitle span { display: inline-flex; align-items: center; gap: 3px; overflow-wrap: anywhere; }
.media-subtitle .icon { width: 13px; height: 13px; }

.dialog { color: var(--ink); }
#dialog { position: fixed; width: min(540px, calc(100% - 26px)); max-height: calc(100dvh - 28px); margin: auto; border: 1px solid var(--line); border-radius: 20px; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 22px 72px #192b2750; overflow: auto; }
#dialog::backdrop { background: #22372e74; backdrop-filter: blur(2px); }
#dialog.is-preview { width: min(895px, calc(100% - 26px)); }
.dialog-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 14px 17px; }
.dialog-head h2 { font-size: 20px; font-family: var(--display); overflow-wrap: anywhere; }
.dialog-body { padding: 17px; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 11px; }
.stack { display: grid; gap: 12px; }
.fields-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 5px; min-width: 0; font-weight: 650; font-size: 13px; }
.field span.optional { color: var(--muted); font-size: 11px; font-weight: 500; }
input:not([type="file"]):not([type="checkbox"]), select, textarea { border: 1px solid #dcded2; background-color: #fffdf8; border-radius: 9px; color: var(--ink); padding: 9px 10px; width: 100%; min-height: 42px; }
input[readonly] { color: var(--muted); }
input::placeholder, textarea::placeholder { color: #68766e; }
input:focus, select:focus, textarea:focus { border-color: #8aa994; }
textarea { resize: vertical; min-height: 111px; }
.form-error { color: var(--error); font-size: 13px; }
.form-hint { color: var(--muted); font-size: 12px; }
.check-field { display: flex; align-items: center; gap: 7px; width: fit-content; font-size: 13px; font-weight: 650; }
.check-field input { accent-color: var(--pine); width: 16px; height: 16px; margin: 0; }
.drop-zone { position: relative; display: grid; justify-items: center; gap: 4px; padding: 18px 8px; border: 1px dashed #a8bca9; border-radius: 12px; background: #f0f4e9; cursor: pointer; font-size: 13px; }
.drop-zone:hover, .drop-zone.is-dragging, .drop-zone:focus-within { border-color: #668e76; background: #e6eee0; }
.drop-zone .icon { color: var(--pine); width: 25px; height: 25px; }
.drop-zone input { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.file-list { padding-left: 17px; font-size: 12px; color: var(--muted); max-height: 106px; overflow: auto; overflow-wrap: anywhere; }
.upload-progress { display: grid; gap: 3px; color: var(--muted); font-size: 12px; }
.upload-progress progress { width: 100%; accent-color: var(--pine); }
.preview-scene { display: grid; min-height: 110px; place-items: center; background: #e5e9dd; border-radius: 12px; overflow: hidden; }
.preview-scene img, .preview-scene video { width: auto; max-height: 65dvh; margin-inline: auto; }
.preview-scene .placeholder { color: var(--muted); padding: 20px; }
.preview-details { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; padding-top: 13px; }
.preview-details dl { display: flex; flex-wrap: wrap; gap: 5px 15px; }
.preview-details dt { color: var(--muted); font-size: 11px; }
.preview-details dd { font-size: 13px; overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 8; bottom: 20px; right: 20px; border-radius: 12px; padding: 9px 15px; background: #22493d; color: white; max-width: min(460px, calc(100% - 40px)); box-shadow: 0 7px 25px #23483c30; font-size: 13px; }
.toast.error { background: #8e392d; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 188px minmax(0,1fr); }
  .sidebar { padding-inline: 13px; }
  .sidebar > a:first-child { margin-inline: 7px; }
  .paper-photo { width: 120px; height: 100px; }
  .hero .art .back { left: 1%; }
  .hero .art .front { left: 38%; }
  .filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .filters .search-field { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .page { padding: 27px 20px 85px; }
  .shell { display: block; }
  .sidebar { position: fixed; z-index: 6; top: auto; bottom: 0; width: 100%; height: auto; padding: 6px 9px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-right: 0; background: #fbf8f1f2; backdrop-filter: blur(9px); }
  .sidebar > a:first-child, .sidebar .profile { display: none; }
  .main-nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; }
  .main-nav.with-members { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .nav-link { display: grid; text-align: center; justify-items: center; min-height: 46px; padding: 4px 3px; gap: 2px; font-size: 11px; line-height: 1.25; }
  .nav-link .icon { width: 18px; height: 18px; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; min-height: 61px; border-bottom: 1px solid var(--line); padding: 8px 20px; background: #fbf8f1; }
  .mobile-header .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .mobile-header .brand-mark .icon { width: 20px; height: 20px; }
  .mobile-header .brand-title { font-size: 18px; }
  .mobile-header .brand-caption { display: none; }
  .page-top { margin-bottom: 15px; }
  .toast { bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (max-width: 545px) {
  .login-shell { padding: 14px; }
  .login-layout { display: block; min-height: 0; border-radius: 19px; }
  .login-art { min-height: 225px; padding: 22px; }
  .login-art .brand-title { font-size: 18px; }
  .login-copy { margin-top: 27px; max-width: 68%; }
  .login-copy h1 { font-size: clamp(32px, 8vw, 45px); }
  .login-copy p { font-size: 13px; margin-top: 9px; }
  .login-art .art { width: 46%; left: auto; height: 68%; }
  .login-art .paper-photo, .hero .paper-photo { width: 72px; height: 61px; padding: 5px 5px 8px; }
  .login-art .paper-photo::before, .hero .paper-photo::before { width: 28px; height: 10px; left: calc(50% - 14px); top: -4px; }
  .photo-scene::before { width: 16px; height: 16px; }
  .login-art .back { left: 0; bottom: 29%; }
  .login-art .front { left: 39%; bottom: 14%; }
  .login-panel { padding: 25px 22px 27px; }
  .login-panel h2 { font-size: 25px; }
  .login-panel p { font-size: 13px; margin-bottom: 18px; }
  .hero { min-height: 184px; border-radius: 17px; padding: 19px; }
  .hero-copy { max-width: 70%; }
  .hero h1, .page-heading h1 { font-size: clamp(32px, 8.2vw, 43px); }
  .hero p, .page-heading p { font-size: 13px; }
  .hero .btn { min-height: 36px; font-size: 12px; margin-top: 13px; }
  .hero .art { width: 37%; }
  .hero .art .back { bottom: 36%; left: -7%; }
  .hero .art .front { bottom: 22%; left: 27%; }
  .dashboard-cards { margin-top: 12px; gap: 8px; }
  .dashboard-card { padding: 10px 8px; min-height: 81px; gap: 6px; border-radius: 11px; }
  .dashboard-card .card-icon { width: 31px; height: 31px; border-radius: 8px; }
  .dashboard-card .card-icon .icon { width: 17px; height: 17px; }
  .dashboard-card .card-information strong { font-size: 13px; }
  .dashboard-card .card-information span { font-size: 10px; }
  .dashboard-card .card-arrow { display: none; }
  .recent-grid { grid-template-columns: minmax(0,1fr); gap: 1px; }
  .member-row { grid-template-columns: auto minmax(0, 1fr) auto; gap: 5px 8px; padding: 10px; }
  .member-badges { grid-area: 2 / 2; }
  .member-row .btn { grid-area: 1 / 3 / span 2; }
  .section-head { margin-top: 26px; }
  .page-heading { align-items: flex-end; }
  .page-heading .btn { padding-inline: 10px; font-size: 12px; min-height: 39px; }
  .page-heading .btn .icon { width: 15px; height: 15px; }
  .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .media-title { line-height: 1.3; }
  .media-meta .item-top { flex-wrap: wrap; gap: 1px; }
  .media-meta .item-actions { margin-left: auto; }
  .timeline-item { padding-inline: 12px; }
  .timeline-item .item-actions .icon-btn { min-width: 30px; min-height: 32px; }
  .preview-details { align-items: flex-start; flex-direction: column; }
  .fields-two { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
