:root {
  --bg: #0d0c0a;
  --bg-soft: #15130f;
  --panel: #181611;
  --panel-2: #1f1c16;
  --line: rgba(255, 244, 217, 0.1);
  --line-strong: rgba(255, 244, 217, 0.18);
  --text: #f4eddf;
  --muted: #9d968a;
  --dim: #6b665e;
  --orange: #ff5a20;
  --orange-soft: #ff7a36;
  --gold: #e7b84b;
  --green: #5ac59b;
  --red: #ff6b5f;
  --cream: #efe4ce;
  --display: "Avenir Next Condensed", "DIN Condensed", "STHeiti", sans-serif;
  --body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --serif: "Songti SC", "STSong", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 12%, rgba(255, 94, 26, 0.08), transparent 27rem),
    linear-gradient(180deg, #0d0c0a 0%, #11100d 100%);
  font-family: var(--body);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

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

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

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(239, 228, 206, 0.15);
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  display: flex;
  width: 244px;
  flex-direction: column;
  padding: 30px 18px 22px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(23, 21, 17, 0.96), rgba(13, 12, 10, 0.98)),
    radial-gradient(circle at 20% 10%, rgba(255, 90, 32, 0.1), transparent 18rem);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 31px;
}

.brand-mark {
  position: relative;
  width: 35px;
  height: 35px;
  overflow: hidden;
  border: 1px solid rgba(255, 122, 54, 0.6);
  border-radius: 8px;
  background: #24150f;
  box-shadow: inset 0 0 20px rgba(255, 90, 32, 0.13);
}

.brand-mark::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
  content: "";
}

.brand-mark span {
  position: absolute;
  left: 8px;
  width: 18px;
  height: 2px;
  transform: rotate(-45deg);
  border-radius: 2px;
  background: var(--orange);
}

.brand-mark span:first-child {
  top: 14px;
}

.brand-mark span:last-child {
  top: 21px;
  left: 11px;
  width: 13px;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.8px;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 2px;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: 180ms ease;
}

.nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.nav-item.active {
  color: #fff5e8;
  border-color: rgba(255, 101, 36, 0.22);
  background: linear-gradient(90deg, rgba(255, 83, 24, 0.17), rgba(255, 83, 24, 0.035));
  box-shadow: inset 3px 0 0 var(--orange);
}

.nav-item > span:nth-child(2) {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.nav-item i {
  display: grid;
  min-width: 20px;
  height: 19px;
  place-items: center;
  border-radius: 6px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.045);
  font-size: 10px;
  font-style: normal;
}

.nav-item.active i {
  color: var(--orange-soft);
  background: rgba(255, 90, 32, 0.12);
}

.nav-item i.warning-count {
  color: #ffb1a9;
  background: rgba(255, 72, 58, 0.13);
}

.nav-icon {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
}

.nav-icon svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.nav-item:first-child .nav-icon svg {
  fill: currentColor;
  stroke: none;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(90, 197, 155, 0.75);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}

.sync-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.sync-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.sync-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(90, 197, 155, 0.08);
}

.sync-card p {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 10px;
}

.sync-track {
  height: 3px;
  margin-bottom: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.sync-track span {
  display: block;
  width: 88%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), #84e0bd);
}

.sync-card small {
  color: var(--dim);
  font-size: 9px;
}

.owner-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.owner-card:hover {
  background: rgba(255, 255, 255, 0.035);
}

.owner-card img {
  width: 35px;
  height: 35px;
  border: 1px solid rgba(255, 111, 48, 0.38);
  border-radius: 8px;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.8) contrast(1.04);
}

.owner-card span {
  flex: 1;
}

.owner-card strong,
.owner-card small {
  display: block;
}

.owner-card strong {
  font-size: 12px;
}

.owner-card small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 9px;
}

.owner-card em {
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
}

.main-area {
  min-height: 100vh;
  margin-left: 244px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  height: 78px;
  align-items: center;
  padding: 0 36px;
  border-bottom: 1px solid rgba(255, 244, 217, 0.07);
  background: rgba(13, 12, 10, 0.78);
  backdrop-filter: blur(18px);
}

.date-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.date-block span {
  color: var(--orange-soft);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 1.4px;
}

.date-block strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.icon-button {
  position: relative;
  display: flex;
  height: 37px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: 150ms ease;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.icon-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.icon-button kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  background: transparent;
  font-size: 9px;
}

.notification-button {
  width: 38px;
  padding: 0;
  justify-content: center;
}

.notification-button span {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--bg);
  border-radius: 50%;
  background: var(--orange);
}

.primary-top-button,
.employee-task-button,
.modal-submit {
  height: 38px;
  padding: 0 17px;
  border: 1px solid #ff7238;
  border-radius: 8px;
  color: #fff7ec;
  background: linear-gradient(135deg, #ff4f18, #e93f0c);
  box-shadow: 0 8px 24px rgba(255, 73, 17, 0.16), inset 0 1px rgba(255, 255, 255, 0.18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: 180ms ease;
}

.primary-top-button:hover,
.employee-task-button:hover,
.modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 27px rgba(255, 73, 17, 0.26), inset 0 1px rgba(255, 255, 255, 0.18);
}

.primary-top-button span {
  margin-right: 5px;
  font-size: 15px;
  font-weight: 400;
}

.mobile-menu {
  display: none;
}

.view {
  display: none;
  max-width: 1460px;
  margin: 0 auto;
  padding: 28px 36px 60px;
}

.view.active {
  display: block;
  animation: viewIn 350ms ease both;
}

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

.stagger {
  animation: riseIn 600ms cubic-bezier(0.22, 0.8, 0.24, 1) both;
}

.stagger:nth-child(2) {
  animation-delay: 90ms;
}

.stagger:nth-child(3) {
  animation-delay: 160ms;
}

.stagger:nth-child(4) {
  animation-delay: 230ms;
}

@keyframes riseIn {
  from {
    transform: translateY(16px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-panel {
  position: relative;
  display: grid;
  min-height: 338px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.72fr);
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(105deg, rgba(255, 87, 26, 0.075), transparent 48%),
    radial-gradient(circle at 20% 0%, rgba(255, 157, 88, 0.045), transparent 24rem),
    #171510;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.2);
}

.hero-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, black, transparent 76%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 35px 41px 30px;
}

.eyebrow,
.section-kicker {
  color: var(--orange-soft);
  font-family: var(--display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow span {
  width: 19px;
  height: 1px;
  background: var(--orange);
  box-shadow: 0 0 7px var(--orange);
}

.hero-copy h1 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 49px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 1px;
}

.hero-copy h1 span {
  color: var(--orange-soft);
}

.hero-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.command-box {
  position: relative;
  display: flex;
  max-width: 640px;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(255, 107, 43, 0.35);
  border-radius: 12px;
  background: rgba(7, 7, 6, 0.5);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 0 0 4px rgba(255, 90, 32, 0.025);
  transition: 180ms ease;
}

.command-box:focus-within {
  border-color: rgba(255, 107, 43, 0.68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 0 0 4px rgba(255, 90, 32, 0.055);
}

.command-orb {
  display: flex;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9b62, #ff4d13 55%, #79210a);
  box-shadow: 0 0 20px rgba(255, 82, 18, 0.25);
}

.command-orb span {
  width: 2px;
  border-radius: 2px;
  background: #fff3e7;
  animation: waveform 1.2s ease-in-out infinite;
}

.command-orb span:nth-child(1) {
  height: 6px;
}

.command-orb span:nth-child(2) {
  height: 11px;
  animation-delay: 0.15s;
}

.command-orb span:nth-child(3) {
  height: 7px;
  animation-delay: 0.3s;
}

@keyframes waveform {
  50% {
    transform: scaleY(0.5);
  }
}

.command-box textarea {
  width: 100%;
  min-height: 42px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
  line-height: 1.6;
}

.command-box textarea::placeholder,
.search-field input::placeholder,
.knowledge-search input::placeholder,
.compose-modal textarea::placeholder {
  color: var(--dim);
}

.command-box > button {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--orange);
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(255, 74, 17, 0.24);
}

.command-box > button svg {
  width: 18px;
  fill: none;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.quick-intents {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.quick-intents button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  font-size: 9px;
  transition: 160ms ease;
}

.quick-intents button:hover {
  color: var(--orange-soft);
  border-color: rgba(255, 90, 32, 0.25);
}

.hero-portrait {
  position: relative;
  min-height: 338px;
  overflow: hidden;
  border-left: 1px solid var(--line);
}

.hero-portrait::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #171510 0%, transparent 35%),
    linear-gradient(0deg, rgba(10, 8, 6, 0.9), transparent 52%);
  content: "";
}

.hero-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 29%;
  filter: saturate(0.67) sepia(0.09) contrast(1.06) brightness(0.82);
}

.portrait-halo {
  position: absolute;
  top: 5%;
  right: 10%;
  z-index: 2;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 103, 40, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(255, 68, 0, 0.14), inset 0 0 70px rgba(255, 68, 0, 0.07);
}

.portrait-halo::after {
  position: absolute;
  inset: 17px;
  border: 1px dashed rgba(255, 151, 96, 0.22);
  border-radius: 50%;
  content: "";
  animation: spin 18s linear infinite;
}

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

.portrait-note {
  position: absolute;
  right: 23px;
  bottom: 22px;
  left: 23px;
  z-index: 3;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  background: rgba(16, 13, 9, 0.65);
  backdrop-filter: blur(8px);
}

.portrait-note span {
  color: var(--orange-soft);
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 1.8px;
}

.portrait-note strong {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 500;
}

.metric-strip {
  display: grid;
  margin: 15px 0;
  overflow: hidden;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.metric-strip article {
  display: grid;
  grid-template-columns: 37px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-icon {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 9px;
  font-family: var(--serif);
  font-size: 11px;
}

.metric-icon.orange {
  color: var(--orange-soft);
  background: rgba(255, 90, 32, 0.07);
}

.metric-icon.gold {
  color: var(--gold);
  background: rgba(231, 184, 75, 0.07);
}

.metric-icon.red {
  color: var(--red);
  background: rgba(255, 107, 95, 0.07);
}

.metric-icon.green {
  color: var(--green);
  background: rgba(90, 197, 155, 0.07);
  font-family: var(--display);
}

.metric-strip article > div:nth-child(2) {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-strip article > div:nth-child(2) span {
  color: var(--muted);
  font-size: 10px;
}

.metric-strip article > div:nth-child(2) strong {
  font-family: var(--display);
  font-size: 27px;
  line-height: 1;
}

.metric-strip article > small {
  color: var(--dim);
  font-size: 8px;
  white-space: nowrap;
}

.metric-strip article.metric-attention > small {
  color: #e28a82;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(350px, 0.8fr);
  gap: 15px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 36%),
    var(--panel);
}

.focus-panel,
.employee-mini,
.pipeline-panel,
.chart-panel,
.review-score,
.published-table,
.employee-stats,
.promotion-card,
.workflow-card,
.recent-assets {
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-head h2 {
  margin: 5px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.text-button {
  border: 0;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.text-button:hover {
  color: var(--orange-soft);
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.focus-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
}

.focus-item:hover {
  transform: translateX(3px);
  border-color: rgba(255, 91, 32, 0.24);
  background: rgba(255, 90, 32, 0.035);
}

.priority {
  display: grid;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 7px;
  font-family: var(--display);
  font-size: 8px;
}

.priority.p0 {
  color: #ff8a5b;
  background: rgba(255, 90, 32, 0.11);
}

.priority.p1 {
  color: var(--gold);
  background: rgba(231, 184, 75, 0.09);
}

.focus-main {
  flex: 1;
}

.focus-main strong,
.focus-main small {
  display: block;
}

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

.focus-main small {
  margin-top: 5px;
  color: var(--dim);
  font-size: 8px;
}

.focus-main small b {
  color: var(--muted);
  font-weight: 500;
}

.focus-action {
  padding: 5px 9px;
  border: 1px solid rgba(255, 99, 39, 0.2);
  border-radius: 6px;
  color: var(--orange-soft);
  background: rgba(255, 90, 32, 0.06);
  font-size: 8px;
}

.focus-action.muted {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.probation-badge {
  padding: 4px 7px;
  border: 1px solid rgba(231, 184, 75, 0.18);
  border-radius: 5px;
  color: var(--gold);
  background: rgba(231, 184, 75, 0.05);
  font-size: 8px;
}

.employee-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
}

.ai-avatar {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid rgba(255, 101, 37, 0.33);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 94, 30, 0.2), transparent),
    #241711;
  font-family: var(--serif);
  font-size: 19px;
  box-shadow: inset 0 0 20px rgba(255, 90, 32, 0.06);
}

.ai-avatar i {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px rgba(90, 197, 155, 0.55);
}

.employee-identity strong {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 1.2px;
}

.employee-identity p {
  max-width: 260px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.score-line {
  display: grid;
  margin: 17px 0 15px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.score-line > div {
  padding: 11px 8px;
  border-right: 1px solid var(--line);
}

.score-line > div:first-child {
  padding-left: 0;
}

.score-line > div:last-child {
  border-right: 0;
}

.score-line span,
.score-line strong {
  display: block;
}

.score-line span {
  color: var(--dim);
  font-size: 8px;
}

.score-line strong {
  margin-top: 4px;
  font-family: var(--display);
  font-size: 16px;
}

.score-line strong.dim {
  color: var(--dim);
}

.promotion-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
}

.promotion-label span {
  color: var(--muted);
}

.promotion-label strong {
  color: var(--orange-soft);
}

.progress {
  height: 4px;
  margin: 7px 0;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ff9461);
  box-shadow: 0 0 12px rgba(255, 90, 32, 0.4);
}

.promotion small {
  color: var(--dim);
  font-size: 8px;
}

.secondary-button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 9px;
  transition: 150ms ease;
}

.secondary-button:hover {
  color: var(--text);
  border-color: rgba(255, 111, 49, 0.3);
}

.employee-mini > .secondary-button {
  width: 100%;
  margin-top: 15px;
}

.pipeline-panel {
  margin-top: 15px;
}

.legend {
  display: flex;
  gap: 12px;
  color: var(--dim);
  font-size: 8px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4a463f;
}

.legend i.legend-orange {
  background: var(--orange);
}

.pipeline {
  display: grid;
  align-items: center;
  margin-top: 20px;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
}

.pipeline-node {
  position: relative;
  display: grid;
  min-width: 88px;
  place-items: center;
  gap: 3px;
  text-align: center;
}

.pipeline-node span {
  color: var(--dim);
  font-family: var(--display);
  font-size: 8px;
}

.pipeline-node strong {
  font-size: 10px;
}

.pipeline-node b {
  display: grid;
  width: 25px;
  height: 25px;
  margin-top: 4px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  background: var(--panel-2);
}

.pipeline-node.active strong,
.pipeline-node.active b {
  color: var(--orange-soft);
}

.pipeline-node.active b {
  border-color: rgba(255, 90, 32, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 90, 32, 0.06);
}

.pipeline-node.attention b {
  color: var(--red);
  border-color: rgba(255, 107, 95, 0.3);
}

.pipeline-line {
  height: 1px;
  background: var(--line);
}

.pipeline-line.active {
  background: linear-gradient(90deg, var(--orange), rgba(255, 90, 32, 0.32));
}

.pipeline-line.partial {
  background: linear-gradient(90deg, rgba(255, 90, 32, 0.32), var(--line));
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 2px 25px;
}

.page-heading h1 {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.15;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
  padding: 11px;
}

.search-field {
  display: flex;
  min-width: 265px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
}

.search-field svg {
  width: 15px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.7;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 10px;
}

.filter-chips {
  display: flex;
  gap: 5px;
  margin-left: auto;
}

.filter-chips button {
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: var(--orange-soft);
  border-color: rgba(255, 90, 32, 0.16);
  background: rgba(255, 90, 32, 0.06);
}

.view-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
}

.view-switch span {
  padding: 3px 5px;
  color: var(--dim);
  font-size: 11px;
}

.view-switch span.active {
  border-radius: 4px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.kanban-board {
  display: grid;
  align-items: start;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  overflow-x: auto;
}

.kanban-column {
  min-height: 570px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.014);
}

.kanban-column.featured-column {
  border-color: rgba(255, 90, 32, 0.11);
  background: rgba(255, 90, 32, 0.015);
}

.kanban-column > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 3px 12px;
}

.kanban-column > header span {
  font-size: 10px;
  font-weight: 700;
}

.kanban-column > header b {
  display: grid;
  min-width: 19px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.045);
  font-family: var(--display);
  font-size: 8px;
}

.kanban-column > header button {
  margin-left: auto;
  border: 0;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
}

.content-card {
  position: relative;
  margin-bottom: 9px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent 42%),
    #191713;
  cursor: pointer;
  transition: 180ms ease;
}

.content-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 108, 44, 0.28);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.content-card.hidden {
  display: none;
}

.content-card h3 {
  margin: 10px 0 7px;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.55;
}

.content-card p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.card-tag,
.mini-tag {
  display: inline-flex;
  padding: 3px 6px;
  border: 1px solid;
  border-radius: 5px;
  font-size: 7px;
  font-style: normal;
}

.card-tag.opinion,
.mini-tag.opinion {
  color: #ff9970;
  border-color: rgba(255, 90, 32, 0.2);
  background: rgba(255, 90, 32, 0.06);
}

.card-tag.knowledge,
.mini-tag.knowledge {
  color: #e5bc64;
  border-color: rgba(229, 188, 100, 0.18);
  background: rgba(229, 188, 100, 0.06);
}

.card-tag.process,
.mini-tag.process {
  color: #74cbb0;
  border-color: rgba(116, 203, 176, 0.18);
  background: rgba(116, 203, 176, 0.05);
}

.content-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 8px;
}

.content-card footer i {
  color: var(--muted);
  font-style: normal;
}

.card-cover {
  display: grid;
  height: 110px;
  margin: -13px -13px 13px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.warm-cover {
  position: relative;
  background:
    radial-gradient(circle at 72% 31%, rgba(255, 148, 90, 0.3), transparent 8rem),
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.02) 9px 10px),
    #29150d;
}

.warm-cover::before,
.warm-cover::after {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(255, 91, 31, 0.26);
  border-radius: 50%;
  content: "";
}

.warm-cover::after {
  width: 70px;
  height: 70px;
  border-style: dashed;
}

.warm-cover span {
  position: relative;
  z-index: 2;
  transform: rotate(-4deg);
  color: #ffbd90;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 5px 14px #000;
}

.card-meta {
  display: flex;
  gap: 9px;
  margin-bottom: 11px;
  color: var(--dim);
  font-size: 8px;
}

.ai-working {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
}

.ai-working i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.data-missing {
  margin: 10px 0;
  padding: 7px 8px;
  border: 1px dashed rgba(255, 107, 95, 0.2);
  border-radius: 6px;
  color: #c7827b;
  background: rgba(255, 107, 95, 0.035);
  font-size: 8px;
}

.empty-column {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--dim);
  text-align: center;
}

.empty-column div {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(90, 197, 155, 0.18);
  border-radius: 50%;
  color: var(--green);
  background: rgba(90, 197, 155, 0.04);
}

.empty-column strong {
  color: var(--muted);
  font-size: 10px;
}

.empty-column p {
  margin: 0;
  font-size: 8px;
}

.knowledge-search {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-color: rgba(255, 95, 31, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 90, 32, 0.07), transparent 48%),
    var(--panel);
}

.search-spark {
  display: grid;
  width: 41px;
  height: 41px;
  place-items: center;
  border: 1px solid rgba(255, 99, 34, 0.25);
  border-radius: 10px;
  color: var(--orange-soft);
  background: rgba(255, 90, 32, 0.07);
}

.knowledge-search > div {
  flex: 1;
}

.knowledge-search label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
}

.knowledge-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-family: var(--serif);
  font-size: 12px;
}

.knowledge-search button {
  padding: 8px 17px;
  border: 1px solid rgba(255, 90, 32, 0.25);
  border-radius: 7px;
  color: var(--orange-soft);
  background: rgba(255, 90, 32, 0.06);
  cursor: pointer;
  font-size: 9px;
}

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

.asset-card {
  position: relative;
  min-height: 210px;
  padding: 21px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.03), transparent 9rem),
    var(--panel);
  transition: 180ms ease;
}

.asset-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.asset-card.accent {
  border-color: rgba(255, 91, 31, 0.2);
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 116, 52, 0.13), transparent 10rem),
    linear-gradient(145deg, rgba(255, 90, 32, 0.05), transparent),
    var(--panel);
}

.asset-number {
  position: absolute;
  top: 15px;
  right: 17px;
  color: rgba(239, 228, 206, 0.15);
  font-family: var(--display);
  font-size: 39px;
  font-weight: 700;
}

.asset-symbol {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--orange-soft);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--serif);
}

.asset-card h3 {
  margin: 18px 0 7px;
  font-family: var(--serif);
  font-size: 15px;
}

.asset-card p {
  min-height: 35px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.65;
}

.asset-card button {
  margin-top: 16px;
  padding: 0;
  border: 0;
  color: var(--dim);
  background: transparent;
  cursor: pointer;
  font-size: 8px;
}

.asset-card button:hover {
  color: var(--orange-soft);
}

.asset-list {
  display: grid;
  margin-top: 15px;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

.asset-list button {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 13px 10px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.asset-list button:nth-child(even) {
  border-right: 0;
}

.file-icon {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 7px;
  color: #bda98a;
  background: rgba(189, 169, 138, 0.08);
  font-family: var(--serif);
  font-size: 10px;
}

.file-icon.orange-file {
  color: var(--orange-soft);
  background: rgba(255, 90, 32, 0.08);
}

.file-icon.green-file {
  color: var(--green);
  background: rgba(90, 197, 155, 0.08);
}

.file-icon.gold-file {
  color: var(--gold);
  background: rgba(231, 184, 75, 0.08);
}

.asset-list strong {
  align-self: end;
  font-size: 10px;
}

.asset-list small {
  align-self: start;
  color: var(--dim);
  font-size: 8px;
}

.asset-list em {
  grid-column: 3;
  grid-row: 1 / span 2;
  color: var(--dim);
  font-style: normal;
}

.attention-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 107, 95, 0.18);
  border-radius: 11px;
  background: linear-gradient(90deg, rgba(255, 107, 95, 0.07), transparent);
}

.attention-banner > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.attention-banner > div span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  color: var(--red);
  background: rgba(255, 107, 95, 0.1);
  font-weight: 700;
}

.attention-banner strong {
  font-size: 10px;
}

.attention-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.attention-banner button {
  border: 0;
  color: #e9978f;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.data-grid {
  display: grid;
  gap: 15px;
  margin-bottom: 15px;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
}

.period-button {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-size: 8px;
}

.bar-chart {
  display: grid;
  height: 224px;
  margin-top: 20px;
  grid-template-columns: 25px 1fr;
}

.y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 23px;
  color: var(--dim);
  font-family: var(--display);
  font-size: 8px;
}

.bars {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(4, 1fr);
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 60px);
}

.bars > div {
  display: grid;
  height: 100%;
  align-items: end;
  justify-items: center;
  grid-template-rows: 1fr 23px;
}

.bars i {
  width: 23%;
  min-width: 22px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #7e6751, #3f3930);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.bars i.current {
  background: linear-gradient(180deg, var(--orange-soft), #a32e0c);
  box-shadow: 0 0 20px rgba(255, 90, 32, 0.12);
}

.bars span {
  color: var(--dim);
  font-size: 8px;
}

.chart-note {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 8px;
}

.chart-note span {
  margin-right: 5px;
  color: var(--orange);
}

.review-score {
  display: flex;
  flex-direction: column;
}

.ring {
  display: grid;
  width: 128px;
  height: 128px;
  margin: 22px auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) calc(var(--percent) * 1%), rgba(255, 255, 255, 0.07) 0);
}

.ring::before {
  position: absolute;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--panel);
  content: "";
}

.ring > div {
  position: relative;
  z-index: 2;
  text-align: center;
}

.ring strong,
.ring span {
  display: block;
}

.ring strong {
  font-family: var(--display);
  font-size: 27px;
}

.ring span {
  margin-top: 2px;
  color: var(--dim);
  font-size: 8px;
}

.health-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.health-list > div {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 9px;
}

.health-list span {
  color: var(--muted);
}

.health-list strong {
  color: var(--muted);
  font-family: var(--display);
}

.health-list strong.ok {
  color: var(--green);
}

.health-list strong.bad {
  color: var(--red);
}

.published-table {
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: minmax(230px, 2fr) 0.75fr 0.8fr 0.65fr 0.75fr 22px;
  align-items: center;
  gap: 10px;
}

.table-head {
  margin-top: 17px;
  padding: 10px 11px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 8px;
}

.table-row {
  width: 100%;
  padding: 12px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 9px;
  text-align: left;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.018);
}

.table-row > span:first-child strong,
.table-row > span:first-child small {
  display: block;
}

.table-row > span:first-child strong {
  color: var(--text);
  font-size: 10px;
}

.table-row > span:first-child small {
  margin-top: 4px;
  color: var(--dim);
  font-size: 7px;
}

.table-row .pending-text {
  color: #d3827a;
}

.table-row em {
  color: var(--dim);
  font-style: normal;
}

.employee-hero {
  display: grid;
  min-height: 290px;
  overflow: hidden;
  grid-template-columns: 230px minmax(0, 1fr) 210px;
  border: 1px solid rgba(255, 95, 31, 0.15);
  border-radius: 15px;
  background:
    linear-gradient(110deg, rgba(255, 87, 27, 0.065), transparent 53%),
    var(--panel);
}

.employee-photo {
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.employee-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 11, 9, 0.8), transparent 60%);
  content: "";
}

.employee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  filter: saturate(0.7) contrast(1.06) brightness(0.78);
}

.photo-status {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(12, 10, 8, 0.62);
  backdrop-filter: blur(7px);
  font-family: var(--display);
  font-size: 8px;
  letter-spacing: 1.2px;
}

.photo-status span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}

.employee-profile {
  padding: 35px;
}

.profile-topline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-topline span {
  color: var(--orange-soft);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 1.7px;
}

.profile-topline i {
  padding: 4px 7px;
  border: 1px solid rgba(231, 184, 75, 0.18);
  border-radius: 5px;
  color: var(--gold);
  background: rgba(231, 184, 75, 0.05);
  font-size: 7px;
  font-style: normal;
}

.employee-profile h2 {
  margin: 11px 0 9px;
  font-family: var(--serif);
  font-size: 28px;
}

.mission {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.ability-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0;
}

.ability-tags span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 8px;
}

.profile-actions {
  display: flex;
  gap: 8px;
}

.employee-task-button {
  min-height: 34px;
  height: 34px;
  font-size: 9px;
}

.employee-ring {
  display: grid;
  place-items: center;
  align-content: center;
  border-left: 1px solid var(--line);
}

.employee-ring .ring {
  margin: 0 0 10px;
}

.employee-ring small {
  color: var(--dim);
  font-size: 8px;
}

.employee-dashboard {
  display: grid;
  gap: 15px;
  margin: 15px 0;
  grid-template-columns: 1.25fr 0.75fr;
}

.big-stats {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.big-stats > div {
  padding: 7px 17px;
  border-right: 1px solid var(--line);
}

.big-stats > div:first-child {
  padding-left: 0;
}

.big-stats > div:last-child {
  border-right: 0;
}

.big-stats span,
.big-stats strong,
.big-stats i {
  display: block;
}

.big-stats span {
  color: var(--muted);
  font-size: 8px;
}

.big-stats strong {
  margin: 8px 0;
  font-family: var(--display);
  font-size: 27px;
}

.big-stats strong small {
  color: var(--dim);
  font-size: 12px;
}

.big-stats i {
  color: var(--dim);
  font-size: 7px;
  font-style: normal;
}

.big-stats i.good {
  color: var(--green);
}

.condition-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.condition-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.condition-list > div > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--dim);
  font-family: var(--display);
  font-size: 8px;
}

.condition-list > div.done > span {
  color: var(--green);
  border-color: rgba(90, 197, 155, 0.18);
  background: rgba(90, 197, 155, 0.05);
}

.condition-list p {
  margin: 0;
}

.condition-list strong,
.condition-list small {
  display: block;
}

.condition-list strong {
  font-size: 9px;
}

.condition-list small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 7px;
}

.workflow-steps {
  display: grid;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  grid-template-columns: repeat(9, auto);
}

.workflow-steps > div {
  min-width: 125px;
}

.workflow-steps b {
  display: grid;
  width: 26px;
  height: 26px;
  margin-bottom: 9px;
  place-items: center;
  border: 1px solid rgba(255, 90, 32, 0.18);
  border-radius: 7px;
  color: var(--orange-soft);
  background: rgba(255, 90, 32, 0.05);
  font-family: var(--display);
  font-size: 8px;
}

.workflow-steps span,
.workflow-steps small {
  display: block;
}

.workflow-steps span {
  font-size: 9px;
  font-weight: 700;
}

.workflow-steps small {
  margin-top: 4px;
  color: var(--dim);
  font-size: 7px;
  line-height: 1.5;
}

.workflow-steps > i {
  color: rgba(255, 255, 255, 0.16);
  font-style: normal;
}

.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  backdrop-filter: blur(3px);
  transition: 250ms ease;
}

.drawer-backdrop.open,
.modal-backdrop.open {
  visibility: visible;
  opacity: 1;
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 160;
  width: min(450px, 95vw);
  height: 100vh;
  padding: 38px;
  transform: translateX(102%);
  border-left: 1px solid rgba(255, 99, 36, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 90, 32, 0.1), transparent 25rem),
    #16130f;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.35);
  transition: 320ms cubic-bezier(0.22, 0.8, 0.2, 1);
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 23px;
}

.drawer-label {
  color: var(--orange-soft);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 2px;
}

.detail-drawer h2 {
  margin: 14px 0;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
}

.drawer-status {
  display: flex;
  gap: 7px;
}

.drawer-status span,
.drawer-status i {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.drawer-status i {
  color: var(--orange-soft);
  border-color: rgba(255, 90, 32, 0.2);
  background: rgba(255, 90, 32, 0.05);
}

.drawer-score {
  display: grid;
  margin: 26px 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.drawer-score > div {
  padding: 14px 10px;
  border-right: 1px solid var(--line);
}

.drawer-score > div:last-child {
  border-right: 0;
}

.drawer-score span,
.drawer-score strong {
  display: block;
}

.drawer-score span {
  color: var(--dim);
  font-size: 8px;
}

.drawer-score strong {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 19px;
}

.drawer-section {
  margin: 22px 0;
}

.drawer-section > span {
  color: var(--orange-soft);
  font-size: 9px;
}

.drawer-section p {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.8;
}

.drawer-actions {
  position: absolute;
  right: 38px;
  bottom: 34px;
  left: 38px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.compose-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 170;
  width: min(560px, calc(100vw - 32px));
  visibility: hidden;
  padding: 35px;
  transform: translate(-50%, -47%) scale(0.96);
  border: 1px solid rgba(255, 96, 31, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 90, 32, 0.11), transparent 20rem),
    #191611;
  opacity: 0;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
  transition: 250ms ease;
}

.compose-modal.open {
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.compose-modal h2 {
  margin: 9px 0 7px;
  font-family: var(--serif);
  font-size: 27px;
}

.compose-modal > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.compose-modal textarea {
  width: 100%;
  height: 130px;
  margin: 21px 0 12px;
  padding: 14px;
  resize: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
}

.compose-modal textarea:focus {
  border-color: rgba(255, 98, 34, 0.4);
}

.modal-options {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, 1fr);
}

.modal-options button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  text-align: left;
}

.modal-options button.selected {
  border-color: rgba(255, 91, 31, 0.28);
  background: rgba(255, 90, 32, 0.06);
}

.modal-options span,
.modal-options small {
  display: block;
}

.modal-options span {
  font-size: 9px;
}

.modal-options small {
  margin-top: 4px;
  color: var(--dim);
  font-size: 7px;
}

.modal-submit {
  width: 100%;
  height: 43px;
  margin-top: 18px;
}

.modal-submit span {
  margin-left: 6px;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  visibility: hidden;
  place-items: start center;
  padding-top: 13vh;
  background: rgba(0, 0, 0, 0.65);
  opacity: 0;
  backdrop-filter: blur(5px);
  transition: 200ms ease;
}

.search-overlay.open {
  visibility: visible;
  opacity: 1;
}

.search-dialog {
  width: min(590px, calc(100vw - 28px));
  overflow: hidden;
  transform: translateY(-10px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: #191713;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  transition: 200ms ease;
}

.search-overlay.open .search-dialog {
  transform: translateY(0);
}

.search-dialog-input {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.search-dialog-input svg {
  width: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
}

.search-dialog-input input {
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 12px;
}

.search-dialog-input kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  font-size: 8px;
}

.search-results {
  padding: 12px;
}

.search-results > small {
  display: block;
  padding: 3px 6px 8px;
  color: var(--dim);
  font-size: 8px;
}

.search-results button {
  display: grid;
  width: 100%;
  grid-template-columns: 29px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.search-results button:hover {
  background: rgba(255, 255, 255, 0.035);
}

.search-results button span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 6px;
  color: var(--orange-soft);
  background: rgba(255, 90, 32, 0.07);
  font-size: 8px;
}

.search-results button strong {
  font-size: 10px;
}

.search-results button em {
  color: var(--dim);
  font-style: normal;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 220;
  display: flex;
  min-width: 300px;
  visibility: hidden;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  transform: translateY(20px);
  border: 1px solid rgba(90, 197, 155, 0.2);
  border-radius: 10px;
  background: #1b1a15;
  opacity: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  transition: 250ms ease;
}

.toast.show {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

.toast > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: rgba(90, 197, 155, 0.08);
}

.toast strong,
.toast small {
  display: block;
}

.toast strong {
  font-size: 10px;
}

.toast small {
  margin-top: 3px;
  color: var(--dim);
  font-size: 8px;
}

@media (max-width: 1180px) {
  .metric-strip article {
    grid-template-columns: 34px 1fr;
  }

  .metric-strip article > small {
    display: none;
  }

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

  .asset-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .employee-hero {
    grid-template-columns: 190px 1fr;
  }

  .employee-ring {
    display: none;
  }

  .workflow-steps {
    grid-template-columns: repeat(5, 1fr);
  }

  .workflow-steps > i {
    display: none;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: 250ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-area {
    margin-left: 0;
  }

  .mobile-menu {
    display: block;
    margin-right: 14px;
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
  }

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

  .hero-portrait {
    display: none;
  }

  .metric-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric-strip article:nth-child(2) {
    border-right: 0;
  }

  .metric-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .kanban-board {
    grid-template-columns: repeat(4, 280px);
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 66px;
    padding: 0 16px;
  }

  .date-block span,
  .icon-button,
  .primary-top-button {
    display: none;
  }

  .date-block strong {
    font-size: 12px;
  }

  .notification-button {
    display: grid;
  }

  .view {
    padding: 19px 15px 45px;
  }

  .hero-copy {
    padding: 28px 21px 25px;
  }

  .hero-copy h1 {
    font-size: 31px;
  }

  .metric-strip article {
    min-height: 75px;
    padding: 12px;
  }

  .pipeline {
    display: flex;
    justify-content: space-between;
    gap: 8px;
  }

  .pipeline-line {
    display: none;
  }

  .pipeline-node {
    min-width: 50px;
  }

  .pipeline-node strong {
    font-size: 8px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading .primary-top-button {
    display: block;
    flex-shrink: 0;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search-field {
    width: 100%;
    min-width: 0;
  }

  .filter-chips {
    margin-left: 0;
    overflow-x: auto;
  }

  .asset-grid,
  .asset-list {
    grid-template-columns: 1fr;
  }

  .asset-list button {
    border-right: 0;
  }

  .attention-banner {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row {
    grid-template-columns: 1fr auto;
  }

  .table-row > span:not(:first-child),
  .table-row em {
    display: none;
  }

  .employee-hero {
    grid-template-columns: 1fr;
  }

  .employee-photo {
    height: 220px;
  }

  .employee-profile {
    padding: 25px;
  }

  .big-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .big-stats > div:nth-child(2) {
    border-right: 0;
  }

  .big-stats > div:nth-child(-n + 2) {
    margin-bottom: 15px;
  }

  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
