:root {
  color-scheme: light;
  --bg: #f3f6fb;
  --bg-accent: rgba(20, 184, 166, 0.08);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-soft: #f8fafc;
  --line: rgba(15, 23, 42, 0.08);
  --text: #102033;
  --muted: #617085;
  --subtle: #8ca0b6;
  --nav: #0b1f33;
  --nav-2: #12304e;
  --nav-text: #edf5ff;
  --accent: #f59e0b;
  --accent-2: #0ea5a8;
  --accent-3: #3b82f6;
  --success: #1f9d65;
  --warning: #c27803;
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.09);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --sidebar-width: 302px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 168, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 24%),
    linear-gradient(180deg, #f9fbfe 0%, #eef3f8 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(16, 32, 51, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 51, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 82%);
  z-index: 0;
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

#app {
  position: relative;
  z-index: 1;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.98), rgba(9, 25, 41, 0.95)),
    linear-gradient(180deg, var(--nav), var(--nav-2));
  color: var(--nav-text);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: auto;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.98), rgba(14, 165, 168, 0.96));
  color: #0b1f33;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 28px rgba(14, 165, 168, 0.3);
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0.01em;
}

.brand-tagline {
  color: rgba(237, 245, 255, 0.72);
  font-size: 0.85rem;
  line-height: 1.45;
}

.workspace-panel,
.team-panel,
.nav-panel,
.helper-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: rgba(237, 245, 255, 0.58);
  margin-bottom: 10px;
}

.workspace-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.workspace-meta {
  display: grid;
  gap: 8px;
  color: rgba(237, 245, 255, 0.76);
  font-size: 0.88rem;
}

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

.meta-row span:last-child {
  text-align: right;
  color: #ffffff;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(237, 245, 255, 0.85);
  border-radius: 14px;
  padding: 13px 14px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.nav-item.is-active {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fff;
}

.nav-item small {
  color: rgba(237, 245, 255, 0.54);
}

.team-grid {
  display: grid;
  gap: 12px;
}

.team-member {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: center;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.08));
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.team-member strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 650;
}

.team-member span {
  display: block;
  color: rgba(237, 245, 255, 0.68);
  font-size: 0.82rem;
}

.helper-panel p {
  margin: 0;
  color: rgba(237, 245, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.6;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 10px;
  display: grid;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(237, 245, 255, 0.84);
  width: fit-content;
  font-size: 0.82rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

.content {
  min-width: 0;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.topbar,
.hero,
.module-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.topbar {
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
}

.title-block h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.08;
}

.title-block p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.project-picker {
  display: grid;
  gap: 8px;
  min-width: min(100%, 280px);
}

.project-picker label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--subtle);
  font-weight: 700;
}

.project-picker select {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.hero {
  border-radius: var(--radius-xl);
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 18px;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -58px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 165, 168, 0.2), transparent 72%);
}

.hero-main {
  display: grid;
  gap: 14px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.chip strong {
  color: var(--text);
}

.hero-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1.06;
}

.hero-copy {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.collab-strip {
  display: grid;
  gap: 12px;
  align-content: start;
}

.collab-card {
  background:
    linear-gradient(180deg, rgba(16, 32, 51, 0.03), rgba(16, 32, 51, 0.01)),
    var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.collab-card h3 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.collab-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.progress {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
}

.progress-bar {
  width: 100%;
  height: 11px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.module-panel {
  border-radius: var(--radius-xl);
  padding: 18px;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.module-header h2 {
  margin: 4px 0 0;
  font-size: 1.22rem;
}

.module-header p {
  margin: 0;
  color: var(--muted);
}

.module-grid {
  display: grid;
  gap: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.list {
  display: grid;
  gap: 12px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.list-row:first-child {
  padding-top: 0;
}

.list-row strong {
  display: block;
  margin-bottom: 4px;
}

.list-row span,
.list-row small {
  color: var(--muted);
}

.inline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.tag strong {
  color: var(--text);
}

.section-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kanban-column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-width: 0;
}

.kanban-column h3 {
  margin: 0 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
}

.kanban-column h3 span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.task-card,
.approval-card,
.portal-card,
.client-card,
.project-card,
.workspace-card {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.task-card + .task-card,
.approval-card + .approval-card,
.client-card + .client-card,
.project-card + .project-card,
.portal-card + .portal-card {
  margin-top: 12px;
}

.task-card h4,
.approval-card h4,
.client-card h4,
.project-card h4,
.portal-card h4,
.workspace-card h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
}

.task-card p,
.approval-card p,
.client-card p,
.project-card p,
.portal-card p,
.workspace-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.card-footer {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(16, 32, 51, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.8;
}

.status.is-success {
  color: var(--success);
}

.status.is-warning {
  color: var(--warning);
}

.status.is-danger {
  color: var(--danger);
}

.status.is-info {
  color: var(--accent-3);
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  align-items: start;
}

.timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(14, 165, 168, 0.12);
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.module-empty {
  padding: 18px;
  border: 1px dashed rgba(16, 32, 51, 0.16);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

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

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

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

  .topbar,
  .hero,
  .module-panel {
    border-radius: 22px;
  }

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

  .module-header {
    flex-direction: column;
    align-items: start;
  }

  .list-row {
    flex-direction: column;
    align-items: start;
  }

  .sidebar {
    padding: 18px 14px;
  }
}
