:root{--ink:#162d32;--muted:#708489;--brand:#137b70;--line:#dfebe9;--bg:#f3f7f6;--danger:#b63f42}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button,input,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:9px 20px;background:var(--brand);border:1px solid var(--brand);border-radius:9px;color:white;font-weight:600;cursor:pointer;text-decoration:none}button:hover,.button:hover{filter:brightness(.95);text-decoration:none}.secondary{background:white;color:var(--ink);border-color:var(--line)}input,select{display:block;width:100%;height:46px;border:1px solid #d6e3e0;border-radius:8px;padding:10px 12px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus{border-color:var(--brand);box-shadow:0 0 0 3px #137b7012}input[readonly]{background:#f3f6f5;color:var(--muted)}input[type=file]{height:auto;min-height:46px;padding:10px}label{display:block;font-weight:600;font-size:13px;margin:18px 0 7px}h1,h2,p{margin-top:0}h1{font-size:32px;line-height:1.35;letter-spacing:-1px;margin-bottom:12px}h2{font-size:21px;margin-bottom:8px}.muted,.help{color:var(--muted)}.help{font-size:12px;margin:10px 0 16px}.required{color:var(--danger)}.optional{font-weight:400;color:var(--muted);margin-left:6px}.header{height:88px;background:#fff;border-bottom:1px solid var(--line);padding:0 max(24px,calc((100vw - 1260px)/2));display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);font-size:18px;font-weight:700;white-space:nowrap}.brand small{display:block;color:var(--muted);font-size:9px;letter-spacing:1.5px;font-weight:500}.brand-mark{display:grid;place-items:center;width:44px;height:44px;background:var(--brand);border-radius:13px;color:#fff;font-size:24px}.header nav{display:flex;align-items:center;gap:22px}.header nav a{font-size:13px}.header nav form{margin:0}.link-button{border:0;background:none;color:var(--muted);padding:0;min-height:0;font-size:13px}.nav-signup{border:1px solid var(--line);padding:8px 16px;border-radius:8px}.container{max-width:1308px;margin:0 auto;padding:40px 24px 60px;min-height:calc(100vh - 168px)}.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:28px;box-shadow:0 5px 22px #123d3503}.auth-layout{max-width:1020px;margin:18px auto;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:stretch}.auth-intro{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center;border-radius:16px;padding:50px 42px;background:linear-gradient(140deg,#103e40,#176b60);color:#fff;min-height:550px}.auth-intro:after{content:"";position:absolute;right:-90px;bottom:-110px;width:290px;height:290px;border:1px solid #ffffff18;border-radius:50%;box-shadow:0 0 0 55px #ffffff04,0 0 0 100px #ffffff03;pointer-events:none}.eyebrow{display:block;font-size:10px;font-weight:700;letter-spacing:2px;color:var(--brand);margin-bottom:14px}.auth-intro .eyebrow{color:#87d0be}.auth-intro h1{font-size:36px;line-height:1.5;margin:10px 0 20px}.auth-intro p{color:#b7d6d0;max-width:300px}.auth-intro small{color:#9dc3ba;position:relative;z-index:1;margin-top:36px;max-width:280px}.intro-features{display:grid;gap:16px;margin-top:28px}.intro-features>div{display:flex;align-items:center;gap:14px}.intro-features b{font-size:11px;display:grid;place-items:center;width:30px;height:30px;border:1px solid #ffffff28;border-radius:8px;color:#a8dbc8}.intro-features span{color:#dfefea;font-size:13px}.auth-card{padding:38px}.auth-card button.full-width{margin-top:24px;width:100%}.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-foot{text-align:center;font-size:13px;margin:20px 0 0}.notice{padding:14px 18px;border-radius:10px;margin-bottom:22px;border:1px solid}.notice.error{background:#fff1f1;border-color:#f4d7d8;color:var(--danger)}.notice.success{background:#e9f8ef;border-color:#ceead9;color:#276848}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading .eyebrow{margin-bottom:9px}.page-heading p{margin:0}.badge{display:inline-block;background:#e5f4ed;color:#187856;padding:4px 12px;font-size:11px;font-weight:600;border-radius:99px;white-space:nowrap}.badge.disabled{background:#f7ecec;color:#b63f42}.profile-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.metadata{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:24px 0;font-size:12px}.metadata span{color:var(--muted)}.metadata b{font-weight:500;text-align:right}.qr-preview{display:flex;align-items:center;justify-content:center;background:#f8faf9;border:1px solid var(--line);border-radius:10px;margin:20px 0;min-height:180px;overflow:hidden}.qr-preview img{max-width:100%;width:210px;max-height:250px;object-fit:contain;padding:10px}.upload-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:185px;margin:20px 0;background:#f8faf9;border:1px dashed #cbdcd6;border-radius:10px;color:var(--muted)}.upload-placeholder span{font-size:32px;font-weight:300;color:#8ba49b}.upload-placeholder b{font-size:13px;font-weight:500}.upload-placeholder p{margin:7px 0;font-size:12px}.compact-form{display:inline-block;margin-top:15px}.password-card{margin-top:24px}.three-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.stats .card{padding:20px 26px;display:flex;align-items:center;justify-content:space-between}.stats span{color:var(--muted);font-size:12px}.stats strong{font-size:30px;font-weight:600}.table-card{padding:24px 0 0;overflow:hidden}.filter-form{padding:0 24px 24px;display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px 18px;align-items:end}.filter-form label{margin-top:0;font-size:12px}.filter-form input,.filter-form select{height:40px;font-size:12px}.filter-actions{display:flex;gap:10px}.filter-actions button,.filter-actions a{min-height:40px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}th{background:#f5f8f7;color:#66807a;font-weight:600;padding:15px 18px;border-top:1px solid var(--line)}td{padding:14px 18px;border-top:1px solid #edf2f0}tbody tr:hover{background:#fafcfb}.qr-mini{display:flex;align-items:center;gap:8px}.qr-mini img{width:35px;height:35px;object-fit:cover;border:1px solid var(--line);border-radius:4px}.empty{text-align:center;padding:50px;color:var(--muted)}.pagination{padding:18px 24px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.pagination>div{display:flex;gap:10px}.pagination .button{min-height:34px;padding:6px 14px;font-size:12px}.edit-card{max-width:620px}.edit-card button{margin-top:20px}footer{max-width:1260px;margin:auto;border-top:1px solid var(--line);padding:20px 0;color:#8b9b97;font-size:11px;display:flex;justify-content:space-between;gap:12px}@media(max-width:800px){.header{height:auto;min-height:78px;padding:16px 20px;flex-wrap:wrap;gap:14px}.header nav{gap:14px}.container{padding:26px 18px 40px}.auth-layout{grid-template-columns:1fr;margin:0 auto;max-width:500px}.auth-intro{min-height:0;padding:30px;}.auth-intro h1{font-size:28px;line-height:1.3;margin-bottom:12px}.intro-features,.auth-intro small{display:none}.auth-intro p{margin-bottom:0}.auth-card{padding:28px}.profile-layout{grid-template-columns:1fr}.three-columns{grid-template-columns:1fr;gap:0}.filter-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 18px 18px;gap:14px}.search-field{grid-column:1/-1}.page-heading{flex-wrap:wrap}h1{font-size:27px}.stats{gap:10px}.stats .card{padding:14px;display:block}.stats strong{display:block;font-size:25px}footer{margin:0 18px;flex-direction:column}.card{padding:22px}.table-card{padding:18px 0 0}}@media(max-width:420px){.brand{font-size:16px}.two-columns{grid-template-columns:1fr;gap:0}.header nav{width:100%;justify-content:flex-end}.stats span{font-size:10px}}

/* Form-first user center refresh */
.auth-layout{display:block;max-width:520px;margin:16px auto}.auth-card h2{font-size:28px}.auth-card .full-width{width:100%;min-height:54px;font-size:17px;border-radius:10px}.auth-other{margin-top:14px}.header nav .nav-auth,.header nav .nav-signup{font-size:15px;font-weight:600;padding:10px 20px;border:1px solid var(--line);border-radius:9px}.basic-card{max-width:1040px;margin:auto}.basic-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:42px;margin-top:22px}.basic-qr{border-left:1px solid var(--line);padding-left:36px}.basic-qr h3{font-size:16px;margin:0 0 12px}.basic-qr .badge{margin-left:8px}.qr-recommend{color:var(--brand);background:#edf7f2;border-radius:8px;padding:10px 12px;font-size:12px;margin-bottom:8px}.account-actions{max-width:1040px;margin:22px auto;display:flex;align-items:center;gap:14px}.account-actions .help{margin:0}#password-dialog{width:min(460px,calc(100% - 32px));max-height:90vh;overflow:auto;margin:auto;border:1px solid var(--line);border-radius:16px;padding:28px;color:var(--ink);box-shadow:0 24px 90px #102e3240}#password-dialog::backdrop{background:#102e3280}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-head h2{margin:0}.dialog-close{background:transparent;color:var(--muted);border:0;min-height:30px;font-size:24px;padding:0 8px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}@media(max-width:800px){.auth-layout{max-width:500px}.auth-card{padding:26px}.basic-grid{grid-template-columns:1fr;gap:28px}.basic-qr{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:24px}.header nav .nav-auth,.header nav .nav-signup{padding:8px 18px}.account-actions{flex-wrap:wrap}}

/* Standalone compact authentication form: no header or footer */
.auth-page .container{min-height:100vh;min-height:100svh;width:100%;max-width:none;padding:18px 12px;display:flex;flex-direction:column;justify-content:center;align-items:center}.auth-page .auth-layout{width:100%;max-width:420px;margin:0}.auth-page .auth-card{padding:24px}.auth-page .auth-card h2{font-size:25px;margin-bottom:7px}.auth-page .auth-card>p{font-size:12px;margin-bottom:12px}.auth-page label{font-size:12px;margin:10px 0 5px}.auth-page input{height:40px;padding:8px 11px}.auth-page .two-columns{grid-template-columns:1fr 1fr;gap:12px}.auth-page .auth-card button.full-width{min-height:46px;font-size:16px;margin-top:16px}.auth-page .auth-other{min-height:44px;font-size:15px;margin-top:10px}.auth-page .help{font-size:11px;margin:10px 0 0}.auth-page .notice{width:100%;max-width:420px;margin-bottom:12px;padding:10px 14px}

/* 发皮袄 AI brand */
:root{--ink:#233e39;--muted:#78918c;--brand:#68cab6;--line:#e2f2ef;--bg:#f5faf9}
.brand-logo{display:block;flex-shrink:0;border-radius:13px;box-shadow:0 5px 16px #68cab622}
.brand{white-space:normal;line-height:1.4}.brand small{margin-top:4px;letter-spacing:1.1px}
.auth-brand{width:100%;max-width:420px;margin:0 auto 24px}.auth-brand .brand{justify-content:center;font-size:20px}.auth-brand .brand-logo{width:50px;height:50px}.auth-brand .brand small{font-size:10px}
.auth-page{background:radial-gradient(ellipse at 15% 15%,#eaf7f5,transparent 55%),radial-gradient(ellipse at 90% 85%,#edf9f6,transparent 50%),var(--bg)}
.auth-page .card{border-color:#e0f3ef;box-shadow:0 16px 48px #24574d0a}
input:focus,select:focus{box-shadow:0 0 0 3px #68cab612}.badge{background:#eef9f7;color:#47bfa7}.qr-recommend{background:#effaf8}.notice.success{background:#eff9f7;border-color:#def3ef;color:#449b8a}
@media(max-width:420px){.auth-brand .brand{font-size:18px}.header .brand{font-size:16px}.brand-logo{width:40px;height:40px}.auth-brand{margin-bottom:18px}}

/* Separate client and management shells */
.client-page .container{max-width:1040px;padding-bottom:28px}.client-page footer{max-width:992px;margin-bottom:100px}.profile-card{max-width:680px;margin:0 auto}.account-save{margin-top:22px}.session-card{margin-top:22px}.profile-back{display:inline-block;margin:0 0 14px;font-size:13px;font-weight:600}
.bottom-tabs{position:fixed;z-index:10;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:12px;background:#fffffff2;backdrop-filter:blur(16px);border-top:1px solid var(--line);padding:8px 16px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #24574d05}.bottom-tabs a{width:180px;display:flex;align-items:center;flex-direction:column;gap:4px;padding:6px 16px;border-radius:10px;font-size:11px;font-weight:600;color:var(--muted)}.bottom-tabs a.active{background:#f1faf8;color:var(--brand)}.bottom-tabs a:hover{text-decoration:none;background:#f5fbfa}.bottom-tabs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.manage-entry{padding:8px 14px;border:1px solid var(--line);border-radius:8px}.manage-page .header{padding:0 28px}.manage-label{font-size:13px;font-weight:600;color:var(--muted)}.manage-layout{display:grid;grid-template-columns:210px minmax(0,1fr);min-height:calc(100vh - 150px)}.manage-sidebar{background:#fff;border-right:1px solid var(--line);padding:32px 22px}.manage-sidebar h2{font-size:18px;margin:8px 0 24px}.sidebar-link{display:block;padding:12px 16px;border-radius:9px;font-weight:600}.sidebar-link.active{background:#eff9f7}.manage-sidebar .help{margin:30px 16px}.manage-page .container{width:100%;max-width:none;padding:36px 28px}.manage-page footer{max-width:none;padding:18px 28px}.manage-page .stats{gap:16px}.manage-page .page-heading h1{font-size:28px}
@media(max-width:800px){.client-page .header{padding:14px 18px}.client-page .header nav{width:auto;margin-left:auto}.client-page .container{padding:24px 18px}.client-page footer{margin-bottom:100px}.bottom-tabs{gap:6px}.bottom-tabs a{width:33.333%;max-width:180px}.manage-layout{grid-template-columns:1fr}.manage-sidebar{padding:14px 18px;border-right:0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:16px}.manage-sidebar .eyebrow,.manage-sidebar .help{display:none}.manage-sidebar h2{margin:0;font-size:14px;white-space:nowrap}.sidebar-link{padding:8px 14px;font-size:12px}.manage-page .container{padding:24px 18px}.manage-page .header{padding:14px 18px}.manage-page .header nav{width:auto;flex-wrap:wrap;margin-left:auto}.manage-label{display:none}.manage-page footer{margin:0;padding:18px}.profile-card{padding:24px}.client-page .page-heading h1{font-size:27px}.manage-entry{font-size:11px!important}}
@media(max-width:420px){.client-page .brand,.manage-page .brand{font-size:15px}.client-page .brand small,.manage-page .brand small{font-size:8px}.brand-logo{width:38px;height:38px}.header{gap:12px}}

/* Keep the authentication brand separate from the form, including short viewports. */
.auth-page .container{gap:28px;padding:32px 20px;justify-content:safe center}
.auth-page .auth-brand,.auth-page .auth-layout,.auth-page .notice{flex:0 0 auto;margin:0;min-width:0}
.auth-page .auth-brand .brand>span{min-width:0}
@media(max-width:800px){
  .auth-page .container{justify-content:flex-start;gap:32px;padding:calc(clamp(32px,8svh,72px) + env(safe-area-inset-top)) 20px calc(32px + env(safe-area-inset-bottom))}
  .auth-page .auth-brand .brand{font-size:17px;gap:12px;line-height:1.5}
  .auth-page .auth-brand .brand-logo{width:44px;height:44px;border-radius:12px}
  .auth-page .auth-brand .brand small{font-size:9px;letter-spacing:1px;margin-top:3px}
  .auth-page .auth-card{padding:28px 24px}
  .auth-page .auth-card h2{font-size:26px;margin-bottom:10px}
  .auth-page .auth-card>p{margin-bottom:22px;line-height:1.7}
  .auth-page .auth-card label{margin:18px 0 8px}
  .auth-page .auth-card input{height:48px}
  .auth-page .auth-card button.full-width{min-height:48px;margin-top:24px}
  .auth-page .auth-other{min-height:46px;margin-top:12px}
  .auth-page .help{margin-top:16px;line-height:1.7}
}
@media(max-width:360px){
  .auth-page .container{padding-left:16px;padding-right:16px}
  .auth-page .auth-card{padding:24px 20px}
  .auth-page .auth-brand .brand{font-size:16px}
  .auth-page .two-columns{grid-template-columns:minmax(0,1fr);gap:0}
}

/* Invitation pages reuse shared form and table components. */
.invite-code[data-copy-code]{cursor:pointer}.invite-code[data-copy-code]:hover{border-color:var(--brand)}
.invitation-card{display:flex;justify-content:space-between;gap:28px;margin-bottom:24px}.invitation-card>div{min-width:0}.invite-code-row{display:flex;align-items:center;gap:12px}.invite-code-row input{max-width:220px}.invite-code-row button{white-space:nowrap}.invite-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:3px;font-weight:700;color:var(--brand)!important}.invite-code-inline{font-weight:600;letter-spacing:1px}.invitation-summary{display:flex;flex-direction:column;justify-content:center;gap:5px;font-size:13px;min-width:180px;border-left:1px solid var(--line);padding-left:28px;color:var(--muted)}.invitation-summary strong{color:var(--ink);font-size:16px}.relation-context{padding:0 24px 18px;margin:0;color:var(--muted);font-size:13px}.filter-help{margin:5px 0 0}.invitation-table .filter-form{align-items:start}.invitation-table .filter-actions{align-items:center}.client-page .bottom-tabs a{width:144px}
@media(max-width:800px){.invitation-card{flex-direction:column;gap:20px}.invitation-summary{padding:18px 0 0;border-left:0;border-top:1px solid var(--line)}.client-page .bottom-tabs a{width:25%;padding-left:5px;padding-right:5px}.bottom-tabs{gap:4px}.invite-code-row{gap:8px}.invite-code-row input{min-width:0;max-width:100%;flex:1}.invite-code-row button{padding:9px 12px;font-size:12px}.relation-context{padding:0 18px 18px}}

@media(max-width:800px){.client-page .bottom-tabs a{width:20%;min-width:0;flex:1;padding:6px 2px}.client-page .bottom-tabs{gap:2px;padding-left:8px;padding-right:8px}}

@media(max-width:800px){.client-page .bottom-tabs a{width:25%}}

/* Permanent account closure confirmation. */
.account-close-card{max-width:760px;margin:0 auto}.account-close-card ul{padding-left:20px}.account-close-card li{margin-bottom:10px}.account-close-consent{display:flex;align-items:flex-start;gap:10px}.account-close-consent input{width:18px;height:18px;flex:0 0 18px;padding:0;margin-top:3px}.account-close-card form>button{background:var(--danger);border-color:var(--danger);margin-top:20px;width:100%}

.expert-badge{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;padding:4px 9px;border:1px solid #e4bd61;border-radius:999px;background:#fff5d6;color:#825400;font-size:12px;font-weight:700;vertical-align:middle}
