:root {
    --system-green-950: #092c25;
    --system-green-900: #0d3b31;
    --system-green-800: #115446;
    --system-green-700: #14705b;
    --system-green-600: #178a6e;
    --system-green-100: #dff5ed;
    --system-green-50: #f0faf6;
    --system-ink: #17251f;
    --system-muted: #66756e;
    --system-line: #dce7e2;
    --system-page: #f3f7f5;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--system-ink); font-family: Arial, sans-serif; }

.system-login-page {
    background: var(--system-green-950);
}

.system-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 1fr) minmax(390px, 540px);
}

.system-login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 52px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 85%, rgba(40, 190, 143, .24), transparent 34%),
        linear-gradient(145deg, var(--system-green-800), var(--system-green-950));
}

.system-login-brand-panel::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -170px;
    top: -160px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, .025), 0 0 0 160px rgba(255, 255, 255, .018);
}

.system-login-brand, .system-brand { display: flex; align-items: center; gap: 15px; color: inherit; text-decoration: none; }
.system-login-logo, .system-brand-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border-radius: 14px;
    background: #fff;
    color: var(--system-green-700);
    font-size: 28px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.system-login-logo { width: 116px; height: 116px; flex-basis: 116px; }
.system-login-brand strong, .system-login-brand span { display: block; }
.system-login-logo img { width: 100%; height: 100%; padding: 4px; border-radius: inherit; object-fit: contain; }
.system-brand-icon img { width: 100%; height: 100%; padding: 3px; border-radius: inherit; object-fit: contain; }
.system-login-brand strong { font-size: 30px; line-height: 1; }
.system-login-brand span { margin-top: 4px; color: #bfe0d4; font-size: 15px; font-weight: 700; }
.system-login-copy { position: relative; z-index: 1; max-width: 650px; }
.system-login-copy p, .system-eyebrow { color: #65d2ad; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.system-login-copy h1 { max-width: 620px; margin: 14px 0 20px; font-size: clamp(38px, 5vw, 62px); line-height: 1.05; font-weight: 800; }
.system-login-copy > span { display: block; max-width: 560px; color: #c4ddd4; font-size: 18px; line-height: 1.65; }
.system-login-brand-panel > small { position: relative; z-index: 1; color: #a7cbbf; }
.system-login-brand-panel > small i { margin-right: 7px; color: #65d2ad; }

.system-login-form-panel { display: grid; place-items: center; padding: 34px; background: #f5f8f6; }
.system-login-card { width: min(100%, 420px); }
.system-login-card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 25px; border-radius: 13px; background: var(--system-green-100); color: var(--system-green-700); font-size: 27px; }
.system-login-card-header { margin-bottom: 28px; }
.system-login-card-header > span { color: var(--system-green-700); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.system-login-card-header h2 { margin: 8px 0; font-size: 31px; font-weight: 800; }
.system-login-card-header p { margin: 0; color: var(--system-muted); line-height: 1.5; }
.system-login-card .form-label { font-size: 14px; font-weight: 700; }
.system-input-icon { position: relative; }
.system-input-icon i { position: absolute; z-index: 1; top: 50%; left: 15px; color: #71827a; transform: translateY(-50%); }
.system-input-icon .form-control { min-height: 51px; padding-left: 44px; border-color: var(--system-line); border-radius: 9px; }
.system-input-icon .form-control:focus { border-color: var(--system-green-600); box-shadow: 0 0 0 .2rem rgba(23, 138, 110, .14); }
.system-login-alert { display: flex; gap: 9px; margin-bottom: 20px; padding: 13px; border: 1px solid #f1c8c8; border-radius: 9px; background: #fff1f1; color: #9c3333; font-size: 14px; font-weight: 700; }
.system-login-submit { width: 100%; min-height: 52px; border: 0; border-radius: 9px; background: var(--system-green-700); color: #fff; font-weight: 800; }
.system-login-submit:hover { background: var(--system-green-800); color: #fff; }
.system-back-link { display: block; margin-top: 22px; color: var(--system-muted); text-align: center; text-decoration: none; font-size: 14px; font-weight: 700; }
.system-back-link:hover { color: var(--system-green-700); }

.system-page { background: var(--system-page); }
.system-layout { min-height: 100vh; }
.system-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 280px; display: flex; flex-direction: column; padding: 25px 18px 18px; color: #fff; background: linear-gradient(180deg, var(--system-green-900), var(--system-green-950)); }
.system-brand { padding: 0 10px 26px; }
.system-brand-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 12px; font-size: 23px; }
.system-brand strong, .system-brand small { display: block; }
.system-brand strong { font-size: 25px; line-height: 1; }
.system-brand small { margin-top: 4px; color: #9bc4b6; font-weight: 700; }
.system-nav { flex: 1; overflow-y: auto; }
.system-nav-label { display: block; padding: 22px 13px 8px; color: #76a797; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.system-nav a { display: flex; align-items: center; gap: 13px; min-height: 48px; margin-bottom: 5px; padding: 10px 13px; border-radius: 9px; color: #c9ddd6; text-decoration: none; font-weight: 700; }
.system-nav a > i { width: 24px; font-size: 19px; text-align: center; }
.system-nav a:hover, .system-nav a.active { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 3px 0 #4bd1a4; }
.system-sidebar-footer { display: flex; align-items: center; gap: 11px; padding: 15px 10px 3px; border-top: 1px solid rgba(255,255,255,.1); }
.system-technician-avatar { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 10px; background: #45c69b; color: #063b2e; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.system-sidebar-footer strong, .system-sidebar-footer small { display: block; max-width: 178px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.system-sidebar-footer strong { font-size: 13px; }.system-sidebar-footer small { margin-top: 3px; color: #8fb9ab; font-size: 11px; }
.system-main { min-height: 100vh; margin-left: 280px; display: flex; flex-direction: column; }
.system-topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 34px; border-bottom: 1px solid var(--system-line); background: #fff; }
.system-topbar h1 { margin: 4px 0 0; font-size: 24px; font-weight: 800; }
.system-topbar-actions { display: flex; align-items: center; gap: 10px; }
.system-notification-dropdown { position: relative; }
.system-notification-dropdown > summary { list-style: none; }
.system-notification-dropdown > summary::-webkit-details-marker { display: none; }
.system-notification-button { position: relative; display: grid; place-items: center; width: 42px; height: 42px; cursor: pointer; border: 1px solid var(--system-line); border-radius: 9px; color: #53645c; background: #fff; font-size: 18px; }
.system-notification-button:hover, .system-notification-dropdown[open] .system-notification-button { border-color: var(--system-green-600); color: var(--system-green-700); background: var(--system-green-50); }
.system-notification-button > span { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border: 2px solid #fff; border-radius: 999px; color: #fff; background: #c84848; font-size: 10px; font-weight: 900; line-height: 15px; text-align: center; }
.system-notification-menu { position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: min(390px, calc(100vw - 32px)); overflow: hidden; border: 1px solid var(--system-line); border-radius: 12px; background: #fff; box-shadow: 0 18px 45px rgba(9, 44, 37, .18); }
.system-notification-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid #e8efec; background: #f8fbf9; }
.system-notification-header strong, .system-notification-header small { display: block; }.system-notification-header strong { font-size: 14px; }.system-notification-header small { margin-top: 2px; color: var(--system-muted); font-size: 11px; }
.system-notification-header form { flex: 0 0 auto; }.system-notification-header button { padding: 5px 7px; border: 0; color: var(--system-green-700); background: transparent; font-size: 11px; font-weight: 800; }.system-notification-header button:hover { color: var(--system-green-900); }
.system-notification-list { max-height: 390px; overflow-y: auto; }
.system-notification-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #edf2ef; color: inherit; text-decoration: none; }.system-notification-item:last-child { border-bottom: 0; }.system-notification-item:hover { background: #f8fbf9; }
.system-notification-item > i { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: #fff1d5; color: #9b6810; }.system-notification-item.is-danger > i { background: #fde8e8; color: #ad3737; }
.system-notification-item span { min-width: 0; }.system-notification-item strong, .system-notification-item small { display: block; }.system-notification-item strong { font-size: 13px; }.system-notification-item small { margin-top: 3px; color: var(--system-muted); font-size: 11px; line-height: 1.4; }
.system-notification-empty { padding: 24px 16px; color: var(--system-muted); font-size: 13px; text-align: center; }.system-notification-empty i { margin-right: 6px; color: var(--system-green-600); }
.system-logout { border: 1px solid var(--system-line); color: #53645c; font-weight: 700; }.system-logout:hover { border-color: var(--system-green-600); color: var(--system-green-700); }
.system-content { flex: 1; padding: 32px 34px; }
.system-footer { padding: 18px 34px; color: #819088; font-size: 12px; }
.system-welcome { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 25px; padding: 26px 28px; border: 1px solid #cfe5dc; border-radius: 13px; background: linear-gradient(115deg, #fff, var(--system-green-50)); }
.system-welcome span, .system-panel-heading span { color: var(--system-green-700); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.system-welcome h2 { margin: 7px 0 5px; font-size: 25px; font-weight: 800; }.system-welcome p { margin: 0; color: var(--system-muted); }
.system-status { flex: 0 0 auto; padding: 10px 14px; border: 1px solid #bde3d4; border-radius: 999px; background: #e9f8f2; color: #176d54; font-size: 13px; font-weight: 800; }
.system-status i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #25a979; box-shadow: 0 0 0 4px rgba(37,169,121,.12); }
.system-status.is-warning { border-color: #edd39b; background: #fff8e8; color: #8b6416; }
.system-status.is-warning i { background: #d99b24; box-shadow: 0 0 0 4px rgba(217,155,36,.13); }
.system-stat, .system-panel { border: 1px solid var(--system-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 25px rgba(20, 54, 42, .045); }
.system-stat { min-height: 125px; display: flex; align-items: center; gap: 16px; padding: 21px; }
.system-stat-icon { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; border-radius: 12px; background: var(--system-green-100); color: var(--system-green-700); font-size: 23px; }
.system-stat small, .system-stat strong, .system-stat div > span { display: block; }.system-stat small { color: var(--system-muted); font-weight: 700; }.system-stat strong { margin: 3px 0; font-size: 23px; }.system-stat div > span { color: #87948e; font-size: 12px; }
.system-panel { padding: 24px; }
.system-panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.system-panel-heading h3 { margin: 5px 0 0; font-size: 20px; font-weight: 800; }.system-panel-heading > i { color: #a1b0a9; font-size: 24px; }
.system-details { margin: 0; }.system-details > div { display: grid; grid-template-columns: 175px 1fr; gap: 18px; padding: 13px 0; border-top: 1px solid #edf2ef; }.system-details dt { color: var(--system-muted); font-size: 13px; }.system-details dd { margin: 0; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.system-actions a { display: flex; align-items: center; gap: 13px; padding: 15px 4px; border-top: 1px solid #edf2ef; color: inherit; text-decoration: none; }.system-actions a > i:first-child { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 9px; background: var(--system-green-100); color: var(--system-green-700); }.system-actions a > span { flex: 1; }.system-actions strong, .system-actions small { display: block; }.system-actions strong { font-size: 14px; }.system-actions small { margin-top: 3px; color: var(--system-muted); font-size: 12px; }.system-actions a > i:last-child { color: #a7b4ae; }.system-actions a:hover strong { color: var(--system-green-700); }
.system-users-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.system-form { display: grid; gap: 10px; }
.system-form .form-label { margin: 5px 0 0; color: var(--system-muted); font-size: 13px; font-weight: 800; }
.system-form .form-control, .system-form .form-select { min-height: 47px; border-color: var(--system-line); border-radius: 8px; }
.system-form .form-control:focus, .system-form .form-select:focus { border-color: var(--system-green-600); box-shadow: 0 0 0 .2rem rgba(23, 138, 110, .13); }
.system-form small, .system-form-note { color: var(--system-muted); font-size: 13px; }
.system-form-note { margin: -5px 0 18px; }
.system-primary-button, .system-warning-button { min-height: 46px; margin-top: 10px; border: 0; color: #fff; font-weight: 800; }
.system-primary-button { background: var(--system-green-700); }.system-primary-button:hover { background: var(--system-green-800); color: #fff; }
.system-warning-button { background: #b27616; }.system-warning-button:hover { background: #8d5b0d; color: #fff; }
.system-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.system-form-wide { grid-column: 1 / -1; }
.system-user-table { margin-bottom: 0; }.system-user-table th { color: var(--system-muted); font-size: 12px; }.system-user-table td { font-size: 14px; }
.system-you-badge { margin-left: 8px; padding: 3px 7px; border-radius: 999px; background: var(--system-green-100); color: var(--system-green-700); font-size: 10px; font-weight: 900; }
.system-section-heading { margin: 6px 0 18px; }.system-section-heading > span { color: var(--system-green-700); font-size: 10px; font-weight: 900; letter-spacing: .12em; }.system-section-heading h2 { margin: 6px 0; font-size: 24px; font-weight: 800; }.system-section-heading p { margin: 0; color: var(--system-muted); }
.system-resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.system-resource-card { padding: 22px; border: 1px solid var(--system-line); border-radius: 12px; background: #fff; box-shadow: 0 8px 25px rgba(20, 54, 42, .045); }
.system-resource-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }.system-resource-heading span { color: var(--system-muted); font-size: 13px; font-weight: 800; }.system-resource-heading span i { margin-right: 7px; color: var(--system-green-700); font-size: 18px; }.system-resource-heading strong { font-size: 24px; }
.system-progress { height: 8px; overflow: hidden; margin: 17px 0 12px; border-radius: 999px; background: #e7efeb; }.system-progress i { display: block; height: 100%; max-width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--system-green-600), #48c99e); }
.system-resource-card small { color: var(--system-muted); font-size: 12px; }
.system-service-list { border-top: 1px solid #edf2ef; }.system-service-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px 2px; border-bottom: 1px solid #edf2ef; }.system-service-row:last-child { border-bottom: 0; }.system-service-row strong, .system-service-row small { display: block; }.system-service-row strong { font-size: 14px; }.system-service-row small { margin-top: 3px; color: var(--system-muted); font-size: 12px; }
.system-service-dot { width: 10px; height: 10px; border-radius: 50%; }.system-service-dot.is-ok { background: #21a474; box-shadow: 0 0 0 4px rgba(33,164,116,.12); }.system-service-dot.is-warning { background: #d69a27; box-shadow: 0 0 0 4px rgba(214,154,39,.12); }.system-service-dot.is-danger { background: #cf4b4b; box-shadow: 0 0 0 4px rgba(207,75,75,.12); }
.system-service-badge { padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }.system-service-badge.is-ok { background: #e4f6ef; color: #177352; }.system-service-badge.is-warning { background: #fff3d8; color: #8a6213; }.system-service-badge.is-danger { background: #fde8e8; color: #a63737; }
.system-backup-action > p { min-height: 42px; color: var(--system-muted); font-size: 14px; line-height: 1.5; }
.system-automatic-backup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.system-automatic-backup-grid > div { padding: 14px; border: 1px solid #e6eeea; border-radius: 9px; background: #f9fbfa; }
.system-automatic-backup-grid small, .system-automatic-backup-grid strong, .system-automatic-backup-grid span { display: block; }.system-automatic-backup-grid small { color: var(--system-muted); font-size: 11px; font-weight: 800; }.system-automatic-backup-grid strong { margin-top: 5px; font-size: 13px; }.system-automatic-backup-grid span { margin-top: 4px; color: var(--system-muted); font-size: 11px; }
.system-automatic-backup-grid .system-auto-status { grid-column: 1 / -1; }.system-auto-status i { margin-right: 5px; color: #a77a20; }.system-auto-status.is-ok i { color: var(--system-green-600); }.system-auto-status.is-error { border-color: #f0cccc; background: #fff7f7; }.system-auto-status.is-error i { color: #bd3f3f; }
.system-backup-type { display: inline-block; padding: 4px 7px; border-radius: 999px; background: var(--system-green-100); color: var(--system-green-700); font-size: 10px; font-weight: 900; }
.system-backup-action form:not(.system-form) { margin-top: 22px; }
.system-tool-warning { margin-top: 15px; padding: 11px 12px; border-radius: 8px; background: #fff3d8; color: #805a12; font-size: 12px; font-weight: 800; }
.system-backup-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.system-restore-confirm { width: min(100%, 470px); margin-top: 12px; padding: 14px; border: 1px solid #efc5c5; border-radius: 9px; background: #fff7f7; }
.system-restore-confirm strong, .system-restore-confirm span { display: block; }.system-restore-confirm strong { color: #a13636; font-size: 13px; }.system-restore-confirm span { margin: 4px 0 10px; color: #785d5d; font-size: 12px; }
.system-restore-confirm form { display: flex; gap: 8px; }.system-restore-confirm .form-control { max-width: 190px; }

@media (max-width: 900px) {
    .system-login-shell { grid-template-columns: 1fr; }
    .system-login-brand-panel { min-height: 360px; padding: 35px; }
    .system-login-copy h1 { font-size: 38px; }
    .system-sidebar { position: static; width: 100%; min-height: auto; }
    .system-nav { display: flex; flex-wrap: wrap; }.system-nav-label { display: none; }.system-nav a { flex: 1 1 180px; }
    .system-sidebar-footer { display: none; }.system-main { margin-left: 0; }
    .system-users-grid { grid-template-columns: 1fr; }
    .system-resource-grid { grid-template-columns: 1fr; }
    .system-automatic-backup-grid { grid-template-columns: 1fr; }.system-automatic-backup-grid .system-auto-status { grid-column: auto; }
}

@media (max-width: 600px) {
    .system-login-brand-panel { min-height: 320px; padding: 26px; }.system-login-brand-panel > small { display: none; }
    .system-login-form-panel { padding: 34px 22px; }.system-topbar, .system-content { padding-left: 20px; padding-right: 20px; }
    .system-welcome { align-items: flex-start; flex-direction: column; }.system-status { white-space: normal; }
    .system-details > div { grid-template-columns: 1fr; gap: 5px; }.system-logout { font-size: 0; }.system-logout i { font-size: 17px; }
    .system-form-grid { grid-template-columns: 1fr; }.system-form-wide { grid-column: auto; }
    .system-notification-menu { position: fixed; top: 82px; right: 16px; }
}
