:root {
  color-scheme: dark;
  --bg: #0c0c0e;
  --side: #121219;
  --panel: #18181b;
  --panel2: #242426;
  --hover: #25292d;
  --edge: #2e2e34;
  --line: #27272b;
  --text: #f3f5f4;
  --soft: #c7ced9;
  --muted: #98a8be;
  --green: #34d475;
  --deep: #162e20;
  --primary: #22c55e;
  --input: #141719;
  --mint: #55d98a;
  --violet: #b29af5;
  --amber: #e5b477;
  --blue: #81b2fa;
  --track: #2b2e32;
  --active-bg: #22c55e;
  --active-txt: #ffffff;
  --shadow: 0 4px 9px #00000025;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f6;
  --side: #fff;
  --panel: #fff;
  --panel2: #f2f5f3;
  --hover: #eff3f0;
  --edge: #d7dfda;
  --line: #dfe5e1;
  --text: #18261e;
  --soft: #46574c;
  --muted: #59695e;
  --green: #137d43;
  --deep: #dceee1;
  --input: #fff;
  --mint: #197d47;
  --violet: #7150a5;
  --amber: #996325;
  --blue: #396ab1;
  --track: #e5eae7;
  --active-bg: #137c3e;
  --active-txt: #ffffff;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-ui, system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: -0.028em;
  font-weight: 700;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip:focus {
  position: fixed;
  z-index: 10;
  background: var(--panel);
  padding: 8px;
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  padding: 9px 22px 9px 6px;
}
.sidebar {
  position: sticky;
  top: 9px;
  height: calc(100dvh - 18px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 0 13px;
  border-radius: 18px;
  background: var(--side);
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.sidebar .brand {
  margin: 0 20px;
  min-height: 60px;
  flex-shrink: 0;
}
.brand-logo {
  width: 130px;
  height: auto;
  display: block;
}
[data-theme="light"] .brand-logo {
  filter: brightness(0.19);
}
.workspace {
  margin: 0 10px 7px;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 0;
  background: color-mix(in srgb, var(--side) 94%, white);
}
.workspace summary {
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  cursor: pointer;
  list-style: none;
}
.workspace summary::-webkit-details-marker {
  display: none;
}
.workspace summary svg {
  color: var(--muted);
}
.workspace small,
.workspace strong,
.profile small,
.profile strong {
  display: block;
}
.workspace small,
.nav-group {
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.085em;
  font-weight: 650;
  color: color-mix(in srgb, var(--muted) 72%, var(--side));
}
.workspace strong {
  font-size: 0.88rem;
  font-weight: 650;
  margin-top: 1px;
}
.profile-options {
  display: grid;
  gap: 7px;
  padding: 7px 11px 12px;
  font-size: 0.82rem;
  color: var(--soft);
}
.profile-options button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 7px;
  padding: 6px;
  background: var(--panel2);
}
.side-nav {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--edge) transparent;
  padding: 2px 16px 6px 10px;
  min-height: 0;
}
.nav-group {
  margin: 3px 12px 5px;
}
.nav-section {
  padding-top: 6px;
}
.nav-section + .nav-section {
  margin-top: 10px;
  padding-top: 15px;
  position: relative;
}
.nav-section + .nav-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--line);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  height: 45px;
  margin: 1px 0;
  padding: 6px 8px;
  border-radius: 12px;
  color: var(--soft);
  font-size: 0.91rem;
  font-weight: 500;
}
.nav-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
}
.nav-item:hover,
.icon-btn:hover {
  background: var(--hover);
  color: var(--text);
}
.nav-item.active {
  background: var(--active-bg);
  color: var(--active-txt);
  font-weight: 650;
}
.nav-item.active .nav-symbol {
  background: #ffffff40;
}
.sidebar-bottom {
  margin-top: auto;
}
.profile-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}
.profile-copy strong {
  font-size: 0.92rem;
  font-weight: 650;
}
.demo-label {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 12px 16px;
}
.demo-label i,
.badge i {
  display: inline-block;
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.demo-label i {
  color: var(--green);
}
.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 13px 0;
  border-top: 1px solid var(--edge);
}
.profile-copy {
  flex: 1;
  min-width: 0;
}
.profile-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  font-size: 0.82rem;
}
.icon-btn,
.row-open {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--soft);
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.main-col {
  min-width: 0;
}
.topbar {
  height: 65px;
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}
.crumb,
.top-actions,
.top-date,
.actions,
.btn,
.metric-top,
.row-name,
.text-link,
.task-meta span,
.add-task,
.alert,
.panel-icon {
  display: flex;
  align-items: center;
}
.crumb {
  font-size: 0.87rem;
  gap: 12px;
  color: var(--muted);
}
.crumb i {
  font-style: normal;
  color: var(--muted);
}
.crumb strong {
  font-weight: 550;
  color: var(--soft);
}
.top-actions {
  gap: 16px;
}
.top-date {
  gap: 8px;
  font-size: 0.85rem;
  color: var(--soft);
  padding-right: 16px;
  border-right: 1px solid var(--edge);
}
.content {
  width: 100%;
  margin: 0 auto;
  padding: 26px 0 28px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.page-head p,
.access-card > p {
  color: var(--muted);
  margin-top: 7px;
}
.actions {
  gap: 8px;
  flex-wrap: wrap;
}
.actions:empty {
  display: none;
}
.btn {
  border: 1px solid transparent;
  min-height: 39px;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 8px 15px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}
.primary {
  background: var(--primary);
  color: #0b2614;
}
.primary:hover {
  background: #65e48f;
}
.secondary {
  background: var(--panel2);
  border-color: var(--edge);
  color: var(--text);
}
.secondary:hover,
.small-btn:hover,
.client-card:hover,
.task > a:hover {
  color: var(--green);
}
.panel,
.lane,
.editor {
  background: var(--panel);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.panel {
  min-width: 0;
  overflow: hidden;
}
.item-line small,
.row-name small,
.task small,
.client-card small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 19px 20px 12px;
  min-height: 50px;
}
.panel-icon {
  color: var(--muted);
}
.briefing,
.todo {
  --tone: #99a4f2;
}
.layout {
  --tone: #bb8fe9;
}
.development,
.doing {
  --tone: #76a9f1;
}
.review,
.waiting {
  --tone: #e6b770;
}
.published,
.done {
  --tone: #51d489;
}
.badge {
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 650;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-flex;
  white-space: nowrap;
  gap: 6px;
  align-items: center;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 12%, transparent);
}
[data-theme="light"] .badge {
  color: color-mix(in srgb, var(--tone) 55%, #161921);
}
.row-name strong,
.item-line strong {
  font-weight: 650;
  font-size: 0.94rem;
}
.row-name:hover strong,
.text-link:hover {
  color: var(--green);
}
.text-link {
  display: inline-flex;
  gap: 4px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 650;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
}
th:first-child,
td:first-child {
  padding-left: 20px;
}
th:last-child,
td:last-child {
  padding-right: 16px;
}
th {
  font-size: 0.77rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  font-weight: 600;
  background: color-mix(in srgb, var(--bg) 25%, var(--panel));
}
td {
  color: var(--soft);
  font-size: 0.87rem;
}
tr:last-child td {
  border-bottom: 0;
}
.row-name {
  gap: 11px;
  color: var(--text);
}
.thumb {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: -0.035em;
  border-radius: 9px;
  flex: none;
}
.color0 {
  background: #274034;
  color: #a0deb1;
}
.color1 {
  background: #3b304a;
  color: #d8b4fa;
}
.color2 {
  background: #2f3b50;
  color: #adccf4;
}
.color3 {
  background: #47382a;
  color: #f5c89e;
}
.color4 {
  background: #3f3340;
  color: #efbedb;
}
.row-open {
  width: 24px;
}
.nowrap {
  white-space: nowrap;
}
.toolbar,
.tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--edge);
  border-radius: 8px;
  color: var(--muted);
  background: var(--input);
}
.search input {
  border: 0;
  background: none;
  min-width: 194px;
  padding-left: 0;
}
.toolbar select {
  width: auto;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--input);
  color: var(--text);
  font-size: 0.94rem;
}
select {
  appearance: none;
  padding-right: 33px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' viewBox='0 0 13 8'%3E%3Cpath d='m1 1 5.5 5L12 1' fill='none' stroke='%239aa39d' stroke-width='1.6'/%3E%3C/svg%3E");
  background-position: right 10px center;
  background-repeat: no-repeat;
}
textarea {
  resize: vertical;
}
.tabs {
  gap: 6px;
  border-bottom: 1px solid var(--edge);
  margin-bottom: 20px;
}
.tabs a {
  padding: 9px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.93rem;
}
.tabs a.chosen {
  border-color: var(--green);
  color: var(--green);
}
.editor,
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
  max-width: 960px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field span,
dt {
  color: var(--soft);
  font-size: 0.88rem;
}
.wide,
.form-foot {
  grid-column: 1/-1;
}
.form-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.facts {
  margin: 0;
  gap: 24px;
}
.facts dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
.detail-panel {
  margin-bottom: 18px;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.client-card {
  display: block;
  padding: 20px;
  overflow-wrap: anywhere;
}
.client-card h2 {
  margin: 14px 0 4px;
}
.client-card p {
  color: var(--soft);
}
.client-card footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 18px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.item-line {
  padding: 15px 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.item-line:last-child {
  border: 0;
}
.grow {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
}
.lane {
  align-self: start;
  padding: 12px;
}
.lane h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.lane h2 > span:last-child {
  font-size: 0.86rem;
  color: var(--muted);
}
.task {
  background: var(--panel2);
  border: 1px solid var(--edge);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
.task > a {
  display: block;
  font-weight: 650;
  margin: 4px 0 8px;
}
.task-page {
  font-size: 0.8rem;
  color: var(--muted);
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
  margin: 12px 0;
}
.task-meta span,
.add-task {
  gap: 4px;
}
.move {
  display: flex;
  gap: 5px;
}
.move select,
.small-btn {
  font-size: 0.78rem;
}
.move select {
  padding: 6px 24px 6px 7px;
}
.small-btn {
  border: 1px solid var(--edge);
  background: var(--input);
  border-radius: 7px;
}
.add-task {
  font-size: 0.85rem;
  color: var(--soft);
  justify-content: center;
  padding: 6px;
}
.empty {
  text-align: center;
  padding: 24px 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--soft);
}
.empty p {
  font-size: 0.89rem;
  color: var(--muted);
}
.empty-icon {
  color: var(--green);
  margin-bottom: 3px;
}
.prerequisite {
  text-align: center;
  padding-bottom: 20px;
}
.prerequisite .btn {
  display: inline-flex;
}
.alert {
  gap: 8px;
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
}
.success {
  background: var(--deep);
  color: var(--green);
}
.error {
  background: #422627;
  color: #ffd1cb;
}
.access {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(ellipse at 50% 12%, var(--deep), transparent 65%), var(--bg);
}
.access-card {
  width: min(430px, 100%);
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--panel);
  padding: 30px;
}
.access .brand {
  margin: 0 0 24px;
}
.access-card h1 {
  font-size: 1.8rem;
}
.access .editor {
  display: flex;
  flex-direction: column;
  border: 0;
  padding: 20px 0 0;
  background: none;
  box-shadow: none;
}
.access .alert,
.demo-login {
  margin-top: 16px;
}
.demo-login .btn {
  width: 100%;
}
.mobile-toggle,
.shade {
  display: none;
}
@media (min-width: 851px) {
  .is-dashboard .topbar {
    display: none;
  }
  .is-dashboard .content {
    padding-top: 0;
  }
}
@media (min-width: 851px) and (max-width: 1150px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 20px;
    padding-right: 14px;
  }
}
@media (max-width: 850px) {
  .shell {
    display: block;
    padding: 0;
  }
  .sidebar {
    position: fixed;
    left: 6px;
    top: 8px;
    height: calc(100dvh - 16px);
    width: min(240px, calc(100vw - 35px));
    transform: translateX(-101%);
    transition: transform 0.15s;
  }
  .menu-open .sidebar {
    transform: none;
  }
  .menu-open .shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #0008;
    border: 0;
    z-index: 4;
  }
  .mobile-toggle {
    display: inline-grid;
  }
  .topbar {
    height: 55px;
    padding: 0 16px;
  }
  .crumb {
    gap: 7px;
  }
  .content {
    padding: 25px 18px;
  }
  .sidebar {
    visibility: hidden;
  }
  .menu-open .sidebar {
    visibility: visible;
  }
}
@media (max-width: 620px) {
  .top-actions {
    gap: 3px;
  }
  .top-date {
    font-size: 0.75rem;
    padding-right: 6px;
    gap: 3px;
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
    gap: 13px;
  }
  .page-head p {
    font-size: 0.93rem;
  }
  .panel-head {
    padding-top: 16px;
  }
  .content {
    padding: 20px 13px 36px;
  }
  .editor,
  .facts {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .table-wrap table {
    min-width: 565px;
  }
  .item-line {
    flex-wrap: wrap;
    padding: 12px;
  }
  .kanban {
    grid-template-columns: repeat(4, minmax(235px, 78vw));
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
  .toolbar .search {
    flex: 1 1 100%;
  }
  .toolbar .search input {
    min-width: 0;
  }
  .topbar {
    padding: 0 10px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .late {
    font-size: 0.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.site-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.site-count {
  padding: 16px 20px;
  color: var(--soft);
}
.site-count strong {
  display: block;
  font-size: 1.75rem;
  color: var(--tone);
}
.site-count:hover { border-color: var(--tone); }
.site-count.active, .badge.active { --tone: var(--mint); }
.site-count.blocked, .badge.blocked { --tone: var(--amber); }
.site-count.inactive, .badge.inactive { --tone: var(--muted); }
.sites-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin: 16px 0;
}
.site-note, .site-hint {
  display: block;
  color: var(--muted);
  font-size: .83rem;
}
.site-note { margin-top: 4px; }
.site-hint { align-self: center; }
.site-section {
  margin-bottom: 18px;
  padding: 20px;
}
.site-section p { margin: 12px 0; color: var(--soft); }
.site-section pre, .site-key {
  display: block;
  max-width: 100%;
  margin: 14px 0 0;
  padding: 12px;
  overflow: auto;
  background: var(--input);
  border-radius: 8px;
}
.site-section .btn { width: fit-content; }
.site-section summary { cursor: pointer; }
.site-section .sites-filter { margin-bottom: 0; }
.site-progress { width: 100%; accent-color: var(--green); }
@media (max-width: 600px) {
  .site-counts { gap: 6px; }
  .site-count { padding: 12px 8px; font-size: .86rem; }
}

@media (max-width: 680px) {
  .site-table table { display: block; min-width: 0; }
  .site-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .site-table tbody, .site-table tr, .site-table td { display: block; }
  .site-table tr { padding: 14px 17px; border-top: 1px solid var(--line); }
  .site-table td { border: 0; padding: 4px 0; white-space: normal; }
  .site-table td:first-child { font-weight: 650; padding-bottom: 8px; }
  .site-table td[data-label] {
    display: grid;
    grid-template-columns: minmax(100px, .9fr) minmax(0, 1.2fr);
    column-gap: 12px;
    align-items: baseline;
    justify-items: start;
    overflow-wrap: anywhere;
  }
  .site-table td[data-label]::before { content: attr(data-label); color: var(--muted); }
  .site-table td[data-label] .site-note { grid-column: 2; }
}
