sqh-1997's picture
Publish com.orulink.codex_supervisor 0.2.0
72c5cd6 verified
Raw History Blame Contribute Delete
8.63 kB
:root {
color-scheme: light;
--device-surface: #000000;
--device-running: #6f9b35;
--device-complete: #a5f339;
--device-interrupted: #3d4b2c;
--device-text: #f5f7f1;
--device-muted: #8a9382;
--review-canvas: #e9ece4;
--review-surface: #f8f9f5;
--review-text: #171a14;
--review-muted: #62695b;
--review-border: #cbd1c2;
--font-display: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
--font-mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}
* {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
html,
body {
min-height: 100%;
margin: 0;
}
body {
background: var(--review-canvas);
color: var(--review-text);
font-family: var(--font-display);
}
button {
font: inherit;
}
.preview-shell {
min-height: 100vh;
display: grid;
grid-template-columns: minmax(500px, 1fr) minmax(360px, 440px);
align-items: center;
gap: 72px;
width: min(1180px, calc(100% - 64px));
margin: 0 auto;
padding: 52px 0;
}
.device-stage {
display: grid;
justify-items: center;
gap: 18px;
}
.device-bezel {
width: 448px;
height: 448px;
display: grid;
place-items: center;
border: 1px solid #2f332d;
border-radius: 50%;
background: #11130f;
box-shadow: 0 22px 60px rgb(30 35 26 / 18%);
}
.device-screen {
position: relative;
width: 412px;
height: 412px;
overflow: hidden;
border-radius: 50%;
background: var(--device-surface);
color: var(--device-text);
}
.task-orbit {
position: absolute;
inset: 0;
}
.orbit-segments,
.orbit-labels {
position: absolute;
inset: 0;
margin: 0;
padding: 0;
list-style: none;
}
.orbit-segments {
z-index: 2;
width: 412px;
height: 412px;
overflow: visible;
}
.orbit-tick {
stroke-width: 3px;
stroke-linecap: butt;
}
.orbit-labels {
z-index: 4;
width: 412px;
height: 412px;
pointer-events: none;
}
.orbit-label {
fill: var(--device-text);
font-size: 16px;
font-weight: 600;
letter-spacing: 0;
}
.orbit-center {
position: absolute;
z-index: 5;
top: 50%;
left: 50%;
display: grid;
justify-items: center;
transform: translate(-50%, -50%);
}
.orbit-center time {
color: var(--device-text);
font-family: var(--font-mono);
font-size: 42px;
font-weight: 500;
font-variant-numeric: tabular-nums;
letter-spacing: -0.055em;
line-height: 1;
}
.connection-state {
display: flex;
align-items: center;
gap: 7px;
margin-top: 14px;
color: var(--device-muted);
font-family: var(--font-mono);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.16em;
}
.connection-state__dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--device-complete);
box-shadow: 0 0 10px rgb(165 243 57 / 55%);
}
.connection-state__dot.is-offline {
background: var(--device-muted);
box-shadow: none;
}
.stage-caption {
margin: 0;
color: var(--review-muted);
font-family: var(--font-mono);
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.review-panel {
padding: 32px;
border: 1px solid var(--review-border);
border-radius: 8px;
background: var(--review-surface);
}
.review-panel__eyebrow {
color: #5d6655;
font-family: var(--font-mono);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.12em;
}
.review-panel h2 {
margin: 10px 0 0;
font-size: 28px;
font-weight: 650;
line-height: 38px;
}
.review-panel__intro {
margin: 10px 0 0;
color: var(--review-muted);
font-size: 14px;
line-height: 22px;
}
.control-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-top: 24px;
}
.task-count-control {
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 13px;
margin-bottom: 6px;
}
.task-count-control select {
font: inherit;
padding: 7px 12px;
color: var(--review-text);
background: var(--review-surface);
border: 1px solid var(--review-border);
border-radius: 6px;
}
.live-panel {
margin-top: 24px;
padding: 16px;
border: 1px solid #b7c3a8;
border-radius: 8px;
background: #f1f5eb;
}
.live-panel__status {
display: flex;
align-items: center;
gap: 9px;
font-size: 14px;
}
.live-panel__dot {
width: 9px;
height: 9px;
border-radius: 50%;
background: #818a78;
}
.live-panel__dot.is-connected {
background: #6b9418;
}
.live-panel__dot.is-error {
background: #d54941;
}
.live-panel p {
margin: 8px 0 0;
color: var(--review-muted);
font-size: 12px;
line-height: 19px;
}
.live-panel__actions {
display: flex;
align-items: center;
gap: 14px;
margin-top: 14px;
}
.live-panel__actions .control-button {
flex: 1;
}
.control-link {
color: #45503e;
font-size: 12px;
font-weight: 600;
text-underline-offset: 3px;
}
.control-button {
min-height: 40px;
padding: 8px 12px;
border: 1px solid #aeb6a6;
border-radius: 6px;
background: transparent;
color: var(--review-text);
cursor: pointer;
font-size: 13px;
font-weight: 600;
transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.control-button:hover {
border-color: #7d8774;
background: #eef1ea;
}
.control-button:active {
transform: scale(0.98);
}
.control-button:focus-visible {
outline: 2px solid #4b7b12;
outline-offset: 2px;
}
.control-button--primary {
border-color: #1b1e18;
background: #1b1e18;
color: #ffffff;
}
.control-button--primary:hover {
border-color: #1b1e18;
background: #30352c;
}
.control-button--wide {
grid-column: 1 / -1;
}
.review-rule {
height: 1px;
margin: 26px 0 22px;
background: var(--review-border);
}
.session-section__heading {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
}
.session-section__heading h3 {
margin: 0;
font-size: 14px;
line-height: 20px;
}
.session-section__heading span {
color: var(--review-muted);
font-size: 12px;
}
.session-list {
display: grid;
gap: 8px;
margin: 12px 0 0;
padding: 0;
list-style: none;
}
.session-empty {
display: grid;
min-height: 58px;
place-items: center;
border: 1px dashed #cbd1c2;
border-radius: 6px;
color: var(--review-muted);
font-size: 12px;
}
.session-item {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 10px;
min-height: 48px;
padding: 8px 10px;
border: 1px solid #d8ddd2;
border-radius: 6px;
background: #ffffff;
}
.session-item__dot {
width: 8px;
height: 8px;
border: 2px solid #77806f;
border-radius: 50%;
}
.session-item[data-status="running"] .session-item__dot {
border-color: #5f8612;
background: #6f9b35;
}
.session-item[data-status="waiting"] .session-item__dot { background: #a5f339; }
.session-item[data-outcome="interrupted"] .session-item__dot { background: #3d4b2c; }
.session-item__copy {
min-width: 0;
}
.session-item__copy strong,
.session-item__copy span {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.session-item__copy strong {
font-size: 13px;
line-height: 18px;
}
.session-item__copy span {
color: var(--review-muted);
font-size: 11px;
line-height: 16px;
}
.session-item__state {
color: var(--review-muted);
font-size: 11px;
font-weight: 600;
}
.session-item[data-status="running"] .session-item__state {
color: #4d6f0b;
}
.review-note {
margin: 18px 0 0;
color: var(--review-muted);
font-size: 12px;
line-height: 19px;
}
body.device-only {
width: 412px;
min-height: 412px;
overflow: hidden;
background: #000000;
}
body.device-only .preview-shell {
display: block;
width: 412px;
min-height: 412px;
margin: 0;
padding: 0;
}
body.device-only .device-stage {
display: block;
}
body.device-only .device-bezel {
width: 412px;
height: 412px;
border: 0;
border-radius: 0;
background: #000000;
box-shadow: none;
}
body.device-only .stage-caption,
body.device-only .review-panel {
display: none;
}
@media (min-width: 1001px) {
.review-panel {
max-height: calc(100vh - 104px);
overflow-y: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
}
@media (max-width: 1000px) {
.preview-shell {
grid-template-columns: 1fr;
gap: 36px;
width: min(620px, calc(100% - 32px));
}
}
@media (max-width: 480px) {
body:not(.device-only) .device-bezel {
zoom: calc((100vw - 40px) / 448px);
}
.review-panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 1ms !important;
animation-iteration-count: 1 !important;
transition-duration: 1ms !important;
}
}