.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--control-height); padding: 0 13px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 630; white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.button .icon { width: 15px; height: 15px; }
.button-sm { min-height: 32px; padding: 0 11px; font-size: 10px; }
.button-primary { border-color: #b8b0ff; background: #aaa4ff; color: #171621; box-shadow: 0 2px 0 rgba(255,255,255,.08) inset; }
.button-primary:hover:not(:disabled) { border-color: #d0cbff; background: #bbb6ff; }
.button-secondary { border-color: #3a3e48; background: #20232a; color: #d9dbe2; }
.button-secondary:hover:not(:disabled) { border-color: #525866; background: #292d36; }
.button-quiet { border-color: transparent; background: transparent; color: #9ca1ac; }
.button-quiet:hover:not(:disabled) { background: #21232a; color: #e4e5ea; }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button:active:not(:disabled) { transform: translateY(1px); }
.tool-card { display: flex; min-width: 0; min-height: 228px; flex-direction: column; padding: 22px 23px 19px; border: 1px solid #30333d; border-radius: 13px; background: linear-gradient(145deg, #191b21 0%, #14161b 72%); text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.tool-card:hover { border-color: #5a547f; background: linear-gradient(145deg, #20202b 0%, #17181e 72%); transform: translateY(-2px); }
.tool-card:focus-visible { outline-offset: 4px; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; }
.tool-card-icon { display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid #4a4661; border-radius: 11px; background: #262331; color: #b3acff; }
.tool-card-resize .tool-card-icon { border-color: #594738; background: #29221d; color: #efb884; }
.tool-card-arrow { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #353844; border-radius: 8px; color: #878c99; transition: color .15s ease, transform .15s ease, border-color .15s ease; }
.tool-card:hover .tool-card-arrow { transform: translate(2px,-2px); border-color: #6a6494; color: #d3d0ff; }
.tool-card-title { margin-top: 21px; color: #e9e9ee; font-size: 16px; font-weight: 650; letter-spacing: -.025em; }
.tool-card-description { max-width: 415px; margin-top: 7px; color: #959aa5; font-size: 12px; line-height: 1.65; }
.tool-card-meta { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 19px; color: #858b97; font-size: 9px; font-weight: 740; letter-spacing: .12em; }
.meta-pip { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.meta-pip-amber { background: var(--warm); }
.meta-separator { color: #555b66; }
.workspace-frame { display: flex; min-width: 0; min-height: 550px; height: min(76vh, 860px); border: 1px solid #2d3038; border-radius: 12px; overflow: hidden; background: #15171c; box-shadow: var(--shadow-panel); }
.tool-rail { display: flex; width: 74px; min-width: 74px; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 8px; border-right: 1px solid #2a2d35; background: #121318; }
.rail-tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 62px; padding: 8px 3px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #8d929e; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.rail-tool .icon { width: 18px; height: 18px; }
.rail-tool span { font-size: 9px; font-weight: 570; }
.rail-tool:hover { background: #1b1d24; color: #e1e2e8; }
.rail-tool.is-active { border-color: #39354f; background: #252331; color: #c8c3ff; }
.canvas-column { display: flex; min-width: 0; flex: 1; flex-direction: column; background: #17191f; }
.canvas-toolbar { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid #292c34; background: #181a20; }
.file-summary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.file-summary-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid #343742; border-radius: 8px; background: #202228; color: #aaa5e8; }
.file-summary-icon .icon { width: 15px; height: 15px; }
.file-summary-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.file-summary-copy strong { max-width: 260px; overflow: hidden; color: #dfe0e6; font-size: 10px; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.file-summary-copy span { color: #828894; font-size: 9px; }
.canvas-toolbar-right { display: flex; align-items: center; gap: 7px; }
.canvas-tag { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border: 1px solid #363942; border-radius: 5px; color: #a1a5af; background: #1c1e24; font-size: 8px; font-weight: 750; letter-spacing: .09em; white-space: nowrap; }
.canvas-tag.is-ready { border-color: rgba(137,203,179,.24); background: rgba(137,203,179,.07); color: #9bd0bb; }
.icon-button { display: inline-grid; width: 30px; height: 30px; place-items: center; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #9297a3; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.icon-button:hover:not(:disabled) { border-color: #383c47; background: #252831; color: #e2e3e8; }
.icon-button:disabled { opacity: .32; cursor: not-allowed; }
.icon-button .icon { width: 15px; height: 15px; }
.canvas-stage-wrap { --canvas-inset: 28px; position: relative; display: flex; min-height: 0; flex: 1; align-items: center; justify-content: center; overflow: hidden; padding: var(--canvas-inset); background-color: #17191f; background-image: radial-gradient(circle, rgba(255,255,255,.055) .7px, transparent .8px); background-size: 16px 16px; }
.preview-canvas { display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; touch-action: none; }
.preview-canvas.is-cropping { cursor: crosshair; }
.preview-overlay {
  position: absolute;
  z-index: 3;
  top: var(--canvas-inset, 28px);
  left: var(--canvas-inset, 28px);
  width: calc(100% - var(--canvas-inset, 28px) - var(--canvas-inset, 28px));
  height: calc(100% - var(--canvas-inset, 28px) - var(--canvas-inset, 28px));
  background: transparent;
  touch-action: none;
  pointer-events: none;
  outline: none;
}
.preview-overlay.is-interactive { pointer-events: auto; cursor: crosshair; }
.preview-overlay.is-interactive[data-cursor="move"] { cursor: move; }
.preview-overlay.is-interactive[data-cursor="nwse-resize"] { cursor: nwse-resize; }
.preview-overlay.is-interactive[data-cursor="nesw-resize"] { cursor: nesw-resize; }
.preview-overlay.is-interactive[data-cursor="ns-resize"] { cursor: ns-resize; }
.preview-overlay.is-interactive[data-cursor="ew-resize"] { cursor: ew-resize; }

.empty-upload { display: flex; width: min(100%, 350px); flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px; text-align: center; }
.upload-art { position: relative; display: grid; width: 94px; height: 82px; place-items: center; margin-bottom: 18px; }
.upload-art-tile { position: absolute; display: grid; width: 53px; height: 60px; place-items: center; border: 1px solid #454458; border-radius: 10px; background: #22222c; transform: rotate(-10deg) translate(-11px, -2px); }
.tile-front { width: 56px; height: 64px; border-color: #68618e; background: linear-gradient(145deg, #353147, #24232d); color: #c1bbff; box-shadow: 0 10px 30px rgba(0,0,0,.2); transform: rotate(7deg) translate(8px, 2px); }
.upload-art-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--warm); }
.spark-one { top: 7px; right: 5px; }
.spark-two { left: 6px; bottom: 8px; width: 3px; height: 3px; background: #918cf2; }
.empty-upload h2 { margin: 0; color: #dfe0e5; font-size: 15px; font-weight: 630; letter-spacing: -.02em; }
.empty-upload p { max-width: 280px; margin: 8px 0 17px; color: #8e94a0; font-size: 10px; line-height: 1.75; }
.upload-hint { margin-top: 13px; color: #737987; font-size: 9px; }
.upload-hint span { padding: 0 3px; color: #4b505a; }
.canvas-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 11px; background: rgba(14,15,19,.78); color: #c6c8d0; font-size: 11px; backdrop-filter: blur(3px); }
.spinner { width: 17px; height: 17px; border: 2px solid #3a3d49; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.canvas-statusbar { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 15px; border-top: 1px solid #292c34; color: #808692; background: #15171c; font-size: 9px; }
.status-group { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.status-divider { width: 1px; height: 10px; background: #3c404a; }
.inspector-panel { display: flex; width: 306px; min-width: 306px; flex-direction: column; border-left: 1px solid #2a2d35; background: #14161b; }
.inspector-heading { display: flex; align-items: center; justify-content: space-between; min-height: 59px; padding: 0 17px; border-bottom: 1px solid #292c34; }
.inspector-kicker, .panel-eyebrow { display: block; color: #7d8290; font-size: 8px; font-weight: 760; letter-spacing: .14em; }
.inspector-heading h2 { margin: 3px 0 0; color: #e4e5ea; font-size: 13px; font-weight: 640; letter-spacing: -.02em; }
.inspector-content { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; scroll-padding-block: 12px; }
.inspector-empty { display: flex; min-height: 260px; flex-direction: column; align-items: center; justify-content: center; padding: 30px 25px; text-align: center; }
.inspector-empty-icon { display: grid; width: 46px; height: 46px; place-items: center; margin-bottom: 15px; border: 1px solid #393646; border-radius: 12px; background: #211f2c; color: #a8a2f4; }
.inspector-empty strong { color: #d9dae1; font-size: 11px; font-weight: 630; }
.inspector-empty span { max-width: 205px; margin-top: 7px; color: #898f9c; font-size: 10px; line-height: 1.65; }
.inspector-footnote { display: flex; align-items: flex-start; gap: 8px; padding: 12px 15px; border-top: 1px solid #292c34; color: #7c828f; font-size: 9px; line-height: 1.55; }
.inspector-footnote .icon { width: 13px; height: 13px; margin-top: 1px; color: #9b96d7; }
.control-section { padding: 17px 16px; border-bottom: 1px solid #292c34; }
.control-section:last-child { border-bottom: 0; }
.control-section-heading { margin: 0 0 5px; color: #dfe0e6; font-size: 11px; font-weight: 640; }
.control-help { margin: 0 0 14px; color: #848a96; font-size: 9px; line-height: 1.65; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.control-row:last-child { margin-bottom: 0; }
.control-label { color: #b7bbc4; font-size: 10px; font-weight: 530; }
.control-value { min-width: 46px; color: #a9a5d7; font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.field-label { display: block; margin-bottom: 7px; color: #b6bac4; font-size: 10px; font-weight: 560; }
.range-control { display: block; width: 100%; height: 18px; margin: 8px 0 0; padding: 0; appearance: none; background: transparent; cursor: pointer; }
.range-control::-webkit-slider-runnable-track { height: 4px; border-radius: 5px; background: linear-gradient(90deg, var(--accent-deep), #545765); }
.range-control::-moz-range-track { height: 4px; border-radius: 5px; background: #484b57; }
.range-control::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -4.5px; appearance: none; border: 2px solid #e9e7ff; border-radius: 50%; background: #9b94f8; box-shadow: 0 0 0 3px rgba(157,150,255,.13); }
.range-control::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #e9e7ff; border-radius: 50%; background: #9b94f8; box-shadow: 0 0 0 3px rgba(157,150,255,.13); }
.range-ends { display: flex; justify-content: space-between; margin-top: 2px; color: #686e7a; font-size: 8px; }
.range-field { margin-bottom: 18px; }
.range-field:last-child { margin-bottom: 0; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.preset-button { display: flex; min-width: 0; min-height: 62px; flex-direction: column; align-items: stretch; gap: 6px; padding: 5px; border: 1px solid #30333c; border-radius: 7px; background: #1a1c22; color: #b9bdc6; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.preset-button:hover { border-color: #52566a; background: #22242c; }
.preset-button.is-active { border-color: #756dc5; background: #242235; color: #dedbff; }
.preset-swatch { display: block; height: 35px; border-radius: 4px; background: linear-gradient(135deg,#7c95a7,#d6b5a2 50%,#4d5364); }
.preset-swatch.swatch-original { background: linear-gradient(135deg,#6d8aa7,#e1c3a1 48%,#566c5e); }
.preset-swatch.swatch-warm { background: linear-gradient(135deg,#8d5d43,#e5b483 48%,#65504c); }
.preset-swatch.swatch-cool { background: linear-gradient(135deg,#547790,#b4c5d6 48%,#353f64); }
.preset-swatch.swatch-mono { background: linear-gradient(135deg,#34373d,#c3c3c1 48%,#696b6c); }
.preset-swatch.swatch-film { background: linear-gradient(135deg,#65715a,#c7a889 48%,#424a41); }
.preset-swatch.swatch-fade { background: linear-gradient(135deg,#c7b7aa,#e7d8c7 48%,#979b9b); }
.preset-name { overflow: hidden; font-size: 9px; font-weight: 580; text-overflow: ellipsis; white-space: nowrap; }
.preset-meta { margin-top: 12px; color: #818795; font-size: 9px; line-height: 1.55; }
.segmented { display: flex; gap: 3px; padding: 3px; border: 1px solid #30333c; border-radius: 8px; background: #101115; }
.segmented button { flex: 1; min-height: 29px; padding: 0 5px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #9ca1ad; font-size: 9px; cursor: pointer; }
.segmented button:hover { color: #e2e3e9; }
.segmented button.is-active { border-color: #414052; background: #292736; color: #dcd8ff; }
.ratio-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 14px; }
.ratio-button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 37px; border: 1px solid #30333c; border-radius: 7px; background: #1a1c22; color: #aeb2bd; font-size: 9px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ratio-button:hover { border-color: #4d5260; color: #e2e3e9; }
.ratio-button.is-active { border-color: #726bc2; background: #262437; color: #dcd9ff; }
.ratio-shape { display: inline-block; width: 12px; height: 12px; border: 1px solid currentColor; border-radius: 2px; }
.ratio-shape.ratio-landscape { width: 14px; height: 10px; }
.ratio-shape.ratio-portrait { width: 9px; height: 13px; }
.ratio-shape.ratio-free { border-style: dashed; transform: rotate(-7deg); }
.action-stack { display: grid; gap: 8px; margin-top: 13px; }
.action-stack .button { width: 100%; }
.transform-button-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.transform-action { display: flex; min-height: 61px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid #30333c; border-radius: 8px; background: #1a1c22; color: #b5bac5; font-size: 9px; cursor: pointer; }
.transform-action:hover { border-color: #54596a; background: #23252d; color: #ececf2; }
.transform-action .icon { color: #aaa5eb; }
.transform-action .flip-icon { transform: scaleX(-1); }
.form-input { width: 100%; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #383c46; border-radius: 7px; outline: none; background: #1a1c22; color: #e3e5eb; font-size: 11px; font-variant-numeric: tabular-nums; }
.form-input:hover { border-color: #515765; }
.form-input:focus { border-color: #8880e5; box-shadow: 0 0 0 3px rgba(157,150,255,.09); }
.form-input:disabled { color: #6f7480; background: #17191e; }
.number-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.field-unit { position: relative; }
.field-unit .form-input { padding-right: 34px; }
.field-unit span { position: absolute; top: 50%; right: 10px; color: #7e8490; font-size: 9px; transform: translateY(-50%); pointer-events: none; }
.custom-select { position: relative; min-width: 0; }
.select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 9px; width: 100%; min-height: 36px; padding: 0 10px; border: 1px solid #383c46; border-radius: 7px; background: #1a1c22; color: #d6d9e1; font-size: 10px; text-align: left; cursor: pointer; }
.select-trigger:hover, .custom-select.is-open .select-trigger { border-color: #666087; }
.select-trigger .icon { width: 13px; height: 13px; color: #8e93a0; transition: transform .15s ease; }
.custom-select.is-open .select-trigger .icon { transform: rotate(180deg); }
.select-menu { position: absolute; z-index: 50; top: calc(100% + 5px); right: 0; left: 0; max-height: 220px; overflow: auto; padding: 5px; border: 1px solid #3b3e49; border-radius: 9px; background: #202229; box-shadow: 0 14px 32px rgba(0,0,0,.38); }
.select-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #bec2cc; font-size: 10px; text-align: left; cursor: pointer; }
.select-option:hover, .select-option:focus-visible { outline: none; background: #2a2d36; color: #f0f0f5; }
.select-option[aria-selected="true"] { background: #302d41; color: #d8d4ff; }
.select-option .icon { width: 13px; height: 13px; color: #b7b1ff; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 13px 0; }
.switch-copy { display: flex; flex-direction: column; gap: 2px; }
.switch-copy strong { color: #c0c4cd; font-size: 10px; font-weight: 570; }
.switch-copy span { color: #7f8592; font-size: 9px; line-height: 1.4; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; width: 33px; height: 19px; }
.switch input { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.switch-track { position: absolute; inset: 0; border: 1px solid #464a55; border-radius: 12px; background: #292c34; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.switch-track::before { position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: #a0a5b0; content: ""; transition: transform .15s ease, background .15s ease; }
.switch input:checked + .switch-track { border-color: #8b83e4; background: #675fc2; }
.switch input:checked + .switch-track::before { background: white; transform: translateX(14px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.helper-box { display: flex; gap: 8px; margin-top: 13px; padding: 10px; border: 1px solid #343541; border-radius: 7px; background: #1a1b22; color: #969ba7; font-size: 9px; line-height: 1.6; }
.helper-box .icon { width: 14px; height: 14px; margin-top: 1px; color: #a29ce7; }
.helper-box.is-warning { border-color: #574333; background: #211c18; color: #c4a58a; }
.helper-box.is-warning .icon { color: var(--warm); }
.resize-workspace { display: grid; grid-template-columns: minmax(0,1fr) 325px; gap: 16px; min-height: 550px; height: min(76vh, 860px); }
.resize-preview-panel, .resize-settings-panel { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #2d3038; border-radius: 12px; background: #15171c; box-shadow: var(--shadow-panel); }
.panel-topline { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; border-bottom: 1px solid #292c34; background: #181a20; }
.panel-topline h2 { margin: 3px 0 0; color: #e2e3e8; font-size: 13px; font-weight: 640; letter-spacing: -.02em; }
.resize-preview-stage { position: relative; display: flex; min-height: 0; flex: 1; align-items: center; justify-content: center; overflow: hidden; padding: 30px; background-color: #17191f; background-image: radial-gradient(circle, rgba(255,255,255,.055) .7px, transparent .8px); background-size: 16px 16px; }
.resize-preview-footer { display: flex; align-items: center; justify-content: center; gap: 11px; min-height: 38px; padding: 0 15px; border-top: 1px solid #292c34; color: #777d89; font-size: 9px; }
.resize-preview-footer strong { color: #b9bdc6; font-weight: 620; font-variant-numeric: tabular-nums; }
.resize-preview-footer .icon { color: var(--accent); }
.empty-upload-compact { width: min(100%, 300px); }
.upload-art-small { transform: scale(.82); margin-bottom: 8px; }
.settings-body { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scroll-padding-block: 12px; }
.settings-body .control-section { padding: 17px 18px; }
.estimate-box { margin: 14px; padding: 14px; border: 1px solid #39354d; border-radius: 9px; background: linear-gradient(130deg, rgba(157,150,255,.09), rgba(157,150,255,.025)); }
.estimate-box > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.estimate-label { color: #8f8ba9; font-size: 8px; font-weight: 760; letter-spacing: .12em; }
.estimate-box strong { color: #e4e2ff; font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.estimate-pill { display: inline-block; margin-top: 8px; padding: 2px 6px; border: 1px solid #46415d; border-radius: 4px; color: #9f9abf; font-size: 8px; }
.estimate-box p { margin: 8px 0 0; color: #858a97; font-size: 9px; line-height: 1.6; }
.toast-region { position: fixed; z-index: 100; right: 24px; bottom: 22px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #3e414c; border-radius: 9px; background: #202229; color: #dfe1e7; box-shadow: 0 10px 35px rgba(0,0,0,.34); font-size: 11px; line-height: 1.6; animation: toast-in .2s ease-out; }
.toast .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--success); }
.toast.is-error { border-color: #604144; background: #271d21; }
.toast.is-error .icon { color: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.drop-highlight { outline: 2px dashed #8e86e4; outline-offset: -8px; background-color: #211f30 !important; }
.invalid-field { border-color: #d87979 !important; box-shadow: 0 0 0 3px rgba(241,155,155,.08); }
@media (max-width: 1280px) {
.inspector-panel { width: 286px; min-width: 286px; }
  .workspace-frame { height: min(76vh, 860px); }
  .canvas-stage-wrap { --canvas-inset: 20px; }
}
@media (max-width: 1080px) {
  .workspace-frame { height: auto; min-height: 680px; }
  .inspector-panel { width: 270px; min-width: 270px; }
  .tool-rail { width: 66px; min-width: 66px; }
  .canvas-stage-wrap { min-height: 420px; }
  .resize-workspace { grid-template-columns: minmax(0,1fr) 300px; height: auto; min-height: 680px; }
  .resize-preview-stage { min-height: 470px; }
}
@media (max-width: 850px) {
  .brand { padding: 0; }
  .brand-mark { width: 35px; height: 35px; }
  .topbar { padding: 0 20px; }
.tool-grid { gap: 12px; margin-top: 32px; }
  .tool-card { min-height: 215px; padding: 18px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }
  .workspace-actions { width: 100%; justify-content: flex-start; }
  .workspace-frame { position: relative; min-height: unset; height: auto; flex-wrap: wrap; overflow: visible; }
  .tool-rail { width: 100%; min-width: 100%; flex-direction: row; justify-content: space-between; border-right: 0; border-bottom: 1px solid #2a2d35; padding: 7px; }
  .rail-tool { flex: 1; min-height: 56px; gap: 4px; }
  /* Reserve a real flex-basis for the canvas beside the inspector after the tool rail moves above them. */
  .canvas-column { min-width: 0; width: auto; flex: 1 1 calc(100% - 300px); min-height: 480px; }
  .inspector-panel { width: 270px; min-width: 270px; }
  .canvas-stage-wrap { min-height: 400px; --canvas-inset: 18px; }
  .resize-workspace { grid-template-columns: minmax(0,1fr); }
  .resize-preview-stage { min-height: 400px; }
  .resize-settings-panel { min-height: 480px; }
  .settings-body { flex: initial; }
  .estimate-box { margin-top: auto; }
}
@media (max-width: 620px) {
  .local-indicator { display: none; }
.view-home { padding: 14px 1px 0; }
  .tool-grid { grid-template-columns: minmax(0,1fr); margin-top: 26px; }
  .tool-card { min-height: 196px; }
  .page-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .workspace-heading { gap: 16px; margin-bottom: 17px; }
  .view-heading h1 { font-size: 25px; }
  .workspace-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .workspace-actions .button { width: 100%; padding: 0 9px; }
  .workspace-actions .button-primary { grid-column: span 2; }
  .workspace-frame { display: flex; }
  .tool-rail { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .rail-tool { min-height: 54px; }
  .rail-tool:nth-child(5) { grid-column-start: 2; }
  .canvas-column { width: 100%; min-height: 405px; flex: auto; }
  .canvas-toolbar { display: flex; min-height: 0; flex-wrap: wrap; gap: 8px; padding: 9px 11px; }
  .file-summary { width: 100%; flex: 1 1 100%; }
  .file-summary-copy { flex: 1 1 auto; }
  .canvas-toolbar-right { width: 100%; justify-content: space-between; gap: 4px; }
  .canvas-stage-wrap { min-height: 315px; --canvas-inset: 12px; }
  .file-summary-copy strong { max-width: 150px; }
  .inspector-panel { width: 100%; min-width: 0; border-top: 1px solid #2a2d35; border-left: 0; }
  .inspector-heading { min-height: 54px; }
  .inspector-content { max-height: 440px; }
  .inspector-empty { min-height: 180px; }
  .resize-workspace { gap: 12px; min-height: unset; }
  .resize-preview-stage { min-height: 315px; padding: 12px; }
  .panel-topline { min-height: 56px; padding: 0 13px; }
  .resize-preview-footer { flex-wrap: wrap; gap: 7px; font-size: 8px; }
  .resize-settings-panel { min-height: unset; }
  .settings-body { max-height: none; }
  .estimate-box { margin: 12px; }
  .toast-region { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.effect-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.effect-button { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 48px; padding: 7px 8px; border: 1px solid #30333c; border-radius: 7px; background: #1a1c22; color: #b6bbc5; font-size: 9px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.effect-button:hover { border-color: #505563; background: #22252d; }
.effect-button.is-active { border-color: #756dc5; background: #262437; color: #dedbff; }
.effect-mark { display: block; width: 24px; height: 24px; flex: 0 0 auto; border: 1px solid #464a57; border-radius: 6px; background: linear-gradient(140deg,#8880ce,#5f6172 52%,#252832); }
.effect-mark-normal { background: linear-gradient(140deg,#8880ce,#5f6172 52%,#252832); }
.effect-mark-sharpen { background: repeating-linear-gradient(135deg,#b7b0ff 0 2px,#393747 2px 4px); }
.effect-mark-edge { background: repeating-linear-gradient(45deg,#aaa6da 0 1px,#1a1c22 1px 5px); }
.effect-mark-warm { background: linear-gradient(135deg,#f0bb88,#9a604d); }
.effect-mark-cool { background: linear-gradient(135deg,#9fb8d8,#536d9b); }
.effect-mark-shadow { background: linear-gradient(135deg,#eeeafc 0 55%,#3b3a48 57% 66%,#13141a 69%); }
.spinner-button { width: 12px; height: 12px; border-width: 2px; border-color: rgba(25,25,32,.28); border-top-color: #1b1a28; }

.control-spacer { height: 17px; }
.truncate-value { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Restored legacy editing depth: eight-handle crop, compact families and real preset previews. */
.preview-canvas {
  background-color: #272a31;
  background-image: linear-gradient(45deg, #383b44 25%, transparent 25%), linear-gradient(-45deg, #383b44 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #383b44 75%), linear-gradient(-45deg, transparent 75%, #383b44 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
  outline: 1px solid rgba(255,255,255,.045);
  outline-offset: -1px;
}
.preview-canvas.is-cropping { cursor: crosshair; }
.preset-grid-rich { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.preset-grid-rich .preset-button { min-height: 68px; padding: 5px; }
.preset-grid-rich .preset-thumb { display: block; width: 100%; height: 42px; object-fit: cover; border: 0; border-radius: 4px; background-color: #24262d; }
.preset-grid-rich .preset-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.filter-search { margin-bottom: 12px; }
.preset-button[hidden] { display: none; }
.family-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.family-button { display: flex; min-width: 0; min-height: 36px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 9px; border: 1px solid #30333c; border-radius: 7px; background: #191b21; color: #aeb3be; text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.family-button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 620; }
.family-button small { flex: 0 0 auto; color: #747b88; font-size: 8px; font-variant-numeric: tabular-nums; }
.family-button:hover { border-color: #4a4e5a; background: #21242b; color: #e0e2e8; }
.family-button.is-active { border-color: #756dc5; background: #252338; color: #e5e2ff; }
.family-button.is-active small { color: #b7b1ff; }
.effect-variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.effect-variant { display: flex; min-width: 0; flex-direction: column; gap: 6px; padding: 5px; border: 1px solid #30333c; border-radius: 7px; background: #191b21; color: #abb0bb; text-align: left; cursor: pointer; }
.effect-variant:hover { border-color: #515565; background: #21232b; }
.effect-variant.is-active { border-color: #756dc5; background: #252338; color: #e3e0ff; }
.effect-variant-swatch { display: block; width: 100%; height: 30px; border-radius: 4px; background: var(--effect-swatch, #30333c); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.effect-variant > span:last-child { min-width: 0; font-size: 8px; line-height: 1.3; overflow-wrap: anywhere; }
.processing-variant-list { display: grid; gap: 5px; }
.processing-variant { display: flex; min-height: 35px; align-items: center; gap: 9px; padding: 0 9px; border: 1px solid #30333c; border-radius: 7px; background: #191b21; color: #b6bbc5; text-align: left; cursor: pointer; }
.processing-variant:hover { border-color: #505463; background: #21232b; }
.processing-variant.is-active { border-color: #756dc5; background: #252338; color: #e4e1ff; }
.processing-variant > span:nth-child(2) { flex: 1; font-size: 9px; }
.processing-variant .icon { width: 13px; height: 13px; color: #bcb6ff; }
.processing-variant-index { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border: 1px solid #373a45; border-radius: 5px; color: #7f8592; font-size: 8px; font-variant-numeric: tabular-nums; }
.processing-variant.is-active .processing-variant-index { border-color: #615a9d; color: #c7c1ff; }
@media (max-width: 620px) {
  .effect-variant-grid, .preset-grid-rich { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Refined editing canvas: give the photo breathing room inside its viewport. */
.workspace-frame { border-radius: 14px; background: #13151a; }
.canvas-stage-wrap { --canvas-inset: clamp(24px, 3.1vw, 42px); background-color: #13151a; background-image: radial-gradient(circle, rgba(255,255,255,.045) .7px, transparent .8px); background-size: 17px 17px; }
.preview-canvas { max-width: 100%; max-height: 100%; }
.canvas-column { background: #13151a; }
.canvas-toolbar { gap: 16px; }
.canvas-toolbar-right { gap: 6px; }
.canvas-tag { flex: 0 0 auto; }
.inspector-panel { background: #17191f; }
.inspector-heading { padding-right: 15px; padding-left: 17px; }
.inspector-content { scrollbar-color: #3e414c transparent; scrollbar-width: thin; }
.inspector-content::-webkit-scrollbar, .settings-body::-webkit-scrollbar { width: 7px; }
.inspector-content::-webkit-scrollbar-thumb, .settings-body::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 8px; background: #3b3e48; background-clip: padding-box; }
.control-section { padding: 18px 17px; }
.control-section-heading { font-size: 11px; letter-spacing: -.005em; }
.control-help { font-size: 9px; line-height: 1.7; }
.ratio-grid { gap: 7px; margin-top: 12px; }
.ratio-button { min-height: 35px; }
/* Crop changes are a deliberate draft, separate from the committed edit history. */
.crop-commit-card { display: grid; gap: 13px; margin: 12px; padding: 13px; border: 1px solid #303640; border-radius: 10px; background: linear-gradient(145deg, #1d2027, #181a20); transition: border-color .16s ease, background .16s ease; }
.crop-commit-card.is-dirty { border-color: #686093; background: linear-gradient(145deg, rgba(108,99,168,.18), #1a1b22 78%); }
.crop-commit-head { display: flex; align-items: flex-start; gap: 10px; }
.crop-state-indicator { display: block; width: 8px; height: 8px; flex: 0 0 auto; margin-top: 5px; border: 1px solid #65706e; border-radius: 50%; background: #8a9d96; box-shadow: 0 0 0 3px rgba(138,157,150,.08); }
.crop-commit-card.is-dirty .crop-state-indicator { border-color: #a9a0ed; background: #a39af0; box-shadow: 0 0 0 3px rgba(163,154,240,.12); }
.crop-commit-head > div { display: grid; gap: 4px; min-width: 0; }
.crop-commit-head strong { color: #e5e5ed; font-size: 10px; font-weight: 680; }
.crop-commit-head div span { color: #888e9b; font-size: 9px; line-height: 1.5; }
.crop-commit-actions { display: grid; grid-template-columns: .78fr 1.22fr; gap: 7px; }
.crop-commit-actions .button { min-width: 0; padding: 0 8px; }
.crop-commit-actions .button-primary { border-color: #a8a0f7; background: #aaa3f5; }
.crop-commit-actions .button:disabled { opacity: .32; }
.crop-metric-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #272a32; }
.crop-metric-row:last-of-type { border-bottom: 0; }
.crop-metric-row > span { color: #8e94a0; font-size: 9px; }
.crop-metric-row output { color: #d0caff; font-size: 10px; font-weight: 640; font-variant-numeric: tabular-nums; text-align: right; }
.crop-metric-row:first-of-type output { color: #ededf4; }
/* Purpose-built export controls with progressive disclosure. */
.output-summary-card { display: grid; gap: 13px; margin: 12px; padding: 14px; border: 1px solid #39354e; border-radius: 11px; background: linear-gradient(145deg, rgba(112,103,171,.16), rgba(35,34,46,.52) 60%, #191a20); }
.output-summary-head { display: flex; align-items: center; gap: 10px; }
.output-summary-icon { display: grid; width: 34px; height: 34px; place-items: center; flex: 0 0 auto; border: 1px solid #484260; border-radius: 9px; background: #28253a; color: #beb7ff; }
.output-summary-icon .icon { width: 16px; height: 16px; }
.output-summary-head > div { display: grid; gap: 4px; }
.output-summary-head strong { color: #e5e4ef; font-size: 11px; font-weight: 660; }
.output-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 13px; padding-top: 12px; border-top: 1px solid rgba(153,145,209,.16); }
.output-summary-grid > div { display: grid; min-width: 0; gap: 5px; }
.output-summary-grid > div:first-child { grid-column: span 2; }
.output-summary-grid span { color: #89859f; font-size: 8px; font-weight: 690; letter-spacing: .07em; text-transform: uppercase; }
.output-summary-grid strong { overflow: hidden; color: #e7e5f5; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.output-summary-grid > div:not(:first-child) strong { font-size: 10px; }
.output-summary-card > p { margin: 0; color: #888d9b; font-size: 8px; line-height: 1.65; }
.filename-field { display: flex; min-width: 0; align-items: center; overflow: hidden; border: 1px solid #383c46; border-radius: 7px; background: #1a1c22; }
.filename-field:focus-within { border-color: #8880e5; box-shadow: 0 0 0 3px rgba(157,150,255,.09); }
.filename-field .form-input { min-width: 0; border: 0; background: transparent; box-shadow: none; }
.filename-field > span { flex: 0 0 auto; padding-right: 10px; color: #828896; font-size: 10px; }
.output-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.output-mini-badge { padding: 3px 5px; border: 1px solid #3d3f4b; border-radius: 4px; color: #9a9eaa; font-size: 7px; font-weight: 750; letter-spacing: .12em; }
.output-preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 11px 0 15px; }
.output-preset { display: flex; min-width: 0; min-height: 52px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 8px 9px; border: 1px solid #30343d; border-radius: 8px; background: #191b21; color: #b8bdc7; text-align: left; cursor: pointer; transition: border-color .14s ease, background .14s ease, color .14s ease; }
.output-preset:hover { border-color: #54576a; background: #20222a; }
.output-preset.is-active { border-color: #7168c2; background: #27253b; color: #e4e1ff; }
.output-preset strong { font-size: 9px; font-weight: 690; }
.output-preset span { color: #858b98; font-size: 8px; }
.output-preset.is-active span { color: #aaa5d8; }
.advanced-options { margin: 0 12px 13px; overflow: visible; border: 1px solid #30333c; border-radius: 9px; background: #181a20; }
.advanced-options > summary { display: flex; min-height: 43px; align-items: center; gap: 8px; padding: 0 11px; color: #c1c4ce; list-style: none; cursor: pointer; }
.advanced-options > summary::-webkit-details-marker { display: none; }
.advanced-options > summary > span:first-child { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 650; }
.advanced-options > summary .icon { width: 13px; height: 13px; color: #9c97cf; }
.advanced-options > summary > .icon:last-child { margin-left: auto; transition: transform .16s ease; }
.advanced-options[open] > summary > .icon:last-child { transform: rotate(180deg); }
.advanced-summary-note { margin-left: auto; color: #6f7581; font-size: 8px; }
.advanced-options[open] .advanced-summary-note { display: none; }
.advanced-options-body { padding: 13px 12px 14px; border-top: 1px solid #2b2e36; }
.advanced-options-body .control-row { margin-top: 13px; }
.advanced-options-body .control-value { max-width: 155px; }
.output-summary-card ~ .control-section .action-stack { margin-top: 16px; }
.resize-preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 11px; }
.resize-preset { display: flex; min-width: 0; min-height: 49px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 7px 8px; border: 1px solid #30343d; border-radius: 7px; background: #191b21; color: #b9bdc6; cursor: pointer; transition: border-color .14s ease, background .14s ease; }
.resize-preset strong { font-size: 9px; font-weight: 680; white-space: nowrap; }
.resize-preset span { color: #777e8b; font-size: 8px; }
.resize-preset:hover { border-color: #555969; background: #20222a; }
.resize-preset.is-active { border-color: #8d765d; background: #2a241f; color: #f0c59d; }
.resize-preset.is-active span { color: #be9b7b; }
/* Clear hierarchy for the decision dialog and keyboard focus states. */
.decision-backdrop[hidden] { display: none; }
.decision-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; background: rgba(5,6,9,.74); backdrop-filter: blur(7px); }
.decision-dialog { width: min(100%, 430px); padding: 22px; border: 1px solid #41414f; border-radius: 14px; background: linear-gradient(145deg, #22232c, #17181e); box-shadow: 0 28px 85px rgba(0,0,0,.5); }
.decision-icon { display: grid; width: 41px; height: 41px; place-items: center; margin-bottom: 18px; border: 1px solid #4a4565; border-radius: 11px; background: #2a273c; color: #b4adff; }
.decision-dialog h2 { margin: 0 0 9px; color: #f0f0f5; font-size: 19px; font-weight: 650; letter-spacing: -.035em; }
.decision-dialog p { margin: 0; color: #9ca1ad; font-size: 11px; line-height: 1.7; }
.decision-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 23px; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, canvas:focus-visible { outline: 2px solid #aaa3fa; outline-offset: 3px; }
@media (max-width: 850px) {
  .canvas-stage-wrap { --canvas-inset: 26px; }
}
@media (max-width: 620px) {
  .canvas-stage-wrap { --canvas-inset: 16px; }
  .output-summary-grid { gap: 8px; }
  .output-summary-card { margin: 10px; }
  .crop-commit-card { margin: 10px; }
  .advanced-options { margin: 0 10px 12px; }
  .decision-dialog { padding: 18px; }
  .decision-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .decision-actions [data-crop-decision="apply"] { grid-column: span 2; grid-row: 1; }
}

/* UX pass — more breathing room, stronger panel hierarchy, and clearer secondary tools. */
.workspace-frame { border-color: #30333d; box-shadow: 0 24px 75px rgba(0,0,0,.2); }
.canvas-stage-wrap {
  --canvas-inset: clamp(34px, 4.2vw, 54px);
  background-color: #111318;
  background-image: linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%), linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%);
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.012);
}
.canvas-stage-wrap::after { position: absolute; inset: 12px; z-index: 0; border: 1px solid rgba(255,255,255,.035); border-radius: 8px; content: ""; pointer-events: none; }
.canvas-stage-wrap > .preview-canvas, .canvas-stage-wrap > .preview-overlay, .canvas-stage-wrap > .empty-upload, .canvas-stage-wrap > .canvas-loading { z-index: 1; }
.canvas-stage-wrap > .preview-overlay { z-index: 3; }
.preview-canvas { filter: drop-shadow(0 12px 30px rgba(0,0,0,.13)); }
.canvas-toolbar { background: #17191f; }
.canvas-statusbar { background: #14161b; }
.inspector-panel { border-left-color: #2d3039; }
.inspector-footnote { border-top-color: #2b2e36; }
.crop-commit-card { margin: 14px 13px 8px; padding: 14px; }
.crop-commit-card.is-dirty .crop-commit-actions .button-primary { box-shadow: 0 5px 16px rgba(130,120,225,.14); }
.output-summary-card { margin: 14px 13px 10px; padding: 15px; }
.output-summary-grid { grid-template-columns: 1fr 1fr; }
.output-summary-grid > div:first-child { grid-column: 1 / -1; }
.output-summary-grid > div:first-child strong { font-size: 14px; }
.inspector-content .control-section { padding: 19px 17px; }
.inspector-content .control-section + .control-section { border-top-color: #242730; }
.output-summary-card + .control-section { border-top: 1px solid #252832; }
.advanced-options { margin-right: 13px; margin-left: 13px; }
.advanced-options-body { padding: 14px; }
.resize-workspace { gap: 18px; grid-template-columns: minmax(0, 1fr) minmax(310px, 350px); }
.resize-preview-stage { padding: clamp(34px, 4vw, 52px); background-color: #111318; background-image: linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%), linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%); background-position: 0 0, 8px 8px; background-size: 16px 16px; }
.resize-settings-panel .settings-body { scrollbar-color: #3e414c transparent; scrollbar-width: thin; }
.resize-advanced-options { margin-top: 1px; margin-bottom: 8px; }
.resize-source-section { margin-top: 0; }
.detail-shortcut-card { display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: start; gap: 10px; margin-top: 17px; padding: 12px; border: 1px solid #34313f; border-radius: 9px; background: linear-gradient(135deg, rgba(157,150,255,.075), #191a20 65%); }
.detail-shortcut-icon { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #45405d; border-radius: 8px; background: #252232; color: #b7b0ff; }
.detail-shortcut-icon .icon { width: 15px; height: 15px; }
.detail-shortcut-card > div { min-width: 0; }
.detail-shortcut-card strong { display: block; color: #d8d7e4; font-size: 10px; font-weight: 660; }
.detail-shortcut-card p { margin: 5px 0 10px; color: #8a8f9c; font-size: 9px; line-height: 1.65; }
.detail-shortcut-card .button .icon { width: 12px; height: 12px; }
.output-section-heading + .output-preset-grid { margin-top: 14px; }
.output-preset { min-height: 57px; padding: 9px 11px; }
.resize-preset { min-height: 53px; }
.filename-field { min-height: 39px; }
.decision-dialog { width: min(100%, 450px); }
.decision-actions { gap: 8px; }
@media (min-width: 1500px) {
  .workspace-frame { height: min(76vh, 860px); }
  .inspector-panel { width: 330px; min-width: 330px; }
  .canvas-stage-wrap { --canvas-inset: clamp(42px, 4vw, 62px); }
}
@media (max-width: 1280px) {
  .resize-workspace { grid-template-columns: minmax(0, 1fr) minmax(290px, 320px); }
  .canvas-stage-wrap { --canvas-inset: 32px; }
}
@media (max-width: 850px) {
  .resize-workspace { grid-template-columns: minmax(0,1fr); }
  .resize-settings-panel { min-height: 620px; }
  .resize-preview-stage { min-height: 430px; }
}
@media (max-width: 620px) {
  .canvas-stage-wrap { --canvas-inset: 21px; }
  .resize-preview-stage { min-height: 340px; padding: 22px; }
  .output-summary-card { margin: 10px; }
  .inspector-content .control-section { padding: 16px 14px; }
  .advanced-options { margin-right: 10px; margin-left: 10px; }
  .detail-shortcut-card { grid-template-columns: 26px minmax(0,1fr); padding: 10px; }
}

/* Optional first-run samples: visible shortcuts, not preloaded demo content. */
.sample-quick-start { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-top:17px; }
.sample-quick-label { color:#9298a4; font-size:10px; margin-right:2px; }
.sample-quick-button { border:1px solid #343943; border-radius:999px; padding:7px 11px; background:#181b21; color:#c9cdd5; font-family:inherit; font-size:10px; font-weight:600; line-height:1.2; cursor:pointer; transition:background .15s,border-color .15s,color .15s; }
.sample-quick-button:hover { background:#20252b; border-color:#52665f; color:#9ce7ca; }
.sample-quick-button:focus-visible,.sample-inline-link:focus-visible { outline:2px solid #83e4c4; outline-offset:3px; }
.sample-inline-link { border:0; margin-top:10px; padding:3px 5px; background:transparent; color:#91d9bd; font-family:inherit; font-size:10px; font-weight:600; line-height:1.4; cursor:pointer; }
.sample-inline-link:hover { color:#c0f4e0; text-decoration:underline; text-underline-offset:3px; }
