/* ROBOT SAFETY 360 · Interactive Demo · layout and accessible commercial cues */
:root{--demo-header-height:146px;--demo-gold:#e6b559;--demo-gold-ink:#5c3709}
.demo-header{position:sticky;top:0;z-index:30;box-shadow:0 3px 16px #10283e22}
.demo-edition .topbar{position:static;box-shadow:none;min-height:82px;gap:18px;padding:14px 22px}
.demo-edition .top-actions{flex-wrap:wrap;gap:6px}
.demo-edition .top-actions button{font-size:.875rem;padding:8px 10px;min-height:38px}
.demo-edition .brand small{font-size:.69rem;letter-spacing:.09em}
.demo-edition .project-heading{min-width:140px;max-width:240px}
.demo-ribbon{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 24px;background:#f9edce;color:#563e19;border-bottom:1px solid #e8d8ad;font-size:.875rem}
.demo-ribbon-copy{display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;line-height:1.45}
.demo-edition-badge{display:inline-block;border:1px solid #ae7b27;border-radius:5px;padding:3px 7px;font-weight:800;font-size:.75rem;letter-spacing:.06em;white-space:nowrap}
.demo-full-link{display:inline-flex;align-items:center;justify-content:center;padding:9px 15px;border-radius:8px;text-decoration:none;background:#17394b;border:1px solid #17394b;color:#fff;font-size:.875rem;font-weight:750;white-space:nowrap;line-height:1.35}
.demo-full-link:hover{background:#20536b;color:#fff}
.demo-full-link:focus-visible,.demo-edition button:focus-visible,.demo-locked-field:focus-visible{outline:3px solid #1aa59d;outline-offset:3px}
.demo-edition #sidebar{top:var(--demo-header-height);height:calc(100dvh - var(--demo-header-height))}
.demo-edition .app-shell{min-height:calc(100dvh - var(--demo-header-height))}
.demo-edition #main{padding-top:26px}
.demo-edition .sidebar-foot small{font-size:.82rem}
.demo-lock::before{content:'▣';font-size:.75em;display:inline-block;margin-right:.4em;opacity:.75}
.demo-locked-field,[data-demo-locked]:is(input,textarea,select){background:#f0f3f5!important;border-color:#bac9d2!important;color:#465a67!important;cursor:pointer}
.demo-edition button.demo-locked-field{width:100%;text-align:left;justify-content:flex-start;white-space:normal;font-size:.94rem;line-height:1.6;font-weight:400;padding:10px 12px}
.demo-edition .field .demo-lock-note,.demo-field-note{color:#796038;font-size:.78rem;line-height:1.5;margin:5px 0 0}
.demo-lock-badge{display:inline-flex;padding:2px 5px;border-radius:4px;background:#f6e8c6;color:#695024;font-size:.65rem;font-weight:750;margin-left:6px;vertical-align:middle;line-height:1.4}
.demo-edition dialog{width:min(780px,calc(100vw - 32px));max-height:calc(100dvh - 36px);padding:0;border:1px solid #d4e2e7;border-radius:20px;box-shadow:0 30px 100px #06172866;overflow:auto;color:#18384a}
.demo-edition dialog::backdrop{background:#061b2acf;backdrop-filter:blur(4px)}
.demo-edition #dialog-body{padding:30px}
.demo-edition dialog .dialog-head h2{font-size:1.55rem;line-height:1.25}
.demo-modal .demo-kicker,.demo-kicker{color:#087e7c;font-size:.75rem;letter-spacing:.12em;font-weight:800;text-transform:uppercase;margin-bottom:12px}
.demo-modal h2{font-size:clamp(1.65rem,3vw,2.2rem);letter-spacing:-.035em;line-height:1.1;margin-bottom:14px}
.demo-modal>p{font-size:1rem;line-height:1.7;color:#4d6674}
.demo-modal .demo-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}
.demo-modal-grid>section,.demo-modal-grid>div{border:1px solid #d6e3e6;border-radius:12px;background:#f4faf9;padding:18px}
.demo-modal-grid>section:last-child,.demo-modal-grid>div:last-child{background:#fff8e9;border-color:#ebdcbb}
.demo-modal-grid h3{font-size:1rem;margin:0 0 10px}
.demo-feature-list{font-size:.93rem;line-height:1.65;margin:8px 0;padding-left:20px;color:#355363}
.demo-feature-list li{margin:5px 0}
.demo-modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px;align-items:center}
.demo-modal-actions .demo-full-link,.demo-modal-actions button{padding:12px 18px;font-size:.94rem}
.demo-modal-note{font-size:.875rem!important;background:#f3f6f8;border-left:3px solid #7a9aaa;padding:13px 16px;margin-top:18px!important;border-radius:0 7px 7px 0}
.demo-edition .demo-guidance{border:1px solid #e2d2a9;border-left:4px solid #bb842d;background:#fff9eb;border-radius:8px;padding:17px 20px;margin:0 0 22px;color:#574b30;font-size:.94rem;line-height:1.65}
.demo-guidance h3{margin:0 0 8px;color:#5c421b}
.demo-guide-label{display:block;font-size:.8rem!important;line-height:1.55;color:#765c2e!important;margin:8px 0 0}
.demo-report-previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.demo-report-preview{border:1px solid #d9e4e9;border-radius:12px;background:#f3f7f9;overflow:hidden;margin:0;padding:12px}
.demo-report-preview button{display:block;width:100%;padding:0;border:0;background:transparent;border-radius:5px;overflow:hidden;cursor:zoom-in}
.demo-report-preview img{display:block;width:100%;height:auto;box-shadow:0 2px 9px #1531491c}
.demo-report-preview figcaption{font-size:.875rem;font-weight:650;line-height:1.5;margin:11px 3px 3px;color:#294b5d}
.demo-preview-large{display:block;width:100%;height:auto;border:1px solid #dbe4e7;margin-top:18px}
.demo-print-only{display:none}
@media(max-width:1420px){.demo-edition .project-heading{display:none}.demo-edition .topbar{justify-content:space-between}}
@media(max-width:1000px){.demo-edition .topbar{gap:12px;flex-wrap:wrap}.demo-edition .top-actions{margin-left:0;flex:1;justify-content:flex-end}.demo-ribbon{font-size:.82rem;gap:12px}.demo-ribbon-copy{gap:6px 10px}.demo-report-previews{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.demo-edition .topbar{min-height:0;padding:11px 15px}.demo-edition .brand{flex:1}.demo-edition .top-actions{flex-basis:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;margin:0;gap:6px}.demo-edition .top-actions button,.demo-edition .top-actions button.quiet{display:inline-flex;justify-content:center;align-items:center;white-space:normal;font-size:.82rem;line-height:1.25;min-height:38px;padding:7px}.demo-edition #sidebar{top:var(--demo-header-height);height:calc(100dvh - var(--demo-header-height));z-index:25}.demo-edition .brand small{font-size:.63rem}.demo-ribbon{padding:9px 15px}.demo-edition #main{padding-top:20px}.demo-full-link{font-size:.82rem;padding:9px 11px}}
@media(max-width:540px){.demo-ribbon{display:block}.demo-ribbon-copy{font-size:.8rem;line-height:1.4}.demo-ribbon .demo-full-link{margin-top:8px;width:100%}.demo-edition-badge{font-size:.68rem}.demo-edition #dialog-body{padding:22px}.demo-modal .demo-modal-grid{grid-template-columns:1fr;gap:12px;margin:16px 0}.demo-modal-grid>section,.demo-modal-grid>div{padding:14px}.demo-modal h2{font-size:1.7rem}.demo-modal-actions{display:grid;grid-template-columns:1fr;gap:8px}.demo-modal-actions>*{width:100%}.demo-report-previews{grid-template-columns:1fr 1fr;gap:10px}.demo-report-preview{padding:7px}.demo-report-preview figcaption{font-size:.8rem}.demo-guidance{padding:14px!important}}
/* Low-height layouts, including browser zoom: keep navigation and simulations reachable. */
@media(max-width:900px) and (max-height:560px){
  .demo-edition .topbar{min-height:0;padding:8px 12px;gap:6px 10px;flex-wrap:wrap}
  .demo-edition .brand{flex:1;font-size:.9rem;gap:8px}
  .demo-edition .brand-symbol{height:32px;width:32px;flex-shrink:0;font-size:1.05rem}
  .demo-edition .brand small{font-size:.6rem;line-height:1.2;margin-top:2px}
  .demo-edition .mobile-toggle{min-height:34px;padding:5px 8px;font-size:1rem}
  .demo-edition .top-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:0 0 100%;width:100%;margin:0;gap:6px}
  .demo-edition .top-actions button:not([data-action="examples"]):not([data-action="reset-example"]){display:none}
  .demo-edition .top-actions button:is([data-action="examples"],[data-action="reset-example"]){display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:6px 8px;font-size:.8rem;line-height:1.25;white-space:normal}
  .demo-ribbon{display:flex;align-items:center;gap:8px;padding:6px 12px}
  .demo-ribbon-copy{gap:0}
  .demo-ribbon-copy>span:not(.demo-edition-badge){display:none}
  .demo-ribbon .demo-edition-badge{font-size:.63rem;padding:3px 5px}
  .demo-ribbon .demo-full-link{width:auto;margin:0;min-height:32px;padding:6px 8px;font-size:.75rem;line-height:1.25;white-space:normal;text-align:center}
}
@media print{body.demo-edition>*{display:none!important}body.demo-edition .demo-print-only{display:block!important;font:16px/1.6 Arial,sans-serif;color:#173448;padding:25mm}.demo-print-only h1{font-size:25px}body.demo-edition{background:white!important}}
