:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP",
    sans-serif;
  color: #263039;
  background: #edf0f2;
  font-synthesis: none;
  --ink: #263039;
  --muted: #64717b;
  --line: #d3dade;
  --paper: #fff;
  --silver: #f5f7f8;
  --accent: #405d6a;
  --amber: #87652b;
  --red: #993d40;
  --green: #426b60;
  --radius: 17px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 10px 15px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
}
button:hover {
  background: #edf2f4;
  border-color: #a5b4bc;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
button.primary:hover {
  background: #40505a;
}
a {
  color: #365e73;
  text-underline-offset: 3px;
}
a.external {
  font-size: 12px;
  text-decoration: none;
  display: inline-block;
  min-height: 30px;
  padding: 6px 0;
}
a.external:hover {
  text-decoration: underline;
}
:focus-visible {
  outline: 3px solid #4c829c;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: 0.02em;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  line-height: 1.65;
}
p {
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
small,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.eyebrow {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #6e7f89;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #c7d0d5;
  background: #f4f6f7ed;
  backdrop-filter: blur(18px);
}
.head-inner {
  max-width: 1540px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 19px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand .mark {
  font-family: serif;
  font-size: 23px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #81939d;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #dce2e6);
  box-shadow: inset 0 0 0 3px #f6f8f9;
}
.brand strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.05em;
}
.head-right {
  display: flex;
  gap: 14px;
  align-items: center;
}
.clock {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}
.status {
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 30px;
  background: #eaf0ed;
  border: 1px solid #bdcdc5;
  white-space: nowrap;
}
.status.warn {
  background: #f5efdf;
  border-color: #d5c49f;
  color: var(--amber);
}
.status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 7px;
}
.status.warn .dot {
  background: var(--amber);
}
.nav {
  max-width: 1540px;
  margin: auto;
  padding: 0 32px;
  display: flex;
  gap: 27px;
}
.nav button {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 11px 10px 14px;
  min-width: 86px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.nav button.active {
  color: var(--ink);
  border-color: var(--ink);
}
.nav .nav-icon {
  font-size: 16px;
}
.shell {
  max-width: 1540px;
  margin: 0 auto;
  padding: 30px 32px 60px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.page-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 23px;
  min-width: 0;
  box-shadow: 0 3px 12px #23394504;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}
.panel-head h2 {
  flex: 1;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 20px;
}
.stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.section-space {
  margin-top: 20px;
}
.strategy {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(130deg, #fff, #e7ecef);
  margin-bottom: 20px;
  overflow: hidden;
}
.strategy > div {
  padding: 20px 23px;
  position: relative;
}
.strategy > div + div {
  border-left: 1px solid var(--line);
}
.strategy > div + div:before {
  content: "›";
  position: absolute;
  left: -7px;
  top: 44%;
  background: #edf1f3;
  color: #80909a;
}
.strategy p {
  font-size: 12px;
  line-height: 1.8;
  white-space: pre-line;
}
.strategy .eyebrow {
  font-size: 10px;
}
.badge {
  display: inline-block;
  font-size: 10px;
  line-height: 1.6;
  padding: 4px 8px;
  border-radius: 5px;
  color: #5c6870;
  background: #edf1f3;
  white-space: normal;
}
.badge.amber {
  color: var(--amber);
  background: #f7f0e0;
}
.badge.red {
  color: var(--red);
  background: #faeaea;
}
.badge.green {
  color: var(--green);
  background: #eaf3ef;
}
.quarter {
  border-top: 3px solid #687c88;
  background: linear-gradient(135deg, #fff 60%, #f1f5f6);
}
.quarter .objective {
  font-size: 23px;
  font-weight: 630;
  line-height: 1.65;
  letter-spacing: 0.015em;
  margin: 16px 0;
}
.quarter .period {
  font-size: 14px;
  font-weight: 650;
}
.quarter .decision-needed {
  padding: 17px 19px;
  border: 1px solid #dfd1b1;
  background: #faf7ef;
  border-radius: 11px;
}
.quarter .decision-needed p {
  font-size: 13px;
}
.definition {
  border-left: 2px solid #bbc8cf;
  padding-left: 15px;
  margin: 18px 0;
}
.definition small {
  display: block;
  margin-bottom: 5px;
}
.kr {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.kr:last-child {
  padding-bottom: 0;
}
.kr-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: start;
}
.kr-label {
  font:
    11px ui-monospace,
    monospace;
  color: #617684;
}
.kr p {
  font-size: 13px;
  margin-top: 6px;
}
.kr .detail {
  font-size: 12px;
  color: var(--muted);
}
.progress {
  height: 4px;
  background: #e3e9ec;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 12px;
}
.progress > span {
  display: block;
  height: 100%;
  background: #5f7e8c;
}
.source {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.65;
  color: #73818a;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.source a {
  color: inherit;
  text-decoration: none;
}
.source a:hover {
  text-decoration: underline;
}
.warning {
  border: 1px solid #d9c397;
  border-radius: 11px;
  background: #faf6ec;
  padding: 14px 17px;
  margin-bottom: 18px;
}
.warning strong {
  font-size: 13px;
  color: #765925;
}
.warning p {
  font-size: 12px;
  margin-top: 5px;
}
.warning.error {
  background: #f9eceb;
  border-color: #e1b9b6;
}
.decision-list {
  display: grid;
  gap: 0;
}
.decision-item {
  padding: 15px 0;
  border-bottom: 1px solid #e0e6e9;
}
.decision-item:first-child {
  padding-top: 0;
}
.decision-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.decision-item h3 {
  font-size: 14px;
  margin: 6px 0;
}
.decision-item p {
  font-size: 12px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  padding: 6px 0;
  min-height: 30px;
  color: #456477;
  font-size: 12px;
}
.deadline-row {
  display: flex;
  gap: 13px;
  padding: 11px 0;
  border-bottom: 1px solid #e3e8eb;
  align-items: center;
}
.deadline-row:last-child {
  border-bottom: 0;
}
.deadline-date {
  flex: 0 0 62px;
  font:
    12px ui-monospace,
    monospace;
  color: var(--muted);
}
.deadline-date.overdue {
  color: var(--red);
}
.deadline-row .task-open {
  font-size: 12px;
}
.deadline-row small {
  display: block;
  font-size: 10px;
}
.empty {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  padding: 15px 0;
}
.chain {
  display: grid;
  gap: 0;
}
.chain-step {
  padding: 15px 0 15px 24px;
  position: relative;
  border-left: 1px solid #b6c5cd;
  margin-left: 6px;
}
.chain-step:before {
  position: absolute;
  content: "";
  left: -4px;
  top: 24px;
  width: 7px;
  height: 7px;
  background: #708994;
  border-radius: 50%;
  box-shadow: 0 0 0 4px white;
}
.chain-step:last-child {
  border-color: transparent;
}
.chain-step p {
  font-size: 13px;
}
.chain-step .eyebrow {
  font-size: 9px;
  margin-bottom: 6px;
}
.departments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.department {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 17px;
  background: #fafcfc;
}
.department.focused {
  background: #edf3f5;
  border-color: #aabec9;
}
.department p {
  font-size: 12px;
  margin-top: 9px;
  color: #586973;
}
.department .dept-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.observations {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.observations button {
  font-size: 11px;
  min-height: 37px;
  font-weight: 500;
  background: #f7f9fa;
}
.footer-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 25px;
  line-height: 1.8;
}
.today-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}
.mit-panel {
  background: linear-gradient(130deg, #293640, #415562);
  color: #f8fafb;
  border-color: #364954;
}
.mit-panel .eyebrow,
.mit-panel small {
  color: #bfcbd2;
}
.mit-panel h2 {
  font-size: 27px;
  margin: 16px 0 20px;
  line-height: 1.7;
}
.mit-panel .empty {
  color: #d0dbe1;
}
.mit-panel .source {
  color: #bfccd3;
}
.mit-panel button {
  background: #e9eef1;
  color: #263641;
  border-color: #e9eef1;
}
.mit-panel .subtle {
  background: transparent;
  color: #e8eef1;
  border-color: #8398a5;
}
.mit-relation {
  font-size: 12px;
  line-height: 1.9;
  border-top: 1px solid #ffffff30;
  padding-top: 15px;
  margin-top: 18px;
  color: #d3dee4;
}
.event {
  display: flex;
  gap: 17px;
  border-top: 1px solid var(--line);
  padding: 15px 0;
}
.event:first-of-type {
  border-top: 0;
}
.event .time {
  font:
    12px ui-monospace,
    monospace;
  min-width: 43px;
  color: #516b79;
}
.event h3 {
  font-size: 13px;
}
.event a {
  text-decoration: none;
  color: var(--ink);
}
.event small {
  font-size: 10px;
}
.tasks-layout {
  max-width: 1060px;
  margin: auto;
}
.tasks-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.search {
  flex: 1;
  min-width: 180px;
}
.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
  font-size: 14px;
  min-height: 44px;
}
.task-tabs {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 3px 2px 12px;
  scrollbar-width: thin;
}
.task-tabs button {
  white-space: nowrap;
  flex: none;
  font-size: 12px;
  background: transparent;
  min-height: 38px;
}
.task-tabs button.active {
  background: #344954;
  color: white;
  border-color: #344954;
}
.task-tabs small {
  margin-left: 7px;
  color: inherit;
  opacity: 0.65;
}
.filter-row {
  display: flex;
  gap: 6px;
  margin: 3px 0 15px;
  flex-wrap: wrap;
}
.filter-row button {
  font-size: 11px;
  padding: 6px 11px;
  min-height: 33px;
  background: transparent;
  border-color: transparent;
}
.filter-row button.active {
  border-color: #b6c6cf;
  background: #e0e8ed;
}
.tasks-surface {
  touch-action: pan-y;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 160px;
}
.task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #e2e7ea;
  min-height: 69px;
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row:hover {
  background: #f7f9fa;
}
.check {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.check span {
  display: block;
  width: 20px;
  height: 20px;
  border: 1.5px solid #9faeb7;
  border-radius: 50%;
}
.check.done span {
  background: #536f7c;
  border-color: #536f7c;
  color: white;
  font-size: 13px;
}
.task-open {
  border: 0;
  border-radius: 0;
  background: none !important;
  flex: 1;
  text-align: left;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  min-height: 40px;
  overflow-wrap: anywhere;
}
.task-open small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.task-row.completed .task-open {
  text-decoration: line-through;
  color: #84909a;
}
.task-due {
  font:
    11px ui-monospace,
    monospace;
  flex: none;
  color: var(--muted);
}
.task-due.late {
  color: var(--red);
}
.task-sub {
  padding-left: 32px;
}
.tasks-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tabs button {
  background: transparent;
}
.tabs .active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.review-checks {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.review-check {
  display: flex;
  gap: 12px;
  font-size: 13px;
  line-height: 1.8;
  padding: 11px;
  border-bottom: 1px solid var(--line);
}
.review-check input {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 3px;
}
.document {
  font-size: 13px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #40515d;
}
.document h3 {
  margin: 22px 0 10px;
}
.document p {
  font-size: 13px;
  margin: 7px 0;
  line-height: 1.9;
}
.reading {
  max-height: 550px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.draft-note {
  font-size: 11px;
  padding: 10px 12px;
  background: #f1f4f6;
  border-radius: 8px;
  color: var(--muted);
  margin: 12px 0;
}
.field {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}
.field label {
  font-size: 12px;
  color: var(--muted);
}
input,
select,
textarea {
  border: 1px solid #becbd2;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  max-width: 100%;
  padding: 11px 12px;
  min-height: 44px;
  font-size: 14px;
}
textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
  width: 100%;
}
.memory-list {
  display: grid;
  gap: 13px;
}
.memory-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  padding: 23px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 13px;
}
.memory-item .date {
  font:
    12px ui-monospace,
    monospace;
  color: #6b8290;
}
.memory-item p {
  font-size: 13px;
  margin-top: 9px;
  color: #5b6b74;
}
.memory-item h3 {
  font-size: 15px;
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.asset-grid p {
  font-size: 12px;
  margin-top: 12px;
}
.asset-grid .period {
  font:
    12px ui-monospace,
    monospace;
  color: #687d89;
  margin-bottom: 12px;
}
.inline-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.stat {
  font-size: 12px;
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.stat strong {
  font:
    23px ui-monospace,
    monospace;
  margin-right: 8px;
}
.initial {
  max-width: 570px;
  margin: 12vh auto;
  padding: 32px;
  text-align: center;
}
.initial h1 {
  margin: 15px 0;
}
.initial p {
  margin: 16px 0;
}
.initial .mark {
  font: 45px serif;
}
.login-link {
  display: inline-block;
  padding: 13px 25px;
  border-radius: 9px;
  background: #334b58;
  color: white;
  text-decoration: none;
  margin: 14px 0;
}
.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #bdcbd2;
  border-top-color: #3f6478;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
dialog {
  border: 1px solid #b7c6ce;
  border-radius: 18px;
  padding: 0;
  max-width: min(750px, calc(100vw - 32px));
  width: 750px;
  max-height: 88dvh;
  box-shadow: 0 24px 100px #172a3b40;
  color: var(--ink);
}
dialog::backdrop {
  background: #172a3b60;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 19px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  position: sticky;
  top: 0;
  background: #f6f8f9;
  z-index: 1;
}
.dialog-head h2 {
  font-size: 16px;
}
.dialog-body {
  padding: 23px 25px;
  overflow-wrap: anywhere;
}
.dialog-body h3.title {
  font-size: 23px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.dialog-body pre {
  white-space: pre-wrap;
  font: 13px/1.9 inherit;
}
.dialog-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.detail-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.close {
  padding: 7px 12px;
  min-height: 40px;
  font-size: 17px;
}
.source-row {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.source-row p {
  font-size: 12px;
}
.source-row .actions {
  justify-content: space-between;
}
.skip {
  position: absolute;
  left: 15px;
  top: -80px;
  padding: 10px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #263b48;
  color: white;
  border-radius: 10px;
  box-shadow: 0 6px 35px #1b2e4140;
  padding: 14px 23px;
  font-size: 13px;
  max-width: calc(100% - 32px);
  display: none;
}
#toast.visible {
  display: block;
}
#toast button {
  margin-left: 15px;
  min-height: 30px;
  padding: 4px 10px;
}
.mini {
  font-size: 10px;
  color: var(--muted);
}
details > summary {
  cursor: pointer;
  font-size: 12px;
  min-height: 35px;
  padding: 8px 0;
}
details p {
  font-size: 12px;
  margin: 10px 0;
}
.source-message {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
iframe.org-preview {
  width: 100%;
  height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.danger-button {
  color: var(--red);
}
@media (min-width: 1450px) {
  .shell {
    padding-top: 35px;
  }
  .quarter .objective {
    font-size: 25px;
  }
}
@media (max-width: 1050px) {
  .head-inner {
    padding: 16px 23px;
  }
  .shell {
    padding: 25px 23px 55px;
  }
  .nav {
    padding: 0 23px;
  }
  .grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  }
  .panel {
    padding: 19px;
  }
  .strategy > div {
    padding: 17px;
  }
  .strategy p {
    font-size: 11px;
  }
  .quarter .objective {
    font-size: 21px;
  }
  .departments {
    grid-template-columns: 1fr;
  }
  .brand small {
    font-size: 9px;
  }
  .clock {
    display: none;
  }
  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .grid,
  .today-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .head-inner {
    padding: 14px 17px;
    gap: 8px;
  }
  .brand {
    gap: 9px;
  }
  .brand .mark {
    width: 34px;
    height: 34px;
    font-size: 20px;
    border-radius: 9px;
  }
  .brand strong {
    font-size: 15px;
    letter-spacing: 0.02em;
  }
  .brand small {
    font-size: 8px;
  }
  .head-right {
    gap: 5px;
  }
  .head-right > .version {
    display: none;
  }
  .status {
    font-size: 9px;
    padding: 7px 9px;
    min-height: 34px;
  }
  .status .dot {
    width: 5px;
    height: 5px;
    margin-right: 5px;
  }
  .shell {
    padding: 23px 17px 110px;
  }
  .page-head {
    gap: 10px;
    margin-bottom: 20px;
    align-items: start;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 11px;
  }
  .page-head .actions button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 25;
    border-top: 1px solid #c1cdd4;
    background: #f6f8f9f5;
    backdrop-filter: blur(20px);
    justify-content: space-around;
    gap: 0;
    padding: 7px 8px max(9px, env(safe-area-inset-bottom));
  }
  .nav button {
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
    font-size: 10px;
    padding: 6px 1px 4px;
    border-bottom: 0;
    min-height: 49px;
    border-radius: 9px;
  }
  .nav button.active {
    background: #dde7ec;
  }
  .nav .nav-icon {
    font-size: 18px;
  }
  .strategy {
    grid-template-columns: 1fr;
    margin-bottom: 16px;
  }
  .strategy > div {
    padding: 15px 18px;
  }
  .strategy > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .strategy > div + div:before {
    display: none;
  }
  .strategy p {
    font-size: 12px;
  }
  .panel {
    padding: 19px;
    border-radius: 14px;
  }
  .panel-head {
    margin-bottom: 13px;
  }
  .panel-head h2 {
    font-size: 16px;
  }
  .quarter .objective {
    font-size: 20px;
  }
  .departments {
    grid-template-columns: 1fr;
  }
  .today-grid {
    gap: 16px;
  }
  .stack,
  .grid {
    gap: 16px;
  }
  .mit-panel h2 {
    font-size: 23px;
  }
  .tasks-layout {
    margin: -3px -2px 0;
  }
  .task-row {
    padding: 10px 10px;
    gap: 5px;
  }
  .task-open {
    font-size: 13px;
  }
  .task-due {
    font-size: 10px;
  }
  .task-sub {
    padding-left: 18px;
  }
  .tasks-toolbar {
    gap: 7px;
  }
  .tasks-toolbar .search {
    min-width: 100px;
  }
  .task-tabs {
    margin-right: -2px;
  }
  .task-tabs button {
    font-size: 11px;
    padding: 9px 11px;
  }
  .filter-row {
    gap: 1px;
  }
  .filter-row button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .memory-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }
  .asset-grid {
    grid-template-columns: 1fr;
  }
  .memory-item .date {
    font-size: 10px;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
  .dialog-head {
    padding: 15px 19px;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-body h3.title {
    font-size: 20px;
  }
  dialog {
    width: calc(100vw - 22px);
    max-width: calc(100vw - 22px);
    max-height: 90dvh;
    border-radius: 15px;
  }
  #toast {
    bottom: 100px;
    font-size: 12px;
    padding: 13px 18px;
  }
  .reading {
    max-height: 450px;
  }
  .stat {
    padding-right: 12px;
  }
  .stat strong {
    font-size: 21px;
  }
  iframe.org-preview {
    height: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Density review: contain Tasks width and reserve overview space for strategy. */
.tasks-layout {
  max-width: 860px;
}
.task-row {
  min-height: 62px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.decision-item > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.department > p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 761px) {
  .department > p:last-of-type {
    -webkit-line-clamp: 2;
  }
}

/* Keep the mobile fixed navigation in the viewport, not a filtered ancestor. */
.topbar {
  backdrop-filter: none;
}
@media (max-width: 760px) {
  .today-grid {
    display: flex;
    flex-direction: column;
  }
  .today-grid > .stack {
    display: contents;
  }
  .today-grid .mit-panel {
    order: 1;
  }
  .today-grid .schedule-panel {
    order: 2;
  }
  .today-grid .deadline-panel {
    order: 3;
  }
  .today-grid .important-panel {
    order: 4;
  }
  .today-grid .decision-panel {
    order: 5;
  }
}

/* V1.0.1: silver command deck, restrained light, canonical organization. */
:root {
  --line: #c7d5dd;
  --accent: #3c6c81;
  --silver: #f0f5f8;
}
body {
  background:
    radial-gradient(ellipse at 78% 0%, #d0e8f3aa, transparent 48%),
    linear-gradient(90deg, #7c9ba510 1px, transparent 1px),
    linear-gradient(#7c9ba510 1px, transparent 1px), #e9eef2;
  background-size:
    auto,
    40px 40px,
    40px 40px,
    auto;
}
.topbar {
  color: #edf6fb;
  background: linear-gradient(112deg, #25343f 0%, #384c59 60%, #263540 100%);
  border-bottom: 1px solid #a4d7ec;
  box-shadow:
    0 3px 24px #7eb9d749,
    inset 0 -1px #ecfbff24;
}
.brand .mark {
  color: #e4f6ff;
  background: linear-gradient(145deg, #475e6c, #20323e);
  border-color: #acd6e8;
  box-shadow:
    inset 0 0 0 3px #adcddd18,
    0 0 16px #96d7f242;
}
.brand small,
.clock {
  color: #c0d1db;
}
.nav button {
  color: #c0d0da;
  border-radius: 9px 9px 0 0;
}
.nav button:hover {
  color: #fff;
  background: #daeeff0d;
}
.nav button.active {
  color: #fff;
  border-color: #b8e6fa;
  background: linear-gradient(#c5eaff24, #b9e6f80a);
  box-shadow:
    inset 0 1px #c1eaff5c,
    0 0 20px #9ed9fa10;
}
.topbar .status:not(.warn) {
  color: #d9f2eb;
  background: #203d4199;
  border-color: #799f9e;
}
.topbar .status:not(.warn) .dot {
  background: #a2d8c8;
  box-shadow: 0 0 8px #a2d8c855;
}
.page-head {
  padding: 20px 24px;
  border: 1px solid #a4c4d7;
  border-radius: 14px;
  background: linear-gradient(115deg, #2d424f, #485f6e);
  color: #fff;
  box-shadow:
    0 8px 24px #263d5112,
    inset 0 0 0 4px #cdefff08;
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  pointer-events: none;
  position: absolute;
  right: -50px;
  top: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid #b9e5f326;
  border-radius: 50%;
  box-shadow:
    0 0 0 26px #b9e5f307,
    0 0 0 52px #b9e5f305;
}
.page-head .eyebrow,
.page-head .muted,
.page-head p {
  color: #d0e0ea;
}
.page-head button {
  position: relative;
  z-index: 1;
  background: #d9eff51a;
  color: #f1faff;
  border-color: #a5c2d3;
}
.panel {
  position: relative;
  background: linear-gradient(145deg, #fffffffa, #f5f9fcf7);
  border-color: #bed0da;
  box-shadow:
    0 5px 19px #3b5a7310,
    inset 0 1px 0 #fff;
}
.panel::before {
  content: "";
  pointer-events: none;
  position: absolute;
  top: -1px;
  left: 22px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #9acbe0, transparent);
}
.strategy {
  background: linear-gradient(105deg, #f8fcff, #e5eef4);
  border-color: #afc9d8;
  box-shadow:
    inset 0 1px #fff,
    0 3px 18px #739db218;
}
.quarter {
  border-top: 2px solid #608ea6;
  box-shadow:
    0 0 0 3px #def0f74a,
    0 9px 28px #2d536714;
}
.quarter .period {
  letter-spacing: 0.025em;
}
.mit-panel {
  color: #edf7fd;
  background: linear-gradient(130deg, #233b48, #3c5667);
  border-color: #87b3cc;
  box-shadow:
    0 0 0 3px #d9edf45e,
    0 10px 28px #25495d24,
    inset 0 1px #ccecff38;
}
.mit-panel .eyebrow,
.mit-panel small {
  color: #c3d8e5;
}
.mit-panel::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #bdddf808 1px, transparent 1px),
    linear-gradient(#bdddf808 1px, transparent 1px);
  background-size: 32px 32px;
}
.mit-panel > * {
  position: relative;
  z-index: 1;
}
.command-primary {
  margin-bottom: 24px;
}
.organization-deck {
  padding: 24px;
  margin: 0 0 24px;
  border: 1px solid #88aabc;
  color: #e8f4fb;
  background: linear-gradient(120deg, #293d49, #405867 58%, #2b414f);
  box-shadow:
    0 10px 32px #25445622,
    inset 0 0 0 5px #c9eaff09,
    0 0 0 1px #fff8;
  overflow: hidden;
}
.organization-deck::before {
  width: 170px;
  left: 30px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c3edff, transparent);
  box-shadow: 0 1px 10px #b5e6fc;
}
.organization-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.organization-heading .eyebrow {
  color: #b7d4e5;
}
.organization-heading h2 {
  font-size: 21px;
  letter-spacing: 0.08em;
}
.org-expand {
  background: #d4effb13;
  color: #e1f5ff;
  border-color: #94b7c9;
  white-space: nowrap;
}
.org-expand:hover {
  background: #d4effb26;
}
.org-observations {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 19px;
}
.org-node {
  position: relative;
  min-width: 0;
  min-height: 77px;
  padding: 13px 5px 10px;
  border: 1px solid #7c9cac;
  background: linear-gradient(#d6f1fc10, #d6f1fc03);
  color: #e3f1f7;
  font-size: 12px;
  border-radius: 9px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.org-node:hover {
  background: #d6f1fc1c;
  border-color: #c4ecff;
  box-shadow:
    0 0 16px #b1dcf029,
    inset 0 0 10px #cdeeff0b;
}
.org-node > span:not(.node-light) {
  display: block;
}
.org-node small {
  display: block;
  margin-top: 6px;
  color: #bfd0da;
  font-size: 10px;
  font-weight: 400;
}
.node-light {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 4px;
  height: 4px;
  background: #8098a7;
  border-radius: 50%;
}
.org-node.is-focused {
  border-color: #b8e2fa;
  box-shadow: inset 0 0 16px #b5e6ff12;
}
.org-node.is-focused .node-light {
  background: #bce9ff;
  box-shadow: 0 0 8px #bce9ff;
}
.org-node.needs-decision .node-light {
  background: #edca91;
  box-shadow: 0 0 7px #edca9166;
}
.org-display {
  border-top: 1px solid #99bfd033;
  padding-top: 12px;
}
.org-display > summary {
  color: #deeff8;
  cursor: pointer;
  font-size: 13px;
  min-height: 36px;
  line-height: 30px;
}
.org-display > summary span {
  color: #aec6d5;
  font-size: 11px;
  margin-left: 12px;
}
.org-screen {
  position: relative;
  padding: 12px;
  margin-top: 5px;
  background: linear-gradient(135deg, #a2bbca20, #adcfe40a);
  border: 1px solid #8ab1c577;
  border-radius: 12px;
  box-shadow:
    inset 0 0 30px #b6dff512,
    0 0 25px #93cdec08;
}
.org-screen iframe {
  display: block;
  border: 0;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 5px;
  background: #f5f8fb;
}
.screen-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: #d0f2ff;
  border-style: solid;
  pointer-events: none;
  filter: drop-shadow(0 0 3px #acdeff);
}
.top-left {
  top: 3px;
  left: 3px;
  border-width: 1px 0 0 1px;
}
.bottom-right {
  bottom: 3px;
  right: 3px;
  border-width: 0 1px 1px 0;
}
.org-screen::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, #caefff, transparent);
  transform-origin: left;
  animation: deck-arrival 1.2s ease-out 1;
}
@keyframes deck-arrival {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
.org-await {
  min-height: 160px;
  display: grid;
  place-items: center;
}
.org-provenance {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 13px;
}
.org-provenance .source {
  margin: 0;
  border: 0;
  padding: 0;
}
.org-provenance a {
  color: #d6ecf9;
}
.org-provenance p,
.org-provenance span {
  color: #b6cbd8;
  font-size: 10px;
  line-height: 1.7;
}
@media (max-width: 1100px) {
  .org-observations {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .nav {
    background: linear-gradient(110deg, #283d49, #384e5d);
    border-top: 1px solid #9ebed0;
    box-shadow: 0 -3px 18px #324e6120;
  }
  .nav button {
    color: #bfced9;
  }
  .page-head {
    padding: 17px 16px;
  }
  .page-head h1 {
    font-size: 22px;
  }
  .organization-deck {
    padding: 18px 14px;
  }
  .organization-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .organization-heading h2 {
    font-size: 17px;
    letter-spacing: 0;
  }
  .org-expand {
    font-size: 11px;
    padding: 8px;
  }
  .org-observations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .org-provenance {
    display: block;
  }
  .org-screen {
    padding: 6px;
  }
  .org-display > summary span {
    display: block;
    margin-left: 15px;
  }
  .org-await {
    min-height: 110px;
  }
}

.org-await .source-message {
  color: #d0e0eb;
}
@media (prefers-reduced-motion: reduce) {
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
