
/* Santajaay / 20 m fire-pattern controls */
.sjpp-picker{display:flex;flex-direction:column;gap:4px;flex:1 1 190px;min-width:160px;color:#eed39b;font:800 10px/1.4 system-ui;letter-spacing:.06em}
.sjpp-picker select{width:100%;min-height:43px;border:1px solid #849779;border-radius:8px;background:#263f30;color:#f9f1dd;padding:8px 12px;font:750 13px system-ui;letter-spacing:0}
.sjpp-full{min-width:130px;max-width:255px}
#sjppPanel[hidden]{display:none!important}
#sjppPanel{padding:14px;margin:10px 0;border:1px solid #779071;border-radius:12px;background:linear-gradient(180deg,#213c29,#12281d);color:#f7f2e3}
.sjpp-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sjpp-kicker{font:850 10px/1.4 system-ui;color:#eaca84;letter-spacing:.10em}
.sjpp-heading h2{font-size:19px;margin:2px 0 4px;color:#f9ebc8}
.sjpp-gun{font-size:12px;color:#ccdbc9;line-height:1.5}
.sjpp-pill{border-radius:99px;border:1px solid #879878;background:#354a32;color:#ffe2a4;padding:7px 11px;font:800 12px system-ui}
.sjpp-rotate{margin:11px 0;border-top:1px solid #526850;padding-top:10px}
.sjpp-rotate label{display:flex;align-items:center;justify-content:space-between;font:800 12px system-ui}
.sjpp-rotate output{font:800 19px system-ui;color:#f6d485}
#sjppAngle{width:100%;accent-color:#ecc982;min-height:23px;margin:9px 0}
.sjpp-rotate-buttons{display:flex;gap:8px}
.sjpp-rotate-buttons button,.sjpp-controls button,.sjpp-all button{min-height:40px;border:1px solid #819476;border-radius:8px;background:#2b4834;color:#f5f0dd;padding:8px 12px;font:800 13px system-ui;cursor:pointer}
.sjpp-rotate-buttons button{flex:1}
.sjpp-step{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:14px 0 8px;font:800 11px system-ui;color:#f4d48e}
.sjpp-legend{display:flex;flex-wrap:wrap;gap:9px;color:#ced8ca;font:500 11px system-ui}
.sjpp-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:4px}
.sjpp-legend .now{background:#ffd16c}.sjpp-legend .done{background:#62d49d}.sjpp-legend .next{background:#ea8175}
.sjpp-readouts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.sjpp-readout{background:#11281c;border:1px solid #597659;border-radius:10px;padding:11px;min-width:0}
.sjpp-readout small{font:850 11px system-ui;color:#d4dfd1}
.sjpp-readout strong{display:block;font-size:clamp(17px,2.5vw,24px);line-height:1.2;color:#ffe4a5;margin:9px 0;overflow-wrap:anywhere}
.sjpp-readout em{display:block;font:800 12px system-ui;color:#d4e2d0;font-style:normal}
.sjpp-controls{display:flex;gap:7px;margin-top:12px}
.sjpp-controls button{flex:1;padding:9px 7px}
.sjpp-controls button:nth-child(2){background:#ead086;color:#1b2e20;border-color:#ead086;flex:1.6}
#sjppPanel button:disabled{opacity:.4;cursor:not-allowed}
.sjpp-progress{font:750 12px system-ui;color:#d2e1c8;margin:10px 0 4px}
.sjpp-help{font:500 12px/1.55 system-ui;color:#d0dbca;margin:4px 0}
.sjpp-all{border-top:1px solid #48624b;margin-top:9px;padding-top:9px}
.sjpp-all summary{cursor:pointer;font:800 13px system-ui;color:#f2d28a}
.sjpp-all ol{list-style:none;padding:0;margin:9px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.sjpp-all li{min-width:0}
.sjpp-all button{width:100%;min-height:37px;text-align:left;padding:7px;font-size:11px}
.sjpp-all .now{color:#f8dfa3;border-color:#ffd16c}
.sjpp-all .done{color:#acf2d2;border-color:#62d49d}
.sjpp-warning{font:500 11px/1.5 system-ui;color:#c4d6c0;margin:10px 0 0}
#sjFullscreenStage:fullscreen #sjppPanel{position:absolute;left:12px;bottom:12px;z-index:20;width:min(460px,calc(100vw - 24px));max-height:40vh;overflow:auto;box-shadow:0 12px 40px #09180bd9}
@media(max-width:550px){.sjpp-picker{flex-basis:100%}#sjppPanel{padding:11px}.sjpp-heading h2{font-size:17px}.sjpp-readouts{gap:7px}.sjpp-readout{padding:9px}.sjpp-readout strong{font-size:17px}.sjpp-controls{gap:5px}.sjpp-controls button{font-size:12px;padding:8px 5px}.sjpp-all ol{grid-template-columns:1fr 1fr}}


/* Map-first mobile firing strip for Santajaay artillery pattern planner */
#sjppPanel{padding:9px 11px;margin:8px 0 11px}
#sjppPanel .sjpp-compact-head{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:7px}
#sjppPanel .sjpp-compact-head label{display:grid;gap:3px;color:#ccd7c5;font:800 10px/1.2 system-ui}
#sjppPanel .sjpp-compact-head select{min-width:0;width:100%;min-height:37px;padding:6px;border:1px solid #859781;border-radius:7px;background:#233d2c;color:#fff2dd;font:750 12px system-ui}
#sjppPanel .sjpp-step{margin:8px 1px 5px;gap:8px}
#sjppPanel .sjpp-step .sjpp-legend{display:none}
#sjppPanel .sjpp-step .sjpp-progress{font:600 10px system-ui;margin:0}
#sjppPanel .sjpp-readouts{gap:7px}
#sjppPanel .sjpp-readout{padding:8px;border-radius:8px}
#sjppPanel .sjpp-readout small{font-size:10px}
#sjppPanel .sjpp-readout strong{font:850 clamp(18px,4.5vw,24px)/1.2 system-ui;margin:4px 0}
#sjppPanel .sjpp-readout em{font-size:11px}
#sjppPanel .sjpp-controls{display:grid;grid-template-columns:minmax(75px,1fr) minmax(110px,1.6fr);gap:7px;margin-top:7px}
#sjppPanel .sjpp-controls button{min-height:44px;padding:8px 5px}
#sjppPanel .sjpp-more{margin-top:7px;padding-top:5px;border-top:1px solid #4b654a}
#sjppPanel .sjpp-more>summary{cursor:pointer;color:#f1d9a1;font:750 11px/1.5 system-ui;padding:3px 1px;list-style:none}
#sjppPanel .sjpp-more>summary::-webkit-details-marker{display:none}
#sjppPanel .sjpp-more>summary:before{content:"▸  "}
#sjppPanel .sjpp-more[open]>summary:before{content:"▾  "}
#sjppPanel .sjpp-more .sjpp-heading{margin:9px 0 0}
#sjppPanel .sjpp-more .sjpp-rotate{margin:9px 0}
#sjppPanel .sjpp-more #sjppReset{width:100%;min-height:40px;padding:8px;border-radius:8px;border:1px solid #789176;background:#284631;color:#f4eede;font:750 12px system-ui}
#sjppPanel .sjpp-help{margin:3px 0 0;max-height:30px;overflow:hidden;font:500 10px/1.4 system-ui}
#sjppPanel .sjpp-warning{font-size:10px}
@media(max-width:700px){
 #sjppPanel.sjpp-floating{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));z-index:1100;margin:0;max-height:65vh;padding:9px;overflow-x:hidden;overflow-y:auto;box-shadow:0 8px 35px #051309e8;border-color:#d9bf7d}
 body.sjpp-active .sj-fire-hud .sj-hud-range,body.sjpp-active .sj-fire-hud .sj-hud-loader{display:none!important}
 body.sjpp-active .sj-fire-hud{grid-template-columns:repeat(2,minmax(0,1fr))}
 #sjppPanel .sjpp-readout strong{font-size:20px}
}
#sjFullscreenStage:fullscreen #sjppPanel.sjpp-floating{position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:auto;max-height:65vh;z-index:2000;margin:0;overflow-y:auto}

/* Map-visible rotation dock; endless firing order controls */
#sjppRotationDock[hidden]{display:none!important}
#sjppRotationDock{position:fixed;z-index:1550;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));max-width:500px;margin:0 auto;padding:10px 13px 11px;background:#193425;border:1px solid #e0c57d;border-radius:12px;box-shadow:0 10px 30px #08180de0;color:#f6f0dc}
#sjppRotationDock .sjpp-dock-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font:850 12px/1.4 system-ui;color:#f4d48c;letter-spacing:.04em}
#sjppRotationDock .sjpp-dock-top button{border:1px solid #e7c779;border-radius:7px;min-height:35px;background:#e7c779;color:#1c2d20;padding:5px 17px;font:850 13px system-ui}
#sjppRotationDock .sjpp-rotate{padding:3px 0 0;margin:0;border:0}
#sjppRotationDock .sjpp-rotate label{font:800 11px system-ui;display:flex;justify-content:space-between;align-items:center;color:#d8e3d2}
#sjppRotationDock #sjppAngle{width:100%;min-height:32px;margin:3px 0 5px;touch-action:pan-x}
#sjppRotationDock .sjpp-rotate-buttons{display:flex;gap:7px}
#sjppRotationDock .sjpp-rotate-buttons button{flex:1;min-height:37px;padding:7px;border:1px solid #819a80;border-radius:7px;background:#294833;color:#f5f2df;font:800 13px system-ui}
body.sjpp-rotating #sjppPanel{display:none!important}
#sjppPanel .sjpp-quick{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:7px 0 0}
#sjppPanel .sjpp-quick button{min-height:34px;padding:5px 8px;background:#284732;color:#ead7a6;border:1px solid #789778;border-radius:7px;font:800 11px system-ui}
#sjppPanel .sjpp-quick #sjppReverse[aria-pressed="true"]{background:#e7cc8a;border-color:#e7cc8a;color:#1b3222}
#sjppPanel .sjpp-more .sjpp-heading h2,#sjppPanel .sjpp-more .sjpp-kicker,#sjppPanel .sjpp-more .sjpp-pill{display:none}
#sjppPanel .sjpp-more .sjpp-heading{margin-top:6px;padding:0}
#sjppPanel .sjpp-more .sjpp-gun{font:600 11px/1.4 system-ui}
#sjppPanel .sjpp-more[open]{max-height:170px;overflow-y:auto;overscroll-behavior:contain}
@media(min-width:701px){#sjppRotationDock{left:auto;right:18px;max-width:430px}}
#sjFullscreenStage:fullscreen #sjppRotationDock{position:fixed;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom,0px));max-width:500px;z-index:2300}

/* Santajaay mobile map-first controls and precise aim */
#sjppHeaderMenu{display:none}
#sjWorkbench .sjpp-primary-picker{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0 0 8px}
#sjWorkbench .sjpp-primary-picker select{width:100%;max-width:100%;min-width:0;min-height:42px}
#sjWorkbench .actions .sjpp-other-tools{min-width:0}
#sjWorkbench .actions .sjpp-other-tools>summary{cursor:pointer;color:#d9d5b7;font:750 12px system-ui}
#sjppPanel .sjpp-fine{margin:6px 0 0;border-top:1px solid #46664d;padding:5px 0 0}
#sjppPanel .sjpp-fine>summary{cursor:pointer;font:750 11px system-ui;color:#e8d39b;padding:5px 1px}
#sjppPanel .sjpp-fine-panel{display:grid;grid-template-columns:85px 1fr;gap:8px;align-items:center;padding:5px 0}
#sjppPanel .sjpp-fine-panel label{display:grid;gap:2px;font:650 11px system-ui;color:#d4e2cc}
#sjppPanel .sjpp-fine-panel select{border:1px solid #7f957f;background:#243d2c;color:#f8f1dc;border-radius:6px;min-height:36px;padding:5px;font:750 12px system-ui}
#sjppPanel .sjpp-fine-keys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#sjppPanel .sjpp-fine-keys button{min-width:0;min-height:38px;padding:5px;border:1px solid #82977b;border-radius:6px;background:#2b4b35;color:#f3e1b4;font:bold 17px system-ui}
@media(max-width:700px){
body>header{grid-template-columns:43px minmax(0,1fr) auto!important;gap:6px 10px!important;padding:9px 11px!important}
body>header>img{width:42px!important;height:42px!important}
body>header #sjppHeaderMenu{display:inline-flex!important;align-items:center;justify-content:center;grid-column:3!important;min-height:36px!important;min-width:74px;padding:6px 8px;border-radius:7px;background:#263d2c;color:#f0e5c7;border:1px solid #657d64;font:750 12px system-ui}
body:not(.sjpp-menu-open)>header .sj-navactions{display:none!important}
body.sjpp-menu-open>header .sj-navactions{grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
body>.sj-verified-banner{display:none!important}
#sjWorkbench .sjpp-primary-picker{margin:0 0 7px}
body.sjpp-active #sjWorkbench .sjpp-primary-picker{display:none!important}
#sjWorkbench .actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin-bottom:7px!important}
#sjWorkbench .actions #target,#sjWorkbench .actions #sjSmoke,#sjWorkbench .actions #fullscreen{grid-column:auto!important;min-height:41px!important;font-size:12px!important}
#sjWorkbench .actions .sjpp-other-tools{grid-column:1/-1!important;display:block!important;border:1px solid #465d48;border-radius:7px;padding:0 7px;background:#1f3628}
#sjWorkbench .actions .sjpp-other-tools>summary{padding:6px 4px;min-height:25px;font-size:11px}
#sjWorkbench .actions .sjpp-other-tools:not([open]){max-height:30px}
#sjWorkbench .actions .sjpp-other-tools[open]{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-bottom:7px}
#sjWorkbench .actions .sjpp-other-tools[open]>summary{grid-column:1/-1}
#sjWorkbench .actions .sjpp-other-tools button{font-size:11px!important;min-height:37px!important;padding:6px 3px!important}
body.sjpp-active #sjWorkbench #sjFireHUD{display:none!important}
body.sjpp-active .sj-mobile-jump{display:none!important}
body.sjpp-active #sjWorkbench #hint{max-width:calc(100% - 76px)!important;font-size:11px!important;line-height:1.35!important;padding:6px 8px!important}
body.sjpp-active #sjWorkbench .map-shell{height:min(77dvh,740px)!important;min-height:420px!important}
}
/* Shared original aim box: coordinates, gunner, loader, Set Aim Point */
#sjWorkbench .sj-aim-input-row{grid-template-columns:repeat(2,minmax(0,1fr))}
#sjWorkbench .sj-aim-input-row .sj-aim-reading input{color:#f6dfac;background:#23382a;font-weight:800;font-variant-numeric:tabular-nums;cursor:default}
#sjWorkbench .sj-aim-input-row .sj-aim-set{grid-column:1/-1}
body.sjpp-active #sjWorkbench .sj-aim-panel{display:none!important}
/* Compact aim box shown automatically when any firing pattern is selected */
#sjppPanel .sjpp-aim-box{margin:8px 0 6px;padding:8px;border:1px solid #557158;border-radius:9px;background:#0d2518}
#sjppPanel .sjpp-aim-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0 0 6px}
#sjppPanel .sjpp-aim-head strong{font:850 11px/1.3 system-ui;letter-spacing:.045em;color:#f2d58f}
#sjppPanel .sjpp-aim-head small{font:600 10px/1.3 system-ui;color:#a9c0ab}
#sjppPanel .sjpp-aim-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#sjppPanel .sjpp-aim-grid label{min-width:0;display:block;color:#d5dfce;font:750 10px/1.3 system-ui}
#sjppPanel .sjpp-aim-grid input{width:100%;min-width:0;min-height:36px;margin:3px 0 0;padding:6px 8px;border:1px solid #66816b;background:#162e1f;color:#f4eedb;border-radius:7px;font:750 14px/1.2 system-ui;font-variant-numeric:tabular-nums;box-sizing:border-box}
#sjppPanel .sjpp-aim-grid input[readonly]{color:#f8d889;background:#203625}
#sjppPanel #sjppSetAim{width:100%;margin-top:7px;min-height:37px;padding:6px;border:1px solid #ebcb83;border-radius:7px;background:#ebcb83;color:#192d20;font:850 12px system-ui}
@media(max-width:700px){#sjppPanel .sjpp-aim-grid input{font-size:13px}#sjppPanel .sjpp-aim-box{margin:6px 0;padding:7px}#sjppPanel.sjpp-floating{max-height:min(78dvh,770px)!important}}


/* Tap-to-select artillery aim table, mobile-sized and read-only. */
#sjppPanel .sjpp-aim-table{margin:7px 0 4px;border:1px solid #58735a;border-radius:9px;background:#112a1c;overflow:hidden}
#sjppPanel .sjpp-aim-table>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 10px;color:#f2d58f;cursor:pointer;list-style:none}
#sjppPanel .sjpp-aim-table>summary::-webkit-details-marker{display:none}
#sjppPanel .sjpp-aim-table>summary::before{content:"▸";font-size:12px}
#sjppPanel .sjpp-aim-table[open]>summary::before{content:"▾"}
#sjppPanel .sjpp-aim-table>summary strong{margin-right:auto;font:850 12px/1.2 system-ui;letter-spacing:.04em}
#sjppPanel .sjpp-aim-table>summary span{font:700 11px/1.2 system-ui;color:#c6d9c5}
#sjppPanel .sjpp-aim-scroll{overflow:auto;max-height:290px;overscroll-behavior:contain;border-top:1px solid #486149;-webkit-overflow-scrolling:touch}
#sjppPanel .sjpp-aim-scroll table{border-collapse:separate;border-spacing:0;min-width:800px;width:100%;text-align:left;font:700 11px/1.3 system-ui;font-variant-numeric:tabular-nums}
#sjppPanel .sjpp-aim-scroll th,#sjppPanel .sjpp-aim-scroll td{padding:9px 8px;border-bottom:1px solid #354f3c;white-space:nowrap}
#sjppPanel .sjpp-aim-scroll thead th{position:sticky;top:0;z-index:2;background:#284332;color:#d8e6cd;font-size:10px;letter-spacing:.02em}
#sjppPanel .sjpp-aim-scroll th:first-child{position:sticky;left:0;z-index:3;background:#1c3725}
#sjppPanel .sjpp-aim-scroll thead th:first-child{z-index:4;background:#284332}
#sjppPanel .sjpp-aim-scroll tbody tr{background:#142c1e;color:#e9eddf}
#sjppPanel .sjpp-aim-scroll tbody tr:nth-child(even){background:#1a3524}
#sjppPanel .sjpp-aim-scroll tbody tr.sjpp-row-current{background:#4e4626;color:#ffebba}
#sjppPanel .sjpp-aim-scroll tbody tr.sjpp-row-current th:first-child{background:#4e4626}
#sjppPanel .sjpp-aim-scroll tbody tr.sjpp-row-done{background:#1c4d37;color:#aef0c8}
#sjppPanel .sjpp-aim-scroll tbody tr.sjpp-row-done th:first-child{background:#1c4d37}
#sjppPanel .sjpp-aim-scroll tbody button{min-width:49px;min-height:34px;padding:5px 7px;border:1px solid #83997f;border-radius:6px;background:#284a34;color:inherit;font-weight:850;font-size:12px}
#sjppPanel .sjpp-aim-scroll tbody button:disabled{opacity:.48}
#sjppPanel .sjpp-aim-scroll tbody tr.sjpp-row-current button{border-color:#e9cc7e;background:#715b28;color:#fff2b5}
#sjppPanel .sjpp-aim-scroll tbody tr.sjpp-row-done button{border-color:#67c597;background:#206044;color:#c8ffdd}
#sjppPanel .sjpp-aim-footnote{margin:0;padding:7px 9px;color:#b9d0ba;font:500 10px/1.4 system-ui}
#sjppPanel .sjpp-aim-empty{color:#c6d9c5;padding:14px!important}
@media(max-width:700px){#sjppPanel .sjpp-aim-scroll{max-height:230px}#sjppPanel .sjpp-aim-scroll th,#sjppPanel .sjpp-aim-scroll td{padding:6px 7px}#sjppPanel .sjpp-aim-table>summary{padding:10px 8px}}


/* Santajaay compact map-first artillery panel, Nov 3 2026 */
#sjppPanel .sjpp-more .sjpp-all[hidden]{display:none!important}
#sjppPanel .sjpp-help[hidden]{display:none!important}
#sjppPanel .sjpp-more{border:1px solid #455f4b;border-radius:8px;background:#193425;margin:5px 0 0;padding:0}
#sjppPanel .sjpp-more>summary{padding:9px 10px!important;min-height:33px;color:#d8dbcd!important;font:750 11px/1.35 system-ui!important}
#sjppPanel .sjpp-more[open]{max-height:none!important;overflow:visible!important;padding-bottom:8px}
#sjppPanel .sjpp-more .sjpp-aim-box{margin:6px 8px}
#sjppPanel .sjpp-more .sjpp-fine{margin:6px 9px;padding:6px 0}
#sjppPanel .sjpp-more .sjpp-heading{margin:6px 9px 0}
#sjppPanel .sjpp-more #sjppReset{display:block;width:calc(100% - 18px);margin:8px 9px}
#sjppPanel .sjpp-more .sjpp-warning{margin:6px 9px;font-size:10px}
#sjppPanel .sjpp-aim-table{margin:5px 0!important}
#sjppPanel .sjpp-aim-table>summary{min-height:33px;padding:8px 10px!important}
#sjppPanel .sjpp-step{margin:6px 1px 3px!important}
#sjppPanel .sjpp-readout{padding:7px!important}
#sjppPanel .sjpp-readout strong{font-size:clamp(16px,4vw,20px)!important;margin:2px 0!important;line-height:1.2}
#sjppPanel .sjpp-readout small{font-size:10px!important}
#sjppPanel .sjpp-readout em{font-size:11px!important}
#sjppPanel .sjpp-controls{margin-top:5px!important}
#sjppPanel .sjpp-controls button{min-height:38px!important;font-size:12px!important}
#sjppPanel .sjpp-quick{margin:5px 0 0!important}
#sjppPanel .sjpp-quick button{min-height:32px!important}
#sjppPanel .sjpp-compact-head select{min-height:35px!important}
@media(max-width:700px){
  body.sjpp-active #sjWorkbench #hint{display:none!important}
  #sjppPanel.sjpp-floating{max-height:min(47dvh,390px)!important;overflow-y:auto!important;overscroll-behavior:contain}
  #sjppPanel.sjpp-floating.sjpp-expanded{max-height:min(74dvh,700px)!important}
  #sjFullscreenStage:fullscreen #sjppPanel.sjpp-floating{max-height:min(47dvh,390px)!important}
  #sjFullscreenStage:fullscreen #sjppPanel.sjpp-floating.sjpp-expanded{max-height:min(74dvh,700px)!important}
}
