:root {
  color: #20212a;
  background: #f4f4f7;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.eyebrow { margin: 0 0 10px; color: #777987; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.brand-mark { display: grid; width: 52px; height: 52px; margin-bottom: 48px; place-items: center; border-radius: 16px; background: #201f2c; color: white; font-size: 17px; font-weight: 850; }
.brand-mark.small { width: 38px; height: 38px; margin: 0; border-radius: 12px; font-size: 13px; }
.button { min-height: 40px; padding: 0 17px; border: 0; border-radius: 10px; font-weight: 750; }
.button.primary { background: #635bff; color: #fff; box-shadow: 0 7px 20px rgba(99,91,255,.22); }
.button.dark { background: #24232d; color: #fff; }
.button.subtle { border: 1px solid #dedee6; background: #fff; color: #33343d; }
.button:disabled { cursor: not-allowed; opacity: .48; }
.wide { width: 100%; }
.text-button, .icon-button { padding: 0; border: 0; background: transparent; color: #6d6f7c; }
.text-button.centered { display: block; margin: 18px auto 0; }
.text-button.danger { color: #c64f56; }

.login-page { min-height: 100vh; background: #ebeaf0; }
.login-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); min-height: 100vh; }
.login-story { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 112px); background: #262530; color: #fff; }
.login-story::after { position: absolute; width: 520px; height: 520px; right: -230px; bottom: -260px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); content: ""; }
.login-story .eyebrow { color: #aaa8bb; }
.login-story h1 { max-width: 720px; margin: 0; font-size: clamp(48px, 6vw, 88px); line-height: .98; letter-spacing: -.065em; }
.login-lead { max-width: 520px; margin: 30px 0 0; color: #b9b8c5; font-size: 18px; line-height: 1.7; }
.mini-timeline { position: absolute; right: 10%; bottom: 13%; width: min(520px, 70%); height: 140px; opacity: .9; }
.mini-line { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 51px, rgba(255,255,255,.08) 52px 53px); border-block: 1px solid rgba(255,255,255,.08); }
.mini-task { position: absolute; height: 18px; border-radius: 5px; }
.task-one { top: 20px; left: 6%; width: 34%; background: #7c74ff; }
.task-two { top: 58px; left: 30%; width: 52%; background: #49c59a; }
.task-three { top: 96px; left: 68%; width: 25%; background: #f0a45b; }
.login-card { align-self: center; width: min(440px, calc(100% - 48px)); margin: auto; padding: 46px; border: 1px solid #e0dfe6; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(33,32,45,.08); }
.login-card h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.045em; }
.muted { margin: 0 0 30px; color: #7b7d89; line-height: 1.6; }
.login-card label, .task-form label, .plan-controls label { display: grid; gap: 8px; color: #5f616d; font-size: 12px; font-weight: 750; }
.login-card input, .task-form input, .plan-controls input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #dcdce4; border-radius: 10px; outline: 0; background: #fff; color: #24252d; }
.login-card input:focus, .task-form input:focus, .plan-controls input:focus { border-color: #7b74ff; box-shadow: 0 0 0 3px rgba(99,91,255,.1); }
.login-card .button { margin-top: 14px; }
.code-input { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .32em; }
.form-message { min-height: 20px; margin: 18px 0 0; color: #2c946f; font-size: 13px; text-align: center; }
.form-message.error { color: #c94f58; }

.workspace { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 20px 16px; border-right: 1px solid #e4e4e9; background: #f8f8fa; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; margin: 0 4px 24px; }
.sidebar-brand strong, .sidebar-brand small, .sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-brand strong { font-size: 14px; }
.sidebar-brand small { margin-top: 2px; color: #8a8c98; font-size: 11px; }
.sidebar-section-title { display: flex; justify-content: space-between; margin: 26px 8px 10px; color: #858793; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.project-list { display: grid; align-content: start; gap: 5px; overflow-y: auto; }
.project-item { display: grid; grid-template-columns: 30px 1fr; width: 100%; padding: 10px 9px; border: 0; border-radius: 10px; background: transparent; color: #3c3d47; text-align: left; }
.project-item:hover { background: #eeeef3; }
.project-item.active { background: #e8e7ff; color: #4e47da; }
.project-icon { font-size: 22px; line-height: 1; }
.project-item strong, .project-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-item strong { font-size: 13px; }
.project-item small { margin-top: 4px; color: #9697a2; font-size: 10px; }
.empty-copy { padding: 12px 8px; color: #999aa4; font-size: 12px; line-height: 1.5; }
.sidebar-user { display: grid; grid-template-columns: 34px minmax(0,1fr) 24px; align-items: center; gap: 9px; margin-top: auto; padding: 13px 4px 0; border-top: 1px solid #e3e3e8; }
.user-avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #282731; color: #fff; font-size: 12px; font-weight: 800; }
.sidebar-user strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user small { margin-top: 3px; color: #999aa4; font: 10px ui-monospace, monospace; }

.gantt-main { min-width: 0; padding: 30px clamp(22px, 4vw, 54px) 60px; }
.workspace-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.project-title { width: min(600px, 65vw); padding: 0; border: 0; outline: 0; background: transparent; color: #20212a; font-size: clamp(28px, 3vw, 42px); font-weight: 800; letter-spacing: -.05em; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.save-state { color: #7d7f89; font-size: 12px; }
.save-state.unsaved { color: #c67a32; }
.plan-controls { display: flex; align-items: end; gap: 13px; margin: 28px 0 18px; }
.plan-controls input { width: 150px; height: 38px; background: #fafafd; }
.date-arrow { padding-bottom: 10px; color: #999aa5; }
.legend { margin-left: auto; padding-bottom: 8px; color: #8b8d98; font-size: 11px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin: 0 5px 0 13px; border-radius: 50%; }
.legend-dot.purple { background: #635bff; }
.legend-line { display: inline-block; width: 2px; height: 12px; margin: 0 6px 0 15px; background: #ef596f; vertical-align: middle; }
.timeline-card, .task-editor-card { overflow: hidden; border: 1px solid #e2e2e8; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(33,32,45,.035); }
.timeline-card-head, .task-editor-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #ececf0; }
.timeline-card-head h2, .task-editor-head h2 { margin: 0; font-size: 16px; }
.timeline-card-head p { margin: 5px 0 0; color: #91929c; font-size: 11px; }
.timeline-board { min-height: 330px; }
.timeline-scroll { overflow-x: auto; }
.timeline-inner { min-width: calc(210px + var(--track-width)); }
.timeline-head, .timeline-row { display: grid; grid-template-columns: 210px var(--track-width); width: 100%; min-width: max-content; }
.timeline-head { position: sticky; top: 0; z-index: 3; height: 58px; border-bottom: 1px solid #e9e9ee; background: #fbfbfd; }
.timeline-head > span { display: flex; align-items: center; padding-left: 18px; color: #848691; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.date-track, .task-track { display: grid; grid-template-columns: repeat(var(--days), 64px); }
.date-cell { display: grid; place-content: center; border-left: 1px solid #ececf1; text-align: center; }
.date-cell strong { font-size: 11px; }
.date-cell small { margin-top: 3px; color: #a0a1aa; font-size: 9px; }
.date-cell.today { color: #e34e65; background: #fff3f5; }
.timeline-row { position: relative; height: 64px; padding: 0; border: 0; border-bottom: 1px solid #f0f0f3; background: #fff; color: inherit; text-align: left; }
.timeline-row:hover, .timeline-row.active { background: #fafafe; }
.timeline-row.active .task-label { box-shadow: inset 3px 0 #635bff; }
.task-label { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 0 18px; }
.task-label strong, .task-label small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-label strong { font-size: 12px; }
.task-label small { margin-top: 5px; color: #999aa4; font-size: 10px; }
.task-track { position: relative; }
.task-track > i { border-left: 1px solid #f0f0f3; }
.task-track > i.today-grid { border-left: 2px solid rgba(227,78,101,.7); background: #fff9fa; }
.task-bar { position: absolute; top: 17px; display: flex; align-items: center; overflow: hidden; height: 30px; padding: 0 10px; border-radius: 7px; color: #fff; box-shadow: 0 5px 12px rgba(32,33,42,.12); }
.task-bar > span { position: absolute; inset: 0 auto 0 0; background: rgba(0,0,0,.16); }
.task-bar b { position: relative; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-placeholder { display: grid; min-height: 270px; place-items: center; color: #9b9ca6; font-size: 13px; }
.task-editor-card { margin-top: 18px; }
.task-form { display: grid; grid-template-columns: 2fr 1.2fr .5fr; gap: 17px; padding: 22px; }
.task-form .span-two { grid-column: span 2; }
.task-form input { height: 40px; background: #fcfcfd; }
.task-form input[type="color"] { padding: 5px; }
.task-form input[type="range"] { padding: 0; border: 0; box-shadow: none; }
.task-form output { float: right; color: #635bff; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .workspace { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  .sidebar-brand > div:last-child, .sidebar .button, .sidebar-section-title, .project-item > span:last-child, .sidebar-user > div, .sidebar-user .icon-button { display: none; }
  .sidebar-brand { justify-content: center; }
  .project-item { grid-template-columns: 1fr; text-align: center; }
  .sidebar-user { grid-template-columns: 1fr; }
  .user-avatar { margin: auto; }
  .task-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .gantt-main { padding: 22px 14px 40px; }
  .workspace-header { align-items: start; flex-direction: column; }
  .project-title { width: 100%; font-size: 30px; }
  .plan-controls { align-items: stretch; flex-wrap: wrap; }
  .legend { width: 100%; margin-left: 0; }
  .task-form { grid-template-columns: 1fr; }
  .task-form .span-two { grid-column: span 1; }
  .login-card { padding: 32px 24px; }
}
