:root {
  --green: #8b6c50;
  --green-2: #6f543f;
  --green-3: #ebe1d7;
  --gold: #b99855;
  --paper: #f6f1eb;
  --white: #fff;
  --ink: #302821;
  --muted: #7b6e63;
  --line: #ded2c7;
  --danger: #a74a43;
  --warning: #b77822;
  --shadow: 0 14px 40px rgba(91, 67, 48, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; background: var(--paper); }
button, input, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wechat-share-thumbnail { width: 300px; height: 300px; position: absolute; left: -9999px; top: 0; object-fit: cover; }
.icp-filing { width: 100%; padding: 20px 16px; color: #66594f; text-align: center; font-size: 12px; line-height: 1.6; }
.icp-filing a { color: inherit; border-bottom: 1px solid rgba(123,110,99,.35); transition: color .18s ease, border-color .18s ease; }
.icp-filing a:hover { color: var(--green); border-color: currentColor; }
.content > .icp-filing { margin-top: 42px; padding-bottom: 0; }
.login-shell > .icp-filing { width: auto; max-width: 100%; grid-column: 1 / -1; justify-self: center; padding: 8px 13px; color: #fff; border-radius: 4px; background: rgba(48,34,25,.82); }
.login-shell > .icp-filing a { border-color: rgba(255,255,255,.55); }
.login-shell > .icp-filing a:hover { color: #fff; }
.expired-card .icp-filing { padding: 24px 0 0; }
.public-library-body > .icp-filing,.seafood-maintenance-body > .icp-filing { padding-top: 26px; padding-bottom: 32px; }
.dynamic-footer .icp-filing { padding: 18px 0 0; color: rgba(255,255,255,.88); }
.share-footer .icp-filing { padding: 18px 0 0; color: #fff; }
.dynamic-footer .icp-filing a,.share-footer .icp-filing a { border-color: rgba(255,255,255,.24); }
.dynamic-footer .icp-filing a:hover,.share-footer .icp-filing a:hover { color: #fff; }

.admin-body { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 252px; display: flex; flex-direction: column; color: #fff; background: var(--green); }
.brand { display: flex; align-items: center; gap: 14px; margin: 26px 20px 18px; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.13); }
.brand-mark { width: 48px; height: 48px; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid currentColor; color: var(--gold); font-family: Georgia, serif; letter-spacing: 2px; }
.brand strong, .share-brand strong, .login-brand strong { display: block; font-size: 18px; }
.brand small, .share-brand small, .login-brand small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: 2px; opacity: .67; }
.main-nav { padding: 0 20px; }
.nav-label { display: block; padding: 12px 12px 8px; color: rgba(255,255,255,.44); font-size: 12px; }
.nav-section { margin-top: 18px; }
.nav-item { display: flex; align-items: center; gap: 13px; margin: 3px 0; padding: 13px 14px; border-radius: 8px; color: rgba(255,255,255,.78); font-size: 14px; }
.nav-item span { width: 18px; color: var(--gold); text-align: center; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.active { box-shadow: inset 3px 0 var(--gold); }
.sidebar-footer { margin-top: auto; padding: 22px 20px 28px; border-top: 1px solid rgba(255,255,255,.12); }
.profile { display: flex; align-items: center; gap: 12px; }
.profile .avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--gold); }
.profile strong, .profile small { display: block; }
.profile small { margin-top: 3px; color: rgba(255,255,255,.55); font-size: 11px; }
.logout-button { width: 100%; margin-top: 16px; padding: 9px; color: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.15); border-radius: 6px; background: transparent; cursor: pointer; }
.logout-button:hover { color: #fff; border-color: rgba(255,255,255,.38); }
.admin-shell { min-height: 100vh; margin-left: 252px; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 38px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.7); backdrop-filter: blur(12px); }
.crumb { color: var(--muted); font-size: 13px; }
.crumb span { margin: 0 8px; color: #bbb; }
.top-actions { display: flex; gap: 10px; }
.menu-button { display: none; border: 0; background: transparent; font-size: 21px; }
.content { max-width: 1500px; margin: 0 auto; padding: 38px 42px 70px; }
.btn, .outline-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 6px; cursor: pointer; transition: .18s ease; }
.btn-primary { color: #fff; border: 1px solid var(--green); background: var(--green); box-shadow: 0 6px 18px rgba(91,67,48,.2); }
.btn-primary:hover { background: var(--green-2); transform: translateY(-1px); }
.outline-button { color: var(--green); border: 1px solid var(--line); background: #fff; }
.outline-button:hover { border-color: var(--green); }
.text-link { color: var(--green); font-size: 13px; border-bottom: 1px solid var(--gold); }
.text-link span { color: var(--gold); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.page-heading h1 { margin: 5px 0 6px; font: 400 clamp(28px, 3vw, 40px)/1.2 Georgia, "Songti SC", serif; }
.page-heading p { margin: 0; color: var(--muted); }
.compact-heading { align-items: center; }
.eyebrow { color: var(--gold) !important; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.heading-actions { display: flex; gap: 10px; }

.flash-stack { position: fixed; top: 84px; right: 28px; z-index: 50; display: grid; gap: 8px; }
.flash { padding: 12px 17px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); font-size: 13px; }
.flash.success { border-left: 4px solid var(--green-2); }
.flash.error { border-left: 4px solid var(--danger); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 25px 0 36px; }
.stat-card { min-height: 142px; position: relative; padding: 24px; border: 1px solid var(--line); background: rgba(255,255,255,.72); }
.stat-card:hover { border-color: #cbb8a8; box-shadow: var(--shadow); }
.stat-card.featured { color: #fff; border-color: var(--green); background: var(--green); }
.stat-card > span { display: block; color: inherit; opacity: .72; font-size: 12px; }
.stat-card strong { display: block; margin: 10px 0 7px; font: 400 31px/1 Georgia, serif; }
.stat-card p { margin: 0; color: inherit; opacity: .67; font-size: 11px; }
.stat-icon { position: absolute; top: 20px; right: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(91,67,48,.08); }
.featured .stat-icon { background: rgba(255,255,255,.1); }
.alert-stat .stat-icon { color: var(--danger); background: #f8e8e5; }
.lan-share-card { display: grid; grid-template-columns: minmax(250px,1fr) minmax(260px,auto) auto; align-items: center; gap: 16px; margin: -7px 0 25px; padding: 15px 17px; border: 1px solid #ddcec1; background: #faf5f0; }
.lan-share-card > div { display: flex; align-items: center; gap: 10px; }
.lan-share-card strong, .lan-share-card small { display: block; }
.lan-share-card strong { color: var(--green); font-size: 12px; }
.lan-share-card small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.lan-share-card code { overflow: hidden; color: #745d4a; font: 10px Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.section-block { margin-top: 18px; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-title-row h2 { margin: 0 0 4px; font: 400 25px/1.2 Georgia, "Songti SC", serif; }
.section-title-row p { margin: 0; color: var(--muted); font-size: 12px; }
.scheme-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.scheme-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: .18s ease; }
.scheme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.scheme-cover { height: 190px; position: relative; display: block; overflow: hidden; background: #e6e6e0; }
.scheme-cover img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.scheme-card:hover .scheme-cover img { transform: scale(1.025); }
.status-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; color: var(--green); border-radius: 3px; background: #f1e9e1; font-size: 11px; white-space: nowrap; }
.scheme-cover .status-pill { position: absolute; top: 10px; left: 10px; }
.status-pill.expiring { color: #8b570e; background: #fff0d5; }
.status-pill.expired, .status-pill.stopped { color: #777; background: #ececea; }
.status-pill.draft { color: #6e5a33; background: #f5eedf; }
.image-count { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; color: #fff; border-radius: 3px; background: rgba(0,0,0,.53); font-size: 10px; }
.scheme-info { padding: 17px; }
.scheme-type { color: var(--gold); font-size: 10px; }
.scheme-info h3 { min-height: 43px; margin: 5px 0 3px; font: 500 17px/1.3 Georgia, "Songti SC", serif; }
.scheme-store { margin: 0 0 15px; color: var(--muted); font-size: 11px; }
.scheme-meta { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid #eee; color: var(--muted); font-size: 10px; }
.scheme-meta .expiring { color: var(--warning); }
.scheme-meta .expired { color: var(--danger); }
.scheme-actions { display: grid; grid-template-columns: repeat(3,1fr); margin: 16px -17px -17px; border-top: 1px solid var(--line); }
.scheme-actions > * { min-height: 39px; display: grid; place-items: center; padding: 0; color: var(--green); border: 0; border-right: 1px solid var(--line); background: transparent; font-size: 11px; cursor: pointer; }
.scheme-actions > *:last-child { border-right: 0; }
.scheme-actions > *:hover { background: #f6f0ea; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed #cbd0cc; background: rgba(255,255,255,.45); }
.empty-state > span { font-size: 30px; color: var(--gold); }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { color: var(--muted); }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.search-field { min-width: 300px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); background: #fff; }
.search-field input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; }
.select-field { display: flex; align-items: center; gap: 8px; padding-left: 12px; color: var(--muted); border: 1px solid var(--line); background: #fff; font-size: 12px; }
.select-field select { height: 42px; padding: 0 28px 0 5px; border: 0; outline: 0; background: transparent; }
.scheme-list { display: grid; gap: 10px; }
.scheme-row { display: grid; grid-template-columns: 128px minmax(230px,1fr) auto; align-items: center; gap: 18px; min-height: 124px; padding: 13px; border: 1px solid var(--line); background: #fff; }
.row-cover { width: 128px; height: 96px; overflow: hidden; background: #eee; }
.row-cover img { width: 100%; height: 100%; object-fit: cover; }
.row-title { display: flex; align-items: center; gap: 10px; }
.row-title h2 { margin: 0; font: 500 19px/1.3 Georgia, "Songti SC", serif; }
.row-main > p { margin: 8px 0; color: var(--muted); font-size: 12px; }
.row-meta { display: flex; gap: 18px; color: var(--muted); font-size: 11px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; max-width: 470px; }
.row-actions .outline-button { min-height: 36px; padding: 0 12px; font-size: 12px; }
.row-actions form { margin: 0; }
.text-button, .danger-link { color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.text-button:hover, .danger-link:hover { color: var(--danger); }
.renew-menu { position: relative; }
.renew-menu[open] { flex: 1 0 100%; display: grid; justify-items: end; }
.renew-menu[open] summary { justify-self: end; }
.renew-menu summary { list-style: none; }
.renew-menu summary::-webkit-details-marker { display: none; }
.renew-form { width: 290px; margin-top: 8px !important; padding: 18px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.renew-form strong { display: block; margin-bottom: 12px; }
.renew-form .btn { width: 100%; margin-top: 12px; }
.reset-views-button:disabled { color: #aaa19a; cursor: not-allowed; opacity: .7; }
.duration-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.duration-chips label { cursor: pointer; }
.duration-chips input { position: absolute; opacity: 0; pointer-events: none; }
.duration-chips span { min-height: 34px; display: grid; place-items: center; padding: 0 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.duration-chips input:checked + span { color: #fff; border-color: var(--green); background: var(--green); }
.duration-chips.large span { min-width: 100px; min-height: 48px; }
.custom-expiry { display: none; width: 100%; height: 40px; margin-top: 10px; padding: 0 10px; border: 1px solid var(--line); }
.custom-expiry.visible { display: block; }
.qr-dialog { width: min(420px, calc(100% - 30px)); padding: 36px; text-align: center; border: 0; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.qr-dialog::backdrop { background: rgba(12,28,24,.64); }
.qr-dialog h2 { font: 400 24px Georgia, serif; }
.qr-dialog img { width: 260px; height: 260px; margin: 18px auto; }
.dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 25px; cursor: pointer; }

.editor-form { display: grid; gap: 16px; }
.editor-card { padding: 25px; border: 1px solid var(--line); background: #fff; }
.editor-card-title { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.editor-card-title > span { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--green); font: 12px Georgia, serif; }
.editor-card-title h2 { margin: 0 0 4px; font: 500 21px Georgia, "Songti SC", serif; }
.editor-card-title p { margin: 0; color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field > span { color: #62564c; font-size: 13px; font-weight: 600; }
.field input, .field select { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); outline: 0; background: #fff; font-size: 13px; }
.field input::placeholder { color: #9a897a; opacity: 1; }
.field input:focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(139,108,80,.1); }
.portal-login-body .field input { font-size: 16px; }
.custom-expiry-wrap { max-width: 340px; margin-top: 13px; }
.scheme-lifetime { display: flex; align-items: center; justify-content: space-between; }
.scheme-lifetime h2 { display: inline; margin: 0 8px; font: 500 20px Georgia, serif; }
.scheme-lifetime p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.sortable-list { display: grid; gap: 8px; }
.image-editor-row { display: grid; grid-template-columns: 40px 92px minmax(200px,1fr) 70px 50px; align-items: center; gap: 13px; padding: 10px; border: 1px solid var(--line); background: #fafaf8; }
.image-editor-row.dragging { opacity: .4; border-style: dashed; }
.image-editor-row img { width: 92px; height: 68px; object-fit: cover; }
.drag-handle { align-self: stretch; color: var(--muted); border: 0; background: transparent; font-size: 20px; cursor: grab; }
.visibility-toggle { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.visibility-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.upload-zone { min-height: 128px; display: grid; place-items: center; align-content: center; gap: 5px; margin-top: 14px; border: 1px dashed #aebbb5; color: var(--muted); background: #f7f9f7; cursor: pointer; }
.upload-zone:hover { color: var(--green); border-color: var(--green); }
.upload-zone input { display: none; }
.upload-zone .upload-icon { color: var(--gold); font-size: 28px; }
.upload-zone small { font-size: 11px; }
.selected-files { display: grid; gap: 4px; margin-top: 10px; font-size: 11px; }
.selected-files span { color: var(--muted); overflow-wrap: anywhere; }
.small-empty { padding: 24px; color: var(--muted); text-align: center; background: #f8f8f5; }
.sticky-actions { position: sticky; bottom: 14px; z-index: 12; display: flex; justify-content: flex-end; gap: 9px; padding: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.94); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding: 22px; border: 1px solid #ead0cc; background: #fff8f7; }
.danger-zone h2 { margin: 0 0 4px; font-size: 16px; }
.danger-zone p { margin: 0; color: var(--muted); font-size: 12px; }
.danger-button { padding: 9px 14px; color: var(--danger); border: 1px solid #dcb4ae; background: #fff; cursor: pointer; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-form { display: grid; gap: 14px; }
.backup-copy { min-height: 150px; padding: 22px; margin-bottom: 15px; color: var(--green); background: #f2ebe4; }
.backup-copy p { color: var(--muted); line-height: 1.7; }
.restore-card { grid-column: 1 / -1; }
.restore-layout { display: grid; grid-template-columns: minmax(260px,1fr) minmax(320px,1fr); gap: 24px; }
.restore-warning { padding: 22px; color: #713b35; border: 1px solid #ead4cf; background: #fff8f7; }
.restore-warning p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.restore-warning code { color: var(--danger); }
.restore-form { display: grid; align-content: start; gap: 15px; }
.restore-file { display: grid; gap: 8px; color: var(--muted); font-size: 12px; }
.restore-file input { width: 100%; padding: 12px; border: 1px dashed #b8c2bd; background: #f8faf9; }
.restore-confirm { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.restore-confirm input { width: 17px; height: 17px; accent-color: var(--danger); }

.toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; padding: 11px 18px; color: #fff; border-radius: 5px; background: rgba(18,36,31,.95); opacity: 0; transform: translate(-50%, 20px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sidebar-scrim { display: none; }

.login-body, .expired-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 70% 20%, #a8886b 0, var(--green) 38%, #493526 100%); }
.login-shell { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 430px; align-items: center; column-gap: 70px; row-gap: 24px; }
.login-brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.login-brand .brand-mark { width: 70px; height: 70px; }
.login-brand strong { font-size: 30px; }
.login-card { padding: 42px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.login-card h1 { margin: 8px 0; font: 400 33px Georgia, "Songti SC", serif; }
.login-card > p:not(.eyebrow) { margin: 0 0 26px; color: var(--muted); }
.login-card form { display: grid; gap: 18px; }
.full-button { width: 100%; }
.login-hint { display: block; margin-top: 22px; color: #929894; text-align: center; }
.expired-card { width: min(520px,100%); padding: 55px 42px; text-align: center; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.expired-card .brand-mark { margin: 0 auto 25px; }
.expired-card h1 { font: 400 34px Georgia, "Songti SC", serif; }
.expired-card p { color: var(--muted); line-height: 1.7; }
.expired-card small { color: #999; }

.share-body { background: #f3f0e9; }
.preview-banner { position: sticky; top: 0; z-index: 40; padding: 8px; color: #fff; text-align: center; background: #8e6a28; font-size: 12px; }
.share-hero { min-height: 610px; position: relative; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(11,39,31,.97), rgba(20,62,50,.84)), url("images/cover.jpg") center/cover; }
.share-hero::after { content: ""; position: absolute; inset: 0; opacity: .12; background: radial-gradient(circle at 70% 40%, #fff 0 1px, transparent 2px); background-size: 18px 18px; }
.share-nav { max-width: 1180px; height: 90px; position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: auto; padding: 0 30px; border-bottom: 1px solid rgba(255,255,255,.16); }
.share-brand { display: flex; align-items: center; gap: 13px; }
.share-button { padding: 10px 15px; color: #fff; border: 1px solid rgba(255,255,255,.35); background: transparent; cursor: pointer; }
.hero-copy { max-width: 1180px; position: relative; z-index: 2; margin: 125px auto 0; padding: 0 30px; }
.hero-copy p { color: var(--gold); font-size: 11px; letter-spacing: 3px; }
.hero-copy h1 { max-width: 760px; margin: 16px 0 20px; font: 400 clamp(38px,6vw,72px)/1.2 Georgia, "Songti SC", serif; }
.gold-line { width: 75px; height: 1px; margin-bottom: 18px; background: var(--gold); }
.hero-copy > span { color: rgba(255,255,255,.68); }
.hero-seal { position: absolute; z-index: 2; right: 9%; bottom: 70px; width: 85px; height: 85px; display: grid; place-items: center; color: var(--gold); text-align: center; border: 1px solid var(--gold); font: 20px/1.4 Georgia, serif; transform: rotate(-5deg); }
.category-nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: center; overflow-x: auto; border-bottom: 1px solid var(--line); background: rgba(248,246,241,.96); backdrop-filter: blur(10px); }
.category-nav a { min-width: 128px; padding: 17px 19px; color: #5e6863; text-align: center; white-space: nowrap; font-size: 14px; }
.category-nav a:hover { color: var(--green); background: #fff; }
.category-nav b { margin-right: 8px; color: var(--gold); }
.gallery-shell { max-width: 1050px; margin: auto; padding: 80px 28px; }
.gallery-intro { margin-bottom: 55px; text-align: center; }
.gallery-intro span { color: var(--gold); font-size: 10px; letter-spacing: 3px; }
.gallery-intro h2 { margin: 9px 0; font: 400 38px Georgia, "Songti SC", serif; }
.gallery-intro p { color: var(--muted); }
.share-gallery { display: grid; gap: 85px; }
.gallery-caption { display: grid; grid-template-columns: 50px auto 1fr; align-items: center; gap: 16px; margin-bottom: 15px; }
.gallery-caption > b { color: var(--gold); font: 28px Georgia, serif; }
.gallery-caption small, .gallery-caption strong { display: block; }
.gallery-caption small { color: var(--muted); font-size: 9px; letter-spacing: 2px; }
.gallery-caption strong { margin-top: 3px; font: 500 18px Georgia, "Songti SC", serif; }
.gallery-caption i { height: 1px; background: var(--line); }
.gallery-image { width: 100%; position: relative; padding: 0; overflow: hidden; border: 0; background: #ddd; cursor: zoom-in; }
.gallery-image img { width: 100%; max-height: 1100px; object-fit: contain; background: #e9e7e0; }
.gallery-image span { position: absolute; right: 14px; bottom: 14px; padding: 8px 11px; color: #fff; background: rgba(18,46,38,.85); font-size: 11px; }
.share-footer { padding: 65px 20px; color: #fff; text-align: center; background: var(--green); }
.footer-seal { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 17px; color: var(--gold); border: 1px solid var(--gold); }
.share-footer strong { font: 500 20px Georgia, serif; }
.share-footer p, .share-footer small { color: rgba(255,255,255,.58); }
.back-top { position: fixed; right: 20px; bottom: 20px; z-index: 10; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--green); }
.lightbox { width: 100vw; height: 100vh; height: 100dvh; position: fixed; inset: 0; z-index: 90; display: none; overflow: hidden; overscroll-behavior: contain; background: rgba(5,16,13,.94); box-sizing: border-box; }
.lightbox.show { display: block; touch-action: none; }
.lightbox-stage { width: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: max(58px, calc(env(safe-area-inset-top) + 48px)) max(12px, env(safe-area-inset-right)) max(58px, calc(env(safe-area-inset-bottom) + 48px)) max(12px, env(safe-area-inset-left)); box-sizing: border-box; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 116px); max-height: calc(100dvh - 116px); display: block; flex: 0 0 auto; margin: auto; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.lightbox.zoomed .lightbox-stage { cursor: grab; }
.lightbox button { position: fixed; top: max(14px, calc(env(safe-area-inset-top) + 8px)); right: max(16px, calc(env(safe-area-inset-right) + 12px)); z-index: 2; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; color: #fff; border: 0; background: rgba(5,16,13,.36); font-size: 38px; line-height: 1; cursor: pointer; }

@media (max-width: 1180px) {
  .stats-grid, .scheme-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .scheme-row { grid-template-columns: 110px 1fr; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-start; max-width: none; padding-top: 10px; border-top: 1px solid #eee; }
}

@media (max-width: 800px) {
  .sidebar { transform: translateX(-100%); transition: .22s; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim.show { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(0,0,0,.44); }
  .admin-shell { margin-left: 0; }
  .topbar { height: 64px; padding: 0 16px; }
  .menu-button { display: block; }
  .crumb { margin-right: auto; margin-left: 12px; }
  .content { padding: 26px 18px 60px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .stats-grid, .scheme-grid, .settings-grid { grid-template-columns: 1fr; }
  .restore-layout { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-field { min-width: 0; }
  .scheme-row { grid-template-columns: 88px 1fr; gap: 12px; }
  .row-cover { width: 88px; height: 80px; }
  .row-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .row-title h2 { font-size: 16px; }
  .row-meta { flex-direction: column; gap: 3px; }
  .form-grid { grid-template-columns: 1fr; }
  .image-editor-row { grid-template-columns: 30px 70px 1fr; }
  .image-editor-row img { width: 70px; height: 60px; }
  .image-editor-row .visibility-toggle, .image-editor-row .danger-link { grid-column: auto; }
  .sticky-actions { flex-wrap: wrap; }
  .login-shell { grid-template-columns: 1fr; gap: 30px; }
  .login-brand { justify-content: center; }
  .login-card { padding: 30px 24px; }
  .share-hero { min-height: 530px; }
  .share-nav { height: 75px; padding: 0 18px; }
  .share-brand strong { font-size: 14px; }
  .share-brand .brand-mark { width: 42px; height: 42px; font-size: 12px; }
  .hero-copy { margin-top: 100px; padding: 0 22px; }
  .hero-seal { right: 22px; bottom: 38px; width: 67px; height: 67px; font-size: 15px; }
  .category-nav { justify-content: flex-start; }
  .gallery-shell { padding: 55px 15px; }
  .share-gallery { gap: 60px; }
  .gallery-caption { grid-template-columns: 42px auto 1fr; }
}

@media (max-width: 520px) {
  .top-actions .btn { padding: 0 12px; font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { min-height: 125px; padding: 18px; }
  .stat-card strong { font-size: 27px; }
  .scheme-row { grid-template-columns: 1fr; }
  .row-cover { width: 100%; height: 170px; }
  .row-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .row-actions > *, .row-actions form, .row-actions button { width: 100%; }
  .renew-menu[open] { grid-column: 1 / -1; }
  .renew-form { width: 100%; }
  .image-editor-row { grid-template-columns: 30px 62px 1fr; }
  .image-editor-row img { width: 62px; }
  .image-editor-row .visibility-toggle { grid-column: 2; }
  .image-editor-row .danger-link { grid-column: 3; justify-self: start; }
  .danger-zone { align-items: flex-start; flex-direction: column; gap: 15px; }
  .share-button { padding: 8px 10px; font-size: 11px; }
}

/* Restored studio experience */
.storage-line { display: flex; justify-content: space-between; margin-bottom: 9px; color: rgba(255,255,255,.55); font-size: 11px; }
.storage-line strong { color: rgba(255,255,255,.78); }
.storage-bar { height: 2px; margin-bottom: 22px; background: rgba(255,255,255,.15); }
.storage-bar i { width: 38%; height: 100%; display: block; background: var(--gold); }
.dashboard-heading { margin-bottom: 28px; }
.dashboard-heading h1 { font-size: 39px; }
.dashboard-grid .scheme-cover { height: 214px; }
.dashboard-toolbar { display: grid; grid-template-columns: minmax(250px, 1.35fr) auto auto; }
.dashboard-toolbar .search-field { min-width: 0; }
.filter-chips { display: flex; gap: 6px; }
.filter-chips a { min-height: 40px; display: grid; place-items: center; padding: 0 15px; border: 1px solid var(--line); background: #fff; font-size: 12px; }
.filter-chips a:hover, .filter-chips a.active { color: #fff; border-color: var(--green); background: var(--green); }
.filter-button { min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 13px; border: 1px solid var(--line); background: #fff; font-size: 12px; }
.view-toggle { display: flex; }
.view-toggle button { width: 38px; height: 36px; color: var(--muted); border: 1px solid var(--line); background: #fff; }
.view-toggle button.active { color: #fff; border-color: var(--green); background: var(--green); }

.studio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.studio-heading h1 { margin: 6px 0 7px; font: 400 36px/1.15 Georgia, "Songti SC", serif; }
.studio-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.network-mode { min-width: 235px; display: flex; align-items: center; gap: 11px; padding: 14px 17px; border: 1px solid #ccddd5; background: #f1f7f4; }
.network-mode .pulse { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #54a984; box-shadow: 0 0 0 5px rgba(84,169,132,.12); }
.network-mode strong, .network-mode small { display: block; }
.network-mode strong { color: var(--green); font-size: 12px; }
.network-mode small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.studio-grid { display: grid; grid-template-columns: minmax(430px, 1fr) minmax(330px, 380px); align-items: start; gap: 24px; }
.studio-editor { min-width: 0; display: grid; gap: 16px; }
.studio-card { padding: 24px; border: 1px solid var(--line); background: #fff; }
.studio-card-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 21px; }
.studio-card-title > span { color: var(--gold); font: 20px Georgia, serif; }
.studio-card-title h2 { margin: 0 0 4px; font: 500 20px Georgia, "Songti SC", serif; }
.studio-card-title p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.studio-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.studio-field { display: grid; gap: 7px; }
.studio-field > span, .studio-duration > span { color: var(--ink); font-size: 12px; font-weight: 600; }
.studio-field input { width: 100%; height: 46px; padding: 0 13px; color: var(--ink); border: 1px solid var(--line); outline: 0; background: #fff; font-size: 13px; }
.studio-field input::placeholder { color: #9a897a; opacity: 1; }
.studio-field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(139,108,80,.09); }
.studio-name { grid-column: 1 / -1; }
.studio-duration { grid-column: 1 / -1; display: grid; gap: 8px; padding-top: 2px; }
.studio-duration-options span { min-width: 78px; }
.studio-duration > small { color: var(--muted); font-size: 11px; }
.studio-lifetime { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; background: #f4f7f5; }
.studio-lifetime > div { display: flex; align-items: center; gap: 10px; }
.studio-lifetime strong { font-size: 13px; }
.studio-lifetime small { color: var(--muted); font-size: 11px; }
.studio-lifetime > a { color: var(--green); font-size: 11px; border-bottom: 1px solid var(--gold); }
.directory-title { align-items: center; }
.directory-title > div { margin-right: auto; }
.ghost-button { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; color: var(--green); border: 1px solid var(--line); background: #fff; font-size: 11px; cursor: pointer; }
.hidden-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.directory-summary { display: flex; align-items: center; gap: 20px; padding: 13px 12px; margin-bottom: 8px; color: var(--muted); border-top: 1px solid #eee; border-bottom: 1px solid #eee; font-size: 12px; }
.directory-summary b { color: var(--ink); }
.directory-summary em { margin-left: auto; color: #5c7c70; font-style: normal; }
.directory-list { display: grid; }
.directory-row.image-editor-row { min-height: 72px; display: grid; grid-template-columns: 24px 54px 28px minmax(120px,1fr) 76px 48px 24px; align-items: center; gap: 10px; padding: 8px 5px; border: 0; border-bottom: 1px solid #ecece8; background: #fff; }
.directory-row.image-editor-row:nth-child(n+7) { display: none; }
.directory-list.expanded .directory-row.image-editor-row { display: grid; }
.directory-row.image-editor-row img { width: 54px; height: 48px; object-fit: cover; }
.editor-image-preview { width: 54px; height: 48px; display: block; padding: 0; overflow: hidden; border: 0; background: #e9e4df; cursor: zoom-in; }
.directory-row.image-editor-row .editor-image-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .18s ease; }
.editor-image-preview:hover img { transform: scale(1.04); }
.pending-image-row { background: #fbfdfc !important; box-shadow: inset 3px 0 #8bad9f; }
.pending-image-row .file-weight small { color: #4f7a69; }
.directory-row .drag-handle { padding: 0; font-size: 15px; }
.row-number { color: var(--gold); font: 12px Georgia, serif; }
.directory-name { display: grid; gap: 4px; }
.directory-name small, .file-weight small { color: #81766d; font-size: 10px; }
.directory-name input { width: 100%; padding: 3px 0; color: var(--ink); border: 0; border-bottom: 1px solid transparent; outline: 0; background: transparent; font-size: 12px; font-weight: 600; }
.directory-name input:focus { border-bottom-color: var(--gold); }
.file-weight strong { display: block; margin-top: 4px; color: var(--ink); font-size: 11px; }
.mini-switch { display: grid; justify-items: center; gap: 3px; color: #756a61; font-size: 10px; cursor: pointer; }
.mini-switch input { position: absolute; opacity: 0; }
.mini-switch i { width: 30px; height: 17px; position: relative; border-radius: 12px; background: #c7cbc8; transition: .2s; }
.mini-switch i::after { content: ""; width: 13px; height: 13px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: #fff; transition: .2s; }
.mini-switch input:checked + i { background: var(--green); }
.mini-switch input:checked + i::after { transform: translateX(13px); }
.row-remove { color: #aaa; border: 0; background: transparent; font-size: 17px; cursor: pointer; }
.row-remove:hover { color: var(--danger); }
.show-more-rows { width: 100%; padding: 12px; color: var(--muted); border: 0; background: #faf9f6; font-size: 10px; cursor: pointer; }
.directory-empty { min-height: 130px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); background: #fafaf8; }
.directory-empty span { font-size: 10px; }
.compression-card { display: grid; grid-template-columns: 43px minmax(180px,1fr) minmax(230px,300px); align-items: center; gap: 15px; padding: 18px; border: 1px solid #ddcec1; background: #faf5f0; }
.compression-icon { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--green); }
.compression-card strong { color: var(--green); font-size: 12px; }
.compression-card p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.preview-scale-control { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px; padding-left: 16px; border-left: 1px solid #dfd0c4; }
.preview-scale-control label { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; color: #66584d; font-size: 11px; font-weight: 600; }
.preview-scale-control output { color: var(--green); font: 700 18px Georgia, serif; }
.preview-scale-control input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--green); cursor: pointer; }
.preview-refresh-button { min-height: 35px; padding: 0 11px; font-size: 11px; }
.preview-scale-control > small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.live-preview-panel { position: sticky; top: 88px; min-width: 0; }
.preview-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.preview-panel-head strong, .preview-panel-head small { display: block; }
.preview-panel-head strong { font-size: 12px; }
.preview-panel-head small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.preview-panel-head a { color: var(--gold); font-size: 11px; }
.phone-frame { height: 674px; position: relative; padding: 11px; overflow: hidden; border: 9px solid #29221d; border-radius: 37px; background: #111; box-shadow: 0 18px 42px rgba(91,67,48,.18); }
.phone-frame::before { content: ""; width: 76px; height: 15px; position: absolute; top: 0; left: 50%; z-index: 3; border-radius: 0 0 10px 10px; background: #1b211f; transform: translateX(-50%); }
.phone-speaker { width: 44px; height: 4px; position: absolute; top: 4px; left: 50%; z-index: 4; border-radius: 4px; background: #454b48; transform: translateX(-50%); }
.phone-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 22px; background: #f4f1e9; }
.publish-actions { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; margin-top: 12px; }
.publish-actions > * { width: 100%; min-height: 45px; }
.studio-danger { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px; border: 1px solid #ead4cf; background: #fffafa; }
.studio-danger strong, .studio-danger small { display: block; }
.studio-danger small { margin-top: 4px; color: var(--muted); font-size: 9px; }

/* Restored mobile-first public scheme */
.dynamic-mobile-body { min-height: 100vh; margin: 0; background: #d8d6d1; }
.dynamic-mobile-body.embedded-mobile { background: #f5f2ea; }
.mobile-page-shell { width: 100%; max-width: 520px; min-height: 100vh; position: relative; margin: 0 auto; overflow: clip; background: #f5f2ea; box-shadow: 0 0 34px rgba(0,0,0,.18); }
.embedded-mobile .mobile-page-shell { max-width: none; box-shadow: none; }
.mobile-preview-note { padding: 7px; color: #fff; text-align: center; background: #8e6a28; font-size: 10px; }
.mobile-brandbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: #fff; background: #111918; }
.mobile-logo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mobile-logo img { width: 36px; height: 36px; object-fit: cover; }
.mobile-logo span { min-width: 0; }
.mobile-logo strong, .mobile-logo small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mobile-logo strong { font-size: 13px; }
.mobile-logo small { max-width: 270px; margin-top: 3px; color: rgba(255,255,255,.5); font-size: 8px; }
.mobile-share { position: absolute; top: 16px; right: 15px; z-index: 3; padding: 6px 11px; color: #fff; border: 1px solid rgba(255,255,255,.3); background: rgba(8,36,30,.2); font-size: 9px; }
.mobile-intro { min-height: 232px; position: relative; padding: 39px 21px 28px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #9b7758, #604834); }
.mobile-intro::after { content: "洲"; position: absolute; right: -12px; bottom: -58px; color: rgba(255,255,255,.035); font: 230px Georgia, serif; }
.mobile-intro p { position: relative; z-index: 1; margin: 0 0 18px; color: var(--gold); font-size: 8px; letter-spacing: 3px; }
.mobile-intro h1 { position: relative; z-index: 1; margin: 0; font: 400 29px/1.45 Georgia, "Songti SC", serif; letter-spacing: 3px; }
.mobile-intro h1 em { color: #d8bd83; font-style: normal; }
.mobile-intro > span { position: relative; z-index: 1; color: rgba(255,255,255,.64); font-size: 9px; }
.mobile-intro > i { position: relative; z-index: 1; margin-left: 9px; padding: 4px 7px; color: #b9d4c8; background: rgba(255,255,255,.08); font-size: 8px; font-style: normal; }
.dynamic-nav-wrap { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid #d9d7cf; background: rgba(250,248,243,.97); }
.dynamic-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
.dynamic-nav::-webkit-scrollbar { display: none; }
.dynamic-nav a { flex: 0 0 auto; padding: 17px 15px; color: #5f655f; font-size: 12px; line-height: 1.25; white-space: nowrap; }
.dynamic-nav a:hover { color: var(--green); }
.dynamic-nav a.active { color: var(--green); background: #fff; box-shadow: inset 0 -2px var(--gold); font-weight: 700; }
.directory-button { min-width: 78px; color: var(--green); border: 0; border-left: 1px solid #d9d7cf; background: #f9f7f2; font-size: 12px; font-weight: 700; }
.directory-button b { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: 3px; color: #fff; border-radius: 10px; background: var(--green); font-size: 10px; }
.dynamic-gallery { padding: 31px 11px 55px; }
.dynamic-section { scroll-margin-top: 53px; margin-bottom: 49px; }
.dynamic-caption { display: grid; grid-template-columns: 42px 1fr; align-items: end; margin-bottom: 11px; }
.dynamic-caption > span { color: var(--gold); font: 23px Georgia, serif; }
.dynamic-caption small { color: #9b9b91; font-size: 6px; letter-spacing: 2px; }
.dynamic-caption h2 { margin: 2px 0 0; font: 600 14px Georgia, "Songti SC", serif; }
.dynamic-image { width: 100%; position: relative; display: block; padding: 0; overflow: hidden; border: 0; background: #dad8d1; }
.dynamic-image img { width: 100%; height: auto; min-height: 130px; object-fit: contain; background: #ebe8df; }
.dynamic-image > span { position: absolute; top: 8px; left: 8px; padding: 4px 6px; color: #eee2d5; background: rgba(82,58,41,.86); font-size: 7px; }
.dynamic-image > b { position: absolute; right: 8px; bottom: 8px; padding: 5px 7px; color: #fff; background: rgba(12,27,22,.72); font-size: 7px; font-weight: 400; }
.dynamic-mobile-body .dynamic-image,
.dynamic-mobile-body .seafood-display-image,
.dynamic-mobile-body .lightbox-stage { -webkit-touch-callout: none; user-select: none; }
.dynamic-mobile-body .dynamic-image img,
.dynamic-mobile-body .seafood-display-image img,
.dynamic-mobile-body .lightbox img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; pointer-events: none; }
.dynamic-footer { padding: 45px 18px; color: #fff; text-align: center; background: #2c231d; }
.dynamic-footer img { width: 48px; height: 48px; margin: 0 auto 13px; }
.dynamic-footer strong { font: 500 15px Georgia, serif; }
.dynamic-footer p { color: rgba(255,255,255,.45); font-size: 8px; }
.mobile-backtop { position: fixed; right: max(14px, calc((100vw - 520px) / 2 + 14px)); bottom: 16px; z-index: 18; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: var(--green); }
.directory-sheet { position: fixed; inset: 0; z-index: 60; visibility: hidden; opacity: 0; transition: .2s; }
.directory-sheet.open { visibility: visible; opacity: 1; }
.sheet-mask { position: absolute; inset: 0; border: 0; background: rgba(9,18,15,.7); }
.sheet-content { width: min(520px,100%); max-height: 75vh; position: absolute; right: 50%; bottom: 0; padding: 22px 17px 30px; overflow-y: auto; border-radius: 22px 22px 0 0; background: #f8f6f0; transform: translate(50%, 100%); transition: .25s; }
.directory-sheet.open .sheet-content { transform: translate(50%, 0); }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.sheet-head strong, .sheet-head small { display: block; }
.sheet-head strong { font: 500 20px Georgia, "Songti SC", serif; }
.sheet-head small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.sheet-head button { color: var(--muted); border: 0; background: transparent; font-size: 24px; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-grid a { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #dcd9d0; background: #fff; font-size: 13px; }
.sheet-grid span { color: var(--gold); font: 10px Georgia, serif; }

/* Account-protected sharing scheme library */
.public-library-body { min-height: 100vh; background: #f4f2ec; }
.public-library-header { color: #fff; background: var(--green); }
.public-library-nav { max-width: 1240px; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: auto; padding: 16px 30px; border-bottom: 1px solid rgba(255,255,255,.13); }
.public-library-brand { display: flex; align-items: center; gap: 13px; }
.public-library-brand strong, .public-library-brand small { display: block; }
.public-library-brand strong { font-size: 17px; }
.public-library-brand small { margin-top: 3px; color: rgba(255,255,255,.52); font-size: 8px; letter-spacing: 2px; }
.public-library-nav .outline-button { color: #fff; border-color: rgba(255,255,255,.25); background: transparent; }
.public-account-actions { display: flex; align-items: center; gap: 8px; }
.public-account-actions > span { max-width: 150px; overflow: hidden; color: rgba(255,255,255,.72); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.public-account-actions form { margin: 0; }
.public-library-intro { max-width: 1240px; margin: auto; padding: 52px 30px 58px; }
.public-library-intro h1 { margin: 7px 0 9px; font: 400 clamp(31px,5vw,52px)/1.15 Georgia, "Songti SC", serif; }
.public-library-intro > p:last-child { max-width: 680px; margin: 0; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.8; }
.public-library-main { max-width: 1240px; margin: auto; padding: 30px 30px 70px; }
.public-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.public-library-toolbar > div { display: flex; align-items: baseline; gap: 7px; }
.public-library-toolbar strong { color: var(--green); font: 31px Georgia, serif; }
.public-library-toolbar span { color: var(--muted); font-size: 12px; }
.public-scheme-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.public-scheme-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: .18s ease; }
.public-scheme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.public-scheme-cover { height: 220px; position: relative; display: block; overflow: hidden; background: #e7e5df; }
.public-scheme-cover img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.public-scheme-card:hover .public-scheme-cover img { transform: scale(1.025); }
.public-scheme-cover .status-pill { position: absolute; top: 12px; left: 12px; }
.public-scheme-info { padding: 18px 19px; }
.public-scheme-info > span { color: var(--gold); font-size: 10px; }
.public-scheme-info h2 { min-height: 52px; margin: 7px 0 4px; font: 500 20px/1.35 Georgia, "Songti SC", serif; }
.public-scheme-info > p { margin: 0 0 16px; color: var(--muted); font-size: 11px; }
.public-scheme-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 13px; color: var(--muted); border-top: 1px solid #eee; font-size: 10px; }
.public-scheme-actions { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.public-scheme-actions > * { min-height: 47px; display: grid; place-items: center; padding: 0; color: var(--green); border: 0; border-right: 1px solid var(--line); background: #fff; font-size: 12px; cursor: pointer; }
.public-scheme-actions > *:last-child { border-right: 0; }
.public-scheme-actions > *:hover { background: #f4eee8; }
.public-scheme-actions .seafood-maintain-link { color: #7b5e2f; background: #fcf8ed; }
.public-scheme-actions .recommended-maintain-link { color: #8b4f3f; background: #fbf1ed; }

/* Daily seafood mixed display */
.daily-seafood-nav { color: #8a641d !important; font-weight: 700; }
.daily-seafood-section { margin: -10px 0 42px; overflow: hidden; border: 1px solid #d8d3c5; background: #ece8dd; }
.daily-seafood-heading { min-height: 126px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 22px; color: #fff; background: linear-gradient(135deg,#70553f,#403024); }
.daily-seafood-heading p { margin: 0 0 6px; color: #cfac64; font-size: 7px; font-weight: 700; letter-spacing: 2px; }
.daily-seafood-heading h2 { margin: 0 0 5px; font: 400 25px Georgia,"Songti SC",serif; letter-spacing: 2px; }
.daily-seafood-heading > div > span { color: rgba(255,255,255,.56); font-size: 9px; }
.daily-seafood-status { min-width: 78px; display: grid; justify-items: center; padding-left: 15px; border-left: 1px solid rgba(255,255,255,.14); }
.daily-seafood-status b { color: #dfc17e; font: 35px Georgia,serif; }
.daily-seafood-status small { color: rgba(255,255,255,.7); font-size: 8px; }
.daily-seafood-status em { margin-top: 8px; color: rgba(255,255,255,.4); font-size: 6px; font-style: normal; white-space: nowrap; }
.daily-seafood-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 10px; }
.seafood-display-card { min-width: 0; position: relative; overflow: hidden; background: #fff; }
.seafood-display-card.has-image { grid-row: span 2; }
.seafood-display-image { width: 100%; height: 132px; position: relative; padding: 0; overflow: hidden; border: 0; background: #d8d6ce; cursor: zoom-in; }
.seafood-display-image img { width: 100%; height: 100%; object-fit: cover; transition: .25s; }
.seafood-display-image:hover img { transform: scale(1.025); }
.seafood-display-image span { position: absolute; right: 7px; bottom: 7px; padding: 4px 6px; color: #fff; background: rgba(67,45,31,.84); font-size: 7px; }
.seafood-display-copy { padding: 13px 12px 14px; }
.seafood-display-copy small { color: #ad8b4d; font-size: 6px; font-weight: 700; letter-spacing: 1.4px; }
.seafood-display-copy h3 { margin: 4px 0 5px; color: #3b3028; font: 500 17px Georgia,"Songti SC",serif; }
.seafood-display-copy p { margin: 0; color: #777c78; font-size: 8px; line-height: 1.6; }
.seafood-display-card.text-only { min-height: 112px; display: grid; grid-template-columns: 42px 1fr; align-items: center; padding: 8px 5px 8px 3px; border-left: 3px solid #b99855; background: #fdfcf8; }
.seafood-display-card.text-only .seafood-display-copy { padding: 8px 8px 8px 0; }
.seafood-display-card.text-only h3 { font-size: 16px; }
.seafood-text-mark { align-self: stretch; display: grid; align-content: center; justify-items: center; gap: 8px; color: #b99855; }
.seafood-text-mark span { font: 12px Georgia,serif; }
.seafood-text-mark i { width: 1px; height: 20px; background: #d9c99f; }
.daily-seafood-note { margin: 0; padding: 11px 15px 13px; color: #887f6d; border-top: 1px solid #d8d3c5; text-align: center; font-size: 7px; letter-spacing: .5px; }
.daily-seafood-sheet-link { color: #8a641d; background: #fffcf4 !important; }
.daily-recommended-nav { color: #9b5747 !important; font-weight: 700; }
.daily-recommended-section { border-color: #ddc8bb; background: #efe5dd; }
.daily-recommended-heading { background: linear-gradient(135deg,#9b6655,#68443a); }
.daily-recommended-heading p { color: #f1cdb4; }
.daily-recommended-grid .recommended-display-card.text-only { border-left-color: #b57962; background: #fffaf7; }
.daily-recommended-grid .seafood-text-mark { color: #ad6e58; }
.daily-recommended-sheet-link { color: #9b5747; background: #fff7f3 !important; }

.maintenance-login-dialog { width: min(390px,calc(100vw - 28px)); padding: 30px 30px 27px; color: var(--ink); border: 0; background: #fff; box-shadow: 0 28px 80px rgba(5,32,25,.32); }
.maintenance-login-dialog::backdrop { background: rgba(9,35,29,.66); backdrop-filter: blur(5px); }
.maintenance-login-dialog .dialog-close { position: absolute; top: 10px; right: 12px; color: #758078; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.maintenance-login-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; color: #f5e5bd; border: 1px solid #b99654; background: var(--green); font: 20px Georgia,"Songti SC",serif; }
.maintenance-login-dialog h2 { margin: 6px 0 8px; font: 400 27px Georgia,"Songti SC",serif; }
.maintenance-login-dialog > p:not(.eyebrow) { margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.maintenance-login-dialog form,.maintenance-login-dialog label { display: grid; gap: 7px; }
.maintenance-login-dialog label span { color: #62564c; font-size: 11px; font-weight: 600; }
.maintenance-login-dialog input[type="password"] { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); outline: 0; font-size: 17px; letter-spacing: 3px; }
.maintenance-login-dialog input[type="password"]:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(139,108,80,.1); }
.maintenance-login-dialog .btn { width: 100%; margin-top: 3px; }
.maintenance-login-error { min-height: 18px; margin: 0; color: #b44b43; font-size: 10px; }
.seafood-maintain-link { font: inherit; cursor: pointer; }
.admin-seafood-library { margin-top: 0; }

/* Internal daily seafood maintenance */
.maintenance-back { display: block; margin-top: 21px; color: var(--muted); text-align: center; font-size: 11px; }
.seafood-maintenance-body { min-height: 100vh; background: #f3f1eb; }
.seafood-maintenance-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px max(24px,calc((100vw - 1240px)/2)); color: #fff; background: var(--green); }
.seafood-maintenance-header .public-library-brand strong { color: #fff; }
.seafood-header-actions { display: flex; align-items: center; gap: 8px; }
.seafood-header-actions form { margin: 0; }
.seafood-header-actions .outline-button { min-height: 36px; color: #fff; border-color: rgba(255,255,255,.25); background: transparent; font-size: 11px; }
.seafood-maintenance-main { max-width: 1240px; margin: auto; padding: 34px 28px 80px; }
.maintenance-flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.maintenance-flashes .flash { position: static; }
.seafood-maintenance-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.seafood-maintenance-hero h1 { margin: 6px 0 7px; font: 400 clamp(28px,4vw,44px)/1.2 Georgia,"Songti SC",serif; }
.seafood-maintenance-hero > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.scheme-jump { min-width: 280px; display: grid; gap: 7px; color: #62564c; font-size: 12px; font-weight: 600; }
.scheme-jump select { width: 100%; height: 44px; padding: 0 35px 0 12px; color: var(--ink); border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 400; }
.daily-selection-panel,.seafood-library-panel { margin-top: 20px; padding: 24px; border: 1px solid var(--line); background: #fff; }
.selection-search-field { min-height: 48px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 10px; margin: 0 0 16px; padding: 0 14px; border: 1px solid var(--line); background: #faf9f6; }
.selection-search-field > span { color: var(--gold); font-size: 20px; }
.selection-search-field input { width: 100%; height: 46px; padding: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 14px; }
.selection-search-field input::placeholder { color: #948a82; opacity: 1; }
.selection-search-field small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.seafood-select-card[hidden],.selection-search-empty[hidden] { display: none; }
.seafood-library-row[hidden] { display: none; }
.selection-search-empty { grid-column: 1 / -1; min-height: 190px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); text-align: center; border: 1px dashed var(--line); background: #faf9f6; }
.selection-search-empty > span { color: var(--gold); font-size: 28px; }
.selection-search-empty h3 { margin: 0; color: var(--ink); font: 500 20px Georgia,"Songti SC",serif; }
.selection-search-empty p { margin: 0; font-size: 11px; }
.daily-selection-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; padding-bottom: 17px; border-bottom: 1px solid #eee; }
.daily-selection-state { display: flex; align-items: center; gap: 11px; }
.daily-selection-state strong,.daily-selection-state small { display: block; }
.daily-selection-state strong { font-size: 14px; }
.daily-selection-state strong b { color: var(--gold); font: 25px Georgia,serif; }
.daily-selection-state small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.seafood-select-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.seafood-select-card { min-width: 0; position: relative; overflow: hidden; border: 1px solid var(--line); background: #fafaf7; cursor: pointer; transition: .17s; }
.seafood-select-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.seafood-select-card > input { position: absolute; opacity: 0; pointer-events: none; }
.seafood-select-card > img { width: 100%; height: 125px; object-fit: cover; filter: grayscale(.65); opacity: .75; transition: .2s; }
.seafood-select-placeholder { height: 125px; display: grid; place-items: center; color: #b8aa8c; background: linear-gradient(135deg,#eeece5,#f8f6ef); font: 30px Georgia,serif; }
.seafood-select-card > div { min-height: 93px; padding: 13px; }
.seafood-select-card strong,.seafood-select-card small,.seafood-select-card em { display: block; }
.seafood-select-card strong { font: 500 17px Georgia,"Songti SC",serif; }
.seafood-select-card small { min-height: 34px; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.seafood-select-card em { margin-top: 6px; color: #8f7449; font-size: 10px; font-style: normal; }
.seafood-select-check { width: 28px; height: 28px; position: absolute; top: 8px; right: 8px; z-index: 2; display: grid; place-items: center; color: transparent; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(72,49,34,.4); }
.seafood-select-card > input:checked ~ .seafood-select-check { color: #fff; border-color: var(--green); background: var(--green); }
.seafood-select-card:has(> input:checked) { border-color: #a27d5d; box-shadow: inset 0 0 0 2px #a27d5d; background: #faf5ef; }
.seafood-select-card > input:checked ~ img { filter: none; opacity: 1; }
.daily-save-bar { position: sticky; bottom: 10px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 13px 15px; border: 1px solid #ded0c4; background: rgba(250,247,243,.96); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.daily-save-bar span { color: var(--muted); font-size: 12px; }
.seafood-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.seafood-panel-heading h2 { margin: 4px 0; font: 400 27px Georgia,"Songti SC",serif; }
.seafood-panel-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.seafood-panel-heading > span { color: var(--gold); font: 18px Georgia,serif; }
.recommended-store-filter { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: -2px 0 22px; padding: 14px 16px; border: 1px solid #e6d8cc; background: #fcfaf7; }
.recommended-store-filter label { display: grid; gap: 6px; min-width: 260px; color: #62564c; font-size: 11px; font-weight: 600; }
.recommended-store-filter select { width: 100%; height: 42px; padding: 0 36px 0 12px; color: var(--ink); border: 1px solid var(--line); background: #fff; font-size: 14px; }
.recommended-store-filter small { margin-bottom: 11px; color: var(--muted); font-size: 12px; }
.seafood-add-form { display: grid; grid-template-columns: 190px minmax(240px,1fr) 230px auto; align-items: end; gap: 12px; padding: 18px; margin-bottom: 18px; background: #f7f1eb; }
.seafood-add-form label,.seafood-library-row label { display: grid; gap: 6px; color: #62564c; font-size: 11px; font-weight: 600; line-height: 1.35; }
.seafood-add-form input,.seafood-library-row input[type="text"],.seafood-library-row input[type="number"],.seafood-library-row input:not([type]) { width: 100%; height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 400; }
.seafood-add-form input::placeholder,.seafood-library-row input::placeholder { color: #9a897a; opacity: 1; }
.seafood-add-form input[type="file"],.seafood-library-row input[type="file"] { width: 100%; height: 44px; padding: 9px 8px; overflow: hidden; color: var(--ink); border: 1px solid var(--line); background: #fff; font-size: 11px; font-weight: 400; }
.seafood-add-form .btn { min-height: 44px; }
.recommended-store-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.recommended-store-picker legend { margin-bottom: 8px; color: #62564c; font-size: 11px; font-weight: 600; }
.recommended-store-picker > div { display: flex; flex-wrap: wrap; gap: 7px; }
.recommended-store-picker > div > label { position: relative; display: block; cursor: pointer; }
.recommended-store-picker input { position: absolute; width: 1px!important; height: 1px!important; opacity: 0; pointer-events: none; }
.recommended-store-picker label span { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 12px; border: 1px solid #d9c9bb; background: #fff; color: #6f5a49; font-size: 12px; font-weight: 500; transition: .16s ease; }
.recommended-store-picker label:hover span { border-color: #a88465; }
.recommended-store-picker input:checked + span { border-color: #8b6c50; background: #8b6c50; color: #fff; box-shadow: 0 4px 10px rgba(139,108,80,.16); }
.recommended-store-picker p { margin: 0; color: #a04f43; font-size: 12px; }
.recommended-store-picker-add { grid-column: 1 / -1; padding-top: 2px; }
.seafood-library-list { display: grid; gap: 7px; }
.seafood-library-row { display: grid; grid-template-columns: 72px 160px minmax(230px,1fr) 80px 155px 60px 82px 105px; align-items: center; gap: 10px; padding: 11px; border: 1px solid #e7e7e1; background: #fff; }
.seafood-library-row.inactive { opacity: .55; background: #f5f5f3; }
.seafood-library-thumb { width: 72px; height: 58px; overflow: hidden; background: #efeee9; }
.seafood-library-thumb img { width: 100%; height: 100%; object-fit: cover; }
.seafood-library-thumb span { height: 100%; display: grid; place-items: center; color: #81766d; text-align: center; font-size: 10px; }
.seafood-active-switch,.seafood-remove-image { justify-items: center; text-align: center; }
.seafood-active-switch input,.seafood-remove-image input { width: 16px; height: 16px; accent-color: var(--green); }
.seafood-row-buttons { display: grid; gap: 5px; }
.seafood-row-buttons .outline-button { min-height: 38px; padding: 0 10px; font-size: 12px; }
.seafood-row-buttons .danger-link { min-height: 28px; font-size: 11px; }
.recommended-library-panel .seafood-library-row { grid-template-columns: 72px 160px minmax(230px,1fr) 80px 155px 60px 82px 105px; }
.recommended-row-stores { grid-column: 2 / -1; padding: 9px 0 2px; border-top: 1px dashed #e6d8cc; }
.maintenance-store-name { color: #8b6c50; font-weight: 700; }
.recommend-date-row { display: flex; align-items: end; gap: 16px; margin-bottom: 18px; padding: 15px; border: 1px solid #eadbd0; background: #fff9f5; }
.recommend-date-row label { display: grid; gap: 6px; color: #62564c; font-size: 11px; font-weight: 600; }
.recommend-date-row input { width: 190px; height: 44px; padding: 0 12px; color: var(--ink); border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 400; }
.recommend-date-row p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.recommend-expiry-badge { padding: 8px 11px; color: #8b4f3f; border: 1px solid #e3c8bd; background: #fff4ef; font-size: 11px; }

.portal-user-create { margin-bottom: 20px; padding: 23px; border: 1px solid var(--line); background: #fff; }
.portal-user-form,.portal-user-card { display: grid; gap: 15px; }
.portal-user-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
.portal-user-form .scheme-access-fieldset,.portal-user-form .btn { grid-column: 1 / -1; }
.portal-user-list { display: grid; gap: 13px; }
.portal-user-card { padding: 20px; border: 1px solid var(--line); background: #fff; }
.portal-user-card.inactive { opacity: .62; background: #f3f1ee; }
.portal-user-heading,.portal-user-heading > div,.portal-user-actions { display: flex; align-items: center; }
.portal-user-heading { justify-content: space-between; gap: 16px; }
.portal-user-heading > div { gap: 11px; }
.portal-user-heading strong,.portal-user-heading small { display: block; }
.portal-user-heading small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.portal-user-avatar { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--green); }
.portal-user-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.scheme-access-fieldset { min-width: 0; padding: 13px; border: 1px solid var(--line); }
.scheme-access-fieldset legend { padding: 0 7px; color: #62564c; font-size: 12px; font-weight: 600; }
.scheme-access-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.scheme-access-grid label { min-width: 0; min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 10px 11px; color: var(--ink); border: 1px solid #e4d8ce; background: #fbf8f5; font-size: 12px; }
.scheme-access-grid label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scheme-access-grid input { accent-color: var(--green); }
.portal-user-actions { justify-content: flex-end; gap: 15px; }

@media (max-width: 1420px) {
  .seafood-library-row,
  .recommended-library-panel .seafood-library-row { grid-template-columns: 65px 128px minmax(170px,1fr) 72px 120px 52px 66px 86px; gap: 7px; }
}

@media (max-width: 1200px) {
  .content { padding-right: 28px; padding-left: 28px; }
  .studio-grid { grid-template-columns: minmax(410px,1fr) 335px; gap: 18px; }
  .phone-frame { height: 620px; }
  .directory-row.image-editor-row { grid-template-columns: 22px 48px 25px minmax(100px,1fr) 66px 44px 20px; gap: 7px; }
  .editor-image-preview { width: 48px; }
  .public-scheme-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .seafood-select-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 1190px) {
  .seafood-add-form { grid-template-columns: 1fr 1fr; }
  .seafood-library-row { grid-template-columns: 70px 1fr 1.4fr; }
  .recommended-library-panel .seafood-library-row { grid-template-columns: 70px 1fr 1.4fr; }
  .seafood-replace-field { grid-column: 2 / -1; }
  .seafood-active-switch,.seafood-remove-image { justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; }
  .seafood-row-buttons { grid-column: 2 / -1; grid-template-columns: auto auto; justify-content: end; }
}

@media (max-width: 1100px) {
  .dashboard-toolbar { grid-template-columns: 1fr; }
  .filter-chips { overflow-x: auto; }
  .studio-grid { grid-template-columns: 1fr; }
  .live-preview-panel { position: static; width: min(405px,100%); margin: 0 auto; }
  .phone-frame { height: 700px; }
}

@media (max-width: 680px) {
  .lan-share-card { grid-template-columns: 1fr; }
  .lan-share-card code { width: 100%; }
  .public-library-nav, .public-library-intro, .public-library-main { padding-right: 17px; padding-left: 17px; }
  .public-library-nav { min-height: 74px; }
  .public-library-nav { align-items: flex-start; flex-direction: column; }
  .public-account-actions { width: 100%; flex-wrap: wrap; }
  .public-account-actions > span { margin-right: auto; }
  .public-library-nav .outline-button { min-height: 35px; padding: 0 10px; font-size: 10px; }
  .public-library-intro { padding-top: 39px; padding-bottom: 43px; }
  .public-library-toolbar { align-items: stretch; flex-direction: column; }
  .public-library-toolbar .search-field { width: 100%; min-width: 0; }
  .public-scheme-grid { grid-template-columns: 1fr; }
  .public-scheme-cover { height: 210px; }
  .public-scheme-actions { grid-template-columns: repeat(2,1fr); }
  .public-scheme-actions > * { border-bottom: 1px solid var(--line); }
  .public-scheme-actions > *:nth-child(even) { border-right: 0; }
  .public-scheme-actions > *:nth-last-child(-n+2) { border-bottom: 0; }
  .public-scheme-actions > *:last-child { grid-column: auto; border-right: 0; }
  .daily-seafood-heading { padding: 20px 16px; }
  .daily-seafood-heading h2 { font-size: 22px; }
  .daily-seafood-grid { gap: 6px; padding: 7px; }
  .seafood-display-image { height: 112px; }
  .seafood-display-copy { padding: 11px 9px; }
  .seafood-display-copy h3 { font-size: 15px; }
  .seafood-display-card.text-only { min-height: 104px; grid-template-columns: 34px 1fr; }
  .seafood-maintenance-header { align-items: flex-start; padding: 12px 15px; }
  .seafood-maintenance-header .public-library-brand small { display: none; }
  .seafood-header-actions { align-items: stretch; flex-direction: column; }
  .seafood-header-actions .outline-button { width: 100%; min-height: 31px; padding: 0 8px; font-size: 9px; }
  .seafood-maintenance-main { padding: 25px 13px 60px; }
  .seafood-maintenance-hero { align-items: stretch; flex-direction: column; gap: 17px; }
  .scheme-jump { min-width: 0; }
  .daily-selection-panel,.seafood-library-panel { padding: 15px 11px; }
  .daily-selection-toolbar { align-items: stretch; flex-direction: column; }
  .daily-selection-toolbar form,.daily-selection-toolbar button { width: 100%; }
  .seafood-select-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .seafood-select-card > img,.seafood-select-placeholder { height: 105px; }
  .seafood-select-card > div { min-height: 89px; padding: 10px; }
  .seafood-select-card strong { font-size: 15px; }
  .daily-save-bar { align-items: stretch; flex-direction: column; }
  .seafood-add-form { grid-template-columns: 1fr; }
  .seafood-library-row { grid-template-columns: 62px 1fr; padding: 8px; }
  .recommended-library-panel .seafood-library-row { grid-template-columns: 62px 1fr; }
  .seafood-description-field,.seafood-replace-field,.seafood-row-buttons { grid-column: 1 / -1; }
  .recommended-row-stores { grid-column: 1 / -1; }
  .recommended-store-filter { align-items: stretch; flex-direction: column; }
  .recommended-store-filter label { min-width: 0; }
  .recommended-store-filter small { margin: 0; }
  .seafood-active-switch,.seafood-remove-image { grid-column: auto; }
  .seafood-row-buttons { grid-template-columns: 1fr auto; }
  .recommend-date-row { align-items: stretch; flex-direction: column; }
  .recommend-date-row input { width: 100%; }
  .portal-user-form,.portal-user-fields,.scheme-access-grid { grid-template-columns: 1fr; }
  .studio-heading { align-items: stretch; flex-direction: column; }
  .network-mode { min-width: 0; }
  .studio-card { padding: 18px 14px; }
  .studio-form-grid { grid-template-columns: 1fr; }
  .studio-name, .studio-duration, .studio-lifetime { grid-column: auto; }
  .directory-summary { align-items: flex-start; flex-wrap: wrap; gap: 7px 14px; }
  .directory-summary em { width: 100%; margin-left: 0; }
  .directory-row.image-editor-row { grid-template-columns: 20px 48px 23px 1fr 38px 20px; }
  .directory-row .file-weight { display: none; }
  .compression-card { grid-template-columns: 40px 1fr; }
  .preview-scale-control { grid-column: 1 / -1; padding: 12px 0 0; border: 0; border-top: 1px solid #dfd0c4; }
  .dashboard-grid .scheme-cover { height: 210px; }
}
