@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
  color-scheme:light;
  --background:#f6f7f9;
  --surface:#fff;
  --surface-raised:#f0f1f5;
  --text:#252839;
  --muted:#656b7c;
  --accent:#6258ce;
  --accent-hover:#5147bd;
  --accent-soft:#efedfb;
  --border:#e8e9ee;
  --danger:#b44848;
  --shadow:0 2px 4px #25283a03;
  --radius:9px;
  --sidebar:240px;
  font-family:'DM Sans',sans-serif;
  font-size:14px;
  line-height:1.6;
}

[data-theme=dark] {
  color-scheme:dark;
  --background:#15171f;
  --surface:#1d202b;
  --surface-raised:#282c39;
  --text:#edecf5;
  --muted:#a5a6b6;
  --accent:#b2a9ff;
  --accent-hover:#c4bdff;
  --accent-soft:#302b4d;
  --border:#333644;
  --danger:#ffa4a4;
  --shadow:0 2px 4px #0001;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:var(--background);
  color:var(--text);
}

h1,h2,h3,p {
  margin:0;
}

h1,h2,h3 {
  font-family:Manrope,sans-serif;
  letter-spacing:-.035em;
  line-height:1.3;
}

h1 {
  font-size:clamp(1.9rem,2.5vw,2.65rem);
  font-weight:800;
}

h2 {
  font-size:1.13rem;
  font-weight:750;
}

h3 {
  font-size:1rem;
}

p {
  margin:.8rem 0;
}

a {
  color:inherit;
  text-decoration:none;
}

button,input,select,textarea {
  font:inherit;
  color:inherit;
}

button {
  cursor:pointer;
  border:0;
}

button:disabled {
  cursor:not-allowed;
  opacity:.5;
}

button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}

input,select,textarea {
  width:100%;
  min-width:0;
  padding:11px 13px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:6px;
}

input::placeholder {
  color:var(--muted);
}

textarea {
  resize:vertical;
  min-height:100px;
}

label {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:.84rem;
  font-weight:500;
}

form>label {
  margin-bottom:18px;
}

:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
}

main:focus {
  outline:none;
}

::selection {
  background:var(--accent-soft);
}

[hidden] {
  display:none!important;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  border:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
}

.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  background:var(--accent);
  color:#fff;
  padding:12px;
  z-index:100;
}

.skip-link:focus {
  top:10px;
}

.muted {
  color:var(--muted);
}

.small {
  font-size:.8rem;
}

.strong {
  font-weight:650;
}

.danger-text {
  color:var(--danger)!important;
}

.eyebrow {
  display:block;
  letter-spacing:.16em;
  font-size:.65rem;
  font-weight:700;
  color:var(--muted);
  margin-bottom:12px;
}

.preserve-lines {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}

.narrow {
  max-width:650px;
}

hr {
  border:0;
  border-top:1px solid var(--border);
  margin:25px 0;
}

.app-shell {
  display:flex;
  min-height:100vh;
}

.sidebar {
  width:var(--sidebar);
  flex-shrink:0;
  position:fixed;
  inset:0 auto 0 0;
  background:var(--surface);
  border-right:1px solid var(--border);
  padding:28px 20px 20px;
  display:flex;
  flex-direction:column;
  z-index:30;
  overflow:auto;
}

.brand {
  display:flex;
  align-items:center;
  font-family:Manrope,sans-serif;
  font-size:1.17rem;
  font-weight:800;
  letter-spacing:-.06em;
  white-space:nowrap;
}

.brand>span:last-child {
  font-weight:500;
}

.brand-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  background:#6258ce;
  color:white;
  width:32px;
  height:34px;
  border-radius:8px;
  margin-right:9px;
  font-size:1.7rem;
  line-height:1;
  font-style:italic;
  letter-spacing:-.08em;
}

.brand-mark span {
  font-size:1.1rem;
  font-style:normal;
  margin-top:10px;
}

.workspace-label {
  display:flex;
  gap:10px;
  align-items:center;
  padding:17px 10px;
  margin:27px 0 18px;
  border:1px solid var(--border);
  border-radius:7px;
  font-size:.8rem;
  font-weight:600;
}

.workspace-icon {
  display:grid;
  place-items:center;
  width:30px;
  height:32px;
  border-radius:5px;
  background:var(--accent-soft);
  color:var(--accent);
}

.workspace-label small {
  font-size:.65rem;
  font-weight:400;
  color:var(--muted);
  display:block;
}

.nav-label {
  display:block;
  padding:12px 12px 9px;
  font-size:.61rem;
  color:var(--muted);
  letter-spacing:.15em;
  font-weight:650;
}

.sidebar nav {
  display:grid;
  gap:4px;
}

.sidebar nav a {
  display:flex;
  gap:13px;
  align-items:center;
  padding:10px 13px;
  font-size:.86rem;
  color:var(--muted);
  border-radius:6px;
  font-weight:500;
}

.sidebar nav a>span:first-child {
  font-size:1.2rem;
  line-height:1;
  width:19px;
  text-align:center;
}

.sidebar nav a:hover {
  background:var(--surface-raised);
  color:var(--text);
}

.sidebar nav a[aria-current] {
  background:var(--accent-soft);
  color:var(--accent);
  font-weight:650;
}

.nav-count {
  margin-left:auto;
  font-size:.7rem;
  background:var(--surface-raised);
  padding:0 6px;
  border-radius:4px;
}

.sidebar-bottom {
  margin-top:auto;
  padding-top:35px;
}

.sidebar-note {
  padding:12px 15px;
  background:var(--background);
  border:1px solid var(--border);
  border-radius:7px;
  display:flex;
  gap:13px;
  align-items:center;
}

.sidebar-note>span {
  font-size:1.7rem;
  color:var(--accent);
}

.sidebar-note p {
  font-size:.77rem;
  line-height:1.7;
  margin:0;
  color:var(--muted);
}

.profile-link {
  display:flex;
  gap:10px;
  align-items:center;
  margin:25px 0 8px;
  overflow:hidden;
}

.profile-link>span:last-child {
  min-width:0;
}

.profile-link strong {
  font-size:.8rem;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.profile-link small {
  display:block;
  font-size:.66rem;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
}

.sidebar-bottom>.text-button {
  font-size:.7rem;
  margin-left:44px;
}

.main-column {
  margin-left:var(--sidebar);
  width:calc(100% - var(--sidebar));
  min-width:0;
}

.topbar {
  height:82px;
  display:flex;
  align-items:center;
  gap:16px;
  padding:0 38px;
  border-bottom:1px solid var(--border);
  background:var(--surface);
}

.breadcrumb {
  font-size:.78rem;
  color:var(--muted);
  white-space:nowrap;
}

.breadcrumb span {
  margin:0 10px;
  color:var(--border);
}

.breadcrumb strong {
  font-weight:500;
  color:var(--text);
}

.global-search {
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
  border:1px solid var(--border);
  border-radius:6px;
  background:var(--background);
  padding:0 12px;
  max-width:330px;
  width:35%;
}

.global-search>span {
  font-size:1.4rem;
  color:var(--muted);
}

.global-search input {
  background:transparent;
  border:0;
  padding:9px 0;
  font-size:.78rem;
}

.search-submit {
  background:var(--surface);
  border:1px solid var(--border);
  color:var(--muted);
  border-radius:4px;
  font-size:.8rem;
  line-height:1.3;
  padding:0 5px;
}

.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  flex-shrink:0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:6px;
  color:var(--muted);
  font-size:1.05rem;
  transition:background .18s;
}

.icon-button:hover {
  background:var(--accent-soft);
  color:var(--accent);
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 19px;
  background:var(--accent);
  color:#fff;
  border:1px solid transparent;
  border-radius:6px;
  font-size:.8rem;
  font-weight:600;
  transition:background .18s,transform .18s;
  white-space:nowrap;
}

.button:hover {
  background:var(--accent-hover);
  transform:translateY(-1px);
}

.button.secondary {
  background:var(--surface);
  border-color:var(--border);
  color:var(--text);
}

.button.secondary:hover {
  background:var(--surface-raised);
}

.button.danger {
  background:#a74343;
  color:#fff;
}

.text-button {
  background:none;
  padding:0;
  font-size:.8rem;
  color:var(--muted);
  text-align:left;
}

.text-button:hover {
  color:var(--accent);
}

[data-theme=dark] .button:not(.secondary):not(.danger) {
  color:#18142d;
}

.actions {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}

.mobile-only {
  display:none;
}

main {
  padding:35px 38px 45px;
  max-width:1700px;
  margin:auto;
  min-height:calc(100vh - 142px);
}

.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  margin:5px 0 30px;
}

.page-heading p {
  color:var(--muted);
  font-size:.9rem;
  margin:10px 0 0;
}

.page-heading .eyebrow {
  margin-bottom:8px;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:20px;
}

.section-heading p {
  margin:5px 0 0;
}

.panel {
  border:1px solid var(--border);
  background:var(--surface);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
  padding:24px;
}

.stats-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-bottom:26px;
}

.stat-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:19px 22px;
  box-shadow:var(--shadow);
}

.stat-card>div {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:.77rem;
  color:var(--muted);
}

.stat-card>strong {
  display:block;
  font-family:Manrope,sans-serif;
  font-size:2rem;
  letter-spacing:-.04em;
  line-height:1.4;
  margin:10px 0 5px;
}

.stat-card>p {
  font-size:.7rem;
  color:var(--muted);
  margin:0;
}

.stat-symbol {
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  background:var(--background);
  border:1px solid var(--border);
  border-radius:6px;
  font-size:1.1rem;
}

.stat-card.highlighted {
  background:var(--accent-soft);
  border-color:color-mix(in srgb,var(--accent) 18%,var(--border));
}

.stat-card.highlighted>strong {
  color:var(--accent);
}

.stat-card.highlighted .stat-symbol {
  color:var(--accent);
  background:var(--surface);
}

.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);
  gap:22px;
}

.dashboard-grid .panel {
  min-width:0;
}

.earnings-chart {
  display:flex;
  height:220px;
  padding-top:15px;
  gap:12px;
}

.chart-scale {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:0 0 30px;
  min-width:48px;
  font-size:.65rem;
  color:var(--muted);
}

.bars {
  display:flex;
  align-items:flex-end;
  justify-content:space-around;
  gap:12px;
  flex:1;
  min-width:0;
  border-bottom:1px solid var(--border);
  background:repeating-linear-gradient(to top,transparent 0,transparent 72px,var(--border) 73px,transparent 74px);
}

.bar-column {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  width:12%;
  height:100%;
  gap:6px;
  font-size:.68rem;
  color:var(--muted);
}

.bar {
  width:100%;
  max-width:42px;
  min-height:2px;
  background:color-mix(in srgb,var(--accent) 25%,var(--surface));
  border-radius:5px 5px 0 0;
}

.bar.current {
  background:var(--accent);
}

.bar-value {
  font-size:.6rem;
  white-space:nowrap;
}

.bar-column>span:last-child {
  height:25px;
  padding-top:4px;
  background:var(--surface);
  width:100%;
  text-align:center;
}

.deadline-row {
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 0;
  border-top:1px solid var(--border);
}

.deadline-row:first-of-type {
  border:0;
}

.calendar-day {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:var(--background);
  border:1px solid var(--border);
  border-radius:6px;
  width:42px;
  height:47px;
  font-family:Manrope,sans-serif;
  font-size:1.1rem;
  font-weight:700;
  flex-shrink:0;
  line-height:1.2;
}

.calendar-day small {
  font-size:.59rem;
  color:var(--muted);
  font-family:'DM Sans',sans-serif;
  font-weight:500;
}

.deadline-row>div {
  flex:1;
  min-width:0;
}

.deadline-row strong {
  display:block;
  font-size:.79rem;
  font-weight:600;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.deadline-row small {
  display:block;
  font-size:.67rem;
  color:var(--muted);
}

.activity-list {
  list-style:none;
  margin:0;
  padding:0;
}

.activity-list li {
  display:flex;
  gap:14px;
  padding:9px 0 15px;
}

.activity-dot {
  width:7px;
  height:7px;
  flex-shrink:0;
  background:var(--accent);
  border:3px solid var(--accent-soft);
  box-sizing:content-box;
  border-radius:50%;
  margin-top:4px;
}

.activity-list p {
  font-size:.78rem;
  margin:0;
  line-height:1.65;
  overflow-wrap:anywhere;
}

.activity-list small {
  font-size:.65rem;
  color:var(--muted);
}

.recent-clients {
  grid-column:1/-1;
}

.client-strip {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px;
}

.person-cell {
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:var(--text);
  font-size:.85rem;
}

.person-cell>span:last-child {
  min-width:0;
}

.person-cell strong {
  font-size:.82rem;
  display:block;
  overflow-wrap:anywhere;
}

.person-cell small {
  display:block;
  color:var(--muted);
  font-size:.7rem;
  overflow-wrap:anywhere;
}

.person-avatar {
  height:35px;
  width:35px;
  flex-shrink:0;
  border-radius:9px;
  background:#efedfb;
  color:#6258ce;
  display:inline-grid;
  place-items:center;
  font-size:.75rem;
  font-weight:650;
}

.color-1 {
  background:#e7f4ef;
  color:#408566;
}

.color-2 {
  background:#fff1df;
  color:#996d30;
}

.color-3 {
  background:#f7e8ee;
  color:#a45472;
}

.mini-empty {
  color:var(--muted);
  font-size:.85rem;
  text-align:center;
  padding:50px 20px;
  line-height:1.9;
}

.table-wrap {
  position:relative;
  width:100%;
  overflow-x:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:.83rem;
  white-space:nowrap;
}

th {
  color:var(--muted);
  font-weight:500;
  font-size:.7rem;
  background:var(--background);
  padding:13px 16px;
  border-bottom:1px solid var(--border);
}

td {
  padding:18px 16px;
  border-bottom:1px solid var(--border);
  max-width:340px;
  overflow:hidden;
  text-overflow:ellipsis;
}

td small {
  display:block;
  color:var(--muted);
  font-size:.7rem;
  margin-top:3px;
}

tbody tr:last-child td {
  border-bottom:0;
}

tbody tr:hover {
  background:color-mix(in srgb,var(--background) 55%,transparent);
}

.panel .table-wrap {
  margin:0 -4px;
  width:calc(100% + 8px);
}

.badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 8px;
  border-radius:4px;
  background:var(--surface-raised);
  color:var(--muted);
  font-size:.64rem;
  font-weight:600;
  white-space:nowrap;
}

.badge.in-progress,.badge.sent {
  background:#edf0ff;
  color:#5a68a3;
}

.badge.completed,.badge.paid,.badge.low {
  background:#e8f5ed;
  color:#348365;
}

.badge.planning,.badge.draft,.badge.to-do {
  background:#efedf7;
  color:#7763a0;
}

.badge.review,.badge.medium {
  background:#fff3dd;
  color:#977130;
}

.badge.high,.badge.overdue,.badge.urgent {
  background:#fcebec;
  color:#ad4c59;
}

.badge.on-hold {
  background:#edf0f3;
  color:#627180;
}

[data-theme=dark] .badge {
  filter:brightness(.85);
}

.toolbar {
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:22px;
}

.search-field {
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:10px;
  position:relative;
  max-width:420px;
  flex:1;
}

.search-field>span:not(.sr-only) {
  position:absolute;
  left:13px;
  color:var(--muted);
  font-size:1.3rem;
}

.search-field input {
  padding-left:40px;
  font-size:.82rem;
}

.filter-label {
  min-width:155px;
}

.toolbar select {
  font-size:.82rem;
}

.toolbar>#result-count {
  margin-left:auto;
}

.pagination {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 0;
  color:var(--muted);
  font-size:.75rem;
}

#list-content>.table-wrap {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
}

.project-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}

.project-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
  min-width:0;
}

.project-card h2 {
  font-size:1.2rem;
  overflow-wrap:anywhere;
}

.project-card .section-heading {
  margin-bottom:15px;
}

.project-monogram {
  display:grid;
  place-items:center;
  height:30px;
  width:30px;
  background:var(--background);
  border:1px solid var(--border);
  border-radius:6px;
  font-size:.6rem;
  font-weight:700;
  color:var(--muted);
}

.project-card .project-excerpt {
  color:var(--muted);
  font-size:.8rem;
  line-height:1.7;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:2.8em;
  margin:17px 0 22px;
}

.progress-label {
  display:flex;
  justify-content:space-between;
  font-size:.67rem;
  color:var(--muted);
}

progress {
  width:100%;
  height:5px;
  border:0;
  background:var(--surface-raised);
  border-radius:8px;
  display:block;
  margin:8px 0 20px;
  overflow:hidden;
}

progress::-webkit-progress-bar {
  background:var(--surface-raised);
}

progress::-webkit-progress-value {
  background:var(--accent);
  border-radius:8px;
}

progress::-moz-progress-bar {
  background:var(--accent);
}

.project-card footer {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:.7rem;
  color:var(--muted);
  margin-top:15px;
}

.project-card footer strong {
  color:var(--text);
}

.card-actions {
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--border);
  padding-top:16px;
  margin-top:18px;
}

.card-actions .text-button {
  font-size:.75rem;
}

.back-link {
  font-size:.8rem;
  color:var(--muted);
  display:block;
  margin-bottom:24px;
}

.project-facts {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  margin-bottom:24px;
}

.project-facts>div>span:first-child {
  display:block;
  font-size:.75rem;
  color:var(--muted);
  margin-bottom:8px;
}

.task-row {
  display:flex;
  gap:16px;
  align-items:center;
  border-top:1px solid var(--border);
  padding:18px 0;
}

.task-row>div {
  flex:1;
  min-width:0;
}

.task-row h3 {
  font-size:.9rem;
  overflow-wrap:anywhere;
}

.task-row p {
  font-size:.7rem;
  color:var(--muted);
  margin:5px 0 0;
}

.kanban {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
  align-items:start;
}

.kanban-column {
  background:var(--surface-raised);
  border:1px solid var(--border);
  border-radius:8px;
  padding:14px;
  min-height:380px;
  transition:background .2s;
}

.kanban-column>header {
  display:flex;
  gap:9px;
  align-items:center;
  margin:2px 0 18px;
}

.kanban-column h2 {
  font-size:.82rem;
  letter-spacing:-.01em;
}

.status-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#afa5c9;
}

.status-dot.in-progress {
  background:#7c90d9;
}

.status-dot.review {
  background:#dcb75d;
}

.status-dot.completed {
  background:#65ad8c;
}

.count {
  margin-left:auto;
  padding:0 6px;
  font-size:.65rem;
  background:var(--surface);
  color:var(--muted);
  border:1px solid var(--border);
  border-radius:4px;
}

.task-stack {
  display:grid;
  gap:12px;
  min-height:300px;
  align-content:start;
}

.task-card {
  padding:16px 14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:7px;
  box-shadow:var(--shadow);
  cursor:grab;
  min-width:0;
}

.task-card .section-heading {
  margin:0 0 12px;
}

.task-card .icon-button {
  width:24px;
  height:24px;
  font-size:.8rem;
  border-color:transparent;
}

.task-card h3 {
  font-size:.85rem;
  line-height:1.6;
  overflow-wrap:anywhere;
}

.task-card p {
  font-size:.67rem;
  color:var(--muted);
  margin:8px 0 15px;
  overflow-wrap:anywhere;
}

.task-due {
  font-size:.66rem;
  color:var(--muted);
  border-top:1px solid var(--border);
  padding-top:12px;
}

.task-card select {
  margin-top:12px;
  font-size:.69rem;
  padding:6px 8px;
  background:var(--background);
}

.board-empty {
  border:1px dashed color-mix(in srgb,var(--muted) 30%,transparent);
  border-radius:6px;
  padding:30px 10px;
  text-align:center;
  color:var(--muted);
  font-size:.72rem;
  line-height:1.8;
}

.drag-over {
  background:var(--accent-soft);
  border-color:var(--accent);
}

.dragging {
  opacity:.45;
}

.four-stats {
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.finance-ledger {
  margin-top:24px;
}

.finance-ledger h2 {
  margin-bottom:20px;
}

.linked-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 0;
  border-bottom:1px solid var(--border);
  font-size:.85rem;
}

.linked-row:last-child {
  border-bottom:0;
}

.linked-row small {
  display:block;
  color:var(--muted);
  font-size:.72rem;
  margin-top:4px;
}

.linked-row>span {
  color:var(--muted);
  font-size:.8rem;
}

.linked-row:hover {
  color:var(--accent);
}

.search-group {
  margin-bottom:22px;
}

.detail-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin:25px 0;
}

.detail-list dt {
  font-size:.7rem;
  color:var(--muted);
}

.detail-list dd {
  margin:5px 0 0;
  font-size:.9rem;
  overflow-wrap:anywhere;
}

.client-details>.person-avatar {
  width:55px;
  height:55px;
  font-size:1.2rem;
}

.client-details>h3 {
  margin-top:28px;
}

dialog {
  background:var(--surface);
  color:var(--text);
  width:min(820px,calc(100% - 32px));
  max-height:90vh;
  border:1px solid var(--border);
  border-radius:12px;
  padding:28px;
  box-shadow:0 25px 100px #14142430;
  overflow:auto;
}

dialog::backdrop {
  background:#14182788;
  backdrop-filter:blur(4px);
}

.modal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.modal-head h2 {
  font-size:1.4rem;
}

.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin:20px 0;
}

.full-width {
  grid-column:1/-1;
}

.form-footer {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  margin-top:25px;
  padding-top:20px;
  border-top:1px solid var(--border);
}

.form-error {
  font-size:.8rem;
  color:var(--danger);
}

.form-error:empty {
  display:none;
}

.toasts {
  position:fixed;
  right:25px;
  bottom:25px;
  width:min(390px,calc(100% - 40px));
  display:grid;
  gap:10px;
  z-index:100;
}

.toast {
  background:var(--surface);
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  padding:16px 20px;
  border-radius:7px;
  font-size:.85rem;
  box-shadow:0 8px 35px #0002;
}

.toast.error {
  border-left-color:var(--danger);
}

.empty {
  text-align:center;
  padding:65px 20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  background:var(--surface);
  border:1px dashed var(--border);
  border-radius:8px;
}

.empty-symbol {
  font-size:3rem;
  color:var(--accent);
  margin-bottom:12px;
}

.empty h2 {
  font-size:1.5rem;
}

.empty p {
  max-width:480px;
  color:var(--muted);
  font-size:.87rem;
  margin:12px 0 22px;
}

.panel>.empty {
  border:0;
  padding:45px 15px;
}

.notice {
  padding:16px;
  border:1px solid color-mix(in srgb,var(--accent) 30%,var(--border));
  background:var(--accent-soft);
  font-size:.8rem;
  line-height:1.8;
  border-radius:6px;
}

.notice code {
  overflow-wrap:anywhere;
}

.auth-view .sidebar {
  display:none;
}

.auth-view .main-column {
  margin-left:0;
  width:100%;
}

.auth-view .topbar {
  justify-content:flex-end;
}

.auth-view .topbar .breadcrumb,.auth-view .global-search,.auth-view #menu-toggle,.auth-view #refresh-data {
  display:none;
}

.auth-view .topbar:before {
  content:'FreelancerFlow';
  margin-right:auto;
  font-family:Manrope,sans-serif;
  font-size:1.4rem;
  font-weight:800;
  letter-spacing:-.06em;
  color:var(--accent);
}

.auth-layout {
  max-width:1120px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:12%;
  margin:45px auto;
}

.auth-intro h1 {
  font-size:4.5rem;
  line-height:1.08;
}

.auth-intro .eyebrow {
  color:var(--accent);
}

.auth-intro>p {
  font-size:1.1rem;
  color:var(--muted);
  max-width:330px;
  line-height:1.8;
  margin-top:25px;
}

.auth-art {
  display:flex;
  align-items:center;
  height:200px;
  color:var(--accent);
}

.auth-art span {
  font-size:10rem;
  line-height:1;
}

.auth-card {
  padding:35px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:0 8px 50px #25283a05;
}

.auth-card h2 {
  font-size:1.6rem;
}

.auth-card>p {
  font-size:.85rem;
}

.auth-card form {
  margin-top:25px;
}

.auth-card form>.button {
  width:100%;
}

.auth-links {
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-top:22px;
  font-size:.8rem;
  color:var(--accent);
  flex-wrap:wrap;
}

.workspace-footer {
  padding:18px 38px;
  border-top:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  font-size:.7rem;
  color:var(--muted);
}

.workspace-footer>span:first-child {
  font-weight:650;
}

.dashboard-skeleton {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
  padding-top:40px;
}

.skeleton {
  height:140px;
  background:linear-gradient(100deg,var(--surface-raised) 20%,var(--surface) 40%,var(--surface-raised) 60%);
  background-size:200% 100%;
  animation:shimmer 1.8s infinite;
  border-radius:8px;
}

.skeleton.wide {
  grid-column:1/-1;
  height:350px;
}

@keyframes shimmer {
  to {
    background-position:-200% 0;
  }
}

.invoice-line,.line-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) 70px 100px 100px 30px;
  gap:10px;
  align-items:center;
  margin:12px 0;
}

.line-head {
  font-size:.72rem;
  color:var(--muted);
  margin-top:30px;
}

.invoice-line input {
  padding:9px;
  font-size:.82rem;
}

.line-total {
  text-align:right;
  font-size:.8rem;
}

.invoice-line .icon-button {
  width:28px;
  height:28px;
}

.invoice-totals {
  max-width:300px;
  margin:25px 0 25px auto;
}

.invoice-totals>div {
  display:flex;
  justify-content:space-between;
  padding:7px 0;
  font-size:.85rem;
}

.invoice-totals>div>span {
  color:var(--muted);
}

.invoice-totals .grand-total {
  border-top:1px solid var(--border);
  margin-top:9px;
  padding-top:15px;
  font-size:1.2rem;
}

.grand-total strong {
  color:var(--accent);
}

.invoice-document {
  padding:25px 10px;
}

.invoice-document-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:2px solid var(--accent);
  padding-bottom:25px;
}

.invoice-brand {
  font-size:1rem;
  font-weight:700;
}

.invoice-brand span {
  font-size:.6rem;
  letter-spacing:.12em;
  color:var(--muted);
  font-weight:500;
  margin-left:12px;
}

.invoice-document h2 {
  font-size:2rem;
  margin-top:10px;
}

.invoice-parties {
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:20px;
  margin:30px 0;
}

.invoice-parties p {
  font-size:.8rem;
  color:var(--muted);
  line-height:1.9;
  overflow-wrap:anywhere;
}

.invoice-parties h3 {
  font-size:.9rem;
}

.invoice-parties .eyebrow {
  font-size:.6rem;
}

.invoice-document table {
  white-space:normal;
}

.invoice-document td:first-child {
  width:55%;
  overflow-wrap:anywhere;
}

.invoice-notes {
  border-top:1px solid var(--border);
  padding-top:25px;
  margin-top:30px;
}

.invoice-notes h3 {
  font-size:.9rem;
}

.invoice-notes p {
  font-size:.85rem;
  color:var(--muted);
}

.invoice-document>footer {
  font-size:.75rem;
  color:var(--muted);
  text-align:center;
  padding-top:40px;
}

#print-root {
  display:none;
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

