:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #181b33;
  background: #f5f6fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #181b33;
  --ink-soft: #555b70;
  --muted: #82879a;
  --blue: #283276;
  --blue-hover: #1b2256;
  --blue-bright: #406bde;
  --blue-wash: #eaecfb;
  --yellow: #ffcc52;
  --line: #e7e9f0;
  --surface: #fff;
  --canvas: #f5f6fa;
  --green: #068148;
  --shadow: 0 4px 18px rgb(24 27 51 / 5%);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #8da8ff; outline-offset: 3px; }
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 2; width: 250px; padding: 27px 18px 18px;
  display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; margin: 0 0 48px 5px; color: var(--ink); text-decoration: none; }
.brand-mark {
  position: relative; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: var(--blue); font-size: 15px; font-weight: 800; letter-spacing: -2px;
  box-shadow: 0 5px 12px rgb(40 50 118 / 20%);
}
.brand-mark::after { content: ""; position: absolute; width: 9px; height: 9px; right: 3px; top: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--yellow); }
.brand-mark span { color: var(--yellow); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; letter-spacing: 1.35px; }
.brand-copy strong { font-size: 13px; font-weight: 800; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; letter-spacing: 2.3px; }
.workspace-label, .section-kicker, .eyebrow { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.workspace-label { margin: 0 0 12px 11px; }
.main-nav { display: grid; gap: 5px; }
.nav-link { position: relative; height: 45px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 10px; color: #62677c; text-decoration: none; font-size: 13px; font-weight: 550; transition: background .18s, color .18s; }
.nav-link:hover { color: var(--blue); background: #f6f7fc; }
.nav-link.active { color: var(--blue); background: var(--blue-wash); font-weight: 700; }
.nav-link.active::before { content: ""; position: absolute; left: -18px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 4px 4px 0; background: var(--blue-bright); }
.nav-icon { width: 18px; color: currentColor; text-align: center; font-size: 18px; line-height: 1; }
.nav-link.muted { color: #a0a4b1; }
.nav-count { margin-left: auto; padding: 3px 8px; border-radius: 20px; color: var(--blue); background: #fff; font-size: 10px; font-weight: 700; }
.sidebar-bottom { margin-top: auto; padding: 15px 8px 3px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); color: #74798c; font-size: 11px; }
.online-dot, .status-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #58a777; }
.main-content { max-width: 1530px; min-height: 100vh; margin-left: 250px; padding: 0 5.4%; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.breadcrumb span { margin: 0 9px; color: #c1c5d1; }
.breadcrumb strong { color: var(--ink-soft); font-weight: 600; }
.profile { display: flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.profile-avatar { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #d9def5; border-radius: 50%; color: var(--blue); background: var(--blue-wash); font-size: 9px; font-weight: 800; }
.profile-chevron { color: #979bad; font-size: 16px; }
.page-heading {
  position: relative; isolation: isolate; overflow: hidden; min-height: 158px; margin: 26px 0 18px; padding: 26px 29px;
  display: flex; align-items: center; justify-content: space-between; border: 1px solid #e6e8f2; border-radius: 18px;
  background: linear-gradient(110deg, #fff 0%, #fff 61%, #f1f3ff 100%);
}
.page-heading::after { content: ""; position: absolute; z-index: -1; width: 205px; height: 205px; right: 17%; top: -140px; border: 1px solid rgb(64 107 222 / 13%); border-radius: 50%; box-shadow: 0 0 0 26px rgb(64 107 222 / 3%), 0 0 0 54px rgb(64 107 222 / 2%); }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 9px; font-size: 9px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--yellow); }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 36px); font-weight: 760; letter-spacing: -1.55px; line-height: 1.15; }
.page-heading p { margin: 9px 0 0; color: #70758a; font-size: 13px; line-height: 1.5; }
.button { min-height: 43px; padding: 0 17px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 650; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; }
.button:active { transform: translateY(1px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 5px 12px rgb(40 50 118 / 17%); }
.button-primary:hover { background: var(--blue-hover); box-shadow: 0 7px 16px rgb(40 50 118 / 23%); }
.button-primary > span:first-child { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--yellow); font-size: 16px; line-height: 1; }
.button-secondary { color: var(--blue); background: #fff; border-color: #dfe3f4; box-shadow: 0 2px 5px rgb(24 27 51 / 3%); }
.button-secondary:hover { border-color: #aebbed; background: #f7f8ff; }
.button-secondary > span:first-child { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--yellow); font-size: 15px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.metric-card { position: relative; min-height: 126px; overflow: hidden; padding: 18px 19px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.metric-card::after { content: ""; position: absolute; right: -17px; bottom: -39px; width: 100px; height: 100px; border: 1px solid #e9ecfa; border-radius: 50%; box-shadow: 0 0 0 13px #f8f9fd; }
.metric-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; color: #64697e; font-size: 11px; font-weight: 550; }
.metric-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; font-size: 15px; }
.icon-sand { color: #7f611b; background: #fff4d5; }
.icon-blue { color: #355eca; background: #edf1ff; }
.icon-green { color: #068148; background: #ecfdf3; }
.metric-card > strong { position: relative; z-index: 1; display: block; margin-top: 10px; color: var(--ink); font-size: 28px; font-weight: 740; letter-spacing: -1px; line-height: 1; }
.metric-card > small { position: relative; z-index: 1; display: block; margin-top: 7px; color: #85899b; font-size: 10px; }
.projects-panel { margin-top: 23px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.panel-heading { padding: 21px 22px 17px; display: flex; align-items: center; justify-content: space-between; }
.section-kicker { margin-bottom: 5px; color: #8b90a3; font-size: 9px; letter-spacing: 1.15px; }
.panel-heading h2 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 720; letter-spacing: -.45px; }
.toolbar { padding: 0 22px 15px; display: flex; gap: 9px; }
.search-box { height: 39px; max-width: 360px; flex: 1; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid #e3e5ed; border-radius: 9px; color: #878c9f; background: #fcfcfe; }
.search-box:focus-within { border-color: #8ba3ee; box-shadow: 0 0 0 3px #eef1ff; }
.search-box span { font-size: 21px; line-height: 0; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: none; font-size: 11px; }
.search-box input::placeholder { color: #a4a8b5; }
.filter-button { min-height: 39px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid #e3e5ed; border-radius: 9px; color: #62677c; background: #fff; font-size: 11px; cursor: pointer; transition: background .15s, border-color .15s; }
.filter-button:hover { border-color: #c4cceb; background: #f8f9ff; }
.filter-button > span:last-child { color: #9196a8; font-size: 15px; }
.project-header, .project-row { display: grid; grid-template-columns: minmax(190px, 1.7fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(105px, .8fr) 24px; align-items: center; column-gap: 12px; padding: 0 22px; }
.project-header { height: 36px; border-top: 1px solid #eef0f5; border-bottom: 1px solid #eef0f5; color: #8e93a5; background: #f8f9fc; font-size: 9px; font-weight: 700; letter-spacing: .8px; }
.project-row { min-height: 71px; border-bottom: 1px solid #eff0f4; transition: background .16s; }
.project-row:hover { background: #fbfbfe; }
.project-name { min-width: 0; display: flex; align-items: center; gap: 11px; }
.project-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid #e5e8f5; border-radius: 11px; color: var(--blue); background: #f0f2fb; font-size: 11px; font-weight: 750; }
.project-name-text { min-width: 0; }
.project-name-text strong { display: block; overflow: hidden; color: #272a40; font-size: 11px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.project-name-text small { display: block; margin-top: 4px; color: #979bad; font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #dcefe3; border-radius: 999px; color: #087144; background: #f0faf4; font-size: 9px; font-weight: 650; white-space: nowrap; }
.status-pill .status-dot { width: 6px; height: 6px; background: #16a05e; }
.status-pill.finished { border-color: #e6e7ec; color: #6d7180; background: #f5f5f8; }
.status-pill.finished .status-dot { background: #9ea2b3; }
.date-cell { color: #74798d; font-size: 10px; }
.row-action { width: 27px; height: 27px; border: 0; border-radius: 50%; color: #9297a9; background: transparent; font-size: 19px; cursor: pointer; }
.row-action:hover { color: var(--blue); background: var(--blue-wash); }
.panel-footer { height: 44px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; color: #9499aa; font-size: 9px; }
.next-step { margin-top: 16px; padding: 15px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid #e5e7f1; border-radius: 13px; background: linear-gradient(100deg, #fff, #f4f5ff); }
.next-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--blue); background: #e8ebff; }
.next-step strong { color: #30334b; font-size: 11px; font-weight: 700; }
.next-step p { margin: 4px 0 0; color: #808599; font-size: 10px; line-height: 1.5; }
.coming-soon { margin-left: auto; padding: 5px 8px; border: 1px solid #e2e4ed; border-radius: 999px; color: #7c8194; background: #fff; font-size: 8px; font-weight: 700; letter-spacing: .7px; white-space: nowrap; }
.page-footer { padding: 20px 0 25px; color: #9a9ead; font-size: 8px; letter-spacing: 1px; }
.page-footer > span:first-child { padding: 0 5px; color: #c3c6d1; }
.build-mode { float: right; letter-spacing: .65px; }
.loading-state, .empty-state { padding: 36px 20px; color: #85899b; text-align: center; font-size: 12px; }
.empty-state strong { display: block; margin-bottom: 7px; color: #30334b; font-size: 13px; }
.empty-state .button { margin-top: 14px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 5; padding: 20px; display: grid; place-items: center; background: rgb(18 20 55 / 48%); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(100%, 470px); padding: 28px 30px 25px; border: 1px solid #e9eaf2; border-radius: 19px; background: #fff; box-shadow: 0 24px 80px rgb(18 20 55 / 25%); animation: appear .18s ease-out; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #71768b; background: #f4f5f9; font-size: 22px; cursor: pointer; }
.modal-close:hover { color: var(--blue); background: var(--blue-wash); }
.modal-symbol { width: 40px; height: 40px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 13px; color: var(--blue); background: var(--yellow); font-size: 23px; }
.modal h2 { margin: 0; color: var(--ink); font-size: 24px; font-weight: 730; letter-spacing: -.8px; }
.modal > p { margin: 8px 0 20px; color: #74798e; font-size: 12px; line-height: 1.6; }
.modal form > label { margin: 15px 0 7px; display: flex; justify-content: space-between; color: #33364c; font-size: 11px; font-weight: 650; }
.modal form > label span { color: #9499aa; font-weight: 450; }
.modal input { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #dfe2eb; border-radius: 9px; outline: 0; color: #30334b; background: #fff; font-size: 12px; transition: border .15s, box-shadow .15s; }
.modal input:focus { border-color: #8ba3ee; box-shadow: 0 0 0 3px #eef1ff; }
.modal input::placeholder { color: #a6aab7; }
.folder-preview { margin-top: 17px; padding: 13px; display: flex; align-items: center; gap: 11px; border: 1px solid #e7e9f2; border-radius: 10px; background: #f8f9fc; }
.folder-preview > span { font-size: 20px; }
.folder-preview strong, .folder-preview small { display: block; }
.folder-preview strong { color: #35384e; font-size: 10px; }
.folder-preview small { margin-top: 4px; color: #85899c; font-size: 9px; }
.form-message { min-height: 16px; margin: 8px 0 0; color: #a52d24; font-size: 10px; }
.modal-actions { margin-top: 10px; display: flex; justify-content: flex-end; gap: 8px; }
.button-quiet { color: #62677c; background: #fff; }
.button-quiet:hover { background: #f5f6fa; }
.modal-actions .button-primary span { margin-left: 2px; font-size: 13px; }
.toast { position: fixed; z-index: 8; right: 22px; bottom: 22px; max-width: calc(100% - 44px); padding: 13px 17px; border: 1px solid rgb(255 255 255 / 14%); border-radius: 11px; color: #fff; background: #181b33; box-shadow: 0 10px 28px rgb(18 20 55 / 24%); font-size: 12px; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
@keyframes appear { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1440px) {
  .main-content { padding-right: 6.2%; padding-left: 6.2%; }
  .metric-grid { gap: 18px; }
  .metric-card { min-height: 134px; padding: 20px 22px; }
  .projects-panel { margin-top: 27px; }
  .project-row { min-height: 76px; }
}
@media (max-width: 980px) {
  .sidebar { width: 211px; padding-right: 14px; padding-left: 14px; }
  .nav-link.active::before { left: -14px; }
  .main-content { margin-left: 211px; padding-right: 4%; padding-left: 4%; }
  .project-header, .project-row { grid-template-columns: minmax(150px, 1.5fr) minmax(100px, 1fr) minmax(105px, 1fr) 24px; }
  .project-header > span:nth-child(4), .project-row > .date-cell:last-of-type { display: none; }
}
@media (max-width: 680px) {
  .sidebar { position: sticky; inset: 0 0 auto; width: 100%; height: 58px; padding: 0 16px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0; gap: 8px; }
  .brand-mark { width: 35px; height: 35px; border-radius: 12px; font-size: 13px; }
  .brand-copy strong { font-size: 11px; }
  .brand-copy small { font-size: 8px; }
  .workspace-label, .main-nav, .sidebar-bottom { display: none; }
  .sidebar::after { content: "☰"; margin-left: auto; color: #51566d; font-size: 19px; }
  .main-content { margin: 0; padding: 0 15px; }
  .topbar { height: 43px; border: 0; }
  .breadcrumb { font-size: 10px; }
  .profile { gap: 0; font-size: 0; }
  .profile-avatar { width: 28px; height: 28px; font-size: 9px; }
  .profile-chevron { display: none; }
  .page-heading { min-height: 148px; margin: 8px 0 14px; padding: 22px 19px; border-radius: 15px; }
  .page-heading::after { right: -67px; top: -130px; }
  .page-heading h1 { max-width: 270px; font-size: 25px; letter-spacing: -1px; }
  .page-heading p { max-width: 240px; margin-top: 7px; font-size: 11px; }
  .desktop-create { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { min-height: 102px; padding: 13px 13px; border-radius: 12px; }
  .metric-card:first-child { grid-column: span 2; }
  .metric-card > strong { margin-top: 8px; font-size: 24px; }
  .metric-top { font-size: 10px; }
  .metric-icon { width: 26px; height: 26px; border-radius: 9px; }
  .projects-panel { margin-top: 16px; border-radius: 13px; }
  .panel-heading { padding: 16px 13px 13px; }
  .panel-heading h2 { font-size: 15px; }
  .section-kicker { font-size: 8px; }
  .panel-heading .button { min-height: 37px; padding: 0 12px; font-size: 10px; }
  .toolbar { padding: 0 13px 12px; gap: 7px; }
  .search-box { height: 37px; padding: 0 9px; }
  .search-box input { font-size: 10px; }
  .filter-button { min-height: 37px; gap: 5px; padding: 0 9px; font-size: 0; }
  .filter-button span:nth-child(1) { font-size: 10px; }
  .filter-button > span:last-child { font-size: 13px; }
  .project-header, .project-row { grid-template-columns: minmax(130px, 1.6fr) minmax(82px, .9fr) 22px; column-gap: 7px; padding-right: 11px; padding-left: 13px; }
  .project-header { height: 33px; font-size: 8px; letter-spacing: .4px; }
  .project-header > span:nth-child(3), .project-header > span:nth-child(4), .project-row > .date-cell { display: none; }
  .project-row { min-height: 64px; }
  .project-avatar { width: 32px; height: 32px; border-radius: 10px; }
  .project-name { gap: 8px; }
  .project-name-text strong { font-size: 10px; }
  .project-name-text small { font-size: 8px; }
  .status-pill { gap: 4px; padding: 5px 7px; font-size: 8px; }
  .panel-footer { height: 40px; padding: 0 13px; font-size: 8px; }
  .next-step { gap: 9px; margin-top: 13px; padding: 12px; border-radius: 11px; }
  .next-icon { width: 30px; height: 30px; border-radius: 9px; }
  .next-step strong { font-size: 10px; }
  .next-step p { font-size: 9px; line-height: 1.5; }
  .coming-soon { padding: 4px 6px; font-size: 7px; }
  .page-footer { padding: 16px 0 20px; font-size: 7px; }
  .modal { padding: 24px 20px 20px; border-radius: 16px; }
  .modal h2 { font-size: 21px; }
  .folder-preview small { font-size: 8px; }
}
@media (max-width: 375px) {
  .main-content { padding-right: 12px; padding-left: 12px; }
  .profile { display: none; }
  .page-heading h1 { font-size: 22px; }
  .filter-button span:nth-child(1) { max-width: 78px; overflow: hidden; white-space: nowrap; }
  .project-header, .project-row { grid-template-columns: minmax(115px, 1.5fr) minmax(75px, .9fr) 18px; column-gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
