/* Mehr News — visual direction: quiet editorial surfaces, one clear photo action. */
@font-face {
  font-family:Vazir;
  src:url('fonts/Vazir-Regular.woff2') format('woff2');
  font-style:normal;
  font-weight:400;
  font-display:swap;
}
@font-face {
  font-family:Vazir;
  src:url('fonts/Vazir-Medium.woff2') format('woff2');
  font-style:normal;
  font-weight:500;
  font-display:swap;
}
@font-face {
  font-family:Vazir;
  src:url('fonts/Vazir-Bold.woff2') format('woff2');
  font-style:normal;
  font-weight:700;
  font-display:swap;
}
@font-face {
  font-family:Vazir;
  src:url('fonts/Vazir-Black.woff2') format('woff2');
  font-style:normal;
  font-weight:900;
  font-display:swap;
}
:root {
  --mehr:#a91e2b;
  --mehr-dark:#811521;
  --mehr-soft:#fae9e7;
  --ink:#18252b;
  --text:#304047;
  --muted:#67757a;
  --line:#e6e5df;
  --surface:#fff;
  --bg:#f7f7f3;
  --success:#267451;
  --danger:#ae2935;
  --shadow:0 18px 48px rgba(27,38,43,.085);
}
html {background:var(--bg)}
body {font-family:Vazir,Tahoma,sans-serif;color:var(--text);background:var(--bg);line-height:1.75}
body,button,input,select,textarea {font-family:Vazir,Tahoma,sans-serif}
::selection {background:#f4cdcb;color:#471116}
:focus-visible {outline:3px solid #bc4250;outline-offset:3px}
.container {width:min(1180px,calc(100% - 42px));padding:27px 0 50px}
.site-header {height:73px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);box-shadow:0 5px 20px rgba(25,37,43,.035)}
.site-header:before {content:"";position:absolute;top:0;inset-inline:0;height:3px;background:linear-gradient(90deg,#ddd7ce 0 80%,var(--mehr) 80%)}
.header-inner {width:min(1180px,calc(100% - 42px))}
.brand-logo-badge {width:43px;height:43px;border:1px solid #eee3df;border-radius:13px;box-shadow:none}
.brand-copy strong {font-size:16px;color:var(--ink);font-weight:850}
.brand-copy small {font-size:10px;color:#788286}
.desktop-primary-nav {padding:3px;background:#f6f6f3;border:1px solid #eeeee9;border-radius:12px}
.desktop-primary-nav .nav-btn {min-height:39px;border-radius:9px;font-size:11px;font-weight:750}
.desktop-primary-nav .nav-btn.is-current,.desktop-primary-nav .nav-btn:hover {background:#fff;color:var(--mehr);box-shadow:0 3px 9px rgba(25,37,43,.07)}
.user-chip {border:1px solid var(--line);background:#fafaf8}
.nav-btn-outline {border-color:#dddeda;background:#fff}
.site-footer {background:transparent;border-color:var(--line)}
.site-footer>div {width:min(1180px,calc(100% - 42px));font-size:10px;color:#7a8589}
.card {border:1px solid var(--line);border-radius:19px;box-shadow:0 7px 24px rgba(27,38,43,.035)}
.mini-label,.eyebrow {font-size:10px;font-weight:850;color:var(--mehr)}
.page-heading h1 {color:var(--ink);font-weight:850;letter-spacing:0}
.page-heading p {color:var(--muted)}
.btn,.nav-btn {border-radius:11px;transition:background .18s,border-color .18s,box-shadow .18s,transform .18s}
.btn-primary {background:var(--mehr);box-shadow:0 8px 18px rgba(169,30,43,.16)}
.btn-primary:hover {background:var(--mehr-dark);box-shadow:0 9px 23px rgba(129,21,33,.22)}
.btn-secondary {background:#fff;border:1px solid #dedfdb;color:#34434a}
.btn-secondary:hover {background:#f5f5f1;color:var(--ink)}
.btn:disabled {transform:none;box-shadow:none}
input[type=text],input[type=password],input:not([type]),input[type=search],select {background:#fff;border-color:#dddfdc;border-radius:11px;color:var(--ink)}
input:focus,select:focus {border-color:var(--mehr);box-shadow:0 0 0 4px rgba(169,30,43,.11)}
.count-pill {background:#f3f4f1;border:1px solid #e9eae5;color:#526169}

/* A single sign-in composition with the brand above the form. */
body.page-index {position:relative;overflow-x:hidden;background:radial-gradient(circle at 15% 4%,#f2e5df 0,transparent 380px),radial-gradient(circle at 100% 100%,#eef0ed 0,transparent 380px),#f8f7f3}
.page-index .public-container {min-height:calc(100dvh - 76px);padding:30px 0 36px;align-items:center}
.page-index .auth-shell {position:relative;isolation:isolate;width:min(440px,100%);display:flex;flex-direction:column;align-items:stretch;gap:0;overflow:visible;border:0;background:none;border-radius:0;box-shadow:none}
.page-index .auth-shell:before {content:"";position:absolute;z-index:-1;width:320px;height:320px;top:-63px;right:-177px;border-radius:50%;border:1px solid rgba(169,30,43,.10);box-shadow:0 0 0 38px rgba(169,30,43,.025),0 0 0 78px rgba(169,30,43,.016)}
.auth-masthead {display:flex;align-items:center;justify-content:center;gap:12px;margin:0 0 24px}
.auth-logo-frame {display:grid;place-items:center;width:56px;height:56px;flex:0 0 auto;border:1px solid #eadad5;border-radius:17px;background:#fff;box-shadow:0 9px 22px rgba(69,36,38,.07)}
.auth-logo-frame .brand-logo-auth {width:42px;height:42px;object-fit:contain}
.auth-masthead>div {display:flex;flex-direction:column;gap:1px}
.auth-masthead strong {font-size:19px;font-weight:900;color:var(--ink);line-height:1.45}
.auth-masthead small {font-size:11px;color:#7b8284;font-weight:600}
.page-index .auth-card {display:block;width:100%;padding:35px 36px 30px;border:1px solid #eae6df;border-radius:25px;background:#fff;box-shadow:0 22px 60px rgba(32,37,38,.085)}
.page-index .auth-card-head {margin-bottom:23px}
.auth-kicker {display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:850;color:var(--mehr)}
.auth-kicker span {width:7px;height:7px;border-radius:50%;background:var(--mehr);box-shadow:0 0 0 4px #f9e9e8}
.page-index .auth-card-head h1 {font-size:28px;line-height:1.45;margin:12px 0 5px;color:var(--ink);font-weight:900;letter-spacing:-.2px}
.page-index .auth-card-head p {font-size:12px;line-height:1.8;color:#788187;margin:0}
.auth-form label {display:block;font-size:12px;font-weight:800;color:#26343a;margin:16px 0 7px}
.auth-form .input-wrap input {height:55px;min-height:55px;width:100%;padding-inline:15px;border:1px solid #dfe1de;background:#fcfcfa;border-radius:11px;font-size:15px}
.auth-form .input-wrap input::placeholder {color:#9ba4a6}
.auth-form .input-wrap input:focus {background:#fff}
.auth-form .password-input-wrap input {padding-inline-end:82px}
.password-toggle {min-width:64px;min-height:38px;border-radius:8px;background:#f2f3f0;color:#47545a;font-size:11px}
.password-toggle:hover {background:#e6e9e5}
.auth-form .btn {width:100%;min-height:56px;margin-top:24px;padding:0 19px;font-size:14px;font-weight:850;box-shadow:0 9px 19px rgba(169,30,43,.18)}
.auth-form .btn span {font-size:19px;font-weight:400}
.page-index .login-note {padding:18px 0 0;margin:22px 0 0;border-top:1px solid #eceeea;text-align:center;font-size:10px;line-height:1.7;color:#758085}
.auth-endmark {align-self:center;width:28px;height:3px;margin-top:28px;background:var(--mehr);border-radius:4px;opacity:.72}
.page-index .site-footer {border:0}
.page-index .site-footer>div {justify-content:center;padding:0 0 18px}
.page-index .site-footer .footer-branding {display:none}

/* A single file picker keeps the province upload path clear. */
.path-trail {margin-bottom:13px;color:#7b8587;font-size:11px}
.path-trail a:hover {color:var(--mehr)}
.page-upload_page .compact-heading {max-width:820px;margin:0 auto 13px;padding:0 2px;background:none;border:0;border-radius:0;box-shadow:none}
.page-upload_page .compact-heading:before {display:none}
.page-upload_page .compact-heading h1 {margin:6px 0 0;font-size:clamp(25px,3vw,34px);line-height:1.45}
.folder-type-label {padding:4px 9px;border-radius:6px;background:#f1efea;color:#657178;font-size:10px}
.leaf-workspace .folder-type-label {background:#f9eae7;color:var(--mehr)}
.back-link {font-size:11px;color:#69777c;font-weight:700}
.page-upload_page .photo-upload-card {position:relative;max-width:820px;padding:27px 28px 25px;border:1px solid #e7e0db;border-radius:21px;background:#fff;box-shadow:0 16px 44px rgba(38,42,42,.075);overflow:hidden}
.page-upload_page .photo-upload-card:before {content:"";position:absolute;top:0;right:0;width:116px;height:4px;background:var(--mehr);border-radius:0 0 0 4px}
.photo-upload-card .upload-intro {display:flex;align-items:center;gap:13px;margin:0 0 19px}
.photo-upload-card .upload-step {display:grid;place-items:center;width:51px;height:51px;margin:0;flex:0 0 auto;border-radius:13px;background:#f8e9e5;color:var(--mehr);font-size:25px;font-weight:800;box-shadow:none;direction:ltr}
.photo-upload-card .upload-intro h2 {font-size:22px;font-weight:850;line-height:1.45;margin:2px 0 0;color:var(--ink)}
.photo-upload-card .upload-intro .mini-label {font-size:10px;color:#889092}
.photo-upload-card .dropzone {position:relative;min-height:295px;display:flex;align-items:center;justify-content:center;flex-direction:column;margin:0;padding:20px 18px;overflow:hidden;border:1.5px dashed #d7bdb5;border-radius:17px;background:radial-gradient(circle at 50% 25%,#fff 0,#fdf9f6 72%);cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.photo-upload-card .dropzone:before {content:"";position:absolute;top:19px;left:19px;width:18px;height:18px;border-top:2px solid #dbbab1;border-left:2px solid #dbbab1;border-radius:4px 0 0 0}
.photo-upload-card .dropzone:hover,.photo-upload-card .dropzone.drag-active,.photo-upload-card .dropzone:focus-within {border-color:var(--mehr);background:#fff9f7;box-shadow:inset 0 0 0 3px rgba(169,30,43,.045)}
.photo-upload-card .dropzone input {position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.upload-illustration {position:relative;display:block;width:132px;height:110px;flex:0 0 auto;margin:0 0 2px;color:#697d80}
.upload-illustration svg {display:block;width:100%;height:100%;filter:drop-shadow(0 8px 8px rgba(39,45,45,.09))}
.photo-upload-card .dropzone strong {margin:0 0 3px;font-size:20px;font-weight:850;color:var(--ink);line-height:1.5}
.photo-upload-card .dropzone>span:not(.upload-illustration):not(.upload-primary-cta) {font-size:12px;color:#788286;line-height:1.7}
.upload-primary-cta {display:inline-flex;align-items:center;justify-content:center;gap:17px;min-width:167px;min-height:43px;margin-top:18px;padding:8px 17px;border-radius:10px;background:var(--mehr);color:#fff;font-size:12px;font-weight:850;box-shadow:0 7px 16px rgba(169,30,43,.16)}
.photo-upload-card .dropzone>.upload-primary-cta {color:#fff;font-size:13px;line-height:1.3}
.upload-primary-cta span {font-size:18px;line-height:1}
.upload-photo-tip {display:flex;align-items:flex-start;gap:10px;margin-top:10px;padding:11px 13px;border:1px solid #dce7e7;border-radius:11px;background:#f4f8f8;color:#38565b}
.upload-photo-tip p {margin:0;font-size:11px;line-height:1.9;font-weight:650}
.upload-tip-icon {display:grid;place-items:center;flex:0 0 19px;width:19px;height:19px;margin-top:1px;border-radius:50%;background:#dceceb;color:#397078;font:800 12px/1 Arial,sans-serif;direction:ltr}
.photo-fields {margin-top:12px;border:1px solid #e4dfd9;border-radius:14px;background:#fff;overflow:hidden}
.photo-fields>summary {display:flex;align-items:center;gap:12px;min-height:66px;padding:11px 15px;list-style:none;cursor:pointer}
.photo-fields>summary::-webkit-details-marker,.photo-info>summary::-webkit-details-marker {display:none}
.photo-fields>summary:focus-visible,.photo-info>summary:focus-visible {outline:3px solid var(--mehr);outline-offset:-3px}
.photo-fields-icon {display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:#f9eae7;color:var(--mehr);font-size:20px}
.photo-fields-heading {display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.photo-fields-heading strong {font-size:13px;color:var(--ink)}
.photo-fields-heading small {font-size:10px;color:var(--muted)}
.photo-fields-add {padding:7px 11px;border-radius:8px;background:#f9eae7;color:var(--mehr);font-size:11px;font-weight:800}
.photo-fields[open] .photo-fields-add {background:#f1f1ef;color:var(--muted)}
.photo-fields[open] .photo-fields-add:after {content:' ×'}
.photo-fields-body {padding:4px 16px 17px;border-top:1px solid #ece9e6}
.photo-fields-body>p {margin:10px 0 14px;color:var(--muted);font-size:11px;line-height:1.8}
.photo-fields-body>.photo-fields-resume {padding:8px 10px;border-radius:8px;background:#eef4f6;color:#35535b}
.photo-fields-resume[hidden] {display:none}
.photo-fields-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.photo-field {display:flex;min-width:0;flex-direction:column;gap:6px;color:var(--ink);font-size:11px;font-weight:800}
.photo-field span small {margin-right:5px;color:var(--muted);font-size:10px;font-weight:500}
.photo-field input,.photo-field textarea {display:block;width:100%;min-height:43px;padding:10px 12px;border:1px solid #d8d9d7;border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-weight:500;outline:none;resize:vertical}
.photo-field textarea {min-height:85px;line-height:1.9}
.photo-field input:focus,.photo-field textarea:focus {border-color:var(--mehr);box-shadow:0 0 0 3px rgba(169,30,43,.12)}
.photo-field input::placeholder,.photo-field textarea::placeholder {color:#92999a;font-weight:400}
.photo-field input[dir=ltr] {text-align:left}
.photo-field-wide {grid-column:1/-1}
.photo-info {max-width:100%;margin-top:5px;color:var(--ink);font-size:10px}
.photo-info>summary {width:max-content;max-width:100%;padding:4px 8px;border-radius:6px;background:#f5ece8;color:#8e3532;font-size:10px;font-weight:750;cursor:pointer;list-style:none}
.photo-info-body {display:grid;gap:8px;max-width:520px;margin:8px 0 2px;padding:11px;border:1px solid #ede7e2;border-radius:9px;background:#fcfbf9}
.photo-info-body>div {display:grid;gap:2px;min-width:0}
.photo-info-body b {color:#697478;font-size:9px}
.photo-info-body span {overflow-wrap:anywhere;white-space:normal;line-height:1.8;font-size:11px;font-weight:600}
.photo-collections {margin:2px 0 23px}
.photo-collections-heading {margin-bottom:10px;color:var(--ink);font-size:13px;font-weight:850}
.photo-collections-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.photo-collection {min-width:0;padding:16px 17px;border:1px solid var(--line);border-inline-start:3px solid var(--mehr);border-radius:13px;background:var(--bg)}
.photo-collection-top {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:var(--muted);font-size:10px;font-weight:800}
.photo-collection-count {padding:3px 9px;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);white-space:nowrap}
.photo-collection-field {display:grid;gap:3px;margin:9px 0;min-width:0}
.photo-collection-field b {color:var(--muted);font-size:10px}
.photo-collection-field span {overflow-wrap:anywhere;color:var(--ink);font-size:12px;font-weight:650;line-height:1.9}
.photo-collection-field span[dir=ltr] {text-align:right;unicode-bidi:plaintext}
.photo-collection-files {margin-top:12px;padding-top:9px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}
.photo-collection-files summary {width:max-content;max-width:100%;cursor:pointer;font-weight:700;color:var(--mehr)}
.photo-collection-files ul {display:grid;gap:5px;max-height:145px;margin:9px 0 0;padding:0 19px 0 0;overflow:auto;overflow-wrap:anywhere;color:var(--text)}
.photo-gallery-card .photo-gallery-caption {display:flex;min-height:34px;flex-direction:column;gap:2px;padding:8px 9px;white-space:normal}
.photo-gallery-caption strong {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.photo-gallery-caption small {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:9px;text-align:right}
.photo-viewer-bottom {flex-wrap:wrap}
.photo-viewer-editorial {flex:0 0 100%;max-height:116px;overflow:auto;border:1px solid #4b535b;border-radius:8px;background:#20262b}
.photo-viewer-editorial[hidden],.photo-viewer-lead[hidden],.photo-viewer-credit[hidden] {display:none!important}
.photo-viewer-editorial>summary {padding:6px 10px;list-style:none;cursor:pointer;color:#eee;font-size:10px}
.photo-viewer-editorial>summary::-webkit-details-marker {display:none}
.photo-viewer-editorial>summary:after {content:'⌄';margin-right:8px}
.photo-viewer-editorial[open]>summary:after {content:'⌃'}
.photo-viewer-editorial>div {display:grid;gap:4px;padding:0 10px 9px;color:#dfe4e4;line-height:1.7}
.photo-viewer-lead {margin:0;font-size:11px;white-space:pre-wrap}
.photo-viewer-credit {font-size:10px;text-align:right}
.upload-queue {margin-top:15px}
.queue-summary {font-size:12px}
.queue-summary strong {font-size:13px;color:var(--ink)}
.queue-file {border-color:#e8e8e3;background:#fff;border-radius:12px}
.queue-file-name strong {color:var(--ink)}
.queue-progress-track,.progress-track {background:#ebece8}
.queue-progress-track span,.progress-track span {background:var(--mehr)}
.queue-tools {margin-top:11px}
.queue-tools .btn {min-height:42px;font-size:11px}
.overall-progress {background:#f8f8f5;border-color:#e7e8e2;border-radius:12px}
.mobile-upload-action #uploadButton {font-size:13px;font-weight:850}
.upload-received-shortcut {background:#f6f7f3;border-color:#e6e8e1;color:#39494f}
.network-notice {border-radius:11px}

/* Cards, gallery, and management surfaces share the same typography. */
.folder-list-card,.received-files-card {overflow:hidden}
.folder-list-card>.card-title-row,.received-files-card>.card-title-row {background:#fbfbf9;border-bottom:1px solid #ecece7}
.folder-choice-grid {background:#fff;gap:10px}
.folder-choice-card {border:1px solid #e9e9e4;border-radius:13px;box-shadow:none}
.folder-choice-card:hover {border-color:#d9b8af;background:#fffaf7;box-shadow:0 8px 22px rgba(38,39,35,.065)}
.folder-choice-icon {border-radius:10px;background:#f8eae6;color:var(--mehr)}
.folder-choice-card.is-category .folder-choice-icon {background:#f0f3f1;color:#4a6566}
.folder-choice-copy strong {color:var(--ink)}
.folder-choice-state {border-radius:7px;background:#f8eae6;color:var(--mehr)}
.folder-choice-card.is-category .folder-choice-state {background:#eff1ef;color:#53686b}
.received-files-card {border:1px solid #e7e7e1}
.received-file-row {border-color:#eceee9}
.received-file-main strong {color:var(--ink)}
.received-status {background:#eef7f0;color:#267451}
.received-empty {background:#fafaf8}
.photo-gallery-section {background:#fafaf8;border:1px solid #eeeee8;border-radius:15px}
.photo-gallery-heading strong {color:var(--ink)}
.photo-gallery-card {border-radius:11px;border-color:#e5e6e2}
.photo-gallery-card:hover {border-color:#d4ada5}
.photo-gallery-card img {aspect-ratio:4/3}
.photo-viewer-stage.is-thumb img {width:100%;height:100%;object-fit:contain}
.photo-viewer-stage.has-photo .photo-viewer-message {position:absolute;z-index:2;bottom:15px;left:50%;max-width:calc(100% - 30px);margin:0;padding:8px 13px;transform:translateX(-50%);border:1px solid #ffffff35;border-radius:9px;background:rgba(13,19,22,.85);color:#fff;line-height:1.7;pointer-events:none}
.folder-create-disclosure {border-color:#e8e8e2;background:#fff;box-shadow:none}
.admin-dashboard-heading {background:linear-gradient(125deg,#182d31,#254244);border-radius:20px;box-shadow:0 14px 37px rgba(24,45,49,.14)}
.admin-dashboard-heading .mini-label {color:#e7b9af}
.admin-dashboard-heading h1 {color:#fff}
.admin-dashboard-heading p {color:#d1dedd}
.admin-dashboard-heading .admin-tool-buttons .btn-secondary {background:#ffffff15;border-color:#ffffff55;color:#fff}
.metric-card {border-color:#e7e8e3;border-radius:15px;background:#fff;box-shadow:0 4px 15px rgba(25,40,42,.035)}
.metric-card.metric-primary {background:#fff9f7;border-color:#edd3cd}
.metric-primary .metric-icon {background:#f8e7e3;color:var(--mehr)}
.metric-copy strong {color:var(--ink)}
.province-filter-toolbar {border-color:#e8e8e2;background:#fbfbf9}
.province-filter-chip.active {background:#264043;border-color:#264043;color:#fff}
.folder-list-row {border-color:#ebede9}
.folder-row-icon {background:#f8eae6;color:var(--mehr)}
.new-badge {background:var(--mehr)}
.search-panel-card,.activity-filter-card,.account-list-card,.bulk-users-card,.single-user-card,.install-card,.password-change-card {border-color:#e8e8e2}
.search-result-row,.activity-row,.account-row,.province-storage-row {border-color:#eceeea}

@media(max-width:720px) {
  .container {width:calc(100% - 30px);padding:17px 0 32px}
  .site-header {height:auto;min-height:64px}
  .header-inner {width:calc(100% - 30px);min-height:62px;align-items:center;padding:7px 0}
  .brand-logo-badge {width:39px;height:39px}
  .brand-copy strong {font-size:14px;max-width:190px}
  .mobile-menu-toggle {min-width:44px;min-height:44px;border-color:#e6e8e2;background:#f9faf7}
  .mobile-nav-panel {border:1px solid #e7e9e4;box-shadow:0 16px 35px rgba(20,38,40,.13)}
  .mobile-bottom-nav {border-top-color:#e5e7e2;background:rgba(255,255,255,.98);box-shadow:0 -8px 22px rgba(24,36,40,.08)}
  .mobile-bottom-nav [aria-current="page"],.mobile-bottom-nav [aria-expanded="true"] {background:#f8eae6;color:var(--mehr)}
  .card {border-radius:16px}
  .page-index .public-container {width:calc(100% - 36px);min-height:calc(100dvh - 60px);padding:24px 0 22px;display:flex;align-items:center}
  .page-index .auth-shell {width:100%;max-width:460px;display:flex;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
  .page-index .auth-shell:before {width:250px;height:250px;top:-65px;right:-116px;box-shadow:0 0 0 32px rgba(169,30,43,.022),0 0 0 65px rgba(169,30,43,.012)}
  .auth-masthead {gap:11px;margin-bottom:23px}
  .auth-logo-frame {width:51px;height:51px;border-radius:15px}
  .auth-logo-frame .brand-logo-auth {width:38px;height:38px}
  .auth-masthead strong {font-size:17px}
  .auth-masthead small {font-size:10px}
  .page-index .auth-card {margin:0;padding:29px 25px 27px;border-radius:21px;box-shadow:0 18px 48px rgba(31,38,40,.09)}
  .page-index .auth-card-head {margin-bottom:19px}
  .page-index .auth-card-head h1 {font-size:26px;margin:10px 0 4px}
  .page-index .auth-card-head p {font-size:12px}
  .auth-form label {font-size:12px;margin:14px 0 6px}
  .auth-form .input-wrap input {height:53px;min-height:53px;font-size:16px}
  .auth-form .btn {min-height:54px;margin-top:23px;font-size:14px}
  .page-index .login-note {margin-top:18px;padding-top:15px;font-size:10px}
  .auth-endmark {margin-top:22px}
  .page-index .site-footer>div {padding-bottom:16px}
  .page-upload_page .compact-heading {margin-bottom:11px;padding:0 1px}
  .page-upload_page .compact-heading h1 {font-size:26px;margin-top:5px}
  .page-upload_page .photo-upload-card {padding:18px 16px 15px;margin-bottom:13px;border-radius:18px;box-shadow:0 10px 28px rgba(35,41,40,.065)}
  .photo-upload-card .upload-intro {gap:11px;margin-bottom:14px}
  .photo-upload-card .upload-step {width:43px;height:43px;border-radius:11px;font-size:22px}
  .photo-upload-card .upload-intro h2 {font-size:19px}
  .photo-upload-card .dropzone {min-height:238px;padding:16px 10px;border-radius:15px}
  .upload-illustration {width:112px;height:94px;margin-bottom:3px}
  .photo-upload-card .dropzone strong {font-size:17px;margin-bottom:2px}
  .photo-upload-card .dropzone>span:not(.upload-illustration):not(.upload-primary-cta) {font-size:11px}
  .upload-primary-cta {min-height:43px;min-width:155px;margin-top:14px;font-size:12px}
  .upload-photo-tip {gap:8px;padding:10px 11px}
  .upload-photo-tip p {font-size:11px}
  .photo-fields>summary {min-height:60px;padding:9px 11px;gap:9px}
  .photo-fields-heading strong {font-size:12px}
  .photo-fields-heading small {font-size:9px}
  .photo-fields-body {padding:3px 12px 14px}
  .photo-fields-grid {grid-template-columns:minmax(0,1fr);gap:12px}
  .photo-field-wide {grid-column:auto}
  .photo-field input,.photo-field textarea {font-size:16px}
  .queue-summary {top:62px}
  .queue-tools .btn {width:100%;min-height:45px}
  .queue-file {background:#fff}
  .queue-file-name strong {font-size:11px}
  .queue-file-detail {font-size:10px}
  .role-uploader.leaf-workspace .mobile-bottom-nav {display:none}
  body.role-uploader.leaf-workspace {padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
  .role-uploader.leaf-workspace .mobile-upload-action {display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:4px 9px;position:fixed;right:0;left:0;bottom:0;margin:0;padding:9px 15px calc(8px + env(safe-area-inset-bottom,0px));border:1px solid #e9e4df;border-bottom:0;border-radius:18px 18px 0 0;background:rgba(255,255,255,.98);box-shadow:0 -9px 28px rgba(26,39,42,.12)}
  .role-uploader.leaf-workspace .mobile-upload-action #uploadButton,.role-uploader.leaf-workspace .mobile-upload-action .mobile-select-files {grid-column:1;grid-row:1;min-height:50px;font-size:13px}
  .role-uploader.leaf-workspace .mobile-upload-action .upload-received-shortcut {grid-column:2;grid-row:1;display:flex;flex-direction:column;min-height:50px;padding:4px;font-size:17px}
  .role-uploader.leaf-workspace .mobile-upload-action .upload-received-shortcut span {font-size:9px}
  .role-uploader.leaf-workspace .mobile-upload-action small {grid-column:1/-1;grid-row:2;margin:0 2px;text-align:right;font-size:9px}
  .role-admin.leaf-workspace .mobile-upload-action {position:sticky;bottom:calc(70px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:1fr 56px;gap:5px 8px;margin:13px 0 0}
  .role-admin.leaf-workspace .mobile-upload-action #uploadButton,.role-admin.leaf-workspace .mobile-upload-action .mobile-select-files {grid-column:1;grid-row:1}
  .role-admin.leaf-workspace .mobile-upload-action .upload-received-shortcut {grid-column:2;grid-row:1;flex-direction:column}
  .role-admin.leaf-workspace .mobile-upload-action small {grid-column:1/-1;grid-row:2}
  .received-files-card>.card-title-row,.folder-list-card>.card-title-row {padding:15px}
  .photo-gallery-section {padding:11px}
  .photo-gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .photo-gallery-card span {font-size:10px}
  .photo-viewer-stage.has-photo .photo-viewer-message {bottom:10px;font-size:10px}
  .received-file-main strong {font-size:11px}
  .received-file-main small {font-size:10px}
  .received-status {font-size:9px}
  .folder-choice-card {min-height:75px}
  .folder-choice-copy small,.folder-choice-state {font-size:10px}
  .mobile-nav-link strong,.mobile-bottom-nav a,.mobile-bottom-nav button {font-size:11px}
  .admin-dashboard-heading {border-radius:16px;padding:22px}
  body.editing-field .mobile-upload-action {display:none}
}
@media(max-width:380px) {
  .page-index .public-container {width:calc(100% - 28px)}
  .page-index .auth-card {padding:25px 20px 23px}
  .page-index .auth-card-head h1 {font-size:23px}
  .brand-copy strong {max-width:147px}
  .page-upload_page .photo-upload-card {padding:16px 13px}
  .photo-upload-card .dropzone strong {font-size:16px}
}
@media(prefers-reduced-motion:reduce) {
  .btn,.nav-btn,.dropzone {transition:none}
}
