:root {
  color: #17261f; background: #f8f6f2;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 14px; line-height: 1.55;
  --ink: #17261f; --sub: #5e6d64; --line: #dce4dc; --surface: #fff;
  --green: #246347; --green-light: #e5eee4; --nav: #16261f;
  --sidebar: #e9eee8; --paper: #faf7f3;
  --mono: "SF Mono", "Menlo", "Cascadia Code", monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
.brand-mark img { width:20px; height:20px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, textarea, summary { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid #4b9771; }
button:disabled { opacity: .5; cursor: not-allowed; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.3; }
input:not([type=checkbox]), textarea { width: 100%; border: 1px solid #cfdad0; border-radius: 8px; background: #fff; padding: 10px 12px; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #718073; }
.button { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); min-height: 39px; padding: 7px 15px; font-weight: 620; white-space: nowrap; }
.button:hover { background: #f1f6f0; }
.primary { background: var(--green); color: white; border-color: var(--green); }
.primary:hover { background: #236a4c; }
.quiet { background: transparent; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-weight: 700; font-size: 17px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #d8ef97; color: #14251c; flex-shrink:0; }
.entry { min-height: 100dvh; display:grid; grid-template-columns: minmax(300px,1fr) minmax(340px,1fr); }
.entry-visual { min-height: 100%; display:flex; flex-direction:column; justify-content: space-between; padding: clamp(28px,5vw,72px); gap: 60px; background: var(--nav); color: #ecf5e8; }
.entry-copy h1 { font-size: clamp(48px, 7vw, 105px); letter-spacing: -.095em; line-height: 1.05; font-weight: 800; }
.entry-copy p { margin-top: 25px; color: #c0d2c4; font-size: 15px; }
.entry-logos { display: flex; flex-wrap: wrap; gap: 12px; max-width: 380px; }
.entry-logos img { height: 36px; width: 36px; object-fit: contain; }
.entry-panel { display: grid; place-items: center; padding: 36px; }
.login { width: min(100%, 345px); display: grid; gap: 10px; }
.login h2 { font-size: 31px; margin-bottom: 17px; letter-spacing: -.055em; }
.login label { font-weight: 650; }
.login input { min-height: 47px; margin-bottom: 7px; }
.login .primary { min-height: 47px; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.workspace {
  --bar-height: 74px;
  --nav-width: clamp(208px, 17.8vw, 268px);
  min-height:100dvh;
  display:grid;
  grid-template-columns:var(--nav-width) minmax(0,1fr);
  grid-template-rows:var(--bar-height) 1fr;
}
.bar {
  grid-column:1/-1; position:sticky; top:0; z-index:2;
  display:flex; align-items:center; gap:16px; padding:8px 24px 8px 30px;
  border-bottom:1px solid #dedfd8; background:var(--paper); color:var(--ink);
}
.bar .brand { width:calc(var(--nav-width) - 26px); flex-shrink:0; padding-right:16px; font-size:19px; }
.bar #refresh { margin-left:auto; }
.bar #breadcrumb { min-width:0; font-weight:620; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ui-icon { width:19px; height:19px; display:block; object-fit:contain; flex-shrink:0; }
.icon-button { display:inline-grid; place-items:center; width:40px; height:40px; padding:0; flex-shrink:0; }
.bar .today-button { color:var(--green); border-color:#a8b9aa; }
#back-calendar { display:inline-flex; align-items:center; gap:5px; }
.sidebar {
  position:sticky; top:var(--bar-height); height:calc(100dvh - var(--bar-height));
  overflow-y:auto; display:flex; flex-direction:column;
  min-height:0; padding:46px 12px 14px; background:var(--sidebar);
}
.overview-link {
  display:flex; flex-shrink:0; align-items:center; gap:11px; min-height:54px;
  color:#204d39; padding:10px 12px; background:transparent;
  border:0; border-radius:10px; text-align:left; font-weight:650; font-size:15px;
}
.overview-link .ui-icon { width:22px; height:22px; }
.overview-link[aria-current=page], .overview-link:hover { background:#d9e5d9; }
.nav-tools { padding:14px 8px 1px; }
.nav-tools > div { display:flex; justify-content:space-between; align-items:center; color:var(--sub); padding-left:4px; font-size:13px; font-weight:600; }
.nav-tools button { border:0; background:transparent; color:var(--sub); border-radius:8px; }
.nav-tools button:hover { background:#dbe5da; }
.nav-tools .ui-icon { width:16px; height:16px; opacity:.65; }
.nav-tools input { margin-bottom:6px; padding:7px 10px; }
.products { display:grid; align-content:start; gap:4px; padding:0 0 10px; }
.product-link {
  display:grid; grid-template-columns:32px minmax(0,1fr); align-items:center; gap:11px;
  width:100%; padding:8px 12px; min-height:66px; color:var(--ink); text-align:left;
  background:transparent; border:0; border-radius:9px;
}
.product-link:hover,.product-link[aria-current=true] { background:#dce7dc; }
.product-link img { display:block; width:32px; height:32px; object-fit:contain; }
.product-link strong,.product-link small { display:block; overflow-wrap:anywhere; }
.product-link strong { font-size:15px; font-weight:650; }
.product-link small { margin-top:1px; color:var(--sub); font-size:13px; font-variant-numeric:tabular-nums; }
.account { display:grid; grid-template-columns:34px 1fr auto; align-items:center; gap:10px; border-top:1px solid #d6dfd6; margin-top:auto; padding:12px 7px 0; }
.account-icon { display:grid; place-items:center; width:33px; height:33px; border-radius:50%; background:#d8e6d0; color:var(--nav); font-weight:750; }
.account strong,.account div span { display:block; font-size:12px; overflow-wrap:anywhere; }
.account div span,.logout { color:var(--sub); }
.logout { min-height:40px; padding:6px 4px; border:none; background:transparent; font-size:12px; }
.logout:hover { text-decoration:underline; }
.main { min-width:0; }
.mobile-only { display:none; }
.content { max-width:1720px; margin:auto; padding:24px 9px 20px; }
.content > .feedback:not(:empty) { margin:0 4px 9px; }
#overview { display:grid; grid-template-columns:minmax(0,1.9fr) minmax(284px,1fr); gap:10px; }
.calendar-panel,.day-panel { min-width:0; border:1px solid #e4e4df; border-radius:16px; padding:28px 16px 48px; }
.calendar-panel { background:#fff; }
.day-panel { padding:28px 22px; background:var(--paper); }
.calendar-head { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:3px 6px 32px; }
.calendar-head h1,.day-panel h2 { font-size:clamp(25px, 2.55vw, 38px); font-weight:720; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.month-actions { display:flex; gap:8px; }
.month-actions .button { min-height:40px; }
#calendar-filter { margin:0 6px 8px; color:var(--green); font-weight:650; }
#calendar-issue { margin:12px 6px 0; }
.calendar {
  --cell-height: clamp(58px, calc((100dvh - 330px) / 6), 118px);
  width:100%; border-collapse:collapse; table-layout:fixed; font-variant-numeric:tabular-nums;
}
.calendar th { height:52px; font-weight:630; border-bottom:1px solid var(--line); }
.calendar td { height:var(--cell-height); padding:0; vertical-align:top; border-bottom:1px solid #e7ebe5; }
.calendar td+td { border-left:1px solid #e7ebe5; }
.calendar-day {
  width:100%; min-height:var(--cell-height); display:flex; flex-direction:column; align-items:flex-start; gap:7px;
  position:relative; padding:7px 6px 6px; border:0; border-radius:7px; background:transparent; color:inherit;
}
.calendar-day:hover { background:#f2f6f0; }
.calendar-day[aria-pressed=true] { background:var(--green-light); }
.calendar-day:focus-visible { outline-offset:-2px; z-index:1; }
.day-number { display:grid; place-items:center; width:29px; height:29px; border-radius:50%; font-weight:620; font-size:16px; }
.calendar-day[aria-pressed=true] .day-number { background:var(--green); color:#fff; }
.calendar-day[aria-current=date]:not([aria-pressed=true]) .day-number { box-shadow:inset 0 0 0 1px #738f77; color:var(--green); }
.day-marks { display:flex; flex-wrap:wrap; gap:3px; align-items:center; padding-left:2px; }
.day-marks img { width:clamp(14px,1.75vw,26px); height:clamp(14px,1.75vw,26px); object-fit:contain; }
.day-marks small { color:var(--sub); font-size:10px; }
.day-panel > .hint { font-size:15px; margin:4px 0 29px; }
.day-panel h3 { font-size:16px; font-weight:670; }
#day-records > h3 { margin-bottom:7px; }
#day-releases,.day-notes { list-style:none; padding:0; margin:0; }
#day-releases li+li { border-top:1px solid #e6e6df; }
.day-release,.more-releases {
  width:100%; display:flex; align-items:center; gap:8px; min-height:52px; padding:7px 6px;
  background:transparent; border:0; border-radius:8px; text-align:left; color:inherit;
}
.day-release:hover,.more-releases:hover { background:#edeee7; }
.day-release[aria-pressed=true] { background:var(--green-light); }
.day-release img { width:26px; height:26px; object-fit:contain; flex-shrink:0; }
.day-release .ui-icon { width:13px; height:13px; opacity:.72; }
.day-release-name { display:flex; align-items:baseline; gap:2px 5px; flex-wrap:wrap; flex:1; min-width:0; font-size:14px; line-height:1.4; }
.day-release-name span,.day-release time,.day-policy { font-variant-numeric:tabular-nums; }
.day-release time { color:var(--sub); font-size:12px; }
.more-releases { color:var(--sub); font-size:13px; }
.day-empty { color:var(--sub); margin:15px 0; }
.day-detail { padding-top:19px; margin-top:17px; border-top:1px solid #dedfd7; }
.day-product { display:flex; gap:12px; align-items:center; }
.day-product img { width:46px; height:46px; object-fit:contain; }
.day-product h3 { font-size:18px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.day-notes { display:grid; gap:5px; margin:14px 0 17px; overflow-wrap:anywhere; }
.day-policy { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 0; border-block:1px solid #e5e3dc; color:var(--sub); }
.day-policy strong { color:var(--ink); background:#f0ece2; padding:3px 8px; border-radius:6px; font-weight:650; }
#day-edit { width:100%; margin-top:20px; min-height:45px; }
#product { max-width:1200px; margin:10px auto; padding:clamp(4px,2vw,24px); }
.release-changed { margin-bottom:12px; padding:9px 12px; border:1px solid #ecdcb8; border-radius:8px; background:#fbf1dc; color:#704217; }
#history-issue { margin-bottom:12px; }
.product-head { display:flex; align-items:center; gap:15px; margin-bottom:22px; min-width:0; }
.product-logo { width:57px; height:57px; object-fit:contain; }
.product-head h1 { font-size: clamp(27px,3vw,38px); letter-spacing:-.075em; }
.product-head p { color:var(--sub); margin-top:4px; }
.product-head > .badge { margin-left:auto; }
.badge { padding:3px 9px; border-radius:6px; font-size:11px; display:inline-block; flex-shrink:0; background:#e8eee7; color:#365247; white-space:nowrap; font-weight:650; }
.badge.active { background:#e4f1e6; color:#215638; }
.badge.warn { background:#fbefd9; color:#794512; }
.summary { display:grid; grid-template-columns: .85fr 1fr 1fr; border:1px solid var(--line); border-radius:12px; background:#fff; margin-bottom:23px; overflow:hidden; }
.summary > div { display:grid; gap:5px; align-content:center; min-width:0; min-height:79px; padding:12px 17px; }
.summary > div+div { border-left:1px solid var(--line); }
.summary span,.hint,.history-title span { font-size:12px; color:var(--sub); }
.summary strong { font-size:14px; overflow-wrap:anywhere; }
#summary-version, #summary-date { font-family:var(--mono); }
.release-layout { display:grid; grid-template-columns: minmax(170px, .64fr) minmax(320px, 1.8fr); align-items:start; gap:19px; }
.history,.edit-card { min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.history-title,.edit-header { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:16px; border-bottom:1px solid var(--line); }
.history-title h2 { font-size:15px; }
.versions { display:grid; padding:6px; }
.version { border:1px solid transparent; background:transparent; width:100%; display:grid; border-radius:7px; padding:9px 10px; text-align:left; gap:4px; }
.version:hover { background:#f0f5f0; }
.version[aria-current=true] { background:#eaf3e9; border-color:#c9decc; }
.version div { display:flex; align-items:center; justify-content:space-between; gap:5px; }
.version strong { font-family:var(--mono); font-size:13px; overflow-wrap:anywhere; }
.version time { font-size:11px; color:var(--sub); }
.empty { padding:17px; color:var(--sub); }
.edit-header h2 { font-family:var(--mono); font-size:20px; letter-spacing:-.05em; }
.edit-header p { font-size:12px; color:var(--sub); margin-top:4px; }
.form-body { padding:18px 16px; }
.form-body label,.policy-head h3 { font-weight:680; }
textarea { resize:vertical; min-height:125px; margin-top:7px; line-height:1.65; }
.policy-head { margin:17px 0 5px; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.policy-head h3 { font-size:14px; }
.policy-row { display:flex; align-items:center; justify-content:space-between; gap:14px; border-top:1px solid #eef1ec; padding:11px 0; }
.policy-row p { font-size:11px; color:var(--sub); margin-top:2px; }
.policy-row #minimum { width:140px; min-width:110px; padding:7px 9px; font-family:var(--mono); }
input[role=switch] { appearance:none; flex:0 0 auto; width:40px; height:24px; background:#89978a; border:0; border-radius:16px; position:relative; cursor:pointer; }
input[role=switch]::before { content:""; position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:white; transition:transform .18s ease; }
input[role=switch]:checked { background:var(--green); }
input[role=switch]:checked::before { transform:translateX(16px); }
.artifact-details { border-top:1px solid #eef1ec; padding-top:8px; color:var(--sub); font-size:12px; }
.artifact-details summary { cursor:pointer; }
.artifact-details ul { padding-left:19px; overflow-wrap:anywhere; font-family:var(--mono); }
.feedback { color:var(--green); font-size:13px; margin-top:6px; }
.feedback:empty { display:none; }
.error { color:#9b281f; }
.form-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:12px 16px; border-top:1px solid var(--line); background:#fafbf8; }
.confirm { width:min(440px,calc(100vw - 30px)); border:1px solid var(--line); border-radius:12px; padding:0; color:var(--ink); }
.confirm::backdrop { background:#0e211b88; }
.confirm h2,.confirm p { margin:15px 18px; }
@media(max-width:1250px) {
  #overview { grid-template-columns:minmax(0,1.65fr) minmax(265px,1fr); }
  .day-panel { padding-inline:15px; }
}
@media(max-width:1000px) {
  .workspace { --nav-width:190px; }
  #overview { grid-template-columns:minmax(0,1fr); }
  .calendar { --cell-height:80px; }
  .release-layout { grid-template-columns:1fr; }
  .versions { grid-template-columns:repeat(auto-fill,minmax(145px,1fr)); }
  .calendar-panel,.day-panel { padding-bottom:23px; }
  .product-link { min-height:56px; }
}
@media(max-width:650px) {
  .entry { grid-template-columns:1fr; }
  .entry-visual { padding:21px; gap:20px; }
  .entry-copy h1 { font-size:48px; }
  .entry-copy h1 br { display:none; }
  .entry-copy p { margin-top:8px; }
  .entry-panel { padding:30px 20px; }
  .workspace { display:block; }
  .sidebar { position:static; height:auto; padding:12px 10px; display:none; }
  .workspace.nav-open .sidebar { display:flex; }
  .products { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nav-tools { padding-top:5px; }
  .product-link strong { font-size:13px; }
  .mobile-only { display:inline-block; }
  .bar { gap:7px; padding:7px 9px; min-height:58px; }
  .bar .brand { width:auto; flex:0 1 auto; padding:0; font-size:13px; gap:6px; white-space:nowrap; }
  .bar .brand-mark { width:25px; height:25px; border-radius:7px; }
  .bar .brand-mark img { width:15px; height:15px; }
  .bar #breadcrumb { display:none; }
  .bar .button:not(.icon-button) { padding-inline:8px; font-size:12px; }
  .bar:has(#back-calendar:not([hidden])) .brand span:last-child { display:none; }
  .content { padding:10px 8px; }
  .calendar-panel,.day-panel { padding:14px 9px 17px; }
  .day-panel { padding-inline:13px; }
  .calendar-head { margin:0 3px 8px; }
  .calendar-head h1,.day-panel h2 { font-size:23px; }
  .calendar { --cell-height:59px; }
  .calendar th { height:33px; font-size:13px; }
  .calendar-day { padding:2px; gap:2px; }
  .day-number { width:25px; height:25px; font-size:14px; }
  .day-marks { gap:2px; padding-left:1px; }
  .summary { grid-template-columns:1fr; }
  .summary > div { min-height:58px; padding:9px 13px; }
  .summary > div+div { border-left:0; border-top:1px solid var(--line); }
  .product-head { gap:10px; }
  .product-logo { width:44px; height:44px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; transition:none !important; } }
