:root {
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  color: #1a2d2a;
  background: #f5f7f6;
  --muted: #506760;
  --border: #dde5e1;
  --green: #0b6653;
  --dark: #103b34;
}
body { -webkit-font-smoothing: antialiased; }
a,button,input,select { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #128b79; outline-offset: 3px; }
.layout { grid-template-columns: 224px minmax(0,1fr); }
.rail { z-index: 8; padding: 28px 15px 21px; background: #103b34; }
.brand { gap: 11px; margin: 1px 9px 45px; letter-spacing: .025em; font-weight: 650; font-size: 22px; line-height: 1.35; }
.brand-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #c6ebce; color: #174638; }
.brand-icon svg { width: 23px; height: 23px; }
.rail nav { display: grid; gap: 30px; }
.nav-group { display: grid; gap: 4px; }
.nav-group p { color: #a1bcb3; padding: 0 12px 6px; font-size: 12px; font-weight: 550; letter-spacing: .07em; }
.rail nav a { display: flex; align-items: center; gap: 13px; border-radius: 8px; padding: 11px 12px; color: #deebe6; line-height: 1.4; font-size: 14px; font-weight: 500; }
.rail nav a:hover { background: #204b40; }
.rail nav a[aria-current=page] { color: #f7fff9; background: #2a584c; box-shadow: none; font-weight: 650; }
.rail nav a[aria-current=page]::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #b1e1ba; margin-left: auto; }
.rail nav svg,.ui-icon,.crumb svg,.role-chip svg,.nav-toggle svg { flex: 0 0 auto; width: 18px; height: 18px; }
.rail-foot { border-color: #326154; color: #c4d9d0; font-size: 12px; }
.rail a:focus-visible,.nav-toggle:focus-visible { outline-color: #b8f0d3; }
.nav-toggle { display: none; }
.top { height: 60px; padding: 0 clamp(20px,4vw,64px); font-size: 13px; }
.crumb,.role-chip { display: inline-flex; align-items: center; gap: 10px; }
.crumb svg { width: 13px; color: #8d9e97; }
#location-name { color: #30483e; font-weight: 570; }
.role-chip { gap: 6px; color: #485f55; }
.role-chip svg { width: 15px; height: 15px; }
#view,#feedback:not(:empty) { max-width: 1450px; padding-inline: clamp(20px,4vw,64px); }
#view { padding-bottom: 36px; }
.pagehead { margin: 36px 0 24px; align-items: center; }
h1 { font-size: clamp(26px,2.45vw,35px); font-weight: 670; line-height: 1.35; letter-spacing: -.035em; }
h2 { font-size: 18px; font-weight: 640; letter-spacing: -.015em; }
.sub { color: #60736b; line-height: 1.65; }
button,.button { gap: 7px; padding: 8px 13px; border-radius: 8px; border-color: #cdd9d3; color: #315248; font-weight: 560; min-height: 38px; }
button:disabled { cursor: default; }
button:hover,.button:hover { border-color: #9dbbad; }
button.primary,.button.primary { color: white; border-color: var(--green); }
input,select { border-color: #bfcec6; border-radius: 7px; font-size: 14px; }
input[type=radio],input[type=checkbox] { accent-color: var(--green); }
.panel,.work-section { border: 1px solid var(--border); border-radius: 13px; background: white; box-shadow: 0 2px 4px #20382d04; }
.panel { padding: 23px; }
.panel-head { margin-bottom: 17px; }
th { background: #f4f7f5; color: #53675e; }
td,th { border-color: #e6ece8; }
.tag,.state { font-size: 12px; font-weight: 550; }
.link,.text-action { text-decoration: none; }
.link:hover,.text-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-action { font-weight: 570; font-size: 13px; }
.work-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.work-metric { display: grid; gap: 20px; padding: 20px 22px 16px; background: #fff; color: #274638; border: 1px solid var(--border); border-radius: 13px; text-decoration: none; }
.work-metric:hover { border-color: #adc4b8; box-shadow: 0 3px 12px #244f3610; }
.metric-top,.metric-value { display: flex; align-items: center; }
.metric-top { gap: 9px; color: #3e584d; font-weight: 550; font-size: 14px; }
.metric-glyph,.empty-glyph { display: inline-grid; place-items: center; border-radius: 8px; background: #e7f2eb; color: #267056; }
.metric-glyph { height: 29px; width: 29px; }
.attention-metric .metric-glyph { background: #faf0dc; color: #956027; }
.waiting-metric .metric-glyph { background: #edf1f9; color: #526981; }
.metric-value { justify-content: space-between; gap: 12px; }
.metric-value strong { font-size: clamp(33px,3vw,43px); letter-spacing: -.055em; line-height: 1; font-weight: 590; font-variant-numeric: tabular-nums; }
.metric-value .ui-icon { width: 16px; color: #879a8d; }
.work-section { overflow: hidden; margin-top: 20px; }
.work-section header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #ebefec; }
.work-row { padding: 13px 22px; display: flex; justify-content: space-between; gap: 15px; align-items: center; color: inherit; text-decoration: none; }
.work-row:not(:last-child) { border-bottom: 1px solid #ebefec; }
.work-row:hover { background: #f5f9f6; }
.work-row-copy { display: grid; min-width: 0; gap: 4px; }
.work-ref { font-size: 14px; overflow-wrap: anywhere; }
.work-meta { font-size: 12px; color: #586c61; }
.work-action { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; white-space: nowrap; color: var(--green); }
.work-kind { color: #815419; margin-right: 9px; }
.work-action svg { width: 14px; }
.work-empty { display: flex; gap: 14px; align-items: center; padding: 27px 22px 30px; }
.empty-glyph { background: #eef4ef; color: #6e8978; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 12px; }
.empty-glyph .ui-icon { width: 22px; height: 22px; }
.work-empty strong { font-size: 14px; font-weight: 600; }
.work-empty p { font-size: 13px; color: #61726a; line-height: 1.6; margin-top: 5px; }
.demo-settings { margin: 12px 0 18px; font-size: 13px; color: var(--muted); }
.demo-settings summary,.member-pop summary { cursor: pointer; }
.demo-settings label { max-width: 290px; margin-block: 8px; display: grid; gap: 5px; }
.brand-options { border: none; padding: 0; margin: 0; min-width: 0; }
.brand-options legend { font-weight: 570; margin-bottom: 7px; }
.brand-options label { display: inline-flex; flex-direction: row; align-items: center; padding: 8px 12px; margin-right: 5px; background: #f7f9f7; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; }
.brand-options label:has(:checked) { background: #e6f3ec; color: #165641; border-color: #97b9a7; }
.brand-options input { min-height: 0; margin: 0; }
.inbox-tabs { display: inline-flex; gap: 3px; padding: 3px; background: #eaf0ec; border-radius: 9px; }
.inbox-tabs a { padding: 7px 14px; color: #4a6257; text-decoration: none; border-radius: 6px; font-size: 14px; }
.inbox-tabs a[aria-current=page] { background: white; color: #214a38; box-shadow: 0 1px 3px #284f351b; font-weight: 650; }
.inbox-list { display: grid; gap: 12px; margin-top: 15px; max-width: 770px; }
.inbox-card { padding: 19px 21px; border: 1px solid var(--border); border-radius: 12px; background: white; }
.inbox-card h2 { font-size: 18px; margin: 4px 0; }
.card-meta,.card-targets,.member-pop { color: var(--muted); font-size: 13px; line-height: 1.7; }
.card-meta { overflow-wrap: anywhere; }
.card-targets { margin: 12px 0 14px; }
.card-targets p { margin: 3px 0; }
.card-targets strong { color: #365647; font-weight: 580; }
.member-pop { padding-top: 7px; }
.inbox-empty { border: 1px solid var(--border); border-radius: 12px; background: white; }
.inbox-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.inbox-tools .demo-settings { margin: 0; }
@media (min-width: 1650px) { .layout { grid-template-columns: 244px minmax(0,1fr); } }
@media (min-width: 651px) and (max-width: 980px) { .layout { grid-template-columns: 166px minmax(0,1fr); }.rail {padding-inline: 10px;}.brand { margin-inline: 4px; }.top,#view {padding-inline: 22px;} }
@media (max-width: 650px) {
  .layout { display: block; }
  .rail { position: relative; padding: 10px 16px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
  .brand { margin: 0; font-size: 18px; }
  .brand-icon { width: 31px; height: 31px; border-radius: 9px; }
  .nav-toggle { display: grid; place-items: center; min-width: 38px; min-height: 36px; border: 1px solid #55796a; border-radius: 7px; padding: 5px; color: #eff9f0; background: transparent; }
  .nav-toggle:hover { background: #265543; }
  .rail nav { display: none; }
  .rail.menu-open nav { display: grid; position: absolute; left: 0; top: 100%; width: 100%; max-height: 75vh; overflow-y: auto; gap: 16px; background: #103b34; padding: 8px 16px 18px; box-shadow: 0 7px 15px #102c2426; }
  .rail nav a { font-size: 14px; padding-block: 9px; }
  .nav-group p { padding-bottom: 1px; }
  .top { height: 42px; padding-inline: 16px; font-size: 12px; }
  #view,#feedback:not(:empty) { padding-inline: 15px; }
  .pagehead { margin: 22px 0 16px; gap: 10px; }
  .panel { padding: 15px; }
  .work-metrics { gap: 6px; }
  .work-metric { padding: 12px 9px; gap: 10px; border-radius: 9px; }
  .metric-top { display: grid; gap: 7px; font-size: 12px; }
  .metric-value strong { font-size: 29px; }
  .metric-value .ui-icon { width: 12px; }
  .work-section { margin-top: 13px; }
  .work-section header,.work-row,.work-empty,.inbox-card { padding: 15px; }
  .work-kind { display: none; }
  .card-meta { font-size: 12px; }
}
.connect-grid { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:18px; align-items:start; max-width:1090px; }
.connect-grid .panel { margin:0; }
.connect-form { display:grid; gap:16px; }
.connect-form input { width:100%; }
.connect-form .help { margin-top:-8px; }
.connect-feedback { padding:10px 12px; border-radius:6px; font-size:14px; }
.connect-feedback:empty { display:none; }
.connect-state { margin:15px 0 8px; }
.connect-facts { margin:12px 0; }
.connect-facts div,.connect-channel { display:flex; gap:12px; align-items:baseline; justify-content:space-between; font-size:14px; }
.connect-facts div { padding:7px 0; }
.connect-facts dt { color:var(--muted); }
.connect-facts dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.connect-channel { border-top:1px solid var(--border); padding-top:16px; margin:16px 0 6px; }
@media(max-width:890px) { .connect-grid { grid-template-columns:minmax(0,1fr); } }
.login-page .layout { display:block; }
.login-page .top { display:none; }
.login-page #view { max-width:520px; padding-top:min(18vh,140px); }
.login-page .button { margin-top:22px; }
