:root {
    color-scheme: light;
    --canvas: #f9fbfd;
    --surface: #fff;
    --ink: #172635;
    --muted: #4a5d70;
    --line: #d7e1ea;
    --accent: #006a72;
    --accent-hover: #004e55;
    --selection: #e4f3f2;
    --solid: #00626a;
    --on-solid: #fff;
    --focus: #007985;
    --warning: #8d5000;
    --success: #17684d;
    --error: #aa2639;
    --shadow: 0 16px 48px #13263a26;
    --radius: .5rem;
    --s1: .25rem;
    --s2: .5rem;
    --s3: .75rem;
    --s4: 1rem;
    --s6: 1.5rem;
    --s8: 2rem;
    --bar: 3.75rem;
    --sans: "Segoe UI", system-ui, sans-serif;
    --mono: "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) { color-scheme: dark; }
}
:root[data-theme="dark"] { color-scheme: dark; }
:root {
    --canvas: light-dark(#f9fbfd, #101820);
    --surface: light-dark(#fff, #17222c);
    --ink: light-dark(#172635, #e6eef7);
    --muted: light-dark(#4a5d70, #abbccc);
    --line: light-dark(#d7e1ea, #3a4b5a);
    --accent: light-dark(#006a72, #79ddd7);
    --accent-hover: light-dark(#004e55, #a6f4ee);
    --selection: light-dark(#e4f3f2, #203b42);
    --focus: light-dark(#007985, #8ee8e3);
    --warning: light-dark(#8d5000, #f8c679);
    --success: light-dark(#17684d, #8fe4bd);
    --error: light-dark(#aa2639, #ffacb4);
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + var(--s4)); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
.skip { position: fixed; left: var(--s4); top: var(--s2); z-index: 20; padding: var(--s2) var(--s4); background: var(--surface); transform: translateY(-160%); }
.skip:focus { transform: none; }
.topbar { position: sticky; inset-block-start: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner { height: var(--bar); max-width: 100rem; margin-inline: auto; padding-inline: var(--s6); display: flex; align-items: center; gap: var(--s4); white-space: nowrap; }
.brand { display: flex; gap: var(--s2); align-items: center; color: var(--ink); font-weight: 700; text-decoration: none; letter-spacing: -.025em; }
.brand small { color: var(--muted); font-weight: 500; margin-inline-start: var(--s1); }
.top-links { display: flex; gap: var(--s4); margin-left: var(--s4); font-size: .88rem; }
.top-links a, .languages a { text-decoration: none; color: var(--muted); }
.top-links a:hover, .languages a:hover { color: var(--accent); }
.search-button { margin-inline-start: auto; min-width: 12rem; display: flex; align-items: center; gap: var(--s2); text-align: left; }
.search-icon { position: relative; display: inline-block; width: .87rem; height: .87rem; border: 1.5px solid currentColor; border-radius: 50%; margin-inline-end: .12rem; }
.search-icon::after { content: ""; position: absolute; width: .44rem; height: 1.5px; background: currentColor; transform: rotate(45deg); left: .58rem; top: .71rem; }
.search-button kbd { margin-inline-start: auto; line-height: 1.1; }
.search-button, .theme-button, .menu-button, .search-heading button {
    background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); min-height: 2.25rem; padding: var(--s1) var(--s3);
}
.search-button:hover, .theme-button:hover, .menu-button:hover { background: var(--selection); border-color: var(--focus); }
.languages { display: flex; font-size: .78rem; gap: .15rem; align-items: center; }
.languages > * { padding: .23rem .38rem; border-radius: var(--radius); }
.languages [aria-current] { color: var(--accent); background: var(--selection); font-weight: 700; }
.menu-button, .mobile-product, .inline-toc { display: none; }
.workspace { display: grid; grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr) minmax(10rem, 14rem); max-width: 100rem; margin: auto; min-height: calc(100dvh - var(--bar)); }
.workspace-home { grid-template-columns: minmax(13rem, 17rem) minmax(0, 1fr); }
.sidebar, .article-toc { position: sticky; top: var(--bar); height: calc(100dvh - var(--bar)); overflow-y: auto; align-self: start; font-size: .88rem; }
.sidebar { padding: var(--s6) var(--s4) var(--s8); border-inline-end: 1px solid var(--line); background: var(--surface); }
.sidebar-title, .article-toc p { margin: 0 0 var(--s2); color: var(--muted); font-size: .78rem; font-weight: 700; }
.sidebar ul, .article-toc ol, .inline-toc ol { list-style: none; margin: 0; padding: 0; }
.sidebar details > ul { margin-inline-start: .55rem; padding-inline-start: .55rem; border-inline-start: 1px solid var(--line); }
.sidebar :is(a, summary) { display: block; position: relative; padding: .34rem .5rem; border-radius: var(--radius); color: var(--muted); line-height: 1.42; text-decoration: none; }
.sidebar .mobile-product { display: none; }
.sidebar summary { cursor: pointer; padding-inline-start: 1.4rem; font-weight: 600; }
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar summary::before { content: ""; border: solid currentColor; border-width: 0 1.5px 1.5px 0; width: .32rem; height: .32rem; position: absolute; inset-inline-start: .55rem; top: .77rem; transform: rotate(-45deg); }
.sidebar details[open] > summary::before { transform: rotate(45deg); }
.sidebar :is(a, summary):hover, .sidebar [aria-current="page"] { color: var(--accent); background: var(--selection); }
.sidebar details[data-current] > summary, .sidebar [aria-current="page"] { color: var(--accent); font-weight: 700; }
.article { padding: var(--s8) clamp(1.25rem, 4vw, 4rem) 4rem; min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: .82rem; color: var(--muted); margin-bottom: var(--s4); }
.breadcrumbs span::before { content: "/"; margin-inline-end: var(--s2); }
.article-toc { border-inline-start: 1px solid var(--line); padding: var(--s8) var(--s4); }
.article-toc li li, .inline-toc li li { margin-inline-start: var(--s3); }
.article-toc a, .inline-toc a { display: block; color: var(--muted); text-decoration: none; padding-block: .16rem; line-height: 1.45; }
.article-toc a:hover, .inline-toc a:hover { color: var(--accent); text-decoration: underline; }
.prose > h1, .home-intro h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 720; line-height: 1.12; letter-spacing: -.042em; margin: 0 0 var(--s6); }
.prose h2 { font-size: 1.53rem; line-height: 1.24; margin: var(--s8) 0 var(--s3); letter-spacing: -.022em; }
.prose h3 { font-size: 1.15rem; margin: var(--s6) 0 var(--s2); line-height: 1.35; }
.prose > :is(p, ul, ol, blockquote), .home-intro > p { max-width: 73ch; }
.prose p { margin: 0 0 var(--s4); }
.prose li { margin-block: .27rem; }
.prose ul, .prose ol { padding-inline-start: var(--s6); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose img.xaml-preview-dark { display: none; }
:root[data-theme="dark"] .prose img.xaml-preview-light { display: none; }
:root[data-theme="dark"] .prose img.xaml-preview-dark { display: inline-block; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .prose img.xaml-preview-light { display: none; }
    :root:not([data-theme]) .prose img.xaml-preview-dark { display: inline-block; }
}
.prose pre, .prose details, .prose blockquote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); }
.prose blockquote { margin-inline: 0; border-inline-start: 3px solid var(--accent); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose details summary, .inline-toc summary { cursor: pointer; color: var(--accent); font-weight: 650; }
.prose pre { overflow: auto; line-height: 1.5; }
code, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code, kbd { background: var(--selection); padding: .12em .3em; border-radius: .25rem; overflow-wrap: anywhere; }
.prose table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .9rem; }
.prose :is(td, th) { padding: var(--s2) var(--s3); border: 1px solid var(--line); text-align: start; vertical-align: top; overflow-wrap: anywhere; }
.prose th { background: var(--selection); }
.table-scroll { overflow: auto; margin-block: var(--s4); }
.prose > table { display: block; overflow: auto; }
.table-scroll > table { min-width: min(32rem, 100%); }
.page-links { display: flex; gap: var(--s4); margin-top: var(--s8); border-top: 1px solid var(--line); padding-top: var(--s4); }
.page-links a { flex: 1; text-decoration: none; padding: var(--s2) 0; font-weight: 650; }
.page-links small { display: block; color: var(--muted); font-weight: 400; }
.home-intro { padding: clamp(1rem, 2.8vw, 2.5rem) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s6); }
.home-intro p { font-size: clamp(1rem, 1.65vw, 1.25rem); color: var(--muted); max-width: 53ch; }
.home-actions { display: flex; flex-wrap: wrap; gap: var(--s6); align-items: center; margin-top: var(--s6); }
.primary { display: inline-block; padding: .58rem .9rem; border-radius: var(--radius); background: var(--solid); color: var(--on-solid); font-weight: 650; text-decoration: none; }
.primary:hover { color: var(--on-solid); background: #004e55; }
.home-content > h2:first-of-type { margin-top: 0; }
.home-content > #start-here + ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 62rem;
    padding: 0;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    list-style: none;
}
.home-content > #start-here + ul li { margin: 0; background: var(--surface); }
.home-content > #start-here + ul a { display: block; padding: var(--s3) var(--s4); font-weight: 600; }
.home-content > #start-here + ul a:hover { background: var(--selection); }
.search-dialog { width: min(38rem, calc(100vw - 2rem)); max-height: 80dvh; margin-block-start: min(13vh, 7rem); padding: var(--s6); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-dialog::backdrop { background: #102331a6; }
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); }
.search-heading h2 { margin: 0; font-size: 1.2rem; }
#query { width: 100%; padding: var(--s2) var(--s3); color: var(--ink); background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); }
.search-status { color: var(--muted); margin-bottom: var(--s2); font-size: .88rem; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results a { display: block; padding: var(--s2); border-top: 1px solid var(--line); text-decoration: none; }
.search-results a:hover, .search-results a:focus-visible { background: var(--selection); }
.search-results small { display: block; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 70rem) {
    .workspace { grid-template-columns: minmax(13rem, 15rem) minmax(0, 1fr); }
    .article-toc { display: none; }
    .home-content > #start-here + ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .prose .inline-toc { display: block; margin-bottom: var(--s6); padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
}
@media (max-width: 48rem) {
    .topbar-inner { padding-inline: var(--s2); gap: var(--s2); }
    .top-links, .search-button kbd, .search-button span + span, .brand small { display: none; }
    .menu-button, .sidebar .mobile-product { display: block; }
    .home-content > #start-here + ul { grid-template-columns: 1fr; }
    .menu-button, .search-button, .theme-button { min-width: 2.3rem; padding-inline: var(--s2); justify-content: center; }
    .workspace { display: block; }
    .sidebar { display: none; position: fixed; z-index: 4; left: 0; width: min(22rem, 100%); box-shadow: var(--shadow); }
    .sidebar[data-open] { display: block; }
    .article { padding: var(--s6) var(--s4) var(--s8); }
}
@media (max-width: 23rem) {
    .brand img { display: none; }
    .topbar-inner { gap: var(--s1); }
    .languages > * { padding-inline: var(--s1); }
}
@media print {
    .topbar, .sidebar, .article-toc, .inline-toc, .page-links, .skip { display: none; }
    .workspace { display: block; }
    .article { padding: 0; }
}

.preview-label { color: var(--muted); font-size: .75rem; border-inline-start: 1px solid var(--line); padding-inline-start: var(--s2); }
.control-group { border-top: 1px solid var(--line); padding-top: var(--s3); color: var(--accent); }
.prose h4 { margin: var(--s4) 0 var(--s1); font-size: 1rem; line-height: 1.4; }
.workflow-strip ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); padding: 0; list-style: none; }
.workflow-strip li { padding: var(--s3); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.workflow-strip span { display: block; color: var(--muted); font-size: .88rem; }
.home-content > #start-here + ul li { padding: var(--s3); color: var(--muted); font-size: .89rem; }
.home-content > #start-here + ul a { padding: 0; color: var(--accent); font-size: 1rem; }
.screenshot-trigger { display: block; max-width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.screenshot-trigger img { display: block; }
.image-viewer { width: min(94vw, 100rem); height: min(88dvh, 60rem); max-width: none; max-height: none; padding: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); }
.image-viewer[open] { display: flex; flex-direction: column; }
.image-viewer::backdrop { background: #102331b8; }
.image-viewer header { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3); border-bottom: 1px solid var(--line); }
.image-viewer h2 { font-size: 1rem; margin: 0 auto 0 0; }
.image-viewer button { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s1) var(--s3); }
.image-viewport { flex: 1; overflow: auto; padding: var(--s3); }
.image-viewport img { display: block; margin: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.image-viewer.actual-size .image-viewport img { max-width: none; max-height: none; margin: 0; }
@media (max-width: 48rem) {
    .workflow-strip ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preview-label { display: none; }
}


@font-face {
    font-family: "PortalIcons";
    src: url("webfonts/fa-solid-900.woff2") format("woff2");
    font-display: block;
}
.home-content > #start-here + ul li::before {
    display: block;
    margin-bottom: var(--s2);
    color: var(--accent);
    font: .9rem/1.1 "PortalIcons";
    content: var(--route-icon) / "";
}
.home-content > #start-here + ul li:nth-child(1) { --route-icon: "\f518"; }
.home-content > #start-here + ul li:nth-child(2) { --route-icon: "\f019"; }
.home-content > #start-here + ul li:nth-child(3) { --route-icon: "\f1e6"; }
.home-content > #start-here + ul li:nth-child(4) { --route-icon: "\f0e8"; }
.home-content > #start-here + ul li:nth-child(5) { --route-icon: "\f074"; }
.home-content > #start-here + ul li:nth-child(6) { --route-icon: "\f466"; }
.home-content > #start-here + ul li:nth-child(7) { --route-icon: "\f19d"; }
.home-content > #start-here + ul li:nth-child(8) { --route-icon: "\f0ad"; }
.home-content > #start-here + ul li:nth-child(9) { --route-icon: "\f02d"; }
.prose .control-defaults { max-width: 73ch; }
