:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  color: #202733;
  background: #fff;
  --accent: #3865dc;
  --accent-hover: #2d55bd;
  --text: #202733;
  --line: #cdd4de;
  --muted: #566170;
  --soft: #edf1f6;
  --red: #be4343;
  --row-columns: minmax(220px, 1fr) 125px 90px 60px 105px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
button:focus-visible, a:focus-visible, .library-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
input, select { min-width: 0; border: 1px solid #dfe2e7; border-radius: 6px; padding: 9px 11px; background: #fff; color: inherit; outline: none; }
input:focus, select:focus { border-color: #9db2ec; box-shadow: 0 0 0 3px #3865dc0d; }
label { display: grid; gap: 8px; font-size: 12px; font-weight: 500; }
svg.icon { width: 18px; height: 18px; display: block; flex: none; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.primary, .secondary, .sidebar-add, .button-link, .install-form button {
  display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 35px; padding: 8px 12px;
  border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.primary, .button-link, .install-form button { background: var(--accent); color: #fff; }
.primary:hover, .button-link:hover, .install-form button:hover { background: var(--accent-hover); }
.secondary { background: #fff; border-color: #dfe2e7; color: #404650; }
.secondary:hover { background: var(--soft); border-color: #cdd2db; }
.icon-button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 5px; color: #858d99; background: transparent; flex: none; }
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover:not(:disabled) { color: #303844; background: #eef0f4; }
.icon-button.bordered { width: 35px; height: 35px; border-color: #dfe2e7; color: #68707c; }
.icon-button.show-button:hover:not(:disabled) { color: var(--accent); background: #edf2ff; }
.icon-button.delete-button:hover:not(:disabled) { color: var(--red); background: #fff0f0; }
.subtle, .muted { color: var(--muted); line-height: 1.6; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .07em; color: var(--muted); margin: 24px 0 10px; text-transform: uppercase; }
.app-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 15px 16px; background: #e9edf3; border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 34px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; flex: none; border-radius: 9px; background: #252d38; color: #fff; }
.brand-mark svg { width: 22px; height: 22px; }
.brand strong { font-size: 14px; font-weight: 650; letter-spacing: -.3px; }
.brand span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.nav-label { display: flex; justify-content: space-between; padding: 0 10px; margin: 0 0 12px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #838a95; }
.nav-label span { letter-spacing: 0; color: #9ca3ad; }
.frames-nav { display: grid; gap: 5px; overflow-y: auto; }
.frame-nav-item { display: grid; grid-template-columns: 48px minmax(0,1fr) 6px; gap: 10px; align-items: center; width: 100%; padding: 10px 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; text-align: left; color: inherit; }
.frame-nav-item:hover { background: #f0f2f5; }
.frame-nav-item.selected { background: #d8e4fb; border-color: #a9bee9; box-shadow: inset 3px 0 var(--accent); }
.frame-nav-icon { display: grid; place-items: center; width: 48px; height: 32px; border-radius: 4px; overflow: hidden; background: #e5e9ef; color: #8994a3; }
.frame-nav-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame-nav-copy { min-width: 0; }
.frame-nav-copy strong, .frame-nav-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-nav-copy strong { font-size: 13px; font-weight: 550; }
.frame-nav-copy small { color: #838a95; font-size: 10px; margin-top: 4px; }
.nav-dot { width: 5px; height: 5px; border-radius: 50%; background: #bac0c9; }
.nav-dot.online { background: #3c9d7c; }
.sidebar-add { justify-content: flex-start; margin-top: 9px; padding-left: 9px; color: #727b88; background: none; font-size: 11px; }
.sidebar-add:hover { background: #edf0f5; color: #303844; }
.sidebar-add svg { width: 16px; height: 16px; }
.sidebar-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 15px 7px 0; border-top: 1px solid var(--line); color: #8c939e; font-size: 10px; }
.version { color: #a7aeb9; margin-left: 4px; }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 65px; padding: 0 34px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 11px; min-width: 0; font-size: 11px; color: #9097a2; }
.breadcrumb svg { width: 15px; height: 15px; }
.breadcrumb strong { font-weight: 500; color: #4f5865; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb .separator { color: #ced3da; }
.privacy-note { display: flex; align-items: center; gap: 6px; flex: none; font-size: 10px; color: #929aa6; }
.privacy-note svg { width: 13px; height: 13px; }
.workspace-content { padding: 35px 34px 48px; max-width: 1480px; margin: auto; }
.mobile-bar { display: none; }
.frame-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 14px; }
.title-line { display: flex; align-items: center; gap: 12px; }
.frame-header h1 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.7px; font-weight: 600; overflow-wrap: anywhere; }
.frame-header p { margin: 8px 0 0; font-size: 12px; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; background: #f4f5f7; color: #838b97; font-size: 10px; white-space: nowrap; font-weight: 400; }
.status-pill:before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #a9b0bc; }
.status-pill.online { color: #388d70; background: #f0f8f4; }
.status-pill.online:before { background: #4eaa88; }
.status-pill.pairing-code-status { font-family: ui-monospace, monospace; font-size: 13px; color: #24364d; padding: 7px 10px; user-select: text; white-space: normal; overflow-wrap: anywhere; }
.status-pill.pairing-code-status:before { display: none; }
.upload-panel { display: flex; align-items: center; gap: 22px; padding: 17px 19px; border: 1px dashed #9caabc; border-radius: 8px; background: #f0f3f8; }
.upload-zone { position: relative; display: flex; flex: 1; align-items: center; gap: 14px; align-self: stretch; min-width: 0; cursor: pointer; padding: 4px; border-radius: 5px; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; }
.upload-zone:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.upload-panel:has(.upload-zone.drop-target) { border-color: var(--accent); background: #f0f5ff; }
.upload-zone.busy { opacity: .5; pointer-events: none; }
.upload-symbol { width: 37px; height: 37px; border: 1px solid #e6e9ee; border-radius: 8px; background: #fff; color: #7b8797; flex: none; }
.upload-copy strong { display: block; color: #4c5461; font-size: 12px; font-weight: 500; }
.upload-copy small { display: block; margin-top: 6px; font-size: 11px; font-weight: 400; color: #737c89; }
.text-link { color: var(--accent); }
.upload-destination { flex: 0 0 188px; gap: 6px; color: #737c89; font-size: 11px; font-weight: 400; }
.upload-destination select { width: 100%; padding: 7px 9px; font-size: 11px; color: #58616f; }
.progress { font-size: 11px; color: var(--accent); line-height: 1.5; margin: 8px 0 0; }
.progress:empty { display: none; }
.content-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0 17px; }
.library-title { display: flex; align-items: center; gap: 8px; }
.library-title h2 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.2px; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; background: #f1f3f6; color: #818b98; border-radius: 4px; padding: 2px 6px; min-width: 22px; font-size: 10px; }
.library-tools { display: flex; gap: 8px; }
.search-field { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #e4e7ec; border-radius: 6px; color: #8e97a4; }
.search-field:focus-within { border-color: #9db2ec; }
.search-field svg { width: 14px; height: 14px; }
.search-field input { border: 0; background: transparent; box-shadow: none; padding: 8px 0; width: 166px; font-size: 11px; }
.search-field input::placeholder { color: #969eaa; }
.library-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; }
.library-table { min-width: 750px; }
.library-row { display: grid; grid-template-columns: var(--row-columns); column-gap: 8px; align-items: center; padding: 0 15px; }
.table-heading { min-height: 36px; background: #e4e9f1; color: #3f4b5d; font-size: 11px; font-weight: 600; border-bottom: 1px solid var(--line); }
.table-heading>button { border: 0; padding: 8px 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.table-heading>button:first-child { padding-left: 26px; }
.table-heading>button:nth-child(n+4), .table-heading>span { text-align: center; }
.table-heading>button:hover, .table-heading>button[aria-pressed="true"] { color: var(--accent); }
.sort-arrow { white-space: pre; }
.added-date { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.upload-list-row { min-height: 78px; padding: 16px 24px; border-radius: 0; border-top: 1px dashed #acb7c6; background: #f0f3f8; }
.upload-list-row:hover, .upload-list-row.drop-target { background: #dce8ff; }
.upload-list-row:focus-within { outline-offset: -3px; }
.library-table>.progress { margin: 0; padding: 10px 24px; }
.root-image .name-cell { padding-left: 0; }
.folder { border-bottom: 1px solid var(--line); }
.folder:last-child { border-bottom: 0; }
.folder-header { min-height: 52px; background: #eff2f7; }
.folder-header:hover { background: #e5ebf5; }
.name-cell { min-width: 0; display: flex; gap: 10px; align-items: center; }
.folder-heading { display: flex; gap: 9px; align-items: center; min-width: 0; }
.folder-heading h3 { margin: 0; font-size: 13px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-count { font-size: 11px; color: #737c89; white-space: nowrap; font-weight: 400; }
.folder-icon { width: 23px; height: 23px; color: #5b7397; flex: none; }
.folder-icon svg { width: 23px; height: 23px; fill: #dce6f6; }
.folder-toggle { width: 20px; height: 24px; border: 0; display: grid; place-items: center; background: transparent; color: #98a0ad; cursor: pointer; padding: 0; border-radius: 4px; }
.folder-toggle svg { width: 13px; height: 13px; transition: transform .12s; }
.folder-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.folder-header, .image-row { user-select: none; -webkit-user-select: none; }
.folder-header[draggable="true"], .image-row[draggable="true"] { cursor: grab; }
.folder-header[draggable="true"]:active, .image-row[draggable="true"]:active { cursor: grabbing; }
.library-row input, .library-row textarea { user-select: text; -webkit-user-select: text; cursor: text; }
.library-row label { cursor: default; }
.library-row .switch { cursor: pointer; }
.folder-actions, .image-actions { display: flex; align-items: center; justify-content: center; gap: 3px; }
.action-spacer { width: 30px; height: 30px; }
.image-row { min-height: 63px; border-top: 1px solid #dfe4eb; }
.image-row:hover { background: #edf3fc; }
.image-row .name-cell { padding-left: 20px; }
.image-visual { width: 52px; height: 34px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #f0f2f5; flex: none; cursor: zoom-in; }
.image-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-visual:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.image-hover { position: fixed; z-index: 30; width: min(320px, calc(100vw - 24px)); height: min(220px, calc(100vh - 24px)); padding: 7px; border: 1px solid #e5e8ed; border-radius: 9px; background: #fff; box-shadow: 0 10px 35px #18243c30; pointer-events: none; }
.image-hover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-lightbox { width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 16px; border: 1px solid #e5e8ed; border-radius: 12px; background: #fff; color: var(--text); box-shadow: 0 24px 90px #0004; }
.image-lightbox::backdrop { background: #131b29b3; }
.image-lightbox header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.image-lightbox h2 { margin: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.image-lightbox>img { display: block; width: 100%; height: min(70dvh, 700px); object-fit: contain; background: #f7f8fa; border-radius: 6px; }
.image-name { display: block; min-width: 0; margin: 0; font-size: 12px; font-weight: 400; color: #56606d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.duration-control { display: flex; align-items: center; gap: 5px; color: #9aa2ad; font-size: 10px; }
.duration-control input { width: 47px; height: 29px; padding: 5px 4px 5px 8px; color: #6f7987; border-color: #e9ecf0; border-radius: 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.duration-placeholder { color: #c1c7cf; font-size: 12px; }
.toggle-cell { display: flex; justify-content: center; }
.switch { display: inline-flex; position: relative; width: 29px; height: 17px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; }
.switch-slider { position: absolute; inset: 0; border-radius: 12px; background: #8793a4; transition: background .15s; }
.switch-slider:before { content: ""; position: absolute; width: 13px; height: 13px; top: 2px; left: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 2px #00000012; transition: transform .15s; }
.switch input:checked+.switch-slider { background: #287d64; }
.switch input:checked+.switch-slider:before { transform: translateX(12px); }
.switch input:focus-visible+.switch-slider { outline: 2px solid var(--accent); outline-offset: 3px; }
.switch input:disabled+.switch-slider { opacity: .45; cursor: wait; }
.folder.disabled .image-list .name-cell, .image-row.disabled .name-cell { opacity: .5; }
.folder.disabled>.folder-header .folder-heading { color: #8c95a3; }
.folder.disabled>.folder-header .folder-count:after { content: " · Pausiert"; }
.image-row.disabled .image-name { color: #8c95a3; }
.folder.dragging, .image-row.dragging { opacity: .4; }
.folder.drop-target>.folder-header, .image-row.drop-target { background: #dce8ff; box-shadow: inset 0 2px var(--accent); }
.folder-header.drop-target { background: #dce8ff; }
.image-list.drop-target { outline: 1px dashed var(--accent); outline-offset: -3px; background: #f5f8ff; }
.folder.upload-target>.folder-header { background: #dce8ff; box-shadow: none; }
.folder.upload-target .folder-icon { color: var(--accent); }
.folder-empty, .search-empty { margin: 0; padding: 20px 44px; color: #737c89; font-size: 11px; }
.search-empty { text-align: center; padding: 40px 15px; }
.library-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 13px; font-size: 11px; color: #737c89; }
.library-footer>span { display: inline-flex; align-items: center; gap: 5px; }
/* Secondary information stays readable on the light and tinted surfaces. */
.nav-label, .nav-label span, .frame-nav-copy small, .sidebar-add,
.sidebar-footer, .version, .breadcrumb, .privacy-note,
.upload-copy small, .upload-destination, .folder-count,
.duration-control, .duration-placeholder, .folder-empty, .search-empty,
.library-footer { color: var(--muted); }
.icon-button, .icon-button.bordered, .folder-toggle, .upload-symbol, .search-field { color: #536278; }
.image-name, .upload-copy strong, .upload-destination select, .duration-control input { color: #354154; }
input, select, .secondary, .icon-button.bordered, .search-field,
.duration-control input, .upload-symbol { border-color: #acb7c6; }
.search-field input { border: 0; }
.search-field input::placeholder { color: #626e7e; }
.status-pill { color: #515e70; background: #e7ebf1; }
.status-pill.online { color: #21674f; background: #e0f0e8; }
.count-badge { color: #44546c; background: #e2e8f1; }
.library-footer svg { width: 13px; height: 13px; }
.welcome { max-width: 410px; margin: 12vh auto; text-align: center; }
.welcome-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 12px; color: #7e8ba1; }
.welcome-icon svg { width: 28px; height: 28px; }
.welcome h1 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; }
.welcome p { color: var(--muted); line-height: 1.7; margin-bottom: 25px; }
.login-screen { min-height: 100vh; display: grid; place-items: center; background: #f8f9fb; padding: 24px; }
.login-card { width: min(410px, 100%); background: #fff; border: 1px solid #e8ebf0; border-radius: 12px; padding: 36px; box-shadow: 0 4px 24px #25334405; }
.login-card h1 { font-size: 25px; letter-spacing: -.7px; font-weight: 600; line-height: 1.25; margin: 10px 0; }
.login-card p.subtle { font-size: 12px; }
.login-card form { display: grid; gap: 18px; margin-top: 26px; }
.modal { width: min(430px, calc(100% - 32px)); padding: 25px; border: 1px solid #e5e8ed; border-radius: 11px; color: inherit; box-shadow: 0 20px 90px #18243c26; }
.modal::backdrop { background: #202b4140; }
.modal form { display: grid; gap: 23px; }
.settings-modal { width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); }
.settings-modal form { gap: 15px; }
.settings-display-controls { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.settings-preview-wrap { display: grid; place-items: center; min-height: 130px; padding: 15px; border-radius: 8px; background: #e9edf3; }
.settings-preview { position: relative; width: 280px; max-width: 100%; aspect-ratio: 5 / 3; background: #000; overflow: hidden; box-shadow: 0 2px 8px #0003; }
.settings-preview[data-orientation="portrait"] { width: 150px; aspect-ratio: 3 / 5; }
.settings-preview img { position: absolute; inset: 0; width: 100%; height: 100%; }
.settings-preview-front { object-fit: contain; }
.settings-preview-background { object-fit: cover; filter: blur(10px) brightness(.7); transform: scale(1.12); visibility: hidden; }
.settings-preview[data-fit="blur"] .settings-preview-background { visibility: visible; }
.settings-preview[data-fit="cover"] .settings-preview-front { object-fit: cover; }
.settings-warning { padding: 10px 12px; border-radius: 6px; background: #fff1ce; color: #684c12; line-height: 1.5; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.modal h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.modal p { margin: 0; font-size: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.pairing-modal>p { margin-top: 16px; }
.pairing-modal code { display: block; margin: 24px 0; padding: 22px 12px; text-align: center; background: var(--soft); border: 1px solid var(--line); border-radius: 6px; font-size: 30px; letter-spacing: .1em; }
.pairing-modal>.primary { width: 100%; }
.pairing-modal #pairing-code { font-size: 24px; letter-spacing: .04em; overflow-wrap: anywhere; }
.pairing-modal .pairing-server { margin-top: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pairing-modal>.primary { margin-top: 20px; }
#devices-dialog { width: min(620px, calc(100vw - 32px)); }
#devices-dialog > p { margin: 18px 0; color: var(--muted); line-height: 1.6; }
#devices-list { margin: 20px 0; }
#devices-list > p { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.frame-header { flex-wrap: wrap; }
.header-actions { flex-wrap: wrap; max-width: 100%; }
.toast { position: fixed; bottom: 25px; left: 50%; max-width: calc(100% - 32px); transform: translate(-50%, 12px); opacity: 0; background: #2f3744; color: #fff; border-radius: 7px; padding: 11px 17px; font-size: 12px; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 20; }
.toast.visible { transform: translate(-50%,0); opacity: 1; }
.error { color: var(--red); font-size: 12px; line-height: 1.5; }
.install-card { width: min(600px, calc(100% - 32px)); margin: 7vh auto; border: 1px solid var(--line); border-radius: 10px; padding: 32px; }
.install-card h1 { font-size: 26px; letter-spacing: -.5px; }
.install-card p { line-height: 1.65; }
.install-card .eyebrow { margin-top: 0; }
.install-form { display: grid; gap: 18px; margin-top: 25px; }
.checklist { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 12px; }
.checklist li:before { display: inline-block; width: 1.5em; }
.checklist .ok:before { content: "✓"; color: #459476; }
.checklist .bad:before { content: "×"; color: var(--red); }
.error-box { padding: 12px; border: 1px solid #eed0d0; border-radius: 6px; background: #fff8f8; color: var(--red); }
.error-box p { margin: 4px 0; }
.success { padding: 12px; border: 1px solid #d9e9e2; border-radius: 6px; color: #3f8067; background: #f6fbf8; }
@media (max-width: 1050px) {
  .app-shell { grid-template-columns: 209px minmax(0,1fr); }
  .topbar { padding: 0 23px; }
  .workspace-content { padding: 28px 23px 40px; }
  .content-toolbar { align-items: flex-start; gap: 14px; flex-wrap: wrap; }
  .library-tools { margin-left: auto; }
  .frame-header { align-items: flex-start; }
  .title-line { gap: 8px; flex-wrap: wrap; }
  .privacy-note { display: none; }
}
@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { height: 51px; padding: 0 18px; }
  .workspace-content { padding: 18px 16px 35px; }
  .mobile-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 27px; }
  .mobile-bar select { flex: 1; font-size: 12px; }
  .frame-header { flex-wrap: wrap; gap: 16px; padding-bottom: 20px; }
  .frame-header h1 { font-size: 23px; }
  .header-actions { margin-left: auto; }
  .upload-panel { flex-direction: column; align-items: stretch; gap: 15px; padding: 15px; }
  .upload-zone { min-height: 48px; }
  .upload-destination { flex: auto; }
  .library-title h2 { font-size: 14px; }
  .library-tools { width: 100%; margin-left: 0; }
  .search-field { flex: 1; min-width: 0; }
  .search-field input { width: 100%; min-width: 0; }
  .content-toolbar { margin-top: 25px; }
  .library-footer { flex-wrap: wrap; gap: 7px; }
  .login-card { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
