:root {
  --ink: #202624;
  --muted: #6e7772;
  --line: #e2e7e2;
  --surface: #ffffff;
  --canvas: #f4f7f4;
  --green: #237a51;
  --green-dark: #185f3e;
  --green-soft: #e5f2e9;
  --orange: #bb6b22;
  --orange-soft: #fff1df;
  --red: #b84a49;
  --red-soft: #fbe8e7;
  --blue: #3b6d9b;
  --blue-soft: #e8f0f8;
  --shadow: 0 16px 42px rgba(31, 44, 36, 0.09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 1080px; background: var(--canvas); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 244px; flex: 0 0 244px; background: #1f2925; color: #dce6df; padding: 25px 16px 18px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 36px; }
.brand-mark { width: 33px; height: 33px; border: 1px solid #7db697; color: #eaf7ee; border-radius: 9px; display: grid; place-items: center; font-size: 15px; font-weight: 800; background: #2f6348; }
.brand strong { display: block; color: #fff; font-size: 15px; letter-spacing: .2px; }
.brand span { display: block; margin-top: 3px; color: #8da59a; font-size: 11px; }
.eyebrow, .section-kicker { display: block; color: #8da59a; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.workspace-switcher { padding: 0 10px 28px; }
.workspace-switcher .eyebrow { margin-bottom: 9px; }
.workspace-button { width: 100%; padding: 10px 11px; display: flex; justify-content: space-between; background: #2a3630; color: #edf4ef; border: 1px solid #3c4b43; border-radius: 7px; font-size: 12px; }
.chevron { color: #9cb1a5; font-size: 17px; line-height: 12px; }
.nav-list { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; border-radius: 7px; color: #9bad9f; font-size: 13px; }
.nav-item:hover, .nav-item.active { color: #f2fff5; background: #2b4938; }
.nav-item.active { box-shadow: inset 3px 0 0 #70c38f; }
.nav-icon { width: 18px; color: #a8c4b1; text-align: center; font-size: 15px; }
.nav-item b { margin-left: auto; width: 22px; height: 19px; display: grid; place-items: center; background: #416852; color: #d6f1df; border-radius: 10px; font-size: 10px; }
.sidebar-footer { margin-top: auto; }
.sidebar-footer > .nav-item { margin-bottom: 26px; }
.operator { border-top: 1px solid #35413b; padding: 17px 8px 0; display: flex; align-items: center; gap: 9px; }
.operator .avatar { width: 29px; height: 29px; border-radius: 50%; background: #d8e6d9; color: #286043; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.operator strong { display: block; font-size: 11px; color: #eff7f1; font-weight: 600; }
.operator span { display: block; font-size: 10px; color: #8da59a; margin-top: 2px; }
.operator .more { margin-left: auto; color: #82978b; letter-spacing: 2px; }

.main-content { flex: 1; min-width: 0; }
.topbar { height: 70px; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.72); }
.breadcrumbs { display: flex; gap: 11px; align-items: center; color: #929b95; font-size: 12px; }
.breadcrumbs strong { color: #424b46; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.sync-status { color: #7b857f; font-size: 11px; }
.sync-status i, .status-pill i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #4fa772; vertical-align: 1px; }
.icon-button { border: 0; background: transparent; color: #718078; padding: 6px; font-size: 19px; line-height: 1; }
.icon-button:hover { color: var(--green); }
.icon-button.small { font-size: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; width: 34px; height: 34px; }
.page-heading, .metric-grid, .notice-banner, .content-panel, .lower-grid { width: min(1380px, calc(100% - 96px)); margin-left: auto; margin-right: auto; }
.page-heading { padding: 39px 0 30px; display: flex; justify-content: space-between; align-items: end; }
.section-kicker { color: var(--green); margin-bottom: 10px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; letter-spacing: -.5px; line-height: 1.1; font-weight: 700; }
.page-heading p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; padding: 0 15px; border-radius: 6px; font-size: 12px; font-weight: 600; transition: .16s ease; }
.primary-button { border: 1px solid var(--green); color: #fff; background: var(--green); box-shadow: 0 3px 8px rgba(35, 122, 81, .16); }
.primary-button:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.secondary-button { color: #4c5751; background: #fff; border: 1px solid #d8dfd9; }
.secondary-button:hover { color: var(--green); border-color: #9abca6; background: #fbfdfb; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px 19px 16px; min-height: 118px; }
.metric-label { color: var(--muted); font-size: 12px; }
.metric-card strong { display: block; margin: 13px 0 6px; font-size: 27px; line-height: 1; letter-spacing: -.5px; }
.metric-note { font-size: 11px; }
.metric-note em { color: #89918d; font-style: normal; }
.positive { color: var(--green); }
.warning { color: var(--orange); }
.neutral { color: #89918d; }
.notice-banner { margin-top: 18px; padding: 14px 17px; display: flex; align-items: center; gap: 12px; border: 1px solid #eadbc5; border-radius: 8px; background: #fffaf3; }
.notice-icon { width: 22px; height: 22px; flex: 0 0 22px; display: grid; place-items: center; border: 1px solid #d69b5f; color: var(--orange); border-radius: 50%; font-weight: 700; font-size: 12px; }
.notice-banner strong { display: block; color: #60472d; font-size: 12px; }
.notice-banner p { margin-top: 4px; color: #8a735b; font-size: 11px; }
.notice-banner a { margin-left: auto; color: var(--orange); white-space: nowrap; font-size: 11px; font-weight: 600; }
.content-panel { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; padding: 21px 22px 18px; }
h2 { font-size: 16px; letter-spacing: -.15px; }
.panel-subtitle { display: block; margin-top: 5px; color: #8a948e; font-size: 11px; }
.panel-actions { display: flex; gap: 8px; }
.filter-row { display: flex; align-items: center; gap: 11px; padding: 0 22px 17px; border-bottom: 1px solid var(--line); }
.search-field { height: 34px; min-width: 270px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #dce2dd; background: #fcfdfc; border-radius: 6px; color: #839089; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-field input::placeholder { color: #a5ada8; }
.segmented-control { margin-left: auto; display: flex; padding: 3px; background: #f0f3f0; border-radius: 6px; }
.segment { border: 0; padding: 6px 10px; color: #78827c; border-radius: 4px; background: transparent; font-size: 11px; }
.segment b { margin-left: 4px; color: #a0aaa4; font-size: 10px; font-weight: 500; }
.segment.active { background: #fff; color: var(--green); box-shadow: 0 1px 3px rgba(32, 45, 37, .08); }
.segment.active b { color: var(--green); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 22px; text-align: left; color: #929b95; background: #fcfdfc; font-size: 10px; font-weight: 600; letter-spacing: .15px; }
td { padding: 14px 22px; border-top: 1px solid #edf0ed; color: #4e5852; font-size: 12px; vertical-align: middle; }
tbody tr:hover { background: #fbfdfb; }
.miniapp-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.miniapp-logo { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.logo-mint { background: #5a9b76; }.logo-blue { background: #5b7d9f; }.logo-coral { background: #c97963; }.logo-violet { background: #8c7aaf; }
.miniapp-cell strong { display: block; color: #303a34; font-size: 12px; font-weight: 600; }
.miniapp-cell span { display: block; margin-top: 4px; color: #9aa39d; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.type-label { color: #68736c; font-size: 11px; }
.status-cell { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.status-dot.green { background: #4fa772; }.status-dot.orange { background: #d4914e; }.status-dot.red { background: #c96866; }.status-dot.blue { background: #6d98bf; }
.status-text { font-size: 11px; }
.status-text.green { color: var(--green); }.status-text.orange { color: var(--orange); }.status-text.red { color: var(--red); }.status-text.blue { color: var(--blue); }
.updated { color: #85908a; font-size: 11px; white-space: nowrap; }
.deadline { font-size: 11px; white-space: nowrap; }.deadline.urgent { color: var(--orange); }.deadline.normal { color: #89938d; }.deadline.overdue { color: var(--red); }
.row-actions { display: flex; justify-content: end; gap: 5px; }
.row-button { border: 0; background: transparent; color: #738079; font-size: 11px; padding: 5px 4px; white-space: nowrap; }
.row-button:hover { color: var(--green); }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; color: #929b95; font-size: 10px; }
.pagination { display: flex; gap: 4px; }.pagination button { width: 24px; height: 24px; border: 1px solid var(--line); background: #fff; color: #a1aaa5; border-radius: 4px; font-size: 11px; }.pagination .current { color: var(--green); border-color: #a7c7b1; background: var(--green-soft); }
.lower-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; margin-top: 18px; margin-bottom: 36px; }
.lower-grid .content-panel { width: auto; margin: 0; }
.text-link { color: var(--green); font-size: 11px; font-weight: 600; }
.timeline { padding: 0 22px 18px; }
.timeline-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; position: relative; padding: 0 0 19px; }
.timeline-item:not(:last-child)::before { content: ""; position: absolute; top: 21px; left: 11px; width: 1px; height: calc(100% - 8px); background: #dbe4dc; }
.timeline-dot { width: 23px; height: 23px; z-index: 1; display: grid; place-items: center; border: 1px solid #d5dfd7; border-radius: 50%; background: #fff; color: #9ca6a0; font-size: 10px; }
.timeline-item.complete .timeline-dot { border-color: #8bc19e; color: var(--green); background: var(--green-soft); }.timeline-item.current .timeline-dot { border-color: #d39a5d; color: var(--orange); background: var(--orange-soft); }
.timeline-item strong { display: block; color: #455049; font-size: 11px; font-weight: 600; }.timeline-item p { margin-top: 4px; color: #929b95; font-size: 10px; }.timeline-item time { color: #9ba49e; font-size: 10px; padding-top: 4px; }
.api-status-list { padding: 0 22px 13px; }.api-status-list > div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #edf0ed; color: #5e6962; font-size: 11px; }.api-status-list strong { color: var(--green); font-size: 10px; font-weight: 600; }.api-status-list > div:last-child strong { color: var(--orange); }
.api-status-list .status-dot { margin-right: 8px; vertical-align: -1px; }
.status-pill { padding: 5px 8px; border-radius: 20px; font-size: 10px; }.status-pill.success { background: var(--green-soft); color: var(--green); }
.api-callout { margin: 0 22px 20px; display: flex; gap: 9px; padding: 11px 12px; border: 1px solid #dce9df; background: #f7fbf8; border-radius: 6px; }.api-callout > span { color: var(--green); font-size: 15px; }.api-callout strong { display: block; color: #496052; font-size: 11px; }.api-callout p { margin-top: 4px; color: #87948b; font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 28px; background: rgba(27, 37, 32, .45); }
.hidden { display: none; }
.modal { width: min(650px, 100%); max-height: calc(100vh - 56px); overflow-y: auto; background: #fff; border-radius: 10px; box-shadow: var(--shadow); }
.detail-modal { width: min(720px, 100%); }
.modal-header { display: flex; align-items: start; justify-content: space-between; padding: 25px 27px 20px; border-bottom: 1px solid var(--line); }.modal-header h2 { margin-top: 2px; font-size: 21px; }.close-button { width: 28px; height: 28px; border: 0; background: #f2f5f2; color: #76837b; border-radius: 50%; font-size: 20px; line-height: 1; }
.modal form { padding: 4px 27px 0; }.form-section { padding: 20px 0; border-bottom: 1px solid #edf0ed; }.form-section-title { display: flex; gap: 11px; align-items: start; margin-bottom: 15px; }.form-section-title > span { color: var(--green); font-size: 10px; font-weight: 700; padding-top: 2px; }.form-section-title strong { font-size: 12px; }.form-section-title p { margin-top: 4px; color: #929b95; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.form-grid label { display: grid; gap: 6px; color: #657069; font-size: 10px; }.form-grid input, .form-grid select { height: 35px; width: 100%; border: 1px solid #dbe2dc; border-radius: 5px; outline: 0; padding: 0 10px; background: #fcfdfc; color: #37433b; font-size: 11px; }.form-grid input:focus, .form-grid select:focus { border-color: #8db89a; box-shadow: 0 0 0 3px #e8f3eb; }.full-width { grid-column: 1 / -1; }
.form-notice { margin: 17px 0; padding: 10px 11px; display: flex; gap: 8px; align-items: center; color: #8b6b47; background: #fff9f0; border: 1px solid #f0dfc8; border-radius: 5px; font-size: 10px; }.form-notice span { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #d9a66e; color: var(--orange); border-radius: 50%; font-weight: 700; }
.modal-footer { display: flex; justify-content: end; gap: 8px; padding: 17px 0 23px; }
.detail-body { padding: 22px 27px 26px; }.detail-hero { display: flex; align-items: center; gap: 12px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }.detail-hero .miniapp-logo { width: 44px; height: 44px; font-size: 17px; }.detail-hero h3 { font-size: 15px; }.detail-hero p { margin-top: 5px; color: #8d9791; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }.detail-hero .status-cell { margin-left: auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 26px; padding: 21px 0; }.detail-field span { display: block; color: #929b95; font-size: 10px; }.detail-field strong { display: block; margin-top: 5px; color: #465149; font-size: 12px; font-weight: 600; }.detail-field strong.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }.detail-alert { padding: 12px; border-radius: 6px; font-size: 11px; }.detail-alert.warning { color: #8b6a45; background: var(--orange-soft); border: 1px solid #f2dbbd; }.detail-alert.danger { color: #914e4c; background: var(--red-soft); border: 1px solid #efccca; }.detail-actions { display: flex; gap: 8px; justify-content: end; margin-top: 20px; }

@media (max-width: 1180px) {
  .page-heading, .metric-grid, .notice-banner, .content-panel, .lower-grid { width: calc(100% - 52px); }
  .topbar { padding: 0 26px; }
  .filter-row { flex-wrap: wrap; }.segmented-control { margin-left: 0; }.search-field { flex: 1; }
}
