/* C+Lab 1.23.2-ui.2 — editorial creator surface; all colors follow appearance tokens. */
.st-creator {
 --stc-bg: var(--cl-bg);
 --stc-soft: var(--cl-surface-soft);
 --stc-border: var(--cl-border);
 --stc-text: var(--cl-text);
 --stc-muted: var(--cl-muted);
 --stc-accent: var(--cl-primary);
 --stc-accent-soft: var(--cl-primary-soft);
 color: var(--stc-text);
 min-width: 0;
}
.st-creator *, .st-creator *::before, .st-creator *::after { box-sizing: border-box; }
.st-creator .stc-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 86px; padding: 0 0 24px; margin: 0; border-bottom: 1px solid var(--stc-border); }
html[data-theme] .st-creator .stc-heading h1 { margin: 0; color: var(--stc-text); font-size: 37px; line-height: 1.1; letter-spacing: -.045em; font-weight: 800; }
.stc-heading p { color: var(--stc-muted); font-size: 13px; line-height: 1.65; margin: 11px 0 0; }
.stc-heading-actions { display: flex; flex: none; gap: 11px; }
.st-creator .stc-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 15px; border: 1px solid var(--cl-border-strong); border-radius: var(--cl-radius-control); color: var(--stc-text); background: transparent; font: inherit; font-size: 13px; font-weight: 550; white-space: nowrap; cursor: pointer; box-shadow: none; }
.st-creator .stc-button:hover { background: var(--stc-soft); border-color: var(--stc-text); }
.st-creator .stc-button.is-primary { border-color: var(--cl-primary-button); background: var(--cl-primary-button); color: var(--cl-on-primary); }
.st-creator .stc-button.is-primary:hover { border-color: var(--cl-primary-hover); background: var(--cl-primary-hover); }
.stc-button svg { width: 16px; height: 16px; }
.stc-tabs { display: flex; align-items: stretch; gap: 27px; width: 100%; min-width: 0; margin: 0 0 24px; border-bottom: 1px solid var(--stc-border); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.stc-tabs::-webkit-scrollbar { display: none; }
.st-creator .stc-tab { position: relative; flex: none; min-height: 54px; padding: 17px 0; border: 0; border-radius: var(--cl-radius-control); background: transparent; color: var(--stc-muted); font: inherit; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.st-creator .stc-tab:hover { color: var(--stc-accent); }
.st-creator .stc-tab.on { color: var(--stc-text); font-weight: 750; }
.stc-tab.on::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; border-radius: var(--cl-radius-control); background: var(--stc-accent); }
.stc-summary { display: flex; flex-wrap: wrap; gap: 13px 28px; margin: 0 0 26px; padding: 0; }
.stc-summary > div { display: flex; align-items: baseline; gap: 10px; padding-right: 28px; border-right: 1px solid var(--stc-border); }
.stc-summary > div:last-child { padding-right: 0; border-right: 0; }
.stc-summary dt { color: var(--stc-muted); font-size: 12px; }
.stc-summary dd { margin: 0; color: var(--stc-text); font: 19px/1.1 var(--cl-font-mono, 'Cascadia Code', Consolas, monospace); font-variant-numeric: tabular-nums; }
.stc-summary > div:first-child dd { color: var(--stc-accent); }
.stc-columns { display: grid; grid-template-columns: minmax(0,1fr) 238px; gap: 26px; align-items: start; }
.st-creator .stc-work-panel { overflow: visible; min-width: 0; background: transparent; border: 0; border-radius: var(--cl-radius); }
.stc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; padding: 0 0 17px; }
.stc-panel-head > div { display: flex; align-items: baseline; gap: 12px; }
html[data-theme] .st-creator .stc-panel-head h2 { margin: 0; color: var(--stc-text); font-size: 23px; line-height: 1.3; font-weight: 750; letter-spacing: -.025em; }
html[data-theme] .st-creator .stc-side-panel h2 { margin: 0; color: var(--stc-text); font-size: 18px; line-height: 1.4; font-weight: 750; letter-spacing: -.02em; }
.stc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; padding: 0 0 0 11px; border-left: 1px solid var(--stc-border);  background: transparent; color: var(--stc-accent); font: 14px/1 var(--cl-font-mono, 'Cascadia Code', Consolas, monospace); font-variant-numeric: tabular-nums; }
.st-creator .stc-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; padding: 4px 0; border: 0; background: transparent; color: var(--stc-text); font: inherit; font-size: 12px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.st-creator .stc-text-button:hover { color: var(--stc-accent); }
.stc-text-button svg { width: 16px; height: 16px; }
.stc-list-head, .stc-work-row { display: grid; grid-template-columns: minmax(0,1fr) 86px 72px 72px 19px; align-items: center; gap: 16px; }
.stc-list-head { padding: 12px 0; background: transparent; color: var(--stc-muted); font-size: 11px; border-block: 1px solid var(--stc-border); }
.stc-list-head > :is(:nth-child(3),:nth-child(4)) { text-align: right; }
.st-creator .stc-work-row { width: 100%; min-width: 0; min-height: 93px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--stc-border); border-radius: var(--cl-radius-control); background: transparent; color: var(--stc-text); font: inherit; text-align: left; cursor: pointer; }
.st-creator .stc-work-row:hover { background: var(--stc-soft); }
.stc-work-main { display: flex; align-items: center; gap: 16px; min-width: 0; }
.stc-work-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; overflow: hidden; border: 0; border-radius: var(--cl-radius); background: var(--stc-soft); color: var(--stc-text); font-size: 20px; }
.stc-work-icon :is(img,svg) { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; }
.stc-work-copy { display: grid; gap: 7px; min-width: 0; }
.stc-work-copy b { font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stc-work-copy small { color: var(--stc-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stc-state { display: inline-flex; align-items: center; gap: 7px; padding: 0;  font-size: 12px; line-height: 1.4; background: transparent; color: var(--stc-muted); white-space: nowrap; }
.stc-state::before { content: ''; width: 4px; height: 4px; background: currentColor; flex: none; }
.stc-state.is-online { color: var(--stc-text); }
.stc-state.is-review { color: var(--cl-warning); }
.stc-state.is-rejected { color: var(--cl-danger); }
.stc-work-calls, .stc-work-price { color: var(--stc-text); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.stc-work-open { display: flex; color: var(--stc-text); }
.stc-work-open svg { width: 19px; height: 19px; }
.stc-list-footer { display: flex; justify-content: space-between; align-items: center; min-height: 43px; padding: 12px 0 0; color: var(--stc-muted); font-size: 11px; }
.stc-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 264px; padding: 34px 24px; text-align: center; border-block: 1px solid var(--stc-border); }
.stc-empty > span { display: grid; place-items: center; width: 49px; height: 49px; background: transparent; color: var(--stc-muted); border: 0; border-radius: var(--cl-radius); }
.stc-empty > span svg { width: 30px; height: 30px; }
html[data-theme] .st-creator .stc-empty h3 { margin: 15px 0 7px; color: var(--stc-text); font-size: 17px; font-weight: 650; letter-spacing: 0; }
.stc-empty p { max-width: 300px; margin: 0; color: var(--stc-muted); font-size: 12px; line-height: 1.8; }
.stc-sidebar { display: grid; gap: 25px; min-width: 0; padding-left: 23px; border-left: 1px solid var(--stc-border); }
.stc-side-panel { padding: 0 0 23px; border: 0; border-bottom: 1px solid var(--stc-border); border-radius: var(--cl-radius); background: transparent; }
.stc-side-panel:last-child { padding-bottom: 0; border-bottom: 0; }
.stc-side-panel > h2 { margin-bottom: 17px !important; }
.stc-clear { display: flex; align-items: center; gap: 8px; margin: 0 0 15px; color: var(--stc-muted); font-size: 12px; line-height: 1.7; }
.stc-clear svg { width: 16px; height: 16px; color: var(--stc-muted); }
.stc-review { display: flex; justify-content: space-between; margin: 0; padding-top: 12px; color: var(--stc-muted); font-size: 12px; border-top: 1px solid var(--stc-border); }
.stc-review b { color: var(--stc-text); font-weight: 550; font-variant-numeric: tabular-nums; }
.st-creator .stc-todo { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 0; margin: 0; border: 0; border-bottom: 1px solid var(--stc-border); background: transparent; color: var(--stc-text); text-align: left; font: inherit; }
.st-creator button.stc-todo { cursor: pointer; }
.stc-todo b { display: block; font-size: 13px; font-weight: 650; }
.stc-todo small { display: block; color: var(--stc-muted); font-size: 11px; line-height: 1.7; margin-top: 5px; }
.stc-todo strong { color: var(--stc-accent); font: 16px/1.2 var(--cl-font-mono, 'Cascadia Code', Consolas, monospace); }
.stc-todo.has-warning strong { color: var(--cl-danger); }
.stc-todo:last-of-type { border-bottom: 0; }
.stc-income { margin: 0; }
.stc-income > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.stc-income dt { color: var(--stc-muted); font-size: 12px; }
.stc-income dd { margin: 0; color: var(--stc-text); font: 20px/1.4 var(--cl-font-mono, 'Cascadia Code', Consolas, monospace); font-variant-numeric: tabular-nums; }
.stc-income-note { margin: 13px 0 0; color: var(--stc-muted); font-size: 11px; line-height: 1.8; }
.st-creator .stc-related-link { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; min-height: 55px; padding: 11px 0; border: 0; border-bottom: 1px solid var(--stc-border); background: transparent; color: var(--stc-text); font: inherit; text-align: left; cursor: pointer; }
.stc-related-link > svg { width: 19px; height: 19px; color: var(--stc-text); flex: none; }
.stc-related-link > svg:last-child { width: 16px; margin-left: auto; }
.stc-related-link > span { min-width: 0; font-size: 13px; }
.stc-related-link small { display: block; color: var(--stc-muted); font-size: 11px; line-height: 1.7; margin-top: 3px; }
.stc-related-link:hover > span { color: var(--stc-accent); }
.stc-developer p { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--stc-muted); margin: 12px 0 0; }
.stc-developer b { color: var(--stc-text); font-weight: 550; }
.st-creator > [data-creator-inner] { min-width: 0; }
.st-creator :is(.stc-button,.stc-tab,.stc-text-button,.stc-work-row,button.stc-todo,.stc-related-link):focus-visible { outline: 2px solid var(--cl-focus); outline-offset: 4px; }
@media (min-width: 1600px) {
 html[data-theme] .st-creator .stc-heading h1 { font-size: 42px; }
 .stc-work-copy b { font-size: 17px; }
 .stc-work-row { min-height: 100px; }
}
/* Existing narrow-screen flow retained; this revision is accepted for desktop first. */
@media (max-width: 1180px) {
 .stc-columns { grid-template-columns: minmax(0,1fr) 205px; gap: 20px; }
 .stc-list-head, .stc-work-row { grid-template-columns: minmax(0,1fr) 70px 60px 18px; gap: 10px; }
 .stc-list-head > :nth-child(3), .stc-work-calls { display: none; }
 .stc-sidebar { padding-left: 19px; }
}
@media (max-width: 960px) {
 .stc-columns { grid-template-columns: minmax(0,1fr); }
 .stc-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); padding-left: 0; border-left: 0; padding-top: 22px; border-top: 1px solid var(--stc-border); }
 .stc-tabs { gap: 23px; }
}
@media (max-width: 640px) {
 .st-creator .stc-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
 html[data-theme] .st-creator .stc-heading h1 { font-size: 28px; }
 .stc-heading-actions { width: 100%; }
 .stc-heading-actions .is-primary { flex: 1; }
 .stc-tabs { gap: 22px; }
 .stc-summary { gap: 12px 18px; }
 .stc-summary > div { padding-right: 18px; }
 .stc-summary dd { font-size: 16px; }
 .stc-list-head, .stc-work-row { grid-template-columns: minmax(0,1fr) 65px 16px; gap: 9px; }
 .stc-list-head > :nth-child(4), .stc-work-price { display: none; }
 .stc-work-copy b { font-size: 14px; }
 .stc-work-main { gap: 10px; }
 .stc-work-icon { width: 34px; height: 34px; }
 .stc-sidebar { grid-template-columns: minmax(0,1fr); }
}
