/* Fabric 0.3.2: opt-in presentation. Product content widths and business interfaces remain local. */
:where(:root, [data-fabric-theme]) {
  --techius-header-min-size: var(--techius-header-row-height);
  --techius-header-logo-size: var(--techius-logo-size);
  --techius-header-actions-gap: var(--techius-space-4);
  --techius-color-chrome-muted: var(--techius-color-text-muted);
  --techius-font-ui: Inter, "Segoe UI", Arial, sans-serif;
  --techius-brand-family-size: 0.5625rem;
  --techius-brand-name-size: 1.3125rem;
  --techius-brand-gap: var(--techius-space-3);
  --techius-footer-font-size: 0.75rem;
  --techius-footer-line-height: 1.5;
  --techius-footer-gap: var(--techius-space-6);
}

@media (max-width: 640px) {
  :root {
    --techius-brand-name-size: 1.1875rem;
    --techius-brand-gap: var(--techius-space-2);
    --techius-header-min-size: var(--techius-header-row-height-compact);
    --techius-header-logo-size: var(--techius-logo-size-compact);
    --techius-header-actions-gap: var(--techius-space-3);
  }
}
.tf-header {
  box-sizing: border-box;
  min-block-size: var(--techius-header-min-size);
  background: var(--techius-color-surface);
  border-block-end: 1px solid var(--techius-color-border);
}
.tf-header.tf-header-row {
  min-block-size: var(--techius-header-min-size);
}
.tf-header-row {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-block-size: calc(var(--techius-header-min-size) - 1px);
  gap: var(--techius-space-2) var(--techius-header-actions-gap);
  padding-block: var(--techius-space-2);
  padding-inline: var(--techius-layout-gutter);
  min-inline-size: 0;
}
.tf-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--techius-space-3);
  min-inline-size: 0;
  color: var(--techius-color-text);
  text-decoration: none;
  flex-shrink: 0;
}
.tf-brand-mark {
  box-sizing: border-box;
  inline-size: var(--techius-header-logo-size);
  block-size: var(--techius-header-logo-size);
  flex: 0 0 var(--techius-header-logo-size);
  display: grid;
  place-items: center;
}
.tf-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--techius-header-actions-gap);
  min-inline-size: 0;
}
.tf-preferences,
.tf-language {
  display: inline-flex;
  align-items: center;
  gap: var(--techius-space-1);
  flex-shrink: 0;
}
.tf-preferences {
  gap: var(--techius-space-2);
}
.tf-language-button,
.tf-theme-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: var(--techius-control-target-size);
  min-inline-size: var(--techius-control-target-size);
  min-block-size: var(--techius-control-target-size);
  padding: 0;
  border: 0;
  border-radius: var(--techius-radius-sm);
  background: transparent;
  color: var(--techius-color-text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  line-height: 1.25;
  cursor: pointer;
}
.tf-theme-button {
  color: var(--techius-color-text);
}
.tf-theme-button svg {
  inline-size: 18px;
  block-size: 18px;
  flex-shrink: 0;
}
.tf-language-button[aria-pressed="true"] {
  color: var(--techius-color-text);
  box-shadow: inset 0 -2px var(--techius-color-primary);
}
.tf-language-button:hover,
.tf-theme-button:hover {
  color: var(--techius-color-primary);
  background: var(--techius-color-primary-soft);
}
.tf-language-button:focus-visible,
.tf-theme-button:focus-visible,
.tf-brand:focus-visible,
.tf-footer a:focus-visible,
.tf-not-found a:focus-visible {
  outline: var(--techius-focus-width) solid var(--techius-color-focus);
  outline-offset: var(--techius-focus-offset);
}
.tf-auth-button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--techius-color-border-control);
  border-radius: var(--techius-radius-control);
  background: var(--techius-color-surface);
  color: var(--techius-color-text);
  min-block-size: var(--techius-control-target-size);
  max-inline-size: 100%;
  white-space: normal;
}
.tf-footer {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--techius-space-3) var(--techius-footer-gap);
  padding-block: var(--techius-space-4);
  border-block-start: 1px solid var(--techius-color-border);
  color: var(--techius-color-chrome-muted);
  font-family: var(--techius-font-ui);
  font-size: var(--techius-footer-font-size);
  font-weight: 400;
  line-height: var(--techius-footer-line-height);
  letter-spacing: normal;
  min-inline-size: 0;
}
.tf-footer--inset {
  padding-inline: var(--techius-layout-gutter);
}
.tf-footer--contained {
  inline-size: 100%;
  max-inline-size: var(--techius-content-max-size, none);
  margin-inline: auto;
}
.tf-footer[data-variant="landing"] {
  padding-block: var(--techius-space-6);
}
.tf-footer[data-variant="workspace"] {
  flex-direction: row;
  gap: var(--techius-space-2) var(--techius-space-4);
  padding-block: var(--techius-space-3);
}
.tf-footer__identity,
.tf-footer__links,
.tf-footer__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--techius-space-2) var(--techius-space-4);
  min-inline-size: 0;
  max-inline-size: 100%;
}
.tf-footer__identity {
  font-weight: 500;
}
.tf-footer__brand {
  color: var(--techius-color-text);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tf-footer__identity,
.tf-footer__note,
.tf-footer a {
  overflow-wrap: anywhere;
}
.tf-footer :where(a, summary) {
  box-sizing: border-box;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  min-block-size: 32px;
  max-inline-size: 100%;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.tf-footer :where(a, summary):hover {
  background: transparent;
  color: var(--techius-color-primary);
}
.tf-footer summary:focus-visible {
  outline: var(--techius-focus-width) solid var(--techius-color-focus);
  outline-offset: var(--techius-focus-offset);
}
.tf-footer__help {
  position: static;
}
.tf-footer__help > p {
  position: absolute;
  inset-inline-end: 0;
  bottom: 100%;
  inline-size: min(280px, calc(100vi - 2 * var(--techius-layout-gutter)));
  box-sizing: border-box;
  padding: var(--techius-space-3);
  background: var(--techius-color-surface);
  color: var(--techius-color-text);
  border: 1px solid var(--techius-color-border-control);
  border-radius: var(--techius-radius-sm);
  box-shadow: var(--techius-shadow-overlay);
  z-index: 8;
}
@media (max-width: 640px) {
  .tf-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .tf-footer__help > p {
    inset-inline-start: 0;
    inset-inline-end: auto;
  }
}

/* Application wordmark hierarchy; horizontal ecosystem identities opt out. */
.tf-brand.tf-brand--application {
  gap: var(--techius-brand-gap);
  font-family: var(--techius-font-ui);
  max-inline-size: 100%;
  flex-shrink: 1;
}
.tf-brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-inline-size: 0;
  gap: 2px;
}
.tf-brand--application .tf-brand__family {
  display: block;
  color: var(--techius-color-chrome-muted);
  font-size: var(--techius-brand-family-size);
  font-weight: 700;
  line-height: 1.333333;
  letter-spacing: 0.18em;
  overflow-wrap: anywhere;
}
.tf-brand--application .tf-brand__name {
  display: block;
  color: var(--techius-color-text);
  font-size: var(--techius-brand-name-size);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.tf-brand__punctuation {
  color: var(--techius-color-primary);
}

.tf-not-found {
  box-sizing: border-box;
  font-family: var(--techius-font-ui);
  inline-size: min(100%, 44rem);
  margin: auto;
  padding: var(--techius-space-8) var(--techius-space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--techius-space-4);
  color: var(--techius-color-text);
}
.tf-not-found__icon {
  display: block;
  inline-size: 64px;
  block-size: 64px;
  flex-shrink: 0;
  background: var(--techius-color-primary);
  mask: url("./not-found.svg") center / contain no-repeat;
}
.tf-not-found .tf-not-found__code {
  margin: 0;
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--techius-color-primary);
}
.tf-not-found .tf-not-found__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.tf-not-found .tf-not-found__description {
  margin: 0;
  max-inline-size: 48ch;
  font-size: 14px;
  color: var(--techius-color-text-muted);
  line-height: 1.7;
}
.tf-not-found__home {
  font-family: var(--techius-font-ui);
  font-size: 13px;
  line-height: 1.5;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-block-size: 44px;
  padding: 10px 18px;
  border: 1px solid var(--techius-color-primary);
  border-radius: var(--techius-radius-control);
  background: var(--techius-color-primary);
  color: var(--techius-color-on-primary);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.tf-not-found__home:hover {
  background: var(--techius-color-primary-hover);
}

/* Shared account presentation; local components own session and keyboard behavior. */
.tf-account {
  position: relative;
  display: block;
  min-inline-size: 0;
}
.tf-account .account-trigger {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 230px;
  padding: 6px 10px;
  border: 1px solid var(--techius-color-border-control);
  border-radius: var(--techius-radius-control);
  background: var(--techius-color-surface-soft);
  color: var(--techius-color-text);
  font-size: 13px;
}
.tf-account .account-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--techius-color-primary-soft);
  color: var(--techius-color-success-text);
  font-size: 10px;
  font-weight: 700;
}
.tf-account .account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tf-account .account-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.tf-account .account-chevron.expanded {
  transform: rotate(180deg);
}
.tf-account .account-trigger[aria-expanded="true"] {
  border-color: var(--techius-color-primary);
}
.tf-account .account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: max(100%, 180px);
  max-width: calc(100vw - 32px);
  max-height: min(360px, calc(100dvh - 140px));
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--techius-color-border-strong);
  border-radius: var(--techius-radius-control);
  box-shadow: var(--techius-shadow-overlay);
  background: var(--techius-color-surface);
  color: var(--techius-color-text);
}
.tf-account .account-menu[hidden] {
  display: none;
}
.tf-account .account-email {
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--techius-color-text-muted);
  overflow-wrap: anywhere;
}
.tf-account .account-divider {
  height: 1px;
  margin: 2px 0;
  background: var(--techius-color-border);
}
.tf-account .account-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--techius-color-text);
  font-size: 13px;
  text-align: start;
}
.tf-account .account-logout svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.tf-account .account-trigger:hover,
.tf-account .account-logout:hover {
  background: var(--techius-color-surface-soft);
  color: var(--techius-color-primary);
}
.tf-account .account-trigger:focus-visible,
.tf-account .account-logout:focus-visible {
  outline: 2px solid var(--techius-color-primary);
  outline-offset: 3px;
}
@media (max-width: 960px) {
  .tf-account .account-trigger {
    max-width: 180px;
  }
}
@media (max-width: 640px) {
  .tf-account .account-trigger {
    max-width: 142px;
    gap: 6px;
    padding-inline: 7px;
    font-size: 12px;
  }
}
@media (forced-colors: active) {
  .tf-language-button[aria-pressed="true"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
  }
  .tf-account .account-divider {
    background: CanvasText;
  }
}

/* A menu aligned to a left-wrapped trigger must remain within narrow viewports. */
.tf-account .account-menu {
  box-sizing: border-box;
}
@media (max-width: 360px) {
  .tf-account .account-menu {
    inset-inline-start: 0;
    inset-inline-end: auto;
    max-inline-size: calc(100vi - 2 * var(--techius-layout-gutter));
    max-block-size: min(360px, 50dvh);
  }
}

/* Three fixed semantic areas: absent optional areas never move the remaining ones. */
.tf-footer.tf-footer--zones {
  --techius-footer-stack-gap: var(--techius-space-3);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
  grid-template-areas: "start center end";
  align-items: center;
}
.tf-footer__start,
.tf-footer__center,
.tf-footer__end {
  min-inline-size: 0;
  max-inline-size: 100%;
}
.tf-footer__start {
  grid-area: start;
  justify-self: start;
  text-align: start;
}
.tf-footer__center {
  grid-area: center;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--techius-space-2) var(--techius-space-4);
  text-align: center;
}
.tf-footer__end {
  grid-area: end;
  justify-self: end;
  text-align: end;
}
.tf-footer__version {
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 960px) {
  .tf-footer.tf-footer--zones {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "start" "center" "end";
  }
  .tf-footer__center {
    justify-self: start;
    justify-content: flex-start;
    text-align: start;
  }
}
/* Empty zones reserve no vertical gap in the stacked composition. */
.tf-footer__center:empty {
  display: none;
}
.tf-footer[data-variant="workspace"].tf-footer--zones {
  --techius-footer-stack-gap: var(--techius-space-2);
}
@media (max-width: 960px) {
  .tf-footer.tf-footer--zones {
    row-gap: 0;
  }
  .tf-footer__center:not(:empty),
  .tf-footer__end {
    margin-block-start: var(--techius-footer-stack-gap);
  }
}
/* Full-width workspace; products own panels, toolbars and content minima. */
.tf-workspace {
  --techius-workspace-gutter: var(--techius-layout-gutter);
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: none;
  min-inline-size: 0;
  margin-inline: 0;
  padding-inline: var(--techius-workspace-gutter);
}
.tf-workspace__edge {
  margin-inline: calc(-1 * var(--techius-workspace-gutter));
}
