@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'DM Sans', sans-serif; background: #F0EFF9; color: #1A1A1A; min-height: 100vh; }

/* NAV */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 40px; background: #fff; border-bottom: 1px solid #E2E0F0; position: sticky; top: 0; z-index: 200; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.logo { font-family: 'DM Serif Display', serif; font-size: 21px; color: #1A1A1A; letter-spacing: -0.5px; }
.logo span { color: #2563EB; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-user { font-size: 13px; color: #555; }
.nav-btn { background: none; border: 1.5px solid #E2E0F0; border-radius: 6px; padding: 5px 12px; font-family: 'DM Sans', sans-serif; font-size: 12px; color: #555; cursor: pointer; transition: all .15s; }
.nav-btn:hover { border-color: #2563EB; color: #2563EB; }

/* PAGE */
.page { max-width: 820px; margin: 0 auto; padding: 36px 24px 80px; }
.page-title { font-family: 'DM Serif Display', serif; font-size: 30px; color: #1A1A1A; letter-spacing: -0.5px; margin-bottom: 6px; }
.page-sub { font-size: 15px; color: #444; font-weight: 400; margin-bottom: 28px; }

/* BUTTONS */
.btn { border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; border-radius: 8px; padding: 11px 22px; transition: all .15s; }
.btn-primary { background: #2563EB; color: #fff; }
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #1A1A1A; border: 1.5px solid #E2E0F0; }
.btn-secondary:hover { border-color: #2563EB; color: #2563EB; }
.btn-ghost { background: transparent; color: #2563EB; border: 1.5px solid #BFDBFE; font-size: 13px; padding: 7px 14px; }
.btn-ghost:hover { background: #EFF6FF; }
.btn-danger { background: transparent; color: #DC2626; border: 1.5px solid #FCA5A5; font-size: 12px; padding: 6px 12px; }
.btn-danger:hover { background: #FEF2F2; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.action-row { display: flex; gap: 10px; align-items: center; margin-top: 24px; flex-wrap: wrap; }

/* ACCORDION */
.accordion { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 16px rgba(37,99,235,.1); }
.acc-section { display: flex; flex-direction: column; }
.acc-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: #2563EB; cursor: pointer; user-select: none; transition: background .2s; border-bottom: 1px solid rgba(255,255,255,.12); }
.acc-header:hover:not(.acc-locked) { background: #1D4ED8; }
.acc-locked { cursor: default !important; background: #94A3B8 !important; }
.acc-done { background: #1E40AF; }
.acc-done:hover { background: #1E3A8A; }
.acc-left { display: flex; align-items: center; gap: 14px; }
.acc-badge { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-badge-done { background: rgba(255,255,255,.35); }
.acc-title { color: #fff; font-size: 15px; font-weight: 600; }
.acc-sub { color: rgba(255,255,255,.85); font-size: 12px; font-weight: 400; margin-top: 1px; }
.acc-right { display: flex; align-items: center; gap: 10px; }
.acc-chip { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,.2); color: #fff; letter-spacing: .3px; }
.acc-chevron { color: rgba(255,255,255,.8); font-size: 18px; transition: transform .25s; line-height: 1; }
.acc-chevron.open { transform: rotate(180deg); }
.acc-lock { color: rgba(255,255,255,.5); font-size: 14px; }
.acc-body { background: #fff; overflow: hidden; max-height: 0; transition: max-height .5s ease; }
.acc-body.open { max-height: 6000px; }
.acc-inner { padding: 28px; }

/* MODE CHOOSER */
.mode-chooser { display: flex; flex-direction: column; gap: 12px; }
.mode-cards { display: flex; gap: 12px; }
.mode-card { flex: 1; border: 2px solid #E2E0F0; border-radius: 12px; padding: 20px; cursor: pointer; transition: all .2s; background: #FAFBFF; text-align: left; }
.mode-card:hover { border-color: #2563EB; background: #EFF6FF; }
.mode-card.selected { border-color: #2563EB; background: #EFF6FF; }
.mode-card-icon { font-size: 24px; margin-bottom: 8px; }
.mode-card-title { font-size: 15px; font-weight: 600; color: #1A1A1A; margin-bottom: 4px; }
.mode-card-desc { font-size: 13px; color: #444; font-weight: 400; line-height: 1.5; }

/* CHAT */
.chat-wrap { display: flex; flex-direction: column; height: 440px; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px; scroll-behavior: smooth; }
.bubble-row { display: flex; align-items: flex-end; gap: 6px; }
.bubble-row.user { flex-direction: row-reverse; }
.bubble-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.bubble-avatar.ai { background: #2563EB; color: #fff; }
.bubble-avatar.user { background: #E2E0F0; color: #555; }
.bubble { max-width: 82%; border-radius: 14px; font-size: 14px; line-height: 1.55; }
.bubble.ai { background: #F0F4FF; color: #1A1A1A; border-bottom-left-radius: 4px; }
.bubble.user { background: #2563EB; color: #fff; border-bottom-right-radius: 4px; padding: 11px 15px; }
.bubble-summary { background: #E8F0FE; border: 1px solid #BFDBFE; border-radius: 10px 10px 0 0; padding: 10px 14px; }
.bubble-summary-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #1E40AF; margin-bottom: 6px; }
.bubble-summary-item { font-size: 13px; color: #1E3A8A; line-height: 1.5; padding: 1px 0; }
.bubble-question { background: #F0F4FF; border: 1px solid #BFDBFE; border-top: none; border-radius: 0 0 10px 10px; padding: 11px 14px; font-size: 14px; color: #1A1A1A; line-height: 1.55; }
.bubble-question-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #2563EB; margin-bottom: 5px; }
.bubble-typing { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: bounce .8s infinite; }
.dot:nth-child(2) { animation-delay: .15s; }
.dot:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-6px); } }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; padding-top: 8px; border-top: 1px solid #F0EEF8; }
.chat-input { flex: 1; border: 1.5px solid #E2E0F0; border-radius: 10px; padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 14px; resize: none; outline: none; line-height: 1.5; transition: border-color .2s; max-height: 120px; }
.chat-input:focus { border-color: #2563EB; }
.chat-send { background: #2563EB; border: none; border-radius: 8px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.chat-send:hover { background: #1D4ED8; }
.chat-send:disabled { background: #E2E0F0; cursor: not-allowed; }

/* MIC */
.mic-bar { padding: 4px 0 2px; }
.mic-bar-start { display: flex; align-items: center; gap: 10px; background: #2563EB; color: #fff; border: none; border-radius: 10px; padding: 13px 18px; cursor: pointer; font-size: 14px; font-weight: 600; width: 100%; font-family: 'DM Sans', sans-serif; transition: background .15s; }
.mic-bar-start:hover { background: #1D4ED8; }
.mic-bar-listening { display: flex; align-items: center; gap: 12px; background: #FEF2F2; border: 1.5px solid #FCA5A5; border-radius: 10px; padding: 10px 16px; cursor: pointer; font-size: 14px; color: #B91C1C; font-weight: 500; }
.mic-bar-listening:hover { background: #FEE2E2; }
.mic-waves { display: flex; align-items: center; gap: 3px; height: 20px; }
.mic-waves span { display: block; width: 3px; border-radius: 2px; background: #DC2626; animation: wave 0.8s ease-in-out infinite; }
.mic-waves span:nth-child(1) { height: 6px; animation-delay: 0s; }
.mic-waves span:nth-child(2) { height: 14px; animation-delay: .1s; }
.mic-waves span:nth-child(3) { height: 20px; animation-delay: .2s; }
.mic-waves span:nth-child(4) { height: 14px; animation-delay: .3s; }
.mic-waves span:nth-child(5) { height: 6px; animation-delay: .4s; }
@keyframes wave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.mic-bar-idle { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 13px; color: #555; }
.field-mic { background: #F0F4FF; border: 1.5px solid #BFDBFE; border-radius: 7px; width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 1px; transition: all .15s; }
.field-mic:hover { background: #EFF6FF; border-color: #93C5FD; }
.field-mic.listening { background: #FEE2E2; border-color: #FCA5A5; }

/* FIELDS */
.intake-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: #94A3B8; font-size: 12px; font-weight: 500; }
.intake-divider::before, .intake-divider::after { content: ''; flex: 1; height: 1px; background: #E2E0F0; }
.fields-wrap { display: flex; flex-direction: column; gap: 0; }
.field-group { border: 1.5px solid #E2E0F0; border-radius: 11px; background: #FAFBFF; overflow: hidden; margin-bottom: 10px; }
.field-group-header { padding: 12px 16px; background: #F7F8FF; border-bottom: 1px solid #E2E0F0; display: flex; align-items: center; justify-content: space-between; }
.field-group-label { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #2563EB; }
.optional-badge { background: #F1F5F9; color: #64748B; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; letter-spacing: .3px; }
.field-body { padding: 14px 16px; }
.field-textarea { width: 100%; border: 1.5px solid #E2E0F0; border-radius: 8px; padding: 10px 12px; font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.55; resize: none; outline: none; background: #fff; transition: border-color .2s; }
.field-textarea:focus { border-color: #2563EB; }
.field-input { width: 100%; border: 1.5px solid #E2E0F0; border-radius: 8px; padding: 10px 12px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; background: #fff; transition: border-color .2s; }
.field-input:focus { border-color: #2563EB; }
.field-mic-row { display: flex; gap: 8px; align-items: flex-start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg-control { display: flex; background: #fff; border: 1.5px solid #E2E0F0; border-radius: 8px; overflow: hidden; }
.seg-opt { flex: 1; padding: 8px 10px; font-size: 13px; font-weight: 500; color: #64748B; cursor: pointer; text-align: center; border: none; background: transparent; font-family: 'DM Sans', sans-serif; transition: all .15s; }
.seg-opt.active { background: #2563EB; color: #fff; }
.jd-autofill { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: #1E40AF; margin-top: 8px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.jd-autofill:hover { background: #DBEAFE; }

/* SUMMARY */
.summary-card { background: #F7F8FF; border: 1.5px solid #E2E0F0; border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.summary-title { font-family: 'DM Serif Display', serif; font-size: 18px; color: #1A1A1A; margin-bottom: 14px; }
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum-item { background: #fff; border: 1px solid #E2E0F0; border-radius: 8px; padding: 12px 14px; }
.sum-key { font-size: 11px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; color: #555; margin-bottom: 3px; }
.sum-val { font-size: 13px; color: #1A1A1A; line-height: 1.45; }
.sum-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.sum-tag { background: #EFF6FF; color: #2563EB; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 5px; }
.sum-tag-red { background: #FEE2E2; color: #B91C1C; }

/* CONFIDENCE */
.ai-summary { background: #EFF6FF; border: 1.5px solid #BFDBFE; border-radius: 12px; padding: 20px; margin-top: 16px; }
.ai-summary-title { font-size: 13px; font-weight: 600; color: #1E40AF; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.confidence-bands { display: flex; gap: 12px; margin-bottom: 16px; }
.band-card { flex: 1; border-radius: 10px; padding: 14px; text-align: center; }
.band-high { background: #DCFCE7; border: 1.5px solid #86EFAC; }
.band-med { background: #FEF9C3; border: 1.5px solid #FDE68A; }
.band-count { font-family: 'DM Serif Display', serif; font-size: 32px; line-height: 1; }
.band-high .band-count { color: #16A34A; }
.band-med .band-count { color: #854D0E; }
.band-label { font-size: 12px; font-weight: 600; margin-top: 4px; }
.band-high .band-label { color: #16A34A; }
.band-med .band-label { color: #854D0E; }
.band-desc { font-size: 11px; color: #444; font-weight: 400; margin-top: 3px; }
.scope-toggle { display: flex; background: #fff; border: 1.5px solid #BFDBFE; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.scope-opt { flex: 1; padding: 9px 12px; font-size: 13px; font-weight: 500; color: #444; cursor: pointer; text-align: center; transition: all .2s; border: none; background: transparent; font-family: 'DM Sans', sans-serif; }
.scope-opt.active { background: #2563EB; color: #fff; }
.scope-note { font-size: 12px; color: #444; font-weight: 400; }

/* PARSING */
.parse-wrap { padding: 4px 0; }
.prog-bar { width: 100%; height: 4px; background: #E2E0F0; border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.prog-fill { height: 100%; background: #2563EB; border-radius: 2px; transition: width .4s ease; }
.parse-steps { display: flex; flex-direction: column; gap: 8px; }
.parse-step { display: flex; align-items: center; gap: 12px; padding: 11px 16px; background: #F7F8FF; border-radius: 9px; border: 1.5px solid #E2E0F0; font-size: 14px; color: #999; transition: all .3s; }
.parse-step.done { border-color: #2563EB; color: #1A1A1A; }
.step-dot { width: 8px; height: 8px; border-radius: 50%; background: #E2E0F0; flex-shrink: 0; transition: background .3s; }
.parse-step.done .step-dot { background: #2563EB; }

/* COMPANIES / CONFIRM */
.criteria-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.criteria-card { background: #FAFBFF; border: 1.5px solid #E2E0F0; border-radius: 10px; padding: 16px 18px; cursor: pointer; transition: border-color .2s; }
.criteria-card:hover { border-color: #93C5FD; }
.criteria-card.editing { border-color: #2563EB; background: #fff; }
.ckey { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #555; margin-bottom: 4px; }
.cval { font-size: 14px; color: #1A1A1A; line-height: 1.4; }
.cinput { font-size: 14px; color: #1A1A1A; line-height: 1.4; border: none; outline: none; font-family: 'DM Sans', sans-serif; background: transparent; width: 100%; font-weight: 400; resize: none; }
.cedit { font-size: 11px; color: #2563EB; margin-top: 5px; }
.reanalyze-note { font-size: 13px; color: #D97706; background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 8px; padding: 11px 15px; margin-bottom: 14px; }
.co-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.co-row { display: flex; align-items: center; justify-content: space-between; background: #FAFBFF; border: 1.5px solid #E2E0F0; border-radius: 10px; padding: 12px 16px; }
.co-name { font-size: 14px; font-weight: 500; }
.co-meta { font-size: 12px; color: #555; font-weight: 400; margin-top: 1px; }
.co-reason { font-size: 11px; color: #555; margin-top: 2px; }
.co-right { display: flex; align-items: center; gap: 8px; }
.ctag { font-size: 11px; font-weight: 600; letter-spacing: .3px; padding: 3px 9px; border-radius: 20px; }
.ctag-direct { background: #EFF6FF; color: #2563EB; }
.ctag-adjacent { background: #F5F3FF; color: #7C3AED; }
.conf-chip { font-size: 12px; font-weight: 500; padding: 3px 8px; border-radius: 6px; }
.conf-high { background: #DCFCE7; color: #16A34A; }
.conf-med { background: #FEF9C3; color: #854D0E; }
.conf-low { background: #FEE2E2; color: #B91C1C; }
.titles-box { background: #FAFBFF; border: 1.5px solid #E2E0F0; border-radius: 10px; padding: 18px; margin-bottom: 8px; }
.titles-lbl { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #555; margin-bottom: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; }
.pill { background: #fff; border: 1px solid #E2E0F0; border-radius: 6px; padding: 5px 11px; font-size: 13px; color: #333; display: flex; align-items: center; gap: 6px; }
.pill-x { cursor: pointer; color: #666; font-size: 15px; line-height: 1; }
.pill-x:hover { color: #DC2626; }

/* PANELS */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.3); z-index: 300; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.side-panel { position: fixed; right: 0; top: 0; bottom: 0; width: 460px; background: #fff; z-index: 400; box-shadow: -8px 0 40px rgba(0,0,0,.12); display: flex; flex-direction: column; animation: slideIn .25s ease; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.panel-head { padding: 22px 26px; border-bottom: 1px solid #E2E0F0; display: flex; justify-content: space-between; align-items: center; }
.panel-title { font-family: 'DM Serif Display', serif; font-size: 21px; }
.panel-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #555; padding: 4px; line-height: 1; }
.panel-close:hover { color: #1A1A1A; }
.panel-body { flex: 1; overflow-y: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 18px; }
.psec-title { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: #555; margin-bottom: 9px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border: 1px solid #E2E0F0; border-radius: 9px; background: #FAFBFF; }
.add-area { border: 1.5px dashed #E2E0F0; border-radius: 10px; padding: 15px; }
.add-row { display: flex; gap: 8px; }
.add-input { flex: 1; border: 1.5px solid #E2E0F0; border-radius: 8px; padding: 9px 13px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; }
.add-input:focus { border-color: #2563EB; }
.add-note { font-size: 12px; color: #555; margin-top: 7px; line-height: 1.5; }
.panel-foot { padding: 18px 26px; border-top: 1px solid #E2E0F0; }

/* CANDIDATES */
.cand-list { display: flex; flex-direction: column; gap: 12px; }
.cand-card { background: #FAFBFF; border: 1.5px solid #E2E0F0; border-radius: 12px; padding: 20px; }
.cand-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.cand-name { font-size: 15px; font-weight: 600; }
.cand-role { font-size: 13px; color: #444; font-weight: 400; margin-top: 2px; }
.cand-flag { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: 7px; padding: 9px 13px; font-size: 13px; color: #78350F; margin-bottom: 10px; line-height: 1.5; }

/* DONE */
.done-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 8px 0; }
.done-check { width: 64px; height: 64px; background: #EFF6FF; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.done-title { font-family: 'DM Serif Display', serif; font-size: 28px; letter-spacing: -.5px; }
.done-sub { font-size: 14px; color: #444; font-weight: 400; max-width: 420px; line-height: 1.6; }
.stats { display: flex; gap: 36px; justify-content: center; }
.stat-n { font-family: 'DM Serif Display', serif; font-size: 36px; color: #2563EB; line-height: 1; }
.stat-l { font-size: 12px; color: #555; font-weight: 400; margin-top: 2px; }

/* ERROR */
.error-box { background: #FEF2F2; border: 1.5px solid #FCA5A5; border-radius: 10px; padding: 14px 18px; font-size: 14px; color: #B91C1C; margin-top: 16px; }

/* LOGIN */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#EEF2FF 0%,#E0E7FF 30%,#F0EFF9 70%,#DBEAFE 100%); }
.login-card { background: #fff; border-radius: 20px; box-shadow: 0 8px 40px rgba(37,99,235,.1), 0 2px 8px rgba(0,0,0,.04); padding: 48px 44px 40px; width: 400px; text-align: center; }
.login-icon { width: 56px; height: 56px; background: linear-gradient(135deg,#2563EB,#1D4ED8); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(37,99,235,.25); }
.login-logo { font-family: 'DM Serif Display', serif; font-size: 32px; margin-bottom: 4px; letter-spacing: -0.5px; }
.login-logo span { color: #2563EB; }
.login-sub { font-size: 15px; color: #64748B; margin-bottom: 32px; font-weight: 400; }
.login-divider { height: 1px; background: #E2E0F0; margin-bottom: 28px; }
.login-field-label { display: block; text-align: left; font-size: 12px; font-weight: 600; color: #475569; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px; }
.login-field { width: 100%; border: 1.5px solid #E2E0F0; border-radius: 10px; padding: 13px 16px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; margin-bottom: 18px; box-sizing: border-box; transition: all .2s; background: #FAFBFF; }
.login-field:focus { border-color: #2563EB; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.login-field::placeholder { color: #94A3B8; }
.login-btn { width: 100%; background: linear-gradient(135deg,#2563EB,#1D4ED8); color: #fff; border: none; border-radius: 10px; padding: 14px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s; margin-top: 6px; box-shadow: 0 2px 8px rgba(37,99,235,.2); }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,.3); }
.login-btn:disabled { background: #94A3B8; cursor: not-allowed; transform: none; box-shadow: none; }
.login-error { background: #FEF2F2; border: 1px solid #FCA5A5; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #B91C1C; margin-bottom: 16px; text-align: left; }

/* ADMIN */
.admin-panel { max-width: 720px; margin: 0 auto; padding: 36px 24px 80px; }
.admin-title { font-family: 'DM Serif Display', serif; font-size: 26px; margin-bottom: 6px; }
.admin-sub { font-size: 14px; color: #555; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.admin-table th { background: #F7F8FF; text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 600; letter-spacing: .7px; text-transform: uppercase; color: #555; border-bottom: 1.5px solid #E2E0F0; }
.admin-table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid #F0EEF8; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-role { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 12px; letter-spacing: .3px; }
.admin-role-admin { background: #EFF6FF; color: #2563EB; }
.admin-role-user { background: #F1F5F9; color: #64748B; }
.search-method-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 12px; letter-spacing: .3px; }
.search-method-public { background: #FEF9C3; color: #854D0E; }
.search-method-serp { background: #DCFCE7; color: #166534; }
.admin-add { background: #FAFBFF; border: 1.5px solid #E2E0F0; border-radius: 12px; padding: 20px; margin-top: 20px; }
.admin-add-title { font-size: 13px; font-weight: 600; color: #1E40AF; margin-bottom: 14px; }
.admin-add-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.admin-add-group { display: flex; flex-direction: column; gap: 4px; }
.admin-add-group label { font-size: 11px; font-weight: 600; color: #555; letter-spacing: .5px; text-transform: uppercase; }
.admin-add-group input, .admin-add-group select { border: 1.5px solid #E2E0F0; border-radius: 6px; padding: 8px 10px; font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; }
.admin-add-group input:focus, .admin-add-group select:focus { border-color: #2563EB; }
.admin-actions { display: flex; gap: 6px; }
.pw-change-row { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.pw-change-input { border: 1.5px solid #E2E0F0; border-radius: 6px; padding: 5px 8px; font-size: 12px; font-family: 'DM Sans', sans-serif; outline: none; width: 140px; }
.admin-tabs { display: flex; gap: 4px; background: #fff; border: 1.5px solid #E2E0F0; border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.admin-tab { flex: 1; padding: 10px 16px; font-size: 14px; font-weight: 500; color: #64748B; cursor: pointer; text-align: center; border: none; background: transparent; font-family: 'DM Sans', sans-serif; border-radius: 7px; transition: all .15s; }
.admin-tab.active { background: #2563EB; color: #fff; }
.admin-tab:hover:not(.active) { background: #F0F4FF; color: #2563EB; }

/* SETTINGS */
.settings-section { background: #fff; border: 1.5px solid #E2E0F0; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.settings-section-title { font-size: 15px; font-weight: 600; color: #1A1A1A; margin-bottom: 4px; }
.settings-section-desc { font-size: 13px; color: #64748B; margin-bottom: 16px; line-height: 1.5; }
.settings-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.settings-field label { font-size: 12px; font-weight: 600; color: #475569; letter-spacing: .5px; text-transform: uppercase; }
.settings-input { border: 1.5px solid #E2E0F0; border-radius: 8px; padding: 11px 14px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; background: #FAFBFF; transition: all .2s; width: 100%; box-sizing: border-box; }
.settings-input:focus { border-color: #2563EB; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.08); }
.settings-input::placeholder { color: #94A3B8; }
.settings-textarea { border: 1.5px solid #E2E0F0; border-radius: 8px; padding: 11px 14px; font-family: 'DM Sans', sans-serif; font-size: 13px; outline: none; background: #FAFBFF; transition: all .2s; width: 100%; box-sizing: border-box; resize: vertical; min-height: 120px; line-height: 1.5; }
.settings-textarea:focus { border-color: #2563EB; background: #fff; }
.settings-status { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }
.settings-status-ok { background: #F0FDF4; border: 1px solid #86EFAC; color: #166534; }
.settings-status-warn { background: #FFFBEB; border: 1px solid #FDE68A; color: #78350F; }
.settings-actions { display: flex; gap: 8px; align-items: center; }

/* ACTIVE USERS */
.active-users-bar { background: #fff; border: 1.5px solid #E2E0F0; border-radius: 12px; padding: 18px 22px; margin-bottom: 20px; }
.active-users-title { font-size: 13px; font-weight: 600; color: #1E40AF; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.active-dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; display: inline-block; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.active-user-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #F0EEF8; }
.active-user-row:last-child { border-bottom: none; }
.active-user-name { font-size: 14px; font-weight: 500; color: #1A1A1A; }
.active-user-email { font-size: 12px; color: #64748B; }
.active-user-time { font-size: 12px; color: #94A3B8; white-space: nowrap; }
.active-user-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: #DCFCE7; color: #16A34A; margin-left: 8px; }
