/* Shared visual standard of the owner's sites (javascriptconverter.com): its font stack,
   text colours, blue and surfaces. Loaded last so it overrides the earlier brand and
   layout colours; it does not change layout. */

:root {
  --ink: #1f1f1f;
  --muted: #444746;
  --subtle: #5f6368;
  --bg: #f8fafd;
  --surface: #f0f4f9;
  --font: "Google Sans", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --green: #0b57d0;
  --line: #c4c7c5;
  --paper: #ffffff;
  --accent: #0b57d0;
  --accent-hover: #0842a0;
  --accent-soft: #d3e3fd;
}

/* One font family everywhere, including elements that set their own (brand, headings, buttons). */
html body,
html body *:not(code):not(pre):not(kbd):not(samp) {
  font-family: var(--font) !important;
}
html body code,
html body pre,
html body kbd,
html body samp {
  font-family: var(--mono) !important;
}

body {
  background: #f8fafd;
  color: #1f1f1f;
}

a { color: #0b57d0; }
a:hover { color: #0842a0; }

:focus-visible {
  outline: 2px solid #0b57d0;
  outline-offset: 2px;
}

/* Brand */
.ai-brand .ai-brand-copy strong { color: #0b57d0; }
.ai-brand .ai-brand-copy b { color: #0b57d0; }
.ai-brand .ai-brand-copy small { color: #5f6368; }
.ai-title-zh { color: #5f6368; }
.ai-studio-zh { color: #5f6368; }

/* Primary actions are solid blue; secondary actions are outlined blue */
.primary,
button[type="submit"],
#generate {
  background: #0b57d0;
  border-color: #0b57d0;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
}
.primary:hover,
button[type="submit"]:hover,
#generate:hover:not(:disabled) {
  background: #0842a0;
  border-color: #0842a0;
}
.primary:disabled,
button[type="submit"]:disabled,
#generate:disabled {
  background: #f0f4f9;
  border-color: #f0f4f9;
  color: #80868b;
  box-shadow: none;
}

button,
.link {
  border-color: #c4c7c5;
  border-radius: 999px;
  color: #0b57d0;
  background: #ffffff;
}
button:hover:not(:disabled),
.link:hover {
  background: #f8fafd;
}

/* Hero and header calls to action */
html body a.primary.link,
html body .staging-wide .hero .primary,
html body .rs-workspace-ui main a.primary,
html body a.nav-start {
  background: #0b57d0 !important;
  border-color: #0b57d0 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}
html body a.primary.link:hover,
html body .staging-wide .hero .primary:hover,
html body a.nav-start:hover {
  background: #0842a0;
  border-color: #0842a0;
}

/* Cards and panels */
.card,
.panel,
.ready-list,
.studio-panel,
.rs-panel {
  border: 1px solid #c4c7c5;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  background: #ffffff;
}

/* Section eyebrows and step markers use the blue accent */
.eyebrow { color: #0b57d0; }
h1 em { color: #0b57d0; font-family: inherit; font-weight: 500; }
.steps span,
.step-num { color: #0b57d0; }

/* Page background: light grey with a faint blue glow instead of mint */
html body.rs-workspace-ui {
  background-color: #f8fafd !important;
  background-image: radial-gradient(at 0% 0%, #d3e3fd, rgba(255, 255, 255, 0) 55%) !important;
}

/* Upload area and its progress bar: blue instead of mint and teal/purple */
html body .staging-wide #form .room-upload,
html body .studio-refined #form .room-upload,
html body .rs-ajax-file-picker.room-up {
  background: linear-gradient(160deg, #ffffff, #f0f4f9) !important;
  border-color: #d3e3fd !important;
}
html body [class*="rs-ajax"] button,
html body [class*="au-dropzone"] button {
  background: #0b57d0 !important;
  border-color: #0b57d0 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
}
html body .au-progress-fill {
  background: #0b57d0 !important;
}
html body .au-dropzone-content::before {
  background: #0b57d0 !important;
}

/* Simpler layout: one plain surface, fewer rules, more air */
html body.rs-workspace-ui,
html body {
  background-color: #f8fafd !important;
  background-image: none !important;
}
html body h1 {
  font-weight: 500 !important;
  letter-spacing: -0.5px !important;
  color: #1f1f1f !important;
}
html body .lede,
html body .intro,
html body p {
  color: #444746;
}
html body .eyebrow,
html body .ai-title-zh,
html body .ai-studio-zh {
  color: #5f6368 !important;
  letter-spacing: 0 !important;
}
/* Hide the secondary section links on desktop; the header keeps the main ones */
@media (min-width: 801px) {
  html body nav.page-nav,
  html body .rs-workspace-ui nav.page-nav { display: none !important; }
}
/* Remove the heavy outline and shadow on the comparison panel */
html body .hero figure,
html body .compare-card,
html body .staging-wide .hero-demo {
  box-shadow: none !important;
  border-color: #e8eaed !important;
}
/* One hairline under the header, no decorative rules elsewhere */
html body header {
  border-bottom: 1px solid #e8eaed !important;
  box-shadow: none !important;
}

/* Quiet dividers */
header,
footer { border-color: #c4c7c5; }

/* Footer: white panel with a hairline, as on the reference site (was a dark navy band). */
html body footer {
  background: #ffffff !important;
  color: #444746 !important;
  border-top: 1px solid #c4c7c5 !important;
}
html body footer :is(p, span, small, li, strong, b, h2, h3, h4) { color: #444746 !important; }
html body footer a { color: #0b57d0 !important; }
html body footer a:hover { color: #0842a0 !important; }

/* Dialogs default to black text; use the standard ink. */
html body dialog { color: #1f1f1f; }
html body :is(input, textarea, select) { color: #1f1f1f; }
