/* Windows 11 / WinUI 3 for the Windows pages. Numbers follow the app's own XAML (MainWindow,
   HomePage, App.xaml styles) and the WinUI colour resources; the accent is the default Windows
   blue as the app draws it. On Windows the text is set in Segoe UI Variable; elsewhere the
   nearest installed humanist sans stands in (the fonts themselves may not be shipped). */
:root{color-scheme:light;
  --mica:#f3f3f3;--layer:rgba(255,255,255,.5);--layer-stroke:rgba(0,0,0,.06);
  --card:rgba(255,255,255,.7);--card-stroke:rgba(0,0,0,.058);--card-hover:rgba(249,249,249,.5);--card-solid:#fff;
  --text:rgba(0,0,0,.894);--text2:rgba(0,0,0,.606);--text3:rgba(0,0,0,.446);
  --accent:#0067c0;--accent-hover:#1975c5;--accent-pressed:#3183ca;--on-accent:#fff;--accent-text:#003e92;
  --accent-stroke:rgba(255,255,255,.08);--accent-stroke-bottom:rgba(0,0,0,.4);
  --ctl:rgba(255,255,255,.7);--ctl-hover:rgba(249,249,249,.5);--ctl-stroke:rgba(0,0,0,.058);--ctl-stroke-bottom:rgba(0,0,0,.162);
  --subtle:rgba(0,0,0,.037);--subtle2:rgba(0,0,0,.024);--alt:rgba(0,0,0,.024);--divider:rgba(0,0,0,.08);
  --ok:#0f7b0f;--shot-shadow:0 8px 24px rgba(0,0,0,.14)}
:root[data-theme="dark"]{color-scheme:dark;
  --mica:#202020;--layer:rgba(58,58,58,.3);--layer-stroke:rgba(0,0,0,.1);
  --card:rgba(255,255,255,.051);--card-stroke:rgba(0,0,0,.1);--card-hover:rgba(255,255,255,.084);--card-solid:#2d2d2d;
  --text:#fff;--text2:rgba(255,255,255,.786);--text3:rgba(255,255,255,.544);
  --accent:#4cc2ff;--accent-hover:#47b1e8;--accent-pressed:#42a1d2;--on-accent:#000;--accent-text:#99ebff;
  --accent-stroke:rgba(255,255,255,.08);--accent-stroke-bottom:rgba(0,0,0,.14);
  --ctl:rgba(255,255,255,.061);--ctl-hover:rgba(255,255,255,.084);--ctl-stroke:rgba(255,255,255,.07);--ctl-stroke-bottom:rgba(255,255,255,.07);
  --subtle:rgba(255,255,255,.061);--subtle2:rgba(255,255,255,.042);--alt:rgba(0,0,0,.1);--divider:rgba(255,255,255,.084);
  --ok:#6ccb5f;--shot-shadow:0 8px 24px rgba(0,0,0,.4)}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:64px}
body{margin:0;background:var(--mica);color:var(--text);font:400 14px/20px 'Segoe UI Variable Text','Segoe UI Variable','Segoe UI','Noto Sans','Open Sans',system-ui,sans-serif}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
h1,h2,h3,p,ul,ol,dl,dd,figure{margin:0;padding:0}
li{list-style:none}
img{display:block;max-width:100%;height:auto}
code{font:12px/20px 'Cascadia Mono',Consolas,ui-monospace,monospace}
.i{width:20px;height:20px;fill:currentColor;flex:none}
.i16{width:16px;height:16px;fill:currentColor;flex:none}
:focus-visible{outline:2px solid var(--text);outline-offset:1px;border-radius:4px}
[hidden]{display:none!important}
:root:not([data-js]) .js-only{display:none!important}
.skip{position:absolute;left:12px;top:-64px;z-index:20;padding:6px 12px;border-radius:4px;background:var(--accent);color:var(--on-accent)}
.skip:focus{top:8px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.on-dark{display:none}
:root[data-theme="dark"] .on-light{display:none}
:root[data-theme="dark"] .on-dark{display:block}

/* type ramp */
.strong{font-weight:600}
.subtitle{font:600 20px/28px 'Segoe UI Variable Display','Segoe UI Variable','Segoe UI','Noto Sans',sans-serif}
.title{font:600 28px/36px 'Segoe UI Variable Display','Segoe UI Variable','Segoe UI','Noto Sans',sans-serif}
.hl{color:var(--accent-text)}
.hl:hover{text-decoration:underline}

/* buttons */
.wbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:32px;padding:0 12px;border-radius:4px;background:var(--ctl);border:1px solid var(--ctl-stroke);border-bottom-color:var(--ctl-stroke-bottom);white-space:nowrap}
.wbtn:hover{background:var(--ctl-hover)}
.wbtn:active{color:var(--text2);border-bottom-color:var(--ctl-stroke)}
.wbtn.accent{background:var(--accent);color:var(--on-accent);border-color:var(--accent-stroke);border-bottom-color:var(--accent-stroke-bottom)}
.wbtn.accent:hover{background:var(--accent-hover)}
.wbtn.accent:active{background:var(--accent-pressed)}
.wbtn.subtle{background:none;border-color:transparent}
.wbtn.subtle:hover{background:var(--subtle)}
.wbtn.subtle:active{background:var(--subtle2)}
.wbtn.icon{width:32px;padding:0}
[data-theme-cycle] .i{display:none}
:root[data-theme-choice="system"] [data-theme-cycle] .t-system,
:root[data-theme-choice="light"] [data-theme-cycle] .t-light,
:root[data-theme-choice="dark"] [data-theme-cycle] .t-dark{display:block}
[data-copy] .c-done{display:none}
[data-copy].copied .c-idle{display:none}
[data-copy].copied .c-done{display:block;color:var(--ok)}

/* the platform switch: a segmented control */
.wseg{display:inline-flex;gap:2px;padding:2px;border-radius:6px;background:var(--alt);border:1px solid var(--ctl-stroke)}
.wseg a{position:relative;display:inline-flex;align-items:center;gap:8px;height:26px;padding:0 10px;border-radius:4px;color:var(--text2);border:1px solid transparent}
.wseg a:hover{background:var(--subtle)}
.wseg a[aria-current]{background:var(--card-solid);border-color:var(--ctl-stroke);border-bottom-color:var(--ctl-stroke-bottom);color:var(--text)}
.wseg a[aria-current]::after{content:'';position:absolute;left:50%;bottom:1px;width:16px;height:3px;margin-left:-8px;border-radius:2px;background:var(--accent)}
.wseg .i16{width:14px;height:14px}

/* title bar strip */
.titlebar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;height:48px;padding:0 12px 0 16px;background:var(--mica)}
.titlebar .brand{display:flex;align-items:center;gap:12px;margin-right:8px}
.titlebar .mark{width:20px;height:20px}
.titlebar .apptitle{font-size:12px;line-height:16px}
.titlebar .sp{flex:1}
.wbtn .short{display:none}

/* navigation pane */
.frame{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 48px)}
.pane{position:sticky;top:48px;height:calc(100vh - 48px);display:flex;flex-direction:column;padding:0 0 4px}
.pane .sp{flex:1}
.navitem{position:relative;display:flex;align-items:center;gap:14px;height:36px;margin:2px 4px;padding:0 12px;border-radius:4px;white-space:nowrap}
.navitem:hover{background:var(--subtle)}
.navitem[aria-current]{background:var(--subtle)}
.navitem[aria-current]::before{content:'';position:absolute;left:0;top:10px;width:3px;height:16px;border-radius:2px;background:var(--accent)}
.navstate{display:flex;align-items:center;gap:8px;margin:8px 16px 8px 20px;font-size:12px;line-height:16px;color:var(--text2)}
.dot{width:8px;height:8px;border-radius:4px;background:var(--ok);flex:none}
.layer{background:var(--layer);border:1px solid var(--layer-stroke);border-right:0;border-bottom:0;border-radius:8px 0 0 0;min-width:0}
.content{max-width:832px;margin:0 auto;padding:8px 36px 48px}

/* cards, as in Windows Settings */
.wcard{display:flex;align-items:center;gap:16px;min-height:64px;padding:12px 16px;border-radius:4px;background:var(--card);border:1px solid var(--card-stroke)}
a.wcard:hover,.expander>summary:hover{background:var(--card-hover)}
.wcard>.i{color:var(--text)}
.wcard .grow{flex:1;min-width:0}
.wcard .grow>span,.wcard .grow>p{display:block}
.wcard .d{font-size:12px;line-height:16px;color:var(--text2)}
.wcard .chev{color:var(--text3);width:12px;height:12px}
.wcard+.wcard,.wcard+.expander,.expander+.wcard,.expander+.expander{margin-top:4px}
.sect{font-size:14px;line-height:20px;font-weight:600;margin:22px 0 8px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.grid2 .wcard+.wcard{margin-top:0}
.pill{padding:2px 8px;border-radius:10px;background:var(--subtle);font-size:12px;line-height:16px;white-space:nowrap}

/* an expander: the header is a card row, the content hangs under it */
.expander{border-radius:4px;background:var(--card);border:1px solid var(--card-stroke)}
.expander>summary{display:flex;align-items:center;gap:16px;min-height:48px;padding:8px 16px;cursor:pointer;list-style:none;border-radius:3px}
.expander>summary::-webkit-details-marker{display:none}
.expander>summary .grow{flex:1;min-width:0}
.expander>summary .chev{color:var(--text2);width:12px;height:12px;transition:rotate .2s}
.expander[open]>summary .chev{rotate:180deg}
.expander .inner{border-top:1px solid var(--divider);padding:12px 16px 14px 52px}
.expander .inner p{color:var(--text2)}
.expander .inner p+p{margin-top:8px}
.kv{display:grid;grid-template-columns:auto minmax(0,1fr);border-top:1px solid var(--divider)}
.kv dt,.kv dd{padding:9px 16px;border-bottom:1px solid var(--divider);min-width:0}
.kv dt{color:var(--text2);padding-right:8px}
.kv dd{text-align:right;overflow-wrap:anywhere}
.kv dt:last-of-type,.kv dd:last-of-type{border-bottom:0}
.kv .hash{display:flex;align-items:center;justify-content:flex-end;gap:4px}
.kv .hash code{min-width:0;overflow-wrap:anywhere;text-align:right}
.kv .wbtn{flex:none;height:28px;width:28px}

/* the home page of the app: the round button, the status under it, cards */
.hero{display:flex;flex-direction:column;align-items:center;text-align:center}
.power{display:grid;place-items:center;width:116px;height:116px;margin:12px;border-radius:58px;background:var(--accent);color:var(--on-accent);border:1px solid var(--accent-stroke);border-bottom-color:var(--accent-stroke-bottom)}
.power:hover{background:var(--accent-hover)}
.power:active{background:var(--accent-pressed)}
.power:focus-visible{border-radius:58px;outline-offset:3px}
.power .i{width:40px;height:40px}
.hero h1{margin-top:10px}
.hero .lead{margin-top:2px;color:var(--text2)}
.filecard{margin-top:20px}
.fileicon{display:grid;place-items:center;width:28px;height:28px;flex:none}
.fileicon img{width:28px;height:28px}
.filecard .name{overflow-wrap:anywhere}
.shots{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.shots figcaption{margin-top:6px;font-size:12px;line-height:16px;color:var(--text2)}
.shots a{border-radius:8px;box-shadow:0 0 0 1px var(--card-stroke),var(--shot-shadow);overflow:hidden;background:var(--card-solid)}
.shots a.on-light{display:block}
:root[data-theme="dark"] .shots a.on-light{display:none}
.shots img{width:100%}
.about{flex-wrap:wrap;gap:4px 20px}
.about .hl{display:inline-flex;align-items:center;gap:6px;height:32px}

/* the screenshot preview: a dialog over the smoke layer, a caption bar and the capture. site.js
   sets --w and --h, the capture's own size, and the dialog is fitted to the screen from them */
html:has(dialog[open]){overflow:hidden;scrollbar-gutter:stable}
a[data-shot]{cursor:zoom-in}
.viewer{--vh:100vh;width:min(100vw - 32px,var(--w)*1px + 34px,(var(--vh) - 114px)*var(--w)/var(--h) + 34px);max-width:none;max-height:none;padding:0;border:1px solid rgba(117,117,117,.4);border-radius:8px;background:var(--mica);color:var(--text);box-shadow:0 32px 64px rgba(0,0,0,.28),0 2px 21px rgba(0,0,0,.22);overflow:hidden}
@supports (height:100dvh){.viewer{--vh:100dvh}}
.viewer::backdrop{background:rgba(0,0,0,.3)}
.v-bar{display:flex;align-items:center;gap:4px;height:48px;padding:0 8px 0 16px}
.v-cap{flex:1;min-width:0;font-size:12px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v-body{padding:0 16px 16px}
.viewer img{width:100%;height:auto;border-radius:8px;box-shadow:0 0 0 1px var(--card-stroke);touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none}

/* text pages */
.pagehead{margin:12px 0 4px}
.pagehead p{margin-top:4px;color:var(--text2)}
.steps{counter-reset:step}
.steps .wcard{align-items:flex-start}
.stepnum{display:grid;place-items:center;width:20px;height:20px;margin-top:1px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-size:12px;line-height:16px;font-weight:600;flex:none}
.wcard .d+.d{margin-top:6px}
.wcard .more{display:inline-flex;align-items:center;gap:6px;margin-top:8px}
.prose{border-radius:4px;background:var(--card);border:1px solid var(--card-stroke);padding:14px 16px}
.prose p+p,.prose p+ol,.prose ol+p{margin-top:10px}
.prose ol{counter-reset:item;display:grid;gap:8px}
.prose ol li{counter-increment:item;position:relative;padding-left:28px}
.prose ol li::before{content:counter(item);position:absolute;left:0;top:0;width:20px;height:20px;border-radius:10px;background:var(--subtle);font-size:12px;line-height:20px;text-align:center;font-weight:600}
.acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.release{display:block;padding:14px 16px;scroll-margin-top:64px}
.release header{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.release time{color:var(--text2);font-size:12px;line-height:16px}
.notes ul{display:grid;gap:6px;margin-top:10px}
.notes li{position:relative;padding-left:16px}
.notes li::before{content:'';position:absolute;left:3px;top:8px;width:4px;height:4px;border-radius:2px;background:var(--text2)}
.oops{padding:48px 0}
.oops p{margin:6px 0 16px;color:var(--text2)}

@media(max-width:820px){
  .titlebar{padding:0 8px 0 12px;gap:6px}
  .titlebar .brand{gap:8px;margin-right:0}
  .wseg a span{display:none}
  .wbtn .long{display:none}
  .wbtn .short{display:inline}
  /* the pane turns into top navigation, as NavigationView does in its Top mode */
  .frame{display:block}
  .pane{position:sticky;top:48px;z-index:4;height:auto;flex-direction:row;padding:0 4px;background:var(--mica);overflow-x:auto;scrollbar-width:none}
  .pane::-webkit-scrollbar{display:none}
  .pane .sp,.pane .navstate,.pane .ext{display:none}
  .navitem{height:40px;margin:0;padding:0 12px;gap:8px;background:none!important}
  .navitem:hover{color:var(--text2)}
  .navitem[aria-current]::before{left:50%;top:auto;bottom:2px;width:16px;height:3px;margin-left:-8px}
  .layer{border-left:0;border-radius:0}
  .content{padding:8px 16px 40px}
  .grid2{grid-template-columns:1fr;gap:4px}
  .shots{grid-template-columns:1fr}
  .expander .inner{padding-left:16px}
  html{scroll-padding-top:104px}
  .release{scroll-margin-top:104px}
}
@media(max-width:380px){
  .titlebar .apptitle{display:none}
  .wcard{gap:12px;padding:12px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
