@font-face {
  font-family: 'Mozhou Serif';
  src: url('/assets/mozhou/heading.woff2?v=20261010-1') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

.account-brand-visual, .account-brand-top, .account-guest-link { display: none; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-mark { background: #fff; }
.video-api-images button { display:grid; place-items:center; box-sizing:border-box; width:28px; height:28px; min-height:28px; padding:0; line-height:1; }
.video-api-images button .lucide { width:16px; height:16px; display:block; }
.mozhou-intro-copy h2 { font-size: 20px; line-height: 1.5; }
.mozhou-wordmark { display: none; }

@media (min-width: 1100px), (hover: hover) and (pointer: fine) {
  :root {
    --paper: #f7f5ef;
    --ink: #242424;
    --muted: #505050;
    --line: #e4e0d7;
    --green: #b94b38;
    --green-dark: #963c2c;
    --green-soft: #f8eee8;
    --lime: #f8eee8;
    --mozhou-serif: 'Mozhou Serif', 'Noto Serif SC', 'Songti SC', SimSun, serif;
    --mozhou-success: #3e6b56;
    --mozhou-warning: #7d580f;
    --mozhou-error: #a32d2d;
  }
  body { color: var(--ink); background: var(--paper); line-height: 1.65; }
  ::selection { background: #eed5cb; color: #242424; }
  * { scrollbar-color: #c3bdb1 transparent; }
  :focus-visible { outline-color: var(--green) !important; }
  .workspace { padding-inline: 36px; }
  .tool-topbar { background: var(--paper); gap: 18px; }
  .brand { gap: 10px; min-height: 64px; }
  .brand-mark { width: 64px; height: 64px; border-radius: 0; background: transparent; }
  .brand-mark img { mix-blend-mode: multiply; }
  .brand small { font-size: 10px; color: var(--muted); }
  .sidebar-collapsed .brand-mark { width: 48px; height: 48px; }
  .sidebar-toggle { background: transparent; border-color: #d4cec2; color: var(--muted); }
  .tool-nav button { color: var(--muted); height: 46px; border-radius: 5px; }
  .tool-nav button:hover { color: var(--ink); background: #efebe3; }
  .tool-nav button.selected { background: #f3e6df; color: #9f3f2f; }
  .sidebar-avatar { background: #eeebe4; color: var(--muted); }
  .sidebar-collapsed .tool-nav button::after { background: #242424; }
  .account-toolbar { margin-inline: -36px; padding-inline: 36px; background: var(--paper); min-height: 68px; margin-bottom: 0; }
  .account-identity small { background: #e9efe9; color: #3e6b56; }
  .account-identity > span { max-width: 220px; }
  .account-available strong, .account-balance-meta b { color: var(--ink); }
  .account-toolbar button, .account-menu summary, .account-recharge-dialog button { color: #505050; border-color: #d4cec2; }
  .account-toolbar button:first-child { background: var(--green); color: #fff; border-color: var(--green); }
  .account-toolbar button:first-child:hover { background: var(--green-dark); }
  .account-menu summary { background: #fff; }
  .account-menu-options { border-color: var(--line); box-shadow: 0 10px 28px #24242412; }
  .account-menu-options button { color: #242424 !important; }
  .account-menu-options button:hover { background: #f4f1e9 !important; }
  .account-wallet-panel, .account-password-form { border-color: var(--line); }
  .account-wallet-list p, .account-wallet-list small, .account-wallet-heading > span { color: var(--muted); }
  .account-wallet-list li { border-color: var(--line); }
  .account-credit-in { color: var(--mozhou-success); }
  .account-credit-out { color: var(--mozhou-error); }
  .account-password-form button { background: var(--green); }
  .view { max-width: 1600px; padding-top: 30px; }
  .view h1, .tool-group-headings h2, .diagnosis-entry h2,
  .tool-card h2, .image-studio-head h2, .video-api-heading h2,
  .customer-translation-head h2, .todo-drawer h2, .reminder-drawer h2 {
    font-family: var(--mozhou-serif); font-weight: 600;
  }
  .view h1 { font-size: 30px; line-height: 1.5; }
  .view h2 { font-size: 20px; }
  .view h3, label, button { font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif; }
  .view .eyebrow { display: none; }
  .mozhou-intro { display: block; min-height: 0; max-width: none; margin: 0 0 20px; padding: 8px 0 12px; }
  .mozhou-intro-copy { width: 100%; }
  .mozhou-intro h1 { font-size: 36px; line-height: 1.3; margin: 0 0 8px; }
  .mozhou-title-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mozhou-wordmark { display: block; width: 152px; aspect-ratio: 2 / 1; background: url('/assets/mozhou/wordmark-transparent.webp?v=20261010-1') center / contain no-repeat; }
  .mozhou-intro h2 { font-family: var(--mozhou-serif); font-size: 22px; line-height: 1.6; margin: 0 0 8px; }
  .mozhou-intro p { font-size: 13px; line-height: 1.9; max-width: 70ch; margin: 0; }
  .ai-image-job[data-home-target='true'] { outline: 2px solid var(--green); outline-offset: 3px; }
  .account-toolbar:has(.site-notice:not([hidden])) { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(80px, 1fr) auto auto; gap: 18px; }
  .account-toolbar:has(.site-notice:not([hidden])) .account-identity { grid-column: 1; }
  .account-toolbar:has(.site-notice:not([hidden])) .account-identity > span { flex-basis: 100%; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .account-toolbar:has(.site-notice:not([hidden])) .account-balance { grid-column: 3; }
  .account-toolbar:has(.site-notice:not([hidden])) .account-actions { grid-column: 4; white-space: nowrap; }
  .account-toolbar:has(.site-notice:not([hidden])) .account-actions button { flex-shrink: 0; }
  .site-notice { position: relative; flex: 0 1 360px; min-width: 80px; max-width: 360px; margin-inline: 4px; }
  .site-notice[hidden] { display: none; }
  .site-notice summary { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 12px; cursor: pointer; list-style: none; }
  .site-notice summary::-webkit-details-marker { display: none; }
  .site-notice summary:hover { color: var(--green-dark); }
  .site-notice summary span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
  .site-notice summary .lucide { width: 15px; height: 15px; flex: none; }
  .site-notice summary .lucide:last-child { width: 12px; height: 12px; }
  .site-notice-content { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%); z-index: 25; width: 380px; max-width: calc(100vw - 300px); max-height: 350px; overflow: auto; background: #fff; padding: 18px; border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 10px 28px #24242412; }
  .site-notice-content h2 { font: 700 14px/1.6 'Segoe UI', 'Microsoft YaHei', sans-serif; margin: 0 0 10px; overflow-wrap: anywhere; }
  .site-notice-content p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
  .home-workday { padding-block: 22px; margin-bottom: 26px; gap: 26px; grid-template-columns: minmax(0, 1fr); }
  .mexico-clock { background: var(--paper) !important; }
  .mexico-clock .clock-heading small, .clock-period { background: #eeebe4; color: var(--muted); }
  .clock-heading > div > span, .clock-side-label { color: var(--ink); }
  .flip-card { font-family: 'Segoe UI', sans-serif; font-size: 40px; font-weight: 600; }
  .flip-clock i { color: #a59e91; }
  .diagnosis-entry { border-color: var(--line); padding-left: 24px; }
  .diagnosis-entry p { font-size: 12px; color: var(--muted); }
  .diagnosis-entry .primary-button { padding: 9px 13px; }
  .tool-group-headings h2 { color: #505050; font-size: 17px; }
  .tool-card { min-height: 116px; padding: 18px 0; }
  .tool-card h2 { font-size: 20px; }
  .tool-card p { font-size: 12px; max-width: 52ch; }
  .tool-card:hover { background: #f0ece4 !important; }
  .tool-icon { background: #f6eae3; border: 0; color: var(--green); }
  .tool-grid .tool-card .open-tool { border-color: transparent; background: transparent; color: var(--green); }
  .tool-grid .tool-card:hover .open-tool { border-color: #d9bfb3; color: var(--green-dark); background: #fff; }
  .hub-note { padding-top: 4px; }
  .tool-page-heading { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
  .primary-button { background: var(--green); }
  .primary-button:hover { background: var(--green-dark); }
  .secondary-button, .text-button, .notification-button, .back-link { color: var(--muted); }
  .secondary-button { border-color: #c9c2b6; }
  .secondary-button:hover { background: #f1ede5; border-color: #a89f90; }
  .view input, .view textarea, .view select { border-color: #b7b1a5; color: var(--ink); border-radius: 5px; }
  .view input::placeholder, .view textarea::placeholder { color: #686359; }
  .view label { color: #414141; }
  .video-workbench-tabs { background: #eeeae2; }
  .video-workbench-tabs button { color: var(--muted); }
  .video-workbench-tabs button[aria-selected=true] { background: #fff; color: var(--green); box-shadow: none; }
  .video-api-upload, .video-upload-single, .dispatch-dropzone, .upload-zone, .image-studio-dropzone { background: #fff; border-color: #b7b1a5; }
  .video-api-grid > form, .video-form, .diagnosis-form, .customer-service-form, .pricing-inputs { border-color: var(--line); }
  .video-task-panel, .video-script-card, .customer-service-results, .diagnosis-results { border-color: var(--line); }
  .video-task-title strong, .video-task-meta dd { color: var(--ink); }
  .video-task-title span { background: #e9efe9; color: var(--mozhou-success); }
  .video-task-panel[data-state=uncertain] .video-task-title span { color: var(--mozhou-warning); background: #f7eedb; }
  .video-task-panel[data-state=failed] .video-task-title span { color: var(--mozhou-error); background: #f9e8e5; }
  .video-task-panel #videoApiTaskHelp, .video-task-meta dt, .video-api-history-item { color: var(--muted); }
  .video-task-steps li { border-color: var(--line); color: var(--muted); }
  .video-task-steps li.done, .video-task-steps li.current { border-color: var(--mozhou-success); color: var(--mozhou-success); }
  .video-task-tools button, .video-task-copy { border-color: #d4cec2; color: var(--muted); }
  .video-api-history-item[aria-current=true] { background: #f4ede4; }
  .video-empty, .customer-service-empty, .diagnosis-empty { border: 0; background-color: transparent; height: auto; min-height: 200px; padding: 24px; }
  .video-empty p, .customer-service-empty p, .diagnosis-empty p { color: var(--muted); }
  .video-empty .diagnosis-spark, .customer-service-empty .diagnosis-spark, .diagnosis-empty .diagnosis-spark { display: none; }
  .customer-translation-result, .customer-service-reply { background: #fff; border: 1px solid var(--line); color: var(--ink); }
  .customer-translation-result-head strong { color: var(--ink); }
  .image-studio-canvas-wrap { background: #f0ede6; }
  .dispatch-preview-table th, .dispatch-preview-table th:first-child, .dispatch-preview-table th:nth-child(2), .dispatch-sku-table th { background: #ede9e1; color: #414141; border-color: var(--line); }
  .dispatch-preview-table tbody tr:hover td:not(.dispatch-inactive-cell) { background: #f8f5ef; }
  .dispatch-field-card { border-color: var(--line); }
  .price-band { background: #f4ede4; border-left-width: 1px; color: var(--muted); }
  .pricing-details { background: #fff; border-color: var(--line); color: var(--muted); }
  .metric-card, .pricing-metrics > div { border-color: var(--line); }
  .decision-badge, .step-number { background: #e9efe9; color: var(--mozhou-success); }
  .decision-badge.loss { background: #f9e8e5; color: var(--mozhou-error); }
  .todo-drawer, .reminder-drawer { background: var(--paper); border-color: var(--line); }
  .todo-drawer-inner, .reminder-drawer-inner { background: var(--paper); }
  .account-recharge-dialog { color: var(--ink); border-color: var(--line); }
  .account-recharge-dialog header p, .recharge-help, .recharge-manual-note, .recharge-content figcaption { color: var(--muted); }
  .account-recharge-dialog button:hover { background: #f4ede4; }
  .text-ai-confirm { color: var(--ink); border-color: var(--line); }
  .text-ai-confirm-price { color: var(--ink); }
  .text-ai-confirm [value=cancel] { color: var(--muted); border-color: #c9c2b6; }
  .guest-login-dialog { background: var(--paper); }
  .guest-login-dialog iframe { background: var(--paper); }
  #aiImageForm, #imageStudioPanel { border-color: var(--line); }
  #aiImageForm label, .ai-image-price, .ai-image-results header span, .ai-image-batch-label, .ai-image-workspace p[role=status] { color: var(--muted); }
  .ai-image-price strong { color: var(--ink); }
  .ai-image-tools button, .ai-image-source-heading button, .ai-image-job-actions a, .ai-image-job-actions button { color: var(--muted); border-color: #d4cec2; }
  .ai-image-drop { background: #fff; border-color: #b7b1a5; }
  .ai-image-drop.dragging { background: #f5e8df; border-color: var(--green); }
  .ai-image-job, .ai-image-mask-dialog { border-color: var(--line); }
  .ai-image-job-media { background: #f0ede6; }
  .ai-image-job-meta, .ai-image-job-body p { color: var(--muted); }
  .ai-image-job[data-status=succeeded] .ai-image-job-meta b { color: var(--mozhou-success); }
  .ai-image-job[data-status=failed] .ai-image-job-meta b { color: var(--mozhou-error); }
  .ai-image-empty { display: flex; align-items: center; justify-content: center; min-height: 160px; padding: 24px 12px; background: transparent; border-color: var(--line); color: var(--muted); }
  .image-studio-free { color: var(--mozhou-success); }
  .video-api-status button:focus-visible, .ai-image-workspace :focus-visible { outline-color: var(--green); }
}

.account-login-page.account-embedded { background: #f7f5ef; }
.account-embedded .account-guest-link, .account-embedded .account-brand-visual, .account-embedded .account-brand-top { display: none !important; }
.account-embedded .account-login-main { display: block; width: 100%; min-height: 0; margin: 0; padding: 0; }
.account-embedded .account-form-pane { border: 0; padding: 0; width: 100%; }
.account-embedded .account-primary { background: #b94b38; }
.account-embedded .account-tabs button[aria-selected=true], .account-embedded .account-tabs button[aria-pressed=true] { color: #963c2c; border-color: #b94b38; }

@media (min-width: 1100px), (hover: hover) and (pointer: fine) {
  .mozhou-grid-page .tool-topbar, .mozhou-grid-page .account-toolbar { background: #f7f5eff5; }
  .mozhou-grid-page .mexico-clock { background: transparent !important; }
  .guest-login-dialog { width: 520px; padding: 32px; border: 1px solid #d4cec2; background: #f7f5ef; box-shadow: 0 24px 70px #24242430; }
  .guest-login-dialog::backdrop { background: rgb(36 36 36 / 25%); }
  .guest-login-dialog > header { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid #e4e0d7; }
  .guest-login-dialog h2 { font-family: var(--mozhou-serif); font-size: 26px; font-weight: 600; }
  .guest-login-dialog header p { color: #505050; font-size: 13px; line-height: 1.7; }
  .guest-login-dialog .icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #d4cec2; border-radius: 5px; background: #fff; }
  .view :is(input,textarea,select) { box-shadow: 0 2px 5px #24242404; transition: border-color 160ms ease, box-shadow 160ms ease; }
  .view :is(input,textarea,select):focus { border-color: #b94b38; box-shadow: 0 3px 12px #b94b3810; }
}

@media (min-width: 1100px), (hover: hover) and (pointer: fine) {
  .account-login-page { background: #f7f5ef; color: #242424; }
  .account-brand-top { display: flex; align-items: center; justify-content: space-between; max-width: 1360px; padding: 28px 40px; margin: auto; }
  .account-brand-top a { color: #505050; text-decoration: none; font-size: 13px; }
  .account-brand-top .account-top-name { font-family: 'Mozhou Serif', SimSun, serif; font-weight: 600; font-size: 26px; color: #242424; }
  .account-login-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .9fr); gap: 50px; align-items: center; width: min(1240px, calc(100% - 100px)); margin: 4vh auto 60px; min-height: 620px; }
  .account-brand-visual { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .account-brand-visual img { width: min(520px, 100%); height: auto; mix-blend-mode: multiply; }
  .account-brand-visual p { font-size: 15px; line-height: 1.9; color: #505050; text-align: center; max-width: 34ch; margin: 14px 0 0; }
  .account-brand-visual h2 { font-family: 'Mozhou Serif', SimSun, serif; font-size: 20px; font-weight: 600; margin: 22px 0 0; text-align: center; }
  .account-form-pane { border-left: 1px solid #e4e0d7; padding: 10px 0 10px 50px; min-width: 0; }
  .account-brand-header { display: none; }
  .account-login-main h1 { font-family: 'Mozhou Serif', SimSun, serif; font-size: 30px; font-weight: 600; line-height: 1.5; margin: 0 0 26px; }
  .account-tabs { border-color: #e4e0d7; margin-bottom: 24px; }
  .account-tabs button { color: #505050; border-bottom-width: 2px; padding: 12px 14px; }
  .account-tabs button[aria-selected=true], .account-tabs button[aria-pressed=true] { border-color: #b94b38; color: #963c2c; }
  .account-login-main label { font-size: 14px; color: #414141; margin: 20px 0; }
  .account-login-main input:not([type=checkbox]) { border-color: #b7b1a5; color: #242424; font-size: 15px; border-radius: 5px; min-height: 46px; }
  .account-login-main input::placeholder { color: #686359; }
  .account-primary { background: #b94b38; border-radius: 5px; font-size: 15px; min-height: 46px; }
  .account-primary:hover { background: #963c2c; }
  .account-muted, .account-login-main > p { color: #505050; font-size: 13px; }
  #newRecoveryCode { background: #f0ede6; border-color: #d4cec2; }
  .account-guest-link { display: block; color: #505050; text-align: center; font-size: 13px; text-decoration: none; padding: 14px 0; }
  .account-guest-link:hover { color: #963c2c; }
  .account-login-page :focus-visible { outline: 2px solid #b94b38; outline-offset: 3px; }
}

@media (max-width: 1099px) and (hover: hover) and (pointer: fine) {
  .workspace { padding-inline: 24px; }
  .account-toolbar { margin-inline: -24px; padding-inline: 24px; }
  .account-toolbar:has(.site-notice:not([hidden])) { display: flex; flex-wrap: wrap; }
  .site-notice { flex-basis: 100%; max-width: none; margin-inline: 0; }
  .site-notice-content { left: 0; transform: none; max-width: calc(100vw - 300px); }
  .home-workday { grid-template-columns: minmax(0, 1fr); }
  .diagnosis-entry { border-left: 0; padding: 20px 0 0; }
  .account-login-page:not(.account-embedded) .account-login-main { grid-template-columns: minmax(0, 1fr); width: min(520px, calc(100% - 48px)); min-height: 0; gap: 24px; }
  .account-login-page:not(.account-embedded) .account-brand-visual { display: none; }
  .account-form-pane { border-left: 0; padding: 0; }
}
@media (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .brand-mark { width: 48px; height: 48px; }
  .site-notice-content { max-width: calc(100vw - 130px); }
}

.mozhou-admin { background: #f7f5ef; color: #242424; }
.mozhou-admin h1, .mozhou-admin h2 { font-family: 'Mozhou Serif', SimSun, serif; font-weight: 600; }
.mozhou-admin header p, .mozhou-admin p, .mozhou-admin .hint, .mozhou-admin .toolbar span, .mozhou-admin td small { color: #505050; }
.mozhou-admin button { background: #b94b38; border-color: #b94b38; }
.mozhou-admin button:hover { background: #963c2c; }
.mozhou-admin button.secondary { background: #fff; color: #505050; border-color: #c9c2b6; }
.mozhou-admin button.secondary:hover { background: #f1ede5; }
.mozhou-admin a { color: #963c2c; }
.mozhou-admin th { background: #35332f; }
.mozhou-admin tbody tr:hover td { background: #faf7f1; }
.mozhou-admin input, .mozhou-admin textarea, .mozhou-admin select { border-color: #b7b1a5; color: #242424; }
.mozhou-admin .wallet-balance strong, .mozhou-admin .summary-strip strong, .mozhou-admin .ds-totals { color: #242424; }
.mozhou-admin header, .mozhou-admin section, .mozhou-admin .table-wrap, .mozhou-admin .summary-strip { border-color: #e4e0d7; }
.mozhou-admin :focus-visible { outline: 2px solid #b94b38; outline-offset: 3px; }
.mozhou-admin .wallet-section .form-footer { background: #f7f5ef; }
.notice-form { max-width: 800px; }
.notice-form label { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.notice-form input:not([type=checkbox]), .notice-form textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid #b7b1a5; border-radius: 5px; font: inherit; box-sizing: border-box; }
.notice-form textarea { min-height: 100px; resize: vertical; }
.notice-form label.check { flex-direction: row; align-items: center; }
.notice-form .form-footer { gap: 12px; flex-wrap: wrap; }
.notice-form button { min-height: 44px; }
#noticeStatus { overflow-wrap: anywhere; font-size: 14px; }
.mozhou-admin .wallet-mode input, .mozhou-admin .check input { accent-color: #b94b38; }

@media (prefers-reduced-motion: reduce) {
  .ai-image-job { animation: none !important; }
}

/* Keep action icons beside their labels rather than on the text baseline. */
button.primary-button, button.secondary-button, .view .back-link, .view .back-button,
button.text-button, button.notification-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1.5; vertical-align: middle;
}
.primary-button > svg.lucide, .secondary-button > svg.lucide,
.back-link > svg.lucide, .back-button > svg.lucide, .text-button > svg.lucide {
  display: block; width: 18px; height: 18px; flex: 0 0 18px; margin: 0;
}
.tool-grid .tool-card .open-tool { gap: 0; line-height: 1; }
.tool-grid .tool-card .open-tool > svg { display: block; margin: 0; }

.view { width:100%; max-width:none; box-sizing:border-box; min-width:0; }
.history-pagination { display:flex; align-items:center; justify-content:center; gap:16px; padding:12px 0 2px; min-height:46px; font-size:13px; color:var(--muted); }
.history-pagination[hidden] { display:none; }
.history-pagination button,.image-preview-retry { display:inline-grid; place-items:center; width:36px; height:36px; padding:7px; border:1px solid var(--line); border-radius:5px; background:#fff; color:var(--ink); cursor:pointer; }
.history-pagination svg,.image-preview-retry svg { width:18px; height:18px; }
.history-pagination button:disabled { opacity:.4; cursor:default; }
#videoApiConnection,.video-task-tools { display:none!important; }
.ai-image-results { min-width:0; }
.ai-image-results #aiImageJobs { max-height:clamp(360px,calc(100dvh - 280px),720px); overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; align-content:start; padding:4px 8px 4px 4px; margin:0 -4px; }
.ai-image-job { align-self:start; }
.ai-image-job-media { height:180px; aspect-ratio:auto; }
.ai-image-job-media>img { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.ai-image-job-body { padding:12px; gap:8px; }
.ai-image-job-actions { flex-wrap:wrap; gap:5px; }
.ai-image-job-actions :is(a,button) { box-sizing:border-box; min-width:30px; min-height:30px; padding:5px; }
.ai-image-job-meta { flex-wrap:wrap; }
.image-preview-unavailable { padding:16px; display:grid; place-content:center; justify-items:center; gap:10px; text-align:center; height:100%; box-sizing:border-box; color:var(--muted); font-size:12px; }
#videoApiHistory { max-height:360px; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; padding-right:6px; }
.video-api-history-item { width:100%; min-width:0; text-align:left; overflow-wrap:anywhere; }
.video-api-status { min-width:0; position:static; }
.video-task-meta dd,.video-task-title strong { overflow-wrap:anywhere; }
.tool-page-heading { flex-wrap:wrap; }
.catalog-heading-copy,.catalog-toolbar,.catalog-main,.video-api-grid>form,.customer-service-layout>* { min-width:0; }
.account-identity>strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:260px; }
.account-identity>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.site-footer { clear:both; }
@media(min-width:1100px),(hover:hover) and (pointer:fine) {
  .workspace { padding-inline:28px; min-width:0; }
  .account-toolbar { margin-inline:-28px; padding-inline:28px; }
  .workspace>.view { width:100%; max-width:none; margin-inline:0; }
  .home-workday { grid-template-columns:minmax(0,1fr); }
  .home-workday .mexico-clock { width:100%; min-width:0; grid-template-columns:minmax(280px,1.1fr) minmax(220px,1fr); box-sizing:border-box; }
  .home-workday .clock-side { padding-left:32px; }
  .tool-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ai-image-workspace { grid-template-columns:minmax(340px,.95fr) minmax(340px,1.05fr); gap:28px; }
  #aiImageForm { padding-right:28px; }
  .ai-image-job-grid { grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr)); gap:12px; }
  .video-api-grid { grid-template-columns:minmax(320px,1fr) minmax(340px,1fr); gap:28px; align-items:start; }
  .video-api-grid>form { padding-right:28px; }
  .video-api-status { position:static; }
  .catalog-grid { grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); }
  .catalog-layout { grid-template-columns:minmax(0,1fr) 240px; }
  .catalog-card-open img { height:130px; }
}
@media(max-width:1099px) {
  .catalog-layout { grid-template-columns:minmax(0,1fr); }
  .catalog-grid { grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); }
  .catalog-rail { border-left:0; border-top:1px solid var(--line); padding:18px 0 0; }
  .ai-image-workspace,.video-api-grid,.pricing-layout,.customer-service-layout,.customer-translation-grid { grid-template-columns:minmax(0,1fr); }
  #aiImageForm,.video-api-grid>form { border-right:0; padding-right:0; }
  .home-workday .mexico-clock { grid-template-columns:minmax(0,1fr) minmax(180px,.8fr); }
  .account-toolbar { flex-wrap:wrap; gap:12px; }
  .account-identity { flex-basis:100%; }
}
@media(max-width:760px) {
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-search { flex-basis:100%; }
  .catalog-toolbar select { flex:1 1 100px; }
  .shell { padding:0; }
  .workspace { min-width:0; padding-inline:16px; }
  .account-toolbar { margin-inline:-16px; padding-inline:16px; }
  .tool-page-heading h1 { font-size:26px; }
  .ai-image-results #aiImageJobs { max-height:none; overflow:visible; padding:0; margin:0; scrollbar-gutter:auto; }
  .ai-image-job-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .ai-image-job-media { height:140px; }
  .ai-image-job-body { padding:10px; }
  .ai-image-job-meta { display:grid; gap:4px; }
  .ai-image-job-body strong { font-size:13px; }
  #videoApiHistory { max-height:none; overflow:visible; padding:0; }
  .home-workday .mexico-clock { grid-template-columns:minmax(0,1fr); }
  .home-workday .clock-side { grid-column:1; grid-row:auto; border-left:0; padding:16px 0 0; }
  .tool-grid { grid-template-columns:minmax(0,1fr); }
  .catalog-toolbar select { max-width:100%; }
  .video-task-meta { gap:12px; }
  .account-actions { flex-wrap:wrap; }
}
@media(max-width:480px) {
  .video-api-fields { grid-template-columns:minmax(0,1fr); }
  .video-api-fields select { max-width:100%; }
}

.account-menu-options { width: 248px; max-width: calc(100vw - 32px); padding: 6px; }
.account-toolbar .account-menu-options > :is(button,a) { display: flex; align-items: center; width: 100%; box-sizing: border-box; height: auto; min-height: 40px; margin: 0; padding: 10px 14px; border: 0; border-radius: 4px; background: transparent !important; color: #242424 !important; text-align: left; text-decoration: none; font: inherit; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.account-toolbar .account-menu-options > :is(button,a):hover { background: #f1eee7 !important; }
.account-toolbar .account-menu-options > :is(button,a):focus-visible { outline: 2px solid #963c2c; outline-offset: -2px; }
.account-menu-options [data-account-action="logout"] { border-top: 1px solid #ded9d0 !important; border-radius: 0 !important; margin-top: 4px !important; color: #963c2c !important; }
.tool-page-heading h1 [data-effect="heading"] { display: none; }
.tool-page-heading h1.has-tech-text { color: #242424 !important; }
.account-password-dialog { width: 460px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 40px); box-sizing: border-box; margin: auto; padding: 24px; overflow: auto; border: 1px solid #d7d3cb; border-radius: 8px; background: #fff; color: #242424; box-shadow: 0 20px 56px #24242426; font: 14px/1.5 "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.account-password-dialog:not([open]) { display: none; }
.account-password-dialog::backdrop { background: #24242466; }
.account-password-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.account-password-dialog h2 { margin: 0; font: 600 22px/1.4 "Segoe UI", "Microsoft YaHei", sans-serif; }
.account-password-dialog button { min-height: 40px; padding: 9px 16px; border: 1px solid #c9c3b8; border-radius: 5px; background: #fff; color: #242424; font: inherit; cursor: pointer; }
.account-password-dialog .password-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 8px; }
.account-password-dialog .password-close svg { width: 20px; height: 20px; }
.account-password-dialog .account-password-form { display: grid; gap: 18px; max-width: none; margin: 0; padding: 0; border: 0; background: transparent; }
.account-password-dialog label { display: grid; gap: 8px; font-weight: 600; }
.account-password-dialog input { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; padding: 10px 12px; border: 1px solid #b7b1a5; border-radius: 5px; background: #fff; color: #242424; font: inherit; caret-color: #963c2c; }
.account-password-dialog :is(input,button):focus-visible { outline: 2px solid #963c2c; outline-offset: 3px; }
.account-password-dialog [role="status"] { min-height: 0; margin: 0; color: #963c2c; overflow-wrap: anywhere; }
.account-password-dialog [role="status"]:empty { display: none; }
.password-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 2px; }
.account-password-dialog [type="submit"] { background: #b94b38; border-color: #b94b38; color: #fff; }
.account-password-dialog button:hover { background: #f1eee7; }
.account-password-dialog [type="submit"]:hover { background: #963c2c; }
.account-password-dialog :disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) { .account-password-dialog { padding: 20px; } .password-dialog-actions > button { flex: 1; } }
