* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Arial, Helvetica, sans-serif; background: #f3f5f7; color: #20252a; }
body { padding: 36px 16px; }
.page-shell { max-width: 880px; margin: 0 auto; }
.card { background: #fff; border: 1px solid #dfe3e6; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.06); padding: 34px; }
.brand { font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: lowercase; margin-bottom: 6px; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 20px; margin-top: 30px; }
.user-line { margin: 0 0 28px; color: #535b63; }
label { display: block; font-weight: 700; margin: 18px 0 8px; }
input[type=text], input[type=password], input[type=number], select, textarea { width: 100%; border: 1px solid #b9c0c6; border-radius: 7px; padding: 11px 12px; font: inherit; background: #fff; }
textarea { resize: vertical; }
.drop-zone { border: 2px dashed #aab3bb; border-radius: 10px; margin-top: 20px; min-height: 210px; padding: 34px 18px; text-align: center; transition: background .15s, border-color .15s; outline: none; }
.drop-zone.dragging, .drop-zone:focus { background: #f7f9fa; border-color: #626d76; }
.drop-title { font-size: 20px; font-weight: 700; }
.drop-or { margin: 10px 0; color: #6f7880; }
.hint { margin-top: 15px; color: #6f7880; font-size: 13px; }
button, .button { border: 0; border-radius: 7px; padding: 11px 17px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: .45; cursor: not-allowed; }
.primary-button { margin-top: 20px; width: 100%; background: #20252a; color: #fff; font-size: 17px; padding: 14px 20px; }
.secondary-button { background: #e9edf0; color: #20252a; }
.danger-button { background: #f3e6e6; color: #7a2020; }
.small-button { padding: 7px 10px; font-size: 13px; }
.file-summary { margin-top: 18px; font-weight: 700; }
.file-list { margin-top: 10px; }
.file-row { border-top: 1px solid #e4e7e9; padding: 11px 0; }
.file-name { overflow-wrap: anywhere; }
.file-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #6f7880; margin-top: 5px; }
.mini-progress, .progress-wrap { height: 7px; background: #e7eaec; border-radius: 99px; overflow: hidden; }
.mini-progress { margin-top: 7px; height: 4px; }
.mini-progress > div, .progress-bar { height: 100%; background: #4b5963; transition: width .15s; }
.progress-wrap { margin-top: 18px; }
.status-box, .message { margin-top: 18px; border-radius: 7px; padding: 12px 14px; line-height: 1.45; }
.status-box.info { background: #eef2f4; }
.status-box.success, .message.success { background: #e8f4eb; color: #235b30; }
.status-box.error, .message.error { background: #f8e9e9; color: #7b2525; }
.message.warning { background: #fff3d9; color: #70500e; }
.hidden { display: none !important; }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.admin-header h1 { margin: 0; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { border: 1px solid #dfe3e6; border-radius: 9px; padding: 20px; }
.panel h2 { margin-top: 0; }
.form-row { margin-bottom: 14px; }
.form-row label { margin-top: 0; }
.inline { display: flex; align-items: center; gap: 10px; }
.inline input[type=checkbox] { width: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { padding: 11px 9px; border-bottom: 1px solid #e3e6e8; text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #6b747c; }
.token-link { max-width: 360px; overflow-wrap: anywhere; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.status-active { font-weight: 700; color: #276038; }
.status-inactive { font-weight: 700; color: #8b3434; }
.codebox { font-family: Consolas, Monaco, monospace; background: #f3f5f7; padding: 10px; border-radius: 6px; overflow-wrap: anywhere; }
.env-ok { color: #276038; }
.env-bad { color: #8b3434; font-weight: 700; }
.notice { font-size: 13px; color: #606970; }
@media (max-width: 720px) {
    body { padding: 14px 8px; }
    .card { padding: 22px 16px; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-header { align-items: flex-start; flex-direction: column; }
}

.limit-control { display: flex; align-items: center; gap: 6px; min-width: 190px; }
.limit-control input[type=number] { width: 82px; padding: 7px 8px; }
.limit-control span { font-size: 13px; color: #606970; }
.limit-control button { white-space: nowrap; }
