/* Manabium: replacement layout, preserving functional states in style.css. */
:root { --ink:#243b37; --ink-soft:#65756e; --lake:#89afa3; --lake-dark:#244e43; --lake-pale:#edf2eb; --foam:#fafbf6; --coral:#bc775e; --coral-dark:#a05e47; --line:#dce0d7; --shadow:0 14px 50px #203d3220; --shadow-small:0 3px 16px #203d3210; --radius-xl:18px; --radius-lg:12px; --radius-md:8px; --nav-height:76px; }
body,.app-shell { background:#f6f5ef; color:var(--ink); }
.ambient { display:none; }
[hidden] { display:none!important; }
button,a { touch-action:manipulation; }
button:focus-visible,a:focus-visible,summary:focus-visible { outline:2px solid #396a59; outline-offset:4px; }
.session-gate { min-height:100dvh; display:grid; place-content:center; justify-items:center; gap:16px; color:#49685a; background:#f4f3eb; }
.session-gate[hidden] { display:none; }
.session-gate img { width:58px; height:58px; border-radius:18px; }
.session-gate p { display:flex; align-items:center; gap:10px; font-size:14px; }
.app-shell .app-header { position:fixed; inset:0 0 auto; width:100%; height:var(--nav-height); min-height:0; display:flex; flex-direction:row; justify-content:space-between; align-items:center; gap:24px; padding:0 36px; background:#fafaf5; border:0; border-bottom:1px solid var(--line); border-radius:0; box-shadow:none; backdrop-filter:none; z-index:50; }
.app-header .brand { display:flex; flex-direction:row; align-items:center; gap:10px; text-align:left; font-size:24px; flex:none; }
.app-header .brand-mark { width:36px; height:36px; padding:0; border:0; background:transparent; border-radius:0; box-shadow:none; }
.brand-word { font-weight:500; letter-spacing:-.04em; }
.app-header .desktop-nav { display:flex; flex-direction:row; gap:7px; margin:0; padding:0; height:100%; align-items:center; }
.app-header .nav-link { display:flex; flex-direction:row; min-height:42px; padding:10px 17px; border-radius:30px; gap:8px; font-size:13px; font-weight:500; color:#6a7970; }
.nav-link i { font-size:20px; }
.app-header .nav-link.active { background:#244e43; color:#fff; box-shadow:none; }
.app-header .nav-link:hover:not(.active) { background:#e8eee5; color:#244e43; transform:none; }
.nav-link::after,.nav-link::before { display:none; }
.app-header .header-actions { display:flex; margin:0; align-items:center; justify-content:flex-end; }
.app-header .user-fish-button { width:42px; height:42px; padding:7px; border:1px solid #d5ded3; border-radius:50%; background:#e9eee4; box-shadow:none; }
.app-shell .page-container,#appView[data-active-page="aquarium"] .page-container { width:100%; min-height:100dvh; margin:0; padding:var(--nav-height) 0 0; }
.app-shell .mobile-nav { display:none; }
.page:not(#aquariumPage) { width:min(calc(100% - 112px),1120px); margin:0 auto; padding:58px 0 80px; }
.eyebrow { color:#65766a; font-size:10px; font-weight:700; letter-spacing:.18em; }
.page-intro { margin-bottom:38px; align-items:flex-end; gap:24px; }
.page-intro h1,.library-hero h1 { color:#243b37; font:500 clamp(32px,3.5vw,48px)/1.45 var(--font-display); letter-spacing:.01em; margin:10px 0 14px; }
.page-intro p:last-child,.library-hero p:last-child { color:#65756e; font-size:14px; line-height:1.9; margin-bottom:0; max-width:44em; }
.button,.library-write-button,.lake-message-button { min-height:46px; padding:12px 22px; border-radius:8px; font-size:14px; font-weight:700; box-shadow:none; letter-spacing:.02em; }
.button-primary,.library-write-button,.lake-message-button { background:#244e43; color:#fff; border:1px solid #244e43; }
.button-primary:hover,.library-write-button:hover,.lake-message-button:hover { background:#173b32; box-shadow:none; transform:none; }
.button-ghost { background:transparent; color:#365d4e; border:1px solid #cbd7c9; }
.button-ghost:hover { background:#e8eee4; }
.button:disabled { opacity:.5; }

/* The lake occupies the full width. Controls do not take space from its surface. */
#appView[data-active-page="aquarium"] #aquariumPage { position:relative; width:100%; max-width:none; min-height:0; height:auto; margin:0; padding:0; overflow:visible; background:#f6f5ef; }
.aquarium-community-header { width:100%; max-width:none; min-height:88px; margin:0; padding:16px 36px; display:flex; flex-direction:row; align-items:center; justify-content:space-between; gap:24px; }
.aquarium-community-header>div:first-child { display:flex; align-items:baseline; gap:20px; }
.aquarium-community-header .eyebrow { display:none; }
.aquarium-community-header h1 { margin:0; max-width:none; font:500 30px/1.4 var(--font-display); letter-spacing:.06em; white-space:nowrap; }
.aquarium-community-header>div:first-child>p:last-child { margin:0; font-size:13px; color:#667970; }
.aquarium-live-counts { display:flex; gap:20px; padding:0; width:auto; }
.aquarium-live-counts>div { min-height:0; flex:none; display:flex; align-items:center; gap:6px; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; backdrop-filter:none; }
.aquarium-live-counts strong { font:500 23px/1 var(--font-body); color:#244e43; }
.aquarium-live-counts span:last-child { font-size:11px; white-space:nowrap; font-weight:500; }
.aquarium-live-counts>div+div { border-left:1px solid #d4ddd2; padding-left:20px; }
.presence-dot,.status-orb { width:6px; height:6px; box-shadow:none; }
#appView[data-active-page="aquarium"] #aquariumPage .lake-card { position:relative; inset:auto; width:100%; max-width:none; margin:0; height:auto; background:#f7f9f3; border:0; border-radius:0; box-shadow:none; overflow:visible; }
#appView[data-active-page="aquarium"] #aquariumPage .lake-surface { position:relative; inset:auto; width:100%; height:max(590px,calc(100svh - 240px)); min-height:590px; border-radius:0; background-position:center; background-size:cover; overflow:hidden; }
#appView[data-active-page="aquarium"] #aquariumPage .lake-toolbar { position:absolute; inset:20px 24px auto; width:auto; min-height:0; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; padding:0; background:none; border:0; border-radius:0; z-index:12; pointer-events:none; }
#appView[data-active-page="aquarium"] #aquariumPage .lake-toolbar>div { width:auto; pointer-events:auto; }
.lake-toolbar>div:first-child { padding:10px 16px; background:#f9fcf4e8; border:1px solid #ffffff80; border-radius:9px; }
#aquariumPage .lake-toolbar #lakeTitle { margin:0; font:500 13px/1.5 var(--font-body); }
.presence-connection-status { font-size:10px; color:#4d766a; margin:0 0 3px; }
#appView[data-active-page="aquarium"] #aquariumPage .lake-toolbar>.lake-toolbar-actions { margin-left:auto; align-items:center; gap:8px; }
.icon-text-button { min-height:43px; padding:10px 14px; background:#fafcf6ed; color:#3d6153; border:1px solid #e1e8df; border-radius:8px; box-shadow:none; font-size:12px; }
.reply-inbox-button { min-height:43px; padding:6px 12px; border-radius:8px; background:#f5f6de; border:1px solid #e4e6ce; gap:9px; box-shadow:0 2px 12px #2642380a; }
.reply-inbox-plant { width:32px; height:32px; }
.reply-inbox-copy small { font-size:10px; }
.reply-inbox-copy strong { font-size:12px; }
#replyLily { display:none!important; }
.fish-label { border-radius:8px; color:#284a40; background:#fffff7ed; border:1px solid #ffffffb8; box-shadow:0 3px 10px #294d3f0a; }
.lake-bottom-bar { position:sticky; bottom:0; z-index:25; display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:82px; padding:14px 30px; background:#fafaf5f7; border-bottom:1px solid #dce3d8; }
.aquarium-control-deck { position:relative; z-index:20; width:auto; max-width:none; display:flex; align-items:center; gap:14px; padding:0; margin:0; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
.aquarium-status-control { display:flex; align-items:center; gap:12px; }
.aquarium-status-control h2 { font:500 11px var(--font-body); color:#788378; white-space:nowrap; margin:0; }
.aquarium-status-options { display:flex; gap:3px; padding:4px; background:#ecefe5; border-radius:8px; }
.status-choice { min-width:0; min-height:36px; padding:8px 12px; border:0; background:transparent; color:#667564; font-size:12px; box-shadow:none; border-radius:5px; }
.status-choice.active { background:#fffef8; color:#2b5543; box-shadow:0 2px 5px #243b370c; transform:none; }
.status-choice:hover { transform:none; box-shadow:none; background:#f5f6ee; }
.aquarium-participation-control { display:block; padding:0; position:relative; }
.aquarium-settings { margin:0; padding:0; border:0; }
.aquarium-settings summary { display:flex; align-items:center; gap:8px; min-height:44px; cursor:pointer; list-style:none; font-size:0; width:40px; justify-content:center; }
.aquarium-settings summary i { font-size:21px; }
.aquarium-settings[open] { position:absolute; left:0; bottom:-22px; width:310px; max-width:calc(100vw - 32px); background:#fffef8; padding:14px 18px 22px; border:1px solid #d5dece; border-radius:12px; box-shadow:var(--shadow); z-index:40; }
.aquarium-settings[open] summary { width:100%; font-size:13px; justify-content:flex-start; border-bottom:1px solid #dde3d6; margin-bottom:12px; }
.aquarium-settings-close { display:none; }
.aquarium-auto-join-note { display:block; font-size:12px; color:#66776b; padding:0; background:transparent; border:0; border-radius:0; margin-bottom:12px; }
.aquarium-message-dock { position:static; width:auto; min-height:0; margin:0; display:flex; align-items:center; gap:18px; padding:0; border:0; background:transparent; }
.aquarium-message-dock-copy { display:none; }
.aquarium-message-dock-actions { display:flex; gap:8px; }
.shared-bottles-button { min-height:46px; padding:10px 14px; background:transparent; border:1px solid #d5dfd0; color:#496653; border-radius:8px; box-shadow:none; font-size:12px; }
.lake-help { padding:0 30px; background:#f6f5ef; border:0; }
.lake-help>summary { display:flex; align-items:center; gap:7px; cursor:pointer; min-height:48px; list-style:none; font-size:11px; color:#6f7e70; }
.lake-help>summary::after { content:'+'; font-size:16px; margin-left:4px; }
.lake-help[open]>summary::after { content:'−'; }
.lake-help .lake-community-guide { display:grid; grid-template-columns:1fr 1fr; padding:12px 0; gap:26px; background:transparent; border:0; }
.lake-help .lake-community-guide p { padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
.lake-community-guide strong { font-size:13px; }
.lake-community-guide small,.lake-help-note { font-size:12px; color:#67796b; }
.lake-help-note { margin:0; padding:12px 0 22px; }
#libraryDoorTip { opacity:0; pointer-events:none; animation:none; }
#libraryDoor:hover #libraryDoorTip,#libraryDoor:focus-visible #libraryDoorTip { opacity:1; }
.library-door { right:24px; bottom:42px; width:auto; height:auto; min-height:64px; display:flex; align-items:center; gap:10px; padding:12px 16px; border:1px solid #ffffff91; border-radius:8px; color:#fcfff4; background:#305847d9; filter:none; box-shadow:0 4px 20px #234d3e16; }
.library-door::before,.library-door::after,.library-door-stones,.library-door-reeds,.library-door-glow { display:none; }
.library-door .library-door-panel { position:static; width:28px; height:32px; border:0; border-radius:0; background:none; box-shadow:none; display:grid; place-items:center; }
.library-door .library-door-panel i { margin:0; font-size:26px; text-shadow:none; }
.library-door .library-door-label { position:static; display:block; min-width:0; padding:0; background:none; border:0; border-radius:0; box-shadow:none; color:inherit; }
.library-door .library-door-label strong { font-size:13px; }
.library-door .library-door-label small { display:block; font-size:10px; color:#e1ecda; margin-top:4px; }
.library-door:hover,.library-door:focus-visible { background:#244838; filter:none; transform:translateY(-2px); }
#appView[data-active-page="aquarium"] #aquariumPage .fish-drawer { position:fixed; inset:auto 24px 24px auto; z-index:80; width:min(400px,calc(100vw - 32px)); max-height:calc(100dvh - 110px); overflow-y:auto; border:1px solid #d6dfd2; border-radius:14px; padding:28px; background:#fffef8; box-shadow:0 16px 70px #16392b29; }
.drawer-name { font-size:24px; }
.fish-drawer .drawer-profile-content { min-width:0; }
#appView[data-active-page="aquarium"] #aquariumPage .fish-drawer { display:block; }
.fish-drawer .drawer-fish { width:70px; height:44px; object-fit:contain; margin:0 0 12px; }
.drawer-meta,.drawer-bio { font-size:14px; }
.drawer-reaction-buttons button { min-height:44px; border-radius:6px; background:#edf2e8; font-size:12px; }

/* Bottles: a correspondence, not a wall of cards. */
.board-intro { padding-bottom:32px; border-bottom:1px solid #d4dbcf; }
.board-tools { display:flex; flex-wrap:wrap; gap:20px; margin-bottom:22px; align-items:center; }
.post-search { flex:1 1 320px; }
.post-search input,.library-search input { height:50px; background:#fffef9; border:1px solid #d4ddd0; border-radius:8px; box-shadow:none; font-size:14px; }
.post-ownership-filters { display:flex; gap:0; padding:0; border:0; background:transparent; border-radius:0; }
.ownership-chip { min-height:46px; padding:10px 17px; background:transparent; color:#68786e; border:0; border-radius:0; font-size:13px; box-shadow:none; }
.ownership-chip.active { background:transparent; color:#244e43; box-shadow:inset 0 -2px #244e43; }
.category-filters { display:flex; gap:8px; padding:0 0 20px; border-bottom:1px solid #dce2d7; background:transparent; border-radius:0; }
.category-chip { min-height:38px; padding:8px 18px; border-radius:30px; border:1px solid #d5ded0; background:transparent; color:#65766a; font-size:12px; box-shadow:none; }
.category-chip.active { background:#244e43; color:#fff; border-color:#244e43; box-shadow:none; }
.post-results-summary { margin:20px 0 15px; font-size:12px; color:#798575; }
.post-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 34px; }
.post-card,.post-card.is-own-post { position:relative; min-height:0; padding:29px 0 26px; background:transparent; border:0; border-bottom:1px solid #cfdacf; border-radius:0; box-shadow:none; }
.post-card::before,.post-card::after,.post-card.is-own-post::before { display:none; }
.post-card:hover { transform:none; background:transparent; box-shadow:none; border-color:#8fa88f; }
.post-card h2 { margin:16px 0 12px; font:700 21px/1.65 var(--font-body); letter-spacing:-.01em; color:#273f36; }
.post-excerpt { font-size:14px; line-height:1.9; color:#65776a; -webkit-line-clamp:3; }
.post-badge,.post-badge.type,.post-badge.own,.post-badge.link { border:0; padding:4px 8px; border-radius:3px; font-size:10px; font-weight:500; }
.post-badge.own { background:#e4eadb; color:#4f6847; }
.post-field-tags { gap:6px; margin-bottom:18px; }
.post-field-tags button,.post-field-tags span { border-radius:3px; padding:3px 6px; background:#e9eee3; color:#687c5d; font-size:10px; }
.post-footer { border:0; padding-top:0; }
.post-meta { font-size:11px; color:#718170; }
.bookmark-button,.like-button { min-width:40px; min-height:40px; font-size:12px; border-radius:6px; box-shadow:none; }
.bookmark-button.saved { color:#fff; background:#244e43; }
.empty-card,.library-empty { padding:44px 20px; border:1px dashed #bdccb7; border-radius:8px; background:transparent; box-shadow:none; }
.empty-card p,.library-empty p { font-size:14px; }
.empty-card button,.library-empty button { margin-top:20px; }
.empty-action { display:grid; justify-items:start; gap:16px; }
.empty-action p { margin:0; }
.empty-action .button { min-height:42px; }

/* A reading room with covers, rather than another dashboard. */
.library-page::before,.library-hero::before,.library-hero::after,.library-bookcase { display:none; }
.library-hero { display:flex; align-items:flex-end; justify-content:space-between; min-height:0; padding:0 0 34px; margin-bottom:30px; border:0; border-bottom:1px solid #d4dbcf; border-radius:0; background:transparent; box-shadow:none; color:var(--ink); gap:26px; }
.library-hero .eyebrow { color:#65766a; }
.library-write-button { flex:none; }
.library-shelf-tabs { display:flex; width:100%; gap:0; padding:0; border-bottom:1px solid #d4dbcf; margin:0 0 24px; }
.library-shelf-tab { min-height:66px; min-width:0; flex:1; padding:12px 18px; background:transparent; color:#70816c; border:0; border-radius:0; box-shadow:none; gap:14px; }
.library-shelf-tab.active { background:transparent; color:#254e3e; box-shadow:inset 0 -3px #254e3e; }
.library-shelf-tab:hover { background:#ecefe5; transform:none; }
.shelf-tab-icon { width:auto; height:auto; background:transparent; color:inherit; }
.library-shelf-tab strong { font:700 14px var(--font-body); }
.library-shelf-tab small { font-size:11px; color:#7a8874; }
.library-tools { display:flex; flex-wrap:wrap; gap:16px; padding:0; border:0; border-radius:0; background:transparent; }
.library-search { width:100%; }
.note-type-filters { display:flex; flex-wrap:wrap; overflow:visible; gap:6px; }
.note-type-filters button { min-height:40px; padding:8px 14px; font-size:12px; font-weight:500; color:#607357; background:transparent; border:1px solid #ccd8c4; border-radius:6px; }
.note-type-filters button.active { color:#fff; background:#244e43; box-shadow:none; }
.library-shelf-heading { margin:36px 0 24px; }
.library-shelf-heading h2 { font:500 25px var(--font-display); }
.library-shelf-heading>p { font-size:12px; color:#72806a; }
.note-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px; padding:0 0 30px; background:transparent; border:0; border-radius:0; box-shadow:none; }
.note-open-button { min-height:340px; padding:28px 24px 25px 30px; border-radius:2px 8px 8px 2px; border:1px solid #d7ddcf; border-left:6px solid var(--note-accent); box-shadow:3px 4px 0 #e6e6d8; }
.note-open-button::before { display:none; }
.note-open-button:hover,.note-open-button:focus-visible { transform:translateY(-5px); box-shadow:4px 9px 0 #e3e4d5; }
.note-cover-mark { width:auto; height:38px; background:transparent; margin:0 0 22px; justify-content:flex-start; }
.note-cover-mark i { font-size:32px; }
.note-type-label { font-size:10px; }
.note-card h3 { font:500 22px/1.6 var(--font-display); color:#2b493c; }
.note-card-summary { font-size:13px; line-height:1.9; color:#6b7a64; }
.note-card-preview { border-radius:8px; }

/* Personal space, operations, forms. */
.profile-grid { grid-template-columns:1fr 1.4fr; gap:28px; }
.profile-card,.history-card { padding:30px; border:1px solid #d7dfd1; border-radius:12px; background:#fffef8; box-shadow:none; }
.profile-card::before,.profile-card::after,.history-card::before,.history-card::after { display:none; }
.user-profile-card { text-align:left; }
.my-fish { width:100px; margin:6px 0 24px; }
.profile-card h2,.history-card h2 { font:500 24px/1.5 var(--font-display); }
.history-grid { gap:28px; margin-top:28px; }
.history-item { border-radius:0; box-shadow:none; background:transparent; border-bottom:1px solid #e0e6d9; padding:18px 0; }
.stat-row strong { color:#244e43; }
.admin-range-form { border:1px solid #d7dfd1; border-radius:10px; background:#fffef8; box-shadow:none; }
.admin-error { display:flex; gap:16px; padding:24px; margin:22px 0; border:1px solid #dab598; border-radius:10px; background:#fff5eb; }
.admin-error>i { font-size:28px; flex:none; }
.admin-error h2 { font:700 18px/1.6 var(--font-body); }
.admin-error p { max-width:62em; overflow-wrap:anywhere; font-size:14px; }
.admin-panel,.admin-kpi { border-radius:10px; box-shadow:none; border-color:#d7dfd1; }
.modal { width:min(680px,calc(100% - 40px)); max-height:calc(100dvh - 64px); margin:auto; border:1px solid #d7dfd1; border-radius:16px; background:#fffef8; box-shadow:0 22px 90px #1c3f3330; }
.modal::backdrop,.auth-modal::backdrop { background:#20382e68; backdrop-filter:blur(5px); }
.modal>article,.modal>form { padding:32px; }
.modal-heading h2 { font:500 28px/1.5 var(--font-display); letter-spacing:0; }
.modal-heading p { color:#69796a; font-size:13px; }
.modal input,.modal select,.modal textarea,.onboarding-card input,.onboarding-card select { border:1px solid #ced8c7; border-radius:7px; background:#fffefa; box-shadow:none; }
.modal input:focus,.modal textarea:focus { border-color:#64846b; }
.modal label>span:first-child { font-size:13px; }
.modal-close,.drawer-close { width:40px; height:40px; border-radius:50%; background:#eef0e7; }
.detail-body,.note-detail-body { font-size:16px; line-height:2; color:#3f5547; }
#detailTitle,.note-detail-header h2 { font:500 28px/1.65 var(--font-display); }
.reply-item,.note-comment { border-radius:8px; background:#f4f5ed; border-color:#dce3d4; }
.reply-form textarea,.note-comment-form textarea { font-size:15px; }
.draft-hint { font-size:12px; color:#667660; padding:10px 12px; background:#eef2e5; border-radius:5px; }
.form-actions-sticky { position:sticky; z-index:6; bottom:-1px; margin:14px -4px -4px; padding:13px 4px calc(4px + env(safe-area-inset-bottom)); background:linear-gradient(180deg,#fffef800,#fffef8 18%); border-top:1px solid #dce3d8; }
.profile-form .form-actions-sticky,.auth-form .form-actions-sticky { display:block; }
.profile-form .form-actions-sticky .button,.auth-form .form-actions-sticky .button { width:100%; }
.composer-actions { display:flex; }
.lake-message-categories,.lake-message-options button,.post-external-link { border-radius:8px; }
.lake-message-options button { font-size:14px; }
.onboarding-card { border-radius:16px; background:#fffef8; box-shadow:var(--shadow); }

@media (max-width:1000px) and (min-width:761px) {
  .app-shell .app-header { padding:0 22px; gap:14px; }
  .app-header .brand { font-size:21px; }
  .app-header .nav-link { padding:10px 12px; gap:6px; font-size:12px; }
  .app-header .nav-link i { font-size:18px; }
  .aquarium-status-control>div:first-child { display:none; }
  .lake-bottom-bar { padding:12px 20px; }
  .shared-bottles-button { font-size:11px; padding:10px; }
  .lake-message-button { padding:12px 16px; }
  .note-grid { gap:18px; }
  .note-open-button { padding:22px 18px; }
  .note-card h3 { font-size:19px; }
}
@media (max-width:760px) {
  :root { --nav-height:58px; }
  .app-shell .app-header { height:var(--nav-height); min-height:var(--nav-height); padding:0 18px; }
  .app-header .brand { font-size:21px; gap:8px; }
  .app-header .brand-mark { width:28px; height:28px; }
  .app-header .user-fish-button { width:36px; height:36px; }
  .app-header .desktop-nav { display:none; }
  .app-shell .page-container,#appView[data-active-page="aquarium"] .page-container { margin:0; padding:var(--nav-height) 0 0; }
  .page:not(#aquariumPage) { width:auto; margin:0; padding:32px 20px calc(100px + env(safe-area-inset-bottom)); }
  .page-intro { flex-direction:column; align-items:flex-start; gap:20px; margin-bottom:24px; }
  .page-intro h1,.library-hero h1 { font-size:31px; margin:8px 0 10px; }
  .page-intro p:last-child,.library-hero p:last-child { font-size:13px; }
  .page-intro>.button { width:auto; }
  .app-shell .mobile-nav { position:fixed; inset:auto 0 0; display:flex; align-items:stretch; width:100%; height:calc(72px + env(safe-area-inset-bottom)); min-height:0; padding:6px 12px calc(6px + env(safe-area-inset-bottom)); border:0; border-top:1px solid #d3dfcf; border-radius:0; background:#fafbf5f7; backdrop-filter:blur(12px); box-shadow:none; z-index:60; }
  .mobile-nav-link { flex:1; min-width:0; min-height:48px; padding:5px 1px; gap:2px; background:transparent; color:#75826f; border-radius:8px; font-size:10px; }
  .mobile-nav-link i { font-size:23px; }
  .mobile-nav-link.active { background:#e6eddf; color:#244e43; box-shadow:none; }
  .mobile-nav-link::after,.mobile-nav-link.active::before { display:none; }
  #appView[data-active-page="aquarium"] #aquariumPage { padding:0 0 calc(200px + env(safe-area-inset-bottom)); height:auto; min-height:0; }
  .aquarium-community-header { min-height:67px; padding:13px 20px; gap:10px; align-items:center; }
  .aquarium-community-header h1 { font-size:27px; }
  .aquarium-community-header>div:first-child>p:last-child { display:none; }
  .aquarium-live-counts { gap:12px; width:auto; }
  .aquarium-live-counts>div { gap:4px; }
  .aquarium-live-counts>div+div { padding-left:12px; }
  .aquarium-live-counts strong { font-size:18px; }
  .aquarium-live-counts span:last-child { font-size:10px; }
  #appView[data-active-page="aquarium"] #aquariumPage .lake-surface { height:max(490px,calc(100svh - 256px)); min-height:490px; background-position:52% center; }
  #appView[data-active-page="aquarium"] #aquariumPage .lake-toolbar { inset:12px 12px auto; gap:8px; padding:0; min-height:0; }
  .lake-toolbar>div:first-child { padding:8px 11px; }
  #aquariumPage .lake-toolbar #lakeTitle { font-size:10px; }
  .presence-connection-status { font-size:9px; }
  .reply-inbox-plant,.reply-inbox-copy small,.reply-inbox-button>i { display:none; }
  .reply-inbox-button { padding:6px 9px; min-height:36px; }
  .reply-inbox-copy strong { font-size:11px; }
  #refreshLakeButton { font-size:10px; padding:7px; min-height:36px; }
  #appView[data-active-page="aquarium"] #aquariumPage .lake-toolbar>.lake-toolbar-actions { gap:5px; }
  .lake-bottom-bar { position:fixed; left:0; right:0; bottom:calc(72px + env(safe-area-inset-bottom)); flex-direction:column; align-items:stretch; padding:10px 16px; gap:6px; border-top:1px solid #dce3d8; }
  .swimming-fish { width:76px; }
  .fish-label { max-width:92px; padding:6px 7px; }
  .fish-label strong { font-size:10px; }
  .library-door { bottom:76px; right:14px; min-height:54px; padding:9px 12px; }
  .library-door .library-door-label strong { font-size:11px; }
  .library-door .library-door-label small { font-size:9px; }
  .aquarium-control-deck { justify-content:space-between; width:100%; gap:6px; }
  .aquarium-status-control { gap:8px; }
  .aquarium-status-control>div:first-child { display:none; }
  .status-choice { font-size:11px; padding:9px 13px; min-height:36px; }
  .aquarium-settings summary { width:38px; min-height:42px; }
  .aquarium-settings[open] { position:fixed; inset:auto 8px calc(72px + env(safe-area-inset-bottom)); width:calc(100vw - 16px); max-width:420px; max-height:min(52dvh,360px); overflow-y:auto; padding:18px 18px 20px; border-radius:14px; }
  .aquarium-settings[open] summary { padding-right:86px; }
  .aquarium-settings-close { position:absolute; display:flex; align-items:center; gap:5px; top:12px; right:12px; min-height:38px; padding:7px 10px; border:1px solid #d5dfd0; border-radius:8px; background:#f3f5ed; color:#496653; font-size:12px; }
  .aquarium-message-dock { display:block; width:100%; }
  .aquarium-message-dock-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; gap:8px; }
  .shared-bottles-button,.lake-message-button { width:100%; min-height:46px; font-size:12px; padding:10px 6px; gap:6px; white-space:nowrap; }
  .lake-help { padding:0 18px; }
  .lake-help .lake-community-guide { grid-template-columns:1fr; gap:14px; }
  #libraryDoorTip { display:none; }
  #appView[data-active-page="aquarium"] #aquariumPage .fish-drawer { inset:auto 10px calc(76px + env(safe-area-inset-bottom)); width:auto; padding:24px; max-height:calc(100dvh - 150px); }
  .board-intro { padding-bottom:26px; }
  .board-tools { display:flex; gap:16px; }
  .post-search { flex-basis:100%; }
  .post-ownership-filters { width:100%; }
  .ownership-chip { flex:1; padding:9px 5px; font-size:11px; white-space:nowrap; }
  .category-filters { flex-wrap:wrap; gap:6px; padding-bottom:18px; }
  .category-chip { min-height:38px; padding:7px 14px; font-size:11px; }
  .post-grid { grid-template-columns:1fr; gap:0; }
  .post-card,.post-card.is-own-post { padding:24px 0; }
  .post-card h2 { font-size:20px; margin:14px 0 10px; }
  .post-excerpt { font-size:14px; }
  .post-footer { flex-wrap:wrap; gap:8px; }
  .library-hero { flex-direction:column; align-items:flex-start; min-height:0; padding:0 0 26px; gap:20px; }
  .library-write-button { width:auto; }
  .library-shelf-tabs { gap:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
  .library-shelf-tab { flex-direction:column; align-items:center; min-height:68px; min-width:0; padding:9px 1px; gap:6px; text-align:center; }
  .shelf-tab-icon { width:auto; height:auto; }
  .shelf-tab-icon i { font-size:22px; }
  .library-shelf-tab strong { font-size:11px; white-space:nowrap; }
  .library-shelf-tab small { display:none; }
  .note-type-filters { gap:6px; }
  .note-type-filters button { padding:8px 10px; font-size:11px; }
  .note-grid { grid-template-columns:1fr; gap:24px; padding-right:4px; }
  .note-open-button { min-height:285px; padding:25px 24px; }
  .note-card h3 { font-size:22px; }
  .profile-grid,.history-grid { grid-template-columns:1fr; gap:20px; }
  .profile-card,.history-card { padding:24px; }
  .admin-range-form { grid-template-columns:1fr 1fr; }
  .admin-error { padding:18px; gap:10px; }
  .admin-error>i { font-size:22px; }
  .modal,.note-composer-modal,.note-detail-modal { width:calc(100% - 16px); max-height:calc(100dvh - 24px); border-radius:12px; }
  .modal>article,.modal>form { padding:24px 20px; }
  .modal-heading h2 { font-size:24px; }
  .modal-actions { gap:8px; }
  .modal-actions>button { padding:11px 12px; font-size:13px; }
  .modal .form-actions-sticky { margin:18px -20px -24px; padding:14px 20px calc(16px + env(safe-area-inset-bottom)); background:#fffef8f5; box-shadow:0 -10px 22px #20382e0d; }
  .composer-actions { display:grid; }
  .note-composer-actions { grid-template-columns:1fr 1fr; }
  .note-composer-actions>button:first-child { grid-column:1 / -1; }
  .modal input,.modal textarea,.modal select,.onboarding-card input,.onboarding-card select { scroll-margin-bottom:120px; }
  #noteBody { min-height:180px; height:220px; }
  #detailTitle,.note-detail-header h2 { font-size:24px; }
  .detail-body,.note-detail-body { font-size:15px; line-height:2; }
  .note-comment-form { grid-template-columns:1fr; }
  .lake-message-categories button { padding:8px 4px; min-width:0; font-size:11px; }
}
@media (max-width:360px) {
  .fish-label { max-width:80px; padding:5px; }
  .fish-label strong { font-size:9px; }
  .status-choice { padding:9px 6px; font-size:10px; white-space:nowrap; gap:4px; }
  .aquarium-status-options { gap:1px; padding:3px; }
  .aquarium-live-counts { gap:7px; }
  .aquarium-live-counts>div+div { padding-left:7px; }
  .aquarium-community-header { padding-inline:16px; }
  .shared-bottles-button,.lake-message-button { font-size:10px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .note-open-button:hover,.note-open-button:focus-visible { transform:none; } .post-card,.note-open-button,.button,.nav-link { transition:none; } }
