:root {
  color-scheme: dark;
  --text: #f8fbff;
  --muted: rgba(248, 251, 255, 0.72);
  --soft: rgba(248, 251, 255, 0.52);
  --line: rgba(255, 255, 255, 0.2);
  --line-strong: rgba(255, 255, 255, 0.34);
  --glass: rgba(31, 45, 70, 0.34);
  --glass-strong: rgba(55, 70, 96, 0.48);
  --dark: rgba(5, 13, 28, 0.56);
  --primary: #5669ff;
  --primary-2: #6c8dff;
  --success: #44d18d;
  --warning: #ffad38;
  --danger: #ff5d70;
  --info: #8aa8ff;
  --purple: #9b6cff;
  --radius: 8px;
  --shadow: 0 22px 64px rgba(4, 12, 26, 0.22);
  --background-dim: 0.28;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(2, 15, 35, 0.78), rgba(24, 48, 78, 0.44) 42%, rgba(213, 119, 77, 0.24) 74%, rgba(255, 171, 96, 0.24)),
    linear-gradient(180deg, rgba(6, 14, 31, 0.26), rgba(7, 14, 29, 0.7)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=2400&q=90") center/cover fixed,
    #071322;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(90deg, rgba(3, 12, 28, 0.34), rgba(4, 18, 38, 0.18) 48%, rgba(255, 171, 96, 0.1)),
    rgba(4, 12, 26, var(--background-dim));
  content: "";
  pointer-events: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(138, 168, 255, 0.92);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  border-radius: var(--radius);
}

.is-hidden {
  display: none !important;
}

.login-screen {
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(320px, 1fr) minmax(420px, 520px);
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding: 42px clamp(22px, 6vw, 96px);
}

.login-brand,
.brand,
.topbar,
.glass-panel,
.login-panel,
.widget-card,
.table-panel,
.notification-drawer,
.workspace-select,
.calendar-toolbar,
.profile-chip,
.wall-choice {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.18);
}

.login-brand {
  position: fixed;
  top: 24px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.brand-logo-full {
  display: block;
  width: min(320px, calc(100vw - 64px));
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.28));
}

.brand-home-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-home-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 6px;
  border-radius: 12px;
}

.version-badge {
  align-self: flex-end;
  margin: 0 0 6px -4px;
  padding: 4px 8px;
  border: 1px solid rgba(138, 168, 255, 0.36);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(86, 105, 255, 0.18);
  box-shadow: 0 8px 24px rgba(5, 13, 28, 0.18);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.login-top-actions {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 5;
}

.language-select,
.topbar-language-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 850;
}

.language-select select,
.topbar-language-select select,
.settings-language-select {
  min-height: 32px;
  border: 0;
  color: white;
  background: transparent;
  font: inherit;
  outline: 0;
}

.language-select option,
.topbar-language-select option,
.settings-language-select option {
  color: #0d1730;
  background: white;
}

.settings-language-select {
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 12px;
  color: white;
  font-weight: 900;
}

.logo-mark.compact {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.login-copy h1,
.page-head h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 80px);
  line-height: 0.98;
}

.login-copy h1 {
  color: #ffffff !important;
  opacity: 1;
  font-weight: 950;
  -webkit-text-fill-color: #ffffff;
  text-shadow:
    0 2px 4px rgba(1, 8, 20, 0.88),
    0 8px 24px rgba(1, 8, 20, 0.76),
    0 22px 48px rgba(1, 8, 20, 0.58);
}

.login-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow:empty {
  display: none;
}

.login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 32px;
}

.login-stats span {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.login-stats strong {
  display: block;
  color: white;
  font-size: 28px;
}

.pwa-install-info {
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: white;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.pwa-install-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(92, 128, 255, 0.86), rgba(68, 209, 141, 0.56));
}

.pwa-install-info strong,
.pwa-install-info small {
  display: block;
}

.pwa-install-info small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
}

.public-page-links {
  position: fixed;
  right: 28px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.public-page-links a,
.public-page-links button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.public-page-links a:hover,
.public-page-links button:hover {
  color: white;
  background: rgba(86, 105, 255, 0.22);
}

.public-static-page {
  min-height: 100vh;
  padding: 24px clamp(18px, 6vw, 96px) 48px;
}

.public-static-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 72px;
  margin-bottom: 28px;
}

.public-static-topbar .login-brand,
.public-static-topbar .login-top-actions {
  position: static;
  inset: auto;
}

.public-brand {
  position: static;
}

.public-static-content {
  display: grid;
  place-items: start center;
}

.static-page-document {
  width: min(920px, 100%);
  padding: clamp(20px, 4vw, 38px);
}

.static-page-document h1 {
  margin: 8px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
}

.static-page-kicker {
  color: rgba(138, 168, 255, 0.95);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-static-actions {
  margin-top: 22px;
}

.public-static-actions a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(138, 168, 255, 0.36);
  border-radius: 999px;
  color: white;
  background: rgba(86, 105, 255, 0.16);
  text-decoration: none;
  font-weight: 850;
}

.static-page-modal {
  width: min(640px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 18px;
}

.static-page-body {
  display: grid;
  gap: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.static-page-hero-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 20px 44px rgba(4, 13, 28, 0.24);
}

.static-page-copy {
  display: grid;
  gap: 10px;
  padding: 4px 2px;
}

.static-page-copy p {
  margin: 0;
}

.static-page-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.static-page-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.static-page-admin-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 14px;
}

.static-page-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.static-page-list button {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, 0.065);
  text-align: left;
}

.static-page-list button.active,
.static-page-list button:hover {
  border-color: rgba(138, 168, 255, 0.52);
  background: rgba(86, 105, 255, 0.18);
}

.static-page-list small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rich-static-editor {
  gap: 14px;
}

.static-editor-toolbar,
.static-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.static-editor-toolbar {
  align-items: center;
}

.static-editor-toolbar strong {
  display: block;
  color: white;
}

.static-editor-toolbar small,
.rich-static-editor label small {
  color: var(--muted);
}

.static-rich-textarea {
  min-height: 280px;
  resize: vertical;
  line-height: 1.55;
}

.rich-static-editor label:has(.static-rich-textarea:last-child) + label .static-rich-textarea {
  min-height: 220px;
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  left: 130px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: white;
  background: rgba(12, 21, 38, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.maintenance-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(3, 13, 28, 0.9), rgba(19, 31, 56, 0.82)),
    var(--app-bg);
  background-attachment: fixed;
}

.maintenance-card {
  width: min(720px, calc(100vw - 32px));
  padding: clamp(24px, 5vw, 44px);
  text-align: center;
}

.maintenance-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(32px, 5vw, 58px);
}

.maintenance-card p {
  margin: 0 auto;
  max-width: 540px;
  color: var(--muted);
  font-size: 18px;
}

.traffic-countdown {
  display: inline-grid;
  min-width: 150px;
  margin: 22px auto 12px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 177, 94, 0.34);
  border-radius: 18px;
  color: white;
  background: rgba(255, 177, 94, 0.12);
  font-size: 34px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.traffic-guard-card small {
  display: block;
  color: rgba(255, 255, 255, 0.64);
}

.login-panel {
  padding: 24px;
  border-radius: 14px;
  background: rgba(31, 43, 65, 0.58);
}

.registration-panel {
  margin-top: 16px;
}

.auth-link-button {
  min-height: 40px;
  margin-top: 10px;
  border: 1px solid rgba(138, 168, 255, 0.28);
  color: white;
  background: rgba(86, 105, 255, 0.12);
  font-weight: 800;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  border-color: rgba(138, 168, 255, 0.5);
  background: rgba(86, 105, 255, 0.2);
}

.auth-link-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-link-row .auth-link-button {
  width: 100%;
}

.demo-entry {
  margin-top: 14px;
}

.demo-access-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 10px 13px;
  border: 1px solid rgba(135, 176, 255, 0.44);
  border-radius: 12px;
  color: #fff;
  text-align: left;
  background: linear-gradient(110deg, rgba(75, 102, 221, 0.36), rgba(113, 87, 216, 0.2));
  box-shadow: 0 12px 30px rgba(5, 11, 32, 0.22), inset 0 1px rgba(255, 255, 255, 0.08);
}

.demo-access-button:hover,
.demo-access-button:focus-visible {
  border-color: rgba(171, 198, 255, 0.78);
  background: linear-gradient(110deg, rgba(84, 114, 238, 0.46), rgba(126, 94, 228, 0.28));
  transform: translateY(-1px);
}

.demo-access-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.demo-access-button > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.demo-access-button strong {
  font-size: 14px;
}

.demo-access-button small {
  color: rgba(235, 242, 255, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.demo-access-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #6d7cff, #9d65e8);
  box-shadow: 0 8px 20px rgba(83, 92, 228, 0.32);
}

.demo-access-icon svg,
.demo-access-button > svg {
  width: 18px;
  height: 18px;
}

.demo-access-error {
  margin: 8px 2px 0;
  color: #ffb8bf;
  font-size: 12px;
}

.recovery-panel label {
  margin-top: 16px;
}

.recovery-success {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(68, 209, 141, 0.24);
  border-radius: var(--radius);
  color: #dfffee;
  background: rgba(68, 209, 141, 0.12);
  font-size: 12px;
}

.registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.registration-grid label:first-child,
.registration-grid label:nth-child(5),
.registration-grid label:nth-child(8) {
  grid-column: 1 / -1;
}

.registration-grid .registration-name-field {
  grid-column: auto;
}

.full-width {
  width: 100%;
}

.panel-title,
.widget-top,
.setting-row,
.admin-row,
.task-line,
.page-head,
.topbar,
.workspace-select,
.login-actions,
.form-actions,
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2,
h3 {
  margin-bottom: 12px;
}

.login-panel label,
.stack-form label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.required-marker {
  color: #ffb15e;
  font-weight: 900;
}

.required-legend {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  color: white;
  background: rgba(10, 17, 32, 0.48);
  outline: none;
}

select {
  appearance: none;
  padding-right: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(10, 17, 32, 0.58);
}

select::-ms-expand {
  display: none;
}

select option {
  color: #111827;
  background: #f8fbff;
}

.attachment-field input[type="file"] {
  padding: 12px;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.attachment-field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, rgba(88, 111, 255, 0.9), rgba(124, 92, 255, 0.72));
  cursor: pointer;
}

.attachment-field > small {
  color: var(--muted);
  font-size: 12px;
}

.attachment-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  font-size: 12px;
  font-weight: 800;
}

.attachment-chips small {
  color: var(--muted);
  font-size: 11px;
}

.select-with-action {
  gap: 8px;
}

.select-action-row {
  position: relative;
  display: block;
}

.select-action-row select {
  padding-right: 46px;
}

.field-add-button {
  display: grid;
  position: absolute;
  top: 50%;
  right: 10px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 18px rgba(4, 12, 28, 0.16);
  z-index: 2;
  cursor: pointer;
  pointer-events: auto;
}

.field-add-button:hover,
.field-add-button:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.18);
}

.field-add-button span {
  position: relative;
  display: block;
  width: 14px;
  height: 14px;
  overflow: hidden;
  color: inherit;
  text-indent: -999px;
  pointer-events: none;
}

.field-add-button span::before,
.field-add-button span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.field-add-button span::before {
  width: 14px;
  height: 2px;
}

.field-add-button span::after {
  width: 2px;
  height: 14px;
}

.inline-notice {
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(137, 163, 255, 0.32);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(93, 118, 255, 0.13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  line-height: 1.45;
}

.resource-choice-field {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.resource-choice-label {
  color: var(--muted);
  font-size: 13px;
}

.resource-checkbox-row {
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.soft-disabled-field {
  opacity: 0.52;
}

.soft-disabled-field input {
  border-style: dashed;
}

.choice-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032)),
    rgba(12, 20, 36, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.choice-chips button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 24px rgba(4, 12, 28, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 750;
}

.choice-chips button:hover,
.choice-chips button:focus-visible {
  border-color: rgba(137, 163, 255, 0.5);
  color: white;
  background: rgba(137, 163, 255, 0.16);
}

.choice-chips button.active {
  border-color: rgba(124, 148, 255, 0.82);
  color: white;
  background: linear-gradient(135deg, rgba(94, 118, 255, 0.88), rgba(131, 94, 255, 0.72));
  box-shadow: 0 14px 32px rgba(94, 118, 255, 0.24);
}

.tag-picker {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(10, 17, 32, 0.36);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.selected-tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 34px;
  align-items: center;
}

.selected-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 6px 0 11px;
  border: 1px solid rgba(143, 169, 255, 0.46);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, rgba(94, 118, 255, 0.72), rgba(111, 82, 210, 0.58));
  box-shadow: 0 10px 24px rgba(94, 118, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.selected-tag button {
  display: grid;
  width: 20px;
  height: 20px;
  min-height: 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  line-height: 1;
}

.selected-tag button:hover,
.selected-tag button:focus-visible {
  color: white;
  background: rgba(255, 255, 255, 0.24);
}

.tag-picker-placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.tag-picker-help {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.45;
}

.tag-picker-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tag-picker-input-row input {
  min-height: 36px;
}

.tag-picker-input-row button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.login-actions {
  margin-top: 18px;
}

.remember {
  display: inline-flex !important;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 8px !important;
  margin: 0 !important;
}

.remember input {
  width: auto;
  min-height: auto;
}

.login-actions button,
.primary-button,
.stack-form button[type="submit"],
.form-actions button[type="submit"] {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 28px rgba(86, 105, 255, 0.34);
  font-weight: 800;
}

.helper-text,
.muted {
  color: var(--muted);
}

.helper-text:empty {
  display: none;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 93, 112, 0.28);
  border-radius: var(--radius);
  color: #ffd9df;
  background: rgba(255, 93, 112, 0.12);
  font-size: 12px;
}

body[data-auth-mode="production"] .login-panel .status-pill {
  background: rgba(68, 209, 141, 0.16);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(5, 20, 43, 0.54), rgba(5, 15, 33, 0.3));
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(28px) saturate(1.12);
  z-index: 5;
}

.brand {
  display: grid;
  place-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 4px;
  border: 0;
  box-shadow: none;
  background: transparent;
  text-align: center;
}

.brand-logo-side {
  display: block;
  width: 86px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.version-badge.side {
  align-self: center;
  margin: -2px 0 0;
  padding: 3px 7px;
  font-size: 10px;
}

.brand strong,
.login-brand strong {
  display: block;
  line-height: 1.05;
  text-transform: uppercase;
}

.login-brand small {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 2px 12px;
  scrollbar-width: thin;
}

.nav-item,
.bottom-item {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  place-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 0;
  border-radius: 18px;
  color: var(--muted);
  background: transparent;
  text-align: center;
}

.nav-item {
  max-width: 84px;
  justify-self: center;
  overflow: hidden;
}

.nav-item > span:last-child {
  max-width: 72px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.nav-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: white;
  background: rgba(255, 255, 255, 0.075);
}

.nav-icon svg,
.icon-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.nav-item.active .nav-icon {
  border-color: rgba(151, 174, 255, 0.74);
  background: rgba(138, 168, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.nav-item.active,
.bottom-item.active {
  color: white;
  background: linear-gradient(145deg, rgba(86, 105, 255, 0.6), rgba(65, 93, 190, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -10px 24px rgba(40, 76, 176, 0.18);
}

.collapse-button {
  margin-top: auto;
  min-height: 42px;
  border: 0;
  color: var(--muted);
  background: transparent;
}

.main {
  min-width: 0;
  padding: 0 24px 28px 40px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 72px;
  margin: 0 -24px 34px -40px;
  padding: 10px 28px 10px 40px;
  border-width: 0 0 1px;
  background: linear-gradient(180deg, rgba(11, 25, 49, 0.48), rgba(11, 25, 49, 0.22));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(30px) saturate(1.14);
}

.workspace-select {
  position: relative;
  min-width: 310px;
  max-width: 430px;
  padding: 10px 14px;
  color: white;
  border-radius: 18px;
  text-align: left;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(24, 39, 68, 0.42);
}

.workspace-select small {
  display: block;
  max-width: 330px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-menu {
  position: relative;
}

.workspace-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  display: none;
  width: min(620px, calc(100vw - 180px));
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 24, 42, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px);
}

.workspace-dropdown.open {
  display: grid;
}

.workspace-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.workspace-icon[data-profile-type="Private"] {
  border-color: rgba(138, 168, 255, 0.5);
  background: rgba(86, 105, 255, 0.28);
}

.workspace-icon[data-profile-type="Business"] {
  border-color: rgba(68, 209, 141, 0.5);
  background: rgba(68, 209, 141, 0.18);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.topbar-logout,
.topbar-return {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.085);
  font-size: 13px;
  font-weight: 800;
}

.topbar-logout:hover,
.topbar-logout:focus-visible,
.topbar-return:hover,
.topbar-return:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.145);
  outline: 0;
}

.topbar-return {
  border-color: rgba(138, 168, 255, 0.34);
  background: rgba(86, 105, 255, 0.18);
}

.workspace-select.system-console-mode {
  cursor: default;
}

.workspace-select.system-console-mode .chevron {
  opacity: 0;
}

.icon-button,
.avatar-button,
.calendar-toolbar button,
.segmented button,
.panel-title button,
.form-actions button,
.filter-row button,
.tag-chip {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.widget-search-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
}

.widget-search-panel label {
  display: grid;
  flex: 1;
  gap: 7px;
}

.widget-search-panel label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-search-panel input {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.widget-search-panel input:focus {
  border-color: rgba(138, 168, 255, 0.62);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(86, 105, 255, 0.16);
}

.widget-search-panel small {
  display: grid;
  min-width: 74px;
  min-height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.icon-button {
  position: relative;
  display: grid;
  min-width: 42px;
  place-items: center;
}

.has-badge span {
  position: absolute;
  top: -8px;
  right: -6px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--danger);
  font-size: 11px;
  font-weight: 900;
}

.has-badge span[hidden] {
  display: none;
}

.avatar-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 4px 10px 4px 4px;
  background: rgba(255, 255, 255, 0.12);
}

.avatar-button > span:last-child {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.user-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, rgba(96, 119, 255, 0.95), rgba(68, 209, 141, 0.72));
  box-shadow: 0 12px 28px rgba(4, 12, 28, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 950;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-avatar {
  width: 36px;
  height: 36px;
}

.mobile-menu {
  display: none;
}

.content-view {
  display: none;
}

.content-view.active {
  display: block;
}

.page-head {
  align-items: flex-end;
  margin-bottom: 24px;
}

.page-head h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.page-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.calendar-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.calendar-toolbar strong {
  padding: 0 10px;
}

.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.segmented.full {
  width: 100%;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
}

.segmented button {
  border: 0;
  background: transparent;
}

.segmented button.active {
  background: var(--primary);
}

.calendar-pro-layout {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) 248px 238px;
  gap: 18px;
}

.calendar-scope-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: -10px 0 14px;
  padding: 9px 12px;
  border: 1px solid rgba(68, 209, 141, 0.28);
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.82);
  background: rgba(68, 209, 141, 0.1);
  box-shadow: 0 12px 30px rgba(4, 12, 28, 0.16);
  font-size: 12px;
}

.calendar-scope-banner strong {
  color: #bff7d9;
}

.glass-panel,
.table-panel {
  border-radius: var(--radius);
  padding: 16px;
}

.week-calendar {
  position: relative;
  height: min(760px, calc(100vh - 210px));
  min-height: 620px;
  overflow: auto;
  padding: 0;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035)),
    rgba(18, 31, 54, 0.38);
}

.week-calendar::after {
  display: none;
}

.week-grid {
  display: grid;
  grid-template-columns: 72px repeat(7, minmax(96px, 1fr));
  min-height: 1708px;
  background: rgba(255, 255, 255, 0.025);
}

.time-gutter,
.day-cell,
.day-head,
.time-head {
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.time-head,
.day-head {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  min-height: 76px;
  place-items: center;
  color: rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(37, 52, 83, 0.88), rgba(29, 42, 70, 0.72)),
    rgba(18, 31, 54, 0.74);
  backdrop-filter: blur(22px);
  text-align: center;
  box-shadow: 0 10px 26px rgba(4, 12, 28, 0.2);
}

.day-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.time-gutter {
  color: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.day-cell {
  position: relative;
  min-height: 1632px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.006));
}

.day-cell.calendar-drop-target {
  background: rgba(138, 168, 255, 0.085);
  box-shadow: inset 0 0 0 2px rgba(138, 168, 255, 0.24);
}

.hour-line {
  display: flex;
  align-items: flex-start;
  height: 68px;
  padding-top: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.calendar-task {
  position: absolute;
  right: 8px;
  left: 8px;
  min-height: 58px;
  overflow: hidden;
  padding: 10px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  background: var(--item-color, rgba(71, 112, 210, 0.66));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18), 0 0 24px var(--item-glow, rgba(92, 128, 255, 0.16)), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 12px;
  cursor: grab;
  backdrop-filter: blur(14px);
}

.calendar-task.resizing {
  z-index: 7;
  cursor: ns-resize;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26), 0 0 0 3px var(--item-glow, rgba(92, 128, 255, 0.2));
}

.calendar-task-resize {
  position: absolute;
  right: 16px;
  bottom: 5px;
  left: 16px;
  height: 8px;
  cursor: ns-resize;
}

.calendar-task-resize::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 36%;
  left: 36%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  opacity: 0.72;
}

.calendar-task:hover .calendar-task-resize::before {
  opacity: 1;
}

.calendar-slot-preview {
  position: absolute;
  right: 8px;
  left: 8px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  color: white;
  background: var(--item-color, rgba(92, 128, 255, 0.68));
  box-shadow: 0 0 0 3px var(--item-glow, rgba(92, 128, 255, 0.22)), 0 10px 22px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.calendar-inline-add {
  position: absolute;
  right: 8px;
  left: 8px;
  z-index: 9;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 10px;
  color: white;
  background: var(--item-color, rgba(92, 128, 255, 0.7));
  box-shadow: 0 0 0 4px var(--item-glow, rgba(92, 128, 255, 0.18)), 0 16px 34px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.calendar-inline-add span {
  padding-left: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.calendar-inline-add input {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: white;
  background: rgba(255, 255, 255, 0.14);
  outline: 0;
}

.calendar-inline-add input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.calendar-inline-add button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
}

.calendar-field-nav {
  position: sticky;
  top: 92px;
  z-index: 9;
  display: grid;
  width: 34px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.095);
  box-shadow: 0 14px 30px rgba(4, 12, 28, 0.2);
  backdrop-filter: blur(16px);
}

.calendar-field-nav.prev {
  float: left;
  margin: 112px 0 -166px 10px;
}

.calendar-field-nav.next {
  float: right;
  margin: 112px 10px -166px 0;
}

.calendar-field-nav:hover {
  color: white;
  background: rgba(255, 255, 255, 0.16);
}

.calendar-hover-cursor {
  position: absolute;
  right: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 17px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.calendar-hover-cursor span {
  color: rgba(255, 255, 255, 0.72);
}

.calendar-drop-cursor {
  position: absolute;
  right: 8px;
  left: 8px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 17px;
  padding: 0 8px;
  border: 1px dashed rgba(255, 255, 255, 0.74);
  border-radius: 7px;
  color: white;
  background: rgba(138, 168, 255, 0.38);
  box-shadow: 0 0 0 3px rgba(138, 168, 255, 0.18), 0 12px 28px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.calendar-drop-cursor span {
  color: rgba(255, 255, 255, 0.82);
}

.calendar-slot-preview span {
  color: rgba(255, 255, 255, 0.82);
}

.calendar-task.dragging {
  opacity: 0.62;
  cursor: grabbing;
  transform: scale(0.985);
}

.calendar-task strong,
.calendar-task small {
  display: block;
}

.calendar-task small {
  color: rgba(255, 255, 255, 0.75);
}

.calendar-task-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.calendar-task-actions button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  font-size: 11px;
}

.calendar-task.green {
  background: var(--item-color, rgba(60, 150, 96, 0.68));
}

.calendar-task.orange {
  background: var(--item-color, rgba(196, 113, 57, 0.68));
}

.calendar-task.purple {
  background: var(--item-color, rgba(120, 86, 190, 0.68));
}

.calendar-task.red {
  background: var(--item-color, rgba(179, 71, 91, 0.68));
}

.week-calendar.month-mode {
  height: min(760px, calc(100vh - 210px));
  min-height: 620px;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  min-height: 100%;
}

.month-head,
.month-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.month-head {
  min-height: 48px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.045);
}

.month-cell {
  min-height: 116px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.018);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.month-cell.calendar-drop-target {
  background: rgba(138, 168, 255, 0.1);
  box-shadow: inset 0 0 0 2px rgba(138, 168, 255, 0.28);
}

.month-cell.muted {
  opacity: 0.45;
}

.month-cell.today {
  background: rgba(108, 141, 255, 0.1);
}

.month-cell > button {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.month-cell.today > button {
  border-color: rgba(138, 168, 255, 0.86);
  background: rgba(108, 141, 255, 0.72);
}

.month-event {
  margin-top: 8px;
  overflow: hidden;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: white;
  background: var(--item-color, rgba(92, 128, 255, 0.58));
  box-shadow: 0 10px 24px var(--item-glow, rgba(92, 128, 255, 0.12));
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: grab;
}

.month-event span {
  margin-right: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.now-pill {
  position: absolute;
  left: 18px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--danger);
  font-size: 12px;
  font-weight: 900;
}

.day-now-pill {
  position: absolute;
  left: 8px;
  z-index: 6;
  padding: 4px 8px;
  border-radius: 999px;
  color: white;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 93, 112, 0.16);
  font-size: 11px;
  font-weight: 900;
}

.day-now-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 5;
  height: 2px;
  background: linear-gradient(90deg, var(--danger), rgba(255, 93, 112, 0.2));
}

.day-now-line::before {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255, 93, 112, 0.16);
  content: "";
}

.now-line {
  position: absolute;
  right: 0;
  left: 72px;
  z-index: 1;
  height: 2px;
  background: var(--danger);
}

.right-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.mini-calendar,
.upcoming-panel,
.task-details {
  background: rgba(57, 45, 60, 0.42);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px;
  text-align: center;
}

.mini-grid span,
.mini-grid button {
  display: grid;
  min-height: 28px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 12px;
}

.mini-grid .active {
  color: white;
  background: var(--primary);
}

.mini-grid button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

#upcomingList {
  display: grid;
  gap: 10px;
}

.upcoming-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 0;
  border-width: 0 0 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  background: transparent;
  text-align: left;
}

.upcoming-item:hover,
.upcoming-item:focus-visible {
  padding-right: 8px;
  padding-left: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.upcoming-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.upcoming-item strong,
.upcoming-item small {
  display: block;
}

.upcoming-item small {
  color: var(--muted);
}

.task-details {
  align-self: start;
  max-height: min(760px, calc(100vh - 210px));
  overflow: auto;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(19, 29, 47, 0.72);
}

.stack-form {
  display: grid;
  gap: 8px;
}

.form-actions button {
  flex: 1;
}

.form-actions button[type="button"] {
  background: rgba(255, 255, 255, 0.08);
}

.task-details .form-actions {
  position: sticky;
  bottom: -16px;
  margin: 4px -16px -16px;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, rgba(19, 29, 47, 0.64), rgba(19, 29, 47, 0.94));
  backdrop-filter: blur(18px);
}

.profile-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.workspace-dropdown.profile-strip {
  display: none;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.workspace-dropdown.profile-strip.open {
  display: grid;
}

.wall-picker-section {
  display: grid;
  gap: 8px;
}

.wall-picker-section + .wall-picker-section {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.wall-picker-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--muted);
}

.wall-picker-head strong {
  color: rgba(248, 251, 255, 0.82);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wall-picker-head small {
  display: grid;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  place-items: center;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.wall-picker-mark {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  color: white;
  font-size: 10px;
  font-weight: 900;
}

.private-group .wall-picker-mark {
  background: rgba(86, 105, 255, 0.32);
}

.business-group .wall-picker-mark {
  background: rgba(68, 209, 141, 0.22);
}

.wall-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wall-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  color: var(--muted);
  text-align: left;
  box-shadow: none;
}

.wall-choice .profile-type-badge {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: white;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.wall-choice[data-profile-type="Private"] .profile-type-badge {
  background: rgba(86, 105, 255, 0.24);
}

.wall-choice[data-profile-type="Business"] .profile-type-badge {
  background: rgba(68, 209, 141, 0.18);
}

.wall-choice strong,
.wall-choice small {
  display: block;
  min-width: 0;
}

.wall-choice strong {
  color: white;
  font-size: 14px;
}

.wall-choice small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.wall-choice.active {
  border-color: rgba(108, 141, 255, 0.78);
  background: rgba(86, 105, 255, 0.24);
}

.wall-choice[data-profile-type="Business"].active {
  border-color: rgba(68, 209, 141, 0.68);
  background: rgba(68, 209, 141, 0.14);
}

.wall-choice:hover,
.wall-choice:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
}

.profile-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
}

.private-group {
  border-color: rgba(138, 168, 255, 0.32);
}

.business-group {
  border-color: rgba(68, 209, 141, 0.34);
}

.profile-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-group-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.private-group .profile-group-icon {
  background: rgba(86, 105, 255, 0.34);
}

.business-group .profile-group-icon {
  background: rgba(68, 209, 141, 0.26);
}

.profile-group-head strong,
.profile-group-head small {
  display: block;
}

.profile-group-head small {
  color: var(--muted);
  font-size: 12px;
}

.profile-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.smart-wall-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: var(--radius);
}

.smart-wall-hero h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.smart-wall-hero p {
  margin-bottom: 0;
  color: var(--muted);
}

.smart-greeting {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.daily-thought {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84) !important;
  font-weight: 800;
}

.wall-mascot {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
}

.mascot-orbit {
  display: none;
}

.mascot-body {
  position: relative;
  width: 70px;
  height: 62px;
  border-radius: 27px 27px 30px 30px;
  background: linear-gradient(135deg, #f7fbff, #b9c8ff 58%, #86f0cd);
  box-shadow: 0 18px 34px rgba(110, 135, 255, 0.34), inset 0 -8px 16px rgba(55, 76, 145, 0.16);
  animation: mascotBreathe 3.8s ease-in-out infinite, mascotExpression 8.5s ease-in-out infinite;
}

.mascot-ear {
  position: absolute;
  top: -12px;
  width: 22px;
  height: 24px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(135deg, #f7fbff, #9fb5ff);
}

.mascot-ear.left {
  left: 11px;
  transform: rotate(-18deg);
}

.mascot-ear.right {
  right: 11px;
  transform: rotate(18deg);
}

.mascot-eye {
  position: absolute;
  top: 23px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #12234f;
  box-shadow: 0 0 0 3px rgba(18, 35, 79, 0.05);
  transform-origin: center;
  animation: mascotBlink 6.2s infinite;
}

.mascot-eye.left {
  left: 22px;
}

.mascot-eye.right {
  right: 22px;
}

.mascot-smile {
  position: absolute;
  left: 28px;
  top: 38px;
  width: 15px;
  height: 9px;
  border-bottom: 2px solid rgba(18, 35, 79, 0.76);
  border-radius: 0 0 12px 12px;
  animation: mascotSmile 8.5s ease-in-out infinite;
}

.mascot-spark {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}

.mascot-spark.one {
  right: -14px;
  top: 6px;
  animation: mascotSpark 4.4s ease-in-out infinite;
}

.mascot-spark.two {
  left: -12px;
  bottom: 10px;
  width: 5px;
  height: 5px;
  background: #86f0cd;
  animation: mascotSpark 5.6s ease-in-out 1.2s infinite;
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes mascotBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes mascotBlink {
  0%, 88%, 92%, 100% { transform: scaleY(1); }
  90% { transform: scaleY(0.12); }
}

@keyframes mascotSmile {
  0%, 62%, 100% { transform: translateY(0) scaleX(1); }
  68%, 76% { transform: translateY(1px) scaleX(1.28); }
}

@keyframes mascotExpression {
  0%, 60%, 100% { transform: translateY(0) rotate(0deg); }
  68% { transform: translateY(-1px) rotate(-2deg); }
  76% { transform: translateY(-1px) rotate(2deg); }
}

@keyframes mascotGlow {
  0%, 100% { box-shadow: 0 24px 54px rgba(55, 80, 180, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
  50% { box-shadow: 0 28px 72px rgba(92, 128, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
}

@keyframes mascotSpark {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.55); }
}

.scope-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 32px;
  margin-top: 14px;
  padding: 5px 9px;
  border: 1px solid rgba(68, 209, 141, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(68, 209, 141, 0.08);
  font-size: 12px;
}

.scope-badge strong {
  color: #bff7d9;
}

.scope-badge span {
  overflow-wrap: anywhere;
}

.widget-improvement-box {
  max-width: 620px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(138, 168, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.widget-improvement-box summary {
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.widget-improvement-box form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.widget-improvement-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.widget-improvement-box button {
  justify-self: start;
  min-height: 36px;
  padding: 0 12px;
  color: white;
  background: linear-gradient(135deg, #5d7cff, #7c5cff);
}

.smart-metrics {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.smart-metric,
.wall-widget-focus {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.smart-metric strong,
.smart-metric span,
.wall-widget-focus strong,
.wall-widget-focus span {
  display: block;
}

.smart-metric strong {
  font-size: 18px;
}

.smart-metric span,
.wall-widget-focus span {
  color: var(--muted);
  font-size: 12px;
}

.smart-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.smart-action {
  padding: 16px;
  border-radius: var(--radius);
}

.smart-action p {
  color: var(--muted);
}

.smart-action button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.profile-chip {
  position: relative;
  display: grid;
  align-content: center;
  gap: 3px;
  min-height: 48px;
  min-width: 160px;
  padding: 10px 12px;
  color: var(--muted);
  text-align: left;
}

.profile-chip.active {
  color: white;
  border-color: rgba(108, 141, 255, 0.86);
  background: rgba(86, 105, 255, 0.34);
}

.profile-chip[data-profile-type="Business"].active {
  border-color: rgba(68, 209, 141, 0.78);
  background: rgba(68, 209, 141, 0.18);
}

.profile-type-badge {
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-chip strong,
.profile-chip small {
  display: block;
}

.empty-wall-group {
  width: 100%;
  min-height: 74px;
  padding: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.empty-wall-group strong,
.empty-wall-group small {
  display: block;
}

.empty-wall-group small {
  margin-top: 4px;
  color: var(--soft);
}

.widget-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.wall-section-title {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 -2px;
  padding: 0 4px;
  color: white;
}

.wall-section-title strong {
  font-size: 14px;
  font-weight: 900;
}

.wall-section-title small {
  display: grid;
  min-width: 28px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.widget-catalog-results {
  display: contents;
}

.widget-grid.is-dragging {
  cursor: grabbing;
}

.widget-card {
  position: relative;
  grid-column: span 4;
  min-height: 236px;
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(circle at 14% 16%, var(--item-glow, rgba(92, 128, 255, 0.2)), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07) 46%, rgba(24, 37, 62, 0.48)),
    rgba(22, 36, 60, 0.62);
  box-shadow: 0 26px 64px rgba(4, 12, 28, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, outline-color 0.18s ease;
}

.widget-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.44), transparent);
  content: "";
  opacity: 0.72;
}

.widget-card::after {
  position: absolute;
  inset: auto 18px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--item-color, rgba(138, 168, 255, 0.6)), transparent);
  content: "";
  opacity: 0.5;
}

.widget-card:hover,
.widget-card:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
  background:
    radial-gradient(circle at 88% 18%, var(--item-glow, rgba(92, 128, 255, 0.22)), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.09) 48%, rgba(45, 64, 96, 0.5)),
    rgba(35, 49, 76, 0.68);
  transform: translateY(-2px);
}

.widget-card.dragging {
  border-color: rgba(138, 168, 255, 0.7);
  background: rgba(86, 105, 255, 0.14);
  box-shadow: 0 18px 52px rgba(86, 105, 255, 0.22);
  opacity: 0.54;
  transform: scale(0.985);
}

.widget-card.drop-target {
  border-color: rgba(138, 168, 255, 0.82);
  background: rgba(35, 49, 76, 0.74);
  outline: 2px solid rgba(138, 168, 255, 0.24);
  outline-offset: 4px;
}

.widget-card.drop-target::before {
  position: absolute;
  z-index: 10;
  border-radius: 999px;
  background: linear-gradient(180deg, #8aa8ff, #44d18d);
  box-shadow: 0 0 20px rgba(138, 168, 255, 0.58);
  content: "";
}

.widget-card.drop-before::before {
  top: 10px;
  bottom: 10px;
  left: -9px;
  width: 4px;
}

.widget-card.drop-after::before {
  top: 10px;
  right: -9px;
  bottom: 10px;
  width: 4px;
}

.widget-card.drop-target::after {
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(138, 168, 255, 0.06);
  content: "";
  pointer-events: none;
}

.widget-card.drop-target > * {
  position: relative;
  z-index: 1;
}

.widget-card.is-resizing {
  border-color: rgba(138, 168, 255, 0.82);
  outline: 2px solid rgba(138, 168, 255, 0.24);
  outline-offset: 2px;
  transform: none;
}

.wall-widget {
  min-height: 210px;
}

.wall-widget .metric-row,
.wall-widget .tag-list,
.wall-widget > p {
  display: none;
}

.widget-card.large {
  grid-column: span 6;
}

.widget-card p,
.generated-widget p {
  color: var(--muted);
}

.widget-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding-right: 34px;
  z-index: 1;
}

.beta-feedback-host,
.widget-card {
  position: relative;
}

.beta-feedback-button {
  position: absolute;
  top: 12px;
  right: 48px;
  z-index: 8;
  display: inline-grid;
  grid-auto-flow: column;
  gap: 7px;
  align-items: center;
  min-width: 0;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  box-shadow: none;
}

.beta-feedback-host > .beta-feedback-button {
  top: 10px;
  right: 10px;
}

.beta-feedback-button:hover,
.beta-feedback-button:focus-visible {
  transform: translateY(-1px);
}

.beta-feedback-button small {
  max-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.18s ease, opacity 0.18s ease;
}

.beta-feedback-button:hover small,
.beta-feedback-button:focus-visible small {
  max-width: 190px;
  opacity: 1;
}

.beta-pet-icon {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.beta-pet-icon::before,
.beta-pet-icon::after {
  position: absolute;
  top: 4px;
  width: 10px;
  height: 14px;
  border-radius: 12px 12px 8px 8px;
  background: #fff;
  content: "";
}

.beta-pet-icon::before {
  left: 5px;
  transform: rotate(-22deg);
}

.beta-pet-icon::after {
  right: 5px;
  transform: rotate(22deg);
}

.beta-pet-icon span {
  position: relative;
  z-index: 1;
  width: 23px;
  height: 20px;
  margin-top: 8px;
  border-radius: 11px 11px 13px 13px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 18px rgba(3, 10, 22, 0.2), inset 0 -4px 8px rgba(255, 255, 255, 0.24);
}

.beta-pet-icon span::before,
.beta-pet-icon span::after {
  position: absolute;
  content: "";
}

.beta-pet-icon span::before {
  top: 7px;
  left: 6px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(9, 24, 47, 0.82);
  box-shadow: 8px 0 0 rgba(9, 24, 47, 0.82);
}

.beta-pet-icon span::after {
  left: 8px;
  bottom: 5px;
  width: 7px;
  height: 4px;
  border-bottom: 1.5px solid rgba(9, 24, 47, 0.7);
  border-radius: 0 0 999px 999px;
}

.widget-top .status-pill {
  margin: 2px 16px 0 auto;
  white-space: nowrap;
}

.wall-widget .widget-top .status-pill {
  width: 9px;
  min-width: 9px;
  height: 9px;
  min-height: 9px;
  margin: 16px 26px 0 auto;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.widget-risk-badge {
  margin: 2px 24px 0 auto;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.wall-widget .widget-risk-badge {
  position: absolute;
  top: 62px;
  right: 16px;
  max-width: 138px;
  margin: 0;
}

.wall-widget .widget-heading {
  width: calc(100% - 32px);
}

.wall-widget .widget-title-stack {
  flex: 1 1 auto;
  min-width: 0;
}

.widget-risk-badge.danger {
  border-color: rgba(255, 93, 112, 0.34);
  background: rgba(255, 93, 112, 0.15);
}

.widget-risk-badge.warning {
  border-color: rgba(255, 173, 56, 0.34);
  background: rgba(255, 173, 56, 0.14);
}

.widget-risk-badge.success {
  border-color: rgba(68, 209, 141, 0.34);
  background: rgba(68, 209, 141, 0.13);
}

.widget-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.widget-title-stack {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.widget-title-stack h3 {
  min-width: 0;
  margin: 0;
}

.widget-version-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(138, 168, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(86, 105, 255, 0.12);
  font-size: 10px;
  font-weight: 900;
}

.widget-info {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(248, 251, 255, 0.78);
  background: rgba(255, 255, 255, 0.075);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  cursor: help;
}

.widget-info:hover,
.widget-info:focus-visible {
  border-color: rgba(138, 168, 255, 0.58);
  color: white;
  background: rgba(86, 105, 255, 0.22);
  outline: 0;
}

.widget-info-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: -8px;
  z-index: 18;
  width: min(280px, 72vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(18, 28, 48, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.widget-info:hover .widget-info-tooltip,
.widget-info:focus-visible .widget-info-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.widget-title-link {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
  text-align: left;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.widget-title-link::after {
  margin-left: 8px;
  color: var(--info);
  content: "Open";
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body[data-lang="pl"] .widget-title-link::after {
  content: "Otw\00F3rz";
}

.widget-card:hover .widget-title-link::after,
.widget-title-link:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.widget-title-link:focus-visible {
  outline: 2px solid rgba(138, 168, 255, 0.72);
  outline-offset: 4px;
}

.widget-icon {
  display: grid;
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  color: white;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.34), transparent 34%),
    var(--item-color, rgba(112, 135, 255, 0.54));
  box-shadow: 0 16px 34px var(--item-glow, rgba(86, 105, 255, 0.18)), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(18px);
}

.widget-icon-link {
  cursor: pointer;
}

.widget-icon-link:hover,
.widget-icon-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 20px 42px var(--item-glow, rgba(86, 105, 255, 0.24)), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.widget-icon-link:focus-visible {
  outline: 2px solid rgba(138, 168, 255, 0.78);
  outline-offset: 3px;
}

.widget-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
}

.metric {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.metric strong,
.metric span {
  display: block;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
}

.widget-actions,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wall-widget-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 12px 0 12px;
}

.wall-widget-stat-list div {
  display: grid;
  grid-template-columns: 14px auto minmax(0, 1fr);
  align-items: baseline;
  gap: 9px;
}

.wall-widget-stat-list strong {
  color: white;
  font-size: 17px;
  line-height: 1;
}

.wall-widget-stat-list small {
  color: var(--muted);
  font-size: 13px;
}

.wall-widget-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 6px;
}

.wall-widget-summary strong {
  color: white;
  font-size: 34px;
  line-height: 0.95;
}

.wall-widget-summary span {
  color: rgba(248, 251, 255, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.search-result-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--item-color, rgba(138, 168, 255, 0.8));
  box-shadow: 0 0 0 4px var(--item-glow, rgba(138, 168, 255, 0.16));
}

.internal-search-form {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  margin: 18px 0 12px;
  padding: 6px 7px 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.internal-search-form input {
  min-height: 44px;
  border: 0;
  color: white;
  background: transparent;
}

.internal-search-form input:focus {
  outline: 0;
}

.internal-search-form button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: white;
  background: var(--item-color, rgba(92, 128, 255, 0.7));
  box-shadow: 0 12px 24px var(--item-glow, rgba(92, 128, 255, 0.18));
}

.hero-command-center {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(740px, 100%);
  margin: 16px auto 10px;
}

.hero-search-form {
  margin: 0;
  min-height: 64px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
  box-shadow:
    0 20px 60px rgba(8, 18, 36, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-search-form input {
  font-size: 15px;
}

.internal-search-leading-icon {
  width: 21px;
  height: 21px;
  color: rgba(255, 255, 255, 0.9);
  stroke-width: 2;
}

.hero-search-form .search-voice-button {
  width: 42px;
  height: 42px;
  border: 0;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  box-shadow: none;
}

.hero-search-form .search-voice-button:hover,
.hero-search-form .search-voice-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.hero-search-form .search-voice-button.listening {
  color: #fff;
  background: rgba(255, 88, 112, 0.22);
  box-shadow: 0 0 0 6px rgba(255, 88, 112, 0.1);
  animation: voice-listening-pulse 1.2s ease-in-out infinite;
}

.hero-search-form .search-voice-button.starting {
  color: #fff;
  background: rgba(113, 139, 255, 0.2);
  box-shadow: 0 0 0 5px rgba(113, 139, 255, 0.08);
}

.hero-search-form .search-voice-button.starting svg {
  animation: voice-loader-spin 0.9s linear infinite;
}

.voice-active-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid rgba(20, 29, 48, 0.86);
  border-radius: 50%;
  background: #ff5f78;
  box-shadow: 0 0 0 4px rgba(255, 95, 120, 0.14);
}

@keyframes voice-listening-pulse {
  50% { transform: scale(1.08); }
}

@keyframes voice-loader-spin {
  to { transform: rotate(360deg); }
}

.hero-voice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero-voice-row label {
  display: grid;
  grid-template-columns: auto minmax(160px, 220px);
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 5px 8px 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-voice-row label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-voice-row select {
  min-height: 30px;
  border: 0;
  color: white;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.hero-voice-row button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(138, 168, 255, 0.3);
  color: white;
  background: rgba(86, 105, 255, 0.18);
}

.hero-voice-row button.listening {
  border-color: rgba(255, 105, 125, 0.42);
  background: rgba(255, 88, 112, 0.18);
  box-shadow: 0 0 0 5px rgba(255, 88, 112, 0.08);
}

.hero-search-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-search-results:empty {
  display: none;
}

.hero-search-results:not(:empty) {
  position: absolute;
  z-index: 30;
  top: 72px;
  left: 0;
  right: 0;
  max-height: 290px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(24, 34, 54, 0.96);
  box-shadow: 0 24px 60px rgba(4, 10, 25, 0.38);
  backdrop-filter: blur(24px);
}

.voice-helper {
  color: rgba(248, 251, 255, 0.76);
  font-size: 12px;
  line-height: 1.35;
}

.internal-search-results,
.notification-widget-list,
.profile-widget-list {
  display: grid;
  gap: 9px;
}

.internal-search-results > span {
  color: var(--muted);
  font-size: 13px;
}

.internal-search-results button,
.profile-widget-list button,
.notification-widget-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

.voice-helper.active {
  color: #fff;
  font-weight: 800;
}

.internal-search-results button {
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: 100%;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.internal-search-results button:hover,
.internal-search-results button:focus-visible {
  border-color: rgba(137, 166, 255, 0.52);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.internal-search-result-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.internal-search-result-copy strong,
.internal-search-result-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internal-search-result-arrow {
  width: 17px;
  height: 17px;
  color: rgba(255, 255, 255, 0.64);
}

.internal-search-results button strong,
.internal-search-results button small,
.profile-widget-list button strong,
.profile-widget-list button small,
.notification-widget-list strong,
.notification-widget-list small {
  display: block;
}

.internal-search-results small,
.profile-widget-list small,
.notification-widget-list small {
  color: var(--muted);
  font-size: 12px;
}

.profile-widget-list button span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.profile-widget-list button.active {
  border-color: rgba(138, 168, 255, 0.65);
  background: rgba(86, 105, 255, 0.2);
}

.notification-widget-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--item-color, rgba(138, 168, 255, 0.55));
}

.notification-widget-icon.danger { --item-color: rgba(255, 93, 112, 0.7); }
.notification-widget-icon.warning { --item-color: rgba(255, 163, 72, 0.68); }
.notification-widget-icon.info { --item-color: rgba(138, 168, 255, 0.68); }

.widget-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.widget-inline-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.widget-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.widget-menu-scope {
  display: block;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.widget-actions button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(138, 168, 255, 0.34);
  color: white;
  background: rgba(86, 105, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.widget-actions button:first-child {
  border-color: rgba(138, 168, 255, 0.58);
  background: rgba(86, 105, 255, 0.24);
}

.widget-actions button:first-child::after {
  margin-left: 10px;
  content: "›";
  font-size: 18px;
  line-height: 1;
}

.widget-actions button:hover,
.widget-actions button:focus-visible {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(108, 141, 255, 0.3);
  outline: 0;
}

.widget-menu-button {
  position: absolute;
  top: 8px;
  right: 2px;
  display: grid;
  gap: 3px;
  width: 20px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: white;
  background: transparent;
  box-shadow: none;
}

.widget-menu-button span {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.14);
}

.widget-menu-button:hover,
.widget-menu-button:focus-visible {
  background: transparent;
  outline: 0;
}

.widget-menu-button:hover span,
.widget-menu-button:focus-visible span {
  background: white;
  box-shadow: 0 0 12px rgba(138, 168, 255, 0.44);
}

.widget-menu {
  position: absolute;
  top: 50px;
  right: 16px;
  z-index: 12;
  display: none;
  min-width: 156px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 28, 48, 0.92);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px);
}

.widget-menu.open {
  display: grid;
  gap: 6px;
}

.widget-menu button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  color: white;
  background: transparent;
  text-align: left;
}

.widget-menu button:hover,
.widget-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.09);
}

.widget-color-settings {
  display: grid;
  gap: 8px;
  padding: 8px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-color-settings small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.widget-color-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.widget-color-grid button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: var(--item-color, rgba(138, 168, 255, 0.7));
  box-shadow: 0 0 0 3px var(--item-glow, rgba(138, 168, 255, 0.12));
}

.widget-color-grid button.active {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22), 0 0 18px var(--item-glow, rgba(138, 168, 255, 0.22));
}

.widget-resize-handle {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  cursor: nwse-resize;
  opacity: 0.72;
  background:
    linear-gradient(135deg, transparent 0 42%, rgba(255, 255, 255, 0.36) 42% 50%, transparent 50%),
    linear-gradient(135deg, transparent 0 62%, rgba(255, 255, 255, 0.28) 62% 70%, transparent 70%);
}

.widget-resize-handle:hover {
  opacity: 1;
  background-color: rgba(138, 168, 255, 0.12);
}

.google-widget-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 14px 0 4px;
}

.google-widget-form input {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.google-widget-form button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(108, 141, 255, 0.56);
  color: white;
  background: rgba(86, 105, 255, 0.32);
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}

.shortcut-tile {
  display: grid;
  min-height: 78px;
  place-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: white;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.07);
}

.shortcut-tile span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
}

.shortcut-tile strong {
  max-width: 100%;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.shortcut-tile.blue span { background: rgba(86, 105, 255, 0.38); }
.shortcut-tile.purple span { background: rgba(155, 108, 255, 0.34); }
.shortcut-tile.red span { background: rgba(255, 93, 112, 0.34); }
.shortcut-tile.green span { background: rgba(68, 209, 141, 0.3); }

.compact-metrics {
  margin-top: 12px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 12px;
}

.tag-chip.active {
  color: white;
  border-color: rgba(108, 141, 255, 0.72);
  background: rgba(86, 105, 255, 0.24);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #08101f;
  font-size: 12px;
  font-weight: 900;
}

.success {
  background: var(--success);
}

.warning {
  background: var(--warning);
}

.danger {
  background: var(--danger);
}

.info {
  background: var(--info);
}

.task-list-panel,
.admin-list,
.profile-cards {
  display: grid;
  gap: 12px;
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-command-center {
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.admin-section-head strong,
.form-section-head strong {
  display: block;
  color: white;
  font-size: 16px;
}

.admin-section-head small,
.form-section-head small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-command-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-command-card {
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: white;
  background: rgba(255, 255, 255, 0.075);
  text-align: left;
}

.admin-command-card span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(92, 128, 255, 0.65), rgba(155, 108, 255, 0.46));
}

.admin-command-card strong {
  font-size: 20px;
  line-height: 1;
}

.admin-command-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-command-card em {
  display: none;
}

.admin-command-card:hover,
.admin-command-card:focus-visible,
.admin-command-card.active {
  border-color: rgba(138, 168, 255, 0.45);
  background: rgba(86, 105, 255, 0.14);
}

.admin-grid-hidden {
  display: none;
}

.admin-stat-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(22px);
}

.admin-stat-card strong {
  display: block;
  color: white;
  font-size: 26px;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 12px;
}

.task-line,
.admin-row,
.profile-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.company-id-badge {
  display: inline-flex;
  width: fit-content;
  margin: 7px 0 4px;
  padding: 4px 9px;
  border: 1px solid rgba(138, 168, 255, 0.34);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(135deg, rgba(86, 105, 255, 0.22), rgba(103, 232, 249, 0.1)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.admin-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-company-wizard {
  margin-bottom: 12px;
}

.admin-actions button,
.admin-role-filters button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.admin-search-row label {
  display: grid;
  gap: 6px;
}

.admin-search-row span {
  color: var(--muted);
  font-size: 12px;
}

.admin-search-row input {
  min-height: 40px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.admin-actions .danger-action {
  border-color: rgba(255, 93, 112, 0.28);
  background: rgba(255, 93, 112, 0.16);
}

.admin-role-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-user-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid rgba(138, 168, 255, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(86, 105, 255, 0.13), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.045);
  box-shadow: 0 16px 34px rgba(2, 8, 20, 0.2);
}

.form-section-head,
.admin-user-create-form .form-actions,
.admin-permission-fieldset {
  grid-column: 1 / -1;
}

.form-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-user-create-form label {
  display: grid;
  gap: 6px;
}

.admin-user-create-form label span,
.admin-permission-fieldset legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-create-form input,
.admin-user-create-form select {
  min-height: 38px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.admin-permission-fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.admin-permission-fieldset legend {
  padding: 0 6px;
}

.admin-permission-fieldset label {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
}

.admin-permission-fieldset input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #7287ff;
}

.admin-permission-fieldset label span {
  color: rgba(242, 246, 255, 0.84);
  line-height: 1.25;
}

.admin-user-create-form .form-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.admin-user-create-form .form-actions small {
  margin-right: auto;
}

.admin-user-create-form .form-actions button {
  flex: 0 0 auto;
  min-width: 160px;
}

.admin-user-create-form > .beta-feedback-button {
  top: 15px;
  right: 92px;
}

.admin-role-filters button.active {
  border-color: rgba(138, 168, 255, 0.72);
  background: rgba(86, 105, 255, 0.28);
}

.admin-settings-list {
  display: grid;
  gap: 10px;
}

.upgrade-form {
  display: grid;
  gap: 12px;
}

.upgrade-form label:not(.remember) {
  display: grid;
  gap: 6px;
}

.upgrade-form label span {
  color: var(--muted);
  font-size: 12px;
}

.upgrade-form input,
.upgrade-form select {
  min-height: 42px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.upgrade-form input[type="file"] {
  padding: 9px;
}

.upgrade-form input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  border: 1px solid rgba(138, 168, 255, 0.4);
  border-radius: 7px;
  color: white;
  background: rgba(86, 105, 255, 0.28);
}

.upgrade-preview {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(138, 168, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(86, 105, 255, 0.09);
}

.upgrade-preview strong {
  color: white;
}

.upgrade-preview small {
  color: var(--muted);
}

.integrity-panel {
  display: grid;
  gap: 14px;
}

.integrity-summary {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(138, 168, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.integrity-summary > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.72), rgba(86, 105, 255, 0.78));
  box-shadow: 0 16px 36px rgba(74, 98, 255, 0.22);
}

.integrity-summary.warning > span {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.8), rgba(245, 114, 64, 0.68));
}

.integrity-summary.danger > span {
  background: linear-gradient(135deg, rgba(255, 92, 125, 0.82), rgba(170, 86, 255, 0.68));
}

.integrity-summary strong,
.integrity-files strong,
.integrity-incidents strong {
  color: white;
}

.integrity-summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.integrity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.integrity-actions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.integrity-files,
.integrity-incidents {
  display: grid;
  gap: 8px;
}

.integrity-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.integrity-file-row span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.integrity-file-row small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.integrity-file-row.changed {
  border-color: rgba(255, 94, 122, 0.34);
  background: rgba(255, 94, 122, 0.12);
}

.integrity-incident-row {
  border-color: rgba(255, 94, 122, 0.24);
}

.task-line small,
.admin-row small,
.profile-card small {
  display: block;
  color: var(--muted);
}

.profile-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.profile-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.profile-actions .danger-action,
.company-user-actions .danger-action,
.admin-list .danger-action {
  border-color: rgba(255, 105, 125, 0.28);
  color: #ffd6dd;
  background: rgba(255, 88, 112, 0.12);
}

.profile-lifecycle-alert,
.organization-lock-banner {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 183, 77, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 173, 56, 0.16), rgba(255, 255, 255, 0.055));
}

.profile-lifecycle-alert.danger,
.organization-lock-banner {
  border-color: rgba(255, 94, 122, 0.24);
  background: linear-gradient(135deg, rgba(255, 94, 122, 0.16), rgba(255, 255, 255, 0.055));
}

.profile-lifecycle-alert strong,
.profile-lifecycle-alert span,
.profile-lifecycle-alert em {
  display: block;
}

.profile-lifecycle-alert strong {
  color: white;
  font-size: 13px;
}

.profile-lifecycle-alert span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.profile-lifecycle-alert em {
  color: #ffd5df;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.organization-lock-banner {
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 24px 70px rgba(4, 10, 26, 0.22);
}

.organization-lock-banner.compact {
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 10px;
}

.organization-lock-banner .lock-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, #ff5e7a, #ff9a5e);
  box-shadow: 0 16px 36px rgba(255, 94, 122, 0.28);
}

.organization-lock-banner.compact .lock-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.organization-lock-banner svg {
  width: 20px;
  height: 20px;
}

.organization-lock-banner strong,
.organization-lock-banner span,
.organization-lock-banner em {
  display: block;
}

.organization-lock-banner strong {
  color: white;
  font-size: 16px;
}

.organization-lock-banner span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
}

.organization-lock-banner em {
  margin-top: 6px;
  color: #ffe0e6;
  font-style: normal;
  font-weight: 900;
}

.builder-layout,
.module-detail-grid,
.notes-layout,
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 16px;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-wide-panel {
  grid-column: 1 / -1;
}

#adminAccountsPanel .admin-list,
#adminWidgetsPanel .admin-list {
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

#adminWidgetsPanel {
  border-color: rgba(138, 168, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(86, 105, 255, 0.12), rgba(255, 255, 255, 0.04)),
    var(--glass);
}

.admin-focus-pulse {
  animation: adminPulse 1.05s ease;
}

@keyframes adminPulse {
  0% { box-shadow: 0 0 0 0 rgba(138, 168, 255, 0.0), var(--shadow); }
  28% { box-shadow: 0 0 0 5px rgba(138, 168, 255, 0.22), var(--shadow); }
  100% { box-shadow: 0 0 0 0 rgba(138, 168, 255, 0.0), var(--shadow); }
}

.notes-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.database-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.database-tabs,
.resource-list {
  display: grid;
  gap: 10px;
}

.database-tab {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
}

.database-tab.active,
.database-tab:hover {
  border-color: rgba(128, 154, 255, 0.55);
  background: rgba(96, 119, 255, 0.18);
  box-shadow: 0 14px 30px rgba(4, 12, 28, 0.22);
}

.database-tab svg {
  width: 22px;
  height: 22px;
  color: #9db5ff;
}

.database-tab strong,
.database-tab small {
  display: block;
}

.database-tab small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
}

.company-wizard,
.sharing-invite,
.company-users {
  margin-bottom: 16px;
}

.company-wizard-form,
.sharing-form,
.company-user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-wizard-form .remember,
.company-wizard-form > label:nth-child(7),
.company-wizard-form > label:nth-child(8),
.company-wizard-note,
.permission-grid,
.company-wizard-form .form-actions,
.sharing-form .form-actions {
  grid-column: 1 / -1;
}

.company-user-form {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  align-items: end;
  margin-top: 14px;
}

.company-user-form .form-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.company-permission-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.company-permission-grid fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.company-permission-grid legend {
  padding: 0 6px;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.company-permission-grid .manager-permissions {
  grid-column: 1 / -1;
  border-color: rgba(138, 168, 255, 0.24);
  background: rgba(86, 105, 255, 0.09);
}

.company-permission-grid .manager-permissions small {
  color: var(--muted);
}

.company-user-form button {
  min-height: 44px;
  padding: 0 14px;
  color: white;
  background: linear-gradient(135deg, #5d7cff, #7c5cff);
}

.company-user-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.company-user-list article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
}

.user-list-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.user-list-identity > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.list-avatar {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.company-user-list strong {
  color: white;
}

.company-user-list small {
  color: var(--muted);
}

.company-user-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.company-user-actions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.company-wizard-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(94, 221, 160, 0.24);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(94, 221, 160, 0.08);
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.permission-grid fieldset {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.permission-grid legend {
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
}

.documents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 16px;
}

.documents-list {
  display: grid;
  gap: 12px;
}

.document-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.052));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 42px rgba(3, 10, 28, 0.16);
}

.document-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, #5f7cff, #9f72ff);
  box-shadow: 0 16px 34px rgba(95, 124, 255, 0.28);
}

.document-card strong,
.document-card small {
  display: block;
}

.document-card strong {
  color: white;
  font-size: 16px;
}

.document-card small {
  margin-top: 4px;
  color: var(--muted);
}

.document-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.document-sharing-box {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.document-sharing-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.document-sharing-head span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: white;
  font-weight: 900;
}

.document-sharing-head svg {
  width: 16px;
  height: 16px;
  color: #9db5ff;
}

.document-sharing-head small,
.document-external-field small {
  color: var(--muted);
}

.document-sharing-box fieldset {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.document-sharing-box legend {
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
}

.document-recipient-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.document-recipient-option input {
  width: 16px;
  height: 16px;
  accent-color: #6c7dff;
}

.document-recipient-option strong,
.document-recipient-option small,
.document-recipient-option em {
  display: block;
}

.document-recipient-option strong {
  color: white;
  font-size: 13px;
}

.document-recipient-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.document-recipient-option em,
.document-share-chip em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.document-sharing-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
}

.document-external-field textarea {
  min-height: 64px;
}

.document-share-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.document-share-chip {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid rgba(116, 239, 181, 0.18);
  border-radius: 999px;
  background: rgba(42, 188, 121, 0.12);
}

.document-share-chip.external {
  border-color: rgba(255, 180, 95, 0.22);
  background: rgba(255, 149, 43, 0.13);
}

.document-share-chip svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: #9df3c0;
}

.document-share-chip.external svg {
  color: #ffc17a;
}

.document-share-chip strong {
  overflow: hidden;
  max-width: 190px;
  color: white;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.document-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.document-file-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.document-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.document-file-row span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.document-file-row small {
  display: inline;
  color: var(--muted);
  font-weight: 700;
}

.document-file-row button,
.document-file-row a,
.document-preview-actions a,
.document-preview-actions button {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
}

.document-file-row button:hover,
.document-file-row a:hover,
.document-preview-actions a:hover,
.document-preview-actions button:hover {
  background: rgba(112, 135, 255, 0.22);
}

.document-preview-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2, 8, 22, 0.64);
  backdrop-filter: blur(18px);
  z-index: 100;
}

.document-preview-modal {
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
}

.document-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.document-preview-body {
  display: grid;
  min-height: 420px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(5, 12, 28, 0.42);
}

.document-preview-body iframe,
.document-preview-body img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  object-fit: contain;
}

.document-preview-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.document-preview-empty svg {
  width: 42px;
  height: 42px;
  color: #9db5ff;
}

.support-layout,
.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.support-admin-layout {
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  min-height: 620px;
}

.support-main,
.support-thread-list,
.support-faq,
.support-forum,
.support-replies {
  display: grid;
  gap: 12px;
}

.support-panel,
.support-compose-panel {
  padding: 16px;
}

.support-faq-item,
.support-forum-item,
.support-thread,
.support-reply {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.support-faq-item summary {
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.support-faq-item p,
.support-thread p,
.support-reply p {
  margin: 8px 0 0;
  color: var(--muted);
}

.support-forum-item strong,
.support-thread strong,
.support-reply strong {
  color: white;
}

.support-forum-item small,
.support-thread small,
.support-reply small {
  display: block;
  color: var(--muted);
}

.support-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-right: 6px;
  padding: 0 7px;
  border: 1px solid rgba(138, 168, 255, 0.28);
  border-radius: 999px;
  color: #dfe7ff;
  background: rgba(86, 105, 255, 0.16);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.support-thread-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.support-thread.closed {
  opacity: 0.72;
}

.support-reply {
  border-color: rgba(138, 168, 255, 0.18);
  background: rgba(86, 105, 255, 0.08);
}

.support-reply-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.support-reply-form label {
  display: grid;
  gap: 6px;
}

.support-reply-form textarea {
  min-height: 86px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.admin-data-scope-note {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(116, 211, 190, 0.24);
  border-radius: 7px;
  color: rgba(240, 248, 255, 0.78);
  background: rgba(43, 144, 120, 0.1);
  font-size: 12px;
  line-height: 1.45;
}

.admin-data-scope-note svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: #7de2c1;
}

.admin-panel-actions button svg {
  width: 15px;
  height: 15px;
}

.support-inbox-dashboard {
  display: grid;
  gap: 14px;
}

.support-inbox-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.support-stat-card {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  background: rgba(21, 33, 54, 0.66);
  backdrop-filter: blur(18px);
}

.support-stat-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  color: #dce7ff;
  background: rgba(101, 132, 255, 0.25);
}

.support-stat-card.warning > span { color: #ffe0a3; background: rgba(226, 151, 42, 0.22); }
.support-stat-card.violet > span { color: #e8d7ff; background: rgba(143, 91, 220, 0.24); }
.support-stat-card.danger > span { color: #ffd7dc; background: rgba(221, 73, 93, 0.24); }

.support-stat-card svg { width: 18px; height: 18px; }
.support-stat-card div { display: grid; gap: 1px; }
.support-stat-card strong { color: white; font-size: 22px; line-height: 1; }
.support-stat-card small { color: var(--muted); font-size: 11px; }

.support-inbox-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 0.7fr));
  gap: 10px;
  padding: 12px;
}

.support-inbox-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.support-inbox-toolbar label > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.support-inbox-toolbar input,
.support-inbox-toolbar select,
.support-ticket-controls select,
.support-internal-notes textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: white;
  background: rgba(10, 22, 39, 0.58);
}

.support-search-field {
  position: relative;
  align-self: end;
}

.support-search-field svg {
  position: absolute;
  left: 12px;
  bottom: 11px;
  width: 16px;
  height: 16px;
  color: #aebbd3;
  pointer-events: none;
}

.support-search-field input { padding-left: 38px; }

.support-ticket-list-panel,
.support-ticket-detail-panel {
  min-width: 0;
  padding: 14px;
}

.support-ticket-list-panel {
  align-self: start;
  max-height: calc(100vh - 250px);
  overflow: hidden;
}

.support-ticket-list {
  display: grid;
  gap: 7px;
  max-height: calc(100vh - 330px);
  overflow-y: auto;
  padding-right: 3px;
}

.support-ticket-list-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: 100px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  color: inherit;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.support-ticket-list-item:hover,
.support-ticket-list-item.active {
  border-color: rgba(126, 158, 255, 0.58);
  background: rgba(78, 102, 183, 0.2);
}

.support-ticket-category-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  color: #eff3ff;
  background: linear-gradient(145deg, rgba(91, 115, 232, 0.86), rgba(122, 80, 194, 0.74));
}

.support-ticket-category-icon svg { width: 17px; height: 17px; }
.support-ticket-list-copy { display: grid; gap: 5px; min-width: 0; }
.support-ticket-list-topline { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; }
.support-ticket-list-topline strong { overflow: hidden; color: white; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-list-topline time { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.support-ticket-list-copy > small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.support-ticket-list-badges { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.support-ticket-list-badges .status-pill { min-height: 20px; padding: 2px 7px; font-size: 9px; font-style: normal; }
.support-ticket-list-badges > em:last-child { color: var(--muted); font-size: 9px; font-style: normal; }

.status-pill.violet { border-color: rgba(172, 129, 255, 0.3); color: #eadcff; background: rgba(128, 76, 205, 0.2); }
.status-pill.muted { color: #c6d0df; background: rgba(117, 131, 151, 0.16); }

.support-ticket-detail-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.support-ticket-detail-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.support-ticket-detail-head h2 { margin: 4px 0; color: white; font-size: 20px; }
.support-ticket-detail-head p { margin: 0; color: var(--muted); font-size: 11px; }
.support-ticket-number { color: #a9bcff; font-size: 10px; font-weight: 900; }
.support-ticket-head-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.support-ticket-head-actions button,
.support-internal-notes button { display: inline-flex; gap: 6px; align-items: center; }
.support-ticket-head-actions svg,
.support-internal-notes button svg { width: 15px; height: 15px; }

.support-ticket-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.support-ticket-controls label { display: grid; gap: 5px; }
.support-ticket-controls label > span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }

.support-ticket-request {
  padding: 14px;
  border-left: 3px solid rgba(117, 150, 255, 0.7);
  border-radius: 0 7px 7px 0;
  background: rgba(255, 255, 255, 0.055);
}

.support-request-author { display: flex; gap: 9px; align-items: center; }
.support-request-author > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: white; background: rgba(71, 150, 137, 0.72); font-size: 10px; font-weight: 900; }
.support-request-author div { display: grid; }
.support-request-author strong { color: white; font-size: 12px; }
.support-request-author small { color: var(--muted); font-size: 10px; }
.support-ticket-request > p { margin: 13px 0 0; color: rgba(247, 250, 255, 0.9); line-height: 1.6; }

.support-section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.support-section-title strong { color: white; }
.support-section-title span { display: grid; min-width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #dbe4ff; background: rgba(91, 115, 232, 0.26); font-size: 10px; }
.support-timeline { display: grid; gap: 8px; }
.support-timeline-entry { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 7px; background: rgba(255, 255, 255, 0.045); }
.support-timeline-entry > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 7px; color: #dfe7ff; background: rgba(86, 105, 255, 0.2); }
.support-timeline-entry.note > span { color: #ffe6ac; background: rgba(214, 150, 45, 0.18); }
.support-timeline-entry svg { width: 15px; height: 15px; }
.support-timeline-entry > div > div { display: flex; gap: 8px; justify-content: space-between; }
.support-timeline-entry strong { color: white; font-size: 11px; }
.support-timeline-entry time { color: var(--muted); font-size: 9px; }
.support-timeline-entry p { margin: 5px 0 0; color: rgba(240, 245, 255, 0.76); font-size: 11px; line-height: 1.5; }

.support-detail-reply { margin: 0; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.support-detail-reply .form-actions { justify-content: flex-end; }
.support-detail-reply .primary-button { display: inline-flex; gap: 7px; align-items: center; }
.support-detail-reply svg { width: 15px; height: 15px; }

.support-internal-notes { padding: 10px 12px; border: 1px solid rgba(230, 174, 71, 0.18); border-radius: 7px; background: rgba(138, 97, 31, 0.08); }
.support-internal-notes summary { display: flex; gap: 7px; align-items: center; color: #fff2d1; cursor: pointer; font-weight: 800; }
.support-internal-notes summary svg { width: 15px; height: 15px; }
.support-internal-notes summary span { margin-left: auto; }
.support-internal-notes > .support-timeline { margin-top: 10px; }
.support-internal-notes form { display: grid; gap: 8px; margin-top: 10px; }
.support-internal-notes button { justify-self: end; }

.support-ticket-empty {
  display: grid;
  min-height: 440px;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--muted);
}

.support-ticket-empty svg { width: 42px; height: 42px; margin-bottom: 10px; color: #9fb1e8; }
.support-ticket-empty strong { color: white; }
.support-ticket-empty p { margin: 4px 0 0; }

.floating-support-button {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(138, 168, 255, 0.46);
  border-radius: 18px;
  color: white;
  background:
    linear-gradient(135deg, rgba(86, 105, 255, 0.88), rgba(155, 108, 255, 0.72)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(4, 12, 26, 0.36);
  backdrop-filter: blur(24px);
}

.floating-support-button:hover,
.floating-support-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(4, 12, 26, 0.42);
}

.empty-wall-card {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 42px 24px;
  text-align: center;
}

.empty-wall-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #6d7cff, #9b6dff);
  box-shadow: 0 18px 40px rgba(109, 124, 255, 0.3);
}

.empty-wall-card h2 {
  margin: 0;
  font-size: 28px;
}

.empty-wall-card p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.sticky-board {
  position: relative;
  display: block;
  min-height: 780px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px),
    rgba(35, 45, 64, 0.38);
  background-size: 32px 32px;
}

.sticky-note {
  position: absolute;
  width: min(224px, calc(100% - 28px));
  min-height: 180px;
  padding: 22px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 6px;
  color: #1c2430;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
  transform: rotate(-1deg);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.sticky-note:nth-child(2n) {
  transform: rotate(1.2deg);
}

.sticky-note.dragging {
  cursor: grabbing;
  transform: rotate(0deg) scale(1.025);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.34);
  transition: none;
}

.sticky-empty {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
}

.last-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.last-login svg {
  width: 14px;
  height: 14px;
}

.login-log-panel {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.login-log-title {
  align-items: flex-start;
}

.login-log-title h3,
.login-log-title p {
  margin: 0;
}

.login-log-title p {
  margin-top: 5px;
}

.login-log-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.login-log-row {
  display: grid;
  grid-template-columns: 36px minmax(180px, 1fr) minmax(128px, auto) minmax(160px, auto);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.login-log-row div {
  display: grid;
  gap: 3px;
}

.login-log-row small,
.login-log-row time {
  color: var(--muted);
}

.login-log-row code {
  color: rgba(255, 255, 255, 0.82);
}

.login-log-status {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
}

.login-log-status.success {
  color: #8cf0c1;
  background: rgba(32, 185, 123, 0.18);
}

.login-log-status.failed {
  color: #ff9aab;
  background: rgba(255, 83, 112, 0.18);
}

.login-log-status svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 760px) {
  .login-log-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .login-log-row code,
  .login-log-row time {
    grid-column: 2;
  }

  .sticky-board {
    min-height: 860px;
  }
}

.sticky-note.yellow {
  background: #fff0a8;
}

.sticky-note.blue {
  background: #b9dcff;
}

.sticky-note.green {
  background: #c8f2c5;
}

.sticky-note.pink {
  background: #ffc4d5;
}

.sticky-note.pinned {
  border-color: rgba(255, 93, 112, 0.74);
}

.pin-dot {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff5d70;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.sticky-note h3 {
  margin-bottom: 8px;
  color: #111827;
}

.sticky-note p {
  color: #263445;
  line-height: 1.4;
}

.sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.sticky-actions button {
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(17, 24, 39, 0.2);
  color: #111827;
  background: rgba(255, 255, 255, 0.46);
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.question-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.generated-widget {
  min-height: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.record-list {
  display: grid;
  gap: 10px;
}

.record-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.record-kpi {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.record-kpi strong,
.record-kpi span {
  display: block;
}

.record-kpi strong {
  font-size: 26px;
}

.record-kpi span {
  color: var(--muted);
  font-size: 12px;
}

.record-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.record-toolbar label {
  display: grid;
  gap: 6px;
}

.record-toolbar label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record-toolbar input,
.record-toolbar select {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.record-toolbar small {
  display: grid;
  min-height: 40px;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
}

.record-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.record-row strong,
.record-row small {
  display: block;
}

.record-row small {
  margin-top: 4px;
  color: var(--muted);
}

.record-attachments {
  color: rgba(220, 231, 255, 0.9) !important;
}

.record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.record-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.record-actions button:hover,
.record-actions button:focus-visible {
  border-color: rgba(138, 168, 255, 0.5);
  background: rgba(86, 105, 255, 0.2);
}

.empty-state {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.table-panel {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

th {
  color: var(--muted);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-actions button,
.table-panel button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.admin-actions .danger-action {
  border: 1px solid rgba(255, 93, 112, 0.28);
  background: rgba(255, 93, 112, 0.16);
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.switch input {
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.switch span::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  content: "";
  transition: transform 0.2s ease;
}

.switch input:checked + span {
  background: var(--success);
}

.switch input:checked + span::after {
  transform: translateX(24px);
}

.setting-row {
  margin: 14px 0;
}

.setting-checks {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
}

.setting-checks input {
  width: auto;
  min-height: auto;
}

.notification-drawer {
  position: fixed;
  top: 86px;
  right: 20px;
  z-index: 10;
  display: none;
  width: min(420px, calc(100vw - 40px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(12, 21, 38, 0.88);
}

.notification-drawer.open {
  display: block;
}

.settings-drawer {
  width: min(430px, calc(100vw - 40px));
}

.settings-stack {
  display: grid;
  gap: 12px;
}

.settings-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
}

.settings-card small,
.settings-card span {
  color: var(--muted);
}

.settings-card-head,
.settings-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-photo-settings {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.profile-photo-preview {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
}

.settings-avatar {
  width: 72px;
  height: 72px;
  font-size: 20px;
}

.profile-photo-actions {
  justify-content: flex-start;
  margin-top: 10px;
}

.photo-upload-button {
  position: relative;
  display: inline-grid;
  min-height: 38px;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(138, 168, 255, 0.36);
  border-radius: var(--radius);
  color: white;
  background: linear-gradient(135deg, rgba(86, 105, 255, 0.36), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.photo-upload-button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(135deg, rgba(105, 126, 255, 0.45), rgba(255, 255, 255, 0.11));
}

.photo-upload-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.settings-card-head button,
.settings-row-actions button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.settings-row-actions button.active {
  border-color: rgba(138, 168, 255, 0.68);
  background: rgba(86, 105, 255, 0.28);
}

.background-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.background-choice {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
}

.background-choice span {
  display: block;
  height: 74px;
  border-radius: var(--radius);
  background-size: cover !important;
  background-position: center !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.background-choice strong {
  font-size: 12px;
}

.background-choice.active {
  border-color: rgba(138, 168, 255, 0.82);
  background: rgba(86, 105, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(86, 105, 255, 0.13);
}

.background-controls {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.range-setting,
.toggle-setting {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.range-setting > span,
.toggle-setting > span {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.range-setting strong,
.toggle-setting strong {
  display: block;
  color: white;
  font-size: 13px;
}

.range-setting small,
.toggle-setting small {
  font-size: 12px;
}

.range-setting input[type="range"] {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(86, 105, 255, 0.95), rgba(255, 255, 255, 0.2));
  accent-color: var(--primary-2);
}

.toggle-setting {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.toggle-setting > span {
  display: block;
}

.toggle-setting input {
  position: relative;
  width: 48px;
  height: 28px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.toggle-setting input::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  content: "";
  transition: transform 0.18s ease;
}

.toggle-setting input:checked {
  border-color: rgba(138, 168, 255, 0.72);
  background: linear-gradient(135deg, rgba(86, 105, 255, 0.92), rgba(155, 108, 255, 0.8));
}

.toggle-setting input:checked::after {
  transform: translateX(20px);
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.notification-item strong,
.notification-item small {
  display: block;
  margin-top: 7px;
}

.notification-item small {
  color: var(--muted);
}

.action-feedback-layer {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 70;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.action-feedback {
  --feedback-color: rgba(138, 168, 255, 0.9);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-width: min(340px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05)),
    rgba(14, 24, 44, 0.68);
  box-shadow: 0 18px 44px rgba(3, 10, 22, 0.26);
  backdrop-filter: blur(26px) saturate(1.2);
  animation: feedbackEnter 1s ease both;
}

.action-feedback-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(138, 168, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-feedback-icon::before {
  position: absolute;
  inset: -35%;
  background: conic-gradient(from 90deg, transparent, rgba(255, 255, 255, 0.65), transparent 44%);
  content: "";
  animation: feedbackSpin 1s ease both;
}

.action-feedback-icon i {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  color: white;
}

.action-feedback strong {
  display: block;
  margin-bottom: 2px;
  font-size: 13px;
}

.action-feedback small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.action-feedback.save { --feedback-color: rgba(68, 209, 141, 0.92); }
.action-feedback.refresh { --feedback-color: rgba(138, 168, 255, 0.94); }
.action-feedback.delete { --feedback-color: rgba(255, 93, 112, 0.9); }
.action-feedback.suspend { --feedback-color: rgba(255, 173, 56, 0.92); }
.action-feedback.restore { --feedback-color: rgba(108, 141, 255, 0.94); }
.action-feedback.edit { --feedback-color: rgba(155, 108, 255, 0.9); }

.action-feedback.save .action-feedback-icon { background: rgba(68, 209, 141, 0.26); }
.action-feedback.refresh .action-feedback-icon { background: rgba(138, 168, 255, 0.26); }
.action-feedback.delete .action-feedback-icon { background: rgba(255, 93, 112, 0.25); animation: feedbackShrink 1s ease both; }
.action-feedback.suspend .action-feedback-icon { background: rgba(255, 173, 56, 0.25); animation: feedbackPause 1s ease both; }
.action-feedback.restore .action-feedback-icon { background: rgba(108, 141, 255, 0.27); animation: feedbackPulse 1s ease both; }
.action-feedback.edit .action-feedback-icon { background: rgba(155, 108, 255, 0.25); }

@keyframes feedbackEnter {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  18% { opacity: 1; transform: translateY(0) scale(1); }
  78% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

@keyframes feedbackSpin {
  0% { transform: rotate(0deg); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: rotate(250deg); opacity: 0; }
}

@keyframes feedbackShrink {
  0%, 60% { transform: scale(1); }
  100% { transform: scale(0.82); }
}

@keyframes feedbackPause {
  0%, 100% { transform: translateX(0); }
  28% { transform: translateX(-2px); }
  56% { transform: translateX(2px); }
}

@keyframes feedbackPulse {
  0% { box-shadow: 0 0 0 0 rgba(108, 141, 255, 0.34); }
  55% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.mobile-bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 8;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(9, 17, 32, 0.9);
  backdrop-filter: blur(24px);
}

.bottom-item {
  min-height: 44px;
  padding: 8px;
}

.bottom-item.add {
  color: white;
  background: var(--primary);
  font-size: 22px;
  font-weight: 900;
}

@media (max-width: 1320px) {
  .support-inbox-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .widget-card,
  .widget-card[style] {
    grid-column: span 4 !important;
  }

  .widget-card.large,
  .widget-card.large[style] {
    grid-column: span 6 !important;
  }

  .calendar-pro-layout {
    grid-template-columns: minmax(560px, 1fr) 280px;
  }

  .task-details {
    grid-column: 1 / -1;
  }

  .admin-grid,
  .profile-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-command-grid,
  .admin-permission-fieldset {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .login-screen {
    grid-template-columns: 1fr;
    padding-top: 110px;
  }

  .login-stats {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 116px;
    transform: translateX(-108%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    padding: 0 14px 92px;
  }

  .topbar {
    margin: 0 -14px 26px;
    padding: 10px 14px;
  }

  .mobile-menu,
  .mobile-bottom-nav {
    display: grid;
  }

  .workspace-select {
    min-width: 0;
    max-width: min(360px, calc(100vw - 210px));
  }

  .workspace-select small {
    max-width: 240px;
  }

  .workspace-dropdown {
    width: min(520px, calc(100vw - 28px));
  }

  .admin-user-create-form {
    grid-template-columns: 1fr;
  }

  .topbar-actions .icon-button:nth-child(1),
  .topbar-actions .icon-button:nth-child(4) {
    display: none;
  }

  .topbar-logout {
    display: none;
  }

  .page-head,
  .calendar-head {
    display: grid;
    align-items: start;
  }

  .widget-search-panel {
    display: grid;
    align-items: stretch;
  }

  .smart-wall-hero,
  .smart-action-grid,
  .profile-strip:not(.workspace-dropdown),
  .static-page-admin-layout,
  .static-editor-toolbar,
  .static-editor-grid,
  .company-permission-grid {
    grid-template-columns: 1fr;
  }

  .smart-metrics {
    grid-template-columns: 1fr;
  }

  .smart-greeting {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .wall-mascot {
    width: 74px;
    height: 74px;
  }

  .mascot-orbit {
    border-radius: 22px;
  }

  .mascot-body {
    width: 50px;
    height: 45px;
    border-radius: 20px 20px 22px 22px;
  }

  .mascot-ear {
    width: 16px;
    height: 17px;
  }

  .mascot-eye {
    top: 17px;
  }

  .mascot-eye.left {
    left: 15px;
  }

  .mascot-eye.right {
    right: 15px;
  }

  .mascot-smile {
    left: 19px;
    top: 29px;
  }

  .calendar-toolbar {
    justify-content: start;
  }

  .calendar-pro-layout {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .week-calendar {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
  }

  .week-grid {
    min-width: 760px;
  }

  .widget-grid {
    grid-template-columns: 1fr;
  }

  .widget-card,
  .widget-card.large {
    grid-column: 1 / -1 !important;
  }

  .widget-top {
    padding-right: 28px;
  }

  .widget-risk-badge {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .widget-card.drop-before::before,
  .widget-card.drop-after::before {
    right: 10px;
    left: 10px;
    width: auto;
    height: 4px;
  }

  .widget-card.drop-before::before {
    top: -9px;
    bottom: auto;
  }

  .widget-card.drop-after::before {
    top: auto;
    bottom: -9px;
  }

  .builder-layout,
  .module-detail-grid,
  .notes-layout,
  .support-layout,
  .support-admin-layout,
  .admin-grid,
  .database-layout,
  .documents-layout,
  .profile-cards {
    grid-template-columns: 1fr;
  }

  .support-ticket-list-panel,
  .support-ticket-list {
    max-height: none;
  }

  .support-ticket-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-wizard-form,
  .sharing-form,
  .company-user-form,
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .record-toolbar,
  .record-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .support-inbox-stats,
  .support-ticket-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-inbox-toolbar,
  .support-ticket-controls {
    grid-template-columns: 1fr;
  }

  .support-ticket-list {
    grid-template-columns: 1fr;
  }

  .support-ticket-detail-head {
    display: grid;
  }

  .support-ticket-head-actions {
    justify-content: flex-start;
  }

  body {
    background-attachment: scroll;
  }

  .login-screen {
    align-items: start;
    min-height: 100svh;
    padding: 104px 16px 28px;
    gap: 22px;
  }

  .login-copy {
    max-width: 100%;
    padding-top: 8px;
  }

  .login-copy .eyebrow {
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.06em;
  }

  .login-copy h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.12;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .login-copy p {
    max-width: 34rem;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.45;
  }

  .login-brand {
    top: 16px;
    right: 16px;
    left: 16px;
    max-width: calc(100% - 96px);
  }

  .brand-logo-full {
    width: min(210px, 100%);
  }

  .version-badge {
    margin-bottom: 3px;
    padding: 3px 7px;
    font-size: 10px;
  }

  .login-top-actions {
    top: 18px;
    right: 14px;
  }

  .language-select {
    min-height: 34px;
    padding: 0 8px;
  }

  .language-select span {
    display: none;
  }

  .login-panel {
    padding: 16px;
  }

  .widget-card,
  .widget-card.large {
    grid-column: 1 / -1;
  }

  .workspace-dropdown {
    right: auto;
    left: 0;
  }

  .wall-choice-list {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero-search-form {
    grid-template-columns: 22px minmax(0, 1fr) 42px;
    min-height: 56px;
  }

  .hero-voice-row,
  .hero-voice-row label,
  .hero-voice-row button {
    width: 100%;
  }

  .hero-voice-row label {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .hero-search-results {
    grid-template-columns: 1fr;
  }

  .record-row {
    display: grid;
  }

  .record-actions {
    justify-content: start;
  }

  .document-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .document-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .avatar-button {
    display: none;
  }
}

@media (max-width: 380px) {
  .login-screen {
    padding-inline: 12px;
  }

  .login-copy h1 {
    font-size: 30px;
    line-height: 1.14;
  }

  .auth-link-row,
  .login-actions,
  .form-actions {
    grid-template-columns: 1fr;
  }
}

body .login-screen .login-copy h1 {
  color: #fff !important;
  opacity: 1 !important;
  font-weight: 950;
  line-height: 1.08;
  -webkit-text-fill-color: #fff !important;
  text-shadow:
    0 3px 8px rgba(0, 4, 14, 0.96),
    0 12px 32px rgba(0, 4, 14, 0.82),
    0 26px 62px rgba(0, 4, 14, 0.68);
}

body .login-screen .login-copy {
  isolation: isolate;
}

@media (max-width: 620px) {
  body .login-screen .login-copy h1 {
    margin-bottom: 14px;
    font-size: 34px;
    line-height: 1.14;
  }
}

@media (max-width: 380px) {
  body .login-screen .login-copy h1 {
    font-size: 30px;
    line-height: 1.16;
  }
}
