/* Moro inherits CloudMoro's identity while keeping the working UI's density. */
:root {
  --ink:#272b25;
  --muted:#62665e;
  --subtle:#6d7167;
  --border:#dddcd3;
  --surface:#fffefb;
  --canvas:#fffefb;
  --brand:#ee6538;
  --accent:#b94722;
  --accent-dark:#973719;
  --accent-soft:#faeade;
  --action:#b94722;
  --rail:#f7f5f0;
  --rail-text:#444a3f;
  --rail-muted:#666d5f;
  --rail-line:#dddcd3;
  --shadow:none;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--rail);
  scrollbar-color:#b9b9ab var(--rail);
}
::selection {background:#f4c9b3; color:var(--ink)}
a {text-underline-offset:3px}
.brand, .brand-parent, .sidebar-foot a, .sign-in-home {color:inherit; text-decoration:none}
.brand {font-weight:650; letter-spacing:-.03em}
.brand-family {display:grid; gap:5px; min-width:0}
.brand-parent {width:fit-content; font-size:11px; line-height:1.5; color:var(--muted)}
.brand-parent:hover, .sidebar-foot a:hover, .sign-in-home:hover {color:var(--accent)}
.button.primary, dialog .button.primary, .shell .button.primary,
.shell .studio-split-debug .agent-chat-send {background:var(--action); border-color:transparent; color:#fffefb}
.button.primary:hover:not(:disabled), dialog .button.primary:hover:not(:disabled),
.shell .button.primary:hover:not(:disabled), .shell .studio-split-debug .agent-chat-send:hover:not(:disabled) {background:var(--accent-dark); border-color:transparent}
.button:hover:not(:disabled), .shell .button:hover:not(:disabled), .shell .select-trigger:hover:not(:disabled) {background:#f0eee7; border-color:#bdbeb0}
.button.primary:hover:not(:disabled), .shell .button.primary:hover:not(:disabled) {background:var(--accent-dark)}
.shell .button.quiet:hover:not(:disabled) {background:#f0eee7; color:var(--ink)}
.shell .sidebar {border-right:1px solid var(--rail-line); scrollbar-color:#b9b9ab var(--rail)}
.shell .sidebar .brand {color:var(--ink); font-size:22px; gap:10px}
.shell .sidebar .mark {width:32px; height:32px}
.shell .sidebar .brand-parent {margin-left:42px}
/* Follow the task order without giving single-entry groups excessive space. */
.shell .sidebar .nav-label {padding-bottom:4px}
.shell .sidebar .nav-label.group, .shell .sidebar .observe-nav-label {margin-top:16px}
.shell .sidebar .nav {margin-block:2px}
@media (min-width:681px) {
  .shell .sidebar-header {margin-bottom:18px}
  .shell.sidebar-collapsed .sidebar .nav-label {height:1px; margin:12px 0 8px; padding:0; line-height:0}
  .shell.sidebar-collapsed .sidebar .workspace-nav-label {height:0; margin:0}
  .shell.sidebar-collapsed .workspace-nav-label::after {display:none}
}
@media (pointer:coarse) {
  .shell .sidebar .nav {height:auto; min-height:44px; padding-block:10px}
}
.shell .sidebar .nav .ui-icon {color:#777e6d}
.shell .sidebar .nav:hover {background:#eeece4; color:var(--ink)}
.shell .sidebar .nav.active {background:#fae7db; color:var(--accent-dark)}
.shell .sidebar .nav.active .ui-icon {color:var(--accent)}
.shell .sidebar .nav:focus-visible, .shell .sidebar .button:focus-visible {outline-color:var(--accent)}
#agent-switcher-list .sidebar-agent {color:var(--ink)}
#agent-switcher-list .sidebar-agent:hover {background:#f0eee7; color:var(--ink)}
#agent-switcher-list .sidebar-agent.active {background:var(--accent-soft); color:var(--accent-dark)}
.shell #sidebar-agent-context .icon-button:hover {color:var(--ink); background:#eeece4}
.shell #sidebar-agent-context .nav .agent-avatar {background:#e7e7da; color:#46533d}
.sidebar-collapsed .sidebar .brand-parent {display:none}
.shell .sidebar .menu-toggle {background:#eeece4; color:var(--ink); border-color:var(--border)}
.shell .top, .shell .studio-split-build, .shell .studio-split-debug {background:var(--surface)}
.shell :is(td,th), .shell .studio-launch-agent {border-color:#e9e7df}
.shell tbody tr:hover, .shell .studio-launch-agent:hover {background:#f8f6f0}
.shell .agent-avatar, .shell .studio-launch-agent-identity .agent-avatar {background:#eeeee3; border-color:#dedfd0; color:#505e44}
.shell .studio-launch-filter[aria-pressed="true"] {color:var(--accent-dark)}
.shell .studio-launch-filter:hover:not(:disabled) {background:transparent; border-bottom-color:#c5bfad}
.shell .studio-config-embedded :is(input,textarea,.select-trigger), .select-trigger {background:var(--surface); border-color:var(--border)}
.shell .studio-config-embedded input:focus, .shell .studio-config-embedded textarea:focus {background:var(--surface)}
.shell .studio-config-embedded input.connector-toggle {background:#c9cbbd}
.shell .studio-config-embedded input.connector-toggle:checked {background:var(--accent)}
.shell .studio-config-embedded .select-trigger[aria-expanded="true"]:not([aria-invalid="true"]) {border-color:var(--accent); background:#fff4ea}
.shell .studio-split-debug .agent-chat-composer {background:#faf9f4; border-color:#cfcec1}
.shell .studio-split-debug .agent-chat-composer:focus-within {border-color:var(--accent)}
.shell .studio-workbench .agent-chat-user {background:#f5ede3}
.shell .studio-split-debug .agent-chat-send:disabled {background:#e9e7df; color:#74786f}
.select-option[aria-selected="true"], .select-option:hover {background:var(--accent-soft); color:var(--accent-dark)}
.select-trigger[aria-expanded="true"]:not([aria-invalid="true"]),
:is(.shell,dialog) .select-trigger[aria-expanded="true"]:not([aria-invalid="true"]) {border-color:var(--accent); background:#fff4ea}
.select-menu, .account-popover {background:var(--surface); border-color:var(--border); box-shadow:0 10px 32px #34352718}
.agent-color-popover {background:var(--surface); color:var(--ink); border-color:var(--border); box-shadow:0 10px 32px #34352718}
.agent-color-header .icon-button, .agent-color-popover .agent-color-automatic {color:var(--muted)}
.agent-color-automatic[aria-pressed="true"] {color:var(--accent-dark)}
.agent-color-popover :is(.agent-color-automatic,.icon-button):focus-visible,
.agent-color-option:focus-visible {outline-color:var(--accent)}
.shell .agent-avatar-trigger:hover .agent-avatar {outline-color:var(--accent)}
dialog {background:var(--surface); box-shadow:0 18px 70px #34352730}
dialog::backdrop {background:#34352766}
.shell .pill:not(.success):not(.error):not(.warning):not(.info) {background:#eeeee6; color:#555f4c}
pre, .shell pre, .shell .benchmark-log-steps pre {background:#f5f4ed; border-color:var(--border); color:var(--ink)}
.shell .experiments-column {
  --ink:#272b25; --muted:#62665e; --border:#dddcd3;
  --accent:#b94722; --accent-dark:#973719; --accent-soft:#faeade; --action:#b94722;
}
.shell .experiments-column .button.primary:hover:not(:disabled) {background:var(--accent-dark)}
.shell .experiments-column .button.primary:focus-visible,
.shell .experiments-column :is(.benchmark-run,.benchmark-case) > summary:focus-visible {outline-color:var(--accent)}
.shell .experiment-results > h2 > .ui-icon {color:var(--accent)}
.shell .experiments-column .benchmark-run {border-color:var(--border)}
.shell .experiments-column .benchmark-run > summary:hover {background:#f8f6f0}
.shell .experiments-column .benchmark-run[open] {border-color:var(--border)}
.shell .experiments-column .benchmark-run[open] > summary {color:var(--accent-dark)}
.shell .experiments-column .benchmark-run[open] > summary::before {border-color:var(--accent)}
.shell .experiments-column .benchmark-timeline {border-color:#d6c3b0}
.shell .experiments-column .benchmark-run pre {background:#f5f4ed; color:var(--ink); border-color:var(--border)}
.sign-in {
  width:min(1280px,calc(100% - 112px)); margin-inline:auto;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr); background:var(--rail);
}
.sign-in-art {min-height:0; padding:52px 56px 52px 0; gap:64px; background:none; color:var(--ink)}
.sign-in-art::before {display:none}
.sign-in-art .brand {font-size:25px}
.sign-in-art .mark {width:36px; height:36px; outline:0; border-radius:0}
.sign-in-story h2 {font-size:clamp(36px,3.8vw,54px); line-height:1.35; font-weight:650; letter-spacing:-.03em}
.sign-in-story h2 span {color:var(--brand)}
.sign-in-art .sign-in-story p {margin-top:26px; max-width:34ch; color:var(--muted); font-size:16px; font-weight:400; line-height:1.9; letter-spacing:0}
.sign-in-home {font-size:13px; line-height:1.7; color:var(--muted)}
.sign-in-body {padding:52px 0 52px 56px; border-left:1px solid var(--border)}
.sign-in-card {width:min(100%,380px)}
.sign-in-card h1 {font-size:28px; font-weight:650}
.sign-in-card :is(input,select,.button) {min-height:46px; border-radius:6px}
.sign-in-card input {background:var(--surface); border-color:#c9c9bc}
.sign-in-card .auth-submit {margin-top:4px}
.sign-in-card .auth-actions a {color:var(--accent); text-decoration:underline}
.mobile-family {display:none}
.loading-page {background:var(--rail)}
.boot-spinner {border-color:#e1dccf; border-top-color:var(--accent)}
@media (max-width:900px) {
  .sign-in {width:calc(100% - 64px)}
  .sign-in-art {padding-right:28px}
  .sign-in-body {padding-left:28px}
  .sign-in-story h2 {font-size:36px}
}
@media (max-width:680px) {
  .sign-in {width:100%; grid-template-columns:minmax(0,1fr)}
  .sign-in-art {display:none}
  .sign-in-body {min-height:100dvh; padding:40px 24px; border:0}
  .sign-in-card {width:min(100%,400px)}
  .mobile-brand {display:flex; margin-bottom:10px; font-size:26px; color:var(--ink)}
  .mobile-brand .mark {width:34px; height:34px}
  .mobile-family {display:block; margin-bottom:36px; font-size:13px}
  .sign-in-card h1 {font-size:26px}
  .sign-in-card :is(input,select) {font-size:16px}
}
