:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  background: #101111;
  color: #eceff1;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #101111; }
.topbar {
  height: 58px; display: flex; align-items: baseline; gap: 14px; padding: 17px 24px 0;
  border-bottom: 1px solid #303437; background: #191b1c;
}
.topbar strong { font-size: 20px; }
.topbar span { color: #aeb6bc; font-size: 13px; }
.topbar .status { margin-left: auto; color: #73d58a; }
main { width: min(1280px, calc(100% - 32px)); margin: 24px auto; }
.login-panel {
  width: min(420px, 100%); margin: 80px auto; padding: 24px;
  border: 1px solid #34393d; background: #181a1b; border-radius: 6px;
}
h1 { margin: 0 0 18px; font-size: 22px; }
h2 { margin: 0; font-size: 16px; }
label { display: grid; gap: 7px; margin: 14px 0; color: #b8c0c5; font-size: 13px; }
input {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid #41474c;
  border-radius: 4px; background: #111314; color: #fff; font-size: 14px;
}
textarea {
  width: 100%; min-height: 92px; padding: 10px 12px; resize: vertical;
  border: 1px solid #41474c; border-radius: 4px; background: #111314; color: #fff;
  font: 14px/1.6 "Microsoft YaHei UI", "Segoe UI", sans-serif;
}
button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 4px;
  background: #2f75ea; color: white; font-weight: 700; cursor: pointer;
}
button.secondary { background: #464b4f; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:not(:disabled):hover { filter: brightness(1.08); }
.hidden { display: none !important; }
.workspace { min-width: 0; }
.workspace-head {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 20px;
  border: 1px solid #34393d; background: #181a1b;
}
.workspace-head h1 { margin-bottom: 5px; }
.workspace-head p { margin: 0; color: #aeb6bc; font-size: 13px; }
.work-grid { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.panel { border: 1px solid #34393d; background: #181a1b; min-width: 0; }
.panel-head { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid #303437; }
.muted { color: #aeb6bc; font-size: 12px; }
.error-text { color: #ff8c82; overflow-wrap: anywhere; }
.upload-panel { padding-bottom: 14px; }
.file-picker {
  display: flex; align-items: center; justify-content: center; min-height: 86px; margin: 16px;
  border: 1px dashed #576169; background: #121415; color: #d8dde0; cursor: pointer;
}
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.selected-file { min-height: 22px; margin: 0 16px 12px; color: #e7ebed; font-size: 13px; overflow-wrap: anywhere; }
.progress-block { margin: 0 16px 14px; }
.progress-line { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #aeb6bc; font-size: 12px; }
progress { width: 100%; height: 9px; accent-color: #2f75ea; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 16px; }
.message { min-height: 22px; color: #76c9f2; font-size: 13px; }
.inline-message { margin: 10px 16px 0; }
.icon-button { width: 36px; min-height: 32px; padding: 0; font-size: 19px; background: #464b4f; }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 13px; border-top: 1px solid #303437; text-align: left; font-size: 13px; vertical-align: top; }
th { color: #aeb6bc; font-weight: 500; background: #151718; white-space: nowrap; }
.jobs-panel .table-scroll { max-height: 430px; }
.progress-cell { min-width: 130px; }
.progress-cell progress { display: block; margin-top: 6px; }
.result-button { min-height: 32px; padding: 0 12px; white-space: nowrap; }
.oversight { margin-top: 12px; }
.oversight .table-scroll { max-height: 360px; }
.builds-panel { margin-top: 12px; }
.builds-panel .panel-head > div { display: flex; align-items: baseline; gap: 10px; }
.builds-panel .table-scroll { max-height: 420px; }
.build-labels { min-width: 150px; max-width: 260px; color: #c4ccd1; line-height: 1.55; }
.pipeline-state { min-width: 110px; }
.pipeline-state progress { display: block; margin-top: 6px; }
.build-ready { color: #73d58a; }
.build-processing { color: #76c9f2; }
.build-blocked { color: #ff8c82; }
.review-approved { color: #73d58a; }
.review-changes { color: #ffb36b; }
.review-pending { color: #76c9f2; }
.assets-panel { margin-top: 12px; }
.assets-panel .panel-head > div { display: flex; align-items: baseline; gap: 10px; }
.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.asset-card { min-width: 0; padding: 14px; border: 1px solid #34393d; background: #121415; }
.asset-title { margin-bottom: 10px; font-weight: 700; overflow-wrap: anywhere; }
.asset-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.asset-fields label { margin: 0; }
.asset-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.asset-message { min-height: 18px; color: #76c9f2; font-size: 12px; }
.result-dialog { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; }
.result-dialog-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }
.result-dialog-panel {
  position: relative; display: flex; flex-direction: column; width: min(920px, 100%); max-height: min(820px, calc(100vh - 36px));
  border: 1px solid #485056; border-radius: 7px; background: #181a1b; box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
}
.result-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid #303437; }
.result-dialog-head h2 { margin-bottom: 6px; font-size: 18px; }
.result-dialog-head p { margin: 0; }
.result-dialog-body { min-height: 180px; padding: 16px 18px; overflow: auto; }
.result-dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid #303437; }
.result-dialog-actions .message { margin-right: auto; }
.result-section { margin-bottom: 14px; padding: 14px; border: 1px solid #34393d; background: #121415; }
.result-section:last-child { margin-bottom: 0; }
.result-section h3 { margin: 0 0 9px; color: #dce2e5; font-size: 14px; }
.result-section p { margin: 0; color: #edf1f3; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.result-count { padding: 7px 10px; border: 1px solid #3e464b; border-radius: 4px; color: #cdd4d8; font-size: 12px; }
.review-controls label { margin-top: 0; }
.review-control-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.review-control-actions .message { margin-right: auto; }
.review-control-actions .request-changes { background: #9a5b27; }
.result-json summary { cursor: pointer; color: #9dc7ff; }
.result-json pre { margin: 12px 0 0; padding: 12px; border: 1px solid #303437; background: #0d0f10; color: #cfd7dc; font: 12px/1.55 Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .work-grid { grid-template-columns: 1fr; }
  .topbar span:not(.status) { display: none; }
  main { width: min(100% - 16px, 1280px); margin-top: 12px; }
  .workspace-head { padding: 14px; }
  th, td { padding: 10px; }
  .asset-grid, .asset-fields { grid-template-columns: 1fr; }
  .result-dialog { padding: 8px; }
  .result-dialog-panel { max-height: calc(100vh - 16px); }
  .result-dialog-actions { flex-wrap: wrap; }
  .result-dialog-actions .message { flex-basis: 100%; }
}

/* VoiceTwin user-client panel language, adapted for MatrixLoop without motion or grid effects. */
:root {
  --ml-bg: #00040a;
  --ml-panel: #010814;
  --ml-line: rgba(24, 125, 224, .76);
  --ml-line-soft: rgba(40, 91, 138, .72);
  --ml-text: #eef7ff;
  --ml-muted: #86a5bf;
  --ml-blue: #0759ad;
  --ml-blue-bright: #2da9ff;
  --ml-cyan: #55c8ff;
  --ml-green: #4fd6b4;
}
* { transition: none !important; animation: none !important; }
body { background: var(--ml-bg); color: var(--ml-text); font-family: Inter, "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
.topbar { height: 78px; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--ml-line-soft); background: #000; }
.topbar strong { color: #fff; font-size: 24px; letter-spacing: -.02em; }
.topbar span { color: var(--ml-muted); }
.topbar .status { min-height: 26px; display: inline-flex; align-items: center; padding: 0 9px; color: var(--ml-green); border: 1px solid rgba(79, 214, 180, .55); background: #020f17; font-size: 10px; }
main { width: min(1280px, calc(100% - 44px)); margin: 22px auto; }
.login-panel, .workspace-head, .panel, .result-dialog-panel, .result-section, .asset-card { border: 1px solid var(--ml-line); border-radius: 0; background: var(--ml-panel); }
.login-panel { margin-top: 76px; padding: 28px; }
.login-panel h1 { color: #fff; }
label, .muted { color: var(--ml-muted); }
input, textarea, select { color: var(--ml-text); border: 1px solid #195f9e; border-radius: 0; background: #010711; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #45baff; box-shadow: inset 0 0 0 1px rgba(69, 186, 255, .12); }
button { min-height: 40px; color: #fff; border: 1px solid var(--ml-blue-bright); border-radius: 0; background: var(--ml-blue); }
button.secondary, .icon-button { color: #bcd4e8; border: 1px solid #285b8a; background: #020a14; }
button:not(:disabled):hover { filter: none; background: #0968c5; }
button.secondary:not(:disabled):hover, .icon-button:not(:disabled):hover { background: #031426; border-color: var(--ml-blue-bright); }
.workspace-head, .panel-head, .result-dialog-head { border-color: var(--ml-line-soft); }
.workspace-head, .panel-head { background: #000; }
.file-picker, .result-section, .asset-card { border-color: var(--ml-line-soft); background: #000; }
.file-picker:hover { border-color: var(--ml-blue-bright); }
th { color: var(--ml-muted); background: #000; }
th, td { border-color: #153d63; }
tbody tr:hover { background: #031426; }
.message, .review-pending, .build-processing { color: #79c9ff; }
.build-ready, .review-approved { color: var(--ml-green); }
.build-blocked, .error-text { color: #ff8f99; }
.review-changes { color: #ffcf70; }
.result-dialog-backdrop { background: rgba(0, 4, 10, .86); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #123c61; border: 2px solid #000; }
