* { box-sizing: border-box; }
:root { --ink: #252d29; --muted: #69756d; --accent: #334d40; --line: #d9dfd7; --paper: #f3f1ec; }
html { min-width: 320px; background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
button, .button { min-height: 46px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; }
button:hover:enabled, .button:hover { border-color: var(--accent); background: #f6f8f4; }
button:disabled { cursor: not-allowed; opacity: .42; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #8aa492; outline-offset: 4px; }
.app-shell { width: min(1340px, 100%); padding: 0 40px 22px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 90px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 48px; gap: 6px; font-size: 25px; font-weight: 800; letter-spacing: 2px; text-decoration: none; }
.brand span { font-size: 14px; font-weight: 400; letter-spacing: 3px; }
.section-label { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 2px; }
.model-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 32px 0 26px; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--muted); margin: 0 0 13px; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 54px); font-weight: 600; letter-spacing: -2px; }
.model-name { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 10px 0 0; }
.model-details { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-bottom: 4px; }
.revision { color: var(--accent); font-size: 11px; padding: 8px 12px; border-radius: 30px; background: #e5eae0; }
.dimensions { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.viewer-stage { height: clamp(360px, 56vh, 650px); height: clamp(360px, 56svh, 650px); position: relative; overflow: hidden; border: 1px solid #e0e1d9; border-radius: 18px; background: radial-gradient(ellipse at 50% 45%, #fff 0%, #efefea 62%, #e7e9e1 100%); }
.viewer-host, .model-viewer-element { width: 100%; height: 100%; display: block; }
.model-viewer-element { touch-action: none; --poster-color: transparent; --progress-bar-color: transparent; }
.stage-overlay { position: absolute; inset: 0; z-index: 3; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 15px; padding: 30px; text-align: center; background: rgba(245,245,239,.96); }
.stage-overlay strong { font-size: 19px; }
.stage-overlay span { font-size: 13px; color: var(--muted); }
.stage-overlay p { max-width: 500px; color: var(--muted); line-height: 1.7; margin: 0; }
.stage-overlay progress { width: 160px; height: 5px; accent-color: var(--accent); }
.spinner { width: 26px; height: 26px; border: 2px solid #d1d9cd; border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-label { position: absolute; left: 22px; top: 20px; font-size: 11px; letter-spacing: 1px; font-weight: 700; pointer-events: none; }
.stage-label span { color: var(--muted); font-weight: 400; }
.interaction-hint { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); pointer-events: none; white-space: nowrap; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
.toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding-top: 16px; }
.camera-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.icon-button { width: 46px; padding: 6px; font-size: 24px; font-weight: 400; }
.share-button { color: #fff; background: var(--accent); border-color: var(--accent); white-space: nowrap; }
.share-button:hover:enabled { background: #243b2e; color: #fff; }
button[aria-pressed="true"] { background: #e4ecdf; border-color: var(--accent); }
.share-status { min-height: 18px; color: var(--accent); font-size: 12px; line-height: 1.5; margin: 12px 0 0; }
.share-url { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-top: 8px; }
.footer { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
.not-found { max-width: 700px; margin: 15vh auto; padding: 32px; }
.not-found p { margin: 24px 0; line-height: 1.6; }
@media(max-width: 700px) { .app-shell { padding: 0 16px 20px; } .topbar { height: 66px; } .brand { font-size: 21px; } .brand span { font-size: 11px; } .section-label { font-size: 8px; letter-spacing: 1px; } .model-heading { padding: 24px 0 18px; gap: 12px; } .model-name { max-width: 195px; font-size: 13px; } .eyebrow { font-size: 8px; letter-spacing: 1px; } .revision { font-size: 10px; padding: 7px 9px; } .dimensions { font-size: 10px; } .viewer-stage { height: 52vh; height: 52svh; min-height: 310px; max-height: 600px; border-radius: 13px; } .toolbar { flex-direction: column; align-items: stretch; gap: 10px; } .camera-buttons { display: grid; grid-template-columns: 46px 46px 1fr; } .camera-buttons > button:last-child { grid-column: 1 / -1; } .share-button { width: 100%; } .footer { flex-direction: column; } }
@media(prefers-reduced-motion: reduce) { .spinner { animation: none; } }


.pion-language-selector{margin-left:auto;display:flex;gap:5px;align-items:center;min-height:48px}.pion-language-selector select{min-width:110px;min-height:48px;border:1px solid #bcc8d1;border-radius:7px;background:#f8fafb;color:#234460;padding:7px;font:inherit;font-size:12px}.topbar .pion-language-selector{order:9}html[data-pion-language=ar] :is(h1,h2,h3,p,summary,caption,.corner-controls button,.model-name,.corner-part-search label,.corner-sidebar-caption){direction:rtl}html[data-pion-language=ar] :is(.corner-table,.dimensions,.card-dimensions,.stage-label,.pion-language-selector){direction:ltr}

