:root{--paper:#f6f4ee;--ink:#303329;--olive:#57614c;--olive-light:#e1e8d9;--line:#d8d8cd;--soft:#e9e8df;--error:#883b32}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 Arial,sans-serif}a{color:inherit;text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--olive);outline-offset:4px}input,select,textarea{width:100%;border:1px solid #a5aa99;border-radius:0;background:#fffdf8;color:var(--ink);padding:.7rem}textarea{resize:vertical;min-height:75px}label{display:block;font-size:.85rem;letter-spacing:.015em}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;border:1px solid var(--olive);border-radius:0;padding:.7rem 1rem;background:transparent;color:var(--ink);text-decoration:none;line-height:1.4}.button{background:var(--olive);color:white;padding:.95rem 1.4rem;letter-spacing:.06em;font-size:.8rem;text-transform:uppercase}.button.secondary{background:transparent;color:var(--ink)}.text-button{padding:0;border:0;background:transparent;text-decoration:underline;text-underline-offset:5px}.portal-header{border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:1rem 5vw;gap:1rem}.brand{display:flex;flex-direction:column;align-items:center;text-decoration:none;line-height:1.2}.brand span{font-size:1.3rem;letter-spacing:.25rem}.brand small{font:italic 1.15rem Georgia,serif}.portal-header nav{display:flex;gap:1.4rem;align-items:center;font-size:.85rem}.portal-header form{margin:0}.portal-main{max-width:1600px;margin:auto;padding:3rem 5vw 5rem}.portal-footer{border-top:1px solid var(--line);padding:2rem 5vw;display:flex;justify-content:space-between;font-size:.75rem}.eyebrow{font-size:.7rem;text-transform:uppercase;letter-spacing:.16em;font-weight:600}.fine-print{font-size:.8rem;color:#606454}h1,h2,h3{font-family:Georgia,serif;font-weight:400;line-height:1.15}h1{font-size:clamp(2rem,4vw,3.6rem);margin:.7rem 0 1rem}h2{font-size:1.6rem}.page-heading{display:flex;gap:2rem;align-items:center;justify-content:space-between;margin-bottom:2rem}.page-heading p{max-width:670px}.auth-panel,.form-panel{max-width:640px;margin:2rem auto 5rem}.auth-panel form{display:grid;gap:1rem;margin:2rem 0}.auth-panel .secondary-form{margin-top:1rem}.form-panel form>p{margin:1.4rem 0}.form-panel label{margin-bottom:.3rem}.errorlist,.error{color:var(--error)}.notice{border:1px solid var(--line);padding:1rem 1.2rem;background:var(--soft)}.gallery-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}.session-card{border:1px solid var(--line);padding:1.6rem;text-decoration:none;background:var(--olive-light)}.session-card:hover{border-color:var(--olive)}.session-card h2{margin:.5rem 0}.session-card p{overflow-wrap:anywhere}.session-meta{display:flex;justify-content:space-between;gap:1rem;font-size:.75rem;margin-top:2rem}.studio-tools,.submission-history{border:1px solid var(--line);padding:1rem;margin:2rem 0}summary{cursor:pointer}.tools-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:2rem;padding:1.5rem 0}.tools-grid input{margin:.3rem 0}.action-tools form{display:grid;gap:.8rem}.targets-form{display:grid;gap:.6rem}.selection-toolbar{position:sticky;top:0;z-index:5;background:var(--paper);border-bottom:1px solid var(--line);padding:.8rem 0;box-shadow:0 4px 8px #30332905}.count-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.5rem}.count-item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:var(--soft);padding:.7rem .9rem;font-size:.75rem}.count-item strong{font-size:1.1rem;white-space:nowrap}.count-item small{font-weight:400;font-size:.75rem}.filter-row{display:flex;align-items:end;gap:1rem;margin-top:.8rem}.filter-row label{flex:1}.filter-row input,.filter-row select{padding:.4rem .6rem;font-size:.85rem}.filter-row p{font-size:.75rem;margin:.5rem 0;min-width:100px}.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.4rem 1rem;margin:1.5rem 0}.photo-card{min-width:0;border:1px solid var(--line);background:#fffdf8}.photo-card[data-priority=keep]{border-color:var(--olive);box-shadow:inset 0 -3px var(--olive)}.photo-card .image-button{display:block;width:100%;padding:0;border:0;background:var(--soft);position:relative}.photo-card img{display:block;width:100%;aspect-ratio:4/5;object-fit:contain}.photo-card .card-details{padding:.8rem}.photo-name{overflow-wrap:anywhere;font-size:.8rem;margin:0 0 .6rem;font-weight:600}.photo-card select{font-size:.8rem;padding:.45rem .2rem}.photo-card textarea{font-size:.8rem;margin:.35rem 0 0;min-height:65px;padding:.5rem}.edit-check{display:flex;align-items:center;gap:.4rem;margin:.5rem 0}.edit-check input{width:auto;min-width:18px;min-height:18px}.drive-link{font-size:.75rem;display:inline-block;margin:.4rem 0}.readonly-note{white-space:pre-wrap;font-size:.85rem;overflow-wrap:anywhere}.priority-label{display:block;font-size:.75rem;background:var(--soft);padding:.4rem}.removed{opacity:.65}.removed-image{aspect-ratio:4/5;display:grid;place-items:center;background:var(--soft);font-size:.85rem;text-align:center;padding:1rem}.submit-panel{border-top:1px solid var(--line);padding:2rem 0;display:flex;align-items:center;gap:2rem;flex-wrap:wrap}.submit-panel p{max-width:650px}.submit-panel .error{width:100%}.empty-state{padding:3rem 0;text-align:center}.viewer{border:0;padding:1rem;background:var(--paper);color:var(--ink);width:min(1250px,96vw);max-height:95dvh;overflow:auto}.viewer::backdrop,.confirm-dialog::backdrop{background:#151810db}.viewer-top{display:flex;justify-content:space-between;align-items:center;font-size:.8rem;margin-bottom:.5rem}.viewer-top button{border:0}.viewer-image-wrap{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.viewer-image-wrap img{object-fit:contain;min-width:0;max-width:calc(100% - 110px);height:60dvh}.viewer-image-wrap button{border:0;padding:.7rem;font-size:1.5rem}#viewer-details{max-width:700px;margin:1rem auto}#viewer-details select{max-width:300px}#viewer-details textarea{min-height:65px}.confirm-dialog{border:1px solid var(--line);padding:2rem;background:var(--paper);color:var(--ink);max-width:560px;width:92vw}.dialog-actions{display:flex;gap:1rem;flex-wrap:wrap}.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;z-index:20;background:white;padding:1rem}[hidden]{display:none!important}@media(max-width:1100px){.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tools-grid{grid-template-columns:1fr 1fr}.count-item{display:block}.count-item strong{display:block}}@media(max-width:760px){.portal-main{padding:2rem 4vw 3rem}.portal-header{padding:.9rem 4vw}.portal-header nav{gap:1rem}.page-heading{display:block}.page-heading .button{margin-top:.5rem}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.9rem .6rem}.photo-card .card-details{padding:.6rem}.photo-card select{font-size:.75rem}.count-grid{grid-template-columns:repeat(3,1fr);gap:.3rem}.count-item{font-size:.65rem;padding:.35rem .5rem}.count-item strong{font-size:1rem}.filter-row{flex-wrap:wrap;gap:.5rem}.filter-row label{min-width:40%}.filter-row p{margin:0;min-width:0}.filter-row button{font-size:.7rem;padding:.5rem}.selection-toolbar{padding:.5rem 0}.tools-grid{grid-template-columns:1fr}.viewer{width:100vw;max-width:100vw;max-height:100dvh;padding:.7rem}.viewer-image-wrap img{max-width:calc(100% - 70px);height:50dvh}.viewer-image-wrap button{padding:.2rem}.portal-footer span{max-width:140px;text-align:right}.submit-panel{display:block}.photo-name{font-size:.7rem}.edit-check{font-size:.7rem}}@media(prefers-reduced-motion:no-preference){button,.button{transition:background .15s}}

.brand .studio-logo{display:block;width:90px;height:64px}

.directory-toolbar,.rename-tools,.rename-confirm{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.directory-toolbar{border-bottom:1px solid var(--line);padding-bottom:1rem}.section-heading{margin-top:3rem}.rename-tools{margin:1.5rem 0}.rename-tools p{margin:0}.rename-confirm{justify-content:flex-start;margin:1.5rem 0}.table-scroll{overflow:auto;max-width:100%;margin:2rem 0}.rename-table{border-collapse:collapse;width:100%;font-size:.85rem}.rename-table th,.rename-table td{border:1px solid var(--line);padding:.9rem;text-align:left;vertical-align:top;overflow-wrap:anywhere;min-width:170px}.rename-table th{background:var(--soft)}.rename-table td small{display:block;margin-top:.35rem;color:#606454}

/* Portal guides share the studio's typography and remain readable on phones. */
.guide-heading{max-width:850px;margin:0 0 3rem}
.guide-intro{font-size:1.15rem;max-width:660px;color:#606454}
.guide-actions{display:flex;gap:1.5rem;align-items:center;flex-wrap:wrap;margin-top:1.5rem}
.guide-layout{display:grid;grid-template-columns:220px minmax(0,780px);gap:4rem;align-items:start}
.guide-contents{position:sticky;top:1.5rem;border-top:1px solid var(--line);padding-top:1rem;font-size:.85rem}
.guide-contents ol{padding-left:1.2rem;margin-bottom:0}
.guide-contents li{margin:.65rem 0}
.guide-content{min-width:0;line-height:1.75}
.guide-content section{margin:0 0 3rem;scroll-margin-top:1.5rem}
.guide-content section+section{border-top:1px solid var(--line);padding-top:1.5rem}
.guide-content h2{margin-top:0;font-size:1.9rem}
.guide-content li{margin:.65rem 0}
.guide-content code{overflow-wrap:anywhere;font-size:.9em}
.guide-content .table-scroll{margin:1.5rem 0}
.guide-faq dt{font-weight:600;margin-top:1.5rem}
.guide-faq dd{margin:.4rem 0 0}
@media(max-width:900px){.guide-layout{grid-template-columns:minmax(0,1fr);gap:2.5rem}.guide-contents{position:static}.guide-contents ol{columns:2;column-gap:2rem}.guide-contents li{break-inside:avoid}}
@media(max-width:760px){.portal-header nav{flex:1;justify-content:flex-end;flex-wrap:wrap;column-gap:1rem;row-gap:.4rem}.portal-header nav>a,.portal-header nav>form{white-space:nowrap}.guide-heading{margin-bottom:2rem}.guide-content h2{font-size:1.55rem}.guide-content ol,.guide-content ul{padding-left:1.3rem}.guide-intro{font-size:1rem}.guide-contents ol{columns:1}.guide-actions{gap:1rem}}

.captcha-explanation{font-size:.85rem;margin:0;color:#606454}.auth-panel .g-recaptcha{justify-self:start;min-height:78px;width:304px;max-width:100%}@media(max-width:340px){.auth-panel .g-recaptcha{transform:scale(.9);transform-origin:left top;margin-bottom:-8px}}

/* Direct selection controls: one active level, sized for touch. */
.priority-picker{border:0;padding:0;margin:0;min-width:0;max-width:100%}
.priority-picker legend{font-size:.85rem;padding:0;margin-bottom:.4rem}
.priority-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.35rem}
.priority-button{min-height:46px;padding:.5rem .3rem;font-size:.8rem;line-height:1.25;letter-spacing:0;overflow-wrap:anywhere}
.priority-button[data-priority="keep"]{grid-column:1/-1}
.priority-button[aria-pressed="true"]{background:var(--olive);color:#fff;border-color:var(--olive)}
.priority-button:hover:not([aria-pressed="true"]){background:var(--soft)}
#viewer-details .priority-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}
#viewer-details .priority-button[data-priority="keep"]{grid-column:auto}
@media(max-width:760px){.photo-card .priority-button{font-size:.72rem;min-height:46px}#viewer-details .priority-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}#viewer-details .priority-button[data-priority="keep"]{grid-column:1/-1}}
@media(max-width:360px){.photo-card .priority-button[data-priority="reject"],.photo-card .priority-button[data-priority="unreviewed"]{grid-column:1/-1}}

.mobile-photo-layout{display:none}
@media(max-width:760px){
  .mobile-photo-layout{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin:1rem 0}
  .mobile-photo-layout span{font-size:.85rem;margin-right:.25rem}
  .mobile-photo-layout button{min-height:46px;padding:.5rem .8rem;font-size:.85rem}
  .mobile-photo-layout button[aria-pressed="true"]{background:var(--olive);color:#fff}
  .photo-grid[data-mobile-columns="1"]{grid-template-columns:minmax(0,1fr)}
  .photo-grid[data-mobile-columns="1"] .priority-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}
  .photo-grid[data-mobile-columns="1"] .priority-button{font-size:.85rem}
  .photo-grid[data-mobile-columns="1"] .priority-button[data-priority="reject"],.photo-grid[data-mobile-columns="1"] .priority-button[data-priority="unreviewed"]{grid-column:auto}
}

.language-switcher{display:flex;justify-content:flex-end;gap:.4rem;flex-wrap:wrap;padding:.6rem 5vw;border-bottom:1px solid var(--line)}
.language-switcher a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.45rem .8rem;font-size:.85rem;text-decoration:none;border:1px solid transparent}
.language-switcher a[aria-current="true"]{border-color:var(--olive);background:var(--soft);font-weight:600}
html:lang(zh-hans) body{font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif}
html:lang(zh-hant) body{font-family:Arial,"PingFang TC","Microsoft JhengHei",sans-serif}
@media(max-width:760px){.language-switcher{justify-content:center;padding:.4rem 4vw}.language-switcher a{padding:.4rem .7rem}}

.viewer-boundary{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.5rem 1rem;background:var(--soft);padding:.65rem 1rem;margin-bottom:1rem;font-size:.85rem}
.viewer-boundary p{margin:0}
.viewer-boundary button{min-height:44px;font-size:.85rem;padding:.5rem .9rem;background:var(--paper)}
.viewer-single .viewer-image-wrap{justify-content:center}
.viewer-single .viewer-image-wrap img{max-width:100%}

.client-backup-section{margin-top:3rem;border-top:1px solid var(--line);padding-top:1.5rem;scroll-margin-top:1.5rem}
.client-backup-section>p{max-width:850px}
.backup-code-list,.backup-replace{border:1px solid var(--line);padding:1rem;margin:1rem 0}
.backup-code-grid{list-style:none;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
.backup-code-grid li{display:flex;align-items:center;gap:.8rem;padding:.9rem;border:1px solid var(--line);background:#fffdf8;min-width:0}
.backup-number{font-size:.8rem;color:#606454}
.backup-code-grid li>div{flex:1;min-width:0}
.backup-code-grid code{display:block;font-size:1rem;overflow-wrap:anywhere}
.backup-code-grid small{display:block;font-size:.75rem;color:#606454;overflow-wrap:anywhere}
.backup-code-grid button{font-size:.8rem;min-height:44px;padding:.45rem .7rem}
.backup-replace form{margin-top:1rem}
.backup-code-input{font-family:monospace;letter-spacing:.08em}
@media(max-width:900px){.backup-code-grid{grid-template-columns:minmax(0,1fr)}}

/* Record retention and reversible retirement */
.directory-tabs { display:flex; flex-wrap:wrap; gap:1.5rem; margin:1.5rem 0; }
.directory-tabs [aria-current="page"] { font-weight:700; text-decoration-thickness:2px; }
.lifecycle-panel,.archive-panel { margin:2rem 0; padding:1.5rem; border:1px solid var(--line,#d9d9cf); border-radius:8px; }
.archive-list { padding-left:1.25rem; }
.archive-list li { padding:.75rem 0 1rem; border-bottom:1px solid var(--line,#d9d9cf); overflow-wrap:anywhere; }
.lifecycle-panel form { display:grid; gap:1rem; justify-items:start; }

.analytics-filters{display:flex;flex-wrap:wrap;gap:1rem;align-items:end;margin:2rem 0}.analytics-filters>label{max-width:18rem}.analytics-filters .edit-check{align-self:center}.analytics-counts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.analytics-counts>div{background:var(--soft);padding:1.2rem}.analytics-counts span{display:block;font-size:.85rem}.analytics-counts strong{display:block;font:2.5rem Georgia,serif;margin-top:.5rem}.analytics-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;margin:2rem 0}.analytics-table{border-collapse:collapse;width:100%;font-size:.9rem;text-align:left}.analytics-table th,.analytics-table td{padding:.8rem;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.analytics-table th{background:var(--soft)}.analytics-table td{min-width:5rem}.analytics-table a{overflow-wrap:anywhere}@media(max-width:760px){.analytics-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.analytics-columns{grid-template-columns:minmax(0,1fr)}.analytics-filters>label{width:100%;max-width:none}.analytics-filters{align-items:start}.analytics-table{font-size:.8rem}.analytics-table th,.analytics-table td{padding:.6rem}}

/* Customer quickstart: three steps, annotated screenshots, then optional reference. */
.guide-quickstart{max-width:1150px;margin:0 0 3rem}.quickstart-heading{max-width:730px;margin-bottom:2rem}.quickstart-heading h2{font-size:clamp(1.8rem,3vw,2.6rem);margin:.5rem 0 1rem}.quickstart-steps{list-style:none;margin:0;padding:0}.quickstart-step{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,1.5fr);align-items:start;gap:3rem;padding:2.5rem 0;border-top:1px solid var(--line)}.quickstart-number{display:block;font:italic 2.5rem Georgia,serif;color:var(--olive)}.quickstart-copy h3{font-size:1.7rem;margin:.6rem 0 1rem}.quickstart-copy p{margin:.7rem 0 1rem}.quickstart-save{border-left:3px solid var(--olive);padding-left:1rem;font-size:.9rem}.quickstart-figure{margin:0;min-width:0}.quickstart-photo-example{max-width:360px;justify-self:center;width:100%}.guide-shot{display:block;border:1px solid var(--line);background:var(--paper);text-decoration:none}.guide-shot-window{display:block;position:relative;overflow:hidden}.guide-shot-window>img{position:absolute;max-width:none;height:auto;display:block}.guide-pin{position:absolute;z-index:1;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;border:2px solid #fffdf8;background:var(--olive);color:white;font:bold 14px Arial,sans-serif;transform:translate(-20%,-85%);box-shadow:0 1px 4px #30332950}.quickstart-annotations{list-style:none;counter-reset:annotation;padding:0;margin:1rem 0 0;font-size:.85rem}.quickstart-annotations li{counter-increment:annotation;display:flex;gap:.7rem;margin:.7rem 0;align-items:flex-start}.quickstart-annotations li:before{content:counter(annotation);box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:2px solid #fffdf8;background:var(--olive);color:#fff;border-radius:50%;font:bold 14px/1 Arial,sans-serif;box-shadow:0 1px 4px #30332950}.guide-more{max-width:1150px;border-top:1px solid var(--line);padding-top:1.4rem}.guide-more>summary{font:1.5rem Georgia,serif;min-height:44px;padding:.5rem 0}.guide-more>.guide-layout{margin-top:2.5rem}@media(max-width:760px){.quickstart-step{grid-template-columns:minmax(0,1fr);gap:1.25rem;padding:1.7rem 0}.quickstart-number{font-size:2rem}.quickstart-copy h3{font-size:1.45rem}.quickstart-figure{width:100%}.quickstart-annotations{font-size:.85rem}.guide-more>summary{font-size:1.25rem}}
.shot-code-en .guide-shot-window{aspect-ratio:664/180}.shot-code-en img{width:175.00000%;left:-37.50000%;top:-230.00000%}
.shot-code-en .guide-pin-2{left:3.313%;top:31.498%}
.shot-code-en .guide-pin-3{left:3.313%;top:68.155%}
.shot-choose-en .guide-shot-window{aspect-ratio:274/382}.shot-choose-en img{width:424.08759%;left:-16.78832%;top:-245.02618%}
.shot-choose-en .guide-pin-1{left:13.099%;top:20.674%}
.shot-choose-en .guide-pin-2{left:13.099%;top:61.823%}
.shot-choose-en .guide-pin-3{left:13.099%;top:77.360%}
.shot-submit-en .guide-shot-window{aspect-ratio:584/347}.shot-submit-en img{width:198.97260%;left:-49.48630%;top:-121.90202%}
.shot-submit-en .guide-pin-1{left:9.418%;top:36.777%}
.shot-submit-en .guide-pin-2{left:36.712%;top:75.502%}
.shot-code-zh-hans .guide-shot-window{aspect-ratio:664/180}.shot-code-zh-hans img{width:175.00000%;left:-37.50000%;top:-230.00000%}
.shot-code-zh-hans .guide-pin-2{left:3.313%;top:31.498%}
.shot-code-zh-hans .guide-pin-3{left:3.313%;top:68.155%}
.shot-choose-zh-hans .guide-shot-window{aspect-ratio:274/382}.shot-choose-zh-hans img{width:424.08759%;left:-16.78832%;top:-238.48168%}
.shot-choose-zh-hans .guide-pin-1{left:13.099%;top:20.519%}
.shot-choose-zh-hans .guide-pin-2{left:13.099%;top:61.668%}
.shot-choose-zh-hans .guide-pin-3{left:13.099%;top:77.205%}
.shot-submit-zh-hans .guide-shot-window{aspect-ratio:584/322}.shot-submit-zh-hans img{width:198.97260%;left:-49.48630%;top:-135.40373%}
.shot-submit-zh-hans .guide-pin-1{left:9.418%;top:39.570%}
.shot-submit-zh-hans .guide-pin-2{left:28.938%;top:73.353%}
.shot-code-zh-hant .guide-shot-window{aspect-ratio:664/180}.shot-code-zh-hant img{width:175.00000%;left:-37.50000%;top:-230.00000%}
.shot-code-zh-hant .guide-pin-2{left:3.313%;top:31.498%}
.shot-code-zh-hant .guide-pin-3{left:3.313%;top:68.155%}
.shot-choose-zh-hant .guide-shot-window{aspect-ratio:274/382}.shot-choose-zh-hant img{width:424.08759%;left:-16.78832%;top:-238.48168%}
.shot-choose-zh-hant .guide-pin-1{left:13.099%;top:20.519%}
.shot-choose-zh-hant .guide-pin-2{left:13.099%;top:61.668%}
.shot-choose-zh-hant .guide-pin-3{left:13.099%;top:77.205%}
.shot-submit-zh-hant .guide-shot-window{aspect-ratio:584/322}.shot-submit-zh-hant img{width:198.97260%;left:-49.48630%;top:-135.40373%}
.shot-submit-zh-hant .guide-pin-1{left:9.418%;top:39.570%}
.shot-submit-zh-hant .guide-pin-2{left:28.938%;top:73.353%}
.customer-guide-heading{margin-bottom:1.4rem}.customer-guide-heading .guide-actions{margin-top:0}.quickstart-heading{margin-bottom:1.25rem}

.quickstart-copy .quickstart-annotations{margin-top:1.25rem;font-size:.9rem;line-height:1.6}

/* Staff invitation language choices remain touch and keyboard accessible. */
.invitation-language{border:0;padding:0;margin:1rem 0}.invitation-language legend{font-size:.85rem;margin-bottom:.6rem}.invitation-language-options{display:flex;gap:.5rem;flex-wrap:wrap;margin:.5rem 0}.invitation-language-options>div{display:contents}.invitation-language-options label{display:flex;align-items:center;gap:.45rem;min-height:46px;padding:.55rem .75rem;border:1px solid var(--olive);cursor:pointer;flex:1;white-space:nowrap;justify-content:center}.invitation-language-options input{width:18px;min-width:18px;height:18px;padding:0;margin:0;accent-color:var(--olive)}.invitation-language-options label:has(input:checked){background:var(--olive);color:white}.invitation-language-options label:focus-within{outline:3px solid var(--olive);outline-offset:3px}.form-panel .invitation-language-options label{margin:0}.invitation-form .button{margin-top:.3rem}

.photographer-edit-panel{border:1px solid var(--line);padding:1.2rem;margin:1.5rem 0;background:var(--soft)}.photographer-edit-panel h2{margin-top:0}.photographer-edit-panel p{max-width:850px}.photographer-edit-panel #staff-edit-options{margin-top:1.2rem;max-width:750px}.photographer-edit-panel #staff-edit-feedback:empty{display:none}.staff-editing .photographer-edit-panel{border:2px solid var(--olive)}.staff-save-photo{width:100%;margin:.8rem 0 .3rem;min-height:46px}.photographer-change{border-top:1px solid var(--line);padding:1rem 0}.photographer-change h3{font-size:1.15rem}.photographer-change p{overflow-wrap:anywhere}

.booking-management{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:3rem}.booking-type-list{display:grid;gap:1rem}.booking-type-card,.booking-add{border:1px solid var(--line);padding:1.5rem;background:#fffdf7;min-width:0}.booking-type-card h3{font-size:1.4rem;margin-top:0;overflow-wrap:anywhere}.booking-add{align-self:start}.booking-add form>p{margin:1.3rem 0}.booking-add label{margin-bottom:.4rem}.booking-add .helptext{display:block;font-size:.8rem;margin-top:.4rem;color:#606454}.booking-remove-confirm{display:flex;gap:.75rem;align-items:start;margin:1.2rem 0}.booking-remove-confirm input{width:20px;height:20px;flex-shrink:0;margin-top:3px}@media(max-width:900px){.booking-management{grid-template-columns:minmax(0,1fr);gap:2rem}.booking-type-card,.booking-add{padding:1.2rem}}

.website-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:1.5rem;margin:2rem 0}.website-photo-card{border:1px solid var(--line);background:#fffdf7;min-width:0}.website-photo-card>img{display:block;width:100%;height:250px;object-fit:contain;background:var(--soft)}.website-photo-card>div{padding:1.2rem}.website-photo-card h2{font-size:1.35rem;overflow-wrap:anywhere}.website-photo-card p{overflow-wrap:anywhere}.website-photo-card form{margin-top:1rem}.website-current-photo{display:block;width:100%;max-height:350px;object-fit:contain;background:var(--soft)}.website-form form>p,.website-form>p{margin:1.2rem 0}.website-form label{margin-bottom:.4rem}.website-form input[type=radio],.website-form input[type=checkbox]{width:20px;height:20px;vertical-align:middle;margin-right:.5rem}.website-form input[type=file]{max-width:100%}.website-form .helptext{font-size:.8rem;display:block}.website-import-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.website-import-tools .studio-tools{align-self:start}.website-pagination{display:flex;gap:2rem;align-items:center;justify-content:center;margin-top:2rem}@media(max-width:760px){.website-import-tools{grid-template-columns:minmax(0,1fr);gap:0}}

/* A pending filename change is an explicit photographer action. */
.rename-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem 1.2rem;margin-bottom:.55rem}.rename-action-row form{margin:0}.rename-ready-note{flex:1 1 240px;font-size:.9rem;font-weight:600;max-width:660px}.rename-tools.is-ready{border-left:4px solid var(--olive);background:var(--soft);padding:1rem 1.2rem}.rename-tools.is-ready #rename-button{background:var(--olive);color:white;font-weight:600}#rename-button:disabled{cursor:not-allowed}@media(max-width:760px){.rename-action-row form{width:100%}#rename-button{width:100%;min-height:46px}.rename-ready-note{flex-basis:100%}}

/* Photographer instructions follow the Studio and Website management menus. */
.photographer-guide-layout .guide-contents{max-height:calc(100vh - 3rem);overflow-y:auto;padding-right:.5rem}.photographer-guide-layout .guide-contents ol{list-style:none;padding-left:0;columns:1}.guide-chapter-list>li{margin:0 0 1.1rem}.guide-chapter-list>li>a{font-weight:600}.guide-chapter-list details{margin-top:.3rem}.guide-chapter-list summary{cursor:pointer;padding:.35rem 0;font-size:.8rem}.photographer-guide-layout .guide-chapter-list details ol{border-left:1px solid var(--line);margin:.3rem 0 .8rem;padding-left:.8rem}.guide-chapter-list details a{display:block}.guide-topic{margin:2.5rem 0;scroll-margin-top:1.5rem}.guide-topic h3{font-size:1.4rem;margin:0 0 1rem}.guide-topic h4{font-size:1.1rem;margin:1.8rem 0 .8rem;scroll-margin-top:1.5rem}@media(max-width:900px){.photographer-guide-layout .guide-contents{max-height:none;overflow:visible}.photographer-guide-layout{gap:1.5rem}}@media(max-width:760px){.guide-topic h3{font-size:1.25rem}.guide-chapter-list summary{min-height:44px;padding:.6rem 0;display:list-item}}

.quickstart-verification-images{display:grid;gap:1.2rem;align-content:start}.quickstart-verification-shot{margin:0;min-width:0}.quickstart-verification-shot figcaption{font-size:.85rem;font-weight:600;margin:0 0 .45rem}
.shot-email-en .guide-shot-window{aspect-ratio:676.000000/243.500000}.shot-email-en img{width:294.970414%;left:-97.485207%;top:-201.215991%}.shot-email-en .guide-pin-1{left:3.550296%;top:30.698152%}
.shot-email-zh-hans .guide-shot-window{aspect-ratio:676.000000/243.500000}.shot-email-zh-hans img{width:294.970414%;left:-97.485207%;top:-190.705210%}.shot-email-zh-hans .guide-pin-1{left:3.550296%;top:30.698152%}
.shot-email-zh-hant .guide-shot-window{aspect-ratio:676.000000/243.500000}.shot-email-zh-hant img{width:294.970414%;left:-97.485207%;top:-190.705210%}.shot-email-zh-hant .guide-pin-1{left:3.550296%;top:30.698152%}

/* Keep verification and the request-code action together on wider screens. */
.auth-code-actions{display:flex;align-items:center;flex-wrap:wrap;gap:1rem}.auth-code-actions>.g-recaptcha{flex:0 0 304px}.auth-code-actions>.button{flex:1 1 220px;min-height:50px}@media(max-width:600px){.auth-code-actions{flex-direction:column;align-items:stretch}.auth-code-actions>.g-recaptcha{flex:none;align-self:flex-start}.auth-code-actions>.button{flex:none;width:100%}}

/* The gallery conversation stays independent of photo-selection locks. */
.gallery-conversation{border:1px solid var(--line);padding:1.4rem;margin:1.5rem 0 2rem;background:#fffdf8;scroll-margin-top:1.5rem}.conversation-heading{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.conversation-heading h2{margin:0}.conversation-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:1.5rem;margin-top:1.2rem}.gallery-note-list{max-height:28rem;overflow-y:auto;overscroll-behavior:contain;padding:.2rem}.gallery-note{padding:1rem;margin:0 0 .8rem;border:1px solid var(--line);background:var(--paper);overflow-wrap:anywhere}.gallery-note[data-author=photographer]{background:var(--soft)}.gallery-note.is-unread{border-left:4px solid var(--olive)}.gallery-note-meta{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;flex-wrap:wrap;font-size:.8rem;margin:0 0 .5rem}.gallery-note-meta time{font-size:.7rem}.gallery-note-body{white-space:pre-wrap;margin:.4rem 0}.gallery-note-quote{font-size:.8rem;border-left:2px solid var(--olive);padding-left:.7rem;margin:.5rem 0;white-space:pre-wrap}.gallery-note-reply-button{min-height:44px;margin-top:.4rem;font-size:.8rem}.gallery-note-form{margin:0;display:flex;flex-direction:column;gap:.6rem;min-width:0}.gallery-note-form textarea{min-height:140px}.gallery-note-form .fine-print{margin:0}.gallery-note-form .button{align-self:flex-start;min-height:46px}.gallery-note-reply{border-left:3px solid var(--olive);padding:.6rem;background:var(--soft);overflow-wrap:anywhere}.gallery-note-reply p{margin:0 0 .4rem;white-space:pre-wrap}.gallery-note-reply button{font-size:.75rem}.conversation-unread,.unread-note-badge{display:inline-block;background:var(--olive);color:white;padding:.3rem .6rem;font-size:.75rem;font-weight:600}.session-card.has-unread-notes{border-left:4px solid var(--olive);box-shadow:0 0 0 1px var(--olive)}#gallery-note-status:empty{display:none}@media(max-width:760px){.gallery-conversation{padding:1rem}.conversation-layout{grid-template-columns:minmax(0,1fr)}.gallery-note-list{max-height:24rem}.gallery-note-form .button{width:100%;align-self:stretch}.conversation-heading h2{font-size:1.4rem}}

.session-workflow summary{font-weight:600}.session-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:1rem 0}.session-totals p{background:var(--soft);padding:.8rem;font-size:.8rem;margin:0}.session-totals strong{display:block;font-size:1.2rem}.session-workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;margin:1.5rem 0}.session-workflow form>p{margin:1rem 0}.session-workflow label{margin-bottom:.4rem}.session-workflow .helptext{font-size:.8rem;display:block;color:#606454}.session-workflow h3{font-size:1.25rem}.payment-history article{padding:1rem;border-top:1px solid var(--line)}.payment-history form{max-width:650px}.session-delivery{border-top:1px solid var(--line);margin-top:1.5rem;padding-top:1rem}.session-delivery form{max-width:800px;margin:1.2rem 0}.client-delivery{padding:1.2rem;border:1px solid var(--line);margin:1.5rem 0;background:var(--soft)}.client-delivery h2{margin:0 0 .8rem}.client-delivery.is-ready{border-left:4px solid var(--olive)}@media(max-width:760px){.session-workflow-grid{grid-template-columns:minmax(0,1fr);gap:1rem}.session-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.session-workflow .button,.client-delivery .button{width:100%}}

.delivery-code-panel{border:1px solid var(--line);padding:1rem;background:var(--soft);margin:1rem 0}.delivery-code-panel code{font-size:1.2rem;overflow-wrap:anywhere}.final-downloads{max-width:950px;margin:auto}.final-download-list{list-style:none;padding:0}.final-download-list li{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;border-bottom:1px solid var(--line)}.final-download-list span{min-width:0;overflow-wrap:anywhere}.final-download-list .button{flex-shrink:0}.delivery-code-form{display:grid;gap:1rem;max-width:550px;margin:2rem 0}@media(max-width:600px){.final-download-list li{align-items:stretch;flex-direction:column}}

/* Photographer actions follow the session, and each action owns its history. */
.gallery-workflow-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;margin:1.5rem 0 2rem}.gallery-workflow-nav a{display:flex;align-items:center;gap:.65rem;min-height:56px;padding:.8rem;border:1px solid var(--line);background:#fffdf8;text-decoration:none;font-size:.85rem}.gallery-workflow-nav a:hover,.gallery-workflow-nav a:focus-visible{border-color:var(--olive);background:var(--soft)}.gallery-workflow-nav span{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:50%;background:var(--olive);color:white;font-size:.75rem}.gallery-workflow-stage{border-top:1px solid var(--line);padding-top:1.8rem;margin:2rem 0;scroll-margin-top:1.2rem}.workflow-stage-heading{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem}.workflow-stage-heading .eyebrow{margin:0 0 .45rem}.workflow-stage-heading h2{margin:0;font-size:1.8rem}.workflow-heading-actions{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;font-size:.85rem}.workflow-tool{border:1px solid var(--line);padding:.7rem 1rem;margin:.8rem 0;background:#fffdf8;scroll-margin-top:1.2rem}.workflow-tool>summary{font-weight:600;min-height:44px;padding:.5rem 0}.workflow-tool[open]>summary{border-bottom:1px solid var(--line);margin-bottom:1rem}.workflow-badge{display:inline-block;font:600 .75rem/1.4 Arial,sans-serif;background:var(--soft);color:var(--olive);padding:.3rem .55rem;margin-left:.5rem;vertical-align:middle}.workflow-notes>.gallery-conversation{border:0;padding:.3rem 0;margin:0}.workflow-notes .conversation-heading{display:none}.gallery-workflow-stage .photographer-edit-panel{margin:.8rem 0;padding:.7rem 1rem;background:#fffdf8}.workflow-tool .submission-history{margin:1rem 0;padding:1rem;background:var(--paper)}.workflow-tool .rename-tools{margin:1rem 0}.drive-organization.has-pending>summary .workflow-badge{background:var(--olive);color:white}.reopen-selections{margin:1rem 0}.session-workflow-heading{display:flex;align-items:center;gap:1rem;flex-wrap:wrap}.session-workflow-heading h3{margin:.5rem 0}.gallery-workflow-stage .session-workflow{margin:0;background:#fffdf8}.workflow-tool .lifecycle-panel,.workflow-tool .archive-panel{border:0;margin:0;padding:.3rem 0}.workflow-retirement{margin-top:1.5rem}.workflow-retirement>summary{color:#70473f}#selection-toolbar{scroll-margin-top:1rem}@media(max-width:760px){.gallery-workflow-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.gallery-workflow-nav a{font-size:.8rem;padding:.6rem;min-height:60px}.workflow-stage-heading{align-items:flex-start;flex-direction:column}.workflow-stage-heading h2{font-size:1.5rem}.workflow-tool{padding:.6rem .8rem}.workflow-tool>summary{font-size:.9rem}.workflow-badge{margin:.3rem 0 .3rem .3rem}.workflow-heading-actions{width:100%;justify-content:space-between}.workflow-tool .submission-history{padding:.7rem}.gallery-workflow-stage .session-workflow{padding:1rem}.session-workflow-heading{gap:.3rem}}

/* Session deadlines are visible at a glance; delivery dates stay in Studio. */
.staff-deadlines{display:flex;gap:.6rem 2rem;flex-wrap:wrap;margin:1rem 0;font-size:.85rem}.staff-deadlines p{margin:0}.staff-deadlines strong{display:block;font-size:.75rem;letter-spacing:.04em;text-transform:uppercase}.client-deadlines{margin:1.2rem 0}.client-deadlines h3{font-size:1rem;margin:1rem 0 .4rem}.client-deadlines .staff-deadlines{margin:.6rem 0}.deadline-overdue{color:var(--error)}.customer-deadline{border-left:4px solid var(--olive);padding:1rem 1.3rem;background:var(--soft);margin:1.5rem 0}.customer-deadline.deadline-overdue{border-left-color:var(--error)}.customer-deadline p{margin:.4rem 0 0}.deadline-settings form{max-width:800px}.deadline-settings form>p{margin:1.3rem 0}.deadline-settings .helptext{display:block;font-size:.8rem;margin-top:.4rem;color:#606454}.deadline-settings input[type=checkbox],.form-panel input[type=checkbox]{width:20px;height:20px;vertical-align:middle;accent-color:var(--olive)}.deadline-settings p:has(input[type=checkbox])>label,.form-panel p:has(input[type=checkbox])>label{display:inline}.deadline-settings input[type=date]{max-width:350px}.delivery-deadline{font-size:.85rem;margin:1rem 0}@media(max-width:600px){.staff-deadlines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.deadline-settings button{width:100%;min-height:46px}.customer-deadline{padding:1rem}.staff-deadlines time{display:inline-block}}

/* Studio session ledger remains a readable table on small screens. */
.session-overview-filters{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}.session-overview-filters label{flex:1 1 240px}.session-overview-filters input,.session-overview-filters select{margin-top:.35rem}.session-overview-scroll{border:1px solid var(--line);background:#fffdf8;margin-top:1rem}.session-overview-table{border-collapse:collapse;width:100%;min-width:1050px;font-size:.85rem;text-align:left}.session-overview-table th,.session-overview-table td{padding:1rem;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.session-overview-table thead th{background:var(--soft);font-weight:600;min-width:135px}.session-overview-table tbody th{font-weight:400;min-width:170px}.session-overview-table small{display:block;font-size:.75rem;margin-top:.35rem}.session-overview-table tbody tr:hover{background:var(--paper)}.session-money{min-width:165px}.session-money span{display:flex;justify-content:space-between;gap:.7rem;white-space:nowrap}.session-payment-status{display:inline-block;padding:.25rem .5rem;background:var(--soft);font-size:.75rem}.session-payment-status.is-settled{background:var(--olive);color:white}.session-overview-table .deadline-overdue small{font-weight:600}.session-overview-table a{display:inline-block;padding:.15rem 0}.session-overview-table caption{padding:1rem;text-align:left;font-weight:600}@media(max-width:600px){.session-overview-filters{align-items:stretch}.session-overview-filters label{flex-basis:100%}.session-overview-filters button{min-height:46px}.session-overview-table th,.session-overview-table td{padding:.8rem}.session-overview-table a{min-height:36px}}
.session-overview-table{min-width:900px;table-layout:fixed}.session-overview-table th,.session-overview-table td{padding:.85rem .75rem}.session-overview-table thead th,.session-overview-table tbody th{min-width:0}.session-overview-table thead th:first-child{width:16%}.session-overview-table thead th:nth-child(2){width:18%}.session-overview-table thead th:nth-child(5){width:17%}.session-overview-table thead th:nth-child(6),.session-overview-table thead th:nth-child(7){width:14%}.session-money{min-width:140px}

/* Related photographer tools use accessible tabs within each workflow stage. */
.workflow-tab-list{display:flex;gap:.4rem;flex-wrap:wrap;border-bottom:1px solid var(--olive);margin:1rem 0 0;padding:0 0 .4rem}.workflow-tab{min-height:46px;padding:.7rem .9rem;font-size:.85rem;border-color:var(--line);background:var(--olive-light);justify-content:flex-start;text-align:left}.workflow-tab[aria-selected=true]{background:var(--olive);border-color:var(--olive);color:white}.workflow-tab .workflow-badge{margin:.1rem 0 .1rem .4rem}.workflow-tab #rename-summary-note:not([hidden]){background:var(--olive);color:white}.workflow-tab[aria-selected=true] #rename-summary-note:not([hidden]){background:var(--paper);color:var(--olive)}.workflow-tab-panel{margin-top:0!important;border-top:0!important;padding:1.2rem!important;background:#fffdf8}.workflow-tab-panel[hidden]{display:none!important}.workflow-tab-panel>summary[hidden]{display:none}.workflow-tab-panel.session-delivery{padding-top:1.2rem}.gallery-workflow-stage .workflow-tab-panel.photographer-edit-panel{border-width:1px}.workflow-tab-panel .session-workflow-grid{margin-top:0}@media(max-width:760px){.workflow-tab-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.workflow-tab{font-size:.8rem;padding:.65rem;flex-wrap:wrap;align-content:center}.workflow-tab-panel{padding:.9rem!important}.workflow-tab-list .workflow-badge{margin-left:0;font-size:.7rem}}
.archive-panel>summary{font:1.6rem/1.3 Georgia,serif;min-height:44px;padding:.3rem 0}.archive-panel[open]>summary{margin-bottom:1rem}

/* Keep the photos visible while photographer workflow tools start collapsed. */
details.gallery-workflow-stage{border:1px solid var(--line);background:#fffdf8;padding:0 1.2rem;margin:1rem 0}details.gallery-workflow-stage>summary{display:flex;align-items:center;gap:1rem;list-style:none;cursor:pointer;min-height:76px;padding:1rem 0;margin:0}details.gallery-workflow-stage>summary::-webkit-details-marker{display:none}details.gallery-workflow-stage>summary:before{content:'';display:block;flex:0 0 8px;width:8px;height:8px;border-right:2px solid var(--olive);border-bottom:2px solid var(--olive);transform:rotate(-45deg);margin-right:.3rem}details.gallery-workflow-stage[open]>summary:before{transform:rotate(45deg)}details.gallery-workflow-stage[open]{padding-bottom:1.2rem}details.gallery-workflow-stage[open]>summary{border-bottom:1px solid var(--line);margin-bottom:1rem}details.gallery-workflow-stage>summary h2{font-size:1.5rem}.gallery-photos-heading{margin:2rem 0 1rem}@media(max-width:760px){details.gallery-workflow-stage{padding:0 .9rem}details.gallery-workflow-stage>summary{flex-direction:row;align-items:center;flex-wrap:wrap;gap:.8rem}details.gallery-workflow-stage>summary>div{flex:1;min-width:0}details.gallery-workflow-stage>summary h2{font-size:1.3rem}details.gallery-workflow-stage>summary .workflow-badge{margin-left:1.6rem}}
details.gallery-workflow-stage>summary{justify-content:flex-start}details.gallery-workflow-stage>summary>div{flex:1;min-width:0}

/* Shared Studio tabs keep the same order and selected state on every view. */
.studio-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;border-bottom:1px solid var(--olive);padding-bottom:.4rem;margin:1.5rem 0 2rem}.studio-view-tabs a{display:flex;align-items:center;justify-content:center;min-height:50px;padding:.8rem 1rem;border:1px solid var(--line);background:var(--olive-light);text-decoration:none;text-align:center;font-size:.9rem}.studio-view-tabs a:hover{border-color:var(--olive);background:var(--olive-light)}.studio-view-tabs a[aria-current=page]{background:var(--olive);border-color:var(--olive);color:white;font-weight:600}@media(max-width:600px){.studio-view-tabs{gap:.3rem;margin:1.2rem 0 1.5rem}.studio-view-tabs a{font-size:.8rem;padding:.7rem .45rem;min-height:56px}}
.client-section-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.client-section-tabs~.client-backup-section{margin-top:0}.client-section-tabs~.lifecycle-panel,.client-section-tabs~.archive-panel{margin-top:0}@media(max-width:600px){.client-section-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.client-section-tabs a{min-height:64px}}

/* Customers see read-only session records; photo selection stays open. */
.client-workflow-stage .gallery-conversation{border:0;margin:0;padding:.3rem 0}.client-workflow-stage .conversation-heading{display:none}.customer-payment-scroll{margin:1rem 0}.customer-payment-table{border-collapse:collapse;width:100%;text-align:left;font-size:.9rem}.customer-payment-table th,.customer-payment-table td{padding:.8rem;border-bottom:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere}.customer-payment-table th{background:var(--soft)}.customer-payment-table .payment-voided{color:#606454}.customer-payment-table td:nth-child(2){white-space:nowrap}.client-workflow-stage .workflow-badge{font-size:.8rem}@media(max-width:600px){.customer-payment-table{font-size:.8rem}.customer-payment-table th,.customer-payment-table td{padding:.6rem .35rem}.customer-payment-table{min-width:310px}}

/* Finished-photo retrieval stays visible beneath the customer quickstart. */
.guide-delivery-instructions{max-width:900px;margin:0 0 3rem;padding-top:1.5rem;border-top:1px solid var(--line);scroll-margin-top:1.5rem}.guide-delivery-instructions h3{font-size:1.25rem;margin:1.5rem 0 .5rem}

/* Direct profile link; sign out remains beside it in the shared header. */
.portal-header nav .profile-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;text-decoration:none;color:inherit}.profile-icon:hover,.profile-icon:focus-visible{background:var(--soft);outline-offset:3px}.profile-icon svg{display:block}.profile-page{max-width:1000px}.profile-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.5rem}.profile-card{min-width:0;border:1px solid var(--line);background:var(--paper);padding:1.5rem;align-self:start}.profile-card h2{margin-top:0;font-size:1.6rem}.profile-summary{margin:1rem 0 1.5rem}.profile-summary dt{font-size:.8rem;color:#606454;margin-top:.7rem}.profile-summary dd{margin:.2rem 0 0;overflow-wrap:anywhere}.profile-card input{max-width:100%}.profile-card .errorlist{color:#8b352d;padding-left:1.2rem}.profile-card button{margin-top:.5rem}.profile-card .secondary-form{margin-top:1rem}@media(max-width:760px){.profile-sections{grid-template-columns:minmax(0,1fr)}.profile-card{padding:1.2rem}.portal-header nav .profile-icon{flex-basis:44px}.profile-page .page-heading{align-items:flex-start}}

.portal-header nav .account-actions{display:inline-flex;align-items:center;gap:.8rem;flex-shrink:0}

.portal-header .account-actions .text-button{min-height:44px}

.website-publish-panel{border:1px solid var(--line);padding:1.5rem;margin-bottom:2rem;scroll-margin-top:1rem}.website-publish-panel h2{margin-top:0}.website-draft-notice{margin-bottom:2rem}.website-draft-notice p{margin:.4rem 0 1rem}.website-draft-notice .button{margin-right:1rem}.website-pending-list{list-style:none;padding:0}.website-pending-list>li{border-top:1px solid var(--line);padding:1rem 0}.website-change-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.website-change-heading h3{margin:.4rem 0}.website-change-values{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;font-size:.9rem;margin:.8rem 0;overflow-wrap:anywhere}.website-change-values>div{min-width:0}.website-change-values strong{display:block;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em}.website-change-values img{display:block;max-width:160px;max-height:120px;object-fit:contain;margin-top:.6rem}.website-rollout-form{margin:1rem 0}.website-form .button,.booking-add .button{margin:.5rem .6rem .5rem 0}@media(max-width:600px){.website-publish-panel{padding:1rem}.website-change-values{gap:1rem}.website-change-values img{max-width:100%}}

.avatar-picker{border:0;padding:0;margin:1.4rem 0}.avatar-picker legend{font-size:.9rem;margin-bottom:.6rem}.avatar-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(64px,1fr));gap:.6rem}.avatar-option{position:relative;cursor:pointer}.avatar-option input{position:absolute;opacity:0;width:1px;height:1px}.avatar-option>span{display:flex;flex-direction:column;align-items:center;gap:.35rem;border:1px solid var(--line);padding:.65rem .2rem;min-height:74px;font-size:.7rem}.avatar-option input:checked+span{background:var(--soft);border:2px solid var(--olive);padding:calc(.65rem - 1px) calc(.2rem - 1px)}.avatar-option input:focus-visible+span{outline:3px solid var(--olive);outline-offset:3px}.avatar-option svg{flex-shrink:0}

/* Collapsed gallery section titles share the tabs' light/dark green states. */
details.gallery-workflow-stage>summary{background:var(--olive-light);padding:1rem 1.2rem;margin:0 -1.2rem}details.gallery-workflow-stage[open]>summary{background:var(--olive);color:white;margin-bottom:1rem}details.gallery-workflow-stage>summary:before{border-color:currentColor}@media(max-width:760px){details.gallery-workflow-stage>summary{padding:1rem .9rem;margin-left:-.9rem;margin-right:-.9rem}}

/* Public-gallery category navigation follows the shared Studio tab palette. */
.directory-tabs{gap:.4rem;border-bottom:1px solid var(--olive);padding-bottom:.4rem}.directory-tabs a{display:flex;align-items:center;justify-content:center;flex:1 1 140px;min-height:50px;padding:.8rem 1rem;border:1px solid var(--line);background:var(--olive-light);text-decoration:none;text-align:center;font-size:.9rem}.directory-tabs a:hover{border-color:var(--olive)}.directory-tabs a[aria-current=page]{background:var(--olive);border-color:var(--olive);color:white}

/* One client profile groups details, sign-in help, retirement and saved records. */
.client-profile>.portal-section{max-width:850px;margin:1.5rem 0 2rem}.client-profile .portal-section .helptext{display:block;font-size:.8rem;margin-top:.4rem}.client-profile-section>.client-backup-section,.client-profile-section>.lifecycle-panel,.client-profile-section>.archive-panel{border:0;padding:0;margin:0}.client-profile-section>summary h2{margin:0}.client-profile-section{scroll-margin-top:1rem}

/* Action buttons are filled olive; navigation tabs keep their selection palette. */
button:not(.workflow-tab):not(.image-button),.button.secondary{background:var(--olive);color:white;border-color:var(--olive);text-decoration:none}button:not(.workflow-tab):not(.image-button):hover:not(:disabled),.button.secondary:hover{background:var(--olive);color:white}.text-button{padding:.6rem .85rem;border:1px solid var(--olive)}.priority-button[aria-pressed=true],.mobile-photo-layout button[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--paper);font-weight:700}

/* Pagination stays with the full-gallery counts while only one page is rendered. */
.gallery-page-actions{display:flex;align-items:center;justify-content:space-between;gap:.7rem;flex-wrap:wrap;margin-top:.6rem}.gallery-pagination{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;flex:1}.gallery-pagination label{display:flex;align-items:center;gap:.4rem;font-size:.8rem}.gallery-pagination select{width:auto;max-width:8rem;padding:.4rem}.gallery-pagination button,#gallery-collapse{min-height:42px;padding:.5rem .75rem;font-size:.8rem}.gallery-pagination button:disabled,.gallery-pagination select:disabled{cursor:not-allowed}#gallery-page-status{font-size:.8rem;flex:1 1 15rem}.gallery-photos.is-collapsed .selection-toolbar{position:static;box-shadow:none;border:1px solid var(--line);padding:.8rem 1rem;background:var(--olive-light)}.gallery-photos.is-collapsed .gallery-page-actions{margin:0;justify-content:flex-end}.gallery-photos{scroll-margin-top:1rem}@media(max-width:760px){.gallery-pagination{width:100%;flex-basis:100%}.gallery-pagination label{flex:1;justify-content:center}#gallery-page-status{flex-basis:100%}.gallery-page-actions{gap:.45rem}#gallery-collapse{margin-left:auto}}

/* A compact sticky toolbar leaves more room for photos, especially on phones. */
.selection-toolbar{padding:.4rem 0}.count-grid{display:flex;flex-wrap:wrap;gap:.3rem}.count-item{display:inline-flex;align-items:baseline;justify-content:flex-start;gap:.35rem;padding:.3rem .55rem;font-size:.75rem;white-space:nowrap}.count-item strong{display:inline;font-size:.9rem}.count-item small{font-size:.7rem}.gallery-filter-controls{display:flex;align-items:end;gap:.75rem;margin-top:.35rem}.gallery-filter-controls .filter-row{flex:1;margin:0}.gallery-toolbar-tools{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.gallery-toolbar-tools p{font-size:.75rem;margin:0}.page-button-icon{display:none}.gallery-page-actions{margin-top:.35rem}.gallery-pagination button,#gallery-collapse,#gallery-filters-toggle{min-height:40px;padding:.4rem .6rem}.gallery-pagination select{padding:.35rem .4rem}#gallery-page-status{font-size:.75rem;flex-basis:auto}
@media(max-width:760px){.selection-toolbar{padding:.35rem 0}.count-grid{gap:.25rem}.count-item{display:inline-flex;gap:.3rem;font-size:.7rem;padding:.2rem .4rem}.count-item strong{display:inline;font-size:.8rem}.count-item small{font-size:.65rem}.gallery-filter-controls{flex-direction:column;align-items:stretch;gap:.35rem}.gallery-toolbar-tools{order:-1;min-height:36px}.gallery-toolbar-tools p{font-size:.7rem}.gallery-filter-controls .filter-row{width:100%;gap:.4rem}.filter-row label{font-size:.75rem}.filter-row input,.filter-row select{font-size:.8rem;padding:.35rem .4rem}.gallery-page-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.3rem .5rem;align-items:start}.gallery-pagination{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;width:auto;gap:.25rem;flex-basis:auto}.gallery-pagination label{justify-content:center}.gallery-pagination select{width:100%;max-width:6rem;min-height:40px;font-size:.8rem}.page-button-icon{display:block;flex-shrink:0}.page-button-label,.gallery-page-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.gallery-pagination button{padding:.35rem;min-width:40px}.gallery-pagination #gallery-page-status{grid-column:1/-1;font-size:.7rem;line-height:1.3}#gallery-collapse{font-size:.75rem;max-width:9rem;margin:0}.gallery-photos.is-collapsed .gallery-page-actions{display:flex}.gallery-photos.is-collapsed .selection-toolbar{padding:.5rem .7rem}}

/* Keep scrolling photos faintly visible without softening the controls or text. */
.selection-toolbar{background:rgba(246,244,238,.92);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.gallery-photos.is-collapsed .selection-toolbar{-webkit-backdrop-filter:none;backdrop-filter:none}@media(prefers-reduced-transparency:reduce){.selection-toolbar{background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none}}

/* Mobile filters sit beside paging, rather than occupying a separate row. */
@media(max-width:760px){.gallery-page-actions{grid-template-columns:auto minmax(0,1fr) auto;gap:.3rem}.gallery-pagination{min-width:0;grid-template-columns:36px minmax(0,1fr) 36px;gap:.2rem}.gallery-pagination label,.gallery-pagination select{min-width:0}.gallery-pagination button{min-width:36px}.gallery-toolbar-tools{min-height:0}.gallery-toolbar-tools p{line-height:1.3}#gallery-filters-toggle{font-size:.75rem;padding:.4rem .5rem;white-space:nowrap}#gallery-collapse{padding:.4rem .5rem}.gallery-photos.is-collapsed .gallery-page-actions{display:flex}}

/* One desktop control row; labels sit beside their fields. */
@media(min-width:761px){#selection-toolbar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}#gallery-summary-controls{display:contents}.count-grid{flex:1 1 100%}.gallery-filter-controls{flex:1 1 380px;margin:0;gap:.4rem}.gallery-filter-controls .filter-row{gap:.5rem;align-items:center;flex-wrap:nowrap}.filter-row label{display:flex;align-items:center;gap:.4rem;white-space:nowrap;min-width:0;flex:1}.filter-row input,.filter-row select{min-width:0;width:100%;max-width:12rem}.filter-row button{white-space:nowrap;font-size:.75rem;padding:.4rem .5rem;min-height:40px}.gallery-page-actions{margin:0;flex:0 1 auto;flex-wrap:nowrap;gap:.4rem}.gallery-pagination{flex-wrap:nowrap;gap:.4rem}.gallery-pagination select{max-width:5rem}.gallery-pagination button,#gallery-collapse{white-space:nowrap}.gallery-toolbar-tools{max-width:11rem}.gallery-toolbar-tools p{line-height:1.25}.mobile-columns-toggle{display:none}.gallery-photos.is-collapsed .gallery-page-actions{margin-left:auto}}
#gallery-bulk-toggle{min-height:40px;font-size:.8rem;padding:.4rem .55rem;white-space:nowrap}.gallery-bulk-panel{flex:1 1 100%;width:100%;padding:.5rem 0;border-top:1px solid var(--line);margin-top:.3rem}.bulk-selection-actions,.bulk-levels{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem}.bulk-selection-actions{margin-bottom:.4rem}.bulk-selection-actions strong{font-size:.85rem;margin-right:auto}.gallery-bulk-panel button{padding:.4rem .6rem;font-size:.8rem;min-height:40px}.gallery-bulk-panel p{margin:.35rem 0;font-size:.75rem}.photo-card{position:relative}.bulk-select-label{display:flex;align-items:center;gap:.5rem;padding:.5rem;background:var(--olive-light);cursor:pointer}.bulk-checkbox{width:22px;height:22px;margin:0;accent-color:var(--olive)}.bulk-selected{outline:3px solid var(--olive);outline-offset:-1px}.bulk-selected .bulk-select-label{background:var(--olive);color:white}.bulk-mode{user-select:none}.bulk-mode .image-button{cursor:crosshair}.bulk-marquee{position:fixed;inset:0;width:100%;height:100%;z-index:30;pointer-events:none}.bulk-marquee rect{fill:#57614c33;stroke:var(--olive);stroke-width:2}.bulk-busy{opacity:.7}
@media(max-width:760px){.mobile-photo-layout{display:none}.mobile-columns-toggle{display:inline-flex;min-height:40px;font-size:.7rem;padding:.3rem;white-space:nowrap}.gallery-page-actions{grid-template-columns:auto auto auto minmax(100px,1fr) auto;align-items:start;gap:.2rem}#gallery-filters-toggle{order:0}#gallery-collapse{order:1;font-size:.7rem;max-width:4.3rem;padding:.3rem}#gallery-columns-toggle{order:2;max-width:3.8rem;white-space:normal}.gallery-pagination{order:3;grid-template-columns:30px minmax(0,1fr) 30px;gap:.15rem}.gallery-pagination button{min-width:30px}#gallery-bulk-toggle{order:4;width:32px;min-width:32px;padding:.3rem}#gallery-bulk-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#gallery-page-status{font-size:.65rem}.bulk-selection-actions strong{font-size:.75rem}.gallery-bulk-panel button{font-size:.75rem}.gallery-bulk-panel .fine-print{display:none}.bulk-select-label{font-size:.75rem;min-height:44px}.gallery-photos.is-collapsed #gallery-columns-toggle{display:none}}
@media(max-width:350px){.gallery-page-actions{display:flex;flex-wrap:wrap}.gallery-pagination{flex:1;min-width:110px}#gallery-bulk-toggle{margin-left:auto}}
.staff-save-toast{position:fixed;top:.75rem;left:50%;transform:translateX(-50%);z-index:45;max-width:min(600px,92vw);padding:.65rem 1rem;border:1px solid var(--olive);background:var(--olive);color:white;box-shadow:0 3px 16px #30332933;font-size:.85rem}.staff-save-toast p{margin:0}.staff-save-toast .error{color:white;background:#883b32}.staff-save-toast:has(.error){background:#883b32;border-color:#883b32}
/* Bulk selection belongs with the live selection totals. */
.gallery-count-row{display:flex;align-items:center;gap:.5rem;flex:1 1 100%;width:100%}.gallery-count-row .count-grid{flex:1 1 auto}.gallery-count-row #gallery-bulk-toggle{flex:0 0 auto}.gallery-count-row #gallery-bulk-toggle span{position:static;width:auto;height:auto;overflow:visible;clip-path:none}.gallery-count-row #gallery-bulk-toggle{width:auto;min-width:0}
@media(max-width:760px){.gallery-count-row{align-items:flex-start;gap:.3rem}.gallery-count-row #gallery-bulk-toggle{font-size:.7rem;padding:.4rem;gap:.25rem}.gallery-count-row #gallery-bulk-toggle svg{width:15px;height:15px;flex-shrink:0}.gallery-page-actions{display:grid;grid-template-columns:auto auto auto minmax(105px,1fr)}.gallery-pagination{min-width:0}.gallery-pagination select{max-width:none}}
@media(max-width:350px){.gallery-page-actions{display:flex;flex-wrap:wrap}.gallery-pagination{flex:1;min-width:105px}}
/* Accessible, swipeable column switch; the round thumb marks the current layout. */
@media(max-width:760px){#gallery-columns-toggle{position:relative;display:inline-grid;grid-template-columns:1fr 1fr;align-items:center;width:64px;min-width:64px;max-width:64px;height:40px;padding:3px;border-radius:999px;gap:0;background:var(--olive);color:white;touch-action:pan-y;font-size:.8rem;font-weight:600;line-height:1}#gallery-columns-toggle::before{content:"";position:absolute;left:3px;top:3px;width:32px;height:32px;border-radius:50%;background:var(--paper);box-shadow:0 1px 3px #0003}#gallery-columns-toggle span{position:relative;z-index:1}#gallery-columns-toggle[aria-checked=false] span:first-child,#gallery-columns-toggle[aria-checked=true] span:last-child{color:var(--olive)}#gallery-columns-toggle[aria-checked=true]::before{transform:translateX(24px)}.gallery-page-actions{column-gap:.3rem}#bulk-count{min-width:0}.gallery-bulk-panel button{padding:.35rem .5rem}.gallery-bulk-panel p:empty{display:none}.gallery-filter-controls .filter-row label{display:flex;align-items:center;gap:.3rem;white-space:nowrap;min-width:0}.gallery-filter-controls .filter-row input,.gallery-filter-controls .filter-row select{min-width:0}.gallery-count-row{align-items:center}}
@media(prefers-reduced-motion:no-preference){#gallery-columns-toggle::before{transition:transform .15s}}
/* Start with just paging and layout; explicitly opt in to the full toolbar. */
.selection-toolbar.is-compact{padding:.3rem 0}.selection-toolbar.is-compact .gallery-page-actions{margin-left:auto;width:100%;justify-content:flex-end}.selection-toolbar.is-compact .gallery-pagination{flex:0 1 auto}
@media(max-width:760px){.gallery-page-actions{grid-template-columns:auto auto minmax(105px,1fr) auto;align-items:start;gap:.3rem}#gallery-collapse{order:0}#gallery-columns-toggle{order:1}.gallery-pagination{order:2}.selection-toolbar.is-compact .gallery-page-actions{margin:0}.gallery-filter-controls .filter-row{display:flex}}
@media(max-width:350px){.gallery-page-actions{display:flex;flex-wrap:wrap}.gallery-pagination{flex:1;min-width:105px}}
/* Selection totals remain visible at the bottom, separate from the top actions. */
.gallery-totals-bar{position:fixed;bottom:0;left:0;right:0;z-index:6;padding:.4rem 5vw max(.4rem,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:rgba(246,244,238,.96);box-shadow:0 -3px 10px #3033290a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.gallery-totals-bar .count-grid{max-width:1440px;margin:0 auto;justify-content:center}.gallery-totals-bar .count-item{padding:.3rem .55rem}body:has(#selection-totals){padding-bottom:100px}.gallery-count-row{flex:0 0 auto;width:auto}.gallery-count-row #gallery-bulk-toggle{order:0}
@media(min-width:761px){.gallery-count-row{margin-right:auto}.selection-toolbar:not(.is-compact) #gallery-summary-controls{display:contents}}
@media(max-width:760px){.gallery-totals-bar{padding:.3rem 4vw max(.3rem,env(safe-area-inset-bottom))}.gallery-totals-bar .count-grid{gap:.25rem;justify-content:flex-start}.gallery-totals-bar .count-item{padding:.2rem .4rem}.gallery-count-row{margin-bottom:.3rem}}
@media(prefers-reduced-transparency:reduce){.gallery-totals-bar{background:var(--paper);-webkit-backdrop-filter:none;backdrop-filter:none}}
/* Only the photo's current category is dark green. */
#proofing .priority-buttons .priority-button[aria-pressed=false],#photo-viewer .priority-buttons .priority-button[aria-pressed=false]{background:var(--olive-light);color:var(--ink);border-color:#b9c4ad;box-shadow:none;font-weight:400}#proofing .priority-buttons .priority-button[aria-pressed=true],#photo-viewer .priority-buttons .priority-button[aria-pressed=true]{background:var(--olive);color:white;border-color:var(--olive);font-weight:700}#proofing .priority-buttons .priority-button[aria-pressed=false]:hover,#photo-viewer .priority-buttons .priority-button[aria-pressed=false]:hover{background:#d4dfc9;color:var(--ink)}
/* One photographer save action accompanies the bottom totals and dirty count. */
.gallery-totals-bar:has(.staff-gallery-save){display:flex;align-items:center;justify-content:center;gap:.4rem 1rem;flex-wrap:wrap}.gallery-totals-bar:has(.staff-gallery-save) .count-grid{flex:1 1 560px;margin:0}.staff-gallery-save{display:flex;align-items:center;gap:.6rem;font-size:.8rem}.staff-gallery-save button{font-size:.8rem;min-height:40px;padding:.5rem .7rem;white-space:nowrap}.staff-gallery-save span{white-space:nowrap}body:has(.staff-gallery-save){padding-bottom:160px}@media(max-width:760px){.gallery-totals-bar:has(.staff-gallery-save) .count-grid{flex-basis:100%}.staff-gallery-save{width:100%;justify-content:space-between;font-size:.75rem}}
/* Compact numbered choices in cards; full descriptions stay in the viewer. */
#photo-grid .priority-buttons{grid-template-columns:repeat(5,minmax(0,1fr));gap:.25rem}#photo-grid .priority-buttons .priority-button[data-priority]{grid-column:auto;min-width:0;min-height:44px;padding:.35rem .1rem;font-size:1rem;line-height:1.2;white-space:nowrap}.count-level{display:inline-flex;align-items:center;gap:.35rem}.level-number{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 .2rem;border-radius:50%;background:var(--olive);color:white;font-size:.7rem;font-weight:600;line-height:1}.bulk-levels button{min-width:44px;font-size:1rem}#viewer-details .priority-button{white-space:normal}.gallery-totals-bar .count-item{align-items:center}
@media(max-width:760px){#photo-grid .priority-buttons .priority-button[data-priority]{font-size:.95rem}.count-level{gap:.25rem}.level-number{min-width:19px;height:19px;font-size:.65rem}}
/* A single Filter button replaces the full-toolbar checkbox. */
#gallery-filters-toggle{display:inline-flex;min-height:40px;padding:.4rem .6rem;font-size:.8rem;white-space:nowrap}.gallery-page-actions{align-items:center}@media(max-width:760px){.gallery-page-actions{grid-template-columns:auto auto auto minmax(105px,1fr);align-items:start}#gallery-filters-toggle{order:0;font-size:.75rem;padding:.4rem .5rem}#gallery-collapse{order:1}#gallery-columns-toggle{order:2}.gallery-pagination{order:3}}@media(max-width:350px){.gallery-page-actions{display:flex;flex-wrap:wrap}.gallery-pagination{flex:1;min-width:105px}}
/* Bottom counts are the category filters; Total restores the complete gallery. */
#selection-totals .count-item{cursor:pointer;min-height:36px;background:var(--olive-light);color:var(--ink);border:1px solid #b9c4ad;text-transform:none;letter-spacing:0;line-height:1.4}#selection-totals .count-item[aria-pressed=true]{background:var(--olive);border-color:var(--olive);color:white}#selection-totals .count-item[aria-pressed=true] .level-number{background:var(--paper);color:var(--olive)}#selection-totals .count-item:hover{border-color:var(--olive)}#selection-totals .gallery-toolbar-tools p{margin:0;font-size:.7rem;line-height:1.3}#selection-totals .gallery-toolbar-tools{flex:0 0 auto}.gallery-page-actions{width:100%}
@media(max-width:760px){.gallery-page-actions{grid-template-columns:auto auto minmax(105px,1fr)}#gallery-collapse{order:0}#gallery-columns-toggle{order:1}.gallery-pagination{order:2}#selection-totals .count-item{min-height:36px;font-size:.7rem;padding:.2rem .4rem}.gallery-totals-bar .gallery-toolbar-tools{margin-top:.25rem}.gallery-totals-bar:has(.staff-gallery-save) .gallery-toolbar-tools{margin:0}}
@media(max-width:350px){.gallery-page-actions{display:flex;flex-wrap:wrap}.gallery-pagination{flex:1;min-width:105px}}
body:has(#selection-totals){padding-bottom:150px}body:has(.staff-gallery-save){padding-bottom:190px}
/* The enlarged view always has photo controls and its own visible stats footer. */
.viewer[open]{display:flex;flex-direction:column;height:95dvh;max-height:95dvh;overflow:hidden}.viewer-top{flex-shrink:0}.viewer-content{flex:1;min-height:0;overflow:auto;display:block}.viewer-content .viewer-boundary{grid-column:1/-1;margin:0}.viewer-content .viewer-image-wrap{grid-column:1}.viewer-content .viewer-image-wrap img{height:min(48dvh,540px)}#viewer-details{width:100%;min-width:0;max-width:900px;margin:.8rem auto 0}#viewer-details .card-details{padding:.2rem}#viewer-details .priority-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}#viewer-details .priority-button[data-priority=keep]{grid-column:1/-1}#viewer-details textarea{min-height:90px}.viewer-stats-slot{flex-shrink:0;padding-top:.5rem}#photo-viewer #selection-totals{position:static;width:100%;padding:.4rem 0 0;background:var(--paper);box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}#photo-viewer .staff-save-toast{position:static;transform:none;max-width:none;margin:.2rem 0 .5rem;padding:.4rem .7rem;flex-shrink:0}#photo-viewer .gallery-toolbar-tools{margin-top:.2rem}
@media(max-width:760px){.viewer[open]{height:100dvh;max-height:100dvh}.viewer-content{display:block}.viewer-content .viewer-boundary{padding:.3rem .4rem;margin-bottom:.4rem;font-size:.75rem;gap:.2rem .6rem}.viewer-content .viewer-boundary button{min-height:36px;padding:.3rem .5rem;font-size:.75rem}.viewer-content .viewer-image-wrap img{height:24dvh;max-height:240px}#viewer-details{margin-top:.45rem}#viewer-details .photo-name{margin-bottom:.3rem}#viewer-details .priority-button{min-height:42px;font-size:.8rem}#viewer-details textarea{min-height:68px;padding:.4rem}#viewer-details .edit-check{margin:.3rem 0}.viewer-stats-slot{padding-top:.35rem}#photo-viewer #selection-totals{padding:.3rem 0 max(.2rem,env(safe-area-inset-bottom))}}
.staff-gallery-save{flex-wrap:wrap}.staff-gallery-save span{margin-right:auto}.staff-gallery-save button{flex:0 0 auto}@media(max-width:760px){.staff-gallery-save span{flex:1 1 100%}.staff-gallery-save button{flex:1 1 auto}.staff-gallery-save{gap:.3rem .5rem}#photo-viewer .staff-gallery-save span{font-size:.7rem}}
.viewer-content:has(.viewer-image-wrap[hidden]) #viewer-details{grid-column:1/-1}

@media(min-width:761px){#viewer-details .priority-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}#viewer-details .priority-button[data-priority=keep]{grid-column:auto}}
/* Full-width enlarged photos with two half-photo navigation targets. */
#photo-viewer .viewer-image-wrap{display:block;position:relative;width:100%}#photo-viewer .viewer-image-wrap img{display:block;width:100%;max-width:100%;height:auto;max-height:none;object-fit:contain}#photo-viewer .viewer-photo-navigation{position:absolute;inset:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0}#photo-viewer .viewer-photo-navigation button{display:flex;align-items:center;justify-content:flex-start;width:100%;height:100%;min-width:0;min-height:44px;padding:12px;border:0;background:transparent;color:white;box-shadow:none;touch-action:pan-y pinch-zoom}#photo-viewer #viewer-next{justify-content:flex-end}#photo-viewer .viewer-photo-navigation button:focus-visible{outline:3px solid white;outline-offset:-5px}#photo-viewer .viewer-photo-navigation svg{box-sizing:content-box;flex-shrink:0;padding:8px;border-radius:50%;background:#57614cdd;filter:drop-shadow(0 1px 3px #0005)}#photo-viewer .viewer-photo-navigation button:hover svg,#photo-viewer .viewer-photo-navigation button:focus-visible svg{background:var(--olive)}#photo-viewer.viewer-single .viewer-photo-navigation{display:none}
@media(max-width:760px){#viewer-details .priority-buttons{grid-template-columns:repeat(5,minmax(0,1fr));gap:.25rem}#viewer-details .priority-buttons .priority-button[data-priority]{grid-column:auto;min-width:0;min-height:44px;padding:.35rem .1rem;font-size:1rem;white-space:nowrap}}

/* Horizontal photo swipes coexist with native vertical scrolling and pinch zoom. */
#photo-viewer .viewer-image-wrap,#viewer-image{touch-action:pan-y pinch-zoom;user-select:none;-webkit-user-select:none;-webkit-user-drag:none}
#photo-viewer [hidden]{display:none!important}
