/* support.css - support agent screens of wave W5 (stage E8c; spec 12 12.10 SCR-130..146,
 * MOD-130..133). Source of every value: the inline styles of
 * docs/splash2/design/claude-design-v2/prototype/SPLASH 2.dc.html (sections "SUPPORT: GENERIC
 * LIST", "SUPPORT: TICKET SCR-132", "SUPPORT: NEW TICKET", "SUPPORT: S1 SCHEDULE", "SUPPORT: SLA
 * FORM", the generic form page used by calEdit / mailDetail and the modals mMailSrc, mRevs,
 * mHideAtt, mQuickProspect, mSwap, mSlaRecalc). The CSP has no 'unsafe-inline' for styles, so
 * they live here as classes; widths of bars are set through the CSSOM. Tokens only. */

.sp-su { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sp-su-detail { gap: 14px; }

/* ---- texts ---- */
.sp-su-cap { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.sp-su-sectitle { font-size: var(--t-section-title); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.sp-su-muted { color: var(--ink-3); }
.sp-su-muted2 { color: var(--ink-2); }
.sp-su-none { color: var(--ink-4); }
.sp-su-small { font-size: 11px; }
.sp-su-strong { font-weight: 600; }
.sp-su-mono { font-family: ui-monospace, Menlo, monospace; }
.sp-su-tabnum { font-variant-numeric: tabular-nums; }
.sp-su-nowrap { white-space: nowrap; }
.sp-su-pre { white-space: pre-wrap; line-height: 1.5; font-size: 12.5px; }
.sp-su-ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-su-req { color: var(--neg); }
.sp-su .sp-pos { color: var(--pos); }
.sp-su .sp-neg { color: var(--neg); }
.sp-su .sp-amber { color: var(--amber); }
.sp-su .sp-accent { color: var(--accent); }
.sp-su .sp-muted { color: var(--ink-3); }
.sp-su-grow { flex: 1; min-width: 0; }
.sp-su-r { text-align: right; }
.sp-su-crumb { font-size: 11.5px; color: var(--ink-3); }

/* ---- list head (gl) ---- */
.sp-su-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sp-su-titles { display: flex; flex-direction: column; gap: 2px; margin-right: 6px; }
.sp-su-title, .sp-su-h1 { margin: 0; font-size: var(--t-h1); font-weight: 700; line-height: inherit; white-space: normal; }
.sp-su-sub { font-size: 12px; color: var(--ink-3); }
.sp-su-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); }
.sp-su-filters .sp-crm-search { flex: 1 1 240px; min-width: 200px; }
.sp-su-clear { height: 32px; }
.sp-su-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; }
.sp-su-banner.sp-accent { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.sp-su-banner.sp-neg { border-color: var(--neg); color: var(--ink); }
.sp-su-banner > span:last-child { flex: 1 1 300px; color: var(--ink-2); }
.sp-su-bandot { width: 8px; height: 8px; background: var(--accent); flex-shrink: 0; }
.sp-su-banner.sp-neg .sp-su-bandot { background: var(--neg); }
.sp-su-note { padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.sp-su-errban { padding: 10px 14px; background: var(--paper); border: 1px solid var(--neg); font-size: 12.5px; }
.sp-su-errban strong { color: var(--neg); }

/* ---- tables ---- */
.sp-su-tcard { background: var(--paper); border: 1px solid var(--line); overflow-x: auto; }
.sp-su-table { width: 100%; border-collapse: collapse; }
.sp-su-min860 { min-width: 860px; } .sp-su-min880 { min-width: 880px; } .sp-su-min960 { min-width: 960px; } .sp-su-min980 { min-width: 980px; }
.sp-su-tktable { min-width: 1080px; } .sp-su-mailtable { min-width: 1040px; }
.sp-su-th { text-align: left; padding: 8px 10px; font-size: var(--t-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; background: var(--paper-2); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.sp-su-th.sp-su-r { text-align: right; }
.sp-su-td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 12px; color: var(--ink); }
.sp-su-cv { white-space: normal; }
.sp-su-csub { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; font-weight: 400; }
.sp-su-td.sp-su-muted { color: var(--ink-3); }
.sp-su-row:hover { background: var(--paper-2); }
.sp-su-link { cursor: pointer; }
.sp-su-pending { background: color-mix(in oklch, var(--accent) 6%, var(--paper)); }
.sp-su-wide { max-width: 360px; } .sp-su-w280 { max-width: 280px; } .sp-su-w320 { max-width: 320px; } .sp-su-w340 { max-width: 340px; }
.sp-su-unassigned { color: var(--amber); font-weight: 600; }
.sp-su-acts { white-space: nowrap; }
.sp-su-actrow { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.sp-su-act { background: none; border: 1px solid var(--line-2); padding: 3px 8px; font-size: 11px; cursor: pointer; color: var(--ink); font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; }
.sp-su-act.sp-neg { color: var(--neg); } .sp-su-act.sp-pos { color: var(--pos); } .sp-su-act.sp-accent { color: var(--accent); }
.sp-su-act:disabled { opacity: .5; cursor: default; }
.sp-su-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 11.5px; color: var(--ink-3); flex-wrap: wrap; gap: 8px; }
.sp-su-pager { display: flex; gap: 12px; justify-content: flex-end; }
.sp-su-empty { background: var(--paper); border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sp-su-empty strong { font-weight: 700; font-size: 15px; }
.sp-su-empty span { color: var(--ink-2); }
.sp-su-shrink { width: 1%; white-space: nowrap; }

/* ---- cards ---- */
.sp-su-card { background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.sp-su-cardhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sp-su-cardnote { font-size: 11px; color: var(--ink-3); text-align: right; }
.sp-su-cardlink { color: var(--accent); font-size: 11.5px; text-decoration: none; }
.sp-su-cardbody { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.sp-su-cardbody.sp-su-tight { padding: 12px 16px; gap: 10px; }
.sp-su-cardfoot { display: flex; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line); }
.sp-su-pad { padding: 0 16px 12px; display: block; }
.sp-su-scroll { overflow-x: auto; overflow-y: hidden; }
.sp-su-fixed { table-layout: fixed; }
.sp-su-fixed th:first-child { width: 130px; }

/* ---- ticket head ---- */
.sp-su-tkhead { background: var(--paper); border: 1px solid var(--line); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.sp-su-tktitle { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.sp-su-tknum { font-family: ui-monospace, Menlo, monospace; font-size: 14px; color: var(--ink-3); }
.sp-su-tkmeta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.sp-su-tkfacts { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--ink-2); margin-left: 6px; white-space: nowrap; }
.sp-su-tkfacts a { color: var(--accent); text-decoration: none; }
.sp-su-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 16px; align-items: start; }
.sp-su-main, .sp-su-aside, .sp-su-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---- description, bug report, attachments ---- */
.sp-su-md { font-size: 13px; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }
.sp-su-md p { margin: 0 0 8px; } .sp-su-md p:last-child { margin-bottom: 0; }
.sp-su-md code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--paper-2); border: 1px solid var(--line); padding: 0 4px; }
.sp-su-md .code-block { border: 1px solid var(--line-2); background: var(--paper-2); margin: 8px 0; }
.sp-su-md .code-head { display: flex; justify-content: space-between; padding: 4px 10px; border-bottom: 1px solid var(--line); font-size: 10.5px; color: var(--ink-3); font-family: ui-monospace, Menlo, monospace; }
.sp-su-md pre { margin: 0; padding: 10px 12px; overflow-x: auto; font-size: 12px; line-height: 1.6; }
.sp-su-md pre code { background: none; border: 0; padding: 0; }
.sp-su-md blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.sp-su-md a { color: var(--accent); }
.sp-su-bug { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.sp-su-bugf { display: flex; flex-direction: column; gap: 3px; }
.sp-su-full { grid-column: 1 / -1; }
.sp-su-atts { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 10px; }
.sp-su-atts > .sp-su-cap { margin-bottom: 6px; }
.sp-su-att { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sp-su-attname { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; }
.sp-su-dim { opacity: .7; }
.sp-su-slot.sp-su-dim { opacity: .55; }

/* ---- activity ---- */
.sp-su-stream { display: flex; flex-direction: column; }
.sp-su-ev { display: grid; grid-template-columns: 118px 10px minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 16px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.sp-su-evat { font-variant-numeric: tabular-nums; }
.sp-su-evdot { width: 6px; height: 6px; background: var(--ink-4); }
.sp-su-evdot.sp-amber { background: var(--amber); }
.sp-su-evtext { white-space: normal; }
.sp-su-internal { font-size: 10px; font-weight: 700; border: 1px solid var(--line-strong); padding: 0 4px; margin-left: 4px; }
.sp-su-cm { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); border-left: 3px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.sp-su-cm-customer { border-left-color: var(--accent); }
.sp-su-cm-note { background: color-mix(in oklch, var(--amber) 8%, var(--paper)); border-left-color: var(--amber); }
.sp-su-cmhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-su-av { width: 24px; height: 24px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.sp-su-av-customer { background: var(--accent); }
.sp-su-cmby { font-size: 12.5px; }
.sp-su-edited { background: none; border: 0; padding: 0; font-size: 11px; color: var(--accent); cursor: pointer; font-family: inherit; }
.sp-su-cmacts { margin-left: auto; display: flex; gap: 6px; }
.sp-su-cmacts .sp-su-act { padding: 2px 8px; }
.sp-su-cmedit { display: flex; flex-direction: column; gap: 6px; }
.sp-su-editarea { width: 100%; min-height: 120px; box-sizing: border-box; border: 1px solid var(--line-2); padding: 10px 12px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.6; background: var(--paper); color: var(--ink); resize: vertical; }
.sp-su-btnrow { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.sp-su-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-su-chip { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--line-2); background: var(--paper-2); font-size: 11.5px; white-space: nowrap; color: var(--ink); text-decoration: none; }

/* ---- composer and Markdown box ---- */
.sp-su-composer { display: flex; flex-direction: column; }
.sp-su-cmbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.sp-su-cmtitle { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.sp-su-switch { display: flex; align-items: center; gap: 10px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.sp-su-cmbody { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.sp-su-cm-internal .sp-su-cmbar, .sp-su-cm-internal .sp-su-cmbody { background: color-mix(in oklch, var(--amber) 7%, var(--paper)); }
.sp-su-cmnote { font-size: 12px; color: var(--ink-2); }
.sp-su-mdbox { border: 1px solid var(--line-2); background: var(--paper); }
.sp-su-mdbar { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.sp-su-mdsep { width: 1px; height: 20px; background: var(--line-2); margin: 0 4px; }
.sp-su-tool { height: 28px; min-width: 28px; padding: 0 7px; background: var(--paper); border: 1px solid var(--line-2); font-size: 12px; color: var(--ink); cursor: pointer; font-family: inherit; }
.sp-su-tool:hover { border-color: var(--line-strong); }
.sp-su-tool[data-tool="B"] { font-weight: 700; } .sp-su-tool[data-tool="I"] { font-style: italic; } .sp-su-tool[data-tool="<>"] { font-family: ui-monospace, Menlo, monospace; }
.sp-su-tool.sp-neg { color: var(--neg); }
.sp-su-tool:disabled { opacity: .45; cursor: default; }
.sp-su-codedd { position: relative; }
.sp-su-codepop { position: absolute; left: 0; top: 32px; min-width: 160px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow-menu); z-index: 150; padding: 4px 0; }
.sp-su-codeopt { display: block; width: 100%; text-align: left; padding: 6px 12px; background: none; border: 0; cursor: pointer; font-size: 12px; font-family: ui-monospace, Menlo, monospace; color: var(--ink); }
.sp-su-codeopt:hover { background: var(--paper-2); }
.sp-su-mdstats { margin-left: auto; font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.sp-su-mdcols { display: grid; grid-template-columns: minmax(0, 1fr); }
.sp-su-mdcols.sp-su-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sp-su-mdarea { width: 100%; box-sizing: border-box; border: 0; border-right: 1px solid var(--line); outline: 0; resize: vertical; padding: 12px 14px; background: var(--paper); color: var(--ink); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.6; }
.sp-su-h140 { min-height: 140px; } .sp-su-h160 { min-height: 160px; }
.sp-su-mdprev { padding: 12px 16px; max-height: 520px; overflow: auto; min-width: 0; }
.sp-su-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px dashed var(--line-2); background: var(--paper); cursor: pointer; font-size: 12px; color: var(--ink-2); }
.sp-su-drop.sp-on { background: var(--accent-soft); }
.sp-su-fileinput { display: none; }
.sp-su-attach { font-weight: 600; color: var(--accent); }
.sp-su-files { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--line); }
.sp-su-file { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 8px; border: 1px solid var(--line-2); background: var(--paper-2); font-size: 11.5px; white-space: nowrap; }
.sp-su-file-err { border-color: var(--neg); }
.sp-su-filemeta { color: var(--ink-3); } .sp-su-file-err .sp-su-filemeta { color: var(--neg); }
.sp-su-filex { background: none; border: 0; cursor: pointer; color: var(--ink-3); font-size: 13px; padding: 0 4px; }

/* ---- customer card, panel, SLA, links ---- */
.sp-su-cname { display: flex; flex-direction: column; gap: 3px; }
.sp-su-cnamerow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sp-su-cnamerow strong { font-size: 13.5px; }
.sp-su-cname .sp-su-csub { font-size: 11.5px; margin: 0; }
.sp-su-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sp-su-kpi { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; background: var(--paper-2); border: 1px solid var(--line); }
.sp-su-kpiv { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.sp-su-flag { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--amber); background: var(--amber-soft); font-size: 12px; line-height: 1.45; }
.sp-su-flag.sp-neg { border-color: var(--neg); background: var(--paper); color: var(--ink); }
.sp-su-flag-info { border-color: var(--line-2); background: var(--paper-2); }
.sp-su-flagdot { width: 6px; height: 6px; margin-top: 5px; flex-shrink: 0; background: var(--amber); }
.sp-su-flag.sp-neg .sp-su-flagdot { background: var(--neg); } .sp-su-flag-info .sp-su-flagdot { background: var(--ink-4); }
.sp-su-lics { display: flex; flex-direction: column; gap: 6px; }
.sp-su-lic { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 8px 10px; background: var(--paper); border: 1px solid var(--line); text-align: left; cursor: pointer; color: var(--ink); font-family: inherit; }
.sp-su-lic:hover { border-color: var(--line-strong); }
.sp-su-licrow { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.sp-su-lictype { font-size: 12px; font-weight: 600; }
.sp-su-licfoot { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); }
.sp-su-fact { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 8px; font-size: 12px; padding: 3px 0; border-top: 1px solid var(--line); word-break: break-word; }
.sp-su-links { display: flex; gap: 6px; flex-wrap: wrap; }
.sp-su-linkbtn { height: 26px; padding: 0 10px; background: var(--paper); border: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.sp-su-linkbtn:hover { border-color: var(--line-strong); }
.sp-su-panel { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sp-su-pfield { display: flex; flex-direction: column; gap: 4px; }
.sp-su-dd { width: 100%; }
.sp-su-ddbtn { width: 100%; justify-content: space-between; }
.sp-su-ddbtn:disabled { cursor: default; color: var(--ink-3); }
.sp-su-ddlabel { display: flex; gap: 8px; align-items: center; min-width: 0; }
.sp-su-ddlabel strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-su-ddpop { left: 0; right: 0; padding: 4px 0; max-height: 320px; overflow: auto; }
.sp-su-ddpop .sp-dd-opt { grid-template-columns: 12px 1fr; }
.sp-su-timer { padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.sp-su-timerhead { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.sp-su-left { margin-left: auto; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sp-su-bar { height: 4px; background: var(--paper-3); position: relative; display: block; }
.sp-su-barfill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.sp-su-barfill.sp-pos { background: var(--pos); } .sp-su-barfill.sp-amber { background: var(--amber); } .sp-su-barfill.sp-neg { background: var(--neg); } .sp-su-barfill.sp-muted { background: var(--ink-3); }
.sp-su-esc { padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); line-height: 1.5; }
.sp-su-wk { padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sp-su-wk .Button_btn, .sp-su-wk button { width: 100%; }
.sp-su-wkdone { font-size: 12px; color: var(--pos); }
.sp-su-ghrow { display: flex; gap: 6px; }
.sp-su-follow { font-size: 12px; }
.sp-su-follow a { color: var(--accent); text-decoration: none; }

/* ---- new ticket ---- */
.sp-su-ftitle { display: flex; flex-direction: column; gap: 4px; }
.sp-su-fhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.sp-su-stepper { padding: 14px 16px; }
.sp-su-stepper .wiz-stepper { margin-bottom: 0; }
.sp-su-ntcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 16px; align-items: start; }
.sp-su-step { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sp-su-form { gap: 14px; }
.sp-su-results { display: flex; flex-direction: column; border: 1px solid var(--line); }
.sp-su-result { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; background: var(--paper); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; color: var(--ink); font-family: inherit; }
.sp-su-result:hover { background: var(--paper-2); }
.sp-su-result.sp-on { background: var(--accent-soft); }
.sp-su-resname { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; }
.sp-su-resname .sp-su-csub { margin: 0; }
.sp-su-plan { font-size: 11.5px; font-weight: 600; }
.sp-su-create { display: flex; gap: 8px; align-items: center; width: 100%; padding: 10px 12px; background: var(--paper-2); border: 0; text-align: left; cursor: pointer; font-size: 12.5px; color: var(--accent); font-family: inherit; }
.sp-su-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.sp-su-catcard { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line-2); background: var(--paper); text-align: left; cursor: pointer; color: var(--ink); font-family: inherit; }
.sp-su-catcard:hover { border-color: var(--ink); }
.sp-su-catcard.sp-on { border-color: var(--ink); background: var(--paper-2); }
.sp-su-catcard strong { font-size: 13px; }
.sp-su-catcard span { font-size: 11.5px; color: var(--ink-2); white-space: normal; line-height: 1.45; }
.sp-su-ffield { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sp-su-sevrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 200px); gap: 14px; }
.sp-su-buggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.sp-su-summary { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 120px; }
.sp-su-sumrow { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 8px; font-size: 12px; padding: 3px 0; border-top: 1px solid var(--line); word-break: break-word; }
.sp-su-summary > .sp-su-small { font-size: 11.5px; line-height: 1.5; }

/* ---- S1 schedule ---- */
.sp-su-nowpill { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--paper); border: 1px solid var(--line); white-space: nowrap; flex-shrink: 0; font-size: 12px; }
.sp-su-s1cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.sp-su-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sp-su-grid2.sp-su-pad { padding: 14px 16px; }
.sp-su-orderhead { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 8px; }
.sp-su-slot { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 16px; border-top: 1px solid var(--line); }
.sp-su-slotname { font-size: 12.5px; font-weight: 600; }
.sp-su-slot .sp-su-actrow { gap: 4px; }
.sp-su-addrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); }
.sp-su-addbtn { height: 26px; padding: 0 8px; background: var(--paper); border: 1px solid var(--line-2); font-size: 12px; cursor: pointer; color: var(--ink); font-family: inherit; }
.sp-su-subrow { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.sp-su-subadd { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 10px 16px; }
.sp-su-turn td { font-size: 12px; }
.sp-su-turn td:nth-child(2) { font-size: 12.5px; }
.sp-su-turn.sp-on { background: var(--paper-2); }
.sp-su-hist { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.sp-su-radio { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); cursor: pointer; font-size: 12.5px; }
.sp-su-radio.sp-on { border-color: var(--ink); }

/* ---- SLA form, calendars ---- */
.sp-su-fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 16px; padding: 16px; }
.sp-su-fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 16px; }
.sp-su-numcell { width: 160px; }
.sp-su-tnote { font-size: 11.5px; color: var(--ink-3); }
.sp-su-tnote.sp-neg { color: var(--neg); }
.sp-su-stageblock { padding: 10px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.sp-su-stagehead { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.sp-su-stage { display: grid; grid-template-columns: 24px 110px auto auto minmax(160px, 1fr) 110px auto; gap: 10px; align-items: center; font-size: 12px; }
.sp-su-mini { display: flex; flex-direction: column; gap: 2px; }
.sp-su-minicap { font-size: 10.5px; color: var(--ink-3); }
.sp-su-check { display: flex; gap: 6px; align-items: center; cursor: pointer; font-size: 12px; }
.sp-su-checks { display: flex; flex-direction: column; gap: 8px; }
.sp-su-stageerr { padding-left: 34px; }
.sp-su-formcols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sp-su-aside1 { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.sp-su-ashead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-su-asrow { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--line); }

/* ---- mail detail and source ---- */
.sp-su-kvs { display: flex; flex-direction: column; padding: 8px 16px 12px; }
.sp-su-kv { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--line); word-break: break-word; }
.sp-su-kv .sp-su-strong { font-weight: 600; }
.sp-su-detailacts { justify-content: flex-end; }
.sp-su-srcbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-su-srcbar > span { margin-left: auto; }
.sp-su-src { margin: 0; padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--line-2); font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-all; max-height: 460px; overflow: auto; }

/* ---- modals ---- */
.sp-su-mstack { display: flex; flex-direction: column; gap: 8px; }
.sp-su-mtext { font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }
.sp-su-rev { border: 1px solid var(--line); display: flex; flex-direction: column; }
.sp-su-revhead { display: flex; justify-content: space-between; padding: 6px 12px; background: var(--paper-2); font-size: 11.5px; }
.sp-su-revbody { padding: 10px 12px; }

@media (max-width: 900px) {
  .sp-su-cols, .sp-su-ntcols, .sp-su-s1cols, .sp-su-formcols { grid-template-columns: minmax(0, 1fr); }
  .sp-su-summary { position: static; }
}
