:root {
    --primary: #169f95;
    --secondary: #169f95;
    --accent: #fff;
    --primary-fg: #fff;
    --body-fg: #334155;
    --body-bg: #f3f5f7;
    --body-quiet-color: #718096;
    --body-loud-color: #1e293b;
    --header-color: #fff;
    --header-branding-color: #fff;
    --header-bg: #169f95;
    --header-link-color: #fff;
    --breadcrumbs-fg: #7b8794;
    --breadcrumbs-link-fg: #64748b;
    --breadcrumbs-bg: #fff;
    --link-fg: #12877e;
    --link-hover-color: #09675f;
    --link-selected-fg: #09675f;
    --hairline-color: #edf0f3;
    --border-color: #e1e6ec;
    --darkened-bg: #f7f9fb;
    --selected-bg: #edf7f5;
    --selected-row: #edf7f5;
    --button-bg: #159d92;
    --button-hover-bg: #11877d;
    --default-button-bg: #159d92;
    --default-button-hover-bg: #11877d;
    --close-button-bg: #718096;
    --delete-button-bg: #dc5c5c;
    --delete-button-hover-bg: #bd4141;
    --object-tools-fg: #fff;
    --object-tools-bg: #159d92;
    --object-tools-hover-bg: #11877d;
    --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 13px; }
.magic-recharge-tabs { display: flex; gap: 22px; margin: 0 0 24px; border-bottom: 1px solid #dfe6ec; }
.magic-recharge-tabs a { padding: 10px 4px; color: #64748b; border-bottom: 2px solid transparent; }
.magic-recharge-tabs a[aria-current] { color: #12877e; border-bottom-color: #169f95; }
.magic-card-export { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.magic-card-code { font-family: Consolas, monospace; user-select: all; white-space: nowrap; }
.model-rechargecard #result_list { min-width: 1420px; }
.model-rechargecard #result_list td.field-duration_label { min-width: 125px; }
.model-rechargecard #result_list td.field-state { min-width: 75px; white-space: nowrap; }
.model-rechargecard #result_list td.field-snapshot_type { min-width: 110px; }
.model-rechargecard #result_list td.field-note { min-width: 140px; }
body:not(.popup) #container { display: block; min-height: 100vh; padding-top: 64px; }
body:not(.popup) #header { position: fixed; top: 0; left: 0; z-index: 1100; display: flex; flex-direction: row; align-items: center; width: 100%; height: 64px; padding: 0 26px 0 0; gap: 0; box-shadow: 0 1px 4px #162b4010; }
#branding { display: flex; align-items: center; flex-shrink: 0; }
#header .magic-brand { display: flex; align-items: center; gap: 12px; width: 224px; height: 64px; padding: 0 22px; background: #263547; font-size: 19px; font-weight: 650; color: #fff; text-decoration: none; }
.magic-brand small { display: block; margin-top: 1px; font-size: 10px; font-weight: 400; letter-spacing: 2px; color: #aebdcd; }
.magic-logo { display: grid; place-items: center; width: 33px; height: 35px; flex-shrink: 0; background: #169f95; clip-path: polygon(50% 0, 100% 24%, 100% 76%, 50% 100%, 0 76%, 0 24%); font-size: 20px; font-weight: 750; }
.magic-nav-toggle { margin: 0 16px; width: 34px; height: 34px; padding: 0; background: transparent; border: 0; border-radius: 4px; color: #e1f5f2; font-size: 19px; cursor: pointer; }
.magic-nav-toggle:hover { background: #ffffff20; }
.magic-platform { font-size: 14px; font-weight: 600; order: 1; }
#header #user-tools { display: flex; align-items: center; gap: 16px; margin: 0 0 0 auto; padding: 0; order: 2; text-align: left; font-size: 12px; letter-spacing: 0; }
#header #user-tools a, #header #logout-form button { border: 0; color: #e1f4f1; font-size: 12px; }
#user-tools strong { margin-left: -8px; font-weight: 500; }
.magic-avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #ffffff24; font-size: 13px; color: white; }
#logout-form { display: inline-flex; }
#logout-form button { padding: 0; }
body:not(.popup) #main { display: block; margin-left: 224px; min-width: 0; }
body:not(.popup) #header + nav { margin-left: 224px; }
div.breadcrumbs { height: auto; min-height: 43px; padding: 13px 28px; border-bottom: 1px solid var(--border-color); line-height: 17px; font-size: 12px; }
div.breadcrumbs a { color: #64748b; }
#content { padding: 27px 28px 15px; width: auto; }
#content > h1 { margin: 0 0 26px; color: #243447; font-size: 22px; font-weight: 650; }
#content > h2 { color: #64748b; font-size: 14px; margin-top: -14px; }
#content-main { float: none; min-width: 0; width: 100%; }
#magic-sidebar { position: fixed; z-index: 1000; top: 64px; bottom: 0; left: 0; display: flex; flex-direction: column; width: 224px; overflow-y: auto; padding: 20px 0 0; background: #2e3e52; color: #b6c2d0; }
.magic-nav-caption { padding: 10px 24px; color: #899aaf; font-size: 10px; letter-spacing: 1.4px; }
.magic-nav-caption:not(:first-child) { margin-top: 18px; }
.magic-software-caption { margin-top: 18px; padding: 14px 24px; border-top: 1px solid #ffffff15; color: #f1f6fa; font-size: 13px; overflow-wrap: anywhere; }
.magic-software-caption { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.magic-software-caption > span { min-width: 0; }
.magic-software-switcher { position: relative; flex-shrink: 0; }
.magic-software-switcher summary { cursor: pointer; padding: 5px 7px; border: 1px solid #ffffff40; border-radius: 4px; font-size: 11px; list-style: none; }
.magic-software-switcher summary:hover { background: #ffffff15; }
.magic-software-switcher nav { position: absolute; right: 0; top: 100%; z-index: 10; margin-top: 6px; width: 174px; max-height: 280px; overflow-y: auto; background: #fff; border-radius: 4px; box-shadow: 0 4px 16px #0003; }
.magic-software-switcher nav a { display: block; padding: 10px 12px; color: #30445b; overflow-wrap: anywhere; }
.magic-software-switcher nav a:hover, .magic-software-switcher nav a[aria-current] { background: #e8f6f4; color: #087f77; }
#magic-sidebar .magic-subnav-item { padding-left: 31px; min-height: 43px; }
#magic-sidebar .magic-nav-item { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 0 24px; border-left: 3px solid transparent; color: #c7d2df; font-size: 13px; text-decoration: none; }
#magic-sidebar .magic-nav-item:hover { background: #26374a; color: #fff; }
#magic-sidebar .magic-nav-item.active { background: #169f95; color: #fff; border-left-color: #82e4d5; }
.magic-nav-icon { width: 18px; font-size: 20px; text-align: center; font-weight: 400; }
.magic-nav-chevron { margin-left: auto; font-size: 20px; color: #97acbf; }
.active .magic-nav-chevron { color: #d8f3ef; }
.magic-nav-backdrop { display: none; }
.magic-nav-collapsed #magic-sidebar { transform: translateX(-100%); }
body.magic-nav-collapsed #main, body.magic-nav-collapsed #header + nav { margin-left: 0; }
#footer { display: none; }
.magic-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.magic-page-heading h1 { margin: 0 0 7px; color: #243447; font-size: 24px; font-weight: 650; }
.magic-page-heading p { margin: 0; color: #7a8797; font-size: 13px; }
.magic-date { color: #82909f; font-size: 12px; white-space: nowrap; }
.magic-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-bottom: 23px; }
.magic-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px; border: 1px solid #e7ebf0; border-radius: 5px; background: #fff; color: #344256; text-decoration: none; box-shadow: 0 2px 4px #23385203; }
.magic-stat:hover { border-color: #a9d9d2; box-shadow: 0 3px 9px #23385209; }
.magic-stat-label { color: #788799; font-size: 12px; }
.magic-stat strong { display: block; margin: 9px 0; color: #233347; font-size: 30px; line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; }
.magic-stat small { color: #9aa5b1; font-size: 10px; }
.magic-stat-icon { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; font-size: 27px; }
.magic-stat-icon.teal { color: #1aa79a; background: #e4f6f2; }
.magic-stat-icon.blue { color: #4d92d2; background: #eaf2fc; }
.magic-stat-icon.green { color: #51ad80; background: #eaf7ed; }
.magic-stat-icon.orange { color: #d8a044; background: #fff6e7; }
.magic-dashboard-grid { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(240px,1fr); gap: 22px; }
.magic-panel { overflow: hidden; border: 1px solid #e4e9ef; border-radius: 5px; background: #fff; }
.magic-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 16px 21px; border-bottom: 1px solid #edf0f4; }
.magic-panel-heading h2 { margin: 0; padding: 0; background: none; font-size: 14px; font-weight: 600; color: #344256; }
.magic-panel-heading > span { color: #9aa6b3; font-size: 11px; }
.magic-panel-heading a { font-size: 11px; }
.magic-table-scroll { overflow-x: auto; }
table.magic-table { width: 100%; border-collapse: collapse; }
.magic-table th { background: #fafbfd; font-size: 11px; color: #8290a0; font-weight: 400; }
.magic-table th, .magic-table td { padding: 17px 20px; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
.magic-table td { font-size: 12px; color: #66788c; }
.magic-table tr:last-child td { border-bottom: 0; }
.magic-table .magic-username { color: #33455b; font-weight: 500; }
.magic-badge { display: inline-block; padding: 3px 9px; border-radius: 3px; font-size: 11px; }
.magic-badge.success { color: #189a77; background: #e9f7f0; }
.magic-badge.muted { color: #7e8998; background: #eff2f5; }
.magic-badge.danger { color: #c76d68; background: #fdf0ed; }
a.magic-table-action { color: #148f83; font-size: 12px; }
.magic-row-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 6px 13px; border-radius: 4px; background: #159d92; font-size: 12px; line-height: 20px; text-decoration: none; white-space: nowrap; }
a.magic-row-button:link, a.magic-row-button:visited { color: #fff; }
.magic-row-button:hover { background: #11877d; }
.magic-row-button.magic-danger-button, .magic-code-control button[data-reset-code] { background: #d95b5b; color: #fff; border: 1px solid transparent; }
.magic-row-button.magic-danger-button:hover, .magic-code-control button[data-reset-code]:hover { background: #bd4141; }
.magic-row-button:focus-visible, .magic-code-control button[data-reset-code]:focus-visible { outline: 2px solid #9a3333; outline-offset: 2px; }
.magic-shortcuts { padding: 4px 20px; }
.magic-shortcuts a { display: flex; align-items: center; gap: 13px; padding: 13px 0; color: #3c4c60; border-bottom: 1px solid #f0f3f6; font-size: 12px; }
.magic-shortcuts a:last-child { border: 0; }
.magic-shortcut-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 5px; font-size: 20px; color: #599c94; background: #f0f7f6; }
.magic-shortcuts small { display: block; margin-top: 4px; font-size: 10px; color: #9aa5b0; }
.magic-shortcut-arrow { margin-left: auto; color: #a2adb9; }
.magic-guide { grid-column: 1 / -1; }
.magic-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; padding: 25px 23px; }
.magic-steps > div { position: relative; padding-left: 43px; }
.magic-steps > div > span { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #c9e9e3; border-radius: 50%; color: #339f91; background: #f2faf8; font-size: 11px; }
.magic-steps h3 { margin: 0 0 6px; color: #536477; font-size: 12px; }
.magic-steps p { margin: 0; font-size: 11px; line-height: 1.8; color: #92a0af; }
.magic-info { margin: 0 22px 20px; padding: 12px 15px; border-left: 3px solid #65b7a9; background: #f3f9f7; color: #7e968e; font-size: 11px; }
.magic-empty { padding: 35px 20px !important; text-align: center; font-size: 12px; color: #8898aa; }
.module { border-radius: 4px; background: #fff; }
.module h2, .module caption, .inline-group h2 { padding: 13px 16px; border-bottom: 1px solid var(--border-color); background: #f7f9fb; color: #445569; font-size: 13px; }
.module caption a, .module caption a:link, .module caption a:visited { color: #445569; }
.object-tools { margin-top: -50px; padding: 0; }
.object-tools a:link, .object-tools a:visited { padding: 9px 15px; border-radius: 3px; font-size: 12px; font-weight: 400; }
.object-tools a.addlink { display: inline-flex; align-items: center; gap: 7px; background-image: none; font-family: var(--font-family-primary); line-height: 18px; letter-spacing: 0; }
.object-tools a.addlink::before { content: "+"; font-size: 18px; line-height: 18px; }
.object-tools li { height: auto; }
#changelist { min-height: 0; border: 1px solid var(--border-color); border-radius: 4px; overflow: hidden; }
#changelist .changelist-form-container { min-width: 0; }
#changelist #toolbar { margin: 0; padding: 18px; border: 0; border-bottom: 1px solid var(--border-color); background: #fff; }
#toolbar form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#toolbar form > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#toolbar form .small.quiet { flex-shrink: 0; }
#changelist #toolbar #searchbar { width: 240px; height: 34px; padding: 7px 10px; border-radius: 3px; border-color: #dfe5eb; }
#toolbar form input[type="submit"] { height: 34px; padding: 6px 20px; border: 1px solid #159d92; border-radius: 3px; background: #159d92; color: #fff; box-shadow: none; }
#changelist .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--border-color); background: #fafbfd; }
#changelist .actions label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; }
#changelist .actions select { width: 220px; max-width: 100%; height: 34px; margin: 0; padding: 5px 10px; border-color: #dce3eb; border-radius: 3px; font-size: 12px; line-height: 20px; background: #fff; }
#changelist .actions .button { height: 34px; padding: 0 14px; border-color: #dce3eb; border-radius: 3px; line-height: 32px; box-shadow: none; }
#changelist .actions .action-counter { margin: 0; font-size: 12px; }
#changelist table { width: 100%; }
#changelist table thead th { padding: 11px 12px; background: #f5f7f9; border-right: 1px solid #e8ecf1; color: #728195; font-size: 12px; font-weight: 400; }
#changelist table thead th .text a { padding: 0; color: #64748b; }
#changelist table thead th .text span { padding: 0; }
#changelist table tbody th, #changelist table tbody td { padding: 15px 12px; font-size: 12px; vertical-align: middle; border-color: #ebeff4; }
#changelist table tbody tr { background: #fff; }
#changelist table tbody tr:nth-child(even) { background: #fcfdfe; }
#changelist table tbody tr:hover { background: #f3faf8; }
.magic-switch-control { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.magic-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
#changelist .magic-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.magic-switch-track { position: relative; width: 38px; height: 22px; flex-shrink: 0; border-radius: 12px; background: #aab5c1; }
.magic-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.magic-switch input:checked + .magic-switch-track { background: #159d92; }
.magic-switch input:checked + .magic-switch-track::after { transform: translateX(16px); }
.magic-switch input:focus-visible + .magic-switch-track { outline: 2px solid #159d92; outline-offset: 3px; }
.magic-switch input:disabled + .magic-switch-track { opacity: 0.5; cursor: progress; }
.magic-switch-label { color: #617286; font-size: 12px; }
.magic-switch-feedback { color: #159d92; font-size: 11px; }
.magic-switch-feedback.error { color: #bf4545; }
#changelist .paginator { padding: 17px 18px; background: #fff; border-top: 1px solid var(--border-color); font-size: 12px; }
#changelist-filter { width: 195px; flex-basis: 195px; border-left: 1px solid var(--border-color); background: #fbfcfd; }
#changelist-filter h2 { padding: 14px 18px; background: #f5f7f9; color: #5d6d80; font-size: 12px; }
#changelist-filter h3 { margin: 18px 0 10px; padding: 0 18px; color: #687b90; font-size: 12px; }
#changelist-filter ul { padding: 0 18px; font-size: 12px; }
#changelist-filter li.selected { border-left-color: #159d92; }
#changelist-filter details { border-bottom: 1px solid #edf0f4; padding-bottom: 8px; }
#changelist-filter summary { padding: 10px 18px; font-size: 12px; }
.form-row { padding: 15px 20px; border-color: #edf0f4; }
.field-code .readonly { overflow-wrap: anywhere; user-select: all; }
.magic-code-control { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.magic-info-code .magic-code-control { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; width: 100%; }
.magic-info-code .magic-code-feedback { grid-column: 1 / -1; }
.magic-info-code .magic-code-feedback:empty { display: none; }
.magic-code-value { overflow-wrap: anywhere; user-select: all; }
.magic-code-feedback { font-size: 11px; color: #168575; }
.magic-code-control button { min-height: 32px; padding: 6px 12px; border-radius: 3px; cursor: pointer; }
.aligned label { color: #617286; font-weight: 500; }
input, textarea, select, .vTextField { border-radius: 3px; }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], textarea, select { background: #fff; color: #344256; }
input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus { outline: 2px solid #b0ded6; outline-offset: 1px; }
.submit-row { margin-top: 20px; padding: 16px 20px; border: 1px solid var(--border-color); border-radius: 4px; background: #fff; }
.submit-row input, .button, input[type="submit"], input[type="button"] { border-radius: 3px; }
.submit-row a.deletelink { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; height: auto; padding: 8px 16px; line-height: 20px; }
.change-form .submit-row { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; }
.change-form .submit-row input, .change-form .submit-row a.deletelink { display: inline-flex; align-items: center; justify-content: center; order: 0; float: none; width: auto; min-width: 64px; height: 36px; margin: 0; padding: 8px 16px; font-size: 12px; line-height: 20px; box-sizing: border-box; }
.magic-info-panel { background: #fff; border: 1px solid var(--border-color); border-radius: 5px; overflow: hidden; }
.magic-info-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 64px; gap: 20px; align-items: start; padding: 20px 24px; min-height: 76px; box-sizing: border-box; border-bottom: 1px solid #edf0f4; }
.magic-info-row:last-child { border-bottom: 0; }
.magic-info-label { color: #617286; padding-top: 8px; }
.magic-info-value { white-space: pre-wrap; overflow-wrap: anywhere; padding-top: 8px; line-height: 1.7; max-height: 180px; overflow-y: auto; }
.magic-info-value.magic-placeholder { color: #8a97a6; }
.magic-info-code { grid-column: 2 / -1; white-space: normal; max-height: none; padding-top: 0; }
.magic-field-edit { min-height: 36px; padding: 8px 14px; cursor: pointer; }
.magic-edit-dialog { width: min(600px, calc(100vw - 40px)); box-sizing: border-box; max-height: calc(100vh - 40px); padding: 0; border: 1px solid #dfe6ed; border-radius: 8px; color: #344256; background: #fff; box-shadow: 0 18px 60px #172b4d40; }
.magic-edit-dialog::backdrop { background: #14263870; }
.magic-dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid #edf0f4; }
.magic-dialog-header h2 { margin: 0; padding: 0; color: #243447; background: none; font-size: 18px; }
.magic-dialog-header button { background: transparent; border: 0; color: #617286; cursor: pointer; font-size: 24px; padding: 0 6px; }
.magic-dialog-body { padding: 24px; }
.magic-dialog-body label { display: block; margin-bottom: 10px; }
.magic-dialog-body input, .magic-dialog-body textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; line-height: 1.6; }
.magic-dialog-body textarea { min-height: 210px; resize: vertical; }
.magic-dialog-error { margin: 10px 0 0; color: #bf4545; }
.magic-dialog-error:empty { display: none; }
.magic-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #edf0f4; }
.magic-dialog-actions button { min-width: 72px; min-height: 36px; cursor: pointer; }
.magic-dialog-actions .magic-dialog-cancel { background: #eef2f6; color: #42556b; }
@media (max-width: 650px) { .magic-info-row { grid-template-columns: minmax(0, 1fr) 64px; gap: 10px; padding: 16px; } .magic-info-label { grid-column: 1 / -1; padding-top: 0; } .magic-info-code { grid-column: 1 / -1; } }
#content .button, #content input[type="submit"], #content input[type="button"], #content button[type="submit"], #content .object-tools a, #content .magic-row-button, #content a.deletelink {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; border: 1px solid transparent; border-radius: 6px; padding: 7px 14px; font: 500 12px/18px var(--font-family-primary); text-transform: none; letter-spacing: 0; cursor: pointer; box-shadow: none; transition: background-color .15s, border-color .15s, color .15s;
}
#content .button:focus-visible, #content input[type="submit"]:focus-visible, #content .object-tools a:focus-visible, #content .magic-row-button:focus-visible, #content a.deletelink:focus-visible { outline: 3px solid #a2d8d1; outline-offset: 2px; }
#content .button:disabled, #content input[type="submit"]:disabled { opacity: .55; cursor: wait; }
#content .magic-field-edit, #content [data-copy-code], #content .object-tools a:not(.addlink), #content .magic-row-button:not(.magic-danger-button), #content .magic-dialog-cancel { background: #f3f8f7; border-color: #d6e6e3; color: #28736a; }
#content .magic-field-edit:hover, #content [data-copy-code]:hover, #content .object-tools a:not(.addlink):hover, #content .magic-row-button:not(.magic-danger-button):hover, #content .magic-dialog-cancel:hover { background: #e5f3ef; border-color: #9ec9c1; color: #145e54; }
#content .magic-field-edit { padding: 7px 8px; gap: 4px; white-space: nowrap; }
#content .magic-field-edit::before { content: "✎"; font-size: 15px; line-height: 18px; flex-shrink: 0; }
#content .magic-danger-button, #content [data-reset-code], #content a.deletelink { background: #d95858; color: #fff; border-color: #d95858; }
#content .magic-danger-button:hover, #content [data-reset-code]:hover, #content a.deletelink:hover { background: #be4141; border-color: #be4141; }
#magic-field-editor > label { margin-top: 18px; }
.magic-dialog-body input[type="checkbox"] { width: 20px; height: 20px; accent-color: #159d92; }
.magic-dialog-body input:not([type="checkbox"]) { border: 1px solid #d8e2e8; border-radius: 6px; background: #fff; }
.magic-dialog-body input:focus-visible { border-color: #8bc4ba; outline: 2px solid #c4e6df; outline-offset: 1px; }
.help, p.help, .help li { font-size: 11px; line-height: 1.8; color: #8a98a9; }
ul.messagelist li { padding: 15px 28px 15px 50px; background-position: 28px 17px; }
body.login { background: #f2f5f7; }
body.login #container { padding-top: 0; min-height: 0; margin-top: 10vh; border: 1px solid #e0e7ed; border-radius: 8px; box-shadow: 0 12px 45px #253a5010; overflow: hidden; }
body.login #header { position: static; height: auto; padding: 0; }
body.login #branding, body.login #header .magic-brand { width: 100%; }
body.login #header .magic-brand { height: 86px; justify-content: center; background: #169f95; }
body.login .magic-brand small { color: #d4eee8; }
body.login .magic-logo { background: #ffffff24; }
body.login .magic-platform { display: none; }
body.login #main, body.login #footer { margin-left: 0; }
body.login #content { padding: 24px 28px; }
body.login #footer { padding: 0 28px 22px; text-align: center; }
body.login .form-row { padding: 8px 0; }
body.login .form-row input { padding: 10px; }
body.login .submit-row { padding: 12px 0 0; border: 0; }
body.login .submit-row input { width: 100%; }
body.popup #content { padding: 20px; }
body.popup #footer { margin-left: 0; }
@media (max-width: 1200px) {
    .magic-stat { padding: 18px 16px; }
    .magic-stat-icon { width: 36px; height: 39px; border-radius: 8px; font-size: 22px; }
    .magic-dashboard-grid { grid-template-columns: minmax(0,1.5fr) minmax(220px,1fr); }
    .magic-table th, .magic-table td { padding: 15px 13px; }
}
@media (max-width: 1050px) { .magic-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 900px) {
    #header .magic-brand { width: 190px; padding: 0 17px; }
    #header { padding-right: 16px !important; }
    .magic-platform { display: none; }
    #magic-sidebar { transform: translateX(-100%); }
    body.magic-nav-open #magic-sidebar { transform: translateX(0); }
    body:not(.popup) #main, body:not(.popup) #header + nav, #footer { margin-left: 0; }
    body.magic-nav-open .magic-nav-backdrop { display: block; position: fixed; z-index: 999; inset: 64px 0 0; border: 0; background: #14233266; }
    .magic-nav-toggle { margin: 0 12px; }
    .magic-dashboard-grid { grid-template-columns: minmax(0,1fr); }
    .magic-guide { grid-column: auto; }
    .magic-shortcuts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
    #changelist { display: flex; flex-direction: column; }
    #changelist-filter { position: static; width: auto; flex-basis: auto; border-left: 0; border-top: 1px solid var(--border-color); }
    #changelist-filter details { display: inline-block; min-width: 140px; vertical-align: top; }
    #content { padding: 22px 18px; }
    div.breadcrumbs { padding-left: 18px; }
}
@media (max-width: 600px) {
    #header .magic-brand { width: auto; min-width: 166px; padding: 0 13px; gap: 9px; font-size: 16px; }
    .magic-brand small { font-size: 9px; }
    .magic-logo { width: 27px; height: 30px; font-size: 17px; }
    #header #user-tools { gap: 10px; }
    #user-tools .magic-avatar, #user-tools > strong, #user-tools > a { display: none; }
    .magic-nav-toggle { margin: 0 8px; }
    .magic-date { display: none; }
    .magic-page-heading h1 { font-size: 21px; }
    .magic-page-heading p { font-size: 11px; }
    .magic-stats { gap: 12px; }
    .magic-stat { padding: 16px 13px; }
    .magic-stat-icon { display: none; }
    .magic-stat strong { font-size: 26px; }
    .magic-stat small { font-size: 9px; }
    .magic-steps { grid-template-columns: minmax(0,1fr); gap: 23px; }
    .magic-shortcuts { grid-template-columns: minmax(0,1fr); }
    .object-tools { float: none; margin: 0 0 16px; }
    .object-tools li { float: none; display: inline-block; }
    #content > h1 { margin-bottom: 18px; }
    #changelist #toolbar #searchbar { width: 190px; max-width: 100%; }
    #changelist .actions label { flex-wrap: wrap; max-width: 100%; font-size: 11px; }
    .aligned .form-row > div { flex-wrap: wrap; }
    .aligned label { width: 100%; }
    .form-row { padding: 13px; }
    .submit-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .submit-row > * { margin: 0; }
    body.login #container { width: calc(100% - 32px); margin-top: 6vh; }
}
