/* Restored Syvecs public shell and sensor tool from the pre-V37 build.
   V37 answer/research rendering stays supported inside the knowledge panel. */
:root {
  color-scheme: light;
  --oem-navy: #f5f6f8; --oem-deep: #fff; --oem-charcoal: #fff;
  --oem-mid: #f2f4f7; --oem-red: #c8102e; --oem-red-hover: #a50d24;
  --oem-border: rgba(20,30,45,.16); --oem-border-input: rgba(20,30,45,.27);
  --text-primary: #151b25; --text-muted: #414b58; --text-subtle: #5c6571;
  --ink: #151b25; --muted: #414b58; --red: #c8102e; --line: #d9dfe5;
  --paper: #fff; --ground: #fff; --radius: 0;
  font-family: Inter, Arial, sans-serif; font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
a { color: #b30c29; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #256bad; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1000; background: white; padding: 12px; }
.skip-link:focus { top: 8px; }
.syvecs-header { background: #fff; border-bottom: 1px solid #e1e5ea; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; height: 80px; position: sticky; top: 0; z-index: 100; }
.header-logo-wrap { display: flex; align-items: center; text-decoration: none; }
.header-logo { height: 62px; width: auto; max-width: min(40vw,280px); object-fit: contain; display: block; }
.header-nav { display: flex; align-items: center; }
.nav-link { color: #252b33; text-decoration: none; font-family: Barlow, Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: 0 16px; height: 80px; display: flex; align-items: center; }
.nav-link:hover { color: var(--oem-red); }
.app-container { max-width: 1100px; width: 100%; margin: 0 auto; padding: 40px 24px; flex: 1; }
.tool-tab-bar { display: flex; gap: 0; margin-bottom: 28px; border-bottom: 1px solid var(--oem-border); }
.tool-tab-btn { background: transparent; border: none; border-bottom: 2px solid transparent; color: #252b33; padding: 14px 28px; font-family: Barlow, Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: -1px; line-height: 1.5; }
.tool-tab-btn:hover { color: var(--oem-red); }
.tool-tab-btn.active, .tool-tab-btn[aria-selected="true"] { border-bottom-color: var(--oem-red); color: #252b33; }
.panel { min-width: 0; scroll-margin-top: 104px; }
.disclaimer-bar { background: #fff0f2; border: 1px solid #e9b2bc; border-left: 5px solid #bd1230; color: #99122a; padding: 12px 18px; margin-bottom: 24px; font-size: .92rem; font-weight: 600; line-height: 1.65; }
.disclaimer-bar strong { color: #99122a; font-weight: 700; }
.section-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.section-label-bar { width: 3px; height: 20px; background: var(--oem-red); flex-shrink: 0; }
.section-label-text { font-family: Barlow, Arial, sans-serif; font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oem-red); }
.card { background: #fff; border: 1px solid #d9dfe5; border-radius: 0; padding: 32px; margin-bottom: 24px; }
.card:hover { border-color: var(--oem-red); }
.card h1, .card h2 { font-family: "Arial Narrow", "Liberation Sans Narrow", Impact, sans-serif; font-size: 1.8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-primary); margin: 0 0 6px; line-height: 1.2; }
.card-desc { font-size: .875rem; color: var(--text-muted); margin: 0 0 20px; line-height: 1.7; }
.context-fields { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 18px; margin-bottom: 18px; }
.form-group { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: Barlow, Arial, sans-serif; font-size: .68rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .15em; }
.optional { font-weight: 400; color: #647183; margin-left: 5px; font-size: .65rem; text-transform: none; letter-spacing: normal; }
.form-group select, .form-group input, .form-group textarea { padding: 11px 14px; width: 100%; min-width: 0; max-width: 100%; background: #fff; border: 1px solid var(--oem-border-input); border-radius: 0; font-size: .875rem; color: var(--text-primary); }
.form-group select { appearance: auto; cursor: pointer; }
.form-group select:focus, .form-group input:focus { border-color: var(--oem-red); }
.form-group input::placeholder { color: #737e8c; }
.search-row { display: flex; gap: 12px; align-items: flex-end; }
.search-row textarea { flex: 1; min-width: 0; width: 100%; padding: 14px 16px; background: #fff; border: 1px solid #c9d0d9; border-radius: 0; font-size: .9rem; color: var(--text-primary); resize: vertical; min-height: 68px; max-height: 240px; line-height: 1.5; }
.search-row textarea::placeholder { color: #737e8c; }
.search-row textarea:focus { border-color: var(--oem-red); }
.btn-primary, .primary-button, .btn-cta { background: var(--oem-red); color: #fff; border: 1px solid var(--oem-red); padding: 14px 28px; border-radius: 0; font-family: Barlow, Arial, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; cursor: pointer; white-space: nowrap; text-decoration: none; line-height: 1.4; }
.btn-primary:hover:not(:disabled), .primary-button:hover:not(:disabled), .btn-cta:hover { background: var(--oem-red-hover); border-color: var(--oem-red-hover); }
.btn-primary:disabled { background: #d1d5db; color: #3f4651; border-color: #d1d5db; }
.secondary-button, .btn-action { background: #fff; border: 1px solid #bdc6d0; color: #414b58; padding: 7px 13px; border-radius: 0; font-family: Barlow, Arial, sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.secondary-button:hover:not(:disabled), .btn-action:hover:not(:disabled) { border-color: var(--oem-red); color: var(--oem-red); background: #fff6f7; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.privacy-copy { color: #65717f; font-size: .69rem; line-height: 1.5; }
#request-status { font-size: .8rem; color: #526271; margin: 14px 0 0; line-height: 1.6; }
#request-status:empty { display: none; }
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--oem-navy); border-left: 3px solid var(--oem-red); padding: 24px 28px; margin: 28px 0 0; }
.cta-banner-text { color: var(--text-muted); font-size: .82rem; line-height: 1.7; max-width: 690px; }
.cta-banner-text strong { display: block; color: var(--text-primary); font-family: Barlow, Arial, sans-serif; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; }
.btn-cta { flex-shrink: 0; }
.cal-info { background: var(--oem-navy); border-left: 3px solid var(--oem-red); padding: 16px 20px; font-size: .85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 26px; }
.cal-info strong { color: var(--text-primary); }
.cal-info code, .instructions-card code, .path-badge { background: var(--oem-mid); border: 1px solid var(--oem-border); padding: 2px 6px; font-size: .78rem; font-family: "Courier New", monospace; color: #354052; overflow-wrap: anywhere; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
.pullup-help { color: var(--text-muted); font-size: .85rem; line-height: 1.6; }
.pullup-note { margin-top: 6px; font-size: .8rem; line-height: 1.6; color: #815800; background: #fff8e8; border-left: 3px solid #c7952b; padding: 8px 12px; }
.sensor-table-wrap { margin-bottom: 24px; }
.sensor-table-note { font-size: .78rem; color: var(--text-subtle); margin: 0 0 12px; line-height: 1.6; }
.sensor-table-header, .sensor-table-row { display: grid; grid-template-columns: 40px minmax(0,1fr) minmax(0,1fr); gap: 6px; }
.sensor-table-header { margin-bottom: 8px; font-family: Barlow, Arial, sans-serif; font-size: .65rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .12em; align-items: center; }
.temp-header-cell { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.temp-unit-toggle { padding: 3px 8px; background: #fff; border: 1px solid var(--oem-border-input); font-size: .7rem; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.sensor-table-body { display: flex; flex-direction: column; gap: 5px; max-height: 480px; overflow-y: auto; padding-right: 4px; }
.sensor-table-row { align-items: center; }
.row-num { font-size: .72rem; color: var(--text-subtle); text-align: right; padding-right: 4px; }
.sensor-table-row input { width: 100%; min-width: 0; padding: 8px 10px; background: #fff; border: 1px solid var(--oem-border-input); border-radius: 0; font-size: .82rem; font-family: "Courier New", monospace; color: var(--text-primary); }
.sensor-table-row input:focus { border-color: var(--oem-red); }
.sensor-table-row input.filled { background: rgba(200,16,46,.05); border-color: rgba(200,16,46,.3); }
.cal-status { font-size: .85rem; line-height: 1.6; margin: 14px 0 0; color: #99122a; overflow-wrap: anywhere; }
.cal-status:empty { display: none; }
.output-card { border: 1px solid #d9dfe5; overflow: hidden; margin-bottom: 24px; }
.output-header { background: var(--oem-navy); border-bottom: 1px solid var(--oem-border); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: Barlow, Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); }
#cal-output-filename { min-width: 0; overflow-wrap: anywhere; }
.output-actions { display: flex; gap: 8px; flex-shrink: 0; }
.output-body { margin: 0; padding: 20px 24px; font-family: "Courier New", monospace; font-size: .78rem; line-height: 1.6; color: #354052; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--oem-navy); }
.instructions-card { background: #fff; border: 1px solid #d9dfe5; padding: 26px 32px; margin-bottom: 24px; }
.instructions-card h4 { font-family: "Arial Narrow", "Liberation Sans Narrow", Impact, sans-serif; font-size: 1.3rem; letter-spacing: .04em; margin: 0 0 16px; text-transform: uppercase; }
.instructions-card ol { padding-left: 20px; margin: 0; font-size: .875rem; line-height: 1.75; color: var(--text-muted); }
.instructions-card li { margin-bottom: 10px; }
.path-badge { display: inline-block; max-width: 100%; margin-top: 7px; }
.syvecs-footer { padding-top: 0; background: #fff; }
.syvecs-video-footer { max-width: 1120px; margin: 0 auto 16px; padding: 20px 24px; background: #fff; border: 1px solid #e1e4e8; border-left: 4px solid #c8102e; border-radius: 8px; color: #252b33; }
.syvecs-video-footer-title { color: #252b33; font-weight: 700; font-size: 1.05rem; }
.syvecs-video-footer p { color: #434c57; font-size: .9rem; line-height: 1.6; margin: 8px 0 12px; }
.syvecs-video-footer a { color: #b40d27; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.footer-bottom { max-width: 1280px; margin: 48px auto 0; padding: 20px 32px; border-top: 1px solid var(--oem-border); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .75rem; color: var(--text-subtle); line-height: 1.6; }
.footer-bottom-right { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-right a { color: #5c6571; text-decoration: none; }

/* Existing V37 answer, source, video and research display. */
.conversation{display:flex;flex-direction:column;gap:22px;margin-top:26px}.exchange{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:white;box-shadow:0 8px 22px #10203404}.question-summary{padding:17px 23px;background:#e9edf2;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.question-summary h2{font-size:16px;font-weight:650;margin:4px 0 0;line-height:1.55;white-space:pre-wrap}.role-label{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:750;color:#5e6d7d}.question-context{font-size:11px;color:#647183;margin-top:5px}.answer-body{padding:23px}.answer-topline{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}.answer-topline .role-label{color:var(--red)}.response-reference{font-size:10px;color:#83909e;overflow-wrap:anywhere}.answer-text{overflow-wrap:anywhere;font-size:14px;line-height:1.75}.answer-text>*:first-child{margin-top:0}.answer-text>*:last-child{margin-bottom:0}.answer-text h2,.answer-text h3,.answer-text h4{font-size:17px;line-height:1.4;margin:24px 0 9px}.answer-text p{margin:12px 0}.answer-text ul,.answer-text ol{padding-left:24px;margin:12px 0}.answer-text li{margin:5px 0}.answer-text pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f5f8;border:1px solid #dee4ea;padding:13px;border-radius:7px;font-size:12px}.answer-text code{background:#edf1f5;padding:2px 5px;border-radius:4px;font-size:.9em}.answer-text pre code{padding:0;background:none}.table-scroll{overflow:auto;max-width:100%;margin:14px 0}.answer-text table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;min-width:420px}.answer-text th,.answer-text td{padding:9px;border:1px solid #dce2e9;vertical-align:top}.answer-text th{background:#edf1f5}.provider-answer{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.75}.grounded-result{padding-bottom:4px}.google-suggestions{display:block;width:100%;contain:content;overflow:hidden;margin-top:15px;min-width:0}.resource-section{border-top:1px solid #e6eaef;margin-top:22px;padding-top:16px}.resource-section h3{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#697686;margin:0 0 10px}.source-list{margin:0;padding-left:20px;font-size:12px}.source-list li{padding:4px 0;overflow-wrap:anywhere}.source-meta{color:#788492;font-size:11px}.videos-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.video-link{display:flex;gap:12px;align-items:flex-start;text-decoration:none;border:1px solid #dce3eb;border-radius:8px;padding:12px;background:#f8fafc;font-size:12px;line-height:1.5}.video-link:hover{border-color:#a7bacd;background:#f0f5f9}.video-play{font-size:16px;color:var(--red);line-height:1.4}.video-link small{display:block;color:#7b8693;font-size:10px;margin-top:3px}.answer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:22px;border-top:1px solid #e6eaef;padding-top:14px}.answer-actions span{font-size:11px;color:#718090;margin-right:3px}.answer-actions button{font-size:11px;padding:6px 10px;border:1px solid #d6dfe8;border-radius:6px;background:#fff;color:#4b5d70}.answer-actions button:hover:not(:disabled){background:#edf2f7}.answer-actions .engineer-action{margin-left:auto;color:#b32331}.action-status{font-size:12px;color:#597086;margin:9px 0 0}.notice{background:#f5f7fa;border-left:3px solid #7e91a6;padding:11px 13px;border-radius:0 6px 6px 0;font-size:12px;color:#536376;white-space:pre-wrap}.error-message{color:#a8202d;background:#fff2f3;border:1px solid #f0cbd0;border-radius:8px;padding:12px;font-size:13px}.clarification p{font-size:14px;margin-top:0}.clarification-options{display:flex;gap:9px;flex-wrap:wrap}.clarification-options button{background:#f3f6f9;border:1px solid #c8d4df;padding:9px 12px;color:#2e4e6d;border-radius:7px;font-size:12px}.clarification input{margin-top:12px}.ticket-box{background:#f4f7fa;border:1px solid #dce5ee;border-radius:9px;padding:15px;margin-top:18px}.ticket-box h3{font-size:13px;margin:0 0 4px}.ticket-box p{font-size:12px;color:#627183;margin:5px 0 12px}.ticket-box .contact-row{display:flex;gap:9px}.ticket-box .contact-row input{font-size:12px}.ticket-box .contact-row button{white-space:nowrap}.consent-label{font-weight:400;display:flex;gap:8px;align-items:flex-start;font-size:11px;line-height:1.5;margin:11px 0}.consent-label input{width:14px;height:14px;flex-shrink:0;margin:2px 0 0}

/* V37 result features fit the restored square Syvecs cards. */
.conversation { margin-top: 0; margin-bottom: 24px; }
.conversation:empty { display: none; }
.exchange { border-radius: 0; box-shadow: none; }
.question-summary { background: #f1f3f6; }
.answer-body { padding: 24px 28px; }
.answer-text, .provider-answer { font-size: .875rem; }
.answer-topline { flex-wrap: wrap; }
.answer-utility-actions, .answer-export-actions, .answer-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.answer-utility-actions button, .answer-export-actions button, .answer-tools button { background: white; border: 1px solid #bdc6d0; color: #414b58; padding: 5px 12px; font-size: .7rem; }
.answer-actions button { border-radius: 0; }
.ticket-box, .video-link, .clarification-options button, .secondary-button { border-radius: 0; }
.ticket-box input, .clarification input { background: #fff; border: 1px solid #bdc6d0; padding: 10px 12px; color: #151b25; min-width: 0; width: 100%; font-size: .85rem; }
.ticket-box .contact-row input { flex: 1; }
.ticket-box .consent-label input { width: 14px; height: 14px; }
.contact-row .primary-button { padding: 10px 14px; font-size: .7rem; letter-spacing: .04em; }
.clarification form { display: flex; align-items: flex-end; gap: 9px; }
.clarification form input { flex: 1; }
.clarification form button { flex-shrink: 0; padding: 10px 14px; }
.pending-answer { font-size: .85rem; color: #637385; }
.pending-answer::before { content: ""; display: inline-block; width: 9px; height: 9px; border: 2px solid #ccd5df; border-top-color: #c8102e; border-radius: 50%; margin-right: 9px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto !important; } .pending-answer::before { animation: none; } }
@media(max-width:1024px) { .nav-link { padding: 0 10px; font-size: .65rem; } .syvecs-video-footer { margin-right: 24px; margin-left: 24px; } }
@media(max-width:768px) { .header-nav { display: none; } .syvecs-header { padding: 0 16px; height: 64px; } .header-logo { height: 44px; max-width: 190px; } .panel { scroll-margin-top: 80px; } .context-fields { grid-template-columns: 1fr; gap: 12px; } .videos-grid { grid-template-columns: 1fr; } .answer-topline { align-items: flex-start; } .response-reference { max-width: 190px; } }
@media(max-width:640px) {
  .app-container { padding: 24px 16px; }
  .tool-tab-btn { padding: 12px 14px; font-size: .65rem; letter-spacing: .1em; }
  .tool-tab-bar { margin-bottom: 22px; }
  .card { padding: 22px 18px; }
  .card h1, .card h2 { font-size: 1.55rem; }
  .disclaimer-bar { padding: 12px 14px; font-size: .84rem; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-row .btn-primary { align-self: flex-end; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 7px; padding: 20px 16px; margin-top: 28px; }
  .footer-bottom-right { gap: 10px; }
  .syvecs-video-footer { margin-left: 16px; margin-right: 16px; padding: 20px; }
  .question-summary { padding: 14px 18px; }
  .answer-body { padding: 20px 18px; }
  .answer-actions .engineer-action { margin-left: 0; }
  .ticket-box .contact-row { flex-direction: column; }
  .cal-info { padding: 14px 16px; }
  .output-header { flex-wrap: wrap; padding: 12px 16px; }
  .output-body { padding: 16px; }
  .instructions-card { padding: 22px 18px; }
  .sensor-table-header, .sensor-table-row { grid-template-columns: 24px minmax(0,1fr) minmax(0,1fr); }
  .sensor-table-header { font-size: .6rem; letter-spacing: .04em; }
  .sensor-table-row input { padding: 8px 7px; }
  .clarification form { flex-wrap: wrap; }
  .clarification form input { flex-basis: 100%; }
}
@media(max-width:360px) { .tool-tab-btn { padding: 12px 10px; font-size: .61rem; letter-spacing: .06em; } .btn-primary, .primary-button { padding: 12px 16px; font-size: .7rem; letter-spacing: .08em; } }
@media print { .syvecs-header, .tool-tab-bar, .question-panel, .cta-banner, .syvecs-footer, .answer-actions, .answer-tools, .answer-export-actions, .answer-utility-actions, .ticket-box, .skip-link { display: none !important; } .app-container { max-width: none; padding: 0; } .exchange { break-inside: avoid; box-shadow: none; margin-bottom: 20px; } a { color: #111; } }

.print-output { display: none; }
@media print {
  body:has(> .print-output) > * { display: none !important; }
  body > .print-output { display: block !important; }
  .print-output { width: 100%; background: white; color: #111; }
  .print-output .exchange { border: 0; box-shadow: none; margin: 0; break-inside: auto; }
  .print-output .question-summary { position: static; height: auto; padding: 0 0 16px; background: white; }
  .print-output .answer-body { padding: 16px 0; }
  .print-output .answer-text, .print-output .provider-answer { font-size: 10pt; line-height: 1.6; }
  .print-output .table-scroll { overflow: visible; }
  .print-output .answer-text table { min-width: 0; table-layout: auto; }
  .print-output .answer-text pre, .print-output .source-list { overflow-wrap: anywhere; }
  .print-output .answer-topline { margin-bottom: 16px; }
}
