
* { box-sizing: border-box; }
html { background: #050505; }
body {
  margin: 0;
  font-family: "IBM Plex Mono", "Space Mono", "Courier Prime", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  color: #d8d8d8;
  background: #050505;
  letter-spacing: 0;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}
button, input, select, textarea { font: inherit; }
button {
  border: 1px solid #555;
  background: #070707;
  color: #d8d8d8;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 0;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 11px;
  transition: background .35s ease, color .35s ease, border-color .35s ease, opacity .35s ease;
}
button:hover { border-color: #aaa; background: #111; color: #fff; }
.primary { background: #e5e5e5; border-color: #e5e5e5; color: #050505; font-weight: 700; }
.primary:hover { background: #fff; color: #050505; }
.ghost { background: transparent; }
.danger { border-color: #777; color: #f2f2f2; }
.hidden { display: none !important; }
.muted { color: #7c7c7c; margin: 0; line-height: 1.6; }
.compact { font-size: 13px; }
.eyebrow { color: #aaa; font-weight: 700; letter-spacing: .08em; font-size: 11px; text-transform: uppercase; margin: 0 0 10px; }
.auth-shell { min-height: 100vh; background: #050505; }
.landing { min-height: 100vh; }
.landing-hero {
  min-height: 100vh;
  padding: 34px 42px 54px;
  display: grid;
  align-content: space-between;
  background-color: #050505;
  background-image: url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=2200&q=70");
  background-size: cover;
  background-position: center;
  background-blend-mode: luminosity;
  position: relative;
}
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}
.landing-hero > * { position: relative; }
.landing-nav { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.landing-brand { font-size: 42px; line-height: .9; font-weight: 700; letter-spacing: -.04em; color: #efefef; }
.landing-nav a { color: #bdbdbd; text-decoration: none; text-transform: uppercase; font-size: 11px; border-bottom: 1px solid #777; padding-bottom: 3px; }
.hero-grid { display: grid; grid-template-columns: minmax(420px, 1.2fr) minmax(260px, .8fr); gap: 64px; align-items: end; }
.hero-grid h1 { max-width: 880px; margin: 0; font-size: clamp(54px, 8vw, 132px); line-height: .9; font-weight: 500; letter-spacing: -.06em; text-transform: uppercase; }
.hero-copy { max-width: 520px; margin: 0 0 12px; color: #b8b8b8; font-size: 16px; line-height: 1.7; }
.pain-section { padding: 96px 42px 104px; border-top: 1px solid #292929; }
.formula-section, .access-section { padding: 72px 42px; border-top: 1px solid #292929; }
.section-kicker { color: #888; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 32px; }
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #333; border-left: 1px solid #333; }
.pain-grid article { min-height: 430px; padding: 34px; border-right: 1px solid #333; border-bottom: 1px solid #333; display: grid; align-content: start; gap: 26px; }
.pain-grid span { color: #777; font-size: 12px; }
.pain-grid h2 { margin: 0; max-width: 520px; font-size: clamp(28px, 3vw, 44px); line-height: .98; font-weight: 500; text-transform: uppercase; }
.pain-grid p { max-width: 620px; margin: 0; color: #a8a8a8; line-height: 1.85; font-size: 15px; }
.formula-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #333; }
.formula-row div { min-height: 150px; padding: 22px; border-right: 1px solid #333; display: flex; align-items: end; text-transform: uppercase; font-size: 18px; line-height: 1.15; }
.formula-row div:last-child { border-right: 0; }
.access-section { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(320px, 480px); gap: 72px; align-items: start; }
.access-copy h2 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 72px); line-height: .95; font-weight: 500; text-transform: uppercase; letter-spacing: -.04em; }
.auth-panel {
  width: 100%;
  background: #080808;
  border: 1px solid #333;
  border-radius: 0;
  padding: 28px;
  box-shadow: none;
}
.auth-panel h1 { margin: 0 0 18px; font-size: 38px; line-height: 1.02; font-weight: 500; text-transform: uppercase; }
.stack, .filters, .entry-form { display: grid; gap: 14px; }
.stack { margin-top: 32px; }
label { display: grid; gap: 7px; color: #bdbdbd; font-size: 11px; font-weight: 700; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  border: 1px solid #4e4e4e;
  background: #050505;
  color: #e0e0e0;
  border-radius: 0;
  padding: 10px 11px;
  outline: none;
  min-height: 40px;
}
textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: #d8d8d8; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #606060; }
.field-hint { color: #777; font-size: 10px; line-height: 1.45; text-transform: none; font-weight: 500; }
.field-error-message { display: none; color: #ff6b6b; font-size: 10px; line-height: 1.45; text-transform: none; font-weight: 700; }
label.input-error { color: #ff8a8a; }
label.input-error input,
label.input-error select,
label.input-error textarea {
  border-color: #ff4d4d;
  color: #fff;
}
label.input-error .field-error-message { display: block; }
label.input-error .field-hint { display: none; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: transparent; padding: 0; border-radius: 0; border: 1px solid #444; }
.segmented button { border: 0; background: transparent; min-height: 34px; }
.segmented .active { background: #d8d8d8; color: #050505; box-shadow: none; }
.error { color: #e0e0e0; min-height: 18px; margin: 0; font-size: 12px; }
.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  background: #050505;
}
.sidebar {
  background: #080808;
  border-right: 1px solid #3a3a3a;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100vh;
  max-height: 100vh;
  overflow: auto;
  box-shadow: none;
}
.sidebar h2, .content h1, .detail-pane h2 { margin: 0; }
.sidebar h2, .content h1 { text-transform: uppercase; font-weight: 500; letter-spacing: .02em; }
.brand-title { font-size: 38px; line-height: .95; color: #e2e2e2; font-weight: 700; letter-spacing: -.03em; margin-bottom: 10px; }
.filters { border-top: 1px solid #333; padding-top: 18px; overflow: auto; }
.filter-title { color: #d8d8d8; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; border-bottom: 1px solid #333; padding-bottom: 10px; }
.filter-actions { display: grid; grid-template-columns: 3fr 7fr; gap: 8px; }
.filter-actions button[type="submit"] { min-width: 0; }
.filter-actions button[type="button"] { min-width: 0; }
.sidebar #logoutBtn { margin-top: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.content {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(720px, 1fr) 520px;
  gap: 0;
  max-width: none;
  width: 100%;
  margin: 0;
}
.list-pane { min-width: 0; border-right: 1px solid #303030; padding: 42px 34px 42px 44px; overflow: auto; max-height: 100vh; }
.detail-pane { min-width: 0; padding: 42px 28px; overflow: auto; max-height: 100vh; background: #070707; }
.pane-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 18px; }
.view-tabs { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 360px; }
.view-tabs button { min-height: 32px; padding: 6px 9px; font-size: 10px; background: transparent; border-color: #333; color: #9b9b9b; }
.view-tabs button.active { background: #d8d8d8; color: #050505; border-color: #d8d8d8; }
.entries { display: grid; gap: 16px; }
.month { display: grid; gap: 8px; }
.month-title { font-size: 11px; font-weight: 800; color: #909090; text-transform: uppercase; margin: 18px 0 4px; letter-spacing: .08em; }
.table-wrap { overflow: auto; border: 1px solid #333; background: #080808; border-radius: 0; }
.table-settings { display: grid; gap: 8px; border: 1px solid #333; background: #080808; border-radius: 0; padding: 12px; }
.table-settings-title { color: #999; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.column-options { display: flex; gap: 8px 12px; flex-wrap: wrap; }
.column-options label { display: inline-flex; grid-template-columns: none; align-items: center; gap: 5px; font-size: 11px; font-weight: 650; color: #b8b8b8; }
.column-options input { width: auto; min-height: auto; }
.entries-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.entries-table th, .entries-table td { text-align: left; border-bottom: 1px solid #242424; padding: 11px 10px; vertical-align: top; font-size: 12px; }
.entries-table th { color: #8d8d8d; background: #0d0d0d; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.entries-table tr { cursor: pointer; }
.entries-table tr.active td { background: #161616; }
.entries-table .title-cell { font-weight: 750; color: #efefef; min-width: 190px; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline-month { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 18px; align-items: start; width: 100%; }
.timeline-date { color: #a2a2a2; font-weight: 800; font-size: 11px; padding-top: 12px; letter-spacing: .08em; }
.entry-card { text-align: left; border: 1px solid #333; background: #080808; border-radius: 0; padding: 14px; display: grid; gap: 9px; }
.entry-card.active { border-color: #bdbdbd; box-shadow: none; }
.entry-card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.entry-card p { margin: 0; line-height: 1.55; color: #8f8f8f; font-size: 13px; }
.area-group { display: grid; gap: 8px; }
.area-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 4px; }
.area-head h3 { margin: 0; font-size: 17px; }
.area-head span { color: #777; font-size: 12px; }
.hypothesis-map { display: grid; gap: 12px; }
.map-card { width: 100%; border: 1px solid #333; background: #080808; border-radius: 0; padding: 18px; display: grid; gap: 16px; cursor: pointer; transition: border-color .35s ease, background .35s ease, opacity .35s ease; }
.map-card:hover { border-color: #777; background: #0d0d0d; }
.map-card.active { border-color: #d8d8d8; box-shadow: none; }
.map-card h3 { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 500; text-transform: uppercase; }
.map-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 8px; }
.map-step { border: 1px solid #272727; border-radius: 0; padding: 10px; background: #050505; min-height: 92px; }
.map-step strong { display: block; color: #9a9a9a; font-size: 10px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .08em; }
.map-step p { margin: 0; font-size: 12px; line-height: 1.55; color: #c8c8c8; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.calendar-title { font-weight: 800; font-size: 15px; color: #d8d8d8; text-transform: uppercase; letter-spacing: .08em; }
.calendar-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.calendar-actions button { min-height: 32px; padding: 6px 9px; font-size: 10px; }
.calendar-actions button.active { background: #d8d8d8; color: #050505; border-color: #d8d8d8; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; }
.calendar-day { min-height: 132px; background: #080808; border: 1px solid #333; border-radius: 0; padding: 9px; display: grid; align-content: start; gap: 7px; }
.calendar-day.empty-day { background: #050505; border-style: dashed; opacity: .72; }
.calendar-day-title { font-size: 10px; color: #858585; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.calendar-event { text-align: left; min-height: 0; padding: 7px; border-radius: 0; border-color: #454545; background: #111; font-size: 11px; line-height: 1.35; }
.year-grid { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 10px; }
.year-month { text-align: left; background: #080808; border: 1px solid #333; border-radius: 0; padding: 12px; display: grid; gap: 8px; min-height: 118px; align-content: start; }
.year-month.active { border-color: #d8d8d8; box-shadow: none; }
.year-month h3 { margin: 0; font-size: 15px; text-transform: uppercase; font-weight: 500; }
.year-month p { margin: 0; color: #858585; font-size: 12px; }
.area-filter-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.area-filter-strip button { min-height: 30px; padding: 5px 9px; font-size: 10px; }
.area-filter-strip button.active { background: #d8d8d8; color: #050505; border-color: #d8d8d8; }
.tag-editor { display: grid; gap: 8px; }
.tag-chips { min-height: 34px; border: 1px solid #333; padding: 6px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; background: #050505; }
.tag-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #555; padding: 4px 7px; font-size: 10px; color: #d8d8d8; text-transform: uppercase; }
.tag-chip button { min-height: 0; padding: 0; border: 0; background: transparent; color: #999; font-size: 12px; }
.tag-add-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; border-radius: 0; border: 1px solid #333; padding: 3px 7px; font-size: 10px; color: #bcbcbc; background: transparent; text-transform: uppercase; letter-spacing: .04em; }
.status { background: #151515; border-color: #555; color: #e0e0e0; }
.date { font-size: 11px; color: #8f8f8f; font-weight: 700; letter-spacing: .08em; }
.empty { border: 1px dashed #444; border-radius: 0; padding: 28px; color: #858585; background: #080808; }
.entry-form { width: 100%; max-width: 480px; margin: 0; background: #080808; border: 1px solid #333; border-radius: 0; padding: 22px; }
.form-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.meta { color: #777; font-size: 11px; line-height: 1.5; border-top: 1px solid #333; padding-top: 12px; }
.settings-panel { width: 100%; max-width: 480px; margin: 0; background: #080808; border: 1px solid #333; padding: 22px; display: grid; gap: 18px; }
.settings-section { border-top: 1px solid #333; padding-top: 14px; display: grid; gap: 10px; }
.settings-section:first-child { border-top: 0; padding-top: 0; }
.copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.readonly-value { border: 1px solid #333; background: #050505; padding: 10px 11px; color: #d8d8d8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1320px) {
  .content { grid-template-columns: minmax(520px, 1fr) 440px; }
  .entry-form { max-width: 100%; }
  .map-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}
@media (max-width: 1000px) {
  .workspace, .content { grid-template-columns: 1fr; }
  .hero-grid, .access-section { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .formula-row { grid-template-columns: repeat(2, 1fr); }
  .formula-row div:nth-child(2) { border-right: 0; }
  .formula-row div { border-bottom: 1px solid #333; }
  .formula-row div:nth-child(n+3) { border-bottom: 0; }
  .sidebar { border-right: 0; border-bottom: 1px solid #3a3a3a; min-height: auto; max-height: none; }
  .list-pane { border-right: 0; border-bottom: 1px solid #303030; max-height: none; }
  .detail-pane { max-height: none; }
  .map-grid { grid-template-columns: 1fr 1fr; }
  .calendar-grid, .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .two { grid-template-columns: 1fr; }
  .auth-panel, .sidebar, .list-pane, .detail-pane { padding: 16px; }
  .landing-hero, .pain-section, .formula-section, .access-section { padding: 24px 16px; }
  .landing-brand { font-size: 34px; }
  .hero-grid h1 { font-size: 48px; }
  .pain-grid, .formula-row { grid-template-columns: 1fr; }
  .pain-grid article { min-height: 300px; padding: 22px; gap: 18px; }
  .pain-grid h2 { font-size: 28px; }
  .pain-grid p { font-size: 13px; line-height: 1.75; }
  .formula-row div { border-right: 0; border-bottom: 1px solid #333; }
  .formula-row div:last-child { border-bottom: 0; }
  .auth-panel h1 { font-size: 26px; }
  .pane-head { display: grid; gap: 12px; }
  .view-tabs { justify-content: flex-start; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .timeline-date { padding-top: 0; }
  .map-grid, .calendar-grid, .year-grid { grid-template-columns: 1fr; }
}
