:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #7c8798;
  --line: #e9edf3;
  --surface: #fff;
  --canvas: #f7f8fc;
  --blue: #4668ec;
  --blue-dark: #3355da;
  --blue-pale: #eef1ff;
  --green: #1c9a73;
  --shadow: 0 12px 36px rgba(28,42,76,.07);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.brand { display: flex; align-items: center; gap: 11px; font: 800 18px Manrope,sans-serif; letter-spacing: -.7px; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg,#6a84ff,#3c5ee7); box-shadow: 0 7px 14px #4668ec38; font-size: 18px; }
.brand span:last-child { color: var(--blue); }
.button { border: 0; border-radius: 10px; padding: 11px 17px; font-weight: 700; font-size: 13px; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 7px 14px #4668ec25; }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: #3e5fe1; background: var(--blue-pale); }
.button-quiet { color: #687386; background: #f1f3f7; }
.button-danger { color: #c34848; background: #fff0f0; }
.button-small { padding: 8px 12px; font-size: 12px; }
.button-block { width: 100%; }
.button-outline { border: 1px solid var(--line); color: #485368; background: white; }
.landing { min-height: 100vh; overflow: hidden; background: #fbfcff; }
.landing-nav { height: 82px; max-width: 1190px; padding: 0 28px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.hero { max-width: 1190px; padding: 88px 28px 90px; margin: auto; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #e4eaff; border-radius: 30px; background: white; color: #4a65d6; font-size: 11px; font-weight: 700; letter-spacing: .25px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #6f88ff; }
.hero h1 { margin: 22px 0 17px; max-width: 620px; font: 800 clamp(42px,5.3vw,64px)/1.12 Manrope,sans-serif; letter-spacing: -3.2px; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy { max-width: 480px; margin: 0; color: #778296; font-size: 16px; line-height: 1.8; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.hero-buttons .button { padding: 13px 20px; }
.trust-line { margin-top: 27px; color: #8993a3; font-size: 11px; }
.trust-line strong { color: #506073; }
.hero-visual { position: relative; min-height: 390px; display: grid; place-items: center; }
.visual-orb { position: absolute; width: 370px; height: 370px; border-radius: 50%; background: radial-gradient(circle at 36% 32%,#f3f5ff 0,#e8edff 40%,#edf4ff 67%,#fff 75%); }
.scan-card { position: relative; z-index: 1; width: min(380px,92%); padding: 24px; border: 1px solid #edf0f5; border-radius: 19px; background: white; box-shadow: 0 24px 70px #43578c1a; transform: rotate(-2deg); }
.scan-card-head { display: flex; align-items: center; justify-content: space-between; }
.scan-card-title { font: 700 15px Manrope,sans-serif; }
.scan-file { margin-top: 22px; padding: 13px; border: 1px solid #edf0f5; border-radius: 11px; display: flex; align-items: center; gap: 12px; }
.file-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: #4f6be5; background: #eff2ff; font-size: 12px; font-weight: 800; }
.scan-file strong { display: block; font-size: 12px; }
.scan-file small { display: block; margin-top: 4px; color: #929cac; font-size: 10px; }
.progress-row { display: flex; justify-content: space-between; margin: 21px 0 9px; font-size: 11px; }
.progress-track { height: 7px; overflow: hidden; border-radius: 9px; background: #eef0f5; }
.progress-track span { display: block; width: 73%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#627ef9,#8ba0ff); }
.scan-result { display: flex; align-items: center; justify-content: space-between; margin-top: 19px; padding: 14px; border-radius: 12px; background: #f7f9ff; }
.scan-result small { color: #909bac; font-size: 10px; }
.scan-result strong { display: block; margin-top: 5px; font-size: 12px; }
.result-score { color: #4164e4; font: 800 23px Manrope,sans-serif; }
.float-note { position: absolute; z-index: 2; padding: 12px 15px; border: 1px solid #edf0f5; border-radius: 13px; background: white; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; }
.float-note.one { top: 52px; right: 8px; color: #299372; }
.float-note.two { bottom: 49px; left: 0; color: #667386; }
.landing-foot { padding: 18px 24px 30px; text-align: center; color: #97a0af; font-size: 11px; }
.features { max-width: 1190px; margin: 0 auto; padding: 0 28px 66px; display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.feature { padding: 20px; border: 1px solid #edf0f5; border-radius: 14px; background: white; }
.feature-icon { color: var(--blue); font-size: 19px; }
.feature strong { display: block; margin-top: 11px; font-size: 13px; }
.feature p { margin: 6px 0 0; color: #8791a0; font-size: 11px; line-height: 1.6; }
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: white; }
.auth-aside { padding: 44px; display: flex; flex-direction: column; justify-content: space-between; color: white; background: linear-gradient(145deg,#506ff3,#334fc3); }
.auth-aside .brand span:last-child { color: white; }
.auth-aside-copy { max-width: 460px; padding: 40px 0; }
.auth-aside-copy h2 { font: 800 clamp(32px,4vw,49px)/1.15 Manrope,sans-serif; letter-spacing: -2px; }
.auth-aside-copy p { color: #dce3ff; line-height: 1.8; }
.auth-aside-foot { color: #dce3ff; font-size: 11px; }
.auth-panel { display: grid; place-items: center; padding: 28px; }
.auth-form { width: min(390px,100%); }
.back-link { padding: 0; color: #7e8999; background: none; border: 0; font-size: 12px; }
.auth-form h1 { margin: 36px 0 7px; font: 800 29px Manrope,sans-serif; letter-spacing: -1px; }
.auth-form > p { margin: 0 0 25px; color: #8993a2; font-size: 13px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 7px; color: #536071; font-size: 11px; font-weight: 700; }
.field input,.field select { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #e4e8ef; border-radius: 9px; outline: none; color: var(--ink); background: white; font-size: 12px; }
.field input:focus,.field select:focus { border-color: #8da0ff; box-shadow: 0 0 0 3px #627ef91a; }
.auth-switch { margin-top: 19px; text-align: center; color: #8590a0; font-size: 12px; }
.auth-switch button { padding: 0; color: var(--blue); border: 0; background: transparent; font-weight: 700; }
.demo-info { margin-top: 22px; padding: 13px; border-radius: 10px; background: #f5f7fb; color: #738093; font-size: 10px; line-height: 1.75; }
.app-layout { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 236px; padding: 24px 15px; border-right: 1px solid var(--line); background: white; }
.sidebar .brand { padding: 0 7px 27px; }
.nav-label { padding: 15px 10px 8px; color: #a1a9b6; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-list { display: grid; gap: 4px; }
.nav-item { width: 100%; padding: 11px 12px; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 9px; color: #7e8998; background: transparent; text-align: left; font-size: 12px; font-weight: 600; }
.nav-item:hover { color: #405fdd; background: #f7f8ff; }
.nav-item.active { color: #4262e0; background: #eff2ff; }
.nav-icon { width: 18px; text-align: center; font-size: 15px; }
.sidebar-bottom { position: absolute; right: 15px; bottom: 17px; left: 15px; }
.credit-mini { padding: 14px; border: 1px solid #edf0f5; border-radius: 12px; background: #fafbff; }
.credit-mini small { color: #8993a2; font-size: 10px; }
.credit-mini strong { display: block; margin: 5px 0 11px; font: 800 17px Manrope,sans-serif; }
.main { min-height: 100vh; margin-left: 236px; }
.topbar { position: sticky; top: 0; z-index: 8; height: 67px; padding: 0 34px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: #ffffffeb; backdrop-filter: blur(14px); }
.breadcrumb { color: #939cab; font-size: 11px; }
.breadcrumb strong { color: #4a5667; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.role-pill { padding: 6px 10px; border-radius: 20px; color: #586cda; background: #f0f2ff; font-size: 10px; font-weight: 700; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; overflow: hidden; border: 0; border-radius: 50%; color: white; background: #6c83ea; font-size: 12px; font-weight: 700; object-fit: cover; }
.avatar img,.profile-big-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-top { display: flex; align-items: center; gap: 9px; padding: 0; border: 0; background: transparent; text-align: left; }
.user-top strong { display: block; font-size: 11px; }
.user-top small { display: block; margin-top: 3px; color: #97a0ad; font-size: 9px; }
.mobile-menu { display: none; border: 0; color: #435063; background: none; font-size: 21px; }
.content { max-width: 1240px; padding: 31px 34px 55px; margin: auto; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 0; font: 800 24px Manrope,sans-serif; letter-spacing: -.7px; }
.page-heading p { margin: 7px 0 0; color: #8993a1; font-size: 12px; }
.heading-actions { display: flex; gap: 8px; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.card-title h2 { margin: 0; font: 700 14px Manrope,sans-serif; }
.card-title p { margin: 5px 0 0; color: #929ba9; font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 19px; }
.stat-card { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.stat-top { display: flex; justify-content: space-between; color: #8892a1; font-size: 10px; }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #526de5; background: #f0f2ff; font-size: 14px; }
.stat-value { margin-top: 14px; font: 800 23px Manrope,sans-serif; letter-spacing: -.7px; }
.stat-note { margin-top: 5px; color: #8993a1; font-size: 9px; }
.stat-note .up { color: #2c9a75; font-weight: 700; }
.two-col { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(250px,.85fr); gap: 16px; margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 12px; color: #99a2af; border-bottom: 1px solid #edf0f4; font-size: 9px; font-weight: 700; white-space: nowrap; text-transform: uppercase; letter-spacing: .5px; }
td { padding: 13px 12px; border-bottom: 1px solid #f1f3f6; color: #596577; font-size: 10px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td strong { color: #303c4e; font-size: 10px; }
.muted { color: #949dab; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.badge-pending { color: #ad7719; background: #fff5df; }
.badge-processing { color: #4b68dd; background: #eff2ff; }
.badge-completed { color: #208c6d; background: #e9f8f2; }
.badge-rejected { color: #c44c4c; background: #fff0f0; }
.empty-state { padding: 35px 15px; text-align: center; color: #8e98a7; font-size: 11px; }
.empty-icon { width: 42px; height: 42px; margin: 0 auto 11px; display: grid; place-items: center; border-radius: 13px; color: #5973e7; background: #f0f2ff; font-size: 17px; }
.service-list { display: grid; gap: 10px; }
.service-option { padding: 15px; border: 1px solid #e9edf3; border-radius: 11px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: .16s; }
.service-option:hover,.service-option.selected { border-color: #879bff; background: #f8f9ff; }
.service-option input,.credit-pack input { accent-color: var(--blue); }
.service-logo { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 10px; color: #536de5; background: #eff2ff; font-size: 10px; font-weight: 800; }
.service-details { flex: 1; }
.service-details strong { display: block; font-size: 12px; }
.service-details small { display: block; margin-top: 4px; color: #929baa; font-size: 10px; }
.service-price { color: #415fe0; font: 800 14px Manrope,sans-serif; white-space: nowrap; }
.service-price small { display: block; color: #9099a8; text-align: right; font: 500 9px "DM Sans",sans-serif; }
.dropzone { padding: 31px 20px; border: 1px dashed #bfc9e5; border-radius: 12px; background: #fafbff; text-align: center; cursor: pointer; }
.dropzone:hover,.dropzone.selected { border-color: var(--blue); background: #f7f8ff; }
.dropzone-icon { width: 42px; height: 42px; margin: 0 auto 11px; display: grid; place-items: center; border-radius: 13px; color: #526de4; background: #edf0ff; font-size: 18px; }
.dropzone strong { display: block; font-size: 12px; }
.dropzone p { margin: 7px 0 0; color: #8e98a7; font-size: 10px; }
.file-picked { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid #e8ecf3; border-radius: 10px; }
.file-picked strong { display: block; font-size: 11px; }
.file-picked small { display: block; margin-top: 4px; color: #919baa; font-size: 9px; }
.upload-flow { max-width: 720px; margin: 0 auto; }
.upload-progress { margin-top: 18px; }
.upload-progress .progress-row { margin: 0 0 8px; gap: 12px; color: #596577; }
.upload-progress .progress-row span { overflow-wrap: anywhere; }
.upload-progress .progress-track span { width: 1%; transition: width .15s ease; }
.upload-progress-result .progress-row strong { color: #208c6d; }
.upload-progress-result .progress-track span { background: #36a982; }
.upload-progress-failed .progress-row,.upload-progress-failed .progress-row strong { color: #c44c4c; }
.upload-progress-failed .progress-track span { background: #d45b5b; }
.step-line { display: flex; align-items: center; gap: 9px; margin-bottom: 19px; color: #9ba4b2; font-size: 10px; }
.step-line span { display: flex; align-items: center; gap: 7px; }
.step-line i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #eceff4; font-style: normal; font-size: 9px; }
.step-line .current { color: #4b67df; font-weight: 700; }
.step-line .current i { color: white; background: var(--blue); }
.step-line .done { color: #299477; }
.step-line .done i { color: white; background: #299477; }
.step-divider { width: 24px; height: 1px; background: #e5e9ef; }
.notice { padding: 13px 15px; margin-bottom: 15px; border: 1px solid #e8ecff; border-radius: 10px; color: #637293; background: #f6f7ff; font-size: 10px; line-height: 1.65; }
.filter-list { display: grid; gap: 10px; }
.check-row { padding: 13px; border: 1px solid #edf0f4; border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.check-row input { accent-color: var(--blue); }
.check-row strong { display: block; font-size: 11px; }
.check-row small { display: block; margin-top: 3px; color: #909aaa; font-size: 9px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 15px; }
.toolbar input,.toolbar select { min-width: 155px; height: 36px; padding: 0 11px; border: 1px solid #e7ebf1; border-radius: 8px; color: #596577; background: white; font-size: 10px; }
.toolbar input { flex: 1; }
.profile-grid { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 16px; }
.profile-sections { display: grid; align-content: start; gap: 15px; }
.reseller-application-panel { padding: 18px 20px; }
.application-card { padding: 15px 0; border-top: 1px solid #eff1f5; display: grid; grid-template-columns: minmax(180px,1fr) minmax(140px,1.2fr) auto; align-items: center; gap: 15px; }
.application-person { display: flex; align-items: center; gap: 10px; }
.application-person strong,.application-person small { display: block; }
.application-person strong { font-size: 11px; }
.application-person small { margin-top: 4px; color: #929baa; font-size: 9px; overflow-wrap: anywhere; }
.application-message { color: #737f90; font-size: 10px; line-height: 1.6; }
.application-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
.profile-avatar-wrap { text-align: center; }
.profile-big-avatar { width: 78px; height: 78px; margin: 3px auto 12px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; color: white; background: #6d83e8; font: 700 25px Manrope,sans-serif; object-fit: cover; }
.profile-avatar-wrap strong { display: block; font-size: 12px; }
.profile-avatar-wrap p { color: #929baa; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 13px; }
.form-grid .span-two { grid-column: span 2; }
.balance-card { padding: 24px; border-radius: 14px; color: white; background: linear-gradient(125deg,#5270ed,#334fc3); }
.balance-card small { color: #dbe3ff; font-size: 10px; }
.balance-card strong { display: block; margin-top: 9px; font: 800 29px Manrope,sans-serif; letter-spacing: -.8px; }
.balance-card p { color: #dbe3ff; font-size: 10px; }
.balance-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.balance-stat { padding: 15px; border: 1px solid var(--line); border-radius: 11px; }
.balance-stat small { color: #909baa; font-size: 9px; }
.balance-stat strong { display: block; margin-top: 7px; font: 800 16px Manrope,sans-serif; }
.service-editor { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.7fr) minmax(0,1fr); align-items: end; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eff1f5; }
.service-editor:last-child { border: 0; }
.service-editor .field { margin: 0; }
.service-editor .field input,.service-editor .field select { height: 36px; }
.service-editor .field > span { font-size: 9px; }
.toggle-label { display: flex; align-items: center; gap: 7px; color: #667184; font-size: 10px; }
.toggle-label input { accent-color: var(--blue); }
.withdrawal-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eff1f5; }
.withdrawal-card:last-child { border-bottom: 0; }
.withdrawal-card strong { display: block; font-size: 11px; }
.withdrawal-card small { display: block; margin-top: 4px; color: #909baa; font-size: 9px; }
.withdrawal-amount { text-align: right; font-weight: 700; font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 30; padding: 20px; display: grid; place-items: center; background: #18212f66; }
.modal { width: min(460px,100%); max-height: 90vh; overflow: auto; padding: 23px; border-radius: 15px; background: white; box-shadow: 0 25px 75px #18212f40; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 19px; }
.modal-head h2 { margin: 0; font: 800 17px Manrope,sans-serif; }
.modal-head p { margin: 5px 0 0; color: #8993a2; font-size: 10px; }
.modal-close { width: 29px; height: 29px; border: 0; border-radius: 8px; color: #798493; background: #f2f4f7; font-size: 17px; }
.credit-pack { padding: 14px; margin-bottom: 9px; border: 1px solid #e9edf3; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.credit-pack.selected { border-color: #8ca0ff; background: #f8f9ff; }
.credit-pack strong { display: block; font-size: 12px; }
.credit-pack small { display: block; margin-top: 3px; color: #909aaa; font-size: 9px; }
.menu-overlay { display: none; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; max-width: min(400px,calc(100vw - 32px)); padding: 13px 17px; border: 1px solid #e5eaf4; border-radius: 10px; color: #364255; background: white; box-shadow: 0 12px 35px #25375a24; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.upload-flow { max-width: 780px; }
.upload-flow > .card { padding: 24px; margin-bottom: 14px; box-shadow: 0 5px 18px rgba(28,42,76,.025); }
.upload-flow .card-title h2 { font-size: 15px; }
.upload-flow .step-line { padding: 0 4px; }
.upload-flow .dropzone { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-width: 1.5px; transition: background .16s,border-color .16s; }
.upload-flow .dropzone p { line-height: 1.6; }
.upload-flow .dropzone-icon { width: 46px; height: 46px; }
.upload-flow .service-option { min-height: 72px; }
.upload-flow .service-option input { width: 16px; height: 16px; }
.credit-price-list { margin-bottom: 17px; }
.credit-price-row { min-height: 65px; padding: 12px 3px; border-bottom: 1px solid #eff1f5; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.credit-price-row:last-child { margin-bottom: 5px; border-bottom: 0; }
.credit-price-row > span strong { display: block; font-size: 12px; }
.credit-price-row > span small { display: block; margin-top: 5px; color: #929baa; font-size: 9px; }
.credit-price-row > strong { color: #405fe0; font: 800 14px Manrope,sans-serif; white-space: nowrap; }
.generated-codes { padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--line); }
.generated-codes .notice { margin-bottom: 10px; }
.generated-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin-bottom: 7px; border: 1px solid #e9edf3; border-radius: 9px; background: #fafbff; }
.generated-code code { overflow-wrap: anywhere; color: #34445f; font-size: 12px; font-weight: 700; letter-spacing: .6px; }
@media (max-width: 1050px) {
  .hero { gap: 20px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .sidebar { width: 210px; }
  .main { margin-left: 210px; }
  .content { padding-right: 23px; padding-left: 23px; }
  .topbar { padding: 0 23px; }
}
@media (max-width: 760px) {
  .landing-nav { height: 68px; padding: 0 18px; }
  .hero { padding: 51px 20px 37px; grid-template-columns: 1fr; gap: 10px; }
  .hero h1 { max-width: 560px; font-size: 46px; letter-spacing: -2.4px; }
  .hero-copy { font-size: 14px; }
  .hero-visual { min-height: 350px; }
  .visual-orb { width: 310px; height: 310px; }
  .float-note.one { right: 3%; }
  .features { padding: 0 20px 42px; grid-template-columns: 1fr; }
  .auth-screen { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-panel { min-height: 100vh; padding: 25px; }
  .auth-form h1 { margin-top: 27px; }
  .sidebar { width: 245px; transform: translateX(-105%); transition: transform .2s ease; box-shadow: none; }
  .sidebar.open { transform: translateX(0); box-shadow: 12px 0 30px #17213b21; }
  .menu-overlay.show { position: fixed; inset: 0; z-index: 9; display: block; background: #18212f52; }
  .main { margin-left: 0; }
  .topbar { height: 60px; padding: 0 17px; }
  .mobile-menu { display: block; }
  .topbar-left { display: flex; align-items: center; gap: 10px; }
  .content { padding: 24px 16px 40px; }
  .page-heading { margin-bottom: 19px; }
  .page-heading h1 { font-size: 21px; }
  .two-col { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-avatar-wrap { padding: 10px; }
  .application-card { grid-template-columns: 1fr; }
  .application-actions { justify-content: flex-start; }
  .service-editor { grid-template-columns: 1fr 1fr; }
  .service-editor > .field:first-child { grid-column: span 2; }
  .upload-flow > .card { padding: 17px; }
}
@media (max-width: 480px) {
  .brand { font-size: 16px; }
  .brand-mark { width: 33px; height: 33px; }
  .nav-actions { gap: 7px; }
  .nav-actions .button { padding: 9px 11px; font-size: 11px; }
  .hero h1 { font-size: 39px; }
  .hero-buttons { gap: 9px; }
  .hero-buttons .button { padding: 12px 14px; }
  .hero-visual { min-height: 310px; }
  .scan-card { padding: 17px; }
  .float-note { padding: 9px 11px; font-size: 9px; }
  .stats-grid { gap: 9px; }
  .stat-card { padding: 12px; }
  .stat-value { font-size: 20px; }
  .top-actions { gap: 7px; }
  .role-pill { display: none; }
  .user-top > span:not(.avatar) { display: none; }
  .heading-actions .button { padding: 9px 11px; font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-two { grid-column: auto; }
}

/* Refined workspace surfaces and compact monochrome icon treatment. */
:root { --ink: #172338; --muted: #738198; --line: #e5eaf2; --canvas: #f4f7fb; --blue: #315eea; --blue-dark: #264ecb; --blue-pale: #edf2ff; --shadow: 0 14px 38px rgba(25,43,78,.055); }
.sidebar { box-shadow: 8px 0 28px rgba(28,43,71,.025); }
.sidebar .brand { padding-bottom: 30px; }
.nav-item { min-height: 42px; transition: background .16s,color .16s,transform .16s; }
.nav-item:hover { transform: translateX(2px); }
.nav-item.active { color: #284fce; background: #eef3ff; box-shadow: inset 3px 0 #315eea; }
.nav-icon,.bi { width: 18px; display: inline-grid; place-items: center; color: currentColor; font-size: 15px; line-height: 1; }
.main { background: var(--canvas); }
.topbar { box-shadow: 0 5px 20px rgba(26,42,74,.025); }
.content { max-width: 1320px; padding-top: 34px; }
.page-heading { align-items: center; margin-bottom: 27px; }
.page-heading h1 { color: #172338; font-size: 26px; letter-spacing: -.9px; }
.page-heading p { color: #77849a; }
.card,.stat-card { border-color: #e7ecf4; border-radius: 15px; box-shadow: 0 8px 24px rgba(25,43,78,.035); }
.card { padding: 23px; }
.card-title h2 { color: #233149; font-size: 15px; }
.card-title p { color: #8290a4; font-size: 11px; }
.stat-card { padding: 19px; transition: transform .18s,box-shadow .18s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(25,43,78,.075); }
.stat-icon,.feature-icon,.dropzone-icon,.service-logo,.empty-icon { color: #315eea; }
.service-option,.check-row,.file-picked { border-color: #e6ebf3; border-radius: 12px; }
.service-option.selected,.service-option:hover { border-color: #8aa5ff; background: #f5f7ff; box-shadow: 0 0 0 3px rgba(49,94,234,.06); }
.dropzone { border-color: #cbd5e5; border-radius: 14px; background: linear-gradient(145deg,#fbfcff,#f6f8fc); }
.filter-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.check-row { min-height: 62px; background: #fff; }
.check-row:has(input:checked) { border-color: #92a8f5; background: #f7f9ff; }
th { color: #7e8ba1; background: #fafbfe; }
td { padding-top: 15px; padding-bottom: 15px; }
tr:hover td { background: #fbfcff; }
.button { border-radius: 10px; }
.button .bi { margin-right: 6px; font-size: 13px; }
.badge-failed { color: #c33d4b; background: #fff0f1; }
.badge-queued { color: #9a6a16; background: #fff7e6; }
.job-filters { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid #e6eaf2; border-radius: 20px; color: #56647a; background: #f8f9fc; font-size: 9px; font-weight: 600; }
.job-error { display: block; max-width: 270px; margin-top: 5px; color: #b8434d; font-size: 9px; line-height: 1.5; }
.service-editor { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 15px; padding: 18px 0; }
.service-editor .field { margin: 0; }
.service-filters { grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px; border: 1px solid #e8edf5; border-radius: 12px; background: #fafbfe; }
.service-filters-title { grid-column: 1/-1; color: #55647b; font-size: 10px; font-weight: 700; }
.service-filter-option { display: flex; align-items: center; gap: 8px; color: #4f5d72; font-size: 10px; }
.service-filter-option input { accent-color: var(--blue); }
.source-threshold { display: grid; grid-template-columns: minmax(0,1fr) 100px; gap: 10px; margin: 9px 0 2px 30px; padding: 12px; border: 1px solid #e7ebf2; border-radius: 11px; background: #fbfcfe; }
.source-threshold-type { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 14px; color: #58667b; font-size: 10px; }
.source-threshold input[type=radio] { accent-color: var(--blue); }
.source-threshold input[type=number] { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #e1e7f0; border-radius: 8px; }
.secret-field { position: relative; }
.secret-field input { padding-right: 95px; }
.secret-state { display: inline-flex; align-items: center; gap: 6px; color: #65738a; font-size: 10px; }
.status-actions { display: flex; flex-wrap: wrap; gap: 5px; min-width: 176px; }
.status-actions .button { padding: 7px 9px; font-size: 10px; }
.status-actions .bi { margin-right: 4px; font-size: 11px; }
.job-metadata { color: #78869a; font-size: 9px; }
.modal { border: 1px solid #e6eaf1; }
@media(max-width: 700px) {
  .filter-list,.service-filters { grid-template-columns: 1fr; }
  .source-threshold { grid-template-columns: minmax(0,1fr) 82px; margin-left: 0; }
  .service-editor { grid-template-columns: 1fr 1fr; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e6ebf4;
  --muted: #a3aec0;
  --line: #303b4e;
  --surface: #202a3a;
  --canvas: #141b28;
  --blue: #91a7ff;
  --blue-dark: #a9b9ff;
  --blue-pale: #2a3652;
  --shadow: 0 14px 38px rgba(0,0,0,.22);
  color: var(--ink);
  background: var(--canvas);
}
:root[data-theme="dark"] body,
:root[data-theme="dark"] .main { background: var(--canvas); }
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .modal { color: var(--ink); background: var(--surface); }
:root[data-theme="dark"] .topbar { background: rgba(32,42,58,.94); }
:root[data-theme="dark"] .topbar,
:root[data-theme="dark"] .sidebar,
:root[data-theme="dark"] .card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .modal { border-color: var(--line); }
:root[data-theme="dark"] .page-heading h1,
:root[data-theme="dark"] .card-title h2,
:root[data-theme="dark"] .stat-value,
:root[data-theme="dark"] .user-top strong,
:root[data-theme="dark"] td strong,
:root[data-theme="dark"] .profile-avatar-wrap strong,
:root[data-theme="dark"] .service-details strong,
:root[data-theme="dark"] .dropzone strong,
:root[data-theme="dark"] .file-picked strong,
:root[data-theme="dark"] .check-row strong { color: var(--ink); }
:root[data-theme="dark"] .page-heading p,
:root[data-theme="dark"] .card-title p,
:root[data-theme="dark"] .stat-top,
:root[data-theme="dark"] .stat-note,
:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .breadcrumb strong,
:root[data-theme="dark"] .user-top small,
:root[data-theme="dark"] .nav-label,
:root[data-theme="dark"] .nav-item,
:root[data-theme="dark"] .muted,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .service-details small,
:root[data-theme="dark"] .dropzone p,
:root[data-theme="dark"] .file-picked small,
:root[data-theme="dark"] .check-row small,
:root[data-theme="dark"] .application-message,
:root[data-theme="dark"] .profile-avatar-wrap p,
:root[data-theme="dark"] .withdrawal-card small,
:root[data-theme="dark"] .modal-head p,
:root[data-theme="dark"] .step-line { color: #a3aec0; }
:root[data-theme="dark"] .nav-item:hover,
:root[data-theme="dark"] .nav-item.active { color: #b8c5ff; background: #2a3652; }
:root[data-theme="dark"] .topbar { border-bottom-color: var(--line); }
:root[data-theme="dark"] .theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #ffd36b;
  background: #293449;
  font-size: 16px;
}
:root[data-theme="dark"] .theme-toggle:disabled { cursor: wait; opacity: .65; }
:root:not([data-theme="dark"]) .theme-toggle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #5369c9;
  background: #f0f3ff;
  font-size: 16px;
}
:root:not([data-theme="dark"]) .theme-toggle:disabled { cursor: wait; opacity: .65; }
:root[data-theme="dark"] .role-pill { color: #b8c5ff; background: #2a3652; }
:root[data-theme="dark"] .credit-mini,
:root[data-theme="dark"] .service-filters,
:root[data-theme="dark"] .source-threshold,
:root[data-theme="dark"] .generated-code,
:root[data-theme="dark"] .toolbar input,
:root[data-theme="dark"] .toolbar select,
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select,
:root[data-theme="dark"] .source-threshold input[type="number"] {
  color: var(--ink);
  border-color: var(--line);
  background: #192333;
}
:root[data-theme="dark"] .field > span,
:root[data-theme="dark"] .service-filters-title,
:root[data-theme="dark"] .service-filter-option,
:root[data-theme="dark"] .source-threshold-type,
:root[data-theme="dark"] .secret-state,
:root[data-theme="dark"] .toggle-label { color: #b4bfd0; }
:root[data-theme="dark"] .table-wrap th { color: #a3aec0; border-color: var(--line); background: #192333; }
:root[data-theme="dark"] .table-wrap td { color: #c6cfdd; border-color: var(--line); }
:root[data-theme="dark"] tr:hover td { background: #263247; }
:root[data-theme="dark"] .service-option,
:root[data-theme="dark"] .check-row,
:root[data-theme="dark"] .file-picked,
:root[data-theme="dark"] .credit-pack,
:root[data-theme="dark"] .application-card,
:root[data-theme="dark"] .service-editor,
:root[data-theme="dark"] .withdrawal-card { border-color: var(--line); }
:root[data-theme="dark"] .service-option,
:root[data-theme="dark"] .check-row,
:root[data-theme="dark"] .file-picked,
:root[data-theme="dark"] .credit-pack { color: var(--ink); background: #192333; }
:root[data-theme="dark"] .service-option:hover,
:root[data-theme="dark"] .service-option.selected,
:root[data-theme="dark"] .check-row:has(input:checked),
:root[data-theme="dark"] .credit-pack.selected { background: #293650; }
:root[data-theme="dark"] .dropzone { color: var(--ink); border-color: #53617b; background: #192333; }
:root[data-theme="dark"] .dropzone:hover,
:root[data-theme="dark"] .dropzone.selected { background: #26334a; }
:root[data-theme="dark"] .notice { color: #c0cbed; border-color: #3a4864; background: #222e45; }
:root[data-theme="dark"] .filter-chip { color: #c0cadd; border-color: var(--line); background: #263247; }
:root[data-theme="dark"] .modal-close,
:root[data-theme="dark"] .button-quiet { color: #c6cfdd; background: #303b4e; }
:root[data-theme="dark"] .button-outline { color: #d6deeb; border-color: #46536b; background: #202a3a; }
:root[data-theme="dark"] .toast { color: var(--ink); border-color: var(--line); background: var(--surface); }
:root[data-theme="dark"] .sidebar .brand span:last-child { color: #91a7ff; }
:root[data-theme="dark"] .menu-overlay.show { background: #060a12a8; }
