/* Appearance controls are identical in the creator and commerce workspaces. */
.appearance-controls{display:flex;align-items:center;flex-shrink:0;line-height:1;letter-spacing:0;font-family:"Segoe UI","Microsoft YaHei",sans-serif}
.appearance-switch{display:flex;gap:2px;padding:3px;border:1px solid #2d4052;border-radius:8px;background:#0b141f}
.appearance-switch button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:55px;min-height:30px;padding:6px 8px;border:0;border-radius:5px;background:transparent;color:#91a8be;font-size:11px;font-weight:500;cursor:pointer}
.appearance-controls svg{width:15px;height:15px;flex-shrink:0;pointer-events:none}
.appearance-switch button[aria-pressed="true"]{background:#1d343c;color:#a4f4df;box-shadow:0 1px 3px #0002}
.appearance-switch button:hover{color:#e2f4ff;background:#1b2b3a}
.appearance-switch button[aria-pressed="true"]:hover{background:#22434a;color:#c6ffef}
.appearance-controls button:focus-visible{outline:2px solid #5de4c7;outline-offset:3px}
.appearance-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;padding:11px;border:1px solid #2d4052;border-radius:8px;background:#142332;color:#bed9eb;cursor:pointer}
.appearance-toggle:hover{background:#1d3445;color:#ecfaff}.appearance-toggle svg{width:19px;height:19px}
.appearance-welcome{margin-left:22px}.welcome-header-note{margin-left:auto}
.appearance-login{position:absolute;right:25px;top:23px;z-index:2}.login-screen{position:relative;grid-template-columns:minmax(0,1fr)}
.login-card{min-width:0;max-width:min(420px,calc(100vw - 32px));justify-self:center}
html[data-theme="light"] .appearance-switch{background:#eaf0f6;border-color:#d2dce7}
html[data-theme="light"] .appearance-switch button{color:#5c7085}
html[data-theme="light"] .appearance-switch button[aria-pressed="true"]{background:#fff;color:#076f65;box-shadow:0 1px 4px #1a365b12}
html[data-theme="light"] .appearance-switch button:hover{background:#dce8ed;color:#17475a}
html[data-theme="light"] .appearance-switch button[aria-pressed="true"]:hover{background:#f9ffff;color:#076f65}
html[data-theme="light"] .appearance-toggle{background:#fff;border-color:#d2dce7;color:#30546d}
html[data-theme="light"] .appearance-toggle:hover{background:#e6f1f3;color:#086b62}
html[data-theme="light"] .appearance-controls button:focus-visible{outline-color:#087b70}
@media(max-width:1050px) and (min-width:601px){.top-right,.top-actions{gap:9px}.appearance-switch button{min-width:48px;padding:6px;gap:4px}}
@media(max-width:600px){
  .appearance-switch{display:none}.appearance-toggle{display:flex}.appearance-controls{margin-left:0}
  .topbar .top-right,.topbar .top-actions{gap:3px;min-width:0}.topbar .connection{max-width:98px;padding-left:6px;padding-right:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:1}
  .topbar .breadcrumb{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.topbar .breadcrumb strong{overflow:hidden;text-overflow:ellipsis}
  .welcome-header{gap:12px}.welcome-header-note{display:none}.appearance-welcome{margin-left:auto}
  .appearance-login{top:15px;right:16px}.login-screen{padding-top:65px;padding-bottom:35px}
}
@media(max-width:360px){.topbar{padding-left:10px;padding-right:10px;gap:5px}.topbar .connection{max-width:76px;font-size:9px}.topbar .mobile-home{width:30px}.topbar .mobile-home img{width:29px;height:29px}.topbar .breadcrumb strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){.appearance-controls *{transition:none!important}}

/* HAILUO TYPOGRAPHY OVERRIDES - START */
/* Shared readable type scale. Append after theme styles; colors, geometry,
   SVG dimensions, icon glyphs, and the large welcome/statistic type stay intact. */
body{font-size:15px}

/* Page hierarchy and everyday actions. */
.page-head h1{font-size:31px}
.page-head .page-heading h1,.collabs-page .page-head h1,.board-page-head h1{font-size:29px}
.page-head p,.page-head p.description,.collabs-page .page-head p,.board-page-head p{font-size:14px}
.panel-head h2,.panel-heading h2,.field-section-heading h3,.board-todos-head h2,.board-section-heading h2{font-size:16px}
.panel-head p,.panel-heading p,.panel-heading a,.panel-head .text-link{font-size:13px}
.primary,.secondary,.quiet,.table-action,.row-edit,.text-link,.field-shortcut,.filter-toggle,.mobile-filter-toggle{font-size:13px}
.page-head button,.collabs-page .page-head button{font-size:14px}
.metric-top,.metric-bottom,.metric-foot,.metric-value small,.financial-grid span,.financial-grid strong small{font-size:13px}
.bar-line,.progress-label,.quick-link small,.chart-column,.chart-value,.subtle-note,.cost-note,.cost-pending{font-size:12px}
.quick-link strong{font-size:14px}

/* Navigation text only: collapsed tablet nav and icon spans remain unchanged. */
.sidebar .brand span{font-size:18px}
.sidebar .brand small,.sidebar .nav-caption,.sidebar .nav-count{font-size:12px}
.sidebar-foot .local-tag,.sidebar-foot p,.sidebar .sidebar-foot,.sidebar-foot .foot-brand{font-size:12px}
.sidebar-foot small,.sidebar-foot .foot-brand span{font-size:10px}
.connection,.footer{font-size:12px}
.breadcrumb strong{font-size:14px}
.appearance-switch button{font-size:12px}
@media(min-width:801px){.sidebar nav a{font-size:15px}.breadcrumb{font-size:13px}}

/* Tables, grouped specifications, and record cards. */
table{font-size:14px}
th,.collaboration-table th,.product-variant-table th{font-size:13px}
td,.collaboration-table td,.product-variant-table td,.report-table td{font-size:14px}
td small,.collaboration-table td small,.collaboration-table td small.financial-detail{font-size:12px}
.collaboration-table td strong,.person-name strong,.creator-cell strong{font-size:15px}
.person-name small,.collaboration-table .creator-cell .person-name small{font-size:12px}
.badge,.count-pill,.collaboration-count,.listing-progress small{font-size:12px}
.collaboration-caption,.table-caption,.table-footer,.collaboration-panel .table-footer,.result-count,.pagination,.pagination button{font-size:13px}
.table-caption strong{font-size:14px}
.product-group-name strong,.product-group-price,.record-card-head h3{font-size:15px}
.product-group-name small,.product-group-price small,.product-group-action,.product-links,.product-link-missing button{font-size:13px}
.record-card-head small,.card-field label,.card-badges>span{font-size:12px}
.card-field>div,.primary-cell,.record-link{font-size:14px}
.weimob-heading h2{font-size:16px}
.weimob-heading p,.weimob-heading button,.weimob-status,.weimob-meta,.weimob-message,.jobs-strip,.jobs-strip.error{font-size:13px}
.toolbar select,.collaboration-panel .toolbar select,.toolbar .record-filters select,.filters select,.filter-select,.toolbar .search-box input,.toolbar .search-box input:focus{font-size:14px}
.toolbar .list-sort-control label,.archive-filter{font-size:13px}
.toolbar .list-sort-control select{font-size:14px}

/* Editors, calculated values, source status, and attribution/order details. */
.drawer-head h2{font-size:24px}
.drawer-head .eyebrow,.field-section-heading p,.field small,.field-help,.field .field-help{font-size:13px}
.field label,.field-divider,.field-section-heading h3{font-size:14px}
.field input,.field select,.field textarea{font-size:15px}
.drawer-bottom p,.drawer-bottom .save-description,.save-description,.editor-notice,.error-text,.info-row label,.note{font-size:13px}
.info-row code,.info-row .muted{font-size:14px}
.attribution-heading h4,.attribution-orders-heading h5{font-size:14px}
.attribution-heading>span,.attribution-note,.attribution-control small,.attribution-control label,.attribution-error,.attribution-confirm-label{font-size:13px}
.attribution-control input,.attribution-control select{font-size:15px}
.attribution-actions .primary,.attribution-actions .secondary,.attribution-actions .text-link,.attribution-orders-heading .text-link{font-size:13px}
#attribution-preview h5,.attribution-preview-grid,.attribution-orders-summary{font-size:13px}
.attribution-order-heading strong,.attribution-order-money strong,.attribution-order-item strong{font-size:14px}
.attribution-order-heading>span,.attribution-order-money span,.attribution-order-items summary,.attribution-order-item>span,.attribution-order-item small,.attribution-orders-empty{font-size:12px}
.toast{font-size:14px!important} /* Old phone theme fixes this one size with !important. */

/* Follow-up board, reminders, and schedule dialog. */
.board-column-head h2,.board-todo-person .person-name strong,.board-card-person .person-name strong{font-size:15px}
.board-card-person .person-name small,.board-todo-person .person-name small{font-size:12px}
.board-total,.board-caption,.board-footnote,.board-stage-count,.board-platform,.board-contact-badge,.board-pending,.board-card-states,.board-card-date{font-size:12px}
.board-card-states strong,.board-followers,.board-card-note,.board-card-followup,.board-todo-detail,.board-todo-timing{font-size:13px}
.board-card-followup small,.board-status-menu small,.board-todo-actions small,.board-todo-summary span,.board-todo-summary small{font-size:12px}
.board-card-actions button,.board-status-menu button,.board-todo-actions button,.board-view-tabs button,.board-done-badge,.board-todo-empty{font-size:13px}
.board-search input,.board-toolbar select{font-size:14px}
.board-schedule-dialog h2{font-size:21px}
.board-schedule-dialog header p,.board-schedule-dialog label,.board-schedule-help,.board-schedule-warning,.board-schedule-error,.board-schedule-actions button{font-size:13px}
.board-schedule-dialog input{font-size:15px}
.smart-reminders-head h2{font-size:21px}
.smart-reminders-head h2>span,.smart-reminders-head p,.reminder-group h3>span,.reminder-item p,.reminder-item footer,.reminder-urgency,.reminder-actions small{font-size:12px}
.reminder-group h3,.reminder-item strong{font-size:15px}
.reminder-actions button,.reminder-completed summary{font-size:13px}

/* Welcome, sign-in, and the public invitation form. */
.welcome-subtitle{font-size:14px}
.welcome-system-title{font-size:22px}
.welcome-system-desc,.welcome-feature-link,.welcome-features .welcome-feature-link,.welcome-footer{font-size:12px}
.login-card h1{font-size:25px}
.login-card>p,.login-card .muted,.login-card label,.login-card .back-portal{font-size:14px}
.login-card input{font-size:16px}
.intake-intro h1{font-size:34px}
.intake-intro>p,.intake-result p{font-size:15px}
.intake-form legend{font-size:17px}
.intake-grid label,.intake-primary{font-size:14px}
.intake-grid :is(input,select,textarea){font-size:16px}
.intake-grid small,.intake-grid .optional,.intake-section-note,.intake-consent,.intake-invitation,.intake-error,.intake-result-note{font-size:13px}
.intake-privacy,.intake-footer{font-size:12px}
.intake-result h2{font-size:24px}

/* Invitation administration is a separate overlay with its own text scale. */
.ia-head h2{font-size:24px}
.ia-create h3,.ia-section-title,.ia-card h3{font-size:16px}
.ia-head p,.ia-tabs button,.ia-primary,.ia-secondary,.ia-danger,.ia-error,.ia-message,.ia-filter label,.ia-filter>span,.ia-empty,.ia-review-notice,.ia-note,.ia-loading,.ia-candidates h4,.ia-candidates label{font-size:14px}
.ia-create-form label,.ia-hint,.ia-meta,.ia-badge,.ia-field small,.ia-review label,.ia-footer{font-size:13px}
.ia-field p,.ia-link-area input,.ia-filter select,.ia-review textarea{font-size:14px}
.ia-review-confirm{font-size:14px!important} /* Match the existing explicit consent size. */

@media(max-width:600px){
  body{font-size:15px}
  .page-head h1,.page-head .page-heading h1,.collabs-page .page-head h1,.board-page-head h1{font-size:26px}
  .page-head p,.page-head p.description,.collabs-page .page-head p,.board-page-head p{font-size:13px}
  .sidebar nav a,.bottom-nav a,.bottom-nav button{font-size:12px}
  #sidebar nav a{font-size:15px} /* Commerce uses an expanded drawer, creator uses a bottom bar. */
  .connection{font-size:11px}
  .breadcrumb strong{font-size:14px}
  .footer{font-size:11px}
  .metric-top,.metric-bottom,.metric-foot,.metric-value small,.financial-grid span,.financial-grid strong small{font-size:12px}
  .panel-head h2,.panel-heading h2{font-size:15px}
  .primary,.secondary,.quiet,.table-action,.row-edit,.page-head button,.collabs-page .page-head button{font-size:14px}
  .mobile-record-head .person-name strong,.creator-mobile-head .person-name strong,.record-card-head h3,.product-variant-card .record-card-head h3{font-size:16px}
  .mobile-record-ordinal strong{font-size:13px}
  .mobile-record-ordinal small,.mobile-record-meta,.mobile-record-finance label,.mobile-record-stats,.mobile-record-review label,.creator-mobile-details label{font-size:12px}
  .mobile-record-product,.mobile-record-product strong,.mobile-record-finance strong,.creator-mobile-details strong,.card-field>div{font-size:15px}
  .creator-mobile-states,.record-card-head small,.card-field label{font-size:13px}
  .mobile-record-edit,.creator-mobile-edit,.product-group-action,.product-link-missing button,.product-variant-card .product-links{font-size:13px}
  .product-group-name strong{font-size:14px}
  .toolbar .search-box input,.toolbar .search-box input:focus,.collaboration-panel .search-box input,.toolbar select,.record-filters select,.toolbar .record-filters select,.collaboration-panel .toolbar .record-filters select,.toolbar .list-sort-control select,.filters .filter-select{font-size:16px}
  .drawer-head h2{font-size:22px}
  .field label,.field-section-heading h3,.field-divider{font-size:14px}
  .field input,.field select,.field textarea,.attribution-control input,.attribution-control select,.board-search input,.board-toolbar select,.board-schedule-dialog input{font-size:16px}
  .field small,.field-help,.field .field-help,.drawer-bottom p,.save-description,.field-section-heading p{font-size:12px}
  .drawer-bottom .actions .secondary,.drawer-bottom .actions .primary{font-size:14px}
  .board-todos-head h2,.board-section-heading h2{font-size:16px}
  .board-todos-head p,.board-section-heading p,.board-todo-detail,.board-todo-timing,.board-followers,.board-card-note,.board-card-followup{font-size:13px}
  .welcome-system-title{font-size:19px}
  .welcome-subtitle{font-size:13px}
  .welcome-system-desc,.welcome-feature-link,.welcome-features .welcome-feature-link{font-size:12px}
  .welcome-footer,.welcome-footer>span:last-child{font-size:10px}
  .intake-intro h1{font-size:30px}
  .intake-intro>p{font-size:15px}
  .intake-consent,.intake-grid small,.intake-grid .optional,.intake-section-note{font-size:12px}
  .intake-result h2{font-size:23px}
  .ia-head h2{font-size:23px}
  .ia-head p,.ia-hint,.ia-meta,.ia-badge,.ia-footer{font-size:12px}
  .ia-card h3{font-size:15px}
  .ia-filter label,.ia-filter>span,.ia-field small{font-size:12px}
  .intake-admin-overlay :is(input,select,textarea),.ia-link-area input,.ia-filter select,.ia-review textarea{font-size:16px}
}
/* HAILUO TYPOGRAPHY OVERRIDES - END */
