.movie-color-main { padding: 32px 0 70px; }
.movie-color-main .container { width: min(1620px, calc(100% - 48px)); max-width: 1620px; }
.movie-color-app { --mc-line: #e0e3e6; --mc-panel: #fff; --mc-muted: #77808a; --mc-text: inherit; --mc-accent: var(--theme-color, #ff5f33); color: inherit; font-size: 14px; line-height: 1.55; }
.movie-color-app * { box-sizing: border-box; }
.movie-color-app button, .movie-color-app input, .movie-color-app select { font: inherit; }
.movie-color-app button { cursor: pointer; }
.movie-color-hero { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(760px, 1.28fr); column-gap: 64px; row-gap: 6px; align-items: center; padding: 46px 0 62px; border-bottom: 1px solid var(--mc-line); }
.hero-copy { min-width: 0; }
.eyebrow { margin: 0 0 11px; color: var(--mc-accent); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.movie-color-app h1, .movie-color-app h2, .movie-color-app p { margin-top: 0; }
.movie-color-app h1 { margin-bottom: 15px; color: var(--mc-text); font-size: 38px; line-height: 1.18; font-weight: 600; }
.movie-color-app h1 em { color: var(--mc-muted); font-style: normal; }
.hero-description { max-width: 520px; margin-bottom: 19px; color: var(--mc-muted); font-size: 15px; }
.movie-color-account { min-height: 22px; color: var(--mc-muted); font-size: 13px; }
.movie-color-account i { width: 7px; height: 7px; margin-right: 8px; display: inline-block; border-radius: 50%; background: var(--mc-accent); }
.movie-color-payment { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.movie-color-payment .btn { padding: 8px 15px; color: #fff !important; border: 1px solid rgba(255, 255, 255, .72); background: transparent; font-size: 13px; font-weight: 700; text-decoration: none; }
.movie-color-payment .btn:hover, .movie-color-payment .btn:focus { color: #fff !important; border-color: #fff; background: transparent; }

.upload-zone { position: relative; min-height: 330px; padding: 18px; display: grid; grid-template-columns: minmax(380px, 16fr) minmax(260px, 10fr); grid-template-rows: minmax(0, 1fr) auto auto auto auto; column-gap: 20px; border: 1px dashed #b9c0c6; background: rgba(127, 127, 127, .035); outline: 0; transition: border-color .2s, background .2s; }
.upload-zone:hover, .upload-zone:focus-visible, .upload-zone.is-dragging { border-color: var(--mc-accent); background: rgba(127, 127, 127, .08); }
.upload-zone.is-uploading { cursor: wait; opacity: .7; }
.upload-zone > .upload-preview-image { grid-column: 1; grid-row: 1 / 4; z-index: 1; width: 100%; height: 100%; min-height: 0; aspect-ratio: 16 / 9; object-fit: contain; background: #0a0a0a; }
.upload-zone > .upload-icon { grid-column: 1; grid-row: 1; z-index: 2; justify-self: center; align-self: center; width: 36px; height: 36px; display: grid; place-items: center; color: var(--mc-accent); border: 1px solid currentColor; font-size: 24px; line-height: 1; transform: translateY(-31px); }
.upload-zone > div:not([class]) { grid-column: 1; grid-row: 1; z-index: 2; align-self: center; justify-self: center; text-align: center; transform: translateY(22px); pointer-events: none; }
.upload-zone > div:not([class]) strong, .upload-zone > div:not([class]) span { display: block; }
.upload-zone > div:not([class]) strong { margin-bottom: 5px; color: var(--mc-text); font-size: 17px; font-weight: 500; }
.upload-zone > div:not([class]) span { color: var(--mc-muted); font-size: 12px; }
.upload-zone > .upload-hint { grid-column: 1; grid-row: 1; z-index: 2; align-self: end; justify-self: center; margin-bottom: 15px; color: var(--mc-muted); font-size: 12px; }
.upload-zone.has-preview > .upload-icon, .upload-zone.has-preview > div:not([class]), .upload-zone.has-preview > .upload-hint { display: none; }
.upload-meta { grid-column: 2; grid-row: 1; display: grid; align-content: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--mc-line); }
.upload-meta label { min-width: 0; color: var(--mc-muted); font-size: 11px; }
.upload-meta label::after { content: ''; }
.upload-meta label:nth-child(2)::before { content: '*'; margin-right: 3px; color: var(--mc-accent); }
.upload-meta input { width: 100%; min-height: 36px; margin-top: 4px; padding: 6px 8px; color: inherit; border: 1px solid var(--mc-line); outline: 0; background: var(--mc-panel); font-size: 12px; }
.upload-meta input:focus { border-color: var(--mc-accent); }
.upload-meta .upload-multimodal { display: flex; align-items: center; gap: 7px; color: var(--mc-text); font-size: 12px; }
.upload-meta .upload-multimodal input { width: 15px; min-height: 15px; margin: 0; accent-color: var(--mc-accent); }
.upload-multimodal-note { margin: -5px 0 0 22px; color: var(--mc-muted); font-size: 10px; line-height: 1.55; }
.upload-error { grid-column: 2; grid-row: 2; min-height: 18px; margin: 8px 0 0; color: #cc4343; font-size: 12px; }
.upload-remove { grid-column: 1; grid-row: 1; z-index: 4; align-self: start; justify-self: end; width: 32px; height: 32px; margin: 10px; padding: 0; color: #fff; border: 1px solid rgba(255, 255, 255, .72); border-radius: 50%; background: rgba(0, 0, 0, .48); font-size: 21px; line-height: 1; }
.upload-remove:hover { color: #fff; border-color: #fff; background: #b94444; }
.upload-analyze { grid-column: 2; grid-row: 3; min-height: 52px; margin-top: 4px; color: #fff; border: 1px solid var(--mc-accent); background: var(--mc-accent); font-size: 16px; font-weight: 700; }
.upload-analyze:disabled { cursor: not-allowed; opacity: .44; }
.upload-progress { grid-column: 2; grid-row: 4; height: 3px; margin-top: 8px; overflow: hidden; background: rgba(127, 127, 127, .24); }
.upload-progress span { width: 0; height: 100%; display: block; background: var(--mc-accent); transition: width .45s ease; }
.upload-status { grid-column: 2; grid-row: 5; margin: 7px 0 0; color: var(--mc-muted); font-size: 12px; text-align: center; }
.multimodal-progress { height: 3px; margin: 12px 0 10px; overflow: hidden; background: #44484c; }
.multimodal-progress span { width: 0; height: 100%; display: block; background: var(--mc-accent); transition: width .45s ease; }
.movie-color-login-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; color: var(--mc-accent) !important; background: rgba(255, 255, 255, .9); font-weight: 600; text-decoration: none; }
.movie-color-copyright { grid-column: 2; margin: 0; padding: 0 1px; color: var(--mc-muted); font-size: 10px; line-height: 1.45; text-align: left; }

.section-shell { width: 100%; margin: 0 auto; }
.movie-color-workspace-open { overflow: hidden; }
.workspace { position: fixed; inset: 0; z-index: 999; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; padding: 20px 16px; color: #dce2e8; background: rgba(0, 0, 0, .78); }
.workspace-dialog { width: min(1120px, 100%); min-height: calc(100vh - 40px); margin: 0 auto; padding: 10px 20px 28px; background: #090a0b; box-shadow: 0 22px 80px rgba(0, 0, 0, .65); }
.workspace .section-heading { position: sticky; top: 0; z-index: 2; padding: 8px 0 12px; background: #090a0b; }
.workspace .section-heading .eyebrow, .workspace .section-heading h2 { color: #dce2e8; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.movie-color-app h2 { margin-bottom: 0; color: var(--mc-text); font-size: 24px; font-weight: 500; }
.archive-title-filter { padding: 0; color: inherit; border: 0; background: transparent; font: inherit; cursor: pointer; }
.archive-title-filter:hover, .archive-title-filter.is-active { color: var(--mc-text); }
.movie-color-record-meta { margin: 7px 0 0; color: var(--mc-accent); font-size: 13px; }
.movie-color-record-tags { margin: 3px 0 0; color: var(--mc-muted); font-size: 12px; }
.archive-total { margin-left: 6px; color: var(--mc-muted); font-size: 14px; font-weight: 400; }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.archive-view-controls { display: inline-flex; gap: 6px; }
.archive-view { width: 34px; height: 34px; display: grid; place-items: center; color: var(--mc-muted); border: 1px solid var(--mc-line); background: var(--mc-panel); font-size: 20px; line-height: 1; }
.archive-view:hover, .archive-view.is-active { color: var(--mc-accent); border-color: var(--mc-accent); }
#view-grid { position: relative; font-size: 0; }
#view-grid::after { content: ''; width: 20px; height: 20px; position: absolute; top: 50%; left: 50%; display: block; background: linear-gradient(currentColor 0 0) 0 0 / 8px 8px no-repeat, linear-gradient(currentColor 0 0) 12px 0 / 8px 8px no-repeat, linear-gradient(currentColor 0 0) 0 12px / 8px 8px no-repeat, linear-gradient(currentColor 0 0) 12px 12px / 8px 8px no-repeat; transform: translate(-50%, -50%); }
.icon-button, .button, .resolution-control { min-height: 38px; border: 1px solid var(--mc-line); background: var(--mc-panel); }
.icon-button { width: 38px; color: var(--mc-muted); font-size: 23px; line-height: 1; }
.button { padding: 0 13px; color: var(--mc-text); font-size: 12px; }
.button-solid { color: #fff; border-color: var(--mc-accent); background: var(--mc-accent); }
.resolution-control { display: inline-flex; align-items: center; gap: 8px; padding: 0 9px; color: var(--mc-muted); font-size: 11px; }
.resolution-control select { max-width: 145px; color: inherit; border: 0; outline: 0; background: transparent; }
.workspace-heading { transition: opacity .16s ease, transform .16s ease, background-color .16s ease; }
.workspace-heading.is-scrolled-away { opacity: 0; pointer-events: none; background: transparent; transform: translateY(-110%); }
.analysis-card { width: 100%; margin: 0 auto; overflow: visible; border: 0; background: transparent; }
.analysis-frame { display: grid; place-items: center; background: transparent; }
.analysis-frame-image { display: block; width: auto; height: auto; max-width: 100%; max-height: min(72vh, 760px); box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.palette-sheet { overflow-x: auto; background: #f5f7fa; }
.palette-popover { width: 100%; margin: 10px 0 0; overflow: auto; border: 1px solid #41464a; box-shadow: none; }
.palette-sheet-board { min-width: 760px; padding: 15px 3.5% 12px; color: #2f3844; background: #f5f7fa; }
.sheet-swatches { display: grid; grid-template-columns: repeat(var(--sheet-color-count, 15), minmax(0, 1fr)); gap: clamp(2px, .35vw, 6px); }
.sheet-color { min-width: 0; text-align: center; }
.sheet-swatch { width: 100%; height: clamp(64px, 5.1vw, 78px); display: block; background: var(--sheet-color); }
.sheet-hex, .sheet-role { display: block; overflow: hidden; color: #39414d; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(8px, .88vw, 13px); line-height: 1.4; }
.sheet-hex { margin-top: 10px; font-weight: 600; }
.sheet-role { color: #5c6674; font-size: clamp(8px, .76vw, 11px); }
.palette-keywords { min-height: 38px; padding: 7px 3.5%; display: flex; align-items: center; gap: 10px; color: #6b7480; border-top: 1px solid #dfe3e7; background: #f5f7fa; font-size: 12px; }
.palette-keywords > span { color: #7a8490; white-space: nowrap; }
.palette-keywords > strong { min-width: 0; flex: 1; color: #39414d; font-weight: 700; overflow-wrap: anywhere; }
.palette-keywords > small { color: #8c662d; white-space: nowrap; font-size: 11px; }
.palette-keywords-edit, .palette-keywords-save, .palette-keywords-cancel { min-height: 29px; padding: 4px 9px; color: #fff !important; border-color: #424a53 !important; background: #424a53 !important; font-size: 12px; white-space: nowrap; }
.palette-keywords-cancel { border-color: #6f7780 !important; background: #6f7780 !important; }
.palette-keywords-editor { width: 100%; display: flex; align-items: end; gap: 10px; }
.palette-keywords-editor label { min-width: 0; flex: 1; display: grid; gap: 4px; color: #7a8490; font-size: 11px; }
.palette-keywords-editor input { width: 100%; box-sizing: border-box; min-height: 30px; padding: 5px 7px; color: #39414d; border: 1px solid #cfd5db; background: #fff; font: inherit; font-size: 13px; }
.palette-keywords-editor > div { display: flex; gap: 6px; }
.multimodal-insight { padding: 28px 5.5% 32px; color: #999999; background: #232425; border-top: 1px solid #3b3e41; }
.multimodal-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.multimodal-heading h3 { margin: 0; color: #999999; font-size: 17px; font-weight: 700; }
.multimodal-verification-note { color: #999999; font-size: 12px; font-weight: 400; }
.multimodal-heading small, .multimodal-muted { color: #999999; font-size: 12px; }
.multimodal-status { font-weight: 700; }
.multimodal-status.is-complete { color: #999999; }
.multimodal-status.is-processing { color: #999999; }
.multimodal-status.is-failed, .multimodal-error { color: #bd4545; }
.multimodal-error { margin: 8px 0 13px; font-size: 12px; overflow-wrap: anywhere; }
.multimodal-retry { margin-top: 10px; color: #fff !important; border-color: #252a30 !important; background: #252a30 !important; }
.multimodal-retry:hover, .multimodal-retry:focus { color: #fff !important; border-color: #101417 !important; background: #101417 !important; }
.multimodal-edit { margin-top: 10px; margin-left: 8px; color: #fff !important; border-color: #252a30 !important; background: #252a30 !important; }
.multimodal-edit:hover, .multimodal-edit:focus { color: #fff !important; border-color: #101417 !important; background: #101417 !important; }
.multimodal-pending { margin: 14px 0 0; color: #8c662d; font-size: 13px; font-weight: 600; }
.multimodal-editor { margin: 0; }
.multimodal-editor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.multimodal-editor-field { display: block; min-width: 0; }
.multimodal-editor-field:first-child { grid-column: 1 / -1; }
.multimodal-editor-field span { display: block; margin-bottom: 4px; color: #66717d; font-size: 12px; font-weight: 600; }
.multimodal-editor-field input, .multimodal-editor-field textarea { width: 100%; box-sizing: border-box; padding: 8px 9px; color: #e4e8ec; border: 1px solid #4a4e52; border-radius: 3px; background: #303235; font: inherit; font-size: 13px; line-height: 1.5; }
.multimodal-editor-field input:focus, .multimodal-editor-field textarea:focus { border-color: var(--mc-accent); outline: 0; }
.multimodal-editor-field textarea { resize: vertical; }
.multimodal-editor-actions { display: flex; gap: 8px; margin-top: 15px; }
.multimodal-editor-actions .multimodal-save { color: #fff !important; border-color: #252a30 !important; background: #252a30 !important; }
.multimodal-editor-actions .multimodal-cancel { color: #fff !important; border-color: #59616b !important; background: #59616b !important; }
.multimodal-description { margin: 0 0 14px; padding: 11px 13px; border-left: 3px solid #9caebb; background: #f5f7f8; }
.multimodal-description strong { display: block; color: #53616e; font-size: 12px; }
.multimodal-description p { margin: 5px 0 0; color: #27313b; font-size: 14px; font-weight: 600; line-height: 1.65; }
.multimodal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.multimodal-tags strong { color: #999999; font-size: 12px; }
.multimodal-tags span { padding: 3px 8px; color: #999999; border: 1px solid #51555a; background: #2c2e30; font-size: 11px; }
.multimodal-grid { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #42464b; border-left: 1px solid #42464b; }
.multimodal-grid div { min-width: 0; display: grid; grid-template-columns: minmax(72px, .7fr) minmax(0, 1.3fr); align-items: stretch; padding: 0; border-right: 1px solid #42464b; border-bottom: 1px solid #42464b; }
.multimodal-grid dt { padding: 11px 10px; color: #999999; border-right: 1px solid #42464b; font-size: 13px; font-weight: 600; line-height: 1.45; }
.multimodal-grid dd { min-width: 0; margin: 0; padding: 11px 10px; color: #999999; font-size: 13px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.multimodal-editor select { width: 100%; min-height: 35px; color: #f1f1f1; border: 1px solid #51555a; background: #34383d; font: inherit; }
.multimodal-region-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(86px, .8fr); align-items: center; gap: 7px; }
.multimodal-region-controls > span { color: #999999; font-size: 11px; white-space: nowrap; }
.multimodal-candidates { margin-top: 17px; padding: 13px 15px; background: #f5f7fa; }
.multimodal-candidates p { margin: 0 0 7px; color: #52606e; font-size: 12px; }
.multimodal-candidates p:last-child { margin-bottom: 0; }
.multimodal-candidates b { display: inline-block; min-width: 74px; margin-right: 8px; color: #26313d; font-weight: 700; }
.movie-color-custom-info { padding: 24px 5.5% 30px; color: #2f3844; background: #f8f9fa; border-top: 1px solid #dfe3e7; }
.movie-color-custom-info h3 { margin: 0 0 13px; color: #202833; font-size: 16px; font-weight: 700; }
.movie-color-custom-info dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e1e5e8; border-left: 1px solid #e1e5e8; }
.movie-color-custom-info dl div { min-width: 0; padding: 10px 12px; border-right: 1px solid #e1e5e8; border-bottom: 1px solid #e1e5e8; }
.movie-color-custom-info dt { margin-bottom: 3px; color: #77808a; font-size: 11px; }
.movie-color-custom-info dd { margin: 0; color: #28313c; font-size: 13px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.movie-color-related { padding: 26px 5.5% 32px; color: #999999; border-top: 1px solid #3b3e41; background: #232425; }
.movie-color-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.movie-color-related-item { min-width: 0; padding: 0; overflow: hidden; color: #999999; border: 1px solid #464a4e; background: #2c2e30; text-align: left; }
.movie-color-related-item img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.movie-color-related-item span { display: block; padding: 7px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.movie-color-related-item:hover { color: #999999; border-color: var(--mc-accent); }

.history { padding: 56px 0 20px; }
.history-heading { margin-bottom: 24px; }
.archive-layout { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 30px; align-items: start; }
.archive-filter-toggle { display: none; }
.archive-sidebar { position: sticky; top: 84px; max-height: calc(100vh - 104px); padding-right: 18px; overflow-y: auto; border-right: 1px solid var(--mc-line); scrollbar-width: thin; scrollbar-color: #777 transparent; }
.archive-sidebar::-webkit-scrollbar { width: 4px; }
.archive-sidebar::-webkit-scrollbar-track { background: transparent; }
.archive-sidebar::-webkit-scrollbar-thumb { min-height: 36px; border: 0; border-radius: 0; background: #777; }
.archive-sidebar::-webkit-scrollbar-button { width: 0; height: 0; display: none; }
.archive-label { width: 100%; clear: both; margin: 18px 0 7px; padding-top: 10px; color: var(--mc-muted); border-top: 1px solid var(--mc-line); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.archive-search { display: flex; margin: 0 0 8px; border: 1px solid var(--mc-line); background: var(--mc-panel); }
.category-search { width: 100%; min-width: 0; min-height: 34px; padding: 6px 8px; color: var(--mc-text); border: 0; background: transparent; font: inherit; font-size: 12px; }
.archive-search-button { width: 34px; flex: 0 0 34px; position: relative; padding: 0; border: 0; border-left: 1px solid var(--mc-line); background: transparent; }
.archive-search-button::before { content: ''; width: 10px; height: 10px; position: absolute; top: 9px; left: 9px; border: 1.5px solid currentColor; border-radius: 50%; }
.archive-search-button::after { content: ''; width: 6px; height: 1.5px; position: absolute; top: 20px; left: 20px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.archive-search-button:hover { color: var(--mc-accent); }
.archive-preset-tags { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 12px; }
.archive-preset-tag { padding: 1px 4px; color: var(--mc-muted); border: 1px solid var(--mc-line); border-radius: 2px; background: transparent; font: inherit; font-size: 9px; line-height: 1.2; }
.archive-preset-tag:hover, .archive-preset-tag.is-active { color: var(--mc-accent); border-color: var(--mc-accent); }
.archive-filter, .auto-filter { width: 100%; min-height: 32px; padding: 6px 0; display: flex; justify-content: space-between; align-items: center; color: var(--mc-muted); border: 0; border-bottom: 1px solid var(--mc-line); background: transparent; text-align: left; font-size: 13px; }
.archive-filter:hover, .auto-filter:hover, .archive-filter.is-active, .auto-filter.is-active { color: var(--mc-accent); }
.archive-favorites-filter { justify-content: flex-start; gap: 7px; }
.archive-favorites-icon { color: #e4b847; font-size: 20px; line-height: 1; }
.archive-favorites-filter small { margin-left: auto; color: inherit; font-size: 11px; }
.auto-filter small { color: var(--mc-muted); font-size: 11px; }
.auto-filter-tree-row { display: flex; align-items: stretch; min-width: 0; border-bottom: 1px solid var(--mc-line); }
.auto-filter-tree-row .auto-filter { min-width: 0; flex: 1; border-bottom: 0; }
.auto-filter-toggle, .auto-filter-toggle-spacer { width: 24px; min-width: 24px; position: relative; display: block; padding: 0; border: 0; background: transparent; }
.auto-filter-toggle { cursor: pointer; color: var(--mc-muted); }
.auto-filter-toggle::before { content: ''; width: 6px; height: 6px; position: absolute; top: 50%; left: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-65%) rotate(45deg); transition: transform .15s; }
.auto-filter-toggle:hover { color: var(--mc-accent); }
.auto-filter-tree-row.is-collapsed .auto-filter-toggle::before { transform: translateY(-50%) rotate(-45deg); }
.archive-content { min-width: 0; }
.history-grid { display:flex; align-items:flex-start; gap:18px; }
.history-masonry-column { flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:18px; }
.history-grid:not(.is-list) .history-item { width:100%; margin:0; }
.archive-load-sentinel { width:100%; height:1px; margin-top:26px; }
.history-grid.is-compact { gap:9px; }
.history-grid.is-compact .history-masonry-column { gap:9px; }
.history-grid.is-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.history-grid.is-list .history-item { display: grid; grid-template-columns: minmax(170px, 250px) minmax(0, 1fr); }
.history-grid.is-list .history-thumb { height: 150px; object-fit: cover; }
.history-grid.is-list .history-details { display: flex; flex-direction: column; justify-content: center; }
.history-grid.is-list .history-name { font-size: 16px; }
.history-grid.is-compact .history-details { display: none; }
.history-grid.is-compact .history-thumb { height:auto; object-fit:contain; }
.history-item { width: 100%; overflow: hidden; border: 1px solid var(--mc-line); background: var(--mc-panel); transition: transform .2s, box-shadow .2s; }
.history-item:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(0, 0, 0, .1); }
.history-thumb-wrap { position: relative; background: #151515; }
.history-thumb { width: 100%; height: auto; display: block; object-fit: contain; }
.history-open { position: absolute; inset: 0; color: #fff; border: 0; background: rgba(0, 0, 0, .5); font-size: 13px; opacity: 0; transition: opacity .2s; }
.history-thumb-wrap:hover .history-open, .history-open:focus-visible { opacity: 1; }
.history-details { position: relative; min-height: 103px; padding: 12px 66px 12px 12px; }
.history-name { margin: 0 0 9px; overflow: hidden; color: var(--mc-text); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.history-movie { margin: -3px 0 8px; overflow: hidden; color: var(--mc-accent); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.history-author { position: absolute; top: 12px; right: 10px; width: 48px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--mc-muted); text-align: center; }
.history-author-avatar { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; color: #fff; border: 1px solid var(--mc-line); border-radius: 50%; background: var(--mc-accent); }
.history-author img { width: 100%; height: 100%; display: block; border: 0; border-radius: 50%; object-fit: cover; }
.history-author-initial { color: inherit; font-size: 15px; font-style: normal; font-weight: 700; line-height: 1; }
.history-author b { width: 100%; overflow: hidden; font-size: 10px; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.history-keywords { margin: -3px 0 8px; overflow: hidden; color: var(--mc-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.history-tags { min-height: 20px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.history-tag { max-width: 100%; padding: 2px 5px; color: var(--mc-muted); border: 1px solid var(--mc-line); background: transparent; font: inherit; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-category-tag { cursor: pointer; }
.history-category-tag:hover { color: var(--mc-accent); border-color: var(--mc-accent); }
.history-bottom { display: flex; align-items: center; gap: 8px; color: var(--mc-muted); font-size: 11px; }
.history-colors { flex: 1; display: flex; justify-content: flex-end; gap: 3px; }
.history-color { width: 12px; height: 12px; display: block; border: 1px solid rgba(0, 0, 0, .12); }
.history-favorite { width: 30px; height: 30px; flex: 0 0 30px; margin: -6px -4px -6px 0; display: grid; place-items: center; padding: 0; color: var(--mc-muted); border: 0; background: transparent; line-height: 1; }
.history-favorite .icon { top: 0; font-size: 15px !important; line-height: 1; }
.history-favorite.is-favorite { color: var(--mc-accent); }
.history-admin-actions { margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.history-category { min-width: 0; flex: 1; height: 30px; color: var(--mc-muted); border: 1px solid var(--mc-line); outline: 0; background: var(--mc-panel); font-size: 11px; }
.history-delete { width: 30px; height: 30px; display: grid; place-items: center; color: var(--mc-muted); border: 1px solid var(--mc-line); background: transparent; font-size: 19px; line-height: 1; }
.history-delete:hover { color: #d95757; border-color: currentColor; }
.empty-state { padding: 75px 20px; border: 1px dashed var(--mc-line); color: var(--mc-muted); text-align: center; }
.empty-number { display: block; margin-bottom: 15px; color: var(--mc-accent); font-size: 28px; }
.empty-state p { margin-bottom: 5px; color: var(--mc-text); font-size: 15px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 99; max-width: min(320px, calc(100% - 40px)); padding: 11px 15px; color: #fff; border-radius: 3px; background: #333; font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.movie-color-app.is-fullscreen-gallery { position: fixed; inset: 0; z-index: 99999; width: 100vw; height: 100vh; overflow: auto; min-height: 100vh; padding: 26px; background: var(--mc-panel); }
.movie-color-app.is-fullscreen-gallery .movie-color-hero, .movie-color-app.is-fullscreen-gallery .history-heading, .movie-color-app.is-fullscreen-gallery .archive-sidebar { display: none; }
.movie-color-app.is-fullscreen-gallery .history { padding: 0; }
.movie-color-app.is-fullscreen-gallery .archive-layout { display: block; }
.movie-color-app.is-fullscreen-gallery .history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.movie-color-app.is-fullscreen-gallery .history-item { display: block; margin: 0; background: #111; }
.movie-color-app.is-fullscreen-gallery .history-details { display: none; }
.movie-color-app.is-fullscreen-gallery .history-thumb { aspect-ratio: 16 / 9; object-fit: cover; }
.movie-color-app.is-fullscreen-gallery .workspace { z-index: 1000; padding: 24px; border: 0; }
body.night .movie-color-app { --mc-line: #2b2b2b; --mc-panel: #202020; --mc-muted: #8f8f8f; --mc-text: inherit; }
body.night .upload-zone { border-color: #3a3a3a; background: #181818; }
body.night .movie-color-login-overlay { background: rgba(24, 24, 24, .94); }
body.night .history-item { background: #202020; }
body.night .history-favorite { background: transparent; }
@media (max-width: 760px) { .archive-sidebar { max-height: none; overflow: visible; } }
@media (max-width: 760px) { .movie-color-custom-info dl, .movie-color-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .palette-keywords { flex-wrap: wrap; } .palette-keywords > strong { flex-basis: calc(100% - 78px); } .palette-keywords-editor { align-items: stretch; flex-direction: column; } .palette-keywords-editor > div { justify-content: flex-end; } }
@media (max-width: 1180px) { .movie-color-hero { grid-template-columns: 1fr; column-gap: 34px; row-gap: 34px; } .movie-color-copyright { grid-column: 1; margin-top: -28px; } }
@media (max-width: 760px) { .movie-color-main { padding-top: 14px; } .movie-color-main .container { width: min(calc(100% - 28px), 1620px); } .movie-color-hero { padding: 25px 0 38px; } .movie-color-app h1 { font-size: 31px; } .section-heading { align-items: start; flex-direction: column; } .heading-actions { width: 100%; justify-content: stretch; } .heading-actions .button { flex: 1; } .resolution-control { width: 100%; justify-content: space-between; } .upload-zone { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 14px; } .upload-zone > .upload-preview-image, .upload-zone > .upload-icon, .upload-zone > div:not([class]), .upload-zone > .upload-hint { grid-column: 1; grid-row: 1; min-height: 0; } .upload-zone > .upload-preview-image { min-height: 190px; } .upload-meta, .upload-error, .upload-analyze, .upload-progress, .upload-status { grid-column: 1; grid-row: auto; } .upload-meta { padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--mc-line); } .movie-color-copyright { margin-top: -28px; font-size: 9px; } .multimodal-grid, .multimodal-editor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .archive-layout { grid-template-columns: 1fr; gap: 12px; } .archive-filter-toggle { display:block; width:100%; min-height:42px; color:var(--mc-text); border:1px solid var(--mc-line); background:var(--mc-panel); text-align:left; padding:0 13px; font:inherit; font-weight:700; } .archive-sidebar { display:none; position:static; padding:0 0 10px; border:0; } .archive-sidebar.is-open { display:block; } .auto-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 15px; } .history-grid:not(.is-list) { display:block; } .history-masonry-column { gap:12px; } .history-grid.is-list .history-item { grid-template-columns: 118px minmax(0, 1fr); } .history-grid.is-list .history-thumb { height: 118px; } .movie-color-app.is-fullscreen-gallery { padding: 12px; } .movie-color-app.is-fullscreen-gallery .history-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; } .movie-color-app.is-fullscreen-gallery .workspace { padding: 12px; } }
