:root {
  color-scheme: light;
  --bg: #f8f7fa;
  --ink: #23142d;
  --muted: #655a71;
  --dark: #20162a;
  --purple: #6c30e9;
  --burgundy: #540230;
  --lavender: #f1eafb;
  --peach: #fbede8;
  --blue: #e9f0fa;
  --mint: #e5f5ec;
  --dock-gap: 12px;
  --dock-height: 79px;
  --sidebar-width: 243px;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #8852eb; outline-offset: 3px; }
.skip { position: fixed; z-index: 1200; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width);
  padding: 36px 12px 41px; overflow: auto; background: var(--dark); color: #e1d6eb;
  display: flex; flex-direction: column;
}
.sidebar-title { margin: 1px 16px 43px; color: white; font-size: 23px; font-weight: 800; text-decoration: none; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 0 13px; text-decoration: none; border-radius: 9px; font-size: 13px; }
.sidebar nav a:is(.active,:hover) { background: #493364; color: white; }
.sidebar-logo { margin: auto 14px 10px; padding-top: 22px; height: auto; }
.sidebar-demo { margin: 0 16px; font-size: 11px; color: #dbcfeb; }
.nav-icon { display: grid; place-items: center; width: 20px; height: 24px; flex: none; }
.nav-icon img { max-width: none; }
.lifeos-content { margin-left: var(--sidebar-width); padding: 42px 44px 38px 39px; min-width: 0; }
.mobile-header, .lifeos-bottom-dock { display: none; }
.hero { padding: 16px 18px; min-height: 148px; border-radius: 15px; background: var(--dark); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.hero .eyebrow { color: #cda9ff; font-size: 11px; font-weight: 750; text-transform: uppercase; }
.hero h1 { font-size: 36px; line-height: 1.12; margin: 0; letter-spacing: -.025em; }
.hero p:last-child { color: #e1d6eb; font-size: 12px; line-height: 1.35; }
.section { margin-top: 20px; display: grid; gap: 13px; min-width: 0; }
.section + .section { margin-top: 26px; }
h2 { margin: 0; font-size: 15px; text-transform: uppercase; color: var(--burgundy); }
h3 { margin: 0; font-size: 15px; }
.matrix { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.quadrant { min-height: 135px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 13px; border-radius: 12px; text-decoration: none; }
.quadrant strong { text-transform: uppercase; font-size: 13px; }
.quadrant b { font-size: 28px; }
.quadrant > :last-child { margin-top: auto; }
.qI { background: var(--peach); } .qII { background: var(--lavender); } .qIII { background: var(--blue); } .qIV { background: var(--mint); }
.card { min-width: 0; overflow-wrap: anywhere; background: white; padding: 14px; border-radius: 12px; display: grid; align-content: start; gap: 9px; font-size: 14px; }
.card.summary { min-height: 92px; }
.card.suggestion { background: var(--lavender); min-height: 95px; }
.muted { font-size: 12px; line-height: 1.45; color: var(--muted); }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 13px; font-size: 13px; font-weight: 720; border: 1px solid #dcd2e7; border-radius: 10px; background: #fff; text-decoration: none; }
.button:hover { border-color: var(--purple); }
.button.primary { color: white; background: var(--purple); border-color: var(--purple); }
.actions { display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; }
@media (max-width: 767px), (max-height: 520px) and (orientation: landscape) and (pointer: coarse) {
  html { scroll-padding-bottom: calc(var(--dock-height) + 2 * var(--dock-gap) + env(safe-area-inset-bottom, 0px)); }
  .sidebar { display: none; }
  .mobile-header { display: flex; justify-content: space-between; align-items: center; min-height: calc(81px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left)); }
  .mobile-header span { color: var(--muted); font-size: 11px; }
  .lifeos-content { margin: 0; padding: 0 max(20px, env(safe-area-inset-right)) calc(var(--dock-height) + 2 * var(--dock-gap) + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left)); }
  .hero { min-height: 138px; }
  .hero h1 { font-size: 26px; max-width: 275px; }
  .matrix { gap: 10px; }
  .quadrant { min-height: 121px; }
  .card.suggestion { min-height: 116px; }
  .lifeos-bottom-dock {
    position: fixed; z-index: 1000; left: max(var(--dock-gap), env(safe-area-inset-left)); right: max(var(--dock-gap), env(safe-area-inset-right));
    bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom, 0px)); height: var(--dock-height);
    display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 2px; padding: 6px;
    background: #f4eefa; border: 1px solid rgba(255,255,255,.97); border-radius: 27px;
    box-shadow: 0 9px 20px rgba(51,15,92,.17);
  }
  @supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
    .lifeos-bottom-dock { background: rgba(248,244,255,.75); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  }
  .lifeos-bottom-dock a { display: grid; justify-items: center; align-content: center; gap: 6px; text-decoration: none; font-size: 10px; color: #5e506e; border-radius: 18px; }
  .lifeos-bottom-dock a.active { color: var(--purple); background: #eee5ff; font-weight: 740; }
  .lifeos-bottom-dock .nav-icon { width: 24px; }
  body.keyboard-open .lifeos-bottom-dock { visibility: hidden; }
}
form { min-width: 0; display: grid; gap: 10px; padding: 14px; background: white; border-radius: 12px; }
form > .button { justify-self: start; }
.field { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.field:has(input[type="checkbox"]) { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
input:not([type="checkbox"]),select,textarea {
  display: block; width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px; border: 1px solid #ab9cb8; border-radius: 8px;
  background: white; font-size: 16px; font-weight: 400; line-height: 1.35; font-family: Inter, Arial, sans-serif;
}
input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--purple); }
textarea { resize: vertical; }
select:disabled,input:disabled { opacity: .72; cursor: default; }
fieldset { min-width: 0; border: 1px solid #dcd2e7; border-radius: 10px; margin: 0; }
legend { padding-inline: 6px; font-size: 13px; font-weight: 740; }
.error { color: #8b1d3a; font-size: 13px; font-weight: 650; }
.error:empty { display: none; }
.grid-two { display: grid; gap: 10px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.allocation { display: grid; gap: 10px; grid-template-columns: 1.2fr .7fr .8fr; align-items: end; }
.filters { display: grid; gap: 9px; grid-template-columns: repeat(4,minmax(0,1fr)) auto; align-items: end; padding: 0; background: transparent; }
.board { display: grid; gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; }
.column { display: grid; gap: 10px; min-width: 0; --column-tint: var(--lavender); }
.column h3 { font-size: 13px; text-transform: uppercase; background: var(--column-tint); padding: 15px 11px; border-radius: 11px; }
.column-1 { --column-tint: var(--peach); } .column-2 { --column-tint: var(--blue); } .column-3 { --column-tint: var(--mint); }
.pill { justify-self: start; padding: 5px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.editor { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding: 20px; background: white; border-radius: 16px; }
.editor form { padding: 0; }
.editor .field { color: var(--burgundy); }
.editor :is(input:not([type="checkbox"]),select,textarea) { background: var(--bg); }
.editor .button { justify-self: start; }
.editor button.primary { width: 100%; justify-content: center; }
.editor-head { display: grid; gap: 4px; }
.editor-head h1 { margin: 0; }
.recommendation { display: grid; gap: 7px; padding: 14px; border-radius: 11px; }
.timer-card { background: var(--lavender); }
.clock { color: var(--purple); font-size: 55px; font-weight: 760; font-variant-numeric: tabular-nums; }
.demo-footer { margin-top: 26px; display: grid; gap: 8px; color: var(--muted); font-size: 11px; }
.demo-footer details { justify-self: start; }
details > summary { cursor: pointer; min-height: 44px; align-content: center; }
ul { margin: 0; padding-inline-start: 19px; }
li + li { margin-top: 5px; }
.quadrant ul { width: 100%; min-width: 0; padding: 0; list-style: none; }
.quadrant li a { height: auto; width: 100%; overflow-wrap: anywhere; }
progress { width: 100%; height: 12px; accent-color: var(--purple); }
#notice:not(:empty) { position: fixed; right: 20px; bottom: 20px; z-index: 1050; max-width: min(420px,calc(100% - 40px)); border-radius: 9px; background: var(--dark); color: white; padding: 11px 15px; font-size: 13px; pointer-events: none; }
@media (768px <= width < 1100px) {
  .board, .filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lifeos-content { padding-inline: 24px; }
}
@media (max-width: 767px), (max-height: 520px) and (orientation: landscape) and (pointer: coarse) {
  .board { grid-template-columns: 1fr; }
  .filters, .allocation { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .allocation > :first-of-type { grid-column: 1/-1; }
  .editor { margin-top: 10px; padding: 18px; }
  #notice:not(:empty) { bottom: calc(var(--dock-height) + 2 * var(--dock-gap) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 340px) {
  .lifeos-bottom-dock { padding-inline: 3px; gap: 0; }
}

main:focus { outline: none; }

.project-pill { background: var(--lavender); color: var(--purple); }
