@charset "UTF-8";
:root {
  --bg:#f6f7f4;
  --surface:#fff;
  --ink:#25362f;
  --muted:#788179;
  --line:#e5e9e2;
  --green:#2c4e3e;
  --green-hover:#203c2e;
  --sage:#ecf2e8;
  --lime:#d5e5ae;
  --radius:14px;
  --shadow:0 4px 18px #243e3505;
  font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-synthesis:none;
  font-size:14px;
  line-height:1.6
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select,textarea {
  font:inherit;
  color:inherit
}
a {
  color:inherit;
  text-decoration:none
}
button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.6
}
input,textarea,select {
  max-width:100%
}
svg {
  width:20px;
  height:20px;
  flex-shrink:0
}
button svg,a svg {
  vertical-align:middle
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:29px;
  line-height:1.5;
  letter-spacing:-.035em;
  font-weight:700
}
h2 {
  font-size:16px;
  letter-spacing:-.015em;
  font-weight:650
}
h3 {
  font-size:16px
}
small {
  font-size:12px
}
a,button {
  touch-action:manipulation
}
a:hover {
  color:var(--green)
}
:focus-visible {
  outline:3px solid #92ad69;
  outline-offset:4px;
  border-radius:4px
}
input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:2px solid #789660;
  outline-offset:1px
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  background:var(--green);
  color:white;
  padding:12px 20px;
  border-radius:8px;
  z-index:100
}
.skip-link:focus {
  top:12px
}
.app-shell {
  min-height:100vh;
  display:grid;
  grid-template-columns:242px minmax(0,1fr)
}
.sidebar {
  position:sticky;
  top:0;
  height:100vh;
  height:100dvh;
  padding:35px 18px 0;
  background:#fff;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  z-index:20
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  width:fit-content;
  padding-left:10px
}
.brand-word {
  font-size:29px;
  font-weight:750;
  letter-spacing:-1.5px;
  line-height:1
}
.brand-period {
  color:#819867
}
.brand-mark {
  display:flex;
  align-items:flex-end;
  gap:4px;
  width:30px;
  height:33px;
  padding:7px;
  background:var(--green);
  border-radius:9px
}
.brand-mark i {
  display:block;
  background:var(--lime);
  width:6px;
  height:14px;
  border-radius:1px
}
.brand-mark i+ i {
  height:19px
}
.workspace-label {
  margin:32px 10px 20px;
  font-size:9px;
  font-weight:650;
  letter-spacing:1.3px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#8a9489
}
.live-dot {
  display:inline-block;
  width:6px;
  height:6px;
  flex-shrink:0;
  background:#88a76a;
  border-radius:100%
}
.sidebar nav {
  display:grid;
  gap:7px
}
.nav-link {
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 13px;
  border-radius:8px;
  font-size:12px;
  font-weight:550;
  color:#6f7972;
  transition:background .15s,color .15s
}
.nav-link svg {
  width:18px;
  height:18px;
  stroke-width:1.65
}
.nav-link:hover {
  background:#f6f8f3;
  color:var(--green)
}
.nav-link.active {
  background:#edf3e7;
  color:var(--green);
  font-weight:700
}
.nav-link.active:after {
  content:"";
  height:6px;
  width:6px;
  background:#829b65;
  border-radius:50%;
  position:absolute;
  right:12px
}
.sidebar-secondary {
  border-top:1px solid var(--line);
  margin-top:30px;
  padding-top:24px
}
.nav-caption {
  padding:0 13px 10px;
  font-size:10px;
  color:#98a196;
  letter-spacing:.03em
}
.sidebar-note {
  display:flex;
  gap:10px;
  margin-top:auto;
  padding:40px 11px 26px;
  color:#778471;
  font-size:10px;
  line-height:1.8
}
.sidebar-note small {
  display:block;
  font-size:9px;
  color:#a2aaa0;
  margin-top:3px
}
.lock-symbol {
  font-size:22px;
  line-height:1.2;
  color:#95a28a
}
.owner {
  display:flex;
  align-items:center;
  gap:10px;
  border-top:1px solid var(--line);
  padding:20px 7px 22px
}
.avatar {
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  border-radius:50%;
  background:#ebece3;
  color:#5c6b4f;
  font-size:12px;
  font-weight:700;
  flex-shrink:0
}
.owner-copy {
  min-width:0;
  flex:1
}
.owner-copy strong {
  font-size:11px;
  font-weight:650;
  display:block;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis
}
.owner-copy span {
  display:block;
  font-size:9px;
  color:#99a195;
  margin-top:1px
}
.logout-link {
  font-size:20px;
  padding:5px;
  color:#8b948b
}
.main-shell {
  min-width:0;
  display:flex;
  flex-direction:column
}
.topbar {
  height:83px;
  padding:0 42px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:22px;
  background:#ffffff80
}
.breadcrumb {
  display:flex;
  align-items:center;
  gap:13px;
  font-size:11px;
  white-space:nowrap
}
.breadcrumb>span:first-child {
  color:#92998e
}
.breadcrumb-separator {
  color:#c4cbbe
}
.breadcrumb strong {
  font-weight:550;
  color:#576353
}
.global-search {
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:9px;
  width:265px;
  background:#eff1ed;
  border:1px solid transparent;
  border-radius:7px;
  padding:7px 10px;
  color:#8c9788
}
.global-search svg {
  width:15px;
  height:15px
}
.global-search input {
  width:100%;
  background:transparent;
  border:0;
  padding:1px;
  outline:0;
  font-size:10px;
  min-width:0
}
.global-search:focus-within {
  border-color:#a1b68a
}
.global-search input::placeholder {
  color:#9ca394
}
.global-search button {
  border:1px solid #dfe4d9;
  font-size:11px;
  line-height:1.1;
  background:#f8f9f6;
  color:#98a28c;
  border-radius:3px;
  padding:1px 4px
}
.private-pill {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  white-space:nowrap;
  color:#7a876f
}
.icon-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:none;
  border:0;
  padding:6px
}
.mobile-menu {
  display:none
}
.global-notice {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 42px;
  background:#fff5dc;
  color:#7a652e;
  font-size:12px;
  border-bottom:1px solid #e9dcbb
}
.global-notice a {
  white-space:nowrap
}
#main {
  padding:35px 42px 32px;
  max-width:1560px;
  width:100%;
  margin:0 auto;
  flex:1;
  outline:none
}
body.notes-app {
  background:#fff
}
body.notes-app .sidebar,body.notes-app .sidebar-scrim,body.notes-app .topbar {
  display:none!important
}
body.notes-app .app-shell,body.notes-app .main-shell {
  display:block;
  min-height:100vh;
  min-height:100dvh
}
body.notes-app #main {
  max-width:none;
  padding:0;
  margin:0
}
body.notes-app #main > .page-loading {
  padding:36px 42px
}
body.notes-app #main > div:not(:has(> .nb)) {
  max-width:1180px;
  margin:0 auto;
  padding:28px 36px 48px
}
body.notes-app .global-notice {
  position:sticky;
  top:0;
  z-index:50;
  padding:10px 20px
}
.page-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 42px 26px;
  color:#9da596;
  font-size:9px
}
.page-footer>span:first-child {
  font-weight:650;
  font-size:11px;
  letter-spacing:-.3px
}
.page-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:25px;
  margin:4px 0 29px
}
.page-heading .eyebrow {
  margin-bottom:10px
}
.page-description {
  color:#7d8778;
  font-size:12px;
  margin-top:10px;
  line-height:1.9
}
.eyebrow {
  font-size:10px;
  font-weight:650;
  letter-spacing:1.6px;
  color:#87917e
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:7px;
  padding:10px 15px;
  font-size:11px;
  font-weight:600;
  border:1px solid transparent;
  white-space:nowrap;
  line-height:1.5;
  min-height:38px;
  transition:background .15s,border-color .15s,transform .15s
}
.button svg {
  width:15px;
  height:15px
}
.button.primary {
  background:var(--green);
  color:#fff;
  border-color:var(--green)
}
.button.primary:hover {
  background:var(--green-hover);
  border-color:var(--green-hover);
  color:#fff
}
.button.secondary {
  background:#fff;
  border-color:#dfe4d8;
  color:#647159
}
.button.secondary:hover {
  background:#f2f5ed;
  border-color:#bfccaF
}
.button:active {
  transform:translateY(1px)
}
.button-group {
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap
}
.text-link {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  color:#6d805b;
  font-weight:550
}
.text-link:hover {
  text-decoration:underline
}
.text-link svg {
  width:16px;
  height:16px
}
.welcome-panel {
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#edf1e5;
  border:1px solid #e3e9d8;
  min-height:264px;
  padding:31px 38px;
  border-radius:var(--radius)
}
.welcome-panel .eyebrow {
  font-size:10px;
  letter-spacing:.8px;
  color:#91a079;
  margin-bottom:12px
}
.welcome-panel h1 {
  font-size:31px;
  line-height:1.6;
  letter-spacing:.005em;
  font-weight:650;
  color:#334a34
}
.welcome-panel p {
  font-size:11px;
  color:#839174;
  margin:10px 0 20px
}
.welcome-panel .button {
  padding:9px 14px;
  font-size:10px;
  min-height:35px
}
.welcome-art {
  position:relative;
  width:310px;
  height:200px;
  flex-shrink:0;
  opacity:.94
}
.art-back {
  position:absolute;
  border-radius:50%;
  width:205px;
  height:205px;
  background:#e0e8cf;
  left:60px;
  top:0
}
.art-back:before,.art-back:after {
  content:"";
  position:absolute;
  border:1px solid #d8e2c7;
  border-radius:50%;
  inset:-16px;
  transform:rotate(-16deg)
}
.art-back:after {
  inset:22px -44px;
  transform:rotate(-35deg)
}
.art-sheet {
  position:absolute;
  background:#fbfcf5;
  border:1px solid #d6dfc8;
  border-radius:8px;
  box-shadow:0 8px 12px #7e8d6b0a;
  display:flex;
  flex-direction:column;
  padding:19px;
  gap:10px
}
.art-sheet svg {
  color:#879e6c;
  width:28px;
  height:28px;
  margin-bottom:6px
}
.art-sheet span {
  height:4px;
  background:#dee6d1;
  border-radius:4px;
  width:100%
}
.art-sheet span:last-child {
  width:66%
}
.art-sheet-one {
  left:50px;
  top:17px;
  width:138px;
  height:171px;
  transform:rotate(-11deg)
}
.art-sheet-two {
  left:173px;
  top:58px;
  width:103px;
  height:126px;
  transform:rotate(12deg);
  background:#f6f9ed
}
.art-dot {
  position:absolute;
  height:14px;
  width:14px;
  border-radius:50%;
  background:#9bad7c;
  left:245px;
  top:22px;
  box-shadow:-214px 159px 0 -3px #acbd90
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin:22px 0 29px
}
.stat-card {
  padding:18px 23px 17px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  box-shadow:var(--shadow);
  transition:border-color .15s
}
.stat-card:hover {
  border-color:#b8c9a2
}
.stat-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#859079;
  font-size:10px;
  font-weight:600
}
.stat-top svg {
  width:17px;
  height:17px;
  color:#9ca68f
}
.stat-number {
  display:block;
  font-size:30px;
  font-weight:600;
  letter-spacing:-1px;
  line-height:1.2;
  margin:10px 0 7px;
  color:#405339
}
.stat-description {
  font-size:9px;
  color:#9aa38f
}
.dashboard-grid {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(245px,1fr);
  gap:23px;
  align-items:start
}
.section-card {
  background:#fff;
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow)
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:21px 23px 17px;
  gap:12px
}
.section-heading h2 {
  font-size:13px;
  font-weight:650;
  display:flex;
  align-items:center;
  gap:7px
}
.section-heading h2 svg {
  width:16px;
  height:16px;
  color:#8b9880
}
.section-heading p {
  font-size:9px;
  color:#97a08d;
  margin-top:4px
}
.section-heading .text-link {
  font-size:10px
}
.dashboard-aside {
  display:grid;
  gap:20px
}
.record-row {
  display:grid;
  grid-template-columns:38px minmax(100px,1fr) 106px 84px 115px 15px;
  gap:15px;
  align-items:center;
  padding:20px 22px;
  border-bottom:1px solid #edf0e8;
  min-width:0;
  transition:background .15s
}
.record-row:last-child {
  border-bottom:0
}
.record-row:hover {
  background:#f9fbf5
}
.record-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:8px;
  background:#f0f3e9;
  color:#8b9b73;
  flex-shrink:0
}
.record-icon svg {
  width:19px;
  height:19px
}
.kind-project {
  background:#edf1ea;
  color:#879a7b
}
.kind-reference {
  background:#efeff6;
  color:#9792ac
}
.kind-task {
  background:#f1f2e7;
  color:#a0a171
}
.kind-consultation,.kind-feedback {
  background:#f6f0e6;
  color:#b6a078
}
.record-main {
  min-width:0
}
.record-title {
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.record-preview {
  font-size:10px;
  color:#929c88;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-top:5px
}
.record-kind {
  font-size:10px;
  color:#8e9884
}
.record-date {
  font-size:10px;
  color:#87937d
}
.record-date small {
  display:block;
  color:#a3ad99;
  font-size:9px;
  margin-top:3px
}
.row-arrow {
  font-size:15px;
  color:#aab59d
}
.record-list {
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  overflow:hidden
}
.record-table-heading {
  display:grid;
  grid-template-columns:minmax(153px,1fr) 106px 84px 145px;
  gap:15px;
  padding:12px 22px;
  background:#f9faf7;
  border-bottom:1px solid var(--line);
  font-size:10px;
  color:#909a84
}
.record-row.compact {
  grid-template-columns:35px minmax(0,1fr) 15px;
  gap:12px;
  padding:17px 23px
}
.record-row.compact .record-icon {
  width:34px;
  height:34px;
  border-radius:7px
}
.record-row.compact .record-title {
  font-size:11px
}
.record-row.compact .record-preview {
  font-size:9px;
  margin-top:4px
}
.record-subline {
  font-size:8px;
  color:#a3ac98;
  margin-top:5px
}
.compact-records .record-row:first-child {
  border-top:1px solid #f0f2eb
}
.mini-list {
  padding:0 21px 8px
}
.mini-record {
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 0;
  border-top:1px solid #eff2e9
}
.mini-record .record-icon {
  width:30px;
  height:30px;
  border-radius:6px
}
.mini-record .record-icon svg {
  width:16px;
  height:16px
}
.mini-record>div {
  min-width:0;
  flex:1
}
.mini-record strong {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:10px;
  font-weight:600
}
.mini-record small {
  display:block;
  color:#a2aa98;
  font-size:8px;
  margin-top:3px
}
.mini-record>span:last-child {
  color:#a7b097;
  font-size:12px
}
.mini-empty {
  padding:2px 23px 24px
}
.mini-empty p {
  font-size:10px;
  color:#9ca58f;
  margin-bottom:13px;
  line-height:1.9
}
.mini-empty .text-link {
  font-size:10px
}
.quiet-note {
  display:flex;
  align-items:center;
  gap:8px;
  color:#9ba58f;
  font-size:9px;
  padding:24px 0 0
}
.quiet-note svg {
  width:14px;
  height:14px
}
.empty-state {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:68px 25px;
  min-height:300px
}
.empty-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f1f5ea;
  border-radius:15px;
  width:61px;
  height:61px;
  margin-bottom:20px;
  color:#9baE82
}
.empty-icon svg {
  width:26px;
  height:26px
}
.empty-state h3 {
  font-size:14px;
  font-weight:600;
  margin-bottom:10px;
  color:#6e7f5e
}
.empty-state p {
  font-size:11px;
  color:#9aa68c;
  line-height:1.9;
  margin-bottom:21px;
  max-width:290px
}
.empty-state .button {
  font-size:10px;
  padding:8px 13px;
  min-height:34px
}
.empty-state.compact {
  min-height:325px;
  padding:34px 26px
}
.empty-state.compact .empty-icon {
  width:50px;
  height:50px;
  margin-bottom:18px
}
.empty-state.compact h3 {
  font-size:12px
}
.empty-state.compact p {
  font-size:10px;
  max-width:220px
}
.badge {
  display:inline-flex;
  align-items:center;
  width:fit-content;
  max-width:100%;
  padding:3px 9px;
  border-radius:5px;
  background:#f0f3e9;
  color:#83936b;
  font-size:9px;
  line-height:1.7;
  overflow-wrap:anywhere
}
.status-active {
  background:#edf4e5;
  color:#71904f
}
.status-draft {
  background:#f2f3ef;
  color:#939b85
}
.status-archived {
  background:#eeefed;
  color:#8c9585
}
.tag {
  background:#f3f5ee;
  color:#829370
}
.neutral {
  background:#f2f3ef;
  color:#929b87
}
.filter-bar {
  display:flex;
  gap:11px;
  align-items:center;
  margin-bottom:19px
}
.list-search {
  flex:1;
  display:flex;
  align-items:center;
  background:white;
  border:1px solid #dfe4d9;
  border-radius:7px;
  padding:10px 13px;
  gap:10px
}
.list-search svg {
  width:16px;
  height:16px;
  color:#a0ab91
}
.list-search input {
  flex:1;
  border:0;
  background:none;
  outline:0;
  font-size:11px;
  width:100%;
  min-width:0
}
.list-search:focus-within {
  outline:2px solid #91a875;
  outline-offset:1px
}
.list-search input::placeholder {
  color:#a4ad97
}
.filter-bar select {
  font-size:11px;
  background:#fff;
  border:1px solid #dfe4d9;
  border-radius:7px;
  padding:10px 28px 10px 12px;
  min-height:39px;
  color:#7d8b6d;
  max-width:175px
}
.results-summary {
  font-size:10px;
  color:#929c84;
  margin:0 0 12px;
  overflow-wrap:anywhere
}
.pagination {
  display:flex;
  justify-content:center;
  margin-top:25px
}
.tabs {
  display:flex;
  gap:25px;
  border-bottom:1px solid var(--line);
  margin-bottom:23px
}
.tabs a {
  padding:0 3px 12px;
  font-size:12px;
  color:#98a18d;
  position:relative
}
.tabs a.active {
  font-weight:650;
  color:var(--green)
}
.tabs a.active:after {
  position:absolute;
  bottom:-1px;
  left:0;
  right:0;
  height:2px;
  background:var(--green);
  content:""
}
.page-loading {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:200px;
  font-size:12px;
  color:#89977b
}
.loading-dot {
  width:8px;
  height:8px;
  background:#8bA371;
  border-radius:50%;
  display:inline-block;
  animation:pulse 1.2s ease-in-out infinite
}
@keyframes pulse {
  50% {
    opacity:.3;
    transform:scale(.75)
  }
}
.notice {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 17px;
  background:#eef3e7;
  border:1px solid #dfe7d4;
  border-radius:8px;
  color:#7c8c68;
  font-size:11px;
  line-height:1.9;
  margin-bottom:20px
}
.notice.warning {
  background:#fff8e6;
  border-color:#eee1bd;
  color:#8d7a48
}
.notice.error {
  background:#fdf0ea;
  border-color:#f0d8ca;
  color:#9c725b
}
.notice .button {
  align-self:center
}
.discard-choice:empty {display:none}
@media(max-width:640px) {
  .discard-choice .notice {flex-direction:column}
  .discard-choice .conflict-actions {width:100%;align-items:stretch}
  .discard-choice .button {align-self:stretch}
}
.toast {
  position:fixed;
  bottom:26px;
  left:calc(50% + 100px);
  transform:translateX(-50%);
  background:#2c4e3e;
  color:#fff;
  padding:12px 21px;
  border-radius:9px;
  box-shadow:0 7px 30px #263b322b;
  z-index:60;
  font-size:12px;
  max-width:calc(100vw - 32px)
}
.detail-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 0 22px
}
.back-link.button {
  padding-left:0;
  background:none;
  border-color:transparent;
  color:#8a9879
}
.detail-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:23px;
  align-items:start
}
.document-content {
  padding:34px;
  min-height:500px
}
.document-content h1 {
  font-size:27px;
  line-height:1.7;
  overflow-wrap:anywhere;
  margin:17px 0 10px
}
.document-eyebrow {
  display:flex;
  gap:9px;
  align-items:center
}
.document-byline {
  font-size:10px;
  color:#a0a991;
  padding-bottom:25px;
  border-bottom:1px solid var(--line)
}
.document-body {
  margin-top:25px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  line-height:2.05;
  font-size:13px;
  color:#56674a;
  tab-size:2
}
.detail-aside {
  display:grid;
  gap:20px
}
.metadata-list {
  padding:0 23px 23px;
  margin:0;
  display:grid;
  gap:14px
}
.metadata-line {
  display:grid;
  grid-template-columns:75px minmax(0,1fr);
  align-items:start;
  gap:7px;
  font-size:10px;
  line-height:1.8
}
.metadata-line dt {
  color:#a0aa91
}
.metadata-line dd {
  margin:0;
  color:#70825d;
  overflow-wrap:anywhere
}
.metadata-line .text-link {
  font-size:10px;
  word-break:break-all
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:5px
}
.history-list {
  list-style:none;
  margin:0;
  padding:0 23px 20px
}
.history-list li {
  padding:0 0 20px 16px;
  border-left:1px solid #e4ebda;
  position:relative
}
.history-list li:before {
  content:"";
  position:absolute;
  top:6px;
  left:-4px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#d6dfca;
  border:2px solid #fff;
  box-sizing:content-box
}
.history-list li.current:before {
  background:#8aA470
}
.history-list li:last-child {
  padding-bottom:0;
  border-left-color:transparent
}
.history-version {
  display:flex;
  align-items:center;
  gap:9px
}
.history-version strong {
  font-size:11px;
  font-weight:650;
  color:#82946e
}
.history-version span {
  font-size:8px;
  color:#94a282
}
.history-list p {
  font-size:10px;
  color:#8b9b78;
  margin:5px 0;
  overflow-wrap:anywhere
}
.history-list time {
  font-size:8px;
  color:#a8b298
}
.history-list a:hover p {
  text-decoration:underline
}
.editor-form {
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  padding:30px;
  box-shadow:var(--shadow)
}
.editor-fields {
  border:0;
  margin:0;
  padding:0;
  min-width:0;
  display:grid;
  gap:24px
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.form-field {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0
}
.form-field label {
  font-size:11px;
  color:#758965;
  font-weight:650
}
.form-field input,.form-field select,.form-field textarea {
  background:#fff;
  border:1px solid #dae3d1;
  border-radius:7px;
  padding:12px 13px;
  min-height:42px;
  font-size:12px;
  width:100%;
  line-height:1.7
}
.form-field input::placeholder,.form-field textarea::placeholder {
  color:#a9b29e
}
.form-field textarea {
  resize:vertical;
  min-height:290px;
  line-height:1.9;
  font-size:13px
}
.form-field:has(input[name=title]) input {
  font-size:19px;
  letter-spacing:.02em;
  padding:14px 15px
}
.field-help {
  font-size:10px;
  color:#a0ad91;
  line-height:1.8
}
.editor-options {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:16px 0
}
.editor-options summary {
  font-size:11px;
  color:#869A71;
  cursor:pointer
}
.editor-options[open] summary {
  margin-bottom:18px
}
.editor-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding-top:23px;
  margin-top:25px
}
.save-hint {
  font-size:10px;
  color:#9daa8a
}
.editor-message:not(:empty) {
  margin-top:23px
}
.editor-message .notice {
  display:block
}
.conflict-actions {
  margin-top:12px
}
.settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
.structured-document {overflow-wrap:anywhere}
.structured-document .structured-text {white-space:pre-wrap;margin:0}
.structured-fields {display:grid;gap:12px;margin:18px 0}
.structured-fields>div {display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,3fr);gap:12px}
.structured-fields dt {color:var(--muted);font-size:11px}
.structured-fields dd {margin:0;min-width:0}
.structured-fields .structured-fields>div {display:block}
.structured-document ul {padding-left:20px}
.structured-document li {margin:8px 0}
.structured-section {padding:20px 0;border-top:1px solid var(--line)}
.structured-section h2 {font-size:16px;margin:0 0 12px}
.structured-original {margin-top:20px;border-top:1px solid var(--line);padding-top:18px}
.structured-original summary {cursor:pointer;font-weight:600}
.structured-original pre {white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.7 var(--font-mono,monospace);margin-top:16px}
.setting-card {
  padding:29px;
  display:flex;
  flex-direction:column;
  align-items:flex-start
}
.setting-icon {
  display:grid;
  place-items:center;
  background:#f0f5e7;
  color:#8eA377;
  width:42px;
  height:42px;
  border-radius:11px;
  margin-bottom:17px
}
.setting-card h2 {
  font-size:15px;
  margin-bottom:12px
}
.setting-card>p {
  font-size:11px;
  line-height:1.95;
  color:#95a181;
  margin-bottom:22px
}
.setting-card .metadata-list {
  padding:0;
  margin-bottom:23px;
  width:100%
}
.setting-card .metadata-line {
  grid-template-columns:90px minmax(0,1fr)
}
.connection-status {
  font-size:11px;
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:25px;
  min-height:47px;
  color:#8fA378
}
.connection-status strong {
  font-weight:550
}
.connection-status .notice {
  margin-bottom:0
}
.setting-card .notice {
  display:block;
  font-size:10px;
  margin:0 0 15px;
  width:100%
}
.settings-link {
  margin-top:22px
}
.noscript-message {
  position:fixed;
  inset:20px 20px auto;
  background:#fff4db;
  padding:18px;
  border:1px solid #e7d7a9;
  z-index:100;
  color:#897342
}
.signed-out {
  min-height:100vh;
  background:#fafbf7
}
.login-layout {
  min-height:100vh;
  display:grid;
  grid-template-columns:1fr 1fr
}
.login-story {
  padding:48px 60px 28px;
  background:#edf2e5;
  position:relative;
  overflow:hidden;
  display:flex;
  flex-direction:column
}
.login-story .brand {
  padding:0
}
.login-story-content {
  margin:auto 0;
  padding:65px 0 20px
}
.login-story-content>.eyebrow {
  color:#8c9d76;
  font-size:10px
}
.login-story h1 {
  font-size:38px;
  line-height:1.8;
  letter-spacing:.025em;
  margin:22px 0;
  color:#3d5334
}
.login-story p {
  font-size:12px;
  line-height:2.2;
  color:#92a07f
}
.login-story-footer {
  font-size:9px;
  letter-spacing:.5px;
  color:#acb69d;
  margin-top:20px
}
.orbit-illustration {
  position:relative;
  width:290px;
  height:235px;
  margin:27px auto 0
}
.orbit-ring {
  position:absolute;
  border:1px solid #d4dfc3;
  border-radius:50%;
  inset:27px 22px;
  transform:rotate(-22deg)
}
.orbit-two {
  inset:42px 0;
  transform:rotate(28deg)
}
.orbit-core {
  position:absolute;
  left:107px;
  top:67px;
  width:85px;
  height:85px;
  border-radius:23px;
  background:#dbe6ca;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:52px;
  letter-spacing:-6px;
  color:#657f4b;
  box-shadow:0 10px 25px #7e966611;
  font-weight:700
}
.orbit-core span {
  color:#96ac7c
}
.orbit-label {
  position:absolute;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  border:1px solid #d7e1ca;
  padding:7px 16px;
  border-radius:7px;
  background:#f6f9ef;
  color:#8b9d77
}
.orbit-label-one {
  left:16px;
  top:38px;
  transform:rotate(-8deg)
}
.orbit-label-two {
  right:8px;
  top:126px;
  transform:rotate(6deg)
}
.orbit-label-three {
  left:32px;
  top:182px;
  transform:rotate(-3deg)
}
.login-panel {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:65px 35px
}
.login-card {
  max-width:330px;
  width:100%
}
.login-icon {
  display:grid;
  place-items:center;
  width:53px;
  height:53px;
  background:#edf3e4;
  color:#90a774;
  border-radius:13px;
  margin-bottom:28px
}
.login-icon svg {
  width:27px;
  height:27px
}
.login-card>.eyebrow {
  display:block;
  font-size:9px;
  color:#96a486;
  letter-spacing:1.8px;
  margin-bottom:14px
}
.login-card h2 {
  font-size:26px;
  color:#465e39;
  letter-spacing:-.02em;
  font-weight:650
}
.login-card p {
  font-size:12px;
  color:#9aa78b;
  line-height:2;
  margin:18px 0 30px
}
.login-button {
  width:100%;
  justify-content:space-between;
  font-size:12px;
  padding:13px 18px
}
.login-privacy {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:9px;
  color:#a7b096;
  margin-top:20px
}
.login-privacy .live-dot {
  width:4px;
  height:4px
}
.login-bottom {
  position:absolute;
  bottom:28px;
  color:#b1b99f;
  font-size:9px;
  letter-spacing:.1em
}
@media(min-width:1600px) {
  .topbar {
    padding-left:max(42px,calc((100vw - 1485px)/2));
    padding-right:max(42px,calc((100vw - 1485px)/2))
  }
  #main {
    padding-top:44px
  }
  .welcome-panel {
    min-height:280px
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr)
  }
}
@media(max-width:1180px) {
  .app-shell {
    grid-template-columns:212px minmax(0,1fr)
  }
  .sidebar {
    padding-left:12px;
    padding-right:12px
  }
  .topbar {
    padding:0 28px;
    gap:15px
  }
  #main {
    padding:28px
  }
  .page-footer {
    padding-left:28px;
    padding-right:28px
  }
  .global-search {
    width:225px
  }
  .private-pill {
    display:none
  }
  .welcome-panel {
    padding:27px
  }
  .welcome-panel h1 {
    font-size:27px
  }
  .welcome-art {
    width:240px;
    transform:scale(.88);
    transform-origin:right center
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1.35fr) minmax(235px,1fr);
    gap:17px
  }
  .section-heading,.record-row.compact {
    padding-left:18px;
    padding-right:18px
  }
  .record-row {
    grid-template-columns:34px minmax(90px,1fr) 80px 72px 89px 12px;
    gap:10px;
    padding:18px 17px
  }
  .record-table-heading {
    grid-template-columns:minmax(134px,1fr) 80px 72px 111px;
    gap:10px;
    padding-left:17px;
    padding-right:17px
  }
  .record-date {
    font-size:9px
  }
  .record-kind {
    font-size:9px
  }
  .detail-grid {
    grid-template-columns:minmax(0,1fr) 240px;
    gap:17px
  }
  .document-content {
    padding:25px
  }
  .metadata-list {
    padding-left:18px;
    padding-right:18px
  }
  .settings-grid {
    gap:17px
  }
  .setting-card {
    padding:23px
  }
  .login-story {
    padding:40px
  }
  .login-story h1 {
    font-size:32px
  }
  .global-notice {
    padding:14px 28px
  }
}
@media(max-width:960px) {
  .app-shell {
    grid-template-columns:190px minmax(0,1fr)
  }
  .sidebar {
    padding-left:10px;
    padding-right:10px
  }
  .nav-link {
    font-size:11px;
    gap:9px;
    padding:11px 10px
  }
  .nav-link.active:after {
    right:8px;
    width:4px;
    height:4px
  }
  .workspace-label {
    font-size:8px;
    letter-spacing:.9px
  }
  .brand-word {
    font-size:26px
  }
  .brand-mark {
    width:28px;
    height:30px;
    padding:6px
  }
  .sidebar-note {
    font-size:9px;
    padding-left:5px;
    gap:7px
  }
  .sidebar-note small {
    font-size:8px
  }
  .topbar {
    height:73px;
    padding:0 23px
  }
  .breadcrumb>span:first-child,.breadcrumb-separator {
    display:none
  }
  .global-search {
    width:210px
  }
  #main {
    padding:26px 23px
  }
  .welcome-art {
    width:200px;
    transform:scale(.72);
    transform-origin:right center
  }
  .welcome-panel {
    padding:25px;
    min-height:250px
  }
  .welcome-panel h1 {
    font-size:25px
  }
  .welcome-panel p {
    font-size:10px;
    max-width:240px
  }
  .stats-grid {
    gap:10px
  }
  .stat-card {
    padding:16px
  }
  .dashboard-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .dashboard-aside {
    grid-template-columns:1fr 1fr;
    gap:16px
  }
  .record-row {
    grid-template-columns:32px minmax(100px,1fr) 72px 77px 12px
  }
  .record-row>.record-kind {
    display:none
  }
  .record-table-heading {
    grid-template-columns:minmax(142px,1fr) 72px 99px
  }
  .record-table-heading>span:nth-child(2) {
    display:none
  }
  .detail-grid {
    grid-template-columns:minmax(0,1fr)
  }
  .detail-aside {
    grid-template-columns:1fr 1fr;
    align-items:start
  }
  .filter-bar {
    gap:8px
  }
  .filter-bar select {
    max-width:130px;
    padding-right:16px;
    font-size:10px
  }
  .settings-grid {
    grid-template-columns:1fr
  }
  .setting-card {
    padding:26px
  }
  .login-story {
    padding:36px
  }
  .login-story h1 {
    font-size:28px
  }
  .login-panel {
    padding:55px 30px
  }
  .login-card h2 {
    font-size:22px
  }
  .toast {
    left:calc(50% + 70px)
  }
  .editor-actions {
    align-items:flex-start;
    flex-direction:column
  }
  .editor-actions>.button-group {
    align-self:flex-end
  }
}
@media(max-width:720px) {
  .app-shell {
    display:block
  }
  .sidebar {
    position:fixed;
    left:0;
    top:0;
    width:242px;
    transform:translateX(-100%);
    transition:transform .2s ease;
    box-shadow:none;
    padding:28px 18px 0
  }
  .sidebar.is-open {
    transform:translateX(0);
    box-shadow:10px 0 60px #243e3530
  }
  .sidebar-scrim {
    position:fixed;
    inset:0;
    background:#253b3245;
    backdrop-filter:blur(2px);
    z-index:19
  }
  .mobile-menu {
    display:inline-flex
  }
  .topbar {
    height:67px;
    gap:12px;
    padding:0 17px
  }
  .breadcrumb {
    font-size:11px;
    max-width:130px;
    overflow:hidden;
    text-overflow:ellipsis
  }
  .breadcrumb strong {
    overflow:hidden;
    text-overflow:ellipsis
  }
  .global-search {
    width:auto;
    max-width:210px;
    flex:1
  }
  .global-search input {
    font-size:10px
  }
  .global-search button {
    display:none
  }
  .sidebar .brand-word {
    font-size:29px
  }
  .sidebar .brand-mark {
    width:30px;
    height:33px;
    padding:7px
  }
  .nav-link {
    font-size:12px;
    padding:12px 13px;
    gap:12px
  }
  .workspace-label {
    font-size:9px;
    letter-spacing:1.1px
  }
  .sidebar-note {
    font-size:10px;
    padding-left:11px;
    gap:10px
  }
  .sidebar-note small {
    font-size:9px
  }
  #main {
    padding:23px 18px
  }
  .page-footer {
    padding:17px 18px 25px
  }
  .welcome-panel {
    padding:25px;
    min-height:260px
  }
  .welcome-panel h1 {
    font-size:25px
  }
  .welcome-art {
    width:175px;
    transform:scale(.64)
  }
  .welcome-panel p {
    font-size:10px;
    max-width:220px
  }
  .stats-grid {
    gap:9px;
    margin:16px 0 23px
  }
  .stat-card {
    padding:14px 13px
  }
  .stat-top {
    font-size:9px
  }
  .stat-top svg {
    width:15px;
    height:15px
  }
  .stat-number {
    font-size:26px
  }
  .stat-description {
    font-size:8px
  }
  .dashboard-grid {
    gap:17px
  }
  .dashboard-aside {
    gap:14px
  }
  .quiet-note {
    align-items:flex-start;
    font-size:8px;
    line-height:1.9;
    padding-top:22px
  }
  .page-heading {
    gap:15px;
    align-items:flex-start;
    margin:2px 0 23px
  }
  .page-heading h1 {
    font-size:24px
  }
  .page-heading .eyebrow {
    font-size:8px;
    letter-spacing:1.1px;
    margin-bottom:7px
  }
  .page-description {
    font-size:11px;
    line-height:1.85;
    max-width:390px
  }
  .page-heading>.button {
    font-size:10px;
    padding:9px 11px;
    min-height:34px;
    margin-top:9px
  }
  .filter-bar {
    flex-wrap:wrap
  }
  .list-search {
    flex-basis:100%;
    padding:11px 12px
  }
  .filter-bar select {
    flex:1;
    max-width:none
  }
  .filter-bar .button {
    min-width:75px
  }
  .record-row {
    grid-template-columns:32px minmax(80px,1fr) 70px 12px;
    gap:10px;
    padding:17px 15px
  }
  .record-row>.record-date {
    display:none
  }
  .record-table-heading {
    grid-template-columns:minmax(122px,1fr) 92px;
    padding:12px 15px
  }
  .record-table-heading>span:last-child {
    display:none
  }
  .record-row .record-title {
    font-size:11px
  }
  .record-row .record-preview {
    font-size:9px
  }
  .record-icon {
    width:32px;
    height:32px
  }
  .record-icon svg {
    width:17px;
    height:17px
  }
  .record-row .badge {
    font-size:8px;
    padding:3px 7px
  }
  .document-content {
    padding:24px
  }
  .document-content h1 {
    font-size:24px
  }
  .document-body {
    font-size:12px
  }
  .detail-toolbar {
    margin-bottom:16px
  }
  .editor-form {
    padding:23px
  }
  .form-grid {
    gap:16px
  }
  .form-field textarea {
    min-height:310px
  }
  .form-field:has(input[name=title]) input {
    font-size:17px
  }
  .save-hint {
    font-size:9px
  }
  .toast {
    left:50%;
    width:max-content;
    font-size:11px
  }
  .global-notice {
    flex-direction:column;
    align-items:flex-start;
    gap:7px;
    padding:12px 18px;
    font-size:11px
  }
  .settings-grid {
    gap:16px
  }
  .login-layout {
    grid-template-columns:1fr;
    min-height:100dvh
  }
  .login-story {
    padding:30px 30px 0
  }
  .login-story .brand {
    margin-bottom:30px
  }
  .login-story-content {
    padding:0 0 30px;
    margin:0;
    position:relative;
    min-height:205px
  }
  .login-story-content>.eyebrow {
    font-size:8px
  }
  .login-story h1 {
    font-size:26px;
    line-height:1.7;
    margin:14px 0 12px
  }
  .login-story p {
    font-size:10px;
    line-height:1.9
  }
  .orbit-illustration {
    position:absolute;
    right:-45px;
    bottom:7px;
    transform:scale(.6);
    transform-origin:right bottom;
    width:260px;
    height:230px
  }
  .login-story-footer {
    display:none
  }
  .login-panel {
    padding:45px 30px 70px;
    align-items:flex-start
  }
  .login-card {
    max-width:380px
  }
  .login-icon {
    display:none
  }
  .login-card h2 {
    font-size:23px
  }
  .login-card p {
    margin:13px 0 23px;
    font-size:11px
  }
  .login-bottom {
    bottom:22px
  }
  .login-privacy {
    font-size:9px
  }
  .noscript-message {
    font-size:12px
  }
}
@media(max-width:460px) {
  .global-search {
    max-width:175px
  }
  .breadcrumb {
    max-width:85px
  }
  .welcome-panel {
    min-height:249px;
    padding:22px
  }
  .welcome-panel h1 {
    font-size:24px
  }
  .welcome-panel p {
    max-width:220px;
    font-size:9px;
    margin-bottom:18px
  }
  .welcome-art {
    position:absolute;
    right:-33px;
    bottom:-22px;
    transform:scale(.48);
    transform-origin:right bottom;
    width:310px;
    height:200px;
    opacity:.75
  }
  .welcome-panel>div:first-child {
    position:relative;
    z-index:1
  }
  .welcome-panel .button {
    font-size:9px
  }
  .stat-card {
    padding:12px 10px
  }
  .stat-top {
    font-size:8px
  }
  .stat-top svg {
    width:13px;
    height:13px
  }
  .stat-number {
    font-size:24px
  }
  .stat-description {
    font-size:7px
  }
  .dashboard-aside {
    grid-template-columns:1fr
  }
  .section-heading {
    padding:19px 19px 15px
  }
  .record-row.compact {
    padding:16px 19px
  }
  .page-heading {
    flex-direction:column;
    gap:0
  }
  .page-heading>.button {
    align-self:flex-start;
    margin-top:14px
  }
  .page-description {
    font-size:10px
  }
  .page-heading h1 {
    font-size:23px
  }
  .record-row {
    grid-template-columns:29px minmax(0,1fr) 12px;
    gap:10px;
    padding:16px 13px
  }
  .record-row>.badge {
    display:none
  }
  .record-table-heading {
    display:none
  }
  .record-icon {
    width:29px;
    height:29px;
    border-radius:6px
  }
  .record-icon svg {
    width:16px;
    height:16px
  }
  .record-title {
    font-size:11px
  }
  .record-preview {
    font-size:9px
  }
  .record-list .empty-state {
    padding:45px 20px
  }
  .detail-aside {
    grid-template-columns:1fr
  }
  .document-content {
    padding:22px;
    min-height:330px
  }
  .document-content h1 {
    font-size:22px
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:23px
  }
  .editor-form {
    padding:20px
  }
  .editor-fields {
    gap:22px
  }
  .editor-actions {
    gap:17px
  }
  .editor-actions>.button-group {
    width:100%;
    justify-content:space-between
  }
  .editor-actions .button {
    font-size:10px;
    padding:10px 13px
  }
  .conflict-actions {
    align-items:stretch;
    flex-direction:column
  }
  .conflict-actions>.button {
    white-space:normal
  }
  .notice {
    font-size:10px
  }
  .login-story {
    padding:28px 25px 0
  }
  .login-story h1 {
    font-size:24px
  }
  .orbit-illustration {
    right:-62px;
    transform:scale(.48);
    bottom:9px
  }
  .login-panel {
    padding:37px 25px 68px
  }
  .login-card h2 {
    font-size:22px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
.auth-error {
  margin-top:18px
}
.logout-layout {
  min-height:100dvh;
  max-width:660px;
  margin:auto;
  padding:55px 25px
}
.logout-layout>.brand {
  padding:0;
  margin-bottom:50px
}
.import-card {width:min(100%,760px);padding:32px;overflow-wrap:anywhere;}
.import-card h1 {margin:10px 0 18px;}
.import-card p {line-height:1.8;}
.import-card input[type="file"] {display:block;width:100%;margin:12px 0 20px;}
.import-card .button-group {flex-wrap:wrap;margin:20px 0;}
.import-card progress {display:block;width:100%;height:16px;accent-color:var(--accent,#243e35);}
@media(max-width:600px) {.import-card {padding:22px;}.import-card h1 {font-size:25px;}}
.logout-card {
  padding:40px
}
.logout-card .eyebrow {
  font-size:9px
}
.logout-card h1 {
  font-size:24px;
  margin:12px 0 18px
}
.logout-card p {
  color:#91a080;
  font-size:12px;
  line-height:2;
  margin-bottom:30px
}
.logout-card .button-group {
  justify-content:space-between
}
.logout-card .login-icon {
  display:grid
}
@media(max-width:460px) {
  .logout-card {
    padding:25px
  }
  .logout-card h1 {
    font-size:21px
  }
  .logout-card .button-group {
    align-items:stretch;
    flex-direction:column
  }
  .logout-card p {
    font-size:11px
  }
}
/* Keep Japanese utility text readable on dense and narrow layouts. */
.global-search input {
  font-size:12px
}
.private-pill {
  font-size:11px
}
.owner-copy strong {
  font-size:12px
}
.owner-copy span {
  font-size:10px
}
.page-description {
  font-size:13px
}
.welcome-panel p {
  font-size:12px
}
.stat-top {
  font-size:12px
}
.stat-description {
  font-size:11px
}
.section-heading h2 {
  font-size:15px
}
.section-heading p {
  font-size:11px
}
.section-heading .text-link {
  font-size:11px
}
.record-title,.record-row.compact .record-title {
  font-size:13px
}
.record-preview,.record-row.compact .record-preview {
  font-size:11px
}
.record-subline {
  font-size:10px
}
.record-kind,.record-date {
  font-size:11px
}
.record-date small {
  font-size:10px
}
.record-table-heading,.results-summary {
  font-size:11px
}
.badge {
  font-size:10px
}
.mini-record strong {
  font-size:12px
}
.mini-record small {
  font-size:10px
}
.mini-empty p,.mini-empty .text-link {
  font-size:11px
}
.quiet-note {
  font-size:10px
}
.empty-state.compact h3 {
  font-size:14px
}
.empty-state.compact p {
  font-size:11px
}
.form-field label {
  font-size:12px
}
.field-help,.save-hint {
  font-size:11px
}
.document-byline {
  font-size:11px
}
.metadata-line,.metadata-line .text-link {
  font-size:11px
}
.history-list p {
  font-size:11px
}
.history-list time,.history-version span {
  font-size:10px
}
.setting-card>p,.setting-card .notice {
  font-size:12px
}
.setting-card .connection-status {
  font-size:12px
}
.login-card p {
  font-size:13px
}
.login-privacy {
  font-size:10px
}
.page-footer {
  font-size:10px
}
@media(max-width:720px) {
  .stat-top {
    font-size:10px
  }
  .stat-description {
    font-size:9px
  }
  .welcome-panel p {
    font-size:11px
  }
  .record-row .record-title {
    font-size:12px
  }
  .record-row .record-preview {
    font-size:11px
  }
  .record-row .badge {
    font-size:9px
  }
  .page-description {
    font-size:12px
  }
  .global-search input {
    font-size:11px
  }
  .save-hint {
    font-size:10px
  }
  .quiet-note {
    font-size:10px
  }
  .page-heading>.button {
    font-size:11px
  }
}
@media(max-width:460px) {
  .stat-top {
    font-size:9px
  }
  .stat-description {
    font-size:9px
  }
  .welcome-panel p {
    max-width:200px;
    font-size:10px
  }
  .global-search {
    max-width:165px
  }
  .record-subline {
    font-size:10px
  }
  .notice {
    font-size:11px
  }
}
.sidebar {
  overflow-y:auto;
  overscroll-behavior:contain
}
.sidebar .brand,.sidebar nav,.sidebar-secondary,.owner {
  flex-shrink:0
}
.history-count {
  margin:0;
  padding:0 23px 17px;
  color:#93a080;
  font-size:11px;
}
.history-pagination {
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:0 23px 23px;
}
.history-pagination .button {
  font-size:10px;
  white-space:normal;
}
.history-feedback:empty {
  display:none;
}
.history-pagination .notice {
  margin-bottom:0;
}

/* Functional pages share the upper icon navigation and lower workspace utilities. */
.sidebar {overflow-y:auto; overscroll-behavior:contain;}
.sidebar .brand,.sidebar .owner {flex-shrink:0;}
.functional-page .topbar {justify-content:space-between;}
.functional-page .cg-main {max-width:1500px;width:100%;}
.functional-page .import-main {padding:36px clamp(18px,4vw,60px);}
.functional-page .import-card {max-width:960px;margin:0 auto;}
.catalog-related {display:flex;flex-wrap:wrap;gap:18px;margin:-10px 0 24px;font-size:12px;}
.catalog-related a {text-decoration:underline;color:var(--green);}
@media(max-height:850px) {.sidebar {padding-top:22px;}.sidebar .workspace-label {margin-top:22px;margin-bottom:12px;}.sidebar nav {gap:3px;}.sidebar-secondary {margin-top:18px;padding-top:15px;}.sidebar-note {padding-top:16px;padding-bottom:16px;}}

#main > .cg-main {padding:0;max-width:1500px;width:100%;}

/* Route progress is indeterminate: it represents pending content, not a percent. */
.route-loading{position:fixed;inset:0 0 auto;z-index:90;height:3px;overflow:hidden;background:var(--line,#dfe5dd);pointer-events:none}
.route-loading[hidden]{display:none}
.route-loading-track{display:block;width:35%;height:100%;background:var(--accent,#426b45);animation:route-loading-slide 1.3s ease-in-out infinite}
@keyframes route-loading-slide{from{transform:translateX(-100%)}to{transform:translateX(390%)}}
@media(prefers-reduced-motion:reduce){.route-loading-track{animation:none;width:100%;opacity:.75}.loading-dot{animation:none}}

/* Same-shell project pages keep source chronology distinct from native save state. */
.project-page,.project-sections {display:grid;gap:20px}
.project-page .detail-actions {display:flex;flex-wrap:wrap;gap:8px}
.project-page .metadata-list {padding:0}
.project-page .metadata-line {grid-template-columns:minmax(90px,140px) minmax(0,1fr)}
.project-section .document-body {margin-top:0}
.project-card-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.project-card {display:flex;flex-direction:column;gap:15px;padding:24px;color:inherit;text-decoration:none;overflow-wrap:anywhere}
.project-card:hover,.project-card:focus-visible {border-color:var(--green);box-shadow:0 4px 18px #40533912}
.project-card h2 {font-size:19px;margin:0}
.project-card p {font-size:12px;line-height:1.8;margin:0;color:#70825d}
.project-card-meta {display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:10px;color:#70825d;margin-top:auto}
.project-page .document-body {max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere}
.instruction-selection {display:grid;gap:14px;padding:24px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.instruction-selection h2 {font-size:15px;line-height:1.5}
.instruction-selection h2,.instruction-selection p {margin:0}
.instruction-selection .button-group {flex-wrap:wrap;gap:8px}
.instruction-selection .button {white-space:normal;text-align:left;max-width:100%}
.instruction-selection .field-help:empty {display:none}
#main>.instruction-selection {margin-bottom:24px}
/* The instructions page: the selection, then the chosen document whole (owner 2026-10-22). */
.instruction-current {display:grid;gap:18px;margin-bottom:24px}
.instruction-full {min-height:0}
.instruction-full .instruction-full-title {font-size:24px;line-height:1.6;overflow-wrap:anywhere;margin:14px 0 8px}
.private-files-page {display:grid;gap:20px;max-width:1100px;margin:0 auto}
.private-files-page h1,.private-files-page h2,.private-files-page p {margin:0}
.private-files-page>p,.file-upload p,.file-archive p {font-size:12px;line-height:1.8}
.file-upload,.file-archive {padding:24px;display:grid;gap:16px}
.file-upload h2,.file-archive h2 {font-size:17px}
.file-upload input {max-width:100%}
.file-upload progress {width:100%;height:10px;accent-color:var(--green)}
.file-archives {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.file-row {display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:12px}
.file-name {flex:1;min-width:0;overflow-wrap:anywhere}
.file-size {white-space:nowrap;color:var(--muted)}
.file-preview {white-space:pre-wrap;overflow-wrap:anywhere;max-height:60vh;overflow:auto;padding:24px;background:white;border:1px solid var(--line);border-radius:12px;font-size:12px;line-height:1.8}
.workflow-page{display:grid;gap:18px;max-width:1000px;margin:0 auto}
.workflow-page .section-card{padding:24px;min-width:0}
.workflow-page .workflow-field{display:grid;gap:8px;margin:16px 0;font-size:13px;font-weight:600}
.workflow-field input,.workflow-field select,.workflow-field textarea{width:100%;min-width:0;box-sizing:border-box;padding:12px;border:1px solid var(--line);border-radius:8px;background:white;color:inherit;font:inherit;line-height:1.7}
.workflow-field textarea{resize:vertical}
.workflow-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line)}
.workflow-row .text-link{flex:1;text-align:left;min-width:150px;white-space:normal;overflow-wrap:anywhere;border:0;background:transparent;padding:4px 0;color:var(--green);font:inherit;font-weight:600;cursor:pointer}
.workflow-row .text-link:hover{text-decoration:underline}
.workflow-page .notice:empty{display:none}
.workflow-page .worker-connection-id{overflow-wrap:anywhere}
.workflow-row small{width:100%;color:var(--muted)}
.workflow-message{padding:20px 0;border-bottom:1px solid var(--line)}
.workflow-message h3{font-size:14px;margin:0 0 8px}
.workflow-message small{font-size:11px;overflow-wrap:anywhere}
.workflow-message .document-body{min-height:0;margin:14px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.workflow-detail>.button,.workflow-message>.button{margin:8px 8px 0 0}
.workflow-page summary{cursor:pointer;font-weight:600}
@media(max-width:600px){.workflow-page .section-card{padding:16px}.workflow-page .button-group{flex-wrap:wrap}.workflow-page .button{white-space:normal}.workflow-row small{font-size:11px}}
.file-archive .button,.private-files-page>.button {justify-self:start}
.private-files-page .filter-bar {display:flex;gap:10px}
.private-files-page .filter-bar input {flex:1;min-width:0;padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:white;font:inherit;font-size:12px}
@media(max-width:760px){.file-archives{grid-template-columns:1fr}.file-row{flex-wrap:wrap}.file-name{flex-basis:100%}}
@media(max-width:760px){.project-card-grid{grid-template-columns:1fr}.project-page .page-heading{align-items:flex-start;flex-direction:column;gap:16px}.project-card{padding:20px}.project-page .metadata-line{grid-template-columns:90px minmax(0,1fr)}}

/* Task identity stays readable at every breakpoint; prefixes are display tags. */
.record-row.task-row .record-title {white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.65;}
.task-labels {display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center;margin-top:9px;}
.task-labels .tag {white-space:normal;overflow-wrap:anywhere;max-width:100%;}
.task-assignee {flex-basis:100%;font-size:12px;font-weight:600;line-height:1.6;overflow-wrap:anywhere;}
.editor-fields [hidden] {display:none!important;}
.task-row:not(.compact) .task-inline-state {display:none;}
@media(max-width:460px){.task-row:not(.compact) .task-inline-state {display:inline-flex;}}
/* Grouped sidebar (2026-10 redesign): brand, purpose groups, then the owner.
   Keep brand and owner pinned while only <nav> scrolls on shorter viewports so 15 items fit cleanly. */
.sidebar {overflow:hidden;padding-top:24px}
.sidebar nav {flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d5ddd0 transparent;margin:18px -6px 0;padding:0 6px 12px;gap:13px;align-content:start}
.nav-group {display:grid;gap:2px}
.nav-group .nav-link {padding:7px 12px}
.nav-group .nav-caption {padding:0 12px 4px;font-weight:650;letter-spacing:.06em}
.sidebar .owner {margin-top:auto;padding:14px 7px 16px;flex-shrink:0}
@media(min-width:721px) and (max-height:860px){.sidebar{padding-top:16px}.sidebar nav{margin-top:12px;padding-bottom:8px;gap:9px}.nav-group{gap:1px}.nav-group .nav-link{padding:5px 11px;line-height:1.35}.nav-group .nav-caption{padding:0 11px 2px;font-size:9px}.sidebar .owner{padding:10px 7px 12px}}
@media(max-width:720px){.sidebar{padding-top:22px}.nav-group .nav-link{padding:10px 12px}}
body[data-notes-theme="dark"] .sidebar nav {scrollbar-color:rgba(255,255,255,.18) transparent}
.topbar .breadcrumb strong {font-size:13px}
/* The cost report is the odd third card; give it the full row instead of leaving a hole. */
.settings-grid .cost-report {grid-column:1/-1}
.settings-grid+.setting-card,.settings-grid~.setting-card {margin-top:22px}
.setting-card .button-group {max-width:100%}
.setting-card .button {max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}
.saved-research-links {display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:0 0 18px;padding:14px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.saved-research-links p {margin:0;font-size:12px;color:var(--muted)}
.home-grid {margin-top:18px}
/* One column below 960px: the short task and project lists come before the long recent list. */
@media(max-width:960px){.home-grid .dashboard-aside {order:-1}}
.home-grid .mini-record strong {font-size:13px}
.home-grid .mini-record small {font-size:11px}
.home-grid .mini-list {padding-bottom:12px}
.home-grid p.mini-empty {font-size:12px;color:#8f9984;padding:0 23px 22px}
.home-links {display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.list-sentinel {height:1px}
.project-markdown {font-family:inherit;line-height:1.75}
textarea.project-markdown {min-height:420px}
/* Home structure chart (owner decision 2026-10-19): the Typeform-style numbered flowchart, on a cream ground
   with faint dots. Type, set from マイ資料: the owner's chosen face (see --flow-font) in two real weights only —
   500 for names (small text keeps a sturdy stroke, Financier), 700 for numbers and islands — with nothing
   synthesised; roles told apart by weight and tracking (Son Daven); 11px at the smallest; numbers in tabular
   figures in a fixed place on every card (Units, Depo Luxe). */
.structure-section {padding-bottom:18px;margin-bottom:22px}
.structure-section .section-heading {flex-wrap:wrap;gap:6px 14px;align-items:baseline}
.structure-hint {font-size:11px;color:var(--muted);line-height:1.6}
.structure-graph-frame {--flow-ink:#262627;--flow-muted:#76695a;--flow-line:#b9ad99;--flow-web:#c2410c;--flow-read:#6a4bbf;
  /* Noto Sans JP for Japanese and Latin alike (owner 2026-10-19: of ten faces compared at FHD, "フォントは１に決定"),
     so the chart looks the same on every device. The site serves it itself (src/ui/fonts, SIL OFL 1.1; the home page
     loads /assets/fonts/noto-sans-jp.css). Until it arrives, or if it cannot, the system faces stand in: the Latin
     face first (SF Pro on Mac and iPhone, Segoe UI on Windows), then Hiragino Sans or BIZ UDPGothic for Japanese. */
  --flow-font:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI","Hiragino Sans","Hiragino Kaku Gothic ProN","BIZ UDPGothic","Yu Gothic UI",Meiryo,sans-serif;
  position:relative;margin:4px 16px 0;border-radius:14px;overflow:hidden;min-height:420px;
  background-color:#f5f1ea;background-image:radial-gradient(circle,rgba(74,60,38,.17) 1px,transparent 1.4px);background-size:18px 18px;background-position:9px 9px;
  font-family:var(--flow-font);font-synthesis:none;font-kerning:normal;color:var(--flow-ink)}
.structure-graph-frame::after {content:'';position:absolute;inset:0;pointer-events:none;border-radius:14px;box-shadow:inset 0 0 0 1px rgba(58,46,26,.1)}
.structure-graph-frame.is-flow {min-height:0}
.flow-stage {position:relative;width:100%}
.flow-edges {position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
/* Every line has one width (owner 2026-10-19: "線の太さが均一でない"); colour and dash tell the kinds apart. */
.flow-line {fill:none;stroke:var(--flow-line);stroke-width:1.5px;stroke-linejoin:round;transition:opacity .2s;animation:flow-fade .42s ease-out backwards;animation-delay:var(--delay,0s)}
.flow-line.is-flow {stroke:var(--flow-ink);stroke-dasharray:6 4}
.flow-line.is-web {stroke:var(--flow-web)}
.flow-line.is-instruct {stroke:var(--flow-web);stroke-dasharray:2 4;stroke-linecap:round}
.flow-arrow {fill:var(--flow-line)}
.flow-arrow.is-flow {fill:var(--flow-ink)}
.flow-arrow.is-web,.flow-arrow.is-instruct {fill:var(--flow-web)}
.flow-line-label {font-family:var(--flow-font);font-size:11px;font-weight:500;letter-spacing:.1em;fill:var(--flow-web)}
.flow-card {position:absolute;box-sizing:border-box;container-type:inline-size;display:flex;align-items:center;gap:7px;padding:0 9px;border-radius:6px;background:#fff;
  box-shadow:0 1px 0 #e6dfd3,0 6px 16px rgba(58,46,26,.07);color:var(--flow-ink);text-decoration:none;
  font-size:13px;font-weight:500;line-height:1.3;letter-spacing:.02em;font-feature-settings:"palt";
  transition:opacity .2s,box-shadow .2s,background-color .3s;animation:flow-in .42s cubic-bezier(.2,.7,.2,1) backwards;animation-delay:var(--delay,0s)}
a.flow-card:hover,a.flow-card:focus-visible {box-shadow:0 0 0 1.5px hsl(var(--hue) 45% 55%),0 8px 18px rgba(58,46,26,.12);outline:none}
.flow-num {flex:none;box-sizing:border-box;min-width:24px;height:22px;padding:0 5px;border-radius:4px;display:grid;place-items:center;
  background:hsl(var(--hue) 45% 89%);color:hsl(var(--hue) 50% 27%);font-size:11px;font-weight:700;letter-spacing:0;font-variant-numeric:tabular-nums;font-feature-settings:normal}
.flow-num.is-mark {font-weight:500}
/* No name is ever cut (owner 2026-10-19: "ローカルの... で途切れている"): structure-graph.js gives every card the
   lines its name needs, at these line heights, and checks the browser's own line breaks, so a name wraps instead of
   ending in "…". Names break between Japanese phrases and keep their lines even ("ローカルの／アプリ", not
   "ローカルのアプ／リ"); a Latin word is split only when it cannot fit a line by itself ("ChatGPT" stays whole). */
.flow-name {flex:1;min-width:0;line-height:17px;white-space:normal;word-break:auto-phrase;overflow-wrap:break-word;text-wrap:balance}
.flow-card.is-group .flow-name {line-height:19px}
.flow-count {flex:none;font-size:11px;font-weight:500;letter-spacing:0;color:var(--flow-muted);font-variant-numeric:tabular-nums;font-feature-settings:normal}
/* The name comes first: the count gives way when a card is too narrow to hold both (the query measures the
   card inside its padding: number 24 + six characters 78 + a four-digit count 28 + the gaps). */
@container (max-width:143px){.flow-count{display:none}}
/* A page AIs read before they work wears a small tag on its top edge, clear of its name. */
.flow-read {display:inline-grid;place-items:center;height:16px;padding:0 5px;border-radius:3px;font-size:11px;font-weight:700;line-height:1;letter-spacing:.04em;color:var(--flow-read);background:#efeafb;box-shadow:inset 0 0 0 1px #ddd3f6}
.flow-card .flow-read {position:absolute;right:8px;top:-8px}
.flow-card.is-group {font-size:14px;font-weight:700;letter-spacing:.04em;background:#fffdf9}
/* mybase (owner decision 2026-10-19, design 01): the sidebar logo — its green mark and its name, in the site's
   typeface — on a white card, with every record and today's writes in tabular figures beside it. */
.flow-card.is-core {gap:12px;padding:0 16px;border-radius:10px;color:var(--green);box-shadow:0 0 0 1px #e3dacb,0 10px 24px rgba(58,46,26,.1)}
.flow-brand-mark {flex:none;box-sizing:border-box;display:flex;align-items:flex-end;gap:4px;width:30px;height:33px;padding:7px;border-radius:9px;background:var(--green);transition:transform .3s}
.flow-brand-mark i {display:block;width:6px;height:14px;border-radius:1px;background:var(--lime)}
.flow-brand-mark i+i {height:19px}
.flow-brand-word {font-family:Inter,"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:22px;font-weight:750;letter-spacing:-1px;line-height:1;font-feature-settings:normal}
.flow-brand-period {color:#819867}
.flow-core-meta {margin-left:auto;display:grid;justify-items:end;font-size:11px;font-weight:500;line-height:1.45;letter-spacing:.02em;color:var(--flow-muted);white-space:nowrap}
.flow-core-meta em {font-style:normal;font-weight:700;color:var(--flow-ink);font-variant-numeric:tabular-nums;font-feature-settings:normal;margin-right:2px;transition:color .3s}
.flow-card.is-core.is-arrive .flow-brand-mark {transform:scale(1.12) rotate(-6deg)}
.flow-card.is-core.is-arrive .flow-core-today em {color:var(--flow-web)}
.flow-card.is-route {font-size:12px;color:var(--flow-muted);background:#fbf8f2;box-shadow:inset 0 0 0 1px #e3dacb}
.flow-card.is-idle {opacity:.55}
.flow-card.is-dim,.flow-line.is-dim {opacity:.22}
.flow-card.is-hit {background:hsl(var(--hue) 60% 95%);box-shadow:0 0 0 2px hsl(var(--hue) 50% 50%),0 8px 18px rgba(58,46,26,.12)}
.flow-dot {fill:var(--flow-ink);filter:drop-shadow(0 0 4px rgba(38,38,39,.45))}
.flow-dot.is-web {fill:var(--flow-web);filter:drop-shadow(0 0 4px rgba(194,65,12,.45))}
.flow-dot.is-read {fill:var(--flow-read);filter:drop-shadow(0 0 4px rgba(106,75,191,.45))}
/* Under the chart: what the marks mean, and the latest writes. */
.flow-foot {position:relative;display:flex;flex-wrap:wrap;gap:6px 24px;align-items:flex-start;justify-content:space-between;padding:4px 18px 16px;font-size:11px;font-weight:500;line-height:1.6;color:var(--flow-muted)}
.flow-legend {margin:0;display:flex;flex-wrap:wrap;gap:4px 14px}
.flow-key {display:inline-flex;align-items:center;gap:6px}
.flow-key i {display:inline-block;width:18px;height:0;border-top:1.5px dashed var(--flow-ink)}
.flow-key i.is-web {border-top-style:solid;border-color:var(--flow-web)}
.flow-log {margin:0;padding:0;list-style:none;display:grid;gap:1px;min-width:0;max-width:min(100%,520px)}
.flow-log li {display:flex;gap:10px;white-space:nowrap;overflow:hidden;color:var(--flow-ink)}
.flow-log time {flex:none;font-variant-numeric:tabular-nums;color:var(--flow-muted)}
.flow-log-route {flex:none;color:var(--flow-muted)}
.flow-log-title {overflow:hidden;text-overflow:ellipsis}
.flow-log li.is-new {color:var(--flow-web)}
@keyframes flow-in {from{opacity:0;translate:0 6px}}
@keyframes flow-fade {from{opacity:0}}
/* The outline (phones): the people and routes keep their names, not their marks. */
.flow-stage.is-narrow .flow-card.is-actor .flow-num,.flow-stage.is-narrow .flow-card.is-route .flow-num {display:none}
.flow-stage.is-narrow .flow-card.is-actor,.flow-stage.is-narrow .flow-card.is-route {justify-content:center;padding:0 8px}
.flow-stage.is-narrow .flow-card.is-actor {padding:0 6px}
.flow-stage.is-narrow .flow-card.is-actor .flow-name,.flow-stage.is-narrow .flow-card.is-route .flow-name {flex:0 1 auto;text-align:center}
@media (prefers-reduced-motion:reduce){.flow-card,.flow-line,.flow-brand-mark{animation:none;transition:none}}
@media (max-width:560px){.structure-graph-frame{margin:4px 10px 0}.structure-hint{display:none}.flow-foot{padding:4px 14px 14px}}
/* Phones (owner request 2026-10-14: every page optimised for phones). */
@media (max-width:720px){
  /* iOS Safari zooms into a field whose text is under 16px and stays zoomed, which breaks the layout. */
  input,select,textarea{font-size:16px}
  /* Finger-sized controls and readable small print. */
  .button,a.button,button.button,select{min-height:44px}
  .button{font-size:13px}
  .badge,.eyebrow,.record-subline,.task-inline-state{font-size:11px}
}
/* Display-only Markdown for project bodies (owner request). */
.document-body.markdown-body,.project-page .markdown-body {white-space:normal;font-size:14px;line-height:1.85;color:var(--ink);max-width:880px}
.markdown-body > :first-child {margin-top:0}
.markdown-body h2 {font-size:19px;line-height:1.5;margin:34px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line);color:var(--green)}
.markdown-body h3 {font-size:16px;line-height:1.5;margin:26px 0 8px}
.markdown-body h4,.markdown-body h5,.markdown-body h6 {font-size:14px;margin:20px 0 6px}
.markdown-body p {margin:10px 0}
.markdown-body ul,.markdown-body ol {margin:8px 0 12px;padding-left:1.5em}
.markdown-body li {margin:4px 0}
.markdown-body li > ul,.markdown-body li > ol {margin:4px 0 6px}
.markdown-body ul ul {list-style:circle}
.markdown-body strong {font-weight:700}
.markdown-body code {font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;background:#f0f2ed;border-radius:4px;padding:1px 5px;overflow-wrap:anywhere}
.markdown-body pre {background:#f6f7f3;border:1px solid var(--line);border-radius:8px;padding:12px 14px;overflow-x:auto;white-space:pre}
.markdown-body pre code {background:none;padding:0}
.markdown-body .markdown-data {margin:12px 0}
.markdown-body .markdown-data summary {cursor:pointer;color:var(--green);font-size:13px;font-weight:650}
.markdown-body .markdown-data pre {max-height:420px;overflow:auto;margin-top:8px}
.markdown-body blockquote {margin:12px 0;padding:4px 14px;border-left:3px solid #c9d4c6;color:var(--muted)}
.markdown-body hr {border:0;border-top:1px solid var(--line);margin:24px 0}
.markdown-body a {color:#345b48;text-decoration:underline;overflow-wrap:anywhere}
.markdown-table {overflow-x:auto;margin:12px 0}
.markdown-body table {border-collapse:collapse;font-size:13px;min-width:60%}
.markdown-body th,.markdown-body td {border:1px solid var(--line);padding:6px 10px;text-align:left;vertical-align:top}
.markdown-body th {background:#f3f5f0;font-weight:650}
/* Notes (2026-10-17): strike, emphasis, checklists, callouts, [[links]], images. */
.markdown-body del {color:var(--muted)}
.markdown-body em {font-style:italic}
.markdown-body li.task-item {list-style:none;margin-left:-1.3em;display:flex;gap:7px;align-items:baseline;flex-wrap:wrap}
.markdown-body li.task-item > ul,.markdown-body li.task-item > ol {flex-basis:100%}
.markdown-body .task-box {font-size:15px;line-height:1;color:#8a9a7c;flex:0 0 auto}
.markdown-body li.task-item.done {color:var(--muted)}
.markdown-body li.task-item.done .task-box {color:var(--green)}
.markdown-body .callout {margin:14px 0;padding:11px 14px;border:1px solid #d9e3d2;border-left:4px solid #8fa979;border-radius:8px;background:#f7faf3;color:var(--ink)}
.markdown-body .callout-title {font-weight:700;font-size:13px;color:#4c6a3b}
.markdown-body summary.callout-title {cursor:pointer}
.markdown-body .callout-body > :first-child {margin-top:6px}
.markdown-body .callout-body > :last-child {margin-bottom:0}
.markdown-body .callout-tip {border-left-color:#4f9a8a;background:#f2f9f7}
.markdown-body .callout-tip .callout-title {color:#2f6f61}
.markdown-body .callout-important {border-left-color:#6c6fc4;background:#f5f5fc}
.markdown-body .callout-important .callout-title {color:#45479a}
.markdown-body .callout-warning {border-left-color:#d19a2a;background:#fdf8ec;border-color:#efe0bb}
.markdown-body .callout-warning .callout-title {color:#8a5d06}
.markdown-body .callout-caution {border-left-color:#c8553d;background:#fdf3f0;border-color:#f0d3cb}
.markdown-body .callout-caution .callout-title {color:#9a3520}
.markdown-body a.wiki-link {color:#2f6a52;text-decoration:none;border-bottom:1px solid #a9c7b5;background:#f1f7f2;border-radius:3px;padding:0 3px}
.markdown-body a.wiki-link:hover {background:#e3efe6}
.markdown-body .wiki-link.missing {color:#a2643c;border-bottom:1px dashed #d7a07c;padding:0 2px}
.markdown-body a.mbdoc-link {display:inline-flex;align-items:baseline;gap:5px;max-width:100%;color:#265b46;text-decoration:none;background:#eff6f1;border:1px solid #c9decb;border-radius:5px;padding:1px 7px;margin:0 1px;font-size:0.92em;line-height:1.45;vertical-align:baseline;transition:background .15s,border-color .15s}
.markdown-body a.mbdoc-link:hover {background:#e0efe5;border-color:#9fc4ab;text-decoration:none}
.markdown-body a.mbdoc-link .mbdoc-kind {font-size:0.78em;font-weight:700;color:#2f6a52;background:#dcece0;border-radius:3px;padding:0 5px;white-space:nowrap;flex-shrink:0}
.markdown-body a.mbdoc-link .mbdoc-title {overflow-wrap:anywhere}
.markdown-body a.mbdoc-link.is-archived {color:#6b726c;background:#f3f4f2;border-color:#d8dcd7;border-style:dashed}
.markdown-body a.mbdoc-link.is-archived .mbdoc-kind {color:#5d655f;background:#e4e7e3}
.markdown-body a.mbdoc-link.is-missing {color:#8a5d3b;background:#faf4ee;border-color:#e2c6ae;border-style:dashed;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:0.86em}
body[data-notes-theme="dark"] .markdown-body a.mbdoc-link {color:#a7dfc2;background:rgba(68,148,108,.18);border-color:rgba(128,200,164,.32)}
body[data-notes-theme="dark"] .markdown-body a.mbdoc-link:hover {background:rgba(68,148,108,.28);border-color:rgba(150,218,184,.5)}
body[data-notes-theme="dark"] .markdown-body a.mbdoc-link .mbdoc-kind {color:#c5f0d9;background:rgba(82,170,126,.28)}
body[data-notes-theme="dark"] .markdown-body a.mbdoc-link.is-archived {color:#a3aba6;background:rgba(160,168,162,.14);border-color:rgba(160,168,162,.3)}
body[data-notes-theme="dark"] .markdown-body a.mbdoc-link.is-archived .mbdoc-kind {color:#b8c0bb;background:rgba(160,168,162,.24)}
body[data-notes-theme="dark"] .markdown-body a.mbdoc-link.is-missing {color:#e0b289;background:rgba(210,145,88,.14);border-color:rgba(210,145,88,.35)}
.markdown-body .markdown-image {display:block;max-width:100%;height:auto;margin:12px 0;border-radius:8px;border:1px solid var(--line)}
/* The Markdown editor shared by notes and jobs: toolbar, write / both / preview. */
.md-editor {border:1px solid #dae3d1;border-radius:9px;background:#fff;overflow:hidden}
.md-bar {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;border-bottom:1px solid #e6ece0;background:#fafbf8;flex-wrap:wrap}
.md-toolbar {display:flex;flex-wrap:wrap;gap:3px}
.md-tool {border:1px solid transparent;background:none;border-radius:5px;padding:4px 8px;font-size:11px;color:#5d6e54;min-height:28px}
.md-tool:hover {background:#eef3e8;border-color:#dbe4d2}
.md-tool:disabled {cursor:not-allowed}
.md-tabs {display:flex;gap:2px;background:#eef2ea;border-radius:6px;padding:2px}
.md-tab {border:0;background:none;border-radius:5px;padding:3px 10px;font-size:11px;color:#6d7a64;min-height:26px}
.md-tab[aria-selected="true"] {background:#fff;color:var(--green);font-weight:650;box-shadow:0 1px 2px #2c4e3e14}
.md-panes {display:grid;grid-template-columns:1fr 1fr;min-height:420px}
.form-field .md-editor textarea.md-input,.md-editor textarea.md-input {border:0;border-radius:0;min-height:420px;height:100%;resize:vertical;padding:14px 16px;font-family:ui-monospace,SFMono-Regular,Consolas,"Noto Sans JP",monospace;font-size:12.5px;line-height:1.85;outline:none;tab-size:2}
.md-preview {border-left:1px solid #e6ece0;padding:14px 18px;overflow:auto;max-height:70vh;background:#fdfdfb}
.md-preview .markdown-body {max-width:none}
.md-editor.mode-write .md-panes {grid-template-columns:1fr}
.md-editor.mode-write .md-preview {display:none}
.md-editor.mode-preview .md-panes {grid-template-columns:1fr}
.md-editor.mode-preview textarea.md-input {display:none}
.md-editor.mode-preview .md-preview {border-left:0;max-height:none}
@media (max-width:900px){
  .md-panes {grid-template-columns:1fr}
  .md-editor.mode-split .md-preview {border-left:0;border-top:1px solid #e6ece0;max-height:50vh}
}
/* Project subpages & lossless dataset vault (Gemini 4 Carbon baseline). */
.project-pages-host {display:grid;gap:12px;margin-bottom:18px}
.project-pages-bar {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:var(--shadow)}
.project-pages-tabs {display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.project-page-tab {display:inline-flex;align-items:center;gap:7px;padding:7px 12px;border-radius:8px;border:1px solid transparent;background:none;font-size:12px;font-weight:550;color:#5f6d61;transition:background .15s,color .15s,border-color .15s}
.project-page-tab:hover {background:#f4f7f1;color:var(--green)}
.project-page-tab.active {background:#edf3e7;border-color:#cfe0c2;color:var(--green);font-weight:700}
.project-page-tab.dataset-tab.active {background:#eef4f6;border-color:#bfd6df;color:#235163}
.project-page-tab .tab-badge {font-size:10px;font-weight:600;padding:1px 6px;border-radius:999px;background:#f0f3ec;color:#6d7b68}
.project-page-tab.active .tab-badge {background:#fff;color:var(--green)}
.project-pages-actions {display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-left:auto}
.project-pages-meter {font-size:11px;color:#738070;white-space:nowrap}
.project-page-workspace {margin-bottom:20px}
.project-subpage-card,.project-dataset-vault,.project-page-editor {padding:24px;display:grid;gap:16px}
.project-subpage-header {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap}
.project-subpage-title {display:grid;gap:6px}
.project-subpage-title .badge {justify-self:start}
.badge-spec {background:#edf3e7;color:#2c4e3e}
.badge-dataset {background:#e7f2f6;color:#215468}
.project-subpage-meta {display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:9px 13px;background:#f8faf6;border:1px solid #e6ece1;border-radius:8px;font-size:11px;color:#62705e}
.sha-pill {font-size:10.5px;padding:2px 6px;background:#eef2ea;border-radius:5px;color:#4f5e4b}
.dataset-vault-list {display:grid;gap:10px}
.dataset-vault-row {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#fcfdfb}
.dataset-vault-main {display:grid;gap:5px;min-width:0}
.dataset-vault-title {display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dataset-vault-stats {font-size:11px;color:#6f7d6b}
.project-page-form {display:grid;gap:14px}
.project-page-dataset-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}
.project-page-textarea {min-height:280px;font-family:ui-monospace,SFMono-Regular,Consolas,"Noto Sans JP",monospace;font-size:12.5px;line-height:1.75}
.checkbox-inline {display:inline-flex;align-items:center;gap:8px;font-size:12px;cursor:pointer}

/* Notes Dark Mode shell harmony (active only while viewing #/notes on Web, or inside the dedicated notes-app window). */
:root[data-notes-theme="dark"] {
  --bg:#15171b;
  --surface:#1e222a;
  --ink:#eceff4;
  --muted:#8b94a5;
  --line:#2c313c;
  --green:#58c69e;
  --green-hover:#72d5b1;
  color-scheme:dark;
}
body[data-notes-theme="dark"],
body.notes-app[data-notes-theme="dark"] {
  background:#191c22;
  color:#eceef3;
}
body[data-notes-theme="dark"]:not(.notes-app) .main-shell {
  background:#191c22;
}
body[data-notes-theme="dark"] .sidebar {
  background:#15171c;
  border-right-color:rgba(255,255,255,.075);
}
body[data-notes-theme="dark"] .nav-link {
  color:#9da6b6;
}
body[data-notes-theme="dark"] .nav-link:hover {
  background:rgba(255,255,255,.055);
  color:#eceef3;
}
body[data-notes-theme="dark"] .nav-link.active {
  background:rgba(255,255,255,.088);
  color:#eceef3;
}
body[data-notes-theme="dark"] .workspace-label,
body[data-notes-theme="dark"] .nav-caption,
body[data-notes-theme="dark"] .sidebar-note,
body[data-notes-theme="dark"] .owner-copy span,
body[data-notes-theme="dark"] .page-footer {
  color:#7a8293;
}
body[data-notes-theme="dark"] .avatar {
  background:#262b36;
  color:#88c2ff;
}
body[data-notes-theme="dark"] .topbar {
  background:rgba(25,28,34,.88);
  border-bottom-color:rgba(255,255,255,.075);
}
body[data-notes-theme="dark"] .breadcrumb > span:first-child {
  color:#7d8697;
}
body[data-notes-theme="dark"] .breadcrumb strong {
  color:#dce1ea;
}
body[data-notes-theme="dark"] .global-search {
  background:#232730;
  border-color:#2f3542;
  color:#9da6b6;
}
body[data-notes-theme="dark"] .global-search input {
  color:#eceff4;
}
body[data-notes-theme="dark"] .global-search button {
  background:#1b1e26;
  border-color:#353c4b;
  color:#9da6b6;
}
body[data-notes-theme="dark"] .section-card,
body[data-notes-theme="dark"] .login-card {
  background:#21252e;
  border-color:#2e3440;
  color:#eceff4;
}
body[data-notes-theme="dark"] .button.primary {
  background:#256b54;
  border-color:#256b54;
  color:#f4fbf8;
}
body[data-notes-theme="dark"] .button.primary:hover {
  background:#2d7f64;
  border-color:#2d7f64;
}
body[data-notes-theme="dark"] .button.secondary {
  background:#232730;
  border-color:#333a48;
  color:#cbd2df;
}
body[data-notes-theme="dark"] .button.secondary:hover {
  background:#2b303c;
  border-color:#424b5c;
  color:#ffffff;
}
body[data-notes-theme="dark"] .back-link.button {
  background:none;
  border-color:transparent;
  color:#9da6b6;
}
body[data-notes-theme="dark"] .notice {
  background:rgba(88,198,158,.12);
  border-color:rgba(88,198,158,.28);
  color:#b6ebd6;
}
body[data-notes-theme="dark"] .notice.warning {
  background:rgba(251,191,36,.13);
  border-color:rgba(251,191,36,.3);
  color:#fde68a;
}
body[data-notes-theme="dark"] .notice.error {
  background:rgba(248,113,113,.14);
  border-color:rgba(248,113,113,.32);
  color:#fecaca;
}
body[data-notes-theme="dark"] .document-body,
body[data-notes-theme="dark"] .metadata-line dd,
body[data-notes-theme="dark"] .history-list p {
  color:#cfd5e2;
}
body[data-notes-theme="dark"] .document-byline,
body[data-notes-theme="dark"] .metadata-line dt,
body[data-notes-theme="dark"] .history-list time,
body[data-notes-theme="dark"] .history-count {
  color:#858e9f;
}
body[data-notes-theme="dark"] .history-list li {
  border-left-color:#323947;
}
body[data-notes-theme="dark"] .history-list li:before {
  background:#465063;
  border-color:#21252e;
}
body[data-notes-theme="dark"] .history-list li.current:before {
  background:#58c69e;
}
body[data-notes-theme="dark"] .badge {
  background:#2b303c;
  color:#b9c2d2;
}
body[data-notes-theme="dark"] .markdown-body code {
  background:#2a2f3b;
}
body[data-notes-theme="dark"] .markdown-body pre,
body[data-notes-theme="dark"] .markdown-body th {
  background:#191c23;
  border-color:#2f3542;
}
.login-trust-option {
  display:flex;
  align-items:flex-start;
  gap:10px;
  text-align:left;
  padding:11px 13px;
  margin:0 0 14px;
  border:1px solid #dfe6da;
  border-radius:11px;
  background:#f7faf5;
  cursor:pointer;
}
.login-trust-option input[type="checkbox"] {
  margin-top:3px;
  accent-color:#244d3e;
  width:15px;
  height:15px;
  flex-shrink:0;
}
.login-trust-option strong {
  display:block;
  font-size:12px;
  font-weight:650;
  color:#2b4736;
  line-height:1.4;
}
.login-trust-option small {
  display:block;
  font-size:10.5px;
  color:#6c7d6d;
  line-height:1.55;
  margin-top:2px;
}
.sessions-panel .sessions-status:empty {
  display:none;
}
.sessions-panel .button-group {
  margin:14px 0 16px;
}
.session-list {
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid var(--line);
}
.session-item {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 16px;
  padding:12px 6px;
  border-bottom:1px solid var(--line);
}
.session-item.is-current {
  background:#f5f9f3;
  padding-left:10px;
  padding-right:10px;
  border-radius:8px;
}
.session-info {
  min-width:0;
  flex:1 1 260px;
}
.session-title {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  font-size:13.5px;
  color:var(--ink);
}
.session-meta {
  margin:4px 0 0;
  font-size:11.5px;
}
.session-actions {
  flex-shrink:0;
}
.security-banner {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 16px;
  padding:11px 22px;
  font-size:12.5px;
  line-height:1.6;
  border-bottom:1px solid transparent;
}
.security-banner.is-critical {
  background:#fdf1f0;
  color:#8a2323;
  border-bottom-color:#efc7c4;
}
.security-banner.is-warning {
  background:#fef8ec;
  color:#7c4d0f;
  border-bottom-color:#edd8ad;
}
.security-banner-link {
  color:inherit;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
  white-space:nowrap;
}
.security-panel .security-status:empty {
  display:none;
}
.security-panel .button-group {
  margin:14px 0 12px;
}
.security-webhook-guide {
  margin:10px 0 14px;
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#f8faf6;
  font-size:12px;
}
.security-webhook-guide summary {
  cursor:pointer;
  font-weight:650;
  color:#2b4736;
}
.security-webhook-guide p {
  margin:8px 0 0;
}
.security-filters {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 14px;
}
.security-filter-btn {
  padding:6px 12px;
  font-size:12px;
}
.security-event-list {
  list-style:none;
  margin:0;
  padding:0;
  border-top:1px solid var(--line);
}
.security-event-item {
  padding:12px 10px;
  border-bottom:1px solid var(--line);
}
.security-event-item.is-unread.severity-critical {
  background:#fdf3f2;
  border-left:3px solid #cf3939;
}
.security-event-item.is-unread.severity-warning {
  background:#fef9ee;
  border-left:3px solid #cf8220;
}
.security-event-head {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
}
.security-event-title {
  font-size:13px;
  color:var(--ink);
}
.security-event-detail {
  margin:5px 0 0;
  font-size:12px;
  color:var(--muted);
  line-height:1.65;
}
.security-event-meta {
  margin:4px 0 0;
  font-size:11px;
}
.security-badge-critical {
  background:#f9d7d5;
  color:#8f1f1f;
  font-weight:700;
}
.security-badge-warning {
  background:#f9e6c4;
  color:#7e4b0e;
  font-weight:700;
}
.security-badge-info {
  background:#e6efe5;
  color:#2d563c;
}
.security-badge-unread {
  background:#28533e;
  color:#fff;
  font-weight:700;
}
