:root {
  font-family: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, sans-serif;
  color: #162e3c;
  background: #f0f4f6;
  font-size: 17px;
  font-synthesis: none;
  line-height: 1.55;
  --ink: #162e3c;
  --muted: #465e6c;
  --line: #cbd8dd;
  --accent: #08675d;
  --paper: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, .button {
  border-radius: .5rem; padding: .55rem .85rem; border: 1px solid transparent;
  background: var(--accent); color: white; font-weight: 700; cursor: pointer;
}
button:disabled { opacity: .65; cursor: wait; }
button.secondary, button.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
button.quiet { border-color: transparent; }
:focus-visible { outline: 3px solid #16749e; outline-offset: 3px; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner, main, footer { width: min(100% - 3rem, 86rem); margin-inline: auto; }
.masthead-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.6rem; padding-block: .65rem; }
.brand { font-weight: 850; white-space: nowrap; font-size: 1.25rem; text-decoration: none; }
.brand span { color: var(--accent); margin-left: .5rem; }
nav, .account, .row { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
nav a { padding: .35rem .65rem; }
nav a[aria-current="page"] { color: var(--accent); font-weight: 800; }
.account { margin-left: auto; }
#mode { color: var(--accent); font-weight: 800; }
.full-banner { padding: .42rem 1rem; background: #8f310b; color: #fff; text-align: center; font-weight: 850; }
main { min-height: 75vh; padding-block: 2rem; }
footer { color: var(--muted); padding-bottom: 1.5rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.16; letter-spacing: -.035em; }
h2 { font-size: clamp(1.27rem, 2.25vw, 1.68rem); margin-bottom: .65rem; }
h3 { font-size: 1.22rem; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-head p { color: var(--muted); margin-top: .38rem; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-bottom: 1rem; }
.metric, .panel, .item { padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--paper); }
.metric strong { display: block; color: var(--accent); font-size: 2rem; line-height: 1.15; }
.surface-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: 1.3rem; }
.overview-activity { display: grid; gap: 1rem; }
.decisions { background: #19394a; color: white; border-color: #19394a; }
.decisions .meta { color: #d7e7eb; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .7rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.decisions .list > li { border-color: #506d7b; }
.meta { color: var(--muted); line-height: 1.45; font-size: .94rem; }
.entry { font-size: 1.1rem; font-weight: 650; margin-bottom: .2rem; }
.badge { color: #075b51; background: #dceeea; border-radius: .35rem; padding: .12rem .4rem; font-size: .9rem; font-weight: 800; white-space: nowrap; }
.project { padding: .8rem 0; border-top: 1px solid var(--line); }
.project a { font-weight: 800; }
.children { margin-top: .55rem; margin-left: 1.15rem; border-left: 2px solid #b8d7d0; padding-left: .9rem; }
.children a { display: inline-block; margin-block: .25rem; }
.item { margin-bottom: .9rem; }
.item label, .login label { display: grid; gap: .25rem; margin-block: .7rem; font-weight: 700; }
input, select, textarea { padding: .55rem .7rem; border: 1px solid #859da8; border-radius: .45rem; background: white; color: var(--ink); min-width: 0; }
textarea { resize: vertical; }
.login { max-width: 29rem; margin: 3rem auto; }
.login h1 { font-size: 2rem; }
.login button { margin-top: .45rem; width: 100%; }
.empty { color: var(--muted); padding: .7rem 0; }
.decisions .empty { color: #d7e7eb; }
.notice { margin-bottom: .8rem; color: #9c300f; font-weight: 700; }
.notice:empty { display: none; }
.back { display: inline-block; margin-bottom: .7rem; color: var(--accent); }
details { margin: .6rem 0; overflow-wrap: anywhere; }
summary { cursor: pointer; }
@media (min-width: 1350px) { :root { font-size: 19px; } }
@media (max-width: 790px) {
  .masthead-inner, main, footer { width: calc(100% - 1.5rem); }
  .masthead-inner { flex-wrap: wrap; gap: .5rem 1rem; }
  .account { margin-left: 0; }
  .surface-grid { grid-template-columns: 1fr; }
}
@media (max-width: 450px) { .metric { padding-inline: .5rem; } }
