/* Clarity: one light, quiet visual language for the existing ERP modules. */
:root {
  color-scheme: light;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-active: #0068d1;
  --blue-light: #edf5ff;
  --link: #0066cc;
  --bg: #f5f5f7;
  --card-bg: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: #d2d2d7;
  --border-light: #e8e8ed;
  --success: #248a3d;
  --success-bg: #f0f8f1;
  --warning: #a56a0a;
  --warning-bg: #fff9ed;
  --danger: #c63830;
  --danger-bg: #fff2f1;
  --info: #0071e3;
  --info-bg: #edf5ff;
  --sidebar-bg: #fbfbfd;
  --sidebar-border: #e8e8ed;
  --sidebar-hover: #f0f0f3;
  --sidebar-active-bg: #eeeef2;
  --sidebar-text: #1d1d1f;
  --sidebar-text-muted: #6e6e73;
  --shadow-sm: 0 1px 2px #00000003;
  --shadow: 0 2px 8px #00000003;
  --shadow-lg: 0 12px 36px #00000008;
  --shadow-xl: 0 24px 80px #00000018;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --pill: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, Consolas, monospace;
}
body.clarity-theme { font-family: var(--font); font-size: 14px; line-height: 1.5; letter-spacing: -.012em; color: var(--text); background: var(--bg); height: 100dvh; }
.clarity-theme button, .clarity-theme input, .clarity-theme select, .clarity-theme textarea { font-family: var(--font); letter-spacing: 0; }
.clarity-theme a { color: var(--link); }
.clarity-theme button:focus-visible, .clarity-theme a:focus-visible, .clarity-theme summary:focus-visible { outline: 3px solid #0071e350; outline-offset: 3px; }
.clarity-theme input, .clarity-theme select, .clarity-theme textarea { accent-color: var(--blue); }
.clarity-theme input::placeholder, .clarity-theme textarea::placeholder { color: #a1a1a6; }
.clarity-theme :is(input, select, textarea):focus-visible { outline-color: #0071e350; }

/* The login is the primary content. The illustration is a small interface study. */
.clarity-theme .login-container { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; flex: 1; height: auto; min-height: 0; width: 100%; padding: 0 40px 30px; overflow-y: auto; background: #f5f5f7; }
.clarity-theme .login-container::before, .clarity-theme .login-brand-panel::after { display: none; }
.clarity-login-head { width: min(1120px, 100%); padding: 32px 0; flex-shrink: 0; }
.clarity-wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.clarity-wordmark strong { color: var(--text); font-size: 20px; font-weight: 650; letter-spacing: -.5px; }
.clarity-wordmark>span:last-child { font-size: 13px; color: var(--text-secondary); border-left: 1px solid var(--border); padding-left: 13px; margin-left: 1px; }
.clarity-mark { width: 31px; height: 31px; display: grid; place-items: center; color: #1d1d1f; background: white; border: 1px solid #dedee3; border-radius: 9px; font-size: 16px; font-weight: 600; }
.clarity-login-layout { width: min(1120px, 100%); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 90px; flex: 1; padding: 12px 25px 60px; }
.clarity-theme .login-brand-panel { padding: 0; min-width: 0; min-height: 0; color: var(--text); background: transparent; display: block; align-self: center; overflow: visible; }
.clarity-theme .login-brand-panel h2 { color: var(--text); font-size: clamp(24px, 2.5vw, 33px); font-weight: 600; letter-spacing: -1px; line-height: 1.3; margin: 0 0 13px; }
.clarity-theme .brand-copy { color: var(--text-secondary); font-size: 14px; letter-spacing: 0; line-height: 1.7; }
.clarity-login-preview { position: relative; margin-top: 42px; padding: 0 12px 35px 0; }
.clarity-preview-window { background: white; border: 1px solid #e1e1e6; border-radius: 18px; box-shadow: 0 14px 42px #00000007; overflow: hidden; transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.clarity-preview-bar { height: 40px; display: flex; align-items: center; gap: 5px; padding: 0 15px; border-bottom: 1px solid #eeeef1; background: #fcfcfd; }
.clarity-preview-bar>span { width: 6px; height: 6px; border-radius: 50%; background: #dedee3; }
.clarity-preview-bar small { font-size: 10px; color: #86868b; margin: 0 auto; padding-right: 28px; }
.clarity-preview-content { padding: 24px 24px 26px; }
.clarity-preview-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.clarity-preview-title>span { font-size: 16px; font-weight: 600; letter-spacing: -.5px; }
.clarity-preview-title>small { font-size: 10px; color: #a0a0a6; }
.clarity-preview-order { display: flex; align-items: center; gap: 11px; }
.clarity-preview-icon { width: 41px; height: 44px; background: #f5f5f7; border-radius: 10px; display: grid; place-items: center; color: #6e6e73; }
.clarity-preview-icon svg { width: 24px; height: 26px; }
.clarity-preview-order strong { display: block; font-size: 13px; font-weight: 550; }
.clarity-preview-order div>span { display: block; color: #86868b; font-size: 10px; margin-top: 5px; }
.clarity-preview-order>i { width: 7px; height: 7px; border-radius: 50%; background: #0071e3; margin-left: auto; }
.clarity-preview-flow { display: flex; align-items: center; gap: 9px; margin: 25px 0 24px; }
.clarity-preview-flow>span { font-size: 10px; color: #a0a0a6; white-space: nowrap; }
.clarity-preview-flow>i { height: 1px; background: #e8e8ed; flex: 1; }
.clarity-preview-flow .done { color: #6e6e73; }
.clarity-preview-flow .current { color: #0071e3; background: #edf5ff; padding: 5px 11px; border-radius: 20px; }
.clarity-preview-divider { height: 1px; background: #f0f0f3; }
.clarity-preview-bottom { display: flex; align-items: center; gap: 26px; margin-top: 22px; }
.clarity-preview-bottom>div:first-child { flex: 1; }
.clarity-preview-bottom>div:first-child>span { font-size: 10px; color: #86868b; }
.clarity-preview-bottom strong { display: block; color: #6e6e73; font-size: 12px; font-weight: 500; margin-top: 6px; }
.clarity-preview-progress { height: 4px; background: #f0f0f3; border-radius: 3px; margin-top: 13px; overflow: hidden; }
.clarity-preview-progress i { display: block; width: 55%; height: 100%; background: #0071e3; border-radius: 3px; }
.clarity-preview-cost { width: 95px; text-align: center; padding-left: 20px; border-left: 1px solid #eeeef1; }
.clarity-preview-cost svg { width: 65px; height: 46px; display: block; margin: 0 auto 8px; }
.clarity-preview-cost span { font-size: 10px; color: #86868b; white-space: nowrap; }
.clarity-preview-note { display: flex; gap: 12px; align-items: center; width: max-content; max-width: 100%; margin: -12px 0 0 auto; padding: 16px 19px; position: relative; background: #ffffffef; border: 1px solid #e8e8ed; border-radius: 13px; box-shadow: 0 9px 26px #00000007; }
.clarity-note-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f5f5f7; color: #6e6e73; font-size: 15px; }
.clarity-preview-note strong { display: block; font-size: 11px; color: #424245; font-weight: 550; }
.clarity-preview-note div>span { display: block; font-size: 10px; color: #86868b; margin-top: 5px; }
.clarity-theme .login-card { width: 100%; max-width: 400px; justify-self: end; padding: 40px 34px 26px; margin: 0; border: 1px solid #e5e5ea; border-radius: 22px; box-shadow: 0 14px 40px #00000004; background: white; align-self: center; }
.clarity-theme .login-logo { margin-bottom: 28px; text-align: left; }
.clarity-theme .login-logo .icon { display: none; }
.clarity-theme .login-logo h1 { color: #1d1d1f; font-size: 32px; letter-spacing: -1.2px; font-weight: 600; line-height: 1.3; margin-bottom: 11px; }
.clarity-theme .login-logo .subtitle { color: #86868b; font-size: 13px; letter-spacing: 0; }
.clarity-theme .login-tabs { padding: 3px; gap: 3px; border: 0; background: #f5f5f7; border-radius: 10px; margin-bottom: 25px; }
.clarity-theme .login-tab { border: 0; border-radius: 7px; padding: 8px 0; color: #86868b; font-size: 12px; font-weight: 500; }
.clarity-theme .login-tab.active { background: white; color: #1d1d1f; box-shadow: 0 1px 5px #00000009; }
.clarity-theme .login-tab.active::after { display: none; }
.clarity-theme .login-card .form-group { margin-bottom: 18px; }
.clarity-theme .login-card .form-group label { color: #6e6e73; font-size: 12px; font-weight: 400; margin-bottom: 8px; }
.clarity-theme .login-card .form-group input { height: 48px; padding: 12px 14px; font-size: 14px; border-radius: 10px; border-color: #d2d2d7; background: #fff; color: #1d1d1f; }
.clarity-theme .login-card .form-group input:focus { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e315; }
.clarity-theme .login-card .remember-row { margin: 0 0 19px; }
.clarity-theme .login-card .remember-row span { font-size: 11px; color: #86868b; }
.clarity-theme .login-card .remember-row input { padding: 0; border-radius: 3px; }
.clarity-theme .login-card .btn-login { height: 47px; min-height: 47px; border-radius: 980px; margin-top: 2px; font-size: 13px; letter-spacing: 0; background: #0071e3; color: white; box-shadow: none; }
.clarity-theme .login-card .btn-login:hover { background: #0077ed; box-shadow: none; transform: none; }
.clarity-theme .login-card .btn-login:active { background: #0068d1; }
.clarity-theme .login-card .error-msg { font-size: 12px; color: var(--danger); margin-top: 12px; min-height: 12px; }
.clarity-theme #qrBox { border-color: #e8e8ed; border-radius: 14px; }

/* A small set of everyday pages; the full application stays in disclosure groups. */
.clarity-theme .sidebar { width: 228px; background: #fbfbfd; color: #1d1d1f; border-right: 1px solid #e8e8ed; box-shadow: none; transition: width .2s ease; }
.clarity-theme .sidebar .logo { min-height: 83px; padding: 22px 24px; border-bottom: 0; gap: 10px; }
.clarity-theme .sidebar .logo .logo-icon { width: 30px; height: 31px; border: 1px solid #dedee3; border-radius: 9px; color: #1d1d1f; background: white; font-size: 16px; }
.clarity-theme .logo-wordmark b { color: #1d1d1f; font-size: 17px; letter-spacing: -.5px; font-weight: 600; }
.clarity-theme .logo-wordmark small { color: #86868b; font-size: 10px; letter-spacing: 0; }
.clarity-theme .sidebar nav { padding: 6px 13px 24px; scrollbar-width: thin; }
.clarity-nav-section-label { font-size: 10px; color: #a1a1a6; padding: 4px 12px 9px; }
.clarity-theme .sidebar nav a { min-height: 42px; padding: 10px 12px; margin-bottom: 3px; font-size: 12px; font-weight: 400; color: #6e6e73; border-radius: 8px; letter-spacing: 0; gap: 12px; }
.clarity-theme .sidebar nav a:hover { background: #f0f0f3; color: #1d1d1f; }
.clarity-theme .sidebar nav a.active { color: #1d1d1f; background: #eeeef2; box-shadow: none; font-weight: 550; }
.clarity-theme .sidebar nav a .nav-icon { color: #86868b; opacity: 1; width: 17px; height: 18px; font-size: 16px; }
.clarity-theme .sidebar nav a.active .nav-icon { color: #0071e3; }
.clarity-theme .sidebar .nav-icon svg { width: 17px; height: 17px; stroke-width: 1.5; }
.clarity-nav-divider { height: 1px; background: #e8e8ed; margin: 20px 11px 18px; }
.clarity-nav-more { padding-bottom: 8px; }
.clarity-nav-group { margin: 0 0 4px; border: 0; }
.clarity-nav-group>summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 42px; color: #86868b; font-size: 12px; cursor: pointer; user-select: none; border-radius: 8px; }
.clarity-nav-group>summary::-webkit-details-marker { display: none; }
.clarity-nav-group>summary:hover { color: #1d1d1f; background: #f0f0f3; }
.clarity-nav-group>summary .nav-icon { width: 17px; height: 18px; flex-shrink: 0; color: #a1a1a6; }
.clarity-nav-chevron { width: 10px; height: 10px; margin-left: auto; color: #b0b0b7; transition: transform .15s; flex-shrink: 0; }
.clarity-nav-group[open]>summary .clarity-nav-chevron { transform: rotate(90deg); }
.clarity-nav-group[open]>summary { color: #6e6e73; }
.clarity-nav-children { padding: 3px 0 5px 13px; margin: 0 0 2px 8px; border-left: 1px solid #e8e8ed; }
.clarity-theme .sidebar .clarity-nav-children a { min-height: 36px; padding: 8px 10px; font-size: 11px; gap: 10px; }
.clarity-theme .sidebar .clarity-nav-children .nav-icon { width: 14px; height: 15px; }
.clarity-theme .sidebar .clarity-nav-children .nav-icon svg { width: 14px; height: 14px; }
.clarity-theme .sidebar-footer { min-height: 65px; padding: 16px 24px; color: #86868b; border-color: #e8e8ed; font-size: 10px; letter-spacing: 0; gap: 10px; }
.clarity-theme .sidebar-footer small { font-size: 9px; color: #a1a1a6; margin-top: 3px; }
.clarity-theme .workspace-dot { background: #a1a1a6; box-shadow: none; width: 5px; height: 5px; }
.clarity-is-admin .sidebar nav .admin-only { display: flex; }
.clarity-theme .sidebar nav [hidden] { display: none !important; }
.clarity-theme .content { background: #f5f5f7; }
.clarity-theme .topbar { min-height: 65px; padding: 14px 30px; background: #fbfbfde8; border-color: #e8e8ed; backdrop-filter: blur(18px); }
.clarity-topbar-leading { display: flex; align-items: center; gap: 17px; min-width: 0; }
.clarity-theme .topbar .breadcrumb { color: #1d1d1f; font-size: 13px; font-weight: 550; letter-spacing: 0; white-space: nowrap; }
.clarity-theme .topbar .breadcrumb::before { display: none; }
.clarity-theme .topbar .user-info { font-size: 11px; color: #86868b; gap: 16px; }
.clarity-theme .topbar .user-info>span::before { display: none; }
.clarity-theme .topbar .btn-logout { color: #6e6e73; background: transparent; border: 0; padding: 7px 0; font-size: 11px; border-radius: 5px; }
.clarity-theme .topbar .btn-logout:hover { background: transparent; color: #0071e3; }
.clarity-sidebar-toggle { border: 0; background: transparent; color: #86868b; width: 27px; height: 27px; padding: 3px; display: grid; place-items: center; cursor: pointer; border-radius: 5px; }
.clarity-sidebar-toggle:hover { color: #1d1d1f; background: #eeeef2; }
.clarity-sidebar-toggle svg { width: 20px; height: 20px; }
.clarity-theme .menu-toggle { color: #6e6e73; }
.clarity-theme .inner-content { padding: 31px 34px 44px; max-width: 1600px; }
.clarity-theme .site-footer { background: #f5f5f7; color: #a1a1a6; border-color: #e8e8ed; padding: 8px 16px; min-height: 31px; font-size: 9px; }
.clarity-theme .site-footer a { color: #a1a1a6; }
.clarity-theme .police-icon { opacity: .5; }

/* Common controls and data surfaces, without changing their positioning. */
.clarity-theme .card, .clarity-theme .stat-card { border-color: #e8e8ed; border-radius: 16px; background: #fff; box-shadow: 0 2px 9px #00000002; }
.clarity-theme .section-title { color: #1d1d1f; font-size: 16px; letter-spacing: -.3px; }
.clarity-theme .stat-card .num { color: #1d1d1f; letter-spacing: -1px; font-weight: 600; }
.clarity-theme .stat-card .label { color: #86868b; font-size: 12px; }
.clarity-theme .btn { color: #424245; background: #fff; border-color: #dcdce1; box-shadow: none; border-radius: 980px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.clarity-theme .btn:hover { color: #1d1d1f; background: #f5f5f7; border-color: #c7c7cc; box-shadow: none; transform: none; }
.clarity-theme .btn.btn-primary, .clarity-theme .btn.btn-success { color: #fff; background: #0071e3; border-color: #0071e3; }
.clarity-theme .btn.btn-primary:hover, .clarity-theme .btn.btn-success:hover { background: #0077ed; border-color: #0077ed; color: #fff; }
.clarity-theme .btn.btn-danger { color: #c63830; background: #fff; border-color: #eed9d7; }
.clarity-theme .btn.btn-danger:hover { color: #b02e27; background: #fff5f4; border-color: #dfb4b0; }
.clarity-theme .btn.btn-sm { min-height: 29px; font-size: 11px; padding: 5px 11px; border-radius: 980px; }
.clarity-theme .btn:disabled, .clarity-theme .wf-blocked-action>.btn:disabled { background: #f5f5f7; color: #a1a1a6; border-color: #e8e8ed; cursor: not-allowed; box-shadow: none; opacity: 1; }
.clarity-theme :is(.form-row, .form-group, .wf-field, .fq-field, .cm-modal) :is(input, select, textarea),
.clarity-theme :is(.fq-toolbar, .fq-process-add, .cm-toolbar) :is(input, select),
.clarity-theme .wf-toolbar>select { color: #1d1d1f; border-color: #dcdce1; background: white; border-radius: 8px; box-shadow: none; }
.clarity-theme :is(.form-row, .form-group, .wf-field, .fq-field, .cm-modal) :is(input, select, textarea):focus,
.clarity-theme :is(.fq-toolbar, .fq-process-add, .cm-toolbar) :is(input, select):focus { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e312; outline: none; }
.clarity-theme :is(.form-row, .form-group) label,
.clarity-theme :is(.wf-field, .fq-field, .cm-field)>span { color: #6e6e73; font-size: 12px; font-weight: 400; }
.clarity-theme :is(.wf-field, .fq-field, .cm-modal) :is(input, select, textarea):disabled,
.clarity-theme .wf-field input[readonly] { background: #f5f5f7; color: #86868b; }
.clarity-theme :is(.fq-check, .cm-check, .wf-mine) { color: #6e6e73; }
.clarity-theme :is(.fq-check, .cm-check) input { accent-color: #0071e3; }
.clarity-theme .wf-search { border-color: #dcdce1; border-radius: 8px; background: white; }
.clarity-theme .wf-search>span { color: #86868b; }
.clarity-theme .wf-search input { color: #1d1d1f; font-size: 12px; }
.clarity-theme .wf-search:focus-within { border-color: #0071e3; box-shadow: 0 0 0 3px #0071e312; }
.clarity-theme table { color: #424245; }
.clarity-theme table thead { background: #fafafc; }
.clarity-theme th, .clarity-theme .cm-table th { color: #86868b; background: #fafafc; font-size: 11px; font-weight: 500; letter-spacing: 0; border-color: #e8e8ed; }
.clarity-theme td { color: #424245; border-color: #eeeef1; }
.clarity-theme tr:hover td { background: #fafafc; }
.clarity-theme td b, .clarity-theme td strong, .clarity-theme .cm-table b { color: #1d1d1f; font-weight: 550; }
.clarity-theme table td small, .clarity-theme .cm-table td small { color: #86868b; font-size: 11px; }
.clarity-theme td code, .clarity-theme .mat-code { color: #6e6e73; background: #f5f5f7; border-color: #e8e8ed; }
.clarity-theme .fq-table-card th { color: #86868b !important; background: #fafafc !important; }
.clarity-theme .fq-table-card td strong { color: #1d1d1f; }
.clarity-theme .fq-tiers th { color: #86868b !important; background: transparent !important; }
.clarity-theme .fq-tiers td { color: #6e6e73; border-color: #eeeef1; }
.clarity-theme .fq-tiers tr.active td { color: #0071e3; background: #f5f8fd; }
.clarity-theme :is(.badge, .wf-badge, .fq-badge, .cm-badge, .stock-badge) { border-radius: 6px; font-weight: 400; }
.clarity-theme :is(.badge-default, .wf-waiting, .wf-normal, .wf-internal, .fq-draft, .cm-cancelled) { color: #86868b; background: #f5f5f7; border-color: #e8e8ed; }
.clarity-theme :is(.badge-primary, .badge-processing, .badge-info, .wf-running, .wf-sent, .fq-sent, .cm-pending) { color: #0066cc; background: #edf5ff; border-color: #e1edfc; }
.clarity-theme :is(.badge-success, .wf-completed, .wf-approved, .wf-passed, .wf-release, .wf-closed, .wf-received, .fq-converted, .cm-received, .cm-active, .cm-in, .stock-ok) { color: #248a3d; background: #f0f8f1; border-color: #e3eee5; }
.clarity-theme :is(.wf-urgent, .wf-hold, .wf-failed, .wf-rejected, .wf-scrap, .badge-danger, .stock-zero, .stock-low) { color: #c63830; background: #fff2f1; border-color: #f4dfdd; }
.clarity-theme :is(.wf-partial, .wf-rework, .cm-partial, .cm-out, .badge-warning, .stock-warn) { color: #a56a0a; background: #fff9ed; border-color: #f2e8d1; }

/* Existing page modules receive neutral surfaces and a single blue action colour. */
.clarity-theme :is(.wf-page, .fq-page, .cm-page, .wf-modal, .fq-modal, .cm-modal) { color: #1d1d1f; }
.clarity-theme .fq-page { --fq-green: #0071e3; --fq-muted: #86868b; --fq-line: #e8e8ed; }
.clarity-theme :is(.wf-heading, .fq-heading, .cm-heading, .space-heading) h1 { color: #1d1d1f; letter-spacing: -1px; font-weight: 600; }
.clarity-theme :is(.wf-heading, .fq-heading, .cm-heading, .space-heading) p,
.clarity-theme :is(.wf-muted, .cm-caption, .fq-footnote, .wf-footnote, .wf-count, .fq-toolbar>span, .cm-toolbar>span, .fq-card-title>span, .wf-section-header>span) { color: #86868b; }
.clarity-theme :is(.wf-eyebrow, .fq-eyebrow, .cm-heading small) { color: #86868b; letter-spacing: .5px; font-weight: 500; }
.clarity-theme .fq-heading .fq-eyebrow, .clarity-theme .wf-heading .wf-eyebrow { display: none; }
.clarity-theme .fq-toolbar>input { flex: 1 1 220px; max-width: 420px; min-width: 150px; }
.clarity-theme .fq-toolbar>select { width: 160px; flex: none; }
.clarity-theme :is(.wf-stat, .fq-stats>div, .cm-summary>div) { background: #fff; border-color: #e8e8ed; border-radius: 14px; box-shadow: none; }
.clarity-theme .fq-stats>div:first-child { background: #fff; border-color: #e8e8ed; }
.clarity-theme :is(.wf-stat>strong, .fq-stats strong, .cm-summary strong) { color: #1d1d1f; font-weight: 600; letter-spacing: -.8px; }
.clarity-theme :is(.wf-stat>span, .wf-stat>small, .fq-stats span, .fq-stats small, .cm-summary span) { color: #86868b; }
.clarity-theme .wf-stat-dark { background: #fff; border-color: #e8e8ed; }
.clarity-theme .wf-stat-dark::after { display: none; }
.clarity-theme .wf-stat-dark>strong { color: #1d1d1f; }
.clarity-theme .wf-stat-dark>span, .clarity-theme .wf-stat-dark>small { color: #86868b; }
.clarity-theme .wf-stat-warm>strong { color: #1d1d1f; }
.clarity-theme :is(.wf-section-header h3, .fq-card-title h2, .cm-section-title, .cm-section-title h3, .cm-card>h3, .cm-modal h3, .fq-settings-card h3) { color: #1d1d1f; font-weight: 550; letter-spacing: -.3px; }
.clarity-theme :is(.fq-table-card, .fq-settings-card, .cm-card) { border-color: #e8e8ed; }
.clarity-theme :is(.wf-note, .wf-count-preview, .wf-spec-grid, .wf-detail-grid, .wf-focus-card, .fq-callout, .fq-process-empty, .fq-paper-preview, .fq-convert-summary) { color: #6e6e73; background: #fafafc; border-color: #e8e8ed; }
.clarity-theme :is(.wf-callout, .wf-callout.wf-subtle) { color: #6e6e73; background: #f5f5f7; border-left-color: #d2d2d7; }
.clarity-theme .wf-callout a, .clarity-theme .wf-note a { color: #0066cc; }
.clarity-theme :is(.warning, .wf-alert, .cm-warning) { color: #96650f; background: #fffaf0; border-color: #f1e7d3; }
.clarity-theme :is(.wf-error, .fq-error, .fq-page-error, .fq-preview-error, .cm-error) { color: #b93830; background: #fff5f4; border-color: #f1ddda; }
.clarity-theme :is(.wf-note strong, .wf-detail-grid strong, .wf-spec-grid strong, .wf-detail-head h2, .wf-step-title h4, .wf-detail-bottom h3, .wf-resolution h3) { color: #1d1d1f; }
.clarity-theme :is(.wf-spec-grid span, .wf-detail-grid span, .wf-detail-head p, .wf-step-meta, .wf-step-results, .wf-inline, .wf-cost-line, .wf-mini-list>div, .cm-note, .cm-print-signatures) { color: #86868b; }
.clarity-theme :is(.wf-step-meta b, .wf-cost-line b, .wf-mini-list b, .wf-step-results b) { color: #424245; }
.clarity-theme :is(.wf-detail-grid>div, .wf-spec-grid>div, .wf-detail-bottom, .wf-step, .wf-task, .wf-task-list, .wf-form-actions, .cm-form-footer, .fq-form-actions, .fq-card-title, .cm-purchase-line, .cm-receive-line) { border-color: #e8e8ed; }
.clarity-theme :is(.wf-form-hint, .cm-form-footer small, .fq-form-actions>span, .wf-blocked-action small, .wf-mini-list small, .wf-step-editor legend) { color: #86868b; }
.clarity-theme .wf-step:not(:last-child)::before { background: #e8e8ed; }
.clarity-theme .wf-step-number { color: #86868b; background: #f5f5f7; border-color: #e8e8ed; }
.clarity-theme .wf-step.running .wf-step-number { color: #0071e3; background: #edf5ff; border-color: #e1edfc; }
.clarity-theme .wf-step.completed .wf-step-number { color: #248a3d; background: #f0f8f1; border-color: #e3eee5; }
.clarity-theme .wf-step-editor { background: #fafafc; border-color: #e8e8ed; }
.clarity-theme .wf-step-editor legend b { color: #0071e3; }
.clarity-theme :is(.wf-upload, .wf-uploaded) { background: #fafafc; border-color: #dcdce1; }
.clarity-theme .wf-upload>label:hover { background: #f5f5f7; }
.clarity-theme :is(.wf-upload strong, .wf-uploaded) { color: #6e6e73; }
.clarity-theme .wf-upload>label>span { color: #86868b; }
.clarity-theme .wf-file { background: #f5f5f7; border-color: #e8e8ed; color: #0066cc; }
.clarity-theme .wf-link { color: #0066cc; }
.clarity-theme .wf-link:hover { color: #0077ed; }
.clarity-theme .wf-task-marker, .clarity-theme .wf-empty-icon, .clarity-theme .fq-empty-mark { color: #86868b; background: #f5f5f7; border-color: #e8e8ed; }
.clarity-theme .wf-task-marker.active { color: #0071e3; background: #edf5ff; }
.clarity-theme .wf-task strong { color: #1d1d1f; }
.clarity-theme .wf-task small { color: #86868b; }
.clarity-theme .wf-focus-card h3 { color: #1d1d1f; }
.clarity-theme .wf-focus-card>p { color: #86868b; }
.clarity-theme .wf-quick-links .btn { border-color: #e8e8ed; background: #fff; color: #6e6e73; }
.clarity-theme .wf-quick-links .btn:hover { color: #0071e3; background: #fff; }
.clarity-theme :is(.empty, .wf-empty, .wf-empty p, .fq-empty p, .cm-empty, .cm-empty>span) { color: #86868b; }
.clarity-theme :is(.wf-empty h3, .fq-empty h3) { color: #1d1d1f; }
.clarity-theme .wf-share-success { color: #0071e3; background: #edf5ff; }
.clarity-theme .wf-share-success+h2 { color: #1d1d1f; }
.clarity-theme :is(.fq-section, .fq-summary, .fq-mini-stats, .fq-process-line, .fq-cost-subtotal) { border-color: #e8e8ed; }
.clarity-theme .fq-section h3 { color: #1d1d1f; font-weight: 550; }
.clarity-theme .fq-section h3 i { color: #86868b; border-color: #d2d2d7; }
.clarity-theme .fq-chips .btn { background: #f5f5f7; color: #6e6e73; }
.clarity-theme :is(.fq-process-title strong, .fq-process-total, .fq-layout-caption>strong, .fq-cost-line b, .fq-cost-subtotal b, .fq-summary h4, .fq-convert-summary strong, .fq-convert-summary b) { color: #1d1d1f; }
.clarity-theme :is(.fq-process-title small, .fq-inline-note, .fq-editor-head p, .fq-layout-caption>span, .fq-layout-caption>small, .fq-mini-stats span, .fq-cost-line, .fq-cost-subtotal span, .fq-tier-note, .fq-convert-summary span) { color: #86868b; }
.clarity-theme .fq-summary-total { color: #1d1d1f; background: #fafafc; border-bottom: 1px solid #e8e8ed; }
.clarity-theme .fq-summary-total span, .clarity-theme .fq-summary-total small { color: #86868b; opacity: 1; letter-spacing: 0; }
.clarity-theme .fq-summary-total strong { color: #1d1d1f; }
.clarity-theme .fq-mini-stats strong { color: #1d1d1f; }
.clarity-theme .fq-layout { background: #f5f5f7; }
.clarity-theme .fq-layout svg>rect:nth-child(n+3) { fill: #eaf2fc; stroke: #80addd; }
.clarity-theme .fq-editor-footer { background: #fff; border-color: #e8e8ed; }
.clarity-theme .fq-editor-footer>span { color: #86868b; }
.clarity-theme .cm-receive-line small { color: #86868b; }
.clarity-theme .space-board { background: #f5f5f7; }
.clarity-theme .space-column { background: #eeeef2; }
.clarity-theme .space-column h2, .clarity-theme .space-task h3 { color: #1d1d1f; }
.clarity-theme .space-task { background: #fff; border-color: #e8e8ed; box-shadow: none; }
.clarity-theme .space-task.space-overdue { border-top-color: #c63830; }
.clarity-theme :is(.space-board-summary, .space-task-top, .space-task p, .space-task dt, .space-column h2 span, .space-notice small, .space-due small, .space-empty) { color: #86868b; }
.clarity-theme .space-notice p { color: #6e6e73; }
.clarity-theme .space-notice.unread b::before, .clarity-theme .space-trend i { background: #0071e3; }
.clarity-theme .space-order-flow span { background: #eeeef2; color: #86868b; }
.clarity-theme .space-order-flow .done { background: #edf5ff; color: #0066cc; }
.clarity-theme .space-tags :is(b, span) { background: #fff9ed; color: #a56a0a; }
.clarity-theme #spaceMobileNav { border-color: #e8e8ed; background: #fbfbfdf2; backdrop-filter: blur(18px); box-shadow: none; }
.clarity-theme #spaceMobileNav button { color: #86868b; }
.clarity-theme #spaceMobileNav .active { color: #0071e3; }
.clarity-theme :is(#wfToast, #fqToast, #cmToast) { color: #1d1d1f; background: #ffffffef; border: 1px solid #e8e8ed; border-radius: 12px; box-shadow: 0 8px 32px #00000010; backdrop-filter: blur(16px); }
.clarity-theme .modal-overlay { background: #00000035; backdrop-filter: blur(5px); }
.clarity-theme .modal-card { background: #fff; border-color: #e8e8ed; border-radius: 18px; box-shadow: 0 25px 80px #00000026; }
.clarity-theme .modal-header { background: #fff; border-color: #e8e8ed; }
.clarity-theme .modal-header h3 { color: #1d1d1f; font-size: 15px; letter-spacing: -.2px; }
.clarity-theme .modal-close { color: #86868b; background: #f5f5f7; border-radius: 50%; }
.clarity-theme .modal-close:hover { color: #1d1d1f; background: #eeeef2; }

@media (min-width: 769px) {
  .clarity-theme .clarity-sidebar-collapsed .sidebar { width: 76px; }
  .clarity-sidebar-collapsed .sidebar .logo { padding: 23px; }
  .clarity-sidebar-collapsed .sidebar .logo-wordmark,
  .clarity-sidebar-collapsed .sidebar .clarity-nav-label,
  .clarity-sidebar-collapsed .sidebar .clarity-nav-section-label,
  .clarity-sidebar-collapsed .sidebar .clarity-nav-chevron,
  .clarity-sidebar-collapsed .sidebar .sidebar-footer>div,
  .clarity-sidebar-collapsed .sidebar .clarity-nav-children { display: none; }
  .clarity-sidebar-collapsed .sidebar nav { padding-left: 14px; padding-right: 14px; }
  .clarity-sidebar-collapsed .sidebar nav a, .clarity-sidebar-collapsed .clarity-nav-group>summary { justify-content: center; padding: 10px; width: 46px; }
  .clarity-sidebar-collapsed .clarity-nav-divider { margin-left: 7px; margin-right: 7px; }
  .clarity-sidebar-collapsed .sidebar-footer { justify-content: center; padding-left: 0; padding-right: 0; }
}
@media (max-width: 1050px) {
  .clarity-login-layout { gap: 45px; padding-left: 0; padding-right: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .clarity-theme .login-card { padding-left: 28px; padding-right: 28px; }
  .clarity-preview-content { padding: 21px 19px; }
  .clarity-theme .inner-content { padding: 26px 25px 40px; }
  .clarity-theme .sidebar { width: 211px; }
  .clarity-theme .topbar { padding-left: 25px; padding-right: 25px; }
}
@media (max-width: 800px) {
  .clarity-theme .login-container { padding-left: 28px; padding-right: 28px; }
  .clarity-login-layout { gap: 28px; }
  .clarity-theme .login-brand-panel h2 { font-size: 25px; }
  .clarity-theme .brand-copy { font-size: 12px; }
  .clarity-preview-content { padding-left: 16px; padding-right: 16px; }
  .clarity-preview-flow { gap: 6px; }
  .clarity-preview-flow>span { font-size: 9px; }
  .clarity-preview-bottom { gap: 15px; }
  .clarity-preview-note { padding: 13px; gap: 10px; }
  .clarity-preview-note strong { font-size: 10px; }
  .clarity-preview-note div>span { font-size: 9px; }
}
@media (max-width: 768px) {
  .clarity-theme .login-container { padding: 0 24px 22px; }
  .clarity-login-head { padding: 25px 0 12px; max-width: 430px; }
  .clarity-wordmark strong { font-size: 18px; }
  .clarity-wordmark>span:last-child { font-size: 12px; }
  .clarity-mark { width: 29px; height: 29px; font-size: 14px; }
  .clarity-login-layout { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 15px 0 25px; gap: 0; width: min(430px, 100%); flex: 1; }
  .clarity-theme .login-brand-panel { display: none; }
  .clarity-theme .login-card { max-width: 400px; align-self: center; border-radius: 20px; padding: 32px 27px 23px; width: 100%; }
  .clarity-theme .login-logo { margin-bottom: 25px; }
  .clarity-theme .login-logo h1 { font-size: 30px; }
  .clarity-theme .login-logo .subtitle { font-size: 12px; }
  .clarity-theme .login-tabs { margin-bottom: 23px; }
  .clarity-theme .login-card .form-group { margin-bottom: 17px; }
  .clarity-theme .login-card .remember-row { margin-bottom: 17px; }
  .clarity-theme .login-card .form-group input { height: 47px; font-size: 16px; }
  .clarity-theme .sidebar { width: 250px; left: -255px; background: #fbfbfd; border-right-color: #e8e8ed; transition: left .2s ease; }
  .clarity-theme .sidebar.open { left: 0; }
  .clarity-theme .sidebar .logo { min-height: 76px; padding: 20px 24px; }
  .clarity-theme .sidebar nav { padding-top: 3px; }
  .clarity-theme .sidebar nav a { min-height: 43px; font-size: 13px; }
  .clarity-theme .sidebar .clarity-nav-children a { min-height: 39px; font-size: 12px; }
  .clarity-nav-group>summary { font-size: 13px; min-height: 43px; }
  .clarity-theme .sidebar-overlay { background: #00000035; backdrop-filter: blur(2px); }
  .clarity-sidebar-toggle { display: none; }
  .clarity-theme .topbar { min-height: 60px; padding: 13px 18px; }
  .clarity-topbar-leading { gap: 12px; }
  .clarity-theme .topbar .breadcrumb { font-size: 13px; }
  .clarity-theme .topbar .user-info { gap: 12px; font-size: 11px; }
  .clarity-theme .topbar .btn-logout { font-size: 10px; }
  .clarity-theme .inner-content { padding: 25px 18px 35px; }
  .clarity-theme .fq-toolbar>input { flex-basis: 100%; max-width: none; width: 100%; }
  .clarity-theme .card { border-radius: 14px; }
  .clarity-theme .site-footer { font-size: 8px; padding: 7px 8px; min-height: 28px; }
  .clarity-theme .site-footer .footer-sep { margin: 0 4px; }
  body:has(#sidebar.open) #spaceMobileNav { visibility: hidden; pointer-events: none; }
}
@media (max-width: 390px) {
  .clarity-theme .login-container { padding-left: 18px; padding-right: 18px; }
  .clarity-login-head { padding-top: 19px; }
  .clarity-theme .login-card { padding: 27px 22px 18px; }
  .clarity-theme .login-logo h1 { font-size: 28px; }
  .clarity-theme .login-logo { margin-bottom: 22px; }
  .clarity-theme .topbar .user-info { gap: 9px; }
  .clarity-theme .topbar #currentUser { max-width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .clarity-theme .sidebar, .clarity-nav-chevron { transition: none; }
}
