.account-shell{max-width:1380px}
.account-shell a{text-decoration:none}
.account-shell .outline,.account-shell .primary,#create-dialog .outline,#create-dialog .primary,.account-lightbox .outline,.account-lightbox .primary{min-height:40px;font-size:14px;padding:9px 13px}
.account-shell select,.account-shell input:not([type=file]),#create-dialog input{font:inherit;color:inherit;border:1px solid #aeb8b8;border-radius:7px;padding:10px 12px;background:#fff;min-height:42px}
.account-shell .top-actions select{width:auto}
.account-shell select:focus-visible,.account-shell a:focus-visible,#create-dialog input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.account-shell label>span,#create-dialog label>span{display:block;font-weight:650;margin-bottom:8px}
.account-shell .section-title h2{font-size:24px;line-height:1.25;letter-spacing:-.6px}
.account-shell .section-title{margin:0}
.account-message:empty{display:none}
.account-message:not(:empty){padding:12px 16px;border:1px solid var(--gold);border-radius:7px;background:var(--card);margin-bottom:20px;overflow-wrap:anywhere}
.account-hint{font-size:13px;color:#52606b;line-height:1.65}
.account-login{padding:28px;max-width:720px}
.account-login .section-title{margin-bottom:24px}
.account-inline-form{display:flex;align-items:flex-end;gap:12px}
.account-inline-form label{flex:1;min-width:0}
.account-inline-form input{width:100%}
.account-login>.account-hint{margin-top:18px}
.account-code-form{border-top:1px solid var(--line);padding-top:22px;margin-top:22px}
.account-code-form input{letter-spacing:.22em;font-variant-numeric:tabular-nums}
.account-project-bar{display:flex;align-items:center;gap:12px;margin:28px 0 32px}
.account-project-bar label{color:#52606b;font-size:13px}
.account-project-bar select{width:min(330px,55%);font-weight:650}
.account-project-bar #new-project{margin-left:auto}
.account-project-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}
.account-project-heading .section-title{min-width:0}
.account-project-heading h2{overflow-wrap:anywhere}
.account-project-heading .section-title p{font-size:13px;margin-top:6px}
.account-content{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:28px}
.account-gallery{min-width:0}
.account-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.account-section-head h3{font-size:18px;letter-spacing:-.3px}
.account-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.account-filters .outline{min-height:34px;font-size:13px;padding:6px 12px;border-color:var(--line);background:var(--card)}
.account-filters button[aria-pressed=true]{background:var(--accent);color:white;border-color:var(--accent)}
.account-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.account-photo-card{min-width:0}
.account-photo-preview{display:block;position:relative;border:0;padding:0;width:100%;aspect-ratio:2/1;background:#eae6df;color:#52606b;overflow:hidden}
.account-photo-preview img{display:block;width:100%;height:100%;object-fit:cover}
.account-photo-preview .account-photo-placeholder{position:absolute;inset:0;display:grid;place-items:center;font-size:13px;padding:16px}
.account-photo-preview img:not([hidden])~.account-photo-placeholder{display:none}
.account-photo-preview:focus-visible{outline:3px solid var(--gold);outline-offset:-3px}
.account-photo-badge{position:absolute;top:12px;left:12px;padding:4px 10px;border-radius:7px;background:#fffffff0;color:var(--accent);font-size:12px;font-weight:650;pointer-events:none}
.account-photo-badge.is-result{background:var(--accent);color:white}
.account-photo-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}
.account-photo-caption h4{font-size:15px;line-height:1.4;margin:0}
.account-photo-caption p{font-size:12px;color:#52606b;margin-top:4px}
.account-photo-caption .outline{min-height:34px;font-size:12px;padding:6px 10px}
.account-description{padding:24px;position:sticky;top:24px}
.account-description h4{font-size:19px;line-height:1.45;letter-spacing:-.3px;margin:0 0 16px;overflow-wrap:anywhere}
.account-description-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:13;-webkit-box-orient:vertical;overflow:hidden}
.account-description-text.is-expanded{display:block}
.account-badge{font-size:11px;padding:4px 8px;background:#f5f0e5;color:#665431;border-radius:5px;white-space:nowrap}
.account-text-button{font:inherit;background:none;border:0;padding:12px 0;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.account-description-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px;padding-top:20px;border-top:1px solid var(--line)}
.account-description-actions .outline{font-size:13px;min-height:36px;padding:7px 10px}
.account-empty{padding:40px 24px;text-align:center;border:1px dashed #b3aa98;border-radius:12px;color:#52606b;grid-column:1/-1;background:#faf9f6}
.account-empty h2{font-size:22px;color:var(--accent);margin-bottom:10px}
.account-empty p{max-width:490px;margin:auto}
.account-empty button{margin-top:18px}
.account-create-form input{width:100%}
.account-create-form>.action-buttons{justify-content:flex-end;margin-top:24px}
#create-dialog{max-width:480px}
.account-lightbox{width:min(1200px,calc(100% - 28px))}
.account-lightbox h2{font-size:18px}
.account-preview-stage{min-height:150px;display:grid;place-items:center;background:#f6f5f1;border-radius:8px;overflow:hidden}
.account-preview-stage img{display:block;max-width:100%;max-height:65dvh;object-fit:contain}
.account-preview-stage p{padding:36px;text-align:center;color:#52606b}
.account-preview-actions{display:flex;justify-content:space-between;gap:12px;margin-top:18px;flex-wrap:wrap}
@media(max-width:1050px){.account-content{grid-template-columns:minmax(0,1fr) 300px;gap:20px}.account-photo-grid{grid-template-columns:1fr}}
@media(max-width:760px){.account-content{grid-template-columns:1fr}.account-description{position:static}.account-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-project-heading{align-items:flex-start;flex-direction:column}.account-project-bar{flex-wrap:wrap}.account-project-bar select{flex:1;width:50%}.account-project-bar #new-project{margin-left:0}.account-login{padding:22px}}
@media(max-width:480px){.account-photo-grid{grid-template-columns:1fr;gap:16px}.account-inline-form{flex-direction:column;align-items:stretch}.account-project-heading .action-buttons{width:100%}.account-project-heading .action-buttons>*{flex:1}.account-project-bar label{display:none}.account-project-bar select{width:0;min-width:0}.account-project-bar #new-project{font-size:12px;padding-inline:10px}.account-description{padding:20px}}

.account-content{display:block}
.account-description{position:static;max-width:920px;margin:0 auto;padding:32px}
.account-description-text{display:block;font-size:16px;line-height:1.9}
.account-description #expand-description{display:none}
.account-project-heading{margin-top:26px}
.app-sidebar .account-project-bar{display:grid;gap:10px;margin:0;padding:22px 0;border-top:1px solid var(--line)}
.app-sidebar .account-project-bar select{width:100%;min-width:0;font:inherit;color:var(--accent);padding:10px;border:1px solid #bbc1c3;border-radius:7px;background:white}
.app-sidebar .account-project-bar #new-project{margin:0;font-size:13px}
#compare-hint{margin:-4px 0 18px}
.account-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.account-comparison{position:relative;width:100%;aspect-ratio:3/2;background:#eae6df;overflow:hidden;--split:50%}
.account-comparison img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#eae6df}
.account-comparison img.compare-before{clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.account-comparison .compare-line{position:absolute;left:var(--split);top:0;bottom:0;width:2px;background:white;pointer-events:none;transform:translateX(-50%)}
.account-comparison .compare-line:after{content:'↔';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:white;color:var(--accent);box-shadow:0 1px 6px #0003;font-size:22px}
.account-comparison input[type=range]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;touch-action:pan-y}
.account-comparison:focus-within{outline:3px solid var(--gold);outline-offset:-3px}
.account-comparison .is-after{left:auto;right:12px;background:var(--accent);color:white}
.account-photo-caption .action-buttons{gap:6px;flex-wrap:wrap;justify-content:flex-end}
#preview-comparison{width:100%}#preview-comparison .account-comparison{max-height:65dvh;aspect-ratio:3/2}
@media(max-width:1100px){.account-photo-grid{grid-template-columns:1fr}}
@media(max-width:800px){.account-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-sidebar .account-project-bar{padding:10px 0;grid-template-columns:1fr auto}.app-sidebar .account-project-bar label{grid-column:1/-1}.account-description{padding:22px}}
@media(max-width:560px){.account-photo-grid{grid-template-columns:1fr}.account-photo-caption{align-items:flex-start}}

/* Match Studio: one page header, one compact project toolbar, then images. */
.account-project-heading{align-items:center;gap:16px;margin:0 0 18px}
.account-project-heading .section-title{flex:1;min-width:0;padding-block:2px}
.account-project-heading .section-title h2{font-size:22px;line-height:1.25}
.account-project-heading .section-title p{margin-top:5px;font-size:12px}
.account-project-heading .account-filters{margin:0;align-items:center;gap:8px}
.account-project-heading #compare-hint{margin:0 0 0 3px;display:inline-grid;place-items:center;width:24px;height:24px;font-size:19px;color:#68717a;cursor:help}
@media(max-width:760px){.account-project-heading{flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}.account-project-heading .section-title{flex-basis:180px}}
@media(max-width:480px){#gallery-tools{width:100%}.account-project-heading .account-filters{gap:6px}.account-project-heading .section-title h2{font-size:20px}}

.project-overview-toolbar{display:flex;margin:0 0 22px}.project-overview-toolbar label{width:min(420px,100%)}.project-overview-toolbar input{width:100%}
.project-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.project-overview-card a{display:block;color:inherit}.project-cover{position:relative;aspect-ratio:16/10;background:#eae6df;display:grid;place-items:center;color:#68717a;font-size:13px}.project-cover img{width:100%;height:100%;object-fit:cover}.project-cover img:not([hidden])+span{display:none}
.project-overview-caption{padding:16px}.project-overview-caption h2{font-size:18px;line-height:1.4;margin-bottom:7px}.project-overview-card:hover{border-color:var(--gold)}
.account-project-heading{margin:0 0 16px}.account-project-heading #back-projects{padding:4px 0;text-decoration:none;font-size:13px}.account-project-heading #gallery-tools{margin-left:auto}.account-photo-caption p{display:none}
@media(max-width:1150px){.project-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.project-overview-grid{grid-template-columns:1fr}.account-project-heading #gallery-tools{margin-left:0}}

/* Quiet gallery chrome: photographs retain the visual hierarchy. */
.account-photo-caption{padding:10px 14px;gap:10px;min-height:52px}
.account-photo-caption h4{font-size:14px}
.account-photo-caption .action-buttons{gap:5px}
.account-photo-caption button{min-height:32px;padding:6px 9px;font-size:11px}
.account-project-heading{padding-bottom:10px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.account-comparison .account-photo-placeholder{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.account-comparison .account-photo-placeholder button{pointer-events:auto;position:relative;z-index:3}
.account-comparison .account-photo-placeholder[hidden]{display:none}

@media(min-width:1101px) and (min-height:600px){
  .shell.app-main:has(#workspace:not([hidden])){height:100dvh;display:flex;flex-direction:column;overflow:hidden}
  #workspace{flex:1;min-height:0;display:flex;flex-direction:column}
  #project-panel:not([hidden]){flex:1;min-height:0;display:flex;flex-direction:column}
  .account-project-heading{flex-shrink:0}
  .account-content{flex:1;min-height:0}
  .account-gallery{height:100%;overflow:auto;scrollbar-gutter:stable}
  .account-content #description-panel{max-height:100%;overflow:auto}
  .account-photo-grid{gap:16px}
  .account-photo-grid .account-comparison{aspect-ratio:auto;height:max(180px,calc((100dvh - 246px)/2))}
  .account-photo-grid .account-comparison img{object-fit:cover}
  #project-overview:not([hidden]){display:flex;flex-direction:column;min-height:0;flex:1}
  .project-overview-toolbar{flex-shrink:0}
  .project-overview-grid{overflow:auto;min-height:0;align-content:start}
}

.account-lightbox[open]{display:flex;flex-direction:column;width:min(1200px,calc(100% - 28px));max-height:94dvh;padding:18px}
.account-lightbox .dialog-head{flex-shrink:0;margin-bottom:12px;gap:12px}
.account-lightbox .dialog-head h2{flex:1}
.account-lightbox #preview-fullscreen{font-size:12px}
.account-lightbox .account-preview-stage{flex:1;min-height:0;height:65dvh;width:100%}
.account-lightbox #preview-comparison{height:100%}
.account-lightbox #preview-comparison .account-comparison{height:100%;max-height:none;aspect-ratio:auto}
.account-lightbox .account-preview-stage img{width:100%;height:100%;max-height:none;object-fit:cover}
.account-lightbox .account-preview-actions{flex-shrink:0;margin-top:12px}
.account-lightbox:fullscreen,.account-lightbox.is-fullscreen{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border-radius:0}
.account-lightbox:fullscreen .dialog-head,.account-lightbox.is-fullscreen .dialog-head{padding:10px 14px;margin:0}
.account-lightbox:fullscreen .account-preview-actions,.account-lightbox.is-fullscreen .account-preview-actions{padding:10px 14px;margin:0}
.account-lightbox:fullscreen .account-preview-stage,.account-lightbox.is-fullscreen .account-preview-stage{border-radius:0}
.account-lightbox.is-fullscreen{position:fixed;inset:0}

.project-overview-toolbar{justify-content:space-between;gap:12px}
.project-overview-toolbar select{padding:10px;border:1px solid #bcc4c8;border-radius:7px;background:white;color:inherit}
.project-overview-card a{text-decoration:none}
.project-open{display:block;color:#9b792a;border-top:1px solid var(--line);padding-top:10px;margin-top:10px;font-weight:600}
.project-overview-card{box-shadow:0 1px 2px #102b3c0d}
