.workspace { background: #f7f9f5; font-size: 15px; }
.workspace-layout { min-height: 100svh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100svh; overflow-y: auto; display: flex; flex-direction: column; min-width: 0; padding: 18px 14px 14px; background: #14251d; color: #e4efe7; }
.sidebar .brand { margin: 0 0 27px 2px; }
.sidebar .brand img { width: 34px; height: 34px; }
.sidebar nav { min-width: 0; }
.side-label { margin: 0 7px 7px; color: #aec4b6; font-size: .73rem; font-weight: 700; }
.side-link { display: flex; width: 100%; gap: 9px; align-items: center; padding: 7px 9px; min-height: 34px; border: 0; border-radius: 6px; background: transparent; color: #dbe8df; text-align: left; font-size: .85rem; font-weight: 600; }
.side-link:hover, .side-link[aria-current] { background: #2a4737; color: #f4fbf5; }
.side-link[aria-current] { box-shadow: inset 2px 0 #8dcea3; }
.side-icon { width: 16px; text-align: center; color: #b6d5c1; flex: none; }
.side-project-label { margin-top: 21px; display: flex; align-items: center; justify-content: space-between; }
.side-add, .column-add { padding: 0 3px; border: 0; border-radius: 4px; background: transparent; line-height: 1.15; font-size: 1.1rem; color: inherit; }
.side-add:hover { background: #3a5a45; color: white; }
.project-dot { width: 7px; height: 7px; margin-inline: 5px 4px; flex: none; border-radius: 3px; background: #b2d8be; }
.project-link:nth-child(3n+2) .project-dot { background: #d9c4a0; }
.project-link:nth-child(3n+3) .project-dot { background: #bed0da; }
.project-link > span:last-child, .account-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.no-projects { color: #a7baae; margin: 0 8px; font-size: .78rem; }
.sidebar-foot { margin-top: auto; padding-top: 18px; }
.account-link { border-top: 1px solid #3b5747; border-radius: 0 0 6px 6px; padding-block: 10px 7px; justify-content: space-between; }
.side-avatar, .person-avatar { width: 28px; height: 28px; flex: none; display: inline-grid; place-items: center; padding: 2px; border-radius: 50%; color: #274c37; background: #dceee0; font-size: .65rem; font-weight: 700; line-height: 1; }
.account-name { flex: 1; }
.account-name strong, .account-name small { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-name small { color: #b7cbbd; font-size: .71rem; }
.side-demo { display: grid; gap: 3px; padding: 10px; margin-bottom: 20px; border: 1px solid #4b6f58; border-radius: 8px; color: #a9deb8; font-size: .78rem; font-weight: 700; }
.side-demo a:hover { text-decoration: underline; }

.workspace-main { min-width: 0; }
.workspace-topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 57px; padding-inline: clamp(16px, 3.1vw, 40px); border-bottom: 1px solid #e1e8df; background: #fff; font-size: .8rem; }
.workspace-topbar > a { flex: none; color: var(--link); font-weight: 700; }
.workspace-topbar > a:hover { text-decoration: underline; }
.breadcrumb { display: flex; min-width: 0; gap: 9px; align-items: center; color: var(--muted); }
.breadcrumb strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.workspace-nav-toggle { display: none; }
.workspace-content { max-width: 1590px; margin-inline: auto; padding: 29px clamp(16px, 3.1vw, 40px) 42px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: start; gap: 13px; margin-bottom: 22px; }
.workspace-heading h1 { font-size: clamp(1.75rem, 3vw, 2.45rem); overflow-wrap: anywhere; }
.workspace-heading p { color: var(--muted); font-size: .88rem; margin-top: 6px; overflow-wrap: anywhere; white-space: pre-wrap; }
.workspace-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; flex: 0 0 auto; align-items: center; }
.workspace-status { color: var(--link); font-weight: 650; font-size: .89rem; margin-bottom: 14px; }
.workspace-status.error { color: #8c3739; }
.demo-banner { padding: 8px 11px; display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; background: #e9f1e7; color: #385340; border: 1px solid #cddfcf; border-radius: 8px; margin-bottom: 17px; font-size: .81rem; }
.demo-banner a { margin-left: auto; font-weight: 700; }
.demo-banner a:hover { text-decoration: underline; }
.workspace-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.workspace-stats > div { background: #fff; border: 1px solid #dfe7df; border-radius: 8px; min-height: 47px; display: flex; align-items: center; padding: 8px 12px; gap: 7px; color: #496052; font-weight: 700; font-size: .78rem; }
.workspace-stats strong { margin-left: auto; font: 800 1.13rem/1 var(--head-font); color: var(--ink); }
.stage-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #7b8f82; }
.stage-dot.progress { background: #ae7f39; }
.stage-dot.done { background: #3d8b63; }

.workspace-toolbar { margin-block: 19px 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.view-toggle { display: inline-flex; gap: 2px; border: 1px solid #dce6db; border-radius: 7px; padding: 2px; background: #edf2eb; }
.view-toggle button { padding: 4px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #4a6050; font-weight: 700; font-size: .78rem; }
.view-toggle button:hover { color: #244932; }
.view-toggle [aria-pressed="true"] { border-color: #dce6db; background: #fff; color: #263d2c; }
.workspace-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.workspace-filters input, .workspace-filters select { max-width: 100%; min-height: 34px; padding: 4px 8px; background: #fff; border: 1px solid #d0dbd1; border-radius: 6px; color: #3f5348; font-size: .78rem; }
.workspace-filters .button.small { min-height: 34px; padding: 5px 9px; font-size: .78rem; }
.search-label input { width: clamp(116px, 17vw, 208px); }
.start-panel { padding: 43px 16px; text-align: center; background: #f1f5ee; border: 1px dashed #bbd0be; border-radius: 12px; }
.start-mark { display: grid; place-items: center; width: 41px; height: 41px; margin: 0 auto 13px; background: #ddecdf; color: #385843; border-radius: 9px; font-size: 1.18rem; }
.start-panel h2 { font-size: 1.52rem; }
.start-panel p { margin-block: 7px 16px; color: var(--muted); font-size: .9rem; }
.start-panel > div:last-child { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.task-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; align-items: stretch; }
.task-column { min-width: 0; min-height: 260px; background: #edf2ec; border: 1px solid #e0e8df; border-radius: 9px; }
.column-heading { display: flex; align-items: center; gap: 7px; padding: 9px 10px; color: #30493a; }
.column-heading h2 { font: 800 .85rem/1.3 var(--head-font); letter-spacing: -.025em; }
.column-count { color: #526458; font-size: .73rem; }
.column-add { margin-left: auto; }
.column-add:hover { background: #dce7dc; }
.column-body { display: grid; gap: 7px; padding: 0 7px 8px; }
.task-card { min-width: 0; background: white; border: 1px solid #dae5da; box-shadow: 0 1px 2px #253c290b; border-radius: 7px; padding: 9px; }
.task-kicker { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 6px; color: #536a59; font-size: .72rem; font-weight: 650; }
.task-kicker > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.priority-pill { flex: none; border-radius: 4px; padding: 0 5px; background: #edf1ed; color: #495c50; font-size: .67rem; white-space: nowrap; }
.priority-pill.high { background: #f7ece6; color: #853b26; }
.priority-pill.medium { background: #f6f0dc; color: #665212; }
.priority-pill.low { background: #e6f0e9; color: #3b5f48; }
.task-card h3 { margin-top: 4px; font-size: .93rem; line-height: 1.21; letter-spacing: -.032em; overflow-wrap: anywhere; }
.task-title { font: inherit; color: var(--ink); background: transparent; border: 0; padding: 1px 0; text-align: left; }
.task-title:hover { color: var(--link); text-decoration: underline; text-underline-offset: .15em; }
.task-card p { color: #536459; font-size: .75rem; line-height: 1.35; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.task-card-footer { min-height: 25px; padding-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; justify-content: space-between; }
.task-card-footer select { padding: 2px 1px; border: 1px solid #d8e3da; border-radius: 4px; background: #fbfcfa; color: #46604f; font-size: .71rem; }
.task-card-meta { display: flex; align-items: center; gap: 4px; color: #556b5c; font-size: .72rem; }
.task-card-meta .overdue { color: #a13d40; }
.task-card-meta .person-avatar { width: 21px; height: 21px; font-size: .58rem; }
.empty-column { border: 1px dashed #cbd9cc; border-radius: 6px; padding: 9px; color: #4d6354; font-size: .79rem; }
.task-list { display: grid; gap: 7px; }
.task-list .task-card { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(140px, 1fr) minmax(0, 1.25fr) auto; gap: 10px; align-items: center; }
.task-list .task-card-footer, .task-list .task-card h3, .task-list .task-card p { padding: 0; margin: 0; }
.task-list .task-card-footer { grid-column: 4; }

.workspace-dialog { width: min(500px, calc(100vw - 28px)); max-height: calc(100svh - 28px); overflow: auto; padding: 21px 23px 23px; border: 1px solid #d9e3da; border-radius: 13px; background: white; color: var(--ink); box-shadow: 0 18px 65px #0f241d39; }
.workspace-dialog::backdrop { background: #12241bb5; }
.dialog-heading, .dialog-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.dialog-heading { margin-bottom: 14px; }
.dialog-heading h2 { font-size: 1.47rem; }
.close-dialog { display: grid; place-items: center; width: 29px; height: 29px; padding: 0; border: 1px solid #d7e0d7; border-radius: 5px; background: #f3f6f2; color: #344e3d; font-size: 1.2rem; line-height: 1; }
.close-dialog:hover { background: #e4eee5; }
.dialog-note { font-size: .88rem; color: var(--muted); margin: 0 0 11px; overflow-wrap: anywhere; }
.workspace-dialog h3 { font-size: .94rem; margin-bottom: 5px; }
.workspace-dialog .form-status:not(:empty) { margin-top: 7px; }
.workspace-dialog .form-status { line-height: 1.4; }
.people-list { display: grid; gap: 5px; }
.people-row { min-width: 0; padding: 5px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; border-bottom: 1px solid #e5eee5; color: var(--muted); font-size: .79rem; }
.people-row strong { margin-right: auto; color: var(--ink); overflow-wrap: anywhere; }
.invites-admin { border-top: 1px solid #dbe4db; margin-top: 15px; padding-top: 15px; }
.invites-admin form { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 13px; }
.invite-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; margin-bottom: 16px; }
.account-actions { display: flex; gap: 7px; flex-wrap: wrap; }

@media (max-width: 1050px) {
  .workspace-layout { grid-template-columns: 177px minmax(0, 1fr); }
  .sidebar { padding-inline: 11px; }
  .task-list .task-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto; }
  .task-list .task-card p { display: none; }
  .task-list .task-card-footer { grid-column: 3; }
}
@media (max-width: 780px) {
  .workspace-heading { flex-wrap: wrap; }
  .workspace-heading-actions { justify-content: start; }
  .task-board { gap: 8px; }
  .task-column { min-height: 235px; }
  .column-body { padding-inline: 5px; }
}
@media (max-width: 670px) {
  .workspace-layout { display: block; }
  .sidebar { display: none; position: fixed; top: 51px; bottom: 0; left: 0; z-index: 4; height: auto; width: min(83vw, 260px); box-shadow: 10px 0 40px #10241d60; }
  .sidebar.opened { display: flex; }
  .workspace-topbar { min-height: 51px; }
  .workspace-nav-toggle { display: inline-block; flex: none; color: var(--link); font-size: .79rem; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
  .breadcrumb > span { display: none; }
  .sidebar .brand { margin-bottom: 15px; }
  .workspace-content { padding-top: 20px; }
}
@media (max-width: 500px) {
  .task-board { grid-template-columns: 1fr; }
  .task-column { min-height: 0; }
  .workspace-stats { gap: 5px; }
  .workspace-stats > div { padding: 5px; gap: 4px; font-size: .69rem; }
  .workspace-stats strong { font-size: .95rem; }
  .workspace-filters { flex-wrap: wrap; }
  .workspace-toolbar { margin-top: 13px; }
  .task-list .task-card { grid-template-columns: minmax(0, 1fr) auto; }
  .task-list .task-kicker { grid-column: 1 / -1; justify-content: start; }
  .task-list .task-card-footer { grid-column: 2; }
}

.workspace { background: #f6f7ef; }
.sidebar { background: #20342a; }
.workspace-topbar { background: #fdfcf8; }
.workspace-stats > div, .task-card { background: #fffefa; }
.task-column { background: #edf1e7; }
.workspace-heading-actions { flex: 0 1 auto; max-width: 100%; min-width: 0; }
.workspace-heading-actions .button.outline { background: #fffefa; }
.update-dialog { width: min(570px, calc(100vw - 28px)); }
.update-dialog .dialog-heading .eyebrow { margin-bottom: 3px; }
#update-text { font-size: 1rem; line-height: 1.42; min-height: 166px; }
#update-ai-info { margin-block: 8px; color: var(--muted); font-size: .8rem; }
#update-ai-info summary { cursor: pointer; color: var(--link); font-weight: 700; }
#update-ai-info p { margin-top: 4px; }
.update-actions { justify-content: start; margin-top: 10px; }

@media (min-width: 671px) and (max-width: 870px) {
  .workspace-heading-actions { flex: 0 1 auto; }
  .workspace-heading { flex-wrap: wrap; }
  .workspace-heading-actions { justify-content: start; }
  .task-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 670px) {
  .workspace-filters input, .workspace-filters select, .task-card-footer select { font-size: 1rem; }
  .workspace-filters input { width: clamp(116px, 31vw, 175px); }
}
@media (max-width: 500px) {
  .workspace-heading-actions { row-gap: 5px; }
  .workspace-heading-actions .button.small { min-height: 34px; font-size: .78rem; padding-inline: 9px; }
}
