:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#172033;background:#f5f7fb}*{box-sizing:border-box}body{margin:0}.wrap{max-width:1040px;margin:42px auto;padding:0 18px}.card{background:#fff;border:1px solid #e5e9f2;border-radius:16px;padding:24px;box-shadow:0 8px 28px rgba(22,34,51,.06)}.narrow{max-width:700px;margin:auto}h1,h2,h3{margin-top:0}label{display:block;font-weight:650;margin:14px 0 6px}input,select{width:100%;padding:12px 13px;border:1px solid #cfd6e4;border-radius:10px;font-size:16px;background:#fff}.btn,button{display:inline-block;background:#1f62e6;color:#fff;border:0;border-radius:10px;padding:11px 16px;font-weight:700;cursor:pointer;text-decoration:none}.btn.secondary,button.secondary{background:#eef2f8;color:#263449}.danger{background:#b42318!important}.success{background:#087a55!important}.error{background:#fff0f0;color:#9b1c1c;border:1px solid #ffcaca;padding:12px;border-radius:10px;margin:12px 0}.ok{background:#ecfdf3;color:#067647;padding:12px;border-radius:10px}.muted{color:#667085}.top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.top.compact{align-items:flex-start}.actions{display:flex;gap:10px;flex-wrap:wrap}.code{font-size:28px;font-weight:850;letter-spacing:2px;background:#f0f4ff;padding:14px;border-radius:12px;text-align:center}.code.left{text-align:left;display:inline-block}.table{width:100%;border-collapse:collapse;margin-top:16px}.table th,.table td{text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f5}.badge{font-size:12px;font-weight:800;padding:5px 9px;border-radius:999px}.pending{background:#fff7d6;color:#7a5d00}.received{background:#dcfae6;color:#067647}.closed{background:#e9edf3;color:#344054}small,.optional{color:#667085}.optional{font-size:14px;font-weight:500}.hidden{display:none!important}hr{border:0;border-top:1px solid #edf0f5;margin:28px 0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.code-entry,.inline-form{display:flex;gap:10px;align-items:center}.code-entry input,.inline-form input{flex:1}.hint{min-height:22px;margin-top:7px;font-size:14px}.error-text{color:#b42318}.ok-text{color:#067647}.wide{width:100%;margin-top:14px}.small-gap{margin-top:-8px}.doc-row{display:grid;grid-template-columns:1fr 1.25fr auto;gap:12px;align-items:end;background:#fafbfe;border:1px solid #e7eaf0;border-radius:12px;padding:14px;margin:12px 0}.remove-doc{font-size:22px;padding:8px 13px}.custom-type{margin-top:8px}.sensitive{background:#fff8e7;border:1px solid #f5d488;border-radius:12px;padding:14px;margin:16px 0}.sensitive h3{font-size:14px;text-transform:uppercase;letter-spacing:.04em;color:#7a5d00}.create-code{border-left:4px solid #1f62e6}.table-scroll{overflow-x:auto}@media(max-width:700px){.wrap{margin:20px auto}.table thead{display:none}.table tr{display:block;border-bottom:1px solid #ddd;padding:10px}.table td{display:block;border:0;padding:4px}.top{align-items:flex-start;flex-direction:column}.two-col,.doc-row{grid-template-columns:1fr}.code-entry,.inline-form{align-items:stretch;flex-direction:column}.code-entry button,.inline-form button{width:100%}}

.add-doc-wide{width:100%;margin:8px 0 4px}.doc-number{grid-column:1/-1;font-size:13px;font-weight:800;color:#667085;text-transform:uppercase;letter-spacing:.04em}.doc-row{position:relative}

.public-page{background:linear-gradient(180deg,#f3f5fb 0%,#eef2f8 100%);min-height:100vh}
.public-card{padding:28px 28px 30px;border-radius:22px;box-shadow:0 18px 44px rgba(22,34,51,.10)}
.brand-header{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #edf0f5}
.brand-row{display:flex;gap:18px;align-items:center}
.brand-row.compact{align-items:center}
.brand-logo{width:112px;height:112px;object-fit:contain;border-radius:18px;background:#fff;border:1px solid #e5e9f2;padding:8px;box-shadow:0 10px 26px rgba(22,34,51,.06)}
.brand-logo.small{width:82px;height:82px}
.brand-copy h1{margin:0;font-size:30px;line-height:1.08;color:#101828}
.brand-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.lock-chip{display:inline-flex;align-items:center;gap:6px;background:#ecfdf3;color:#067647;border:1px solid #abefc6;border-radius:999px;padding:7px 12px;font-size:14px;font-weight:800}
.lock-icon{font-size:16px;line-height:1}
.tagline{margin:10px 0 8px;font-size:18px;font-weight:800;color:#1d4ed8}
.intro-copy{max-width:560px;font-size:15px}
.success-box h2{margin-bottom:6px}
@media(max-width:700px){.brand-row{flex-direction:column;align-items:flex-start}.brand-logo{width:92px;height:92px}.brand-copy h1{font-size:26px}.tagline{font-size:17px}}

.mockup-page{background:
radial-gradient(circle at 0% 50%, rgba(22,163,196,.18) 0, rgba(22,163,196,0) 28%),
radial-gradient(circle at 100% 50%, rgba(33,121,255,.16) 0, rgba(33,121,255,0) 26%),
linear-gradient(135deg,#03224a 0%,#062d66 35%,#021b43 100%);}
.mockup-shell{min-height:100vh;padding:96px 18px 40px;display:flex;align-items:flex-start;justify-content:center}
.mockup-card{position:relative;width:min(860px,100%);background:linear-gradient(180deg,#ffffff 0%,#fbfcfe 100%);border-radius:34px;padding:132px 58px 34px;box-shadow:0 24px 60px rgba(3,24,54,.28)}
.mockup-brand-top{position:absolute;left:50%;top:-52px;transform:translateX(-50%)}
.mockup-logo-badge{width:178px;height:178px;border-radius:50%;background:#fff;border:3px solid #e5e7eb;display:flex;align-items:center;justify-content:center;box-shadow:0 10px 28px rgba(16,24,40,.10)}
.mockup-logo-badge.small-badge{width:138px;height:138px}
.mockup-logo-img{width:142px;height:142px;object-fit:contain;border-radius:50%}
.mockup-header{text-align:center;color:#0b2b64}
.mockup-header h1{font-size:74px;line-height:1;margin:0;font-weight:900;letter-spacing:.02em;color:#0a2a66}
.company-subtitle{font-size:48px;line-height:1.08;font-weight:500;margin-top:8px;color:#11336a}
.accent-line{width:140px;height:4px;background:#20b2aa;margin:24px auto 28px;border-radius:999px}
.secure-badge{display:inline-flex;align-items:center;gap:12px;background:#eef9f6;border:2px solid #b6e3d7;color:#126d71;padding:14px 22px;border-radius:999px;font-size:24px;font-weight:800}
.badge-icon{width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;color:#0f7a74}
.badge-icon svg{width:100%;height:100%}
.mockup-header h2{font-size:64px;line-height:1.03;margin:34px 0 18px;color:#0a2a66;font-weight:850}
.mockup-intro{max-width:640px;margin:0 auto 26px;color:#5d677b;font-size:34px;line-height:1.42}
.mockup-form{margin-top:10px}
.form-section label{font-size:28px;font-weight:800;color:#0a2a66;margin-bottom:14px}
.mockup-input-wrap{display:flex;align-items:center;gap:16px;border:2px solid #a8d6d6;border-radius:24px;padding:0 24px;background:#fff;min-height:100px}
.mockup-input-wrap .input-icon{width:42px;height:42px;color:#0c7a74;flex:none}
.mockup-input-wrap .input-icon svg{width:100%;height:100%}
.mockup-input-wrap input{border:0;padding:20px 0;font-size:32px;color:#52607a}
.mockup-input-wrap input:focus{outline:none}
.continue-btn{width:100%;margin-top:26px;border:0;border-radius:24px;background:linear-gradient(90deg,#0b7a7f 0%,#15b8b4 100%);color:#fff;padding:24px 28px;font-size:32px;font-weight:850;display:flex;align-items:center;justify-content:center;gap:18px;box-shadow:0 14px 28px rgba(20,139,149,.22)}
.continue-btn .arrow{font-size:44px;line-height:1;margin-top:-2px}
.mockup-hint{min-height:38px;margin-top:14px;font-size:24px;text-align:left}
.mockup-error{font-size:22px;border-radius:20px;margin-top:10px}
.security-banner{display:flex;align-items:center;gap:18px;background:#f2f8f7;border:2px solid #d5ebe7;border-radius:22px;padding:22px 24px;margin-top:34px;color:#116b6e;font-size:23px;line-height:1.3}
.security-banner strong{font-size:25px}
.security-icon{width:54px;height:54px;flex:none;color:#0f7a74}.security-icon svg{width:100%;height:100%}
.help-row{display:flex;justify-content:center;align-items:center;gap:14px;color:#18315f;font-size:24px;margin:28px 0 24px}.help-row strong{font-weight:850}.help-icon{width:34px;height:34px;display:inline-flex}.help-icon svg{width:100%;height:100%}
.privacy-row{border-top:1px solid #e4e8ef;padding-top:24px;color:#8a93a8;font-size:21px;display:flex;gap:12px;align-items:flex-start;justify-content:center;line-height:1.45;text-align:center}.privacy-icon{font-size:20px;line-height:1.4}
.expanded-fields{margin-top:28px}
.section-card{background:#f8fbff;border:1px solid #e7eef7;border-radius:24px;padding:24px 24px 22px;margin-top:22px}
.section-title{font-size:26px;font-weight:850;color:#0a2a66;margin-bottom:8px}.section-copy{font-size:18px;margin-bottom:12px}.file-note{margin-top:14px;color:#667085;font-size:16px}
.mockup-add-btn{border-radius:16px;background:#eef9ff;color:#13416f;font-size:18px;font-weight:800;border:1px solid #d2e7ff}
.mockup-doc-row{background:#fff;border:1px solid #dce7f3;border-radius:18px;padding:18px;margin:14px 0}
.mockup-doc-row label{font-size:17px;font-weight:750;color:#18315f}
.mockup-doc-row input,.mockup-doc-row select,.section-card input{border-radius:14px;border:1px solid #cfdae7;padding:13px 14px;font-size:16px}
.submit-btn{margin-top:28px}
.link-btn{text-decoration:none}
.success-card{padding-top:108px;text-align:center}.success-header h1{font-size:62px}.success-header .company-subtitle{font-size:38px}.success-text{font-size:22px;color:#5d677b;line-height:1.45}.mockup-success-box{font-size:22px;border-radius:22px;padding:18px 20px}.success-privacy{margin-top:28px}
@media (max-width:900px){.mockup-card{padding:114px 36px 30px}.mockup-logo-badge{width:156px;height:156px}.mockup-logo-img{width:126px;height:126px}.mockup-header h1{font-size:58px}.company-subtitle{font-size:38px}.secure-badge{font-size:20px;padding:12px 18px}.mockup-header h2{font-size:48px}.mockup-intro{font-size:25px}.form-section label{font-size:24px}.mockup-input-wrap{min-height:84px}.mockup-input-wrap input{font-size:26px}.continue-btn{font-size:26px;padding:20px 22px}.continue-btn .arrow{font-size:36px}.security-banner{font-size:20px}.help-row{font-size:20px}.privacy-row{font-size:18px}}
@media (max-width:700px){.mockup-shell{padding:86px 14px 24px}.mockup-card{padding:94px 22px 24px;border-radius:28px}.mockup-brand-top{top:-38px}.mockup-logo-badge{width:122px;height:122px}.mockup-logo-badge.small-badge{width:106px;height:106px}.mockup-logo-img{width:96px;height:96px}.mockup-header h1{font-size:36px}.company-subtitle{font-size:24px}.accent-line{width:92px;margin:16px auto 18px}.secure-badge{font-size:15px;padding:10px 14px;gap:8px}.badge-icon{width:20px;height:20px}.mockup-header h2{font-size:24px;margin:22px 0 12px}.mockup-intro{font-size:16px;line-height:1.55;margin-bottom:20px}.form-section label{font-size:16px}.mockup-input-wrap{min-height:64px;border-radius:16px;padding:0 14px;gap:10px}.mockup-input-wrap .input-icon{width:24px;height:24px}.mockup-input-wrap input{font-size:18px}.continue-btn{font-size:18px;padding:16px 18px;border-radius:18px;gap:10px}.continue-btn .arrow{font-size:26px}.mockup-hint{font-size:15px;min-height:26px}.security-banner{padding:16px;border-radius:16px;font-size:15px;margin-top:24px}.security-banner strong{font-size:17px}.security-icon{width:34px;height:34px}.help-row{font-size:15px;margin:20px 0}.help-icon{width:24px;height:24px}.privacy-row{font-size:14px;padding-top:18px}.section-card{padding:18px 16px;border-radius:18px}.section-title{font-size:18px}.section-copy{font-size:14px}.file-note{font-size:13px}.mockup-doc-row{padding:14px;border-radius:14px}.mockup-doc-row label{font-size:14px}.success-text{font-size:16px}.success-header h1{font-size:34px}.success-header .company-subtitle{font-size:22px}}

.user-create-box{background:#f8fafc;border:1px solid #e5e9f2;border-radius:14px;padding:18px}.user-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:16px;margin-top:16px}.user-card{border:1px solid #e5e9f2;border-radius:14px;padding:18px;background:#fff}.user-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.user-email{font-size:14px;margin-top:3px;word-break:break-all}.current-user-note,.primary-admin-note{font-size:13px;border-radius:8px;padding:8px 10px;margin:8px 0}.current-user-note{background:#eff6ff;color:#1d4ed8}.primary-admin-note{background:#fff7ed;color:#9a3412}.user-action-section{border-top:1px solid #edf0f5;padding:11px 0}.user-action-section summary{cursor:pointer;font-weight:750;color:#263449}.user-action-section form{margin-top:10px}.danger-zone summary{color:#b42318}.danger-zone .muted{font-size:13px}.user-action-section button.secondary{background:#eef2f8;color:#263449}@media(max-width:700px){.user-grid{grid-template-columns:1fr}.user-card-head{flex-direction:column}}
.member-selector-card select,.member-filter-form select{min-width:320px;max-width:100%;font-size:16px}.member-filter-form{align-items:stretch}.section-card select#member_index{border-radius:14px;border:1px solid #cfdae7;padding:13px 14px;font-size:16px;background:#fff}
@media(max-width:700px){.member-selector-card select,.member-filter-form select{min-width:0;width:100%}}

.temporary-code-card{border-left:4px solid #d59b00}.convert-code-card{border-left:4px solid #0f8b8d}

.bulk-create-box{border-left:4px solid #0f7a74}.bulk-actions{margin:18px 0}.generated-password{font-size:16px;font-weight:800;letter-spacing:.06em;background:#f2f4f7;padding:6px 9px;border-radius:8px;white-space:nowrap}
