@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  font-family: "DM Sans", sans-serif;
  color: #172038;
  background: #f6f7fb;
  font-synthesis: none;
  --nav: #11182b;
  --accent: #6d50e8;
  --muted: #697386;
  --line: #e7eaf0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 1rem;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
.login-shell {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  min-height: 100dvh;
}
.login-story {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--nav);
  padding: 48px 64px;
  color: white;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  right: -220px;
  bottom: -210px;
  border: 80px solid #9d88ff14;
  border-radius: 50%;
  box-shadow: 0 0 0 90px #9d88ff08;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 700;
  letter-spacing: -0.6px;
  text-decoration: none;
  font-size: 1.2rem;
}
.brand-mark {
  font-weight: 800;
  font-size: 1.4rem;
  color: white;
  background: var(--accent);
  border-radius: 10px;
  padding: 7px 9px;
  letter-spacing: -3px;
  line-height: 1;
}
.brand-mark span {
  color: #c8bdff;
  padding-right: 3px;
}
.brand-app {
  font-size: 1rem;
  font-weight: 400;
  color: #8f99b1;
}
.story-copy {
  margin: auto 0;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #a596ee;
}
.story-copy h1 {
  font-family: Manrope, sans-serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -3px;
  margin: 24px 0;
}
.story-copy p {
  color: #b1b9ca;
  font-size: 1.05rem;
  line-height: 1.9;
}
.story-line {
  width: 44px;
  height: 3px;
  background: #9d88ff;
  margin: 34px 0 22px;
}
.story-note,
.story-footer {
  color: #8490a8;
  font-size: 0.88rem;
}
.login-panel {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 40px;
}
.login-card {
  width: 100%;
  max-width: 380px;
}
.login-card .eyebrow {
  color: var(--accent);
}
.login-card h2 {
  font-family: Manrope, sans-serif;
  font-size: 2.3rem;
  line-height: 1.28;
  letter-spacing: -1.3px;
  margin: 19px 0;
}
.login-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #dce0e8;
  border-radius: 9px;
  padding: 16px 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 3px #17203804;
  transition: background 0.15s;
}
.google-button:hover {
  background: #f7f5ff;
  border-color: #bdb0f8;
}
.google-button[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.notice {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 20px 0;
}
.notice.error {
  color: #b42336;
}
.login-footnote {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 25px;
  font-size: 0.85rem;
  color: #818a9b;
}
.lock-icon {
  font-size: 1.2rem;
  margin-right: 4px;
}
.login-footer {
  position: absolute;
  bottom: 28px;
  color: #9aa2af;
  font-size: 0.8rem;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #172038;
  color: #fff;
  border-radius: 10px;
  padding: 14px 24px;
  box-shadow: 0 8px 30px #11182b33;
  z-index: 100;
  max-width: 90vw;
}
@media (max-width: 800px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-story {
    padding: 28px;
    min-height: 300px;
  }
  .story-copy {
    padding: 40px 0 20px;
  }
  .story-copy h1 {
    font-size: 2.8rem;
    margin: 16px 0;
  }
  .story-copy p,
  .story-note,
  .story-line,
  .story-footer {
    display: none;
  }
  .login-panel {
    padding: 48px 28px 85px;
    min-height: 480px;
  }
  .login-card h2 {
    font-size: 2rem;
  }
}
.workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--nav);
  color: #fff;
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  font-size: 1.08rem;
  gap: 9px;
  padding: 0 8px;
}
.sidebar .brand-mark {
  font-size: 1.2rem;
}
.workspace-label {
  font-size: 0.72rem;
  letter-spacing: 1.6px;
  color: #707c96;
  margin: 48px 15px 18px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 14px 13px;
  border-radius: 8px;
}
.nav-item.active {
  background: #292341;
  color: #cfc2ff;
}
.nav-count {
  font-size: 0.75rem;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 5px;
  background: #ffffff12;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #ffffff12;
  padding-top: 22px;
}
.user-block {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
}
.avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #493b72;
  color: #d5caff;
  font-weight: 700;
}
.user-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.user-info strong {
  font-size: 0.9rem;
}
.user-info span {
  font-size: 0.77rem;
  color: #8490a8;
}
.logout-button {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  background: none;
  border: 0;
  color: #97a1b6;
  padding: 10px;
  font-size: 0.85rem;
}
.logout-button:hover {
  color: #fff;
}
.main-content {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breadcrumb {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 0.85rem;
  color: #8a93a3;
}
.breadcrumb strong {
  font-weight: 500;
  color: #404b61;
}
.topbar-note {
  font-size: 0.8rem;
  color: #9099a9;
}
.page-content {
  padding: 36px 38px 20px;
  max-width: 2000px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading .eyebrow {
  font-size: 0.7rem;
  color: #9c8ab9;
  letter-spacing: 1.8px;
}
.page-heading h1 {
  font-family: Manrope, sans-serif;
  font-size: 2rem;
  letter-spacing: -1px;
  margin: 10px 0;
}
.page-heading p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid #dde1e9;
  border-radius: 8px;
  background: #fff;
  color: #354057;
  font-weight: 600;
  font-size: 0.9rem;
}
.button:hover {
  background: #f8f7ff;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 3px 6px #6d50e820;
}
.button.primary:hover {
  background: #5c40d6;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 22px 24px;
  position: relative;
}
.stat-card:before {
  content: "";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 3px;
  height: 17px;
  background: #a393e4;
  border-radius: 3px;
}
.stat-card.blue:before {
  background: #5c9de2;
}
.stat-card.amber:before {
  background: #e5b252;
}
.stat-card.green:before {
  background: #50b69a;
}
.stat-label {
  font-size: 0.85rem;
  color: #68738a;
  padding-left: 13px;
}
.stat-card strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  margin: 14px 0 5px;
  letter-spacing: -1px;
}
.stat-card > span {
  font-size: 0.76rem;
  color: #96a0af;
}
.projects-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
  min-height: 77px;
  flex-wrap: wrap;
}
.view-tabs {
  display: flex;
  gap: 22px;
  align-self: stretch;
  min-height: 65px;
}
.view-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 2px;
  background: none;
  color: #7c879a;
  font-size: 0.87rem;
  font-weight: 500;
  white-space: nowrap;
}
.view-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f8fb;
  border: 1px solid #edf0f5;
  border-radius: 7px;
  padding: 8px 10px;
  color: #929aad;
}
.search svg {
  width: 16px;
  height: 16px;
}
.search input {
  border: 0;
  min-width: 0;
  width: 190px;
  background: none;
  font-size: 0.82rem;
  color: #354057;
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23697386' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}
select[multiple] {
  background-image: none;
  padding-right: 8px;
}
.toolbar-controls > select {
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  max-width: 190px;
  padding: 9px 26px 9px 10px;
  color: #68738a;
  background-color: #fff;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  color: #7c879a;
}
.icon-button:hover {
  background: #f7f5ff;
  color: var(--accent);
}
.groups {
  padding: 14px 24px 18px;
}
.group-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 20px 0 13px;
  border: 0;
  background: none;
  text-align: left;
  color: #344055;
}
.group-heading h2 {
  margin: 0;
  font-weight: 600;
  font-size: 0.92rem;
}
.group-chevron {
  display: flex;
  color: var(--group-color);
}
.group-chevron svg {
  width: 15px;
  height: 15px;
}
.group-chevron.expanded {
  transform: rotate(90deg);
}
.group-count {
  font-size: 0.73rem;
  background: #f2f3f7;
  color: #8992a2;
  padding: 3px 7px;
  border-radius: 5px;
}
.group-line {
  height: 1px;
  background: var(--line);
  flex: 1;
  margin-left: 6px;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-left: 3px solid var(--group-color);
  border-radius: 7px;
  scrollbar-width: thin;
}
.project-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 2500px;
  width: 100%;
  font-size: 0.86rem;
}
.project-table th,
.project-table td {
  height: 54px;
  padding: 9px 14px;
  border-bottom: 1px solid #eef0f5;
  border-right: 1px solid #f0f2f7;
  text-align: left;
  min-width: 140px;
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-table thead th {
  height: 41px;
  font-size: 0.77rem;
  font-weight: 500;
  color: #818ba0;
  background: #fafbfe;
}
.project-table tbody tr:last-child > th,
.project-table tbody tr:last-child > td {
  border-bottom: 0;
}
.project-table .name-cell {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
  min-width: 330px;
  width: 350px;
  max-width: 380px;
  border-right: 1px solid var(--line);
}
.project-table thead .name-cell {
  background: #fafbfe;
  z-index: 3;
}
.project-table tbody tr:hover > th,
.project-table tbody tr:hover > td {
  background: #fbfaff;
}
.project-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.name-button {
  background: none;
  border: 0;
  padding: 0;
  color: #334059;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.name-button:hover {
  color: var(--accent);
}
.expand-button {
  background: #f2effb;
  border: 0;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #8976b3;
  padding: 3px 5px;
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.expand-button span {
  font-size: 0.7rem;
}
.status-select {
  border: 1px solid color-mix(in srgb, var(--status-color, #94a3b8) 35%, white);
  border-radius: 5px;
  background-color: color-mix(in srgb, var(--status-color, #94a3b8) 13%, white);
  color: #30384b;
  font-size: 0.78rem;
  min-width: 125px;
  max-width: 205px;
  padding: 8px 25px 8px 9px;
}
.assignees {
  display: flex;
  gap: 4px;
}
.person-chip {
  font-size: 0.75rem;
  padding: 4px 7px;
  border-radius: 5px;
  background: #f0edfa;
  color: #6b5a9a;
}
.muted {
  color: #b4bac7;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.project-table input[type="checkbox"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  cursor: pointer;
}
.project-table td a {
  color: #7761bd;
  text-decoration: none;
}
.project-table td a:hover {
  text-decoration: underline;
}
.empty-group {
  font-size: 0.8rem;
  color: #959dad;
  padding: 12px 24px 17px;
  background: #fafbfe;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.text-button {
  border: 0;
  background: none;
  color: #816db3;
  font-size: 0.8rem;
  white-space: nowrap;
}
.empty-state {
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #98a0af;
  font-size: 0.76rem;
  padding: 17px 2px;
}
.subitem-row td {
  background: #f9f9fe !important;
}
.subitem-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 6px 10px 6px 35px;
}
.subitem-content > strong {
  width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.subitem-label {
  font-size: 0.72rem;
  color: #8c83a3;
  border: 1px solid #e1dcec;
  border-radius: 4px;
  padding: 3px 6px;
}
.subitem-field {
  width: 180px;
}
.subitem-field input {
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px;
}
.editor-dialog {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0;
  width: min(780px, calc(100vw - 30px));
  max-height: 90dvh;
  color: #172038;
  box-shadow: 0 20px 80px #11182b44;
}
.editor-dialog::backdrop {
  background: #11182b66;
  backdrop-filter: blur(3px);
}
.editor-form {
  padding: 28px;
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}
.editor-heading h2 {
  font-family: Manrope, sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  margin: 8px 0 0;
}
.editor-heading .eyebrow {
  font-size: 0.68rem;
}
.editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.editor-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.editor-field.wide {
  grid-column: 1/-1;
}
.editor-field > span {
  font-size: 0.83rem;
  font-weight: 500;
  color: #697386;
}
.editor-field input:not([type="checkbox"]),
.editor-field select {
  width: 100%;
  border: 1px solid #dde1e9;
  border-radius: 7px;
  padding: 10px;
  background-color: #fff;
  color: #30384b;
  font-size: 0.9rem;
}
.editor-field input[type="checkbox"] {
  align-self: flex-start;
  width: 19px;
  height: 19px;
  accent-color: var(--accent);
}
.editor-field select[multiple] {
  height: 80px;
}
.editor-field small {
  font-size: 0.72rem;
  color: #8c95a7;
}
.editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 25px;
}
.form-error {
  font-size: 0.85rem;
  color: #b42336;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.mobile-menu {
  display: none;
}
@media (min-width: 1700px) {
  .project-table .name-cell {
    min-width: 440px;
    width: 440px;
    max-width: 440px;
  }
}
@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 218px minmax(0, 1fr);
  }
  .sidebar {
    width: 218px;
    padding: 30px 12px 20px;
  }
  .sidebar .brand {
    font-size: 0.95rem;
  }
  .page-content {
    padding: 28px 24px 18px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 20px 17px;
  }
  .stat-card:before {
    left: 17px;
    top: 20px;
  }
  .panel-toolbar {
    gap: 0;
    padding: 0 18px 12px;
  }
  .toolbar-controls {
    width: 100%;
    justify-content: space-between;
  }
  .search {
    flex: 1;
  }
  .search input {
    width: 100%;
  }
  .groups {
    padding: 10px 16px 16px;
  }
}
@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 248px;
    box-shadow: 10px 0 30px #11182b33;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    grid-column: 1;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .topbar-note {
    display: none;
  }
  .breadcrumb {
    gap: 11px;
    font-size: 0.78rem;
  }
  .page-content {
    padding: 26px 16px 15px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 1.65rem;
  }
  .page-heading p {
    font-size: 0.8rem;
    line-height: 1.6;
  }
  .page-heading .primary {
    font-size: 0.8rem;
    padding: 10px 12px;
    margin-top: 20px;
    white-space: nowrap;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-card:before {
    top: 17px;
  }
  .stat-card strong {
    font-size: 1.7rem;
    margin: 10px 0 4px;
  }
  .stat-card > span {
    font-size: 0.7rem;
  }
  .stat-label {
    font-size: 0.77rem;
  }
  .groups {
    padding: 7px 12px 14px;
  }
  .group-heading h2 {
    font-size: 0.85rem;
  }
  .project-table .name-cell {
    min-width: 230px;
    width: 230px;
    max-width: 230px;
  }
  .empty-group {
    display: block;
    padding: 12px;
    font-size: 0.77rem;
  }
  .empty-group .text-button {
    display: block;
    margin-top: 7px;
    padding: 0;
  }
  .toolbar-controls > select {
    max-width: 130px;
  }
  .search input {
    font-size: 0.76rem;
  }
  .panel-toolbar {
    padding: 0 12px 12px;
  }
  .view-tab {
    font-size: 0.82rem;
  }
  .page-footer {
    font-size: 0.7rem;
    line-height: 1.5;
  }
  .editor-form {
    padding: 20px;
  }
  .editor-fields {
    grid-template-columns: 1fr;
  }
  .editor-field.wide {
    grid-column: auto;
  }
}
