/* User-approved graphite/silver design, 2026-11-07.
   Presentation only: actual input/result pixels and all conversion handlers stay unchanged.
   Keep this after platinum.css; removing this layer restores the earlier presentation. */
:root {
  color-scheme: dark;
  --page: #14171b;
  --paper: #14171b;
  --canvas: #22272d;
  --panel: #1b1f25;
  --raised: #272d35;
  --ink: #e7e9ed;
  --muted: #a2a8b0;
  --faint: #959da7;
  --line: #363d46;
  --control: #626c79;
  --accent: #c8cdd4;
  --accent-hover: #e1e5eb;
  --accent-dark: #e1e5eb;
  --on-accent: #171b20;
  --art-paper: #22272d;
  --tint: #252d37;
  --danger: #f4a79f;
  --good: #86d8a5;
}
html, body { background: var(--page); color: var(--ink); }
::selection { background: #546478; color: #fff; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, [tabindex]:focus-visible { outline: 2px solid #b7cce7; outline-offset: 4px; }
button:hover:not(:disabled) { background: var(--raised); }
.skip-link { background: var(--raised); color: var(--ink); }
body .site-header, .has-file .site-header { background: var(--page); border-color: var(--line); }
.brand, .main-nav a, .language, .replace-top, .text-link { color: var(--ink); }
.main-nav a:hover, footer a:hover { color: var(--accent-hover); }
.header-cta, .hero-open, .primary-button, .download-button, .mobile-convert, .billing-button {
  background: linear-gradient(180deg, #d1d5db, #afb6c0) !important;
  color: var(--on-accent) !important; border-color: #c6ccd4 !important;
  text-shadow: none; box-shadow: none !important;
}
.hero-open:hover:not(:disabled), .primary-button:hover:not(:disabled),
.download-button:hover, .mobile-convert:hover:not(:disabled), .header-cta:hover, .billing-button:hover:not(:disabled) {
  background: var(--accent-hover) !important; color: var(--on-accent) !important;
}
.primary-button:disabled, .mobile-convert:disabled { background: #353c45 !important; color: #a6aeb8 !important; border-color: #414a55 !important; opacity: 1; }
.hero-description { color: #c4cad2; }
.dropzone, .dropzone small, .hero-formats, .platinum-hero-art figcaption { color: var(--muted); }
.upload-entry:has(.dragging) { background: var(--tint); }
.platinum-hero-art > img { filter: none; }
.platinum-hero-art::after { content: ''; position: absolute; z-index: -1; width: 62%; height: 3%; left: 18%; bottom: 7%; border-radius: 50%; background: #07090c; filter: blur(13px); }
.platinum-hero-art { isolation: isolate; }
.sample-section > p, .story-heading p, .geometry-card-copy p, .use-body p,
.feature-caption small, .workflow p, .faq-answers p, .closing-upload p,
.footer-brand p, .footer-bottom, .sample-type, .hero-art-footer { color: var(--muted); }
.sample-section > .upload-card, .sample-section .demo-stage, .hero-art-footer,
.sample-card-image, .geometry-picture, .path-viewer-image, .use-art { background: var(--canvas); }
.demo-vector { background: var(--canvas); }
.demo-labels span { background: #272d35e8; color: var(--ink); border-color: var(--line); }
.demo-divider { background: #c8cdd4; }
.demo-divider > span { background: #d0d5dd; color: #171b20; border-color: #c0c7d0; }
.sample-view-controls, .sample-filters, .trace-explorer, .use-tabs,
.feature-item, .format-section > div + div, .code-caption, .workflow > div,
.faq-answers details, .footer-top, .geometry-story::before, .use-stories::before { border-color: var(--line); }
.sample-view-controls button, .sample-view-controls > span, .sample-filters button,
.use-tabs button, .code-caption button, .workflow > div > span { color: var(--muted); }
.sample-view-controls button[aria-pressed=true], .mode-group button[aria-pressed=true], .mode-group button.active {
  color: var(--on-accent); background: #c5cbd3; box-shadow: none;
}
.sample-filters button[aria-pressed=true], .use-tabs button[aria-selected=true] { color: var(--ink); border-color: var(--ink); }
.sample-card:hover { background: transparent; }
.outline-action { border-color: var(--control); color: var(--ink); }
.use-body .text-link { border-color: var(--control); }
.use-art figcaption { background: #14171be6; color: var(--muted); }
.feature-symbol { color: #c0c6ce; }
.feature-body { color: var(--muted); }
.format-section::before { background: var(--panel); }
.format-inputs span, .format-output { background: var(--raised); border-color: var(--line); color: var(--ink); }
.format-arrow { color: var(--muted); }
.format-output svg { stroke: var(--muted); }
.code-preview, .dev-example { background: var(--panel); border-color: var(--line); color: var(--ink); }
.code-preview code, .code-preview pre { color: #c8d1dc; }
.code-caption button[aria-selected=true], .code-caption button:hover { color: var(--ink); }
.billing-widget { border-color: var(--line) !important; color: var(--muted) !important; }
.connection::before { background: var(--good) !important; }
.format-section p, .developer-teaser > div > p { color: var(--muted); }
.full-footer nav strong { color: var(--ink); }
.proof-copy p, .proof-note, .path-note { color: var(--muted); }
.proof-modes button { color: var(--muted); background: var(--panel); border-color: var(--line); }
.proof-modes button[aria-pressed=true] { color: var(--on-accent); background: var(--accent); }

/* The image sheet is never filtered or inverted. Only the surrounding UI is dark. */
.has-file .header-filename { color: var(--muted); }
.has-file .settings, .source-file, .settings-details, .settings-action { border-color: var(--line); }
.source-file > img { background: var(--canvas); }
.replace-image, .source-file #clear, .enhancement-hint, .range-hints,
.settings-note, .settings .control > output, .checker-control, .status { color: var(--muted); }
.settings h3, .settings legend, .control > label { color: var(--ink); }
.settings select { color: var(--ink); background: var(--raised); border-color: var(--control); }
.settings select option { background: var(--raised); color: var(--ink); }
.enhancement-choices label { color: var(--ink); background: var(--panel); border-color: var(--control); }
.enhancement-choices label:has(input:checked) { color: var(--on-accent); background: #c5cbd3; border-color: #c5cbd3; }
.enhancement-choices input[type=radio] { accent-color: #171b20; }
.enhancement-choices small { background: #493624 !important; color: #f5cea5 !important; }
.enhancement-choices label:has(input:checked) small { background: #57412c !important; color: #ffdfb9 !important; }
.mode-group { background: var(--raised); }
.mode-group button { color: var(--muted); }
.zoom-controls button, .settings-details summary { color: var(--ink); }
.viewport { background: var(--canvas); border-color: var(--line); }
.viewport.checker, .viewport.checkerboard { background-color: #292f37 !important; background-image: conic-gradient(#353c45 25%,transparent 0 50%,#353c45 0 75%,transparent 0); background-size: 20px 20px; }
.preview-label, .preview-labels span { background: #272d35e8; color: var(--ink); }
.result-bar, .method-results { border-color: var(--line); color: var(--muted); }
.status.done { color: var(--good); }
.method-results button { color: var(--muted); border-color: var(--line); }
.method-results button[aria-pressed=true] { background: #c5cbd3; color: var(--on-accent); }
.settings input[type=range], .comparison-control input[type=range], input[type=checkbox] { accent-color: #c5cbd3; }
.loading { background: #1b1f25f7; color: var(--ink); border-color: #505a68; box-shadow: 0 20px 65px #0005; }
.loading #loading-hint, .loading-hint, .loading span, .loading-eta, .elapsed { color: var(--muted); }
.spinner { border-color: #424b58; border-top-color: #c8d1de; }
.loading-action { background: var(--raised); color: var(--ink); border-color: var(--control); }
.loading-action:hover:not(:disabled) { background: #3b4654; }
.dirty-notice { background: #292720; color: #e5d4ad; border-color: #5e5642; }
.dirty-notice button { background: #35332b; color: #e5d4ad; border-color: #74684d; }
.dirty-notice #apply-changes { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.error, .submit-feedback, .web-status-inline, .billing-error { background: #322529; color: var(--danger); border-color: #71484d; }
.ai-resolution-controls { color: var(--muted); }
.settings-action, .has-file #mobile-action-bar { background: var(--page); border-color: var(--line); }
.settings-note a, .result-details { color: var(--muted); }

/* Shared documentation, account, help and legal surfaces. */
.dev-example pre, .sdk-list pre { background: var(--panel); color: #c8d1dc; }
.snippet-tabs, .dev-layout, .dev-footer, .dev-commercial,
.doc-table, .doc-table th, .doc-table td, .support-hero,
.support-article details, .simple-footer, .support-layout { border-color: var(--line); }
.snippet-tabs button[aria-selected=true] { background: var(--raised); color: var(--ink); }
.snippet-bottom, .support-hero .eyebrow, .support-hero p, .support-layout nav,
.support-article p, .support-article li, .simple-footer, .not-found p { color: var(--muted); }
.usage-line, .dev-commercial, .doc-table thead { background: var(--panel); }
.key-input-row input, .developer-page #new-key { background: var(--raised); color: var(--ink); border-color: var(--control); }
.dev-example .text-button { color: var(--ink); }
.dev-toast { background: #c8cdd4; color: var(--on-accent); }
.developer-page #new-key-box, #revoke-dialog, #checkout-dialog, #billing-confirm { background: var(--panel); color: var(--ink); border-color: var(--control); }
#new-key-box::backdrop, #revoke-dialog::backdrop { background: #06090dbb; }
.not-found strong { color: #8b96a5; }
.billing-page .plan, .reserved-plan, .billing-page .balance-grid > div,
.billing-page .billing-account, .billing-history, .billing-faq, .web-protection { border-color: var(--line); }
.billing-page .billing-account { border-color: var(--line); }
.billing-page .billing-notice, .billing-page .balance-grid, .billing-page .demo-tools { background: var(--panel); border-color: var(--line); color: var(--muted); }
.billing-page .plan li, .reserved-plan p, .reserved-badge, .billing-page .order-row { color: var(--muted); }
.reserved-badge { border-color: var(--line); }
.reserved-plan { background: var(--panel); }
.reserved-plan .plan-status { color: var(--ink); }
.reserved-plan a, .reserved-plan button { border-color: var(--control); }
.reserved-plan button, .reserved-plan button:disabled { background: #303741; color: #a6aeb8; }
.billing-button.neutral { background: var(--raised) !important; color: var(--ink) !important; border-color: var(--control) !important; }
.billing-page .billing-footer { color: var(--muted); }
.site-menu summary span { background: var(--ink); }
.site-menu nav { background: var(--panel); border-color: var(--control); box-shadow: 0 16px 40px #0005; }

@media(max-width:760px) {
  .has-file #mobile-action-bar { background: #14171bf7; }
  .dev-example, .doc-nav { border-color: var(--line); }
}
/* Result metadata stays readable against graphite at phone sizes too. */
.status.success { color: var(--good); }
.method-results > span, .method-results > small,
.result-details > summary, .result-details p, #settings-summary, .warnings { color: var(--muted); }
.text-button { color: var(--muted); }
#warnings { color: var(--muted); }
#warnings li { color: var(--muted); }
.canvas-labels span { background: #272d35ed; color: var(--ink); border: 1px solid var(--line); }

/* SVG-O01 export options: below the result bar, collapsed by default. */
.export-options { margin: 0 24px; border-bottom: 1px solid var(--line); font-size: 12px; }
.export-options > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 0; cursor: pointer; color: var(--ink); font-weight: 650; list-style: none; }
.export-options > summary::-webkit-details-marker { display: none; }
.export-options > summary:after { content: '⌄'; margin-left: 4px; color: var(--muted); }
.export-options[open] > summary:after { content: '⌃'; }
.export-summary { margin-left: auto; font-weight: 400; color: var(--muted); font-size: 12px; text-align: right; }
.export-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 28px; padding: 2px 0 20px; }
.export-intro, .export-unavailable { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.export-unavailable { color: var(--danger); }
.export-body fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; align-content: start; }
.export-body legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.export-choice, .export-toggle { display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; background: var(--panel); }
.export-choice:has(input:checked) { border-color: #c5cbd3; background: var(--tint); }
.export-choice:has(input:focus-visible), .export-toggle:has(input:focus-visible) { outline: 2px solid #b7cce7; outline-offset: 2px; }
.export-choice:has(input:disabled), .export-toggle:has(input:disabled) { cursor: not-allowed; }
.export-toggle:has(input:disabled) strong, .export-choice:has(input:disabled) strong { color: var(--muted); }
.export-choice:has(input:disabled) input, .export-toggle:has(input:disabled) input { opacity: .45; }
.export-choice input, .export-toggle input { margin: 2px 0 0; width: 15px; height: 15px; flex-shrink: 0; accent-color: #c5cbd3; }
.export-choice input:focus-visible, .export-toggle input:focus-visible { outline: none; }
.export-choice span, .export-toggle span { display: grid; gap: 4px; min-width: 0; }
.export-choice strong, .export-toggle strong { color: var(--ink); font-size: 12px; font-weight: 650; }
.export-choice small, .export-toggle small { color: var(--muted); font-size: 11px; line-height: 1.65; }
@media (max-width: 760px) {
  .export-options { margin: 0; }
  .export-body { grid-template-columns: 1fr; gap: 16px; }
  .export-summary { font-size: 11px; }
  .export-choice, .export-toggle { padding: 12px; }
  .export-choice small, .export-toggle small { font-size: 12px; }
}
