/* Tovin customer experience. Kept separate from the merchant editor. */
:root {
  --purple: #17191c;
  --purple-dark: #000;
  --tint: #f0f1f3;
  --ink: #1b1d21;
  --muted: #696f78;
  --line: #e0e3e7;
  --surface: #f5f6f8;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
html { scroll-padding-top: 24px; }
body { background: var(--surface); line-height: 1.5; }
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, a:focus-visible { outline: 2px solid #17191c; outline-offset: 4px; }
.skip-link { position: fixed; left: 18px; top: -100px; z-index: 60; padding: 12px 18px; background: #17191c; color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.topbar { height: 92px; padding: 0 max(28px, calc((100vw - 1280px) / 2)); gap: 24px; border-bottom: 1px solid var(--line); }
.brand-avatar { width: 52px; height: 52px; border-radius: 9px; }
.wordmark { gap: 14px; font-weight: 600; font-size: 22px; letter-spacing: -.02em; min-width: 0; }
.wordmark > span { min-width: 0; overflow-wrap: anywhere; }
.wordmark small { font-size: 12px; letter-spacing: .14em; font-weight: 400; margin-top: 3px; color: #737982; }
.header-actions { gap: 24px; }
.header-actions > span { color: #646b74; font-size: 14px; }
.lang { padding: 10px 17px; min-height: 44px; border-radius: 24px; border-color: #d5d9df; background: #fff; color: var(--ink); }
.lang:hover { border-color: var(--ink); background: var(--surface); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 26px; max-width: 1280px; margin: 36px auto 56px; background: transparent; border: 0; border-radius: 0; box-shadow: none; min-height: 0; overflow: visible; align-items: start; }
.main-panel { padding: 34px 38px 28px; background: #fff; border: 1px solid var(--line); border-radius: 16px; min-width: 0; box-shadow: 0 4px 24px #151c2804; }
.sidebar { background: transparent; border: 0; padding: 0; align-self: start; min-width: 0; }
.sidebar-card { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.side-top { padding-bottom: 0; border: 0; }
.eyebrow { font-size: 12px; letter-spacing: .12em; font-weight: 600; color: #737982; }
.side-top h2 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin: 8px 0; }
.side-top p { font-size: 14px; line-height: 1.65; }
.price-summary { margin: 22px 0 8px; padding: 20px; background: #1b1d21; color: #fff; border: 0; border-radius: 10px; }
.price-summary span { font-size: 13px; color: #c8cdd4; }
.price-summary strong { font-size: 24px; font-weight: 550; line-height: 1.3; margin: 10px 0; overflow-wrap: anywhere; }
.price-summary small { font-size: 12px; line-height: 1.6; color: #c8cdd4; }
.summary-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.summary-heading { font-size: 13px; font-weight: 500; color: #737982; margin-bottom: 7px; }
.summary-heading button { color: #22262c; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 7px 0 7px 10px; min-height: 44px; }
.summary-value { font-size: 15px; line-height: 1.65; color: var(--ink); }
.summary-value.empty { font-size: 14px; color: #828892; }
.side-note { margin-top: 20px; gap: 9px; }
.side-note p { font-size: 12px; line-height: 1.8; }
.note-icon { border-color: #aeb5bd; color: #717880; }
.mini-table { font-size: 13px; margin-top: 8px; }
.mini-table th, .mini-table td { padding: 8px 3px; }
.mini-table td:first-child { font-weight: 600; }
#progress { padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); gap: 8px; }
.progress-step { gap: 9px; font-size: 12px; color: #737982; }
.progress-step:before { height: 1px; top: 15px; left: 36px; right: 0; background: #dde1e6; }
.progress-step .number { width: 32px; height: 32px; font-size: 13px; font-weight: 500; background: #fff; border-color: #d6dbe1; }
.progress-step.active { color: #17191c; font-weight: 600; }
.progress-step.active .number { box-shadow: none; background: #17191c; border-color: #17191c; }
.progress-step.done .number { background: #f0f2f4; border-color: #f0f2f4; color: #17191c; }
.progress-step.done:before { background: #aeb5bd; }
.step-label { font-size: 12px; letter-spacing: .16em; color: #737982; font-weight: 500; }
.panel-head h1 { font-size: clamp(28px, 2.7vw, 36px); font-weight: 600; letter-spacing: -.03em; line-height: 1.35; margin: 10px 0 12px; }
.panel-head p { font-size: 15px; max-width: 650px; line-height: 1.75; margin-bottom: 26px; }
.options { gap: 14px; }
.options.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.type-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.option-entry { display: flex; flex-direction: column; border: 1px solid #dce1e6; border-radius: 11px; background: #fff; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.option-entry:hover { border-color: #8f98a5; box-shadow: 0 3px 14px #14191f06; }
.option-entry.is-selected { border-color: #17191c; box-shadow: 0 0 0 1px #17191c; background: #f8f9fa; }
.option-entry .option, .option-entry.has-description .option,
.option-entry.has-photo .option, .grid .option { display: flex; align-items: flex-start; gap: 13px; flex: 1; width: 100%; padding: 20px; border: 0; border-radius: 0; background: transparent; height: auto; min-height: 110px; }
.option:hover, .option.selected { background: transparent; border: 0; }
.option .copy { min-width: 0; padding-right: 0; }
.option strong { font-size: 17px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.option small { color: #69717c; font-size: 14px; line-height: 1.65; margin-top: 7px; }
.option .badge { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 7px; font-size: 14px; color: #454d58; background: #f0f2f5; margin-top: 1px; }
.option.selected .badge { background: #e7ebef; color: #17191c; }
.radio { margin: 3px 0 0 auto; width: 20px; height: 20px; border: 1px solid #b9c0ca; }
.selected .radio { background: #17191c; border-color: #17191c; }
.selected .radio:after { content: "✓"; width: auto; height: auto; border-radius: 0; color: #fff; background: none; font: 12px/1 sans-serif; }
.option-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 0 20px 13px; margin-top: auto; min-height: 38px; }
.lens-info-button, .option-entry .photo-zoom, .option-entry .photo-retry { position: static; transform: none; width: auto; height: auto; min-height: 44px; border: 0; border-radius: 4px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; background: transparent; color: #5c6570; font: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0; }
.lens-info-button > span:first-child { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1px solid #a9b1bc; border-radius: 50%; font: 12px/1 Georgia,serif; }
.lens-info-button:hover, .photo-zoom:hover, .photo-retry:hover { color: #17191c; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.type-options .option { flex-direction: column; padding: 22px 20px 18px; min-height: 215px; gap: 18px; }
.type-options .badge { flex-basis: auto; width: 46px; height: 46px; font-size: 18px; }
.type-options .radio { position: absolute; top: 23px; right: 20px; margin: 0; }
.type-options .copy { width: 100%; }
.type-options .option-photo { width: 100%; height: 125px; flex: 0 0 125px; }
.option-entry.has-photo .option { gap: 15px; }
.option-photo { flex: 0 0 84px; width: 84px; height: 94px; background: #f3f5f7; border: 1px solid #e4e8ed; border-radius: 8px; }
.option-photo img { object-fit: contain; }
.option-entry[data-option-group="model"] .option-photo { flex-basis: 132px; width: 132px; height: 100px; }
.option-photo .image-placeholder { font-size: 12px; color: #69717c; }
.option-entry.unavailable { background: #f7f8fa; }
.option-entry.unavailable .option { opacity: 1; color: #69717c; }
.option-entry.unavailable .radio { background: #f0f2f5; }
.tint-picker { margin-top: 30px; padding-top: 6px; border-color: var(--line); }
.shade-options { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.shade-options .option { flex-direction: column; padding: 16px; gap: 14px; min-height: 200px; }
.shade-options .option-photo { width: 100%; height: 116px; flex: 0 0 116px; }
.shade-options .radio { position: absolute; right: 18px; top: 20px; margin: 0; background: #fff; }
.shade-options .selected .radio { background: #17191c; }
.shade-options .option .copy { width: 100%; }
.shade-options .option strong { font-size: 16px; }
.shade-options .option-tools { padding: 0 16px 12px; gap: 10px; }
.tint-meta { font-variant-numeric: tabular-nums; }
.subheading { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin: 28px 0 14px; }
.description-hint { font-size: 14px; line-height: 1.7; color: #737b86; margin-bottom: 18px; }
.pill-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pill-entry { display: flex; align-items: stretch; min-width: 0; border: 1px solid #dce1e6; border-radius: 9px; background: #fff; overflow: hidden; }
.pill-entry.is-selected { border-color: #17191c; box-shadow: 0 0 0 1px #17191c; background: #f5f7f9; }
.pill-entry .pill, .pill-entry.has-description .pill { flex: 1; min-width: 0; min-height: 56px; padding: 14px; border: 0; border-radius: 0; color: #262b33; font-size: 15px; text-align: left; background: transparent; overflow-wrap: anywhere; }
.pill-entry .lens-info-button { flex: 0 0 auto; width: auto; height: auto; min-width: 44px; padding: 8px 12px; min-height: 44px; font-size: 13px; border-left: 1px solid #e6e9ed; border-radius: 0; }
.index-options { grid-template-columns: repeat(3,minmax(0,1fr)); }
.index-options .pill-entry .lens-info-button > span:last-child { display: none; }
.fields { gap: 18px; margin-top: 22px; }
.fields.two { gap: 18px; }
.field > span, .field > label { font-size: 14px; font-weight: 550; line-height: 1.5; }
.field input, .field select, .field textarea, input.text-input { padding: 13px 14px; min-height: 48px; border-color: #d4dae2; border-radius: 8px; font-size: 16px; }
.field input::placeholder, .field textarea::placeholder { color: #89919d; font-size: 14px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #929dab; }
.field textarea { min-height: 118px; }
.check { margin: 16px 0; padding: 10px 0; min-height: 44px; align-items: flex-start; font-size: 14px; color: #454e59; line-height: 1.7; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: #17191c; }
.info { background: #f2f4f6; border: 1px solid #e7ebef; border-radius: 9px; padding: 16px 18px; font-size: 14px; line-height: 1.75; color: #56616d; }
.rx-wrap { margin: 24px 0 18px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.rx-table { border-color: #dbe1e7; border-radius: 10px; }
.rx-table th { background: #f1f4f7; font-size: 14px; padding: 14px 8px; color: #636f7e; }
.rx-table th:first-child { width: 100px; }
.rx-table td { padding: 12px 8px; border-color: #e3e8ee; }
.rx-table td:first-child { background: #f7f9fa; font-size: 15px; }
.rx-table td:first-child small { color: #78818d; }
.rx-table input { min-height: 48px; border-color: #d4dce5; border-radius: 7px; font-size: 16px; padding: 10px 4px; font-variant-numeric: tabular-nums; }
.rx-table input:disabled { background: #eff2f5; border-color: #e7ebef; }
.prism-grid { background: #f4f6f8; padding: 22px; border-radius: 10px; gap: 22px; }
details { background: #fff; border-color: #e0e5eb; border-radius: 8px; padding: 14px 16px; }
summary { font-size: 14px; line-height: 1.6; color: #485361; }
details p { font-size: 14px; line-height: 1.8; }
.empty-block { border: 1px solid #e0e5eb; background: #f6f8fa; padding: 40px 22px; color: #65717f; border-radius: 10px; }
.empty-block strong { display: inline-block; margin-bottom: 8px; color: var(--ink); font-size: 18px; font-weight: 550; }
.actions { border-color: var(--line); margin-top: 32px; padding-top: 24px; align-items: center; }
.action-right { gap: 18px; }
.action-right > span { font-size: 13px; }
.button { border-radius: 8px; padding: 13px 24px; min-height: 48px; font-size: 15px; font-weight: 600; }
.primary { background: #17191c; border-color: #17191c; color: #fff; box-shadow: none; }
.primary:hover { background: #000; }
.secondary { border-color: #d4dae2; color: #39414c; background: #fff; }
.secondary:hover { border-color: #17191c; background: #f7f8fa; }
.privacy { margin-top: 20px; font-size: 12px; line-height: 1.8; color: #7f8895; }
.help { color: #737d8a; font-size: 13px; line-height: 1.8; }
.review { background: #f8f9fb; padding: 12px 22px; border-color: #dfe5ec; border-radius: 10px; }
.review-row { grid-template-columns: 104px minmax(0,1fr); gap: 22px; padding: 17px 0; font-size: 15px; line-height: 1.85; border-color: #e0e6ed; }
.review-label { color: #6a7583; font-size: 14px; }
.review-row > span:last-child { font-weight: 500; }
.success-banner { background: #f0f4f2; border: 1px solid #dce5e0; color: #243d31; padding: 20px; gap: 14px; border-radius: 10px; }
.success-banner > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #718779; border-radius: 50%; flex: 0 0 32px; }
.success-banner strong { font-size: 17px; font-weight: 600; }
.success-banner p { font-size: 14px; color: #51665a; }
.export-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 26px; }
.export-actions .button { min-height: 50px; }
.preview-text { background: #f7f9fb; border-color: #e2e7ed; color: #46515e; padding: 20px; font-family: "Segoe UI","Microsoft YaHei",sans-serif; font-size: 14px; line-height: 1.85; }
.selected-photos { gap: 14px; }
.selected-photo { border-color: #e0e5eb; border-radius: 9px; background: #fff; padding: 14px; }
.selected-photo .option-photo { background: #f3f5f7; border-color: #e5e9ee; }
.selected-photo figcaption strong { font-size: 14px; color: #39424e; font-weight: 550; }
.selected-photo figcaption span { font-size: 13px; color: #66717f; }
.selected-photo figcaption a { font-size: 13px; color: #66717f; text-decoration: underline; text-underline-offset: 3px; }
.sidebar .selected-photos { margin: 16px 0 0; }
.sidebar .selected-photo { display: grid; grid-template-columns: 60px minmax(0,1fr); gap: 0 11px; border: 0; padding: 0 0 12px; margin: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.sidebar .selected-photo .option-photo { width: 60px; height: 68px; margin: 0; grid-row: 1 / span 2; }
.sidebar .selected-photo figcaption strong, .sidebar .selected-photo figcaption span { font-size: 12px; line-height: 1.7; }
.sidebar .selected-photo figcaption a { display: none; }
.sidebar .selected-photo .photo-zoom, .sidebar .selected-photo .photo-retry { justify-self: start; margin-top: 4px; min-height: 44px; border: 0; font-size: 12px; color: #5c6570; padding: 4px 0; }
.lens-dialog, .photo-dialog { padding: 30px; border-radius: 14px; border-color: #e0e5eb; box-shadow: 0 24px 100px #11192135; color: var(--ink); }
.lens-dialog::backdrop, .photo-dialog::backdrop { background: #111820a8; backdrop-filter: blur(3px); }
.dialog-top { font-size: 12px; color: #737c88; letter-spacing: .1em; }
.dialog-close { width: 44px; height: 44px; min-width: 44px; color: #4d5764; background: #f0f3f6; }
.lens-dialog h2, .photo-dialog h2 { font-size: 25px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.dialog-summary { font-size: 16px; color: #65717e; border-color: var(--line); }
.dialog-body { font-size: 16px; line-height: 1.9; }
.lens-dialog-media { margin: 18px 0 24px; }
.lens-dialog-media .option-photo { display: block; width: 100%; height: 220px; background: #f4f6f8; }
.lens-dialog-media .option-photo img { width: 100%; height: 100%; object-fit: contain; }
.lens-dialog-media p { font-size: 13px; line-height: 1.7; color: #64717e; margin: 10px 0 0; }
.lens-dialog-media .option-tools { padding: 0; margin-top: 4px; }
.lens-dialog-media .photo-zoom, .lens-dialog-media .photo-retry { min-height: 44px; color: #4d5764; }
.source-link { color: #343e4b; text-underline-offset: 4px; }
.photo-dialog img { background: #f4f6f8; border: 1px solid #e5e9ee; }
.photo-dialog p { color: #64717e; font-size: 14px; }
.lens-tooltip { background: #20252d; color: #fff; border-radius: 8px; line-height: 1.75; box-shadow: 0 8px 26px #131b2433; }
.online-notice { max-width: 1280px; border-color: #d9e0e8; background: #eef2f6; color: #586574; border-radius: 10px; margin-top: 24px; }
.online-notice button { color: #394554; border-color: #bfcbd8; background: #fff; min-height: 44px; }
#error { border-color: #e4bdbb; background: #fff6f5; color: #943f3a; border-radius: 9px; }
#toast { background: #242b35; color: #fff; border-radius: 8px; z-index: 50; line-height: 1.6; }
@media (min-width: 1051px) and (min-height: 870px) { .sidebar { position: sticky; top: 24px; } }
@media (max-width: 1340px) { .workspace { margin: 30px 28px 50px; } .online-notice { margin-left: 28px; margin-right: 28px; } }
@media (max-width: 1100px) { .workspace { grid-template-columns: minmax(0,1fr) 276px; gap: 20px; } .main-panel { padding: 28px; } .sidebar-card { padding: 22px 20px; } .type-options { grid-template-columns: 1fr; } .type-options .option { flex-direction: row; min-height: 126px; padding: 22px; gap: 16px; } .type-options .copy { padding-right: 26px; } .type-options .radio { top: 24px; } .type-options .badge { flex: 0 0 42px; width: 42px; height: 42px; } .type-options .option-photo { width: 84px; height: 94px; flex: 0 0 84px; } .shade-options { grid-template-columns: repeat(2,minmax(0,1fr)) !important; } .options.grid { grid-template-columns: 1fr; } }
@media (max-width: 880px) { .workspace { grid-template-columns: minmax(0,1fr); max-width: 720px; margin: 26px auto 40px; padding: 0 20px; } .sidebar { position: static; order: 1; } .sidebar-card { padding: 26px; } .options.grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .type-options { grid-template-columns: repeat(3,minmax(0,1fr)); } .type-options .option { flex-direction: column; min-height: 212px; padding: 20px; } .type-options .copy { padding-right: 0; } .type-options .badge { flex-basis: auto; } .type-options .radio { top: 22px; right: 16px; } .sidebar .selected-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; } .price-summary { margin-top: 18px; } }
@media (max-width: 640px) {
  html { scroll-padding-top: 16px; }
  .topbar { height: 80px; padding: 0 18px; gap: 14px; }
  .brand-avatar { width: 44px; height: 44px; border-radius: 7px; }
  .wordmark { gap: 11px; font-size: 19px; }
  .wordmark small { font-size: 11px; letter-spacing: .1em; }
  .header-actions > span { display: none; }
  .header-actions { flex-shrink: 0; }
  .lang { font-size: 13px; padding: 8px 13px; min-height: 44px; }
  .workspace { display: flex; flex-direction: column; gap: 18px; padding: 0; margin: 16px 12px 110px; border-radius: 0; }
  .main-panel { order: 0; width: 100%; padding: 22px 18px 24px; border-radius: 12px; }
  .sidebar { width: 100%; padding: 0; border: 0; }
  .sidebar-card { padding: 24px 20px; border-radius: 12px; }
  .side-top h2 { font-size: 21px; }
  #progress { gap: 6px; padding-bottom: 22px; margin-bottom: 22px; }
  .progress-step { align-items: flex-start; }
  .progress-step .number { width: 28px; height: 28px; font-size: 12px; }
  .progress-step:before { top: 13px; left: 34px; right: 0; }
  .progress-label { display: none; }
  .step-label { font-size: 11px; }
  .panel-head h1 { font-size: 27px; letter-spacing: -.03em; line-height: 1.4; margin-top: 8px; }
  .panel-head p { font-size: 14px; line-height: 1.75; margin-bottom: 22px; }
  .type-options, .options.grid { grid-template-columns: 1fr; }
  .options { gap: 12px; }
  .option-entry .option, .option-entry.has-description .option, .option-entry.has-photo .option, .grid .option { padding: 18px; min-height: 104px; gap: 13px; }
  .type-options .option { flex-direction: row; min-height: 126px; padding: 20px 18px; }
  .type-options .copy { padding-right: 25px; }
  .type-options .badge { flex: 0 0 39px; width: 39px; height: 39px; font-size: 15px; }
  .type-options .radio { top: 23px; right: 18px; }
  .option strong { font-size: 16px; line-height: 1.55; }
  .option small { font-size: 14px; }
  .option-photo { width: 72px; height: 84px; flex-basis: 72px; }
  .option-entry[data-option-group="model"] .option-photo { flex-basis: 82px; width: 82px; height: 92px; }
  .option-tools { padding: 0 18px 8px; gap: 16px; }
  .lens-info-button, .option-entry .photo-zoom, .option-entry .photo-retry { min-height: 44px; font-size: 14px; }
  .shade-options { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 11px; }
  .shade-options .option-entry .option { flex-direction: column; padding: 13px; gap: 12px; min-height: 218px; }
  .shade-options .option-photo { width: 100%; height: 100px; flex: 0 0 100px; }
  .shade-options .radio { top: 16px; right: 16px; }
  .shade-options .option strong { font-size: 15px; }
  .shade-options .option small { font-size: 13px; }
  .shade-options .option-tools { padding: 0 13px 9px; gap: 6px; }
  .shade-options .lens-info-button, .shade-options .photo-zoom { font-size: 13px; }
  .subheading { font-size: 16px; margin-top: 26px; }
  .description-hint { font-size: 14px; }
  .pill-options { grid-template-columns: 1fr; gap: 10px; }
  .index-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pill-entry .pill { min-height: 52px; padding: 13px; font-size: 14px; }
  .pill-entry .lens-info-button { padding: 8px 12px; }
  .fields.two { grid-template-columns: 1fr; gap: 18px; }
  .field input, .field select, .field textarea { min-height: 48px; font-size: 16px; }
  .rx-table th:first-child { width: 54px; }
  .rx-table th { padding: 13px 3px; font-size: 12px; }
  .rx-table td { padding: 11px 3px; }
  .rx-table td:first-child { font-size: 13px; }
  .rx-table td:first-child small { font-size: 11px; }
  .rx-table input { padding: 10px 2px; font-size: 16px; border-radius: 5px; }
  .prism-grid { grid-template-columns: 1fr; padding: 18px; }
  .review { padding: 8px 15px; }
  .review-row { grid-template-columns: 74px minmax(0,1fr); gap: 12px; padding: 15px 0; font-size: 14px; line-height: 1.8; }
  .review-label { font-size: 13px; }
  .actions { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); background: #ffffffed; backdrop-filter: blur(12px); border-top: 1px solid #d9e0e7; z-index: 25; box-shadow: 0 -4px 22px #18223108; gap: 12px; }
  .action-right { flex: 1; margin-left: 0; }
  .action-right > span { display: none; }
  .actions .button { min-height: 48px; font-size: 15px; padding: 12px 18px; }
  .actions .primary { width: 100%; }
  .actions .secondary { flex: 0 0 auto; padding: 12px 16px; }
  body:has(#content input:not([type="checkbox"]):focus, #content textarea:focus, #content select:focus) .actions { position: static; margin-top: 26px; padding: 22px 0 0; box-shadow: none; backdrop-filter: none; background: transparent; }
  body[data-generated="true"] .actions { position: static; background: transparent; box-shadow: none; backdrop-filter: none; margin-top: 26px; padding: 22px 0 0; }
  body[data-generated="true"] .action-right { display: none; }
  .privacy { font-size: 12px; line-height: 1.8; margin-top: 18px; }
  .export-actions { grid-template-columns: 1fr; gap: 10px; }
  .success-banner { align-items: flex-start; padding: 17px; }
  .success-banner strong { font-size: 16px; }
  .sidebar .selected-photos { display: block; }
  .selected-photos { grid-template-columns: 1fr; }
  .photo-dialog, .lens-dialog { padding: 22px; max-width: calc(100vw - 24px); border-radius: 12px; max-height: calc(100dvh - 28px); }
  .photo-dialog img { height: 42vh; }
  .dialog-top { gap: 14px; }
  .photo-dialog h2, .lens-dialog h2 { font-size: 22px; }
  .dialog-body { font-size: 16px; }
  .online-notice { margin: 14px 12px 0; padding: 14px; border-radius: 9px; font-size: 14px; }
  #toast { bottom: calc(90px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 28px); padding: 12px 16px; }
}
@media (max-width: 360px) { .main-panel { padding: 20px 14px; } .wordmark { font-size: 17px; gap: 8px; } .topbar { padding: 0 14px; } .shade-options { grid-template-columns: 1fr !important; } .shade-options .option-entry .option { flex-direction: row; min-height: 125px; } .shade-options .option-photo { width: 70px; height: 88px; flex: 0 0 70px; } .shade-options .option .copy { padding-right: 18px; } .rx-table { min-width: 320px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  body { background: #fff; }
  .skip-link, .topbar, .sidebar, #progress, .actions, .privacy, .export-actions, #toast, .success-banner, .online-notice, .option-tools, .lens-dialog, .photo-dialog { display: none !important; }
  .workspace { display: block; margin: 0; padding: 0; }
  .main-panel { padding: 0; border: 0; box-shadow: none; }
  .panel-head h1 { font-size: 24px; }
  .review { background: #fff; border: 0; padding: 0; }
  .review-row { break-inside: avoid; }
  .selected-photos { display: block; }
  .selected-photo { break-inside: avoid; margin-bottom: 14px; }
  .selected-photo .option-photo { width: 170px; height: 130px; }
}
