:root{--ink:#1f2933;--muted:#89939e;--line:#edf0f2;--green:#166b58;--bg:#f7f8f8}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px "DM Sans",sans-serif}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fff;border-right:1px solid var(--line);padding:30px 20px}.brand-mark{width:39px;height:39px;border-radius:12px;background:#176d58;color:#fff;display:inline-grid;place-items:center;font:800 15px Manrope;vertical-align:middle}.brand-name{display:inline-block;vertical-align:middle;margin-left:11px;font:800 13px Manrope;letter-spacing:.5px}.brand-name span{display:block;font:600 9px "DM Sans";color:#a0a9af;letter-spacing:1.7px;margin-top:3px}.nav-label{font-size:10px;letter-spacing:1.5px;font-weight:700;color:#a1aab0;margin:50px 0 13px}.nav-item{display:flex;gap:13px;align-items:center;padding:12px;border-radius:8px;color:#59646b;text-decoration:none}.nav-item.active{background:#eaf4f0;color:var(--green);font-weight:700}.side-note{position:absolute;bottom:26px;left:24px;color:#52615e;font-size:12px;line-height:1.8}.dot{display:inline-block;width:7px;height:7px;background:#43a47d;border-radius:50%;margin-right:7px}small{margin-left:15px;color:#9aa3a7}main{margin-left:238px;padding:43px 52px;max-width:1500px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#8c9997;font-weight:700}h1{font:800 30px Manrope;margin:7px 0 4px;letter-spacing:-1px}header p,.panel-head p{margin:0;color:#89939a}.eyebrow{margin-bottom:4px}button{font:600 12px "DM Sans";color:#fff;background:var(--green);border:0;border-radius:7px;padding:11px 15px;cursor:pointer}button:disabled{opacity:.6}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:24px}.stats article{position:relative;background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px 22px;min-height:122px}.stat-label{font-size:10px;letter-spacing:1px;color:#89949a;font-weight:700}.stat-value{font:800 26px Manrope;margin:10px 0 2px}.stat-hint{font-size:11px;color:#9ba4a9}.stat-icon{position:absolute;right:20px;top:20px;color:#34846e;background:#edf6f2;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;font-weight:700}.panel{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden}.panel-head{display:flex;justify-content:space-between;align-items:center;padding:22px 23px;border-bottom:1px solid var(--line)}h2{font:700 16px Manrope;margin:0 0 5px}.panel-head p{font-size:12px}.filters{display:flex;gap:9px}.search,select{border:1px solid #e6eaec;border-radius:6px;height:36px;color:#7f898f;background:#fff}.search{display:flex;align-items:center;gap:8px;padding:0 10px;font-size:19px}.search input{border:0;outline:0;width:190px;font:12px "DM Sans"}.filters select{padding:0 27px 0 10px;font:12px "DM Sans"}.table-wrap{overflow:auto;max-height:calc(100vh - 410px);min-height:260px}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:9px;letter-spacing:1px;color:#99a2a7;font-weight:700;background:#fcfdfd;padding:13px 22px}td{padding:12px 22px;border-top:1px solid #f0f2f3;font-size:12px}td.product{font-weight:600;color:#39464b}.code{font:600 11px "DM Sans";color:#567368;background:#f0f6f3;border-radius:4px;padding:5px 7px}.tag{font-size:10px;color:#67756f;background:#f4f6f5;border-radius:12px;padding:5px 9px}.right{text-align:right}.price{font-weight:700;color:#273832}.empty{text-align:center;padding:45px;color:#929ba0}.table-foot{border-top:1px solid var(--line);padding:13px 22px;color:#8a959a;font-size:11px}footer{text-align:right;color:#a0a8ab;font-size:10px;padding:13px 2px}
.unavailable{font-weight:500;color:#a0a8ab;font-size:11px}
.logout-form{margin-top:10px}.logout{display:flex;gap:13px;align-items:center;padding:12px 10px;background:transparent;color:#77827f;font-weight:500;width:100%;text-align:left}.logout:hover{background:#f4f6f5;color:var(--green)}
.tiktok-settings{margin-top:20px}.source-label{display:block;font-size:12px;font-weight:700;color:#59646b;margin:18px 0 7px}.source-select{width:100%;height:42px;border:1px solid #e3e8e6;border-radius:6px;padding:0 10px;background:white;font:13px "DM Sans";color:#39464b}.source-description{font-size:12px;line-height:1.6;color:#7f8b8e;margin:10px 0}.secondary-button{background:#fff;color:var(--green);border:1px solid #b8d1c7}.warning-box{background:#fff8e9;color:#77613b;border:1px solid #f0e2bd;padding:13px;border-radius:7px;font-size:12px;line-height:1.55;margin:18px 0}.key-state{font-size:12px;color:#73817a}.scan-progress{font-size:12px;color:#47715f;margin-top:12px}.match{display:block;margin:4px 0 0;color:#89939a;font-size:10px}.match-name{display:block;max-width:240px;margin:4px 0 0;color:#89939a;font-size:10px;white-space:normal}.offer-link{color:var(--green);text-decoration:none;font-weight:700}.offer-link:hover{text-decoration:underline}
.manual-area{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.manual-area h3{font:700 14px Manrope}.manual-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.manual-grid label{font-size:11px;font-weight:600;color:#64706d}.manual-grid .wide{grid-column:1/-1}.manual-grid input{display:block;width:100%;height:38px;margin-top:5px;padding:0 9px;border:1px solid #e3e8e6;border-radius:5px;font:12px "DM Sans"}.manual-area[hidden],.scan-area[hidden]{display:none}
.credential-group{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.credential-group[hidden]{display:none}.credential-group h3{font:700 14px Manrope;margin:0 0 12px}.credential-label{display:block;font-size:11px;font-weight:600;color:#64706d;margin:12px 0}.credential-label input{display:block;width:100%;height:39px;margin-top:5px;padding:0 10px;border:1px solid #e3e8e6;border-radius:5px;font:13px "DM Sans"}.credential-status{font-size:11px;color:#718279;margin:10px 0}.text-button{background:transparent;color:#9b625a;padding:9px 10px}.text-button:hover{background:#fff5f3}
.users-create{margin-bottom:20px}.users-create h2{margin-bottom:18px}.user-form{display:grid;grid-template-columns:1.1fr 1.1fr .8fr auto;align-items:end;gap:12px}.user-form label{font-size:11px;font-weight:600;color:#64706d}.user-form input,.user-form select,.user-table input,.user-table select{width:100%;height:38px;margin-top:5px;border:1px solid #e3e8e6;border-radius:5px;padding:0 9px;background:#fff;font:12px "DM Sans";color:#37443f}.user-form button{height:38px;white-space:nowrap}.user-table{min-width:700px}.user-table td{vertical-align:middle}.user-table td:first-child{width:28%}.user-table td:nth-child(2){width:33%}.user-table td:nth-child(3){width:20%}.user-table input,.user-table select{margin:0}.user-message{font-size:12px;color:#527665;margin-top:12px;min-height:16px}
.header-actions{display:flex;align-items:center;gap:9px}.dashboard-progress{min-height:0;color:#5a796b;font-size:12px;margin:-16px 0 15px}.dashboard-progress:empty{display:none}
.inline-edit{padding:7px 10px;font-size:11px;white-space:nowrap}.offer-link{white-space:nowrap}#offer-dialog{width:min(460px,calc(100% - 28px));border:1px solid var(--line);border-radius:12px;padding:26px;box-shadow:0 20px 70px #1e302733}#offer-dialog::backdrop{background:#14251f77}#offer-form h2{font-size:18px;margin-bottom:6px}.dialog-help{font-size:12px;color:#87928e;line-height:1.5;margin:0 0 17px}#offer-form label{display:block;font-size:11px;font-weight:600;color:#59645f;margin:12px 0}#offer-form input{display:block;width:100%;height:38px;border:1px solid #e1e7e3;border-radius:6px;padding:0 10px;margin-top:5px;font:13px "DM Sans"}#offer-form input:focus{outline:2px solid #d5e9df}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.dialog-error{color:#b44b41;font-size:12px;margin-top:10px}
.auth-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#f3f7f5,#eef2f0)}.auth-card{width:min(420px,calc(100% - 32px));background:#fff;border:1px solid var(--line);border-radius:14px;padding:38px;box-shadow:0 18px 55px #1d43300c}.auth-card .brand-mark{display:grid;margin-bottom:25px}.auth-card h1{font-size:25px;margin:8px 0}.auth-card>p{color:#89939a;margin:0 0 24px}.auth-card label{display:block;font-size:12px;font-weight:600;margin:16px 0;color:#59646b}.auth-card input{display:block;width:100%;height:42px;margin-top:7px;border:1px solid #e3e8e6;border-radius:6px;padding:0 11px;font:14px "DM Sans";outline-color:#78a996}.auth-card button{width:100%;height:42px;margin-top:12px}.error,.notice{color:#a54b43;background:#fff4f2;border-radius:6px;padding:10px 12px;font-size:12px;margin:12px 0}.settings-card{max-width:700px;background:white;border:1px solid var(--line);border-radius:10px;padding:30px}.settings-icon{width:42px;height:42px;border-radius:10px;background:#edf6f2;color:var(--green);display:grid;place-items:center;font-size:21px;margin-bottom:22px}.settings-card h2{font-size:20px;margin:8px 0}.settings-card>p{color:#7f8b8e;line-height:1.6;max-width:570px}.rate-box{display:flex;align-items:center;justify-content:space-between;background:#f7faf8;border:1px solid #e9f0ec;border-radius:8px;padding:17px;margin:24px 0 10px;color:#78847f;font-size:12px}.rate-box strong{font:700 17px Manrope;color:#22684f}.rate-meta{display:flex;justify-content:space-between;padding:10px 2px;color:#85908c;font-size:12px;border-bottom:1px solid #f0f2f1}.settings-card button{margin-top:20px}.settings-card .source{font-size:11px;margin-bottom:0}.settings-card .notice:empty{display:none}table{min-width:780px}
@media(max-width:850px){.sidebar{width:66px;padding:20px 13px}.brand-name,.nav-label,.nav-item span,.side-note{display:none}.nav-item{margin-top:35px;padding:12px}main{margin-left:66px;padding:28px 20px}.stats{grid-template-columns:1fr}.panel-head{align-items:flex-start;gap:15px;flex-direction:column}.filters{width:100%}.search{flex:1}.search input{width:100%}.table-wrap{max-height:none}.header-actions{flex-wrap:wrap;justify-content:flex-end}.header-actions button{font-size:10px;padding:10px}.user-form{grid-template-columns:1fr 1fr}.user-form button{grid-column:1/-1}}
