:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #203b40;
  background: #f5f6f3;
  font-synthesis: none;
  --ink: #132e35;
  --teal: #167966;
  --muted: #5f716a;
  --line: #e1e7e2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #58b5a2;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--ink);
  min-height: 42px;
  padding: 9px 14px;
  font-weight: 600;
}
button:hover {
  background: #edf4ef;
}
a {
  color: var(--teal);
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.primary {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.primary:hover {
  background: #0b6050;
}
.shell {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: #c3d3d4;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 10px 33px;
  color: white;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.7px;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand small {
  display: block;
  color: #7ba3a7;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 4px;
  text-transform: uppercase;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #91a6a9;
  text-transform: uppercase;
  margin: 24px 12px 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  color: #c5d3d4;
  width: 100%;
  padding: 12px;
  margin: 3px 0;
  font-size: 14px;
  font-weight: 500;
}
.nav:hover {
  background: #20414a;
}
.nav.active {
  background: #28524f;
  color: #d5f5e6;
}
.nav .count {
  margin-left: auto;
  font-size: 11px;
  background: #ffffff16;
  border-radius: 5px;
  padding: 2px 6px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #78c8b7;
  display: inline-block;
  margin: 0 6px;
}
.dot.startup {
  background: #e4b265;
}
.dot.ceo {
  background: #a6a0e1;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-foot {
  font-size: 11px;
  line-height: 1.8;
  color: #8ea8ac;
  padding: 18px 12px 0;
  border-top: 1px solid #345058;
  margin-top: 18px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  background: #ffffffbb;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}
.breadcrumb {
  font-size: 13px;
  color: #5f716a;
}
.breadcrumb b {
  color: #29494e;
  font-weight: 500;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  height: 33px;
  width: 33px;
  border-radius: 50%;
  background: #e4ebe3;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5f716a;
}
.search input {
  background: transparent;
  border: 0;
  width: 185px;
  font-size: 13px;
  min-height: 40px;
}
.content {
  padding: 36px 40px;
  max-width: 1550px;
  margin: auto;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.date-meta {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.conflict-comparison {
  padding: 16px;
  background: #f5f7f3;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.conflict-comparison dl {
  margin: 0;
}
.conflict-comparison dt {
  margin-top: 12px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}
.conflict-comparison dd {
  margin: 4px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
h1 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  line-height: 1.65;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.heading .primary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 19px 21px;
  border-radius: 12px;
}
.stat .label {
  color: #5f716a;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat strong {
  display: block;
  font-size: 27px;
  margin: 14px 0 3px;
  font-weight: 600;
}
.stat small {
  font-size: 11px;
  color: #5f716a;
}
.stat.alert strong {
  color: #b75a39;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.panel-head {
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf0ec;
}
.panel-head p {
  font-size: 12px;
  margin: 6px 0 0;
  color: var(--muted);
}
.badge {
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 650;
  background: #edf3ee;
  color: #526d60;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}
.focus-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px;
  min-height: 143px;
  background: #fbfcfa;
  position: relative;
}
.focus-card h3 {
  margin: 13px 0 11px;
  line-height: 1.5;
}
.focus-number {
  font-size: 11px;
  color: #53816f;
  letter-spacing: 1px;
}
.focus-empty {
  border-style: dashed;
  text-align: center;
  color: #5f716a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  gap: 10px;
  background: #fbfcfa;
  width: 100%;
  font-weight: 400;
}
.focus-empty svg {
  color: #b1c1b7;
}
.focus-card button.text {
  font-size: 11px;
  padding: 0;
  min-height: 27px;
  float: right;
}
.text {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 4px;
  font-weight: 500;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: 24px;
}
.task-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 21px;
  border-bottom: 1px solid #edf0ec;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-main {
  flex: 1;
  min-width: 0;
}
.task-title {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 28px;
  font-size: 13px;
  font-weight: 550;
  text-align: left;
  overflow-wrap: anywhere;
}
.task-title:hover {
  text-decoration: underline;
  background: transparent;
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #5f716a;
  font-size: 11px;
  margin-top: 5px;
  align-items: center;
}
.task-meta .area {
  color: #477665;
}
.task-meta .overdue {
  color: #b65136;
}
.check-btn {
  width: 23px;
  height: 23px;
  min-height: 23px;
  border: 1.5px solid #cbd6cf;
  border-radius: 7px;
  padding: 0;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.check-btn.done {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.check-btn svg {
  width: 15px;
  height: 15px;
}
.task-row.done .task-title {
  text-decoration: line-through;
  color: #5f716a;
}
.status {
  font-size: 10px;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
  background: #f0f2ef;
  color: #5f716a;
}
.status.doing {
  background: #e5f2ef;
  color: #257764;
}
.status.waiting {
  background: #fff2da;
  color: #805c21;
}
.status.done {
  background: #edf0f9;
  color: #5b648e;
}
.empty {
  padding: 35px 22px;
  text-align: center;
  color: #5f716a;
  font-size: 13px;
}
.empty svg {
  width: 31px;
  height: 31px;
  margin-bottom: 10px;
  color: #8da99c;
}
.empty strong {
  display: block;
  color: #50695f;
  font-size: 14px;
  margin-bottom: 7px;
}
.empty p {
  margin: 0 0 13px;
  font-size: 12px;
}
.week {
  padding: 19px 22px;
}
.week-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 10px;
  margin-bottom: 9px;
}
.bar {
  height: 6px;
  border-radius: 4px;
  background: #f0f3ef;
  overflow: hidden;
  margin-bottom: 19px;
}
.bar span {
  display: block;
  background: #77ad98;
  height: 100%;
  border-radius: 4px;
}
.week-note {
  font-size: 11px;
  color: #5f716a;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters select {
  width: auto;
  min-width: 130px;
  font-size: 12px;
  background: #fff;
}
.filters .segmented {
  margin-left: auto;
  display: flex;
  gap: 3px;
}
.segmented button {
  font-size: 12px;
  min-height: 38px;
}
.segmented button.active {
  background: #e0eee6;
  border-color: #adcbb8;
  color: #27684d;
}
.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
}
.kanban-column {
  background: #edf0eb;
  border-radius: 10px;
  padding: 13px;
  min-height: 300px;
}
.kanban-column h2 {
  font-size: 12px;
  margin: 4px 0 18px;
  display: flex;
  justify-content: space-between;
}
.kanban-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 10px;
}
.kanban-card select {
  font-size: 11px;
  margin-top: 13px;
  min-height: 36px;
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  min-height: 190px;
}
.project-card h2 {
  margin: 18px 0 8px;
}
.project-card p {
  font-size: 12px;
  color: #5f716a;
  white-space: pre-line;
}
.project-card button {
  margin-top: 10px;
  font-size: 12px;
}
.notice {
  font-size: 12px;
  line-height: 1.7;
  background: #fff4df;
  border: 1px solid #ebdcb8;
  border-radius: 8px;
  padding: 13px 17px;
  margin-bottom: 20px;
  color: #84662f;
}
.settings {
  padding: 23px;
  max-width: 760px;
}
.settings p {
  font-size: 13px;
  color: #5f716a;
}
.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.error {
  color: #ae4636;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-line;
}
.loading {
  padding: 50px;
  text-align: center;
  color: #5f716a;
}
.mobile-menu {
  display: none;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--ink);
  color: #fff;
  padding: 65px max(40px, 10%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-story .brand {
  padding: 0;
  margin-bottom: 80px;
}
.login-story h1 {
  font-size: 47px;
  line-height: 1.2;
  letter-spacing: -2px;
  max-width: 460px;
}
.login-story p {
  color: #a4c0bd;
  font-size: 16px;
  max-width: 380px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
}
.login-form {
  width: 360px;
  max-width: 100%;
}
.login-form h2 {
  font-size: 25px;
  margin-bottom: 12px;
}
.login-form p {
  font-size: 13px;
  color: #5f716a;
}
.login-form .primary {
  width: 100%;
  margin-top: 22px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #526b62;
  margin-bottom: 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d5dfd7;
  border-radius: 7px;
  background: #fff;
  padding: 10px 11px;
  color: #24473a;
  min-height: 42px;
}
textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 90px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}
dialog {
  padding: 0;
  border: 0;
  border-radius: 15px;
  width: 660px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  box-shadow: 0 20px 100px #092c3440;
}
dialog::backdrop {
  background: #102d3566;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 25px;
  border-bottom: 1px solid var(--line);
}
.dialog-body {
  padding: 23px 25px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field.full {
  grid-column: 1/-1;
}
.dialog-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 18px 25px;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.dialog-footer div {
  display: flex;
  gap: 10px;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  min-height: 32px;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0;
}
.checklist-item input[type="text"] {
  flex: 1;
}
.checklist-item button {
  padding: 8px;
  min-width: 40px;
}
.form-note {
  font-size: 11px;
  color: #5f716a;
  line-height: 1.5;
  margin-top: 6px;
}
.danger {
  color: #a24b36;
}
.close {
  padding: 6px 10px;
  min-height: 36px;
}
.form-error {
  margin-top: 15px;
}
.refresh-draft {
  margin-top: 8px;
  font-size: 12px;
}
.import-label {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 14px;
  margin: 0;
  cursor: pointer;
  background: #fff;
  min-height: 42px;
}
.import-label input {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: #183f36;
  color: white;
  border-radius: 10px;
  box-shadow: 0 7px 24px #132e3533;
  z-index: 10;
  font-size: 13px;
  max-width: 90vw;
  display: none;
}
#toast.visible {
  display: block;
}
.muted {
  color: var(--muted);
}
.footnote {
  text-align: center;
  font-size: 11px;
  color: #5f716a;
  margin: 12px 0;
}
.archive-tag {
  font-size: 11px;
  color: #927651;
}
.spacer {
  flex: 1;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .content {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search input {
    width: 130px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
    position: fixed;
    z-index: 5;
    width: 260px;
    inset: 0 auto 0 0;
    box-shadow: 100px 0 0 100vw #0c242d66;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 0;
    background: transparent;
  }
  .topbar {
    height: 66px;
    padding: 0 16px;
    gap: 8px;
  }
  .breadcrumb {
    display: none;
  }
  .search input {
    width: 150px;
  }
  .top-actions {
    gap: 2px;
  }
  .avatar {
    display: none;
  }
  .content {
    padding: 25px 17px;
  }
  .heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
  }
  .heading .primary {
    font-size: 12px;
    padding: 10px;
    white-space: nowrap;
  }
  .heading h1 {
    font-size: 27px;
  }
  .subtitle {
    font-size: 12px;
    max-width: 230px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 25px;
    margin-top: 10px;
  }
  .stat .label {
    font-size: 11px;
  }
  .stat .label svg {
    width: 16px;
  }
  .focus-grid {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 10px;
  }
  .focus-card {
    min-height: 100px;
  }
  .focus-empty {
    min-height: 82px;
    flex-direction: row;
  }
  .panel-head {
    padding: 18px 16px;
  }
  .panel-head h2 {
    font-size: 15px;
  }
  .task-row {
    padding: 15px 14px;
    gap: 10px;
  }
  .task-row > .status {
    display: none;
  }
  .task-title {
    font-size: 13px;
    min-height: 44px;
  }
  .check-btn {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .focus-card button.text,
  .kanban-card select {
    min-height: 44px;
  }
  .columns {
    gap: 0;
  }
  .filters {
    gap: 8px;
  }
  .filters select {
    flex: 1;
    min-width: 125px;
  }
  .filters .segmented {
    width: 100%;
    margin: 0;
  }
  .kanban {
    grid-template-columns: 1fr;
  }
  .kanban-column {
    min-height: 100px;
  }
  .projects {
    grid-template-columns: 1fr;
  }
  .login-wrap {
    display: block;
  }
  .login-story {
    padding: 30px;
  }
  .login-story .brand {
    margin-bottom: 25px;
  }
  .login-story h1 {
    font-size: 32px;
  }
  .login-story p {
    font-size: 13px;
    margin-bottom: 0;
  }
  .login-form-wrap {
    padding: 35px 25px;
  }
  .form-grid {
    gap: 14px;
  }
  .dialog-body {
    padding: 20px 17px;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-footer {
    padding: 14px 17px;
    flex-wrap: wrap;
  }
  .dialog-footer button {
    font-size: 12px;
  }
  .field.mobile-full {
    grid-column: 1/-1;
  }
  button {
    min-height: 44px;
  }
  dialog {
    max-height: 94dvh;
    max-width: calc(100vw - 16px);
  }
  .settings {
    padding: 19px;
  }
  .top-actions > .text {
    font-size: 0;
  }
  .top-actions > .text svg {
    font-size: initial;
  }
  .week {
    padding: 19px 17px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
