:root {
  --ink: #1e2942;
  --muted: #7b859b;
  --line: #e7ebf3;
  --blue: #5273e6;
  --purple: #8a61e8;
  --pink: #ec6a9f;
  --green: #1db27c;
  --sidebar: #22304f;
  --sidebar-soft: #2b3b60;
  --shadow: 0 12px 38px rgba(34, 48, 82, .08);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f4f6fb; font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 42px 54px; color: #fff; background: linear-gradient(145deg, #263a6f 0%, #374a89 46%, #6654a9 100%); }
.login-art::before { content: ""; position: absolute; left: -90px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(121,157,255,.32), transparent 65%); }
.login-art::after { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom right, black, transparent 70%); }
.login-brand, .login-message { position: relative; z-index: 2; }
.login-brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.login-logo, .sidebar-logo { display: grid; place-items: center; width: 45px; height: 45px; color: #526be0; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(14, 22, 51, .2); font-size: 19px; font-weight: 900; }
.login-brand strong { display: block; font-size: 17px; }
.login-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.54); font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.login-message { max-width: 570px; margin: auto 0; padding: 55px 0; }
.login-kicker, .panel-kicker { display: block; margin-bottom: 18px; color: #9bb5ff; font-size: 10px; font-weight: 900; letter-spacing: 2.2px; }
.login-message h1 { margin: 0; font-size: clamp(38px, 4.2vw, 64px); line-height: 1.25; letter-spacing: -2.8px; }
.login-message > p { max-width: 510px; margin: 24px 0 30px; color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.9; }
.login-points { display: flex; flex-wrap: wrap; gap: 10px; }
.login-points span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(255,255,255,.075); color: rgba(255,255,255,.76); font-size: 11px; }
.login-points i { display: grid; place-items: center; width: 17px; height: 17px; color: #3e4a82; border-radius: 50%; background: #bfecca; font-size: 10px; font-style: normal; font-weight: 900; }
.login-rings { position: absolute; right: -90px; top: 18%; width: 290px; height: 290px; border: 52px solid rgba(255,255,255,.045); border-radius: 50%; }
.login-panel { display: grid; place-items: center; padding: 34px; background: #fff; }
.login-card { width: min(390px, 100%); }
.mobile-login-brand { display: none; }
.login-card h2 { margin: 0; font-size: 29px; letter-spacing: -.7px; }
.login-card > p { margin: 9px 0 27px; color: #929aac; font-size: 12px; }
.field { display: grid; gap: 8px; margin-bottom: 17px; color: #59647c; font-size: 12px; font-weight: 700; }
.field > span:first-child { display: block; }
.field small { color: #99a2b5; font-size: 10px; font-weight: 500; }
.field input, .field select, .field textarea, .search-control input { width: 100%; padding: 0 13px; color: #2c374e; border: 1px solid #dfe4ee; border-radius: 11px; outline: 0; background: #fff; transition: .2s ease; }
.field input, .field select { height: 43px; }
.field textarea { padding-top: 11px; padding-bottom: 11px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .search-control input:focus { border-color: #8ca4ee; box-shadow: 0 0 0 4px rgba(86, 117, 225, .09); }
.input-wrap { position: relative; display: block; }
.input-wrap svg { position: absolute; left: 13px; top: 50%; width: 17px; fill: none; stroke: #8d98ae; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; }
.input-wrap input { padding-left: 40px; }
.login-error { min-height: 20px; margin: -4px 0 8px; color: #dc557d; font-size: 11px; }
.admin-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 800; transition: .2s ease; }
.admin-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.admin-button.primary { color: #fff; background: linear-gradient(100deg, #5374e4, #785ed8); box-shadow: 0 9px 22px rgba(76, 99, 210, .22); }
.admin-button.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 27px rgba(76, 99, 210, .3); }
.admin-button.light { color: #5f6981; border-color: #e2e6ef; background: #fff; }
.login-submit { width: 100%; min-height: 46px; margin-top: 2px; }
.back-site { display: block; margin-top: 21px; color: #8791a7; text-align: center; font-size: 11px; }
.back-site:hover { color: #5673dd; }
.admin-view { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; width: 238px; padding: 24px 16px 18px; color: #fff; background: linear-gradient(180deg, #243252, #1e2a47); box-shadow: 10px 0 35px rgba(27, 38, 66, .09); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 25px; border-bottom: 1px solid rgba(255,255,255,.075); }
.sidebar-logo { width: 39px; height: 39px; border-radius: 12px; background: linear-gradient(135deg, #7c9afa, #a66de2); color: #fff; font-size: 16px; box-shadow: 0 9px 22px rgba(15, 22, 50, .24); }
.sidebar-brand strong { display: block; font-size: 14px; }
.sidebar-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.42); font-size: 10px; }
.side-nav { display: grid; gap: 7px; margin-top: 25px; }
.side-nav button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 43px; padding: 0 12px; color: rgba(255,255,255,.61); border: 0; border-radius: 11px; background: transparent; cursor: pointer; text-align: left; font-size: 12px; font-weight: 700; transition: .2s ease; }
.side-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.side-nav button.active { color: #fff; background: linear-gradient(100deg, rgba(100,128,235,.45), rgba(136,91,215,.34)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.side-nav svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.side-nav span { flex: 1; }
.side-nav b { display: grid; place-items: center; min-width: 23px; height: 21px; padding: 0 6px; border-radius: 7px; background: rgba(255,255,255,.1); font-size: 9px; }
.sidebar-bottom { display: grid; gap: 5px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.075); }
.sidebar-bottom a, .sidebar-bottom button { display: flex; align-items: center; gap: 9px; min-height: 37px; padding: 0 10px; color: rgba(255,255,255,.52); border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-size: 11px; }
.sidebar-bottom a:hover, .sidebar-bottom button:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar-bottom svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.admin-main { min-height: 100vh; margin-left: 238px; }
.admin-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding: 14px 30px; border-bottom: 1px solid #e6eaf2; background: rgba(255,255,255,.88); backdrop-filter: blur(15px); }
.admin-topbar h1 { margin: 0; font-size: 18px; }
.admin-topbar p { margin: 5px 0 0; color: #98a0b2; font-size: 10px; }
.top-actions { display: flex; align-items: center; gap: 8px; color: #8f98ac; font-size: 10px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: #21bf81; box-shadow: 0 0 0 4px rgba(33,191,129,.1); }
.top-actions button { margin-left: 12px; padding: 10px 14px; color: #fff; border: 0; border-radius: 10px; background: linear-gradient(100deg, #5374e4, #785ed8); box-shadow: 0 8px 20px rgba(76, 99, 210, .2); cursor: pointer; font-size: 11px; font-weight: 800; }
.mobile-menu { display: none; }
.admin-content { padding: 24px 30px 45px; }
.admin-section { display: none; }
.admin-section.active { display: block; animation: section-in .22s ease; }
@keyframes section-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.kpi-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 13px; min-height: 108px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.kpi-card::after { content: ""; position: absolute; right: -27px; top: -40px; width: 105px; height: 105px; border-radius: 50%; background: currentColor; opacity: .045; }
.kpi-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; font-size: 13px; font-weight: 900; }
.kpi-card.blue { color: var(--blue); } .kpi-card.blue .kpi-icon { background: #edf2ff; }
.kpi-card.purple { color: var(--purple); } .kpi-card.purple .kpi-icon { background: #f3efff; }
.kpi-card.pink { color: var(--pink); } .kpi-card.pink .kpi-icon { background: #fff0f6; }
.kpi-card.green { color: var(--green); } .kpi-card.green .kpi-icon { background: #eafaf4; }
.kpi-card div { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 5px; color: var(--ink); }
.kpi-card small { grid-column: 1 / -1; margin-bottom: 4px; color: #8c95aa; font-size: 10px; font-weight: 700; }
.kpi-card strong { font-size: 23px; letter-spacing: -.7px; }
.kpi-card em { color: #9ba3b5; font-size: 9px; font-style: normal; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 15px; margin-top: 16px; }
.admin-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.recent-card, .quick-card { padding: 19px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.card-head small { display: block; margin-bottom: 5px; color: #99a4ba; font-size: 8px; font-weight: 900; letter-spacing: 1.4px; }
.card-head h3 { margin: 0; font-size: 16px; }
.card-head p { margin: 7px 0 0; color: #969fb1; font-size: 10px; }
.text-button { color: #6173cf; border: 0; background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }
.quick-card { display: flex; flex-direction: column; }
.quick-card > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; color: #536078; border: 0; border-bottom: 1px solid #edf0f6; background: transparent; cursor: pointer; text-align: left; }
.quick-card > button:last-child { border-bottom: 0; }
.quick-card > button:hover strong { color: #536fdb; }
.quick-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 11px; font-size: 13px; font-weight: 900; }
.quick-icon.blue { color: #4e73e5; background: #edf2ff; } .quick-icon.purple { color: #865ee0; background: #f3efff; } .quick-icon.pink { color: #df6394; background: #fff0f6; }
.quick-card button > span:nth-child(2) { flex: 1; min-width: 0; }
.quick-card strong { display: block; color: #3d4860; font-size: 11px; transition: .2s; }
.quick-card small { display: block; margin-top: 4px; overflow: hidden; color: #9ba3b5; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.quick-card b { color: #a8b0c0; font-size: 12px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px; color: #939caf; border-bottom: 1px solid #e9edf4; font-size: 9px; font-weight: 800; text-align: left; white-space: nowrap; }
td { padding: 12px; color: #68738a; border-bottom: 1px solid #f0f2f7; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
.align-right { text-align: right; }
.file-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.file-cell-icon { display: grid; place-items: center; width: 35px; height: 40px; flex: 0 0 35px; color: var(--file-color, #5978e6); border-radius: 9px; background: color-mix(in srgb, var(--file-color, #5978e6) 10%, #fff); font-size: 8px; font-weight: 900; }
.file-cell strong { display: block; max-width: 270px; overflow: hidden; color: #38445c; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-cell small { display: block; max-width: 260px; overflow: hidden; margin-top: 3px; color: #a0a8ba; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.category-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; color: var(--tag-color, #68758e); border-radius: 999px; background: color-mix(in srgb, var(--tag-color, #68758e) 9%, #fff); font-size: 9px; font-weight: 800; white-space: nowrap; }
.category-pill i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-actions button { padding: 6px 8px; color: #6f7a92; border: 1px solid #e5e9f1; border-radius: 8px; background: #fff; cursor: pointer; font-size: 9px; font-weight: 700; }
.row-actions button:hover { color: #5471dc; border-color: #cbd6f6; background: #f7f9ff; }
.row-actions button.danger:hover { color: #d45176; border-color: #f2c9d6; background: #fff5f8; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 19px; border-bottom: 1px solid #edf0f5; }
.search-control { position: relative; width: min(390px, 100%); }
.search-control svg { position: absolute; left: 12px; top: 50%; width: 16px; fill: none; stroke: #97a0b3; stroke-width: 1.8; stroke-linecap: round; transform: translateY(-50%); }
.search-control input { height: 39px; padding-left: 38px; font-size: 10px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.toolbar-actions select { height: 39px; padding: 0 30px 0 11px; color: #5e6980; border: 1px solid #dfe4ee; border-radius: 10px; outline: 0; background: #fff; font-size: 10px; }
.empty-table { padding: 45px !important; color: #999faf; text-align: center; }
.mobile-file-list { display: none; }
.category-admin-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.category-admin-card { position: relative; overflow: hidden; padding: 17px; border: 1px solid #e8ebf2; border-radius: 15px; background: #fbfcff; }
.category-admin-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--category-color, #5273e6); }
.category-admin-head { display: flex; align-items: center; gap: 10px; }
.category-admin-head span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--category-color, #5273e6) 11%, #fff); font-size: 18px; }
.category-admin-head div { flex: 1; min-width: 0; }
.category-admin-head strong { display: block; overflow: hidden; color: #38445c; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.category-admin-head small { display: block; margin-top: 3px; color: #9ba3b5; font-size: 8px; }
.category-admin-card > p { min-height: 32px; margin: 13px 0; color: #8992a6; font-size: 9px; line-height: 1.7; }
.category-admin-foot { display: flex; align-items: center; justify-content: space-between; }
.category-admin-foot span { color: #929bad; font-size: 9px; }
.category-admin-foot div { display: flex; gap: 5px; }
.category-admin-foot button { padding: 6px 9px; color: #6a758e; border: 1px solid #e2e6ee; border-radius: 8px; background: #fff; cursor: pointer; font-size: 9px; font-weight: 700; }
.category-admin-foot button:hover { color: #5270d7; border-color: #cad4f4; }
.category-admin-foot button.danger:hover { color: #d24e76; border-color: #f0c8d5; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 16px; }
.settings-form, .security-form { padding: 21px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid.three { grid-template-columns: 90px 1fr 90px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 17px; border-top: 1px solid #edf0f5; }
.settings-preview { position: sticky; top: 102px; padding: 21px; border-radius: 18px; background: linear-gradient(145deg, #eef3ff, #f4efff 55%, #fff0f7); }
.settings-preview > span { color: #929bb0; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.preview-brand { display: flex; align-items: center; gap: 10px; margin: 17px 0; }
.preview-brand b { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; border-radius: 12px; background: linear-gradient(135deg, #6584ee, #a263dc); }
.preview-brand strong { display: block; font-size: 13px; }
.preview-brand small { display: block; margin-top: 3px; color: #8992aa; font-size: 8px; }
.settings-preview > i { display: block; width: 100%; height: 8px; margin: 9px 0; border-radius: 8px; background: rgba(255,255,255,.75); }
.settings-preview > i:nth-of-type(1) { width: 86%; } .settings-preview > i:nth-of-type(2) { width: 68%; }
.settings-preview p { margin: 17px 0 0; padding: 12px; color: #6f7992; border-radius: 11px; background: rgba(255,255,255,.64); font-size: 9px; line-height: 1.7; }
.security-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 16px; }
.security-note { padding: 23px; background: linear-gradient(145deg, #f8faff, #f6f1ff); }
.shield-icon { display: grid; place-items: center; width: 45px; height: 45px; color: #fff; border-radius: 14px; background: linear-gradient(135deg, #5e7ce7, #8a62dd); box-shadow: 0 11px 25px rgba(90, 104, 205, .23); font-size: 18px; font-weight: 900; }
.security-note h3 { margin: 18px 0 8px; font-size: 15px; }
.security-note p { margin: 0; color: #788299; font-size: 10px; line-height: 1.75; }
.security-note ul { display: grid; gap: 9px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid #e7e9f4; list-style: none; }
.security-note li { position: relative; padding-left: 17px; color: #68738b; font-size: 10px; }
.security-note li::before { content: "✓"; position: absolute; left: 0; color: #20b47e; font-weight: 900; }
.admin-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: .2s ease; }
.admin-modal.open { visibility: visible; opacity: 1; }
.modal-mask { position: absolute; inset: 0; background: rgba(19, 28, 50, .56); backdrop-filter: blur(5px); }
.modal-dialog { position: relative; z-index: 1; width: min(680px, 100%); max-height: calc(100vh - 48px); overflow: auto; padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(27, 38, 70, .26); transform: translateY(10px) scale(.99); transition: .2s ease; }
.admin-modal.open .modal-dialog { transform: none; }
.small-dialog { width: min(570px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.modal-head small { display: block; margin-bottom: 4px; color: #98a3bb; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.modal-head h3 { margin: 0; font-size: 18px; }
.modal-head button { display: grid; place-items: center; width: 32px; height: 32px; color: #8590a7; border: 0; border-radius: 9px; background: #f3f5f9; cursor: pointer; font-size: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 9px; padding-top: 17px; border-top: 1px solid #edf0f5; }
.file-drop { display: grid; place-items: center; min-height: 130px; padding: 18px; border: 1px dashed #bdc9ea; border-radius: 15px; background: #f8faff; cursor: pointer; text-align: center; transition: .2s ease; }
.file-drop:hover, .file-drop.dragging { border-color: #7d98e8; background: #f2f6ff; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px; color: #5574df; border-radius: 12px; background: #e9efff; font-size: 18px; font-weight: 900; }
.file-drop strong { color: #4c5870; font-size: 11px; }
.file-drop small { margin-top: 5px; color: #9ba4b7; font-size: 9px; font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 200; max-width: calc(100% - 40px); padding: 12px 17px; color: #fff; border-radius: 12px; background: #263552; box-shadow: 0 15px 36px rgba(24, 33, 60, .25); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #b84c6d; }
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-grid, .settings-layout { grid-template-columns: 1fr; }
  .settings-preview { position: static; display: none; }
  .category-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { min-height: 100vh; }
  .mobile-login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 38px; }
  .mobile-login-brand .login-logo { width: 40px; height: 40px; color: #fff; background: linear-gradient(135deg, #6683ed, #9e63db); }
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; }
  .admin-view.menu-open .sidebar { transform: none; }
  .admin-main { margin-left: 0; }
  .mobile-menu { display: inline-flex; margin-right: 10px; color: #617089; cursor: pointer; }
  .admin-topbar { padding: 12px 17px; }
  .admin-topbar > div:first-child { display: flex; align-items: center; }
  .admin-topbar p { display: none; }
  .top-actions > span:not(.online-dot) { display: none; }
  .top-actions button { margin-left: 5px; }
  .admin-content { padding: 18px 15px 35px; }
  .kpi-grid { gap: 10px; }
  .kpi-card { min-height: 94px; padding: 15px; }
  .kpi-card strong { font-size: 19px; }
  .category-admin-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .section-toolbar { align-items: stretch; flex-direction: column; }
  .search-control { width: 100%; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions select { flex: 1; }
  .file-table-wrap { display: none; }
  .mobile-file-list { display: grid; gap: 10px; padding: 13px; }
  .mobile-file-card { padding: 14px; border: 1px solid #e8ebf2; border-radius: 13px; background: #fbfcff; }
  .mobile-file-card .file-cell { min-width: 0; }
  .mobile-file-card .file-cell strong, .mobile-file-card .file-cell small { max-width: calc(100vw - 110px); }
  .mobile-file-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0; color: #9099ad; font-size: 9px; }
}
@media (max-width: 560px) {
  .login-panel { padding: 24px; }
  .admin-topbar h1 { font-size: 15px; }
  .top-actions button { padding: 10px 11px; }
  .kpi-grid { grid-template-columns: 1fr; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .modal-dialog { padding: 17px; }
  .admin-modal { padding: 12px; }
}
