:root{--navy:#17334a;--navy-2:#24475f;--teal:#1f806b;--teal-dark:#176b59;--mint:#eaf4f1;--ink:#1c2933;--muted:#687783;--line:#e2e8ec;--canvas:#f4f6f8;--white:#fff;--gold:#a97919;--gold-bg:#fff8e8;--red:#9b3429}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;line-height:1.55}.topbar{background:var(--navy);color:#fff;min-height:70px;padding:0 max(22px,calc((100% - 1120px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 3px 14px rgba(15,35,50,.12)}.brand{font-size:22px;font-weight:850;color:#fff;text-decoration:none;letter-spacing:-.7px}.brand span{color:#79c7ad}.main-nav{display:flex;align-items:center;gap:21px;flex-wrap:wrap}.main-nav a{color:#e6eef3;text-decoration:none;font-size:13px;font-weight:600}.main-nav a:hover{color:#9ce0cb}.main-nav .nav-logout{opacity:.8}.main-nav .nav-cta{background:#79c7ad;color:#12364a;padding:8px 13px;border-radius:8px}.container{max-width:1120px;margin:36px auto;padding:0 22px;min-height:calc(100vh - 155px)}h1{font-size:34px;line-height:1.18;letter-spacing:-1.1px;margin:4px 0 11px}h2{font-size:19px;line-height:1.3;margin:0 0 8px}h3{font-size:16px;margin:0 0 5px}.muted{color:var(--muted)}.eyebrow{font-size:11px;font-weight:850;letter-spacing:1.5px;color:#368b77;margin:0 0 8px}.welcome,.page-heading{margin-bottom:26px}.page-heading p{max-width:760px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:9px;background:var(--teal);color:#fff;font-weight:750;padding:12px 18px;font:inherit;cursor:pointer;text-decoration:none;transition:background .15s,transform .15s}.button:hover{background:var(--teal-dark);transform:translateY(-1px)}.button:disabled{background:#9da9ad;cursor:not-allowed;transform:none}.button.full{width:100%}.button.secondary{background:var(--mint);color:#226b5a;margin-top:8px}.button.secondary:hover{background:#d9ebe5}input,textarea,select{width:100%;border:1px solid #d5dde3;border-radius:9px;padding:12px 13px;font:inherit;color:var(--ink);background:#fff}input:focus,textarea:focus,select:focus{outline:2px solid #b5ddd1;border-color:#5eaa94}input:disabled,textarea:disabled,select:disabled{background:#f1f3f4;color:#859198}textarea{resize:vertical}.form-card,.reply-card,.history-card,.admin-panel,.import-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:23px;box-shadow:0 3px 14px rgba(20,40,55,.035)}.form-card{max-width:820px}.form-card label,.auth-card label,.import-card label{display:block;font-weight:700;font-size:13px;margin:17px 0 6px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:15px}.alert{padding:12px 15px;border-radius:9px;margin-bottom:18px}.alert.error{background:#fff0ee;color:var(--red);border:1px solid #f1d0ca}.alert.success{background:#edf7f1;color:#286849;border:1px solid #d2eadb}.notice{margin-top:20px;padding:16px 18px;background:#edf5f2;border:1px solid #d5e8e1;border-radius:11px;color:#315d50}.notice-small{font-size:12px;padding:11px 13px}.api-notice{background:#f0f5f8;border-color:#d9e5ed;color:#365267}.stats{display:flex;gap:14px;margin:24px 0}.stats-modern .stat{flex:1;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px 20px;min-width:0;display:flex;flex-direction:column;box-shadow:0 3px 14px rgba(20,40,55,.025)}.stat strong{font-size:28px;line-height:1.25;margin-top:8px;letter-spacing:-.7px}.stat-word{font-size:20px!important}.stat-label{color:var(--muted);font-size:12px;font-weight:700}.stat-foot{font-size:12px;color:#89959c;margin-top:5px}.dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;margin-bottom:19px}.hero-status{display:flex;align-items:center;gap:8px;color:#5f747b;font-size:12px;background:#fff;border:1px solid var(--line);border-radius:99px;padding:9px 13px;white-space:nowrap}.status-dot{width:8px;height:8px;border-radius:50%;background:#c59a43}.onboarding-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid #cfe5db;background:#f0f8f4;border-radius:13px;margin:19px 0}.onboarding-banner p{color:#537165;margin:4px 0 0;font-size:13px}.onboarding-banner .button{white-space:nowrap}.section-title{margin:30px 0 14px}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.feature-card{display:flex;align-items:flex-start;gap:15px;padding:21px;background:#fff;border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none;box-shadow:0 3px 14px rgba(20,40,55,.025);transition:.15s}.feature-card:hover{border-color:#85bba9;transform:translateY(-2px)}.feature-card p{color:var(--muted);margin:4px 0 0;font-size:13px}.feature-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 43px;height:43px;border-radius:12px;background:var(--mint);color:#267b68;font-size:22px}.card-arrow{margin-left:auto;color:var(--teal);font-size:22px}.recent-section{margin-top:30px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.section-heading p{margin:3px 0 0;color:var(--muted);font-size:12px}.section-heading a{color:var(--teal);text-decoration:none;font-size:13px;font-weight:700}.empty-state{margin:18px 0 4px;color:#89959c;font-size:13px}.recent-list{margin-top:14px}.recent-row{display:grid;grid-template-columns:1fr 1.4fr auto;gap:15px;padding:11px 0;border-top:1px solid #eef1f3;font-size:13px}.recent-type{font-weight:700}.recent-row time{color:#87939a}.auth-layout{display:grid;grid-template-columns:1fr 430px;align-items:center;gap:60px;max-width:1050px;margin:55px auto}.auth-intro h1{max-width:530px;font-size:43px}.auth-intro>p:not(.eyebrow){max-width:480px;color:#60727d;font-size:17px}.auth-points{display:grid;gap:10px;margin-top:25px;color:#466b5e;font-size:14px;font-weight:650}.auth-card{max-width:440px;margin:40px auto;background:#fff;border:1px solid var(--line);border-radius:17px;padding:30px;box-shadow:0 8px 30px rgba(20,40,55,.05)}.auth-layout .auth-card{margin:0}.auth-card-wide{max-width:490px}.auth-card h1,.auth-card h2{margin-bottom:10px}.auth-card form label{margin-top:17px}.auth-card .button{margin-top:21px}.auth-switch{text-align:center;margin:19px 0 0;font-size:13px;color:var(--muted)}.auth-switch a{color:var(--teal);font-weight:750;text-decoration:none}.honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}.import-card{max-width:820px;margin-bottom:18px}.import-heading{display:flex;align-items:flex-start;gap:14px}.import-heading p,.form-section-title p{margin:3px 0 0;color:var(--muted);font-size:13px}.import-icon{display:flex;align-items:center;justify-content:center;width:43px;height:43px;flex:0 0 43px;background:var(--mint);border-radius:12px;color:var(--teal);font-size:22px;font-weight:800}.import-form label{margin-top:18px}.import-input-row{display:flex;gap:10px}.import-input-row input{flex:1;min-width:0}.import-input-row .button{margin:0;white-space:nowrap}.form-section-title{border-bottom:1px solid #edf0f2;padding-bottom:15px;margin-bottom:17px}.profile-form .form-section-title h2{margin:0}.extracted-content{margin-top:23px;padding:17px;background:#f7faf9;border:1px solid #e0ebe6;border-radius:11px}.extracted-content textarea{margin-top:12px;font-size:12px;line-height:1.6}.mode-badge{display:inline-block;padding:4px 8px;border-radius:20px;background:#fff0d0;color:#74520d;font-size:10px;font-weight:850;letter-spacing:.3px;white-space:nowrap}.reply-card{margin:14px 0}.reply-title{font-weight:800;color:#267b68;margin-bottom:10px}.reply-card textarea{background:#fbfcfd}.history-card{margin-bottom:13px}.history-meta{font-size:12px;color:#648071;font-weight:750}.history-card details{border-top:1px solid #edf0f2;padding:10px 0}.history-card summary{cursor:pointer;font-weight:650}.admin-panel{margin-top:25px}.table-scroll{overflow-x:auto;margin-top:13px}.admin-table{width:100%;border-collapse:collapse;min-width:620px;font-size:13px}.admin-table th{text-align:left;color:#75848d;font-size:11px;text-transform:uppercase;letter-spacing:.5px;padding:12px 10px;border-bottom:1px solid var(--line)}.admin-table td{padding:13px 10px;border-bottom:1px solid #eef1f3}.role-pill{background:#edf3f6;color:#4d6574;padding:4px 8px;border-radius:20px;font-size:11px;font-weight:750}.role-admin{background:#e8f4ef;color:#226b52}.migration-list{padding-left:20px;color:#52636d;font-size:13px}.migration-list li{margin:8px 0}.footer{text-align:center;color:#8a969e;padding:27px 15px;font-size:12px}.small{font-size:12px;margin-top:12px;color:var(--muted)}
/* Help widget */
.help-widget{position:fixed;right:22px;bottom:20px;z-index:1000}.help-launcher{display:flex;align-items:center;gap:10px;border:0;background:var(--navy);color:#fff;border-radius:999px;padding:10px 16px 10px 10px;box-shadow:0 7px 25px rgba(12,37,53,.24);cursor:pointer;font:inherit;font-weight:700;font-size:13px}.help-launcher:hover{background:var(--navy-2)}.help-launcher-icon{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#79c7ad;color:#12364a;font-size:20px;font-weight:850}.help-panel{position:absolute;right:0;bottom:62px;width:min(365px,calc(100vw - 30px));height:440px;max-height:calc(100vh - 105px);background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 42px rgba(15,35,50,.2);display:flex;flex-direction:column;overflow:hidden}.help-panel[hidden]{display:none}.help-head{background:var(--navy);color:#fff;padding:15px 16px;display:flex;align-items:center;justify-content:space-between}.help-head strong{display:block;font-size:14px}.help-head small{display:block;color:#c5d4dd;font-size:11px;margin-top:2px}.help-close{background:transparent;color:#fff;border:0;font-size:25px;line-height:1;cursor:pointer}.help-messages{padding:14px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;flex:1;background:#f7f9fa}.help-bubble{max-width:92%;padding:11px 13px;border-radius:13px;font-size:12px;line-height:1.5;white-space:pre-wrap}.help-bubble.assistant{background:#fff;border:1px solid #e4e9ed;align-self:flex-start;border-bottom-left-radius:4px}.help-bubble.user{background:#e1f1eb;color:#245c4b;align-self:flex-end;border-bottom-right-radius:4px}.help-form{display:flex;gap:8px;padding:11px;border-top:1px solid var(--line)}.help-form input{font-size:12px;padding:10px}.help-form button{border:0;background:var(--teal);color:#fff;border-radius:8px;padding:0 13px;font-weight:700;cursor:pointer}.help-foot{text-align:center;font-size:10px;color:#8b969d;padding:0 8px 9px}
@media(max-width:850px){.auth-layout{grid-template-columns:1fr;gap:25px;margin:25px auto}.auth-intro h1{font-size:34px}.auth-layout .auth-card{max-width:none}.dashboard-hero{align-items:flex-start;flex-direction:column}.hero-status{white-space:normal}}
@media(max-width:650px){.topbar{align-items:flex-start;flex-direction:column;padding:15px 20px}.main-nav{gap:12px}.container{margin:25px auto;padding:0 16px}.feature-grid{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.stats{flex-direction:column}.stats-modern .stat{min-width:0}.onboarding-banner{align-items:flex-start;flex-direction:column}.onboarding-banner .button{width:100%}.import-input-row{flex-direction:column}.import-input-row .button{width:100%}h1{font-size:28px}.auth-card{padding:24px}.recent-row{grid-template-columns:1fr auto}.recent-row span:nth-child(2){display:none}.help-widget{right:12px;bottom:12px}.help-launcher{padding:8px 12px 8px 8px}.help-launcher-icon{width:31px;height:31px}}
