@layer essential, legacy;
@import url('/static/styles.css?v=20260828-3') layer(legacy);
@import url('/static/shared-product-nav.css?v=20260813-5') layer(legacy);
/* Approved warm-white / sage library, 2026-10-20. Existing dialogs and data hooks remain shared. */
body.sage-library {
  --ink: #28342f; --ink-2: #354139; --paper: #f8f9f6; --paper-2: #f0f3ed;
  --white: #fff; --muted: #92988f; --line: #e7eae4; --brand: #52694d;
  --brand-2: #e1e7d9; --accent: #dce5d3; --radius: 14px; --rail: 240px;
  --text: var(--ink); --blue: var(--brand); --shadow-soft: 0 8px 24px #303a3206; --shadow: 0 18px 44px #303a3209;
  background: var(--paper); color: var(--ink); font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
}
body.sage-library:not(.theme-blue) {
  --ink: #e1e8de; --ink-2: #d3ddce; --paper: #202620; --paper-2: #292f28;
  --white: #2b322b; --muted: #a0ac9b; --line: #3b453a; --brand: #a6bc97;
  --brand-2: #3c4a35; --accent: #526447; color-scheme: dark;
}
body.sage-library::before, body.sage-library::after { display: none; }
body.sage-library [hidden] { display: none !important; }
body.sage-library .app-shell { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
body.sage-library .preloader, body.sage-library .app-cursor, body.sage-library .icon-definitions { display: none !important; }
body.sage-library .ui-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
body.sage-library :is(button, .button, input, select) { border-color: var(--line); border-radius: 14px; box-shadow: none; background: var(--white); color: var(--ink); font-size: 13px; min-height: 40px; }
body.sage-library button { transition: background-color 160ms ease, border-color 160ms ease, transform 160ms cubic-bezier(.23,1,.32,1); }
body.sage-library button:active { transform: scale(.97); }
body.sage-library :is(button, a, input, select):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
body.sage-library .primary { background: #344332; color: #fff; border: 1px solid #344332; border-radius: 24px; }
body.sage-library .primary:hover { background: #465b40; border-color: #465b40; box-shadow: 0 4px 12px #33472f15; }
body.sage-library .danger { background: #b74c4c; border-color: #b74c4c; color: #fff; }
body.sage-library .site-header { position: relative; inset: auto; display: flex; height: 86px; min-height: 0; margin: 0; padding: 20px 5%; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; gap: 20px; justify-content: space-between; }
.sage-brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; white-space: nowrap; }
.sage-brand strong { font-size: 18px; font-weight: 600; }
.sage-monogram { display: grid; place-items: center; width: 37px; height: 39px; border-radius: 11px; background: #344332; color: #fff; font: 31px/1 Georgia, serif; }
.gate-brand { display: flex; align-items: center; gap: 26px; font-size: 13px; color: var(--muted); }
.gate-brand i { height: 20px; width: 1px; background: var(--line); }
.gate-brand .sage-brand { color: var(--ink); }
body.sage-library .site-header-actions { display: flex; gap: 22px; align-items: center; margin: 0; }
.creative-link { font-size: 12px; text-decoration: none; color: var(--ink-2); }
body.sage-library .theme-toggle { display: inline-flex; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 7px; min-width: 77px; height: 37px; min-height: 37px; border: 1px solid var(--line); border-radius: 24px; padding: 7px 12px; background: var(--paper-2); line-height: 1; }
body.sage-library .theme-toggle > span { display: block; flex: 0 0 16px; width: 16px; height: 16px; border: 0; background: transparent; box-shadow: none; }
body.sage-library .theme-toggle > span::before, body.sage-library .theme-toggle > span::after { content: none; display: none; }
body.sage-library .theme-toggle .theme-icon { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.sage-library.theme-blue .theme-icon-moon, body.sage-library:not(.theme-blue) .theme-icon-sun { display: none; }
body.sage-library .theme-toggle strong { font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; }
body.sage-library .library-breadcrumb, body.library-locked .header-profile, body.library-locked .library-rail { display: none; }
body.sage-library .command-hero { display: grid; grid-template-columns: minmax(0, 530px) minmax(0, 1fr); width: calc(100% - 64px); max-width: 1296px; min-height: 0; gap: 44px 60px; margin: 50px auto 36px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.sage-library .command-copy { position: relative; max-width: none; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.editorial-title { margin: 0; color: #989e92; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400; letter-spacing: -.65px; }
body.sage-library .command-copy .editorial-title { font-size: 30px; line-height: 1.35; margin-bottom: 20px; }
body.sage-library .command-copy h1 { margin: 0; color: var(--ink); font-family: Georgia, "Times New Roman", "SimSun", serif; font-weight: 600; font-size: clamp(34px, 3vw, 47px); letter-spacing: -1.3px; line-height: 1.24; }
body.sage-library .command-copy h1 span { display: block; white-space: nowrap; }
body.sage-library .command-copy .gate-description { margin: 18px 0 27px; color: var(--muted); font-size: 16px; line-height: 1.6; }
body.sage-library .auth-card { display: grid; gap: 0; width: 100%; max-width: none; margin: 0; padding: 23px; background: var(--white); border: 1px solid #eef0eb; border-radius: 28px; box-shadow: 0 16px 42px #303a3207; }
body.sage-library:not(.theme-blue) .auth-card { border-color: var(--line); }
body.sage-library .auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 17px; background: transparent; margin-bottom: 24px; gap: 2px; }
body.sage-library .auth-tabs button { border: 0; background: transparent; font-size: 14px; font-weight: 500; min-height: 38px; padding: 6px; color: var(--ink); }
body.sage-library .auth-tabs button.is-active { background: var(--brand-2); border-radius: 13px; box-shadow: none; color: var(--ink); }
body.sage-library .auth-fields { display: grid; gap: 18px; }
body.sage-library .auth-fields label { gap: 8px; font-size: 12px; font-weight: 400; color: var(--ink-2); }
body.sage-library .auth-fields input { height: 44px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
body.sage-library input::placeholder { color: #9ca29a; font-weight: 400; }
body.sage-library .password-field { display: block; position: relative; }
body.sage-library .password-field input { padding-right: 56px; }
body.sage-library .password-field button { top: 4px; right: 6px; height: 36px; min-height: 36px; padding: 6px 9px; border: 0; background: transparent; font-size: 11px; }
body.sage-library .auth-inline-status { min-height: 0; margin: 0; font-size: 12px; }
body.sage-library .auth-inline-status:not(:empty) { margin-top: 12px; line-height: 1.5; }
body.sage-library .auth-submit { position: relative; width: 100%; min-height: 45px; margin-top: 24px; font-weight: 500; box-shadow: 0 3px 8px #34433214; }
body.sage-library .auth-submit .ui-icon { position: absolute; right: 18px; top: 12px; }
.auth-help { margin: 15px 0 0; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.5; }
body.sage-library .auth-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.sage-library .auth-agreement { display: flex; align-items: center; font-size: 11px; }
body.sage-library .auth-agreement input { width: 15px; height: 15px; min-height: 0; accent-color: var(--brand); }
.gate-features { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 0; }
.gate-features article { display: flex; align-items: center; gap: 20px; min-height: 105px; padding: 20px 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.gate-features .ui-icon { width: 59px !important; height: 59px !important; padding: 17px; border-radius: 50%; background: var(--paper-2); }
.gate-features strong { font-size: 17px; font-weight: 500; }
.gate-features p { margin: 7px 0 0; font-size: 13px; color: var(--muted); }
body.sage-library .site-footer { position: relative; margin: 40px auto 0; width: calc(100% - 7%); min-height: 76px; padding: 20px 0; background: transparent; border: 0; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: 10px; }
body.sage-library .site-footer p { margin: 0 0 9px; font-size: 11px; }
body.sage-library .site-footer a { color: var(--muted); text-decoration: none; font-size: 10px; font-weight: 400; }
body.sage-library .library-rail { position: fixed; z-index: 30; inset: 0 auto 0 0; width: var(--rail); height: 100dvh; display: flex; flex-direction: column; padding: 22px 13px 15px; background: var(--paper-2); border-right: 1px solid var(--line); overflow: hidden; }
.rail-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 28px; }
.rail-brand .sage-monogram { width: 30px; height: 32px; border-radius: 9px; font-size: 26px; }
.rail-brand .sage-brand { gap: 10px; }
.rail-brand .sage-brand strong { font-size: 15px; }
body.sage-library .icon-button { border: 0; min-height: 28px; width: 28px; height: 28px; padding: 4px; background: transparent; }
.icon-button .ui-icon { width: 16px !important; height: 16px !important; }
.rail-main-nav { display: grid; gap: 6px; }
body.sage-library .rail-main-nav :is(a,button) { display: flex; align-items: center; gap: 15px; width: 100%; min-height: 43px; padding: 10px 15px; border: 0; border-radius: 12px; background: transparent; text-decoration: none; text-align: left; font-size: 13px; font-weight: 400; }
body.sage-library .rail-main-nav .is-active { background: var(--brand-2); color: var(--ink); }
body.sage-library .library-rail .sidebar { flex: 1; overflow-y: auto; min-height: 0; max-height: none; width: auto; position: static; padding: 32px 0 15px; margin: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; scrollbar-width: thin; }
body.sage-library .side-head { padding: 5px 11px; border: 0; display: flex; align-items: center; margin: 0; }
body.sage-library .side-head strong { color: var(--muted); font-size: 12px; font-weight: 400; }
body.sage-library #categoryCount { font-size: 10px; font-weight: 400; background: transparent; padding: 0; color: var(--muted); min-width: 0; }
body.sage-library .side-actions { display: flex; gap: 7px; padding: 0 10px 12px; margin: 0; }
body.sage-library .side-actions button { min-height: 25px; padding: 3px 7px; border-radius: 7px; font-size: 10px; background: transparent; }
body.sage-library #newCategory { width: 26px; font-size: 17px; line-height: 1; }
body.sage-library .category-list { display: grid; gap: 4px; padding: 0; background: transparent; }
body.sage-library .category-list .empty-state { padding: 20px 10px; font-size: 11px; line-height: 1.6; min-height: 0; background: none; }
body.sage-library .category-card.designer-folder { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 12px; min-height: 40px; margin: 0; border: 0; border-radius: 11px; background: transparent; box-shadow: none; color: var(--ink); backdrop-filter: none; transform: none; }
body.sage-library .category-card.designer-folder::before { display: none; }
body.sage-library .category-card.designer-folder.active { background: var(--brand-2); }
body.sage-library .category-card.designer-folder.has-custom-color { border-left: 3px solid var(--designer-color); }
body.sage-library .category-card.designer-folder.active.has-custom-color { background: color-mix(in srgb, var(--designer-color) 20%, var(--paper-2)); }
body.sage-library .designer-card-main { display: flex; align-items: center; gap: 12px; }
.designer-card-main::before { content: ''; flex: 0 0 auto; width: 15px; height: 12px; border: 1.3px solid currentColor; border-radius: 2px 4px 2px 2px; }
body.sage-library :is(.designer-kicker,.designer-subline,.designer-meta>span,.designer-meta small) { display: none; }
body.sage-library .designer-name { font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--ink); }
body.sage-library .designer-meta { min-width: 0; align-self: center; }
body.sage-library .designer-meta strong { font-size: 10px; font-weight: 400; line-height: 1.2; color: var(--muted); }
body.sage-library .designer-actions { display: none; gap: 5px; padding: 10px 0 0; margin: 0; }
body.sage-library .category-card.active:focus-within .designer-actions, body.sage-library .category-card.active:hover .designer-actions { display: flex; }
body.sage-library .designer-actions button { min-height: 24px; font-size: 10px; font-weight: 400; padding: 3px 5px; background: var(--white); border-radius: 6px; color: var(--ink); }
body.sage-library .designer-color, body.sage-library .designer-color span { width: 24px; height: 24px; border-radius: 6px; }
body.sage-library .folder-tree { grid-column: 1 / -1; margin: 9px 0 0 7px; padding: 0 0 0 7px; border-left: 1px solid var(--line); gap: 3px; }
body.sage-library .folder-node { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px; min-height: 32px; padding: 4px; border: 0; border-radius: 7px; background: transparent; box-shadow: none; }
body.sage-library .folder-node.active { background: var(--white); }
body.sage-library .folder-open { display: block; min-height: 26px; width: 100%; padding: 3px; background: transparent; border: 0; text-align: left; }
body.sage-library .folder-name { font-size: 11px; color: var(--ink); }
body.sage-library .folder-meta { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
body.sage-library .folder-actions { display: none; gap: 1px; }
body.sage-library .folder-node:hover .folder-actions, body.sage-library .folder-node:focus-within .folder-actions { display: flex; }
body.sage-library .folder-actions button { min-height: 23px; height: 23px; width: 20px; padding: 2px; border: 0; background: var(--white); color: var(--ink); }
.rail-footer { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding-top: 15px; border-top: 1px solid var(--line); }
body.sage-library #railProfile { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0 4px; border: 0; background: transparent; }
#railProfileInitial, body.sage-library .header-profile { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-2); font-size: 12px; }
#railProfileName { max-width: 85px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
body.sage-library .rail-footer .theme-toggle { min-width: 68px; padding: 5px 9px; height: 32px; min-height: 32px; }
body.library-unlocked.sage-library .site-header { height: 64px; padding: 12px 28px; margin-left: var(--rail); }
body.library-unlocked .gate-brand { display: none; }
body.sage-library.library-unlocked .library-breadcrumb { display: flex; align-items: center; gap: 17px; font-size: 12px; color: var(--muted); }
.library-breadcrumb strong { color: var(--ink); font-weight: 500; }
body.sage-library #headerProfile { min-height: 30px; width: 30px; height: 30px; padding: 0; border: 0; }
body.sage-library .library-admin-entry { min-height: 0; padding: 0; border: 0; color: var(--muted); background: none; font-size: 11px; text-decoration: none; }
body.sage-library #mobileMenuBtn { display: none !important; }
body.sage-library .library-page { display: block; margin-left: var(--rail); padding: 0 28px 28px; max-width: none; gap: 0; }
body.sage-library .sync-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; padding: 17px 24px; background: var(--white); border: 1px solid #eef0eb; border-radius: 22px; box-shadow: none; }
.sync-copy { display: flex; align-items: center; gap: 18px; }
.sync-copy>.ui-icon { width: 35px !important; height: 35px !important; padding: 5px; background: var(--paper-2); border-radius: 50%; }
body.sage-library .sync-panel h2 { font-size: 15px; line-height: 1.5; font-weight: 500; margin: 0 0 2px; color: var(--ink); }
body.sage-library .sync-panel p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }
.sync-status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #85b374; vertical-align: 2px; margin-left: 12px; }
body.sage-library .sync-box { display: flex; align-items: center; gap: 20px; min-width: 0; padding: 0; border: 0; background: transparent; border-radius: 0; }
body.sage-library .sync-box>span { font-size: 12px; color: var(--muted); }
body.sage-library #copySyncUrl { display: flex; align-items: center; gap: 8px; font-size: 11px; min-height: 34px; padding: 6px 12px; border-radius: 22px; }
body.sage-library #copySyncUrl .ui-icon { width: 15px; height: 15px; }
body.sage-library .library-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 0; margin: 17px 0 14px; background: none; border: 0; min-height: 178px; }
body.sage-library .library-hero-copy { display: flex; align-items: flex-start; flex-direction: column; min-height: 0; padding: 12px 24px; background: none; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 34px 34px; box-shadow: none; }
body.sage-library .library-hero-copy>.editorial-title { font-size: 24px; margin: 0 0 7px; }
body.sage-library .library-hero h1 { font-size: 31px; font-weight: 500; letter-spacing: -.7px; line-height: 1.4; margin: 0 0 3px; color: var(--ink); }
body.sage-library .library-hero-copy>p:not(.editorial-title) { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
body.sage-library .session-card { position: relative; display: flex; align-items: center; gap: 10px; width: auto; padding: 5px 8px 5px 5px; margin-top: 10px; min-height: 0; border: 1px solid var(--line); background: var(--white); border-radius: 24px; color: var(--ink); box-shadow: none; }
body.sage-library .session-profile-trigger { display: flex; gap: 7px; min-height: 0; padding: 0; border: 0; background: none; }
body.sage-library .session-avatar { width: 24px; height: 24px; min-width: 24px; background: var(--brand-2); color: var(--ink); border: 0; border-radius: 50%; font-size: 10px; }
body.sage-library .session-avatar b { font-size: 11px; }
body.sage-library .session-identity { display: block; }
body.sage-library .session-identity>span, body.sage-library #sessionKey { display: none; }
body.sage-library #sessionOwner { font-size: 10px; font-weight: 400; color: var(--ink); }
body.sage-library .session-card-actions { display: flex; align-items: center; gap: 5px; }
body.sage-library .session-card-actions button { min-height: 20px; padding: 2px 5px; border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 400; }
body.sage-library .library-hero-aside { display: block; padding: 0; border: 0; background: transparent; }
body.sage-library .library-recent-frame { position: relative; height: 178px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
body.sage-library .recent-copy { position: absolute; left: 0; top: 5px; z-index: 2; }
body.sage-library .recent-copy .eyebrow { display: none; }
body.sage-library .recent-copy strong { font-size: 13px; font-weight: 500; color: var(--ink); }
body.sage-library .recent-photo { position: absolute; top: 40px; width: 32%; height: 119px; min-height: 0; margin: 0; border: 0; border-radius: 12px; background: var(--paper-2); box-shadow: 0 4px 10px #303a3205; overflow: hidden; }
body.sage-library .recent-photo::before, body.sage-library .recent-photo::after, body.sage-library .recent-photo>span { display: none; }
body.sage-library .recent-photo img { width: 100%; height: 100%; object-fit: cover; }
body.sage-library .photo-a { left: 3%; transform: rotate(-6deg); z-index: 1; }
body.sage-library .photo-b { left: 35%; top: 32px; transform: rotate(5deg); z-index: 2; }
body.sage-library .photo-c { left: 67%; transform: rotate(-4deg); z-index: 3; }
body.sage-library .stats-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0 0 22px; padding: 0; }
body.sage-library .stat-card { position: relative; display: grid; align-content: center; min-height: 97px; padding: 16px 24px; border: 1px solid #eef0eb; border-radius: 18px; box-shadow: none; background: var(--white); color: var(--ink); }
body.sage-library .stat-card>span { color: var(--muted); font-size: 12px; font-weight: 400; }
body.sage-library .stat-card strong { font-size: 30px; font-weight: 500; line-height: 1.35; margin: 2px 0 0; color: var(--ink); }
body.sage-library .stat-card>.ui-icon { position: absolute; right: 25px; top: 23px; width: 17px; height: 17px; color: #a2ad9b; }
body.sage-library .workspace-layout, body.sage-library .content-panel { display: block; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 11px; }
body.sage-library .content-head { display: block; padding: 0; border: 0; background: none; min-height: 0; }
body.sage-library #viewTitle { font-size: 23px; font-weight: 500; line-height: 1.4; margin: 0; color: var(--ink); }
body.sage-library #statusText { font-size: 10px; color: var(--muted); line-height: 1.2; margin: 4px 0 0; }
.library-heading-actions { display: flex; gap: 15px; align-items: center; }
body.sage-library #uploadBtn { display: flex; align-items: center; gap: 10px; padding: 8px 17px; min-height: 39px; font-size: 12px; font-weight: 400; }
body.sage-library .view-switch { display: flex; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
body.sage-library .view-switch button { width: 35px; height: 32px; min-height: 32px; padding: 7px 9px; border: 0; background: transparent; border-radius: 20px; }
body.sage-library .view-switch button[aria-pressed=true] { background: var(--brand-2); }
body.sage-library .view-switch .ui-icon { width: 16px; height: 16px; }
body.sage-library .toolbar { display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 13px; border: 0; background: none; }
body.sage-library .toolbar .search { display: grid; grid-template-columns: minmax(180px,1fr) 120px 110px 110px; gap: 10px; flex: 1; padding: 0; }
body.sage-library .toolbar .search>label { position: relative; font-size: 0; gap: 0; margin: 0; }
body.sage-library .toolbar .search input, body.sage-library .toolbar .search select { height: 39px; min-height: 39px; font-size: 12px; border-radius: 24px; background: var(--white); padding: 8px 15px; border: 1px solid var(--line); }
body.sage-library .toolbar .search input { padding-left: 40px; }
.toolbar .search>label>.ui-icon { position: absolute; left: 15px; top: 10px; z-index: 1; width: 17px !important; height: 17px !important; color: var(--muted); }
body.sage-library .toolbar-actions { display: flex; gap: 5px; margin: 0; }
body.sage-library .toolbar-actions button { min-height: 34px; border-radius: 20px; padding: 7px 10px; font-size: 10px; white-space: nowrap; }
body.sage-library .upload-strip { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 42px; margin: 0 0 10px; padding: 8px 16px; background: transparent; border: 1px dashed #dce1d7; border-radius: 14px; color: var(--muted); box-shadow: none; cursor: pointer; }
body.sage-library .upload-strip .ui-icon { width: 16px; height: 16px; }
.upload-strip>span { font-size: 11px; }
body.sage-library .upload-strip.drag-over { border-color: var(--brand); background: var(--brand-2); }
.advanced-tools { margin: 0 0 8px; font-size: 11px; }
.advanced-tools summary { width: fit-content; cursor: pointer; color: var(--muted); padding: 2px 0; }
body.sage-library .library-commandbar { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; margin: 10px 0 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: none; }
body.sage-library .library-commandbar label { font-size: 10px; flex: 1 0 120px; }
body.sage-library .library-commandbar select, body.sage-library .library-commandbar input { min-height: 34px; font-size: 11px; }
body.sage-library .selection-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; width: 100%; font-size: 11px; }
body.sage-library .selection-tools button { font-size: 11px; min-height: 30px; padding: 5px 9px; }
body.sage-library .gallery { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 17px; min-height: 0; padding: 0; background: none; }
body.sage-library .material-card { display: block; align-self: start; height: auto; min-height: 0; aspect-ratio: auto; min-width: 0; padding: 0; margin: 0; border: 0; border-radius: 14px 14px 0 0; background: transparent; box-shadow: none; transform: none; }
body.sage-library .material-card:hover { transform: none; box-shadow: none; }
body.sage-library .material-card.selected { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 14px; background: var(--brand-2); }
body.sage-library .material-thumb { height: auto; aspect-ratio: 1.9; border: 0; border-radius: 13px; background: var(--paper-2); overflow: hidden; }
body.sage-library .material-thumb :is(img,video) { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border: 0; border-radius: 0; transition: transform 220ms cubic-bezier(.23,1,.32,1); }
body.sage-library .material-meta { display: block; height: auto; padding: 8px 0 0; margin: 0; background: transparent; min-height: 44px; }
body.sage-library .material-title { display: block; min-height: 0; max-height: none; margin: 0; font-size: 12px; font-weight: 400; color: var(--ink); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.sage-library .material-meta small { display: block; font-size: 10px; line-height: 1.5; color: var(--muted); margin: 3px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.sage-library .material-meta .tags { display: none; }
body.sage-library .material-check { position: absolute; z-index: 5; top: 8px; left: 8px; width: 19px; height: 19px; padding: 0; }
body.sage-library .material-check input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-height: 0; padding: 0; margin: 0; opacity: 0; cursor: pointer; pointer-events: auto; }
body.sage-library .material-check span { pointer-events: none; width: 17px; height: 17px; border: 1px solid #ffffff90; border-radius: 4px; background: #fffffff2; box-shadow: 0 1px 4px #00000012; }
body.sage-library .material-check input:checked+span { background: var(--brand); border-color: var(--brand); }
body.sage-library .material-delete { top: 7px; right: 7px; width: 23px; height: 23px; min-height: 23px; font-size: 16px; line-height: 1; padding: 0; border-radius: 50%; background: #fffffff2; color: #3d4837; }
body.sage-library .gallery.is-list { grid-template-columns: 1fr; gap: 8px; }
body.sage-library .gallery.is-list .material-card { display: grid; grid-template-columns: 116px 1fr; gap: 15px; border-radius: 12px; background: var(--white); padding: 8px; }
body.sage-library .gallery.is-list .material-meta { align-self: center; padding: 0; }
body.sage-library .gallery.empty { display: block; }
body.sage-library .empty-state { color: var(--muted); border: 0; background: transparent; font-size: 13px; }
body.sage-library .empty-state strong { font-size: 15px; color: var(--ink); font-weight: 500; }
body.sage-library .gallery-pagination:not(.gallery-pagination-bottom) { display: none; }
body.sage-library .gallery-pagination-bottom { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; margin: 22px 0 0; padding: 15px 0; background: none; border: 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
body.sage-library .gallery-pagination strong { font-size: 11px; color: var(--muted); font-weight: 400; }
body.sage-library .gallery-pagination :is(button,select) { min-height: 30px; font-size: 11px; padding: 5px 10px; }
body.sage-library :is(dialog,.preview-info,.profile-dialog,.upload-dialog) { background: var(--white); color: var(--ink); border-color: var(--line); border-radius: 22px; }
body.sage-library :is(dialog input,dialog select,dialog textarea) { background: var(--paper); color: var(--ink); border-color: var(--line); }
body.sage-library .selection-bar { background: #344332; border-color: #52694d; color: #fff; border-radius: 20px; }
body.library-unlocked.sage-library .site-footer { margin-left: calc(var(--rail) + 28px); width: calc(100% - var(--rail) - 56px); }
body.sage-library.library-unlocked.rail-collapsed { --rail: 0px; }
body.rail-collapsed .library-rail { transform: translateX(-100%); width: 240px; }
body.sage-library:not(.theme-blue) :is(.sync-panel,.stat-card) { border-color: var(--line); }
@media (hover: hover) and (pointer: fine) { body.sage-library .material-card:hover .material-thumb :is(img,video) { transform: scale(1.025); } }
@media (min-width: 1101px) { body.sage-library:not(.rail-collapsed) #railOpen { display: none; } }
@media (max-width: 1440px) { body.sage-library .command-hero { margin-left: 7%; margin-right: 7%; gap: 38px; } body.sage-library .command-copy h1 { font-size: 40px; } .gate-features article { padding: 20px; gap: 15px; } body.sage-library .toolbar .search { grid-template-columns: minmax(160px,1fr) 112px 100px 105px; } }
@media (max-width: 1200px) { body.sage-library { --rail: 215px; } body.sage-library .library-page { padding: 0 22px 22px; } body.sage-library .gallery { grid-template-columns: repeat(4,minmax(0,1fr)); } body.sage-library .toolbar { flex-wrap: wrap; } body.sage-library .toolbar .search { flex-basis: 100%; } .sync-box>span { display: none; } body.sage-library .command-hero { grid-template-columns: minmax(0,480px) minmax(0,1fr); margin-left: 5%; margin-right: 5%; gap: 30px; } body.sage-library .command-copy h1 { font-size: 36px; } .gate-features .ui-icon { width: 48px !important; height: 48px !important; padding: 12px; } }
@media (max-width: 1100px) { body.sage-library.library-unlocked { --rail: 0px; } body.sage-library .library-rail { width: 240px; transform: translateX(-100%); } body.sage-library.rail-open .library-rail { transform: translateX(0); box-shadow: 20px 0 50px #0002; } body.sage-library .library-hero-copy>.editorial-title { font-size: 22px; } body.sage-library .command-copy h1 { font-size: 33px; } .gate-features { gap: 12px; } .gate-features strong { font-size: 15px; } .gate-features p { font-size: 11px; } }
@media (max-width: 760px) {
  body.sage-library .site-header { height: 70px; padding: 15px 20px; gap: 10px; } .gate-brand { gap: 14px; } .gate-brand>span, .gate-brand>i { display: none; } .sage-brand strong { font-size: 15px; }
  body.sage-library .site-header-actions { gap: 12px; } .creative-link { font-size: 10px; } body.sage-library .theme-toggle { min-width: 67px; padding: 6px 9px; } body.sage-library .theme-toggle strong { font-size: 11px; }
  body.sage-library .command-hero { position: relative; width: auto; grid-template-columns: 1fr; gap: 24px; margin: 40px 22px 0; }
  body.sage-library .command-copy { z-index: 4; } body.sage-library .command-copy .editorial-title { font-size: 21px; margin-bottom: 14px; } body.sage-library .command-copy h1 { font-size: clamp(25px,6.7vw,36px); letter-spacing: -.9px; }
  body.sage-library .command-copy .gate-description { font-size: 12px; margin: 12px 0 24px; } body.sage-library .auth-card { padding: 18px; border-radius: 24px; } body.sage-library .auth-tabs { margin-bottom: 20px; }
  body.sage-library .auth-grid-two { grid-template-columns: 1fr; } .robot-scene { grid-row: 2; width: 85%; max-width: 420px; margin: 0 auto 12px; transform: none; } .gate-features { grid-row: 3; grid-template-columns: 1fr; gap: 10px; }
  .gate-features article { min-height: 80px; padding: 15px 20px; } .gate-features .ui-icon { width: 47px !important; height: 47px !important; }
  body.library-unlocked.sage-library .site-header { height: 64px; padding: 12px 17px; } body.sage-library .library-breadcrumb { gap: 12px; font-size: 11px; } body.sage-library .library-admin-entry { font-size: 10px; }
  body.sage-library #headerProfile { display: none; } body.sage-library .library-page { padding: 0 16px 20px; }
  body.sage-library .sync-panel { padding: 15px; min-height: 82px; gap: 10px; border-radius: 18px; } .sync-copy { gap: 10px; } body.sage-library .sync-panel h2 { font-size: 12px; } body.sage-library .sync-panel p { font-size: 10px; max-width: 200px; }
  body.sage-library #copySyncUrl { width: 32px; min-height: 32px; height: 32px; padding: 7px; font-size: 0; gap: 0; } .sync-status-dot { width: 5px; height: 5px; margin-left: 6px; }
  body.sage-library .library-hero { grid-template-columns: 1fr; min-height: 0; gap: 12px; margin: 20px 0 15px; } body.sage-library .library-hero-copy { padding: 0 8px 17px; border-radius: 0 0 20px 20px; } body.sage-library .library-hero h1 { font-size: 26px; }
  body.sage-library .library-hero-aside { padding: 0 6px; } body.sage-library .library-recent-frame { height: 148px; } body.sage-library .recent-photo { height: 100px; top: 36px; } body.sage-library .photo-b { top: 30px; }
  body.sage-library .stats-grid { gap: 10px; margin-bottom: 20px; } body.sage-library .stat-card { min-height: 85px; padding: 13px 17px; border-radius: 16px; } body.sage-library .stat-card strong { font-size: 27px; } body.sage-library .stat-card>.ui-icon { right: 16px; top: 18px; }
  body.sage-library #viewTitle { font-size: 20px; } .library-heading { gap: 10px; flex-wrap: wrap; } .library-heading-actions { flex: 0 0 auto; gap: 8px; } body.sage-library #uploadBtn { padding: 8px 12px; gap: 5px; font-size: 11px; white-space: nowrap; flex-shrink: 0; } body.sage-library .view-switch button { width: 29px; padding: 7px 6px; }
  body.sage-library .toolbar .search { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } body.sage-library .toolbar .search>label:first-child { grid-column: 1 / -1; } body.sage-library .toolbar .search :is(input,select) { font-size: 11px; padding-right: 9px; }
  .upload-strip>span { font-size: 10px; } body.sage-library .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 11px; } body.sage-library .material-thumb { aspect-ratio: 1.35; } body.sage-library .material-title { font-size: 11px; } body.sage-library .material-meta small { font-size: 9px; }
  body.sage-library .gallery-pagination-bottom { gap: 12px; } body.sage-library .site-footer, body.library-unlocked.sage-library .site-footer { width: calc(100% - 32px); margin: 30px 16px 0; } body.sage-library .gallery-pagination label { display: none; }
}
@media (prefers-reduced-motion: reduce) { body.sage-library *, body.sage-library *::before, body.sage-library *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } .robot-head,.robot-gaze { transform: none !important; } }
body.sage-library.library-locked .library-rail, body.sage-library.library-locked #headerProfile { display: none; }
body.sage-library.library-unlocked #gatePage { display: none; }
@layer essential {
  body.sage-library .session-card { padding: 5px 8px 5px 5px !important; gap: 7px !important; }
  body.sage-library .session-profile-trigger { display: flex !important; min-height: 0 !important; gap: 7px !important; }
  body.sage-library .session-card .session-avatar { width: 24px !important; height: 24px !important; background: var(--brand-2) !important; color: var(--ink) !important; box-shadow: none !important; border: 0 !important; border-radius: 50% !important; }
  body.sage-library .session-card .session-identity>span { display: none !important; }
  body.sage-library .session-card-actions { width: auto !important; }
  body.sage-library .session-card .session-card-actions :is(#openProfileSettings,#logoutGate) { min-width: 0 !important; min-height: 20px !important; padding: 2px 5px !important; color: var(--muted) !important; background: none !important; border: 0 !important; box-shadow: none !important; font-weight: 400 !important; }
  body.sage-library .auth-submit { border-radius: 24px !important; }
}
