.shell{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}.shell__topbar{display:flex;align-items:center;gap:var(--space-3);padding:calc(env(safe-area-inset-top,0px) + 10px) var(--space-3) 10px;background:var(--surface-1);border-bottom:1px solid var(--border);flex-wrap:wrap;position:sticky;top:0;z-index:10}.shell__brand{background:none;border:none;color:var(--text-1);font-size:19px;font-weight:800;cursor:pointer;min-height:44px;padding:0 4px;white-space:nowrap}.shell__nav{display:flex;gap:4px;flex:1;flex-wrap:wrap}.shell__navlink{display:inline-flex;align-items:center;min-height:44px;padding:4px 14px;border-radius:var(--radius-sm);color:var(--text-2);text-decoration:none;font-weight:600}.shell__navlink--active{background:var(--surface-3);color:var(--text-1)}.shell__profile{display:inline-flex;align-items:center;gap:8px;background:var(--surface-2);border:1px solid var(--border);border-radius:26px;min-height:48px;padding:4px 16px 4px 6px;color:var(--text-1);cursor:pointer}.shell__avatar{width:38px;height:38px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-weight:800;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.shell__profilename{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.shell__main{flex:1;width:100%;max-width:1240px;margin:0 auto;padding:var(--space-3) var(--space-3) calc(env(safe-area-inset-bottom,0px) + var(--space-5))}.shell__tabbar{display:none}@media(max-width:820px){.shell__nav{display:none}.shell__topbar{flex-wrap:nowrap;justify-content:space-between}.shell__brand{font-size:17px}.shell__profilename{display:none}.shell__profile{padding:4px;border-radius:50%}.shell__main{padding:var(--space-2) var(--space-2) calc(env(safe-area-inset-bottom,0px) + 84px)}.shell__tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(6,1fr);gap:2px;padding:4px calc(env(safe-area-inset-right,0px) + 4px) calc(env(safe-area-inset-bottom,0px) + 4px) calc(env(safe-area-inset-left,0px) + 4px);background:var(--surface-1);border-top:1px solid var(--border)}.shell__tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:52px;max-width:100%;overflow:hidden;border-radius:var(--radius-sm);color:var(--text-2);text-decoration:none;font-size:10.5px;font-weight:600}.shell__tab--active{color:var(--accent);background:var(--surface-2)}.shell__tabicon{font-size:20px;line-height:1.15}}@media(max-height:500px){.shell__topbar{position:static}}.sim-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:var(--space-3);align-items:start}@media(max-width:980px){.sim-layout{grid-template-columns:1fr}}.analysis-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:var(--space-3);align-items:start}@media(max-width:980px){.analysis-layout{grid-template-columns:1fr}}.table-svg{display:block;width:100%;height:auto;-webkit-user-select:none;user-select:none;border-radius:12px}.table-svg__ball{cursor:grab}.table-svg__ball:active{cursor:grabbing}.table-svg__ball--selected circle:nth-of-type(2){stroke:var(--accent);stroke-width:6}.table-svg__balllabel{font-size:42px;font-weight:700;fill:#ffffffe6;text-anchor:middle;paint-order:stroke;stroke:#0009;stroke-width:6px;pointer-events:none}.table-svg__guide{stroke-width:4}.table-svg__guide--aim{stroke:#ffffffbf;stroke-dasharray:26 18}.table-svg__guide--target{stroke:#f2b705a6;stroke-dasharray:26 18}.table-svg__guide--angle{stroke:#ffffff4d;stroke-dasharray:10 14}.table-svg__ghost{fill:#ffffff2e;stroke:#ffffffa6;stroke-width:3;stroke-dasharray:10 10}.table-svg__traj{fill:none;stroke-width:8;stroke-linejoin:round;stroke-linecap:round}.table-svg__traj--avant_contact{stroke:#f5f1e6e6;stroke-dasharray:30 22}.table-svg__traj--apres_contact{stroke:var(--accent)}.table-svg__traj--bille_objet.table-svg__traj--object_1{stroke:#f2b7058c;stroke-dasharray:14 14}.table-svg__traj--bille_objet.table-svg__traj--object_2{stroke:#c6282899;stroke-dasharray:14 14}.table-svg__marklabel{font-size:40px;fill:#ffffffd9;text-anchor:middle;paint-order:stroke;stroke:#00000080;stroke-width:5px;pointer-events:none}.table-svg__diagarrow{stroke:var(--cloth-line);stroke-width:6}.table-svg__diagarrow--dashed{stroke-dasharray:22 16}.btn,.chip,.segmented__option,.card--interactive{touch-action:manipulation}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--tap-min);padding:0 22px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);color:var(--text-1);font-size:var(--font-body);font-weight:600;cursor:pointer;text-decoration:none;transition:filter .15s}.btn:hover{filter:brightness(1.15)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn--primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn--danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn--success{background:var(--success);border-color:var(--success);color:#fff}.btn--ghost{background:transparent}.btn--xl{min-height:var(--tap-primary);font-size:var(--font-label);padding:0 30px}.btn--block{width:100%}.card{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);padding:var(--space-3)}.card--interactive{cursor:pointer;transition:border-color .15s;display:block;color:inherit;text-decoration:none}.card--interactive:hover{border-color:var(--accent)}.card--selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.field{display:block;margin-bottom:var(--space-3)}.field__label{display:block;font-size:var(--font-small);color:var(--text-2);margin-bottom:6px;font-weight:600}.field__error{color:var(--danger);font-size:var(--font-small);margin-top:4px}.segmented{display:flex;flex-wrap:wrap;gap:8px}.segmented__option{min-height:48px;padding:8px 16px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);color:var(--text-2);font-size:var(--font-body);cursor:pointer}.segmented__option--active{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:700}.chip{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:6px 14px;border-radius:22px;border:1px solid var(--border);background:var(--surface-2);color:var(--text-2);font-size:var(--font-small);cursor:pointer}.chip--active{border-color:var(--accent);color:var(--accent);font-weight:700}.meter{display:inline-flex;gap:4px;align-items:center}.meter__dot{width:12px;height:12px;border-radius:50%;background:var(--surface-3)}.meter__dot--on{background:var(--accent)}.confbar{display:flex;align-items:center;gap:8px}.confbar__track{flex:1;height:8px;border-radius:4px;background:var(--surface-3);overflow:hidden;min-width:60px}.confbar__fill{height:100%;border-radius:4px}.badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:13px;font-weight:700;background:var(--surface-3);color:var(--text-2)}.badge--accent{background:var(--accent);color:var(--accent-ink)}.badge--danger{background:var(--danger);color:#fff}.badge--success{background:var(--success);color:#fff}.spinner{width:28px;height:28px;border:3px solid var(--surface-3);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin:var(--space-3) auto}@keyframes spin{to{transform:rotate(360deg)}}.errorbox{background:color-mix(in srgb,var(--danger) 15%,var(--surface-1));border:1px solid var(--danger);border-radius:var(--radius);padding:var(--space-3);color:var(--text-1)}.empty{text-align:center;color:var(--text-3);padding:var(--space-5) var(--space-3)}.stack{display:flex;flex-direction:column;gap:var(--space-3)}.row{display:flex;gap:var(--space-2);align-items:center;flex-wrap:wrap}@media(max-width:640px){.row--actions{flex-direction:column;align-items:stretch}}.grid-tiles{display:grid;gap:var(--space-3);grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}:root{--cloth: #17527a;--cloth-light: #1d6294;--cloth-line: rgba(255, 255, 255, .28);--rail-wood: #5a3a22;--rail-wood-light: #7a5033;--ball-cue: #f5f1e6;--ball-yellow: #f2b705;--ball-red: #c62828;--surface-0: #0f1418;--surface-1: #171e24;--surface-2: #212b33;--surface-3: #2b3843;--border: #33414d;--text-1: #f2f5f7;--text-2: #a9b7c2;--text-3: #74838f;--accent: #f2b705;--accent-ink: #211a02;--danger: #e5484d;--success: #3da35d;--info: #4d9fdb;--tap-min: 56px;--tap-primary: 64px;--font-body: 17px;--font-small: 14px;--font-label: 20px;--radius: 12px;--radius-sm: 8px;--space-1: 4px;--space-2: 8px;--space-3: 16px;--space-4: 24px;--space-5: 40px;--shadow: 0 4px 16px rgba(0, 0, 0, .35)}[data-cloth=vert]{--cloth: #1e6b52;--cloth-light: #268066}*,*:before,*:after{box-sizing:border-box}html,body,#root{margin:0;padding:0;min-height:100%}body{background:var(--surface-0);color:var(--text-1);font-family:Inter,-apple-system,Segoe UI,Roboto,sans-serif;font-size:var(--font-body);line-height:1.5;-webkit-font-smoothing:antialiased;overscroll-behavior-y:none}h1{font-size:26px;margin:0 0 var(--space-2)}h2{font-size:21px;margin:var(--space-3) 0 var(--space-2)}h3{font-size:18px;margin:var(--space-2) 0 var(--space-1)}p{margin:0 0 var(--space-2)}a{color:var(--info)}button{font-family:inherit}button,a{-webkit-tap-highlight-color:transparent}input,select,textarea{font-family:inherit;font-size:var(--font-body);background:var(--surface-2);color:var(--text-1);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;min-height:48px;width:100%}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:44px;padding:0;border:none;background:transparent}input[type=range]::-webkit-slider-runnable-track{height:8px;border-radius:4px;background:var(--surface-3)}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:28px;height:28px;margin-top:-10px;border-radius:50%;border:none;background:var(--accent)}input[type=range]::-moz-range-track{height:8px;border-radius:4px;background:var(--surface-3)}input[type=range]::-moz-range-thumb{width:28px;height:28px;border-radius:50%;border:none;background:var(--accent)}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:2px}@media(max-width:640px){h1{font-size:22px}h2{font-size:19px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
