/* Flowdesk — premium responsive workspace */

:root {
  color-scheme: light;
  --ink-950: #080b17;
  --ink-900: #0e1324;
  --ink-850: #13192c;
  --ink-800: #1b2238;
  --ink-700: #30394f;
  --ink-600: #4a556d;
  --ink-500: #667085;
  --ink-400: #8992a6;
  --ink-300: #aeb5c4;
  --pearl-50: #fdfdff;
  --pearl-100: #f8f8fc;
  --pearl-150: #f4f3f9;
  --pearl-200: #ecebf3;
  --pearl-300: #dfdde9;
  --white: #fff;
  --violet-700: #5c49df;
  --violet-600: #6d5ce8;
  --violet-500: #7c69f2;
  --violet-400: #9a89ff;
  --violet-100: #eeeafd;
  --violet-50: #f7f5ff;
  --cyan-600: #0ca5c2;
  --cyan-500: #19bed7;
  --cyan-100: #dff8fb;
  --mint-600: #1ca67c;
  --mint-500: #35c99a;
  --mint-100: #dcf8ee;
  --amber-600: #bb7625;
  --amber-500: #eba847;
  --amber-100: #fff1d7;
  --rose-600: #cf4e6a;
  --rose-500: #ec6f8a;
  --rose-100: #ffe7ec;
  --blue-500: #4d8bf7;
  --blue-100: #e7f0ff;
  --sidebar-width: 276px;
  --topbar-height: 90px;
  --radius-xs: 9px;
  --radius-sm: 13px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-xs: 0 1px 2px rgba(15, 18, 34, .04), 0 3px 10px rgba(15, 18, 34, .03);
  --shadow-sm: 0 8px 28px rgba(18, 24, 45, .07), 0 2px 7px rgba(18, 24, 45, .04);
  --shadow-md: 0 20px 55px rgba(22, 25, 46, .11), 0 4px 15px rgba(22, 25, 46, .05);
  --shadow-lg: 0 30px 100px rgba(6, 9, 24, .2), 0 8px 25px rgba(6, 9, 24, .1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --focus-ring: 0 0 0 3px rgba(124, 105, 242, .25);
}

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

html {
  min-width: 320px;
  background: var(--pearl-150);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink-900);
  background: var(--pearl-150);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
select:not(:disabled) {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .58;
}

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

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
.metric-value,
.stat-card strong {
  font-family: "Manrope", "DM Sans", sans-serif;
  letter-spacing: -.035em;
}

::selection {
  color: var(--white);
  background: var(--violet-600);
}

:focus-visible {
  outline: 2px solid var(--violet-500);
  outline-offset: 3px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Shared atoms */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.045em;
}

.brand-light {
  color: var(--white);
}

.brand-mark {
  position: relative;
  display: inline-grid;
  grid-template-columns: 10px 10px;
  align-items: end;
  gap: 3px;
  width: 25px;
  height: 25px;
  padding: 4px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--violet-400), var(--violet-600) 62%, var(--cyan-500));
  box-shadow: 0 7px 18px rgba(105, 85, 231, .38), inset 0 1px 0 rgba(255, 255, 255, .4);
}

.brand-mark::after {
  position: absolute;
  inset: -9px auto auto -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .26);
  content: "";
}

.brand-mark i {
  display: block;
  width: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .96);
}

.brand-mark i:first-child {
  height: 8px;
}

.brand-mark i:last-child {
  height: 15px;
}

.button,
.icon-button,
.filter-chip,
.segmented-control button,
.password-toggle,
.demo-account,
.nav-item,
.search-trigger {
  transition: transform .2s var(--ease), color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  transform: translateY(0) scale(.985);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--violet-600), #725fe9 54%, #5c4bd6);
  box-shadow: 0 9px 22px rgba(91, 72, 218, .23), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 13px 28px rgba(91, 72, 218, .3), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.button-secondary,
.button-ghost {
  color: var(--ink-700);
  border-color: var(--pearl-300);
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow-xs);
}

.button-secondary:hover:not(:disabled),
.button-ghost:hover:not(:disabled) {
  color: var(--violet-700);
  border-color: #cbc5f5;
  background: var(--violet-50);
}

.button-danger {
  color: var(--rose-600);
  border-color: #f3c7d1;
  background: #fff6f8;
}

.button-wide {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--pearl-300);
  border-radius: 12px;
  color: var(--ink-600);
  background: rgba(255, 255, 255, .78);
}

.icon-button:hover:not(:disabled) {
  color: var(--violet-700);
  border-color: #cbc4f3;
  background: var(--violet-50);
  transform: translateY(-1px);
}

.icon-button.subtle {
  color: rgba(255, 255, 255, .55);
  border-color: transparent;
  background: transparent;
}

.icon-button.subtle:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .07);
}

.avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, .88);
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(145deg, #58647a, #343c50);
  box-shadow: 0 3px 9px rgba(15, 20, 40, .12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.avatar.violet,
.demo-icon.violet,
.entity-icon.violet {
  background: linear-gradient(145deg, #9d8cff, #6755dd);
}

.avatar.plum {
  background: linear-gradient(145deg, #c36cdb, #7048b8);
}

.avatar.cyan,
.entity-icon.cyan {
  background: linear-gradient(145deg, #43d8e7, #139bb7);
}

.avatar.mint,
.demo-icon.mint,
.entity-icon.mint {
  color: #0d493a;
  background: linear-gradient(145deg, #7ee8c5, #31bd8e);
}

.avatar.amber,
.entity-icon.amber {
  color: #563409;
  background: linear-gradient(145deg, #ffd47c, #e99c37);
}

/* Sign in */

.login-page {
  overflow-x: hidden;
  background: var(--pearl-50);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(540px, 1.08fr) minmax(440px, .92fr);
}

.login-story {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 4.2vw, 66px) clamp(42px, 6vw, 92px) 34px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 13%, rgba(123, 102, 244, .28), transparent 26%),
    radial-gradient(circle at 82% 70%, rgba(28, 196, 204, .18), transparent 31%),
    linear-gradient(148deg, #080b17 0%, #10152a 48%, #11182e 100%);
}

.login-story::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .17;
  background:
    linear-gradient(rgba(255, 255, 255, .1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 80%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 80%);
  content: "";
}

.login-story::after {
  position: absolute;
  z-index: -1;
  right: -22%;
  bottom: -35%;
  width: 77%;
  aspect-ratio: 1;
  border: 1px solid rgba(126, 231, 218, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(119, 102, 238, .025), 0 0 0 120px rgba(119, 102, 238, .02);
  content: "";
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(12px);
  opacity: .65;
  pointer-events: none;
  animation: ambient-float 10s ease-in-out infinite alternate;
}

.ambient-one {
  top: 13%;
  right: 10%;
  width: 180px;
  height: 180px;
  background: rgba(104, 79, 226, .26);
}

.ambient-two {
  right: 28%;
  bottom: 10%;
  width: 120px;
  height: 120px;
  background: rgba(22, 195, 207, .18);
  animation-delay: -4s;
}

@keyframes ambient-float {
  to { transform: translate3d(18px, -22px, 0) scale(1.08); }
}

.login-copy {
  width: min(690px, 100%);
  margin: clamp(60px, 10vh, 130px) 0 42px;
}

.kicker,
.login-kicker,
.modal-kicker,
.drawer-kicker {
  color: var(--violet-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.login-copy .kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b8adff;
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #59e1c1;
  box-shadow: 0 0 0 5px rgba(89, 225, 193, .11);
}

.pulse-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(89, 225, 193, .5);
  border-radius: inherit;
  content: "";
  animation: pulse-ring 2.2s ease-out infinite;
}

@keyframes pulse-ring {
  75%, 100% { transform: scale(2.1); opacity: 0; }
}

.login-copy h1 {
  margin-top: 24px;
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -.065em;
}

.login-copy h1 em {
  color: #a496ff;
  font-style: normal;
  text-shadow: 0 0 40px rgba(143, 123, 255, .2);
}

.login-copy > p {
  max-width: 610px;
  margin-top: 26px;
  color: rgba(236, 239, 250, .66);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.72;
}

.login-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.login-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 999px;
  color: rgba(244, 246, 255, .75);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
}

.login-proof span::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint-500), var(--cyan-500));
  box-shadow: 0 0 9px rgba(53, 201, 154, .7);
  content: "";
}

.momentum-card {
  width: min(520px, 85%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .095), rgba(255, 255, 255, .045));
  box-shadow: 0 25px 55px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px);
  transform: rotate(-1deg);
}

.momentum-head,
.momentum-meta,
.momentum-team {
  display: flex;
  align-items: center;
}

.momentum-head {
  gap: 12px;
}

.mini-orb {
  display: grid;
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  place-items: center;
  border-radius: 13px;
  color: #e8e4ff;
  background: linear-gradient(145deg, rgba(158, 140, 255, .36), rgba(95, 78, 210, .45));
  font-size: 11px;
  font-weight: 800;
}

.momentum-head div {
  min-width: 0;
  flex: 1;
}

.momentum-head strong,
.momentum-head small {
  display: block;
}

.momentum-head strong {
  overflow: hidden;
  color: #f7f8ff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.momentum-head small,
.momentum-team small,
.momentum-meta {
  color: rgba(229, 234, 248, .52);
  font-size: 11px;
}

.trend {
  padding: 5px 8px;
  border-radius: 999px;
  color: #67e0bd;
  background: rgba(53, 201, 154, .11);
  font-size: 11px;
  font-weight: 800;
}

.momentum-track {
  height: 6px;
  margin: 20px 0 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .085);
}

.momentum-track span {
  display: block;
  width: 75%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-400), #63decc);
  box-shadow: 0 0 16px rgba(117, 208, 211, .35);
}

.momentum-meta {
  justify-content: space-between;
}

.momentum-meta strong {
  color: #e8eaff;
}

.momentum-team {
  margin-top: 18px;
}

.momentum-team .avatar + .avatar {
  margin-left: -8px;
}

.momentum-team small {
  margin-left: 10px;
}

.login-footnote {
  color: rgba(229, 233, 247, .38);
  font-size: 11px;
  letter-spacing: .035em;
}

.login-panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 48px clamp(34px, 6vw, 92px);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(121, 104, 243, .075), transparent 28%),
    radial-gradient(circle at 6% 92%, rgba(25, 190, 215, .06), transparent 24%),
    var(--pearl-50);
}

.login-panel::after {
  position: absolute;
  top: -170px;
  right: -170px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(124, 105, 242, .08);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(124, 105, 242, .018), 0 0 0 100px rgba(124, 105, 242, .012);
  content: "";
  pointer-events: none;
}

.smartflow-footer {
  color: var(--ink-400);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .035em;
  text-align: center;
}

.smartflow-footer strong {
  color: var(--ink-600);
  font-weight: 800;
}

.login-company-footer {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 24px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 10px 0;
}

.mobile-brand {
  display: none;
  margin-bottom: 50px;
}

.login-card h2 {
  margin-top: 10px;
  color: var(--ink-950);
  font-size: clamp(30px, 3vw, 41px);
  font-weight: 800;
  line-height: 1.12;
}

.login-subtitle {
  margin-top: 13px;
  color: var(--ink-500);
  font-size: 15px;
}

.login-form {
  display: grid;
  margin-top: 32px;
  gap: 11px;
}

.login-form label,
.form-field label {
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
}

.login-form label:not(:first-child) {
  margin-top: 7px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input,
.form-field input,
.form-field select,
.form-field textarea,
.command-input input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--pearl-300);
  border-radius: 13px;
  color: var(--ink-900);
  background: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 2px rgba(15, 20, 38, .025), var(--shadow-xs);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.input-wrap input {
  height: 50px;
  padding: 0 58px 0 43px;
}

.input-wrap input::placeholder,
.form-field input::placeholder,
.form-field textarea::placeholder,
.command-input input::placeholder,
.toolbar input::placeholder {
  color: #a6adbc;
}

.input-wrap input:hover,
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover,
.toolbar input:hover,
.toolbar select:hover {
  border-color: #cbc7d9;
}

.input-wrap input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--violet-500);
  background: var(--white);
  box-shadow: var(--focus-ring), inset 0 1px 2px rgba(15, 20, 38, .02);
}

.field-icon {
  position: absolute;
  z-index: 1;
  left: 15px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: var(--ink-400);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.lock-icon {
  font-size: 21px;
  line-height: 0;
}

.password-toggle {
  position: absolute;
  right: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--ink-500);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.password-toggle:hover {
  color: var(--violet-700);
  background: var(--violet-50);
}

.login-form .button {
  min-height: 50px;
  margin-top: 11px;
  border-radius: 14px;
  justify-content: space-between;
  padding-inline: 19px;
}

.form-error {
  padding: 10px 12px;
  border: 1px solid #f4c7d1;
  border-radius: 10px;
  color: #b43a55;
  background: #fff4f6;
  font-size: 12px;
  font-weight: 600;
}

.demo-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 28px 0 16px;
  color: var(--ink-400);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-divider::before,
.demo-divider::after {
  height: 1px;
  flex: 1;
  background: var(--pearl-300);
  content: "";
}

.demo-accounts {
  display: grid;
  gap: 10px;
}

.demo-account {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--pearl-300);
  border-radius: 14px;
  color: var(--ink-900);
  background: rgba(255, 255, 255, .7);
  text-align: left;
}

.demo-account:hover {
  border-color: #c9c2f7;
  background: var(--violet-50);
  box-shadow: 0 10px 25px rgba(42, 33, 101, .07);
  transform: translateY(-2px);
}

.demo-account > span:nth-child(2) {
  min-width: 0;
}

.demo-account strong,
.demo-account small {
  display: block;
}

.demo-account strong {
  font-size: 13px;
}

.demo-account small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-account b {
  color: var(--ink-400);
  font-weight: 500;
}

.demo-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.security-note {
  margin-top: 18px;
  color: var(--ink-400);
  font-size: 10.5px;
  text-align: center;
}

.security-note span {
  margin-right: 5px;
  color: var(--mint-600);
}

/* Application frame */

.app-page {
  overflow: hidden;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  background: var(--pearl-150);
  transition: grid-template-columns .32s var(--ease);
}

.sidebar {
  position: relative;
  z-index: 30;
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  padding: 25px 17px 18px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 22% -2%, rgba(130, 108, 246, .21), transparent 22%),
    radial-gradient(circle at 110% 65%, rgba(26, 190, 209, .08), transparent 28%),
    linear-gradient(170deg, #0a0e1d 0%, #101528 68%, #0b1020 100%);
  box-shadow: inset -1px 0 rgba(255, 255, 255, .035), 16px 0 45px rgba(13, 16, 31, .04);
  transition: width .32s var(--ease), transform .32s var(--ease), padding .32s var(--ease);
}

.sidebar::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .08;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .12) 49%, transparent 62%);
  content: "";
  pointer-events: none;
}

.sidebar-top {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 10px;
}

.sidebar-collapse {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 9px;
  color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .045);
  font-size: 20px;
  line-height: 1;
  transition: background-color .2s ease, color .2s ease, transform .3s var(--ease);
}

.sidebar-collapse:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .09);
}

.primary-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  margin-top: 38px;
}

.nav-label {
  padding: 0 12px 8px;
  color: rgba(207, 214, 237, .38);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-label-spaced {
  margin-top: 22px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(225, 230, 245, .61);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.nav-item::before {
  position: absolute;
  left: -18px;
  width: 3px;
  height: 20px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(var(--violet-400), var(--cyan-500));
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity .2s ease, transform .25s var(--ease);
  content: "";
}

.nav-item:hover {
  color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .045);
}

.nav-item.active {
  color: var(--white);
  border-color: rgba(170, 154, 255, .11);
  background: linear-gradient(100deg, rgba(124, 105, 242, .18), rgba(124, 105, 242, .07));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.nav-item.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
  border-radius: 8px;
  color: rgba(224, 229, 247, .58);
  background: rgba(255, 255, 255, .035);
  font-size: 14px;
  font-weight: 500;
}

.nav-item.active .nav-icon {
  color: #dcd5ff;
  background: rgba(151, 133, 255, .15);
}

.nav-count {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 999px;
  color: rgba(230, 234, 249, .45);
  background: rgba(255, 255, 255, .055);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}

.nav-item.active .nav-count {
  color: #d9d2ff;
  background: rgba(149, 130, 255, .13);
}

.sidebar-insight,
.employee-focus-card {
  margin: 14px 4px 19px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.sidebar-insight {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px;
}

.insight-orbit {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 3px solid rgba(142, 126, 246, .25);
  border-top-color: #8e7cf2;
  border-right-color: #4cd5c1;
  border-radius: 50%;
  color: #f3f1ff;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  transform: rotate(20deg);
}

.insight-orbit span {
  transform: rotate(-20deg);
}

.sidebar-insight strong,
.sidebar-insight small,
.sidebar-user strong,
.sidebar-user small {
  display: block;
  white-space: nowrap;
}

.sidebar-insight strong {
  color: rgba(247, 248, 255, .85);
  font-size: 10.5px;
}

.sidebar-insight small {
  margin-top: 2px;
  color: rgba(216, 223, 242, .38);
  font-size: 9px;
}

.employee-focus-card {
  padding: 15px;
}

.employee-focus-card > span {
  display: block;
  color: #afa3f8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.employee-focus-card strong {
  display: block;
  margin-top: 7px;
  color: var(--white);
  font-size: 14px;
}

.employee-focus-card small {
  color: rgba(219, 225, 244, .4);
  font-size: 9px;
}

.mini-progress {
  height: 5px;
  margin: 11px 0 7px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, .07);
}

.mini-progress i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-400), var(--mint-500));
}

.sidebar-user {
  display: grid;
  min-width: 0;
  grid-template-columns: 36px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 15px 5px 2px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.sidebar-user > span:nth-child(2) {
  min-width: 0;
}

.sidebar-user strong,
.sidebar-user small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user strong {
  color: rgba(248, 249, 255, .86);
  font-size: 11px;
}

.sidebar-user small {
  margin-top: 1px;
  color: rgba(210, 217, 238, .38);
  font-size: 9px;
}

.sidebar-user .icon-button {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.workspace {
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 87% 2%, rgba(124, 105, 242, .045), transparent 24%),
    var(--pearl-150);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: var(--topbar-height);
  flex: 0 0 var(--topbar-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(22px, 3vw, 45px);
  border-bottom: 1px solid rgba(218, 216, 229, .72);
  background: rgba(249, 249, 252, .82);
  box-shadow: 0 8px 30px rgba(29, 31, 50, .025);
  backdrop-filter: blur(18px) saturate(145%);
}

.topbar-left,
.topbar-actions {
  display: flex;
  min-width: 0;
  align-items: center;
}

.topbar-left {
  gap: 13px;
}

.topbar-actions {
  gap: 10px;
}

.page-heading {
  min-width: 0;
}

.page-heading span {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-400);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.page-heading h1 {
  overflow: hidden;
  color: var(--ink-950);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-trigger {
  display: flex;
  min-width: min(24vw, 280px);
  height: 42px;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--pearl-300);
  border-radius: 12px;
  color: var(--ink-400);
  background: rgba(255, 255, 255, .62);
  box-shadow: var(--shadow-xs);
  font-size: 11px;
  text-align: left;
}

.search-trigger:hover {
  color: var(--ink-600);
  border-color: #c9c4e1;
  background: var(--white);
  box-shadow: 0 7px 20px rgba(29, 32, 58, .06);
}

.search-trigger span:nth-child(2) {
  flex: 1;
}

kbd {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid #dedce8;
  border-bottom-color: #cbc8d8;
  border-radius: 7px;
  color: var(--ink-500);
  background: linear-gradient(#fff, #f2f1f6);
  box-shadow: 0 1px 1px rgba(12, 16, 32, .05);
  font-family: inherit;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.notification-button {
  position: relative;
}

.notification-button i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--pearl-50);
  border-radius: 50%;
  background: var(--rose-500);
  box-sizing: content-box;
}

.create-button {
  height: 42px;
  min-height: 42px;
  padding-inline: 15px;
  font-size: 12px;
}

.mobile-menu {
  display: none;
}

.content {
  flex: 1;
  min-height: 0;
  padding: clamp(22px, 2.7vw, 40px) clamp(20px, 3vw, 45px) 54px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #ccc9d8 transparent;
  scrollbar-width: thin;
}

.app-footer {
  display: flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 20px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(218, 216, 229, .72);
  background: rgba(249, 249, 252, .84);
  box-shadow: 0 -8px 24px rgba(29, 31, 50, .025);
  backdrop-filter: blur(18px) saturate(145%);
}

.content::-webkit-scrollbar,
.drawer-body::-webkit-scrollbar,
.table-shell::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.content::-webkit-scrollbar-thumb,
.drawer-body::-webkit-scrollbar-thumb,
.table-shell::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: #c9c6d5;
  background-clip: padding-box;
}

.view-stack {
  display: grid;
  width: min(100%, 1600px);
  margin: 0 auto;
  gap: 20px;
  animation: view-enter .42s var(--ease) both;
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dashboard and bento cards */

.dashboard-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 3.3vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(133, 117, 236, .17);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 74% 22%, rgba(70, 219, 208, .2), transparent 24%),
    radial-gradient(circle at 94% 110%, rgba(133, 113, 246, .42), transparent 40%),
    linear-gradient(135deg, #12172b 0%, #1a1d3a 51%, #25204a 100%);
  box-shadow: 0 23px 55px rgba(24, 24, 52, .14), inset 0 1px rgba(255, 255, 255, .08);
}

.dashboard-hero::before {
  position: absolute;
  z-index: -1;
  top: -75%;
  right: -8%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(129, 222, 218, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 56px rgba(129, 222, 218, .025), 0 0 0 112px rgba(132, 112, 242, .03);
  content: "";
}

.dashboard-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .15;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .14) 49%, transparent 65%);
  content: "";
}

.hero-content {
  max-width: 710px;
}

.hero-content > span,
.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ce6db;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-content h2,
.hero-content h1 {
  margin-top: 11px;
  color: var(--white);
  font-size: clamp(27px, 3.1vw, 44px);
  font-weight: 750;
  line-height: 1.12;
}

.hero-content p {
  max-width: 620px;
  margin-top: 12px;
  color: rgba(232, 236, 249, .62);
  font-size: 14px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.dashboard-hero .button-secondary,
.dashboard-hero .button-ghost {
  color: rgba(255, 255, 255, .88);
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .075);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.dashboard-hero .button-secondary:hover,
.dashboard-hero .button-ghost:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .13);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.stat-card,
.panel,
.work-card,
.team-card,
.board-card,
.detail-section,
.permission-state,
.empty-state {
  border: 1px solid rgba(219, 217, 229, .88);
  background: rgba(255, 255, 255, .87);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(13px);
}

.stat-card {
  position: relative;
  min-width: 0;
  min-height: 142px;
  padding: 21px;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease;
}

.stat-card::after {
  position: absolute;
  top: -26px;
  right: -26px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 105, 242, .13), rgba(124, 105, 242, 0) 67%);
  content: "";
}

.stat-card:nth-child(2)::after { background: radial-gradient(circle, rgba(25, 190, 215, .14), rgba(25, 190, 215, 0) 67%); }
.stat-card:nth-child(3)::after { background: radial-gradient(circle, rgba(53, 201, 154, .14), rgba(53, 201, 154, 0) 67%); }
.stat-card:nth-child(4)::after { background: radial-gradient(circle, rgba(235, 168, 71, .16), rgba(235, 168, 71, 0) 67%); }

.stat-card:hover {
  z-index: 1;
  border-color: #cfcaea;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.stat-card > span:first-child,
.stat-card .stat-label {
  display: block;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
}

.metric-value,
.stat-card > strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-950);
  font-size: clamp(26px, 2.7vw, 36px);
  font-weight: 800;
  line-height: 1.1;
}

.stat-card > small,
.stat-meta {
  display: block;
  margin-top: 9px;
  color: var(--ink-400);
  font-size: 10px;
}

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--mint-600);
  background: var(--mint-100);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.trend-pill.negative,
.trend-pill.down {
  color: var(--rose-600);
  background: var(--rose-100);
}

.panel {
  min-width: 0;
  padding: 23px;
  border-radius: var(--radius-lg);
}

.panel-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
  gap: 18px;
}

.panel-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-header > div {
  min-width: 0;
}

.panel-header h2,
.panel-header h3 {
  color: var(--ink-900);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.panel-header p,
.panel-header small {
  display: block;
  margin-top: 4px;
  color: var(--ink-400);
  font-size: 10.5px;
}

.pipeline-chart {
  display: grid;
  min-height: 250px;
  align-items: end;
  grid-auto-columns: minmax(50px, 1fr);
  grid-auto-flow: column;
  gap: clamp(8px, 1.2vw, 18px);
  padding: 24px 8px 2px;
  border-bottom: 1px solid var(--pearl-200);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 59px, rgba(226, 224, 234, .62) 60px);
}

.pipeline-bar {
  position: relative;
  display: flex;
  min-width: 0;
  height: var(--bar-height, 55%);
  min-height: 26px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 8px;
  padding: 10px 7px 8px;
  border-radius: 11px 11px 4px 4px;
  color: var(--violet-700);
  background: linear-gradient(to top, rgba(124, 105, 242, .16), rgba(124, 105, 242, .72));
  box-shadow: inset 0 1px rgba(255, 255, 255, .32);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  transition: filter .2s ease, transform .22s var(--ease);
}

.pipeline-bar:nth-child(2n) {
  color: #087a90;
  background: linear-gradient(to top, rgba(25, 190, 215, .15), rgba(25, 190, 215, .69));
}

.pipeline-bar:hover {
  filter: saturate(1.15);
  transform: translateY(-3px);
}

.pipeline-bar strong {
  color: var(--ink-900);
  font-size: 11px;
}

.pipeline-bar span,
.pipeline-bar small {
  position: absolute;
  top: calc(100% + 9px);
  width: 120%;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-list,
.comment-list,
.checklist {
  display: grid;
  gap: 9px;
}

.attention-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--pearl-100);
  transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease);
}

.attention-item:hover {
  border-color: var(--pearl-300);
  background: var(--white);
  transform: translateX(2px);
}

.attention-item > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: var(--amber-600);
  background: var(--amber-100);
  font-weight: 800;
}

.attention-item strong,
.attention-item small {
  display: block;
}

.attention-item strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-item small {
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 9.5px;
}

/* View controls and tables */

.toolbar {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.toolbar > div,
.toolbar-group {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.toolbar input,
.toolbar select {
  min-width: 180px;
  height: 41px;
  padding: 0 13px;
  font-size: 11px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--pearl-300);
  border-radius: 12px;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow-xs);
}

.segmented-control button {
  min-height: 31px;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--ink-500);
  background: transparent;
  font-size: 10.5px;
  font-weight: 700;
}

.segmented-control button:hover {
  color: var(--ink-800);
  background: var(--pearl-100);
}

.segmented-control button.active,
.segmented-control button[aria-selected="true"] {
  color: var(--violet-700);
  background: var(--white);
  box-shadow: 0 3px 10px rgba(25, 28, 48, .08);
}

.filter-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid var(--pearl-300);
  border-radius: 11px;
  color: var(--ink-600);
  background: rgba(255, 255, 255, .72);
  font-size: 10px;
  font-weight: 700;
}

.filter-chip:hover,
.filter-chip.active,
.filter-chip[aria-pressed="true"] {
  color: var(--violet-700);
  border-color: #cbc4f3;
  background: var(--violet-50);
}

.filter-chip b {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 4px;
  border-radius: 99px;
  background: rgba(124, 105, 242, .1);
  font-size: 8px;
}

.table-shell {
  min-width: 0;
  overflow: auto;
  border: 1px solid rgba(219, 217, 229, .9);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 11px;
}

.data-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--pearl-200);
  color: var(--ink-400);
  background: rgba(248, 248, 252, .96);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #efedf4;
  color: var(--ink-600);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color .18s ease, box-shadow .18s ease;
}

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

.data-table tbody tr:hover {
  background: #faf9ff;
  box-shadow: inset 3px 0 var(--violet-500);
}

.data-table button:not(.button):not(.icon-button) {
  color: var(--violet-700);
  background: transparent;
  font-weight: 700;
}

.entity-cell {
  display: flex;
  min-width: 170px;
  align-items: center;
  gap: 11px;
}

.entity-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(145deg, #8c7af2, #6754d7);
  box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 5px 12px rgba(62, 52, 128, .14);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .025em;
}

.entity-cell > span:last-child,
.entity-cell > div {
  min-width: 0;
}

.entity-cell strong,
.entity-cell small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entity-cell strong {
  color: var(--ink-900);
  font-size: 11.5px;
}

.entity-cell small {
  margin-top: 2px;
  color: var(--ink-400);
  font-size: 9.5px;
}

.status-pill {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .015em;
  white-space: nowrap;
}

.status-pill::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-active,
.status-won,
.status-complete,
.status-completed,
.status-on-track,
.status-paid {
  color: #197c61;
  border-color: #c8eee1;
  background: #e9f9f3;
}

.status-new,
.status-open,
.status-planning,
.status-proposal,
.status-in-progress {
  color: #6550d3;
  border-color: #dbd5fb;
  background: #f1efff;
}

.status-contacted,
.status-qualified,
.status-review,
.status-pending {
  color: #137b91;
  border-color: #c8ebf0;
  background: #eaf9fb;
}

.status-at-risk,
.status-overdue,
.status-lost,
.status-inactive,
.status-blocked {
  color: #b9435e;
  border-color: #f3ccd4;
  background: #fff0f3;
}

.status-hold,
.status-negotiation,
.status-due {
  color: #a6651b;
  border-color: #f5dfb8;
  background: #fff6e4;
}

.money-cell {
  color: var(--ink-900) !important;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 7px;
}

.avatar-stack .avatar {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  margin-left: -7px;
  border-width: 2px;
  font-size: 8px;
}

.avatar-stack > small,
.avatar-stack > span:last-child:not(.avatar) {
  margin-left: 7px;
  color: var(--ink-400);
  font-size: 9px;
}

/* Opportunity board */

.board {
  display: grid;
  min-width: max-content;
  grid-template-columns: repeat(var(--board-columns, 5), minmax(250px, 1fr));
  gap: 13px;
  padding-bottom: 10px;
}

.board-wrap {
  min-width: 0;
  overflow-x: auto;
  scrollbar-color: #ccc9d8 transparent;
  scrollbar-width: thin;
}

.board-column {
  display: flex;
  width: min(300px, 25vw);
  min-width: 250px;
  min-height: 430px;
  flex-direction: column;
  padding: 12px;
  border: 1px solid rgba(218, 216, 229, .8);
  border-radius: var(--radius-md);
  background: rgba(241, 240, 247, .78);
}

.board-column > header,
.board-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 4px 4px 13px;
}

.board-column > header h3,
.board-column-header h3 {
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.board-column > header span,
.board-column-header span {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ink-500);
  background: rgba(255, 255, 255, .8);
  font-size: 8px;
  font-weight: 800;
}

.board-column-body {
  display: grid;
  align-content: start;
  gap: 9px;
}

.board-card {
  padding: 14px;
  border-radius: 15px;
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease;
}

.board-card:hover {
  border-color: #cfc9ef;
  box-shadow: 0 13px 28px rgba(26, 28, 49, .09);
  transform: translateY(-2px) rotate(.15deg);
}

.board-card > span:first-child,
.board-card .card-kicker {
  color: var(--violet-600);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.board-card h3,
.board-card h4 {
  margin-top: 7px;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.board-card p {
  margin-top: 5px;
  color: var(--ink-400);
  font-size: 9.5px;
}

.board-card .money-cell,
.board-card > strong {
  display: block;
  margin-top: 13px;
}

.board-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--pearl-200);
  color: var(--ink-400);
  font-size: 8.5px;
}

/* Workflows and team */

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

.work-card,
.team-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform .24s var(--ease), border-color .2s ease, box-shadow .24s ease;
}

.work-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-500), var(--cyan-500), var(--mint-500));
  opacity: .75;
  content: "";
}

.work-card:hover,
.team-card:hover {
  border-color: #ccc7e7;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.work-card > header,
.team-card > header,
.work-card .card-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 11px;
}

.work-card h3,
.team-card h3 {
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.work-card p,
.team-card p {
  margin-top: 6px;
  color: var(--ink-400);
  font-size: 10px;
  line-height: 1.55;
}

.work-card-meta,
.team-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  margin-top: 16px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 600;
}

.work-card-meta span,
.team-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.progress-bar {
  position: relative;
  height: 7px;
  margin-top: 17px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--pearl-200);
}

.progress-bar > span,
.progress-bar > i {
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet-500), var(--cyan-500) 68%, var(--mint-500));
  box-shadow: 0 0 12px rgba(91, 190, 205, .23);
  transition: width .65s var(--ease);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  color: var(--ink-400);
  font-size: 8.5px;
}

.progress-meta strong {
  color: var(--ink-600);
}

.work-card footer,
.team-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--pearl-200);
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  text-align: center;
}

.team-card > .avatar,
.team-card .team-avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 13px;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--pearl-300), 0 9px 22px rgba(55, 45, 128, .13);
  font-size: 15px;
}

.team-card .status-pill {
  margin-top: 11px;
}

.team-card footer {
  justify-content: center;
}

/* Forms, details, comments */

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.form-field.full,
.form-field.full-width,
.field-grid > .form-actions {
  grid-column: 1 / -1;
}

.form-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-field label small {
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 500;
}

.form-field input,
.form-field select {
  height: 44px;
  padding: 0 12px;
  font-size: 11px;
}

.form-field textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
  font-size: 11px;
  line-height: 1.5;
}

.form-field select {
  padding-right: 34px;
}

.searchable-select {
  position: relative;
  min-width: 0;
}

.searchable-select.open {
  z-index: 40;
}

.searchable-select-control {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
}

.form-field .searchable-select-control input {
  height: 44px;
  padding: 0 42px 0 36px;
}

.searchable-select-control input::-webkit-search-cancel-button {
  display: none;
}

.searchable-select-icon {
  position: absolute;
  z-index: 1;
  left: 13px;
  color: var(--ink-400);
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.searchable-select-toggle {
  position: absolute;
  z-index: 2;
  right: 5px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: var(--ink-400);
  background: transparent;
  font-size: 15px;
  transition: color .2s ease, background-color .2s ease, transform .2s var(--ease);
}

.searchable-select-toggle:hover {
  color: var(--violet-700);
  background: var(--violet-50);
}

.searchable-select.open .searchable-select-toggle {
  color: var(--violet-700);
  transform: rotate(180deg);
}

.searchable-select-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid #d9d4ec;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(27, 25, 58, .16), 0 3px 12px rgba(27, 25, 58, .07);
  backdrop-filter: blur(18px) saturate(145%);
  animation: searchable-select-in .18s var(--ease) both;
}

.searchable-select.opens-up .searchable-select-menu {
  top: auto;
  bottom: calc(100% + 7px);
  transform-origin: bottom center;
}

@keyframes searchable-select-in {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
}

.searchable-select-options {
  display: grid;
  max-height: 224px;
  gap: 3px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #ccc7de transparent;
  scrollbar-width: thin;
}

.searchable-select-option {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--ink-700);
  background: transparent;
  font-size: 10.5px;
  font-weight: 650;
  text-align: left;
  transition: color .16s ease, background-color .16s ease;
}

.searchable-select-option span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.searchable-select-option i {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 7px;
  color: transparent;
  background: transparent;
  font-size: 10px;
  font-style: normal;
}

.searchable-select-option:hover,
.searchable-select-option.active {
  color: var(--violet-800);
  background: var(--violet-50);
}

.searchable-select-option[aria-selected="true"] {
  color: var(--violet-800);
  background: linear-gradient(135deg, #f5f2ff, #f0fbfb);
  font-weight: 800;
}

.searchable-select-option[aria-selected="true"] i {
  color: var(--white);
  background: linear-gradient(135deg, var(--violet-500), var(--violet-700));
  box-shadow: 0 5px 10px rgba(100, 72, 230, .2);
}

.searchable-select-empty {
  padding: 18px 12px;
  color: var(--ink-400);
  font-size: 10px;
  text-align: center;
}

.form-field .field-hint {
  color: var(--ink-400);
  font-size: 9px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea,
.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(236, 111, 138, .12);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 5px;
}

.detail-section {
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.detail-section + .detail-section {
  margin-top: 13px;
}

.detail-section > h3,
.detail-section > header h3 {
  margin-bottom: 14px;
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 800;
}

.detail-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.detail-section > header h3 {
  margin-bottom: 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

.detail-row {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pearl-200);
  font-size: 10.5px;
}

.detail-row:last-child,
.detail-grid .detail-row:nth-last-child(-n + 2) {
  border-bottom-color: transparent;
}

.detail-row > span:first-child,
.detail-row > dt {
  color: var(--ink-400);
}

.detail-row > span:last-child,
.detail-row > dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-800);
  font-weight: 650;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--pearl-200);
  border-radius: 12px;
  background: var(--pearl-50);
  transition: border-color .2s ease, background-color .2s ease;
}

.checklist-item:hover {
  border-color: #d1ccee;
  background: var(--violet-50);
}

.checklist-item input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: 0 0 17px;
  accent-color: var(--violet-600);
}

.checklist-item > span,
.checklist-item > label {
  min-width: 0;
  flex: 1;
  color: var(--ink-700);
  font-size: 10.5px;
}

.checklist-item.completed > span,
.checklist-item.completed > label,
.checklist-item:has(input:checked) > span,
.checklist-item:has(input:checked) > label {
  color: var(--ink-400);
  text-decoration: line-through;
}

.comment-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 13px;
  background: var(--pearl-100);
}

.comment-item .avatar {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 8px;
}

.comment-item header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.comment-item strong {
  color: var(--ink-800);
  font-size: 10px;
}

.comment-item time {
  color: var(--ink-400);
  font-size: 8px;
}

.comment-item p {
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.55;
}

/* Empty and permission states */

.empty-state,
.permission-state {
  display: grid;
  min-height: 290px;
  place-items: center;
  align-content: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.empty-state > span:first-child,
.permission-state > span:first-child,
.empty-icon,
.permission-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 15px;
  border: 1px solid #ddd7fa;
  border-radius: 18px;
  color: var(--violet-600);
  background: linear-gradient(145deg, var(--violet-50), #ebe7ff);
  box-shadow: 0 10px 24px rgba(79, 64, 169, .1);
  font-size: 22px;
}

.empty-state h2,
.empty-state h3,
.permission-state h2,
.permission-state h3 {
  color: var(--ink-900);
  font-size: 18px;
  font-weight: 800;
}

.empty-state p,
.permission-state p {
  max-width: 430px;
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.6;
}

.empty-state .button,
.permission-state .button {
  margin-top: 18px;
}

.permission-state {
  border-style: dashed;
  background: rgba(250, 249, 255, .82);
}

/* Layers, command palette, menu, drawer */

.command-layer,
.modal-layer,
.drawer-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
}

.command-layer,
.modal-layer {
  place-items: start center;
  padding: min(14vh, 120px) 20px 30px;
}

.drawer-layer {
  justify-items: end;
}

.layer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(7, 10, 22, .58);
  backdrop-filter: blur(7px) saturate(90%);
  animation: fade-in .2s ease both;
}

@keyframes fade-in { from { opacity: 0; } }

.command-palette,
.modal,
.detail-drawer {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(253, 253, 255, .97);
  box-shadow: var(--shadow-lg);
}

.command-palette {
  width: min(640px, 100%);
  overflow: hidden;
  border-radius: 20px;
  animation: palette-in .3s var(--ease) both;
}

@keyframes palette-in {
  from { opacity: 0; transform: translateY(-10px) scale(.98); }
}

.command-input {
  display: grid;
  grid-template-columns: 23px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 13px 10px 19px;
  border-bottom: 1px solid var(--pearl-200);
  color: var(--ink-400);
}

.command-input input {
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.command-input input:focus {
  box-shadow: none;
}

.command-results {
  max-height: min(55vh, 480px);
  padding: 12px;
  overflow: auto;
}

.command-results > p {
  padding: 30px 20px;
  color: var(--ink-400);
  font-size: 11px;
  text-align: center;
}

.command-result {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}

.command-result:hover,
.command-result.active {
  background: var(--violet-50);
}

.command-result strong,
.command-result small {
  display: block;
}

.command-result strong { font-size: 11px; }
.command-result small { color: var(--ink-400); font-size: 9px; }

.modal {
  width: min(620px, 100%);
  max-height: min(78vh, 780px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  animation: modal-in .3s var(--ease) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.975); }
}

.modal > header,
.detail-drawer > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 23px;
  border-bottom: 1px solid var(--pearl-200);
  background: rgba(253, 253, 255, .88);
  backdrop-filter: blur(15px);
}

.modal > header h2,
.detail-drawer > header h2 {
  margin-top: 3px;
  color: var(--ink-950);
  font-size: 20px;
  font-weight: 800;
}

.modal-body {
  max-height: calc(min(78vh, 780px) - 86px);
  padding: 23px;
  overflow: auto;
}

.detail-drawer {
  width: min(530px, 100vw);
  height: 100vh;
  border-width: 0 0 0 1px;
  border-radius: 24px 0 0 24px;
  animation: drawer-in .38s var(--ease) both;
}

@keyframes drawer-in {
  from { transform: translateX(100%); }
}

.detail-drawer > header {
  min-height: 87px;
  border-radius: 24px 0 0;
}

.drawer-body {
  height: calc(100vh - 87px);
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 100% 0, rgba(124, 105, 242, .04), transparent 24%),
    var(--pearl-100);
}

/* Dynamic filters and notifications */

.filter-panel {
  display: grid;
  gap: 18px;
}

.filter-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.filter-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 0;
  border: 0;
}

.filter-field > span,
.filter-field > legend {
  color: var(--ink-700);
  font-size: 11px;
  font-weight: 750;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--pearl-300);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow-xs);
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--violet-500);
  outline: 0;
  box-shadow: var(--focus-ring);
}

.filter-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-top: 2px;
}

.notification-layer {
  position: fixed;
  z-index: 95;
  inset: 0;
  display: grid;
  justify-items: end;
  align-items: start;
  padding: calc(var(--topbar-height) - 6px) clamp(22px, 3vw, 45px) 24px;
  pointer-events: none;
}

.notification-layer .layer-backdrop {
  pointer-events: auto;
}

.notification-panel {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(390px, calc(100vw - 32px));
  max-height: min(610px, calc(100vh - var(--topbar-height) - 20px));
  max-height: min(610px, calc(100dvh - var(--topbar-height) - 20px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(219, 217, 229, .95);
  border-radius: 18px;
  background: rgba(253, 253, 255, .98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px) saturate(140%);
  animation: menu-in .24s var(--ease) both;
  pointer-events: auto;
}

.notification-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 15px;
  border-bottom: 1px solid var(--pearl-200);
}

.notification-panel > header h2 {
  color: var(--ink-950);
  font-size: 17px;
  font-weight: 800;
}

.notification-panel > header p {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 11px;
}

.notification-list {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.notification-item {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--pearl-200);
  color: var(--ink-700);
  background: transparent;
  text-align: left;
}

.notification-item:hover,
.notification-item:focus-visible {
  background: var(--violet-50);
}

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

.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--violet-500);
  box-shadow: 0 0 0 4px var(--violet-100);
}

.notification-item.is-read .notification-dot {
  background: var(--ink-300);
  box-shadow: 0 0 0 4px var(--pearl-200);
}

.notification-item strong,
.notification-item small {
  display: block;
}

.notification-item strong {
  color: var(--ink-800);
  font-size: 11px;
}

.notification-item small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.45;
}

.notification-time {
  color: var(--ink-500);
  font-size: 9px;
  white-space: nowrap;
}

.notification-empty {
  display: grid;
  min-height: 210px;
  place-items: center;
  padding: 28px;
  color: var(--ink-500);
  font-size: 12px;
  text-align: center;
}

.create-menu {
  position: fixed;
  z-index: 80;
  top: calc(var(--topbar-height) - 15px);
  right: clamp(22px, 3vw, 45px);
  width: 240px;
  padding: 8px;
  border: 1px solid rgba(219, 217, 229, .92);
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  animation: menu-in .22s var(--ease) both;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top right; }
}

.create-menu button,
.create-menu a {
  display: grid;
  width: 100%;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 11px;
  color: var(--ink-700);
  background: transparent;
  text-align: left;
}

.create-menu button:hover,
.create-menu a:hover {
  color: var(--violet-700);
  background: var(--violet-50);
}

.create-menu strong,
.create-menu small { display: block; }
.create-menu strong { font-size: 10.5px; }
.create-menu small { margin-top: 2px; color: var(--ink-400); font-size: 8.5px; }

.toast-region {
  position: fixed;
  z-index: 160;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(360px, calc(100vw - 40px));
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  color: var(--white);
  background: rgba(15, 20, 37, .95);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  animation: toast-in .36s var(--ease) both;
  pointer-events: auto;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
}

.toast > span:first-child {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 10px;
  color: #70e2c1;
  background: rgba(53, 201, 154, .13);
}

.toast strong,
.toast small { display: block; }
.toast strong { font-size: 10.5px; }
.toast small { margin-top: 2px; color: rgba(227, 231, 244, .55); font-size: 9px; }

/* Loading */

.loading-view {
  display: grid;
  width: min(100%, 1600px);
  margin: 0 auto;
  gap: 18px;
}

.skeleton {
  position: relative;
  min-height: 130px;
  overflow: hidden;
  border: 1px solid rgba(222, 220, 231, .7);
  border-radius: var(--radius-md);
  background: #eae8f0;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .58) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: skeleton-wave 1.45s ease-in-out infinite;
  content: "";
}

@keyframes skeleton-wave {
  to { transform: translateX(100%); }
}

.hero-skeleton { min-height: 210px; border-radius: var(--radius-xl); }
.table-skeleton { min-height: 320px; border-radius: var(--radius-lg); }

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

/* Exact rendered view patterns */

.section-intro {
  position: relative;
  display: flex;
  min-height: 166px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 27px 30px;
  overflow: hidden;
  border: 1px solid rgba(216, 213, 232, .88);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 10%, rgba(124, 105, 242, .1), transparent 28%),
    radial-gradient(circle at 5% 110%, rgba(25, 190, 215, .07), transparent 30%),
    rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-sm);
}

.section-intro::after {
  position: absolute;
  top: -70px;
  right: -55px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(124, 105, 242, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(124, 105, 242, .022), 0 0 0 60px rgba(25, 190, 215, .014);
  content: "";
  pointer-events: none;
}

.section-intro > div {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.section-intro .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--violet-600);
  font-size: 9px;
}

.section-intro h2 {
  margin-top: 9px;
  color: var(--ink-950);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.13;
}

.section-intro p {
  max-width: 660px;
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 12px;
}

.section-intro > .button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

.opportunity-intro {
  background:
    radial-gradient(circle at 88% 4%, rgba(25, 190, 215, .11), transparent 28%),
    radial-gradient(circle at 5% 110%, rgba(124, 105, 242, .065), transparent 30%),
    rgba(255, 255, 255, .88);
}

.team-intro {
  background:
    radial-gradient(circle at 88% 5%, rgba(53, 201, 154, .11), transparent 29%),
    radial-gradient(circle at 6% 110%, rgba(124, 105, 242, .06), transparent 30%),
    rgba(255, 255, 255, .88);
}

.button-light {
  color: var(--ink-950);
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(5, 8, 22, .16), inset 0 1px rgba(255, 255, 255, .8);
}

.button-light:hover {
  color: var(--violet-700);
  background: var(--white);
  box-shadow: 0 16px 34px rgba(5, 8, 22, .22);
}

.dashboard-hero .hero-content h2 em {
  color: #a99cff;
  font-style: normal;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  top: -90px;
  left: 36%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(119, 94, 239, .16);
  filter: blur(34px);
  pointer-events: none;
}

.hero-quick {
  display: grid;
  min-width: 122px;
  grid-template-columns: 32px auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(12px);
  text-align: left;
  transition: transform .2s var(--ease), background-color .2s ease, border-color .2s ease;
}

.hero-quick:hover {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}

.hero-quick > span {
  display: grid;
  width: 32px;
  height: 32px;
  grid-row: 1 / 3;
  place-items: center;
  border-radius: 10px;
  color: #bcb2ff;
  background: rgba(151, 132, 255, .14);
  font-size: 18px;
}

.hero-quick small { color: rgba(230, 234, 247, .5); font-size: 8px; }
.hero-quick strong { font-size: 10px; }

.hero-spark {
  position: absolute;
  right: 30px;
  bottom: 17px;
  display: flex;
  height: 30px;
  align-items: end;
  gap: 4px;
  opacity: .42;
  pointer-events: none;
}

.hero-spark i {
  display: block;
  width: 3px;
  height: 35%;
  border-radius: 9px;
  background: linear-gradient(to top, var(--violet-400), var(--mint-500));
  animation: spark-wave 2.4s ease-in-out infinite alternate;
}

.hero-spark i:nth-child(2n) { height: 80%; animation-delay: -.7s; }
.hero-spark i:nth-child(3n) { height: 52%; animation-delay: -1.2s; }
.hero-spark i:nth-child(5n) { height: 100%; animation-delay: -1.8s; }

@keyframes spark-wave {
  to { height: 95%; opacity: .55; }
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-symbol,
.create-symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: var(--violet-700);
  background: var(--violet-100);
  font-size: 15px;
  font-weight: 800;
}

.stat-cyan .stat-symbol,
.stat-symbol.cyan,
.create-symbol.cyan { color: #087e96; background: var(--cyan-100); }
.stat-mint .stat-symbol,
.stat-symbol.mint,
.create-symbol.mint { color: #16795f; background: var(--mint-100); }
.stat-amber .stat-symbol,
.stat-symbol.amber { color: #9d621d; background: var(--amber-100); }

.stat-card > strong + span {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 650;
}

.panel-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--violet-600);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.text-button {
  padding: 5px 0;
  color: var(--violet-600);
  background: transparent;
  font-size: 9.5px;
  font-weight: 800;
  white-space: nowrap;
}

.text-button:hover {
  color: var(--violet-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pipeline-total {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 3px;
}

.pipeline-total strong {
  color: var(--ink-950);
  font-family: "Manrope", sans-serif;
  font-size: 24px;
  letter-spacing: -.04em;
}

.pipeline-total span { color: var(--ink-400); font-size: 9px; }

.pipeline-bar-wrap {
  display: grid;
  height: 222px;
  min-width: 0;
  grid-template-rows: 24px minmax(0, 1fr) 28px;
  align-items: end;
  text-align: center;
}

.pipeline-bar-wrap .bar-value {
  align-self: center;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 8.5px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pipeline-bar-wrap .pipeline-bar {
  width: min(45px, 75%);
  height: var(--bar-height, 50%);
  justify-self: center;
  padding: 0;
  border-radius: 9px 9px 4px 4px;
}

.pipeline-bar-wrap .pipeline-bar i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, .26), transparent 42%);
}

.pipeline-bar-wrap > small {
  align-self: start;
  overflow: hidden;
  padding-top: 8px;
  color: var(--ink-500);
  font-size: 8px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.count-bubble {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  padding: 0 6px;
  border-radius: 99px;
  color: var(--violet-700);
  background: var(--violet-100);
  font-size: 9px;
  font-weight: 800;
}

.attention-mark {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 10px;
  color: var(--violet-700);
  background: var(--violet-100);
  font-size: 8px;
  font-weight: 800;
}

.attention-mark.tone-1 { color: #087e96; background: var(--cyan-100); }
.attention-mark.tone-2 { color: #16795f; background: var(--mint-100); }
.attention-mark.tone-3 { color: #9d621d; background: var(--amber-100); }
.attention-item > b { color: var(--ink-700); font-size: 9px; }

.timeline-list,
.activity-list {
  display: grid;
  gap: 6px;
}

.timeline-item {
  display: grid;
  width: 100%;
  grid-template-columns: 39px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-radius: 12px;
  color: var(--ink-700);
  background: transparent;
  text-align: left;
  transition: background-color .2s ease, transform .2s var(--ease);
}

.timeline-item:hover { background: var(--violet-50); transform: translateX(2px); }
.timeline-date { display: grid; width: 38px; height: 38px; place-items: center; align-content: center; border-radius: 11px; color: var(--violet-700); background: var(--violet-100); }
.timeline-date b { font-size: 11px; line-height: 1; }
.timeline-date small { margin-top: 2px; font-size: 7px; font-weight: 800; text-transform: uppercase; }
.timeline-item > span:nth-child(2) { min-width: 0; }
.timeline-item strong,
.timeline-item small { display: block; }
.timeline-item strong { overflow: hidden; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-item > span:nth-child(2) small { margin-top: 2px; color: var(--ink-400); font-size: 8.5px; }

.activity-item {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 8px;
  border-radius: 11px;
}

.activity-item:hover { background: var(--pearl-100); }
.activity-item .avatar { width: 31px; height: 31px; flex-basis: 31px; font-size: 8px; }
.activity-item p { color: var(--ink-500); font-size: 9.5px; line-height: 1.4; }
.activity-item strong { color: var(--ink-800); }
.activity-item small { display: block; margin-top: 3px; color: var(--ink-400); font-size: 8px; }

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint-600);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.live-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 4px rgba(53, 201, 154, .12); }

.toolbar-search {
  position: relative;
  display: flex;
  min-width: min(300px, 30vw);
  align-items: center;
}

.toolbar-search > span {
  position: absolute;
  z-index: 1;
  left: 13px;
  color: var(--ink-400);
  pointer-events: none;
}

.toolbar-search input { min-width: 100%; padding-left: 38px; }
.filter-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.icon-button.bordered { background: rgba(255, 255, 255, .8); box-shadow: var(--shadow-xs); }

.group-stack {
  display: grid;
  gap: 18px;
}

.table-group { min-width: 0; }

.group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 9px;
}

.group-header > button:first-child {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 4px;
  color: var(--ink-700);
  background: transparent;
  text-align: left;
}

.group-chevron { color: var(--ink-400); transition: transform .2s var(--ease); }
.table-group.collapsed .group-chevron { transform: rotate(-90deg); }
.table-group.collapsed .table-shell { display: none; }
.group-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--violet-500); box-shadow: 0 0 0 4px var(--violet-100); }
.group-dot.mint { background: var(--mint-500); box-shadow: 0 0 0 4px var(--mint-100); }
.group-dot.slate { background: #8992a6; box-shadow: 0 0 0 4px #eceef2; }
.group-header strong { font-size: 11px; }
.group-header > button:first-child > span:last-child { overflow: hidden; color: var(--ink-400); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.group-header .icon-button.subtle { color: var(--ink-400); }
.group-header .icon-button.subtle:hover { color: var(--violet-700); background: var(--violet-50); }

.entity-cell,
.person-cell {
  border: 0;
  background: transparent;
  text-align: left;
}

.person-cell { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.person-cell .avatar { width: 27px; height: 27px; flex-basis: 27px; font-size: 7px; }

.soft-tag,
.file-chip,
.document-chip,
.comment-bubble,
.linked-record {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--ink-600);
  background: var(--pearl-100);
  font-size: 9px;
  font-weight: 650;
  white-space: nowrap;
}

button.file-chip,
button.document-chip,
button.comment-bubble,
button.linked-record { border: 0; }

.comment-bubble { color: var(--violet-600); background: var(--violet-50); }
.linked-record { color: #087e96; background: var(--cyan-100); }
.document-chip { color: #75501b; background: var(--amber-100); }
.file-chip:hover,
.document-chip:hover,
.comment-bubble:hover,
.linked-record:hover { filter: saturate(1.15); transform: translateY(-1px); }

.entity-icon.tone-0 { background: linear-gradient(145deg, #9d8cff, #6755dd); }
.entity-icon.tone-1 { background: linear-gradient(145deg, #43d8e7, #139bb7); }
.entity-icon.tone-2 { color: #0d493a; background: linear-gradient(145deg, #7ee8c5, #31bd8e); }
.entity-icon.tone-3 { color: #563409; background: linear-gradient(145deg, #ffd47c, #e99c37); }
.entity-icon.tone-4 { background: linear-gradient(145deg, #ef8ca3, #c85071); }

.status-pill.client-active,
.status-pill.client-engaged,
.status-pill.stage-closed-won,
.status-pill.workflow-completed,
.status-pill.workflow-presales-completed { color: #197c61; border-color: #c8eee1; background: #e9f9f3; }
.status-pill.client-new,
.status-pill.client-prospective,
.status-pill.stage-new,
.status-pill.workflow-not-started { color: #6550d3; border-color: #dbd5fb; background: #f1efff; }
.status-pill.client-contacted,
.status-pill.stage-contacted,
.status-pill.stage-submitted,
.status-pill.workflow-working-on-it { color: #137b91; border-color: #c8ebf0; background: #eaf9fb; }
.status-pill.client-inactive,
.status-pill.stage-closed-lost,
.status-pill.workflow-blocked,
.status-pill.priority-critical { color: #b9435e; border-color: #f3ccd4; background: #fff0f3; }
.status-pill.stage-negotiation,
.status-pill.stage-resubmission,
.status-pill.priority-high,
.status-pill.priority-medium,
.status-pill.priority-tender { color: #a6651b; border-color: #f5dfb8; background: #fff6e4; }
.status-pill.priority-low,
.status-pill.priority-evaluation-required,
.status-pill.priority-client-delayed { color: #526077; border-color: #dce0e7; background: #f2f4f7; }

.due-danger { color: var(--rose-600) !important; font-weight: 800; }
.due-warning { color: var(--amber-600) !important; font-weight: 800; }
.due-success { color: var(--mint-600) !important; font-weight: 800; }
.due-neutral { color: var(--ink-400) !important; }

.opportunity-board {
  grid-template-columns: repeat(7, 265px);
  padding: 3px 2px 14px;
}

.board-column {
  width: 265px;
}

.board-column > header {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.board-column > header strong { overflow: hidden; color: var(--ink-700); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.board-column > header b { display: grid; min-width: 19px; height: 19px; place-items: center; padding: 0 5px; border-radius: 99px; color: var(--ink-500); background: rgba(255, 255, 255, .82); font-size: 8px; }
.board-column > header small { grid-column: 2 / -1; color: var(--ink-400); font-size: 8px; }
.stage-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet-500); box-shadow: 0 0 0 4px var(--violet-100); }
.stage-contacted,
.stage-submitted { background: var(--cyan-500); box-shadow: 0 0 0 4px var(--cyan-100); }
.stage-negotiation,
.stage-resubmission { background: var(--amber-500); box-shadow: 0 0 0 4px var(--amber-100); }
.stage-closed-won { background: var(--mint-500); box-shadow: 0 0 0 4px var(--mint-100); }
.stage-closed-lost { background: var(--rose-500); box-shadow: 0 0 0 4px var(--rose-100); }
.board-card-list { display: grid; align-content: start; gap: 9px; }

.board-empty {
  min-height: 78px;
  border: 1px dashed #d5d1df;
  border-radius: 13px;
  color: var(--ink-400);
  background: rgba(255, 255, 255, .34);
  font-size: 9px;
  font-weight: 700;
}

.board-empty:hover { color: var(--violet-700); border-color: #bdb4f0; background: var(--violet-50); }
.board-card-top,
.card-value,
.work-card-top,
.work-card-footer,
.team-card-top { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.board-card .icon-button.subtle,
.work-card .icon-button.subtle { width: 27px; height: 27px; flex-basis: 27px; color: var(--ink-400); }
.card-title,
.work-title { display: block; width: 100%; padding: 0; color: var(--ink-900); background: transparent; font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 800; line-height: 1.35; text-align: left; letter-spacing: -.025em; }
.board-card .card-title { margin-top: 11px; }
.card-title:hover,
.work-title:hover { color: var(--violet-700); }
.card-value { margin-top: 13px; }
.card-value.without-money { justify-content: flex-end; }
.card-value strong { color: var(--ink-950); font-family: "Manrope", sans-serif; font-size: 14px; }
.card-value span { font-size: 8px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--pearl-200); color: var(--ink-400); font-size: 8px; }
.card-meta > span { display: flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta .avatar { width: 23px; height: 23px; flex-basis: 23px; font-size: 6px; }

.work-title { margin-top: 13px; font-size: 14px; }
.work-card.is-overdue { border-color: #f0cad2; }
.work-card.is-overdue::before { background: linear-gradient(90deg, var(--rose-500), var(--amber-500)); }
.workflow-card-priority {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding: 7px 9px 7px 11px;
  border: 1px solid #e3dff2;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(248, 246, 255, .9), rgba(247, 252, 252, .9));
}
.workflow-card-priority > span:first-child {
  color: var(--ink-500);
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.workflow-card-priority .status-pill {
  flex: 0 0 auto;
  min-height: 25px;
  padding: 5px 9px;
  font-size: 9px;
  box-shadow: 0 4px 10px rgba(54, 45, 116, .06);
}
.workflow-card-priority > strong {
  color: var(--ink-400);
  font-size: 9px;
  font-weight: 700;
}
.work-card .progress-meta { margin-top: 17px; }
.work-card-footer { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--pearl-200); color: var(--ink-400); font-size: 9px; }

.progress-inline { display: flex; min-width: 110px; align-items: center; gap: 8px; }
.progress-inline > span { display: block; width: 72px; height: 5px; overflow: hidden; border-radius: 99px; background: var(--pearl-200); }
.progress-inline i { display: block; width: var(--progress, 0%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-500), var(--mint-500)); }
.progress-inline b { color: var(--ink-500); font-size: 8px; }

.employee-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(27px, 3.5vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(109, 207, 196, .14);
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 78% 14%, rgba(60, 217, 196, .2), transparent 25%),
    radial-gradient(circle at 100% 100%, rgba(128, 107, 244, .37), transparent 41%),
    linear-gradient(135deg, #11172b, #17213b 55%, #1f2947);
  box-shadow: 0 23px 55px rgba(24, 29, 54, .14), inset 0 1px rgba(255, 255, 255, .08);
}

.employee-hero::after { position: absolute; z-index: -1; right: -90px; bottom: -170px; width: 380px; height: 380px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 50%; box-shadow: 0 0 0 50px rgba(255, 255, 255, .018), 0 0 0 100px rgba(255, 255, 255, .012); content: ""; }
.employee-hero .kicker { color: #9ce6db; }
.employee-hero h2 { margin-top: 11px; color: var(--white); font-size: clamp(28px, 3vw, 42px); font-weight: 800; }
.employee-hero p { max-width: 650px; margin-top: 10px; color: rgba(232, 236, 249, .62); font-size: 13px; }

.focus-ring,
.progress-ring {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--mint-500) var(--focus, var(--progress, 0%)), rgba(255, 255, 255, .09) 0);
  box-shadow: 0 15px 30px rgba(4, 8, 20, .18);
}

.focus-ring { width: 104px; height: 104px; }
.focus-ring::before,
.progress-ring::before { position: absolute; inset: 8px; border-radius: 50%; background: #18213a; box-shadow: inset 0 1px rgba(255, 255, 255, .08); content: ""; }
.focus-ring > span { position: relative; display: grid; text-align: center; }
.focus-ring strong { color: var(--white); font-family: "Manrope", sans-serif; font-size: 23px; line-height: 1; }
.focus-ring small { margin-top: 4px; color: rgba(229, 234, 248, .48); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.quick-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-stat-row article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(219, 217, 229, .88);
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  box-shadow: var(--shadow-xs);
}

.quick-stat-row strong,
.quick-stat-row small { display: block; }
.quick-stat-row strong { color: var(--ink-950); font-family: "Manrope", sans-serif; font-size: 20px; line-height: 1; }
.quick-stat-row small { margin-top: 4px; color: var(--ink-400); font-size: 9px; }

.team-card-top { margin-bottom: 13px; }
.team-card-top .avatar { margin: 0; }
.availability { display: inline-flex; align-items: center; gap: 5px; color: var(--mint-600); font-size: 8px; font-weight: 800; }
.availability i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 4px var(--mint-100); }
.availability.busy { color: var(--rose-600); }
.availability.busy i { background: var(--rose-500); box-shadow: 0 0 0 4px var(--rose-100); }
.team-card { text-align: left; }
.team-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-top: 17px; padding: 13px 0; border-block: 1px solid var(--pearl-200); }
.team-stats span { text-align: center; }
.team-stats strong,
.team-stats small { display: block; }
.team-stats strong { color: var(--ink-800); font-family: "Manrope", sans-serif; font-size: 13px; }
.team-stats small { margin-top: 2px; color: var(--ink-400); font-size: 7.5px; }
.team-card footer { justify-content: space-between; color: var(--ink-400); font-size: 8px; }

.entity-form { display: grid; gap: 19px; }
.form-field-wide { grid-column: 1 / -1; }
.assignment-field { min-width: 0; padding: 0; border: 0; }
.assignment-field legend { margin-bottom: 8px; color: var(--ink-700); font-size: 12px; font-weight: 700; }
.employee-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.employee-picker > label { display: grid; min-width: 0; grid-template-columns: 16px 28px minmax(0, 1fr); align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--pearl-300); border-radius: 12px; background: var(--pearl-50); cursor: pointer; transition: border-color .2s ease, background-color .2s ease; }
.employee-picker > label:hover,
.employee-picker > label:has(input:checked) { border-color: #c7bff5; background: var(--violet-50); }
.employee-picker input { width: 15px; height: 15px; accent-color: var(--violet-600); }
.employee-picker .avatar { width: 28px; height: 28px; flex-basis: 28px; font-size: 7px; }
.employee-picker strong,
.employee-picker small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-picker strong { color: var(--ink-700); font-size: 9px; }
.employee-picker small { margin-top: 1px; color: var(--ink-400); font-size: 7.5px; }

.modal:has(.assignee-form) {
  width: min(680px, 100%);
  max-height: min(88vh, 780px);
}

.modal:has(.assignee-form) .modal-body {
  max-height: calc(min(88vh, 780px) - 86px);
  padding: 0;
  background:
    radial-gradient(circle at 95% 6%, rgba(124, 105, 242, .07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

.assignee-form {
  display: grid;
  gap: 18px;
  padding: 22px 23px 20px;
}

.assignee-workflow-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #ddd8fa;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(54, 196, 205, .11), transparent 34%),
    linear-gradient(135deg, #f8f6ff, #f7fcfc);
  box-shadow: 0 8px 22px rgba(72, 61, 139, .06);
}

.assignee-workflow-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(124, 105, 242, .18);
  border-radius: 13px;
  color: var(--violet-700);
  background: rgba(255, 255, 255, .78);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.assignee-workflow-copy {
  min-width: 0;
}

.assignee-workflow-copy > small,
.assignee-workflow-copy > strong,
.assignee-workflow-copy > span {
  display: block;
}

.assignee-workflow-copy > small {
  margin-bottom: 3px;
  color: var(--violet-700);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.assignee-workflow-copy > strong {
  overflow: hidden;
  color: var(--ink-900);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignee-workflow-copy > span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.45;
}

.assignee-selection-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #d5cff8;
  border-radius: 99px;
  color: var(--violet-700);
  background: rgba(255, 255, 255, .82);
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.assignee-selection-count.is-empty {
  color: var(--ink-500);
  border-color: var(--pearl-300);
}

.assignee-picker-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
  padding-inline: 2px;
}

.assignee-picker-fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

.assignee-picker-heading strong,
.assignee-picker-heading small {
  display: block;
}

.assignee-picker-heading strong {
  color: var(--ink-900);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.assignee-picker-heading small {
  margin-top: 3px;
  color: var(--ink-400);
  font-size: 8.5px;
}

.assignee-picker {
  gap: 10px;
}

.assignee-picker > .assignee-option {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--pearl-300);
  border-radius: 15px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 14px rgba(34, 29, 73, .035);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.assignee-picker > .assignee-option:hover {
  border-color: #c8c0f5;
  background: #fcfbff;
  box-shadow: 0 9px 20px rgba(75, 62, 150, .08);
  transform: translateY(-1px);
}

.assignee-picker > .assignee-option:has(input:checked) {
  border-color: #a99cf5;
  background:
    radial-gradient(circle at 100% 0, rgba(124, 105, 242, .12), transparent 42%),
    linear-gradient(135deg, #faf8ff, #f5f3ff);
  box-shadow: 0 0 0 1px rgba(124, 105, 242, .08), 0 9px 21px rgba(75, 62, 150, .09);
}

.assignee-picker > .assignee-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.assignee-picker > .assignee-option:focus-within {
  outline: 3px solid rgba(124, 105, 242, .22);
  outline-offset: 2px;
}

.assignee-picker .avatar {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-width: 3px;
  font-size: 9px;
  box-shadow: 0 0 0 1px rgba(114, 105, 156, .1), 0 5px 11px rgba(44, 38, 85, .1);
}

.assignee-person {
  min-width: 0;
}

.assignee-person strong,
.assignee-person small,
.assignee-person em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignee-person strong {
  color: var(--ink-900);
  font-size: 11.5px;
  font-weight: 800;
}

.assignee-person small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9.25px;
}

.assignee-person em {
  margin-top: 5px;
  color: var(--ink-400);
  font-size: 8.25px;
  font-style: normal;
  font-weight: 700;
}

.assignee-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #d4d0df;
  border-radius: 8px;
  color: transparent;
  background: var(--white);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}

.assignee-option:has(input:checked) .assignee-check {
  color: var(--white);
  border-color: var(--violet-600);
  background: linear-gradient(135deg, #8b72fa, #6448e6);
  box-shadow: 0 6px 12px rgba(100, 72, 230, .24);
  transform: scale(1.04);
}

.assignee-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 25px;
  border: 1px dashed var(--pearl-300);
  border-radius: 15px;
  color: var(--ink-400);
  background: rgba(255, 255, 255, .65);
  text-align: center;
}

.assignee-empty > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 3px;
  border-radius: 10px;
  color: var(--violet-600);
  background: var(--violet-100);
}

.assignee-empty strong {
  color: var(--ink-700);
  font-size: 10px;
}

.assignee-empty small {
  color: var(--ink-400);
  font-size: 8.5px;
}

.assignee-access-note {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #d6eef0;
  border-radius: 13px;
  background: rgba(241, 251, 251, .82);
}

.assignee-access-note > span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  color: #087e96;
  background: var(--cyan-100);
  font-size: 13px;
  font-weight: 800;
}

.assignee-access-note strong,
.assignee-access-note small {
  display: block;
}

.assignee-access-note strong {
  color: var(--ink-700);
  font-size: 9.5px;
}

.assignee-access-note small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 8.5px;
  line-height: 1.45;
}

.assignee-actions {
  margin-top: -2px;
  padding-top: 16px;
  border-top: 1px solid var(--pearl-200);
}

.modal-body > .create-menu { position: static; width: 100%; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; animation: none; }
.create-menu button,
.create-menu a { grid-template-columns: 40px minmax(0, 1fr) auto; }
.modal-body > .create-menu button { padding: 13px; border: 1px solid transparent; }
.modal-body > .create-menu button + button { margin-top: 6px; }
.modal-body > .create-menu button:hover { border-color: #ddd8f7; }
.create-symbol { width: 40px; height: 40px; }
.create-menu b { color: var(--ink-400); }

.detail-identity {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 5px 3px 19px;
}

.entity-icon.large { width: 54px; height: 54px; border-radius: 16px; font-size: 14px; }
.detail-identity > div { min-width: 0; }
.detail-identity h3 { overflow: hidden; color: var(--ink-950); font-size: 17px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.detail-identity p { margin-top: 3px; color: var(--ink-400); font-size: 9.5px; }
.deal-value { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; margin-bottom: 13px; padding: 18px; border: 1px solid #ddd7fb; border-radius: 17px; background: linear-gradient(135deg, #f8f6ff, #edf9fa); }
.deal-value > span { grid-column: 1 / -1; color: var(--ink-400); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.deal-value > strong { color: var(--ink-950); font-family: "Manrope", sans-serif; font-size: 27px; letter-spacing: -.045em; }
.deal-value > small { align-self: center; }

.detail-section > header > span:first-child { color: var(--ink-800); font-family: "Manrope", sans-serif; font-size: 12px; font-weight: 800; letter-spacing: -.015em; }
.detail-section > header > small { display: grid; min-width: 23px; height: 23px; place-items: center; padding: 0 6px; border-radius: 99px; color: var(--violet-700); background: var(--violet-100); font-size: 8px; font-weight: 800; }
.detail-row > strong { min-width: 0; overflow-wrap: anywhere; color: var(--ink-800); font-size: 10px; }

.comment-form { display: flex; gap: 8px; margin-top: 12px; }
.comment-form input { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--pearl-300); border-radius: 11px; background: var(--white); font-size: 10px; }
.comment-form input:focus { border-color: var(--violet-500); outline: 0; box-shadow: var(--focus-ring); }
.comment-form .button { min-height: 40px; padding-inline: 13px; font-size: 10px; }
.comment-item > div > small { display: block; margin-top: 5px; color: var(--ink-400); font-size: 8px; }
.muted { color: var(--ink-400); font-size: 9.5px; }

.workflow-identity { grid-template-columns: 56px minmax(0, 1fr); }
.progress-ring { width: 56px; height: 56px; background: conic-gradient(var(--violet-500) var(--progress, 0%), var(--pearl-200) 0); box-shadow: none; }
.progress-ring::before { inset: 6px; background: var(--white); box-shadow: none; }
.progress-ring b { position: relative; color: var(--ink-800); font-family: "Manrope", sans-serif; font-size: 13px; }
.progress-ring b::after { content: "%"; font-size: 7px; }
.stage-control { display: grid; grid-template-columns: auto minmax(160px, 1fr); align-items: center; gap: 12px; margin-bottom: 13px; padding: 12px 14px; border: 1px solid var(--pearl-300); border-radius: 14px; background: rgba(255, 255, 255, .85); }
.stage-control label { color: var(--ink-500); font-size: 9px; font-weight: 700; }
.stage-control select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--pearl-300); border-radius: 9px; color: var(--ink-700); background: var(--white); font-size: 9.5px; font-weight: 700; }
.stage-control select:focus { border-color: var(--violet-500); outline: 0; box-shadow: var(--focus-ring); }
.documentation { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--pearl-100); }
.documentation span { color: var(--ink-400); font-size: 8px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.documentation p { margin-top: 5px; color: var(--ink-600); font-size: 9.5px; line-height: 1.6; white-space: pre-wrap; }
.resource-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 11px; padding: 10px; border: 1px solid #d4eff1; border-radius: 12px; color: var(--ink-700); background: #f2fbfb; }
.resource-card > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #087e96; background: var(--cyan-100); }
.resource-card strong,
.resource-card small { display: block; }
.resource-card strong { font-size: 9.5px; }
.resource-card small { margin-top: 2px; color: var(--ink-400); font-size: 8px; }
.resource-card > b { color: #087e96; }
.resource-card:hover { border-color: #9ddde4; transform: translateY(-1px); }

.checklist-item { position: relative; cursor: pointer; }
.checklist-item input[type="checkbox"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.custom-check { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border: 1px solid #cbc7d8; border-radius: 6px; color: transparent; background: var(--white); font-size: 10px; font-weight: 800; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.checklist-item input:checked + .custom-check { color: var(--white); border-color: var(--violet-600); background: var(--violet-600); }
.checklist-item:focus-within { outline: 2px solid var(--violet-500); outline-offset: 2px; }

.employee-profile { display: grid; justify-items: center; padding: 7px 0 20px; text-align: center; }
.employee-profile .avatar { width: 72px; height: 72px; margin-bottom: 12px; border-width: 4px; font-size: 18px; box-shadow: 0 0 0 1px var(--pearl-300), 0 13px 28px rgba(52, 43, 122, .14); }
.employee-profile h3 { color: var(--ink-950); font-size: 18px; font-weight: 800; }
.employee-profile p { margin: 3px 0 10px; color: var(--ink-400); font-size: 9.5px; }
.quick-stat-row.detail-stats { grid-template-columns: repeat(2, 1fr); margin-bottom: 13px; }
.security-callout { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-top: 13px; padding: 14px; border: 1px solid #d4eef0; border-radius: 14px; background: #f1fbfb; }
.security-callout > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: #087e96; background: var(--cyan-100); }
.security-callout strong { display: block; margin-bottom: 3px; color: var(--ink-700); font-size: 9.5px; }
.security-callout p { color: var(--ink-500); font-size: 8.5px; line-height: 1.5; }
.permission-state.compact { min-height: 230px; box-shadow: none; }
.drawer-loading { display: grid; gap: 11px; }
.drawer-loading .skeleton { min-height: 110px; }

/* Collapsed desktop navigation */

@media (min-width: 821px) {
.app-shell.sidebar-collapsed,
.app-shell.is-collapsed,
.app-shell:has(> .sidebar.collapsed) {
  grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar.collapsed,
.app-shell.sidebar-collapsed .sidebar,
.app-shell.is-collapsed .sidebar {
  padding-inline: 13px;
}

.sidebar.collapsed .sidebar-top,
.app-shell.sidebar-collapsed .sidebar-top,
.app-shell.is-collapsed .sidebar-top {
  justify-content: center;
  padding-inline: 0;
}

.sidebar.collapsed .brand > span:last-child,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-item > span:not(.nav-icon),
.sidebar.collapsed .nav-count,
.sidebar.collapsed .sidebar-insight,
.sidebar.collapsed .employee-focus-card,
.sidebar.collapsed .sidebar-user > span:nth-child(2),
.sidebar.collapsed .sidebar-user .icon-button,
.app-shell.sidebar-collapsed .sidebar .brand > span:last-child,
.app-shell.sidebar-collapsed .nav-label,
.app-shell.sidebar-collapsed .nav-item > span:not(.nav-icon),
.app-shell.sidebar-collapsed .nav-count,
.app-shell.sidebar-collapsed .sidebar-insight,
.app-shell.sidebar-collapsed .employee-focus-card,
.app-shell.sidebar-collapsed .sidebar-user > span:nth-child(2),
.app-shell.sidebar-collapsed .sidebar-user .icon-button,
.app-shell.is-collapsed .sidebar .brand > span:last-child,
.app-shell.is-collapsed .nav-label,
.app-shell.is-collapsed .nav-item > span:not(.nav-icon),
.app-shell.is-collapsed .nav-count,
.app-shell.is-collapsed .sidebar-insight,
.app-shell.is-collapsed .employee-focus-card,
.app-shell.is-collapsed .sidebar-user > span:nth-child(2),
.app-shell.is-collapsed .sidebar-user .icon-button {
  display: none;
}

.sidebar.collapsed .sidebar-collapse,
.app-shell.sidebar-collapsed .sidebar-collapse,
.app-shell.is-collapsed .sidebar-collapse {
  position: absolute;
  top: 25px;
  right: -14px;
  z-index: 2;
  color: var(--violet-700);
  border-color: #d7d1f5;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 7px 18px rgba(18, 22, 43, .16);
  transform: rotate(180deg);
}

.sidebar.collapsed .sidebar-collapse:hover,
.app-shell.sidebar-collapsed .sidebar-collapse:hover,
.app-shell.is-collapsed .sidebar-collapse:hover {
  color: var(--violet-700);
  background: var(--violet-50);
  transform: rotate(180deg) translateY(1px);
}

.sidebar.collapsed .primary-nav,
.app-shell.sidebar-collapsed .primary-nav,
.app-shell.is-collapsed .primary-nav {
  align-items: center;
}

.sidebar.collapsed .nav-item,
.app-shell.sidebar-collapsed .nav-item,
.app-shell.is-collapsed .nav-item {
  width: 46px;
  justify-content: center;
  padding-inline: 0;
}

.sidebar.collapsed .nav-item::before,
.app-shell.sidebar-collapsed .nav-item::before,
.app-shell.is-collapsed .nav-item::before {
  left: -14px;
}

.sidebar.collapsed .sidebar-user,
.app-shell.sidebar-collapsed .sidebar-user,
.app-shell.is-collapsed .sidebar-user {
  display: flex;
  justify-content: center;
}
}

.mobile-scrim {
  display: none;
  padding: 0;
  border: 0;
}

/* Responsive */

@media (max-width: 1180px) {
  :root { --sidebar-width: 248px; }

  .login-shell { grid-template-columns: minmax(500px, 1fr) minmax(420px, .82fr); }
  .login-story { padding-inline: 48px; }
  .login-copy h1 { font-size: clamp(46px, 5vw, 64px); }

  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .search-trigger { min-width: 190px; }
  .search-trigger kbd { display: none; }
}

@media (max-width: 960px) {
  .login-shell { grid-template-columns: 46% 54%; }
  .login-story { padding: 38px 34px 28px; }
  .login-copy { margin-block: 70px 32px; }
  .login-copy h1 { font-size: 47px; }
  .login-proof span:nth-child(3) { display: none; }
  .momentum-card { width: 100%; }

  .panel-grid,
  .dashboard-grid { grid-template-columns: 1fr; }

  .dashboard-hero { align-items: flex-start; flex-direction: column; }
  .hero-actions { width: 100%; }
}

@media (max-width: 820px) {
  :root { --topbar-height: 78px; }

  .app-page { overflow: hidden; }
  .app-shell { display: block; }

  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(292px, calc(100vw - 52px));
    transform: translateX(-105%);
    box-shadow: 20px 0 55px rgba(4, 7, 18, .3);
  }

  .sidebar.mobile-open,
  .sidebar.open,
  .sidebar.is-open,
  .app-shell.mobile-nav-open .sidebar,
  .app-shell.nav-open .sidebar,
  body.mobile-nav-open .sidebar,
  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-collapse { display: none; }

  .mobile-scrim {
    position: fixed;
    z-index: 25;
    inset: 0 0 0 min(292px, calc(100vw - 52px));
    display: block;
    visibility: hidden;
    background: rgba(7, 10, 22, .54);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity .25s ease, visibility .25s ease;
  }

  .mobile-scrim.show,
  .app-shell.mobile-nav-open .mobile-scrim,
  .app-shell.nav-open .mobile-scrim,
  body.mobile-nav-open .mobile-scrim,
  body.nav-open .mobile-scrim,
  .mobile-scrim.open,
  .mobile-scrim.is-open {
    visibility: visible;
    opacity: 1;
  }

  .workspace { height: 100vh; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding-inline: 18px; }
  .search-trigger { min-width: 42px; width: 42px; padding: 0; justify-content: center; }
  .search-trigger span:nth-child(2),
  .search-trigger kbd { display: none; }

  .content { padding: 22px 18px 44px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .login-shell { display: block; }
  .login-story { display: none; }
  .login-panel {
    min-height: 100svh;
    place-items: center;
    padding: 34px 24px 76px;
  }
  .login-company-footer { bottom: max(16px, env(safe-area-inset-bottom)); }
  .mobile-brand { display: inline-flex; margin-bottom: 46px; }
  .login-card { padding: 0; }
  .login-card h2 { font-size: 34px; }

  .dashboard-hero { min-height: 0; padding: 26px 23px; border-radius: 24px; }
  .hero-content h2,
  .hero-content h1 { font-size: 29px; }
  .hero-actions { flex-wrap: wrap; }

  .workflow-grid,
  .team-grid { grid-template-columns: 1fr; }
  .field-grid,
  .filter-panel-grid,
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid .detail-row:nth-last-child(2) { border-bottom-color: var(--pearl-200); }

  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar > div,
  .toolbar-group { width: 100%; }
  .toolbar input,
  .toolbar select { flex: 1 1 160px; }

  .panel { padding: 18px; }
  .panel-header { align-items: flex-start; flex-direction: column; }
  .panel-header .segmented-control { align-self: stretch; }
  .panel-header .segmented-control button { flex: 1; }

  .command-layer,
  .modal-layer { padding: 18px 12px; place-items: center; }
  .notification-layer { padding: calc(var(--topbar-height) - 2px) 12px 12px; }
  .notification-panel { width: min(100%, 430px); }
  .modal { max-height: calc(100svh - 24px); }
  .modal-body { max-height: calc(100svh - 110px); padding: 18px; }
  .detail-drawer { width: 100vw; border-radius: 0; }
  .detail-drawer > header { border-radius: 0; }
  .drawer-body { padding: 15px; }
}

@media (max-width: 560px) {
  :root { --topbar-height: 72px; }

  .topbar { gap: 10px; padding: 10px 14px; }
  .app-footer { min-height: 38px; padding-inline: 14px; font-size: 9px; }
  .searchable-select-option { min-height: 42px; font-size: 11px; }
  .searchable-select-options { max-height: min(246px, 42vh); }
  .topbar-left { gap: 9px; min-width: 0; }
  .topbar-actions { gap: 6px; }
  .topbar .icon-button { width: 38px; height: 38px; flex-basis: 38px; }
  .page-heading span { display: none; }
  .page-heading h1 { max-width: 42vw; font-size: 18px; }
  .search-trigger { display: none; }
  .create-button { width: 39px; min-width: 39px; padding: 0; }
  .create-button span:last-child { display: none; }

  .content { padding: 17px 13px 38px; }
  .view-stack { gap: 14px; }
  .dashboard-hero { padding: 23px 19px; }
  .hero-content h2,
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 12px; }
  .hero-actions .button { flex: 1; }

  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat-card { min-height: 125px; padding: 16px; }
  .metric-value,
  .stat-card > strong { font-size: 26px; }
  .stat-card > small,
  .stat-meta { line-height: 1.35; }

  .panel { padding: 15px; border-radius: 18px; }
  .panel-header { margin-bottom: 15px; }
  .pipeline-chart { min-height: 215px; gap: 7px; }

  .table-shell { margin-inline: 0; border-radius: 17px; }
  .data-table th,
  .data-table td { padding-inline: 13px; }

  .work-card,
  .team-card { padding: 17px; }

  .empty-state,
  .permission-state { min-height: 250px; padding: 28px 18px; }
  .assignee-form { gap: 15px; padding: 18px; }
  .assignee-workflow-card { grid-template-columns: 38px minmax(0, 1fr); padding: 13px; }
  .assignee-workflow-icon { width: 38px; height: 38px; }
  .assignee-picker-heading { align-items: flex-start; }
  .assignee-picker { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .filter-panel-actions { align-items: stretch; flex-direction: column-reverse; }
  .filter-panel-actions .button { width: 100%; }

  .detail-row { grid-template-columns: 1fr; gap: 3px; }
  .toast-region { right: 12px; bottom: 12px; width: calc(100vw - 24px); }
  .create-menu { top: 62px; right: 13px; }
}

@media (max-width: 390px) {
  .login-panel { padding: 28px 20px; }
  .mobile-brand { margin-bottom: 38px; }
  .login-card h2 { font-size: 31px; }
  .login-subtitle { font-size: 13px; }
  .login-form { margin-top: 26px; }
  .demo-divider { margin-top: 24px; }
  .demo-account { padding: 10px; }

  .page-heading h1 { max-width: 40vw; }
  .notification-button { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 14px; }
  .metric-value,
  .stat-card > strong { font-size: 23px; }
  .segmented-control { width: 100%; overflow: auto; }
  .segmented-control button { flex: 1 0 auto; }
}

/* Interaction and accessibility hardening */

.command-input:focus-within {
  box-shadow: inset 0 0 0 2px rgba(124, 105, 242, .45);
}

.icon-button.bordered.active {
  color: var(--violet-700);
  border-color: #c8c0f4;
  background: var(--violet-50);
}

.team-card-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px 9px;
}

.availability.offline { color: var(--ink-500); }
.availability.offline i { background: var(--ink-300); box-shadow: 0 0 0 4px var(--pearl-200); }

@media (min-width: 821px) {
  .sidebar.collapsed { overflow: visible; }

  .sidebar.collapsed .sidebar-collapse,
  .app-shell.sidebar-collapsed .sidebar-collapse,
  .app-shell.is-collapsed .sidebar-collapse {
    transform: none;
  }

  .sidebar.collapsed .sidebar-collapse:hover,
  .app-shell.sidebar-collapsed .sidebar-collapse:hover,
  .app-shell.is-collapsed .sidebar-collapse:hover {
    transform: translateY(1px);
  }
}

@media (max-width: 820px) {
  .sidebar,
  .workspace { height: 100vh; height: 100dvh; }
  .sidebar { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .detail-drawer { min-height: 100vh; min-height: 100dvh; }
}

@media (max-width: 560px) {
  .topbar .icon-button,
  .mobile-menu,
  .notification-button,
  .create-button { min-width: 42px; min-height: 42px; }

  .notification-button { display: inline-grid; }
  .segmented-control button,
  .filter-chip { min-height: 42px; }
  .board-card-top .icon-button,
  .work-card-top .icon-button { width: 40px; height: 40px; }
  .workflow-card-priority { min-height: 42px; }
  .workflow-card-priority > span:first-child { font-size: 8.5px; }
  .text-button { min-height: 34px; }

  .employee-hero {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }

  .employee-hero h2 { font-size: 28px; }
  .employee-hero p { font-size: 12px; }
  .focus-ring { width: 88px; height: 88px; }
  .quick-stat-row { grid-template-columns: 1fr; }
  .quick-stat-row article { min-height: 64px; }
  .team-card footer { align-items: flex-start; flex-direction: column; }
  .team-card-actions { width: 100%; justify-content: flex-start; }
}

.team-stats small,
.team-card footer,
.work-card-footer,
.progress-meta { color: var(--ink-500); font-size: max(10px, .625rem); }

/* Employee access controls and read-only workflow states */

.workspace-access {
  min-width: 0;
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 18px;
  border: 1px solid #ded9f1;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(124, 105, 242, .08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 246, 253, .92));
  box-shadow: inset 0 1px rgba(255, 255, 255, .85);
}

.workspace-access > legend {
  padding: 0 8px;
  color: var(--ink-800);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.workspace-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.workspace-access-head strong,
.workspace-access-head small {
  display: block;
}

.workspace-access-head strong {
  color: var(--ink-800);
  font-size: 11px;
}

.workspace-access-head small {
  max-width: 600px;
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.55;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.permission-option {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--pearl-300);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}

.permission-option:hover {
  border-color: #c8c0f0;
  background: var(--white);
  box-shadow: var(--shadow-xs);
  transform: translateY(-1px);
}

.permission-option:has(.permission-switch input:checked) {
  border-color: #c5bcf4;
  background: linear-gradient(145deg, #fbfaff, var(--violet-50));
  box-shadow: 0 7px 20px rgba(92, 73, 223, .07);
}

.permission-copy {
  min-width: 0;
}

.permission-copy strong,
.permission-copy small {
  display: block;
}

.permission-copy strong {
  color: var(--ink-800);
  font-size: 10px;
}

.permission-copy small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8.5px;
  line-height: 1.45;
}

.permission-switch {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  flex: 0 0 38px;
}

.permission-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

.permission-switch > span {
  position: absolute;
  inset: 0;
  border: 1px solid #cbc8d7;
  border-radius: 999px;
  background: #e5e3eb;
  box-shadow: inset 0 1px 3px rgba(18, 22, 41, .08);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.permission-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(19, 24, 45, .2);
  transition: transform .24s var(--ease);
  content: "";
}

.permission-switch input:checked + span {
  border-color: var(--violet-600);
  background: linear-gradient(135deg, var(--violet-600), #7c69f2);
  box-shadow: 0 5px 13px rgba(92, 73, 223, .2);
}

.permission-switch input:checked + span::after {
  transform: translateX(16px);
}

.permission-switch input:focus-visible + span {
  outline: 2px solid var(--violet-500);
  outline-offset: 3px;
}

.access-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.workspace-access .access-role-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 68px;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--pearl-300);
  border-radius: 13px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(28, 24, 53, .025);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}

.workspace-access .access-role-card:hover {
  border-color: #c8c0f0;
  background: var(--white);
  transform: translateY(-1px);
}

.workspace-access .access-role-card:has(input:checked) {
  border-color: #9f91ef;
  background: linear-gradient(145deg, #fff, #f7f5ff);
  box-shadow: 0 0 0 2px rgba(109, 93, 251, .07), 0 7px 18px rgba(74, 58, 175, .08);
}

.workspace-access .access-role-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.workspace-access .access-role-card:has(input:focus-visible) {
  outline: 2px solid var(--violet-500);
  outline-offset: 3px;
}

.workspace-access .access-role-card strong,
.workspace-access .access-role-card small {
  display: block;
}

.workspace-access .access-role-card strong {
  color: var(--ink-850);
  font-size: 10px;
}

.workspace-access .access-role-card small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.4;
}

.workspace-access .access-role-card i {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  align-self: center;
  justify-self: center;
  border: 1px solid #d4d0df;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 1px 1px rgba(30, 25, 57, .03);
  flex: 0 0 20px;
  font-size: 0;
  font-style: normal;
  line-height: 1;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.workspace-access .access-role-card i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet-600);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.45);
  transform-origin: center;
  transition: opacity .18s ease, transform .18s var(--ease);
  content: "";
}

.workspace-access .access-role-card:has(input:checked) i {
  border-color: var(--violet-600);
  box-shadow: 0 0 0 3px rgba(109, 93, 251, .1);
}

.workspace-access .access-role-card:has(input:checked) i::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.role-guidance,
.permission-footnote {
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid #e1ddf3;
  border-radius: 10px;
  color: var(--ink-600);
  background: rgba(248, 247, 253, .86);
  font-size: 8.5px;
  line-height: 1.55;
}

.permission-footnote {
  margin: 10px 0 0;
}

.permission-matrix {
  overflow: hidden;
  border: 1px solid #dedbe8;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
}

.permission-matrix-head,
.permission-matrix-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) repeat(3, 76px);
  align-items: center;
}

.permission-matrix-head {
  min-height: 34px;
  color: var(--ink-500);
  background: #f4f3f8;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.permission-matrix-head span {
  text-align: center;
}

.permission-matrix-head span:first-child {
  padding-left: 14px;
  text-align: left;
}

.permission-matrix-row {
  min-height: 58px;
  border-top: 1px solid #ebe9f0;
}

.permission-matrix-row > div:first-child {
  min-width: 0;
  padding: 10px 14px;
}

.permission-matrix-row strong,
.permission-matrix-row small {
  display: block;
}

.permission-matrix-row strong {
  color: var(--ink-800);
  font-size: 9.5px;
}

.permission-matrix-row small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 7.5px;
  line-height: 1.35;
}

.workspace-access .matrix-toggle {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  justify-self: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background-color .18s ease;
}

.workspace-access .matrix-toggle::before {
  position: absolute;
  width: 21px;
  height: 21px;
  border: 1.5px solid #d3cfdd;
  border-radius: 7px;
  background: var(--white);
  box-shadow: inset 0 1px 1px rgba(30, 25, 57, .025);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s var(--ease);
  content: "";
}

.workspace-access .matrix-toggle::after {
  position: absolute;
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  opacity: 0;
  transform: rotate(45deg) scale(.6);
  transition: opacity .16s ease, transform .18s var(--ease);
  content: "";
}

.workspace-access .matrix-toggle:hover {
  background: rgba(109, 93, 251, .055);
}

.workspace-access .matrix-toggle:hover::before {
  border-color: #b8afe8;
}

.workspace-access .matrix-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.workspace-access .matrix-toggle > span {
  display: none;
}

.workspace-access .matrix-toggle:has(input:checked)::before {
  border-color: var(--violet-600);
  background: linear-gradient(135deg, var(--violet-600), #7b67ee);
  box-shadow: 0 3px 8px rgba(92, 73, 223, .2);
  transform: scale(1.02);
}

.workspace-access .matrix-toggle:has(input:checked)::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.workspace-access .matrix-toggle:has(input:focus-visible) {
  outline: 2px solid var(--violet-500);
  outline-offset: 3px;
}

.workspace-access .matrix-toggle.locked {
  opacity: .66;
  cursor: not-allowed;
}

.workspace-access .matrix-toggle.locked:hover {
  background: transparent;
}

.matrix-na {
  justify-self: center;
  color: var(--ink-300);
  font-size: 11px;
}

.sensitive-access-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e2ddec;
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(124, 105, 242, .06), transparent 38%),
    rgba(255, 255, 255, .82);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.sensitive-access-card:has(input:checked) {
  border-color: #bdb3f3;
  background:
    radial-gradient(circle at 100% 0, rgba(124, 105, 242, .13), transparent 42%),
    linear-gradient(135deg, #fbfaff, #f5f3ff);
  box-shadow: 0 8px 20px rgba(75, 62, 150, .07);
}

.sensitive-access-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #d8d1f7;
  border-radius: 12px;
  color: var(--violet-700);
  background: var(--white);
  font-size: 15px;
  font-weight: 800;
  box-shadow: var(--shadow-xs);
}

.sensitive-access-copy {
  min-width: 0;
}

.sensitive-access-copy > strong,
.sensitive-access-copy > small {
  display: block;
}

.sensitive-access-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
  color: var(--ink-500);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sensitive-access-eyebrow b {
  padding: 3px 6px;
  border-radius: 99px;
  color: var(--violet-700);
  background: var(--violet-100);
  font-size: 6.5px;
  letter-spacing: .06em;
}

.sensitive-access-copy > strong {
  color: var(--ink-900);
  font-size: 10.5px;
}

.sensitive-access-copy > small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.5;
}

.workspace-access .sensitive-access-toggle {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 58px;
  padding: 3px;
  cursor: pointer;
}

.workspace-access .sensitive-access-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.workspace-access .sensitive-access-toggle > span {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  border: 1px solid #d1cddd;
  border-radius: 99px;
  background: #eeeef3;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.workspace-access .sensitive-access-toggle > span::after {
  position: absolute;
  top: 50%;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(42, 35, 78, .18);
  transform: translateY(-50%);
  transition: left .22s var(--ease), box-shadow .2s ease;
  content: "";
}

.workspace-access .sensitive-access-toggle input:checked + span {
  border-color: var(--violet-600);
  background: linear-gradient(135deg, #8b72fa, #6247e2);
  box-shadow: 0 5px 12px rgba(98, 71, 226, .2);
}

.workspace-access .sensitive-access-toggle input:checked + span::after {
  left: 20px;
  box-shadow: 0 2px 7px rgba(42, 35, 78, .25);
}

.workspace-access .sensitive-access-toggle:has(input:focus-visible) {
  border-radius: 10px;
  outline: 2px solid var(--violet-500);
  outline-offset: 2px;
}

.workspace-access .sensitive-access-toggle em {
  color: var(--ink-500);
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.workspace-access .sensitive-access-toggle em.allowed {
  color: var(--violet-700);
}

.monetary-access-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 800;
}

.monetary-access-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-300);
  box-shadow: 0 0 0 4px var(--pearl-200);
}

.monetary-access-status.allowed {
  color: var(--mint-600);
}

.monetary-access-status.allowed i {
  background: var(--mint-500);
  box-shadow: 0 0 0 4px var(--mint-100);
}

.access-summary {
  display: grid;
  gap: 9px;
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #ded9f1;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfaff, #f6f9fb);
}

.access-summary > strong {
  color: var(--ink-800);
  font-size: 10px;
}

.access-summary > p {
  color: var(--ink-500);
  font-size: 8.5px;
  line-height: 1.5;
}

.permission-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.permission-chip {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid #d6cff8;
  border-radius: 999px;
  color: var(--violet-700);
  background: var(--violet-50);
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.permission-chip::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet-500);
  content: "";
}

.permission-chip.muted {
  color: var(--ink-500);
  border-color: var(--pearl-300);
  background: var(--pearl-100);
}

.permission-chip.muted::before {
  background: var(--ink-300);
}

.workflow-readonly,
.readonly-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #d9dce5;
  border-radius: 12px;
  color: var(--ink-500);
  background: #f7f8fa;
  font-size: 8.5px;
  line-height: 1.5;
}

.workflow-readonly::before,
.readonly-note::before {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 7px;
  color: var(--ink-600);
  background: var(--pearl-200);
  font-size: 10px;
  font-weight: 800;
  content: "◇";
}

.workflow-readonly strong,
.readonly-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-700);
  font-size: 9px;
}

.read-only-control {
  pointer-events: none;
}

.checklist-item.readonly {
  color: var(--ink-500);
  background: var(--pearl-100);
  cursor: default;
}

.checklist-item.readonly input {
  pointer-events: none;
}

@media (max-width: 720px) {
  .permission-grid {
    grid-template-columns: 1fr;
  }

  .access-role-grid {
    grid-template-columns: 1fr;
  }

  .permission-matrix-head,
  .permission-matrix-row {
    grid-template-columns: minmax(130px, 1fr) repeat(3, 54px);
  }
}

@media (max-width: 560px) {
  .workspace-access {
    padding: 15px;
  }

  .workspace-access-head {
    flex-direction: column;
    gap: 7px;
  }

  .sensitive-access-card {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
  }

  .sensitive-access-icon {
    width: 36px;
    height: 36px;
  }

  .workspace-access .sensitive-access-toggle {
    grid-column: 2;
    justify-items: start;
  }

  .permission-option {
    min-height: 62px;
    padding: 12px;
  }

  .permission-matrix-head,
  .permission-matrix-row {
    grid-template-columns: minmax(112px, 1fr) repeat(3, 44px);
  }

  .permission-matrix-head span:first-child,
  .permission-matrix-row > div:first-child {
    padding-left: 10px;
    padding-right: 8px;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --ink-500: #4a5364;
    --ink-400: #626b7c;
    --pearl-300: #c9c6d3;
  }

  .nav-item { color: rgba(255, 255, 255, .78); }
  .login-copy > p { color: rgba(255, 255, 255, .78); }
  .status-pill { border-width: 2px; }
}
