/* Shared foundations adapted from ig-comment-bot/app/static/console.css (read-only source). */
:root{color-scheme:light;font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;color:#30383D;background:#F4F5F7;font-size:15px;--muted:#59666e;--line:#E7EAED;--green:#3E9B5B;--navy:#0F2A3D;--blue:#2F6FD0}
*{box-sizing:border-box}body{margin:0}a{color:#287641;text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button,.button{min-height:46px;border:1px solid #D7DDE0;background:#fff;color:#435057;border-radius:10px;padding:12px 15px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;max-width:100%}button:hover{border-color:var(--green)}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--navy);color:#fff;border-color:var(--navy)}:focus-visible{outline:3px solid #2F6FD0;outline-offset:3px}.icon{display:inline-block;width:22px;height:22px;flex-shrink:0;vertical-align:middle}.app{position:relative;isolation:isolate;max-width:1040px;margin:auto;min-height:100dvh;padding-bottom:24px;overflow-wrap:anywhere}.app:before{content:"";position:absolute;z-index:-1;inset:0 0 auto;height:650px;pointer-events:none;background:radial-gradient(ellipse at 4% 44%,#CFEDE1 0,transparent 48%),radial-gradient(ellipse at 92% 56%,#DFDDF5 0,transparent 47%),radial-gradient(ellipse at 55% 65%,#D9EAF5 0,transparent 45%)}.brand{display:flex;align-items:center;padding:25px 22px 20px;gap:10px}.brand strong{font-size:25px;letter-spacing:-.7px}.brand small{display:block;font-size:11px;font-weight:500;color:var(--muted);letter-spacing:.6px;margin-top:2px}.brand-icon{color:var(--green);display:flex;width:43px;height:43px;align-items:center;justify-content:center}.brand-icon .icon{width:38px;height:38px}.brand>.chip{margin-left:auto}.chip{font-size:12px;padding:7px 10px;border:1px solid #DAE5DF;background:#F2F8F4;border-radius:20px;color:#316840;display:inline-block}.page-heading{margin:22px 0 28px}.eyebrow{font-size:11px;letter-spacing:1px;color:#287641;font-weight:650}main{padding:0 20px}h1{font-size:28px;letter-spacing:-.6px;margin:8px 0 12px;line-height:1.4}h2{font-size:20px;margin:8px 0 18px}h2 .icon{color:#287641;margin-right:3px}h3{font-size:15px;margin:22px 0 12px}p{line-height:1.75}.muted,.hint{color:var(--muted)}.hint{font-size:13px;line-height:1.7}.card,.page-body:has(>#invitation),.page-body:has(>.invitation-link){background:#fff;border:1px solid #fff;border-radius:16px;padding:22px 20px;margin:16px 0;min-width:0;box-shadow:0 4px 18px #263D4A03}label{display:block;color:#435057;font-size:14px;font-weight:600;margin-bottom:18px}input,select{display:block;width:100%;max-width:100%;min-width:0;min-height:48px;background:#FAFBFC;border:1px solid #D9DFE3;color:#30383D;border-radius:10px;padding:12px;margin-top:8px;font-size:16px}input[type=hidden]{display:none}input[type=checkbox]{width:22px;height:22px;min-height:22px;margin:2px 0;accent-color:var(--green);flex-shrink:0}.check{display:flex;align-items:start;gap:12px;min-height:44px;margin:18px 0 0;line-height:1.75}.check span{flex:1}form>button.primary{width:100%}.field-grid{display:grid;gap:0 20px;grid-template-columns:1fr}.field-grid label:last-child{margin-bottom:0}.steps{display:flex;gap:8px;margin-bottom:22px}.steps a{flex:1;border:1px solid #fff;background:#ffffffb5;border-radius:14px;padding:12px 5px;text-align:center;text-decoration:none;color:#435057;font-size:12px}.steps b{display:block;color:#287641;margin-bottom:5px;font-size:19px}.upload-field{background:#FAFBFC;border:1px dashed #b4c7bc;border-radius:12px;padding:16px;margin:14px 0}.upload-field .icon{color:#287641}input[type=file]{font-size:12px;padding:8px;border:0;background:transparent}input::file-selector-button{border:1px solid #d7dde0;border-radius:8px;background:white;padding:8px;margin-right:8px;color:#30383D}summary{cursor:pointer;min-height:48px;line-height:1.8;color:#435057;border-top:1px solid var(--line);font-size:14px;padding:12px 0}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.9 system-ui;background:#F7F9FA;border-radius:10px;padding:16px}.canvas-wrap{border:1px solid #bdc9c2;border-radius:12px;background:#fafcfa;overflow:hidden}.canvas-wrap span{display:block;text-align:center;font-size:12px;color:var(--muted);padding:8px;border-top:1px dashed #ccd9d0}canvas{display:block;touch-action:none;width:100%;height:auto}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.actions button{flex:1;font-size:13px;padding:12px 8px}.divider{text-align:center;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.preview-wrap{min-height:110px;border:1px solid var(--line);border-radius:12px;background:repeating-conic-gradient(#f0f3f1 0% 25%,white 0% 50%) 0/16px 16px;display:flex;align-items:center;justify-content:center}img{max-width:100%;height:auto}#preview:not([src]){visibility:hidden}#status{font-size:13px;color:#316840;min-height:22px}.submit-card button{width:100%}.profile-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.profile-row>a{font-weight:650;flex:1;min-width:150px}.profile-row time{font-size:12px;color:var(--muted);width:100%}.profile-row form{width:100%}.profile-row button{width:100%;font-size:13px}.avatar,.orbit{display:inline-flex;align-items:center;justify-content:center;background:#EDF6EF;color:#287641;border-radius:14px;width:40px;height:40px}.orbit{width:auto;padding:12px;margin-bottom:16px;font-size:12px}.login-shell{max-width:500px}.login-card h2{margin-top:0}.invitation-link{display:block;overflow-wrap:anywhere;background:#f2f7f4;border:1px dashed #b4c7bc;border-radius:12px;padding:20px;line-height:1.8}.page-body>p{padding:12px 16px;background:#fff;border-radius:12px}.page-body>p a{display:inline-flex;align-items:center;gap:10px;min-height:32px}.page-body>form[action='/logout']{display:flex;justify-content:end}.page-body>form[action='/logout'] button{font-size:13px;padding:8px 15px}footer{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--muted);margin:30px 20px;line-height:1.6}.completion{padding:28px;text-align:center}.completion h2{color:#287641}.completion:before{content:'✓';display:grid;place-items:center;margin:0 auto 22px;width:64px;height:64px;border-radius:50%;background:#edf6ef;color:#287641;font-size:32px}.create-card button{width:100%}section{scroll-margin-top:20px}@media(min-width:760px){main{padding:0 36px}.brand{padding:28px 36px}.page-heading{margin-top:35px}.profile-shell{max-width:820px}.field-grid{grid-template-columns:1fr 1fr}.card{padding:28px}.profile-row form{width:auto;margin-left:auto}.profile-row time{width:auto}.profile-row button{width:auto}.steps a{display:flex;align-items:center;justify-content:center;gap:12px}.steps b{margin:0}.create-card{max-width:550px}.page-body:has(>.invitation-link){max-width:760px}.page-heading h1{font-size:34px}}

/* PM review: compact account header and aligned admin records. */
.header-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex-shrink:0}.header-actions form{margin:0}.header-actions button{font-size:13px;padding:8px 12px}.role-chip{white-space:nowrap}.create-card{max-width:none}.profile-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px 12px}.profile-row>a{min-width:0;align-self:center}.profile-row .avatar{grid-row:1 / 3}.profile-row time{grid-column:2 / 4;width:auto}.profile-row form{grid-column:1 / -1;width:100%;margin:4px 0 0}.profile-row button{width:100%}.private-summary dl{margin:0}.private-summary dl>div{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-top:1px solid var(--line)}.private-summary dt{color:var(--muted)}.private-summary dd{margin:0;font-variant-numeric:tabular-nums}.invitation-record{display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid var(--line)}.invitation-record>.chip{margin-left:auto}.invitation-record form{margin:0}.invitation-record button{font-size:13px;padding:8px 12px}.status-active{color:#23683b;background:#edf8ef;border-color:#cce4d2}.status-used{color:#245ba0;background:#edf3fc;border-color:#cdddf2}.status-revoked{color:#9a3939;background:#fbeeee;border-color:#edd0d0}.status-expired{color:#865b19;background:#fff5df;border-color:#ecdbb7}
@media(min-width:760px){.profile-row{grid-template-columns:40px minmax(0,1fr) auto auto}.profile-row .avatar{grid-row:1}.profile-row time{grid-column:4}.profile-row form{grid-column:2 / -1;justify-self:end;width:auto}.profile-row button{width:auto}}
select,textarea{font:inherit;font-size:16px;max-width:100%;width:100%;padding:12px;border:1px solid #cbd3d9;border-radius:10px;background:white;color:#30383d}textarea{box-sizing:border-box;resize:vertical}nav.actions{flex-wrap:wrap;gap:16px}dl div{display:flex;justify-content:space-between;gap:16px;padding:8px 0;border-bottom:1px solid #e7eaed}dd{margin:0;text-align:right;overflow-wrap:anywhere}.card p,.card a{overflow-wrap:anywhere}.check span{min-width:0}select:focus,textarea:focus{outline:3px solid #d9eaf5}.actions button{white-space:normal}
.admin-shell .actions button{flex:1 1 130px}.admin-shell .card textarea{font-weight:400;line-height:1.7}
.pdf-preview{display:block;width:100%;height:auto;border:1px solid #E7EAED}.declaration{background:#fff4d5;padding:18px;border:2px solid #b47b12;border-radius:10px}button:disabled{opacity:.4;cursor:not-allowed}

/* A1 full-library counts and profile timestamps */
.admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:12px}.stat{display:flex;flex-direction:column;gap:6px;padding:14px;background:var(--bg,#f4f5f7);border-radius:12px}.stat strong{font-size:1.8rem}.stat span{font-size:.88rem}.profile-times{display:flex;flex-direction:column;gap:5px;font-size:.82rem;color:#667085}.profile-times time{white-space:normal}.profile-row .profile-times{flex:1;min-width:180px}
.profile-row .profile-times{grid-column:2 / -1;min-width:0}.profile-times>span{display:block}.profile-times time{display:inline}
@media(min-width:760px){.profile-row .profile-times{grid-column:4;min-width:190px}}
