:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #272936;
  background: #f7f8fb;
  --purple: #6455c5;
  --muted: #697184;
  --line: #e5e7ef;
  --surface: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 42px; border: 1px solid #dedfea; border-radius: 9px; padding: 9px 15px; background: white; color: #42475b; font-weight: 600; line-height: 1.4; }
button:hover { background: #f3f1fc; border-color: #c7bfe7; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.primary { background: var(--purple); color: #fff; border-color: var(--purple); box-shadow: 0 2px 3px #6455c51a; }
button.primary:hover { background: #5545b5; border-color: #5545b5; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #b4a8ef; outline-offset: 3px; }
.icon { width: 18px; height: 18px; flex: 0 0 18px; vertical-align: middle; }
.secondary, .muted { color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(25px, 2.5vw, 32px); line-height: 1.2; letter-spacing: -.9px; margin-bottom: 10px; overflow-wrap: anywhere; }
p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 30px 16px 20px; border-right: 1px solid var(--line); background: #fff; min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; font-size: 25px; line-height: 1.1; font-weight: 750; letter-spacing: -.9px; color: #2e2c42; }
.sidebar .brand { margin: 0 10px 35px; }
.mark { display: grid; place-items: center; width: 39px; height: 42px; flex: 0 0 39px; border-radius: 12px 12px 12px 3px; background: var(--purple); color: #fff; font-size: 29px; font-weight: 750; letter-spacing: -2px; }
.brand small { display: block; font-size: 9px; line-height: 1.5; margin-top: 5px; color: var(--muted); letter-spacing: 1.6px; font-weight: 600; }
.sidebar nav { flex: 1; overflow-y: auto; min-height: 0; }
.workspace-label { margin: 22px 12px 11px; color: #8a8e9e; font-size: 10px; font-weight: 650; letter-spacing: 1.4px; }
.workspace-label:first-child { margin-top: 0; }
.nav-item { display: flex; width: 100%; justify-content: flex-start; text-align: left; gap: 10px; min-height: 43px; margin-bottom: 5px; border: 0; background: transparent; padding: 11px 12px; font-size: 13px; font-weight: 500; }
.nav-item.active { color: #5948b3; background: #f0ecfc; font-weight: 650; }
.nav-item .count { margin-left: auto; font-size: 11px; border-radius: 5px; background: #e4ddf8; padding: 1px 7px; }
.project-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #9388bb; }
.dot.urgent { background: #d45b64; }.dot.high { background: #d7963a; }.dot.medium { background: #9180cd; }.dot.low { background: #5b9979; }
.sidebar-footer { flex-shrink: 0; margin-top: 24px; border-top: 1px solid var(--line); padding: 20px 10px 0; }
.profile { display: flex; gap: 10px; align-items: center; min-width: 0; }
.profile > span:last-child { min-width: 0; }
.profile strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.avatar { width: 33px; height: 33px; flex: 0 0 33px; display: inline-grid; place-items: center; border: 2px solid white; border-radius: 50%; color: #6b58a3; background: #eee8f9; font-size: 10px; font-weight: 700; }
.signout { background: transparent; min-height: 35px; border: 0; padding: 9px 0 0; font-size: 12px; color: var(--muted); }
.main { padding: 0 clamp(20px, 3vw, 48px) 30px; min-width: 0; width: 100%; }
.topbar { min-height: 76px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.topbar > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar > span:last-child { flex-shrink: 0; }
.topbar strong { font-weight: 550; color: #424859; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 0 25px; }
.heading > div:first-child { min-width: 0; max-width: 760px; }
.eyebrow { margin-bottom: 12px; color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.heading p { font-size: 13px; overflow-wrap: anywhere; }
.actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 30px; }
.stat { display: flex; align-items: center; gap: 13px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 19px; min-width: 0; }
.stat-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #f1edfc; color: #7b65bb; }
.stat:nth-child(2) .stat-icon { background: #fff4e4; color: #b3823a; }.stat:nth-child(3) .stat-icon { background: #eaf5ef; color: #4c8b6d; }.stat:nth-child(4) .stat-icon { background: #fcecef; color: #c36873; }
.stat strong { display: block; font-size: 27px; line-height: 1.2; letter-spacing: -.8px; font-weight: 650; }
.stat small { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-label h2 { font-size: 15px; margin: 0; font-weight: 650; }.section-label > span { color: var(--muted); font-size: 11px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 15px; margin-bottom: 30px; }
.project-card { display: block; text-align: left; min-width: 0; border-radius: 12px; padding: 19px; box-shadow: 0 2px 3px #23203c03; }
.project-card:hover { background: white; border-color: #a99bd8; box-shadow: 0 5px 18px #4630720b; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.project-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; color: #8470b7; background: #f3effc; }
.project-card h3 { font-size: 14px; font-weight: 650; line-height: 1.45; margin-bottom: 5px; overflow-wrap: anywhere; }
.project-card p { font-size: 12px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 20px; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; font-weight: 450; margin-bottom: 8px; }
.progress-track { height: 5px; background: #efedf6; border-radius: 5px; overflow: hidden; }.progress-fill { height: 100%; background: #a294d3; border-radius: 5px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 20px; }
.board-tab { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; color: #5c4ab2; font-size: 13px; font-weight: 650; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
input, select, textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #dcdfea; border-radius: 8px; padding: 10px 12px; background: #fff; color: #383d50; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: #a493df; outline: 3px solid #eee9fb; }
input::placeholder, textarea::placeholder { color: #9197a7; opacity: 1; }
.filters input { width: 190px; }.filters select { width: 136px; }.filters input, .filters select { min-height: 39px; font-size: 12px; padding: 8px 10px; }.filters button { min-height: 39px; font-size: 12px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(255px, 1fr)); align-items: stretch; gap: 15px; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 0 16px; scrollbar-color: #cfc9e2 transparent; scrollbar-width: thin; }
.column { min-width: 0; min-height: 340px; border-radius: 12px; padding: 12px; background: #eff1f6; border: 1px solid #e9ebf2; }
.column.dragover { background: #eae4fa; border: 1px dashed #9c87d7; }
.column-heading { display: flex; align-items: center; gap: 8px; min-height: 35px; font-size: 12px; font-weight: 650; margin-bottom: 10px; padding: 0 2px; }
.column-heading .count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; font-size: 10px; border-radius: 6px; background: #e2e5ed; color: #70788a; }
.column-heading button { margin-left: auto; padding: 4px; width: 30px; min-height: 30px; border: 0; background: transparent; color: #7d8496; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #a0a8b7; }.column[data-status=progress] .status-dot { background: #d6a64e; }.column[data-status=review] .status-dot { background: #a28ad6; }.column[data-status=done] .status-dot { background: #69a68c; }
.task { display: block; position: relative; border: 1px solid #e2e5ed; border-top: 3px solid #c3b6e3; background: #fff; border-radius: 9px; padding: 15px; margin-bottom: 12px; cursor: grab; box-shadow: 0 2px 3px #23203c04; }
.task[data-priority=urgent] { border-top-color: #d46b76; }.task[data-priority=high] { border-top-color: #dba85a; }.task[data-priority=low] { border-top-color: #83ac94; }
.task:last-child { margin-bottom: 0; }.task:hover { box-shadow: 0 4px 15px #35245912; border-right-color: #c6bbdf; border-left-color: #c6bbdf; }
.task .task-project { margin-bottom: 9px; font-size: 10px; color: #7c709b; line-height: 1.5; overflow-wrap: anywhere; }
.task h3 { margin: 11px 0 7px; font-size: 13px; line-height: 1.6; font-weight: 650; overflow-wrap: anywhere; }
.task .description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.6; color: #747c8d; margin-bottom: 14px; overflow-wrap: anywhere; }
.task-bottom { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 35px; padding-top: 11px; margin-top: 14px; border-top: 1px solid #eff0f5; }
.task-bottom .avatar { width: 27px; height: 27px; flex-basis: 27px; font-size: 9px; }
.due { display: inline-flex; gap: 5px; align-items: center; color: #767e90; font-size: 10px; }.due .icon { width: 13px; height: 13px; flex-basis: 13px; }.due.overdue { color: #b74455; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 7px; border-radius: 5px; font-size: 10px; font-weight: 650; line-height: 1.2; white-space: nowrap; }.badge .icon { width: 11px; height: 11px; flex-basis: 11px; }
.badge.urgent { color: #af4052; background: #fcecef; }.badge.high { color: #986423; background: #fff3df; }.badge.medium { color: #7960ad; background: #f0ecfb; }.badge.low { color: #41785c; background: #eaf4ee; }
.empty-column { border: 1px dashed #d2d7e4; border-radius: 8px; padding: 28px 15px; text-align: center; font-size: 12px; color: #7b8395; line-height: 1.7; }
.empty { padding: 32px; border-radius: 12px; border: 1px dashed #cfc6e6; background: #fbfaff; grid-column: 1 / -1; text-align: center; }.empty h3 { margin: 0 0 8px; font-size: 17px; }.empty p { font-size: 13px; max-width: 460px; margin: 0 auto; }.empty button { margin-top: 20px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 11px; color: var(--muted); }.legend > span { display: inline-flex; }
.mobile-project-picker, .board-navigation { display: none; }
.loading { padding: 70px 25px; color: var(--muted); text-align: center; }.loading button { margin-top: 20px; }
dialog { width: 500px; max-width: calc(100% - 32px); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #e0dcec; border-radius: 16px; padding: 27px; box-shadow: 0 25px 100px #27203840; color: #272936; }
dialog::backdrop { background: #25223866; backdrop-filter: blur(3px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }.modal-head h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.5px; margin: 0; }.close { width: 35px; min-height: 35px; padding: 5px; border: 0; color: #7d8292; font-size: 23px; }
.form { display: grid; gap: 18px; min-width: 0; }.form label { display: grid; gap: 7px; min-width: 0; font-size: 12px; font-weight: 600; color: #495064; }.form input, .form textarea, .form select { font-weight: 400; font-size: 14px; }
textarea { min-height: 96px; resize: vertical; }.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }.danger { color: #b34155; margin-right: auto; }.error { color: #b34155; font-size: 12px; line-height: 1.6; }.error:empty { display: none; }.help { font-size: 12px; color: var(--muted); line-height: 1.75; }dialog > .help { margin-bottom: 18px; }dialog > .help:last-child { margin: 18px 0 0; }
.invite-output { font-size: 12px; margin-bottom: 16px; }.connection { margin: 10px 0; color: #9c6235; font-size: 12px; }
#toast { display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); padding: 13px 20px; max-width: calc(100vw - 32px); width: max-content; border-radius: 10px; background: #302c46; color: #fff; box-shadow: 0 6px 30px #29223b30; font-size: 13px; z-index: 100; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr); min-height: 100dvh; background: #fff; }
.auth-story { position: relative; display: flex; flex-direction: column; padding: clamp(32px, 5vw, 80px); background: #f0edf9; overflow: hidden; }
.auth-story .brand { margin-bottom: 70px; }.auth-story-content { max-width: 530px; margin: auto 0; padding: 25px 0 60px; }.auth-story h2 { font-size: clamp(35px, 4vw, 56px); line-height: 1.12; letter-spacing: -2px; font-weight: 650; margin-bottom: 22px; color: #35304f; }.auth-story h2 em { color: var(--purple); font-style: normal; }.auth-story-content > p { color: #77708e; max-width: 380px; font-size: 15px; }.auth-story-foot { display: flex; gap: 8px; align-items: center; font-size: 11px; color: #827990; }
.auth-board { display: grid; gap: 11px; margin-top: 35px; width: min(100%, 390px); }.auth-preview-task { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border: 1px solid #e7e1f2; border-radius: 10px; background: #ffffffc9; box-shadow: 0 5px 12px #47305b04; }.auth-preview-task > span:nth-child(2) { flex: 1; font-size: 12px; font-weight: 550; color: #56506b; }.preview-check { display: grid; place-items: center; border: 1px solid #d4cce6; width: 21px; height: 21px; border-radius: 6px; color: #8575b1; background: #f6f3fc; }.auth-preview-task .badge { font-size: 9px; }.auth-preview-task:first-child { transform: translateX(14px); }.auth-preview-task:last-child { transform: translateX(7px); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 44px; min-width: 0; }.auth-card { width: 100%; max-width: 370px; min-width: 0; }.auth-card > .brand { display: none; }.auth-card .eyebrow { margin-bottom: 14px; }.auth-card h1 { font-size: 29px; letter-spacing: -.8px; margin-bottom: 12px; }.auth-card > p { font-size: 13px; margin-bottom: 29px; }.auth-card .form { gap: 18px; }.auth-card .primary { width: 100%; min-height: 46px; margin-top: 5px; }.auth-card .primary .icon { margin-left: auto; }.auth-card .primary::before { content: ''; width: 18px; margin-right: auto; }
.password-field { position: relative; display: block; }.password-field input { padding-right: 65px; }.password-toggle { position: absolute; right: 7px; top: 5px; min-height: 34px; padding: 6px 8px; font-size: 11px; color: #73658e; border: 0; background: transparent; }
.field-hint { color: #828798; font-size: 11px; line-height: 1.6; font-weight: 400; }.setup-help { padding: 11px 13px; background: #f8f7fc; border: 1px solid #e9e5f3; border-radius: 8px; color: #777087; font-size: 11px; line-height: 1.7; }.setup-help summary { cursor: pointer; color: #655780; font-weight: 550; }.setup-help p { margin-top: 8px; font-size: 11px; }.setup-help code { display: block; margin-top: 7px; overflow-wrap: anywhere; color: #5f527c; }
.auth-foot { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); color: #828697; text-align: center; font-size: 12px; line-height: 1.7; }.auth-foot button { min-height: 32px; padding: 4px 5px; border: 0; background: transparent; color: var(--purple); font-size: 12px; }
@media (min-width: 1600px) { .main { max-width: 1700px; margin-inline: auto; } }
@media (max-width: 1200px) { .layout { grid-template-columns: 205px minmax(0,1fr); }.main { padding-inline: 24px; }.sidebar { padding-inline: 12px; }.stat { padding: 16px 13px; gap: 10px; }.stat-icon { flex-basis: 33px; width: 33px; height: 33px; }.heading { align-items: flex-start; }.actions { flex-wrap: wrap; justify-content: flex-end; max-width: 230px; }.toolbar { align-items: flex-start; }.filters { flex: 1; justify-content: flex-end; }.auth-story { padding: 40px; }.auth-panel { padding: 36px; } }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }.auth-shell { grid-template-columns: minmax(0,1fr) minmax(380px,1fr); }.auth-story { padding: 30px; }.auth-story h2 { font-size: 39px; }.auth-board { margin-top: 26px; }.auth-preview-task { padding: 13px 10px; }.auth-preview-task .badge { padding-inline: 5px; }.auth-story .brand { margin-bottom: 40px; }.filters input { width: 100%; }.filters { justify-content: flex-start; }.filters select { flex: 1; }.board-tab { width: 100%; }.toolbar { gap: 12px; } }
@media (max-width: 700px) { .layout { display: block; }.sidebar { position: static; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 17px 20px; border-right: 0; border-bottom: 1px solid var(--line); }.sidebar .brand { margin: 0; font-size: 22px; }.sidebar .mark { width: 33px; height: 36px; flex-basis: 33px; font-size: 26px; border-radius: 10px 10px 10px 3px; }.sidebar nav, .sidebar .profile { display: none; }.sidebar-footer { padding: 0; margin: 0; border: 0; }.signout { padding: 7px; min-height: 38px; }.main { padding: 0 18px 24px; }.topbar { min-height: 53px; gap: 10px; font-size: 11px; }.topbar > span:last-child { font-size: 10px; }.heading { padding: 24px 0; flex-direction: column; gap: 17px; }.heading p { font-size: 12px; }.heading .actions { max-width: none; width: 100%; justify-content: flex-start; }.heading .actions button { flex: 1; }.heading .eyebrow { margin-bottom: 9px; }.stats { gap: 10px; margin-bottom: 25px; }.stat { padding: 15px; }.stat strong { font-size: 25px; }.stat small { font-size: 10px; }.section-label > span { font-size: 10px; }.project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 24px; }.project-card { padding: 14px; }.project-card h3 { font-size: 13px; }.project-top { margin-bottom: 12px; }.project-icon { width: 28px; height: 28px; }.project-card p { font-size: 11px; }.project-card .badge { font-size: 9px; padding: 4px 6px; }.progress-label { font-size: 9px; }.mobile-project-picker { display: block; margin-top: 17px; }.mobile-project-picker select { background: white; font-size: 13px; }.toolbar { padding-bottom: 14px; margin-bottom: 12px; }.filters { width: 100%; }.filters input { flex: 1 1 100%; }.filters select { width: auto; min-width: 90px; flex: 1 1 30%; }.filters button { flex: 1 1 30%; }.kanban { grid-template-columns: repeat(4,minmax(270px, 86%)); gap: 12px; scroll-snap-type: x mandatory; }.column { scroll-snap-align: start; min-height: 320px; }.board-navigation { display: flex; width: 100%; gap: 5px; margin-bottom: 14px; }.board-navigation button { flex: 1; min-width: 0; padding: 7px 4px; min-height: 36px; font-size: 10px; background: transparent; border-color: transparent; white-space: nowrap; }.board-navigation button[aria-pressed=true] { background: #eee8fb; color: #6350ae; border-color: #ded4f1; }.legend { justify-content: center; gap: 6px; font-size: 10px; }.auth-shell { display: block; background: #f7f5fb; min-height: 100dvh; padding: 24px 18px 40px; }.auth-story { display: none; }.auth-panel { padding: 0; }.auth-card { background: white; max-width: 430px; border: 1px solid #e7e2f0; border-radius: 17px; padding: 28px; box-shadow: 0 10px 40px #352a5405; }.auth-card > .brand { display: flex; margin-bottom: 34px; }.auth-card h1 { font-size: 27px; }.auth-card .eyebrow { font-size: 9px; }.auth-card input { font-size: 16px; }.form-row input, .form-row select { font-size: 16px; }dialog { padding: 23px; } }
@media (max-width: 380px) { .project-grid { grid-template-columns: 1fr; }.topbar > span:last-child { display: none; }.stat { padding: 13px 10px; gap: 7px; }.stat-icon { flex-basis: 28px; width: 28px; height: 28px; }.auth-card { padding: 23px; }.form-row { grid-template-columns: 1fr; }.form-footer button { flex: 1; }.form-footer .danger { flex-basis: 100%; }.legend > span .badge { font-size: 9px; } }
@media (prefers-reduced-motion: no-preference) { button, .task { transition: background .15s, border-color .15s, box-shadow .15s; } }
.password-group { display: grid; gap: 7px; }
.due, .task .task-project { font-size: 11px; }
@media (max-width: 700px) { .form input, .form textarea, .form select { font-size: 16px; } }
