.compass-entry {display:flex;align-items:center;gap:clamp(.8rem,2.8vw,1.55rem);padding:clamp(.9rem,2.5vw,1.45rem);color:#fff4df;background:linear-gradient(112deg,#310b1c,#661b32 75%,#4b1527);border:1px solid #a58a5c;border-radius:.84rem;margin:1rem 0;box-shadow:inset 0 1px 0 #dcc48226}
.compass-entry-icon {flex:none;display:inline-block;width:clamp(4.4rem,12vw,6.6rem);aspect-ratio:1;border-radius:24%;background:#07121b url("../art/compass-icon.webp") center/cover no-repeat;border:1px solid #bd9e69;box-shadow:0 5px 16px #0004}
.compass-entry h2 {color:#fff2d8;font:400 clamp(1.5rem,4.5vw,2.15rem)/1.1 Georgia,serif;margin:0}
.compass-entry p {margin:.33rem 0 .15rem;color:#eee3ca;font-size:.95rem;line-height:1.4}
#compass-open {min-height:44px;border:0;background:transparent;color:#ffe0a2;font:700 .95rem/1.25 system-ui,sans-serif;padding:.42rem .2rem .42rem 0;text-align:left;cursor:pointer}
#compass-open:hover {text-decoration:underline;text-underline-offset:.19em}
.compass-instrument {box-sizing:border-box;color-scheme:dark;width:min(61rem,96vw);max-width:100vw;max-height:94vh;max-height:94dvh;margin:auto;border:1px solid #947f60;padding:0;border-radius:1rem;overflow:auto;overscroll-behavior:contain;color:#f8edda;background:radial-gradient(ellipse at 5% 0%,#2e3b40,transparent 53%),linear-gradient(135deg,#17232c 12%,#101a25 60%,#2c202f);font:400 1rem/1.43 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 1.45rem 5rem #020610ad}
#compass-dialog:not([open]),#compass-dialog [hidden] {display:none!important}
#compass-dialog::backdrop {background:#090c16d9}
.compass-panel {padding:clamp(.9rem,2.4vw,1.65rem)}
.compass-head,.compass-identity,.compass-section-head,.compass-coordinate-head,.compass-foot {display:flex;align-items:center;justify-content:space-between;gap:.72rem}
.compass-head {border-bottom:1px solid #ac94734d;padding-bottom:.8rem}
.compass-identity {justify-content:flex-start;min-width:0}
.compass-identity .compass-entry-icon {width:clamp(2.85rem,7vw,4rem)}
.compass-kicker {margin:0 0 .2rem;color:#f0cd8e;letter-spacing:.13em;font:700 .75rem/1.3 system-ui;text-transform:uppercase}
#compass-title {margin:0;color:#fff1d4;font:400 clamp(1.85rem,4.7vw,3.05rem)/1.02 Georgia,serif}
.compass-instrument button,.compass-details summary {font:600 .84rem/1.25 system-ui,sans-serif;color:#f3e7cc;cursor:pointer}
.compass-instrument button {min-height:44px;background:#1b2b37;border:1px solid #8e8270;border-radius:.53rem;padding:.45rem .78rem}
.compass-instrument button:hover:enabled,.compass-instrument button[aria-pressed=true] {background:#30424c;border-color:#cfb279}
.compass-instrument button:disabled {opacity:.55;cursor:default}
.compass-instrument :focus-visible,#compass-open:focus-visible {outline:2px solid #fbce79;outline-offset:3px}
#compass-close {flex:none}
#compass-close span {color:#ecc68c}
.compass-deck {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(15rem,1fr);gap:clamp(.9rem,2vw,1.45rem);margin:1rem 0}
.compass-station,.compass-gps-panel,.compass-waypoint-panel {min-width:0;border:1px solid #88765b88;border-radius:.83rem;background:linear-gradient(130deg,#25323c,#17222d 68%,#29232f);overflow:hidden}
.compass-station {align-self:start;padding:0 .95rem .5rem}
.compass-stage {margin:0 -.95rem .25rem;position:relative;text-align:center;overflow:hidden;color:#fff0cc;background-color:#27141e;
  background-image:linear-gradient(to bottom,rgba(25,11,19,.04) 35%,rgba(24,10,19,.10) 66%,rgba(18,10,18,.85) 100%),url("../art/compass-atlas.webp"),radial-gradient(ellipse at 42% 32%,#633340,#381927 62%,#20141e);
  background-position:center;background-size:cover;background-repeat:no-repeat;
  border-bottom:1px solid #927b5775;padding:.38rem .5rem .7rem}
#compass-canvas {display:block;width:100%;max-width:32rem;height:auto;aspect-ratio:1.26;margin:auto}
#compass-mode {color:#f1dbac;text-shadow:0 1px 3px #160b11;margin:-.1rem 0 .06rem;font:650 .75rem/1.3 system-ui,sans-serif;text-transform:uppercase;letter-spacing:.14em}
#compass-heading {font:500 clamp(2.3rem,6vw,3.55rem)/1.12 Georgia,serif;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:#fff1d5;text-shadow:0 2px 5px #160b11}
.compass-actions {display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:center;margin:.72rem 0 .46rem}
.compass-instrument button.compass-primary {background:linear-gradient(125deg,#f7dfac,#d8ad69);border-color:#f0cf91;color:#29212a}
.compass-instrument button.compass-primary:hover:enabled {background:#f5d998}
.compass-status {color:#cedcdd;font-size:.81rem;line-height:1.45;margin:.48rem 0}
.compass-station>.compass-status {text-align:center}
#compass-sliders {padding:.25rem .4rem .55rem}
#compass-sliders label {display:flex;align-items:baseline;justify-content:space-between;color:#eadbbf;font-size:.8rem}
#compass-sliders output {color:#f1cd8d;font-variant-numeric:tabular-nums}
#compass-sliders input {accent-color:#e4be79;width:100%;min-height:44px;display:block;margin:0}
.compass-details {border-top:1px solid #b49c703d;margin-top:.6rem}
.compass-details summary {min-height:44px;display:list-item;align-content:center;padding:.72rem .15rem}
.compass-utilities {display:grid;gap:.85rem;align-content:start}
.compass-gps-panel,.compass-waypoint-panel {padding:clamp(.8rem,2vw,1.15rem)}
.compass-section-head h3 {margin:0;color:#ffedcd;font:400 clamp(1.43rem,3vw,1.7rem)/1.15 Georgia,serif}
.compass-coordinate-head {margin:.63rem 0 .12rem;border-top:1px solid #a48d6e54;align-items:center}
.compass-coordinate-head h4 {margin:0;color:#efc98b;font:650 .75rem/1.4 system-ui,sans-serif;letter-spacing:.13em;text-transform:uppercase}
#compass-format,#compass-clear {background:transparent;color:#f2d098;border:0;text-decoration:underline;text-underline-offset:.18rem}
.compass-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.compass-metrics div {min-width:0;padding:.49rem .32rem .5rem 0;border-bottom:1px solid #b0a08833}
.compass-metrics dt {color:#cfdbdf;font-size:.76rem;margin:0 0 .14rem}
.compass-metrics dd {margin:0;color:#fff3dc;font-size:.95rem;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.compass-positions dd {color:#a8e3e1;font-weight:600}
.compass-fix-line,.compass-foot {font-size:.75rem;color:#c3d1d3}
.compass-fix-line {margin:.6rem 0 0}
.compass-fix-line time {margin-left:.25rem;color:#f2e3c8}
#compass-waypoint-status:empty {display:none}
.compass-foot {flex-wrap:wrap;gap:.3rem .7rem;border-top:1px solid #b09a6645;padding-top:.3rem}
.compass-brand {display:inline-flex;align-items:center;gap:.45rem;min-height:44px;color:#efd6a7;font:700 1rem Georgia,serif;letter-spacing:.06em;text-decoration:none}
.compass-brand img {border-radius:24%}
.compass-modal-open {overflow:hidden}
#compass-dialog.compass-fallback[open] {position:fixed;inset:0;z-index:120;box-shadow:0 0 0 100vmax #080c14dc}
@media(max-width:46rem){#compass-dialog {width:100%;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border:0;border-radius:0;margin:0}
.compass-panel {padding:max(.8rem,env(safe-area-inset-top)) max(.72rem,env(safe-area-inset-right)) max(.85rem,env(safe-area-inset-bottom)) max(.72rem,env(safe-area-inset-left))}
.compass-deck {grid-template-columns:minmax(0,1fr);gap:.78rem}.compass-stage {padding-top:.1rem}#compass-canvas {max-height:39vh;max-height:39dvh;object-fit:contain}.compass-footer span{font-size:.75rem}}
.sat-section {margin:.95rem 0;padding:clamp(.75rem,2vw,1.1rem);background:linear-gradient(135deg,#22313b,#15222d 68%,#28232d);border:1px solid #88765b88;border-radius:.83rem;color:#edebdc;min-width:0}
.sat-top,.sat-summary,.sat-switch,#sat-legend {display:flex;align-items:center;flex-wrap:wrap;gap:.4rem .7rem}
.sat-top,.sat-summary {justify-content:space-between}
.sat-top h3 {font:400 clamp(1.48rem,3vw,1.8rem)/1.2 Georgia,serif;color:#ffedcd;margin:0}
.sat-switch {gap:.15rem;border:1px solid #82765e;border-radius:.59rem;padding:2px}
.sat-switch button {border:0;background:transparent;color:#e6ddc8;padding:.4rem .67rem;font-size:.77rem}
.sat-switch button[aria-pressed=true] {background:#453e35;color:#fff2cf}
#sat-counts {color:#ffebc5;margin:.2rem 0;font:600 .94rem/1.3 system-ui,sans-serif;font-variant-numeric:tabular-nums}
#sat-status {margin:.62rem 0}
#sat-legend {margin:.6rem 0 .15rem;color:#e2e9e5;font-size:.76rem;line-height:1.35}
.sat-key {display:inline-flex;gap:.31rem;align-items:center}
.sat-mark {font-size:.88rem}
#sat-figure {text-align:center;margin:.3rem auto}
#sat-plot {display:block;width:min(100%,24rem);height:auto;margin:auto;color:#c8d3d2;font-family:system-ui,sans-serif;overflow:visible}
.sat-caption {color:#c7d1d0;font-size:.75rem;line-height:1.45;margin:.4rem 0 0;overflow-wrap:anywhere}
#sat-import {margin:.75rem 0}
#sat-import label {display:block;color:#f4dbad;font-size:.86rem;margin-bottom:.45rem}
#sat-import label span {color:#c9d6d5;font-size:.77rem}
#sat-file {color:#d9e2e0;max-width:100%;font-size:.79rem}
#sat-file::file-selector-button {min-height:44px;padding:.3rem .65rem;border-radius:.42rem;border:1px solid #9a8b72;background:#1c2c37;color:#f3e7cc}
#sat-table-wrap {margin-top:.55rem;max-height:25rem;overflow:auto;overscroll-behavior:contain;border:1px solid #76818377;border-radius:.38rem}
#sat-table {width:100%;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums;font-size:.78rem;line-height:1.35;color:#f6ecd8;text-align:left}
#sat-table caption.sat-visually-hidden {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#sat-table :is(th,td) {background:transparent;color:inherit;vertical-align:middle;padding:.42rem .38rem;border:0;border-bottom:1px solid #84938f44;text-align:left;overflow-wrap:anywhere}
#sat-table th {font-weight:650}
#sat-table thead th {position:sticky;top:0;z-index:1;background:#293740;color:#f1d39d;font-size:.75rem}
#sat-table .sat-id,#sat-table .sat-dir {display:block}
#sat-table .sat-id {color:#c6d8d8;font-size:.75rem}
.sat-signal {display:flex;align-items:baseline;gap:.3rem;flex-wrap:wrap;padding:.12rem 0}
.sat-strength {width:2.65rem;height:.38rem;display:inline-block;border-radius:1rem;overflow:hidden;background:#394e56;align-self:center}
.sat-strength i {height:100%;display:block;background:#8ed6c1}
#sat-note {margin-top:.6rem}
@media(max-width:25rem){.sat-section {padding:.64rem}.sat-switch button {padding:.35rem .48rem}#sat-table :is(td,th){padding:.38rem .25rem}.sat-signal {gap:.19rem}.sat-strength {width:1.55rem}}
.sat-mark.sat-gps{color:#e5be78}.sat-mark.sat-glonass{color:#82ccdf}.sat-mark.sat-galileo{color:#b8a6f0}.sat-mark.sat-beidou{color:#92d7b3}
.sat-strength i{background:none}.sat-strength svg{display:block}

/* The built-in and independently installed compass share the same atlas plate. */
@media not all and (forced-colors:active) {
  .compass-entry, .today-tool-link[data-today-tool="ext-gps-tools"] {
    background-color:#471225;
    background-image:linear-gradient(105deg,#330b1d4d 0%,#370d20c7 32%,#481027d9 58%,#721d3487 85%,#54152740),url("../art/compass-atlas.webp"),linear-gradient(115deg,#340c1c,#6f1b32 73%,#491226);
    background-position:center,center 17%,center; background-size:cover;
    color:#fff3d9; border-color:#a4865c;
  }
  .compass-entry > div {text-shadow:0 1px 3px #230d18}
  .today-tool-link[data-today-tool="ext-gps-tools"] {
    background-image:linear-gradient(104deg,#330b1deb 0%,#470d21dc 32%,#59152bb3 65%,#671d3145),url("../art/compass-atlas.webp");
  }
  .today-tool-link[data-today-tool="ext-gps-tools"] a {color:#fff2d8;text-decoration-color:#e0bb80}
  .today-tool-link[data-today-tool="ext-gps-tools"] p {color:#f1e6ce}
}
