@charset "UTF-8";
:root {
  --bg: #f5f6fa;
  --card: #fff;
  --ink: #202638;
  --muted: #8790a5;
  --sub: #69748c;
  --line: #eceef4;
  --blue: #5966c9;
  --blue-soft: #eff1ff;
  --green: #6ba58b;
  --gold: #ad9563;
  --red: #cb7e82;
  --radius: 20px;
  --shadow: 0 8px 35px -20px #22364f1c;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  color: inherit;
  background: none;
}
a {
  color: var(--blue);
}
:focus-visible {
  outline: 3px solid #9ba4e9;
  outline-offset: 3px;
}
input,
select,
textarea {
  min-width: 0;
}
button {
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s,
    color 0.2s;
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.sub {
  color: var(--sub);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.stack {
  display: grid;
  gap: 16px;
}
.nowrap {
  white-space: nowrap;
}
.hidden {
  display: none !important;
}
.initial-loader {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font:
    600 24px Georgia,
    serif;
}
.initial-loader i {
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.skeleton {
  min-height: 250px;
  border-radius: 20px;
  background: linear-gradient(100deg, #eeeef5 30%, #fafafe 50%, #eeeef5 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
.sidebar {
  position: fixed;
  z-index: 20;
  left: 0;
  top: 0;
  bottom: 0;
  width: 238px;
  display: flex;
  flex-direction: column;
  padding: 33px 23px 22px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  text-align: left;
  padding: 0;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand strong {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.65px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  color: #758095;
  border-radius: 11px;
  text-align: left;
  font-size: 13px;
}
.nav button:hover {
  background: #f6f7fa;
  color: var(--ink);
}
.nav button.active {
  color: #fff;
  background: #30394e;
  box-shadow: 0 7px 18px -10px #30394e80;
}
.nav .nav-badge {
  margin-left: auto;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  padding: 0 6px;
  border-radius: 4px;
}
.nav button.active .nav-badge {
  background: #ffffff20;
  color: white;
}
.sidebar-fill {
  flex: 1;
  min-height: 24px;
}
.side-advisor {
  border: 1px solid #eaeaf7;
  background: linear-gradient(140deg, #fafaff, #f6f7fc);
  padding: 17px;
  border-radius: 14px;
  margin: 22px 0;
}
.side-advisor .icon {
  color: var(--gold);
}
.side-advisor p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--sub);
  margin: 11px 0 14px;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 0;
}
.text-button:hover {
  color: #303eac;
}
.profile {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #edf0f8;
  border: 1px solid #e3e6ef;
  border-radius: 50%;
  color: #6d7896;
  font:
    600 12px Inter,
    "Segoe UI",
    sans-serif;
}
.profile strong {
  display: block;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.profile > .icon {
  margin-left: auto;
  color: var(--muted);
  width: 15px;
}
.workspace {
  margin-left: 238px;
  padding: 32px 36px 28px;
  min-height: 100vh;
  max-width: 1830px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.topbar h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1.15px;
  line-height: 1.2;
  margin: 0 0 8px;
}
.topbar p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}
.search-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffffa6;
  display: flex;
  align-items: center;
  padding: 9px 13px;
  gap: 9px;
  min-width: 230px;
  color: var(--muted);
}
.search-box input {
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
}
.search-box input::placeholder {
  color: #9ca4b6;
}
.key-hint {
  font-size: 9px;
  color: #a4adbe;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
}
.date-pill {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--sub);
}
.date-pill .icon {
  width: 16px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--sub);
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: #d8ddf6;
}
.icon-button .icon {
  width: 16px;
  height: 16px;
}
.icon-button.flat {
  border-color: transparent;
  background: transparent;
}
.btn {
  padding: 10px 16px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  min-height: 40px;
  line-height: 1.4;
  box-shadow: 0 4px 10px -6px #5865c9;
}
.btn:hover {
  background: #4b58bd;
  box-shadow: 0 6px 16px -8px #5865c9;
}
.btn.secondary {
  color: var(--sub);
  background: #fff;
  border: 1px solid #e5e8f1;
  box-shadow: none;
}
.btn.secondary:hover {
  background: #f7f8fc;
  border-color: #d3d9ec;
}
.btn.danger {
  background: #b86771;
}
.btn.small {
  font-size: 11px;
  padding: 7px 11px;
  min-height: 32px;
}
.btn.wide {
  width: 100%;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
  gap: 22px;
  align-items: start;
}
.central {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.card {
  background: var(--card);
  border: 1px solid #eaeef5;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.6s var(--ease) both;
}
.card-head {
  padding: 23px 26px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-head h2 {
  font-size: 16px;
  letter-spacing: -0.45px;
  margin: 0;
  font-weight: 650;
}
.card-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}
.card-body {
  padding: 5px 26px 24px;
}
.calendar {
  animation-delay: 0.04s;
}
.calendar-controls {
  gap: 10px;
}
.month-label {
  font-size: 12px;
  font-weight: 550;
  min-width: 115px;
  text-align: center;
}
.calendar-inner {
  padding: 0 23px 20px;
}
.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.weekdays {
  margin: 3px 0 10px;
}
.weekdays span {
  text-align: center;
  font-size: 10px;
  color: #97a0b3;
}
.weekdays span:nth-child(n + 6) {
  color: #a6adbb;
}
.cal-day {
  position: relative;
  border: 1px solid #f1f2f6;
  border-radius: 9px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  transition:
    background 0.25s,
    transform 0.3s var(--ease),
    box-shadow 0.3s;
}
.cal-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px #242f4820;
}
.cal-day.out {
  opacity: 0.35;
  background: #f8f9fb;
}
.cal-day.today:after {
  content: "";
  position: absolute;
  right: 5px;
  top: 5px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--blue);
}
.cal-day.red {
  background: #fcf0f1;
  border-color: #f9e8ea;
  color: #be747c;
}
.cal-day.orange {
  background: #fff4e9;
  color: #b18a5f;
}
.cal-day.yellow {
  background: #fcf8e5;
  color: #a89c58;
}
.cal-day.lime {
  background: #f0f6e9;
  color: #86a56b;
}
.cal-day.green {
  background: #eaf5ef;
  border-color: #e4f1e8;
  color: #529778;
}
.cal-day.future {
  background: #f8f9fd;
  color: #7b83a3;
}
.cal-dot {
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.cal-day.selected {
  background: #606dcb !important;
  color: white !important;
  border-color: #606dcb !important;
  box-shadow: 0 5px 13px -6px #4b59bcb0;
}
.cal-day.selected:after {
  background: white;
}
.calendar-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f2f6;
  font-size: 9px;
  color: var(--muted);
  gap: 10px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 4px;
}
.legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
}
.legend .l1 {
  background: #f3d5d8;
}
.legend .l2 {
  background: #efd9b8;
}
.legend .l3 {
  background: #eee4b4;
}
.legend .l4 {
  background: #cbdcba;
}
.legend .l5 {
  background: #b4d7c3;
}
.day-card {
  animation-delay: 0.1s;
}
.day-progress {
  height: 2px;
  margin: 0 26px 4px;
  background: #f1f2f7;
  overflow: hidden;
  border-radius: 1px;
}
.day-progress span {
  height: 100%;
  background: #8f9bdc;
  display: block;
  width: 0;
  transition: width 0.65s var(--ease);
}
.day-progress-text {
  font-size: 10px;
  color: var(--muted);
}
.task-list {
  padding: 4px 26px 5px;
}
.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid #f0f2f7;
  position: relative;
  animation: rise 0.4s var(--ease) both;
}
.task-item:last-child {
  border-bottom: 0;
}
.task-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid #cdd4e2;
  background: white;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.task-check .icon {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.2s var(--ease);
}
.task-check:hover {
  border-color: #7c88d4;
  background: #f5f6ff;
}
.task-item.done .task-check {
  background: #6874ca;
  border-color: #6874ca;
  color: white;
  box-shadow: 0 3px 9px -5px #5966c9;
}
.task-item.done .task-check .icon {
  opacity: 1;
  transform: scale(1);
}
.task-item.failed .task-check {
  color: var(--red);
  border-color: #e6babe;
  background: #fff6f6;
}
.task-item.failed .task-check .icon {
  opacity: 1;
  transform: scale(1);
}
.task-main {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  text-align: left;
}
.task-title {
  font-size: 12px;
  display: block;
  line-height: 1.5;
  overflow-wrap: anywhere;
  transition: color 0.3s;
}
.task-item.done .task-title {
  color: #a0a7b7;
  text-decoration: line-through;
  text-decoration-color: #b7becd;
}
.task-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #9aa3b6;
  font-size: 9px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.task-meta .icon {
  width: 10px;
  height: 10px;
}
.task-time {
  color: #8d97ac;
  font-size: 10px;
  white-space: nowrap;
  min-width: 34px;
}
.task-grip {
  color: #c5ccda;
  font-size: 12px;
  cursor: grab;
  display: none;
}
.task-item:hover .task-grip {
  display: block;
}
.task-item.dragging {
  opacity: 0.35;
}
.tag {
  font-size: 9px;
  color: #7a84ad;
  background: #f0f2fa;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
}
.tag.habit {
  color: #66937f;
  background: #eff7f1;
}
.tag.ban {
  color: #b18d69;
  background: #fbf4e9;
}
.tag.extra {
  color: #9d8bac;
  background: #f5eff9;
}
.tag.high {
  color: #bf7b7c;
  background: #fcf0f1;
}
.day-footer {
  padding: 14px 26px 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f4f5f8;
  gap: 10px;
}
.empty {
  padding: 32px 15px 36px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #f5f6fc;
  margin: 0 auto 13px;
  color: #9ba6ce;
}
.empty strong {
  display: block;
  color: #6a7690;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 6px;
}
.empty p {
  font-size: 11px;
  max-width: 280px;
  margin: 0 auto 16px;
  line-height: 1.7;
}
.goals-card {
  animation-delay: 0.15s;
}
.goals-label {
  font-size: 10px;
  color: #98a0b3;
}
.goal-list {
  padding: 0 24px;
}
.goal-item {
  width: 100%;
  display: flex;
  text-align: left;
  gap: 13px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.goal-item:last-child {
  border-bottom: 0;
}
.goal-item:hover .goal-name {
  color: var(--blue);
}
.goal-symbol {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eff2fc;
  color: #7281bf;
  flex-shrink: 0;
  margin-top: 2px;
}
.goal-symbol.c1 {
  background: #edf6f1;
  color: #79a78f;
}
.goal-symbol.c2 {
  background: #f3effa;
  color: #a18abd;
}
.goal-symbol.c3 {
  background: #fbf3e9;
  color: #b49a79;
}
.goal-symbol.c4 {
  background: #fceff0;
  color: #bf9099;
}
.goal-symbol .icon {
  width: 18px;
  height: 18px;
}
.goal-content {
  flex: 1;
  min-width: 0;
}
.goal-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  transition: color 0.2s;
  display: block;
}
.goal-category {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}
.goal-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #8d98ac;
  margin-top: 13px;
}
.goal-progress-label b {
  color: #6e7baf;
  font-weight: 600;
  font-size: 12px;
}
.progress-track {
  height: 4px;
  border-radius: 4px;
  background: #eff1f6;
  overflow: hidden;
  margin: 7px 0 7px;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: #8e9dd7;
  transition: width 1s var(--ease);
}
.c1 .progress-fill {
  background: #91bba7;
}
.c2 .progress-fill {
  background: #af9acc;
}
.c3 .progress-fill {
  background: #c7af8a;
}
.c4 .progress-fill {
  background: #ce9faa;
}
.goal-pace {
  font-size: 9px;
  color: #a0a8b9;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}
.goal-item > .icon {
  width: 13px;
  height: 13px;
  color: #c2c8d5;
  margin-top: 10px;
}
.goals-foot {
  padding: 16px 24px 20px;
  border-top: 1px solid #f1f2f6;
}
.goals-foot .text-button {
  font-size: 11px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}
.metric {
  animation-delay: 0.22s;
  padding: 21px 24px;
}
.metric-title {
  font-size: 13px;
  font-weight: 600;
}
.metric .info {
  color: #abb3c3;
  width: 13px;
  height: 13px;
}
.metric-content {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 17px;
}
.gauge {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.gauge svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge circle {
  fill: none;
  stroke-width: 5;
}
.gauge .track {
  stroke: #eef1f6;
}
.gauge .arc {
  stroke: #8bb49e;
  stroke-linecap: round;
  stroke-dasharray: 226.2;
  stroke-dashoffset: 226.2;
  transition: stroke-dashoffset 1.3s var(--ease);
}
.gauge.blue .arc {
  stroke: #8f9bd7;
}
.gauge.rose .arc {
  stroke: #d8ac91;
}
.gauge strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.gauge strong small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 1px;
}
.metric-description {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
}
.metric-description b {
  color: #7a859d;
  font-weight: 500;
  display: block;
  font-size: 11px;
}
.metric-foot {
  font-size: 9px;
  color: #a5adbd;
  margin-top: 10px;
}
.bottom-note {
  color: #afb6c4;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  padding: 0 2px;
}
.mobile-toggle,
.mobile-advisor {
  display: none;
}
.section-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin: 0 0 18px;
}
.section-content {
  padding: 24px;
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.data-list {
  display: grid;
  gap: 14px;
}
.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.data-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.data-row strong {
  font-weight: 550;
}
.data-row .row {
  flex-wrap: wrap;
}
.goal-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.goal-cards .card {
  padding: 24px;
  cursor: pointer;
}
.goal-cards h3 {
  font-size: 16px;
  margin: 16px 0 3px;
  letter-spacing: -0.4px;
}
.goal-cards .goal-symbol {
  width: 43px;
  height: 43px;
}
.goal-cards .progress-track {
  margin: 17px 0 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: grid;
  gap: 7px;
  align-content: start;
}
.field.full {
  grid-column: 1/-1;
}
.field > span,
.field > label {
  font-size: 11px;
  color: #727d94;
  font-weight: 550;
}
.input {
  width: 100%;
  border: 1px solid #e2e6ef;
  background: #fcfcfe;
  border-radius: 9px;
  padding: 11px 12px;
  outline: 0;
  color: var(--ink);
  font-size: 12px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  min-height: 40px;
}
.input:focus {
  border-color: #9ca6e0;
  box-shadow: 0 0 0 3px #5966c90c;
  background: #fff;
}
.input:disabled {
  background: #f2f3f7;
  color: #8992a6;
}
.input::placeholder {
  color: #afb6c6;
}
.input.small {
  padding: 7px 10px;
  min-height: 33px;
}
textarea.input {
  resize: vertical;
  min-height: 80px;
}
.field small {
  font-size: 10px;
  color: #9ba4b6;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  color: var(--sub);
  line-height: 1.7;
}
.check-label input {
  accent-color: var(--blue);
  margin-top: 4px;
  flex-shrink: 0;
}
.weekdays-select {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.weekdays-select label {
  font-size: 11px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.help {
  padding: 13px 16px;
  border: 1px solid #ebedf8;
  background: #f7f8fd;
  border-radius: 10px;
  color: #8b94a9;
  font-size: 11px;
  line-height: 1.8;
}
.help.warning {
  background: #fcf7ef;
  border-color: #f4e7d2;
  color: #aa926d;
}
.help.success {
  background: #f0f8f3;
  color: #749381;
  border-color: #dbeee2;
}
.error-message {
  color: #bc747c;
  font-size: 12px;
  white-space: pre-wrap;
}
.toast {
  position: fixed;
  bottom: 27px;
  left: calc(50% + 119px);
  z-index: 100;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  background: #30394e;
  color: #fff;
  padding: 12px 21px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 7px 25px #30394e25;
  transition: all 0.3s var(--ease);
  max-width: min(500px, 90vw);
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: #985f69;
}
dialog {
  width: min(600px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #e8ebf4;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 30px 100px #222d3e25;
  color: var(--ink);
  background: #fff;
}
dialog::backdrop {
  background: #222c4240;
  backdrop-filter: blur(6px);
}
dialog[open] {
  animation: modal-in 0.3s var(--ease);
}
.modal-head {
  padding: 24px 28px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #f1f2f6;
}
.modal-head h2 {
  font-size: 19px;
  letter-spacing: -0.6px;
  margin: 0;
}
.modal-body {
  padding: 24px 28px 28px;
}
.modal-body .form-actions {
  margin-bottom: 0;
}
.modal-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 20px;
}
.modal-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
}
.modal-tabs button {
  font-size: 12px;
  padding: 0 0 11px;
  color: #95a0b3;
  border-bottom: 2px solid transparent;
}
.modal-tabs button.active {
  color: var(--blue);
  border-color: var(--blue);
}
.dialog-wide {
  width: min(790px, calc(100% - 32px));
}
.modal-stat {
  font-size: 35px;
  font-weight: 600;
  color: #6471be;
  letter-spacing: -1.5px;
}
.modal-stat small {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
}
.entry {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.entry-date {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.entry p {
  margin: 4px 0;
  color: var(--sub);
  font-size: 11px;
  white-space: pre-wrap;
}
.entry .delta {
  float: right;
  color: var(--green);
  font-size: 13px;
}
.stage-row {
  display: flex;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
}
.stage-row button {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  text-align: left;
}
.stage-row small {
  color: var(--muted);
}
.stage-row.done {
  color: var(--muted);
}
.stage-row .task-check .icon {
  opacity: 1;
  transform: scale(1);
}
.stage-row.done .task-check {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}
.week-column {
  min-height: 250px;
  padding: 18px 14px;
}
.week-column .week-day {
  font-size: 10px;
  color: var(--muted);
}
.week-column .week-date {
  font-size: 25px;
  letter-spacing: -1px;
  margin: 5px 0 8px;
  display: block;
}
.week-column .week-summary {
  font-size: 10px;
  color: var(--sub);
  margin-bottom: 14px;
}
.week-task {
  width: 100%;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-align: left;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.week-task.done {
  color: var(--muted);
  text-decoration: line-through;
}
.week-column.today-col {
  border-color: #c9cfee;
  box-shadow: 0 3px 18px -10px #5966c955;
}
.week-column .cal-dot {
  display: inline-block;
  margin-right: 4px;
}
.week-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.number-card {
  padding: 23px;
}
.number-card strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -1px;
  display: block;
  margin-top: 6px;
}
.number-card p {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.toolbar .row {
  flex-wrap: wrap;
}
.task-table {
  padding: 4px 25px 20px;
}
.task-group-label {
  font-size: 11px;
  font-weight: 600;
  color: #77839c;
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--line);
}
.task-table .task-item {
  min-height: 62px;
}
.chat {
  max-height: 360px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  scroll-behavior: smooth;
  padding-right: 6px;
}
.chat-message {
  padding: 14px 17px;
  border-radius: 13px;
  background: #f6f7fc;
  font-size: 12px;
  color: var(--sub);
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-message.user {
  background: #eef0fb;
  color: #6977ae;
  margin-left: 30px;
}
.chat-message small {
  display: block;
  color: #a2aabd;
  font-size: 9px;
  margin-top: 7px;
}
.chat-message .vote {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.chat-form {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.plan {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan.featured {
  border-color: #b9c1ee;
  background: #f9faff;
}
.plan .price {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
}
.plan .price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}
.plan p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 auto;
}
.scroll-x {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.admin-table th {
  color: var(--muted);
  font-weight: 500;
  text-align: left;
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.chart {
  display: flex;
  align-items: flex-end;
  height: 170px;
  gap: 6px;
  padding-top: 20px;
}
.chart-col {
  flex: 1;
  min-width: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 8px;
}
.chart-bar {
  min-height: 2px;
  width: 100%;
  background: #c6cee9;
  border-radius: 5px 5px 2px 2px;
  transition: height 1s var(--ease);
}
.chart-label {
  font-size: 8px;
  color: #a0a9ba;
  white-space: nowrap;
}
.chart-col.today-bar .chart-bar {
  background: #8796d0;
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(400px, 1fr);
  background: #fff;
}
.auth-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #f0f2f8;
  padding: 55px 65px;
}
.auth-art::before,
.auth-art::after {
  content: "";
  position: absolute;
  border: 1px solid #dce1ef;
  border-radius: 50%;
  width: 620px;
  height: 620px;
  right: -270px;
  bottom: -120px;
  pointer-events: none;
}
.auth-art::after {
  width: 450px;
  height: 450px;
  right: -185px;
  bottom: -35px;
}
.auth-art h1 {
  font-family: Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -2px;
  font-size: 54px;
  margin: 0 0 25px;
  max-width: 460px;
  position: relative;
  z-index: 1;
}
.auth-art p {
  color: #949eb4;
  font-size: 13px;
  max-width: 320px;
  line-height: 1.9;
  margin: 0;
}
.auth-art .brand {
  margin-bottom: 100px;
}
.auth-art .auth-foot {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: #a5aec0;
  position: relative;
  z-index: 1;
  margin-top: 80px;
}
.auth-art .orbit {
  position: absolute;
  right: 10%;
  bottom: 23%;
  display: grid;
  place-items: center;
  width: 115px;
  height: 115px;
  border: 1px solid #e2e6f0;
  border-radius: 24px;
  background: #ffffffa6;
  box-shadow: 0 15px 50px #2639590b;
  transform: rotate(-10deg);
  animation: float 9s ease-in-out infinite;
}
.orbit .icon {
  width: 50px;
  height: 50px;
  color: #bca577;
}
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 65px;
  max-width: 570px;
  width: 100%;
  margin: auto;
}
.auth-panel h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 0 0 10px;
  font-weight: 600;
}
.auth-panel > .sub {
  font-size: 12px;
  margin: 0 0 32px;
}
.auth-panel form {
  display: grid;
  gap: 18px;
}
.auth-panel .btn {
  min-height: 46px;
}
.auth-panel .auth-switch {
  font-size: 11px;
  color: var(--muted);
  margin: 23px 0;
  text-align: center;
}
.auth-panel .auth-privacy {
  font-size: 10px;
  color: #a7afbe;
  line-height: 1.8;
  margin-top: 25px;
}
.auth-panel .text-button {
  font-weight: 500;
}
.inline-error {
  padding: 12px 14px;
  background: #fcf2f3;
  border: 1px solid #f4e3e6;
  border-radius: 9px;
  font-size: 11px;
  color: #b97480;
  white-space: pre-wrap;
}
.auth-mobile-brand {
  display: none;
}
.install-shell {
  min-height: 100dvh;
  padding: 50px 20px;
  background:
    radial-gradient(ellipse at 20% 0, #eef0fc, transparent 55%), var(--bg);
}
.install-shell > .brand {
  justify-content: center;
  margin-bottom: 30px;
}
.installer {
  max-width: 650px;
  margin: 0 auto;
  padding: 35px;
}
.installer h1 {
  font-size: 26px;
  letter-spacing: -1px;
  margin: 10px 0 12px;
}
.installer p {
  font-size: 12px;
  color: var(--sub);
}
.steps {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 20px;
  margin: 0 0 25px;
}
.steps span {
  font-size: 10px;
  color: #b0b8c7;
  display: flex;
  align-items: center;
  gap: 6px;
}
.steps b {
  font-size: 9px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 500;
}
.steps .active {
  color: var(--blue);
}
.steps .active b {
  background: var(--blue-soft);
  border-color: #dfe3f5;
}
.requirement {
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.requirement b {
  font-weight: 500;
  font-size: 11px;
  color: var(--green);
}
.requirement b.no {
  color: var(--red);
}
.install-footer {
  text-align: center;
  color: #acb4c4;
  font-size: 10px;
  margin-top: 25px;
}
.status-badge {
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #7e8bb5;
  background: #f0f3fb;
}
.status-badge.active,
.status-badge.succeeded {
  background: #edf7f0;
  color: #7ba68b;
}
.status-badge.blocked,
.status-badge.failed {
  background: #fbefef;
  color: #be858d;
}
.status-badge.cancelled {
  background: #faf5e9;
  color: #af9a68;
}
.mobile-backdrop {
  display: none;
}
.note-body {
  white-space: pre-wrap;
}
.no-margin {
  margin: 0;
}
.space-top {
  margin-top: 20px;
}
.spacer {
  height: 18px;
}
.stage-edit-row {
  display: grid;
  grid-template-columns: 1fr 80px 30px;
  gap: 8px;
  margin: 8px 0;
}
.footer-links {
  display: flex;
  gap: 14px;
}
.foot-button {
  font-size: 9px;
  color: var(--muted);
  padding: 0;
}
.reveal-value {
  animation: rise 0.55s var(--ease) both;
}
.progress-track,
.progress-fill {
  display: block;
}
.task-item[draggable="true"] .task-grip {
  display: block;
}
.task-move {
  display: none;
  gap: 2px;
}
.task-item:hover .task-move {
  display: flex;
}
.task-move .icon-button {
  width: 24px;
  height: 24px;
}
.task-move .icon {
  width: 12px;
  height: 12px;
}
.field .check-label {
  font-weight: 400;
}
.inline-stack {
  display: grid;
  gap: 8px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes float {
  50% {
    transform: translateY(-12px) rotate(-7deg);
  }
}
@media (min-width: 1600px) {
  .workspace {
    padding: 40px 46px;
  }
  .cal-day {
    min-height: 58px;
  }
  .task-item {
    min-height: 66px;
  }
  .goal-item {
    padding: 27px 0;
  }
  .metrics-grid {
    gap: 22px;
  }
  .metric {
    padding: 25px 30px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 210px;
    padding: 30px 17px 20px;
  }
  .brand {
    gap: 8px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand img {
    width: 37px;
    height: 37px;
  }
  .workspace {
    margin-left: 210px;
    padding: 28px 25px;
  }
  .top-actions .search-box {
    min-width: 180px;
    width: 180px;
  }
  .date-pill {
    padding: 0 9px;
    font-size: 10px;
  }
  .panel-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(265px, 1fr);
    gap: 18px;
  }
  .central {
    gap: 18px;
  }
  .card-head {
    padding: 21px 21px 16px;
  }
  .calendar-inner {
    padding: 0 17px 18px;
  }
  .cal-day {
    min-height: 44px;
  }
  .task-list {
    padding: 3px 21px 5px;
  }
  .day-progress {
    margin: 0 21px 4px;
  }
  .day-footer {
    padding: 14px 21px 18px;
  }
  .goals-card .card-head {
    gap: 6px;
  }
  .goal-list {
    padding: 0 20px;
  }
  .goal-item {
    gap: 10px;
    padding: 23px 0;
  }
  .goal-symbol {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }
  .goal-name {
    font-size: 11px;
  }
  .metric {
    padding: 19px;
  }
  .metric-content {
    gap: 12px;
  }
  .gauge {
    width: 67px;
    height: 67px;
  }
  .gauge strong {
    font-size: 18px;
  }
  .toast {
    left: calc(50% + 105px);
  }
  .week-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .goal-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-art {
    padding: 45px;
  }
  .auth-panel {
    padding: 50px;
  }
}
@media (max-width: 1020px) {
  .sidebar {
    width: 185px;
    padding: 28px 13px 18px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand img {
    width: 33px;
    height: 33px;
  }
  .brand small {
    font-size: 6px;
  }
  .nav button {
    padding: 12px 14px;
    font-size: 12px;
  }
  .side-advisor {
    padding: 14px;
  }
  .side-advisor p {
    font-size: 11px;
  }
  .workspace {
    margin-left: 185px;
    padding: 25px 22px;
  }
  .topbar {
    gap: 10px;
  }
  .topbar h1 {
    font-size: 25px;
  }
  .top-actions .search-box {
    width: 155px;
    min-width: 0;
  }
  .date-pill .date-full {
    display: none;
  }
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .goals-card .goal-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .goals-card .goal-item:last-child {
    border-bottom: 1px solid var(--line);
  }
  .goals-card .goals-foot {
    border: 0;
  }
  .metric {
    padding: 18px 15px;
  }
  .metric-content {
    gap: 10px;
  }
  .gauge {
    width: 58px;
    height: 58px;
  }
  .gauge strong {
    font-size: 16px;
  }
  .metric-description {
    font-size: 9px;
  }
  .metric-description b {
    font-size: 10px;
  }
  .toast {
    left: calc(50% + 92px);
  }
  .content-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .auth-art h1 {
    font-size: 44px;
  }
  .auth-art {
    padding: 35px;
  }
  .auth-panel {
    padding: 40px 32px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan {
    gap: 8px;
  }
  .metric-foot {
    font-size: 8px;
  }
  .week-summary-grid {
    gap: 12px;
  }
  .number-card {
    padding: 18px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    width: 245px;
    transition: transform 0.35s var(--ease);
    padding: 28px 23px 20px;
    z-index: 60;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.open ~ .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: #222c4240;
    backdrop-filter: blur(3px);
    z-index: 50;
  }
  .sidebar .brand strong {
    font-size: 19px;
  }
  .sidebar .brand img {
    width: 42px;
    height: 42px;
  }
  .sidebar .brand small {
    font-size: 8px;
  }
  .sidebar .nav button {
    font-size: 13px;
  }
  .sidebar .side-advisor {
    display: none;
  }
  .workspace {
    margin-left: 0;
    padding: 20px 16px 25px;
  }
  .mobile-toggle {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .topbar {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 23px;
    flex-wrap: wrap;
  }
  .top-title {
    flex: 1;
  }
  .topbar h1 {
    font-size: 23px;
    margin-top: 2px;
    letter-spacing: -0.7px;
  }
  .topbar p {
    font-size: 10px;
  }
  .top-actions {
    gap: 8px;
    margin-left: auto;
  }
  .top-actions .search-box {
    display: none;
  }
  .date-pill {
    height: 36px;
    padding: 0 10px;
    font-size: 10px;
  }
  .top-actions > .btn {
    display: none;
  }
  .panel-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .central {
    display: contents;
  }
  .day-card {
    order: 1;
    width: 100%;
  }
  .calendar {
    order: 2;
    width: 100%;
  }
  .goals-card {
    order: 3;
    width: 100%;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 18px;
  }
  .metric {
    padding: 20px 22px;
  }
  .metric-content {
    margin-top: 12px;
    gap: 23px;
  }
  .gauge {
    width: 70px;
    height: 70px;
  }
  .gauge strong {
    font-size: 20px;
  }
  .metric-description {
    font-size: 10px;
  }
  .metric-description b {
    font-size: 12px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .mobile-advisor {
    display: block;
    margin-top: 18px;
    padding: 23px;
  }
  .mobile-advisor .icon {
    color: var(--gold);
  }
  .mobile-advisor p {
    font-size: 12px;
    color: var(--sub);
    line-height: 1.9;
  }
  .card-head {
    padding: 20px 20px 15px;
  }
  .card-head h2 {
    font-size: 15px;
  }
  .calendar-inner {
    padding: 0 15px 17px;
  }
  .cal-day {
    min-height: 47px;
  }
  .calendar-controls {
    gap: 6px;
  }
  .month-label {
    min-width: 100px;
    font-size: 11px;
  }
  .calendar .card-head {
    flex-wrap: wrap;
  }
  .task-list {
    padding: 4px 20px;
  }
  .task-title {
    font-size: 12px;
  }
  .task-item {
    gap: 10px;
    min-height: 63px;
  }
  .task-item .icon-button.flat {
    width: 25px;
  }
  .task-time {
    font-size: 10px;
  }
  .task-grip,
  .task-item:hover .task-grip {
    display: none;
  }
  .day-footer {
    padding: 15px 20px 20px;
  }
  .goals-card .goal-list {
    display: block;
    padding: 0 20px;
  }
  .goal-item {
    padding: 20px 0;
    gap: 14px;
  }
  .goal-symbol {
    width: 37px;
    height: 37px;
  }
  .goal-name {
    font-size: 12px;
  }
  .goals-card .goal-item:last-child {
    border-bottom: 0;
  }
  .goal-progress-label {
    margin-top: 10px;
  }
  .goal-cards {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .content-grid {
    gap: 16px;
  }
  .week-board {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    gap: 12px;
  }
  .week-column {
    min-width: 175px;
    scroll-snap-align: start;
  }
  .week-summary-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .number-card {
    padding: 17px;
  }
  .number-card strong {
    font-size: 23px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .input {
    width: 100%;
  }
  .task-table {
    padding: 0 18px 18px;
  }
  .form-grid {
    gap: 15px;
  }
  .field.full-mobile {
    grid-column: 1/-1;
  }
  .toast {
    left: 50%;
    bottom: 20px;
    font-size: 11px;
    width: max-content;
    max-width: 90vw;
    text-align: center;
  }
  .bottom-note {
    margin-top: 25px;
    gap: 15px;
    font-size: 8px;
  }
  .bottom-note > span:last-child {
    display: none;
  }
  dialog {
    max-height: 93dvh;
    border-radius: 18px;
  }
  .modal-head {
    padding: 21px 21px 17px;
  }
  .modal-body {
    padding: 20px 21px 23px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .modal-body .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-body .field.full {
    grid-column: auto;
  }
  .modal-tabs {
    gap: 15px;
    overflow-x: auto;
  }
  .modal-tabs button {
    white-space: nowrap;
    font-size: 11px;
  }
  .section-content {
    padding: 21px;
  }
  .form-actions {
    flex-wrap: wrap;
  }
  .auth-shell {
    display: block;
    background: var(--bg);
  }
  .auth-art {
    display: none;
  }
  .auth-panel {
    padding: 45px 27px;
    min-height: 100dvh;
    max-width: 460px;
  }
  .auth-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Georgia, serif;
    font-size: 20px;
    margin-bottom: 55px;
  }
  .auth-mobile-brand img {
    width: 42px;
  }
  .auth-panel h2 {
    font-size: 26px;
  }
  .auth-panel .input {
    min-height: 46px;
    font-size: 14px;
  }
  .auth-panel .field > span {
    font-size: 12px;
  }
  .auth-panel .sub {
    font-size: 12px;
  }
  .installer {
    padding: 25px 22px;
  }
  .install-shell {
    padding: 30px 16px;
  }
  .installer .form-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 17px;
  }
  .steps span {
    font-size: 9px;
  }
  .chat {
    max-height: 45dvh;
  }
  .chart {
    gap: 4px;
  }
  .chart-label {
    font-size: 7px;
  }
  .help {
    font-size: 10px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .data-row {
    align-items: flex-start;
  }
  .metric {
    animation-delay: 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  dialog::backdrop {
    backdrop-filter: none;
  }
}

@media (max-width: 700px) {
  .task-item[draggable="true"] .task-grip {
    display: none;
  }
}
