
:root {
  --cc-bg-0: #eef0f3;
  --cc-bg-1: #e8edf3;
  --cc-surface: rgba(255,255,255,0.74);
  --cc-surface-strong: rgba(255,255,255,0.88);
  --cc-surface-soft: rgba(255,255,255,0.58);
  --cc-stroke: rgba(255,255,255,0.75);
  --cc-stroke-soft: rgba(15,23,42,0.08);
  --cc-text: #17212b;
  --cc-muted: #637081;
  --cc-orange: #f75d1e;
  --cc-orange-strong: #df5215;
  --cc-orange-soft: rgba(247,93,30,0.12);
  --cc-shadow: 0 18px 40px -24px rgba(11, 25, 45, 0.22);
  --cc-radius-xl: 32px;
  --cc-radius-lg: 26px;
  --cc-radius-md: 20px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.cc-body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--cc-text);
  background: linear-gradient(145deg, var(--cc-bg-0) 0%, var(--cc-bg-1) 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.cc-shell {
  min-height: 100vh;
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  gap: 0 !important;
  align-items: stretch;
}

.cc-rail {
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-right: 1px solid rgba(255,255,255,0.7);
  box-shadow: 10px 0 30px -12px rgba(0,20,40,0.18);
  border-radius: 0 var(--cc-radius-xl) var(--cc-radius-xl) 0;
  padding: 28px 16px;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.cc-rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  margin-bottom: 34px;
}
.cc-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 24px -18px rgba(11,25,45,0.35);
}
.cc-brand-title { font-size: 1.32rem; font-weight: 800; }
.cc-brand-subtitle { font-size: .92rem; color: var(--cc-muted); }
.cc-rail__groups {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.cc-nav-group { display: grid; gap: 8px; }
.cc-nav-group__title {
  margin: 0;
  padding: 0 16px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8b95a4;
}
.cc-nav-group__items { display: grid; gap: 6px; }
.cc-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 20px;
  font-weight: 600;
  color: #233041;
  transition: .22s ease;
}
.cc-nav-item:hover { background: rgba(255,255,255,0.86); transform: translateX(4px); }
.cc-nav-item.is-active {
  background: rgba(255,255,255,0.96);
  color: var(--cc-orange-strong);
  border-left: 5px solid var(--cc-orange);
  padding-left: 13px;
  box-shadow: 0 12px 22px -16px rgba(11,25,45,0.18);
}
.cc-nav-item__icon {
  width: 24px;
  text-align: center;
  color: inherit;
}
.cc-rail__footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 2px dashed rgba(99,112,129,0.16);
}
.cc-user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 12px 14px;
}
.cc-user-chip__avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(145deg, var(--cc-orange), #ff7b46);
  color: #fff;
}

.cc-main {
  min-width: 0;
  padding: 28px 28px 28px 24px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 20px;
}
.cc-topbar {
  display: grid;
  gap: 18px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 32px;
  padding: 22px 24px;
  box-shadow: var(--cc-shadow);
}
.cc-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.cc-topbar__row--secondary {
  align-items: stretch;
}
.cc-context {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cc-context__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(247,93,30,0.16), rgba(255,255,255,0.92));
  color: var(--cc-orange-strong);
  box-shadow: inset 0 0 0 1px rgba(247,93,30,0.1);
}
.cc-context__title { font-size: 1.18rem; font-weight: 700; }
.cc-context__meta { color: var(--cc-muted); font-size: .94rem; margin-top: 4px; }
.cc-topbar__controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-mode-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.72);
  border-radius: 999px;
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
}
.cc-mode-tab {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: #304054;
}
.cc-mode-tab.is-active {
  background: linear-gradient(145deg, var(--cc-orange), #ff7a45);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(223,82,21,0.6);
}
.cc-logout-btn,
.cc-quick-pill,
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}
.cc-logout-btn {
  background: rgba(255,255,255,0.74);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
}
.cc-quick-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-quick-pill {
  background: rgba(255,255,255,0.72);
  color: #2a394e;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
}
.cc-quick-pill:hover { background: rgba(255,255,255,0.95); }
.cc-search-wrap {
  margin-left: auto;
  min-width: min(720px, 100%);
  width: min(720px, 100%);
  background: rgba(255,255,255,0.72);
  border-radius: 28px;
  padding: 12px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04);
}
.cc-filterbar {
  display: grid;
  grid-template-columns: minmax(220px,1.35fr) repeat(2,minmax(130px,.9fr)) repeat(2,minmax(120px,.8fr)) auto auto;
  gap: 10px;
  align-items: center;
}
.cc-filterbar__field,
.cc-filterbar__select-wrap,
.cc-filterbar__date {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.07);
  padding: 0 14px;
}
.cc-filterbar__field input,
.cc-filterbar__select,
.cc-filterbar__date input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--cc-text);
}
.cc-filterbar__field i { color: var(--cc-muted); }
.cc-btn--primary {
  background: linear-gradient(145deg, var(--cc-orange), #ff7a45);
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(223,82,21,0.65);
}
.cc-btn--ghost {
  background: rgba(255,255,255,0.82);
  color: #304054;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06);
}


.qs-hero {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 24px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    radial-gradient(circle at 14% 18%, rgba(251,146,60,0.28), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(59,130,246,0.22), transparent 26%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 46%, #172554 100%);
  box-shadow: 0 26px 60px -30px rgba(15,23,42,0.56);
  color: #fff;
}
.qs-hero__glow {
  position: absolute;
  inset: auto -90px -110px auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(248,107,36,0.34), transparent 64%);
  pointer-events: none;
}
.qs-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.qs-hero__copy {
  max-width: 820px;
  display: grid;
  gap: 10px;
}
.qs-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,0.78);
}
.qs-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.3vw, 2.8rem);
  line-height: 1.02;
  color: #fff;
}
.qs-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  font-size: 1rem;
}
.qs-hero__badges,
.qs-hero__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.qs-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.88);
  font-weight: 600;
}
.qs-hero__badge strong {
  color: #fff;
  font-size: .96rem;
}
.qs-hero__actions .cc-btn {
  min-height: 46px;
  gap: 10px;
  padding: 0 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.qs-hero__actions .cc-btn--ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.qs-hero__actions .cc-btn--primary {
  box-shadow: 0 18px 28px -18px rgba(248,107,36,0.72);
}
.qs-hero__stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.qs-hero__stat {
  min-width: 0;
  padding: 15px 16px 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.qs-hero__stat:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 18px 28px -24px rgba(15,23,42,0.8);
}
.qs-hero__stat-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.62);
}
.qs-hero__stat-value {
  margin-top: 10px;
  font-size: clamp(1.05rem, 1.35vw, 1.55rem);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.qs-hero__stat-meta {
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-size: .92rem;
  line-height: 1.5;
}

.cc-board {
  min-width: 0;
  display: grid;
  gap: 18px;
}
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 18px;
}
.cc-kpi-card,
.cc-panel-card,
.list-board,
.detail-card {
  min-width: 0;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 28px;
  box-shadow: var(--cc-shadow);
}
.cc-kpi-card { padding: 18px 18px 20px; }
.cc-kpi-card__label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8c745f;
  margin-bottom: 16px;
}
.cc-kpi-card__value { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.cc-kpi-card__meta { color: var(--cc-muted); font-size: .92rem; }
.board-row--charts {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .95fr;
  gap: 18px;
}
.board-row--queues,
.board-row--activity,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.detail-grid { grid-template-columns: 1.1fr .9fr; }
.cc-panel-card { padding: 18px; }
.cc-panel-card__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.cc-panel-card__header h3 { margin: 0; font-size: 1.06rem; }
.cc-panel-card__header p { margin: 6px 0 0; color: var(--cc-muted); font-size: .92rem; }
.cc-panel-link,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(247,93,30,0.1);
  color: var(--cc-orange-strong);
  font-weight: 700;
}
.chart-wrap { height: 220px; }
.metric-list,
.activity-list,
.document-list {
  display: grid;
  gap: 12px;
}
.metric-row,
.activity-item,
.document-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  padding: 13px 14px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04);
}
.muted { color: var(--cc-muted); }
.text-right { text-align: right; }
.flash-stack { display: grid; gap: 12px; }
.flash { padding: 14px 16px; border-radius: 18px; }
.flash--success { background: #eefbf2; }
.flash--error { background: #fff2ef; }
.board-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.board-table th {
  text-align: left;
  font-size: .78rem;
  text-transform: uppercase;
  color: #8f8274;
  padding: 0 12px 8px;
}
.board-table td {
  background: rgba(255,255,255,0.88);
  padding: 13px 12px;
}


.auth-body.auth-body--engcore {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(247,93,30,0.22), rgba(247,93,30,0) 28%),
    radial-gradient(circle at 88% 82%, rgba(247,93,30,0.16), rgba(247,93,30,0) 24%),
    linear-gradient(145deg, #1a0c05 0%, #0f0804 50%, #090603 100%);
  color: #fff6ef;
}
.auth-bg-animation {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.auth-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: .7;
  background: radial-gradient(circle, rgba(247,93,30,.28), rgba(247,93,30,0));
  animation: authFloat 18s ease-in-out infinite alternate;
}
.auth-bg-shape--1 { width: 36vw; height: 36vw; top: -10vh; left: -8vw; }
.auth-bg-shape--2 { width: 42vw; height: 42vw; right: -12vw; bottom: -16vh; animation-duration: 24s; }
.auth-bg-shape--3 { width: 24vw; height: 24vw; left: 56%; top: 18%; opacity: .45; animation-duration: 20s; }
.auth-bg-shape--4 { width: 18vw; height: 18vw; left: 16%; bottom: 12%; opacity: .35; animation-duration: 28s; }
.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.45), transparent 88%);
}
@keyframes authFloat {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(22px,-18px,0) scale(1.08); }
}
.auth-shell.auth-shell--engcore {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 24px;
  align-items: stretch;
}
.auth-panel {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 34px;
  box-shadow: 0 28px 64px -34px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.auth-panel--visual {
  background: linear-gradient(180deg, rgba(23,14,9,.84), rgba(14,9,6,.72));
  border: 1px solid rgba(247,93,30,.18);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
}
.auth-panel--visual::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(247,93,30,0), rgba(247,93,30,.95), rgba(247,93,30,0));
  opacity: .9;
}
.auth-panel--form {
  background: linear-gradient(180deg, rgba(28,17,11,.88), rgba(16,10,7,.82));
  border: 1px solid rgba(247,93,30,.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  align-content: center;
}
.auth-brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}
.auth-brand-mark-wrap {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(247,93,30,.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 18px 34px -28px rgba(247,93,30,.45);
}
.auth-brand-mark { width: 72px; filter: drop-shadow(0 10px 20px rgba(247,93,30,.25)); }
.auth-brand-copy { display: grid; gap: 10px; }
.auth-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #ffc8aa;
  background: rgba(247,93,30,.12);
  border: 1px solid rgba(247,93,30,.22);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.auth-brand-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: .95;
  letter-spacing: -.04em;
  font-weight: 800;
  background: linear-gradient(125deg, #fff7f2 0%, #ffbb96 40%, #f75d1e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.auth-brand-copy p {
  margin: 0;
  max-width: 34rem;
  color: #f3cdb9;
  font-size: 1rem;
  line-height: 1.7;
}
.auth-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.auth-feature-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 18px 17px;
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.auth-feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(247,93,30,.2), rgba(247,93,30,.08));
  color: #ffb185;
}
.auth-feature-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #fff3ec;
}
.auth-feature-card p {
  margin: 0;
  color: #d7b2a0;
  font-size: .92rem;
  line-height: 1.6;
}
.auth-visual-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.auth-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  color: #f8ceb4;
  font-size: .83rem;
  font-weight: 700;
}
.auth-form.auth-form--engcore { display: grid; gap: 18px; }
.auth-form-intro { display: grid; gap: 10px; margin-bottom: 6px; }
.auth-form-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(247,93,30,.12);
  border: 1px solid rgba(247,93,30,.22);
  color: #ffbe9c;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-form-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  color: #fff8f3;
}
.auth-form-intro p {
  margin: 0;
  color: #d9b8a8;
  line-height: 1.7;
}
.auth-flash {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,122,122,.2);
  background: rgba(101,26,20,.38);
  color: #ffd9d9;
}
.auth-field { display: grid; gap: 10px; }
.auth-field label {
  color: #f6d7c6;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  border-radius: 22px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(247,93,30,.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  transition: .24s ease;
}
.auth-input-wrap:focus-within {
  border-color: rgba(247,93,30,.56);
  box-shadow: 0 0 0 4px rgba(247,93,30,.12), inset 0 0 0 1px rgba(255,255,255,.04);
  transform: translateY(-1px);
}
.auth-input-icon {
  position: absolute;
  left: 18px;
  color: #f59263;
  font-size: 1rem;
}
.auth-input {
  width: 100%;
  height: 60px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff6f0;
  padding: 0 18px 0 50px;
  font-size: 1rem;
  font-weight: 500;
}
.auth-input::placeholder { color: #c59376; }
.auth-input-wrap--password .auth-input { padding-right: 56px; }
.auth-password-toggle {
  position: absolute;
  right: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #f39b6f;
  cursor: pointer;
  transition: .2s ease;
}
.auth-password-toggle:hover {
  background: rgba(247,93,30,.1);
  color: #ffc29f;
}
.auth-form-meta {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.auth-meta-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  color: #ffd0b5;
  font-size: .8rem;
  font-weight: 700;
}
.auth-meta-copy {
  color: #caa390;
  font-size: .86rem;
}
.auth-actions--stack { display: block; }
.auth-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(95deg, #d94d16 0%, #f75d1e 48%, #ff824c 100%);
  box-shadow: 0 22px 36px -24px rgba(247,93,30,.6), 0 0 0 1px rgba(255,255,255,.05) inset;
}
.auth-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}
.auth-submit i { margin-right: 8px; }
.auth-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #cfaa98;
  font-size: .84rem;
  line-height: 1.65;
}
@media (max-width: 1080px) {
  .auth-shell.auth-shell--engcore { grid-template-columns: 1fr; }
  .auth-panel { padding: 28px; }
}
@media (max-width: 760px) {
  .auth-body.auth-body--engcore { padding: 16px; }
  .auth-panel { padding: 22px; border-radius: 28px; }
  .auth-feature-grid { grid-template-columns: 1fr; }
  .auth-brand-lockup { flex-direction: column; align-items: flex-start; }
  .auth-brand-copy h1 { font-size: 2.3rem; }
}
@media (max-width: 1220px) {
  .cc-topbar__row--secondary { flex-direction: column; align-items: stretch; }
  .cc-search-wrap { width: 100%; min-width: 0; margin-left: 0; }
  .cc-filterbar { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media (max-width: 1080px) {
  .cc-shell { grid-template-columns: 1fr !important; }
  .qs-hero__stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qs-hero__actions { width: 100%; }
  .qs-hero__actions .cc-btn { flex: 1 1 220px; }
  .cc-rail {
    position: relative;
    height: auto;
    border-radius: 0 0 28px 28px;
  }
  .cc-main { padding-left: 18px; }
  .kpi-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .board-row--charts,
  .board-row--queues,
  .board-row--activity,
  .detail-grid { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cc-main { padding: 16px; }
  .qs-hero { padding: 20px; border-radius: 26px; }
  .qs-hero__inner { align-items: stretch; }
  .qs-hero__stats { grid-template-columns: 1fr; }
  .qs-hero__actions .cc-btn { width: 100%; justify-content: center; }
  .cc-topbar { padding: 18px; }
  .kpi-strip { grid-template-columns: 1fr; }
  .cc-filterbar { grid-template-columns: 1fr; }
}


/* =========================================================
   Shared shell refinement pass — topbar + rail
   ========================================================= */
.cc-rail {
  position: sticky;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(247,249,252,0.74) 100%);
  border-right: 1px solid rgba(255,255,255,0.92);
  box-shadow: 16px 0 42px -28px rgba(11,25,45,0.32);
  padding: 24px 14px 18px;
}
.cc-rail__glow {
  position: absolute;
  inset: 14px 14px auto 14px;
  height: 72px;
  border-radius: 24px;
  pointer-events: none;
  background: radial-gradient(circle at 20% 20%, rgba(247,93,30,0.14), rgba(247,93,30,0) 58%);
  z-index: -1;
}
.cc-rail__brand {
  padding: 0 12px;
  margin-bottom: 28px;
}
.cc-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 20px;
  box-shadow: 0 18px 30px -24px rgba(11,25,45,0.45), inset 0 0 0 1px rgba(255,255,255,0.84);
}
.cc-brand-title { letter-spacing: -.02em; }
.cc-brand-subtitle { color: #7e8a9c; }
.cc-nav-group {
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(15,23,42,0.05);
}
.cc-nav-group:first-child {
  padding-top: 0;
  border-top: 0;
}
.cc-nav-group__title {
  padding: 0 14px;
  font-size: .72rem;
  letter-spacing: .15em;
}
.cc-nav-group__items { gap: 8px; }
.cc-nav-item {
  position: relative;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.cc-nav-item:hover {
  background: rgba(255,255,255,0.88);
  transform: translateX(6px);
  box-shadow: 0 14px 24px -22px rgba(11,25,45,0.34), inset 0 0 0 1px rgba(255,255,255,0.92);
}
.cc-nav-item.is-active {
  border-left: 0;
  padding-left: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,245,239,0.98));
  color: var(--cc-orange-strong);
  box-shadow: 0 18px 30px -24px rgba(223,82,21,0.48), inset 0 0 0 1px rgba(247,93,30,0.16);
}
.cc-nav-item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cc-orange), #ff8756);
}
.cc-nav-item__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.76);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
}
.cc-nav-item__label {
  flex: 1;
  min-width: 0;
}
.cc-nav-item__chevron {
  opacity: .38;
  transition: .22s ease;
}
.cc-nav-item:hover .cc-nav-item__chevron,
.cc-nav-item.is-active .cc-nav-item__chevron { opacity: .9; }
.cc-rail__footer {
  padding-top: 18px;
  border-top: 1px solid rgba(15,23,42,0.06);
}
.cc-user-chip {
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(247,249,252,0.74));
  box-shadow: 0 16px 28px -24px rgba(11,25,45,0.34), inset 0 0 0 1px rgba(255,255,255,0.82);
}
.cc-user-chip__avatar {
  width: 44px;
  height: 44px;
  border-radius: 16px;
}
.cc-topbar {
  position: relative;
  overflow: hidden;
  gap: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(249,251,253,0.66));
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow: 0 22px 44px -30px rgba(11,25,45,0.28);
  padding: 20px 22px 18px;
}
.cc-topbar__edge {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(247,93,30,0), rgba(247,93,30,0.88), rgba(247,93,30,0));
  animation: ccTopbarEdge 5.5s linear infinite;
}
@keyframes ccTopbarEdge {
  0% { transform: translateX(-28%); opacity: .55; }
  50% { transform: translateX(16%); opacity: 1; }
  100% { transform: translateX(42%); opacity: .55; }
}
.cc-topbar__row--primary {
  align-items: center;
}
.cc-context-wrap {
  display: grid;
  gap: 10px;
}
.cc-context-tag {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(247,93,30,0.1);
  color: var(--cc-orange-strong);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cc-context {
  gap: 12px;
}
.cc-context__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(247,93,30,0.08), 0 18px 30px -24px rgba(223,82,21,0.4);
}
.cc-context__title {
  font-size: 1.16rem;
  letter-spacing: -.02em;
}
.cc-context__meta {
  color: #728094;
}
.cc-topbar__controls {
  gap: 10px;
}
.cc-mode-tabs {
  background: rgba(255,255,255,0.82);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05), 0 14px 28px -24px rgba(11,25,45,0.24);
}
.cc-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  transition: .22s ease;
}
.cc-mode-tab:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-1px);
}
.cc-mode-tab.is-active {
  box-shadow: 0 16px 28px -22px rgba(223,82,21,0.62);
}
.cc-topbar__profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
}
.cc-topbar__profile-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--cc-orange), #ff7b46);
}
.cc-topbar__profile-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}
.cc-topbar__profile-copy strong {
  font-size: .88rem;
}
.cc-topbar__profile-copy span {
  font-size: .72rem;
  color: #758297;
}
.cc-logout-btn,
.cc-quick-pill,
.cc-btn {
  gap: 8px;
  transition: .22s ease;
}
.cc-logout-btn {
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(247,249,252,0.72));
  box-shadow: 0 16px 28px -24px rgba(11,25,45,0.26), inset 0 0 0 1px rgba(15,23,42,0.05);
}
.cc-logout-btn:hover,
.cc-quick-pill:hover,
.cc-btn:hover {
  transform: translateY(-2px);
}
.cc-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cc-quick-pill {
  min-height: 40px;
  padding: 0 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.88), rgba(247,249,252,0.72));
  box-shadow: 0 18px 28px -26px rgba(11,25,45,0.28), inset 0 0 0 1px rgba(15,23,42,0.05);
}
.cc-quick-pill i {
  color: var(--cc-orange-strong);
}
.cc-search-wrap {
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(247,249,252,0.72));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04), 0 16px 28px -26px rgba(11,25,45,0.26);
}
.cc-search-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cc-search-capsule__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(247,93,30,0.08);
  color: var(--cc-orange-strong);
}
.cc-search-capsule input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #223146;
  font-size: .96rem;
}
.cc-search-capsule__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, var(--cc-orange), #ff7a45);
  box-shadow: 0 18px 28px -22px rgba(223,82,21,0.58);
  cursor: pointer;
}
.cc-search-capsule__button:hover {
  transform: translateY(-1px);
}
@media (max-width: 1080px) {
  .cc-rail {
    border-radius: 0 0 28px 28px;
    box-shadow: 0 16px 36px -28px rgba(11,25,45,0.28);
  }
}
@media (max-width: 760px) {
  .cc-topbar__controls {
    width: 100%;
  }
  .cc-topbar__profile {
    order: 2;
  }
  .cc-logout-btn {
    margin-left: auto;
  }
  .cc-quick-actions {
    width: 100%;
  }
  .cc-search-capsule__button span {
    display: none;
  }
}


/* ===== HOP dashboard revision v2 ===== */
.hop-kpi-strip {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}
.hop-kpi-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  position: relative;
}
.hop-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px -22px rgba(15,23,42,.26), 0 14px 24px -24px rgba(247,93,30,.45);
  border-color: rgba(247,93,30,.16);
}
.hop-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(90deg, rgba(247,93,30,.95), rgba(255,145,98,.48));
}
.hop-chart-wrap {
  height: 250px;
}
.hop-summary-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  padding: 13px 14px;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04);
}
.hop-summary-chip strong {
  font-size: 1.35rem;
  line-height: 1;
}
@media (max-width: 1200px) {
  .hop-kpi-strip {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 760px) {
  .hop-kpi-strip {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Accountant premium appearance pass
   ========================================================= */
body.cc-mode-accountant.cc-body {
  background:
    radial-gradient(circle at 92% 8%, rgba(247,93,30,0.12), rgba(247,93,30,0) 22%),
    radial-gradient(circle at 10% 92%, rgba(15,23,42,0.06), rgba(15,23,42,0) 30%),
    linear-gradient(145deg, #f3f5f8 0%, #edf1f5 52%, #e8edf2 100%);
}
.cc-mode-accountant .cc-main {
  gap: 22px;
  padding-top: 24px;
}
.cc-mode-accountant .cc-rail {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(249,250,252,0.82) 100%);
  border-right: 1px solid rgba(255,255,255,0.96);
  box-shadow: 20px 0 44px -30px rgba(15,23,42,0.3);
}
.cc-mode-accountant .cc-rail__glow {
  height: 88px;
  background: radial-gradient(circle at 22% 20%, rgba(247,93,30,0.18), rgba(247,93,30,0) 58%);
}
.cc-mode-accountant .cc-brand-subtitle {
  color: #64748b;
  font-weight: 600;
}
.cc-mode-accountant .cc-nav-group__title {
  color: #738194;
  font-weight: 800;
}
.cc-mode-accountant .cc-nav-item {
  border: 1px solid rgba(15,23,42,0.04);
  background: linear-gradient(145deg, rgba(255,255,255,0.58), rgba(255,255,255,0.34));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}
.cc-mode-accountant .cc-nav-item:hover {
  border-color: rgba(247,93,30,0.14);
  box-shadow: 0 18px 28px -24px rgba(15,23,42,0.28), inset 0 0 0 1px rgba(255,255,255,0.86);
}
.cc-mode-accountant .cc-nav-item__icon {
  background: linear-gradient(145deg, rgba(255,255,255,0.94), rgba(246,248,251,0.82));
}
.cc-mode-accountant .cc-nav-item__badge {
  background: rgba(247,93,30,0.1);
  border-color: rgba(247,93,30,0.14);
  box-shadow: 0 8px 18px -14px rgba(247,93,30,0.38);
}
.cc-mode-accountant .cc-nav-item.is-active {
  background: linear-gradient(145deg, #f86b24, #ff8a55);
  color: #fff;
  box-shadow: 0 26px 36px -24px rgba(223,82,21,0.52), inset 0 0 0 1px rgba(255,255,255,0.14);
}
.cc-mode-accountant .cc-nav-item.is-active::before {
  display: none;
}
.cc-mode-accountant .cc-nav-item.is-active .cc-nav-item__icon {
  background: rgba(255,255,255,0.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.cc-mode-accountant .cc-nav-item.is-active .cc-nav-item__badge {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border-color: rgba(255,255,255,0.18);
  box-shadow: none;
}
.cc-mode-accountant .cc-user-chip {
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(247,249,252,0.8));
  box-shadow: 0 18px 32px -26px rgba(15,23,42,0.26), inset 0 0 0 1px rgba(255,255,255,0.88);
}
.cc-mode-accountant .cc-topbar {
  background: linear-gradient(145deg, rgba(255,255,255,0.84), rgba(248,250,252,0.76));
  box-shadow: 0 26px 48px -34px rgba(15,23,42,0.28);
}
.cc-mode-accountant .cc-context-tag {
  background: rgba(247,93,30,0.12);
  box-shadow: inset 0 0 0 1px rgba(247,93,30,0.1);
}
.cc-mode-accountant .cc-context__icon {
  background: linear-gradient(145deg, rgba(247,93,30,0.18), rgba(255,255,255,0.96));
}
.cc-mode-accountant .cc-context-mini {
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(246,248,251,0.9));
  border: 1px solid rgba(15,23,42,0.06);
  color: #475569;
}
.cc-mode-accountant .cc-context-mini strong {
  color: #0f172a;
}
.cc-mode-accountant .cc-topbar__profile,
.cc-mode-accountant .cc-logout-btn,
.cc-mode-accountant .cc-quick-pill,
.cc-mode-accountant .cc-btn--ghost {
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(247,249,252,0.84));
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 16px 30px -26px rgba(15,23,42,0.26), inset 0 0 0 1px rgba(255,255,255,0.9);
}
.cc-mode-accountant .cc-quick-pill:hover,
.cc-mode-accountant .cc-btn--ghost:hover,
.cc-mode-accountant .cc-logout-btn:hover {
  border-color: rgba(247,93,30,0.18);
}
.cc-mode-accountant .cc-search-wrap {
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(247,249,252,0.84));
}
.cc-mode-accountant .page-header,
.cc-mode-accountant .list-board,
.cc-mode-accountant .detail-card,
.cc-mode-accountant .empty-state,
.cc-mode-accountant .cc-panel-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(252,253,255,0.84));
  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 24px 40px -32px rgba(15,23,42,0.24);
}
.cc-mode-accountant .page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 28px;
}
.cc-mode-accountant .page-header h1 {
  margin: 0 0 6px;
  font-size: 1.52rem;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.cc-mode-accountant .page-header p {
  margin: 0;
  max-width: 54rem;
  color: #64748b;
  line-height: 1.6;
}
.cc-mode-accountant .page-header__actions,
.cc-mode-accountant .page-header > div:last-child {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cc-mode-accountant .detail-card {
  padding: 20px 22px;
  border-radius: 24px;
}
.cc-mode-accountant .detail-card h3 {
  margin-bottom: 4px;
}
.cc-mode-accountant .list-board {
  border-radius: 28px;
  padding: 10px 12px 6px;
}
.cc-mode-accountant .empty-state {
  border-radius: 20px;
  padding: 20px 18px;
  color: #64748b;
}
.cc-mode-accountant .board-table {
  border-spacing: 0 12px;
}
.cc-mode-accountant .board-table thead th {
  padding: 0 14px 10px;
  font-size: .74rem;
  letter-spacing: .12em;
  color: #7b8797;
}
.cc-mode-accountant .board-table td {
  padding: 14px 14px;
  border-top: 1px solid rgba(15,23,42,0.05);
  border-bottom: 1px solid rgba(15,23,42,0.05);
  background: rgba(255,255,255,0.95);
}
.cc-mode-accountant .board-table tbody tr:hover td {
  background: #fffaf6;
}
.cc-mode-accountant .board-table tbody td:first-child {
  border-left: 1px solid rgba(15,23,42,0.05);
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}
.cc-mode-accountant .board-table tbody td:last-child {
  border-right: 1px solid rgba(15,23,42,0.05);
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}
.cc-mode-accountant .badge,
.cc-mode-accountant .cc-panel-link {
  min-height: 36px;
  padding: 0 13px;
  background: rgba(247,93,30,0.1);
  color: #b34b17;
  border: 1px solid rgba(247,93,30,0.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.24);
}
.cc-mode-accountant .badge:hover,
.cc-mode-accountant .cc-panel-link:hover {
  background: rgba(247,93,30,0.14);
}
.cc-mode-accountant .muted {
  color: #64748b;
}
@media (max-width: 760px) {
  .cc-mode-accountant .page-header {
    padding: 18px;
  }
  .cc-mode-accountant .list-board {
    padding: 8px 8px 4px;
  }
}


/* =========================================================
   Wave 1 — shell mobile foundation
   ========================================================= */
.cc-shell-backdrop,
.cc-shell-menu,
.cc-rail__close {
  display: none;
}

.cc-topbar__row,
.cc-topbar__controls,
.cc-context,
.cc-context-wrap,
.cc-topbar__profile,
.cc-user-chip,
.cc-rail__brand,
.cc-rail__brand-main {
  min-width: 0;
}

.cc-rail__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cc-rail__brand-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cc-search-capsule,
.cc-search-capsule__button,
.cc-quick-pill,
.cc-logout-btn,
.cc-mode-tabs,
.cc-topbar__profile,
.cc-user-chip,
.cc-nav-item,
.cc-filterbar__field,
.cc-filterbar__select-wrap,
.cc-filterbar__date {
  min-width: 0;
}

.cc-board {
  padding-bottom: max(18px, env(safe-area-inset-bottom));
}

.cc-board > * {
  min-width: 0;
}

.board-table,
.chart-wrap,
.list-board,
.detail-card,
.cc-panel-card,
.cc-kpi-card {
  max-width: 100%;
}

@media (max-width: 1080px) {
  body.cc-body {
    overflow-x: hidden;
  }

  .cc-shell {
    grid-template-columns: 1fr !important;
    position: relative;
  }

  .cc-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(320px, calc(100vw - 40px));
    max-width: 88vw;
    height: 100vh;
    z-index: 70;
    border-radius: 0 28px 28px 0;
    transform: translateX(calc(-100% - 18px));
    transition: transform .24s ease, box-shadow .24s ease;
    box-shadow: 24px 0 44px -32px rgba(11,25,45,0.4);
  }

  body.cc-shell-nav-open .cc-rail {
    transform: translateX(0);
  }

  .cc-shell-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(15,23,42,0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 65;
  }

  body.cc-shell-nav-open .cc-shell-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .cc-shell-menu,
  .cc-rail__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(15,23,42,0.08);
    background: rgba(255,255,255,0.92);
    color: #304054;
    box-shadow: 0 16px 26px -22px rgba(11,25,45,0.35);
    cursor: pointer;
    flex: 0 0 auto;
  }

  .cc-shell-menu:hover,
  .cc-rail__close:hover {
    border-color: rgba(247,93,30,0.28);
    color: var(--cc-orange-strong);
    background: #fff;
  }

  .cc-main {
    padding: 18px;
  }

  .cc-topbar {
    padding: 20px;
    border-radius: 24px;
  }

  .cc-topbar__row {
    gap: 14px;
  }

  .cc-topbar__row--primary {
    align-items: flex-start;
  }

  .cc-topbar__controls {
    width: 100%;
    justify-content: flex-start;
  }

  .cc-topbar__profile {
    order: 2;
  }

  .cc-logout-btn {
    margin-left: auto;
  }

  .cc-mode-tabs,
  .cc-quick-actions,
  .cc-hub-launchers,
  .cc-context-miniwrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .cc-mode-tabs::-webkit-scrollbar,
  .cc-quick-actions::-webkit-scrollbar,
  .cc-hub-launchers::-webkit-scrollbar,
  .cc-context-miniwrap::-webkit-scrollbar {
    display: none;
  }

  .cc-mode-tab,
  .cc-quick-pill,
  .cc-hub-launcher,
  .cc-context-mini {
    flex: 0 0 auto;
    white-space: nowrap;
  }

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

  .cc-search-capsule {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
  }

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

  .board-table-wrap,
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  .cc-main {
    padding: 14px;
    gap: 14px;
  }

  .cc-topbar {
    padding: 16px;
    border-radius: 22px;
  }

  .cc-context {
    align-items: flex-start;
  }

  .cc-context__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .cc-context__title {
    font-size: 1rem;
  }

  .cc-context__meta {
    font-size: .86rem;
    line-height: 1.45;
  }

  .cc-topbar__controls {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cc-topbar__profile,
  .cc-logout-btn,
  .cc-mode-tabs,
  .cc-hub-launchers,
  .cc-quick-actions {
    width: 100%;
  }

  .cc-topbar__profile {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.72);
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.05);
  }

  .cc-logout-btn {
    margin-left: 0;
  }

  .cc-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    overflow: visible;
  }

  .cc-quick-pill {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 14px;
  }

  .cc-mode-tabs,
  .cc-hub-launchers,
  .cc-context-miniwrap {
    overflow: auto;
  }

  .cc-search-wrap {
    padding: 10px;
    border-radius: 22px;
  }

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

  .cc-search-capsule__button {
    min-width: 44px;
    padding: 0 12px;
  }

  .cc-search-capsule__button span {
    display: none;
  }

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

  .cc-rail {
    width: min(310px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
    padding: 20px 12px 16px;
  }

  .cc-rail__groups {
    gap: 14px;
  }

  .cc-nav-item {
    padding: 12px 14px;
  }

  .board-table {
    min-width: 640px;
  }
}

.cc-hub-floating-wrap {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 74;
  pointer-events: none;
}

.cc-hub-float {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  min-width: 280px;
  padding: 14px 18px 14px 16px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(247,93,30,0.96), rgba(234,88,12,0.94));
  color: #fff;
  box-shadow: 0 28px 56px -26px rgba(234,88,12,0.72), 0 16px 38px -28px rgba(15,23,42,0.48);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.cc-hub-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 34px 60px -28px rgba(234,88,12,0.82), 0 22px 44px -30px rgba(15,23,42,0.5);
  filter: saturate(1.04);
}

.cc-hub-float.is-active {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 36px 70px -28px rgba(234,88,12,0.86), 0 24px 54px -30px rgba(15,23,42,0.54);
}

.cc-hub-float__halo {
  position: absolute;
  inset: -18% auto auto -6%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent 72%);
  opacity: .95;
}

.cc-hub-float__icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0.10));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20), 0 16px 28px -22px rgba(15,23,42,0.52);
  font-size: 1.06rem;
  flex: 0 0 46px;
  overflow: visible;
}

.cc-hub-float--appointments .cc-hub-float__icon {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(148,163,184,0.16));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 16px 28px -22px rgba(15,23,42,0.60);
}

.cc-hub-float--messages .cc-hub-float__icon {
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,237,213,0.18));
}

.cc-hub-float__copy {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cc-hub-float__copy strong {
  font-size: .92rem;
  line-height: 1.1;
  letter-spacing: .01em;
}

.cc-hub-float__copy small {
  color: rgba(255,255,255,0.84);
  font-size: .74rem;
  line-height: 1.35;
}

.cc-hub-float__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #c2410c;
  font-weight: 900;
  font-size: .72rem;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 14px 26px -16px rgba(15,23,42,0.56), 0 0 0 2px rgba(15,23,42,0.18);
}

.cc-hub-float--appointments .cc-hub-float__badge {
  color: #0f172a;
  box-shadow: 0 14px 26px -16px rgba(15,23,42,0.56), 0 0 0 2px rgba(255,255,255,0.22);
}

.cc-hub-modal--messages {
  width: min(1280px, calc(100vw - 40px));
}

.cc-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(248,107,36,0.1);
  color: #c2410c;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cc-hub-head--messages {
  margin-bottom: 18px;
}

.cc-msg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 16px;
  margin-bottom: 18px;
}

.cc-msg-hero__panel,
.cc-msg-hero__stats {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,250,251,0.96));
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 26px;
  padding: 18px;
}

.cc-msg-hero__eyebrow,
.cc-msg-stat__label {
  display: inline-flex;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cc-msg-hero__panel h4 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  color: #0f172a;
  letter-spacing: -.02em;
}

.cc-msg-hero__panel p {
  margin: 0;
  color: #475569;
  line-height: 1.62;
}

.cc-msg-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cc-msg-stat {
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff7ed, #fff);
  border: 1px solid rgba(248,107,36,0.12);
  display: grid;
  gap: 6px;
}

.cc-msg-stat strong {
  font-size: 1.55rem;
  line-height: 1;
  color: #0f172a;
}

.cc-msg-stat small {
  color: #64748b;
  line-height: 1.45;
}

.cc-hub-grid--messages {
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: start;
}

.cc-msg-side {
  display: grid;
  gap: 16px;
}

.cc-hub-pane__head--tight {
  margin-bottom: 14px;
}

.cc-hub-pane__meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: .74rem;
  font-weight: 900;
}

.cc-msg-stream {
  display: grid;
  gap: 12px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}

.cc-msg-card {
  border-radius: 24px;
  box-shadow: 0 16px 34px -28px rgba(15,23,42,0.28);
}

.cc-msg-card__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.cc-msg-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: linear-gradient(145deg, #fff7ed, #fed7aa);
  color: #9a3412;
  box-shadow: inset 0 0 0 1px rgba(248,107,36,0.12);
}

.cc-hub-card__meta--thread {
  margin-top: 8px;
}

.cc-hub-pane--message-compose,
.cc-hub-pane--message-insights {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.94));
}

.cc-msg-insight-list {
  display: grid;
  gap: 12px;
}

.cc-msg-insight {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  display: grid;
  gap: 5px;
}

.cc-msg-insight__label {
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cc-msg-insight strong {
  color: #0f172a;
  font-size: 1rem;
}

.cc-msg-insight small {
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .cc-msg-hero,
  .cc-hub-grid--messages {
    grid-template-columns: 1fr;
  }

  .cc-msg-stream {
    max-height: 46vh;
  }
}

@media (max-width: 760px) {
  .cc-hub-floating-wrap {
    right: 16px;
    bottom: 16px;
  }

  .cc-hub-float {
    min-width: 0;
    width: 62px;
    height: 62px;
    min-height: 62px;
    padding: 0;
    justify-content: center;
    border-radius: 20px;
  }

  .cc-hub-float__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .cc-hub-float__copy {
    display: none;
  }

  .cc-hub-float__badge {
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    font-size: .68rem;
    top: -5px;
    right: -6px;
  }

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

/* Office Hub floating launchers: icon only, no visible labels. */
.cc-hub-floating-wrap .cc-hub-float {
  min-width: 0 !important;
  width: 62px !important;
  height: 62px !important;
  min-height: 62px !important;
  padding: 0 !important;
  justify-content: center !important;
  gap: 0 !important;
  border-radius: 20px !important;
}

.cc-hub-floating-wrap .cc-hub-float__copy {
  display: none !important;
}

.cc-hub-floating-wrap .cc-hub-float__icon {
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
}
