:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #22342f;
  background: #f6f7f5;
  font-synthesis: none;
  line-height: 1.6;
  --green: #176d55;
  --muted: #7a8781;
  --border: #e5eae5;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100svh; display: flex; flex-direction: column; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
a { color: inherit; }
button, .button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; padding: 11px 18px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
button:hover, .button:hover { background: #115940; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #91bca9; outline-offset: 4px; }
input:focus-visible { outline: 2px solid #79a893; outline-offset: 1px; }
.secondary { background: #fff; color: #52675d; border-color: #dfe6df; font-weight: 500; }
.secondary:hover { background: #f3f6f2; border-color: #becdc1; }
.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.site-header { min-height: 87px; padding: 20px 4.6%; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); background: #fafbf9; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.5px; }
.brand > span:last-child { display: inline-flex; align-items: center; }
.brand-symbol { display: flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 11px; background: #215e48; color: #fff; letter-spacing: -3px; padding-right: 3px; font-size: 23px; font-weight: 700; }
.brand-symbol span { color: #b6d9ba; }
.brand-divider { display: inline-block; height: 18px; width: 1px; background: #d6ded6; margin: 0 17px; }
.brand-product { font-size: 14px; font-weight: 500; letter-spacing: .5px; color: #69766f; }
#identity { display: flex; align-items: center; gap: 12px; font-size: 13px; }
#identity .secondary { padding: 6px 12px; font-size: 12px; }
.internal-label { display: inline-flex; align-items: center; gap: 8px; color: #748078; font-size: 12px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #83a78c; }
main { flex: 1; width: 100%; }
.login-layout { width: min(1050px, calc(100% - 96px)); margin: 0 auto; min-height: calc(100svh - 153px); padding: 60px 0; display: grid; grid-template-columns: 1fr 414px; align-items: center; gap: 85px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; font-size: 10px; letter-spacing: 2px; font-weight: 600; color: #6c8976; }
.eyebrow > span { width: 17px; height: 1px; background: #7a9b84; }
.login-intro h1 { margin: 0; font-size: clamp(36px, 3.8vw, 49px); line-height: 1.45; font-weight: 650; letter-spacing: -1.4px; }
.accent { color: #3b8b61; }
.intro-description { margin: 23px 0 34px; color: #7b8780; font-size: 15px; line-height: 1.95; }
.workflow { display: grid; gap: 25px; }
.workflow-step { display: flex; align-items: flex-start; gap: 16px; position: relative; }
.workflow-step:not(:last-child)::after { content: ""; position: absolute; top: 36px; bottom: -20px; left: 16px; border-left: 1px dashed #d3ddd1; }
.step-number { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; height: 34px; border: 1px solid #d9e3d7; border-radius: 10px; font-size: 11px; font-weight: 600; color: #658469; background: #f0f4ec; font-variant-numeric: tabular-nums; }
.workflow-step strong { font-size: 14px; font-weight: 600; }
.workflow-step p { margin: 3px 0 0; color: #89928a; font-size: 12px; }
.intro-footnote { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #87958a; margin-top: 39px; }
.intro-footnote .icon { width: 15px; height: 15px; color: #76987c; }
.intro-footnote > span { color: #bcc6bb; margin: 0 1px; }
.login-card { padding: 30px 32px 0; border: 1px solid #e0e7df; border-radius: 18px; background: #fff; box-shadow: 0 10px 35px #283f2a07, 0 2px 5px #283f2a03; }
.login-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.app-mark { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 13px; background: #edf4ed; color: #417a50; flex-shrink: 0; }
.app-mark .icon { width: 25px; height: 25px; }
h2 { font-size: 19px; line-height: 1.5; font-weight: 600; margin: 0; letter-spacing: -.4px; }
.login-card-heading p { color: #93a095; font-size: 11px; margin: 3px 0 0; }
.login-tabs { display: flex; border-bottom: 1px solid #ebefea; margin-bottom: 22px; }
.login-tabs button { width: 50%; background: transparent; color: #8b978d; border-radius: 0; padding: 10px 0 13px; font-size: 13px; font-weight: 500; border: 0; position: relative; }
.login-tabs button[aria-selected="true"] { color: #246b4d; font-weight: 600; }
.login-tabs button[aria-selected="true"]::after { content: ""; height: 2px; width: 48px; border-radius: 2px; background: #397b53; position: absolute; bottom: -1px; left: calc(50% - 24px); }
.qr-frame { width: 248px; height: 248px; position: relative; margin: 0 auto; border: 1px solid #e9ede7; border-radius: 13px; overflow: hidden; background: #fff; }
.qr-frame img { display: block; width: 100%; height: 100%; }
.qr-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #fffffff5; backdrop-filter: blur(4px); text-align: center; padding: 18px; }
.qr-overlay p { margin: 0; font-size: 13px; color: #5c7061; }
.small-button { font-size: 12px; padding: 8px 12px; }
.spinner { width: 23px; height: 23px; border: 2px solid #dfe9dd; border-top-color: #367a53; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-status { text-align: center; font-size: 13px; font-weight: 500; color: #506552; margin: 15px 0 12px; min-height: 21px; }
.pairing-code { display: flex; justify-content: center; align-items: center; gap: 10px; background: #f6f8f3; border: 1px solid #eef1e9; border-radius: 7px; padding: 9px 8px; font-size: 10px; color: #8b9786; }
.pairing-code strong { color: #58704e; font-size: 14px; letter-spacing: 1.2px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
#qr-countdown { margin-left: auto; font-variant-numeric: tabular-nums; }
.qr-help { text-align: center; font-size: 10px; color: #9aa293; margin: 12px 0 22px; }
.login-card-footer { padding: 17px 0; border-top: 1px solid #edf0e9; font-size: 11px; color: #929e91; display: flex; align-items: center; justify-content: center; gap: 6px; }
.login-card-footer .icon { height: 14px; width: 14px; }
.account-panel { min-height: 360px; padding: 28px 0 36px; display: flex; align-items: center; flex-direction: column; text-align: center; justify-content: center; }
.feishu-mark { display: flex; width: 66px; height: 66px; border: 1px solid #e9edf0; border-radius: 19px; padding: 11px; background: #f8faff; }
.feishu-mark svg { width: 100%; height: 100%; }
.account-panel h3 { font-size: 17px; font-weight: 600; margin: 20px 0 10px; }
.account-panel p { color: #90998e; font-size: 12px; margin: 0 0 28px; }
.account-panel .button { width: 100%; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 22px 4.6%; font-size: 10px; color: #a0a99d; gap: 16px; }
.footer-dot { margin: 0 8px; color: #bec7b9; }
.notice { max-width: 1152px; width: calc(100% - 48px); margin: 20px auto 0; padding: 12px 17px; border: 1px solid #d3e2cd; border-radius: 9px; background: #edf5e9; font-size: 13px; color: #527446; }
.notice[data-kind="error"] { border-color: #eedbce; background: #fff6f0; color: #a35d37; }
.phone-card { width: min(440px, calc(100% - 32px)); margin: 52px auto; border: 1px solid var(--border); border-radius: 18px; padding: 32px; text-align: center; background: #fff; }
.phone-card .eyebrow { justify-content: center; margin: 20px 0 12px; font-size: 9px; }
.phone-card h1 { font-size: 25px; margin: 0 0 12px; }
.phone-card .muted { line-height: 1.8; }
.phone-code-box { border: 1px solid #e0e8d9; border-radius: 10px; background: #f6f8f2; padding: 18px; margin: 24px 0 15px; display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: #8a9782; }
.phone-code-box strong { font-size: 35px; font-weight: 600; letter-spacing: 5px; color: #47773e; font-variant-numeric: tabular-nums; }
.phone-safety { font-size: 11px; color: #8b9686; text-align: left; }
#phone-account { font-size: 13px; color: #467344; }
.phone-actions { display: grid; gap: 10px; margin: 24px 0 18px; }
.text-link { color: var(--green); font-size: 13px; text-underline-offset: 4px; }
.workspace { max-width: 1200px; padding: 36px 24px; margin: auto; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.workspace-heading .eyebrow { margin: 0 0 6px; font-size: 9px; letter-spacing: 1.5px; }
.workspace-heading h1 { font-size: 27px; letter-spacing: -.6px; margin: 0; font-weight: 600; }
.muted, small { font-size: 12px; color: #8a958a; }
.workspace-heading .muted { margin: 6px 0 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; margin-bottom: 25px; }
.stat { padding: 18px 23px; border: 1px solid var(--border); border-radius: 12px; background: #fff; position: relative; display: grid; gap: 5px; }
.stat > span:first-child { font-size: 12px; color: #879382; }
.stat strong { font-size: 29px; font-weight: 550; line-height: 1.4; font-variant-numeric: tabular-nums; }
.stat > .icon, .stat-dot { position: absolute; right: 23px; top: 25px; color: #a2b199; }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; }
.amber { background: #dfbd68; box-shadow: 0 0 0 5px #fbf6e9; }
.green { background: #81ab79; box-shadow: 0 0 0 5px #eff5eb; }
.panel { border: 1px solid var(--border); border-radius: 13px; padding: 25px; margin-bottom: 24px; background: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-heading h2 { font-size: 16px; }
.section-heading p { margin: 6px 0 0; }
.section-heading > button { padding: 8px 12px; font-size: 12px; white-space: nowrap; }
.count-badge { display: inline-flex; border: 1px solid #e6ece1; background: #f5f8f1; color: #819374; font-size: 11px; padding: 0 7px; border-radius: 5px; margin-left: 5px; vertical-align: middle; }
.record-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 0 18px; }
.record-filters { display: flex; gap: 4px; padding: 3px; border-radius: 7px; background: #f4f6f1; flex-shrink: 0; }
.record-filters button { border-radius: 5px; background: transparent; color: #8a9683; padding: 5px 15px; font-size: 12px; font-weight: 500; }
.record-filters button[aria-pressed="true"] { background: #fff; color: #46663d; box-shadow: 0 1px 4px #2d4d2910; }
#record-search { max-width: 260px; font-size: 12px; padding: 8px 11px; }
input { width: 100%; min-width: 0; border: 1px solid #dfe6dc; border-radius: 7px; background: #fff; color: #3c5142; padding: 10px 12px; font-size: 13px; }
input::placeholder { color: #b0b8aa; font-weight: 400; }
.record { padding: 23px 0; border-top: 1px solid #edf0e9; }
.record:last-child { padding-bottom: 0; }
.record-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.record-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.record-monogram { width: 37px; height: 37px; border: 1px solid #e3e8dc; border-radius: 9px; background: #f5f7f0; color: #83946d; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.record h3 { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.record-subtitle { font-size: 11px; color: #9ca591; margin: 3px 0 0; }
.badge { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 5px; padding: 3px 9px; font-size: 10px; background: #f3f4f0; color: #8b9483; flex-shrink: 0; }
.badge-issued { background: #edf6e8; color: #63914a; }
.badge-pending, .badge-approved { background: #fcf6e8; color: #ac8a3e; }
.badge-rejected { background: #fbefea; color: #b47e68; }
.record-facts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; padding-left: 49px; margin: 17px 0; }
.record-facts > div { min-width: 0; }
.record-facts dt { color: #a2ac99; font-size: 10px; margin-bottom: 3px; }
.record-facts dd { margin: 0; font-size: 12px; color: #677960; overflow-wrap: anywhere; }
.record details { margin-left: 49px; }
summary { cursor: pointer; color: #90a082; font-size: 11px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #e8ede1; border-radius: 7px; padding: 13px; font-size: 11px; line-height: 1.8; background: #f7f9f3; color: #7b8b70; }
.record .actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-left: 49px; margin-top: 15px; }
.actions button, .actions .button { font-size: 11px; padding: 7px 12px; border-radius: 6px; }
.actions .icon { width: 14px; height: 14px; }
.actions > .muted { font-size: 10px; }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 54px 16px; border-top: 1px solid #edf0e9; text-align: center; }
.empty-state > .icon { width: 35px; height: 35px; color: #b6c4aa; margin-bottom: 14px; }
.empty-state h3 { font-size: 14px; font-weight: 500; color: #7f9072; margin: 0; }
.empty-state p { color: #a5af9d; font-size: 11px; margin: 6px 0 0; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 19px 24px; margin-top: 25px; }
label { display: flex; flex-direction: column; gap: 7px; color: #718368; font-size: 12px; font-weight: 500; }
small { font-weight: 400; font-size: 10px; color: #a3ad9a; }
.full { grid-column: 1 / -1; }
.required { color: #b68c61; }
.upload-field { border: 1px dashed #d7e1cd; border-radius: 9px; padding: 18px; background: #fafcf6; }
.upload-field input { padding: 8px 0; border: 0; background: transparent; color: #8b9a7d; font-size: 12px; }
input::file-selector-button { border: 1px solid #dbe5d2; padding: 7px 12px; border-radius: 6px; background: #fff; color: #728b5e; font: inherit; margin-right: 12px; cursor: pointer; }
.form-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #edf0e9; padding-top: 20px; gap: 16px; }
.identity-avatar { width: 31px; height: 31px; border: 1px solid #d8e5ce; background: #eef4e7; color: #779161; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 12px; }
.identity-name { color: #63775a; }
.identity-role { color: #9aa98d; font-size: 10px; }
@media (min-width: 1500px) { .login-layout { gap: 130px; width: 1110px; } }
@media (max-width: 1050px) { .login-layout { width: calc(100% - 64px); gap: 35px; grid-template-columns: 1fr 380px; } .login-card { padding: 27px 25px 0; } .intro-footnote { font-size: 10px; gap: 6px; } }
@media (max-width: 760px) {
  .site-header { min-height: 72px; padding: 17px 23px; }
  .brand { gap: 9px; font-size: 18px; }
  .brand-symbol { width: 32px; height: 32px; font-size: 20px; border-radius: 9px; }
  .brand-divider { margin: 0 11px; }
  .brand-product { font-size: 12px; }
  .internal-label { font-size: 10px; }
  .login-layout { width: min(414px, calc(100% - 40px)); min-height: auto; display: block; padding: 32px 0 24px; }
  .login-intro { padding: 0 5px; }
  .login-intro .eyebrow { font-size: 9px; margin-bottom: 12px; }
  .login-intro h1 { font-size: 28px; letter-spacing: -.8px; line-height: 1.5; }
  .login-intro h1 br { display: none; }
  .intro-description { margin: 11px 0 24px; font-size: 12px; }
  .desktop-break, .workflow, .intro-footnote { display: none; }
  .login-card { padding: 26px 27px 0; }
  .login-card-heading { margin-bottom: 17px; }
  .site-footer { padding: 18px 23px; font-size: 9px; }
  .workspace { padding: 26px 16px; }
  .workspace-heading h1 { font-size: 24px; }
  .workspace-heading > button { padding: 9px 12px; font-size: 12px; }
  .stats-grid { gap: 9px; }
  .stat { padding: 14px; }
  .stat > span:first-child { font-size: 10px; }
  .stat strong { font-size: 24px; }
  .stat > .icon, .stat-dot { display: none; }
  .panel { padding: 19px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 15px; }
  .section-heading p { font-size: 10px; }
  .record-toolbar { flex-wrap: wrap; gap: 12px; padding-top: 17px; }
  #record-search { max-width: none; }
  .record-heading { align-items: flex-start; }
  .record-facts { padding-left: 0; grid-template-columns: 1fr 1fr; }
  .record-facts > div:last-child { grid-column: 1 / -1; }
  .record details, .record .actions { margin-left: 0; padding-left: 0; }
  .record .badge { font-size: 9px; padding: 3px 7px; }
  .record-monogram { width: 31px; height: 31px; font-size: 10px; }
  form { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  #identity { gap: 7px; }
  .identity-role { display: none; }
  .phone-card { padding: 27px 23px; margin: 30px auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
