:root {
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
  font-synthesis: none; color: #283e35; background: #f4f7f4; font-size: 14px;
  --green: #147d68; --border: #e0e8e1; --muted: #829288;
}
* { box-sizing: border-box; }
body { margin: 0; }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea { outline-offset: 3px; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
.sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; background: #fff; border-right: 1px solid var(--border); padding: 30px 19px; display: flex; flex-direction: column; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 650; letter-spacing: -.6px; }
.brand small { display: block; font-size: 10px; letter-spacing: 2px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.nav-caption { margin: 38px 12px 13px; color: #9ba89e; font-size: 11px; }
nav a { display: flex; align-items: center; gap: 12px; border-radius: 7px; padding: 12px; margin: 3px 0; color: #788b7c; font-size: 13px; }
nav a span { width: 20px; font-size: 18px; }
nav a.active { color: var(--green); background: #eaf4ee; font-weight: 600; }
nav a:hover { background: #f0f6f1; }
.sidebar-help { text-align: left; margin: 25px 12px; border: 0; background: none; color: #819987; font-size: 11px; }
.sidebar-footer { margin-top: auto; padding: 23px 8px 0; border-top: 1px solid var(--border); color: #829888; font-size: 11px; }
.sidebar-footer small { display: block; margin: 9px 0 0 12px; color: #a0ada2; font-size: 10px; }
.dot { display: inline-block; border-radius: 50%; width: 6px; height: 6px; background: #36a27b; margin-right: 5px; }
.workspace { margin-left: 224px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { height: 72px; background: white; border-bottom: 1px solid var(--border); padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: #7a8c7e; }
.topbar>div { display: flex; align-items: center; gap: 12px; }
#actor-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-button { border: 0; color: #91a193; background: none; font-size: 12px; }
main { padding: 34px; margin: auto; width: 100%; max-width: 1700px; flex: 1; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.eyebrow { font-size: 10px; letter-spacing: 2px; color: #7b9a86; margin: 0 0 10px; }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -.6px; margin: 0 0 10px; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.heading-actions { display: flex; gap: 9px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 38px; padding: 9px 14px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.primary { color: white; background: var(--green); }
.primary:hover { background: #116956; }
.secondary { border-color: #dce6de; background: white; color: #64836c; }
.secondary:hover { background: #f1f7f2; }
.notice { display: flex; gap: 12px; padding: 15px 18px; border: 1px solid #dce8de; background: #ecf4ed; border-radius: 8px; margin-bottom: 25px; color: #78937e; }
.notice>span { font-family: Georgia,serif; border: 1px solid #90af97; width: 17px; height: 17px; flex-shrink: 0; text-align: center; border-radius: 50%; }
.notice p { font-size: 11px; line-height: 1.8; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.stat { background: #fff; border: 1px solid var(--border); padding: 21px; border-radius: 9px; }
.stat>span { display: block; color: #879c8b; font-size: 12px; }
.stat strong { display: block; font-size: 31px; font-weight: 600; margin: 17px 0 10px; font-variant-numeric: tabular-nums; letter-spacing: -.7px; overflow-wrap: anywhere; }
.stat small { color: #a1afa4; font-size: 10px; }
.section-card { background: white; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; margin-bottom: 22px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 22px; gap: 15px; }
.panel-heading .muted { margin-top: 7px; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 0 22px 20px; }
.toolbar label { font-size: 11px; color: #8b9d8e; display: flex; align-items: center; gap: 7px; }
input,select,textarea { border: 1px solid #dce5de; background: #fff; color: #486b51; border-radius: 6px; padding: 9px 10px; font-size: 12px; max-width: 100%; }
input::placeholder,textarea::placeholder { color: #a1afa4; }
.search-input { width: 240px; }
.toolbar .duration-label { margin-left: auto; }
.duration-label input { width: 70px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 18px; background: #f7faf7; border-block: 1px solid #edf1ed; color: #98a69a; font-size: 11px; font-weight: 500; white-space: nowrap; }
td { border-bottom: 1px solid #edf1ed; padding: 19px 18px; font-size: 12px; line-height: 1.7; }
tbody tr:last-child td { border-bottom: 0; }
td strong { display: block; font-weight: 550; overflow-wrap: anywhere; }
td small { display: block; color: #99aa9d; font-size: 10px; margin-top: 4px; }
.mono { font-family: Consolas,monospace; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end; min-width: 160px; }
.row-action { font-size: 11px; padding: 6px 9px; border: 1px solid #deeadf; color: #397f54; border-radius: 5px; background: #f1f7f2; white-space: nowrap; }
.row-action.subtle { color: #8d9e90; border-color: transparent; background: none; }
.row-action.danger { color: #ac7b67; border-color: #eee4df; background: #fff; }
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: 4px; font-size: 10px; background: #eff3ef; color: #92a094; white-space: nowrap; }
.badge.green { color: #328663; background: #eaf5ed; }
.badge.orange { color: #a88a4b; background: #faf4e6; }
.cell-note { display: block; font-size: 10px; color: #99a89c; margin-top: 5px; }
.count { font-size: 10px; font-weight: 400; background: #edf3ee; color: #8ca092; border-radius: 4px; padding: 3px 7px; margin-left: 7px; }
.empty-box { padding: 50px 20px; color: #99ab9e; text-align: center; font-size: 12px; line-height: 1.8; }
.panel-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; color: #99ab9d; font-size: 10px; border-top: 1px solid #edf1ed; }
.panel-footer .button { min-height: 30px; padding: 5px 10px; font-size: 11px; }
.pagination { display: flex; gap: 10px; align-items: center; }
.sync-note { color: #a3b0a5; font-size: 10px; text-align: right; margin: 15px 0 0; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; color: #9eafa2; font-size: 10px; margin: 0 34px; padding: 22px 0; border-top: 1px solid #e3eae4; }
.hint { background: #f5f6ee; color: #928d66; border-radius: 6px; padding: 12px; font-size: 11px; line-height: 1.8; }
.form-error { color: #b46955; font-size: 12px; line-height: 1.7; }
.error-banner { background: #fff0eb; color: #b16b53; border: 1px solid #f0e1da; border-radius: 7px; padding: 13px 17px; font-size: 12px; margin-bottom: 20px; }
dialog { width: calc(100% - 32px); max-width: 510px; max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid #dbe5dd; border-radius: 12px; padding: 26px; color: #36523e; box-shadow: 0 25px 70px #1b3d2930; }
dialog::backdrop { background: #243d2c60; backdrop-filter: blur(2px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: 19px; }
.close { border: 0; background: none; color: #9caba0; font-size: 25px; padding: 0 5px; }
.field { display: block; font-size: 12px; color: #627d69; margin-top: 19px; }
.field input:not([type=checkbox]),.field select,.field textarea { display: block; width: 100%; margin-top: 8px; padding: 11px; font-size: 12px; }
.field input:disabled,.field select:disabled { color: #95a799; background: #f5f8f5; }
.field small { display: block; font-size: 10px; line-height: 1.7; color: #9cad9f; margin-top: 7px; }
.field.check { display: flex; gap: 8px; align-items: center; }
.field.check input { accent-color: var(--green); }
.dialog-footer { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 24px; }
.confirmation-text { font-size: 13px; line-height: 1.9; white-space: pre-wrap; }
.qr-image { display: block; max-width: 100%; width: 270px; margin: 15px auto; }
#credential-key { font-family: Consolas,monospace; font-size: 11px; }
.guide { font-size: 13px; padding-left: 20px; }
.guide li { padding: 7px 0; }
.guide p { color: #8b9f90; font-size: 12px; line-height: 1.8; margin: 6px 0; }
.toast { position: fixed; bottom: 25px; left: calc(50% + 112px); transform: translateX(-50%); color: white; background: #28523a; box-shadow: 0 8px 20px #203d271c; border-radius: 7px; padding: 13px 22px; font-size: 12px; z-index: 20; width: max-content; max-width: calc(100% - 32px); }
.settings-form { max-width: 600px; padding: 3px 24px 24px; }
.profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.profile-details { padding: 2px 24px 24px; }
.profile-details dl { display: grid; grid-template-columns: 100px 1fr; gap: 20px; font-size: 12px; }
.profile-details dt { color: #9aad9f; }
.profile-details dd { margin: 0; overflow-wrap: anywhere; }
.revenue-chart { padding: 5px 24px 20px; }
.revenue-chart svg { width: 100%; max-height: 270px; }
.chart-bar { fill: #9bcbb0; }
.chart-label { fill: #8da594; font-family: inherit; font-size: 11px; }
.chart-value { fill: #527e60; font-family: inherit; font-size: 11px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 25px 16px; background: radial-gradient(ellipse at top right,#dfede3,transparent 65%),#f3f7f3; }
.login-card { width: 430px; max-width: 100%; margin: 0; padding: 38px; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: 0 20px 70px #2f51330a; }
.login-card .brand { margin-bottom: 40px; }
.login-card .brand-icon { display: grid; place-items: center; width: 40px; height: 43px; background: var(--green); color: white; border-radius: 10px; font-family: Georgia,serif; font-size: 27px; }
.login-card h1 { font-size: 25px; }
.login-submit { width: 100%; margin-top: 27px; min-height: 44px; }
.login-help { color: #98a89d; font-size: 11px; line-height: 1.9; margin: 22px 0; }
.login-footer { border-top: 1px solid #edf1ee; padding-top: 20px; color: #98aa9d; font-size: 10px; }
[hidden] { display: none !important; }
@media(max-width:1150px) {
  .sidebar { width: 194px; padding: 26px 15px; }
  .workspace { margin-left: 194px; }
  main { padding: 28px 23px; }
  .topbar { padding: 0 23px; }
  .stats { gap: 12px; }
  .stat { padding: 18px; }
  .stat strong { font-size: 27px; }
  .toast { left: calc(50% + 97px); }
  .toolbar .duration-label { margin-left: 0; }
}
@media(max-width:780px) {
  .sidebar { width: 100%; position: static; padding: 16px; border: 0; border-bottom: 1px solid var(--border); display: block; overflow: visible; }
  .brand { font-size: 19px; }
  .brand img { width: 33px; height: 33px; }
  .nav-caption,.sidebar-footer { display: none; }
  #navigation { display: flex; overflow-x: auto; gap: 5px; margin: 17px -5px -5px; padding-bottom: 3px; }
  nav a { white-space: nowrap; padding: 10px; font-size: 11px; }
  nav a span { display: none; }
  .sidebar-help { position: absolute; top: 25px; right: 16px; margin: 0; font-size: 10px; }
  .workspace { margin: 0; }
  .topbar { height: 55px; padding: 0 16px; font-size: 10px; }
  .topbar>div { gap: 8px; }
  #breadcrumb { max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #actor-name { max-width: 70px; }
  .text-button { padding: 4px 0; font-size: 11px; }
  main { padding: 26px 15px; }
  h1 { font-size: 24px; }
  .page-heading { align-items: flex-start; gap: 10px; }
  .heading-actions { flex-direction: column-reverse; padding-top: 20px; }
  .heading-actions .button { font-size: 11px; padding: 8px 10px; }
  .eyebrow { font-size: 8px; }
  .page-heading .muted { font-size: 11px; max-width: 240px; }
  .notice { padding: 12px; margin-bottom: 20px; }
  .notice p { font-size: 10px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat strong { font-size: 25px; margin: 13px 0 9px; }
  .stat small { font-size: 9px; }
  .panel-heading { padding: 18px; }
  .toolbar { padding: 0 18px 18px; gap: 12px; }
  .toolbar .search-input { width: 100%; }
  .toolbar .duration-label { margin-left: auto; }
  .table-wrap { overflow: visible; }
  .table-wrap table,.table-wrap tbody { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 14px; padding: 16px 18px; border-top: 1px solid #edf1ed; }
  .table-wrap td { padding: 4px 0; border: 0; font-size: 11px; overflow-wrap: anywhere; }
  .table-wrap td:first-child,.table-wrap td:last-child { grid-column: 1 / -1; }
  .table-wrap td[data-label]::before { display: block; content: attr(data-label); color: #a3b0a5; font-size: 9px; margin-bottom: 4px; }
  .row-actions { justify-content: flex-start; gap: 9px; min-width: 0; padding-top: 7px; }
  .row-action { min-height: 35px; }
  .profile-grid { grid-template-columns: 1fr; gap: 0; }
  .profile-details dl { gap: 15px; }
  .settings-form { padding: 0 18px 22px; }
  .page-footer { margin: 0 16px; font-size: 9px; flex-wrap: wrap; }
  .toast { left: 50%; }
  .panel-footer { padding: 14px 18px; flex-wrap: wrap; }
  dialog { padding: 22px; }
}
