/*! thur-ui 0.1.0 – shared design building block of the Thur suite (AM-Group) */
/*
 * thur-ui tokens – design values of the Thur suite, look "Ruhig und hell".
 *
 * Values are taken from the apps as unified by hand in November 2026 (Markethur/Mailthur globals.css, Supporthur and
 * Accounthur styles.css, Printeers page.ts, Automathur theme.css). Every token is prefixed `--thur-` so it never
 * collides with an app's own variables.
 *
 * Theme: light by default; dark when the system asks for it (unless <html data-theme="light"> or class "light"),
 * or always with <html data-theme="dark"> / class "dark" (next-themes). The theme is page-wide (set on <html>).
 *
 * App colours: <html data-app="markethur"> (or any element with data-app, for a scoped area) picks the app set.
 * Each app defines its light (-l) and dark (-d) values once; the blocks at the end map them to the public tokens.
 */

/* ------------------------------------------------------------------ neutral tokens, light */
:root {
  color-scheme: light;
  --thur-font: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --thur-font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;

  --thur-bg: #ecf0f6;
  --thur-wash: 9%;
  --thur-glass-a: rgba(255, 255, 255, 0.82);
  --thur-glass-b: rgba(255, 255, 255, 0.58);
  --thur-glass-edge: rgba(255, 255, 255, 0.95);
  --thur-bar: rgba(255, 255, 255, 0.86);
  --thur-surface: #ffffff;
  --thur-surface-2: rgba(16, 24, 40, 0.045);
  --thur-surface-3: rgba(16, 24, 40, 0.07);
  --thur-line: #e6eaf0;
  --thur-border: rgba(16, 24, 40, 0.09);
  --thur-border-strong: rgba(16, 24, 40, 0.15);
  --thur-text: #121821;
  --thur-text-2: #4a5464;
  --thur-text-3: #5f6876;
  --thur-accent-fg: #ffffff;
  --thur-info-bg: #e7f0fd;

  /* Status colours, always together with an icon and a text */
  --thur-good: #1a9b58;
  --thur-warning: #e0a019;
  --thur-critical: #d04444;
  --thur-good-text: #0f7a42;
  --thur-warning-text: #8a5700;
  --thur-critical-text: #c43535;
  --thur-info-text: #1f66c4;
  --thur-good-bg: #e4f5ea;
  --thur-warning-bg: #fff3d9;
  --thur-critical-bg: #fdeceb;
  --thur-danger-fill: #cf3838;

  /* Fixed brand colours in all Thur apps (owner's request of 16.11.2026) */
  --thur-brand-artmind: #16223b;
  --thur-brand-casarto: #cca133;

  /* Shadows */
  --thur-shadow-xs: 0 1px 1px rgba(16, 24, 40, 0.05);
  --thur-shadow-card: 0 1px 2px rgba(16, 24, 40, 0.05), 0 6px 20px -4px rgba(16, 24, 40, 0.08);
  --thur-shadow-lg: 0 20px 56px -8px rgba(16, 24, 40, 0.28);
  /* Keycap "Hybrid 1" (as in Automathur, flatter) */
  --thur-shadow-key: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 1px 2px rgba(16, 24, 40, 0.1);
  --thur-shadow-key-active: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.14);
  --thur-border-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)) border-box;
  --thur-inset: inset 0 1px 2px rgba(16, 24, 40, 0.07);
  --thur-ring: 0 0 0 3px color-mix(in srgb, var(--thur-accent) 22%, transparent);

  /* Pop-overs (menus, app switcher) keep their own colours: the sidebar turns its text white */
  --thur-pop-bg: #ffffff;
  --thur-pop-ink: #121821;
  --thur-pop-ink-2: #4a5464;
  --thur-pop-hover: #f1f4f7;
  --thur-pop-line: rgba(16, 24, 40, 0.1);
  --thur-pop-shadow: 0 12px 32px -8px rgba(16, 24, 40, 0.28), 0 2px 6px rgba(16, 24, 40, 0.08);

  /* Radii: cards 20, buttons 12 (small 10), fields 8, small surfaces 6 */
  --thur-radius-card: 20px;
  --thur-radius-pop: 14px;
  --thur-radius-btn: 12px;
  --thur-radius-btn-sm: 10px;
  --thur-radius-field: 8px;
  --thur-radius-xs: 6px;
  --thur-radius-pill: 999px;

  /* Spacing grid (as Supporthur "Abstände: Grundraster") */
  --thur-space-1: 4px;
  --thur-space-2: 8px;
  --thur-space-3: 12px;
  --thur-space-stack: 14px;
  --thur-space-4: 16px;
  --thur-space-5: 20px;
  --thur-space-6: 24px;
  --thur-space-8: 32px;
  --thur-space-10: 40px;

  /* Layout */
  --thur-sidebar-width: 252px;
  --thur-control-h: 40px;
  --thur-control-h-sm: 32px;

  /* Motion: only transform and opacity are animated, everything under 0.4 s */
  --thur-move: cubic-bezier(0.32, 0.72, 0, 1);
  --thur-ease-out-soft: cubic-bezier(0.2, 0.8, 0.2, 1);
  --thur-ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --thur-spring-btn: cubic-bezier(0.34, 1.9, 0.64, 1);
}

/* ------------------------------------------------------------------ neutral tokens, dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light) {
    color-scheme: dark;
    --thur-bg: #0a0d13;
    --thur-wash: 12%;
    --thur-glass-a: rgba(255, 255, 255, 0.075);
    --thur-glass-b: rgba(255, 255, 255, 0.03);
    --thur-glass-edge: rgba(255, 255, 255, 0.13);
    --thur-bar: rgba(22, 27, 35, 0.9);
    --thur-surface: #161b23;
    --thur-surface-2: rgba(255, 255, 255, 0.06);
    --thur-surface-3: rgba(255, 255, 255, 0.09);
    --thur-line: #242b35;
    --thur-border: rgba(255, 255, 255, 0.07);
    --thur-border-strong: rgba(255, 255, 255, 0.12);
    --thur-text: #e9edf3;
    --thur-text-2: #b3bcc9;
    --thur-text-3: #8a94a4;
    --thur-info-bg: #142338;
    --thur-good: #3cc47b;
    --thur-warning: #f2b23a;
    --thur-critical: #f07272;
    --thur-good-text: #3cc47b;
    --thur-warning-text: #f2b23a;
    --thur-critical-text: #f07272;
    --thur-info-text: #6aa8f7;
    --thur-good-bg: #12291d;
    --thur-warning-bg: #2d2412;
    --thur-critical-bg: #331a1a;
    --thur-danger-fill: #b83030;
    --thur-shadow-xs: none;
    --thur-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
    --thur-shadow-lg: 0 20px 56px -8px rgba(0, 0, 0, 0.7);
    --thur-shadow-key: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.35);
    --thur-shadow-key-active: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    --thur-border-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)) border-box;
    --thur-inset: inset 0 1px 2px rgba(0, 0, 0, 0.35);
    --thur-pop-bg: #1b1e27;
    --thur-pop-ink: #eef0f5;
    --thur-pop-ink-2: #b3bcc9;
    --thur-pop-hover: #262a35;
    --thur-pop-line: rgba(255, 255, 255, 0.09);
    --thur-pop-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  }
}
:root[data-theme="dark"],
:root.dark {
  color-scheme: dark;
  --thur-bg: #0a0d13;
  --thur-wash: 12%;
  --thur-glass-a: rgba(255, 255, 255, 0.075);
  --thur-glass-b: rgba(255, 255, 255, 0.03);
  --thur-glass-edge: rgba(255, 255, 255, 0.13);
  --thur-bar: rgba(22, 27, 35, 0.9);
  --thur-surface: #161b23;
  --thur-surface-2: rgba(255, 255, 255, 0.06);
  --thur-surface-3: rgba(255, 255, 255, 0.09);
  --thur-line: #242b35;
  --thur-border: rgba(255, 255, 255, 0.07);
  --thur-border-strong: rgba(255, 255, 255, 0.12);
  --thur-text: #e9edf3;
  --thur-text-2: #b3bcc9;
  --thur-text-3: #8a94a4;
  --thur-info-bg: #142338;
  --thur-good: #3cc47b;
  --thur-warning: #f2b23a;
  --thur-critical: #f07272;
  --thur-good-text: #3cc47b;
  --thur-warning-text: #f2b23a;
  --thur-critical-text: #f07272;
  --thur-info-text: #6aa8f7;
  --thur-good-bg: #12291d;
  --thur-warning-bg: #2d2412;
  --thur-critical-bg: #331a1a;
  --thur-danger-fill: #b83030;
  --thur-shadow-xs: none;
  --thur-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  --thur-shadow-lg: 0 20px 56px -8px rgba(0, 0, 0, 0.7);
  --thur-shadow-key: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 0 rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.35);
  --thur-shadow-key-active: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  --thur-border-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)) border-box;
  --thur-inset: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  --thur-pop-bg: #1b1e27;
  --thur-pop-ink: #eef0f5;
  --thur-pop-ink-2: #b3bcc9;
  --thur-pop-hover: #262a35;
  --thur-pop-line: rgba(255, 255, 255, 0.09);
  --thur-pop-shadow: 0 14px 36px -8px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------------ app colour sets
 * accent      links, focus, selection, text in app colour (-d: lighter, readable on dark grounds)
 * accent-top / accent-bottom   gradient ends of the logo tile and highlights
 * btn         fill of primary buttons; white text on it has a contrast of at least 4.5:1 in both themes
 * side-top / side-bottom       vertical gradient of the sidebar
 * color       the one colour that stands for the app (tiles, app switcher, page transition)
 * Default without data-app: Zenthur.
 */
:root,
[data-app="zenthur"] {
  --thur-app-color: #2b3448;
  --thur-app-accent-l: #3b4a6b;
  --thur-app-accent-top-l: #56668a;
  --thur-app-accent-bottom-l: #2b3448;
  --thur-app-btn-l: #3b4a6b;
  --thur-app-side-top-l: #2b3448;
  --thur-app-side-bottom-l: #1d2433;
  --thur-app-accent-d: #9fb0d4;
  --thur-app-accent-top-d: #b1c0de;
  --thur-app-accent-bottom-d: #6f82ad;
  --thur-app-btn-d: #4a5a80;
  --thur-app-side-top-d: #1f2635;
  --thur-app-side-bottom-d: #151a25;
}
[data-app="supporthur"] {
  --thur-app-color: #0e6d65;
  --thur-app-accent-l: #0f766e;
  --thur-app-accent-top-l: #15a89c;
  --thur-app-accent-bottom-l: #0c5f59;
  --thur-app-btn-l: #0f766e;
  --thur-app-side-top-l: #0e6d65;
  --thur-app-side-bottom-l: #0b554f;
  --thur-app-accent-d: #34c3b5;
  --thur-app-accent-top-d: #23a396;
  --thur-app-accent-bottom-d: #127a71;
  --thur-app-btn-d: #127a71;
  --thur-app-side-top-d: #094742;
  --thur-app-side-bottom-d: #06322e;
}
[data-app="accounthur"] {
  --thur-app-color: #4940d3;
  --thur-app-accent-l: #4f46e5;
  --thur-app-accent-top-l: #6e67ea;
  --thur-app-accent-bottom-l: #3a30e2;
  --thur-app-btn-l: #4f46e5;
  --thur-app-side-top-l: #4940d3;
  --thur-app-side-bottom-l: #3932a5;
  --thur-app-accent-d: #7770eb;
  --thur-app-accent-top-d: #8882ed;
  --thur-app-accent-bottom-d: #4c43e5;
  --thur-app-btn-d: #4c43e5;
  --thur-app-side-top-d: #2f2a89;
  --thur-app-side-bottom-d: #211d60;
}
[data-app="markethur"] {
  --thur-app-color: #225bd8;
  --thur-app-accent-l: #2563eb;
  --thur-app-accent-top-l: #5888f0;
  --thur-app-accent-bottom-l: #1555e2;
  --thur-app-btn-l: #2563eb;
  --thur-app-side-top-l: #225bd8;
  --thur-app-side-bottom-l: #1b47a9;
  --thur-app-accent-d: #6692f1;
  --thur-app-accent-top-d: #799ff3;
  --thur-app-accent-bottom-d: #3870ed;
  --thur-app-btn-d: #3467da;
  --thur-app-side-top-d: #163b8d;
  --thur-app-side-bottom-d: #102a63;
}
[data-app="mailthur"] {
  --thur-app-color: #be3a62;
  --thur-app-accent-l: #c4315d;
  --thur-app-accent-top-l: #da6c8d;
  --thur-app-accent-bottom-l: #c4315d;
  --thur-app-btn-l: #cf3f6a;
  --thur-app-side-top-l: #be3a62;
  --thur-app-side-bottom-l: #952d4c;
  --thur-app-accent-d: #dd7896;
  --thur-app-accent-top-d: #e188a3;
  --thur-app-accent-bottom-d: #d34f77;
  --thur-app-btn-d: #c4315d;
  --thur-app-side-top-d: #7c2640;
  --thur-app-side-bottom-d: #571a2d;
}
/* Fulfilthur (today Printeers): neutral graphite instead of an app colour */
[data-app="fulfilthur"] {
  --thur-app-color: #334155;
  --thur-app-accent-l: #334155;
  --thur-app-accent-top-l: #64748b;
  --thur-app-accent-bottom-l: #334155;
  --thur-app-btn-l: #334155;
  --thur-app-side-top-l: #334155;
  --thur-app-side-bottom-l: #1e293b;
  --thur-app-accent-d: #cbd5e1;
  --thur-app-accent-top-d: #94a3b8;
  --thur-app-accent-bottom-d: #475569;
  --thur-app-btn-d: #475569;
  --thur-app-side-top-d: #1c222c;
  --thur-app-side-bottom-d: #10141a;
}
/* Automathur keeps its own palette (theme.css); this set is its sage green for tiles and the page transition */
[data-app="automathur"] {
  --thur-app-color: #3f7f69;
  --thur-app-accent-l: #3d6e5f;
  --thur-app-accent-top-l: #7cb09e;
  --thur-app-accent-bottom-l: #47786a;
  --thur-app-btn-l: #47786a;
  --thur-app-side-top-l: #3f7f69;
  --thur-app-side-bottom-l: #2f6553;
  --thur-app-accent-d: #a3cfc0;
  --thur-app-accent-top-d: #7cb09e;
  --thur-app-accent-bottom-d: #47786a;
  --thur-app-btn-d: #47786a;
  --thur-app-side-top-d: #2a5446;
  --thur-app-side-bottom-d: #1d3b31;
}
/* Translathur has no interface yet; proposed colour: burnt orange */
[data-app="translathur"] {
  --thur-app-color: #c2410c;
  --thur-app-accent-l: #c2410c;
  --thur-app-accent-top-l: #ea7a3c;
  --thur-app-accent-bottom-l: #9a3412;
  --thur-app-btn-l: #c2410c;
  --thur-app-side-top-l: #c2410c;
  --thur-app-side-bottom-l: #9a3412;
  --thur-app-accent-d: #fb923c;
  --thur-app-accent-top-d: #fdba74;
  --thur-app-accent-bottom-d: #c2410c;
  --thur-app-btn-d: #b43c0b;
  --thur-app-side-top-d: #7c2d12;
  --thur-app-side-bottom-d: #571f0d;
}

/* ------------------------------------------------------------------ mapping app sets to the public tokens */
:root,
[data-app] {
  --thur-accent: var(--thur-app-accent-l);
  --thur-accent-top: var(--thur-app-accent-top-l);
  --thur-accent-bottom: var(--thur-app-accent-bottom-l);
  --thur-btn-fill: var(--thur-app-btn-l);
  --thur-side-top: var(--thur-app-side-top-l);
  --thur-side-bottom: var(--thur-app-side-bottom-l);
  --thur-pop-accent: var(--thur-app-accent-l);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light),
  :root:not([data-theme="light"]):not(.light) [data-app] {
    --thur-accent: var(--thur-app-accent-d);
    --thur-accent-top: var(--thur-app-accent-top-d);
    --thur-accent-bottom: var(--thur-app-accent-bottom-d);
    --thur-btn-fill: var(--thur-app-btn-d);
    --thur-side-top: var(--thur-app-side-top-d);
    --thur-side-bottom: var(--thur-app-side-bottom-d);
    --thur-pop-accent: var(--thur-app-accent-d);
  }
}
:root[data-theme="dark"],
:root[data-theme="dark"] [data-app],
:root.dark,
:root.dark [data-app] {
  --thur-accent: var(--thur-app-accent-d);
  --thur-accent-top: var(--thur-app-accent-top-d);
  --thur-accent-bottom: var(--thur-app-accent-bottom-d);
  --thur-btn-fill: var(--thur-app-btn-d);
  --thur-side-top: var(--thur-app-side-top-d);
  --thur-side-bottom: var(--thur-app-side-bottom-d);
  --thur-pop-accent: var(--thur-app-accent-d);
}

/*
 * thur-ui building blocks – class based, prefix `thur-`, no global resets. Look "Ruhig und hell" as in Markethur:
 * glass cards with a light edge, flat buttons in the app colour with keycap shadow, classic sidebar in the app colour.
 * Only transform and opacity are animated; with "reduce motion" nothing moves.
 */

/* ------------------------------------------------------------------ page (optional: class on <body>) */
.thur-page {
  margin: 0;
  min-height: 100dvh;
  background: var(--thur-bg);
  color: var(--thur-text);
  font: 14px/1.5 var(--thur-font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Soft wash in the app colour at the top, one fixed layer painted once */
.thur-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--thur-accent) var(--thur-wash), var(--thur-bg)) 0%, var(--thur-bg) 480px);
}
.thur-page *,
.thur-page *::before,
.thur-page *::after {
  box-sizing: border-box;
}
.thur-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.thur-tabular {
  font-variant-numeric: tabular-nums;
}
.thur-muted {
  color: var(--thur-text-3);
}
.thur-link {
  color: var(--thur-accent);
  text-decoration: none;
  font-weight: 500;
}
.thur-link:hover {
  text-decoration: underline;
}
.thur-icon {
  width: 16px;
  height: 16px;
  flex: none;
  stroke-width: 1.5;
}

/* Stack: everything below each other gets air automatically (cards do this by themselves) */
.thur-stack > * + *,
.thur-card-body > * + * {
  margin-top: var(--thur-space-stack);
}
.thur-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--thur-space-2);
}

/* ------------------------------------------------------------------ wordmark: icon tile + lowercase name + dot */
.thur-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--thur-text);
  font-family: var(--thur-font);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.thur-wordmark-tile {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, var(--thur-accent-top), var(--thur-accent-bottom));
  box-shadow: 0 3px 9px color-mix(in srgb, var(--thur-accent) 15%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.31);
}
.thur-wordmark-tile svg,
.thur-wordmark-tile img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.thur-wordmark-dot {
  color: var(--thur-accent);
}
.thur-wordmark-sm {
  font-size: 19px;
}
.thur-wordmark-sm .thur-wordmark-tile {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

/* ------------------------------------------------------------------ buttons (keycap) */
.thur-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--thur-control-h);
  padding: 0 16px;
  border: 1px solid var(--thur-border-strong);
  border-radius: var(--thur-radius-btn);
  background: var(--thur-surface);
  color: var(--thur-text);
  font: inherit;
  font-family: var(--thur-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--thur-shadow-key);
  -webkit-tap-highlight-color: transparent;
}
.thur-btn-sm {
  min-height: var(--thur-control-h-sm);
  padding: 0 12px;
  border-radius: var(--thur-radius-btn-sm);
  font-size: 12px;
}
.thur-btn:focus-visible,
.thur-icon-btn:focus-visible {
  outline: 2px solid var(--thur-accent);
  outline-offset: 2px;
}
/* Motion: spring up a little on hover, sink in by 3 px on press and spring back slowly */
.thur-btn,
.thur-icon-btn {
  transition:
    transform 0.35s var(--thur-ease-smooth),
    box-shadow 0.5s ease-out,
    filter 0.6s ease-out,
    background 0.6s ease-out,
    color 0.6s ease-out,
    border-color 0.6s ease-out,
    opacity 0.2s ease-out;
}
.thur-btn:not(:disabled):hover,
.thur-icon-btn:not(:disabled):hover {
  transition:
    transform 0.16s var(--thur-spring-btn),
    box-shadow 0.16s var(--thur-spring-btn),
    filter 0.12s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.2s ease-out;
}
.thur-btn:not(:disabled):active,
.thur-icon-btn:not(:disabled):active {
  transform: translateY(3px) scale(0.98);
  filter: brightness(0.92);
  transition:
    transform 0.04s ease,
    filter 0.04s ease,
    box-shadow 0.04s ease;
}
.thur-btn:not(:disabled):active {
  box-shadow: var(--thur-shadow-key-active);
}
@media (hover: hover) {
  .thur-btn:not(:disabled):hover:not(:active) {
    transform: translateY(-1px);
  }
  .thur-btn:not(:disabled):hover {
    background: color-mix(in srgb, var(--thur-surface), var(--thur-text) 5%);
  }
}
/* Primary: flat app colour, border as a gradient; hover brightens instead of changing colour */
.thur-btn-primary,
.thur-btn-primary:not(:disabled):hover {
  color: var(--thur-accent-fg);
  border-color: transparent;
  background: linear-gradient(var(--thur-btn-fill), var(--thur-btn-fill)) padding-box, var(--thur-border-gradient);
}
@media (hover: hover) {
  .thur-btn-primary:not(:disabled):hover:not(:active) {
    filter: brightness(1.08);
  }
}
/* Danger (light): tinted surface with red text, for "Löschen" next to other buttons */
.thur-btn-danger,
.thur-btn-danger:not(:disabled):hover {
  border-color: color-mix(in srgb, var(--thur-critical-text) 22%, transparent);
  background: var(--thur-critical-bg);
  color: var(--thur-critical-text);
}
@media (hover: hover) {
  .thur-btn-danger:not(:disabled):hover {
    background: color-mix(in srgb, var(--thur-critical-bg), var(--thur-critical-text) 8%);
  }
}
/* Danger (solid): the final step of a destructive action */
.thur-btn-danger-solid,
.thur-btn-danger-solid:not(:disabled):hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(var(--thur-danger-fill), var(--thur-danger-fill)) padding-box, var(--thur-border-gradient);
}
/* Ghost: no surface, no keycap */
.thur-btn-ghost,
.thur-btn-ghost:not(:disabled):active {
  box-shadow: none;
}
.thur-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--thur-text-2);
}
@media (hover: hover) {
  .thur-btn-ghost:not(:disabled):hover {
    background: var(--thur-surface-2);
    color: var(--thur-text);
  }
  .thur-btn-ghost:not(:disabled):hover:not(:active) {
    transform: none;
  }
}
/* Icon button: always with title and aria-label */
.thur-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--thur-radius-btn);
  background: transparent;
  color: var(--thur-text-2);
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .thur-icon-btn:not(:disabled):hover {
    background: var(--thur-surface-2);
    color: var(--thur-text);
  }
}
.thur-icon-btn[aria-expanded="true"] {
  background: var(--thur-surface-3);
  color: var(--thur-text);
}
.thur-btn:disabled,
.thur-icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
  filter: none;
}
@media (prefers-reduced-motion: reduce) {
  .thur-btn,
  .thur-icon-btn,
  .thur-btn:not(:disabled):hover:not(:active),
  .thur-btn:not(:disabled):active,
  .thur-icon-btn:not(:disabled):active {
    transform: none;
  }
}

/* ------------------------------------------------------------------ fields */
.thur-label {
  display: block;
  margin-bottom: 6px;
  color: var(--thur-text-2);
  font-size: 12px;
  font-weight: 600;
}
.thur-field {
  display: block;
  width: 100%;
  min-height: var(--thur-control-h);
  padding: 0 12px;
  border: 1px solid var(--thur-border-strong);
  border-radius: var(--thur-radius-field);
  background: var(--thur-surface);
  color: var(--thur-text);
  font: inherit;
  font-family: var(--thur-font);
  font-size: 13px;
  box-shadow: var(--thur-inset);
}
textarea.thur-field {
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
select.thur-field {
  padding-right: 32px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892a1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.thur-field::placeholder {
  color: var(--thur-text-3);
}
.thur-field:focus {
  outline: 0;
  border-color: var(--thur-accent);
  box-shadow: var(--thur-ring);
}
.thur-field[aria-invalid="true"] {
  border-color: var(--thur-critical-text);
}
.thur-help {
  margin: 6px 0 0;
  color: var(--thur-text-3);
  font-size: 12px;
}
.thur-help-error {
  color: var(--thur-critical-text);
}
.thur-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--thur-text);
  cursor: pointer;
}
.thur-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--thur-btn-fill);
}

/* ------------------------------------------------------------------ cards */
.thur-card {
  border: 1px solid var(--thur-border);
  border-radius: var(--thur-radius-card);
  background: linear-gradient(145deg, var(--thur-glass-a), var(--thur-glass-b));
  box-shadow: inset 0 1px 0 var(--thur-glass-edge), var(--thur-shadow-card);
  color: var(--thur-text);
}
.thur-card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--thur-space-3);
  padding: 22px 24px 0;
}
.thur-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.thur-card-description {
  margin: 4px 0 0;
  color: var(--thur-text-3);
  font-size: 12.5px;
}
.thur-card-body {
  padding: 20px 24px 24px;
}
.thur-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--thur-space-2);
}
.thur-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  color: var(--thur-text-2);
  font-size: 13px;
  font-weight: 500;
}
.thur-stat strong {
  color: var(--thur-text);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.thur-glass-bar {
  background: var(--thur-bar);
  border-color: var(--thur-border);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .thur-glass-bar {
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
  }
}

/* ------------------------------------------------------------------ badges (small tinted marks) and pills */
.thur-badge,
.thur-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--thur-radius-xs);
  background: var(--thur-surface-3);
  color: var(--thur-text-2);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.thur-pill {
  padding: 4px 10px;
  border-radius: var(--thur-radius-pill);
}
.thur-badge svg,
.thur-pill svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.thur-tone-good {
  background: var(--thur-good-bg);
  color: var(--thur-good-text);
}
.thur-tone-warning {
  background: var(--thur-warning-bg);
  color: var(--thur-warning-text);
}
.thur-tone-critical {
  background: var(--thur-critical-bg);
  color: var(--thur-critical-text);
}
.thur-tone-info {
  background: var(--thur-info-bg);
  color: var(--thur-info-text);
}
.thur-tone-accent {
  background: color-mix(in srgb, var(--thur-accent) 13%, transparent);
  color: var(--thur-accent);
}
.thur-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--thur-radius-pill);
  background: var(--thur-surface-3);
  color: var(--thur-text);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ tables and list rows */
.thur-table-wrap {
  overflow-x: auto;
  padding: 6px 24px 14px;
}
.thur-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
.thur-table th {
  padding: 0 12px 8px 0;
  color: var(--thur-text-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.thur-table td {
  padding: 13px 12px 13px 0;
  border-top: 1px solid var(--thur-border);
  vertical-align: middle;
}
.thur-table td.thur-num,
.thur-table th.thur-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.thur-table tbody tr {
  transition: background 0.15s ease;
}
@media (hover: hover) {
  .thur-table tbody tr:hover {
    background: var(--thur-surface-2);
  }
}
.thur-list {
  margin: 0;
  padding: 6px;
  list-style: none;
}
.thur-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--thur-text);
  text-decoration: none;
}
.thur-list-row + .thur-list-row {
  box-shadow: 0 -1px 0 var(--thur-border);
}
a.thur-list-row:hover,
button.thur-list-row:hover {
  background: var(--thur-surface-2);
}
button.thur-list-row {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.thur-list-main {
  flex: 1;
  min-width: 0;
}
.thur-list-title {
  display: block;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thur-list-meta {
  display: block;
  color: var(--thur-text-3);
  font-size: 12px;
}

/* ------------------------------------------------------------------ tabs (segmented, white marker) */
.thur-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 2px;
  padding: 3px;
  overflow-x: auto;
  border-radius: 12px;
  background: var(--thur-surface-3);
  scrollbar-width: none;
}
.thur-tabs > button,
.thur-tabs > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--thur-text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.thur-tabs > :hover {
  color: var(--thur-text);
}
.thur-tabs > [aria-selected="true"],
.thur-tabs > [aria-current="page"] {
  background: var(--thur-surface);
  color: var(--thur-text);
  font-weight: 600;
  box-shadow: var(--thur-shadow-xs), 0 0 0 1px var(--thur-border);
}
:root[data-theme="dark"] .thur-tabs > [aria-selected="true"],
:root.dark .thur-tabs > [aria-selected="true"] {
  background: rgba(255, 255, 255, 0.12);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not(.light) .thur-tabs > [aria-selected="true"] {
    background: rgba(255, 255, 255, 0.12);
  }
}
.thur-tabs > :focus-visible {
  outline: 2px solid var(--thur-accent);
  outline-offset: 1px;
}

/* ------------------------------------------------------------------ toasts */
.thur-toasts {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}
.thur-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(260px, calc(100vw - 32px));
  max-width: min(560px, calc(100vw - 32px));
  padding: 11px 12px 11px 16px;
  border-radius: 12px;
  background: color-mix(in srgb, #121821 92%, transparent);
  color: #fff;
  font: 500 13.5px/1.4 var(--thur-font);
  box-shadow: var(--thur-shadow-lg);
  pointer-events: auto;
  animation: thur-toast-in 0.28s var(--thur-move) both;
}
.thur-toast > span {
  flex: 1;
  min-width: 0;
}
.thur-toast-good {
  background: color-mix(in srgb, #0f5a33 95%, transparent);
}
.thur-toast-bad {
  background: color-mix(in srgb, #8f2222 95%, transparent);
}
.thur-toast-leaving {
  animation: thur-toast-out 0.2s ease-in both;
}
.thur-toast-action {
  flex: none;
  padding: 6px 11px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.thur-toast-action:hover {
  background: rgba(255, 255, 255, 0.26);
}
.thur-toast .thur-icon-btn {
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.8);
}
.thur-toast .thur-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
@keyframes thur-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
@keyframes thur-toast-out {
  to {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

/* ------------------------------------------------------------------ shell: classic sidebar in the app colour */
.thur-shell {
  min-height: 100dvh;
}
.thur-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: var(--thur-sidebar-width);
  padding: 30px 18px 18px;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--thur-side-top), var(--thur-side-bottom));
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.06);
  /* Everything inside is light on colour: the building blocks follow these values */
  --thur-text: #ffffff;
  --thur-text-2: rgba(255, 255, 255, 0.82);
  --thur-text-3: rgba(255, 255, 255, 0.62);
  --thur-surface: rgba(255, 255, 255, 0.1);
  --thur-surface-2: rgba(255, 255, 255, 0.08);
  --thur-surface-3: rgba(255, 255, 255, 0.12);
  --thur-border: rgba(255, 255, 255, 0.12);
  --thur-border-strong: rgba(255, 255, 255, 0.16);
  --thur-accent: rgba(255, 255, 255, 0.85);
  color: var(--thur-text);
}
.thur-sidebar :focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}
.thur-sidebar .thur-wordmark-tile {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.thur-sidebar .thur-wordmark-dot {
  color: rgba(255, 255, 255, 0.7);
}
.thur-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0 0 8px;
}
.thur-side-caption {
  margin: 0 0 10px;
  padding: 0 12px;
  color: var(--thur-text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.thur-side-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.thur-side-nav a,
.thur-side-nav button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--thur-text-2);
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.thur-side-nav a:hover,
.thur-side-nav button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.thur-side-nav [aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-weight: 600;
}
.thur-side-nav .thur-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.thur-side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--thur-border);
}
.thur-side-user {
  overflow: hidden;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thur-side-role {
  padding: 0 8px;
  color: var(--thur-text-3);
  font-size: 12px;
}
.thur-side-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.thur-main {
  max-width: 1400px;
  margin-left: var(--thur-sidebar-width);
  padding: 40px 40px 48px;
}
.thur-topbar,
.thur-tabbar {
  display: none;
}
/* Phone and tablet: slim glass bar on top, tab bar at the bottom */
@media (max-width: 1023px) {
  .thur-shell > .thur-sidebar {
    display: none;
  }
  .thur-main {
    margin-left: 0;
    padding: 20px 16px 96px;
  }
  .thur-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    border-bottom: 1px solid var(--thur-border);
  }
  .thur-topbar-tools {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
  }
  .thur-topbar > thur-workspace-switcher,
  .thur-topbar > .thur-ws {
    flex: 1 0 100%;
  }
  .thur-tabbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 30;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--thur-border);
  }
  .thur-tabbar a {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 56px;
    color: var(--thur-text-2);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
  }
  .thur-tabbar a[aria-current="page"] {
    color: var(--thur-accent);
  }
  .thur-tabbar svg {
    width: 20px;
    height: 20px;
  }
}

/* ------------------------------------------------------------------ workspace dropdown (brand favicons) */
.thur-ws {
  position: relative;
  display: block;
}
.thur-ws-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 10px 0 8px;
  border: 1px solid var(--thur-border);
  border-radius: 12px;
  background: var(--thur-surface);
  color: var(--thur-text);
  font: 600 14px/1 var(--thur-font);
  text-align: left;
  cursor: pointer;
}
.thur-ws-row .thur-ws-trigger {
  height: 40px;
}
.thur-ws-trigger:hover {
  background: color-mix(in srgb, var(--thur-surface) 94%, var(--thur-text));
}
.thur-ws-trigger:focus-visible {
  outline: 2px solid var(--thur-accent);
  outline-offset: 2px;
}
.thur-sidebar .thur-ws-trigger {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.thur-sidebar .thur-ws-trigger:hover {
  background: rgba(255, 255, 255, 0.16);
}
.thur-ws-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thur-ws-chevron {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.7;
  transition: transform 0.2s ease;
}
.thur-ws-trigger[aria-expanded="true"] .thur-ws-chevron {
  transform: rotate(180deg);
}
.thur-ws-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  background: #fff;
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.1);
}
.thur-ws-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: min(360px, 60vh);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--thur-pop-line);
  border-radius: var(--thur-radius-pop);
  background: var(--thur-pop-bg);
  color: var(--thur-pop-ink);
  box-shadow: var(--thur-pop-shadow);
  list-style: none;
  transform-origin: top center;
  animation: thur-pop-in 0.16s var(--thur-ease-out-soft);
}
.thur-ws-option {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px 0 8px;
  border-radius: 9px;
  font: 500 14px/1 var(--thur-font);
  cursor: pointer;
  outline: none;
}
.thur-ws-option.thur-is-active {
  background: var(--thur-pop-hover);
}
/* Chosen area tinted instead of a tick, so nothing shifts */
.thur-ws-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--thur-pop-accent) 14%, var(--thur-pop-bg));
  color: color-mix(in srgb, var(--thur-pop-accent) 70%, var(--thur-pop-ink));
  font-weight: 650;
}
.thur-ws-option[aria-selected="true"].thur-is-active {
  background: color-mix(in srgb, var(--thur-pop-accent) 20%, var(--thur-pop-bg));
}
.thur-ws-option:focus-visible {
  box-shadow: inset 0 0 0 2px var(--thur-pop-accent);
}
@keyframes thur-pop-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
}

/* ------------------------------------------------------------------ app switcher (grid icon + popover) */
thur-app-switcher,
thur-dashboard-link,
thur-theme-toggle,
thur-workspace-switcher {
  display: inline-block;
}
thur-workspace-switcher {
  display: block;
}
.thur-apps-pop {
  position: fixed;
  z-index: 2147482000;
  width: 312px;
  max-width: calc(100vw - 16px);
  padding: 12px;
  border: 1px solid var(--thur-pop-line);
  border-radius: 18px;
  background: var(--thur-pop-bg);
  color: var(--thur-pop-ink);
  box-shadow: var(--thur-pop-shadow);
  font-family: var(--thur-font);
  transform-origin: top left;
  animation: thur-pop-in 0.18s var(--thur-ease-out-soft);
}
.thur-apps-pop[hidden] {
  display: none;
}
.thur-apps-title {
  margin: 2px 6px 10px;
  color: var(--thur-pop-ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.thur-apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.thur-apps-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 4px 10px;
  border-radius: 12px;
  color: var(--thur-pop-ink);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  outline: none;
  transition: background 0.15s ease;
}
.thur-apps-item:hover,
.thur-apps-item:focus-visible {
  background: var(--thur-pop-hover);
}
.thur-apps-item:focus-visible {
  box-shadow: inset 0 0 0 2px var(--thur-pop-accent);
}
.thur-apps-item[aria-current="page"] {
  background: color-mix(in srgb, var(--thur-pop-accent) 13%, var(--thur-pop-bg));
  font-weight: 650;
}
.thur-apps-item[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--thur-pop-accent);
}
.thur-apps-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.thur-apps-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 6px -2px rgba(16, 24, 40, 0.35);
}
.thur-apps-tile img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.thur-apps-ext {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  color: var(--thur-pop-ink-2);
}
.thur-apps-note {
  margin: 10px 6px 2px;
  color: var(--thur-pop-ink-2);
  font-size: 11.5px;
}
.thur-dash-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 10px;
  color: var(--thur-text-2);
  font: 500 13px/1 var(--thur-font);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.thur-dash-link:hover {
  background: var(--thur-surface-2);
  color: var(--thur-text);
}
.thur-dash-link:focus-visible {
  outline: 2px solid var(--thur-accent);
  outline-offset: 2px;
}
.thur-dash-link.thur-icon-btn {
  padding: 0;
}
.thur-theme-icon {
  display: none;
  line-height: 0;
}
.thur-theme-icon[data-mode="system"] {
  display: inline-flex;
}
thur-theme-toggle[mode="light"] .thur-theme-icon[data-mode="system"],
thur-theme-toggle[mode="dark"] .thur-theme-icon[data-mode="system"] {
  display: none;
}
thur-theme-toggle[mode="light"] .thur-theme-icon[data-mode="light"],
thur-theme-toggle[mode="dark"] .thur-theme-icon[data-mode="dark"] {
  display: inline-flex;
}

/* ------------------------------------------------------------------ page transition between suite apps */
.thur-transition {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: all;
  will-change: clip-path, filter, opacity;
}
/* Arrival: thur-boot.js sets html.thur-arriving before the first paint; the colour recedes outward from the
   point where the user clicked in the previous app, purely in CSS (works even if the module fails to load). */
@property --thur-arrive-r {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
html.thur-arriving::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  background: var(--thur-arrive-color, #2b3448);
  -webkit-mask-image: radial-gradient(circle at var(--thur-arrive-x, 50%) var(--thur-arrive-y, 50%), transparent var(--thur-arrive-r), #000 calc(var(--thur-arrive-r) + 90px));
  mask-image: radial-gradient(circle at var(--thur-arrive-x, 50%) var(--thur-arrive-y, 50%), transparent var(--thur-arrive-r), #000 calc(var(--thur-arrive-r) + 90px));
  animation: thur-arrive 0.62s cubic-bezier(0.65, 0, 0.35, 1) 0.08s both;
}
@keyframes thur-arrive {
  0% {
    --thur-arrive-r: 0px;
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    --thur-arrive-r: 150vmax;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.thur-arriving::after {
    -webkit-mask-image: none;
    mask-image: none;
    animation: thur-arrive-fade 0.25s ease-out both;
  }
}
@keyframes thur-arrive-fade {
  to {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thur-ws-menu,
  .thur-apps-pop,
  .thur-toast,
  .thur-toast-leaving {
    animation: none;
  }
}
