:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #20213b;
  background: #f7f7fc;
  font-synthesis: none;
  --accent: #5140bf;
  --muted: #5f607a;
  --border: #e2e2ef;
  --sidebar: 244px;
  --shadow: 0 2px 4px #29224a08, 0 10px 32px #29224a06;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: #4533a8; }
:focus-visible { outline: 2px solid #5140bf; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 10; padding: 8px 16px; background: white; }
.skip:focus { top: 12px; }
.glyph { display: inline-flex; justify-content: center; align-items: center; font-weight: 700; font-size: 1.15em; line-height: 1; font-family: "Segoe UI Symbol", "Segoe UI", sans-serif; }
.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; height: 100vh; background: #fff; border-right: 1px solid var(--border); padding: 27px 16px 18px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.4px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12px; margin-top: 5px; }
.mark { display: inline-grid; place-items: center; flex: 0 0 39px; width: 39px; height: 39px; border-radius: 12px 12px 12px 5px; background: #5240c1; color: white; font-weight: 900; font-size: 22px; box-shadow: 0 4px 10px #5140bf32; }
.sidebar-content { display: flex; flex: 1; min-height: 0; flex-direction: column; justify-content: space-between; }
nav { display: grid; gap: 4px; margin-top: 34px; overflow-y: auto; }
.nav-item { display: flex; gap: 12px; align-items: center; min-height: 43px; padding: 9px 11px; border: 0; border-radius: 9px; background: transparent; text-align: left; color: #4f506c; font-size: 14px; font-weight: 650; }
.nav-item:hover { background: #f4f3fb; }
.nav-item[aria-current="page"] { color: #413194; background: #eeebfc; font-weight: 800; }
.nav-item .glyph { min-width: 20px; font-size: 19px; }
.nav-count { margin-left: auto; font-size: 11px; padding: 3px 7px; background: #eeebfb; border-radius: 6px; }
.workspace-label { margin-top: auto; border-top: 1px solid var(--border); padding: 14px 7px 0; display: flex; gap: 9px; align-items: center; min-width: 0; }
.workspace-label > span:last-child { min-width: 0; }
.workspace-label strong, .workspace-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-label strong { font-size: 12px; }
.workspace-label small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.avatar { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; color: #4b37a6; background: #f0ecff; font-size: 12px; font-weight: 800; }
.signout { align-self: start; }
.menu-toggle { display: none !important; }
.workspace { min-width: 0; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 70px; padding: 12px clamp(20px, 3vw, 44px); background: white; border-bottom: 1px solid var(--border); }
.top-actions, .toolbar > div, .project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.location-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.location-label span { padding-inline: 6px; }
.location-label strong { color: #2b2942; }
#search { display: flex; gap: 6px; align-items: center; color: #676681; background: #f7f6fb; border: 1px solid var(--border); border-radius: 9px; padding-left: 10px; }
#search input { border: 0; background: transparent; min-height: 37px; width: min(21vw, 220px); font-size: 13px; padding: 6px 8px 6px 0; }
main#conteudo { max-width: 1540px; margin: 0 auto; padding: 27px clamp(20px, 3vw, 44px) 42px; }
main#conteudo:focus { outline: none; }
.heading { margin-bottom: 21px; }
.heading h1 { font-size: clamp(27px, 3.4vw, 34px); line-height: 1.12; letter-spacing: -.8px; }
.heading p { color: var(--muted); font-size: 14px; margin-top: 7px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 1px solid transparent; border-radius: 8px; background: transparent; padding: 7px 11px; font-size: 13px; font-weight: 700; line-height: 1.25; text-align: center; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #42309f; }
.secondary { background: white; border-color: #dddced; color: #43377b; }
.secondary:hover { background: #f4f2ff; }
.text-button { color: #4937ab; }
.text-button:hover { background: #f1edff; }
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; min-height: 174px; padding: 24px 27px; border-radius: 15px; background: linear-gradient(112deg, #372879 0%, #5140b9 64%, #5b46c9 100%); color: white; }
.hero > div:first-child, .hero > button { position: relative; z-index: 1; }
.hero-decoration { position: absolute; width: 290px; height: 290px; border: 1px solid #d6cfff37; border-radius: 43%; top: -106px; right: 4%; transform: rotate(33deg); box-shadow: 0 0 0 19px #dfd5ff1b, 0 0 0 42px #dfd5ff1a, 0 0 0 67px #dfd5ff10; }
.hero-kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.6px; color: #f3edff; }
.hero h2 { font-size: clamp(23px, 3.2vw, 34px); letter-spacing: -.75px; line-height: 1.18; margin: 7px 0 8px; }
.hero p:last-child { font-size: 14px; color: #f1ebff; }
.hero-button { background: #fff; color: #41328f; white-space: nowrap; box-shadow: 0 3px 8px #28185624; }
.hero-button:hover { background: #eae4ff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 17px 0; }
.metric { display: flex; align-items: center; text-align: left; gap: 10px; padding: 12px 13px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); min-height: 77px; }
.metric:hover { border-color: #a497df; }
.metric strong, .metric > span:last-child > span { display: block; }
.metric strong { font-size: 21px; line-height: 1.05; }
.metric > span:last-child > span { white-space: normal; color: var(--muted); font-size: 12px; margin-top: 4px; font-weight: 650; }
.metric-icon, .mini { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 9px; }
.mini { width: 30px; height: 30px; border-radius: 8px; }
.mark-inbox { background: #eeebfb; color: #5038b2; }
.mark-tasks { background: #e4f4ee; color: #206044; }
.mark-projects { background: #e7effe; color: #264f9e; }
.mark-agenda { background: #fff0dc; color: #895113; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 15px; align-items: start; }
.panel, .project-card, .note-card, .lane, .day, .empty { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 12px 14px; min-height: 61px; border-bottom: 1px solid #ececf5; }
.panel-head h2 { margin-right: auto; font-size: 17px; }
.rows { padding: 0; margin: 0; list-style: none; }
.row { display: flex; align-items: center; padding: 11px 14px; gap: 9px; min-height: 54px; overflow-wrap: anywhere; }
.row + .row { border-top: 1px solid #efeff7; }
.row-text { flex: 1; min-width: 0; }
.row-title { display: block; background: none; border: 0; padding: 2px 0; font-size: 14px; font-weight: 750; line-height: 1.35; text-align: left; text-wrap: pretty; overflow-wrap: anywhere; }
button.row-title:hover { color: #4937ab; text-decoration: underline; }
.meta { display: block; font-size: 12px; color: var(--muted); }
.badge { display: inline-block; padding: 4px 7px; border-radius: 6px; background: #f0eef7; color: #4c4664; line-height: 1.15; font-size: 11px; font-weight: 750; }
.badge.done { background: #e4f4ee; color: #206044; }
.badge.waiting { background: #fff0dc; color: #7e480f; }
.badge.doing { background: #e7effe; color: #274a96; }
.badge.late { background: #ffe8ec; color: #8c2d45; }
.row-flags { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
.check-button { color: #5943ba; padding: 3px; min-width: 30px; min-height: 30px; font-size: 20px; }
.check-button:hover { background: #efebff; }
.check-button.checked { color: #206044; }
.empty { padding: 19px; color: var(--muted); font-size: 14px; }
.empty p { margin-top: 4px; }
.panel .empty, .lane .empty { padding: 15px; border: 0; box-shadow: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar h2 { font-size: 19px; }
.board-toolbar { margin-top: 21px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.project-card, .note-card { padding: 15px; overflow-wrap: anywhere; }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 9px; }
.project-card h3, .note-card h3 { font-size: 16px; }
.project-card p, .note-card p { margin: 6px 0; color: var(--muted); font-size: 14px; white-space: pre-wrap; }
.project-actions { margin-top: 10px; }
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lane { padding: 10px; background: #f0eff8; }
.lane > h3 { display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 14px; margin-bottom: 8px; }
.lane .row, .lane .empty { background: white; border: 1px solid #e3e1f1; border-radius: 8px; padding: 8px 3px; overflow-wrap: anywhere; }
.lane .row + .row { margin-top: 6px; }
.lane .empty { padding: 8px; font-size: 12px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 155px; overflow-wrap: anywhere; }
.day.current-day { border-color: #7766d7; }
.day h3 { display: flex; align-items: center; gap: 4px; justify-content: space-between; padding: 7px 8px; border-bottom: 1px solid var(--border); font-size: 12px; text-transform: capitalize; }
.day h3 strong { font-size: 17px; }
.day h4 { padding: 5px 7px 0; font-size: 11px; color: var(--muted); }
.day .row { padding: 6px; gap: 4px; align-items: start; }
.day .row-title { font-size: 12px; }
.day .mini { display: none; }
.day-due { padding: 0; margin: 0; list-style: none; }
.day-due .button { text-align: left; padding: 5px 6px; font-size: 12px; overflow-wrap: anywhere; }
.day-add { font-size: 17px; color: #4f3ab2; width: 100%; }
.login-panel, .startup { max-width: min(400px, calc(100% - 30px)); margin: 12vh auto; background: white; border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.login-panel .brand { padding: 0; margin-bottom: 23px; }
.login-panel h1, .startup h1 { margin: 8px 0; }
.login-panel form { display: grid; gap: 13px; margin-top: 17px; }
dialog { width: min(540px, calc(100% - 24px)); padding: 0; margin: auto; border: 1px solid #e2def2; border-radius: 15px; color: inherit; box-shadow: 0 18px 70px #21174352; max-height: calc(100dvh - 28px); }
dialog::backdrop { background: #251b52a0; }
.dialog-head { padding: 13px 17px; position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; background: #fff; border-bottom: 1px solid var(--border); z-index: 1; }
.dialog-head h2 { font-size: 20px; }
.icon-button { min-height: 30px; font-size: 20px; color: var(--muted); }
.dialog-fields { display: grid; gap: 12px; padding: 14px 17px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 12px 17px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: white; }
label { display: grid; gap: 5px; color: #3a3750; font-size: 13px; font-weight: 700; min-width: 0; }
input, textarea, select { width: 100%; min-width: 0; background: #fff; color: #24213c; border: 1px solid #bdbbd3; border-radius: 7px; padding: 7px 8px; min-height: 38px; }
textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-label { display: flex; align-items: center; }
.check-label input { width: 18px; height: 18px; min-height: auto; accent-color: var(--accent); }
fieldset { border: 1px solid var(--border); border-radius: 7px; margin: 0; padding: 9px; min-width: 0; }
legend { font-weight: 700; font-size: 13px; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.captured { background: #f2effc; border: 1px solid #e2dbf8; border-radius: 8px; padding: 10px 12px; }
.captured span { font-size: 12px; font-weight: 800; color: #513f94; }
.captured p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; font-size: 14px; }
.form-error { color: #8e233e; font-size: 14px; }
.notice { position: fixed; z-index: 2; bottom: 18px; right: 18px; padding: 10px 14px; border-radius: 8px; max-width: min(430px, calc(100vw - 36px)); background: #332665; color: #fff; font-size: 14px; box-shadow: 0 4px 24px #28164a3a; }
@media (max-width: 1140px) { :root { --sidebar: 206px; } .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 840px) { :root { --sidebar: 173px; } .metrics, .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dashboard-grid { grid-template-columns: 1fr; } .location-label { display: none; } .top { justify-content: end; } #search input { width: 135px; } }
@media (max-width: 640px) {
  .layout { display: block; }
  .sidebar { position: relative; height: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px 13px; }
  .brand { padding: 0; }
  .brand .mark { flex-basis: 33px; width: 33px; height: 33px; }
  .menu-toggle { display: inline-flex !important; }
  .sidebar-content { flex: 0 0 100%; }
  .menu-toggle[aria-expanded="false"] + .sidebar-content { display: none; }
  nav { margin: 10px 0 7px; grid-template-columns: 1fr 1fr; }
  .top { min-height: 57px; padding: 7px 13px; position: sticky; top: 0; z-index: 2; }
  .top-actions { flex: 1; flex-wrap: nowrap; }
  #search, #search input { flex: 1; min-width: 0; width: 100%; }
  main#conteudo { padding: 15px 13px 30px; }
  .hero { padding: 17px; align-items: flex-start; flex-direction: column; }
  .metric { min-height: 64px; padding: 8px; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day { min-height: 112px; }
  .row { padding-inline: 9px; }
}
@media (max-width: 370px) {
  .field-grid, .board { grid-template-columns: 1fr; }
  .row .badge { max-width: 70px; }
}

.move-card { min-height: 28px; padding: 3px 5px; font-size: 11px; margin-top: 2px; }
