@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #111113; --surface: #19191c; --raised: #222226; --input: #141416;
  --text: #f2f0f4; --muted: #a4a2ab; --faint: #929099; --border: #303035;
  --accent: #c1a2ed; --accent-fill: #c6a8ee; --accent-ink: #251b32;
  --orange: #f19463; --error: #f5a19c; --selected: #332b40; --focus: #e7ae7f;
  font-family: "Segoe UI", Arial, sans-serif; font-synthesis: none;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f6f3; --surface: #ffffff; --raised: #f1f0ed; --input: #fbfaf8;
  --text: #232326; --muted: #68666d; --faint: #6c6872; --border: #dedcd8;
  --accent: #7143a0; --accent-fill: #7846a5; --accent-ink: #ffffff;
  --orange: #b45224; --error: #af3533; --selected: #eee7f5; --focus: #a35c31;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55; }
h1,h2,h3,p,figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button,input,textarea { font: inherit; }
button,label[for],summary { cursor: pointer; }
button,a,input,textarea,summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--selected); color: var(--text); }
[hidden] { display: none !important; }
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
input,textarea { min-width: 0; }
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),textarea {
  display: block; width: 100%; border: 1px solid var(--border); border-radius: 7px;
  background: var(--input); color: var(--text); padding: 12px 14px; transition: border-color .15s;
}
input:not([type="radio"]):not([type="checkbox"]):not([type="file"]) { min-height: 46px; }
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
input::placeholder,textarea::placeholder { color: var(--faint); }
input:focus,textarea:focus { border-color: var(--accent); }
input[readonly] { font-family: Consolas, monospace; font-size: 13px; color: var(--muted) !important; }
label,legend { font-size: 14px; font-weight: 500; }
fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: 10px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.sr-only,.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 40; top: 12px; left: 12px; padding: 12px; background: var(--surface); }
.js-only { display: none; }
.js-ready .js-only { display: inline; }
.site-header { max-width: 1184px; margin: 0 auto; height: 92px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 5px; font-size: 23px; font-weight: 650; letter-spacing: -.9px; }
.brand-symbol { width: 49px; height: 49px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 22px; }
.tor-link { font-size: 13px; color: var(--muted); }
.tor-link span { margin-left: 5px; color: var(--accent); }
.tor-link:hover { color: var(--text); }
.icon-button { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid transparent; border-radius: 7px; color: var(--muted); font-size: 24px; line-height: 1; }
.icon-button:hover { background: var(--raised); color: var(--text); }
.main { max-width: 888px; padding: 0 28px; margin: 0 auto; }
.upload-main,.inner-main { padding-top: 43px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { font-size: 31px; line-height: 1.25; font-weight: 600; letter-spacing: -.9px; }
.page-heading p { color: var(--muted); margin-top: 10px; font-size: 15px; line-height: 1.65; }
.upload-form,.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.dropzone { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 0 18px; text-align: left; align-items: center; border: 1px dashed #57515f; border-radius: 8px; background: var(--input); padding: 28px 24px; transition: border-color .15s,background .15s; }
.dropzone.dragover { border-color: var(--accent); background: var(--selected); }
.upload-icon { display: inline-flex; grid-area: 1/1/3/2; margin: 0; color: var(--accent); }
.upload-icon svg { width: 30px; height: 30px; }
.dropzone h2 { grid-area: 1/2/2/3; font-size: 18px; font-weight: 550; letter-spacing: -.2px; }
.drop-description { grid-area: 2/2/3/3; color: var(--muted); font-size: 13px; margin-top: 4px; }
.upload-main .dropzone { padding-block: 20px; }
.upload-main .file-picker { min-height: 44px; }
.upload-main .button { transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 46px; padding: 11px 18px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 550; line-height: 1.5; transition: background .15s,border-color .15s; cursor: pointer; text-align: center; }
.primary { background: var(--accent-fill); color: var(--accent-ink); }
.primary:hover { filter: brightness(1.08); }
.secondary { background: var(--raised); color: var(--text); border-color: var(--border); }
.secondary:hover { border-color: var(--faint); }
.small { min-height: 40px; padding: 8px 12px; font-size: 13px; }
.file-picker { display: none; grid-area: 1/3/3/4; width: fit-content; margin: 0; }
.js-ready .file-picker { display: inline-flex; }
.file-input { display: block; grid-column: 2/-1; max-width: 100%; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.js-ready .file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.file-picker:has(+.file-input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.file-limits { grid-column: 2/-1; color: var(--faint); font-size: 12px; margin-top: 12px; }
.file-limits span { margin: 0 7px; color: var(--faint); }
.has-files .dropzone { display: none; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.section-heading h2 { font-size: 16px; font-weight: 550; }
#file-count { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 6px; }
.file-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; list-style: none; padding: 0; margin: 20px 0 12px; }
.file-card { border: 1px solid var(--border); border-radius: 8px; background: var(--input); overflow: hidden; min-width: 0; }
.file-card.invalid { border-color: var(--error); }
.file-visual { position: relative; aspect-ratio: 4/3; background: var(--raised); display: grid; place-items: center; }
.file-visual img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.file-visual .remove-file { position: absolute; right: 6px; top: 6px; background: #141416dc; color: #fff; border: 1px solid #ffffff30; min-width: 36px; height: 36px; font-size: 22px; }
.file-visual .remove-file:hover { background: #343039; }
.file-placeholder { color: var(--faint); font-size: 13px; }
.file-details { padding: 12px; }
.file-name { display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--muted); }
.file-status { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }
.invalid .file-status { color: var(--error); }
.caption-label { display: block; font-size: 12px; margin: 12px 0 6px; }
.file-card textarea { font-size: 13px; padding: 8px 10px; min-height: 75px; border-color: transparent; background: var(--surface); }
.file-card textarea:focus { border-color: var(--accent); }
.caption-meta { display: flex; justify-content: space-between; color: var(--faint); font-size: 10px; margin-top: 5px; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 10px; }
.collection-description { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 4px; }
.collection-description summary { min-height: 56px; display: flex; align-items: center; gap: 9px; font-size: 14px; }
.disclosure-icon { color: var(--accent); font-size: 22px; font-weight: 300; line-height: 1; width: 17px; text-align: center; }
.collection-description[open] .disclosure-icon { transform: rotate(45deg); }
.optional { color: var(--faint); font-size: 12px; font-weight: 400; margin-left: auto; }
.description-fields { padding: 0 0 18px; }
.field-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 11px; color: var(--faint); margin-top: 7px; }
.field-meta span { display: none; flex-shrink: 0; }
.js-ready .field-meta span { display: inline; }
.settings-grid { border-top: 1px solid var(--border); padding: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.segmented { display: grid; grid-template-columns: 1.2fr 1fr 1fr; padding: 3px; gap: 3px; background: var(--input); border: 1px solid var(--border); border-radius: 7px; }
.segmented label { position: relative; }
.segmented input { position: absolute; inset: 0; opacity: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.segmented span { display: block; border: 1px solid transparent; border-radius: 4px; font-size: 12px; padding: 9px 3px; text-align: center; color: var(--muted); pointer-events: none; }
.segmented input:checked+span { color: var(--text); background: var(--selected); border-color: #a36ae845; }
.segmented input:focus-visible+span { outline: 2px solid var(--focus); outline-offset: 2px; }
.password-option { padding-top: 2px; }
.password-option summary { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; flex-wrap: wrap; }
.password-option summary>svg { color: var(--muted); width: 17px; height: 17px; }
.password-option .optional { font-size: 10px; }
.password-option .chevron { font-size: 17px; }
.password-option[open] .chevron { transform: rotate(180deg); }
.password-fields { padding-top: 8px; }
.password-fields input { font-size: 13px; }
.upload-bottom { border-top: 1px solid var(--border); padding-top: 22px; }
.access-note { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.submit-actions { display: flex; gap: 12px; }
.submit-actions .primary { flex: 1; justify-content: space-between; }
.submit-actions .primary span { font-size: 20px; }
.after-upload-note { font-size: 11px; color: var(--faint); margin-top: 13px; line-height: 1.6; }
.form-message,.notice { color: var(--text); background: var(--selected); border: 1px solid var(--border); padding: 13px 15px; font-size: 13px; line-height: 1.65; border-radius: 7px; margin: 16px 0; }
.site-footer { max-width: 1120px; margin: 56px auto 0; padding: 23px 0 32px; border-top: 1px solid var(--border); font-size: 12px; color: var(--faint); }
main[aria-busy="true"] { cursor: progress; }
.info-sheet { display: none; position: fixed; inset: 0; z-index: 20; background: #0009; padding: 24px; overflow-y: auto; align-items: center; justify-content: center; }
.info-sheet:target { display: flex; }
.info-sheet>div { position: relative; background: var(--surface); border: 1px solid var(--border); padding: 32px; border-radius: 12px; max-width: 540px; width: 100%; max-height: calc(100dvh - 48px); overflow: auto; }
.info-sheet h2 { font-size: 23px; line-height: 1.3; font-weight: 550; letter-spacing: -.4px; padding-right: 24px; margin-bottom: 18px; }
.info-sheet p { color: var(--muted); font-size: 14px; margin-top: 14px; line-height: 1.75; }
.sheet-close { position: absolute; right: 10px; top: 10px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 13px 18px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 9px; box-shadow: 0 8px 40px #0004; font-size: 13px; text-align: center; }
.preview-dialog { max-width: 880px; width: calc(100% - 48px); max-height: calc(100dvh - 48px); background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 28px; overflow: auto; }
.preview-dialog::backdrop { background: #000b; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.dialog-heading h2 { font-size: 23px; font-weight: 550; letter-spacing: -.5px; }
.eyebrow { color: var(--muted); font-size: 12px; display: block; margin-bottom: 5px; }
.preview-images { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.preview-images figure { min-width: 0; }
.preview-images img { width: 100%; max-height: 380px; aspect-ratio: 4/3; object-fit: contain; background: var(--input); border-radius: 6px; }
.preview-images figcaption { padding-top: 9px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.example-label { display: block; color: var(--orange); font-size: 11px; margin-bottom: 12px; }
.collection-summary { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.collection-summary h2 { font-size: 16px; font-weight: 550; }
.collection-summary p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.collection-summary p span { margin: 0 5px; }
.collection-summary>.text-link { margin-left: auto; }
.mini-previews { display: flex; gap: 4px; }
.mini-previews img { width: 40px; height: 48px; object-fit: cover; border-radius: 4px; }
.text-link { color: var(--accent); font-size: 13px; }
.link-section { padding: 24px 0; }
.copy-row { display: flex; gap: 10px; margin-top: 12px; }
.copy-row .button { flex-shrink: 0; }
.direct-links { border-top: 1px solid var(--border); padding-top: 6px; }
.direct-links summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; font-size: 14px; }
.direct-links .field-hint { margin-top: 0; }
.result-bottom { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 24px; }
.result-bottom p { font-size: 12px; color: var(--muted); max-width: 430px; }
.result-bottom .button { flex-shrink: 0; }
.gallery-main { padding-top: 43px; max-width: 1000px; }
.gallery-heading { padding-bottom: 26px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.gallery-title-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.gallery-title-row h1 { font-size: 31px; font-weight: 600; line-height: 1.3; letter-spacing: -.9px; }
.collection-count { white-space: nowrap; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 5px; padding: 5px 10px; }
.collection-copy { color: var(--muted); font-size: 15px; line-height: 1.75; margin-top: 16px; max-width: 700px; white-space: pre-wrap; overflow-wrap: anywhere; }
.collection-meta { font-size: 12px; color: var(--faint); margin-top: 17px; }
.collection-meta span { margin: 0 9px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 24px; align-items: start; }
.gallery-item { min-width: 0; }
.gallery-item .image-link { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.gallery-item img { display: block; width: 100%; height: auto; object-fit: contain; }
.gallery-item figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 13px; }
.gallery-item figcaption>div { display: flex; gap: 12px; min-width: 0; }
.photo-index { font-size: 11px; color: var(--faint); padding-top: 3px; }
.gallery-item figcaption p { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.download-button { height: 40px; min-width: 40px; font-size: 22px; flex-shrink: 0; border: 1px solid var(--border); }
.gallery-end { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 42px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gallery-end p { font-size: 13px; color: var(--muted); }
.narrow { max-width: 480px; }
.access-main { padding-top: 75px; padding-bottom: 80px; }
.access-main .page-heading h1 { font-size: 29px; }
.simple-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; color: var(--accent); margin-bottom: 22px; }
.access-form { padding: 24px; }
.access-form label { display: block; margin-bottom: 10px; }
.access-form .primary { margin-top: 20px; width: 100%; justify-content: space-between; }
.processing-panel h2 { font-size: 16px; font-weight: 550; }
.status-pill { border: 1px solid var(--border); border-radius: 5px; padding: 4px 8px; font-size: 11px; color: var(--muted); }
.processing-list { padding: 0; list-style: none; margin: 24px 0; }
.processing-list>li { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--border); padding: 20px 0; }
.processing-number { color: var(--faint); font-size: 12px; }
.processing-list h3 { font-size: 14px; font-weight: 500; }
.processing-list p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.ready-label { margin-left: auto; color: var(--accent); font-size: 12px; white-space: nowrap; }
.processing-list form { margin-left: auto; }
.failed-item { flex-wrap: wrap; }
.failed-item>div { flex: 1; min-width: 150px; }
.processing-summary { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
progress { width: 100%; height: 4px; display: block; border: 0; border-radius: 3px; overflow: hidden; margin: 12px 0 24px; background: var(--raised); accent-color: var(--accent); }
progress::-webkit-progress-bar { background: var(--raised); }
progress::-webkit-progress-value { background: var(--accent); }
.publish-form>.button { width: 100%; }
.screen-note { font-size: 12px; color: var(--muted); margin-top: 18px; text-align: center; }
.state-reference { margin-top: 24px; font-size: 13px; }
.state-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.state-chips span { border: 1px solid var(--border); border-radius: 4px; font-size: 11px; padding: 5px 9px; color: var(--muted); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light; --bg: #f7f6f3; --surface: #ffffff; --raised: #f1f0ed; --input: #fbfaf8;
    --text: #232326; --muted: #68666d; --faint: #6c6872; --border: #dedcd8;
    --accent: #7143a0; --accent-fill: #7846a5; --accent-ink: #ffffff; --orange: #b45224;
    --error: #af3533; --selected: #eee7f5; --focus: #a35c31;
  }
}
@media (max-width: 1184px) { .site-footer { margin-left: 32px; margin-right: 32px; } }
@media (max-width: 720px) {
  .dropzone { display: block; text-align: center; }
  .upload-icon { margin: 0 auto 12px; }
  .file-picker { margin: 16px auto 0; }
  .site-header { height: 80px; padding: 0 22px; }
  .main { padding-left: 22px; padding-right: 22px; }
  .upload-main,.inner-main,.gallery-main { padding-top: 28px; }
  .page-heading h1,.gallery-title-row h1 { font-size: 28px; }
  .page-heading p { font-size: 14px; }
  .upload-form,.panel { padding: 22px; }
  .settings-grid { grid-template-columns: 1fr; gap: 13px; padding: 20px 0 13px; }
  .password-option summary { min-height: 48px; font-size: 14px; }
  .password-option .optional { font-size: 12px; }
  .file-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-footer { margin: 40px 22px 0; padding-bottom: 24px; font-size: 11px; }
  .result-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
  .gallery-grid { gap: 28px 20px; }
  .gallery-item figcaption p { font-size: 12px; }
  .preview-dialog { padding: 22px; }
  .collection-summary { gap: 15px; }
  .mini-previews img { width: 32px; height: 43px; }
  .copy-row { flex-wrap: wrap; }
  .copy-row>input { flex-basis: 100%; }
  .copy-row .primary { width: 100%; }
}
@media (max-width: 440px) {
  .site-header { padding: 0 13px; gap: 12px; height: 72px; }
  .brand { font-size: 21px; gap: 0; }
  .brand-symbol { width: 42px; height: 42px; }
  .header-actions { gap: 6px; }
  .tor-link { font-size: 11px; }
  .tor-link span { margin-left: 1px; }
  .main { padding-left: 16px; padding-right: 16px; }
  .upload-main,.inner-main,.gallery-main { padding-top: 24px; }
  .page-heading { margin-bottom: 22px; }
  .page-heading h1,.gallery-title-row h1 { font-size: 27px; letter-spacing: -.8px; }
  .page-heading p { font-size: 13px; }
  .upload-form,.panel { padding: 18px 16px; border-radius: 10px; }
  .dropzone { padding: 22px 12px 18px; }
  .dropzone h2 { font-size: 17px; }
  .drop-description { font-size: 12px; max-width: 220px; margin: 5px auto 0; }
  .file-limits { font-size: 11px; }
  .file-limits span { margin: 0 4px; }
  .collection-description summary { font-size: 13px; gap: 7px; flex-wrap: wrap; padding: 10px 0; }
  .optional { font-size: 10px; }
  .field-meta { font-size: 10px; gap: 12px; }
  .password-option summary { font-size: 13px; gap: 6px; }
  .password-option .optional { font-size: 10px; }
  .segmented span { font-size: 12px; }
  .submit-actions { flex-direction: column-reverse; gap: 10px; }
  .submit-actions .primary { font-size: 13px; padding-left: 12px; padding-right: 12px; }
  .access-note { font-size: 12px; }
  .after-upload-note { font-size: 11px; }
  .file-list { grid-template-columns: 1fr; gap: 16px; }
  .file-visual { aspect-ratio: 3/2; }
  .section-heading h2 { font-size: 14px; }
  #file-count { font-size: 11px; }
  .add-more { font-size: 11px; padding: 8px; }
  .file-details { padding: 13px; }
  .file-card textarea { min-height: 70px; font-size: 14px; }
  .file-name { font-size: 13px; }
  .caption-label { font-size: 13px; }
  .collection-summary { flex-wrap: wrap; gap: 14px; }
  .collection-summary>.text-link { font-size: 12px; }
  .collection-summary h2 { font-size: 14px; }
  .collection-summary p { font-size: 11px; }
  .mini-previews { gap: 3px; }
  .mini-previews img { width: 28px; height: 38px; }
  .direct-links summary { font-size: 13px; }
  .copy-row .button { width: 100%; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-title-row { align-items: flex-start; }
  .collection-count { font-size: 10px; padding: 5px 7px; margin-top: 5px; }
  .collection-copy { font-size: 14px; }
  .gallery-item figcaption p { font-size: 14px; }
  .gallery-end { flex-direction: column; align-items: flex-start; gap: 15px; }
  .access-main { padding-top: 46px; padding-bottom: 35px; }
  .preview-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 18px; }
  .preview-images { grid-template-columns: 1fr; }
  .dialog-heading h2 { font-size: 20px; }
  .info-sheet { padding: 12px; }
  .info-sheet>div { padding: 26px 22px; max-height: calc(100dvh - 24px); }
  .processing-list>li { gap: 10px; }
  .processing-list h3 { font-size: 13px; }
  .ready-label { font-size: 11px; }
  .publish-form .button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
.checkbox-label{display:flex;align-items:center;gap:10px;margin:20px 0;font-size:13px}.checkbox-label input{width:18px;height:18px;accent-color:var(--accent)}
.upload-progress{border-top:1px solid var(--border);margin-top:22px;padding-top:20px}.upload-progress p{margin-bottom:14px}.upload-progress .button{margin:4px 8px 4px 0}.file-card.is-ready{border-color:var(--accent)}.draft-files input[type=file]{max-width:100%;font-size:12px}.gallery-item figcaption p{white-space:pre-wrap}.result-panel{margin-bottom:32px}.status-label{color:var(--accent)}

.direct-link-list { list-style: none; margin: 0; padding: 0; }
.direct-link-item { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 14px; align-items: center; padding: 16px 0; }
.direct-link-item+.direct-link-item { border-top: 1px solid var(--border); }
.direct-link-thumbnail { display: block; width: 64px; height: 64px; object-fit: contain; background: var(--input); border: 1px solid var(--border); border-radius: 6px; }
.direct-link-content { min-width: 0; }
.direct-link-label { display: block; font-size: 12px; color: var(--muted); }
.direct-link-item .copy-row { margin-top: 7px; }
.direct-link-item input { min-width: 0; }
.direct-link-item .field-hint { margin-top: 8px; }
.photo-viewer-open { overflow: hidden; }
.gallery-item [data-gallery-photo] { cursor: zoom-in; }
.photo-dialog { width: min(1120px,calc(100% - 40px)); max-width: none; height: min(860px,calc(100dvh - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 100px #0006; overflow: hidden; }
.photo-dialog[open] { display: flex; flex-direction: column; }
.photo-dialog::backdrop { background: #09090ce6; }
.photo-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: 0 0 auto; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.photo-viewer-header h2 { font-size: 16px; font-weight: 550; line-height: 1.4; }
.photo-viewer-counter { color: var(--muted); font-size: 12px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.photo-viewer-close { min-width: 44px; height: 44px; font-size: 28px; }
.photo-viewer-stage { position: relative; flex: 1 1 auto; min-height: 120px; display: flex; align-items: center; justify-content: center; background: var(--input); overflow: hidden; }
.photo-viewer-stage>img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; padding: 12px; }
.photo-viewer-message { max-width: 420px; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.photo-viewer-message .button,.photo-viewer-message .text-link { margin-top: 18px; }
.photo-viewer-message .text-link { display: inline-block; }
.photo-viewer-footer { flex: 0 0 auto; padding: 16px 20px; border-top: 1px solid var(--border); }
.photo-viewer-caption { margin: 0 0 14px; max-height: 100px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-size: 14px; line-height: 1.65; }
.photo-viewer-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.photo-viewer-navigation { display: flex; gap: 8px; }
.photo-viewer-navigation .icon-button { width: 44px; height: 44px; font-size: 22px; border: 1px solid var(--border); }
.photo-viewer-navigation .icon-button:disabled { cursor: default; opacity: .35; }
.photo-viewer-actions>.button { min-height: 44px; font-size: 13px; gap: 14px; }
@media (max-width: 720px) {
  .direct-link-item .copy-row { flex-wrap: nowrap; }
  .direct-link-item .copy-row>input { flex-basis: auto; }
  .direct-link-item .copy-row .button { width: auto; }
  .photo-dialog { width: calc(100% - 24px); height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); border-radius: 9px; }
  .photo-viewer-header,.photo-viewer-footer { padding: 12px 14px; }
  .photo-viewer-caption { max-height: 90px; font-size: 13px; }
  .photo-viewer-stage>img { padding: 6px; }
}
@media (max-width: 440px) {
  .direct-link-item { grid-template-columns: 48px minmax(0,1fr); gap: 10px; align-items: start; }
  .direct-link-thumbnail { width: 48px; height: 48px; margin-top: 2px; }
  .direct-link-item .copy-row { flex-wrap: wrap; gap: 8px; }
  .direct-link-item .copy-row>input { flex-basis: 100%; }
  .direct-link-item .copy-row .button { width: 100%; padding: 10px; }
  .photo-dialog { width: calc(100% - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); }
  .photo-viewer-header,.photo-viewer-footer { padding: 10px 12px; }
  .photo-viewer-header h2 { font-size: 15px; }
  .photo-viewer-actions { gap: 10px; }
  .photo-viewer-actions>.button { padding: 10px 12px; gap: 7px; font-size: 12px; }
  .photo-viewer-message { padding: 18px; font-size: 13px; }
}
@media (max-height: 520px) {
  .photo-viewer-header,.photo-viewer-footer { padding-top: 6px; padding-bottom: 6px; }
  .photo-viewer-stage { min-height: 0; }
  .photo-viewer-caption { max-height: 44px; margin-bottom: 6px; font-size: 12px; }
  .photo-viewer-counter { margin-top: 0; }
  .photo-viewer-message { padding: 10px; font-size: 12px; }
  .photo-viewer-message .button,.photo-viewer-message .text-link { margin-top: 6px; }
}
