:root {
  --cc-bg-0: #111d3d;
  --cc-bg-1: #8b2344;
  --cc-bg-2: #060913;
  --cc-primary-0: #13214a;
  --cc-primary-1: #2b255c;
  --cc-primary-2: #642240;
  --cc-text: #f8f7ff;
  --cc-text-muted: rgba(248, 247, 255, 0.7);
  --cc-text-soft: rgba(248, 247, 255, 0.56);
  --cc-glass-10: rgba(255, 255, 255, 0.08);
  --cc-glass-15: rgba(255, 255, 255, 0.14);
  --cc-border-15: rgba(255, 255, 255, 0.18);
  --cc-accent: #ff5a8b;
  --cc-cyan: #8bd8ff;
  --cc-select-option-bg: #f8f7ff;
  --cc-select-option-text: #241a31;
  --cc-select-option-muted: #7b7286;
  --cc-radius-sm: 10px;
  --cc-radius-md: 14px;
  --cc-radius-lg: 18px;
  --cc-shadow: 0 24px 60px rgba(7, 5, 18, 0.45);
  --cc-glow: 0 0 22px rgba(130, 90, 255, 0.18);
  --cc-page-max: 1640px;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(ellipse at top left, rgba(191, 41, 82, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(26, 44, 86, 0.35) 0%, transparent 60%),
    linear-gradient(140deg, rgba(5, 7, 22, 0.65), rgba(5, 7, 22, 0.4)),
    radial-gradient(farthest-corner ellipse at 6% 6%, #1a2c56 0%, #bf2952 52%, #0a0f24 100%);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: transparent;
  color: var(--cc-text);
}

body[data-clickcase-app="clickcase"] {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: none;
  padding: 16px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cc-cyan);
  outline-offset: 3px;
}

.cc-auth-stage {
  width: min(94vw, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 64px) 0;
  display: grid;
  place-items: center;
}

.cc-auth-card,
.cc-card,
.cc-modal-panel,
.cc-mobile-nav {
  background: var(--cc-glass-10);
  border: 1px solid var(--cc-border-15);
  box-shadow: var(--cc-shadow), var(--cc-glow);
  backdrop-filter: blur(18px);
}

.cc-auth-card {
  width: min(100%, 560px);
  border-radius: var(--cc-radius-lg);
  padding: clamp(22px, 4vw, 40px);
}

.cc-auth-card--login {
  width: 100%;
  min-height: min(74vh, 680px);
  padding: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1fr);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 90, 139, 0.13), transparent 34%),
    linear-gradient(235deg, rgba(96, 120, 255, 0.16), transparent 36%),
    rgba(13, 15, 34, 0.72);
}

.cc-auth-visual {
  min-width: 0;
  padding: clamp(28px, 4vw, 52px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: clamp(26px, 4vw, 44px);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(150deg, rgba(255, 90, 139, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.02);
}

.cc-auth-panel {
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  display: grid;
  align-content: center;
  gap: 22px;
}

.cc-auth-panel > .cc-kicker,
.cc-auth-panel > .cc-muted,
.cc-auth-return {
  margin: 0;
}

.cc-auth-panel--action {
  gap: 18px;
}

.cc-auth-logo {
  width: min(220px, 64vw);
  height: auto;
  margin-bottom: 28px;
}

.cc-auth-card--login .cc-auth-logo {
  width: min(218px, 58%);
  margin: 0;
}

.cc-floc-frame {
  display: grid;
  place-items: center;
  min-height: 0;
}

.cc-auth-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.cc-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.cc-field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cc-field span,
.cc-field label,
.cc-kicker,
.cc-muted,
.cc-meta {
  color: var(--cc-text-muted);
}

.cc-field input,
.cc-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-md);
  padding: 0 14px;
  color: var(--cc-text);
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-size: 1rem;
}

.cc-field input::placeholder,
.cc-workspace-label input::placeholder {
  color: rgba(248, 247, 255, 0.4);
}

.cc-input-wrap {
  position: relative;
  display: block;
}

.cc-input-wrap input {
  padding-right: 48px;
}

.cc-input-wrap svg,
.cc-login-mode-option svg,
.cc-workspace-submit svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cc-input-wrap svg {
  position: absolute;
  right: 16px;
  top: 50%;
  color: rgba(248, 247, 255, 0.56);
  transform: translateY(-50%);
  pointer-events: none;
}

.cc-field select {
  appearance: none;
  padding-right: 48px;
  background:
    linear-gradient(45deg, transparent 50%, var(--cc-cyan) 50%),
    linear-gradient(135deg, var(--cc-cyan) 50%, transparent 50%),
    rgba(255, 255, 255, 0.07);
  background-position:
    calc(100% - 23px) calc(50% + 2px),
    calc(100% - 17px) calc(50% + 2px),
    0 0;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, auto;
  cursor: pointer;
}

.cc-field select option,
.cc-field select optgroup {
  color: var(--cc-select-option-text);
  background: var(--cc-select-option-bg);
}

.cc-field select option:disabled {
  color: var(--cc-select-option-muted);
}

.cc-field select option:checked {
  color: var(--cc-select-option-text);
  background: var(--cc-cyan);
}

.cc-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--cc-radius-md);
  padding: 0 16px;
  color: var(--cc-text);
  background:
    linear-gradient(135deg, rgba(139, 216, 255, 0.14), transparent 42%),
    linear-gradient(135deg, var(--cc-primary-0), var(--cc-primary-1) 55%, var(--cc-primary-2));
  font-weight: 700;
  font-size: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 30px rgba(6, 9, 19, 0.34);
  cursor: pointer;
}

.cc-btn.secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(6, 9, 19, 0.18);
}

.cc-btn.compact {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.cc-btn.row-action {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 800;
}

.cc-btn.secondary:hover,
.cc-btn.row-action:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 42%),
    rgba(255, 255, 255, 0.11);
}

.cc-btn.danger,
.cc-btn.destructive {
  background:
    linear-gradient(135deg, rgba(255, 184, 204, 0.16), transparent 40%),
    linear-gradient(135deg, #621f34, #331329);
}

.cc-alert {
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-sm);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.09);
  font-weight: 700;
}

.cc-alert.success {
  border-color: rgba(139, 216, 255, 0.4);
  color: var(--cc-cyan);
}

.cc-alert.error {
  border-color: rgba(255, 90, 139, 0.5);
  color: #ffb8cc;
}

.cc-floc {
  width: min(330px, 74%);
  height: auto;
  justify-self: center;
  filter: drop-shadow(0 28px 52px rgba(0, 0, 0, 0.5));
}

.cc-login-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.045);
}

.cc-login-mode-option {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  color: var(--cc-text-muted);
  font-weight: 750;
  text-align: center;
}

.cc-login-mode-option.active {
  color: var(--cc-text);
  background:
    linear-gradient(135deg, rgba(139, 216, 255, 0.13), transparent 44%),
    linear-gradient(135deg, var(--cc-primary-0), var(--cc-primary-1) 54%, var(--cc-primary-2));
  box-shadow: 0 12px 28px rgba(6, 9, 19, 0.24);
}

.cc-workspace-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  min-height: 64px;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.cc-workspace-label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(86px, 0.38fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 0 0 18px;
}

.cc-workspace-label span {
  color: var(--cc-text-muted);
  font-weight: 750;
}

.cc-workspace-label input {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  border: 0;
  border-left: 1px solid var(--cc-border-15);
  padding: 0 16px;
  color: var(--cc-text);
  background: transparent;
  font: inherit;
}

.cc-workspace-submit {
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid var(--cc-border-15);
  color: var(--cc-text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.cc-login-help {
  margin: 0;
  color: var(--cc-text-soft);
  font-size: 0.96rem;
  line-height: 1.5;
}

.cc-login-help a {
  color: #b9a7ff;
  font-weight: 700;
}

.cc-inline-link {
  color: #c9c0ff;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cc-inline-link:hover,
.cc-login-help a:hover {
  color: #ffffff;
}

.cc-app-shell {
  --cc-rail-pad: 10px;
  --cc-rail-track: 46px;
  --cc-pane-left: 56px;
  --cc-pane-inset: 0px;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.cc-app-rail {
  width: var(--cc-rail-track);
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 0;
  padding: 0;
  display: block;
  z-index: 3;
}

.cc-app-logo {
  width: 42px;
  height: 42px;
  position: absolute;
  top: var(--cc-rail-pad);
  left: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(139, 216, 255, 0.12), rgba(255, 90, 139, 0.1)),
    rgba(255, 255, 255, 0.07);
  transform: translateX(-50%);
  z-index: 2;
}

.cc-app-logo img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.cc-app-nav {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
}

[data-clickcase-shell-scope="hq"] .cc-app-nav-link:last-child {
  position: absolute;
  bottom: var(--cc-rail-pad);
}

.cc-app-nav-link {
  width: 40px;
  height: 40px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--cc-text-muted);
  background: rgba(255, 255, 255, 0.04);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.cc-app-nav-link:hover,
.cc-app-nav-link:focus-visible {
  color: var(--cc-text);
  border-color: rgba(139, 216, 255, 0.34);
  background:
    linear-gradient(135deg, rgba(139, 216, 255, 0.14), transparent 48%),
    rgba(255, 255, 255, 0.11);
}

.cc-app-nav-link[aria-current="page"] {
  color: var(--cc-text);
  border-color: rgba(139, 216, 255, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 38%),
    linear-gradient(135deg, rgba(20, 34, 78, 0.82), rgba(45, 38, 96, 0.78) 54%, rgba(102, 35, 64, 0.72));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 22px rgba(6, 9, 19, 0.24),
    0 0 0 1px rgba(139, 216, 255, 0.08);
}

.cc-app-nav-back {
  margin-bottom: 14px;
  color: var(--cc-text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.cc-app-nav-back::after {
  content: "";
  width: 28px;
  height: 1px;
  position: absolute;
  left: 50%;
  bottom: -13px;
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(-50%);
}

.cc-app-nav-label {
  min-height: 30px;
  min-width: max-content;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-sm);
  padding: 0 10px;
  color: var(--cc-text);
  background: rgba(17, 18, 38, 0.94);
  box-shadow: 0 12px 28px rgba(6, 9, 19, 0.3);
  font-size: 0.86rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  white-space: nowrap;
}

.cc-app-nav-link:hover .cc-app-nav-label,
.cc-app-nav-link:focus-visible .cc-app-nav-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.cc-app-nav-icon {
  width: 22px;
  height: 22px;
  display: block;
  background-color: currentColor;
  -webkit-mask: var(--cc-icon-url) center / contain no-repeat;
  mask: var(--cc-icon-url) center / contain no-repeat;
}

.cc-icon-speedometer {
  --cc-icon-url: url("/static/icons/phosphor/regular/speedometer.svg");
}

.cc-icon-arrow-left {
  --cc-icon-url: url("/static/icons/phosphor/regular/arrow-left.svg");
}

.cc-icon-users-four {
  --cc-icon-url: url("/static/icons/phosphor/regular/users-four.svg");
}

.cc-icon-hospital {
  --cc-icon-url: url("/static/icons/phosphor/regular/hospital.svg");
}

.cc-icon-chart-bar {
  --cc-icon-url: url("/static/icons/phosphor/regular/chart-bar.svg");
}

.cc-icon-headset {
  --cc-icon-url: url("/static/icons/phosphor/regular/headset.svg");
}

.cc-icon-gear-six {
  --cc-icon-url: url("/static/icons/phosphor/regular/gear-six.svg");
}

.cc-app-main {
  position: absolute;
  inset: var(--cc-pane-inset) var(--cc-pane-inset) var(--cc-pane-inset) var(--cc-pane-left);
  min-width: 0;
  min-height: 0;
  display: grid;
}

.cc-pane {
  min-width: 0;
  min-height: 0;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.cc-pane-scroll {
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: clamp(18px, 3vw, 34px);
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
  scroll-padding-top: 18px;
}

.cc-pane-header {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.cc-pane-heading {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.cc-pane-heading .cc-kicker,
.cc-pane-heading h1,
.cc-pane-description {
  margin: 0;
}

.cc-pane-heading h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.cc-pane-description {
  max-width: 760px;
  color: var(--cc-text-muted);
  line-height: 1.45;
}

.cc-pane-actions {
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cc-pane-account {
  max-width: min(560px, 50vw);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 8px;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.055);
}

.cc-pane-account-identity {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: right;
}

.cc-pane-account-identity .cc-kicker,
.cc-pane-account-identity .cc-muted {
  margin: 0;
}

.cc-pane-account-identity .cc-kicker {
  font-size: 0.74rem;
}

.cc-pane-account-identity strong,
.cc-pane-account-identity .cc-muted {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cc-pane-account-identity strong {
  font-size: 0.96rem;
}

.cc-pane-account-identity .cc-muted {
  font-size: 0.86rem;
}

.cc-pane-account .cc-account-session-actions {
  flex: 0 0 auto;
}

.cc-mobile-nav {
  display: none;
}

.cc-card {
  border-radius: var(--cc-radius-lg);
  padding: clamp(16px, 2.2vw, 28px);
  min-width: 0;
}

.cc-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cc-text);
  overflow: visible;
}

.cc-modal::backdrop {
  background: rgba(5, 7, 22, 0.78);
  backdrop-filter: blur(10px);
}

.cc-modal-panel {
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: var(--cc-radius-lg);
  padding: clamp(16px, 2.2vw, 28px);
  min-width: 0;
}

.cc-modal-panel .cc-section-head {
  align-items: center;
  margin-bottom: 18px;
}

.cc-modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cc-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.cc-modal-close:hover,
.cc-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.cc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.cc-section-head h1,
.cc-section-head h2,
.cc-auth-card h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.cc-account-session-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.cc-account-session-actions form {
  margin: 0;
}

.cc-account-panel {
  padding: 0;
  overflow: clip;
}

.cc-account-disclosure {
  min-width: 0;
}

.cc-account-disclosure summary {
  list-style: none;
}

.cc-account-disclosure summary::-webkit-details-marker {
  display: none;
}

.cc-account-summary {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  align-items: start;
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2.2vw, 28px);
  cursor: pointer;
}

.cc-account-disclosure[open] .cc-account-summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-account-summary:hover,
.cc-account-summary:focus-visible {
  background: rgba(255, 255, 255, 0.05);
}

.cc-account-summary-main {
  min-width: 0;
  display: grid;
  grid-row: 1 / span 2;
  gap: 5px;
}

.cc-account-summary-main .cc-kicker,
.cc-account-summary-main h2,
.cc-account-summary-copy {
  margin: 0;
}

.cc-account-summary-copy {
  color: var(--cc-text-muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cc-account-summary-badges {
  min-width: min(360px, 46%);
  display: inline-flex;
  flex-wrap: wrap;
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cc-account-summary-badges--wide {
  min-width: min(520px, 54%);
}

.cc-summary-pill,
.cc-summary-action {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cc-border-15);
  white-space: nowrap;
}

.cc-summary-pill {
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
  color: var(--cc-text-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.cc-summary-pill.disabled {
  color: var(--cc-text-soft);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
}

.cc-summary-action {
  min-height: 36px;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  border-radius: var(--cc-radius-md);
  padding: 0 14px;
  border-color: rgba(139, 216, 255, 0.28);
  color: var(--cc-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 38%),
    linear-gradient(135deg, rgba(20, 34, 78, 0.78), rgba(45, 38, 96, 0.74) 54%, rgba(102, 35, 64, 0.68));
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(6, 9, 19, 0.18);
}

.cc-when-open,
.cc-account-disclosure[open] .cc-when-closed {
  display: none;
}

.cc-account-disclosure[open] .cc-when-open {
  display: inline;
}

.cc-account-edit {
  padding: clamp(16px, 2.2vw, 28px);
}

.cc-account-edit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cc-account-edit-head h3,
.cc-account-edit-head p {
  margin: 0;
}

.cc-account-edit-head h3 {
  font-size: 0.98rem;
}

.cc-account-edit-head p {
  margin-top: 4px;
}

.cc-auth-card--login h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.cc-card h2 {
  margin: 0 0 14px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.cc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cc-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.cc-practice-form,
.cc-practice-detail-grid {
  display: grid;
  gap: 18px;
}

.cc-practice-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cc-practice-section {
  min-width: 0;
}

.cc-practice-section small {
  color: var(--cc-text-soft);
  font-weight: 500;
}

.cc-practice-summary {
  margin-bottom: 18px;
}

.cc-form-grid,
.cc-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

fieldset.cc-form-grid {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cc-form-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 14px;
  padding: 14px;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.cc-subsection {
  display: grid;
  gap: 12px;
}

.cc-subsection h3 {
  margin: 0;
  font-size: 0.98rem;
}

.cc-check {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-sm);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--cc-text);
  font-weight: 700;
}

.cc-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--cc-accent);
}

.cc-check-field {
  align-self: end;
}

.cc-actions,
.cc-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cc-inline-actions form {
  margin: 0;
}

.cc-user-detail-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-top: 18px;
}

.cc-user-save-action,
.cc-user-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cc-user-save-action {
  flex: 0 0 auto;
}

.cc-user-account-actions {
  flex: 1 1 360px;
  min-width: min(100%, 320px);
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.cc-user-account-actions form {
  margin: 0;
}

.cc-metric {
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-md);
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.cc-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.9rem;
  letter-spacing: 0;
}

.cc-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--cc-border-15);
  border-radius: var(--cc-radius-md);
}

.cc-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.cc-table th,
.cc-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: top;
}

.cc-table th {
  color: var(--cc-text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cc-table .cc-table-actions {
  text-align: right;
  white-space: nowrap;
}

.cc-table tr:last-child td {
  border-bottom: 0;
}

.cc-list {
  display: grid;
  gap: 10px;
}

.cc-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cc-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  border: 1px solid var(--cc-border-15);
  padding: 0 10px;
  color: var(--cc-text);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

.cc-pill.admin {
  border-color: rgba(139, 216, 255, 0.5);
  color: var(--cc-cyan);
}

.cc-pill.disabled {
  border-color: rgba(255, 90, 139, 0.5);
  color: #ff9fbd;
}

@media (max-width: 900px) {
  .cc-app-shell {
    --cc-rail-pad: 8px;
    --cc-rail-track: 44px;
    --cc-pane-left: 52px;
    --cc-pane-inset: 0px;
  }

  .cc-app-rail {
    width: var(--cc-rail-track);
  }

  .cc-app-logo,
  .cc-app-nav-link {
    width: 40px;
    height: 40px;
  }

  .cc-auth-stage {
    width: min(92vw, 640px);
  }

  .cc-auth-card--login {
    grid-template-columns: 1fr;
  }

  .cc-auth-visual {
    min-height: 260px;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
    align-items: center;
    justify-items: center;
    text-align: center;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .cc-floc {
    width: min(188px, 38vw);
  }

  .cc-grid {
    grid-template-columns: 1fr;
  }

  .cc-form-grid,
  .cc-practice-detail-grid,
  .cc-toggle-grid {
    grid-template-columns: 1fr;
  }

  .cc-pane-header {
    flex-direction: column;
    align-items: stretch;
  }

  .cc-pane-account {
    max-width: none;
    width: 100%;
    justify-content: space-between;
  }

  .cc-pane-account-identity {
    text-align: left;
  }

  .cc-account-edit-head {
    align-items: stretch;
  }

  .cc-account-summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cc-account-summary-main {
    grid-row: 1;
  }

  .cc-account-summary-badges,
  .cc-account-summary-badges--wide {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    min-width: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .cc-account-edit-head {
    flex-direction: column;
  }

  .cc-pane-actions,
  .cc-account-session-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  body[data-clickcase-app="clickcase"] {
    padding: 0;
  }

  .cc-app-shell {
    width: 100vw;
    padding: 0;
  }

  .cc-app-rail {
    display: none;
  }

  .cc-app-main {
    inset: max(10px, env(safe-area-inset-top)) 10px 0;
  }

  .cc-pane {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0;
    border-radius: var(--cc-radius-md) var(--cc-radius-md) 0 0;
  }

  .cc-pane-scroll {
    padding: 18px 14px calc(92px + env(safe-area-inset-bottom));
  }

  .cc-pane-heading h1 {
    font-size: 2rem;
  }

  .cc-mobile-nav {
    width: 100vw;
    min-height: calc(66px + env(safe-area-inset-bottom));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    transform: none;
  }

  .cc-mobile-nav-link {
    min-width: 0;
    min-height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 14px;
    color: var(--cc-text-muted);
  }

  .cc-mobile-nav-label {
    display: none;
  }

  .cc-mobile-nav-link[aria-current="page"] {
    color: var(--cc-text);
    border-color: rgba(139, 216, 255, 0.54);
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 38%),
      linear-gradient(135deg, rgba(20, 34, 78, 0.82), rgba(45, 38, 96, 0.78) 54%, rgba(102, 35, 64, 0.72));
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.16),
      0 10px 22px rgba(6, 9, 19, 0.24),
      0 0 0 1px rgba(139, 216, 255, 0.08);
  }

  .cc-mobile-nav-link .cc-app-nav-icon {
    width: 22px;
    height: 22px;
  }

  .cc-auth-stage {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .cc-auth-card {
    border-radius: var(--cc-radius-md);
  }

  .cc-auth-card--login {
    min-height: 0;
  }

  .cc-auth-visual {
    min-height: 188px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 20px 20px;
  }

  .cc-auth-card--login .cc-auth-logo {
    width: min(188px, 66vw);
  }

  .cc-floc {
    width: min(128px, 36vw);
  }

  .cc-auth-panel {
    gap: 14px;
    padding: 22px 22px 24px;
  }

  .cc-auth-card--login h1 {
    font-size: 2.15rem;
  }

  .cc-login-mode {
    grid-template-columns: 1fr;
  }

  .cc-login-mode-option {
    min-height: 42px;
  }

  .cc-field {
    gap: 5px;
  }

  .cc-field input,
  .cc-field select {
    min-height: 48px;
  }

  .cc-btn {
    min-height: 44px;
  }

  .cc-workspace-form {
    grid-template-columns: minmax(0, 1fr) 50px;
    min-height: 62px;
  }

  .cc-workspace-label {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 10px 0 10px 14px;
  }

  .cc-workspace-label input {
    min-height: 30px;
    border-left: 0;
    padding: 0;
  }

  .cc-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .cc-user-detail-footer {
    align-items: stretch;
  }

  .cc-user-save-action,
  .cc-user-account-actions {
    width: 100%;
  }

  .cc-user-account-actions {
    min-width: 0;
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }
}

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