@import url("./responsive.css");
@import url("./modules.css");
.nav-children {
  margin: 3px 0 10px 31px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
}
.nav-children a {
  padding: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  border-radius: 5px;
}
.nav-children a.active,
.nav-children a:hover {
  color: var(--accent);
  background: var(--surface);
}
.segmented a {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 5px;
}
.segmented a.active {
  background: var(--surface-3);
  color: var(--text);
}
.storage-meter {
  display: block;
  width: 100%;
  height: 4px;
  margin: 12px 0 10px;
  border: 0;
  background: var(--surface-3);
}
.storage-meter::-webkit-meter-bar {
  background: var(--surface-3);
  border: 0;
}
.storage-meter::-webkit-meter-optimum-value {
  background: var(--accent);
}
.feed-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.feed-sources > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.8rem;
}
.feed-sources > div > span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.feed-sources .button {
  font-size: 0.7rem;
  padding: 7px 10px;
}
.feed-title {
  line-height: 1.7;
  margin: 15px 0 10px;
}
.feed-title a:hover {
  color: var(--accent);
}
[data-local-clock] {
  font-variant-numeric: tabular-nums;
}
:root {
  color-scheme: dark;
  --bg: #101211;
  --surface: #181b19;
  --surface-2: #1e221f;
  --surface-3: #252a26;
  --sidebar: #141715;
  --text: #f0f2ee;
  --muted: #8e968f;
  --line: #ffffff0d;
  --accent: #c0d9a4;
  --accent-ink: #1b2717;
  --radius: 18px;
  --font-size: 14px;
  --motion: 195ms;
  --shadow: 0.25;
  --glass: 0.6;
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: var(--font-size);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 550;
}
h1 {
  font-size: 2.3rem;
  letter-spacing: -1.3px;
  margin: 10px 0 8px;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 1rem;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
small {
  font-size: 0.77rem;
}
button {
  transition:
    background var(--motion),
    transform var(--motion),
    color var(--motion);
}
button:active {
  transform: translateY(1px);
}
input,
select,
textarea {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  padding: 11px 13px;
  max-width: 100%;
  min-width: 0;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-color: transparent;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
input[type="color"] {
  width: 100%;
  height: 43px;
  padding: 5px;
}
input[type="range"] {
  accent-color: var(--accent);
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--muted);
}
label input,
label select,
label textarea {
  color: var(--text);
}
.muted {
  color: var(--muted);
  line-height: 1.7;
}
.eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--muted);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface-2);
  white-space: nowrap;
}
.button:hover {
  background: var(--surface-3);
}
.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
  box-shadow: 0 2px 12px #0001;
}
.button.primary:hover {
  filter: brightness(1.07);
}
.button.subtle {
  background: transparent;
  border-color: #ffffff13;
}
.button.full {
  width: 100%;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: transparent;
  border-radius: 7px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--muted);
  padding: 5px 0;
  font-size: 0.8rem;
}
.text-button:hover {
  color: var(--accent);
}
.danger {
  color: #e79d9d;
}
.check-label {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.85rem;
}
.live-dot {
  display: inline-block;
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 30px 18px 15px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.8rem;
  font-weight: 650;
  letter-spacing: -1.2px;
  padding: 0 12px;
}
.brand-mark {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -2px;
  background: var(--accent);
  color: var(--accent-ink);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 3px;
}
.brand-dot {
  color: var(--accent);
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 10px;
  margin: 27px 0 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.workspace-avatar {
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  background: #c0d9a410;
  color: var(--accent);
  border: 1px solid #c0d9a420;
  border-radius: 7px;
  font-size: 0.8rem;
}
.workspace-label > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.workspace-label strong {
  font-size: 0.76rem;
  font-weight: 500;
}
.workspace-label div span {
  font-size: 0.63rem;
  color: var(--muted);
}
.sidebar nav {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
.nav-group {
  margin: 18px 0;
}
.nav-label {
  display: block;
  padding: 0 12px 10px;
  font-size: 0.58rem;
  letter-spacing: 1.7px;
  color: #707b73;
  font-weight: 650;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #98a198;
  margin: 3px 0;
  position: relative;
}
.nav-link svg {
  width: 17px;
  height: 17px;
}
.nav-link:hover {
  background: var(--surface);
}
.nav-link.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.nav-link.active:before {
  content: "";
  position: absolute;
  width: 3px;
  height: 15px;
  background: var(--accent);
  left: -18px;
  border-radius: 3px;
}
.nav-link small {
  margin-left: auto;
  background: #ffffff09;
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
}
.sidebar-bottom {
  padding-top: 5px;
  border-top: 1px solid var(--line);
}
.storage-mini {
  margin: 15px 12px;
}
.storage-mini > div:first-child {
  display: flex;
  justify-content: space-between;
  color: #9aa198;
  font-size: 0.65rem;
}
.storage-bar {
  height: 3px;
  background: var(--surface-3);
  border-radius: 5px;
  margin: 11px 0;
}
.storage-bar i {
  display: block;
  height: 3px;
  background: var(--accent);
  width: 4%;
  border-radius: 5px;
}
.storage-mini small {
  font-size: 0.6rem;
  color: #667167;
}
.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.57rem;
  color: #68756a;
  padding: 12px 6px 0;
}
.sidebar-foot > span:last-child {
  margin-left: auto;
}
.main-shell {
  margin-left: 244px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 85px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  background: color-mix(
    in srgb,
    var(--sidebar) calc(var(--glass) * 100%),
    transparent
  );
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 20;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: #747d75;
  white-space: nowrap;
}
.breadcrumb span {
  color: #bdc4bc;
}
.search-trigger {
  margin-left: auto;
  width: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 8px;
  color: #7a847b;
  font-size: 0.72rem;
}
.search-trigger kbd {
  margin-left: auto;
  white-space: nowrap;
}
kbd {
  font-size: 0.6rem;
  color: #7f8980;
  background: var(--surface-2);
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 3px 0 3px 7px;
  text-align: left;
}
.avatar,
.profile img {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c0d9a422;
  color: var(--accent);
  font-size: 0.85rem;
  object-fit: cover;
  border: 1px solid #c0d9a425;
}
.profile > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.profile strong {
  font-size: 0.75rem;
  font-weight: 500;
}
.profile small {
  font-size: 0.6rem;
  color: var(--muted);
}
.profile > svg {
  transform: rotate(90deg);
  margin-left: 8px;
}
.profile-menu {
  position: absolute;
  right: 35px;
  top: 70px;
  width: 200px;
  padding: 7px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 60px #0008;
}
.profile-menu a,
.profile-menu button {
  display: flex;
  gap: 8px;
  width: 100%;
  background: transparent;
  padding: 11px 12px;
  font-size: 0.85rem;
  text-align: left;
  border-radius: 6px;
}
.profile-menu a:hover,
.profile-menu button:hover {
  background: var(--surface-3);
}
#mobile-menu {
  display: none;
}
#content {
  padding: 38px 42px 20px;
  flex: 1;
  max-width: 1600px;
  width: 100%;
  margin: auto;
  animation: reveal var(--motion) ease-out;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0;
}
.heading-dot {
  color: var(--accent);
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 42px 20px;
  color: #4f5c51;
  font-size: 0.6rem;
  letter-spacing: 1px;
  gap: 15px;
}
.page-footer .muted {
  font-size: 0.64rem;
  letter-spacing: 0;
  margin-left: 8px;
  color: #657166;
}
#sync-status {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0;
  color: #7b897d;
}
.welcome-banner {
  border: 1px solid #c0d9a412;
  border-radius: var(--radius);
  min-height: 255px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 50%, #9eb7810d, transparent 60%),
    linear-gradient(120deg, #20261e, #181e18 70%);
  padding: 32px 35px;
}
.welcome-banner .eyebrow {
  font-size: 0.58rem;
  color: #8e9e85;
  letter-spacing: 1.8px;
}
.welcome-banner h2 {
  font-size: 2rem;
  line-height: 1.3;
  letter-spacing: -0.9px;
  margin: 15px 0 10px;
  font-weight: 450;
}
.welcome-banner p {
  font-size: 0.78rem;
  color: #95a18e;
  margin-bottom: 21px;
}
.welcome-banner .button {
  font-size: 0.72rem;
  padding: 9px 13px;
}
.banner-number {
  position: absolute;
  bottom: 20px;
  right: 25px;
  letter-spacing: 2px;
  font-size: 0.47rem;
  color: #65725d;
}
.orbit-art {
  position: absolute;
  right: 45px;
  top: -6px;
  width: 355px;
  height: 280px;
  pointer-events: none;
}
.orbit {
  position: absolute;
  border: 1px solid #c0d9a41c;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-28deg);
  width: 310px;
  height: 185px;
}
.orbit.o2 {
  width: 235px;
  height: 235px;
  transform: translate(-50%, -50%) rotate(35deg);
  border-color: #c0d9a412;
}
.orbit.o3 {
  width: 185px;
  height: 310px;
  transform: translate(-50%, -50%) rotate(-28deg);
  border-color: #c0d9a410;
}
.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  font-size: 5.5rem;
  font-weight: 600;
  letter-spacing: -9px;
  color: #a3b491;
  text-shadow: 0 0 50px #c0d9a430;
}
.orbit-core span {
  color: #d0e8b3;
}
.orbit-point {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c0d9a4;
  box-shadow: 0 0 20px #c0d9a440;
}
.p1 {
  top: 57px;
  left: 93px;
}
.p2 {
  top: 200px;
  left: 274px;
  width: 5px;
  height: 5px;
  background: #687b5b;
}
.p3 {
  top: 172px;
  left: 30px;
  width: 4px;
  height: 4px;
  background: #687b5b;
}
.orbit-caption {
  position: absolute;
  bottom: 27px;
  left: 80px;
  font-size: 0.44rem;
  letter-spacing: 2px;
  color: #65745d;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 33px;
}
.stat-grid article {
  position: relative;
  display: flex;
  gap: 13px;
  padding: 20px 18px 36px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 5px);
  background: var(--surface);
  box-shadow: 0 4px 20px rgb(0 0 0 / calc(var(--shadow) * 0.1));
}
.stat-grid article > svg {
  color: #a0b18e;
  background: #c0d9a408;
  box-sizing: content-box;
  padding: 8px;
  border-radius: 9px;
  width: 17px;
  height: 17px;
}
.stat-grid article > div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.stat-grid article > div > span {
  color: var(--muted);
  font-size: 0.68rem;
}
.stat-grid strong {
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1;
}
.stat-grid strong small {
  font-size: 0.8rem;
  color: #667363;
  margin-left: 5px;
  font-weight: 400;
}
.stat-caption {
  position: absolute;
  bottom: 15px;
  left: 18px;
  color: #667262;
  font-size: 0.59rem;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.section-title h2 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}
.section-title > span {
  font-size: 0.67rem;
}
.widget-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgb(0 0 0 / calc(var(--shadow) * 0.12));
  min-width: 0;
}
.widget.wide {
  grid-column: span 2;
}
.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}
.widget-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin: 0;
  font-weight: 500;
}
.widget-header h3 svg {
  color: #8b9984;
}
.widget-content {
  padding: 8px 18px;
  min-height: 185px;
}
.widget > footer {
  border-top: 1px solid var(--line);
  padding: 12px 20px;
  display: flex;
  justify-content: flex-end;
  color: #829177;
  font-size: 0.68rem;
}
.widget > footer a {
  display: flex;
  gap: 8px;
  align-items: center;
}
.widget > footer > span {
  font-size: 0.6rem;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 34px 15px;
}
.empty-orbit {
  display: inline-flex;
  padding: 10px;
  border: 1px dashed #8e9e7f35;
  border-radius: 50%;
  color: #8e9e7f66;
  margin-bottom: 12px;
}
.empty h3 {
  font-size: 0.83rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #aeb7a9;
}
.empty p {
  font-size: 0.72rem;
  line-height: 1.7;
  color: #6c7867;
  margin-bottom: 10px;
}
.empty .text-button {
  font-size: 0.69rem;
  color: #a1b18e;
}
.dashboard-end {
  text-align: center;
  font-size: 0.65rem;
  color: #667461;
  padding: 30px 0 5px;
}
.dashboard-end span {
  margin-right: 7px;
  color: #9bac88;
}
.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  padding: 18px;
  min-width: 0;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-top h3 {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}
.title-button {
  background: transparent;
  padding: 0;
  text-align: left;
  overflow-wrap: anywhere;
  font-weight: inherit;
}
.title-button:hover {
  color: var(--accent);
}
.card-icon {
  color: #a0b18e;
}
.task-check {
  width: 17px;
  height: 17px;
  border: 1px solid #66765e;
  border-radius: 5px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.task-check.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.completed .title-button {
  text-decoration: line-through;
  color: var(--muted);
}
.task-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.65rem;
  color: var(--muted);
  padding: 3px 0 0 27px;
}
.priority {
  font-size: 0.58rem;
  border-radius: 4px;
  padding: 3px 7px;
  background: #ffffff06;
}
.priority.high {
  color: #d6a18b;
  background: #d6a18b12;
}
.priority.normal {
  color: #bcbe9f;
  background: #bcbe9f0a;
}
.priority.low {
  color: #8aaea1;
  background: #8aaea10a;
}
.card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.card-actions .text-button {
  font-size: 0.66rem;
}
.widget .item-card {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 13px 0;
}
.widget .item-card:last-child {
  border-bottom: 0;
}
.widget .card-top h3 {
  font-size: 0.77rem;
}
.widget .card-actions {
  display: none;
}
.note-preview {
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: #75836e;
}
.agenda-item {
  display: flex;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--muted);
  font-size: 0.6rem;
  padding: 6px 9px;
  background: var(--surface-2);
  border-radius: 7px;
}
.agenda-date b {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}
.agenda-item > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 3px;
}
.agenda-item strong {
  font-size: 0.77rem;
  font-weight: 500;
}
.agenda-item small {
  color: var(--muted);
  font-size: 0.65rem;
}
.activity-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  font-size: 0.72rem;
  color: #a3ada0;
}
.activity-list > div > svg {
  color: #687a60;
}
.activity-list time {
  margin-left: auto;
  color: #677361;
  font-size: 0.61rem;
}
.big-stat {
  font-size: 3rem;
  padding: 20px 0;
}
.big-stat span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
.collection-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.input-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  flex: 1;
  color: var(--muted);
}
.input-search input {
  background: transparent;
  border: 0;
  width: 100%;
  padding: 10px 0;
  font-size: 0.8rem;
}
.collection-toolbar > select,
.collection-toolbar > input {
  font-size: 0.8rem;
  padding: 10px 12px;
}
.segmented {
  display: inline-flex;
  background: var(--surface);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  gap: 3px;
}
.segmented button {
  font-size: 0.74rem;
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 5px;
}
.segmented button.active {
  background: var(--surface-3);
  color: var(--text);
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.collection-grid.task-list {
  grid-template-columns: 1fr;
}
.task-list .card-actions {
  display: none;
}
.task-list .item-card {
  padding: 14px 20px;
}
.task-list .task-meta {
  padding-left: 27px;
}
.kanban {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 15px;
}
.kanban-column {
  min-width: 255px;
  flex: 1;
  background: #ffffff02;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.kanban-column > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}
.kanban-column > h3 small {
  margin-left: auto;
}
.kanban-column .item-card {
  margin-bottom: 10px;
}
.status-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #829376;
}
.status-dot.doing {
  background: #b8b994;
}
.status-dot.done {
  background: var(--accent);
}
progress {
  accent-color: var(--accent);
  width: 100%;
  height: 5px;
  border: 0;
  background: var(--surface-3);
  border-radius: 3px;
  margin: 10px 0 15px;
}
progress::-webkit-progress-bar {
  background: var(--surface-3);
  border-radius: 3px;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 3px;
}
.project-progress {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--muted);
}
.item-card > small {
  color: var(--muted);
}
.bookmark-url {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--accent);
  font-size: 0.8rem;
  padding: 14px 0;
  overflow-wrap: anywhere;
}
.journal-preview {
  white-space: pre-wrap;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.8;
}
.tag {
  display: inline-block;
  padding: 5px 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.7rem;
  border-radius: 5px;
  margin-top: 10px;
}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 0;
}
.done {
  text-decoration: line-through;
}
.habit-week {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.habit-week span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.7rem;
}
.habit-week span.checked {
  background: var(--accent);
  color: var(--accent-ink);
}
.clock-time {
  font-size: 2.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  padding: 15px 0;
}
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}
.calendar-controls strong {
  margin-left: 7px;
  font-size: 0.9rem;
  text-transform: capitalize;
}
.calendar-surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekday {
  text-align: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}
.calendar-day {
  min-height: 120px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px;
  min-width: 0;
}
.calendar-grid.week .calendar-day {
  min-height: 400px;
}
.calendar-day.outside {
  background: #0001;
  opacity: 0.5;
}
.day-number {
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  height: 26px;
  width: 26px;
  font-size: 0.74rem;
  margin-bottom: 6px;
}
.today .day-number {
  background: var(--accent);
  color: var(--accent-ink);
}
.calendar-event {
  display: block;
  max-width: 100%;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  background: #c0d9a410;
  color: var(--accent);
  font-size: 0.65rem;
  border-left: 2px solid var(--accent);
  padding: 5px 7px;
  border-radius: 3px;
  width: 100%;
  text-align: left;
  margin-bottom: 4px;
}
.agenda-row {
  display: flex;
  align-items: center;
  gap: 25px;
  width: 100%;
  text-align: left;
  padding: 22px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.agenda-row > span {
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 125px;
}
.agenda-row > strong {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 500;
}
.agenda-row > small {
  color: var(--muted);
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cloud-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 24px;
  color: var(--accent);
}
.cloud-summary > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.cloud-summary strong {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
}
.cloud-summary span {
  font-size: 0.7rem;
  color: var(--muted);
}
.cloud-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: auto;
  flex-wrap: wrap;
}
.file-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.file-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px;
}
.file-open {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 0 0;
}
.file-icon {
  color: #8b9a82;
  display: block;
  padding-bottom: 10px;
}
.file-icon.is-folder {
  color: var(--accent);
}
.file-open strong {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.file-open small {
  font-size: 0.65rem;
  color: var(--muted);
}
.file-card > .icon-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}
.file-grid.file-list {
  grid-template-columns: 1fr;
}
.file-list .file-card {
  padding: 12px 45px 12px 20px;
}
.file-list .file-open {
  flex-direction: row;
  padding: 0;
  gap: 18px;
}
.file-list .file-open small {
  margin-left: auto;
}
.file-list .file-icon {
  padding: 0;
}
.file-list .file-icon svg {
  height: 25px;
  width: 25px;
}
.file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.file-preview {
  max-height: 50vh;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  line-height: 1.6;
}
.focus-surface {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 35px;
  max-width: 800px;
  margin: 0 auto;
}
.timer-ring {
  width: 320px;
  height: 320px;
  max-width: 100%;
  border: 1px solid #c0d9a42a;
  box-shadow:
    0 0 0 15px #c0d9a404,
    0 0 0 30px #c0d9a402;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 45px auto;
}
.timer-ring .eyebrow {
  font-size: 0.55rem;
  letter-spacing: 1.3px;
}
#timer-time {
  font-size: 4.8rem;
  letter-spacing: -3px;
  font-weight: 250;
  font-variant-numeric: tabular-nums;
  padding: 16px 0;
}
#timer-caption {
  font-size: 0.7rem;
}
.timer-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.focus-surface > p {
  font-size: 0.7rem;
  margin-top: 30px;
}
#timer-duration {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  max-width: 320px;
  margin: 30px auto 0;
  text-align: left;
}
#timer-duration input {
  width: 130px;
}
.weather-main {
  padding: 35px;
  max-width: 850px;
}
.weather-top {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--accent);
  padding-top: 20px;
}
.weather-temperature {
  font-size: 5rem;
  font-weight: 250;
  letter-spacing: -3px;
  margin-top: 15px;
}
.weather-temperature small {
  font-size: 1.4rem;
  letter-spacing: 0;
  vertical-align: top;
  display: inline-block;
  margin-top: 15px;
  margin-left: 4px;
  color: var(--muted);
}
.weather-card .weather-temperature {
  font-size: 3.5rem;
}
.weather-card .weather-top {
  justify-content: space-between;
  font-size: 0.85rem;
}
.weather-card p {
  font-size: 0.8rem;
  color: var(--muted);
}
#weather-forecast {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}
.forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 25px 0;
}
.forecast-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 15px 0;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.forecast-grid strong {
  color: var(--text);
}
.settings-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 35px;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  align-self: start;
  padding-top: 10px;
  gap: 4px;
}
.settings-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.79rem;
  border-radius: 8px;
}
.settings-nav a.active {
  background: #c0d9a40c;
  color: var(--accent);
}
.settings-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 850px;
}
.settings-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.settings-panel > p,
.settings-section-title p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.8;
}
.settings-panel form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.settings-section-title {
  border-bottom: 1px solid var(--line);
  margin-bottom: 25px;
  padding-bottom: 10px;
}
.settings-save {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.settings-save span {
  font-size: 0.66rem;
  color: var(--muted);
}
.theme-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 25px;
  color: var(--muted);
  font-size: 0.8rem;
}
.theme-preview > div {
  display: flex;
  width: 180px;
  height: 95px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 8px;
  gap: 8px;
}
.preview-sidebar {
  width: 30px;
  background: var(--surface-3);
  border-radius: 3px;
}
.theme-preview > div > div {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.theme-preview i {
  background: var(--surface-3);
  border-radius: 3px;
}
.theme-preview i:first-child {
  grid-column: span 2;
  background: #c0d9a41a;
}
.settings-list {
  margin-top: 25px;
}
.settings-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.settings-list > div > span {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.settings-list strong {
  font-size: 0.85rem;
  font-weight: 500;
}
.settings-list small {
  color: var(--muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}
.avatar.large {
  width: 65px;
  height: 65px;
  font-size: 1.4rem;
}
.profile-preview {
  display: flex;
  align-items: center;
  gap: 20px;
}
.notice {
  padding: 15px;
  border: 1px solid #c0d9a41a;
  background: #c0d9a407;
  border-radius: 10px;
  color: #a8b89c;
  font-size: 0.78rem;
  line-height: 1.8;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-error {
  color: #e79d9d;
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 0;
}
.rich-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
}
.rich-toolbar button {
  background: var(--surface-3);
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 0.8rem;
}
[data-editor] {
  min-height: 220px;
  max-height: 40vh;
  overflow: auto;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
[data-editor] a {
  color: var(--accent);
  text-decoration: underline;
}
#autosave-status {
  color: var(--muted);
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid #ffffff16;
  border-radius: var(--radius);
  padding: 0;
  width: min(610px, calc(100% - 32px));
  max-height: 90dvh;
  box-shadow: 0 30px 100px #0009;
}
dialog::backdrop {
  background: #050905b3;
  backdrop-filter: blur(7px);
}
dialog[open] {
  animation: reveal var(--motion) ease-out;
}
.modal-form > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 27px;
  border-bottom: 1px solid var(--line);
}
.modal-form > header h2 {
  margin: 6px 0 0;
  font-size: 1.35rem;
}
.modal-form > header .eyebrow {
  font-size: 0.56rem;
}
.form-body {
  padding: 25px 27px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}
.modal-form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 27px;
  border-top: 1px solid var(--line);
}
.modal-form > .form-error {
  padding: 0 27px 10px;
}
.widget-config-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.widget-config-list > div {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.8rem;
  gap: 7px;
}
.widget-config-list > div > span {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
#search-dialog {
  width: min(650px, calc(100% - 30px));
  margin-top: 15vh;
}
.command-input {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.command-input input {
  background: transparent;
  border: 0;
  flex: 1;
  padding: 6px 0;
  outline: 0;
}
.search-results {
  padding: 8px;
  max-height: 50vh;
  overflow: auto;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  text-align: left;
  padding: 13px;
  border-radius: 7px;
  width: 100%;
  font-size: 0.85rem;
}
.search-result > svg {
  color: var(--muted);
}
.search-result small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.65rem;
}
.search-result.selected,
.search-result:hover {
  background: var(--surface-3);
}
#search-dialog footer {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  color: var(--muted);
  display: flex;
  gap: 25px;
}
#toasts {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 40px);
}
.toast {
  padding: 15px 20px;
  background: var(--surface-3);
  border: 1px solid #c0d9a440;
  border-radius: 10px;
  color: var(--text);
  font-size: 0.8rem;
  box-shadow: 0 15px 45px #0005;
  animation: reveal var(--motion);
}
.toast.error {
  border-color: #e79d9d70;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.login-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 65px;
  background:
    radial-gradient(ellipse at 15% 80%, #a3bb7c0e, transparent 70%), #171d16;
  border-right: 1px solid var(--line);
}
.login-story .brand {
  padding: 0;
}
.login-story h1 {
  font-size: 4.7rem;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -3px;
  margin: 25px 0;
}
.login-story h1 em {
  font-style: normal;
  color: var(--accent);
}
.login-story p {
  color: #8c9b83;
  line-height: 1.9;
  font-size: 0.95rem;
}
.login-story small {
  font-size: 0.55rem;
  letter-spacing: 2.5px;
  color: #63705b;
}
.story-line {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #a0af94;
  font-size: 0.7rem;
  margin-top: 35px;
}
.story-line span {
  height: 1px;
  width: 35px;
  background: #91a27d;
}
.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form {
  width: 100%;
  max-width: 365px;
}
.login-form h2 {
  font-size: 1.8rem;
  line-height: 1.4;
  letter-spacing: -0.9px;
  margin: 15px 0 8px;
}
.login-form > .muted {
  font-size: 0.85rem;
  margin-bottom: 35px;
}
.login-form form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.login-form .check-label {
  font-size: 0.75rem;
}
.divider {
  position: relative;
  text-align: center;
  color: var(--muted);
  font-size: 0.7rem;
  margin: 25px 0;
}
.divider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}
.divider span {
  position: relative;
  background: var(--bg);
  padding: 0 12px;
}
.login-private {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 0.65rem;
  color: #6f7d69;
  margin-top: 25px;
}
.boot {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
}
.skeleton {
  min-height: 120px;
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(
    90deg,
    var(--surface),
    var(--surface-3),
    var(--surface)
  );
  background-size: 200%;
  animation: shimmer 1.5s infinite;
}
.boot .skeleton {
  width: 180px;
  min-height: 4px;
}
.boot p {
  font-size: 0.8rem;
}
[hidden] {
  display: none !important;
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6f2;
  --surface: #fff;
  --surface-2: #f0f2ec;
  --surface-3: #e6eae1;
  --sidebar: #f9faf6;
  --text: #232c20;
  --muted: #73806b;
  --line: #1b2d1812;
  --accent-ink: #192713;
}
[data-theme="light"] .welcome-banner {
  background: linear-gradient(120deg, #e5eddb, #eaf0e3);
}
[data-theme="light"] .welcome-banner p,
[data-theme="light"] .welcome-banner .eyebrow {
  color: #758267;
}
[data-theme="light"] .nav-link,
[data-theme="light"] .breadcrumb span {
  color: #66765d;
}
[data-theme="light"] .button.subtle {
  border-color: var(--line);
}
[data-theme="light"] .login-story {
  background: #e4eddc;
}
[data-theme="light"] .profile-menu {
  box-shadow: 0 20px 60px #1e39151a;
}
[data-background="grid"] .main-shell {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
}
[data-background="glow"] .main-shell {
  background-image: radial-gradient(
    ellipse at 90% 0,
    #c0d9a403,
    transparent 60%
  );
}
[data-density="compact"] #content {
  padding-top: 25px;
}
[data-density="compact"] .item-card {
  padding: 12px;
}
[data-density="compact"] .nav-link {
  padding-top: 7px;
  padding-bottom: 7px;
}
[data-contrast="true"] {
  --muted: #b3beb0;
  --line: #ffffff30;
}
[data-theme="light"][data-contrast="true"] {
  --muted: #465640;
  --line: #243b2133;
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
