:root { --ink:#151515; --muted:#656565; --line:#dedede; --paper:#fff; --canvas:#f4f4f4; --brand:#d8a52f; --brand-dark:#946606; --brand-soft:#fff6dc; --danger:#c33d3d; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:var(--canvas); font-family:"DM Sans",sans-serif; font-size:16px; }
button,input,select { font:inherit; }
button { cursor:pointer; }
h1,h2,p { margin-top:0; }
h1,h2,strong { font-family:"Manrope",sans-serif; }
.auth-page { min-height:100vh; }
.auth-layout { min-height:100vh; display:grid; grid-template-columns:minmax(330px,44%) 1fr; }
.auth-brand-panel { background:#111; color:white; padding:46px 52px; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.auth-brand-panel::before { content:""; position:absolute; width:8px; height:170px; right:70px; top:-25px; background:var(--brand); transform:rotate(34deg); box-shadow:55px 0 0 rgba(216,165,47,.18),110px 0 0 rgba(216,165,47,.08); }
.auth-brand-panel::after { content:""; width:460px; height:460px; border:1px solid #333; border-radius:50%; position:absolute; right:-220px; bottom:-180px; box-shadow:0 0 0 70px rgba(255,255,255,.018),0 0 0 140px rgba(255,255,255,.012); }
.auth-brand,.users-brand { display:flex; align-items:center; text-decoration:none; color:inherit; position:relative; z-index:1; background:#0b0b0c; border:1px solid #3b3020; border-radius:11px; padding:4px; overflow:hidden; }
.auth-brand { width:280px; max-width:100%; }
.auth-brand img,.users-brand img { display:block; width:100%; height:100%; object-fit:contain; }
.users-brand { width:190px; height:64px; flex:0 0 auto; }
.auth-message { margin:auto 0; max-width:480px; position:relative; z-index:1; }
.auth-message h1 { font-size:44px; line-height:1.12; letter-spacing:-1.5px; margin:10px 0 18px; }
.auth-message > p:last-child { color:#bebebe; font-size:17px; line-height:1.65; max-width:430px; }
.auth-eyebrow { margin:0; color:var(--brand-dark); font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1.5px; }
.auth-brand-panel .auth-eyebrow { color:#efc35a; }
.auth-footer { color:#9b9b9b; font-size:13px; position:relative; z-index:1; }
.auth-form-panel { display:grid; place-items:center; padding:40px; }
.auth-card { width:min(430px,100%); background:white; border:1px solid var(--line); border-radius:22px; padding:36px; box-shadow:0 22px 65px rgba(20,23,34,.08); }
.security-badge { display:inline-flex; background:var(--brand-soft); color:var(--brand-dark); border-radius:999px; padding:8px 11px; font-size:12px; font-weight:800; margin-bottom:28px; }
.auth-card h2 { font-size:30px; letter-spacing:-.7px; margin:6px 0 9px; }
.form-intro { color:var(--muted); font-size:15px; line-height:1.5; margin-bottom:25px; }
.auth-card label,.user-dialog label { display:grid; gap:8px; color:#555; font-size:13px; font-weight:700; margin-bottom:16px; }
.auth-card input,.user-dialog input,.user-dialog select { width:100%; height:49px; border:1px solid #d8d8d8; border-radius:11px; padding:0 13px; outline:none; background:white; color:var(--ink); }
.auth-card input:focus,.user-dialog input:focus,.user-dialog select:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(216,165,47,.2); }
.password-field { position:relative; }
.password-field input { padding-right:65px; }
.password-field button { position:absolute; right:7px; top:7px; height:34px; border:0; background:#f2f2ef; border-radius:8px; font-size:12px; font-weight:700; }
.auth-primary { width:100%; min-height:49px; border:0; border-radius:11px; background:linear-gradient(135deg,#f0c85e,var(--brand)); color:#17120a; font-size:14px; font-weight:800; box-shadow:0 6px 16px rgba(216,165,47,.25); }
.auth-primary:hover { background:#bd8b20; }
.auth-primary:disabled { opacity:.6; cursor:wait; }
.auth-primary.compact { width:auto; min-height:42px; padding:0 17px; }
.password-help,.privacy-note { color:#777; font-size:12px; line-height:1.5; }
.password-help { margin:-7px 0 15px; }
.privacy-note { text-align:center; margin:16px 0 0; }
.form-error { color:#a52f2f; background:#fdeaea; border:1px solid #f2cccc; border-radius:10px; padding:11px 12px; font-size:13px; }
.forgot-password { display:block; margin:-7px 0 15px auto; border:0; padding:3px 0; background:transparent; color:var(--brand-dark); font-size:13px; font-weight:800; }
.forgot-password:hover { text-decoration:underline; }
.recovery-dialog { width:min(520px,calc(100vw - 30px)); }
.recovery-dialog-body { padding:27px; }
.recovery-dialog form { padding:0; }
.recovery-instructions { margin:-4px 0 20px; padding:13px 14px; border-left:4px solid var(--brand); border-radius:8px; background:var(--brand-soft); color:#67331f; font-size:14px; line-height:1.55; }
.recovery-success { text-align:center; padding:18px 6px 5px; }
.recovery-success::before { content:"✓"; width:58px; height:58px; display:grid; place-items:center; margin:0 auto 16px; border-radius:50%; background:#e5f5ea; color:#2d7443; font:800 27px "Manrope"; }
.recovery-success strong { display:block; font-size:21px; }
.recovery-success p { color:var(--muted); font-size:14px; line-height:1.55; margin:9px 0 20px; }

.users-topbar { min-height:82px; padding:8px 42px; background:#111; color:white; display:flex; align-items:center; justify-content:space-between; border-bottom:3px solid var(--brand); }
.users-top-actions { display:flex; gap:8px; }
.outline-button { min-height:41px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:10px; padding:0 14px; background:white; color:var(--ink); text-decoration:none; font-size:13px; font-weight:700; }
.users-topbar .outline-button { background:#232323; color:white; border-color:#4a4029; }
.users-main { max-width:1120px; margin:auto; padding:48px 28px 70px; }
.users-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.users-heading h1 { margin:6px 0; font-size:35px; letter-spacing:-1px; }
.users-heading > div > p:last-child { color:var(--muted); font-size:15px; margin-bottom:0; }
.role-explanation { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px; }
.role-explanation div { padding:15px 17px; border:1px solid var(--line); border-radius:13px; background:white; display:flex; gap:9px; align-items:baseline; }
.role-explanation strong { font-size:14px; }
.role-explanation span { color:var(--muted); font-size:12px; }
.users-list { display:grid; gap:10px; }
.user-row { background:white; border:1px solid var(--line); border-radius:16px; padding:16px 18px; display:grid; grid-template-columns:44px minmax(200px,1fr) 120px 85px auto; gap:14px; align-items:center; }
.user-row.inactive { opacity:.62; }
.user-avatar { width:44px; height:44px; display:grid; place-items:center; background:var(--brand-soft); color:var(--brand-dark); border-radius:12px; font:800 14px "Manrope"; }
.user-identity strong,.user-identity span { display:block; }
.user-identity strong { font-size:15px; }
.user-identity span { color:var(--muted); font-size:13px; margin-top:3px; }
.user-identity em { font:700 9px "DM Sans"; color:#53701f; background:#ebf6da; border-radius:999px; padding:3px 6px; }
.role-badge,.access-status { justify-self:start; border-radius:999px; padding:7px 10px; font-size:12px; font-weight:800; }
.role-badge.admin { color:var(--brand-dark); background:var(--brand-soft); }
.role-badge.operator { color:#4b6475; background:#eaf1f5; }
.access-status.active { color:#2d7443; background:#e5f5ea; }
.access-status.inactive { color:#8b5a5a; background:#f7e7e7; }
.user-actions { display:flex; justify-content:flex-end; gap:7px; }
.danger-text { color:var(--danger); }
.user-dialog { width:min(500px,calc(100vw - 30px)); border:0; border-radius:20px; padding:0; box-shadow:0 30px 90px rgba(10,13,20,.3); }
.user-dialog::backdrop { background:rgba(13,16,22,.6); backdrop-filter:blur(3px); }
.user-dialog form { padding:25px; }
.small-dialog { width:min(440px,calc(100vw - 30px)); }
.dialog-heading { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.dialog-heading h2 { margin:5px 0 0; font-size:23px; }
.dialog-heading > button { width:34px; height:34px; border:1px solid var(--line); border-radius:9px; background:white; font-size:20px; }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:22px; }
.dialog-intro { color:var(--muted); font-size:14px; }
.users-toast { position:fixed; right:25px; bottom:25px; background:var(--ink); color:white; border-left:4px solid var(--brand); border-radius:11px; padding:13px 17px; font-size:13px; opacity:0; transform:translateY(12px); transition:.2s; pointer-events:none; }
.users-toast.show { opacity:1; transform:none; }
.users-toast.error { background:#a83434; }
.catalog-grid { display:grid; gap:18px; }
.catalog-card { background:white; border:1px solid var(--line); border-radius:18px; padding:21px; }
.catalog-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:17px; }
.catalog-heading > div { display:grid; grid-template-columns:42px 1fr; column-gap:12px; }
.catalog-heading h2 { margin:1px 0 3px; font-size:19px; }
.catalog-heading p { grid-column:2; color:var(--muted); font-size:13px; margin:0; }
.catalog-icon { grid-row:1 / 3; width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:var(--brand-soft); color:var(--brand-dark); font:800 13px "Manrope"; }
.catalog-icon.mint { background:#f1f1f1; color:#333; }
.catalog-icon.amber { background:#ffe5d8; color:var(--brand-dark); }
.catalog-list { border-top:1px solid var(--line); }
.catalog-row { min-height:68px; padding:12px 2px; border-bottom:1px solid var(--line); display:grid; grid-template-columns:minmax(220px,1fr) 80px auto; gap:14px; align-items:center; }
.catalog-row:last-child { border-bottom:0; }
.catalog-row.inactive { opacity:.62; }
.catalog-row > div:first-child strong,.catalog-row > div:first-child span { display:block; }
.catalog-row > div:first-child strong { font-size:14px; }
.catalog-row > div:first-child span { color:var(--muted); font-size:12px; margin-top:4px; }
.catalog-actions { display:flex; justify-content:flex-end; gap:7px; }
.catalog-empty { color:var(--muted); text-align:center; font-size:13px; margin:20px 0 2px; }
.catalog-dialog .password-help { margin:2px 0 15px; }
.download-button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.protection-main { max-width:1180px; }
.protection-heading { align-items:center; }
.protection-summary { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:18px; }
.protection-summary article { min-height:98px; background:white; border:1px solid var(--line); border-radius:16px; padding:18px; display:flex; align-items:center; gap:14px; }
.summary-icon { width:44px; height:44px; flex:0 0 auto; display:grid; place-items:center; border-radius:12px; background:var(--brand-soft); color:var(--brand-dark); font:800 17px "Manrope"; }
.summary-icon.neutral { background:#f0f0f0; color:#333; }
.summary-icon.dark { background:#181818; color:white; }
.protection-summary small,.protection-summary strong { display:block; }
.protection-summary small { color:var(--muted); font-size:12px; margin-bottom:5px; }
.protection-summary strong { font-size:16px; }
.protection-card { background:white; border:1px solid var(--line); border-radius:18px; padding:22px; margin-bottom:18px; }
.protection-card-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom:17px; }
.protection-card-heading h2 { margin:5px 0; font-size:22px; }
.protection-card-heading > div > p:last-child { margin:0; color:var(--muted); font-size:13px; }
.protection-actions { display:flex; gap:8px; }
.protection-list { border-top:1px solid var(--line); }
.protection-row { min-height:70px; padding:12px 2px; border-bottom:1px solid var(--line); display:grid; grid-template-columns:42px minmax(220px,1fr) auto; gap:13px; align-items:center; }
.protection-row:last-child { border-bottom:0; }
.row-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:var(--brand-soft); color:var(--brand-dark); font-weight:800; }
.row-icon.trash { background:#f0f0f0; color:#444; }
.protection-row > div:nth-child(2) strong,.protection-row > div:nth-child(2) span { display:block; }
.protection-row > div:nth-child(2) strong { font-size:14px; }
.protection-row > div:nth-child(2) span { color:var(--muted); font-size:12px; margin-top:4px; }
.row-actions { display:flex; justify-content:flex-end; gap:7px; }
.protection-empty { color:var(--muted); text-align:center; font-size:13px; margin:22px 0 5px; }
.audit-list { border-top:1px solid var(--line); max-height:520px; overflow:auto; }
.audit-row { display:grid; grid-template-columns:16px 1fr; gap:10px; padding:13px 4px; border-bottom:1px solid var(--line); }
.audit-row:last-child { border-bottom:0; }
.audit-dot { width:8px; height:8px; margin-top:6px; border-radius:50%; background:var(--brand); }
.audit-row p { margin:0 0 4px; font-size:13px; }
.audit-row time { color:var(--muted); font-size:11px; }
.restore-dialog { width:min(720px,calc(100vw - 30px)); }
.restore-dialog-body { padding:25px; }
.restore-warning { padding:13px 15px; border:1px solid #f0c9b8; background:var(--brand-soft); color:#723319; border-radius:12px; font-size:13px; line-height:1.5; }
.restore-comparison { display:grid; grid-template-columns:1fr 35px 1fr; gap:12px; align-items:center; margin:18px 0; }
.restore-comparison > div { border:1px solid var(--line); border-radius:13px; padding:15px; }
.restore-comparison > span { text-align:center; font-size:22px; color:var(--brand); }
.restore-comparison > div > strong { display:block; font-size:14px; margin-bottom:8px; }
.restore-comparison dl { margin:0; }
.restore-comparison dl div { display:flex; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px solid #eee; }
.restore-comparison dl div:last-child { border-bottom:0; }
.restore-comparison dt,.restore-comparison dd { margin:0; font-size:12px; }
.restore-comparison dt { color:var(--muted); }
.restore-comparison dd { font-weight:800; }
.restore-note { color:var(--muted); font-size:12px; line-height:1.5; }
.danger-action { background:var(--danger); }
.danger-action:hover { background:#9d2f2f; }
@media(max-width:780px){.auth-layout{display:block}.auth-brand-panel{min-height:230px;padding:28px}.auth-message{margin:45px 0 15px}.auth-message h1{font-size:29px}.auth-footer{display:none}.auth-form-panel{padding:24px}.users-topbar{padding:8px 18px}.users-brand{width:150px;height:52px}.users-brand small{display:none}.users-main{padding:32px 18px}.users-heading{align-items:flex-start;flex-direction:column}.role-explanation{grid-template-columns:1fr}.user-row{grid-template-columns:42px 1fr}.role-badge,.access-status,.user-actions{grid-column:2}.user-actions{justify-content:flex-start;flex-wrap:wrap}.catalog-heading{flex-direction:column}.catalog-row{grid-template-columns:1fr auto}.catalog-actions{grid-column:1 / -1;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:780px){.protection-heading{align-items:flex-start}.protection-summary{grid-template-columns:1fr}.protection-card-heading{align-items:flex-start;flex-direction:column}.protection-row{grid-template-columns:40px 1fr}.row-actions{grid-column:2;justify-content:flex-start;flex-wrap:wrap}.restore-comparison{grid-template-columns:1fr}.restore-comparison > span{transform:rotate(90deg)}}
