@font-face {
  font-family: Onest;
  src: url('fonts/Onest-variable.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #202124;
  --muted: #85858c;
  --line: #e9e9ed;
  --bg: #fafafa;
  --paper: #fff;
  --accent: #4e5cce;
  --soft: #f3f4fb;
  --red: #a44a43;
  --radius: 14px;
  color-scheme: light;
  font-family: Onest, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: auto;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.5 Onest,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  transition:
    background-color 0.16s,
    color 0.16s,
    border-color 0.16s;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #bbc3f2;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.045em;
  font-weight: 600;
}
h1:focus,
h2:focus {
  outline: none;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
  font-weight: 550;
}
.icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shell {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  font-size: 15px;
  font-weight: 600;
}
.brand-mark {
  display: block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
}

.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.desktop-nav {
  display: grid;
  gap: 5px;
  margin-top: 46px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  color: #717177;
  border: 0;
  border-radius: 9px;
  min-height: 46px;
  padding: 10px 13px;
  text-align: left;
  font-weight: 450;
}
.nav-item:hover {
  background: #f7f7f8;
  color: var(--ink);
}
.nav-item.active {
  background: #f1f1f4;
  color: #222227;
  font-weight: 550;
}
.sidebar-footer {
  margin-top: auto;
  padding: 20px 8px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #85858c;
  line-height: 1.7;
}
.sidebar-footer small {
  font-size: 10px;
  color: #a0a0a7;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #90909a;
  margin-right: 7px;
}
.main {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 44px clamp(24px, 4vw, 64px) 80px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.14em;
  color: #9999a1;
  margin-bottom: 8px;
}
.page-heading {
  min-width: 0;
}
.page-heading p {
  font-size: 13px;
  color: #85858e;
  margin-top: 9px;
}
.page-heading p:first-letter {
  text-transform: uppercase;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.button,
.icon-button,
.text-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff;
  white-space: nowrap;
}
.button:hover,
.icon-button:hover,
.mini-button:hover {
  background: #f6f6f8;
  border-color: #d7d7de;
}
.button.primary {
  background: #25262b;
  border-color: #25262b;
  color: #fff;
}
.button.primary:hover {
  background: #42434b;
}
.button.subtle {
  background: #f9f9fb;
  color: #63636d;
  border-color: #e9e9ee;
}
.button.wide {
  width: 100%;
}
.button.danger-text {
  color: var(--red);
  border-color: #eddfdd;
  background: #fff;
}
.button .icon {
  width: 18px;
  height: 18px;
}
.icon-button {
  width: 44px;
  padding: 0;
  flex: none;
  border-color: transparent;
  background: transparent;
  color: #72727e;
}
.icon-button:hover {
  background: #f3f3f6;
  border-color: transparent;
}
.text-button {
  border: 0;
  background: none;
  padding: 8px;
  color: #707079;
  min-height: 44px;
  font-size: 12px;
}
.text-button:hover {
  background: #f3f3f6;
  color: #27272c;
}
.text-button .icon {
  width: 17px;
  height: 17px;
}
.mini-button {
  min-height: 40px;
  padding: 8px 10px;
  font-size: 12px;
}
.day-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  max-width: 410px;
  margin: 0 auto 14px;
}
.date-picker {
  display: block;
  flex: 1;
  min-width: 0;
}
.date-picker input {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 8px;
  outline-offset: 0;
}
.day-toolbar .text-button {
  color: var(--accent);
}
.date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 77px;
  padding: 8px 3px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  color: #72727c;
}
.date-tile > span {
  font-size: 10px;
  font-weight: 450;
}
.date-tile strong {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #414149;
  letter-spacing: -0.03em;
}
.date-tile:hover {
  background: #f0f0f4;
}
.date-tile.today:not(.active) strong {
  color: var(--accent);
}
.date-tile.active {
  background: #292a30;
  color: #bcbcc6;
}
.date-tile.active strong {
  color: #fff;
}
.day-dot {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: transparent;
}
.day-dot.has-plan {
  background: #b5b5bd;
}
.date-tile.active .day-dot.has-plan {
  background: #b3b7e9;
}
.day-summary {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #9999a0;
  margin: 0 2px 22px;
}
.day-summary b {
  font-weight: 550;
  color: #62626e;
  margin-right: 3px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.panel + .panel {
  margin-top: 18px;
}
.panel-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-heading p {
  font-size: 11px;
  color: #97979f;
  margin-top: 4px;
}
.section-heading {
  margin-bottom: 18px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.section-tools {
  display: flex;
  gap: 0;
  align-items: center;
}
.view-description {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.notice {
  border-radius: 10px;
  font-size: 12px;
  padding: 13px 15px;
  line-height: 1.6;
}
.notice.danger {
  background: #fbf4f2;
  border: 1px solid #f0e4e0;
  color: #9f5a4b;
}
.notice.amber {
  background: #faf6eb;
  border: 1px solid #eee6d2;
  color: #927b48;
}
.notice.neutral {
  background: #f5f5f8;
  color: #73737f;
  border: 1px solid #ebebf0;
}
.notice .icon {
  width: 17px;
  height: 17px;
}
#day-alerts:not(:empty) {
  margin-bottom: 18px;
}
#day-alerts .notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
}
#day-alerts .notice > span {
  display: flex;
  align-items: center;
  gap: 9px;
}
#day-alerts .text-button {
  color: inherit;
  min-height: 38px;
  padding: 6px;
}
.entry-list {
  display: grid;
}
.entry-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 44px;
  column-gap: 12px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid #eeeef1;
  min-width: 0;
}
.entry-row:first-child {
  border-top: 0;
  padding-top: 10px;
}
.completion-control {
  width: 32px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
}
.done-box {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  flex: none;
  width: 21px;
  height: 21px;
  margin: 0;
  border: 1.5px solid #c9c9d1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.done-box:checked {
  background: #444b76;
  border-color: #444b76;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E");
}
.entry-main {
  min-width: 0;
}
.entry-meta {
  display: flex;
  gap: 8px;
  color: #a1a1a8;
  font-size: 10px;
  line-height: 1.5;
}
.entry-time {
  color: #777782;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.entry-title {
  display: block;
  width: 100%;
  min-height: 32px;
  margin: 3px 0 0;
  padding: 0;
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  color: #28282e;
}
.entry-title:hover {
  color: var(--accent);
}
.entry-project {
  display: block;
  color: #9999a2;
  font-size: 11px;
  margin-top: 3px;
}
.entry-edit {
  color: #8a8a96;
}
.entry-footer {
  grid-column: 2/4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
}
.entry-status {
  font-size: 10px;
  color: #a1a1aa;
}
.entry-status.has-conflict {
  color: #b07764;
}
.entry-footer .text-button {
  font-size: 11px;
  min-height: 36px;
  padding: 6px 0 6px 8px;
}
.entry-footer .icon {
  width: 15px;
  height: 15px;
}
.entry-row.done .entry-title {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  color: #a0a0aa;
}
.entry-row.done .entry-status {
  color: #737b95;
}
.task-quantity {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 10px;
  color: #8e8e99;
  font-size: 11px;
}
.task-quantity label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.task-quantity input {
  width: 56px;
  height: 44px;
  border: 1px solid #e2e2e9;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  color: #33333d;
  background: #fbfbfd;
}
.task-progress {
  height: 3px;
  background: #eeeef3;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
  max-width: 190px;
}
.task-progress i {
  height: 100%;
  display: block;
  background: #7a82b5;
  border-radius: inherit;
}
.free-slot-area {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  padding-top: 4px;
}
.free-slot-area summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  font-size: 11px;
  color: #9b9ba5;
}
.free-slot-area summary .icon {
  width: 16px;
  height: 16px;
}
.free-slot-area summary::-webkit-details-marker {
  display: none;
}
.slot-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.slot-pill {
  min-height: 42px;
  border: 1px solid #e5e5ed;
  border-radius: 8px;
  background: #fbfbfd;
  color: #79798c;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 8px 10px;
}
.slot-pill:hover {
  background: #f0f1f8;
  border-color: #cbd0e7;
}
.empty-state {
  padding: 22px 0;
  color: #96969f;
  font-size: 13px;
}
.empty-state strong {
  font-weight: 500;
  color: #6b6b77;
}
.empty-state p {
  margin-top: 7px;
  max-width: 370px;
  font-size: 12px;
}
.routine-section {
  margin-top: 18px !important;
}
.routine-section .panel-heading {
  margin-bottom: 10px;
}
.routine-section .section-tools {
  gap: 2px;
}
.routine-section .section-tools .text-button {
  font-size: 10px;
  white-space: normal;
  max-width: 88px;
  text-align: right;
  padding: 6px;
}
.completion-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0 14px;
}
.completion-summary strong {
  font-size: 10px;
  color: #a0a0aa;
  white-space: nowrap;
  font-weight: 400;
}
.progress {
  height: 3px;
  background: #eeeef2;
  border-radius: 5px;
  overflow: hidden;
  flex: 1;
}
.progress i {
  height: 100%;
  display: block;
  background: #8188b4;
  max-width: 100%;
  border-radius: inherit;
}
.routine-group {
  margin-top: 14px;
}
.routine-group h3 {
  font-size: 10px;
  color: #a0a0aa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 500;
}
.routine-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 0 10px;
  border-bottom: 1px solid #f0f0f3;
  padding: 8px 0;
  align-items: center;
}
.routine-row:last-child {
  border-bottom: 0;
}
.routine-check {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  cursor: pointer;
}
.routine-description {
  min-width: 0;
}
.routine-description strong {
  display: block;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.routine-description small {
  display: block;
  font-size: 10px;
  color: #9696a1;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.routine-row.done .routine-description strong {
  color: #9494a1;
}
.routine-edit {
  width: 40px;
  color: #a1a1ac;
}
.routine-edit .icon {
  width: 18px;
  height: 18px;
}
.count-row {
  padding: 12px 0 16px;
}
.routine-measure {
  grid-column: 1/-1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
  padding-left: 0;
}
.routine-result-wrap {
  flex: 1;
  min-width: 0;
}
.routine-result {
  color: #9696a2;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.routine-count {
  display: flex;
  align-items: center;
  border: 1px solid #e3e3eb;
  border-radius: 9px;
  overflow: hidden;
  flex: none;
  background: #fff;
}
.routine-count button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: #fafafb;
  color: #808090;
}
.routine-count button:hover {
  background: #f0f0f7;
}
.routine-count button .icon {
  width: 16px;
  height: 16px;
}
.routine-count input {
  width: 52px;
  min-height: 44px;
  text-align: center;
  border: 0;
  background: #fff;
  font-size: 16px;
  font-weight: 450;
  outline-offset: -3px;
}
.routine-count input,
.task-quantity input {
  appearance: textfield;
  -moz-appearance: textfield;
}
.routine-count input::-webkit-inner-spin-button,
.routine-count input::-webkit-outer-spin-button,
.task-quantity input::-webkit-inner-spin-button,
.task-quantity input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
#add-optional {
  margin-top: 18px;
  font-size: 12px;
}
.week-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}
.week-toolbar strong {
  font-size: 15px;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.week-toolbar .text-button {
  margin-left: auto;
}
.filters {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 22px;
}
.filters input,
.filters select {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff;
  color: #80808b;
  font-size: 12px;
}
.week-list {
  display: grid;
  gap: 14px;
}
.week-day {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.week-day-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border: 0;
  border-bottom: 1px solid #f2f2f4;
  background: #fff;
  text-align: left;
  min-height: 74px;
}
.week-day-head:hover {
  background: #fafafb;
}
.week-day-head > .icon {
  margin-left: auto;
  color: #a3a3ad;
  width: 18px;
  height: 18px;
}
.week-day-number {
  font-size: 24px;
  letter-spacing: -0.05em;
  color: #6c6c78;
  font-weight: 450;
  width: 36px;
}
.week-day-head strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
  text-transform: capitalize;
}
.week-day-head small {
  display: block;
  font-size: 10px;
  color: #a0a0a9;
  margin-top: 3px;
}
.week-day.is-today .week-day-number {
  color: var(--accent);
}
.week-day-body {
  padding: 9px 20px;
}
.week-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  color: #51515e;
}
.week-item time {
  flex: none;
  width: 38px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #a0a0ab;
}
.week-item > span:not(.conflict-dot) {
  min-width: 0;
  flex: 1;
}
.week-item.done > span {
  text-decoration: line-through;
  color: #a0a0ac;
}
.week-item .icon {
  width: 14px;
  height: 14px;
  color: #aaaaba;
}
.week-item .done-box {
  width: 19px;
  height: 19px;
  flex: none;
}
.week-item .week-entry-title {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  text-align: left;
  padding: 4px 0;
  font-size: 12px;
  color: inherit;
}
.week-check {
  display: grid;
  place-items: center;
  min-width: 36px;
  min-height: 44px;
  cursor: pointer;
  margin-left: -8px;
}
.routine-week-item {
  color: #727282;
}
.routine-week-item .week-entry-title small {
  display: block;
  font-size: 10px;
  color: #a4a4af;
  margin-top: 2px;
}
.empty-week {
  font-size: 12px;
  color: #aaaab3;
  padding: 12px 0;
}
.week-day-footer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 10px 20px;
  border: 0;
  border-top: 1px solid #f2f2f5;
  background: #fff;
  text-align: left;
  font-size: 11px;
  color: #777789;
}
.week-day-footer span {
  margin-left: auto;
  font-size: 10px;
  color: #aaaaba;
}
.week-day-footer .icon {
  width: 15px;
  height: 15px;
}
.week-day-footer:hover {
  background: #f8f8fb;
}
.conflict-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bb8b77;
}
.focus-panel {
  margin-top: 22px;
}
.focus-line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 13px 0 7px;
  font-size: 12px;
}
.focus-line strong {
  font-weight: 450;
  color: #7b7b88;
}
.focus-line span {
  color: #9898a3;
  font-size: 11px;
}
.action-library,
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.library-card,
.project-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  background: #fff;
  min-width: 0;
}
.library-top,
.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.library-card h3,
.project-card h3 {
  font-size: 15px;
  font-weight: 500;
}
.library-card p,
.project-card p {
  font-size: 11px;
  color: #9a9aa4;
  margin-top: 6px;
}
.weekday-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.weekday-tags span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 30px;
  font-size: 10px;
  border: 1px solid #eeeef3;
  border-radius: 6px;
  color: #b4b4bf;
}
.weekday-tags span.on {
  background: #f0f1f7;
  border-color: #e2e4ef;
  color: #707597;
  font-weight: 500;
}
.library-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 17px;
  color: #9393a1;
  font-size: 10px;
}
.project-card .progress {
  margin: 18px 0;
}
.project-card .notice {
  margin-top: 16px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  min-width: 0;
}
.metric-card small {
  font-size: 11px;
  color: #94949f;
}
.metric-card strong {
  font-size: 28px;
  letter-spacing: -0.045em;
  font-weight: 450;
  display: block;
  margin: 8px 0 3px;
}
.metric-card em {
  font-size: 10px;
  color: #b0b0ba;
  font-style: normal;
}
.analytics-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.analytics-grid .panel + .panel,
.settings-grid .panel + .panel {
  margin-top: 0;
}
.analytics-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(40px, 0.7fr) auto;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
  font-size: 11px;
  color: #9393a0;
}
.analytics-row b {
  font-weight: 450;
  font-size: 11px;
}
.analytics-subheading {
  font-size: 12px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.chart-row {
  display: grid;
  grid-template-columns: 57px 1fr 35px;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  font-size: 10px;
  color: #8f8f9d;
}
.chart-row b {
  font-weight: 450;
}
.chart-track {
  height: 6px;
  background: #f0f0f5;
  border-radius: 5px;
  overflow: hidden;
}
.chart-track i {
  height: 100%;
  display: block;
  background: #8c92b8;
}
.insight {
  font-size: 12px;
  color: #8b8b99;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  line-height: 1.6;
}
.insight:last-child {
  border-bottom: 0;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.setting-row b {
  font-weight: 400;
  color: #9898a7;
  font-size: 11px;
}
.settings-grid p {
  color: #9999a6;
  font-size: 12px;
  margin: 9px 0 14px;
}
.settings-grid h3 {
  font-weight: 550;
}
.settings-wide {
  grid-column: 1/-1;
}
.settings-save {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.settings-feedback {
  font-size: 12px;
  color: #737994;
}
.settings-note {
  font-size: 11px;
  line-height: 1.7;
  color: #9a9aa8;
  margin-top: 12px;
}
.setting-input {
  max-width: 130px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-height: 44px;
  background: #fff;
}
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.switch {
  appearance: none;
  width: 34px;
  height: 21px;
  background: #dddde5;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  flex: none;
}
.switch:after {
  content: '';
  display: block;
  position: absolute;
  width: 15px;
  height: 15px;
  top: 3px;
  left: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.15s;
}
.switch:checked {
  background: #545d91;
}
.switch:checked:after {
  transform: translateX(13px);
}
.modal-back {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #18192366;
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal {
  width: min(590px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid #efeff3;
  background: #fff;
  padding: 24px;
  border-radius: 18px;
  box-shadow: 0 24px 100px #11112225;
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.modal-top h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -0.035em;
}
.modal-top .icon-button {
  color: #9898a5;
}
.segmented {
  display: flex;
  gap: 4px;
  background: #f4f4f7;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.segmented button {
  flex: 1;
  min-height: 40px;
  border: 0;
  background: none;
  border-radius: 7px;
  font-size: 12px;
  color: #9696a4;
}
.segmented button.active {
  background: #fff;
  box-shadow: 0 1px 4px #1414220a;
  color: #454552;
}
.field {
  display: grid;
  gap: 7px;
  margin: 15px 0;
  font-size: 11px;
  color: #9797a4;
  font-weight: 450;
  min-width: 0;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #e4e4eb;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
  color: #4e4e5b;
  font-size: 14px;
  font-weight: 400;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field input:disabled {
  background: #f8f8fa;
  color: #aaaab5;
}
.field small {
  font-size: 10px;
  font-weight: 400;
  color: #a9a9b5;
  line-height: 1.6;
}
.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-two .field {
  margin-top: 8px;
  margin-bottom: 8px;
}
.form-details {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 10px 0;
}
.form-details summary {
  font-size: 12px;
  color: #9696a5;
  min-height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.form-details summary:after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
}
.form-details[open] summary:after {
  content: '−';
}
.form-details summary::-webkit-details-marker {
  display: none;
}
.modal-footer {
  position: sticky;
  bottom: -24px;
  background: #fff;
  border-top: 1px solid #eeeef3;
  padding: 16px 0 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 20px;
  z-index: 2;
}
.modal-footer > span {
  flex: 1;
}
.modal-footer .primary {
  min-width: 120px;
}
.choice-grid,
.weekday-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.choice-grid button,
.weekday-choices button {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  border: 1px solid #e8e8ef;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  color: #9494a3;
}
.choice-grid button.active,
.weekday-choices button.active {
  background: #393a45;
  border-color: #393a45;
  color: #fff;
}
.choice-grid button.free {
  background: #f7f8fc;
  color: #8188a8;
  border-color: #e6e9f2;
}
.modal-intro {
  color: #9898a6;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 17px;
}
.modal-intro strong {
  font-weight: 500;
  color: #60606d;
}
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.suggestion {
  min-height: 60px;
  text-align: left;
  padding: 12px;
  border: 1px solid #e7e8ef;
  background: #fbfbfd;
  border-radius: 10px;
  display: block;
}
.suggestion strong {
  display: block;
  font-size: 12px;
  font-weight: 450;
  color: #787d96;
}
.suggestion small {
  display: block;
  font-size: 10px;
  color: #a1a5b6;
  margin-top: 4px;
}
.suggestion:hover {
  background: #f1f3fa;
  border-color: #c8cde4;
}
.timeline {
  position: relative;
  height: 28px;
  background: #f0f2f8;
  border-radius: 7px;
  overflow: hidden;
}
.timeline .busy {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #d0d3e0;
  border-left: 1px solid #b3b8cf;
}
.timeline .busy.self {
  background: #edd8d1;
  border-left-color: #d6b9ae;
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #b0b0bd;
  margin: 4px 0 18px;
}
.modal .notice {
  margin-top: 13px;
}
.mobile-nav {
  display: none;
}
@media (min-width: 1400px) {
  .main {
    max-width: 1090px;
    padding-left: 75px;
    padding-right: 75px;
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .main {
    padding: 32px 24px 60px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand {
    font-size: 13px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .analytics-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-wide {
    grid-column: auto;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 25px 18px calc(100px + env(safe-area-inset-bottom));
    max-width: 600px;
  }
  .topbar {
    margin-bottom: 23px;
    gap: 10px;
    align-items: flex-start;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
    letter-spacing: 0.13em;
  }
  h1 {
    font-size: 32px;
    letter-spacing: -0.045em;
    font-weight: 550;
  }
  .page-heading p {
    font-size: 11px;
    margin-top: 7px;
    line-height: 1.6;
  }
  .top-actions {
    gap: 0;
    margin-top: 4px;
  }
  .top-actions > .button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 10px;
    margin-left: 5px;
  }
  .top-actions > .button span {
    display: none;
  }
  .top-actions > .button .icon {
    width: 20px;
    height: 20px;
  }
  .top-actions > .icon-button {
    color: #90909c;
  }
  .day-toolbar {
    margin-bottom: 8px;
    gap: 0;
  }
  .day-toolbar .text-button {
    font-size: 11px;
    padding: 7px;
  }
  .date-picker input {
    font-size: 12px;
  }
  .date-strip {
    gap: 4px;
    margin-bottom: 15px;
    padding-bottom: 17px;
  }
  .date-tile {
    min-height: 66px;
    border-radius: 9px;
    gap: 4px;
    padding: 7px 0;
  }
  .date-tile > span {
    font-size: 9px;
  }
  .date-tile strong {
    font-size: 19px;
  }
  .day-summary {
    gap: 14px;
    font-size: 10px;
    margin-bottom: 20px;
  }
  .panel {
    padding: 18px;
    border-radius: 13px;
  }
  .panel-heading {
    gap: 8px;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 17px;
    font-weight: 550;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .panel-heading > .text-button {
    font-size: 11px;
    padding-right: 0;
  }
  .entry-row {
    grid-template-columns: 26px minmax(0, 1fr) 36px;
    column-gap: 9px;
    padding: 16px 0;
  }
  .completion-control {
    width: 26px;
    min-height: 44px;
  }
  .entry-edit {
    width: 36px;
  }
  .entry-title {
    font-size: 15px;
    line-height: 1.45;
    min-height: 30px;
  }
  .entry-meta {
    font-size: 10px;
  }
  .entry-project {
    font-size: 10px;
    margin-top: 3px;
  }
  .entry-footer {
    margin-top: 4px;
  }
  .entry-footer .text-button {
    min-height: 40px;
  }
  .entry-status {
    font-size: 9px;
  }
  .entry-row:first-child {
    padding-top: 7px;
  }
  .free-slot-area summary {
    font-size: 10px;
  }
  .routine-section {
    margin-top: 16px !important;
  }
  .routine-section .panel-heading {
    align-items: flex-start;
  }
  .routine-section .section-tools {
    align-items: center;
    gap: 1px;
  }
  .routine-section .section-tools .icon-button {
    width: 36px;
    min-height: 40px;
  }
  .routine-section .section-tools .text-button {
    min-height: 40px;
    font-size: 9px;
    max-width: 77px;
    line-height: 1.4;
  }
  .routine-description strong {
    font-size: 14px;
  }
  .routine-description small {
    font-size: 10px;
    line-height: 1.6;
  }
  .routine-measure {
    gap: 14px;
  }
  .routine-count input {
    width: 48px;
  }
  .routine-count button {
    width: 44px;
  }
  .routine-group {
    margin-top: 17px;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid #eaeaf0;
    padding: 7px 12px calc(8px + env(safe-area-inset-bottom));
    gap: 3px;
  }
  .mobile-nav .nav-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border: 0;
    border-radius: 8px;
    font-size: 9px;
    min-height: 48px;
    padding: 5px 0;
    font-weight: 450;
    color: #a3a3af;
  }
  .mobile-nav .nav-item .icon {
    width: 21px;
    height: 21px;
    stroke-width: 1.65;
  }
  .mobile-nav .nav-item.active {
    background: #f4f4f8;
    color: #47485a;
  }
  .week-toolbar {
    gap: 2px;
    margin-bottom: 18px;
  }
  .week-toolbar strong {
    font-size: 13px;
  }
  .week-toolbar .text-button {
    font-size: 10px;
    padding: 5px;
  }
  .week-toolbar .icon-button {
    width: 36px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-bottom: 18px;
  }
  .filters input {
    grid-column: 1/-1;
  }
  .filters input,
  .filters select {
    font-size: 12px;
  }
  .week-list {
    gap: 12px;
  }
  .week-day-head {
    padding: 15px 16px;
    gap: 12px;
    min-height: 72px;
  }
  .week-day-number {
    font-size: 23px;
    width: 30px;
  }
  .week-day-body {
    padding: 6px 16px;
  }
  .week-item {
    font-size: 12px;
    gap: 8px;
  }
  .week-item time {
    width: 33px;
  }
  .week-day-footer {
    padding: 9px 16px;
    min-height: 46px;
  }
  .week-day-footer span {
    font-size: 9px;
  }
  .week-check {
    min-width: 32px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card {
    padding: 16px;
  }
  .metric-card strong {
    font-size: 26px;
  }
  .action-library,
  .project-grid,
  .analytics-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    gap: 8px;
    align-items: center;
  }
  .section-heading .button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .section-heading .text-button {
    font-size: 11px;
    padding-left: 0;
  }
  .modal-back {
    place-items: end center;
    padding: 0;
    background: #19192373;
  }
  .modal {
    width: 100%;
    max-height: calc(100dvh - 18px);
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 19px 19px 0 0;
    box-shadow: 0 -12px 60px #11112218;
  }
  .modal-top {
    margin-bottom: 15px;
  }
  .modal-top h2 {
    font-size: 20px;
    font-weight: 500;
  }
  .field {
    font-size: 11px;
    margin: 17px 0;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
    min-height: 48px;
  }
  .form-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-two .field {
    margin: 10px 0;
  }
  .modal-footer {
    bottom: calc(-18px - env(safe-area-inset-bottom));
    padding: 13px 0 calc(3px + env(safe-area-inset-bottom));
    margin-top: 15px;
  }
  .modal-footer .primary {
    min-width: 130px;
    min-height: 46px;
  }
  .suggestions {
    grid-template-columns: 1fr;
  }
  .weekday-choices {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
  }
  .weekday-choices button {
    padding: 9px 0;
    min-width: 0;
    min-height: 44px;
  }
  .settings-grid .panel {
    padding: 18px;
  }
  .setting-row {
    gap: 8px;
    font-size: 12px;
  }
  .setting-input {
    max-width: 114px;
    font-size: 14px;
  }
  .settings-save {
    flex-wrap: wrap;
  }
  .analytics-row {
    font-size: 10px;
  }
  .analytics-row b {
    font-size: 10px;
  }
}
@media (max-width: 360px) {
  .main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .panel {
    padding: 15px;
  }
  .topbar {
    gap: 7px;
  }
  h1 {
    font-size: 29px;
  }
  .date-strip {
    gap: 3px;
  }
  .date-tile {
    min-height: 63px;
  }
  .day-summary {
    gap: 10px;
    font-size: 9px;
  }
  .entry-row {
    grid-template-columns: 24px minmax(0, 1fr) 32px;
    column-gap: 6px;
  }
  .entry-edit {
    width: 32px;
  }
  .routine-description strong {
    font-size: 13px;
  }
  .routine-count input {
    width: 42px;
  }
  .week-day-footer span {
    max-width: 116px;
    line-height: 1.5;
  }
  .week-day-footer {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Legibility and settings detail */
:root {
  --muted: #73737d;
}
.entry-meta,
.entry-project,
.entry-status,
.panel-heading p,
.routine-description small,
.page-heading p,
.settings-grid p,
.field,
.field small,
.library-card p,
.settings-note {
  color: #73737d;
}
.week-item.done .week-entry-title {
  text-decoration: line-through;
  color: #90909a;
}
.week-entry-title small {
  text-decoration: none;
}
.routine-week-item .week-entry-title small {
  color: #797984;
}
.setting-schedule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  text-align: left;
}
.setting-schedule strong {
  display: block;
  font-weight: 500;
}
.setting-schedule small {
  display: block;
  margin-top: 5px;
  color: #73737d;
}
.setting-schedule:hover {
  color: var(--accent);
}
.routine-section .panel-heading {
  flex-wrap: wrap;
}
.routine-section .section-tools {
  gap: 8px;
  margin-left: auto;
}
#manage-actions {
  font-size: 11px;
}
#manage-actions .icon {
  width: 16px;
  height: 16px;
}
@media (max-width: 760px) {
  .routine-section .panel-heading > div:first-child {
    width: 100%;
  }
  .routine-section .section-tools {
    width: 100%;
    justify-content: space-between;
    margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .routine-section .section-tools .text-button {
    max-width: none;
    font-size: 11px;
    min-height: 44px;
    padding: 6px 0;
  }
  .completion-summary {
    margin-top: 14px;
  }
  .entry-edit {
    width: 44px;
  }
  .entry-row {
    grid-template-columns: 26px minmax(0, 1fr) 44px;
  }
  .routine-edit {
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-nav .nav-item {
    color: #737381;
  }
  .field small {
    font-size: 11px;
  }
  .settings-note {
    font-size: 12px;
  }
}

.week-item .week-entry-title {
  font-size: 14px;
  line-height: 1.45;
  min-height: 44px;
  padding: 8px 0;
}
.week-entry-title time {
  display: block;
  width: auto !important;
  font-size: 11px;
  color: #73737d;
  margin-bottom: 4px;
}
.week-entry-title small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: #73737d;
}
.week-item.done .week-entry-title {
  text-decoration: none;
}
.week-item.done .week-entry-title > span {
  text-decoration: line-through;
}
.week-move {
  width: 44px;
}
.week-item .week-move .icon {
  width: 18px;
  height: 18px;
  color: #7b7b88;
}
.week-check {
  min-width: 44px;
  margin-left: -10px;
}
.week-day-footer .icon {
  margin: 0;
}
.week-day-footer span {
  font-size: 10px;
  color: #86868e;
}
.week-day-footer {
  font-size: 11px;
}
.week-item {
  gap: 8px;
}
.routine-week-item > .icon {
  width: 18px;
  height: 18px;
  margin: 0 13px;
}
@media (max-width: 360px) {
  .week-day-body {
    padding-left: 14px;
    padding-right: 10px;
  }
  .week-day-footer {
    padding-left: 14px;
    padding-right: 14px;
  }
  .week-day-footer span {
    max-width: 100px;
  }
  .week-item {
    gap: 4px;
  }
  .week-item .week-entry-title {
    font-size: 13px;
  }
  .week-check {
    min-width: 40px;
  }
}

/* Compact agenda and calendar — v5 */
.agenda-panel,
.month-detail {
  padding: 16px 20px;
}
.agenda-panel .panel-heading {
  margin-bottom: 4px;
}
.entry-row,
.entry-row:first-child {
  grid-template-columns: 30px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
}
.entry-title {
  min-height: 24px;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.entry-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 9px;
  margin-top: 3px;
  line-height: 1.45;
  font-size: 11px;
  color: #757581;
}
.entry-details time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.entry-reminder {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 7px;
  background: #f0edff;
  color: #5141a8;
  font-size: 11px;
  font-weight: 620;
  white-space: nowrap;
}
.entry-reminder.is-off {
  background: #f1f1f3;
  color: #757581;
}
.project-label {
  font-size: 11px;
  color: #777780;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.project-label.has-project {
  color: #626c91;
}
.project-label.has-project:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #8d96bb;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
}
.entry-warning {
  color: #a45d45 !important;
  font-size: 10px;
}
.entry-move {
  color: #7d7d87;
}
.entry-move .icon {
  width: 18px;
  height: 18px;
}
.entry-row.done .entry-title {
  text-decoration: line-through;
  color: #92929c;
}
.entry-row .task-quantity {
  margin-top: 5px;
}
.entry-row .task-progress {
  margin-top: 4px;
  max-width: 220px;
}
.free-slot-area {
  margin-top: 4px;
  padding-top: 6px;
}
.free-slot-area summary {
  min-height: 40px;
}
.completion-control {
  align-self: stretch;
  align-items: center;
  min-height: 44px;
}
.week-list {
  gap: 10px;
}
.week-day {
  border-radius: 10px;
}
.week-day-head {
  min-height: 52px;
  padding: 8px 16px;
  gap: 10px;
}
.week-day-number {
  font-size: 22px;
  width: 28px;
}
.week-day-head strong {
  font-size: 12px;
}
.week-day-head small {
  font-size: 10px;
  margin-top: 0;
}
.week-day-body {
  padding: 2px 16px;
}
.week-item {
  padding: 4px 0;
  min-height: 44px;
  border-top: 1px solid #f2f2f5;
}
.week-item:first-child {
  border-top: 0;
}
.week-item .week-entry-title {
  padding: 2px 0;
  min-height: 40px;
  font-size: 13px;
  line-height: 1.4;
}
.week-item .week-entry-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-top: 3px;
  text-decoration: none !important;
}
.week-entry-details time,
.week-entry-details small {
  display: inline-block;
  margin: 0;
  font-size: 10px;
}
.week-entry-details .project-label {
  font-size: 10px;
}
.week-entry-title time {
  margin-bottom: 1px;
  font-size: 10px;
}
.week-item.done .week-entry-title > .week-entry-details {
  text-decoration: none;
}
.week-day-footer {
  min-height: 40px;
  padding: 6px 16px;
  font-size: 11px;
}
.empty-week {
  padding: 6px 0;
}
.routine-week-item .week-entry-title small {
  margin-top: 1px;
}
.routine-row {
  padding-top: 5px;
  padding-bottom: 5px;
}
.count-row {
  padding-top: 8px;
  padding-bottom: 8px;
}
.routine-measure {
  margin-top: 5px;
}
.routine-group {
  margin-top: 12px;
}
.routine-group h3 {
  margin-bottom: 3px;
}
.topbar {
  margin-bottom: 22px;
}
.filters {
  margin-bottom: 12px;
}
.week-toolbar {
  margin-bottom: 12px;
}
.calendar-modes {
  display: flex;
  width: max-content;
  padding: 3px;
  border: 1px solid var(--line);
  background: #f0f0f3;
  border-radius: 9px;
  margin-bottom: 14px;
  gap: 3px;
}
.calendar-modes button {
  min-height: 38px;
  padding: 6px 21px;
  border: 0;
  background: none;
  font-size: 12px;
  border-radius: 6px;
  color: #777781;
}
.calendar-modes button.active {
  background: #fff;
  color: #28282e;
  box-shadow: 0 1px 3px #0000000b;
}
.month-toolbar strong {
  text-transform: capitalize;
}
.month-summary {
  color: #777780;
  font-size: 12px;
  margin-bottom: 14px;
}
.month-calendar {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.month-weekdays,
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.month-weekdays span {
  text-align: center;
  padding: 9px 0;
  color: #777780;
  font-size: 11px;
}
.month-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 88px;
  padding: 10px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  text-align: left;
}
.month-cell:nth-child(7n) {
  border-right: 0;
}
.month-cell:hover {
  background: #f7f7fa;
}
.month-cell strong {
  font-size: 15px;
  font-weight: 500;
}
.month-cell small {
  font-size: 10px;
  color: #81818c;
  min-height: 14px;
}
.month-cell.outside {
  background: #fafafa;
  color: #b3b3bb;
}
.month-cell.outside small {
  color: #b3b3bb;
}
.month-cell.today strong {
  color: var(--accent);
}
.month-cell.selected {
  background: #eeeef7;
  box-shadow: inset 0 0 0 1.5px #888eb2;
}
.month-load {
  width: 100%;
  height: 3px;
  background: #eeeef3;
  border-radius: 3px;
  overflow: hidden;
}
.month-load > i {
  display: block;
  height: 100%;
  background: #929aba;
  border-radius: 3px;
}
.month-conflict {
  position: absolute;
  right: 8px;
  top: 12px;
  width: 5px;
  height: 5px;
  background: #ad7964;
  border-radius: 50%;
}
.month-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 14px;
  margin: 10px 0 18px;
  font-size: 10px;
  color: #777780;
}
.month-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.month-legend i:not(.conflict-dot) {
  width: 12px;
  height: 3px;
  background: #929aba;
}
.month-detail .panel-heading {
  margin-bottom: 4px;
}
.month-detail h2 {
  font-size: 17px;
  text-transform: capitalize;
}
.month-detail #month-open-day {
  padding-left: 0;
  font-size: 11px;
  white-space: normal;
  text-align: left;
  justify-content: flex-start;
}
.month-slot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.month-slot-heading select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  padding: 6px 9px;
}
.month-slot-note {
  font-size: 11px;
  color: #777780;
  line-height: 1.5;
  margin: 8px 0;
}
.month-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 6px;
  margin: 12px 0;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.month-slots .slot-pill {
  min-height: 40px;
  margin: 0;
  font-size: 11px;
  padding: 6px 8px;
}
.month-slots > .empty-week {
  grid-column: 1/-1;
}
@media (max-width: 760px) {
  .agenda-panel,
  .month-detail {
    padding: 13px 14px;
  }
  .entry-row,
  .entry-row:first-child {
    grid-template-columns: 26px minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 7px 0;
  }
  .entry-title {
    font-size: 14px;
    min-height: 24px;
  }
  .entry-move {
    width: 40px;
    min-height: 44px;
  }
  .entry-details {
    font-size: 10px;
    gap: 2px 7px;
  }
  .entry-details .project-label {
    font-size: 10px;
  }
  .week-day-head {
    min-height: 52px;
    padding: 8px 14px;
  }
  .week-day-body {
    padding: 2px 14px;
  }
  .week-day-footer {
    padding: 5px 14px;
    min-height: 40px;
  }
  .week-item .week-entry-title {
    font-size: 13px;
    min-height: 40px;
  }
  .week-check {
    min-width: 38px;
    margin-left: -8px;
  }
  .week-move {
    width: 40px;
  }
  .week-item {
    gap: 4px;
    padding: 4px 0;
  }
  .week-day-footer span {
    font-size: 9px;
  }
  .routine-group {
    margin-top: 12px;
  }
  .routine-section .panel-heading {
    margin-bottom: 5px;
  }
  .calendar-modes {
    margin-bottom: 10px;
  }
  .calendar-modes button {
    min-height: 40px;
  }
  .month-toolbar strong {
    font-size: 13px;
  }
  .month-summary {
    font-size: 11px;
    margin-bottom: 10px;
  }
  .month-cell {
    min-height: 65px;
    gap: 4px;
    padding: 7px 6px;
  }
  .month-cell strong {
    font-size: 14px;
  }
  .month-cell small {
    font-size: 10px;
  }
  .month-cell small > span {
    display: none;
  }
  .month-weekdays span {
    padding: 7px 0;
    font-size: 10px;
  }
  .month-conflict {
    right: 5px;
    top: 9px;
    width: 4px;
    height: 4px;
  }
  .month-legend {
    font-size: 9px;
    gap: 5px 10px;
    margin-bottom: 12px;
  }
  .month-detail h2 {
    font-size: 16px;
  }
  .month-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }
  .month-slots .slot-pill {
    font-size: 10px;
    padding: 6px 3px;
    min-height: 44px;
  }
  .month-detail .panel-heading p {
    font-size: 10px;
  }
  .topbar {
    margin-bottom: 18px;
  }
}
@media (max-width: 360px) {
  .month-cell {
    padding: 6px 5px;
    min-height: 60px;
  }
  .month-toolbar strong {
    font-size: 12px;
  }
  .month-toolbar .text-button {
    font-size: 9px;
  }
  .agenda-panel .panel-heading h2 {
    font-size: 16px;
  }
  .entry-row {
    gap: 5px;
  }
  .week-day-footer span {
    max-width: 100px;
  }
  .month-summary {
    font-size: 10px;
  }
}

.month-detail h2 {
  text-transform: none;
}
.month-detail h2:first-letter {
  text-transform: uppercase;
}
/* Installation, authentication and durable server saves share the planner's visual language. */
.app-locked .shell {
  visibility: hidden;
}
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: #f5f5f3;
}
.auth-card {
  width: min(100%, 480px);
  padding: clamp(24px, 5vw, 44px);
  background: #fff;
  border: 1px solid #e7e7e3;
  border-radius: 20px;
  box-shadow: 0 16px 70px #20202008;
}
.auth-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #797973;
  margin-bottom: 20px;
}
.auth-card h1 {
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}
.auth-card p {
  color: #72726c;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 22px;
}
.auth-card .field {
  margin: 18px 0;
}
.auth-card .button {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}
.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin: 20px 0;
}
.auth-check input {
  margin-top: 3px;
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: #252525;
}
.auth-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  margin-top: 18px;
}
.auth-options button {
  border: 0;
  background: none;
  color: #5652c9;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  padding: 4px 0;
}
.telegram-invitation {
  position: fixed;
  z-index: 95;
  left: 20px;
  bottom: 20px;
  width: min(360px, calc(100vw - 40px));
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #29272e;
  background: #fff;
  border: 1px solid #ddd9f3;
  border-radius: 18px;
  box-shadow: 0 16px 50px #35306322;
}
.telegram-invitation strong {
  font-size: 15px;
}
.telegram-invitation span {
  color: #73707b;
  font-size: 13px;
  line-height: 1.45;
}
.telegram-invitation .button {
  justify-content: center;
}
.telegram-invitation [role='status'] {
  margin: 0;
  font-size: 13px;
}
.telegram-onboarding {
  max-width: min(480px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 26px 90px #22213b40;
}
.telegram-onboarding::backdrop {
  background: #17172280;
  backdrop-filter: blur(5px);
}
.telegram-onboarding .auth-card {
  width: 100%;
}
.telegram-onboarding .server-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.telegram-onboarding .server-actions .button {
  width: auto;
}
.sync-banner {
  position: fixed;
  z-index: 1100;
  left: 12px;
  right: 12px;
  bottom: 90px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d1bb97;
  border-radius: 14px;
  background: #fff9ef;
  box-shadow: 0 8px 30px #0001;
}
.sync-banner[hidden] {
  display: none;
}
.sync-banner span {
  flex: 1 1 100%;
  font-size: 14px;
}
.server-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.wrap-code {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 14px;
  background: #f6f6f4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
}

/* Category cues are consistent in day and week views; labels remain explicit. */
[data-category] {
  --category-accent: #6550b8;
  --category-tint: #f0ecfa;
}
[data-category='Работа'] {
  --category-accent: #305eb0;
  --category-tint: #eaf0fc;
}
[data-category='Личное'] {
  --category-accent: #7547aa;
  --category-tint: #f3ebfa;
}
[data-category='Здоровье'] {
  --category-accent: #247552;
  --category-tint: #e8f5ed;
}
[data-category='Дом'] {
  --category-accent: #986017;
  --category-tint: #faf0df;
}
[data-category='Учёба'] {
  --category-accent: #216f82;
  --category-tint: #e6f3f6;
}
[data-category='Финансы'] {
  --category-accent: #896b13;
  --category-tint: #f7f2dc;
}
[data-category='Досуг'] {
  --category-accent: #a04770;
  --category-tint: #faedf3;
}
.entry-row[data-category],
.week-item[data-category] {
  border-left: 3px solid var(--category-accent);
  padding-left: 10px;
}
.category-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 5px;
  color: var(--category-accent);
  background: var(--category-tint);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  text-decoration: none;
}

.inbox-capture {
  display: flex;
  align-items: end;
  gap: 12px;
}
.inbox-capture .field {
  flex: 1;
  margin: 0;
}
.inbox-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid #ececf0;
}
.inbox-item p {
  white-space: pre-wrap;
  font-size: 13px;
  margin: 6px 0;
}
.inbox-item small {
  color: #777782;
}
.inbox-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .inbox-capture,
  .inbox-item {
    flex-direction: column;
    align-items: stretch;
  }
  .inbox-buttons {
    justify-content: space-between;
  }
}

@media (max-width: 800px) {
  .mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Planning details stay compact until explicitly expanded. */
.feature-toggle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
  font-size: 14px;
}
.feature-toggle small {
  color: var(--muted, #777);
}
.feature-toggle input,
.checklist-edit-row input[type='checkbox'],
.entry-checklist input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: #6658ec;
}
.checklist-edit-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.checklist-edit-row input:not([type='checkbox']),
.checklist-add input {
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #dddde5;
  border-radius: 8px;
  font: inherit;
}
.checklist-add {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.entry-checklist {
  margin-top: 8px;
  font-size: 13px;
}
.entry-checklist summary {
  color: #777783;
  cursor: pointer;
}
.entry-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  overflow-wrap: anywhere;
}
.entry-checklist label:has(input:checked) span {
  color: #888;
  text-decoration: line-through;
}
.focus-star {
  color: #a97813;
  font-size: 15px;
}
.feature-list {
  font-size: 13px;
  color: #777783;
  line-height: 1.6;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.assistant-dock {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 120;
  display: grid;
  justify-items: end;
  gap: 12px;
}
.modal-open .assistant-dock {
  display: none;
}
.assistant-dock-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.assistant-help,
.assistant-launch,
.assistant-preview-close,
.assistant-preview-example {
  font: inherit;
  cursor: pointer;
}
.assistant-help {
  width: 42px;
  height: 42px;
  border: 1px solid #dedbea;
  border-radius: 50%;
  background: #fff;
  color: #625d72;
  font-size: 18px;
  box-shadow: 0 8px 25px #2d25451a;
}
.assistant-help[aria-expanded='true'] {
  color: #594cdc;
  border-color: #bcb5f6;
}
.assistant-launch {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 6px 18px 6px 6px;
  border: 1px solid #4e42c8;
  border-radius: 100px;
  background: #5749d8;
  color: #fff;
  box-shadow:
    0 13px 35px #4436ad4d,
    0 2px 7px #2e236d26;
  font-size: 14px;
  font-weight: 580;
  letter-spacing: -0.01em;
}
.assistant-launch:hover {
  background: #493ac8;
}
.assistant-launch:focus-visible,
.assistant-help:focus-visible,
.assistant-preview button:focus-visible {
  outline: 3px solid #b5adff;
  outline-offset: 3px;
}
.assistant-launch-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff24;
}
.assistant-launch-icon .icon {
  width: 21px;
  height: 21px;
}
.assistant-preview {
  width: min(336px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #e5e1f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 75px #25213c30;
  color: #28262f;
}
.assistant-preview[hidden] {
  display: none;
}
.assistant-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.assistant-preview-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #5b4bd9;
  background: #f0edff;
}
.assistant-preview-mark .icon {
  width: 18px;
  height: 18px;
}
.assistant-preview-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b8797;
}
.assistant-preview-close .icon {
  width: 15px;
  height: 15px;
}
.assistant-preview h2 {
  margin: 16px 0 7px;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.assistant-preview p {
  margin: 0 0 17px;
  color: #777382;
  font-size: 13px;
  line-height: 1.55;
}
.assistant-preview-list {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 10px 7px;
  padding: 15px 0;
  border-top: 1px solid #f0eef4;
  border-bottom: 1px solid #f0eef4;
  font-size: 13px;
}
.assistant-preview-list span:nth-child(odd) {
  color: #877bee;
  font-size: 11px;
}
.assistant-preview-example {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px;
  padding: 11px 13px;
  border: 0;
  border-radius: 11px;
  background: #f0edff;
  color: #5142ce;
  font-size: 13px;
  font-weight: 600;
}
.assistant-preview-example .icon {
  width: 16px;
  height: 16px;
}
.assistant-preview small {
  color: #92909a;
  font-size: 11px;
  line-height: 1.4;
}
.assistant-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #e4e3e9;
  border-radius: 24px;
  color: #25252b;
  background: #fff;
  box-shadow: 0 24px 80px #17142526;
  overflow: auto;
}
.assistant-dialog::backdrop {
  background: #18152666;
  backdrop-filter: blur(4px);
}
.assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 12px;
}
.assistant-header h2 {
  margin: 6px 0 0;
  font-size: 26px;
  letter-spacing: -0.8px;
}
.assistant-content {
  padding: 0 24px 20px;
}
.assistant-intro {
  margin: 4px 0 16px;
  color: #787782;
  font-size: 14px;
  line-height: 1.6;
}
.assistant-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.assistant-examples button {
  padding: 8px 12px;
  border: 1px solid #e4e2ef;
  border-radius: 100px;
  background: #f8f7fb;
  color: #59516f;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.assistant-guide {
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid #ece9f6;
  border-radius: 12px;
  background: #fcfbff;
  font-size: 13px;
}
.assistant-guide summary {
  color: #584bcb;
  font-weight: 590;
  cursor: pointer;
}
.assistant-guide-body {
  padding-top: 4px;
  color: #686574;
  line-height: 1.6;
}
.assistant-guide-body p {
  margin: 10px 0 0;
}
.assistant-guide-body strong {
  color: #33303e;
}
.assistant-answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  font-size: 14px;
  margin-top: 18px;
}
.assistant-answer:empty {
  display: none;
}
.assistant-status {
  font-size: 13px;
  color: #6f65ab;
  line-height: 1.5;
  margin: 14px 0 0;
}
.assistant-status.is-error {
  color: #ae3443;
}
.assistant-proposal {
  margin-top: 16px;
  border: 1px solid #ded9f6;
  background: #faf9fe;
  border-radius: 16px;
  padding: 16px;
}
.assistant-proposal h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
.assistant-proposal ol {
  padding-left: 22px;
  margin: 0 0 16px;
}
.assistant-proposal li {
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.assistant-confirm,
.assistant-compose-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.assistant-compose {
  padding: 18px 24px 24px;
  border-top: 1px solid #ecebf1;
}
.assistant-compose label {
  display: block;
  font-size: 13px;
  color: #777480;
  margin-bottom: 8px;
}
.assistant-compose textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid #dedce7;
  border-radius: 12px;
  padding: 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}
.assistant-compose-actions {
  margin-top: 12px;
}
.assistant-compose small {
  display: block;
  margin-top: 12px;
  color: #888591;
  font-size: 11px;
  line-height: 1.5;
}
.assistant-mic {
  gap: 8px;
}
.assistant-mic.is-recording {
  color: #a32943;
  background: #fff0f3;
}
.assistant-dialog button:disabled {
  opacity: 0.5;
  cursor: wait;
}
@media (max-width: 760px) {
  .assistant-dock {
    right: 14px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    gap: 9px;
  }
  .assistant-launch {
    width: 60px;
    height: 60px;
    min-height: 60px;
    padding: 5px;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow:
      0 9px 28px #35249c85,
      0 0 0 1px #4e42c8;
  }
  .assistant-launch-icon {
    width: 46px;
    height: 46px;
  }
  .assistant-launch-label {
    display: none;
  }
  .assistant-help {
    width: 38px;
    height: 38px;
  }
  .telegram-invitation {
    left: 16px;
    right: 16px;
    bottom: calc(160px + env(safe-area-inset-bottom));
    width: auto;
  }
  .assistant-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }
  .assistant-header {
    padding: 20px 18px 12px;
  }
  .assistant-content {
    padding: 0 18px 16px;
  }
  .assistant-compose {
    padding: 16px 18px 20px;
  }
  .assistant-compose-actions .button {
    padding: 12px;
    font-size: 13px;
    min-height: 44px;
  }
  .top-actions {
    gap: 6px;
  }
}

.assistant-request {
  margin-top: 16px;
  color: #7a7489;
  font-size: 13px;
}
.assistant-request p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.agency-work-panel {
  margin-top: 18px;
}
.agency-work-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 4px;
  border-top: 1px solid #efeff3;
  border-left: 3px solid #7a72dc;
  padding-left: 13px;
}
.agency-work-row.done {
  border-left-color: #67b984;
}
.agency-work-row.late {
  border-left-color: #d4786d;
}
.agency-work-row label {
  display: flex;
  align-items: center;
}
.agency-work-row input {
  width: 20px;
  height: 20px;
  accent-color: #62b985;
}
.agency-work-row div {
  min-width: 0;
  flex: 1;
}
.agency-work-row strong,
.agency-work-row small {
  display: block;
}
.agency-work-row strong {
  font-size: 14px;
}
.agency-work-row.done strong {
  text-decoration: line-through;
  color: #858594;
}
.agency-work-row small,
.agency-work-caption,
.agency-work-empty {
  color: #868694;
  font-size: 12px;
  margin-top: 3px;
}
.agency-work-row a {
  text-decoration: none;
  color: #6661be;
}
.agency-work-caption {
  margin: 16px 0 5px;
}
.agency-work-empty {
  padding: 10px 0;
}
.nav-item[href='agency.html'] {
  text-decoration: none;
}
