:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #262626;
  background: #fff;
  font-synthesis: none;
  --ink: #262626;
  --muted: #7c7c7c;
  --line: #e8e8e8;
  --surface: #f9f9f9;
  --accent: #c66440;
  --sidebar: 214px;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .4; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid #c66440; outline-offset: 4px; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex-shrink: 0; }
[hidden] { display: none !important; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #f8f8f8; border-right: 1px solid var(--line); padding: 25px 16px 0; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 9px 30px; font-size: 20px; font-weight: 650; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; background: var(--ink); color: white; border-radius: 7px; }
.brand-mark svg { width: 21px; height: 21px; stroke-width: 1.8; }
.brand-en { font-size: 13px; font-weight: 450; color: #727272; margin-left: 3px; letter-spacing: -.2px; }
.nav-caption { margin: 12px 11px; font-size: 11px; color: #777777; letter-spacing: .8px; font-weight: 500; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 11px; margin: 3px 0; border-radius: 5px; text-align: left; font-size: 13px; color: #777777; transition: background .15s; }
.nav-item:hover { background: #eeeeee; color: var(--ink); }
.nav-item.active { background: #eaeaea; color: #2d2d2d; font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; }
.nav-count { margin-left: auto; font: 10px ui-monospace, SFMono-Regular, monospace; color: #737373; }
.nav-divider { height: 1px; background: var(--line); margin: 23px 10px; }
.sidebar-bottom { margin-top: auto; padding-top: 80px; }
.upgrade-card { border: 1px solid #e3e3e3; border-radius: 6px; background: #fcfcfc; padding: 15px 12px 10px; }
.upgrade-title { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
.upgrade-title strong { font-size: 12px; font-weight: 550; }
.pro-small { font-size: 8px; color: #7e7e7d; border: 1px solid #dfdfdf; padding: 2px 4px; border-radius: 3px; font-weight: 500; letter-spacing: .5px; }
.upgrade-card p { font-size: 11px; color: #767676; line-height: 1.9; margin: 9px 0 12px; }
.upgrade-card button { border-top: 1px solid var(--line); padding: 10px 0 2px; width: 100%; display: flex; justify-content: space-between; font-size: 12px; color: #5f5f5e; }
.profile { display: flex; gap: 9px; align-items: center; width: 100%; padding: 20px 3px; text-align: left; }
.avatar { display: grid; place-items: center; border: 1px solid #dfdfdf; background: #ebebeb; width: 29px; height: 29px; border-radius: 50%; color: #6d6d6c; font-size: 13px; }
.profile strong { font-size: 12px; font-weight: 500; display: block; }
.profile small { color: #767676; font-size: 10px; display: block; margin-top: 4px; }
.profile-menu { margin-left: auto; color: #747474; }
.app-shell { margin-left: var(--sidebar); }
.topbar { height: 64px; padding: 0 38px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.breadcrumb { display: flex; align-items: center; gap: 11px; font-size: 12px; color: #747474; }
.breadcrumb svg { width: 14px; height: 14px; color: #747474; }
.breadcrumb strong { font-weight: 500; color: #565656; }
.breadcrumb-divider { color: #888888; margin: 0 4px; }
.top-actions { display: flex; gap: 19px; align-items: center; }
.local-badge { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #717170; }
.local-badge i, .status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #8c8d8c; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: var(--ink); color: white; border: 1px solid var(--ink); border-radius: 5px; padding: 11px 17px; font-size: 13px; font-weight: 500; transition: background .15s, border-color .15s; }
.button:not(:disabled):hover { background: #464646; border-color: #464646; }
.button svg { width: 15px; height: 15px; }
.button-small { font-size: 11px; padding: 7px 11px; }
.button-small span { margin-left: 10px; font-size: 13px; }
.button-outline { background: white; color: #4a4a49; border-color: #e1e1e1; box-shadow: 0 1px 2px #28282705; }
.button-outline:not(:disabled):hover { background: #f4f4f4; border-color: #c4c4c3; }
main { width: 100%; max-width: 1430px; padding: 42px 38px 0; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 32px; }
.eyebrow { color: #777777; letter-spacing: 1.6px; font-size: 10px; font-weight: 500; margin-bottom: 10px; }
h1 { font-size: 27px; line-height: 1.3; letter-spacing: -.7px; margin: 0; font-weight: 600; }
.page-heading p { font-size: 13px; color: #737373; margin: 11px 0 0; line-height: 1.6; }
.page-heading > .button { margin-top: 20px; }
.tool-grid { display: flex; border-bottom: 1px solid var(--line); gap: 8px; margin-bottom: 23px; overflow-x: auto; scrollbar-width: thin; }
.tool-card { position: relative; display: inline-flex; gap: 8px; align-items: center; padding: 13px 15px 16px; border-bottom: 2px solid transparent; color: #717171; white-space: nowrap; margin-bottom: -1px; }
.tool-card:hover { color: #3b3b3a; background: #fbfbfb; }
.tool-card.selected { color: var(--accent); border-bottom-color: var(--accent); }
.tool-card strong { font-size: 13px; font-weight: 500; }
.tool-icon { display: inline-flex; }
.tool-icon svg { width: 16px; height: 16px; stroke-width: 1.6; }
.workspace { border: 1px solid #e2e2e2; border-radius: 8px; overflow: hidden; background: #fff; scroll-margin-top: 24px; }
.workspace-heading { height: 57px; padding: 0 23px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.workspace-heading > div { display: flex; align-items: center; gap: 14px; }
h2 { font-size: 14px; font-weight: 550; margin: 0; }
.workspace-heading h2 { font-size: 13px; font-weight: 600; }
.workspace-subtitle { font-size: 11px; color: #797979; padding-left: 13px; border-left: 1px solid #e6e6e6; }
.text-button { padding: 3px 0; color: #707070; font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
.text-button svg { width: 13px; height: 13px; }
.text-button:hover { color: #3a3a39; }
.workspace-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 414px; }
.file-zone { padding: 22px 24px 18px; background: #fefefe; min-width: 0; }
.zone-label { display: flex; align-items: center; justify-content: space-between; color: #747473; font-size: 11px; margin-bottom: 15px; }
.zone-label > span:last-child { font: 9px ui-monospace, SFMono-Regular, monospace; letter-spacing: .6px; color: #7f7f7e; }
#file-count { font: 9px ui-monospace, SFMono-Regular, monospace; margin-left: 6px; background: #f0f0f0; border-radius: 3px; padding: 2px 5px; color: #6f6f6e; }
.dropzone { min-height: 287px; border: 1px dashed #dadad9; border-radius: 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 27px 16px 22px; cursor: pointer; background: #fbfbfb; text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dragover { background: #f5f5f5; border-color: #a6a6a5; }
.upload-icon { width: 43px; height: 47px; border: 1px solid #dddddc; border-radius: 5px; background: #fff; display: grid; place-items: center; color: #7c7c7c; margin-bottom: 18px; box-shadow: 3px 3px 0 #f0f0f0; }
.upload-icon svg { width: 23px; height: 23px; stroke-width: 1.4; }
.dropzone strong { font-size: 15px; font-weight: 500; color: #525251; }
.dropzone small { font-size: 11px; color: #7b7b7b; margin-top: 10px; line-height: 1.7; }
.upload-pick { display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border: 1px solid #d8d8d7; background: white; border-radius: 4px; font-size: 12px; margin-top: 22px; color: #5f5f5e; box-shadow: 0 1px 2px #36363505; }
.upload-pick svg { width: 14px; height: 14px; }
.upload-local { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #7e7e7d; margin-top: 20px; }
.upload-local svg { width: 12px; height: 12px; }
.empty-tip { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 17px; color: #7c7c7c; font-size: 11px; }
.empty-tip [data-icon] { display: none; }
.empty-tip .text-button { font-size: 11px; color: #787877; }
.settings-panel { border-left: 1px solid var(--line); padding: 24px 22px 17px; display: flex; flex-direction: column; background: #fff; }
.settings-title { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 550; margin-bottom: 27px; }
.settings-title > span { font-size: 10px; color: #787877; font-weight: 400; }
.field { display: block; margin-bottom: 22px; font-size: 12px; color: #70706f; }
.field-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.field-label output { color: #545453; font: 11px ui-monospace, SFMono-Regular, monospace; padding: 3px 6px; border: 1px solid #e5e5e4; border-radius: 3px; background: #fdfdfd; min-width: 38px; text-align: center; }
.field input:not([type=range]):not([type=color]), .field select { width: 100%; border: 1px solid #e2e2e1; padding: 9px 10px; border-radius: 4px; background: white; color: #656665; font-size: 12px; min-height: 35px; }
.field input[type=range] { width: 100%; height: 3px; accent-color: #757675; margin: 7px 0 14px; cursor: pointer; }
.range-hints { display: flex; justify-content: space-between; color: #7e7e7e; font-size: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field input[type=color] { width: 100%; height: 35px; padding: 3px; border: 1px solid #e2e2e1; border-radius: 4px; background: #fff; }
.processing-note { font-size: 11px; line-height: 1.85; color: #787877; margin: -2px 0 23px; }
.settings-actions { margin-top: auto; }
.process-button { width: 100%; padding: 11px 12px; }
.button-arrow { margin-left: auto; }
.process-button:disabled { opacity: 1; background: #ebebeb; border-color: #ebebeb; color: #7e7e7d; }
.settings-footnote { font-size: 10px; text-align: center; margin: 11px 0 0; color: #7b7b7b; }
.workspace-footer { border-top: 1px solid var(--line); background: #fdfdfd; padding: 12px 23px; display: flex; align-items: center; gap: 20px; font-size: 10px; color: #7a7a79; }
.workspace-footer > span { display: flex; gap: 7px; align-items: center; }
.workspace-footer svg { width: 12px; height: 12px; }
.workspace-security { margin-left: auto; }
.workspace-format { padding-left: 18px; border-left: 1px solid #e5e5e4; font-family: ui-monospace, SFMono-Regular, monospace; }
.file-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 16px; }
.file-list:empty { display: none; }
.file-row { position: relative; min-width: 0; overflow: hidden; border: 1px solid #e4e4e3; border-radius: 5px; background: #fff; }
.file-row img { display: block; width: 100%; height: 145px; object-fit: contain; background: repeating-conic-gradient(#f1f1f1 0% 25%,#fafafa 0% 50%) 50%/16px 16px; padding: 10px; border-bottom: 1px solid var(--line); }
.file-info { padding: 11px 12px; }
.file-info strong { display: block; font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-info small { display: block; font: 9px ui-monospace, SFMono-Regular, monospace; color: #797979; margin-top: 6px; }
.file-remove { position: absolute; right: 7px; top: 7px; background: #fff; border: 1px solid #e3e3e2; border-radius: 4px; width: 24px; height: 24px; color: #757575; font-size: 17px; }
.has-files .dropzone { min-height: 75px; padding: 14px; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
.has-files .dropzone .upload-icon, .has-files .dropzone .upload-local, .has-files .dropzone small { display: none; }
.has-files .dropzone strong { font-size: 12px; color: #767675; font-weight: 400; }
.has-files .upload-pick { margin: 0; }
.file-list:has(.file-row:only-child) { grid-template-columns: 1fr; }
.file-row:only-child img { height: 215px; }
.workflow-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 30px 0 42px; }
.workflow-notes > div { display: flex; align-items: flex-start; gap: 13px; }
.step-number { font: 10px ui-monospace, SFMono-Regular, monospace; color: #7f7f7e; padding-top: 3px; }
.workflow-notes h3 { margin: 0 0 7px; color: #7e7e7d; font-size: 12px; font-weight: 500; }
.workflow-notes p { color: #7c7c7c; font-size: 11px; line-height: 1.6; margin: 0; }
footer { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; color: #7f7f7e; font-size: 11px; gap: 15px; }
.footer-brand { font-size: 12px; color: #737373; font-weight: 500; }
.footer-brand > span { margin-left: 10px; font-size: 10px; font-weight: 400; color: #808080; }
footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 19px; }
footer button { font-size: 11px; color: #7b7b7b; padding: 0; }
footer button:hover { color: #686968; }
.results-section { margin: 28px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.section-heading h2 { font-size: 13px; }
.section-heading h2 span { font: 10px ui-monospace, SFMono-Regular, monospace; color: #7a7a79; margin-left: 12px; }
.section-heading .button { font-size: 11px; padding: 8px 11px; }
.results-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 30px; }
.result-card { border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; min-width: 0; }
.result-preview { height: 167px; display: flex; align-items: center; justify-content: center; padding: 12px; background: repeating-conic-gradient(#f2f2f2 0% 25%,#fbfbfb 0% 50%) 50%/16px 16px; border-bottom: 1px solid var(--line); }
.result-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.result-info { padding: 13px; }
.result-info strong { display: block; font-size: 12px; font-weight: 500; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.result-info p { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; font-size: 10px; color: #797978; margin: 10px 0 14px; }
.result-info a { display: flex; gap: 7px; align-items: center; justify-content: center; padding: 8px; border: 1px solid #e4e4e3; border-radius: 4px; font-size: 11px; color: #7d7d7c; }
.result-info a:hover { background: #f7f7f7; }
.result-info a svg { width: 13px; height: 13px; }
.empty-state { grid-column: 1/-1; text-align: center; border: 1px solid var(--line); border-radius: 6px; padding: 70px 20px; color: #787878; font-size: 13px; line-height: 1.8; }
.empty-state svg { display: block; width: 27px; height: 27px; margin: 0 auto 16px; color: #848483; }
dialog { width: min(860px,calc(100vw - 32px)); max-height: 90dvh; overflow: auto; padding: 36px; border: 1px solid #e3e3e3; border-radius: 9px; box-shadow: 0 20px 100px #1d1d1c26; color: var(--ink); }
dialog::backdrop { background: #25252555; }
.modal-close { position: absolute; top: 15px; right: 17px; color: #7b7b7b; font-size: 23px; padding: 3px 7px; }
.modal-close:hover { color: #565756; }
.modal-kicker { font-size: 10px; letter-spacing: 1.4px; color: #7b7b7a; margin: 0 0 10px; }
.modal-title { font-size: 23px; font-weight: 600; line-height: 1.4; margin: 0 0 12px; }
.modal-description { color: #757575; font-size: 13px; line-height: 1.8; margin: 0 0 24px; }
.payment-notice { background: #f7f7f7; border: 1px solid #e7e7e7; border-radius: 4px; padding: 11px 13px; font-size: 12px; line-height: 1.7; color: #737373; margin-bottom: 25px; }
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.plan { position: relative; border: 1px solid #e5e5e4; border-radius: 5px; padding: 22px 19px; }
.plan.featured { border-color: #919190; background: #fdfdfd; }
.plan-tag { position: absolute; top: -10px; right: 14px; color: #7d7d7c; background: #fff; border: 1px solid #d2d2d1; padding: 3px 7px; border-radius: 3px; font-size: 10px; }
.plan h3 { margin: 0 0 9px; font-size: 15px; font-weight: 550; }
.plan-desc { color: #7b7b7b; font-size: 11px; }
.price { margin: 24px 0 8px; font-size: 33px; letter-spacing: -1.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price > small { font-size: 11px; font-weight: 400; color: #797979; letter-spacing: 0; }
.price-caption { font-size: 11px; color: #7c7c7b; margin: 0 0 23px; }
.plan ul { display: grid; gap: 14px; border-top: 1px solid var(--line); padding: 20px 0 0; list-style: none; margin: 0 0 26px; color: #737373; font-size: 11px; }
.plan li::before { content: '✓'; margin-right: 8px; color: #737373; }
.plan .button { width: 100%; font-size: 12px; padding: 10px 5px; }
.plan-footer { font-size: 11px; line-height: 1.9; color: #7e7e7d; margin: 20px 0 0; }
.checkout { max-width: 470px; margin: auto; }
.checkout-detail { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 21px 0; margin-bottom: 24px; }
.checkout-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #767676; font-size: 12px; margin-bottom: 20px; }
.checkout-line:last-child { margin-bottom: 0; }
.checkout-line strong { color: #5b5c5b; font-size: 13px; font-weight: 500; }
.checkout-line code { font-size: 10px; overflow-wrap: anywhere; text-align: right; }
.checkout-total { font-size: 27px !important; font-variant-numeric: tabular-nums; }
.checkout .button { width: 100%; margin-bottom: 10px; }
.checkout-note { font-size: 11px; line-height: 1.8; color: #7d7d7d; }
.success-mark { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #d3d3d2; background: #f7f7f7; border-radius: 50%; color: #747473; font-size: 23px; margin-bottom: 22px; }
.prose { color: #727272; font-size: 13px; line-height: 2; }
.prose h3 { font-size: 13px; font-weight: 550; color: #565755; margin: 23px 0 5px; }
.prose strong { color: #70716f; }
.orders-list { display: grid; gap: 10px; }
.order-row { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 5px; padding: 16px; }
.order-row h3 { font-size: 13px; font-weight: 500; margin: 0 0 8px; }
.order-row p { font-size: 11px; color: #7c7c7b; margin: 0; }
.order-amount { font-size: 14px; margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-pill { color: #717171; background: #f4f4f4; border: 1px solid #e3e3e2; border-radius: 3px; padding: 4px 6px; font-size: 10px; white-space: nowrap; }
.status-pill.pending { background: #f6f6f6; border-color: #e2e2e1; color: #737271; }
.toast { position: fixed; bottom: 26px; left: calc(50% + var(--sidebar)/2); transform: translateX(-50%); background: #363636; color: #fff; border-radius: 5px; box-shadow: 0 4px 20px #22222122; padding: 13px 19px; font-size: 13px; line-height: 1.7; max-width: min(620px,90vw); z-index: 100; }
.toast.error { background: #995740; }
.spinner { width: 13px; height: 13px; border: 2px solid #ffffff44; border-top-color: white; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width: 1500px) {
  main { padding-top: 52px; }
  .page-heading { margin-bottom: 38px; }
  .workspace-body { min-height: 455px; grid-template-columns: minmax(0,1fr) 300px; }
  .dropzone { min-height: 320px; }
  .tool-grid { gap: 18px; }
  .file-row:only-child img { height: 250px; }
}
@media (max-width: 1150px) {
  :root { --sidebar: 188px; }
  .sidebar { padding-inline: 12px; }
  .brand { margin-left: 6px; }
  .brand-en { display: none; }
  main { padding: 32px 25px 0; }
  .topbar { padding-inline: 25px; }
  .tool-grid { gap: 0; }
  .tool-card { padding-inline: 11px; }
  .tool-card strong { font-size: 12px; }
  .workspace-body { grid-template-columns: minmax(0,1fr) 240px; }
  .file-zone { padding: 20px 18px 17px; }
  .settings-panel { padding: 22px 19px 17px; }
  .workspace-subtitle { display: none; }
  .workflow-notes { gap: 14px; }
  .workflow-notes > div { gap: 9px; }
  .workflow-notes p { font-size: 10px; }
  .footer-brand > span { display: none; }
}
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .sidebar { position: static; width: 100%; padding: 18px 24px 0; border-right: 0; display: block; background: #fbfbfb; }
  .brand { margin: 0 0 19px; font-size: 19px; }
  .brand-en { display: inline; }
  .sidebar > .nav-caption, .nav-divider, nav .nav-caption, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 7px; padding-bottom: 10px; }
  .nav-item { width: auto; font-size: 12px; padding: 9px 12px; white-space: nowrap; }
  .nav-count { display: none; }

  .nav-item svg { width: 15px; height: 15px; }
  .topbar { height: 48px; padding-inline: 24px; background: #fbfbfb; }
  .topbar .button { padding: 5px 9px; font-size: 10px; }
  .breadcrumb { font-size: 11px; }
  main { padding: 28px 24px 0; }
  .tool-card { flex: 1; justify-content: center; padding-inline: 10px; gap: 6px; }
  .tool-card strong { font-size: 12px; }
  .workspace-body { grid-template-columns: minmax(0,1fr) 230px; }
  .page-heading { margin-bottom: 22px; }
  h1 { font-size: 25px; }
  .page-heading p { font-size: 12px; }
  .workflow-notes { margin-bottom: 30px; }
  .toast { left: 50%; }
}
@media (max-width: 620px) {
  .sidebar { padding: 17px 18px 0; }
  .sidebar nav { justify-content: space-between; gap: 0; }
  .nav-item { font-size: 11px; gap: 6px; padding: 8px 7px; }
  .nav-item svg { width: 13px; height: 13px; }
  .topbar { padding-inline: 18px; height: 44px; }
  .breadcrumb > span[data-icon], .local-badge { display: none; }
  .breadcrumb { gap: 7px; }
  main { padding: 26px 18px 0; }
  .page-heading { align-items: flex-start; margin-bottom: 20px; gap: 10px; }
  .page-heading > .button { padding: 8px 10px; font-size: 11px; margin-top: 26px; white-space: nowrap; }
  .page-heading > .button svg { display: none; }
  h1 { font-size: 24px; }
  .page-heading p { font-size: 11px; max-width: 215px; line-height: 1.8; margin-top: 10px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 5px; gap: 0; margin-bottom: 19px; overflow: hidden; }
  .tool-card { padding: 12px 5px; border: 0; margin: 0; font-size: 12px; }
  .tool-card:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .tool-card:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
  .tool-card.selected { background: #fbf4ef; color: var(--accent); }
  .tool-icon svg { width: 14px; height: 14px; }
  .workspace-heading { padding-inline: 17px; height: 49px; }
  .workspace-body { display: block; }
  .file-zone { padding: 19px 16px 17px; }
  .zone-label { font-size: 10px; }
  .zone-label > span:last-child { font-size: 8px; }
  .dropzone { min-height: 265px; }
  .dropzone strong { font-size: 13px; }
  .dropzone small { font-size: 10px; }
  .settings-panel { padding: 21px 18px 17px; border-left: 0; border-top: 1px solid var(--line); }
  .settings-title { margin-bottom: 22px; }
  .processing-note { margin-bottom: 17px; }
  .workspace-footer { flex-wrap: wrap; padding: 12px 17px; font-size: 8px; gap: 9px; }
  .workspace-format { display: none; }
  .workflow-notes { grid-template-columns: 1fr; gap: 18px; margin-top: 26px; }
  .workflow-notes > div { gap: 13px; }
  .workflow-notes h3 { font-size: 12px; margin-bottom: 5px; }
  .workflow-notes p { font-size: 11px; }
  footer { flex-direction: column; align-items: flex-start; padding: 19px 0; gap: 13px; }
  footer > div { width: 100%; justify-content: space-between; gap: 10px; font-size: 10px; }
  footer button { font-size: 10px; }
  .footer-brand > span { display: inline; }
  .results-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .result-preview { height: 125px; }
  .result-info { padding: 10px; }
  .result-info strong { font-size: 11px; }
  .section-heading { flex-wrap: wrap; }
  .section-heading h2 span { font-size: 10px; margin-left: 6px; }
  dialog { padding: 30px 20px 23px; }
  .modal-title { font-size: 21px; }
  .modal-description { font-size: 12px; }
  .plans { grid-template-columns: 1fr; gap: 22px; }
  .plan { padding: 20px; }
  .plan ul { grid-template-columns: 1fr 1fr; font-size: 11px; }
  .price { font-size: 32px; margin-top: 19px; }
  .order-row { gap: 10px; flex-wrap: wrap; }
  .order-row p { font-size: 10px; }
  .toast { width: max-content; max-width: 90vw; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Account forms share the workspace's neutral control palette. */
.auth-shell { max-width: 370px; margin: 5px auto; padding-block: 10px; }
dialog:has(.auth-shell) { max-width: 470px; }
.auth-shell .account-form > .button { width: 100%; }
.account-form .field { margin-bottom: 19px; }
.account-form .field input { font-size: 13px !important; padding: 11px 12px !important; min-height: 42px !important; }
.account-form input[readonly] { background: #f5f5f5 !important; color: #7d7d7d !important; }
.auth-switch { font-size: 12px; color: #858585; margin-top: 20px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.auth-note { color: #909090; font-size: 11px; line-height: 1.9; border-top: 1px solid var(--line); margin-top: 21px; padding-top: 16px; }
.form-error { color: #b34f37; font-size: 12px; line-height: 1.8; margin: 0 0 15px; }
.account-summary { display: flex; align-items: center; gap: 16px; padding: 25px; border: 1px solid var(--line); border-radius: 7px; }
.account-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #eeeeec; color: #555; font-size: 20px; }
.account-summary h2 { margin: 0 0 8px; font-size: 17px; }
.account-summary p { margin: 0; color: #858585; font-size: 12px; }
.account-membership { margin-left: auto; text-align: right; }
.account-membership strong { display: block; font-size: 13px; font-weight: 550; margin-bottom: 8px; }
.account-membership span { color: #858585; font-size: 11px; }
.account-links { display: flex; gap: 25px; padding: 18px 2px 25px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 36px; }
.account-panel { border: 1px solid var(--line); border-radius: 7px; padding: 25px; }
.account-panel h2 { font-size: 15px; }
.panel-note { font-size: 12px; color: #888; margin: 10px 0 25px; line-height: 1.8; }
@media(max-width:900px) { .sidebar nav { overflow-x: auto; } .nav-item { flex-shrink: 0; } .top-actions { gap: 9px; } }
@media(max-width:620px) {

  .account-grid { grid-template-columns: 1fr; gap: 17px; }
  .account-panel { padding: 20px; }
  .account-summary { padding: 20px; flex-wrap: wrap; gap: 13px; }
  .account-membership { text-align: left; width: 100%; border-top: 1px solid var(--line); padding-top: 15px; }
  .account-summary p { font-size: 10px; }
  .account-avatar { width: 39px; height: 39px; font-size: 17px; }
  .topbar .button-small span { display: none; }
}

/* Video workspace shares the image workbench's neutral hierarchy. */
.video-tools { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.video-mode-number { color: #939393; font: 11px ui-monospace, monospace; }
.video-tools .tool-card { align-items: flex-start; gap: 12px; }
.video-cap { color: var(--muted); font-size: 11px; }
.video-film { font-size: 46px; font-weight: 300; color: #777; line-height: 1; }
.video-drop { min-height: 285px; }
#video-preview { width: 100%; max-height: 320px; background: #171717; border-radius: 4px; display: block; }
.video-file-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; }
.video-file-info strong { font-size: 13px; overflow-wrap: anywhere; }
.video-file-info p, .video-job p { color: var(--muted); font-size: 11px; line-height: 1.7; margin: 6px 0 0; }
.video-privacy { color: #777; font-size: 11px; line-height: 1.9; margin: 18px 0 0; }
.video-jobs-section { margin: 32px 0; }
.video-job { display: flex; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding: 22px 0; }
.video-job-main { flex: 1; min-width: 0; }
.video-job-main strong { overflow-wrap: anywhere; }
.video-job-actions { display: flex; gap: 16px; align-items: center; }
.video-job .video-job-error { color: #a84630; }
#video-view progress { display: block; height: 5px; border: 0; width: 100%; accent-color: var(--accent); margin: 12px 0; }
#video-upload-status { font-size: 11px; color: var(--muted); }
@media (max-width: 620px) { .video-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .video-job { flex-wrap: wrap; gap: 12px; } .video-job-main { flex-basis: 70%; } .video-job-actions { margin-left: auto; } #video-view .page-heading { align-items: flex-start; } #video-view .page-heading > .video-cap { display: none; } }
.video-benefits { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 20px; margin: 0 0 24px; background: #faf9f7; border: 1px solid var(--line); border-radius: 5px; }
.video-benefits strong { font-size: 13px; font-weight: 550; }
.video-benefits p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 5px 0 0; }
.video-selection-list { list-style: none; margin: 16px 0 0; padding: 0; }
.video-selection-list li { padding: 9px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; font-size: 12px; }
.video-selection-list span { color: var(--muted); margin-left: 10px; }
@media (max-width: 620px) { .video-benefits { align-items: flex-start; flex-direction: column; } }

/* Live Photo tools follow the existing neutral workspace design. */
.live-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.live-tools .tool-card { align-items: flex-start; gap: 12px; text-align: left; }
.live-tools small { color: var(--muted); font-size: 11px; line-height: 1.7; font-weight: 400; }
.live-import-note { padding: 0 2px; margin: 0 0 25px; max-width: 850px; }
.live-import-note strong { font-size: 12px; font-weight: 550; }
.live-import-note p { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 7px 0; }
.live-locked { padding: 45px 24px 32px; text-align: center; background: #fafafa; }
.live-locked h3 { font-size: 18px; font-weight: 550; margin: 18px 0 10px; }
.live-locked p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.live-locked .button { margin-top: 12px; }
.live-mark { font-size: 40px; color: #777; font-weight: 300; }
#live-preview { width: 100%; max-height: 320px; background: #171717; border-radius: 4px; display: block; }
#live-view progress { display: block; height: 5px; border: 0; width: 100%; accent-color: var(--accent); margin: 12px 0; }
#live-status { font-size: 11px; color: var(--muted); }
.plan .plan-excluded { color: #999; }
.plan .plan-excluded::before { content: '—'; }
.account-links { flex-wrap: wrap; }
@media(max-width: 620px) { .live-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } #live-view .page-heading { align-items: flex-start; } }
.live-tools { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.live-tools .tool-card { flex-direction: column; justify-content: flex-start; white-space: normal; padding: 17px 15px; margin: 0; border: 0; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; }
.live-tools .tool-card:last-child { border-right: 0; }
.live-tools .tool-card.selected { border-bottom-color: var(--accent); background: #fbf7f3; }
@media(max-width:620px) { .live-tools .tool-card:nth-child(2n) { border-right: 0; } .live-tools .tool-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .live-tools .tool-card.selected { box-shadow: inset 0 -2px var(--accent); } .live-tools .tool-card { padding: 14px; gap: 8px; } }

/* Routed account, plan and documentation pages share the workspace shell. */
.content-page { max-width: 1120px; margin: 0 auto; padding: 14px 0 36px; min-height: 60vh; }
.content-page > .modal-title { font-size: 28px; margin-bottom: 18px; }
.content-page > .prose { max-width: 800px; font-size: 14px; }
.profile { color: inherit; }

.history-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.history-filters button { padding: 10px 16px; border-radius: 6px; color: var(--muted); }
.history-filters button[aria-pressed=true] { background: var(--ink); color: white; }
.history-filters span { margin-left: 7px; font-variant-numeric: tabular-nums; opacity: .7; }
.history-section { margin: 28px 0 38px; }
#recent-view .page-heading { gap: 16px; align-items: flex-start; }
#recent-refresh { flex-shrink: 0; }
