/* Ramen Media Uploads - styles. Same palette and type as the editor portal
   (control-center/editor-static-next/styles.css) so the two feel like one product. */
:root {
  --ink: #18201f;
  --muted: #66716f;
  --line: #dce2e0;
  --surface: #ffffff;
  --canvas: #f3f6f5;
  --charcoal: #202826;
  --red: #c6403a;
  --red-soft: #fff0ee;
  --green: #23785b;
  --green-soft: #e8f4ef;
  --amber: #9a6813;
  --amber-soft: #fff6df;
  --blue: #246486;
  --blue-soft: #eaf4f8;
  --shadow: 0 18px 48px rgba(24, 32, 31, .11);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 5px; color: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.muted { color: var(--muted); }

.splash { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--charcoal); color: white; border-radius: 5px; font-size: 13px; font-weight: 900; }

/* ---------- login (same layout as the editor portal) */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(220px, 340px) minmax(300px, 460px); grid-template-rows: auto auto; align-content: center; justify-content: center; gap: 26px 72px; padding: 48px 24px; background: var(--surface); }
.login-brand { grid-row: 1 / 3; width: 220px; aspect-ratio: 1; align-self: center; display: grid; place-items: center; background: var(--charcoal); color: white; border-radius: 8px; box-shadow: var(--shadow); }
.login-brand span { font-size: 70px; font-weight: 900; }
.login-copy { align-self: end; }
.login-copy h1 { margin: 0; font-size: 42px; line-height: 1.05; }
.login-copy h1 + p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }
.login-language { margin-top: 20px; }
.login-form { align-self: start; display: grid; gap: 14px; }
.login-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.login-form input { height: 48px; border: 1px solid var(--line); border-radius: 6px; padding: 0 13px; color: var(--ink); outline: none; font-size: 16px; }
.login-form input:focus, .text-field:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35, 120, 91, .12); }
.form-error { margin: 0; color: var(--red); font-size: 13px; }

.language-switch { width: max-content; display: inline-grid; grid-template-columns: repeat(2, auto); padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--canvas); }
.language-switch button { min-height: 32px; padding: 0 11px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.language-switch button.active { background: var(--charcoal); color: white; box-shadow: 0 2px 8px rgba(24, 32, 31, .14); }

/* ---------- shell */
.portal { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 68px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand, .account { display: flex; align-items: center; }
.brand { gap: 11px; color: inherit; text-decoration: none; }
.brand div, .account div { display: grid; gap: 2px; }
.brand strong, .account strong { font-size: 14px; }
.brand small, .account small { color: var(--muted); font-size: 11px; }
.account { justify-content: end; gap: 10px; text-align: right; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-size: 19px; }
.icon-button:hover { background: var(--canvas); }

.main { width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 18px 60px; flex: 1 1 auto; }
.main:has(.job-panel:not([hidden]) .photo-grid, #eventOriginals .photo-grid, details[open] #eventSent .photo-grid) { max-width: none; }
.footer { padding: 18px; text-align: center; color: var(--muted); font-size: 11px; }
.footer a { color: var(--muted); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.card h2 { margin: 0; font-size: 19px; }
.card h2 + p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }

.primary-button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 7px; background: var(--red); color: white; font-weight: 800; font-size: 14px; }
.primary-button:hover { background: #ad332e; }
.primary-button:disabled { opacity: .5; cursor: not-allowed; }
.primary-button.green { background: var(--green); }
.primary-button.green:hover { background: #1c6149; }
.primary-button.wide { width: 100%; }
.secondary-button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13px; }
.secondary-button:hover { background: var(--canvas); }
.text-button { border: 0; padding: 4px; background: transparent; color: var(--red); font-size: 12px; font-weight: 800; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.button-row > * { flex: 1 1 200px; }

.text-field { width: 100%; height: 52px; border: 1px solid var(--line); border-radius: 7px; padding: 0 14px; font-size: 18px; color: var(--ink); outline: none; background: white; }
.field-label { display: block; margin: 16px 0 7px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

/* ---------- drop zone */
.drop-zone { min-height: 82px; margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; border: 1px dashed #aeb9b6; border-radius: 8px; background: #f9fbfa; padding: 12px; }
.drop-zone.dragging { border-color: var(--green); background: var(--green-soft); }
.drop-zone label { position: relative; display: inline-grid; place-items: center; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 700; border-radius: 6px; }
.drop-zone label:focus-within { outline: 3px solid var(--green); outline-offset: 3px; }
.drop-zone .choose-files { background: var(--green); color: white; }
.drop-zone .choose-folder { background: white; color: var(--ink); border: 1px solid var(--line); }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone small { color: var(--muted); font-size: 12px; }
@media (pointer: coarse) { .drop-zone small { display: none; } }

/* ---------- upload progress */
.upload-box { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); }
.upload-summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.upload-summary strong { font-size: 16px; }
.upload-summary small { color: var(--muted); font-size: 12px; }
.big-progress { margin-top: 12px; }
.big-progress .track { height: 22px; border-radius: 999px; background: var(--line); overflow: hidden; }
.big-progress .bar { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .25s linear; }
.big-progress .bar.retrying { background: var(--amber); }
.big-progress .labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; font-size: 13px; }
.big-progress .labels strong { font-size: 22px; line-height: 1; }
.big-progress .labels span { color: var(--muted); }
.upload-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.upload-note.warn { color: #694410; background: #fff1d6; border-radius: 6px; padding: 9px 11px; }
.done-box { margin-top: 16px; padding: 18px; border-radius: 9px; background: var(--green-soft); border: 1px solid #bcdccd; display: grid; gap: 8px; }
.done-box strong { font-size: 18px; color: var(--green); }
.done-box p { margin: 0; font-size: 13px; }
.done-box.partial { background: var(--amber-soft); border-color: #e7d5a5; }
.done-box.partial strong { color: var(--amber); }
.failed-list { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #694410; }
.failed-list li { margin: 3px 0; overflow-wrap: anywhere; }

/* ---------- property list */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 26px 0 10px; }
.list-head h2 { margin: 0; font-size: 17px; }
.search-box { height: 44px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 7px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: white; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35, 120, 91, .12); }
.search-box span { color: var(--muted); }
.search-box input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.property-list { display: grid; gap: 8px; }
.property-item { width: 100%; min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-align: left; color: var(--ink); text-decoration: none; }
.property-item:hover { border-color: var(--green); box-shadow: 0 5px 18px rgba(24, 32, 31, .06); }
.property-item strong { display: block; font-size: 15px; overflow-wrap: anywhere; }
.property-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.property-item .chev { color: var(--muted); font-size: 20px; }
.chip { display: inline-block; padding: 4px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; margin-right: 6px; }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.empty-state { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: 8px; }
.empty-state strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- property page */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--ink); }
.property-title h1 { margin: 0; font-size: 26px; overflow-wrap: anywhere; line-height: 1.15; }
.property-title p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.stats b { color: var(--ink); font-size: 15px; }
.file-list { margin-top: 14px; border-top: 1px solid var(--line); }
.file-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 58px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.file-row .thumb { width: 56px; height: 46px; border-radius: 5px; background: #eef1f0; display: grid; place-items: center; color: var(--muted); font-size: 10px; font-weight: 800; overflow: hidden; text-transform: uppercase; }
.file-row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-row .name { min-width: 0; }
.file-row .name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-row .name small { color: var(--muted); font-size: 11px; }
.file-row a.dl { color: var(--green); font-weight: 800; font-size: 12px; text-decoration: none; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: white; white-space: nowrap; }
.file-row a.dl:hover { background: var(--green-soft); border-color: var(--green); }
.file-row.folder .thumb { background: var(--blue-soft); color: var(--blue); }
.more-row { padding: 12px 0; text-align: center; }
.section-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.inline-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; }
.inline-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.inline-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-list li small { color: var(--muted); white-space: nowrap; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: min(420px, calc(100vw - 32px)); display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 6px; background: var(--charcoal); color: white; box-shadow: var(--shadow); font-size: 12px; }
.toast button { margin-left: auto; border: 0; background: transparent; color: white; font-size: 18px; }

@media (max-width: 680px) {
  .login-screen { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 34px 24px; }
  .login-brand { width: 76px; height: 76px; }
  .login-brand span { font-size: 24px; }
  .login-copy h1 { font-size: 34px; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .brand small, .account small { display: none; }
  .account div { display: none; }
  .header-language button { min-height: 30px; padding: 0 7px; font-size: 10px; }
  .main { padding: 16px 14px 50px; }
  .card { padding: 16px; border-radius: 9px; }
  .text-field { height: 50px; font-size: 17px; }
  .file-row { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .file-row .thumb { width: 48px; height: 40px; }
  .property-title h1 { font-size: 22px; }
  .big-progress .labels strong { font-size: 20px; }
}
.file-row.incomplete { opacity: .7; }

/* ---------- today's shoots (from Aryeo) */
.shoot-list { display: grid; gap: 8px; margin-top: 14px; }
.shoot-item { width: 100%; display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; }
.shoot-item:hover { border-color: var(--green); box-shadow: 0 5px 18px rgba(24, 32, 31, .06); }
.shoot-item.picked { border-color: var(--green); background: var(--green-soft); }
.shoot-item.done { background: var(--canvas); }
.shoot-time { display: grid; gap: 2px; font-size: 14px; font-weight: 800; color: var(--green); }
.shoot-time small { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.shoot-body { min-width: 0; display: grid; gap: 3px; }
.shoot-body strong { font-size: 15px; overflow-wrap: anywhere; }
.shoot-body small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.shoot-mark { color: var(--muted); font-size: 18px; white-space: nowrap; }
.shoot-item.done .shoot-mark { color: var(--green); font-size: 11px; font-weight: 800; }
.shoot-more { margin-top: 12px; }
.shoot-more summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
@media (max-width: 680px) {
  .shoot-item { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; }
  .shoot-time { font-size: 13px; }
}

/* ---------- file groups (video / photos / other) */
.file-group { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--surface); }
.file-group summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; font-size: 14px; }
.file-group summary::-webkit-details-marker { display: none; }
.file-group summary::after { content: "\203A"; color: var(--muted); font-size: 20px; transform: rotate(90deg); transition: transform .15s; }
.file-group[open] summary::after { transform: rotate(-90deg); }
.file-group summary span { color: var(--muted); font-size: 12px; margin-left: auto; }
.file-group .file-list { margin-top: 0; border-top: 1px solid var(--line); }
.delivery-head { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; }
.delivery-head span { color: var(--muted); font-size: 12px; }
.delivery-head .button-row { margin-top: 6px; }
.group-download { display: inline-block; margin: 3px 0 7px; color: var(--green); font-weight: 700; }
:root { --photo-min-width: max(120px, 10%); }
:root[data-thumbnail-size="2"] { --photo-min-width: max(164px, 14%); }
:root[data-thumbnail-size="3"] { --photo-min-width: max(224px, 21%); }
.gallery-size { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 10px; min-height: 36px; margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.gallery-size input { width: 112px; height: 32px; margin: 0; accent-color: var(--green); cursor: pointer; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,var(--photo-min-width)),1fr)); gap: 8px; margin: 4px 0 14px; }
.photo-tile { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.photo-open { width: 100%; padding: 0; display: block; text-align: left; color: var(--ink); cursor: zoom-in; }
.photo-frame { width: 100%; aspect-ratio: 3/2; display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; background: #e9eeec; }
.photo-frame img { width: 100%; height: 100%; object-fit: contain; }
.photo-open:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
/* Keep the shot number at the end of long camera filenames visible. */
.photo-caption { display: block; padding: 5px 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; direction: rtl; text-align: left; font-size: 12px; font-weight: 600; }
.pick-tile { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.pick-tile .photo-open { border: 0; border-radius: 0; }
.pick-tile > [data-pick] { margin-top: auto; border: 0; border-top: 1px solid var(--line); min-height: 44px; padding: 6px 7px; text-align: left; background: var(--surface); color: var(--green); font-size: 13px; font-weight: 650; }
.pick-tile > [aria-pressed="true"] { background: var(--green-soft); }
.pick-tile > [data-pick]:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.edit-tray { position: sticky; z-index: 3; top: 66px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin-bottom: 12px; padding: 10px 14px; border: 2px dashed var(--green); border-radius: 8px; background: var(--surface); }
.drop-hint, .edit-tray[hidden], .edit-tray [hidden] { display: none; }
.edit-tray.drag-over { background: var(--green-soft); border-style: solid; }
.edit-tray-intro { flex: 1 1 180px; }
.edit-tray-intro p { margin: 2px 0; font-size: 13px; color: var(--muted); }
.device-edit { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 14px; text-underline-offset: 3px; }
.pick-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pick-actions .job-download { text-align: center; }
.edit-tray.drag-over .pick-actions { background: var(--green-soft); }
.edit-tray summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 650; }
.edit-tray ul { position: absolute; top: 100%; left: 0; right: 0; max-height: 32dvh; overflow-y: auto; margin: 0; padding: 4px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.edit-tray ul:empty { display: none; }
.edit-tray li { display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow-wrap: anywhere; font-size: 14px; }
.edit-tray li + li { border-top: 1px solid var(--line); }
.edit-tray li button { flex: none; padding: 8px; min-height: 44px; border: 0; background: transparent; color: var(--green); font-weight: 650; }
.gallery-more { margin: 0 0 12px; }
.photo-viewer { width: min(1100px, 96vw); max-width: 96vw; max-height: 96dvh; padding: 0; border: 0; border-radius: 10px; background: var(--surface); color: var(--ink); }
.photo-viewer::backdrop { background: rgb(0 0 0 / .78); }
.viewer-bar, .viewer-actions { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; gap: 8px; }
.viewer-bar strong { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.viewer-actions a, .photo-viewer button { color: var(--ink); font-weight: 700; font-size: 14px; }
.photo-viewer button { border: 1px solid var(--line); background: white; border-radius: 6px; min-height: 42px; padding: 6px 12px; }
.photo-viewer button:disabled { opacity: .45; }
.viewer-image { display: grid; place-items: center; background: #151918; height: min(74vh,75dvh); }
.viewer-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-image > a { display: grid; place-items: center; min-width: 0; min-height: 0; width: 100%; height: 100%; }
.viewer-image > a[href] { cursor: zoom-in; }
.viewer-image span { color: white; }
.gallery-more[hidden], .photo-open [hidden], .photo-viewer [hidden] { display: none; }
@media (max-width: 540px) {
  .gallery-size { display: none; }
  .photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .photo-caption { padding: 6px; font-size: 12px; }
  .viewer-image { height: 62vh; height: 62dvh; }
}
.job-title { margin: 0 0 18px; }
.job-title h1 { margin: 0; font-size: clamp(23px,4vw,32px); overflow-wrap: anywhere; }
.job-title small,.job-section-head span { color: var(--muted); }
.job-title small { display: inline-block; margin-top: 4px; }
.job-nav,.gallery-choices { display: flex; flex-wrap: wrap; gap: 5px; }
.job-nav { border-bottom: 1px solid var(--line); margin: 0 0 16px; }
.job-nav button,.gallery-choices button { min-height: 44px; border: 0; padding: 0 14px; border-radius: 6px; font: inherit; font-weight: 650; color: var(--muted); background: transparent; cursor: pointer; }
.job-nav button { border-radius: 0; border-bottom: 3px solid transparent; }
.job-nav button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--green); }
.gallery-choices { margin: 12px 0 4px; }
.gallery-choices button { background: var(--canvas); }
.gallery-choices button[aria-pressed="true"] { background: var(--charcoal); color: white; }
.job-panel[hidden],.job-panel [hidden] { display: none !important; }
.job-panel .delivery-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0; }
.job-panel .delivery-head:not(:first-child) { margin-top: 28px; }
.job-download { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 7px; background: var(--green); color: white; text-decoration: none; font-weight: 700; }
.job-disclosure { margin: 12px 0; }
.job-disclosure > summary { min-height: 44px; padding: 11px 0; cursor: pointer; font-weight: 650; }
.job-edit-action { margin-top: 16px; }
.job-section-head span { font-size: 13px; }
.job-panel #cameraShortcut form { margin-top: 12px; }
.status-disclosure .done-box { margin-top: 0; }
@media (max-width: 680px) {
  .edit-tray { position: static; gap: 0 12px; padding: 8px 12px; }
  .edit-tray-intro { flex-basis: 170px; }
  .edit-tray.drag-active:has(.pick-actions[hidden]) .drop-hint { display: grid; place-items: center; padding: 12px; min-height: 56px; font-weight: 700; color: var(--green); }
  .edit-tray.drag-active:has(.pick-actions[hidden]) .drop-hint, .pick-actions { position: fixed; z-index: 4; inset: auto 0 0; gap: 8px; padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -2px 10px rgba(18,40,30,.08); }
  .edit-tray.drag-over .drop-hint { background: var(--green-soft); border-color: var(--green); }
  .pick-actions .job-download { padding: 6px 12px; }
  .pick-actions summary { font-size: 14px; }
  .pick-actions ul { top: auto; bottom: 100%; max-height: 40dvh; border-radius: 8px 8px 0 0; }
  html:has(.edit-tray:not([hidden]) .pick-actions:not([hidden])) { scroll-padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .main:has(.edit-tray:not([hidden]) .pick-actions:not([hidden])) { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
  .job-nav button,.gallery-choices button { padding: 0 10px; font-size: 14px; }
  .job-nav-editor { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .job-nav-editor button { padding: 4px; line-height: 1.2; }
}
