@import url("./fonts.css");
:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #0f0f12;
  --raised: #17171c;
  --accent-rgb: 255, 52, 78;
  --red: rgb(var(--accent-rgb));
  --red-bright: color-mix(in srgb, var(--red) 80%, white);
  --ink: #f2f1f3;
  --muted: #a6a3ad;
  --dim: #77727d;
  --line: #2a262d;
  --red-line: color-mix(in srgb, var(--red) 30%, #242128);
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --display: "Barlow Condensed", Impact, sans-serif;
  font-family: var(--mono);
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  color: var(--red-bright);
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}
button,
input,
textarea,
select {
  font-size: 0.875rem;
}
button {
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}
h1,
h2,
h3,
p {
  margin: 0;
}
kbd {
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.5;
  border: 1px solid #443c46;
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 1px 5px;
  color: #c5bfc9;
  white-space: nowrap;
}
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      ellipse at 53% -15%,
      color-mix(in srgb, var(--red) 9%, transparent),
      transparent 52%
    ),
    linear-gradient(
      90deg,
      rgba(var(--accent-rgb), 0.0118) 1px,
      transparent 1px
    ),
    linear-gradient(rgba(var(--accent-rgb), 0.0118) 1px, transparent 1px);
  background-size:
    auto,
    44px 44px,
    44px 44px;
}
.shell {
  max-width: 1760px;
  margin: auto;
  padding: 0 28px;
}
.topbar {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--red-line);
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--red);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 3px;
}
.brand svg {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.251));
}
.brand-white {
  color: var(--ink);
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.65em;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-top: 3px;
  font-weight: 400;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.edition {
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--red-bright);
  border: 1px solid var(--red-line);
  padding: 6px 9px;
}
.system-state {
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--muted);
}
.small-dot,
.system-state i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.4392);
  border-radius: 50%;
  flex-shrink: 0;
}
.command-trigger {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #151418;
  padding: 9px 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}
.command-trigger > span {
  font-size: 1.3rem;
}
.workspace-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.workspace-tabs,
.workspace-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.workspace-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 3px;
}
.workspace-tab > span {
  font-size: 0.75rem;
  color: var(--dim);
}
.workspace-tab.active {
  background: color-mix(in srgb, var(--red) 9%, var(--panel));
  border-color: var(--red-line);
  color: var(--ink);
}
.workspace-tab.active > span {
  color: var(--red-bright);
}
.subtle {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.icon-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--raised);
  border-color: var(--line);
}
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 18px;
  align-items: start;
  outline: none;
}
.column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.tile {
  background: linear-gradient(135deg, #14121690, transparent 65%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 0;
  position: relative;
  box-shadow: 0 3px 18px #00000020;
  outline: none;
  scroll-margin: 24px;
}
.tile:focus-visible,
.tile.keyboard-active {
  border-color: var(--red);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.1882),
    0 0 25px rgba(var(--accent-rgb), 0.0471);
}
.tile-header {
  padding: 13px 16px;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.tile-header h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
}
.tile-index {
  color: var(--red-bright);
  font-size: 0.75rem;
  white-space: nowrap;
}
.tile-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.tile-actions button {
  width: 24px;
  height: 24px;
  color: var(--dim);
  font-size: 1rem;
  border-radius: 3px;
}
.tile-actions button:hover {
  background: #ffffff08;
}
.tile-body {
  padding: 20px 18px;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted);
  gap: 10px;
  margin-bottom: 18px;
}
.count-label {
  color: var(--red-bright);
  white-space: nowrap;
}
.habits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
}
.habit {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 7px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 3px;
  min-height: 43px;
  font-size: 0.875rem;
  background: #08080b40;
}
.habit .checkbox {
  width: 16px;
  height: 16px;
  border: 1px solid var(--dim);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.habit > span:last-child {
  overflow-wrap: anywhere;
}
.habit.completed {
  border-color: var(--red-line);
  background: color-mix(in srgb, var(--red) 8%, var(--panel));
}
.habit.completed .checkbox {
  color: #0a0709;
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.1882);
}
.progress-track {
  height: 3px;
  background: #2b232b;
  border-radius: 2px;
  margin-top: 22px;
  overflow: hidden;
}
.progress-track > div {
  height: 100%;
  background: var(--red);
  box-shadow: 0 0 9px var(--red);
  transition: width 0.2s;
}
.micro-row {
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.habits-tile .micro-row {
  margin-top: 10px;
  font-size: 0.75rem;
}
.minimums-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.minimum {
  text-align: center;
  min-width: 0;
}
.minimum + .minimum {
  border-left: 1px solid var(--line);
}
.minimum-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 4px;
}
.min-number {
  font-family: var(--display);
  font-size: 3.25rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 1px;
}
.minimum.completed .min-number {
  color: var(--red-bright);
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.251);
}
.min-label {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  margin-top: 9px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.reps-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  gap: 4px;
}
.reps-stepper button {
  border: 1px solid var(--line);
  height: 26px;
  min-width: 24px;
  border-radius: 3px;
  color: var(--muted);
}
.reps-stepper span {
  font-size: 0.75rem;
  min-width: 30px;
  color: var(--red-bright);
}
.tile-footnote {
  font-size: 0.75rem;
  color: var(--dim);
  text-align: center;
  margin-top: 18px;
  line-height: 1.5;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.tag {
  padding: 8px 9px;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  color: var(--muted);
  border: 1px solid #3b343e;
  border-radius: 3px;
}
.tag.priority {
  color: var(--red-bright);
  background: color-mix(in srgb, var(--red) 8%, var(--panel));
  border-color: var(--red-line);
}
.tag-legend {
  margin-top: 17px;
}
.tag-legend span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.trinity-text {
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line;
}
.trinity-bars {
  display: flex;
  gap: 5px;
  margin-top: 17px;
}
.trinity-bars span {
  height: 3px;
  flex: 1;
  background: var(--red);
}
.trinity-bars span:nth-child(2) {
  opacity: 0.6;
}
.trinity-bars span:nth-child(3) {
  opacity: 0.3;
}
.clock-tile {
  border-color: var(--red-line);
  background:
    radial-gradient(
      ellipse at 50% 25%,
      color-mix(in srgb, var(--red) 6%, transparent),
      transparent 70%
    ),
    var(--panel);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.0314);
}
.clock-tile .tile-header {
  border-bottom: 0;
}
.clock-tile h2 {
  color: var(--muted);
}
.slash {
  color: var(--red);
}
.timezone {
  font-size: 0.75rem;
  color: var(--red-bright);
}
.clock-body {
  text-align: center;
  padding: 12px 24px 24px;
}
.clock {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.clock #clock-main {
  font-size: clamp(4rem, 7.9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: 2px;
  text-shadow: 0 0 35px #fff2;
}
.clock #clock-seconds {
  font-size: clamp(1.8rem, 2.5vw, 2.75rem);
  color: var(--red-bright);
  text-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3137);
}
.clock-date {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 15px;
  line-height: 1.6;
}
.day-meter {
  height: 3px;
  max-width: 230px;
  margin: 20px auto 0;
  background: repeating-linear-gradient(
    90deg,
    #32242c 0,
    #32242c 3px,
    transparent 3px,
    transparent 6px
  );
  overflow: hidden;
}
.day-meter span {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0,
    var(--red) 3px,
    transparent 3px,
    transparent 6px
  );
}
.market {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid color-mix(in srgb, var(--red) 12%, transparent);
  background: #0b0b0e70;
  border-radius: 0 0 5px 5px;
}
.coin-mark {
  width: 39px;
  height: 39px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--red) 10%, var(--panel));
  color: var(--red-bright);
  border: 1px solid var(--red-line);
  border-radius: 50%;
  font-size: 1.6rem;
}
.market-main {
  flex: 1;
  min-width: 0;
}
.market .micro-row {
  font-size: 0.75rem;
}
.market-numbers {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 5px;
}
.market-numbers strong {
  font-size: 1.35rem;
  font-weight: 500;
}
.market-numbers > span {
  color: var(--red-bright);
  font-size: 0.875rem;
}
.wisdom-body {
  padding: 19px 22px 20px;
  position: relative;
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.1255);
  position: absolute;
  left: 13px;
  top: 8px;
}
blockquote {
  font-size: 1.03rem;
  line-height: 1.85;
  font-weight: 400;
  margin: 4px 0 20px;
  position: relative;
  min-height: 85px;
  overflow-wrap: anywhere;
}
.quote-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
cite {
  font-style: normal;
  text-transform: uppercase;
  color: var(--red-bright);
  font-size: 0.75rem;
  letter-spacing: 0.7px;
  line-height: 1.6;
}
.quote-navigation {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.quote-navigation button {
  width: 26px;
  height: 28px;
  color: var(--muted);
  font-size: 1rem;
}
.quote-navigation span {
  font-size: 0.75rem;
  color: var(--muted);
}
.calendar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.calendar-heading h3 {
  font-size: 1rem;
  font-weight: 500;
}
.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.weekdays {
  color: var(--dim);
  font-size: 0.75rem;
  text-align: center;
  margin-bottom: 10px;
}
.calendar-day {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.875rem;
  color: var(--muted);
  padding: 7px 2px 12px;
  line-height: 1.4;
}
.calendar-day::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1px solid #413741;
  border-radius: 50%;
  bottom: 5px;
  left: calc(50% - 2px);
}
.calendar-day.partial {
  background: color-mix(in srgb, var(--red) 9%, var(--panel));
  color: var(--ink);
}
.calendar-day.partial::after {
  background: color-mix(in srgb, var(--red) 55%, #25222b);
  border-color: color-mix(in srgb, var(--red) 55%, #25222b);
}
.calendar-day.complete {
  background: rgba(var(--accent-rgb), 0.1451);
  color: var(--ink);
}
.calendar-day.complete::after {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 6px var(--red);
}
.calendar-day.today {
  border-color: var(--red);
  color: var(--ink);
  background: rgba(var(--accent-rgb), 0.0431);
}
.calendar-day.future::after {
  display: none;
}
.calendar-day:hover:not(:disabled) {
  border-color: var(--red-line);
  background: #ffffff06;
}
.calendar-legend {
  display: flex;
  gap: 15px;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 18px;
}
.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 6px;
  height: 6px;
  border: 1px solid #625562;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.legend-dot.complete {
  background: var(--red);
  border-color: var(--red);
}
.legend-dot.partial {
  background: color-mix(in srgb, var(--red) 55%, #25222b);
  border-color: color-mix(in srgb, var(--red) 55%, #25222b);
}
.calendar-summary {
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  gap: 10px;
}
.calendar-summary strong {
  font-weight: 400;
  color: var(--ink);
}
.northstar-tile {
  border-top-color: var(--red);
  background:
    radial-gradient(
      ellipse at 90% 5%,
      rgba(var(--accent-rgb), 0.0471),
      transparent 65%
    ),
    var(--panel);
}
.star-symbol {
  font-size: 1.1rem;
  color: var(--red-bright);
}
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  line-height: 1.8;
}
.financial-goal {
  margin-top: 9px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-line;
}
.financial-goal strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 4.25rem;
  line-height: 1;
  color: var(--ink);
  display: block;
  letter-spacing: 1px;
  margin-bottom: 7px;
}
.northstar-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--red), var(--line));
  margin: 22px 0;
}
.northstar-copy {
  font-size: 0.875rem;
  line-height: 1.85;
  margin: 6px 0 20px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.northstar-copy:last-child {
  margin-bottom: 0;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  padding: 0 0 20px 23px;
  position: relative;
  font-size: 0.875rem;
  line-height: 1.8;
  border-left: 1px solid var(--red-line);
  margin-left: 4px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.timeline li::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1px solid var(--red);
  background: var(--panel);
  border-radius: 50%;
  position: absolute;
  left: -4px;
  top: 6px;
}
.timeline li:first-child::before {
  background: var(--red);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3765);
}
.timeline li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}
.timeline li strong {
  font-weight: 500;
  color: var(--ink);
}
.timeline li span {
  color: var(--muted);
  display: block;
  font-size: 0.875rem;
}
.ideas-list {
  padding: 0;
  list-style: none;
  margin: 0;
}
.ideas-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #28232b;
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ideas-list li:first-child {
  padding-top: 0;
}
.ideas-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.ideas-list li::before {
  content: "↳";
  color: var(--red);
  flex-shrink: 0;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.75rem;
  line-height: 1.8;
}
footer > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.footer-shortcuts {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
}
.footer-shortcuts span,
.footer-shortcuts button {
  display: flex;
  gap: 7px;
  align-items: center;
}
.footer-shortcuts button {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0;
}
.dashboard[data-view="focus"] {
  grid-template-columns: 1fr 1.6fr;
  max-width: 1100px;
  margin: auto;
}
.dashboard[data-view="focus"] .right-column,
.dashboard[data-view="focus"] [data-tile="careers"],
.dashboard[data-view="focus"] [data-tile="trinity"] {
  display: none;
}
.dashboard[data-view="horizon"] {
  grid-template-columns: 1fr 1.5fr;
  max-width: 1100px;
  margin: auto;
}
.dashboard[data-view="horizon"] .center-column,
.dashboard[data-view="horizon"] [data-tile="goals"],
.dashboard[data-view="horizon"] [data-tile="minimums"] {
  display: none;
}
.tile.zoomed {
  position: fixed;
  inset: 7vh max(24px, calc((100vw - 950px) / 2));
  z-index: 30;
  overflow: auto;
  box-shadow: 0 0 0 200vmax #070709ee;
  border-color: var(--red);
  display: flex;
  flex-direction: column;
}
.tile.zoomed .tile-body,
.tile.zoomed .wisdom-body {
  padding: 32px;
}
.tile.zoomed .calendar-day {
  min-height: 8vh;
}
.tile.zoomed .clock-body {
  margin: auto 0;
}
.tile.zoomed .clock #clock-main {
  font-size: clamp(5rem, 16vw, 12rem);
}
.tile.zoomed .habits-grid {
  gap: 18px;
}
.tile.zoomed .habit {
  padding: 20px;
}
.tile.zoomed blockquote {
  font-size: clamp(1.2rem, 3vw, 2rem);
}
.tile.zoomed .minimums-grid {
  padding: 35px 0;
}
.tile.zoomed .min-number {
  font-size: 5rem;
}
.leave-focus {
  position: fixed;
  z-index: 31;
  bottom: 2vh;
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel);
  border: 1px solid var(--red-line);
  border-radius: 4px;
  padding: 10px 17px;
  white-space: nowrap;
}
.leave-focus kbd {
  margin-left: 8px;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--red);
  color: #000;
  z-index: 100;
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: 85vh;
  background: #111014;
  color: var(--ink);
  padding: 0;
  border: 1px solid var(--red-line);
  border-radius: 7px;
  box-shadow: 0 0 80px rgba(var(--accent-rgb), 0.0471);
}
dialog::backdrop {
  background: #030305cc;
  backdrop-filter: blur(5px);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-top: 4px;
}
#modal-content {
  padding: 24px;
}
#modal-content p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
}
.form-field {
  display: block;
  margin-bottom: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}
.form-field:last-child {
  margin-bottom: 0;
}
.form-field input,
.form-field textarea,
.form-field select,
.command-search {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #09090b;
  border: 1px solid #41323e;
  border-radius: 3px;
  padding: 11px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}
.form-field textarea {
  resize: vertical;
  min-height: 95px;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 6px;
}
.field-pair {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.modal-actions:empty {
  display: none;
}
.button {
  padding: 10px 15px;
  border: 1px solid #493641;
  background: #1e171e;
  border-radius: 3px;
  min-height: 42px;
}
.button.primary {
  background: var(--red);
  border-color: var(--red);
  color: #10090d;
  font-weight: 600;
}
.button.primary:hover {
  background: color-mix(in srgb, var(--red) 70%, white);
  color: #000;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.settings-row:first-child {
  padding-top: 0;
}
.settings-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.settings-row small {
  display: block;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 5px;
}
.settings-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}
.settings-row .button {
  white-space: nowrap;
}
.command-search {
  margin: 0 0 16px;
}
.command-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 10px;
  text-align: left;
  border-radius: 3px;
  font-size: 0.875rem;
}
.command-item.selected,
.command-item:hover {
  background: color-mix(in srgb, var(--red) 12%, var(--panel));
  color: var(--ink);
}
.shortcut-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.day-score {
  font-family: var(--display);
  font-size: 4rem;
  color: var(--red-bright);
  margin-bottom: 15px;
}
.day-checks {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.875rem;
}
.day-checks .done {
  color: var(--red-bright);
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 13px 19px;
  background: color-mix(in srgb, var(--red) 9%, var(--panel));
  border: 1px solid var(--red-line);
  border-radius: 5px;
  box-shadow: 0 12px 60px #000a;
  z-index: 80;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}
.no-glow * {
  text-shadow: none !important;
  box-shadow: none !important;
}
.no-glow .ambient {
  display: none;
}
body.modal-open {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
::selection {
  background: rgba(var(--accent-rgb), 0.3137);
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: #4f303c;
  border-radius: 5px;
}
::-webkit-scrollbar-track {
  background: #0b090e;
}
@media (min-width: 1500px) {
  .shell {
    padding: 0 40px;
  }
  .tile-body {
    padding: 23px;
  }
  .tile-header {
    padding: 14px 20px;
  }
  .habit {
    padding: 12px;
  }
  .clock-body {
    padding: 17px 24px 28px;
  }
}
@media (max-width: 1180px) {
  .shell {
    padding: 0 18px;
  }
  .dashboard {
    gap: 12px;
    grid-template-columns: 1fr 1.25fr 1fr;
  }
  .column {
    gap: 12px;
  }
  .tile-header {
    padding: 11px 12px;
  }
  .tile-header h2 {
    letter-spacing: 0;
    font-size: 0.75rem;
    gap: 5px;
  }
  .tile-index {
    display: none;
  }
  .tile-body {
    padding: 17px 12px;
  }
  .header-right {
    gap: 14px;
  }
  .system-state {
    display: none;
  }
  .habits-grid {
    gap: 8px 5px;
  }
  .habit {
    gap: 6px;
    padding: 9px 5px;
    font-size: 0.875rem;
  }
  .habits-tile .micro-row {
    font-size: 0.75rem;
    letter-spacing: 0;
  }
  .quote-bottom {
    flex-wrap: wrap;
  }
  .footer-shortcuts {
    gap: 10px;
  }
  .calendar-legend {
    gap: 8px;
  }
  .calendar-grid {
    gap: 3px;
  }
  .market {
    padding: 14px 12px;
  }
  .market .micro-row {
    letter-spacing: 0;
  }
  .market .icon-button {
    width: 24px;
  }
  .market-numbers {
    gap: 10px;
  }
  .financial-goal strong {
    font-size: 3.6rem;
  }
}
@media (max-width: 960px) {
  .dashboard {
    grid-template-columns: 1fr 1.35fr;
    gap: 16px;
  }
  .column {
    gap: 16px;
  }
  .right-column {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .right-column .northstar-tile {
    grid-row: span 2;
  }
  .tile-index {
    display: inline;
  }
  .clock #clock-main {
    font-size: clamp(5rem, 10vw, 8rem);
  }
  .footer-shortcuts span:nth-child(2) {
    display: none;
  }
  .dashboard[data-view="horizon"] .right-column {
    display: flex;
    grid-column: auto;
  }
  .tile-body {
    padding: 20px 18px;
  }
  .tile-header {
    padding: 13px 16px;
  }
  .habits-grid {
    gap: 10px;
  }
  .calendar-grid {
    gap: 6px;
  }
  .tile-footnote {
    color: var(--muted);
  }
}
@media (max-width: 640px) {
  .shell {
    padding: 0 12px;
  }
  .topbar {
    height: 80px;
    gap: 10px;
  }
  .brand {
    font-size: 1.25rem;
    gap: 9px;
    letter-spacing: 2px;
  }
  .brand svg {
    width: 26px;
    height: 26px;
  }
  .brand small {
    font-size: 0.75rem;
    letter-spacing: 0;
  }
  .header-right .edition {
    display: none;
  }
  .command-trigger {
    font-size: 0;
    gap: 0;
    padding: 5px 8px;
  }
  .command-trigger > span {
    font-size: 1.4rem;
  }
  .command-trigger kbd {
    display: none;
  }
  .workspace-bar {
    min-height: 64px;
    gap: 0;
  }
  .workspace-tab {
    gap: 6px;
    padding: 8px;
    font-size: 0.875rem;
  }
  .workspace-tabs {
    gap: 1px;
  }
  .workspace-tools {
    gap: 0;
  }
  .desktop-only {
    display: none;
  }
  .dashboard,
  .dashboard[data-view="focus"],
  .dashboard[data-view="horizon"] {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .column {
    width: 100%;
  }
  .center-column {
    order: -1;
  }
  .right-column {
    display: flex;
  }
  .clock-tile .tile-header {
    padding: 11px 16px;
  }
  .clock-body {
    padding: 0 18px 19px;
  }
  .clock #clock-main {
    font-size: 6.75rem;
  }
  .clock #clock-seconds {
    font-size: 2.6rem;
  }
  .clock-date {
    margin-top: 10px;
  }
  .day-meter {
    margin-top: 13px;
  }
  .center-column .calendar-tile {
    order: 3;
  }
  .tile-header h2 {
    font-size: 0.875rem;
    letter-spacing: 0;
  }
  .tile-actions button {
    width: 30px;
    height: 28px;
  }
  .calendar-day {
    min-height: 45px;
  }
  .habits-grid {
    grid-template-columns: 1fr 1fr;
  }
  .habit {
    padding: 12px 10px;
    font-size: 1rem;
  }
  .right-column .northstar-tile {
    grid-row: auto;
  }
  .tile.zoomed {
    inset: 20px 12px 75px;
  }
  .tile.zoomed .tile-body {
    padding: 20px;
  }
  .tile.zoomed .habit {
    padding: 14px 6px;
  }
  .tile.zoomed .calendar-day {
    min-height: 6vh;
  }
  .tile.zoomed .min-number {
    font-size: 3.5rem;
  }
  .tile.zoomed .habits-grid {
    gap: 10px;
  }
  footer {
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.75rem;
    padding: 20px 2px;
  }
  .footer-shortcuts {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  .footer-shortcuts span:nth-child(2) {
    display: flex;
  }
  .footer-shortcuts span:nth-child(3) {
    display: none;
  }
  .leave-focus {
    font-size: 0.75rem;
  }
  .modal-header {
    padding: 20px;
  }
  #modal-content {
    padding: 20px;
  }
  .modal-actions {
    padding: 16px 20px;
  }
  .settings-row {
    gap: 10px;
  }
  .quote-bottom {
    flex-wrap: nowrap;
  }
  .financial-goal strong {
    font-size: 4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 640px) {
  .dashboard .column {
    display: contents;
  }
  .dashboard [data-tile="clock"] {
    order: 0;
  }
  .dashboard [data-tile="goals"] {
    order: 1;
  }
  .dashboard [data-tile="minimums"] {
    order: 2;
  }
  .dashboard [data-tile="wisdom"] {
    order: 3;
  }
  .dashboard [data-tile="calendar"] {
    order: 4;
  }
  .dashboard [data-tile="northstar"] {
    order: 5;
  }
  .dashboard [data-tile="exit"] {
    order: 6;
  }
  .dashboard [data-tile="careers"] {
    order: 7;
  }
  .dashboard [data-tile="ideas"] {
    order: 8;
  }
  .dashboard [data-tile="trinity"] {
    order: 9;
  }
  .dashboard .tile {
    width: 100%;
  }
  .dashboard[data-view="focus"] .right-column,
  .dashboard[data-view="horizon"] .center-column {
    display: none;
  }
  .dashboard .tile.zoomed {
    width: auto;
  }
}

:root[data-theme="amber"] {
  --accent-rgb: 255, 184, 64;
}
:root[data-theme="matrix"] {
  --accent-rgb: 97, 231, 143;
}
:root[data-theme="ice"] {
  --accent-rgb: 76, 210, 255;
}
:root[data-theme="ghost"] {
  --accent-rgb: 222, 225, 234;
}
.edition {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: color-mix(in srgb, var(--red) 5%, transparent);
  border-radius: 3px;
  min-height: 34px;
  white-space: nowrap;
}
.edition:hover {
  background: color-mix(in srgb, var(--red) 12%, transparent);
  box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.12);
}
.theme-cycle {
  font-size: 1rem;
  line-height: 1;
}
@media (max-width: 640px) {
  .header-right .edition {
    display: inline-flex;
    font-size: 0.75rem;
    padding: 5px 7px;
    gap: 6px;
  }
  .header-right {
    gap: 8px;
  }
  .brand small {
    display: none;
  }
  .brand {
    font-size: 1.15rem;
  }
  .command-trigger {
    padding: 4px 6px;
  }
}
@media (max-width: 365px) {
  .brand {
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .brand svg {
    width: 22px;
    height: 22px;
  }
  .brand {
    gap: 6px;
  }
  .header-right {
    gap: 5px;
  }
}

/* Omarchy-inspired desktop: wallpaper carries the atmosphere; panels retain contrast. */
:root {
  --ink: #fafaff;
  --muted: #c2c4cf;
  --dim: #9b9fac;
  --line: #ffffff25;
  --panel: #0a0c10;
  --wallpaper-image: url("/src/wallpapers/osaka-city.webp");
  --wallpaper-filter: hue-rotate(200deg);
}
.ambient {
  z-index: 0;
  background: var(--wallpaper-image) center center / cover no-repeat;
  filter: var(--wallpaper-filter);
  opacity: 1;
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0005, #0002 45%, #0007);
}
.shell {
  position: relative;
  z-index: 1;
}
.tile,
.clock-tile,
.northstar-tile {
  background: rgba(5, 8, 13, 0.89);
  border-color: color-mix(in srgb, var(--red) 20%, #a6afb544);
  border-radius: 12px;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  box-shadow:
    0 6px 30px #0004,
    inset 0 1px #ffffff08;
}
.tile-header {
  background: rgba(4, 7, 11, 0.38);
  border-radius: 12px 12px 0 0;
  border-bottom-color: #ffffff1c;
}
.tile-header h2 {
  color: var(--ink);
}
.clock-tile {
  border-color: color-mix(in srgb, var(--red) 55%, #56616c);
}
.northstar-tile {
  border-top-color: var(--red);
}
.topbar {
  height: 84px;
  background: linear-gradient(90deg, #05070beb, #05070b80);
  margin: 0 -28px;
  padding: 0 28px;
  backdrop-filter: blur(8px);
}
.workspace-bar {
  min-height: 64px;
}
.workspace-tab,
.tag {
  border-radius: 18px;
}
.workspace-tab:not(.active) {
  background: #05080cc9;
  border-color: #ffffff1f;
  color: var(--muted);
}
.workspace-tab.active {
  background: color-mix(in srgb, var(--red) 16%, #070a0f);
  border-color: var(--red);
}
.command-trigger,
.edition {
  background: #070a0fe6;
}
.habit {
  background: #06090ed9;
  border-color: #ffffff30;
  color: #f8f8fb;
  border-radius: 5px;
}
.habit.completed {
  background: color-mix(in srgb, var(--red) 17%, #06080d);
  border-color: var(--red);
}
.tile-actions button {
  color: #b3b8c3;
}
.market {
  background: #03060ac7;
  border-radius: 0 0 12px 12px;
}
.calendar-day {
  color: #d8dae3;
}
.calendar-day.today {
  border-color: var(--red);
  background: rgba(var(--accent-rgb), 0.13);
}
.calendar-day:disabled {
  opacity: 0.5;
}
.clock #clock-main {
  color: #fff;
  text-shadow:
    0 1px 4px #000,
    0 0 28px #fff2;
}
footer {
  background: #05070be6;
  border-radius: 10px 10px 0 0;
  padding-left: 14px;
  padding-right: 14px;
  backdrop-filter: blur(6px);
  color: var(--muted);
}
.no-glow .ambient {
  display: block;
}
:root[data-wallpaper="none"] .ambient {
  background: #05070a;
}
.wallpaper-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.wallpaper-option {
  border: 1px solid #ffffff30;
  padding: 0;
  text-align: left;
  border-radius: 7px;
  overflow: hidden;
  background: #080b11;
  min-width: 0;
}
.wallpaper-option.selected {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.wallpaper-option img,
.wallpaper-placeholder {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: linear-gradient(135deg, #1c2833, #06090e);
}
.wallpaper-placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--red);
}
.wallpaper-option > span:last-child {
  display: block;
  padding: 11px;
  font-size: 0.875rem;
  color: var(--ink);
}
.wallpaper-option small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 5px;
}
.wallpaper-option:hover {
  border-color: var(--red);
}
.form-hint a {
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1500px) {
  .topbar {
    margin: 0 -40px;
    padding: 0 40px;
  }
}
@media (max-width: 1180px) {
  .topbar {
    margin: 0 -18px;
    padding: 0 18px;
  }
}
@media (max-width: 640px) {
  .topbar {
    margin: 0 -12px;
    padding: 0 12px;
    height: 74px;
  }
  .tile {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(4, 7, 12, 0.92);
  }
  .workspace-tools .subtle {
    display: none;
  }
  .workspace-tools [data-action="export"] {
    display: none;
  }
}
@media (max-width: 400px) {
  .workspace-tab > span {
    display: none;
  }
  .workspace-tab {
    padding: 8px 10px;
  }
  .workspace-bar {
    gap: 5px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .tile,
  .clock-tile,
  .northstar-tile {
    background: #080b10;
    backdrop-filter: none;
  }
}

/* Snapping widget board. Each screen class owns its geometry. */
#workspace.widget-board {
  display: grid;
  grid-template-columns: repeat(var(--widget-columns, 12), minmax(0, 1fr));
  grid-auto-rows: 12px;
  gap: 12px;
  align-items: stretch;
  max-width: none;
  width: 100%;
  margin: 0;
  position: relative;
  padding-bottom: 12px;
}
#workspace.widget-board > .tile {
  order: initial;
  min-width: 0;
  min-height: 0;
  width: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  container-type: inline-size;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
#workspace.widget-board > .tile[hidden] {
  display: none !important;
}
#workspace.widget-board .tile-header {
  flex-shrink: 0;
  gap: 6px;
  padding: 10px 10px;
}
#workspace.widget-board .tile-header h2 {
  flex: 1;
  min-width: 0;
  line-height: 1.6;
}
#workspace.widget-board .tile-actions {
  margin-left: auto;
}
#workspace.widget-board .tile-body,
#workspace.widget-board .wisdom-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px;
}
#workspace.widget-board .clock-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 20px;
  overflow: auto;
}
#workspace.widget-board .market {
  flex-shrink: 0;
  padding-bottom: 22px;
}
#workspace.widget-board .clock #clock-main {
  font-size: clamp(3rem, 21cqw, 8.5rem);
}
#workspace.widget-board .clock #clock-seconds {
  font-size: clamp(1.3rem, 7cqw, 2.7rem);
}
#workspace.widget-board .day-meter {
  width: 70%;
  flex-shrink: 0;
}
#workspace.widget-board .tile.zoomed {
  position: fixed;
  display: flex;
  inset: 6vh max(20px, calc((100vw - 1050px) / 2));
  width: auto;
  height: auto;
  z-index: 30;
  overflow: auto;
  box-shadow:
    0 0 0 200vmax #030509ed,
    0 0 30px rgba(var(--accent-rgb), 0.25);
}
#workspace.widget-board .tile.zoomed .tile-body {
  padding: 28px;
}
#workspace.widget-board .tile.zoomed .clock #clock-main {
  font-size: clamp(4rem, 18cqw, 12rem);
}
#workspace.widget-board .tile.hover-target,
#workspace.widget-board .tile.keyboard-active {
  border-color: var(--red);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.4),
    0 0 28px rgba(var(--accent-rgb), 0.24),
    inset 0 0 24px rgba(var(--accent-rgb), 0.035);
}
.tile-grip {
  flex-shrink: 0;
  width: 28px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 1.3rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  outline-offset: 1px !important;
}
.tile-grip:active {
  cursor: grabbing;
}
.tile-resize {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 34px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 5px 6px;
  font-size: 0.875rem;
  color: var(--dim);
  cursor: nwse-resize;
  touch-action: none;
  user-select: none;
  z-index: 3;
  background: linear-gradient(135deg, transparent 45%, #080b11 46%);
  border-radius: 0 0 10px 0;
  outline-offset: -3px !important;
}
.tile-resize:hover,
.tile-grip:hover {
  color: var(--red-bright);
}
.widget-board .tile.zoomed .tile-grip,
.widget-board .tile.zoomed .tile-resize {
  display: none;
}
#workspace.widget-board .tile.widget-dragging {
  z-index: 50;
  opacity: 0.92;
  transform: scale(1.015);
  cursor: grabbing;
  box-shadow:
    0 15px 70px #000b,
    0 0 24px rgba(var(--accent-rgb), 0.35);
  border-color: var(--red);
  pointer-events: auto;
}
#workspace.widget-board .tile.widget-resizing {
  z-index: 5;
  border-color: var(--red);
}
.widget-placeholder {
  background: rgba(var(--accent-rgb), 0.09);
  border: 2px dashed var(--red);
  border-radius: 12px;
  pointer-events: none;
  z-index: 0;
  min-width: 0;
}
.widget-gesture {
  user-select: none;
  cursor: grabbing;
}
.widget-gesture .ambient {
  pointer-events: none;
}
.widget-board .calendar-grid {
  grid-auto-rows: minmax(38px, 1fr);
}
@container (max-width:310px) {
  .habits-grid {
    grid-template-columns: 1fr;
  }
  .minimums-grid {
    gap: 3px;
  }
  .min-number {
    font-size: 2.8rem;
  }
  .tile-index {
    display: none;
  }
  .calendar-legend {
    flex-wrap: wrap;
  }
  .quote-bottom {
    flex-wrap: wrap;
  }
  .clock-date {
    letter-spacing: 0.5px;
  }
  .micro-row {
    letter-spacing: 0;
  }
  .tile-header h2 {
    font-size: 0.75rem !important;
  }
  .tile-body {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .tile-actions button {
    width: 24px !important;
  }
  .tag {
    padding: 6px;
  }
  .section-intro {
    flex-wrap: wrap;
  }
  .market .micro-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 679px) {
  #workspace.widget-board {
    grid-template-columns: minmax(0, 1fr);
  }
  #workspace.widget-board .tile-header h2 {
    font-size: 0.8rem;
  }
  #workspace.widget-board .tile-header {
    padding: 10px 9px;
  }
  .tile-grip {
    width: 32px;
    height: 36px;
  }
  .tile-resize {
    width: 44px;
    height: 44px;
    padding: 7px 8px;
  }
  .widget-board .tile-header .tile-actions button {
    width: 27px;
    height: 30px;
  }
  #workspace.widget-board .tile.zoomed {
    inset: 14px 10px 72px;
  }
  #workspace.widget-board .tile-body {
    padding-bottom: 30px;
  }
  .workspace-tools [data-action="reset-layout"] {
    display: none;
  }
}
