:root {
  color-scheme: dark;
  --bg: #121416;
  --surface: #1a1c1f;
  --surface2: #202326;
  --line: #2c3033;
  --text: #f0f1ed;
  --muted: #a3a8ac;
  --accent: #d7f8bf;
  --red: #f3a39e;
  --amber: #eaca91;
  --blue: #a4bce8;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
.source-panel {
  margin-bottom: 22px;
}
.source-detail {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 15px 0;
  background: var(--surface);
}
.source-detail p {
  margin-top: 6px;
}
.pipeline-strip {
  grid-template-columns: repeat(9, minmax(0, 1fr));
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  border: 0;
  background: none;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -1px;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--surface2);
  color: var(--text);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface2);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover {
  background: #303438;
}
.btn.primary {
  background: var(--accent);
  color: #23301d;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: #e6fdd9;
}
.btn.ghost {
  background: transparent;
}
.btn.tiny {
  min-height: 32px;
  font-size: 12px;
  padding: 6px 10px;
}
.btn.danger {
  color: var(--red);
}
.sidebar {
  overflow-y: auto;
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  background: #181a1c;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 29px 18px 20px;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 8px 30px;
}
.brandmark {
  height: 38px;
  width: 38px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #22321c;
  border-radius: 11px;
}
.brandmark svg {
  width: 23px;
  height: 23px;
}
.brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.3px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.6px;
}
.nav-caption {
  padding: 16px 12px 10px;
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #969c9f;
}
.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin: 3px 0;
  text-align: left;
  color: var(--muted);
  border-radius: 9px;
  font-size: 13px;
}
.nav-btn.active {
  background: #293029;
  color: var(--accent);
}
.nav-btn:hover {
  background: #24272a;
  color: var(--text);
}
.nav-btn .nav-count {
  margin-left: auto;
  border: 1px solid #434b3f;
  border-radius: 5px;
  min-width: 22px;
  text-align: center;
  font-size: 10px;
}
.sidebar-bottom {
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
}
.workspace-label {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}
.workspace-icon {
  background: #292c2f;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #303932;
  border: 1px solid #455246;
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
}
.actor-select {
  width: 100%;
  margin-top: 8px;
}
.role-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.main-shell {
  margin-left: 235px;
  min-height: 100vh;
}
.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 20, 22, 0.92);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}
.breadcrumb b {
  font-weight: 500;
  color: var(--text);
}
.divider {
  color: #565e63;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.status-dot.offline {
  background: var(--amber);
}
.connection {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.date-label {
  font-size: 12px;
  color: var(--muted);
}
.mobile-toggle {
  display: none;
}
.main {
  padding: 32px 35px 40px;
  max-width: 1800px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.page-head .eyebrow {
  margin-bottom: 8px;
}
.page-head p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 13px;
}
.alert {
  border: 1px solid #705944;
  background: #30271e;
  color: var(--amber);
  padding: 12px 16px;
  border-radius: 9px;
  margin-bottom: 20px;
  font-size: 13px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 23px;
}
.stat {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.stat-top svg {
  width: 15px;
  height: 15px;
}
.stat-number {
  display: block;
  font-size: 32px;
  letter-spacing: -1.4px;
  font-weight: 500;
  margin: 9px 0 2px;
  font-variant-numeric: tabular-nums;
}
.stat-foot {
  font-size: 10px;
  color: var(--muted);
}
.stat.attention .stat-number {
  color: var(--amber);
}
.stat.good .stat-number {
  color: var(--accent);
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.panel-head .muted {
  font-size: 12px;
  margin-top: 3px;
}
.panel-body {
  padding: 22px;
}
.grid-two {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.grid-two.equal {
  grid-template-columns: 1fr 1fr;
}
.pipeline-strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 12px;
  padding: 22px;
}
.stage-mini {
  border-right: 1px solid var(--line);
}
.stage-mini:last-child {
  border: 0;
}
.stage-mini span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.stage-mini b {
  font-size: 20px;
  font-weight: 500;
}
.stage-track {
  height: 3px;
  border-radius: 2px;
  background: #343a3d;
  margin-top: 14px;
  width: 80%;
}
.stage-track.filled {
  background: var(--accent);
}
.onboarding {
  margin: 20px 0;
  background: linear-gradient(120deg, #252d25, #1b201e 67%);
  border: 1px solid #3b4739;
  border-radius: 13px;
  padding: 27px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.onboarding-symbol {
  height: 73px;
  width: 73px;
  border: 1px solid #66775d;
  border-radius: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #303c2b;
  color: var(--accent);
  transform: rotate(-6deg);
}
.onboarding-symbol svg {
  width: 33px;
  height: 33px;
  transform: rotate(6deg);
}
.onboarding h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 7px 0;
}
.onboarding p {
  font-size: 13px;
  color: #b5bdb1;
  max-width: 540px;
}
.setup-steps {
  display: flex;
  gap: 20px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.setup-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #b5bdb1;
}
.setup-step b {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid #65725e;
  border-radius: 50%;
  font-size: 9px;
  color: var(--accent);
}
.setup-step.done b {
  background: var(--accent);
  color: #22321c;
}
.empty {
  padding: 36px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 180px;
}
.empty-symbol {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: #a1aaa6;
  display: grid;
  place-items: center;
  border-radius: 13px;
  margin-bottom: 5px;
}
.empty h3 {
  font-size: 13px;
}
.empty p {
  font-size: 12px;
  color: var(--muted);
  max-width: 290px;
}
.empty .btn {
  margin-top: 8px;
}
.division-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.division-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  padding: 16px;
}
.division-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #303238;
  color: #c3bddb;
  margin-bottom: 11px;
}
.division-card:nth-child(2) .division-icon {
  color: #c9b2a0;
  background: #332c28;
}
.division-card:nth-child(3) .division-icon {
  color: #a4c4cb;
  background: #263135;
}
.division-card:nth-child(4) .division-icon {
  color: #bed19d;
  background: #2c3327;
}
.division-card:nth-child(5) .division-icon {
  color: #d4b6d0;
  background: #322a31;
}
.division-card h3 {
  font-size: 12px;
  margin-bottom: 7px;
}
.division-card p {
  font-size: 11px;
  color: var(--muted);
}
.division-card strong {
  font-size: 19px;
  color: var(--text);
  font-weight: 500;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 12px;
}
.section-label h2 {
  font-size: 14px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #42464a;
  background: #2b2e31;
  border-radius: 6px;
  font-size: 10px;
  line-height: 1.2;
  color: #c2c7ca;
  white-space: nowrap;
}
.badge.green {
  color: var(--accent);
  background: #2b3428;
  border-color: #414f38;
}
.badge.amber {
  color: var(--amber);
  background: #3a3127;
  border-color: #5b4932;
}
.badge.red {
  color: var(--red);
  background: #382b2a;
  border-color: #5f3d3b;
}
.badge.blue {
  color: var(--blue);
  background: #28303c;
  border-color: #3c4a60;
}
.badge.purple {
  color: #c9b6e8;
  background: #312b3d;
  border-color: #4c405e;
}
.item-list {
  padding: 0 22px;
}
.list-item {
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.list-item:last-child {
  border-bottom: 0;
}
.list-item .title {
  font-size: 12px;
  font-weight: 500;
}
.list-item .subtitle {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.item-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  background: #282d29;
  border: 1px solid #394139;
  border-radius: 8px;
  color: #bdcbb5;
  flex-shrink: 0;
}
.item-icon svg {
  width: 15px;
  height: 15px;
}
.activity-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #828f7c;
  flex-shrink: 0;
}
.activity-line {
  border-left: 1px solid var(--line);
  padding-left: 18px;
  margin-left: 8px;
  padding-bottom: 19px;
  position: relative;
}
.activity-line:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #879580;
  left: -4px;
  top: 6px;
}
.activity-line:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.activity-line p {
  font-size: 12px;
}
.activity-line time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.footer {
  font-size: 10px;
  color: #8a9297;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 190px;
  max-width: 320px;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.search-field input {
  padding-left: 37px;
  width: 100%;
}
.toolbar select {
  max-width: 175px;
}
input,
select,
textarea {
  background: #1c1f22;
  border: 1px solid #383d41;
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  min-height: 40px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #8b9398;
}
textarea {
  resize: vertical;
  min-height: 86px;
}
option {
  background: #202326;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 9px;
}
.tab {
  padding: 6px 11px;
  font-size: 12px;
  border-radius: 6px;
  color: var(--muted);
}
.tab.active {
  background: #363b3d;
  color: var(--text);
}
.board {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  min-height: 330px;
  padding-bottom: 14px;
}
.lane {
  width: 252px;
  min-width: 252px;
  background: #16191b;
  border: 1px solid #292d30;
  border-radius: 12px;
  align-self: flex-start;
}
.lane-head {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.lane-head .count {
  font-size: 10px;
  color: var(--muted);
  background: #292e30;
  padding: 2px 6px;
  border-radius: 5px;
}
.lane-body {
  padding: 0 10px 10px;
  min-height: 100px;
}
.lane-empty {
  border: 1px dashed #343a3d;
  border-radius: 8px;
  text-align: center;
  color: #91999e;
  font-size: 11px;
  padding: 30px 10px;
}
.content-card {
  border: 1px solid #363b3e;
  background: #202326;
  border-radius: 9px;
  margin: 0 0 10px;
  padding: 15px;
  width: 100%;
  text-align: left;
  display: block;
  transition: border 0.15s;
}
.content-card:hover {
  border-color: #77856d;
}
.content-card h3 {
  margin: 11px 0 5px;
  font-size: 13px;
}
.content-card p {
  font-size: 11px;
  color: var(--muted);
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #353a3d;
  font-size: 10px;
  color: var(--muted);
}
.progress {
  height: 4px;
  border-radius: 3px;
  background: #363d36;
  overflow: hidden;
  margin: 12px 0 3px;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
}
.task-card .btn {
  margin-top: 12px;
}
.task-card .card-note {
  margin-top: 9px;
  color: var(--amber);
  font-size: 11px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  padding: 14px 20px;
  background: #202326;
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
tbody tr:hover {
  background: #212529;
}
.table-title {
  font-weight: 600;
  color: var(--text);
  text-align: left;
  padding: 0;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.calendar-day-name {
  background: var(--surface2);
  padding: 13px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.calendar-cell {
  background: var(--surface);
  min-height: 128px;
  padding: 10px;
  overflow: hidden;
}
.calendar-cell.outside {
  background: #16181a;
  color: #727a80;
}
.calendar-number {
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin-bottom: 6px;
}
.calendar-number.today {
  background: var(--accent);
  color: #23301d;
  border-radius: 50%;
}
.calendar-event {
  display: block;
  width: 100%;
  padding: 6px 7px;
  border-radius: 5px;
  border: 1px solid #404c38;
  background: #293026;
  color: #d2e2c7;
  text-align: left;
  font-size: 10px;
  margin-bottom: 4px;
  overflow: hidden;
}
.calendar-event.blue {
  background: #26313b;
  color: var(--blue);
  border-color: #3b4c62;
}
.calendar-event .truncate {
  display: block;
}
.calendar-legend {
  display: flex;
  gap: 14px;
  margin: 17px 0;
  color: var(--muted);
  font-size: 11px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.member-card {
  padding: 21px;
}
.member-card .avatar {
  height: 41px;
  width: 41px;
  font-size: 13px;
}
.member-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.member-metrics b {
  font-size: 20px;
  font-weight: 500;
}
.member-metrics span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.review-card {
  padding: 22px;
}
.review-card h3 {
  margin: 12px 0 5px;
}
.review-card .row:last-child {
  margin-top: 18px;
}
.drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #080b0ccc;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(3px);
}
.drawer {
  width: 650px;
  max-width: 100%;
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px #0004;
}
.drawer-head {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.drawer-head h2 {
  font-size: 23px;
  margin: 10px 0;
}
.drawer-body {
  padding: 25px 26px;
  overflow-y: auto;
}
.drawer-section {
  margin-bottom: 28px;
}
.drawer-section h3 {
  margin-bottom: 13px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.brief-text {
  white-space: pre-wrap;
  color: #ccd0d1;
  font-size: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 22px;
}
.detail-grid span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-grid b {
  font-weight: 500;
  font-size: 12px;
}
.asset-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.drawer-task {
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 10px;
}
.drawer-task .title {
  font-size: 12px;
  font-weight: 600;
}
.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.comment-form textarea {
  flex: 1;
  min-width: 0;
  min-height: 42px;
}
.comment-form .btn {
  align-self: flex-start;
}
.modal-backdrop {
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 60;
}
.modal {
  width: 670px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #43494e;
  border-radius: 15px;
  background: var(--bg);
  box-shadow: 0 20px 80px #0008;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 19px;
}
.modal-body {
  overflow-y: auto;
  padding: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field.full {
  grid-column: 1/-1;
}
.field label,
.field-label {
  font-size: 12px;
  color: #c3c8cb;
}
.field .hint {
  font-size: 10px;
  color: var(--muted);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
}
.form-error {
  color: var(--red);
  padding: 12px;
  border: 1px solid #62413e;
  background: #352826;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 12px;
}
.checkbox-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  max-height: 140px;
  overflow-y: auto;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 12px;
}
.check-row input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--accent);
}
.settings-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.config-note {
  background: #242d23;
  border: 1px solid #3b4b34;
  padding: 17px;
  border-radius: 9px;
  color: #c3d9b8;
  font-size: 12px;
}
.skeleton {
  height: 160px;
  border-radius: 12px;
  background: linear-gradient(100deg, #1b1e20, #282d2f, #1b1e20);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}
.loading-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  z-index: 100;
  max-width: 90vw;
  background: #d7f8bf;
  color: #22301b;
  padding: 11px 18px;
  border-radius: 9px;
  font-size: 12px;
  box-shadow: 0 10px 40px #0006;
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #f3a39e;
  color: #38211f;
}
.mobile-scrim {
  display: none;
}
.hidden {
  display: none !important;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (min-width: 1500px) {
  .main {
    padding: 40px 45px;
  }
  .topbar {
    padding: 0 45px;
  }
  .stats {
    gap: 18px;
  }
  .stat {
    padding: 22px;
  }
  .onboarding {
    padding: 32px;
  }
  .division-card {
    padding: 22px;
  }
}
@media (max-width: 1180px) {
  .sidebar {
    width: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-shell {
    margin-left: 205px;
  }
  .main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .division-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pipeline-strip {
    gap: 9px;
  }
  .stage-mini span {
    font-size: 9px;
  }
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .onboarding {
    gap: 18px;
  }
  .onboarding-symbol {
    display: none;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .calendar-cell {
    min-height: 112px;
    padding: 6px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 235px;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-scrim.open {
    display: block;
    position: fixed;
    inset: 0;
    background: #0009;
    z-index: 25;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    height: 62px;
    padding: 0 18px;
    gap: 10px;
  }
  .breadcrumb {
    gap: 8px;
  }
  .date-label {
    display: none;
  }
  .main {
    padding: 24px 18px;
  }
  .grid-two {
    grid-template-columns: 1fr;
  }
  .grid-two.equal {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head p {
    font-size: 12px;
    max-width: 300px;
  }
  .page-head .btn {
    padding: 9px 12px;
  }
  .pipeline-strip {
    grid-template-columns: repeat(4, 1fr);
    row-gap: 20px;
  }
  .stage-mini:nth-child(4) {
    border: 0;
  }
  .onboarding {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .onboarding .btn {
    align-self: flex-start;
  }
  .division-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .calendar-cell {
    min-height: 100px;
  }
  .calendar-event {
    padding: 4px;
    font-size: 9px;
  }
  .calendar-legend {
    flex-wrap: wrap;
  }
  .footer {
    flex-wrap: wrap;
  }
  #toast {
    left: 50%;
  }
  .toolbar .search-field {
    max-width: none;
  }
  .toolbar select {
    max-width: 150px;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 13px 11px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat-top svg {
    display: none;
  }
  .stat-number {
    font-size: 27px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .page-head {
    gap: 12px;
  }
  .page-head .btn span {
    display: none;
  }
  .page-head .btn {
    width: 40px;
    padding: 9px;
  }
  .division-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .panel-head {
    padding: 16px;
  }
  .panel-body {
    padding: 17px;
  }
  .item-list {
    padding: 0 17px;
  }
  .member-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    max-height: 94vh;
  }
  .modal-head {
    padding: 16px;
  }
  .modal-body {
    padding: 18px;
  }
  .drawer-head {
    padding: 18px;
  }
  .drawer-body {
    padding: 18px;
  }
  .calendar {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(84px, 1fr));
  }
  .connection {
    font-size: 10px;
  }
  .breadcrumb > span:first-child {
    display: none;
  }
  .breadcrumb .divider {
    display: none;
  }
  .setup-steps {
    gap: 11px;
  }
  .toolbar select {
    max-width: calc(50% - 5px);
  }
  .tabs {
    overflow-x: auto;
    max-width: 100%;
  }
  .loading-grid {
    grid-template-columns: 1fr;
  }
  .comment-form {
    flex-wrap: wrap;
  }
  .comment-form textarea {
    flex-basis: 100%;
  }
}
.previous {
  transform: rotate(180deg);
}
.item-list {
  padding: 0 22px;
}
.detail-grid {
  margin-top: 20px;
}
.drawer-task .row.wrap {
  margin-top: 10px;
}
.member-card > .row.wrap {
  margin-top: 14px;
}
.config-note + .toolbar {
  margin-top: 20px;
}
.panel-body .row.wrap {
  margin-top: 10px;
}
@media (max-width: 800px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .btn,
  .icon-btn {
    min-height: 44px;
  }
  .icon-btn {
    min-width: 44px;
  }
  .modal-head .icon-btn {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Team access uses the studio's light palette. */
.auth-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px;
  background:
    radial-gradient(ellipse at 20% 15%, #d5e5ff, transparent 55%),
    radial-gradient(ellipse at 85% 90%, #e1e4f6, transparent 50%), #edf2f9;
  color: #26354d;
}
.auth-card {
  width: min(440px, 100%);
  padding: 36px;
  background: #fff;
  border: 1px solid #dce5f1;
  border-radius: 20px;
  box-shadow: 0 20px 60px #34578215;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 36px;
}
.auth-brand svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 10px;
  background: #3564ee;
  color: #fff;
  fill: none;
  stroke: currentColor;
}
.auth-eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #6b83a6;
  margin-bottom: 10px;
}
.auth-card h1 {
  font-size: 28px;
  letter-spacing: -0.6px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.auth-intro {
  color: #6b7f9d;
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 28px;
}
.auth-card label {
  display: block;
  font-size: 12px;
  color: #405578;
  margin: 16px 0 8px;
}
.auth-card input {
  width: 100%;
  color: #26354d;
  background: #f8faff;
  border: 1px solid #cfdced;
  border-radius: 9px;
  padding: 12px;
}
.auth-card input:focus {
  outline: 2px solid #abc3ff;
  border-color: #3564ee;
}
.auth-card .pin-input {
  height: 64px;
  font-size: 26px;
  letter-spacing: 0.7em;
  text-align: center;
  padding-left: 25px;
}
#access-hint {
  font-size: 11px;
  color: #7990ac;
  margin-top: 9px;
}
#access-error {
  font-size: 12px;
  color: #b8414c;
  line-height: 1.6;
  margin-top: 14px;
}
.auth-card button[type="submit"] {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
  min-height: 44px;
}
.auth-divisions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e7edf6;
}
.auth-divisions span {
  font-size: 9px;
  color: #627ba0;
  background: #f1f5fc;
  border-radius: 5px;
  padding: 5px 7px;
}
.auth-footnote {
  color: #7c90ad;
  font-size: 11px;
  margin-top: 20px;
}
.session-profile {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 0;
}
.session-profile small {
  color: var(--muted);
  font-size: 11px;
}
.account-panel {
  margin-bottom: 22px;
}
.studio-account-name {
  font-size: 11px;
  white-space: nowrap;
  max-width: 95px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 480px) {
  .auth-card {
    padding: 26px 22px;
  }
  .auth-brand {
    margin-bottom: 26px;
  }
}

/* A gentle pop and moving shine draw attention to the main entry. */
.auth-card .guest-entry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 48px;
  margin-bottom: 24px;
  justify-content: center;
  border: 1px solid #c1eaa2;
  background: linear-gradient(110deg, #d9f8b7, #c9f2a3 55%, #e2fac9);
  color: #253d27;
  transform-origin: center;
  animation: guest-pop 3.8s ease-in-out infinite;
}
.guest-entry span {
  position: relative;
  z-index: 1;
}
.guest-entry::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -65%;
  width: 42%;
  background: linear-gradient(90deg, transparent, #ffffffb8, transparent);
  transform: translateX(0) skewX(-22deg);
  pointer-events: none;
  animation: guest-shine 4.8s ease-in-out infinite;
}
.guest-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 2px 7px at 8% 30%, #fff, transparent),
    radial-gradient(ellipse 7px 2px at 8% 30%, #fff, transparent),
    radial-gradient(ellipse 2px 6px at 91% 66%, #fff, transparent),
    radial-gradient(ellipse 6px 2px at 91% 66%, #fff, transparent);
  pointer-events: none;
  animation: guest-sparkle 3.8s ease-in-out infinite;
}
.auth-card .guest-entry:hover,
.auth-card .guest-entry:focus-visible {
  background: linear-gradient(110deg, #d9f8b7, #c9f2a3 55%, #e2fac9);
  animation-play-state: paused;
}
.auth-card .guest-entry:focus-visible {
  outline: 3px solid #3564ee;
  outline-offset: 4px;
}
.guest-entry:disabled,
.guest-entry:disabled::before,
.guest-entry:disabled::after {
  animation: none;
}
@keyframes guest-pop {
  0%,
  65%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px #88bc5120;
  }
  16% {
    transform: translateY(-3px) scale(1.035);
    box-shadow:
      0 9px 24px #88bc5145,
      0 0 0 6px #c9f2a335;
  }
  28% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px #88bc5120;
  }
  39% {
    transform: translateY(-1px) scale(1.012);
    box-shadow: 0 6px 18px #88bc5130;
  }
}
@keyframes guest-shine {
  0%,
  52% {
    transform: translateX(0) skewX(-22deg);
    opacity: 0;
  }
  58% {
    opacity: 1;
  }
  82%,
  100% {
    transform: translateX(460%) skewX(-22deg);
    opacity: 0;
  }
}
@keyframes guest-sparkle {
  0%,
  50%,
  100% {
    opacity: 0.15;
  }
  17%,
  34% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guest-entry,
  .guest-entry::before,
  .guest-entry::after {
    animation: none !important;
    transform: none !important;
  }
  .guest-entry::before,
  .guest-entry::after {
    display: none;
  }
}
