/* Presentation only. All application controls, IDs and data flows are retained. */
:root.fd-theme{color-scheme:light;--fd-paper:#fff;--fd-bg:#fafaf8;--fd-ink:#232724;--fd-muted:#757d75;--fd-line:#e6e9e2;--fd-soft:#f0f2ec;--fd-accent:#252824;--fd-radius:10px;--fd-tile:180px;--fd-gap:7px;--cloud-bg:var(--fd-bg);--cloud-surface:var(--fd-paper);--cloud-ink:var(--fd-ink);--cloud-muted:var(--fd-muted);--cloud-line:var(--fd-line);--cloud-accent:var(--fd-accent);--cloud-soft:var(--fd-soft);--cloud-radius:14px;--ink:var(--fd-ink);--muted:var(--fd-muted);--paper:var(--fd-bg);--surface:var(--fd-paper);--line:var(--fd-line);--soft:var(--fd-soft);--brand:var(--fd-accent);font-family:"Segoe UI",system-ui,sans-serif;color:var(--fd-ink);background:var(--fd-bg)}
:root.fd-theme[data-fd-theme=dark]{color-scheme:dark;--fd-paper:#1b201d;--fd-bg:#151a17;--fd-ink:#e9eee7;--fd-muted:#a5b0a3;--fd-line:#343d35;--fd-soft:#29322b;--cloud-bg:var(--fd-bg);--cloud-surface:var(--fd-paper);--ink:var(--fd-ink);--muted:var(--fd-muted);--paper:var(--fd-bg);--surface:var(--fd-paper);--line:var(--fd-line);--soft:var(--fd-soft)}
.fd-theme body,.fd-theme .shell-page{background:var(--fd-bg);color:var(--fd-ink)}.fd-theme .shell-page main{max-width:1400px;padding-top:35px}.fd-theme .app-sidebar{background:var(--fd-paper);border-color:var(--fd-line)}.fd-theme .app-brand{font-size:23px;letter-spacing:-1px;font-weight:650;color:var(--fd-ink)}.fd-theme .app-brand-mark{background:var(--fd-accent);box-shadow:none;border-radius:11px;color:white}.fd-theme .app-nav-caption{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;margin:22px 12px}.fd-theme .app-sidebar nav a{font-size:13px;border-radius:9px;color:var(--fd-muted)}.fd-theme .app-sidebar nav a[aria-current=page]{background:var(--fd-soft);color:var(--fd-ink)}.fd-theme .app-sidebar nav a:hover{background:var(--fd-soft);color:var(--fd-ink)}.fd-theme .app-nav-icon svg{width:20px;height:20px;display:block}.fd-theme .shell-page h1{font-size:clamp(29px,3vw,40px);font-weight:550;letter-spacing:-1.4px}.fd-theme .shell-page h2{font-size:20px;font-weight:550;letter-spacing:-.4px}.fd-theme .shell-page h3{font-size:16px;font-weight:600}.fd-theme .shell-page header>a{font-size:12px;color:var(--fd-muted)}.fd-theme .shell-page a{color:var(--fd-accent)}.fd-theme[data-fd-theme=dark] .shell-page a{color:#c4d3bf}.fd-theme .shell-page section{background:var(--fd-paper);border-color:var(--fd-line);box-shadow:none}.fd-theme .shell-page .notice{background:var(--fd-soft);color:var(--fd-muted);border-color:var(--fd-line);font-size:12px;line-height:1.7}.fd-theme .shell-page p{font-size:13px;line-height:1.65}.fd-theme .shell-page label{font-size:12px}.fd-theme .shell-page button{background:var(--fd-accent);border-color:var(--fd-accent);border-radius:8px;font-size:12px;min-height:42px;padding:10px 14px}.fd-theme .shell-page button.secondary{background:var(--fd-paper);border-color:var(--fd-line);color:var(--fd-ink)}.fd-theme .shell-page button.danger{background:var(--fd-paper);border-color:#bb7980;color:#a83544}.fd-theme[data-fd-theme=dark] .shell-page button.danger{color:#ffb8be}.fd-theme .shell-page input,.fd-theme .shell-page select,.fd-theme .shell-page textarea{background:var(--fd-paper);color:var(--fd-ink);border-color:var(--fd-line);border-radius:8px;font-size:13px;min-height:42px}.fd-theme .shell-page input[type=checkbox]{min-height:18px;accent-color:var(--fd-accent)}.fd-theme .shell-page .row{border-color:var(--fd-line);padding:14px 0}.fd-theme .shell-page .row p,.fd-theme .shell-page .file-row>span{color:var(--fd-muted);font-size:11px}.fd-theme .shell-page .file-title strong{font-size:13px;font-weight:550}.fd-theme .shell-page .file-actions summary{font-size:12px;color:var(--fd-ink);background:var(--fd-soft);border-color:var(--fd-line);border-radius:8px}.fd-theme .shell-page .file-actions[open]{background:var(--fd-paper)}.fd-theme .shell-page #breadcrumbs button,.fd-theme .shell-page #move-breadcrumbs button{background:var(--fd-soft);color:var(--fd-ink);border-radius:7px;font-size:12px}.fd-theme #file-action-dialog{color:var(--fd-ink);background:var(--fd-paper);border-color:var(--fd-line)}.fd-theme #file-action-dialog::backdrop{background:#101a1466;backdrop-filter:blur(3px)}.fd-theme #file-action-message{color:var(--fd-muted)}.fd-theme input[type=file]::file-selector-button{border:0;border-radius:5px;background:var(--fd-soft);color:var(--fd-ink);padding:7px 11px;margin-right:11px;font:inherit;cursor:pointer}
/* The original photo app retains its navigation, grid/list controls and operations. */
.fd-theme .app-layout,.fd-theme .main-area,.fd-theme .content{background:var(--fd-bg)}.fd-theme .sidebar,.fd-theme .topbar,.fd-theme .mobile-nav,.fd-theme .dialog{background:var(--fd-paper);border-color:var(--fd-line);color:var(--fd-ink)}.fd-theme .brand,.fd-theme .content-heading h1,.fd-theme .section-title{color:var(--fd-ink)}.fd-theme .nav-item{color:var(--fd-muted)}.fd-theme .nav-item.active{color:var(--fd-ink);background:var(--fd-soft)}.fd-theme .search-box{background:var(--fd-soft);border-color:var(--fd-line)}.fd-theme .search-box input{color:var(--fd-ink)}.fd-theme .pill-btn,.fd-theme .round-btn{background:var(--fd-paper);border-color:var(--fd-line);color:var(--fd-ink)}.fd-theme .pill-btn.primary,.fd-theme .primary-btn{background:var(--fd-accent);color:white;border-color:var(--fd-accent)}.fd-theme .photo-card{border-radius:var(--fd-radius);background:var(--fd-soft)}.fd-theme .photo-grid{gap:var(--fd-gap)}.fd-theme[data-fd-grid=custom] .photo-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--fd-tile)),1fr))}.fd-theme .selection-bar{background:var(--fd-soft);border-color:var(--fd-line);color:var(--fd-ink)}.fd-theme .gallery-layout-switch button{background:var(--fd-paper);color:var(--fd-muted);border-color:var(--fd-line)}.fd-theme .gallery-layout-switch button[aria-pressed=true]{background:var(--fd-soft);color:var(--fd-ink)}.fd-theme .login-panel{background:var(--fd-paper);color:var(--fd-ink)}.fd-theme .login-form h2{color:var(--fd-ink)}.fd-theme .text-field{background:var(--fd-paper);color:var(--fd-ink);border-color:var(--fd-line)}.fd-theme .login-submit{background:var(--fd-accent)}.fd-theme[data-fd-stories=off] .upload-banner{display:none}.fd-theme #new-token-panel,.fd-theme #recovery-codes-panel{color:#4d3b14;background:#fff3d2}.fd-theme :focus-visible{outline:3px solid #b18a47;outline-offset:3px}
.fd-theme-trigger{position:fixed;right:22px;bottom:22px;z-index:25;display:flex;align-items:center;gap:8px;border:1px solid var(--fd-line);background:var(--fd-paper);color:var(--fd-ink);border-radius:99px;padding:11px 15px;min-height:43px;box-shadow:0 3px 18px #00000012;font:12px "Segoe UI",sans-serif;cursor:pointer}.fd-theme-trigger svg{width:19px;height:19px}.fd-appearance{position:fixed;inset:0 0 0 auto;margin:0;width:min(385px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;overflow:auto;background:var(--fd-paper);color:var(--fd-ink);border:1px solid var(--fd-line);border-radius:18px 0 0 18px;padding:28px;box-shadow:0 15px 70px #0002;font:13px/1.6 "Segoe UI",sans-serif}.fd-appearance::backdrop{background:#101a1466;backdrop-filter:blur(4px)}.fd-appearance form{display:block;margin:0}.fd-appearance header{display:flex;align-items:center;justify-content:space-between;gap:15px}.fd-appearance h2{font-size:25px;font-weight:550;letter-spacing:-.7px;margin:6px 0}.fd-appearance header small{font-size:9px;letter-spacing:2px;color:var(--fd-muted)}.fd-appearance .fd-close{border:0;border-radius:50%;width:34px;height:34px;min-height:34px;background:var(--fd-soft);color:var(--fd-ink);font-size:23px;padding:0;cursor:pointer}.fd-appearance p{color:var(--fd-muted);font-size:11px}.fd-appearance label{display:block;font-size:12px;font-weight:550;margin:24px 0 9px}.fd-appearance select{width:100%;background:var(--fd-soft);border:1px solid var(--fd-line);border-radius:8px;color:var(--fd-ink);padding:10px 12px;min-height:42px;font:12px "Segoe UI",sans-serif}.fd-appearance input[type=range]{width:100%;padding:0;min-height:24px;accent-color:var(--fd-accent)}.fd-appearance .fd-range-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--fd-muted)}.fd-appearance .fd-switch{display:flex;align-items:center;justify-content:space-between;gap:20px}.fd-appearance .fd-switch input{width:18px;height:18px;min-height:18px;accent-color:var(--fd-accent)}.fd-appearance .fd-reset{width:100%;margin-top:28px;min-height:42px;border-radius:8px;border:1px solid var(--fd-line);color:var(--fd-ink);background:var(--fd-paper);font:12px "Segoe UI",sans-serif;cursor:pointer}.fd-appearance .fd-note{font-size:10px;margin-top:15px}.fd-appearance .fd-accent{min-width:0;margin-top:24px;border:0;padding:0;display:flex;gap:8px;justify-content:space-between}.fd-appearance legend{font-size:12px;font-weight:550;margin-bottom:12px}.fd-appearance .fd-accent label{min-width:0;flex:1;margin:0;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:9px;font-weight:400;position:relative;cursor:pointer}.fd-appearance .fd-accent input{position:absolute;opacity:0;width:32px;height:32px;min-height:32px}.fd-swatch{height:30px;width:30px;border-radius:50%;border:4px solid var(--fd-paper);box-shadow:0 0 0 1px var(--fd-line)}.fd-swatch[data-color=graphite]{background:#252824}.fd-swatch[data-color=forest]{background:#315a46}.fd-swatch[data-color=blue]{background:#365ea5}.fd-swatch[data-color=bronze]{background:#80551e}.fd-accent input:checked+.fd-swatch{box-shadow:0 0 0 2px var(--fd-ink)}.fd-accent input:focus-visible+.fd-swatch{outline:3px solid #b18a47;outline-offset:3px}[hidden]{display:none!important}
@media(max-width:650px){.fd-theme-trigger{bottom:78px;right:13px;padding:10px;border-radius:50%}.fd-theme-trigger span{display:none}.fd-appearance{padding:23px;border-radius:0}.fd-theme .shell-page main{padding-top:22px}.fd-theme .shell-page section{padding:18px}}
@media(prefers-reduced-motion:reduce){.fd-theme *{scroll-behavior:auto!important}}

/* Full composition for the actual gallery (its class names differ from the design prototype). */
.fd-theme{--purple:var(--fd-accent);--purple-dark:var(--fd-accent);--pale:var(--fd-soft)}
.fd-theme .layout,.fd-theme .workspace{background:var(--fd-bg)}
.fd-theme .sidebar{width:216px;flex-basis:216px;padding:31px 19px 24px}
.fd-theme .brand{padding:0 11px 30px;gap:10px}.fd-theme .brand-mark{background:transparent;color:var(--fd-ink);box-shadow:none;width:30px;height:34px;border-radius:0}.fd-theme .brand-title{font-size:23px;font-weight:650;letter-spacing:-1.3px}.fd-theme .brand-caption{font-size:8px;letter-spacing:1.7px;color:var(--fd-muted);font-weight:500}
.fd-theme .nav-label{font-size:9px;letter-spacing:1.8px;padding:22px 13px 12px;color:var(--fd-muted);font-weight:500}.fd-theme .nav-btn{font-size:12px;font-weight:450;gap:13px;padding:11px 14px;color:var(--fd-muted);border-radius:9px}.fd-theme .nav-btn.active{background:var(--fd-soft);color:var(--fd-ink);font-weight:600}.fd-theme .nav-btn:hover{background:var(--fd-soft);color:var(--fd-ink)}
.fd-theme .sidebar-storage{border:0;border-top:1px solid var(--fd-line);border-radius:0;background:transparent;padding:19px 3px;margin:0 11px}.fd-theme .storage-top{font-size:11px;font-weight:550}.fd-theme .storage-detail{font-size:10px;margin-top:8px;color:var(--fd-muted)}.fd-theme .user-chip{border-color:var(--fd-line);color:var(--fd-muted);padding:16px 9px 0}.fd-theme .avatar{border-radius:50%;background:var(--fd-soft);color:var(--fd-ink);font-weight:550}
.fd-theme .topbar{height:auto;min-height:83px;padding:18px 37px;border-bottom:1px solid var(--fd-line);background:var(--fd-paper);gap:12px;flex-wrap:wrap;backdrop-filter:none}.fd-theme .searchbox{background:transparent;border-radius:0;max-width:none;min-width:200px;height:40px;flex:1 1 260px;padding:0;box-shadow:none;color:var(--fd-muted)}.fd-theme .searchbox:focus-within{background:transparent;border-color:transparent;box-shadow:none}.fd-theme .searchbox input{font-size:12px;color:var(--fd-ink)}.fd-theme .searchbox input::placeholder{color:var(--fd-muted)}
.fd-theme .topbar>.pill-btn,.fd-theme .topbar>.round-btn{font-size:11px;height:36px;border-radius:7px;padding:0 11px;box-shadow:none;font-weight:500}.fd-theme .topbar>.round-btn{width:36px;padding:0}.fd-theme .pill-btn:hover,.fd-theme .round-btn:hover{color:var(--fd-ink);background:var(--fd-soft);border-color:var(--fd-line)}.fd-theme .pill-btn.primary:hover{color:white;background:var(--fd-accent);filter:brightness(1.12)}
.fd-theme .main{max-width:1510px;margin:auto;padding:32px 37px 80px}.fd-theme .eyebrow{font-size:9px;letter-spacing:2.2px;color:var(--fd-muted);font-weight:500}.fd-theme .page-head{margin:6px 0 27px}.fd-theme .page-title{font-size:clamp(29px,3vw,39px);font-weight:500;letter-spacing:-1.8px;line-height:1.2;color:var(--fd-ink)}.fd-theme .page-subtitle{font-size:11px;color:var(--fd-muted)}
.fd-theme .gallery-toolbar{border-bottom:1px solid var(--fd-line);padding-bottom:13px;margin-bottom:21px}.fd-theme .results-counter{font-size:11px;color:var(--fd-muted)}.fd-theme .gallery-layout-switch button{font-size:11px;min-height:34px;border-radius:7px;padding:6px 12px}.fd-theme .group-head{margin-bottom:12px}.fd-theme .group-name{font-size:12px;font-weight:550;color:var(--fd-ink)}.fd-theme .group-count{font-size:10px;color:var(--fd-muted)}
.fd-theme .photos-grid{gap:var(--fd-gap);grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--fd-tile)),1fr))}.fd-theme .photos-grid .photo-card{border-radius:var(--fd-radius);box-shadow:none}.fd-theme .photo-name{font-size:10px}.fd-theme .photos-grid.photos-grid-tiles{column-gap:var(--fd-gap)}.fd-theme .photos-grid-tiles .photo-card{margin-bottom:var(--fd-gap)}
.fd-theme .album-card{background:transparent;border:0;box-shadow:none}.fd-theme .album-cover{border-radius:var(--fd-radius);background:var(--fd-soft)}.fd-theme .album-name{font-size:13px;font-weight:550;color:var(--fd-ink)}.fd-theme .album-count{font-size:10px;color:var(--fd-muted)}
.fd-theme .upload-banner{background:var(--fd-soft);border-color:var(--fd-line);border-radius:10px;padding:20px 23px}.fd-theme .banner-icon{color:var(--fd-accent);background:var(--fd-paper);border-radius:9px}.fd-theme .banner-title{font-weight:550;color:var(--fd-ink)}.fd-theme .banner-text{color:var(--fd-muted)}
.fd-editorial{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:14px;margin-bottom:30px}.fd-story{position:relative;aspect-ratio:1.55;min-height:155px;overflow:hidden;border:0;border-radius:11px;padding:0;background:var(--fd-soft);color:white;text-align:left;isolation:isolate}.fd-story img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;transition:transform .4s}.fd-story:hover img{transform:scale(1.035)}.fd-story:after{content:"";position:absolute;inset:15% 0 0;background:linear-gradient(transparent,#111a1bb0);z-index:0}.fd-story-caption{position:absolute;bottom:18px;left:19px;right:15px;z-index:1}.fd-story-caption small{display:block;font-size:8px;letter-spacing:1.8px;text-transform:uppercase;opacity:.9}.fd-story-caption strong{display:block;font-size:20px;font-weight:500;letter-spacing:-.5px;margin-top:6px;line-height:1.25}.fd-theme[data-fd-stories=off] .fd-editorial{display:none}
/* Sign-in is part of the same visual system, with a decorative local photograph. */
.fd-theme .login-page{background:var(--fd-paper);grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);padding:22px;gap:24px}.fd-theme .login-hero{border-radius:16px;padding:36px;background:#263a36 url('/static/premium-landscape.jpg') center/cover no-repeat;isolation:isolate;min-height:calc(100dvh - 44px)}.fd-theme .login-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#13201e22 15%,#13201e15 35%,#13201ec9 100%);z-index:-1}.fd-theme .hero-stickers{display:none}.fd-theme .hero-brand{font-size:23px;letter-spacing:-1px;font-weight:550}.fd-theme .hero-brand .brand-mark{color:white;background:none}.fd-theme .hero-copy{margin-top:auto;padding-top:90px}.fd-theme .hero-copy h1{font-size:clamp(36px,4.1vw,62px);font-weight:450;letter-spacing:-2px;line-height:1.08;max-width:530px}.fd-theme .hero-copy p{font-size:13px;line-height:1.8;color:#ffffffe0;max-width:380px}.fd-theme .login-footnote{font-size:9px;letter-spacing:1px;color:#ffffffa8;margin-top:35px}.fd-theme .login-panel{padding:45px}.fd-theme .login-form{width:min(370px,100%)}.fd-theme .login-kicker{font-size:9px;letter-spacing:2px;font-weight:550;color:var(--fd-muted)}.fd-theme .login-form h2{font-size:34px;font-weight:500;letter-spacing:-1.3px;margin-top:15px}.fd-theme .login-form .sub{font-size:12px;color:var(--fd-muted);margin-bottom:30px}.fd-theme .form-field>span{font-size:11px;font-weight:500;color:var(--fd-muted)}.fd-theme .text-field{border-radius:8px;min-height:44px;font-size:13px}.fd-theme .login-submit{border-radius:8px;box-shadow:none;font-size:12px;font-weight:550;margin-top:10px;height:45px}.fd-theme .login-form>p:not(.sub){font-size:11px;line-height:1.9;color:var(--fd-muted)}.fd-theme .login-foot{font-size:10px;color:var(--fd-muted);margin-top:30px}
@media(min-width:651px) and (max-width:1000px){.fd-theme .sidebar{width:76px;flex-basis:76px;padding:29px 10px}.fd-theme .brand{padding:0 11px 30px}.fd-theme .nav-btn{padding:13px;justify-content:center}.fd-theme .brand-title,.fd-theme .brand-caption,.fd-theme .nav-label,.fd-theme .nav-btn span,.fd-theme .sidebar-storage,.fd-theme .user-chip span{display:none}.fd-editorial{grid-template-columns:1.2fr 1fr}.fd-story:last-child{display:none}.fd-theme .main{padding:27px 26px}.fd-theme .topbar{padding:18px 26px}}
@media(max-width:650px){.fd-theme .sidebar{display:none}.fd-theme .main{padding:22px 16px 110px}.fd-theme .topbar{padding:12px 16px;gap:8px}.fd-theme .searchbox{flex-basis:100%;min-width:0}.fd-theme .topbar>.pill-btn{width:auto;min-width:36px;padding:0 10px}.fd-theme .topbar .btn-label{display:inline;font-size:10px}.fd-theme .topbar a[aria-label='Аккаунт и семья'] .btn-label{display:none}.fd-theme .page-title{font-size:29px}.fd-editorial{grid-template-columns:1fr 1fr;gap:10px}.fd-story{aspect-ratio:1;min-height:140px}.fd-story:last-child{display:none}.fd-story-caption{bottom:14px;left:13px}.fd-story-caption strong{font-size:16px}.fd-theme .photos-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,140px),1fr))}.fd-theme .login-page{padding:0;display:block}.fd-theme .login-hero{display:none}.fd-theme .login-panel{min-height:100dvh;padding:32px 25px}.fd-theme .mobile-bottom{background:var(--fd-paper);border-color:var(--fd-line)}.fd-theme .mobile-tab{color:var(--fd-muted)}.fd-theme .mobile-tab.active{color:var(--fd-accent)}}
.fd-editorial{align-items:stretch}.fd-story{aspect-ratio:auto;height:clamp(175px,19vw,260px)}
@media(max-width:650px){.fd-story{height:180px}.fd-theme[data-fd-grid=custom] .photos-grid:not(.photos-grid-tiles){grid-template-columns:repeat(auto-fill,minmax(min(100%,var(--fd-tile)),1fr))}}

.profile-entry{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;border-radius:8px;padding:3px}.profile-entry:hover{background:var(--fd-soft)}

.fd-theme .main-shell{margin-left:216px}.fd-theme #content{padding:32px 37px;max-width:1510px}.fd-theme .page-heading h1{font-family:inherit;font-weight:500;font-size:39px;letter-spacing:-1.8px}.fd-theme .main-shell .nav-item{font-size:12px}.fd-theme .privacy-badge{background:var(--fd-soft);color:var(--fd-ink);border-color:var(--fd-line)}.fd-theme .main-shell input,.fd-theme .main-shell select{background:var(--fd-paper);color:var(--fd-ink);border-color:var(--fd-line)}.fd-theme .main-shell button{background:var(--fd-accent);color:white;border-radius:8px}.fd-theme .main-shell .library-controls button{background:var(--fd-paper);color:var(--fd-ink);border-color:var(--fd-line)}.fd-theme .main-shell .library-controls button[aria-pressed=true]{background:var(--fd-accent);color:white}.fd-theme #gallery-items li{background:var(--fd-paper);border-color:var(--fd-line)}
@media(min-width:701px) and (max-width:1000px){.fd-theme .main-shell{margin-left:210px}.fd-theme .main-shell .sidebar{width:210px}.fd-theme .main-shell .nav-item{font-size:12px}}@media(max-width:700px){.fd-theme .main-shell{margin-left:0}.fd-theme #content{padding:25px 18px}.fd-theme .page-heading h1{font-size:31px}}
.fd-theme .shell-page .fd-theme-trigger{background:var(--fd-paper);color:var(--fd-ink);border:1px solid var(--fd-line);border-radius:99px;padding:11px 15px;min-height:43px;font-weight:400}.fd-theme .shell-page .fd-appearance .fd-close{background:var(--fd-soft);color:var(--fd-ink);width:34px;height:34px;min-height:34px;padding:0;border:0;border-radius:50%}.fd-theme .shell-page .fd-appearance .fd-reset{background:var(--fd-paper);color:var(--fd-ink);border-color:var(--fd-line)}
@media(max-width:650px){.fd-theme .shell-page .fd-theme-trigger{padding:10px;border-radius:50%}}

/* One identity across library and account sections. */
.fd-theme .app-brand{align-items:center;gap:10px;text-transform:none;font-size:26px;font-weight:600;letter-spacing:-1.2px}.fd-theme .app-brand-mark{background:transparent;color:var(--fd-ink);box-shadow:none;border-radius:0;font-family:Georgia,serif;font-size:38px;width:30px;min-width:30px;height:44px}.fd-theme .app-brand-caption{display:block;margin-top:6px;color:var(--fd-muted);font-size:7px;line-height:1.5;letter-spacing:1.35px;font-weight:500}

/* Readable authentication, scoped so library/sidebar typography is unchanged. */
html.fd-theme[data-fd-style] body.kh-auth-page{font-size:16px;line-height:1.65;background:var(--fd-bg);color:var(--fd-ink);padding:32px 20px 80px}
html.fd-theme[data-fd-style] body.kh-auth-page main{width:min(100%,620px);max-width:620px;margin:0 auto;padding:34px 38px;background:var(--fd-paper);border:1px solid var(--fd-line);border-radius:var(--kh-radius,18px);box-shadow:var(--kh-shadow)}
html.fd-theme[data-fd-style] body.kh-auth-page .auth-brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--fd-ink);font-size:26px;font-weight:600;letter-spacing:-1px;margin:0 0 28px;padding:0}
html.fd-theme[data-fd-style] body.kh-auth-page .auth-brand .brand-mark{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--kh-logo-bg);color:var(--kh-logo-ink);font-size:26px;font-weight:600;letter-spacing:-2px}
html.fd-theme[data-fd-style] body.kh-auth-page .brand-caption{display:block;font-size:11px;letter-spacing:1.4px;color:var(--fd-muted);font-weight:500;margin-top:2px}
html.fd-theme[data-fd-style] body.kh-auth-page h1{font-size:clamp(28px,4vw,34px);font-weight:550;letter-spacing:-1px;line-height:1.2;margin:18px 0}
html.fd-theme[data-fd-style] body.kh-auth-page h2{font-size:21px;line-height:1.35;letter-spacing:-.5px;margin:18px 0 12px}
html.fd-theme[data-fd-style] body.kh-auth-page p{font-size:16px;line-height:1.7;overflow-wrap:anywhere;color:var(--fd-muted);margin:15px 0}
html.fd-theme[data-fd-style] body.kh-auth-page a{color:var(--fd-accent);text-underline-offset:3px}
html.fd-theme[data-fd-style] body.kh-auth-page section{background:none;border:0;border-radius:0;margin:24px 0 0;padding:0;box-shadow:none}
html.fd-theme[data-fd-style] body.kh-auth-page form{display:block;max-width:none;padding:0;margin:24px 0;background:transparent;border:0;border-radius:0;box-shadow:none}
html.fd-theme[data-fd-style] body.kh-auth-page label{display:flex;flex-direction:column;gap:9px;min-width:0;width:100%;margin:18px 0;font-size:14px;font-weight:500;line-height:1.5;color:var(--fd-ink)}
html.fd-theme[data-fd-style] body.kh-auth-page input{display:block;width:100%;min-width:0;max-width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--fd-line);border-radius:9px;background:var(--fd-bg);color:var(--fd-ink);font:inherit;font-size:16px}
html.fd-theme[data-fd-style] body.kh-auth-page main button{width:100%;min-height:48px;border-radius:9px;padding:12px 18px;background:var(--fd-accent);color:var(--kh-on-accent,#fff);border:1px solid transparent;font-size:15px;font-weight:550;margin-top:8px}
html.fd-theme[data-fd-style] body.kh-auth-page .notice{background:var(--fd-soft);color:var(--fd-ink);padding:16px 18px;border:1px solid var(--fd-line);border-left:3px solid var(--fd-accent);border-radius:10px;font-size:15px;line-height:1.7}
html.fd-theme[data-fd-style] body.kh-auth-page :focus-visible{outline:2px solid var(--fd-accent);outline-offset:3px}
html.fd-theme[data-fd-style] .login-page{font-size:16px;line-height:1.6}
html.fd-theme[data-fd-style] .login-page .login-form{width:min(460px,100%);min-width:0}
html.fd-theme[data-fd-style] .login-page .login-kicker{font-size:14px;letter-spacing:1.4px;line-height:1.5}
html.fd-theme[data-fd-style] .login-page .login-form h2{font-size:36px;line-height:1.2;margin:18px 0}
html.fd-theme[data-fd-style] .login-page .login-form .sub,html.fd-theme[data-fd-style] .login-page .login-form>p{font-size:16px;line-height:1.7;color:var(--fd-muted);margin-bottom:22px}
html.fd-theme[data-fd-style] .login-page .form-field{margin-bottom:20px;min-width:0}
html.fd-theme[data-fd-style] .login-page .form-field>span{font-size:14px;font-weight:500;line-height:1.5;color:var(--fd-ink)}
html.fd-theme[data-fd-style] .login-page .text-field{font-size:16px;min-height:48px;padding:12px 14px}
html.fd-theme[data-fd-style] .login-page .login-submit{font-size:15px;min-height:49px;margin-top:6px}
html.fd-theme[data-fd-style] .login-page .login-foot{font-size:14px;line-height:1.7;margin-top:24px}
html.fd-theme[data-fd-style] .login-page .hero-copy p{font-size:16px;line-height:1.75}
html.fd-theme[data-fd-style] .login-page .login-footnote{font-size:14px;line-height:1.6}
html.fd-theme[data-fd-style] .login-page #login-error{font-size:15px;line-height:1.6;overflow-wrap:anywhere}
html.fd-theme[data-fd-style] .login-page .login-form>p a{display:inline-block;padding:5px 0;text-underline-offset:3px}
@media(max-width:650px){html.fd-theme[data-fd-style] body.kh-auth-page{padding:18px 12px 80px}html.fd-theme[data-fd-style] body.kh-auth-page main{padding:25px 20px;margin:0 auto;max-width:100%;border-radius:14px}html.fd-theme[data-fd-style] body.kh-auth-page .auth-brand{margin-bottom:24px}html.fd-theme[data-fd-style] .login-page .login-panel{padding:30px 22px;min-width:0}html.fd-theme[data-fd-style] .login-page .login-form h2{font-size:31px}html.fd-theme[data-fd-style] .login-page .login-form{width:100%;max-width:460px}html.fd-theme[data-fd-style] .login-page .login-form>p{overflow-wrap:anywhere}}
