/* =============================================================================
   DESIGN: laptop
   How a structure is drawn and what it does, on a laptop. Composed from
   design/scss/laptop.scss by scripts/composer.mjs: change the source, not
   this file. Linked after grid/css/laptop.css and before a brand's.
   ========================================================================== */

@layer grid.representation {
  .presentation {
    background: var(--tone-ground);
    color: var(--tone-text);
    font-family: var(--font);
    line-height: var(--leading);
    overflow-wrap: break-word;
    text-align: start;
  }
  .presentation :where(a) {
    color: inherit;
    text-underline-offset: 0.2em;
  }
  .presentation :where(h1, h2, h3, h4, h5, h6) {
    text-wrap: balance;
  }
  .presentation :where(p, li, dd, blockquote, figcaption) {
    text-wrap: pretty;
  }
  .presentation :where(table) {
    inline-size: 100%;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
  }
  .presentation :where(caption) {
    padding-block-end: var(--space-close);
    color: var(--tone-muted);
    text-align: start;
  }
  .presentation :where(th, td) {
    padding: var(--space-close) var(--space-snug);
    text-align: start;
    vertical-align: baseline;
  }
  .presentation :where(th, td):where([data-localization~=numeric]) {
    text-align: end;
  }
  .presentation :where(thead th) {
    border-block-end: var(--line) solid var(--tone-line);
    color: var(--tone-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .presentation :where(tbody tr + tr) > :where(th, td) {
    border-block-start: var(--line) solid var(--tone-line);
  }
  .presentation[data-tone=light] {
    color-scheme: light;
  }
  .presentation[data-tone=dark] {
    color-scheme: dark;
  }
  .presentation[data-density=compact] {
    --density: 0.75;
  }
  .presentation[data-density=spacious] {
    --density: 1.25;
  }
  [data-representation~=display] {
    font-size: clamp(2rem, 1.4rem + 3cqi, 3.5rem);
    font-weight: 600;
    line-height: calc(var(--leading) - 0.4);
    text-wrap: balance;
  }
  [data-representation~=title] {
    font-size: clamp(1.375rem, 1.15rem + 1.2cqi, 1.875rem);
    font-weight: 600;
    line-height: calc(var(--leading) - 0.3);
    text-wrap: balance;
  }
  [data-representation~=heading] {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: calc(var(--leading) - 0.2);
  }
  [data-representation~=label] {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--tone-muted);
  }
  [data-representation~=small] {
    font-size: 0.875rem;
  }
  [data-representation~=muted] {
    color: var(--tone-muted);
  }
  [data-representation~=strong] {
    font-weight: 600;
    color: var(--tone-text);
  }
  :where([data-representation~=divided]:not(.screen)) {
    --divide: var(--gap, var(--space-base));
    row-gap: 0;
  }
  :where([data-representation~=divided]:not(.screen)) > * {
    padding-block: var(--divide);
  }
  :where([data-representation~=divided]:not(.screen)) > * + * {
    border-block-start: var(--line) solid var(--tone-line);
  }
}
@layer grid.interaction {
  .presentation:has(input[data-tone=light]:checked) {
    color-scheme: light;
  }
  .presentation:has(input[data-tone=dark]:checked) {
    color-scheme: dark;
  }
}
@layer grid.representation {
  .screen > :is([data-placement=rail], [data-placement=header]) {
    background: var(--tone-ground);
  }
  .screen[data-representation~=divided] > .region {
    border: 0 solid var(--tone-line);
  }
  .screen[data-representation~=divided] > :is([data-placement=header], [data-placement=navigation]) {
    border-block-end-width: var(--line);
  }
  .screen[data-representation~=divided] > :is([data-placement=aside], [data-placement=footer], [data-placement=rail]) {
    border-block-start-width: var(--line);
  }
  .surface {
    background: var(--tone-surface);
    color: var(--tone-text);
    border: var(--line) solid var(--tone-line);
    border-radius: var(--radius-round);
  }
  .surface .surface {
    border-radius: var(--radius-soft);
  }
  .surface[data-representation~=raised] {
    background: var(--tone-raised);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 24px -12px rgba(0, 0, 0, 0.18);
  }
  .surface[data-representation~=sunken] {
    background: var(--tone-sunken);
    border-color: transparent;
  }
  .surface[data-representation~=ghost] {
    background: transparent;
    border-color: transparent;
  }
  .surface[data-representation~=accent] {
    background: var(--tone-accent);
    color: var(--tone-accent-text);
    border-color: transparent;
  }
  .frame {
    background: var(--tone-sunken);
    color: var(--tone-muted);
    border-radius: var(--radius-soft);
  }
}
@layer grid.interaction {
  :is(a, button).surface {
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
  }
  :is(a, button).surface:hover {
    border-color: var(--tone-muted);
  }
  :is(a, button).surface:active {
    background: var(--tone-sunken);
  }
  :is(a, button).surface[data-representation~=accent]:active {
    background: var(--tone-accent);
    opacity: 0.85;
  }
}
@layer grid.representation {
  .route {
    border: 0;
    border-radius: var(--radius-soft);
    background: transparent;
    color: var(--tone-muted);
    font: inherit;
    text-align: start;
    text-decoration: none;
  }
}
@layer grid.interaction {
  .route {
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
  }
  .route:hover {
    background: var(--tone-sunken);
    color: var(--tone-text);
  }
  .route[aria-current]:not([aria-current=false]) {
    background: var(--tone-raised);
    color: var(--tone-text);
    box-shadow: 0 0 0 var(--line) var(--tone-line);
  }
}
@layer grid.representation {
  [data-navigation~=drawer][popover] {
    background: transparent;
    color: inherit;
  }
  .router[data-navigation~=trail] > li + li::before {
    color: var(--tone-muted);
  }
  .router[data-navigation~=tabs] .route {
    border-radius: 0;
  }
}
@layer grid.interaction {
  :where(html) {
    scroll-behavior: smooth;
    scroll-padding-block-start: var(--space-broad);
  }
  :target {
    scroll-margin-block-start: var(--space-broad);
  }
  :where(html):has([data-rendering~=sticky]) {
    scroll-padding-block-start: var(--sticky-size, 6rem);
  }
  .router[data-navigation~=tabs] .route:hover {
    background: transparent;
  }
  .router[data-navigation~=tabs] .route[aria-current]:not([aria-current=false]) {
    background: transparent;
    box-shadow: inset 0 calc(var(--line) * -2) 0 var(--tone-text);
  }
}
/* =============================================================================
   DEVICE: laptop
   64rem to 90rem. Rail and navigation are columns.
   Source: scss/device/_laptop.scss
   ========================================================================== */
@container viewport (inline-size < 90rem) {
  @layer grid.interaction {
    .screen > [data-placement=navigation]:popover-open {
      position: fixed;
      inset-block: 0 auto;
      inset-block-start: anchor(--screen-rail start, 0px);
      inset-inline: 0 auto;
      inset-inline-start: anchor(--screen-rail end, 0px);
      block-size: 100vh;
      block-size: 100dvb;
      block-size: anchor-size(--screen-rail block, 100dvb);
      max-block-size: none;
      overflow: auto;
    }
  }
  @layer grid.representation {
    .screen[data-representation~=divided] > [data-placement=rail] {
      border-block-width: 0;
      border-inline-end-width: var(--line);
    }
    .screen[data-representation~=divided] > [data-placement=navigation] {
      border-block-width: 0;
      border-inline-end-width: var(--line);
    }
  }
  @layer grid.interaction {
    .screen:not(:has(> [data-placement=navigation])) > [data-placement=navigation]:popover-open {
      position: fixed;
      inset-block: 0 auto;
      inset-block-start: anchor(--screen-rail start, 0px);
      inset-inline: 0 auto;
      inset-inline-start: anchor(--screen-rail end, 0px);
      block-size: 100vh;
      block-size: 100dvb;
      block-size: anchor-size(--screen-rail block, 100dvb);
      max-block-size: none;
      overflow: auto;
    }
  }
  @layer grid.representation {
    .screen:not(:has(> [data-placement=navigation]))[data-representation~=divided] > [data-placement=rail] {
      border-block-width: 0;
      border-inline-end-width: var(--line);
    }
    .screen:not(:has(> [data-placement=navigation]))[data-representation~=divided] > [data-placement=navigation] {
      border-block-width: 0;
      border-inline-end-width: var(--line);
    }
    .screen:not(:has(> [data-placement=navigation]))[data-representation~=divided] > [data-placement=aside] {
      border-block-start-width: 0;
      border-inline-start-width: var(--line);
    }
  }
}
/* =============================================================================
   DEVICE: desktop
   90rem to 120rem. Rail, navigation and aside are columns.
   Source: scss/device/_desktop.scss
   ========================================================================== */
@container viewport (inline-size >= 90rem) {
  @layer grid.interaction {
    .screen > [data-placement=navigation]:popover-open {
      position: fixed;
      inset-block: 0 auto;
      inset-block-start: anchor(--screen-rail start, 0px);
      inset-inline: 0 auto;
      inset-inline-start: anchor(--screen-rail end, 0px);
      block-size: 100vh;
      block-size: 100dvb;
      block-size: anchor-size(--screen-rail block, 100dvb);
      max-block-size: none;
      overflow: auto;
    }
  }
  @layer grid.representation {
    .screen[data-representation~=divided] > [data-placement=rail] {
      border-block-width: 0;
      border-inline-end-width: var(--line);
    }
    .screen[data-representation~=divided] > [data-placement=navigation] {
      border-block-width: 0;
      border-inline-end-width: var(--line);
    }
    .screen[data-representation~=divided] > [data-placement=aside] {
      border-block-start-width: 0;
      border-inline-start-width: var(--line);
    }
  }
}
/* =============================================================================
   LOCALIZATION
   ========================================================================== */
@layer grid.representation {
  [data-localization~=mirror]:dir(rtl) {
    scale: -1 1;
  }
  [data-localization~=isolate] {
    unicode-bidi: isolate;
  }
  [data-localization~=plaintext] {
    unicode-bidi: plaintext;
    text-align: start;
  }
  [data-localization~=numeric] {
    font-variant-numeric: tabular-nums;
  }
  [data-localization~=expand] {
    hyphens: auto;
    overflow-wrap: anywhere;
  }
  [data-localization~=vertical] {
    writing-mode: vertical-rl;
  }
  :where(:lang(ar), :lang(fa), :lang(ur), :lang(he), :lang(hi), :lang(bn), :lang(th), :lang(km), :lang(my), :lang(ta)) {
    --leading: 1.75;
    line-height: var(--leading);
    letter-spacing: 0;
  }
  :where(:lang(ja), :lang(zh), :lang(ko)) {
    --leading: 1.7;
    line-height: var(--leading);
    letter-spacing: 0;
    line-break: strict;
  }
  :where(:lang(ja), :lang(zh), :lang(ko)) :where(em, i, cite) {
    font-style: normal;
  }
  :where(:lang(de), :lang(nl), :lang(fi), :lang(sv), :lang(da), :lang(nb), :lang(hu), :lang(pl), :lang(cs)) {
    hyphens: auto;
  }
}
/* =============================================================================
   ACCESSIBILITY
   What the reader asked for. The last layer.
   ========================================================================== */
@layer grid.accessibility {
  :focus-visible {
    outline: 2px solid var(--tone-focus);
    outline-offset: 2px;
  }
  :is([data-rendering~=scroll], [data-rendering~=scroll-inline], .router[data-navigation~=tabs]):focus-visible {
    outline-offset: -2px;
  }
  .router:is([data-navigation~=tabs], [data-navigation~=rail]) .route:focus-visible {
    outline-offset: -2px;
  }
  [data-accessibility~=spoken] {
    position: absolute !important;
    inline-size: 1px !important;
    block-size: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
  [data-accessibility~=target] {
    display: inline-grid;
    place-items: center;
    min-inline-size: var(--target);
    min-block-size: var(--target);
  }
  :where(button, select, textarea, input:not([type=checkbox], [type=radio], [type=hidden])) {
    min-block-size: var(--target);
  }
  [data-accessibility~=skip] {
    position: absolute;
    inset-block-start: var(--space-close);
    inset-inline-start: var(--space-close);
    z-index: 100;
    display: grid;
    place-items: center;
    min-block-size: var(--target);
    padding-inline: var(--space-base);
    border-radius: var(--radius-soft);
    background: var(--tone-accent);
    color: var(--tone-accent-text);
    text-decoration: none;
    translate: 0 -200%;
  }
  [data-accessibility~=skip]:focus {
    translate: 0 0;
  }
  [hidden] {
    display: none !important;
  }
  :is([aria-disabled=true], :disabled, [inert]) {
    opacity: 0.5;
    cursor: not-allowed;
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  @media (prefers-contrast: more) {
    :where(:root, .presentation) {
      --line: 2px;
      --tone-line: var(--tone-text);
      --tone-muted: var(--tone-text);
    }
  }
  @media (forced-colors: active) {
    .surface,
    .frame {
      border: var(--line) solid CanvasText;
    }
    .route[aria-current]:not([aria-current=false]) {
      outline: 2px solid Highlight;
      outline-offset: -2px;
    }
    [data-accessibility~=skip] {
      border: var(--line) solid CanvasText;
    }
  }
}
/* =============================================================================
   DESIGN
   How each structure is drawn, in roles, and what it does. No value: a
   brand gives every colour, type size and radius. Source: design/scss of
   realestate
   ========================================================================== */
@property --lines {
  syntax: "*";
  inherits: false;
}
@property --stroke {
  syntax: "*";
  inherits: false;
}
@layer grid.initialization {
  :where(:root) {
    --theme-roles: "surface surface-raised surface-hover surface-selected ink ink-muted link brand brand-hover brand-pressed on-brand accent accent-hover accent-pressed on-accent accent-ink line border focus disabled on-disabled danger on-danger danger-ink";
    --theme-defaults: "surface-card=surface-raised media=surface-hover on-media=ink-muted";
    --theme-names: "line=hairline";
    --type-roles: "display title heading subheading lead large body small note figure";
  }
  :where(:root, .presentation, [data-theme]) {
    --tone-ground: var(--surface);
    --tone-surface: var(--surface-card);
    --tone-raised: var(--surface-raised);
    --tone-sunken: var(--surface-hover);
    --tone-line: var(--hairline);
    --tone-text: var(--ink);
    --tone-muted: var(--ink-muted);
    --tone-accent: var(--brand);
    --tone-accent-text: var(--on-brand);
    --tone-focus: var(--focus);
    --ground: var(--surface);
  }
  .presentation[data-tone=light] {
    color-scheme: light;
    --scheme-inverse: dark;
  }
  .presentation[data-tone=dark] {
    color-scheme: dark;
    --scheme-inverse: light;
  }
  .presentation[data-tone=inverse] {
    color-scheme: var(--scheme-inverse);
  }
}
@layer grid.representation {
  .viewport {
    font-size: var(--type-body);
    font-weight: var(--weight-body);
  }
  :where(.presentation) :where(b, strong) {
    font-weight: var(--weight-strong);
  }
  :where(.presentation) :where(h1, h2, h3, h4, h5, h6) {
    font-weight: var(--weight-heading);
  }
  :where(.presentation) :where(h1) {
    font-size: var(--type-display);
    line-height: var(--type-display-line);
  }
  :where(.presentation) :where(h2) {
    font-size: var(--type-title);
    line-height: var(--type-title-line);
  }
  :where(.presentation) :where(h3) {
    font-size: var(--type-heading);
    line-height: var(--type-heading-line);
  }
  :where(.presentation) :where(h4, h5, h6) {
    font-size: var(--type-subheading);
    line-height: var(--type-subheading-line);
  }
  :where(.presentation) :where(small, label, table, figcaption) {
    font-size: var(--type-small);
    line-height: var(--type-small-line);
  }
  :where(.presentation) :where(address) {
    font-style: normal;
  }
  :where(.presentation) :where(button:not([class])) {
    padding: 0;
    border: 0;
    background: none;
    text-align: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  .presentation :where(a:not([class])) {
    color: var(--link);
  }
  :where([data-theme]) {
    background-color: var(--surface);
    color: var(--ink);
  }
  [data-representation~=display] {
    font-size: var(--type-display);
    line-height: var(--type-display-line);
    font-weight: var(--weight-heading);
  }
  [data-representation~=title] {
    font-size: var(--type-title);
    line-height: var(--type-title-line);
    font-weight: var(--weight-heading);
  }
  [data-representation~=heading] {
    font-size: var(--type-heading);
    line-height: var(--type-heading-line);
    font-weight: var(--weight-heading);
  }
  [data-representation~=subheading] {
    font-size: var(--type-subheading);
    line-height: var(--type-subheading-line);
    font-weight: var(--weight-heading);
  }
  .presentation :where(h1, h2, h3, h4, h5, h6, p, li, dd, blockquote, figcaption),
  [data-representation~=display],
  [data-representation~=title] {
    text-wrap: wrap;
  }
  [data-representation~=lead] {
    font-size: var(--type-lead);
    line-height: var(--type-lead-line);
  }
  [data-representation~=large] {
    font-size: var(--type-large);
    line-height: var(--type-large-line);
  }
  [data-representation~=small] {
    font-size: var(--type-small);
    line-height: var(--type-small-line);
  }
  [data-representation~=figure] {
    font-size: var(--type-figure);
    line-height: var(--type-figure-line);
    font-weight: var(--weight-figure);
    font-variant-numeric: tabular-nums;
  }
  [data-representation~=caption] {
    font-size: var(--type-small);
    line-height: var(--type-small-line);
    font-weight: var(--weight-label);
    text-transform: uppercase;
  }
  [data-representation~=label] {
    font-size: var(--type-small);
    line-height: var(--type-small-line);
    font-weight: var(--weight-body);
    color: inherit;
  }
  [data-representation~=centered] {
    text-align: center;
  }
  [data-representation~=danger] {
    color: var(--danger-ink);
  }
  [data-representation~=pending] {
    --bar: color-mix(in srgb, currentColor 25%, transparent);
    background: repeating-linear-gradient(to bottom, var(--bar) 0 var(--stroke, 0.6em), transparent var(--stroke, 0.6em) round(var(--pitch, 1lh), 1px)) 0 0/100% calc((var(--lines, 3) - 1) * round(var(--pitch, 1lh), 1px)) no-repeat, linear-gradient(var(--bar), var(--bar)) 0 calc((var(--lines, 3) - 1) * round(var(--pitch, 1lh), 1px))/61.8047% var(--stroke, 0.6em) no-repeat;
  }
  :where(.presentation) :where(b, strong):where([data-representation~=lead]) {
    font-weight: var(--weight-heading);
  }
  [data-representation~=ruled]:not(:is(ul, ol, dl, .renderer)) {
    border-block-start: var(--line) solid var(--hairline);
    padding-block-start: var(--rule, var(--space-base));
  }
  :is(ul, ol, dl, .renderer)[data-representation~=ruled] {
    --rule: var(--gap, var(--space-base));
  }
  :is(ul, ol, dl, .renderer)[data-representation~=ruled] > * {
    border-block-start: var(--line) solid var(--hairline);
    padding-block-start: var(--rule);
  }
  :is(ul, ol, dl, .renderer)[data-representation~=rows] {
    --rule: var(--gap, var(--space-close));
    row-gap: 0;
  }
  :is(ul, ol, dl, .renderer)[data-representation~=rows] > * {
    border-block-start: var(--line) solid var(--hairline);
    padding-block-start: var(--rule);
    padding-block-end: var(--rule);
  }
  [data-representation~=lined] {
    gap: var(--line);
    background: var(--hairline);
    overflow: clip;
  }
  [data-representation~=lined] > * {
    background: var(--ground);
  }
  [data-representation~=outlined] {
    border: var(--line) solid var(--hairline);
  }
  [data-representation~=bracketed] {
    border: var(--line) solid var(--hairline);
    border-inline-start-width: 0;
  }
  .presentation :where(table) {
    font-variant-numeric: normal;
  }
  .presentation :where(th, td) {
    padding-block: var(--space-close);
    padding-inline: 0 var(--space-base);
    border-block-start: var(--line) solid var(--hairline);
    vertical-align: top;
  }
  .presentation :where(thead th) {
    border-block-end: 0;
    color: inherit;
    font-size: inherit;
    white-space: normal;
  }
  :where(.presentation) :where(th) {
    font-weight: var(--weight-label);
  }
  :where(.presentation) :where(tbody th) {
    font-weight: inherit;
  }
  :where(.presentation) :where(summary) {
    font-size: var(--type-large);
    line-height: var(--type-large-line);
  }
  :where(.presentation) :where(summary)::after {
    content: "+";
  }
  :where(.presentation) :where(details[open] > summary)::after {
    content: "−";
  }
}
@layer grid.interaction {
  :where(.presentation) :where(summary, button:not([class])) {
    cursor: pointer;
  }
}
@layer grid.representation {
  .screen > [data-placement=header] {
    border-block-end: var(--line) solid var(--hairline);
  }
  .band {
    border-block-end: var(--line) solid var(--hairline);
  }
  .band[data-representation~=sunken] {
    --ground: var(--surface-hover);
    background: var(--ground);
  }
  .surface.presentation {
    background: var(--surface);
    border-color: transparent;
  }
  .surface[data-representation~=marked] {
    outline: var(--space-tight) solid var(--accent-ink);
  }
  .surface[data-representation~=outlined] {
    border-color: var(--hairline);
  }
  .frame {
    background: var(--media);
    color: var(--on-media);
    text-align: center;
  }
  .frame > .frame {
    border: var(--line) solid currentColor;
    border-radius: 0;
    background: color-mix(in srgb, var(--media) 50%, white);
    font-size: var(--type-note);
  }
  .view > .frame[data-span=full] {
    border-radius: 0;
  }
  .frame[data-interaction~=upload] > img {
    object-fit: contain;
  }
  .frame:is([data-representation~=outlined], [data-representation~=dashed]) {
    background: transparent;
    color: inherit;
  }
  .frame[data-representation~=dashed] {
    border: calc(var(--line) * 2) dashed var(--border);
  }
  .mark {
    color: inherit;
    text-align: center;
  }
  label.surface {
    font-size: 1rem;
    line-height: 1.625rem;
  }
  [data-representation~=joined] > * {
    border-radius: 0;
  }
  [data-representation~=joined] > :first-child {
    border-start-start-radius: var(--radius-soft);
    border-end-start-radius: var(--radius-soft);
  }
  [data-representation~=joined] > :last-child {
    border-start-end-radius: var(--radius-soft);
    border-end-end-radius: var(--radius-soft);
  }
}
@layer grid.interaction {
  .surface:has(> :is(input[type=radio], input[type=checkbox]):checked) {
    outline: var(--space-tight) solid var(--accent-ink);
    background-color: var(--surface-selected);
  }
  :is(a, button, label).surface:hover {
    background-color: var(--surface-hover);
  }
  label.surface {
    cursor: pointer;
  }
  a.surface {
    text-decoration: underline;
  }
}
@layer grid.representation {
  .action {
    border: var(--line) solid var(--border);
    border-radius: var(--action-radius, var(--radius-full));
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: var(--action-type, var(--type-small));
    font-weight: var(--weight-action, inherit);
    line-height: 1.25rem;
    text-decoration: none;
  }
  .action[data-sizing~=large] {
    font-size: var(--action-type-large, var(--type-body));
    line-height: 1.625rem;
  }
  .action[data-representation~=accent] {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--on-brand);
  }
  .action[data-representation~=marked] {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--on-accent);
  }
  .action[data-representation~=danger] {
    border-color: var(--danger);
    background: var(--danger);
    color: var(--on-danger);
  }
  .tag {
    border: var(--line) solid var(--accent-ink);
    color: var(--accent-ink);
    border-radius: var(--tag-radius, var(--radius-full));
    font-size: var(--tag-type, var(--type-small));
    line-height: 1.25rem;
    font-style: normal;
  }
  .emblem {
    border: var(--line) solid var(--hairline);
    border-radius: var(--radius-full);
    font-size: var(--type-body);
    font-style: normal;
    font-weight: var(--weight-body);
    line-height: 1.625rem;
  }
  .icon {
    background: currentColor;
    -webkit-mask: var(--icon) center/contain no-repeat;
    mask: var(--icon) center/contain no-repeat;
  }
  .presentation :where(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=range], [type=color]), select, textarea),
  .field {
    border: var(--line) solid var(--border);
    border-radius: var(--field-radius, var(--radius-soft));
    background: var(--field-ground, var(--surface));
    color: var(--ink);
    font-size: var(--field-type, 1rem);
    line-height: 1.625rem;
  }
  .field[data-representation~=dashed] {
    border-style: dashed;
  }
  .presentation :where(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=range], [type=color]), select, textarea):is([aria-invalid=true], :user-invalid),
  .field[aria-invalid=true] {
    border-color: var(--danger);
  }
  label.field {
    font-size: var(--type-small);
    line-height: var(--type-small-line);
  }
}
@layer grid.interaction {
  .action {
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, opacity 0.15s;
  }
  .action:hover {
    background: color-mix(in srgb, currentColor 12%, transparent);
  }
  .action:has(:checked) {
    border-color: var(--brand);
    background: var(--brand);
    color: var(--on-brand);
  }
  .action[data-representation~=accent]:hover,
  .action:has(:checked):hover {
    border-color: var(--brand-hover);
    background: var(--brand-hover);
  }
  .action[data-representation~=accent]:active,
  .action:has(:checked):active {
    border-color: var(--brand-pressed);
    background: var(--brand-pressed);
  }
  .action[data-representation~=marked]:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
  }
  .action[data-representation~=marked]:active {
    border-color: var(--accent-pressed);
    background: var(--accent-pressed);
  }
  .action[data-representation~=danger]:hover {
    background: var(--danger);
    opacity: 0.82;
  }
  label:is(.action, .field) {
    cursor: pointer;
  }
}
@layer grid.representation {
  .route {
    border-radius: 0;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
  .router > li:has(> .menu) > .route::after {
    content: " ▾";
  }
  .menu {
    border-block: var(--line) solid var(--hairline);
    background: var(--surface-raised);
    color: var(--ink);
  }
  :is(.menu, .panel) .route {
    text-decoration: none;
  }
  .menu:has(> [data-placement]) {
    font-size: var(--type-body);
    line-height: var(--type-body-line);
  }
  .menu:has(> [data-placement]) .route > span:not([class]),
  .panel .route > span:not([class]) {
    font-size: var(--type-small);
    line-height: var(--type-small-line);
    color: var(--ink-muted);
  }
  .menu:has(> [data-placement]) > [data-placement=aside] {
    border-radius: var(--radius-soft);
    background: var(--surface-hover);
  }
  .menu:has(> [data-placement]) > [data-placement=footer] {
    border-block-start: var(--line) solid var(--hairline);
  }
  .router > li:has(> .menu > [data-placement]):is(:hover, :focus-within):not([data-state=closed])::after {
    background: var(--scrim);
  }
  .router[data-navigation~=trail] > li + li::before {
    color: inherit;
  }
}
@layer grid.interaction {
  .route:hover {
    background: transparent;
    color: inherit;
    text-decoration-thickness: 0.125em;
  }
  .route[aria-current]:not([aria-current=false]) {
    background: transparent;
    color: inherit;
    box-shadow: none;
    font-weight: var(--weight-strong);
    text-decoration: none;
  }
  :is(.menu, .panel) .route:hover {
    text-decoration: underline;
  }
  .router > li:not(:hover, :focus-within) > .menu,
  .router > li[data-state=closed] > .menu {
    display: none;
  }
}
@layer grid.representation {
  .panel {
    font-size: var(--type-body);
    line-height: var(--type-body-line);
    border: var(--line) solid var(--hairline);
    border-radius: var(--radius-soft);
    background: var(--surface-raised);
    color: var(--ink);
  }
  .panel::backdrop {
    background: var(--scrim);
  }
  .panel > :is([data-rendering~=sticky], [data-rendering~=sticky-end]) {
    border: 0 solid var(--hairline);
    background: var(--surface-raised);
  }
  .panel > [data-rendering~=sticky] {
    border-block-end-width: var(--line);
  }
  .panel > [data-rendering~=sticky-end] {
    border-block-start-width: var(--line);
  }
}
@layer grid.interaction {
  .panel {
    translate: calc((100% + var(--space-open)) * var(--direction, 1)) 0;
    transition: translate 0.4s, overlay 0.4s allow-discrete, display 0.4s allow-discrete;
  }
  .panel:popover-open {
    translate: 0 0;
  }
  @starting-style {
    .panel:popover-open {
    translate: calc((100% + var(--space-open)) * var(--direction, 1)) 0;
    }
  }
  .panel:not(:popover-open) {
    display: none;
  }
}
@layer grid.representation {
  [data-placement=edge]:not(.action) {
    border: var(--line) solid var(--hairline);
    border-radius: var(--radius-soft);
    background: var(--surface-raised);
    color: var(--ink);
  }
}
@layer grid.interaction {
  [data-interaction~=cover] {
    touch-action: manipulation;
  }
  [data-interaction~=filter] {
    touch-action: manipulation;
  }
  [data-interaction~=menu] {
    touch-action: manipulation;
  }
  [data-interaction~=rotation] {
    touch-action: manipulation;
  }
  [data-interaction~=theme] {
    touch-action: manipulation;
  }
  [data-interaction~=upload] {
    touch-action: manipulation;
  }
  [data-interaction~=cover] {
    cursor: pointer;
  }
  .surface:has([data-interaction~=cover]):hover {
    border-color: var(--ink-muted);
    background-color: var(--surface-hover);
  }
  [data-interaction~=rotation] {
    white-space: nowrap;
  }
  [data-interaction~=upload][data-state=over] {
    background: color-mix(in srgb, currentColor 12%, transparent);
  }
  [data-interaction~=upload][data-state=filled] {
    border-style: solid;
  }
  [data-subscription~=host]:not(.view, .viewport) {
    transition: inline-size 0.4s;
  }
}
/* =============================================================================
   DESIGN: paper
   Source: design/scss/device/_paper.scss
   ========================================================================== */
@layer grid.subscription {
  @media print {
    .panel,
    .menu,
    [data-placement=corner] {
      display: none !important;
    }
    .presentation[data-tone=inverse] {
      color-scheme: inherit;
    }
    .band,
    .surface.presentation {
      background: none;
    }
    .surface.presentation {
      border-color: var(--hairline);
    }
    [data-sizing~=fold] {
      min-block-size: 0;
    }
    :is(.band, .surface, details) {
      break-inside: avoid;
    }
  }
}
/* =============================================================================
   DESIGN: localization
   ========================================================================== */
@layer grid.representation {
  .panel:dir(rtl) {
    --direction: -1;
  }
}
/* =============================================================================
   DESIGN: accessibility
   ========================================================================== */
@layer grid.accessibility {
  .presentation :where(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=range], [type=color]), select) {
    min-block-size: var(--control);
  }
  .presentation :where(textarea) {
    min-block-size: 6.875rem;
  }
  :is(.action, .route, .field, .frame, .surface):has(> :is(input, select):focus-visible) {
    outline: 2px solid var(--tone-focus);
    outline-offset: 2px;
  }
  :is(.action, .route, .field, .frame, .surface) > [data-accessibility~=spoken]:focus-visible {
    outline: none;
  }
  [data-interaction~=cover] {
    min-block-size: 0;
  }
  [data-interaction~=cover]:focus-visible {
    outline: none;
  }
  [data-interaction~=cover]:focus-visible::after {
    outline: 2px solid var(--tone-focus);
    outline-offset: 2px;
    border-radius: var(--radius-soft);
  }
  :where(p, span, small) > a[data-accessibility~=target] {
    display: inline;
    position: relative;
    min-inline-size: 0;
    min-block-size: 0;
  }
  :where(p, span, small) > a[data-accessibility~=target]::after {
    content: "";
    position: absolute;
    inset: calc(50% - var(--target) / 2);
  }
  .action:is(:disabled, [aria-disabled=true]),
  .presentation :where(input:not([type=checkbox], [type=radio], [type=file], [type=hidden], [type=range], [type=color]), select, textarea):disabled {
    border-color: var(--disabled);
    background: var(--disabled);
    color: var(--on-disabled);
    opacity: 1;
  }
  @media (prefers-contrast: more) {
    :where(:root, .presentation, [data-theme]) {
      --hairline: var(--ink);
      --border: var(--ink);
      --ink-muted: var(--ink);
    }
  }
  @media (forced-colors: active) {
    .band,
    .panel,
    .menu,
    .action,
    .tag,
    .emblem,
    .mark,
    .field {
      border-color: CanvasText;
    }
    .action[data-representation~=accent],
    .action:has(:checked) {
      outline: 2px solid Highlight;
      outline-offset: -2px;
    }
    [data-representation~=lined] {
      background: CanvasText;
    }
    [data-representation~=lined] > * {
      background: Canvas;
    }
  }
}
