/* Prostir shared design layer. Source: Design/app gpt/index.html and wireframe.css. */

:root {
  color-scheme: light;

  --paper: #f3f4f6;
  --paper-hi: #f6f6f7;
  --paper-lo: #ececef;

  --ink: #0a0a0c;
  --ink-2: rgba(10, 10, 12, 0.72);
  --ink-3: rgba(10, 10, 12, 0.48);
  --ink-4: rgba(10, 10, 12, 0.28);

  --line: rgba(10, 10, 12, 0.10);
  --line-2: rgba(10, 10, 12, 0.06);
  --line-strong: rgba(10, 10, 12, 0.20);

  --bg-soft: rgba(255, 255, 255, 0.55);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.85);
  --glass-thin: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.85);
  --glass-shadow: none;
  --glass-shadow-lg: none;

  --accent: #a4f258;
  --leaf: #5bc97a;
  --honey: #e8b445;
  --sky: #5fb6dc;
  --lavender: #a38ae0;
  --coral: #e87c66;
  --warn: var(--honey);
  --ok: var(--leaf);

  --font-ui: "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Host Grotesk", "Noto Sans", "Helvetica Neue", sans-serif;
  --font-hand: "Caveat", "Comic Sans MS", "Segoe Print", cursive;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  --surface-elevated: rgba(255, 255, 255, 0.78);
  --on-ink: #ffffff;
  --num-grad: linear-gradient(120deg, #0a0a0c 0%, #1f6a3a 100%);
  --backdrop: linear-gradient(180deg, var(--paper-hi) 0%, var(--paper-lo) 100%);
  --chevron-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%230a0a0c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");

  --prostir-radius-xs: 5px;
  --prostir-radius-sm: 6px;
  --prostir-radius-md: 8px;
  --prostir-radius-lg: 10px;
  --prostir-radius-xl: 12px;
  --prostir-radius-shell: 14px;
  --prostir-radius-dialog: 16px;
  --prostir-blur-sm: blur(12px);
  --prostir-blur: blur(24px) saturate(140%);
  --prostir-blur-strong: blur(36px) saturate(180%);
  --prostir-topbar-height: 52px;
  --prostir-sidebar-width: 200px;
  --prostir-main-padding-x: 26px;
  --prostir-main-padding-y: 22px;

  --mud-palette-background: var(--paper);
  --mud-palette-surface: var(--glass-bg);
  --mud-palette-appbar-background: var(--bg-soft);
  --mud-palette-appbar-text: var(--ink);
  --mud-palette-drawer-background: transparent;
  --mud-palette-drawer-text: var(--ink-2);
  --mud-palette-text-primary: var(--ink);
  --mud-palette-text-secondary: var(--ink-2);
  --mud-palette-text-disabled: var(--ink-4);
  --mud-palette-lines-default: var(--line);
  --mud-palette-lines-inputs: var(--line);
  --mud-palette-divider: var(--line-2);
  --mud-palette-primary: var(--ink);
  --mud-palette-primary-text: var(--on-ink);
  --mud-palette-secondary: var(--accent);
  --mud-palette-secondary-text: #0a0a0c;
  --mud-palette-success: var(--leaf);
  --mud-palette-warning: var(--honey);
  --mud-palette-info: var(--sky);
  --mud-palette-error: var(--coral);
  --mud-typography-default-family: var(--font-ui);
  --mud-default-borderradius: var(--prostir-radius-md);
}

[data-theme="dark"],
.mud-theme-dark {
  color-scheme: dark;

  --paper: #0c0d11;
  --paper-hi: #16181f;
  --paper-lo: #07080b;

  --ink: #f5f6f8;
  --ink-2: rgba(245, 246, 248, 0.74);
  --ink-3: rgba(245, 246, 248, 0.52);
  --ink-4: rgba(245, 246, 248, 0.30);

  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.22);

  --bg-soft: rgba(255, 255, 255, 0.05);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-thin: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 24px -12px rgba(0, 0, 0, 0.55);
  --glass-shadow-lg:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 48px -16px rgba(0, 0, 0, 0.70);

  --surface-elevated: rgba(28, 30, 36, 0.78);
  --on-ink: #0a0a0c;
  --num-grad: linear-gradient(120deg, #f5f6f8 0%, #a4f258 100%);
  --chevron-url: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23f5f6f8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
}

html,
body,
#app {
  min-height: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
}

body {
  min-width: 320px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--backdrop);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.18s ease, color 0.18s ease;
}

[data-theme="dark"] body,
body:has(.mud-theme-dark) {
  background:
    radial-gradient(900px 600px at 12% 0%, rgba(91, 201, 122, 0.10), transparent 60%),
    radial-gradient(800px 600px at 88% 100%, rgba(164, 242, 88, 0.08), transparent 60%),
    radial-gradient(700px 500px at 50% 40%, rgba(95, 182, 220, 0.06), transparent 70%),
    var(--backdrop);
  background-attachment: fixed;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

:where(.wf, .wf-icon, .mud-button-root, .mud-icon-button, .mud-list-item, a, .row-menu-item, .row-action-btn, .drop-zone-icon, .app-logo) svg:not(.mud-icon-root) {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:where(.wf, .wf-icon, .mud-button-root, .mud-icon-button, .mud-list-item, a, .row-menu-item, .row-action-btn, .drop-zone-icon, .app-logo) svg:not(.mud-icon-root) [fill="currentColor"] {
  fill: currentColor;
  stroke: none;
}

::selection {
  background: rgba(164, 242, 88, 0.42);
  color: #0a0a0c;
}

:where(a, button, input, textarea, select, [role="button"], [tabindex]:not([tabindex="-1"]), .mud-button-root, .mud-icon-button):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 72%, transparent);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.wf {
  width: 100%;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  background: transparent;
}

.wf-app-shell,
.mud-layout.wf-app-shell {
  min-height: 100vh;
  --mud-drawer-width-left: var(--prostir-sidebar-width);
}

.wf-topbar {
  min-height: var(--prostir-topbar-height);
  height: var(--prostir-topbar-height);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  backdrop-filter: var(--prostir-blur);
  -webkit-backdrop-filter: var(--prostir-blur);
}

.wf-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.wf-logo-mark {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: var(--prostir-radius-xs);
}

.wf-logo-mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.wf-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.wf-crumbs .here {
  color: var(--ink);
  font-weight: 500;
}

.wf-crumbs .sep {
  opacity: 0.4;
}

.wf-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(164, 242, 88, 0.55);
  border-radius: 50%;
  background: rgba(164, 242, 88, 0.35);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wf-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

.wf-theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--glass-strong);
  color: var(--ink);
  transform: rotate(-15deg);
}

.wf-theme-toggle:active {
  transform: scale(0.94);
}

.wf-theme-toggle svg {
  display: block;
  width: 14px;
  height: 14px;
}

.wf-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.wf-sidebar:not(.mud-drawer) {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 2px;
  width: var(--prostir-sidebar-width);
  margin: 10px 6px 10px 10px;
  padding: 16px 12px;
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-shell);
  background: var(--bg-soft);
  backdrop-filter: var(--prostir-blur);
  -webkit-backdrop-filter: var(--prostir-blur);
}

.wf-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.wf-side-section {
  padding: 14px 10px 6px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wf-side-section:first-child {
  padding-top: 4px;
}

.wf-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: var(--prostir-radius-md);
  color: var(--ink-2);
  font-size: 12.5px;
  transition: background 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.wf-side-item:hover {
  background: var(--glass-thin);
  color: var(--ink);
}

.wf-side-item.active {
  background: var(--glass-strong);
  color: var(--ink);
  font-weight: 500;
}

.wf-side-item .ico {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  opacity: 0.72;
}

.wf-side-item.active .ico {
  opacity: 1;
}

.wf-main {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.wf-main-container,
.wf-main:not(.mud-main-content) {
  padding: var(--prostir-main-padding-y) var(--prostir-main-padding-x);
}

.wf-main.dense {
  padding: 18px 22px;
}

.wf-h1 {
  margin: 0 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.wf-sub {
  margin: 0 0 18px;
  color: var(--ink-3);
  font-size: 13px;
}

.wf-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wf-grid {
  display: grid;
  gap: 12px;
}

/* SECTION HEADING */
.wf-sect-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 18px 0 10px;
}

.wf-sect-head:first-child {
  margin-top: 0;
}

.wf-sect-head h3 {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* PAGE HEADER */
.wf-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.wf-page-header-text {
  min-width: 0;
}

.wf-page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* DASHBOARD GRIDS */
.dashboard-stats {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
}

.dashboard-content {
  grid-template-columns: 1.4fr 1fr;
}

/* APP ROW IN LIST */
.wf-app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.12s ease;
}

.wf-app-row:last-child {
  border-bottom: none;
}

.wf-app-row:hover {
  opacity: 0.85;
}

.wf-app-row-info {
  flex: 1;
  min-width: 0;
}

.wf-app-row-name {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-app-row-meta {
  font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-app-row-version {
  font-size: 11px;
  color: var(--ink-3);
  flex-shrink: 0;
}

/* SUBSCRIPTION LIST */
.wf-kv-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wf-kv-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 12.5px;
}

.wf-kv-row:last-child {
  border-bottom: none;
}

.wf-kv-key {
  color: var(--ink-3);
}

.wf-kv-val {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
}

/* SECTION LINK */
.wf-sect-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.12s ease;
}

.wf-sect-link:hover {
  color: var(--ink);
}

.wf-card {
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-xl);
  padding: 14px 16px;
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.wf-card.tight {
  padding: 10px 12px;
}

.wf-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.wf-card-title {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wf-num,
.wf-stat {
  width: fit-content;
  max-width: 100%;
  color: transparent;
  font-family: var(--font-display);
  font-feature-settings: "tnum" 1, "lnum" 1;
  background: var(--num-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wf-stat {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.wf-stat-sub {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 11px;
}

.wf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--ink);
  border-radius: var(--prostir-radius-md);
  background: var(--ink);
  color: var(--on-ink);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: none !important;
  transition: filter 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.wf-btn:hover {
  filter: brightness(1.15);
}

.wf-btn:active {
  filter: brightness(0.92);
}

.wf-btn.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.wf-btn.ghost:hover {
  background: var(--glass-thin);
  filter: none;
}

.wf-btn.outline {
  border-color: var(--line);
  background: var(--glass-bg);
  color: var(--ink);
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

.wf-btn.outline:hover {
  background: var(--glass-strong);
  filter: none;
}

.wf-btn.sm {
  padding: 4px 10px;
  border-radius: var(--prostir-radius-sm);
  font-size: 11.5px;
}

.wf-btn.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #0a0a0c;
}

.wf-field {
  width: 100%;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
}

.wf-select-field {
  position: relative;
}

.wf-select-value {
  display: none;
}

input.wf-field,
textarea.wf-field,
select.wf-field,
.wf-field-native {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--prostir-radius-md);
  background: var(--glass-bg);
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

select.wf-field,
select.wf-field-native {
  background-color: var(--glass-bg);
  border-radius: var(--prostir-radius-md);
}

.wf-field .mud-input-outlined-border,
.mud-input-outlined .mud-input-outlined-border {
  background-color: color-mix(in srgb, var(--glass-bg) 96%, transparent);
  border-radius: var(--prostir-radius-md);
}

input.wf-field:focus,
textarea.wf-field:focus,
select.wf-field:focus,
.wf-field-native:focus {
  border-color: var(--ink);
  background: var(--glass-strong);
  box-shadow: 0 0 0 3px var(--line-2);
}

.wf-field.lg {
  font-size: 14px;
}

input.wf-field.lg,
textarea.wf-field.lg,
select.wf-field.lg {
  padding: 11px 13px;
}

select.wf-field {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  background-image: var(--chevron-url);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 6px;
}

select.wf-field.lg {
  padding-right: 36px;
  background-position: right 14px center;
}

textarea.wf-field {
  resize: vertical;
}

.wf-textarea {
  min-height: 220px;
  line-height: 1.55;
}

.wf-textarea.lg {
  min-height: 360px;
  padding: 13px 15px;
  line-height: 1.6;
}

.wf-label {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wf-help {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.4;
}

.wf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wf-pill.ok,
.wf-pill.tag-pay {
  color: var(--ink);
  background: rgba(91, 201, 122, 0.16);
  border-color: rgba(91, 201, 122, 0.28);
}

.wf-pill.warn,
.wf-pill.tag-unanswered {
  color: var(--ink);
  background: rgba(232, 180, 69, 0.18);
  border-color: rgba(232, 180, 69, 0.32);
}

.wf-pill.error,
.wf-pill.tag-failed {
  color: var(--ink);
  background: rgba(232, 124, 102, 0.16);
  border-color: rgba(232, 124, 102, 0.30);
}

.wf-pill.draft {
  color: var(--ink-3);
}

.wf-pill.draft .dot {
  background: transparent;
  border: 1.5px solid var(--ink-3);
}

.wf-pill.tag-sale,
.wf-pill.tag-launch {
  color: var(--ink);
  background: rgba(164, 242, 88, 0.20);
  border-color: rgba(164, 242, 88, 0.35);
}

.wf-pill.tag-audit,
.wf-pill.tag-user {
  color: var(--ink);
  background: rgba(95, 182, 220, 0.18);
  border-color: rgba(95, 182, 220, 0.30);
}

.wf-pill.tag-sys,
.wf-pill.tag-upload {
  color: var(--ink);
  background: rgba(163, 138, 224, 0.16);
  border-color: rgba(163, 138, 224, 0.28);
}

.wf-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.wf-list {
  display: flex;
  flex-direction: column;
}

.wf-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 12.5px;
  transition: background 0.12s ease;
}

.wf-list-row:last-child {
  border-bottom: 0;
}

.wf-list-row:not(.head):hover {
  background: var(--glass-thin);
}

.wf-list-row .lead {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-md);
  background: var(--glass-thin);
}

.wf-list .head,
.wf-list-row.head {
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mcp-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  min-height: 520px;
}

.mcp-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  max-height: 600px;
  padding-right: 2px;
}

.mcp-list .mud-button-root.mcp-list-item,
.mcp-list-item {
  width: 100%;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--glass-thin);
  color: inherit;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  text-transform: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.mcp-list .mud-button-root.mcp-list-item:hover,
.mcp-list-item:hover {
  background: var(--glass-bg);
}

.mcp-list .mud-button-root.mcp-list-item.active,
.mcp-list-item.active {
  background: var(--glass-strong);
  border-color: var(--glass-border);
}

.mcp-list .mud-button-label {
  width: 100%;
  min-width: 0;
  display: block;
}

.mcp-list-item-name {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mcp-list-item-id {
  min-width: 0;
  margin-top: 2px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.wf-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: var(--prostir-radius-md);
  background: repeating-linear-gradient(-45deg, var(--glass-bg) 0 6px, var(--glass-thin) 6px 12px);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-align: center;
}

.wf-progress {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.wf-progress > i {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: width 0.2s ease;
}

.wf-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.wf-tab {
  margin-bottom: -1px;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  color: var(--ink-3);
  font-size: 12.5px;
}

.wf-tab.active {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-weight: 500;
}

.drop-zone {
  position: relative;
  overflow: hidden;
  padding: 30px 24px;
  border: 1.5px dashed var(--line);
  border-radius: var(--prostir-radius-shell);
  background:
    radial-gradient(ellipse at center, var(--bg-soft) 0%, var(--glass-thin) 70%),
    repeating-linear-gradient(-45deg, var(--glass-thin) 0 6px, transparent 6px 12px);
  box-shadow: var(--glass-shadow);
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.drop-zone:hover {
  border-color: var(--line-strong);
  background:
    radial-gradient(ellipse at center, var(--glass-bg) 0%, var(--bg-soft) 70%),
    repeating-linear-gradient(-45deg, var(--glass-thin) 0 6px, transparent 6px 12px);
}

.drop-zone.is-drag {
  border-color: var(--ink);
  border-style: solid;
  background: var(--glass-strong);
  transform: scale(1.005);
}

.drop-zone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.drop-zone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-shell);
  background: var(--glass-strong);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
}

.drop-zone-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.drop-zone-hint {
  color: var(--ink-3);
  font-size: 12px;
}

.drop-zone-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--prostir-radius-md);
  background: var(--glass-bg);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

.app-logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  background: var(--glass-strong);
  color: var(--ink);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.app-logo--30 {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.app-logo--32 {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.app-logo--40 {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.app-logo--42 {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.app-logo--56 {
  width: 56px;
  height: 56px;
  border-radius: 15px;
}

.app-logo--sky {
  background: rgba(95, 182, 220, 0.22);
}

.app-logo--leaf {
  background: rgba(91, 201, 122, 0.22);
}

.app-logo--lavender {
  background: rgba(163, 138, 224, 0.24);
}

.app-logo--honey {
  background: rgba(232, 180, 69, 0.26);
}

.app-logo--coral {
  background: rgba(232, 124, 102, 0.22);
}

.app-logo-initials {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.app-logo svg {
  display: block;
  width: 60%;
  height: 60%;
}

.row-menu-wrap {
  position: relative;
  display: inline-flex;
}

.row-menu-trigger,
.row-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--prostir-radius-md);
  background: var(--glass-bg);
  color: var(--ink-2);
  cursor: pointer;
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

.row-menu-trigger:hover,
.row-menu-trigger.is-open,
.row-action-btn:hover {
  border-color: var(--line-strong);
  background: var(--glass-strong);
  color: var(--ink);
}

.row-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  min-width: 180px;
  padding: 4px;
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--glass-shadow-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.row-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--prostir-radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}

.row-menu-item:hover {
  background: var(--glass-thin);
}

.row-menu-item.danger {
  color: var(--coral);
}

.row-menu-sep {
  height: 1px;
  margin: 4px;
  background: var(--line-2);
}

.public-layout-actions {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 20;
}

.public-layout-actions .wf-select-field {
  width: 112px;
}

.public-layout-actions .wf-select-value {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  display: block;
  transform: translateY(-50%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.public-layout-actions .wf-select-field .mud-select-input input {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

body:has(.signup-page) .public-layout-actions {
  top: 20px;
  right: 26px;
}

body:has(.signup-page) .public-layout-actions .mud-input-outlined .mud-input-outlined-border {
  border-color: var(--line) !important;
  background: transparent;
}

body:has(.signup-page) .public-layout-actions .mud-input,
body:has(.signup-page) .public-layout-actions .mud-input-root,
body:has(.signup-page) .public-layout-actions .mud-input-slot,
body:has(.signup-page) .public-layout-actions .mud-select,
body:has(.signup-page) .public-layout-actions .mud-icon-root,
body:has(.signup-page) .public-layout-actions .mud-typography {
  color: var(--ink) !important;
  opacity: 1 !important;
}

.signup-page {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 14px;
  overflow: hidden;
  background: var(--backdrop);
}

.signup-visual {
  flex: 1.05;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 36px 32px;
  border: 0;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(140deg, #3a9460 0%, #237a45 28%, #155632 62%, #0a2e18 100%) !important;
  box-shadow:
    0 28px 60px -24px rgba(10, 30, 18, 0.32),
    0 6px 16px -8px rgba(10, 30, 18, 0.14) !important;
}

.signup-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' seed='7' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.signup-visual > * {
  position: relative;
  z-index: 1;
}

.signup-visual .wf-logo {
  color: #fff;
}

.signup-visual .wf-logo-mark {
  border-color: rgba(255, 255, 255, 0.85);
}

.signup-visual .wf-logo-mark::after {
  background: rgba(255, 255, 255, 0.95);
}

.signup-headline {
  margin-top: auto;
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}

.signup-headline h1 {
  max-width: 380px;
  margin: 0;
  font-size: 46px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
  color: #fff;
}

.signup-headline h1:focus {
  outline: none;
  box-shadow: none;
}

.signup-headline p {
  max-width: 220px;
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

.signup-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signup-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.signup-step-check {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(164, 242, 88, 0.22);
  border: 1px solid rgba(164, 242, 88, 0.40);
}

.signup-step-check svg {
  width: 12px;
  height: 12px;
}

.signup-step .label {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.signup-form-side {
  display: flex;
  flex-direction: column;
  flex: 0 0 480px;
  position: relative;
  background: transparent;
}

.signup-form-inner {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 36px;
}

.signup-form-panel {
  width: 100%;
  max-width: 380px;
}

.signup-form {
  width: 100%;
}

.signup-form-title {
  margin-bottom: 6px;
  text-align: center;
  font-size: 24px;
}

.signup-form-sub {
  margin-bottom: 22px;
  text-align: center;
}

.signup-message {
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid rgba(95, 182, 220, 0.30);
  border-radius: 8px;
  background: rgba(95, 182, 220, 0.12);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.signup-oauth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.signup-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 16px;
  color: var(--ink-3);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.signup-divider i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.signup-field {
  margin-bottom: 10px;
}

.signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.signup-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.signup-consent a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.signup-consent a:hover {
  text-decoration: underline;
}

.signup-submit {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.signup-email-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass-bg);
  color: var(--ink-2);
  font-size: 12.5px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.signup-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.signup-legal {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
}

.signup-legal a {
  color: var(--ink);
}

.signup-legal a:hover {
  text-decoration: underline;
}

.signup-version {
  width: fit-content;
  margin: 18px auto 0;
  padding: 3px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  background: var(--glass-bg);
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mud-typography,
.mud-typography-body1,
.mud-typography-body2,
.mud-input,
.mud-button,
.mud-table,
.mud-list,
.mud-navmenu,
.mud-dialog,
.mud-popover {
  font-family: var(--font-ui);
}

.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6,
.mud-typography-subtitle1 {
  font-family: var(--font-display);
  letter-spacing: 0;
  color: var(--ink);
}

.mud-typography-h1 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
}

.mud-typography-subtitle1 {
  font-size: 14px;
  font-weight: 600;
}

.mud-typography-body1,
.mud-typography-body2 {
  font-size: 12.5px;
  line-height: 1.5;
}

.mud-typography-caption,
.mud-input-helper-text,
.mud-table-pagination-caption {
  font-size: 11px;
  color: var(--ink-3);
}

.mud-typography.mud-secondary-text {
  color: var(--ink-3) !important;
}

.mud-typography:focus,
.mud-typography:focus-visible {
  outline: none;
}

.mud-layout {
  min-height: 100vh;
  color: var(--ink);
  background: transparent;
}

.mud-main-content {
  min-width: 0;
  background: transparent;
}

.mud-main-content > .mud-container {
  max-width: none;
  padding: var(--prostir-main-padding-y) var(--prostir-main-padding-x) !important;
}

.mud-appbar {
  min-height: var(--prostir-topbar-height);
  height: var(--prostir-topbar-height);
  padding: 0 18px;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  backdrop-filter: var(--prostir-blur);
  -webkit-backdrop-filter: var(--prostir-blur);
}

.mud-appbar .mud-toolbar {
  min-height: var(--prostir-topbar-height);
  height: var(--prostir-topbar-height);
  padding: 0;
  gap: 12px;
}

.mud-appbar .wf-toolbar {
  min-width: 0;
  max-width: min(58vw, 620px);
  overflow: hidden;
}

.mud-appbar .wf-toolbar .wf-select-field {
  width: 150px;
  min-width: 118px;
}

.mud-appbar .wf-toolbar .wf-select-value {
  position: absolute;
  top: 50%;
  left: 9px;
  z-index: 2;
  display: block;
  transform: translateY(-50%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}

.mud-appbar .wf-toolbar .wf-select-field .mud-select-input input {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.mud-appbar .wf-toolbar .mud-input-control {
  margin: 0;
}

.mud-appbar .wf-toolbar .mud-input-root {
  min-height: 30px;
}

.mud-appbar .wf-toolbar .mud-input-slot {
  min-height: 30px;
  padding: 4px 8px;
  white-space: nowrap;
}

.mud-appbar .wf-toolbar .mud-button-root {
  min-height: 30px;
  max-width: 220px;
  padding: 4px 10px;
}

.mud-appbar .wf-toolbar .mud-button-root .mud-typography-body2 {
  overflow: hidden;
  max-width: 150px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mud-appbar .wf-toolbar .mud-avatar {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.mud-appbar .mud-link,
.mud-appbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.mud-avatar {
  background: rgba(164, 242, 88, 0.35);
  border: 1px solid rgba(164, 242, 88, 0.55);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mud-drawer {
  color: var(--ink-2);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.mud-drawer.wf-sidebar {
  /* Inset the card 10px from top/bottom, 10px from left edge.
     The 6px right gap comes from main content margin-left (200px)
     exceeding the card right edge (10px + 184px = 194px). */
  top: calc(var(--prostir-topbar-height) + 10px) !important;
  height: calc(100% - var(--prostir-topbar-height) - 20px) !important;
  left: 10px !important;
  width: calc(var(--prostir-sidebar-width) - 16px) !important;
  border-radius: var(--prostir-radius-shell) !important;
  background: var(--bg-soft) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: var(--prostir-blur);
  -webkit-backdrop-filter: var(--prostir-blur);
  z-index: 1200 !important;
  overflow: hidden !important;
}

.mud-drawer.wf-sidebar.mud-drawer--closed {
  pointer-events: none;
}

.mud-drawer.wf-sidebar .mud-drawer-content {
  padding: 16px 12px;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.mud-drawer-header {
  min-height: auto;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line-2);
}

.mud-navmenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.mud-nav-link {
  min-height: 34px;
  margin: 0;
  padding: 8px 10px;
  border-radius: var(--prostir-radius-md);
  color: var(--ink-2);
  font-size: 12.5px;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.mud-nav-link:hover,
.mud-nav-link:focus-visible {
  color: var(--ink);
  background: var(--glass-thin);
}

.mud-nav-link.active,
.mud-nav-link.active:not(.mud-nav-link-disabled) {
  color: var(--ink);
  font-weight: 500;
  background: var(--glass-strong);
}

.mud-nav-link .mud-nav-link-icon,
.mud-nav-link .mud-icon-root {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: currentColor;
  opacity: 0.72;
}

.mud-nav-link.active .mud-icon-root {
  opacity: 1;
}

.mud-paper,
.mud-card {
  color: var(--ink);
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-xl);
  background: var(--glass-bg) !important;
  box-shadow: var(--glass-shadow) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.mud-card-header,
.mud-card-content,
.mud-card-actions,
.mud-paper.pa-4,
.mud-paper.pa-6 {
  padding: 14px 16px;
}

.mud-card-header {
  border-bottom: 1px solid var(--line-2);
}

.mud-paper.signup-visual {
  border-color: transparent !important;
  background: linear-gradient(140deg, #3a9460 0%, #237a45 28%, #155632 62%, #0a2e18 100%) !important;
  box-shadow:
    0 28px 60px -24px rgba(10, 30, 18, 0.32),
    0 6px 16px -8px rgba(10, 30, 18, 0.14) !important;
}

.mud-paper.signup-form-panel {
  background: var(--glass-bg) !important;
}

.mud-divider {
  border-color: var(--line-2);
}

.mud-alert {
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-lg);
  background: var(--glass-bg);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

.mud-alert-filled-success,
.mud-alert-outlined-success {
  background: rgba(91, 201, 122, 0.16);
  border-color: rgba(91, 201, 122, 0.30);
}

.mud-alert-filled-warning,
.mud-alert-outlined-warning {
  background: rgba(232, 180, 69, 0.18);
  border-color: rgba(232, 180, 69, 0.32);
}

.mud-alert-filled-error,
.mud-alert-outlined-error {
  background: rgba(232, 124, 102, 0.16);
  border-color: rgba(232, 124, 102, 0.30);
}

.mud-button-root {
  min-height: 0;
  border-radius: var(--prostir-radius-md);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: filter 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.mud-button {
  padding: 7px 14px;
}

.mud-button-size-small {
  padding: 4px 10px;
  border-radius: var(--prostir-radius-sm);
  font-size: 11.5px;
}

.mud-button-filled {
  border: 1px solid var(--ink);
  background: var(--ink) !important;
  color: var(--on-ink) !important;
  box-shadow: none !important;
}

.mud-button-filled:hover {
  filter: brightness(1.15);
}

.mud-button-filled-secondary,
.mud-button-filled.mud-button-filled-secondary {
  border-color: var(--accent);
  background: var(--accent) !important;
  color: #0a0a0c !important;
}

.mud-button-outlined {
  border: 1px solid var(--line) !important;
  background: var(--glass-bg);
  color: var(--ink) !important;
  box-shadow: none;
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

.mud-button-outlined:hover {
  background: var(--glass-strong);
  border-color: var(--line-strong) !important;
}

.mud-button-text {
  color: var(--ink);
  background: transparent;
}

.mud-button-text:hover {
  background: var(--glass-thin);
}

.mud-button-root:active {
  transform: translateY(1px);
  filter: brightness(0.94);
}

.mud-button-root:disabled,
.mud-disabled {
  color: var(--ink-4) !important;
  opacity: 0.58;
  cursor: not-allowed;
  filter: none;
}

.mud-icon-button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--prostir-radius-md);
  color: var(--ink-2);
}

.mud-icon-button:hover {
  color: var(--ink);
  background: var(--glass-thin);
}


.realtime-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--glass-thin);
}

[data-status-color="green"] .realtime-dot {
  color: var(--accent);
}

[data-status-color="orange"] .realtime-dot {
  color: #f0a23a;
}

[data-status-color="red"] .realtime-dot {
  color: #ef4444;
}

.mud-button-group-root {
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--prostir-radius-lg);
  background: var(--glass-thin);
  box-shadow: none;
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

.mud-button-group-root .mud-button-root {
  border-radius: var(--prostir-radius-md) !important;
}

.mud-chip {
  height: auto;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mud-chip-filled-success,
.mud-chip-outlined-success {
  color: var(--ink);
  background: rgba(91, 201, 122, 0.16);
  border-color: rgba(91, 201, 122, 0.28);
}

.mud-chip-filled-warning,
.mud-chip-outlined-warning {
  color: var(--ink);
  background: rgba(232, 180, 69, 0.18);
  border-color: rgba(232, 180, 69, 0.32);
}

.mud-chip-filled-error,
.mud-chip-outlined-error {
  color: var(--ink);
  background: rgba(232, 124, 102, 0.16);
  border-color: rgba(232, 124, 102, 0.30);
}

.mud-input-control {
  margin-top: 0;
}

.mud-input-label,
.mud-input-control > .mud-input-control-input-container > label {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mud-input,
.mud-input-root,
.mud-input-slot,
.mud-select,
.mud-picker-input-button {
  color: var(--ink);
  font-size: 12.5px;
}

.mud-input-outlined {
  position: relative;
  border-radius: var(--prostir-radius-md);
  background: var(--glass-bg);
  backdrop-filter: var(--prostir-blur-sm);
  -webkit-backdrop-filter: var(--prostir-blur-sm);
}

.mud-input-root,
.mud-input > input.mud-input-root,
.mud-input > textarea.mud-input-root {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  min-height: 38px;
}

.mud-input-slot,
.mud-input > input.mud-input-slot,
.mud-input > textarea.mud-input-slot {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.mud-input > input,
.mud-input > textarea,
.mud-input-slot input,
.mud-input-slot textarea {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  opacity: 1;
  pointer-events: auto;
}

.mud-input > input::placeholder,
.mud-input > textarea::placeholder {
  color: var(--ink-4);
  -webkit-text-fill-color: var(--ink-4);
  opacity: 1;
}

.mud-input-outlined .mud-input-outlined-border,
.mud-input-adorned-start .mud-input-outlined-border,
.mud-input-adorned-end .mud-input-outlined-border {
  z-index: 0;
  pointer-events: none;
  border-color: var(--line) !important;
  border-radius: var(--prostir-radius-md);
  background: color-mix(in srgb, var(--glass-bg) 96%, transparent);
}

.mud-input-outlined:hover,
.mud-input-outlined.mud-input-focused {
  background: var(--glass-strong);
  box-shadow: 0 0 0 3px var(--line-2);
}

.mud-input-outlined:hover .mud-input-outlined-border,
.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
  border-color: var(--ink) !important;
  background: transparent;
}

.signup-page .signup-field .mud-input-outlined {
  border: 1px solid var(--line);
}

.signup-page .signup-field .mud-input-outlined:hover,
.signup-page .signup-field .mud-input-outlined:focus-within,
.signup-page .signup-field .mud-input-outlined.mud-input-focused {
  border-color: var(--ink);
  background: var(--glass-strong);
  box-shadow: 0 0 0 3px var(--line-2);
}

.signup-page .signup-field .mud-input-outlined .mud-input-outlined-border {
  display: none;
}

.signup-page .signup-field .mud-input > input,
.signup-page .signup-field .mud-input > textarea {
  position: relative;
  z-index: 2;
  background: transparent;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
}

.mud-input-underline::before,
.mud-input-underline::after {
  border-bottom-color: var(--line) !important;
}

.mud-input-underline:hover::before,
.mud-input-underline.mud-input-focused::after {
  border-bottom-color: var(--ink) !important;
}

.mud-select .mud-input-adornment svg {
  color: var(--ink-3);
}

.mud-list,
.mud-list-padding {
  padding: 0;
}

.mud-list-item {
  min-height: 38px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 12.5px;
}

.mud-list-item:last-child {
  border-bottom: 0;
}

.mud-list-item:hover {
  background: var(--glass-thin);
  color: var(--ink);
}

.mud-table {
  overflow: hidden;
  color: var(--ink);
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-xl);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.mud-table-container {
  background: transparent;
  box-shadow: none;
}

.mud-table-root {
  background: transparent;
}

.mud-table-head {
  background: transparent;
}

.mud-table-cell {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
}

.mud-table-head .mud-table-cell {
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  white-space: normal;
}

.mud-table-row:hover {
  background: var(--glass-thin);
}

.mud-table-pagination {
  min-height: 42px;
  border-top: 1px solid var(--line-2);
  color: var(--ink-3);
  background: transparent;
}

.operator-table-scroll {
  overflow-x: auto;
}

.operator-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}

.operator-table th,
.operator-table td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: normal;
}

.operator-table th {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
}

.operator-table__chip-list {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
}

.operator-table__chip-list .mud-chip {
  max-width: 100%;
}

.operator-table__chip-list .mud-chip-content {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.operator-table--plans__plan {
  width: 8.5rem;
}

.operator-table--plans__price {
  width: 4.75rem;
}

.operator-table--plans__limits {
  width: 8.5rem;
}

.operator-table--plans__stripe {
  width: 12rem;
}

.operator-table--plans__metadata {
  width: auto;
}

.operator-table--plans__availability {
  width: 13rem;
}

.operator-table--plans__actions {
  width: 13rem;
}

.mud-tabs {
  color: var(--ink);
}

.mud-tabs-toolbar {
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.mud-tab {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.mud-tab:hover {
  color: var(--ink-2);
  background: transparent;
}

.mud-tab.mud-tab-active {
  color: var(--ink);
  font-weight: 600;
}

.mud-tabs-toolbar .mud-tabs-toolbar-inner .mud-tabs-toolbar-content {
  gap: 0;
}

.mud-tabs .mud-tabs-slider {
  height: 2px;
  background: var(--ink);
}

.mud-popover,
.mud-menu {
  color: var(--ink);
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-lg);
  background: var(--glass-strong) !important;
  box-shadow: var(--glass-shadow-lg) !important;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.mud-menu-list {
  padding: 4px;
}

.mud-menu-item,
.mud-popover .mud-list-item {
  min-height: 34px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--prostir-radius-sm);
  color: var(--ink);
  font-size: 12.5px;
}

.mud-menu-item:hover,
.mud-popover .mud-list-item:hover {
  background: var(--glass-thin);
}

.mud-dialog-container {
  padding: 60px 20px;
  align-items: flex-start;
}

.mud-overlay {
  background: rgba(10, 10, 12, 0.45) !important;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.mud-dialog {
  color: var(--ink);
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-dialog);
  background: var(--surface-elevated) !important;
  box-shadow: var(--glass-shadow-lg) !important;
  backdrop-filter: var(--prostir-blur-strong);
  -webkit-backdrop-filter: var(--prostir-blur-strong);
}

.mud-dialog-title {
  padding: 24px 30px 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.mud-dialog-content {
  padding: 10px 30px 20px;
  color: var(--ink-2);
}

.mud-dialog-actions {
  padding: 0 30px 26px;
  gap: 8px;
}

.prostir-dialog-container {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 10, 12, 0.45);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.prostir-dialog {
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px 30px 26px;
  color: var(--ink);
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-dialog);
  background: var(--surface-elevated) !important;
  box-shadow: var(--glass-shadow-lg) !important;
  backdrop-filter: var(--prostir-blur-strong);
  -webkit-backdrop-filter: var(--prostir-blur-strong);
}

.prostir-dialog--xs {
  width: min(420px, calc(100vw - 40px));
}

.prostir-dialog--sm {
  width: min(560px, calc(100vw - 40px));
}

.prostir-dialog-actions {
  margin-top: 18px;
}

.mud-drawer.mud-drawer-temporary {
  background: var(--surface-elevated) !important;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg) !important;
  backdrop-filter: var(--prostir-blur-strong);
  -webkit-backdrop-filter: var(--prostir-blur-strong);
  overflow: hidden !important;
}

.mud-progress-linear {
  height: 6px;
  border-radius: 999px;
  background: var(--line) !important;
  overflow: hidden;
}

.mud-progress-linear .mud-progress-linear-bar {
  border-radius: 999px;
  background: var(--ink) !important;
}

.mud-progress-circular circle {
  stroke: var(--line-strong);
}

.mud-progress-circular .mud-progress-circular-circle {
  stroke: var(--ink);
}

.mud-snackbar {
  color: var(--ink);
  border: 1px solid var(--glass-border);
  border-radius: var(--prostir-radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--glass-shadow-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.mud-badge.mud-badge-dot,
.mud-badge-dot {
  background: var(--coral);
}

.mud-skeleton {
  border-radius: var(--prostir-radius-md);
  background:
    repeating-linear-gradient(
      -45deg,
      var(--glass-bg) 0 6px,
      var(--glass-thin) 6px 12px
    );
}

.mud-input-error .mud-input-outlined-border,
.mud-input-error:hover .mud-input-outlined-border,
.mud-input-error.mud-input-focused .mud-input-outlined-border {
  border-color: var(--coral) !important;
  box-shadow: 0 0 0 3px rgba(232, 124, 102, 0.14);
}

.mud-input-error,
.mud-input-error input,
.mud-input-error textarea,
.mud-input-error .mud-input-helper-text {
  color: var(--coral) !important;
}

.validation-message,
.mud-error-text {
  color: var(--coral);
  font-size: 11.5px;
}

.prostir-checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-2);
}

.prostir-checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.prostir-checkbox-field[data-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.prostir-checkbox-field[data-disabled="true"] input[type="checkbox"] {
  cursor: not-allowed;
}

.blazor-error-boundary,
#blazor-error-ui,
.components-reconnect-show,
.components-reconnect-failed,
.components-reconnect-rejected {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: auto;
  z-index: 2000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  color: var(--ink);
  border: 1px solid rgba(232, 124, 102, 0.30);
  border-radius: var(--prostir-radius-xl);
  background: var(--surface-elevated);
  box-shadow: var(--glass-shadow-lg);
  backdrop-filter: var(--prostir-blur-strong);
  -webkit-backdrop-filter: var(--prostir-blur-strong);
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: min(744px, calc(100vw - 32px));
  max-width: min(744px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 28px 32px;
  overflow: auto;
  transform: translate(-50%, -50%);
}

#components-reconnect-modal::backdrop {
  background: rgba(10, 10, 12, 0.18);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#blazor-error-ui .dismiss,
.components-reconnect-hide {
  color: var(--ink-3);
}

[data-test="app-startup-loader"] {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: var(--ink-3);
  font-family: var(--font-ui);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  background:
    radial-gradient(720px 420px at 50% 0%, rgba(91, 201, 122, 0.10), transparent 60%),
    var(--backdrop);
}

.app-startup-loader-circle,
[data-test="app-startup-loader-circle"] {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: prostir-spin 0.8s linear infinite;
}

.app-startup-loader-circle::after,
[data-test="app-startup-loader-circle"]::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.app-startup-loader-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-startup-loader-title {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.app-startup-loader-message {
  color: var(--ink-3);
  font-size: 12px;
}

@keyframes prostir-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  :root {
    --prostir-main-padding-x: 22px;
    --prostir-main-padding-y: 18px;
  }
}

@media (max-width: 960px) {
  .wf-app-shell {
    --mud-drawer-width-left: min(320px, calc(100vw - 28px));
  }

  .mud-appbar {
    padding: 0 14px;
  }

  /* On mobile the sidebar is a temporary overlay — full height, left-anchored,
     only the two right corners rounded to give the slide-in panel look. */
  .mud-drawer.wf-sidebar {
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    left: 0 !important;
    width: min(320px, calc(100vw - 28px)) !important;
    border-radius: 0 var(--prostir-radius-shell) var(--prostir-radius-shell) 0 !important;
  }

  .mud-main-content > .mud-container {
    padding: 18px 18px !important;
  }

  .mud-dialog {
    width: min(640px, calc(100vw - 32px));
  }

  .signup-page {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }

  .signup-visual {
    flex: 0 0 auto;
    min-height: 360px;
    padding: 22px 24px 26px;
  }

  .signup-headline h1 {
    font-size: 30px;
  }

  .signup-form-side {
    flex: 1;
  }

  .signup-form-inner {
    padding: 36px;
  }
}

@media (max-width: 430px) {
  .mud-appbar .wf-toolbar .wf-environment-chip {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --prostir-topbar-height: 50px;
    --prostir-main-padding-x: 14px;
    --prostir-main-padding-y: 14px;
  }

  body {
    font-size: 13px;
  }

  .mud-appbar {
    padding: 0 10px;
    gap: 8px;
  }

  .mud-appbar .mud-toolbar {
    gap: 8px;
  }

  .mud-appbar .wf-toolbar {
    max-width: calc(100vw - 132px);
    gap: 4px;
  }

  .mud-appbar .wf-toolbar .wf-version-chip {
    display: none;
  }

  .mud-appbar .wf-toolbar .wf-select-field {
    width: 68px;
    min-width: 58px;
  }

  .mud-appbar .wf-toolbar .wf-field-native {
    min-height: 30px;
    padding: 4px 20px 4px 8px;
    font-size: 11px;
  }

  .mud-appbar .wf-toolbar .wf-account-menu-trigger {
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 2px;
    border-radius: 50%;
  }

  .mud-appbar .wf-toolbar .wf-account-menu-trigger .mud-button-label {
    gap: 0;
  }

  .mud-appbar .wf-toolbar .wf-account-menu-email,
  .mud-appbar .wf-toolbar .wf-account-menu-trigger .mud-button-label > svg {
    display: none;
  }

  .mud-main-content > .mud-container {
    padding: 14px !important;
  }

  .mud-card-header,
  .mud-card-content,
  .mud-card-actions,
  .mud-paper.pa-4,
  .mud-paper.pa-6 {
    padding: 12px 14px;
  }

  .mud-table {
    border-radius: var(--prostir-radius-lg);
  }

  .mud-table-cell {
    padding: 9px 10px;
  }

  .mud-dialog-container {
    padding: 20px 10px;
  }

  .mud-dialog {
    width: calc(100vw - 20px);
    border-radius: var(--prostir-radius-xl);
  }

  .mud-dialog-title {
    padding: 20px 18px 8px;
  }

  .mud-dialog-content {
    padding: 8px 18px 18px;
  }

  .mud-dialog-actions {
    padding: 0 18px 20px;
  }

  .blazor-error-boundary,
  #blazor-error-ui,
  .components-reconnect-show,
  .components-reconnect-failed,
  .components-reconnect-rejected {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }

  #components-reconnect-modal.components-reconnect-show,
  #components-reconnect-modal.components-reconnect-failed,
  #components-reconnect-modal.components-reconnect-rejected {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

  .signup-page {
    padding: 10px;
  }

  .signup-visual {
    min-height: 220px;
    border-radius: 18px;
  }

  .signup-headline {
    margin-bottom: 0;
  }

  .signup-headline h1 {
    font-size: 28px;
  }

  .signup-headline p {
    font-size: 12.5px;
  }

  .signup-steps {
    display: none;
  }

  .signup-form-inner {
    padding: 26px 12px 12px;
  }

  .signup-form {
    width: min(300px, calc(100vw - 44px));
    max-width: none;
    margin-inline: auto;
  }

  body:has(.signup-page) .public-layout-actions {
    top: 18px;
    right: 20px;
  }

  body:has(.signup-page) .public-layout-actions .wf-select-field {
    width: 96px;
  }

  body:has(.signup-page) .public-layout-actions .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(255, 255, 255, 0.24) !important;
    background: rgba(255, 255, 255, 0.12);
  }

  body:has(.signup-page) .public-layout-actions .mud-input,
  body:has(.signup-page) .public-layout-actions .mud-input-root,
  body:has(.signup-page) .public-layout-actions .mud-input-slot,
  body:has(.signup-page) .public-layout-actions .mud-select,
  body:has(.signup-page) .public-layout-actions .mud-icon-root,
  body:has(.signup-page) .public-layout-actions .mud-typography {
    color: rgba(255, 255, 255, 0.88) !important;
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
