:root{color-scheme:light;--ink:#243731;--muted:#68736a;--paper:#f5f4ed;--accent:#d9ed9b;--line:#dadfd3}
img{-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.6}a{color:inherit;text-underline-offset:4px}button,input{font:inherit}.site-header,.site-footer{max-width:1250px;margin:auto;padding:30px 48px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:21px;font-weight:650;letter-spacing:-.6px}.brand-mark{font-size:38px;line-height:1}.header-caption,.site-footer{font-size:12px;color:var(--muted)}.page{max-width:1154px;min-height:calc(100vh - 191px);margin:auto;display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center;padding:45px 30px 70px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:2px}.intro h1{font-family:Georgia,serif;font-size:clamp(40px,4.4vw,62px);line-height:1.12;letter-spacing:-2px;font-weight:400;margin:25px 0}.intro>p{color:var(--muted);max-width:370px;font-size:17px}.intro .intro-small{font-size:13px;line-height:1.9}.auth-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:32px 38px;box-shadow:0 12px 40px #24373106}.auth-tabs{display:flex;gap:26px;margin-bottom:27px}.auth-tabs a{padding:0 0 13px;text-decoration:none;font-size:14px;color:var(--muted)}.auth-tabs [aria-current]{color:var(--ink);font-weight:600}h2{font-size:27px;font-weight:550;letter-spacing:-.9px;margin:0 0 4px}.form-intro{font-size:14px;color:var(--muted);margin:0 0 26px}label{display:block;font-size:13px;font-weight:600;margin:16px 0 6px}input:not([type=checkbox]):not([type=hidden]){width:100%;padding:11px 13px;border:1px solid #cbd3c9;border-radius:6px;background:#fff;color:var(--ink);min-height:46px}input:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #718c48;outline-offset:3px}.field-help{font-size:12px;color:var(--muted);margin:7px 0}.button{margin-top:24px;display:flex;justify-content:space-between;align-items:center;width:100%;border:0;border-radius:6px;background:var(--ink);color:#fff;padding:12px 17px;cursor:pointer;font-weight:600;font-size:14px}.button:hover{background:#365047}.button.secondary{width:auto;min-width:130px}.switch-link{font-size:12px;color:var(--muted);text-align:center;margin:24px 0 0}.switch-link a{color:var(--ink);font-weight:600}.mentor-choice{display:flex;gap:11px;align-items:flex-start;padding:15px;background:#f4f6ed;border:1px solid #e1e7d4;border-radius:7px;margin-top:21px;cursor:pointer}.mentor-choice input{margin-top:4px;accent-color:var(--ink);width:17px;height:17px;flex-shrink:0}.mentor-choice strong{font-size:12px}.mentor-choice small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:2px}.message{border-radius:6px;padding:12px 14px;font-size:13px;margin:0 0 20px}.error{background:#fff0ed;color:#923b29;border:1px solid #edc7bc}.success{background:#eff5e3;color:#385326;border:1px solid #ceddbb}.site-footer{padding-top:20px;padding-bottom:22px;font-size:11px}.account-panel{grid-column:1/-1;max-width:680px;width:100%;margin:auto;background:#fff;padding:40px;border:1px solid var(--line);border-radius:16px}.account-panel h1{font-family:Georgia,serif;font-size:40px;font-weight:400;line-height:1.2}.account-panel>p,.muted{color:var(--muted);font-size:14px}.account-detail{display:flex;justify-content:space-between;gap:20px;padding:20px 0;margin:26px 0;font-size:14px}
@media(max-width:760px){.site-header{padding:22px 24px}.header-caption{display:none}.page{grid-template-columns:1fr;gap:30px;padding:20px 24px 45px;min-height:calc(100vh - 170px)}.intro h1{font-size:42px;margin:14px 0}.intro>p{font-size:15px;max-width:100%}.intro-small{display:none}.auth-panel{padding:26px 24px}.site-footer{margin:0 24px;padding:18px 0;gap:15px}.account-panel{padding:28px}.account-panel h1{font-size:32px}.account-detail{flex-direction:column;gap:4px}}

.brand-logo{width:48px;height:48px;object-fit:contain;flex-shrink:0}.brand span{overflow-wrap:anywhere}.header-caption{max-width:48%;text-align:right}.site-footer>span{overflow-wrap:anywhere}

.settings-page{max-width:850px;margin:25px auto 65px;padding:0 24px}.settings-page>p{color:var(--muted);font-size:14px}.setting-row{background:#fff;border:1px solid var(--line);padding:16px 22px;margin:15px 0;border-radius:8px}.setting-row label{margin-top:0}.setting-row textarea{width:100%;font:inherit;padding:10px 12px;border:1px solid #cbd3c9;border-radius:6px;color:var(--ink);resize:vertical}.setting-row textarea:focus-visible{outline:3px solid #718c48;outline-offset:3px}.settings-save{position:sticky;bottom:16px;max-width:260px;box-shadow:0 4px 20px #24373130}

.mentor-panel{margin:26px 0;padding-top:25px}.mentor-panel h2{font-size:24px}.mentor-panel select{width:100%;padding:12px;border:1px solid #cbd3c9;border-radius:6px;font:inherit;color:var(--ink);background:#fff}.mentor-panel select:focus-visible{outline:3px solid #718c48;outline-offset:3px}.mentor-panel p{font-size:14px}.mentor-panel .button{max-width:270px}


/* Site layout policy: the document fits the viewport; long content scrolls inside its panel. */
html{height:100%;overflow:hidden}
body{height:100vh;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.site-header,.site-footer{flex:0 0 auto;width:100%;margin:0 auto;min-height:0;overflow:auto;overflow-wrap:anywhere}
.site-header{padding-top:18px;padding-bottom:18px;max-height:20dvh}
.site-footer{padding-top:12px;padding-bottom:12px;max-height:15dvh;justify-content:center;text-align:center}
.page{flex:1 1 0;width:100%;min-height:0;min-width:0;margin:0 auto;padding:18px 30px;grid-template-rows:minmax(0,1fr);overflow:hidden;gap:50px}
.page>section{min-width:0;min-height:0;max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;overflow-wrap:anywhere}
.auth-panel,.account-panel{margin-top:auto;margin-bottom:auto;padding:26px 30px}
.account-panel h1{margin-top:12px;margin-bottom:18px}
.settings-page{display:flex;flex-direction:column;flex:1 1 0;min-height:0;width:100%;margin:0 auto;padding:18px 24px;overflow:hidden}
.settings-page>h1,.settings-page>p,.settings-page>a,.settings-page>.message{flex-shrink:0}
.settings-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:8px}
.settings-actions{display:flex;justify-content:flex-end;flex-shrink:0;padding-top:14px}
.settings-actions .action-tooltip{top:auto;bottom:calc(100% + 6px)}
.settings-actions .settings-save{position:static;margin-top:0;box-shadow:none}
@media(max-width:760px){
    .site-header{padding:12px 20px}.brand{font-size:18px}.brand-mark{font-size:30px}.brand-logo{width:36px;height:36px}
    .page{padding:10px 16px;gap:12px;grid-template-rows:minmax(0,1fr)}
    .page:has(.intro){grid-template-rows:minmax(0,1fr) minmax(0,4fr)}
    .intro h1{font-size:28px;letter-spacing:-1px;margin:8px 0}.intro>p{font-size:13px;margin:8px 0}
    .auth-panel,.account-panel{padding:20px}.site-footer{padding:10px 20px;font-size:10px;gap:12px}
}
@media(max-height:650px){
    .site-header{padding-top:8px;padding-bottom:8px}.site-footer{padding-top:7px;padding-bottom:7px}
    .page{padding-top:8px;padding-bottom:8px}.auth-panel,.account-panel{padding:18px 24px}
}

/* Design policy: separate information with whitespace, not divider lines. */
.auth-tabs [aria-current]{background:#edf1e4;border-radius:5px}.auth-tabs a{padding:7px 10px}.intro .intro-small{margin-top:32px}

/* Menus and mentor dialogs use spacing and surface colour, without divider lines. */
.site-menu{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.site-menu a,.site-menu button{font:inherit;font-size:13px;white-space:nowrap;text-decoration:none;border:0;background:transparent;color:var(--ink);padding:8px 12px;border-radius:6px;cursor:pointer}.site-menu a:hover,.site-menu button:hover{background:#e6ebdc}.site-header{gap:18px}.site-menu+.header-caption{max-width:22%}
.mentor-dialog{width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 160px);padding:26px;border:0;border-radius:16px;background:#fff;color:var(--ink);overflow:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #172c3540}.mentor-dialog::backdrop{background:#172c3566}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.dialog-heading h2{margin:0}.close-dialog{border:0;background:#edf1e4;color:var(--ink);border-radius:50%;width:36px;height:36px;cursor:pointer;font-size:25px;line-height:1;flex-shrink:0}.mentor-dialog>p{font-size:14px;color:var(--muted)}.mentor-card{background:#f4f6ed;border-radius:10px;padding:16px 18px;margin:16px 0}.mentor-card h3{margin:0;font-size:17px;font-weight:600}.mentor-card .status-label{font-size:13px;margin:4px 0 8px}.mentor-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.mentor-actions .button{margin-top:8px}.text-button{border:0;background:transparent;color:var(--ink);font:inherit;font-size:13px;cursor:pointer;text-decoration:underline;text-underline-offset:4px;padding:10px 0}.invite-form{margin-top:24px}.mentor-dialog select{width:100%;padding:12px;border:1px solid #cbd3c9;border-radius:6px;font:inherit;background:#fff;color:var(--ink)}
@media(max-width:760px){.site-menu{gap:2px}.site-menu a,.site-menu button{font-size:12px;padding:6px}.site-header{gap:10px;flex-wrap:wrap}.mentor-dialog{padding:20px;max-height:calc(100dvh - 150px)}}

/* Button policy: light neutral surfaces and dark text; no solid black fills. */
.button{background:#e9ece4;color:var(--ink);box-shadow:inset 0 0 0 1px #d4dacd}.button:hover{background:#dce2d5;color:var(--ink)}.button:disabled{opacity:.55;cursor:not-allowed}

.photo-page{flex:1 1 0;min-height:0;width:100%;max-width:1180px;margin:0 auto;padding:18px 30px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:20px}.page-heading h1{font-family:Georgia,serif;font-size:34px;font-weight:400;margin:0}.page-heading .button{margin-top:0;text-decoration:none}.upload-panel{max-width:720px;background:#fff;padding:24px;border-radius:12px;margin:20px 0 32px}.upload-panel>p{font-size:14px;color:var(--muted)}textarea{width:100%;font:inherit;color:var(--ink);padding:10px 12px;border:1px solid #cbd3c9;border-radius:6px;resize:vertical}textarea:focus-visible,select:focus-visible{outline:3px solid #718c48;outline-offset:3px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:22px;margin:24px 0}.photo-card{display:flex;flex-direction:column;gap:8px;text-decoration:none;background:#fff;padding:12px;border-radius:12px;overflow-wrap:anywhere}.photo-card img{width:100%;height:180px;object-fit:contain;background:#eceee7;border-radius:8px}.photo-card span{font-size:12px;color:var(--muted)}.photo-large{display:block;max-width:100%;max-height:65dvh;object-fit:contain;margin:20px auto;border-radius:10px}.photo-notes{white-space:normal;overflow-wrap:anywhere}.feedback-thread{background:#fff;border-radius:12px;padding:22px;margin:24px 0;max-width:850px;scroll-margin-top:16px}.feedback-thread h3{margin-top:0}.photo-comment{background:#f2f4ec;border-radius:8px;padding:14px 16px;margin:16px 0;overflow-wrap:anywhere}.photo-comment p{margin-bottom:0}.comment-date{font-size:11px;color:var(--muted);margin-left:12px}.workload-list{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.workload-item{padding:8px 12px;background:#e8ecdf;border-radius:8px;text-decoration:none;font-size:13px}.menu-badge{display:inline-flex;justify-content:center;align-items:center;min-width:22px;height:22px;border-radius:50px;background:#dce5cc;color:#35482d;font-size:11px;font-weight:700;padding:2px 6px;margin-left:4px}.site-header:has(.site-menu){max-width:none;padding-left:24px;padding-right:24px;flex-wrap:wrap;gap:8px 18px}.site-header:has(.site-menu) .header-caption{display:none}.site-menu{gap:3px}.site-menu a,.site-menu button{padding:7px 9px}.photo-page p{overflow-wrap:anywhere}
@media(max-width:760px){.photo-page{padding:16px}.page-heading h1{font-size:28px}.upload-panel,.feedback-thread{padding:18px}.site-header:has(.site-menu){padding:10px 16px}.site-menu{margin-left:0;width:100%;flex-wrap:nowrap;overflow-x:auto}.site-menu a,.site-menu button{flex-shrink:0}.mentor-dialog{max-height:65dvh}.photo-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}

/* Keep the image and its private conversation visible together. */
.photo-detail-page{display:flex;flex-direction:column;overflow:hidden;max-width:1600px}
.photo-detail-page>.page-heading{flex-shrink:0;margin-bottom:10px}
.photo-detail-page>p,.photo-detail-page>a{flex-shrink:0;margin-top:4px;margin-bottom:10px}
.photo-review-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:24px;flex:1;min-height:0}
.photo-review-image{min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}
.photo-review-image .photo-large{width:100%;height:100%;min-height:0;flex:1;max-height:none;margin:0;object-fit:contain;object-position:center}
.photo-review-image .photo-notes{flex:0 1 auto;max-height:30%;overflow:auto;margin:0;padding:16px 20px;font-size:17px;line-height:1.65;background:#e8ece4;border-radius:12px}
.photo-review-feedback{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 4px 4px}
.photo-review-feedback>h2{font-size:20px;margin:0 0 12px}
.photo-review-feedback .feedback-thread{display:flex;flex-direction:column;max-height:100%;min-height:0;padding:18px;margin:0 0 16px}
.photo-review-feedback .feedback-thread>h3{margin:0 0 8px}
.photo-review-feedback .feedback-thread>.field-help{margin:0 0 10px}
.feedback-history{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1 1 auto}
.feedback-history:empty{display:none}
.photo-review-feedback .photo-comment{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:12px;margin:0 0 12px;font-size:14px}
.photo-review-feedback .comment-date{margin-left:0;text-align:right;font-size:13px;font-weight:500;color:var(--ink)}
.photo-review-feedback .photo-comment p{grid-column:1/-1;line-height:1.35;margin-top:6px}
.photo-review-feedback .feedback-thread>form{flex-shrink:0;padding-top:12px}
.photo-review-feedback textarea{max-height:160px}
.photo-review-feedback .button{margin-top:10px}
/* Keep the composer outside the scrolling comment history. */
.photo-review-feedback.feedback-conversation-ready{display:flex;flex-direction:column;overflow:hidden}
.feedback-conversation-ready>h2,.feedback-conversation-ready>.feedback-thread-picker{flex-shrink:0}
.feedback-thread-picker{margin-bottom:10px}
.feedback-thread-picker label{margin:0 0 4px;font-size:12px}
.feedback-thread-picker select{width:100%;min-height:44px;min-width:0;font:inherit;color:var(--ink);background:#fff;border:1px solid #cbd3c9;border-radius:6px;padding:8px 10px}
.feedback-conversation-ready .feedback-thread{flex:1 1 0;max-height:none;overflow:hidden;margin-bottom:0}
.feedback-conversation-ready .feedback-thread[hidden]{display:none}
.feedback-thread-picker:not([hidden])~.feedback-thread>h3{display:none}
.feedback-conversation-ready .feedback-thread>h3,.feedback-conversation-ready .feedback-thread>.field-help,.feedback-conversation-ready .feedback-thread>p{flex-shrink:0}
.feedback-conversation-ready .feedback-history{flex:1 1 0}
.feedback-conversation-ready .feedback-thread>form{flex:0 0 auto;padding-top:8px}
.feedback-conversation-ready .feedback-thread>form>label{margin:4px 0}
@media(max-width:760px){
 .photo-review-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(min(300px,calc(100% - 14px)),2fr);gap:14px}
 .photo-review-image .photo-notes{max-height:40%;font-size:16px;padding:12px 16px}
 .photo-detail-page .page-heading h1{font-size:23px}
 .photo-review-feedback .feedback-thread{padding:12px}
 .photo-review-feedback textarea{height:64px;max-height:100px}
}
@media(max-height:760px){
 .feedback-conversation-ready>h2{font-size:18px;line-height:1.3;margin-bottom:6px}
 .feedback-thread-picker{margin-bottom:6px}
 .feedback-thread-picker label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .feedback-thread-picker select{min-height:36px;padding:6px 10px}
 .feedback-conversation-ready .feedback-thread>.field-help{font-size:11px;line-height:1.3;margin-bottom:6px}
}
@media(max-height:450px){
 .photo-detail-page{padding-top:8px;padding-bottom:8px}
 .feedback-conversation-ready .feedback-thread{padding:8px}
 .feedback-conversation-ready .feedback-thread>h3{font-size:16px;line-height:1.3;margin-bottom:4px}
 .feedback-conversation-ready .feedback-thread>.field-help{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .photo-review-feedback textarea{height:48px;max-height:48px}
}
@media(min-width:600px) and (max-width:1024px) and (max-height:550px){
 .photo-review-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
}

.photo-preview-trigger{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;width:100%;padding:12px;border:0;border-radius:10px;background:#292b2d;cursor:zoom-in}
.photo-preview-trigger:focus-visible{outline:3px solid #718c48;outline-offset:3px;border-radius:10px}
.photo-preview{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#292b2d;color:#f2f2f2}
.photo-preview::backdrop{background:#292b2d}
.photo-preview-close{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;height:100%;padding:16px;border:0;background:transparent;color:inherit;cursor:zoom-out;font:inherit}
.photo-preview-close img{display:block;width:100%;flex:1;min-height:0;object-fit:contain}
.photo-preview-close span{flex-shrink:0;font-size:12px}
.photo-preview-close:focus-visible{outline:3px solid #718c48;outline-offset:-5px}

.photographer-card{display:flex;align-items:center;justify-content:space-between;gap:16px}
.photographer-summary{min-width:0;overflow-wrap:anywhere}
.photographer-summary p{margin:6px 0 0;font-size:13px}
.photographer-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.photographer-actions form{margin:0}
.icon-action-wrap{position:relative;display:inline-flex}
.icon-action{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:10px;border:0;border-radius:8px;background:#e9ece4;color:var(--ink);cursor:pointer;text-decoration:none}
.icon-action:hover{background:#dce2d5}
.icon-action:focus-visible{outline:3px solid #718c48;outline-offset:3px}
.icon-action svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.action-tooltip{position:absolute;right:0;top:calc(100% + 6px);width:230px;max-width:65vw;padding:10px 12px;border-radius:8px;background:#fff;color:var(--ink);box-shadow:0 4px 20px #24373126;font-size:12px;font-weight:400;line-height:1.5;z-index:5;visibility:hidden;opacity:0;pointer-events:none}
.icon-action-wrap:hover .action-tooltip,.icon-action-wrap:focus-within .action-tooltip{visibility:visible;opacity:1;pointer-events:auto}

.site-menu .menu-active{background:#dce5cc;color:#243731;font-weight:700;border-radius:7px}
@keyframes menu-drop-in{from{opacity:0;transform:translateY(-45px)}to{opacity:1;transform:translateY(0)}}
@keyframes logo-slide-in{from{opacity:0;transform:translateX(-80px)}to{opacity:1;transform:translateX(0)}}
@media(prefers-reduced-motion:no-preference){.site-header .brand{animation:logo-slide-in .7s ease-out both}}
@media(prefers-reduced-motion:no-preference){
 .site-menu>*{animation:menu-drop-in .6s ease-out backwards}
 .site-menu>*:nth-child(2){animation-delay:.12s}
 .site-menu>*:nth-child(3){animation-delay:.24s}
 .site-menu>*:nth-child(4){animation-delay:.36s}
 .site-menu>*:nth-child(5){animation-delay:.48s}
 .site-menu>*:nth-child(6){animation-delay:.6s}
 .site-menu>*:nth-child(7){animation-delay:.72s}
 .site-menu>*:nth-child(8){animation-delay:.84s}
}
.signout-action{display:flex;width:fit-content;margin:18px 0 0 auto}
.signout-action .action-tooltip{top:auto;bottom:calc(100% + 6px)}
.mentor-invite-controls{display:flex;align-items:center;gap:12px}
.mentor-invite-controls select{flex:1;min-width:0}
.mentor-invite-controls .icon-action-wrap{flex-shrink:0}
.mentor-invite-controls .action-tooltip{top:auto;bottom:calc(100% + 6px)}
.photo-title-heading{justify-content:flex-start;gap:14px}
.photo-title-heading .photo-title-credit{margin:0;font-size:14px}
.photo-title-heading .action-tooltip{right:auto;left:0}
.mobile-photographer-filter{display:none}
@media(max-width:760px){
    .mobile-photographer-filter{display:grid;gap:6px;margin:12px 0}
    .mobile-photographer-filter label{margin:0}
    .mobile-photographer-filter select{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #cbd3c9;border-radius:6px;background:#fff;color:var(--ink);font:inherit}
    .mobile-photographer-filter .button{margin-top:0}
    .mobile-photographer-filter.filter-auto-submit .button,.mobile-photographer-filter~.workload-list,.desktop-photographer-hint{display:none}
}
.workload-list>.icon-action-wrap .action-tooltip{right:auto;left:0}
.photo-back-action{flex-shrink:0;margin-bottom:10px}
.photo-back-action .action-tooltip{right:auto;left:0}
.feedback-compose{display:flex;align-items:flex-start;gap:10px}
.feedback-compose textarea{flex:1;min-width:0}
.feedback-compose .icon-action-wrap{flex-shrink:0}
.feedback-compose .action-tooltip{top:auto;bottom:calc(100% + 6px)}
.account-detail{justify-content:flex-start;gap:12px;padding:8px 12px;margin:10px 0;background:#edf0e8;border-radius:8px}
.photo-card>a{display:flex;flex-direction:column;gap:8px;text-decoration:none}
.photo-card.photo-initial-feedback{background:mistyrose}
@keyframes feedback-card-fade{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){
 .feedback-animated-grid>.photo-card{animation:feedback-card-fade .5s ease-out backwards;animation-delay:var(--photo-fade-delay,0ms)}
}
.mentor-card.photographer-awaiting-initial{background:mistyrose}
#photographers-dialog,#mentor-dialog{width:min(820px,calc(100vw - 32px));padding:32px 36px 110px}
#photographers-dialog .photographer-card,#mentor-dialog .photographer-card{padding:24px;gap:24px;margin:20px 0}
#photographers-dialog .photographer-actions .action-tooltip,#mentor-dialog .mentor-actions .action-tooltip{top:auto;bottom:calc(100% + 8px);width:260px;max-width:calc(100vw - 100px)}
@media(max-width:760px){#photographers-dialog,#mentor-dialog{padding:22px 20px 90px}#photographers-dialog .photographer-card,#mentor-dialog .photographer-card{padding:18px;gap:14px}}
.feedback-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.photo-card{position:relative}
.photo-card .mentor-comment-count{position:absolute;top:8px;right:8px;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 7px;border-radius:50%;background:#dce5cc;color:var(--ink);font-size:13px;font-weight:700;box-shadow:0 2px 6px #24373126}
.photo-owner-controls{min-width:0}
.photo-owner-controls .editable-photo-title{border:0;background:transparent;padding:4px 0;font-weight:600;min-height:34px}
.photo-owner-controls .editable-photo-title:hover{background:#f2f4ec}
.photo-save-status{display:block;font-size:14px;font-weight:600;text-align:right;color:var(--muted);min-height:21px}
.photo-save-status{opacity:1;transition:opacity .5s ease}
.photo-save-status.save-status-faded{opacity:0}
@media(prefers-reduced-motion:reduce){.photo-save-status{transition:none}}
.photo-title-heading>.photo-owner-controls{flex:1;max-width:650px}
.photo-title-heading .editable-photo-title{font-family:Georgia,serif;font-size:30px;font-weight:400}
.photo-owner-controls>label{margin-top:4px}
.photo-owner-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}
.photo-owner-actions label{display:flex;align-items:center;gap:6px;margin:0;font-weight:400;font-size:12px}
.photo-owner-actions .action-tooltip{top:auto;bottom:calc(100% + 6px)}
.photo-detail-page>.photo-owner-controls{flex-shrink:0;display:grid;grid-template-columns:auto minmax(100px,1fr) auto;align-items:center;gap:12px;margin-bottom:12px}
.photo-detail-page>.photo-owner-controls .photo-owner-actions{margin:0}
@media(max-width:600px){.photo-detail-page>.photo-owner-controls{grid-template-columns:1fr 1fr}.photo-detail-page>.photo-owner-controls>label{grid-column:1/-1}}
@media(max-width:760px){
    .photo-detail-page .photo-title-heading{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:6px 12px}
    .photo-detail-page .photo-title-heading>.photo-owner-controls{width:100%;max-width:none}
    .photo-detail-page .photo-title-heading>h1{min-width:0;overflow-wrap:anywhere}
    .photo-title-heading input.editable-photo-title{font-size:23px;min-height:44px;padding:4px 0;border:0;background:transparent}
    .photo-title-heading .photo-owner-actions{display:none}
    .photo-title-heading .photo-save-status:empty,.photo-title-heading .photo-save-status.save-status-faded{min-height:0;height:0;overflow:hidden}
    .photo-detail-page .photo-title-heading>.photo-title-credit{grid-column:1/-1}
}
.photo-drop-zone{background:#e8ece4;padding:20px;border-radius:12px;margin:12px 0 24px}
.photo-drop-zone.drag-over{background:#dce5cc;outline:3px solid #718c48}
.photo-grid .photo-drop-zone{margin:0;padding:12px;background:#fff;align-self:start}
.photo-drop-holder{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;height:180px;background:#eceee7;border-radius:8px;text-align:center;gap:8px;cursor:pointer}
.photo-drop-zone .photo-drop-holder{margin:0;font-size:14px}
.photo-drop-holder svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.photo-drop-holder .field-help{margin:0}
.photo-drop-holder input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.photo-drop-holder:focus-within{outline:3px solid #718c48;outline-offset:3px}
.photo-grid .photo-drop-zone.drag-over .photo-drop-holder{background:#dce5cc}
.photo-drop-zone label{margin:0 0 10px;font-size:17px;cursor:pointer}
.photo-upload-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,160px) minmax(0,1fr);gap:12px;align-items:center;margin-top:12px;font-size:13px;overflow-wrap:anywhere}
.photo-upload-row progress{width:100%;accent-color:#718c48}
.photo-drop-zone .photo-upload-row{grid-template-columns:1fr;gap:6px}
@media(max-width:760px){
    .photo-grid{gap:10px}
    .photo-grid .photo-card img,.photo-grid .photo-drop-holder{height:120px}
    .photo-grid .photo-save-status:empty,.photo-grid .photo-save-status.save-status-faded{min-height:0;height:0;overflow:hidden}
}
@media(max-width:600px){.photo-upload-row{grid-template-columns:1fr}.photo-drop-zone{padding:16px}}
.account-panel .mentoring-status{font-weight:600;color:var(--ink);background:#edf0e8;border-radius:8px;padding:8px 12px;margin:12px 0}
@keyframes unsaved-field-flash{0%,50%,100%{outline:3px solid #b57922;background-color:#fff1ce}25%,75%{outline:3px solid transparent;background-color:#fff}}
.unsaved-change-flash{animation:unsaved-field-flash 1.6s ease-in-out}
@media(prefers-reduced-motion:reduce){.unsaved-change-flash{animation:none;outline:3px solid #b57922;background-color:#fff1ce}}
.photography-goals{display:block;font-size:13px;font-weight:400;line-height:1.5;color:var(--muted);margin:6px 0 10px;overflow-wrap:anywhere;white-space:normal}
.photo-detail-page>.photography-goals{flex-shrink:0;max-height:70px;overflow:auto}
.account-counts{display:grid;grid-template-columns:auto 1fr;gap:10px 16px;margin:20px 0;font-size:14px;align-items:baseline}
.account-counts dd{margin:0;font-weight:600}
.account-counts small{font-weight:400;color:var(--muted)}
@media(max-width:480px){.account-counts{grid-template-columns:minmax(0,1fr) auto;gap:10px}}
.brand-logo{width:230px;height:auto;max-height:90px;object-fit:contain}
@media(max-width:760px){.brand-logo{width:190px;max-height:72px}}

.activity-page{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:1250px;margin:0 auto;padding:18px 30px;overflow:hidden}
.activity-page h1{margin:0 0 16px;font-family:Georgia,serif;font-size:34px;font-weight:400}
.activity-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-bottom:18px;flex-shrink:0}
.activity-filters>div{flex:1;min-width:150px}
.activity-filters label{margin-top:0}
.activity-filters select{width:100%;min-height:46px;border:1px solid #cbd3c9;border-radius:6px;background:#fff;padding:10px;font:inherit;color:var(--ink)}
.activity-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.activity-table{width:100%;border-spacing:0;text-align:left;font-size:14px}
.activity-table th,.activity-table td{padding:12px 16px;vertical-align:top;overflow-wrap:anywhere}
.activity-table th{position:sticky;top:0;background:#e8ece4;z-index:1}
.activity-table tr:nth-child(even) td{background:#edf0e8}
.activity-table small{display:block;color:var(--muted);font-size:11px}
.activity-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:14px;font-size:13px;flex-shrink:0}
@media(max-width:760px){.activity-page{padding:16px}.activity-table th,.activity-table td{padding:10px 8px}.activity-filters>div{min-width:120px}}

.user-edit-scroll{display:flex;align-items:flex-start;justify-content:center}
.user-edit-form{width:100%;max-width:760px;background:#fff;border-radius:12px;padding:22px;margin:0 auto 24px}
.user-edit-form select{width:100%;font:inherit;padding:10px;border:1px solid #cbd3c9;border-radius:6px;background:#fff;color:var(--ink)}
.user-edit-actions{display:flex;justify-content:space-between;align-items:center;margin-top:20px}
.user-edit-actions .action-tooltip{top:auto;bottom:calc(100% + 6px)}
.user-list-return .action-tooltip{left:0;right:auto}
.user-maintenance-edit>h1{width:100%;max-width:760px;margin-left:auto;margin-right:auto;margin-bottom:8px}
.user-row-actions{display:flex;justify-content:flex-end;gap:8px}
.activity-table .user-image-count{text-align:center;white-space:nowrap}
.activity-table .not-verified{font-weight:700;color:#b42318}
.user-list-table th,.user-list-table td{padding:8px 12px;line-height:1.4}
.user-search-filter>div{flex:0 1 30%;min-width:280px}
@media(max-width:760px){.user-search-filter>div{flex:1 1 0;min-width:0}}
@media(max-width:760px){.user-list-table th,.user-list-table td{padding:6px 8px}}
.user-delete-review{font-size:14px}
.user-delete-review li{margin:8px 0}
.user-delete-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:20px}
.user-delete-actions .button{width:auto;margin:0;text-decoration:none}

.mail-transactions-intro{flex-shrink:0;margin:0 0 12px;font-size:13px;line-height:1.4;color:var(--muted)}
.site-activity-table th,.site-activity-table td{padding:8px 12px;line-height:1.4}
@media(max-width:760px){.site-activity-table th,.site-activity-table td{padding:6px 8px}}
.mail-transactions-filters .button{width:auto;min-width:0;margin:0;justify-content:center;text-decoration:none}
.activity-filters>.mail-filter-actions{display:flex;flex:0 0 auto;gap:8px;min-width:0}
.mail-filter-actions .action-tooltip{left:auto;right:0}
.mail-transactions-page>.message{flex-shrink:0}
.mail-transactions-page .activity-pagination{flex-wrap:wrap;gap:8px 16px}
.mail-transactions-table{table-layout:fixed}
.mail-transactions-table th:first-child{width:18%}
.mail-transactions-table th:nth-child(2){width:23%}
.mail-transactions-table th:nth-child(3){width:34%}
.mail-transactions-table th:nth-child(4){width:25%}
.mail-transactions-table small{margin-top:4px}
.mail-message-id{margin-top:6px;font-size:12px}
.mail-message-id summary{cursor:pointer}
.mail-event{font-size:13px}
.mail-event-delivered{color:#385326}
.mail-event-failed,.mail-event-rejected,.mail-event-complained{color:#923b29}
.mail-transactions-table .mail-delivery-detail{color:var(--ink)}
@media(max-width:760px){
    .mail-transactions-table,.mail-transactions-table tbody,.mail-transactions-table tr,.mail-transactions-table td{display:block;width:100%}
    .mail-transactions-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
    .mail-transactions-table tr{padding:12px;margin-bottom:10px;background:#fff;border-radius:10px}
    .mail-transactions-table td{padding:4px 0}
    .mail-transactions-table tr:nth-child(even) td{background:transparent}
    .mail-transactions-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--muted)}
}

/* Compact navigation stays inside the viewport, with its own scroll area. */
.site-header:has(.admin-menu){overflow:visible}
.admin-menu{position:relative}
.admin-menu-toggle{display:flex;align-items:center;gap:8px;padding:7px 9px;list-style:none;border-radius:6px;font-size:13px;cursor:pointer}
.admin-menu-toggle::-webkit-details-marker{display:none}
.admin-menu-toggle:focus-visible{outline:3px solid #718c48;outline-offset:3px}
.admin-menu-toggle:hover,.admin-menu[open]>.admin-menu-toggle{background:#e6ebdc}
.admin-menu:has([aria-current="page"])>.admin-menu-toggle{background:#dce5cc;font-weight:700}
.admin-submenu{position:absolute;top:calc(100% + 8px);right:0;z-index:20;display:flex;flex-direction:column;gap:4px;min-width:230px;max-width:calc(100vw - 32px);max-height:60dvh;overflow:auto;padding:8px;background:#fff;border-radius:10px;box-shadow:0 8px 24px #24373126;overscroll-behavior:contain}
.site-menu .admin-submenu>a{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 12px;white-space:normal;animation:none}
.admin-submenu .menu-badge{flex-shrink:0;margin-left:auto}
.menu-toggle{display:none}
@media(max-width:1024px){
    .site-header:has(.site-menu){position:relative;z-index:10;max-height:none;overflow:visible;padding:10px 16px;gap:10px}
    .site-header:has(.site-menu) .brand{min-width:0;max-width:100%;font-size:18px}
    .site-header:has(.site-menu) .brand-logo{width:190px;max-width:100%;max-height:min(72px,12dvh)}
    .site-header .site-menu{width:100%;min-width:0;margin:0;flex-wrap:nowrap;overflow:auto;padding:4px}
    .mobile-menu-ready .brand{flex:1}
    .mobile-menu-ready .menu-toggle:not([hidden]){display:flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:44px;padding:8px 12px;border:0;border-radius:6px;background:#e9ece4;color:var(--ink);cursor:pointer}
    .menu-toggle:hover,.menu-toggle[aria-expanded="true"]{background:#dce2d5}
    .mobile-menu-ready .site-menu{display:none;position:absolute;top:100%;left:16px;right:16px;width:auto;max-height:var(--menu-height,65dvh);flex-direction:column;align-items:stretch;gap:4px;padding:8px;background:#fff;border-radius:10px;box-shadow:0 8px 24px #24373126;overscroll-behavior:contain}
    .mobile-menu-ready.menu-open .site-menu{display:flex}
    .mobile-menu-ready .site-menu>a,.mobile-menu-ready .site-menu>button{display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 12px;font-size:14px;text-align:left;white-space:normal;animation:none}
    .mobile-menu-ready .site-menu .menu-badge{flex-shrink:0;margin-left:auto}
    .mobile-menu-ready .admin-menu{flex-shrink:0}
    .mobile-menu-ready .admin-menu-toggle{min-height:44px;padding:10px 12px;font-size:14px}
    .mobile-menu-ready .admin-menu-toggle>span{margin-left:auto}
    .mobile-menu-ready .admin-submenu>a{font-size:14px}
    .mobile-menu-ready .admin-submenu{position:static;min-width:0;max-width:none;max-height:none;width:auto;padding:4px 0 0 12px;background:transparent;box-shadow:none;overflow:visible}
}

.ai-mentor-guide{font-size:13px;line-height:1.4;margin:8px 0 14px;color:var(--muted)}
.ai-mentor-guide p{margin:8px 0}
.ai-mentor-guide ul{padding-left:18px;margin:8px 0}
.ai-mentor-guide li{margin:5px 0}
.ai-mentor-guide strong{color:var(--ink)}
.feedback-thread>form[hidden],.ai-feedback-retry[hidden]{display:none}
.ai-feedback-status:empty{display:none}
.ai-feedback-status{flex-shrink:0;margin:6px 0}
.ai-feedback-retry{flex-shrink:0;width:auto;align-self:flex-start;margin-top:6px;padding:6px 10px;font-size:13px}
@media(min-width:600px) and (max-width:1024px) and (max-height:550px){
 .photo-detail-page .photo-title-heading{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:2px 12px;margin-bottom:4px}
 .photo-detail-page .photo-title-heading>.photo-owner-controls{width:100%;max-width:none}
 .photo-title-heading input.editable-photo-title{font-size:20px;min-height:36px;height:36px;margin:0;padding:4px 0;border:0;background:transparent}
 .photo-title-heading .photo-owner-actions{display:none}
 .photo-title-heading .photo-save-status:empty,.photo-title-heading .photo-save-status.save-status-faded{min-height:0;height:0;overflow:hidden}
 .photo-detail-page .photo-title-heading>.photo-title-credit{grid-column:1/-1;font-size:11px;margin:0}
 .photo-detail-page>.photography-goals{max-height:36px;margin:2px 0 6px}
}

/* Photograph, history and reply each have their own panel. */
.photo-review-layout{grid-template-columns:minmax(0,1.2fr) minmax(0,1.1fr) minmax(240px,.9fr);gap:18px}
.photo-review-compose{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;padding:0 4px 4px}
.photo-review-compose>h2{flex-shrink:0;font-size:20px;margin:0 0 12px}
.feedback-columns-ready .photo-review-compose{overflow:hidden}
.feedback-reply{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0;padding:18px;background:#fff;border-radius:12px}
.feedback-reply[hidden]{display:none}
.feedback-reply .reply-recipient{flex-shrink:0;margin:0 0 10px;font-size:13px;line-height:1.4;max-height:3em;overflow:auto;overflow-wrap:anywhere}
.feedback-reply>form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0}
.feedback-reply .reply-input-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.feedback-reply .feedback-compose{flex:1;min-height:0;flex-direction:column;align-items:stretch}
.feedback-reply textarea{height:100%;min-height:64px;max-height:none;resize:none;font-size:14px;line-height:1.4}
.feedback-reply .icon-action-wrap{align-self:flex-end}
.feedback-reply .action-tooltip{left:auto;right:0}
.feedback-reply button:disabled{opacity:.5;cursor:default}
@media(max-width:1024px){
 .photo-review-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) 150px;gap:12px}
 .photo-review-compose{grid-column:1/-1}
 .photo-review-compose>h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .feedback-reply{padding:10px}
 .feedback-reply .reply-recipient{margin-bottom:4px;font-size:12px}
 .feedback-reply .feedback-compose{flex-direction:row;align-items:flex-start}
 .feedback-reply textarea{min-height:48px;max-height:96px}
 .feedback-reply .icon-action-wrap{align-self:flex-start}
}
@media(max-width:760px){
 .photo-review-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,.65fr) minmax(0,1fr) 132px;gap:10px}
 .photo-review-compose{grid-column:auto}
 .feedback-reply{padding:8px 10px}
 .feedback-reply textarea{max-height:80px}
}
@media(min-width:480px) and (max-width:1024px) and (max-height:550px){
 .photo-review-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(150px,.85fr);grid-template-rows:minmax(0,1fr);gap:10px}
 .photo-review-compose{grid-column:auto}
 .feedback-reply{padding:8px}
}
@media(max-width:760px) and (max-height:650px) and (orientation:portrait){
 .photo-review-layout{grid-template-rows:minmax(0,.25fr) minmax(0,1fr) 108px;gap:6px}
}

.profile-save-status{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.4}
.profile-save-status:empty{display:none}
.profile-save-status.save-error{color:#b42318;font-weight:600}

/* Align the title, conversation controls and content surfaces across the three columns. */
.photo-review-image{gap:10px}
.photo-review-image>.photo-column-heading{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:12px;position:relative;flex:0 0 44px;height:44px;min-height:44px;margin:0}
.photo-column-heading h1{font-family:Georgia,serif;font-size:20px;line-height:1.15;margin:0;max-height:44px;overflow:auto;overflow-wrap:anywhere}
.photo-column-heading>.photo-owner-controls{position:relative;width:100%;max-width:none;min-width:0}
.photo-review-image .photo-column-heading input.editable-photo-title{font-size:20px;line-height:1.2;height:44px;min-height:44px;margin:0;padding:4px 0;border:0;background:transparent}
.photo-column-heading .photo-owner-actions{display:none}
.photo-column-heading .photo-save-status{position:absolute;right:0;top:100%;font-size:11px;z-index:1}
.photo-image-details{flex:0 0 44px;min-height:0;height:44px;overflow:auto;overscroll-behavior:contain}
.photo-image-details .photo-title-credit,.photo-image-details .photography-goals,.photo-image-details .photo-image-note{font-size:12px;line-height:1.4;margin:0 0 3px}
.photo-review-feedback>h2,.photo-review-compose>h2{display:flex;align-items:center;flex:0 0 44px;height:44px;min-height:44px;font-size:20px;line-height:1.2;margin:0 0 10px}
.photo-feedback-controls{flex:0 0 44px;min-height:0;height:44px;margin:0 0 10px}
.photo-feedback-controls .feedback-thread-picker{margin:0}
.photo-feedback-controls .feedback-thread-picker label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.photo-feedback-controls .feedback-thread-picker select{height:44px;min-height:44px}
.photo-feedback-controls>p{font-size:12px;line-height:1.4;margin:0;max-height:44px;overflow:auto}
.feedback-reply{padding:0;background:transparent}
.feedback-reply .reply-recipient{display:flex;align-items:center;flex:0 0 44px;height:44px;min-height:0;max-height:44px;margin:0 0 10px;overflow:auto}
.feedback-reply>form,.feedback-reply>p.muted,.feedback-empty{padding:18px;background:#fff;border-radius:12px}
.feedback-empty{flex:1;min-height:0;margin:0;overflow:auto}
@media(max-width:1024px){
 .photo-review-compose>h2{position:absolute;width:1px;height:1px;min-height:0;flex:0;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .feedback-reply .reply-recipient{display:block;flex:0 0 auto;height:auto;max-height:34px;margin:0 0 4px;font-size:12px}
 .feedback-reply>form,.feedback-reply>p.muted{padding:8px 10px}
}
@media(max-width:760px){
 .photo-review-layout{grid-template-rows:minmax(132px,.9fr) minmax(0,1fr) 132px}
 .photo-review-image>.photo-column-heading{gap:8px}
}
@media(max-width:760px) and (max-height:650px) and (orientation:portrait){
 .photo-review-layout{grid-template-rows:132px minmax(0,1fr) 108px}
 .photo-review-feedback>h2{flex-basis:28px;height:28px;min-height:28px;font-size:18px;margin-bottom:6px}
 .photo-feedback-controls{flex-basis:36px;height:36px;margin-bottom:6px}
 .photo-feedback-controls .feedback-thread-picker select{height:36px;min-height:36px}
}
@media(min-width:480px) and (max-width:1024px) and (max-height:550px){
 .photo-review-layout{grid-template-rows:minmax(0,1fr)}
 .photo-review-compose>h2{position:static;width:auto;height:44px;min-height:44px;flex:0 0 44px;margin:0 0 10px;clip-path:none;white-space:normal}
 .feedback-reply .reply-recipient{display:flex;align-items:center;flex:0 0 44px;height:44px;max-height:44px;margin:0 0 10px}
}

.photo-review-feedback.has-thread-picker .feedback-thread>h3{display:none}

.photo-review-feedback>h2{gap:8px}
.photo-review-feedback>h2 .menu-badge{margin-left:0;flex-shrink:0}
.flash-notice-stack{position:fixed;inset:auto;top:max(12px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:10000;width:max-content;max-width:calc(100vw - 32px);margin:0;padding:0;border:0;background:transparent;overflow:visible;pointer-events:none;display:grid;gap:8px}
.flash-notice-stack .flash-notice-item{margin:0;max-width:min(640px,calc(100vw - 32px));box-shadow:0 6px 24px #24373125;opacity:1;transition:opacity .5s ease}
.flash-notice-stack .flash-notice-fading{opacity:0}
@media(prefers-reduced-motion:reduce){.flash-notice-stack .flash-notice-item{transition:none}}

/* Portraits fill the left edge while actions and their help remain accessible. */
#mentor-dialog .photographer-card,#photographers-dialog .photographer-card{display:grid;grid-template-columns:96px minmax(0,1fr) auto;align-items:stretch;gap:0;padding:0}
.relationship-portrait{position:relative;min-height:110px;border-radius:10px 0 0 10px;overflow:hidden;background:#e7e8df}
.relationship-portrait img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.photographer-card>.photographer-summary{padding:16px}
.photographer-card>.mentor-actions,.photographer-card>.photographer-actions{align-self:center;padding:10px 14px 10px 0;margin:0}
.profile-portrait-form{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start}
.account-portrait{width:96px;height:110px;object-fit:cover;border-radius:10px;margin-top:16px}
.profile-portrait-form input[type=file]{min-height:0;padding:6px;font-size:12px}
.portrait-form-actions{display:flex;gap:8px;flex-wrap:wrap}
.portrait-form-actions .button{min-width:0;width:auto;margin-top:4px;padding:8px 12px;font-size:12px}
.site-header,.site-header:has(.site-menu){padding-top:10px;padding-bottom:10px}
.photo-grid{align-items:start}
.photo-grid .photo-card{gap:4px}
.photo-grid .photo-card img{display:block}
.photo-grid .photo-save-status:empty,.photo-grid .photo-save-status.save-status-faded{display:none}
.photo-grid .photo-image-surface>a{display:block;text-decoration:none}
.photo-grid .photo-owner-controls{margin:0}
.photo-grid .photo-owner-controls .editable-photo-title{min-height:30px;padding:2px 0}
.photo-image-surface{position:relative;min-width:0;min-height:0}
.photo-review-image>.photo-image-surface{display:flex;flex:1;min-height:0}
.photo-feedback-toggle{position:absolute;right:8px;bottom:8px;z-index:2}
.photo-feedback-toggle label{margin:0;width:36px;height:36px;padding:8px;background:#f2f3ebed;box-shadow:0 1px 6px #0003}
.photo-feedback-toggle input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.photo-feedback-toggle label:has(:focus-visible){outline:3px solid #718c48;outline-offset:3px}
.photo-feedback-toggle .feedback-resume-icon{display:none}
.photo-feedback-toggle:has(input:checked) label{background:#f6e3c9;color:#71491d}
.photo-feedback-toggle:has(input:checked) .feedback-pause-icon{display:none}
.photo-feedback-toggle:has(input:checked) .feedback-resume-icon{display:block}
.photo-feedback-toggle .action-tooltip{top:auto;bottom:calc(100% + 8px);right:0;left:auto;width:240px;max-width:calc(100vw - 48px)}
.photo-visibility-control{margin-left:auto}
@media(max-width:760px){
 .site-header,.site-header:has(.site-menu){padding-top:7px;padding-bottom:7px}
 #mentor-dialog .photographer-card,#photographers-dialog .photographer-card{grid-template-columns:68px minmax(0,1fr) auto}
 .photographer-card>.photographer-summary{padding:12px 10px}
 .photographer-card>.mentor-actions,.photographer-card>.photographer-actions{padding-right:8px;gap:4px;flex-direction:column}
 .profile-portrait-form{grid-template-columns:68px minmax(0,1fr);gap:12px}
 .account-portrait{width:68px;height:90px}
 .photo-visibility-control{padding:8px 12px;min-width:0}
}
@media(max-height:650px){.site-header,.site-header:has(.site-menu){padding-top:6px;padding-bottom:6px}}
@media(max-width:760px) and (max-height:650px) and (orientation:portrait){
 .photo-review-image{gap:5px}
 .photo-review-image>.photo-column-heading{flex-basis:32px;height:32px;min-height:32px}
 .photo-review-image .photo-column-heading input.editable-photo-title{height:32px;min-height:32px}
 .photo-image-details{flex-basis:36px;height:36px}
}

/* Keep the dialog heading and introductory guidance visible as its contents scroll. */
:is(#mentor-dialog,#photographers-dialog){padding:0;overflow:hidden}
:is(#mentor-dialog,#photographers-dialog)[open]{display:flex;flex-direction:column}
:is(#mentor-dialog,#photographers-dialog) .mentor-dialog-header{flex:0 0 auto;padding:28px 36px 0}
:is(#mentor-dialog,#photographers-dialog) .mentor-dialog-header>p,:is(#mentor-dialog,#photographers-dialog) .mentor-dialog-body>p{font-size:14px;color:var(--muted)}
:is(#mentor-dialog,#photographers-dialog) .mentor-dialog-header>p{margin:14px 0 12px}
:is(#mentor-dialog,#photographers-dialog) .mentor-dialog-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:0 36px 32px}
:is(#mentor-dialog,#photographers-dialog) .mentor-dialog-body>.photographer-card:first-child{margin-top:8px}
@media(max-width:760px){
 :is(#mentor-dialog,#photographers-dialog) .mentor-dialog-header{padding:20px 20px 0}
 :is(#mentor-dialog,#photographers-dialog) .mentor-dialog-body{padding:0 20px 24px}
}

/* Photography goals stay available beside the photograph title without taking a line. */
.photo-review-image>.photo-column-heading:has(.photography-goals-help){grid-template-columns:42px minmax(0,1fr) 36px;z-index:4}
.photography-goals-help{display:inline-flex;align-items:center}
.photography-goals-help>.icon-action{width:36px;height:36px;padding:7px}
.photography-goals-popup{position:absolute;top:calc(100% + 8px);right:0;z-index:6;width:min(360px,calc(100vw - 48px));max-height:min(45dvh,360px);overflow:auto;overscroll-behavior:contain;padding:14px 16px;background:#fff;color:var(--ink);border-radius:10px;box-shadow:0 4px 24px #24373130;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.photography-goals-popup[hidden]{display:none}
.photography-goals-popup>strong,.photography-goals-popup>span{display:block}
.photography-goals-popup>strong{margin-bottom:6px}
.photography-goals-popup:focus-visible{outline:3px solid #718c48;outline-offset:-3px}
