/* OneLaser UI-SPEC / supplied Certia fonts. Work OS density adaptations documented in spec/brand-ui.md. */
:root{
  --font:"Certia","PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
  --display:var(--font);--blue:#D92D0D;--blue-ink:#BF260B;--blue-wash:#FFF7F4;
  --navy:#000;--ink:#000;--muted:#6B6B70;--border:#D2D2D7;--bg:#F5F5F7;
  --surface:#FFF;--surface-soft:#F5F5F7;--selected:#FFF7F4;--action:#D92D0D;
  --action-hover:#BF260B;--focus:#E7310E;--radius:24px;--shadow:0 16px 48px #00000012;
}
html[data-theme=dark]{
  --blue:#FF937C;--blue-ink:#FFB5A5;--blue-wash:#36221F;--navy:#F5F5F7;--ink:#F5F5F7;
  --muted:#B8B8BF;--border:#444449;--bg:#141414;--surface:#202023;--surface-soft:#29292D;
  --selected:#36221F;--action:#D92D0D;--action-hover:#BF260B;--focus:#FF937C;--shadow:0 16px 48px #0004;
}
body{font-family:var(--font);font-size:16px;line-height:1.6;background:var(--bg);color:var(--ink)}
h1,h2,h3,h4{font-family:var(--font);font-weight:800;letter-spacing:-.025em}
html:root .page-heading h1,html:root .gateway-main h1{font-size:32px;line-height:1.2;font-weight:800;letter-spacing:-.025em}
.page-heading p,.gateway-intro{font-size:16px;margin-top:12px;line-height:1.6}
.eyebrow,.page-heading .eyebrow{font-size:12px;line-height:16px;font-weight:800;letter-spacing:.1em}
html:root .gateway{background:var(--bg)}
.gateway-main{padding-top:48px;padding-bottom:48px}.entry-grid{gap:24px;margin-top:32px}
html:root .entry-card{padding:32px;border-radius:28px;border-color:var(--border);background:var(--surface);box-shadow:none}
html:root .entry-card:hover{border-color:var(--blue);box-shadow:var(--shadow);transform:translateY(-2px)}
.entry-card h2{font-size:28px;line-height:1.2}.entry-card p{font-size:14px;line-height:1.6}
.entry-card .entry-bottom{font-size:14px;margin-top:24px;padding-top:16px}.entry-card .entry-number{color:var(--border)}
.entry-card .entry-icon,html:root .entry-card.goal .entry-icon{background:var(--blue-wash);color:var(--blue)}
html:root .sidebar,html:root .topbar,html:root .panel,html:root .stat-card,html:root .objective-card,html:root .integration-card,html:root .review-callout,html:root .okr-statement,html:root .okr-overview,html:root .modal,html:root .drawer{background:var(--surface);border-color:var(--border)}
.panel,.stat-card,.objective-card,.integration-card,.review-callout,.okr-statement,.okr-overview{border-radius:24px;box-shadow:none}
.modal{border-radius:32px}.drawer{border-radius:24px 0 0 24px}
.panel-head{padding:20px 24px;gap:12px}.panel-head h2,.live-login-panel h2{font-size:20px;font-weight:800;line-height:1.3}
.panel-head p{font-size:13px;margin-top:8px}.panel-body{padding:24px}.stat-card{padding:24px}
.stat-label,.stat-card .stat-label{font-size:13px;font-weight:600;color:var(--muted)}
.nav-label{font-size:12px;color:var(--muted);font-weight:600}.nav-item{font-size:14px;min-height:44px;border-radius:12px;padding:12px}
html:root .nav-item.active,html:root .nav-item.active svg{background:var(--selected);color:var(--blue)}
html:root .workspace-switch{font-size:14px;border-radius:12px;padding:12px;gap:8px}
html:root .workspace-symbol,html:root .trial-card,html:root .kanban-col,html:root .code-block,html:root .criterion-number{background:var(--surface-soft);border-color:var(--border);color:var(--muted)}
.btn{min-height:48px;padding:12px 20px;gap:8px;border-radius:999px;font-size:14px;font-weight:600;line-height:1.4;white-space:normal;text-align:center}
html:root .btn{background:var(--surface);border-color:var(--border);color:var(--ink)}
html:root .btn:hover{background:var(--surface-soft);border-color:var(--muted)}
html:root .btn.primary{min-height:52px;background:var(--action);border-color:var(--action);color:#FFF;font-weight:800}
html:root .btn.primary:hover{background:var(--action-hover);border-color:var(--action-hover)}
html:root .btn.soft{background:var(--selected);color:var(--blue);border-color:transparent}
html:root .btn.danger{color:var(--red)}.btn.small{min-height:36px;padding:8px 12px;font-size:13px}
html:root .icon-btn{width:40px;height:40px;border-radius:50%;background:var(--surface);border-color:var(--border)}
html:root .icon-btn:hover{background:var(--surface-soft)}
input,select,textarea{border-radius:12px;padding:12px;min-height:44px;font-size:14px;line-height:1.5}
:root input,:root select,:root textarea{border-color:var(--border);background:var(--surface);color:var(--ink)}
:root input:focus,:root select:focus,:root textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-wash)}
button:focus-visible,a:focus-visible{outline-color:var(--focus)}
.field>span,.field>label{font-size:13px;font-weight:600;line-height:18px;color:var(--muted)}
.field{gap:8px}.form-grid{gap:16px}.hint,.fine,.scope-note,.caption,small{font-size:12px}
.task-table th,.performance-table th{font-size:13px;font-weight:600;line-height:18px}
.task-table td,.performance-table td{font-size:14px;line-height:1.5;padding:16px}
html:root .task-table th,html:root .performance-table th,html:root .table-footer,html:root .drawer-footer,html:root .modal-footer,html:root .artifact,html:root .submit-form{background:var(--surface-soft);color:var(--muted);border-color:var(--border)}
.task-name,.todo-title{font-size:14px;font-weight:600}.task-sub,.todo-meta{font-size:12px}
.badge,.tag{font-size:12px;border-radius:999px;padding:4px 8px}.avatar{font-size:12px;width:32px;height:32px}
.drawer-header h2,.modal-header h2{font-size:24px;font-weight:800;line-height:1.3}
.drawer-description,.modal-header p{font-size:14px;line-height:1.6}
.objective-title,.objective-heading h3{font-size:20px;font-weight:800}
.notice,.review-result,.insight-line{border-radius:16px}
html:root .notice:not(.amber):not(.green),html:root .review-result,html:root .insight-line{background:var(--surface-soft);color:var(--ink);border-color:var(--border)}
.notice svg{color:var(--blue)}
html:root .language-switch{border-radius:999px;background:var(--surface-soft);border-color:var(--border)}
html:root .language-switch button{font-size:13px;min-height:36px;padding:8px;border-radius:999px;color:var(--muted)}
html:root .language-switch button.active{background:var(--surface);color:var(--ink)}
html:root .theme-toggle{width:40px;height:40px;min-height:40px;border-radius:50%;padding:0;background:var(--surface);border-color:var(--border);color:var(--ink)}
.gateway-footer,.gateway-role>span,.topbar .breadcrumb{font-size:12px}
.gateway-flow{gap:16px;font-size:12px;color:var(--muted)}
.live-login-panel{max-width:640px}.live-ai-criterion small,.live-bot-job small,.live-bot-history{font-size:12px}
html[lang=en] .gateway-main h1,html[lang=en] .page-heading h1{font-size:32px}
@media(max-width:670px){
  .gateway-main{padding:32px 0}.entry-grid{gap:16px}.entry-card{padding:24px}.entry-card h2{font-size:24px}
  .page-heading{flex-wrap:wrap;gap:16px}.page-heading h1{overflow-wrap:anywhere}.page-heading p{font-size:14px}
  .panel-head{padding:16px;flex-wrap:wrap}.panel-body{padding:16px}.stat-card{padding:16px}
  .drawer{border-radius:0}.modal{border-radius:24px}.btn{padding:10px 16px}.form-grid{gap:16px}
  .topbar{flex-wrap:wrap;height:auto;min-height:64px;padding:12px 16px;gap:8px}.topbar-right{margin-left:auto;flex-wrap:wrap;gap:8px}
  html:root .topbar .breadcrumb{font-size:12px}.topbar-right .icon-btn{min-width:36px}
  html[lang=en] .okr-levels button{font-size:12px}.gateway-role select{font-size:13px}
  html:root .gateway-header>.display-controls{margin-right:0}.live-login-panel .panel-body{padding:20px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.entry-card:hover{transform:none}}

/* Executive overview shares the website typography and four-pixel spacing grid. */
.exec-asof{text-align:right;max-width:320px}.exec-asof p{margin-top:12px}
.exec-note{font-size:13px;color:var(--muted);line-height:1.6;margin:16px 0 24px}
.exec-panel{margin-bottom:24px}.exec-table{min-width:820px}.exec-table td{white-space:normal}
.exec-progress{display:flex;align-items:center;gap:12px;margin-top:12px}.exec-progress .progress{flex:1;min-width:72px}.exec-progress strong{font-size:14px}
.exec-risk{display:flex;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--border)}
.exec-risk h3{font-size:14px;line-height:1.5;margin:0 0 8px}.exec-risk-labels{display:flex;flex-wrap:wrap;gap:8px;align-content:start;justify-content:end;min-width:88px}
.exec-lower{align-items:start}.exec-entry{margin:24px 0;display:flex;justify-content:center}
@media(max-width:640px){.exec-asof{text-align:left}.exec-risk{padding:16px;flex-direction:column}.exec-risk-labels{justify-content:start}.exec-lower{grid-template-columns:1fr}}

/* Existing DingTalk OKR fields, grouped for readable review. */
.okr-plan{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:20px 24px;margin:0;border-top:1px solid var(--border);font-size:13px}.okr-plan dt{font-size:12px;color:var(--muted);margin-bottom:6px}.okr-plan dd{margin:0;font-weight:600;overflow-wrap:anywhere}.okr-rubric{display:flex;flex-wrap:wrap;gap:8px 20px;padding:14px 0;font-size:12px;color:var(--muted)}.okr-rubric strong{color:var(--ink)}.okr-score-summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;padding:16px 24px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.okr-score-summary strong{font-size:13px;color:var(--ink)}.okr-evidence{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.65;padding:10px 0}.okr-fields-help{padding:18px 24px;margin:16px 0}.okr-fields-help p{font-size:13px;line-height:1.7;margin:8px 0}.okr-fields-help summary{cursor:pointer;font-weight:600;font-size:14px}.okr-score-actions{display:flex;gap:8px;flex-wrap:wrap}.okr-score-actions .btn{white-space:normal}.objective-card>.fine{padding:0 24px}
@media(max-width:700px){.okr-plan{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px;gap:16px}.okr-score-summary{padding:16px}.okr-score-actions{grid-column:2/-1}.okr-fields-help{padding:16px}}
@media(max-width:700px){.okr-summary{grid-template-columns:minmax(0,1fr)}.okr-statement,.okr-overview,.ring-caption{min-width:0}.okr-statement .inline-actions{flex-wrap:wrap}.okr-overview{flex-wrap:wrap}.ring-caption .badge{white-space:normal}.okr-rubric{gap:8px 12px}}

/* Shared company support workspace: the same Certia scale and theme tokens. */
.company-prose{font:inherit;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0}.company-draft{padding:24px 0;border-bottom:1px solid var(--line,#ddd)}.company-draft h3{font-size:18px}.company-text-button{border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;line-height:1.5;padding:8px 0}.company-text-button:hover{text-decoration:underline}.company-tabs{flex-wrap:wrap}.company-facts{display:grid;grid-template-columns:minmax(120px,1fr) 3fr;gap:16px}.company-facts dt{font-weight:600}.company-facts dd{margin:0}.company-draft form{margin-top:24px}.company-draft pre{max-height:60vh;overflow:auto}

/* Readable SLA/SOP document; source and approval state are unchanged. */
.company-document{font-family:var(--font);font-size:16px;line-height:1.75;color:var(--ink);overflow-wrap:anywhere;min-width:0}.company-document>h2{font-size:24px;font-weight:800;line-height:1.35;margin:0 0 24px}.company-document>h3{font-size:20px;font-weight:800;line-height:1.4;margin:32px 0 16px}.company-document :is(h4,h5,h6){font-size:16px;font-weight:700;line-height:1.5;margin:24px 0 12px}.company-document p{margin:0 0 20px}.company-document strong{font-weight:800}.company-document :is(ul,ol){padding-left:26px;margin:16px 0 24px}.company-document li{padding-left:4px;margin:10px 0}.company-document li::marker{color:var(--muted)}.company-document code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;background:var(--surface-soft);border:1px solid var(--border);padding:2px 5px;border-radius:5px;white-space:normal}.company-document-table{max-width:100%;overflow-x:auto;border:1px solid var(--border);border-radius:16px;margin:24px 0}.company-document-table:focus-visible{outline:2px solid var(--blue);outline-offset:3px}.company-document table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.6;text-align:left}.company-document :is(th,td){padding:14px 16px;vertical-align:top;border-bottom:1px solid var(--border)}.company-document th{font-weight:700;background:var(--surface-soft)}.company-document td+td,.company-document th+th{border-left:1px solid var(--border)}.company-document tbody tr:last-child td{border-bottom:0}.company-document th:first-child{width:22%;min-width:140px}.company-document th:nth-child(2){width:20%;min-width:136px}.company-document th:last-child{min-width:240px}.company-document>:last-child{margin-bottom:0}
@media(max-width:670px){.company-document>h2{font-size:22px}.company-document :is(th,td){padding:12px}.company-document-table{margin:20px 0}}

/* Native support draft / staff response comparison. */
.company-ticket-search{padding-bottom:12px}.company-ticket-search .field{max-width:640px}.modal:has(.company-ticket-layout){width:min(1240px,100%)}.company-ticket-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px}.company-ticket-layout>section{min-width:0}.company-ticket-layout h3{font-size:20px;font-weight:800;margin:8px 0 16px}.company-ticket-layout h4{font-size:15px;font-weight:700}.company-reply-panel{border-left:1px solid var(--border);padding-left:28px}.company-reply-panel form{display:grid;gap:16px;margin-top:20px}.company-reply-panel textarea{min-height:300px;line-height:1.65;resize:vertical}.company-reply-panel details{border-top:1px solid var(--border);padding:14px 0}.company-reply-panel summary{cursor:pointer;font-size:14px;line-height:1.6}.company-diff del{background:#ffe4e1;color:#9a1d0d;text-decoration:line-through}.company-diff ins{background:#dff6e6;color:#126034;text-decoration:none}html[data-theme=dark] .company-diff del{background:#5e2823;color:#ffd6d0}html[data-theme=dark] .company-diff ins{background:#184d2e;color:#c4f1d2}.company-ticket-layout pre{font-size:14px;line-height:1.75;max-height:none}.company-ticket-layout .company-draft{padding-top:8px}@media(max-width:800px){.company-ticket-layout{grid-template-columns:1fr;gap:24px}.company-reply-panel{border-left:0;border-top:1px solid var(--border);padding:24px 0 0}.company-reply-panel textarea{min-height:240px}}

.okr-person-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:24px 0}.okr-person-filter label{font-size:14px;font-weight:600}.okr-person-filter select{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:10px 36px 10px 14px;min-height:44px;max-width:100%}.okr-person-group{margin:28px 0 40px}.okr-person-group>header{display:flex;align-items:center;gap:12px;margin:20px 0}.okr-person-group>header h2{font-size:20px;margin:0}
