:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #24312e;
  background: #f5f7f8;
  font-size: 16px;
  font-synthesis: none;
  --ink: #203a33;
  --muted: #74817c;
  --green: #d6efdf;
  --line: #e6eae8;
  --radius: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #70b698;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #70b698;
  outline-offset: 1px;
}
button {
  border: 0;
  background: none;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d8e1dc;
  border-radius: 9px;
  background: white;
  padding: 12px 13px;
  color: #24312e;
  font-size: 1rem;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%2362756b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
}
textarea {
  line-height: 1.6;
  resize: vertical;
}
label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 18px 0 8px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -1.7px;
  line-height: 1.2;
}
h2 {
  font-size: 1.15rem;
  letter-spacing: -0.4px;
  font-weight: 600;
}
h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
.layout {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  background: #172b29;
  color: #dfe9e4;
  width: 256px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 38px 23px 25px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.8px;
  margin-bottom: 61px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #b8e9cf;
  color: #173c35;
  font-size: 1.6rem;
  font-weight: 650;
  transform: rotate(-6deg);
}
.brand-sub {
  display: block;
  letter-spacing: 1.4px;
  font-size: 0.6rem;
  color: #8ca69b;
  margin-top: 5px;
  font-weight: 500;
}
.sidebar-label {
  font-size: 0.65rem;
  letter-spacing: 1.6px;
  color: #819b90;
  font-weight: 600;
  padding: 0 13px;
  margin-bottom: 17px;
}
.area {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border-radius: 9px;
  color: #b1c3bb;
  font-size: 0.9rem;
  padding: 10px 13px;
  margin-bottom: 6px;
}
.area.active {
  background: #2d443d;
  color: #edfaf0;
}
.area:hover {
  background: #263d36;
}
.area-symbol {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}
.area-symbol.work {
  color: #b9dcce;
  background: #405d50;
}
.area-symbol.personal {
  color: #d6cfe8;
  background: #4a4858;
}
.nav-icon {
  font-size: 1.5rem;
  line-height: 1;
  width: 22px;
}
.nav-count {
  margin-left: auto;
  font-size: 0.75rem;
  background: #ffffff0c;
  padding: 3px 7px;
  border-radius: 5px;
  color: #a9c4b4;
}
.sidebar-note {
  margin: 65px 11px 20px;
}
.small-spark {
  color: #a8d5b9;
  font-size: 2.4rem;
  display: block;
  margin-bottom: 14px;
}
.sidebar-note strong {
  font-weight: 500;
  font-size: 0.85rem;
}
.sidebar-note p {
  font-size: 0.8rem;
  color: #8aa699;
  margin-top: 9px;
}
.sidebar-note .text-button {
  color: #bce9cc;
  font-size: 0.8rem;
  margin-top: 14px;
  padding: 0;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 45px 10px 0;
}
.sidebar-link {
  display: flex;
  gap: 11px;
  align-items: center;
  text-align: left;
  padding: 12px 0;
  color: #afc3b7;
  font-size: 0.83rem;
  width: 100%;
}
.private-label {
  display: block;
  border-top: 1px solid #34473f;
  margin-top: 19px;
  padding-top: 24px;
  font-size: 0.7rem;
  color: #789786;
  letter-spacing: 0.3px;
}
.main {
  margin-left: 256px;
  padding: 0 56px;
  flex: 1;
  min-width: 0;
  max-width: 1800px;
}
.topbar {
  height: 91px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
.sync-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  padding: 8px;
  border-radius: 6px;
}
.sync-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #76a78b;
  display: inline-block;
}
.sync-dot.pending {
  background: #ce9b49;
}
.sync-dot.error {
  background: #c87262;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 47px 0 33px;
}
.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: #7d8e83;
  margin-bottom: 12px;
  display: block;
}
.page-heading p {
  color: #79877f;
  font-size: 0.88rem;
  margin-top: 12px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 13px 19px;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  min-height: 44px;
}
.button.primary {
  background: #224d3d;
  color: #f5fff8;
  box-shadow: 0 2px 3px #1934270f;
}
.button.primary:hover {
  background: #173d2e;
}
.button.primary span {
  font-size: 1.2rem;
  font-weight: 400;
}
.button.secondary {
  background: #fff;
  border: 1px solid #dce4de;
  color: #40584a;
}
.button.secondary:hover {
  background: #f0f6f2;
}
.button.small {
  font-size: 0.8rem;
  padding: 9px 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.stat {
  background: white;
  border: 1px solid #e5eae7;
  border-radius: var(--radius);
  padding: 22px 25px 21px;
  text-align: left;
  box-shadow: 0 2px 3px #1c2d2502;
}
.stat:hover {
  border-color: #b0c9b9;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #728176;
  font-size: 0.8rem;
}
.stat-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  font-size: 0.95rem;
}
.mint {
  background: #e8f5ed;
  color: #629c7e;
}
.orange {
  background: #fff0df;
  color: #c88c54;
}
.lavender {
  background: #f0ecf8;
  color: #9c8bb7;
}
.stat-number {
  display: block;
  font-size: 2.5rem;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-top: 17px;
  font-weight: 550;
}
.stat-detail {
  display: block;
  color: #9aa59d;
  font-size: 0.73rem;
  margin-top: 6px;
}
.task-section {
  background: #fff;
  border: 1px solid #e2e8e4;
  border-radius: var(--radius);
  overflow: hidden;
}
.section-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pill {
  font-size: 0.7rem;
  background: #eef2ef;
  color: #7e9284;
  border-radius: 6px;
  min-width: 24px;
  padding: 3px 7px;
  text-align: center;
}
.view-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #f4f6f4;
  padding: 3px;
  border-radius: 8px;
}
.view-tabs button {
  padding: 8px 12px;
  font-size: 0.75rem;
  color: #88958b;
  border-radius: 6px;
}
.view-tabs button.selected {
  background: #fff;
  color: #395441;
  box-shadow: 0 1px 3px #102d1212;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #edf0ed;
  padding: 0 26px 18px;
}
.filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.filters button {
  border-radius: 6px;
  font-size: 0.75rem;
  padding: 8px 11px;
  color: #8b978f;
}
.filters button.selected {
  background: #eaf3ed;
  color: #3b684d;
  font-weight: 600;
}
.search {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  color: #85938a;
}
.search span {
  font-size: 1.4rem;
}
.search input {
  width: 155px;
  border: 0;
  padding: 7px 0;
  font-size: 0.75rem;
  background: transparent;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 21px 27px;
  border-bottom: 1px solid #eef1ee;
  position: relative;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row:hover {
  background: #fbfcfb;
}
.task-row.pending-row {
  background: #fffef7;
}
.complete-button {
  width: 21px;
  height: 21px;
  min-width: 21px;
  flex-shrink: 0;
  border: 1.5px solid #cbd8ce;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 0;
  color: #538868;
  font-size: 0.85rem;
}
.complete-button.done {
  background: #e7f3e9;
  border-color: #b7d9be;
}
.task-main {
  flex: 1;
  min-width: 0;
}
.task-title-button {
  font-size: 0.925rem;
  font-weight: 550;
  padding: 0;
  line-height: 1.6;
  text-align: left;
  display: block;
  overflow-wrap: anywhere;
}
.task-title-button:hover {
  color: #2e8253;
}
.task-title-button.done {
  text-decoration: line-through;
  color: #8b9b90;
}
.task-preview {
  font-size: 0.77rem;
  line-height: 1.6;
  color: #89968c;
  margin-top: 4px;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.task-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 11px;
  font-size: 0.65rem;
  color: #8f9b92;
}
.tag {
  padding: 4px 7px;
  border-radius: 5px;
  background: #f0f3f1;
  color: #809186;
  font-size: 0.65rem;
  display: inline-block;
}
.tag.work {
  background: #edf2ee;
  color: #65816d;
}
.tag.personal {
  background: #f0edf7;
  color: #9682a6;
}
.tag.high {
  background: #fff0e7;
  color: #ba7750;
}
.tag.low {
  background: #f1f3f5;
  color: #8b96a1;
}
.tag.waiting {
  background: #f2edf8;
  color: #9980ae;
}
.tag.pending-tag {
  background: #fff4d9;
  color: #aa883b;
}
.tag.overdue {
  color: #c07365;
  background: #fbefec;
}
.task-date {
  color: #92a197;
}
.task-actions {
  padding: 3px 0 0 9px;
}
.task-actions button {
  font-size: 1.2rem;
  color: #91a197;
}
.empty {
  text-align: center;
  padding: 52px 24px 56px;
}
.empty-art {
  height: 107px;
  display: flex;
  justify-content: center;
  position: relative;
}
.empty-paper {
  width: 70px;
  height: 83px;
  border: 1px solid #cdded1;
  border-radius: 9px;
  background: #f6fbf7;
  transform: rotate(-8deg);
  padding: 22px 14px;
  position: relative;
  box-shadow: 7px 8px 0 #f0f4f1;
}
.empty-paper span {
  display: block;
  height: 3px;
  background: #d6e6d9;
  border-radius: 5px;
  margin-bottom: 9px;
  width: 37px;
}
.empty-paper span:last-of-type {
  width: 27px;
}
.empty-paper b {
  position: absolute;
  right: -12px;
  bottom: 9px;
  background: #d3ead8;
  border: 4px solid white;
  color: #70a07b;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-art i {
  position: absolute;
  font-size: 2rem;
  color: #b9d7c0;
  margin-left: 125px;
  margin-top: 0;
  font-style: normal;
}
.empty h3 {
  font-weight: 550;
  color: #5b7261;
  font-size: 1rem;
}
.empty p {
  color: #99a59b;
  font-size: 0.8rem;
  max-width: 360px;
  margin: 10px auto 20px;
}
.empty .button {
  font-size: 0.75rem;
  padding: 10px 14px;
}
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  border-top: 1px solid #edf1ed;
  font-size: 0.67rem;
  color: #a0ada2;
}
.text-button {
  color: #4f795e;
  padding: 5px 0;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
}
.page-footer {
  padding: 27px 0 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0ada4;
  font-size: 0.55rem;
  letter-spacing: 1.2px;
}
.page-footer > span:last-child {
  font-size: 0.8rem;
  letter-spacing: -0.3px;
  font-weight: 600;
}
.footer-star {
  font-size: 1.25rem;
  margin-left: 10px;
  color: #91b49c;
}
.notice {
  margin-top: 18px;
  border: 1px solid #dfdfbd;
  color: #76632e;
  background: #fefcf0;
  border-radius: 9px;
  padding: 13px 16px;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: #efccc2;
  color: #964d3b;
  background: #fff5f1;
}
.outbox-panel {
  margin-top: 22px;
  background: #fffdf4;
  border: 1px solid #eadfb4;
  border-radius: 12px;
  padding: 0 22px 20px;
}
.outbox-panel .section-top {
  padding: 20px 0 12px;
}
.outbox-panel p {
  font-size: 0.8rem;
  color: #99834e;
}
.queue-item {
  padding: 15px 0;
  border-bottom: 1px solid #ece6d1;
  font-size: 0.85rem;
}
.queue-item p {
  margin-top: 5px;
}
.queue-item .button-row {
  margin-top: 9px;
}
.note-card {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
}
.note-card p {
  white-space: pre-wrap;
  font-size: 0.85rem;
  color: #6a7d6f;
  max-height: 230px;
  overflow: auto;
  margin-top: 12px;
  overflow-wrap: anywhere;
}
.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.note-header time {
  font-size: 0.75rem;
  color: #8e9f92;
}
.note-card .text-button {
  margin-top: 14px;
}
dialog {
  border: 1px solid #dfe7e0;
  border-radius: 18px;
  padding: 28px 32px;
  width: 590px;
  max-width: calc(100% - 28px);
  max-height: 90vh;
  overflow-y: auto;
  color: #2b4033;
  box-shadow: 0 20px 100px #11271933;
}
dialog::backdrop {
  background: #142c2566;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 15px;
}
.dialog-header h2 {
  font-size: 1.5rem;
  letter-spacing: -0.7px;
}
.dialog-header .eyebrow {
  margin-bottom: 7px;
}
.close {
  font-size: 1.6rem;
  color: #91a597;
  padding: 0 5px;
  line-height: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 25px;
  border-top: 1px solid #e7ece7;
  padding-top: 22px;
}
.draft-hint {
  font-size: 0.75rem;
  color: #8e9f91;
  line-height: 1.65;
  margin-top: 10px;
}
.error {
  color: #bb5e44;
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.optional {
  font-weight: 400;
  color: #a5b1a6;
  margin-left: 5px;
}
.original-note {
  background: #f4f7f4;
  border: 1px solid #e5ece4;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 20px;
  font-size: 0.8rem;
  line-height: 1.65;
}
.original-note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 250px;
  overflow: auto;
  margin-top: 10px;
}
.original-note summary {
  cursor: pointer;
}
.settings-section {
  padding: 19px 0;
  border-top: 1px solid var(--line);
}
.settings-section h3 {
  margin-bottom: 10px;
}
.settings-section p {
  font-size: 0.84rem;
  color: #839187;
  margin-bottom: 13px;
}
.settings-section .draft-hint {
  font-size: 0.75rem;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.code-block {
  display: block;
  word-break: break-all;
  background: #f0f4f1;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.78rem;
}
.review-row {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 12px 0;
}
.review-row input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.review-row input[type="text"] {
  font-size: 0.875rem;
}
.login-shell {
  min-height: 100vh;
  background: #172b29;
  color: #dceae0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px 30px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.5rem;
  font-weight: 600;
}
.login-card {
  width: 450px;
  max-width: 100%;
  margin: 65px auto 50px;
  background: #fdfefd;
  color: #304638;
  border-radius: 20px;
  padding: 40px;
}
.login-card h1 {
  font-size: 2.15rem;
  letter-spacing: -1px;
  margin: 16px 0;
}
.login-card > p:not(.error) {
  font-size: 0.875rem;
  color: #88988c;
  margin-bottom: 20px;
}
.login-card .button {
  width: 100%;
  margin-top: 18px;
}
.login-card .check-label {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: #849589;
  font-weight: 400;
  align-items: center;
}
.check-label input {
  width: 17px;
  height: 17px;
}
.login-foot {
  font-size: 0.75rem;
  color: #7f9a8a;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1500px) {
  .main {
    padding: 0 80px;
  }
  .page-heading {
    padding-top: 56px;
  }
  .stats {
    gap: 25px;
  }
  .stat {
    padding: 28px;
  }
  .task-row {
    padding: 24px 29px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 218px;
    padding: 32px 16px;
  }
  .main {
    margin-left: 218px;
    padding: 0 30px;
  }
  .brand {
    font-size: 1.4rem;
  }
  .stat {
    padding: 19px;
  }
  .stat-label {
    font-size: 0.73rem;
  }
  .stat-detail {
    font-size: 0.65rem;
  }
  .filter-bar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .view-tabs button {
    padding: 8px;
  }
  .page-heading h1 {
    font-size: 2.1rem;
  }
}
@media (max-width: 760px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 20px 0;
    display: block;
  }
  .brand {
    margin: 0;
    font-size: 1.25rem;
    gap: 9px;
  }
  .brand-mark {
    height: 31px;
    width: 31px;
    font-size: 1.35rem;
    border-radius: 9px;
  }
  .brand-sub {
    font-size: 0.5rem;
    margin-top: 3px;
  }
  .sidebar-label,
  .sidebar-note,
  .sidebar-bottom {
    display: none;
  }
  .areas {
    display: flex;
    gap: 6px;
    margin-top: 23px;
    padding-bottom: 12px;
  }
  .area {
    width: auto;
    flex: 1;
    justify-content: center;
    padding: 9px 7px;
    min-height: 42px;
    margin: 0;
    font-size: 0.75rem;
    gap: 7px;
  }
  .area .nav-count {
    display: none;
  }
  .area-symbol {
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
  }
  .nav-icon {
    width: 18px;
    font-size: 1.2rem;
  }
  .main {
    margin: 0;
    padding: 0 19px;
  }
  .topbar {
    height: 64px;
    font-size: 0.7rem;
  }
  .sync-status {
    font-size: 0.65rem;
    padding: 5px;
  }
  .page-heading {
    padding: 29px 0 25px;
    gap: 12px;
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 1.8rem;
    letter-spacing: -1px;
  }
  .page-heading p {
    font-size: 0.76rem;
    max-width: 240px;
    line-height: 1.6;
    margin-top: 8px;
  }
  .eyebrow {
    font-size: 0.55rem;
    letter-spacing: 1.4px;
    margin-bottom: 9px;
  }
  .page-heading > .button {
    font-size: 0.72rem;
    padding: 10px 12px;
    min-height: 40px;
    margin-top: 22px;
  }
  .stats {
    gap: 8px;
    margin-bottom: 24px;
  }
  .stat {
    padding: 15px 12px;
    border-radius: 12px;
  }
  .stat-label {
    font-size: 0.65rem;
    gap: 5px;
    line-height: 1.6;
    align-items: flex-start;
  }
  .stat-icon {
    width: 18px;
    height: 18px;
    font-size: 0.75rem;
    flex-shrink: 0;
  }
  .stat-number {
    font-size: 1.9rem;
    margin-top: 12px;
  }
  .stat-detail {
    display: none;
  }
  .section-top {
    padding: 20px 16px 16px;
  }
  .section-top h2 {
    font-size: 1rem;
  }
  .view-tabs button {
    font-size: 0.65rem;
    padding: 7px 8px;
  }
  .view-tabs {
    gap: 0;
  }
  .filter-bar {
    padding: 0 13px 12px;
    flex-wrap: wrap;
  }
  .filters {
    gap: 0;
  }
  .filters button {
    font-size: 0.68rem;
    padding: 7px 9px;
    min-height: 36px;
  }
  .search {
    margin-left: 7px;
  }
  .search input {
    font-size: 0.75rem;
    width: 130px;
  }
  .task-row {
    padding: 20px 16px;
    gap: 11px;
  }
  .task-title-button {
    font-size: 0.875rem;
  }
  .task-preview {
    font-size: 0.75rem;
  }
  .task-meta {
    gap: 6px;
  }
  .task-actions {
    padding-left: 0;
  }
  .list-footer {
    padding: 15px 16px;
    font-size: 0.6rem;
  }
  .list-footer .text-button {
    font-size: 0.7rem;
  }
  .empty {
    padding: 37px 20px;
  }
  .empty p {
    font-size: 0.75rem;
  }
  .page-footer {
    padding: 23px 0;
  }
  .page-footer > span:first-child {
    letter-spacing: 0.7px;
    font-size: 0.45rem;
  }
  .page-footer::after {
    content: "";
  }
  .page-footer > span:last-child {
    font-size: 0.7rem;
  }
  .outbox-panel {
    padding: 0 15px 15px;
  }
  .note-card {
    padding: 20px 16px;
  }
  dialog {
    padding: 24px 20px;
    border-radius: 15px;
    max-height: 91dvh;
  }
  .dialog-header h2 {
    font-size: 1.3rem;
  }
  .form-grid {
    gap: 0 12px;
  }
  .login-shell {
    padding-top: 40px;
  }
  .login-card {
    padding: 30px 25px;
    margin-top: 40px;
  }
  .login-card h1 {
    font-size: 1.9rem;
  }
  .mobile-settings {
    display: block;
  }
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid > div,
.form-grid input,
.form-grid select {
  min-width: 0;
}
.mobile-settings {
  display: none;
}
.task-meta,
.task-date {
  font-size: 0.8rem;
}
.tag {
  font-size: 0.75rem;
}
.stat-label {
  font-size: 0.875rem;
}
.filters button,
.view-tabs button {
  font-size: 0.875rem;
}
.search input {
  font-size: 0.875rem;
}
.note-header time {
  font-size: 0.8rem;
}
.stat-detail {
  font-size: 0.8rem;
}
.task-preview {
  font-size: 0.875rem;
}
.task-title-button {
  font-size: 1rem;
}
.task-meta {
  line-height: 1.5;
}
.task-date {
  line-height: 1.6;
}
@media (max-width: 760px) {
  .topbar {
    gap: 5px;
  }
  .mobile-settings {
    display: block;
    font-size: 1.15rem;
    padding: 8px;
    color: #789080;
  }
  .sync-status {
    margin-left: auto;
  }
  .stat-label {
    font-size: 0.78rem;
  }
  .filters button,
  .view-tabs button {
    font-size: 0.78rem;
  }
  .task-meta,
  .tag,
  .task-date {
    font-size: 0.75rem;
  }
  .task-title-button {
    font-size: 1rem;
  }
  .task-preview {
    font-size: 0.875rem;
  }
  .search input {
    font-size: 1rem;
  }
  .section-top {
    flex-wrap: wrap;
  }
  .filter-bar {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      color 0.15s,
      border-color 0.15s;
  }
  .sync-dot.pending {
    animation: pulse 1.3s infinite;
  }
  @keyframes pulse {
    50% {
      opacity: 0.35;
    }
  }
}
.area-symbol.steka {
  color: #b9dcce;
  background: #405d50;
}
.area-symbol.bca {
  color: #c5d5ef;
  background: #374e60;
}
.tag.steka {
  background: #edf2ee;
  color: #52765e;
}
.tag.bca {
  background: #edf1f8;
  color: #6683ab;
}
.tag.critical {
  background: #fae7e4;
  color: #b35c52;
}
.tag.progress {
  background: #e4f2ed;
  color: #5d8e75;
}
.dependencies-editor {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 10px;
  margin-top: 20px;
}
.dependencies-editor summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}
.dependency-options {
  max-height: 210px;
  overflow: auto;
}
.dependency-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}
.dependency-choice input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.task-row {
  padding-top: 18px;
  padding-bottom: 18px;
}
.stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
  min-width: 0;
}
.tag {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.dependency-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 440px) {
  .area {
    min-width: 0;
    gap: 0;
    padding-left: 4px;
    padding-right: 4px;
  }
  .area-symbol,
  .nav-icon {
    display: none;
  }
  .stat-label {
    display: block;
    font-size: 0.8rem;
  }
  .stat-icon {
    display: none;
  }
}
