:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f4f4f4;
  background: #0e0e0e;
  font-synthesis: none;
  --bg: #0e0e0e;
  --panel: #151515;
  --raised: #1c1c1c;
  --line: #2e2e2e;
  --muted: #a2a6a3;
  --green: #008c45;
  --green-light: #50d28b;
  --danger: #ff9696;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, a { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--green-light); }
::selection { background: #185c37; color: white; }
* { scrollbar-color: #454a46 #151515; scrollbar-width: thin; }
input { caret-color: var(--green-light); }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -.012em; }
h3 { font-size: 15px; font-weight: 600; }
p { font-size: 14px; line-height: 1.65; }
.muted, .help { color: var(--muted); }
.small { font-size: 12px; }
.skip-link { position: fixed; left: 16px; top: -60px; background: var(--green); padding: 12px 18px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.initial-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #38413b; border-top-color: var(--green-light); border-radius: 50%; animation: rotate .8s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; width: fit-content; }
.brand img { width: 33px; height: 33px; }
.brand-name { font-size: 18px; font-weight: 650; letter-spacing: -.025em; }
.brand-subtitle { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: .08em; }
.button { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 7px; background: #202020; color: #f7f7f7; font-size: 13px; font-weight: 600; text-decoration: none; line-height: 1.45; transition: background .15s, border-color .15s; }
.button:hover:not(:disabled) { background: #292929; border-color: #4a4a4a; }
.button.primary { background: #007f3e; border-color: #007f3e; color: #fff; }
.button.primary:hover:not(:disabled) { background: #00813f; border-color: #00813f; }
.button.ghost { background: transparent; }
.button.ghost:hover:not(:disabled) { background: #202020; }
.button.danger { color: var(--danger); background: #2c1b1b; border-color: #603434; }
.button.danger:hover:not(:disabled) { background: #452222; }
.button.compact { min-height: 34px; padding: 7px 11px; font-size: 12px; }
.button.full { width: 100%; }
.button svg { width: 17px; height: 17px; }
.text-button { padding: 0; border: 0; color: var(--green-light); background: none; font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: #8ae7b0; }
.auth-shell { max-width: 1320px; min-height: 100vh; margin: auto; padding: 36px 64px 24px; display: flex; flex-direction: column; }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.auth-header > p { font-size: 12px; color: var(--muted); }
.auth-main { flex: 1; display: grid; grid-template-columns: 1fr 420px; gap: 100px; align-items: center; padding: 74px 0; }
.auth-intro { max-width: 520px; }
.auth-intro h1 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1.12; font-weight: 600; letter-spacing: -.04em; }
.auth-intro h1 span { display: block; color: var(--green-light); }
.auth-intro > p { max-width: 370px; margin-top: 25px; color: #b3b6b4; font-size: 16px; line-height: 1.7; }
.intro-features { margin-top: 44px; display: flex; flex-direction: column; gap: 17px; }
.intro-features p { display: flex; align-items: center; gap: 12px; color: #cbcfcc; font-size: 13px; }
.intro-features svg { color: #7dbb94; width: 18px; height: 18px; }
.auth-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 32px; }
.auth-panel h2 { font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.auth-panel > p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.segmented { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #101010; }
.segmented button { flex: 1; min-height: 37px; border: 1px solid transparent; border-radius: 5px; padding: 7px 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; }
.segmented button[aria-pressed="true"] { background: #282828; border-color: #343434; color: white; }
.segmented button:hover { color: white; }
.auth-panel .segmented { margin: 26px 0; }
.auth-panel .registration-closed { margin-bottom: 24px; }
.form { display: flex; flex-direction: column; gap: 19px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; color: #e5e8e6; font-weight: 600; }
.field input, .field select, .search-input { width: 100%; min-height: 45px; background: #101010; color: #f5f5f5; border: 1px solid #383838; border-radius: 7px; padding: 11px 13px; font-size: 14px; }
input::placeholder { color: #888e8a; opacity: 1; }
.field input:focus, .field select:focus, .search-input:focus { outline: none; border-color: #51bc7d; box-shadow: 0 0 0 3px #173322; }
.field input:disabled { color: var(--muted); }
.help { font-size: 12px; line-height: 1.6; }
.password-wrap { display: flex; position: relative; }
.password-wrap input { padding-right: 45px; }
.password-toggle { display: flex; justify-content: center; align-items: center; position: absolute; right: 4px; top: 4px; bottom: 4px; width: 37px; border: 0; border-radius: 4px; background: transparent; color: #aeb5b0; }
.password-toggle:hover { background: #242424; }
.password-toggle svg { width: 18px; height: 18px; }
.form-status { color: var(--danger); background: #2d1c1c; border: 1px solid #533131; padding: 11px 13px; border-radius: 6px; font-size: 12px; line-height: 1.6; }
.form-footer { border-top: 1px solid var(--line); margin-top: 25px; padding-top: 20px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #252525; padding-top: 20px; color: #8f9691; font-size: 11px; }
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 235px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; padding: 30px 20px 20px; background: #111111; border-right: 1px solid var(--line); }
.sidebar > .brand { margin-left: 9px; }
.sidebar nav { display: flex; flex-direction: column; gap: 5px; margin-top: 49px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 12px 14px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; color: #b1b6b2; font-size: 13px; }
.nav-link:hover { background: #1b1d1c; color: white; }
.nav-link[aria-current="page"] { background: #16291e; border-color: #264a32; color: #7be0a3; }
.nav-link svg { width: 18px; height: 18px; }
.nav-divider { margin: 13px 12px; border-top: 1px solid var(--line); }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-note { font-size: 11px; line-height: 1.8; color: #8f9691; padding: 0 12px 21px; }
.sidebar-user { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 20px 8px 0; }
.avatar { width: 37px; height: 37px; border-radius: 7px; background: #223c2a; color: #92d7ac; font-size: 14px; font-weight: 650; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.avatar.big { width: 58px; height: 58px; border-radius: 10px; font-size: 22px; }
.sidebar-user-info { min-width: 0; }
.sidebar-user-info strong { font-size: 12px; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info span { font-size: 10px; color: var(--muted); }
.workspace { min-width: 0; }
.topbar { min-height: 83px; padding: 20px 44px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.breadcrumb { color: #858e88; font-size: 12px; display: flex; align-items: center; gap: 12px; }
.breadcrumb b { color: #d6dbd7; font-weight: 500; }
.breadcrumb svg { width: 13px; height: 13px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.page { max-width: 1250px; margin: auto; padding: 44px 44px 40px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-heading p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 26px; }
.panel-header { margin-bottom: 25px; }
.panel-header p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.profile-identity { display: flex; gap: 17px; align-items: center; padding-bottom: 26px; }
.profile-identity h2 { font-size: 23px; overflow-wrap: anywhere; }
.profile-identity p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.badge { display: inline-block; border: 1px solid #35433a; border-radius: 4px; color: #bed3c5; background: #202c24; padding: 3px 7px; font-size: 10px; font-weight: 500; vertical-align: middle; white-space: nowrap; }
.badge.gray { background: #262626; border-color: #3c3c3c; color: #bfc5c1; }
.badge.red { background: #302121; border-color: #633535; color: var(--danger); }
.detail-list { margin: 0; padding: 0; }
.detail-row { display: grid; grid-template-columns: 100px 1fr; gap: 18px; align-items: baseline; padding: 15px 0; border-top: 1px solid #292929; font-size: 12px; }
.detail-row:last-child { padding-bottom: 0; }
.detail-row dt { color: var(--muted); }
.detail-row dd { margin: 0; overflow-wrap: anywhere; line-height: 1.65; }
.uuid { font-family: Consolas, monospace; font-size: 11px; color: #c5ccc7; }
.inline-form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-top: 1px; }
.inline-form-actions .help { max-width: 300px; }
.skin-panel { padding: 22px; }
.skin-stage { position: relative; min-height: 285px; display: flex; align-items: center; justify-content: center; margin: 20px 0; background: #101410; border: 1px solid #27332a; border-radius: 8px; }
.skin-stage canvas { width: 160px; height: 256px; image-rendering: pixelated; }
.skin-empty { text-align: center; max-width: 185px; color: #91a296; padding: 30px 15px; }
.skin-empty svg { width: 54px; height: 54px; stroke-width: 1; color: #657b6d; margin-bottom: 15px; }
.skin-empty strong { display: block; font-size: 13px; font-weight: 500; color: #c3d1c8; margin-bottom: 5px; }
.skin-empty p { font-size: 12px; }
.skin-panel .segmented { margin-bottom: 17px; }
.skin-panel > .help { text-align: center; margin-top: 12px; }
.skin-page-grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 22px; }
.skin-page-grid .skin-stage { min-height: 330px; }
.skin-page-grid .skin-stage canvas { width: 180px; height: 288px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; border: 1px dashed #4b5d51; border-radius: 8px; background: #131914; padding: 28px 22px; position: relative; }
.dropzone.dragover { background: #173822; border-color: var(--green-light); }
.dropzone > svg { width: 27px; height: 27px; color: #80bb95; margin-bottom: 4px; }
.dropzone strong { font-size: 13px; font-weight: 550; }
.dropzone p { font-size: 11px; color: var(--muted); }
.file-input { width: 100%; max-width: 300px; margin-top: 8px; color: #bcc7c0; font-size: 12px; }
.file-input::file-selector-button { background: #26362b; color: #e4f0e7; border: 1px solid #415b49; border-radius: 5px; padding: 9px 12px; margin-right: 10px; font-size: 12px; cursor: pointer; }
.selected-file { overflow-wrap: anywhere; }
.notice { display: flex; gap: 11px; background: #18231b; border: 1px solid #304635; border-radius: 7px; padding: 15px; color: #b6cebd; }
.notice svg { width: 17px; height: 17px; margin-top: 2px; }
.notice p { font-size: 12px; line-height: 1.65; }
.security-width { max-width: 690px; }
.danger-panel { border-color: #543333; }
.danger-panel h2 { color: #f6b6b6; }
.danger-panel p { color: #bba8a8; }
.accounts-list { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.account-row { display: flex; align-items: center; gap: 17px; padding: 24px; border-bottom: 1px solid var(--line); }
.account-row:last-child { border-bottom: 0; }
.account-row-info { flex: 1; min-width: 0; }
.account-row-info h2 { font-size: 15px; overflow-wrap: anywhere; }
.account-row-info p { color: var(--muted); font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.accounts-bottom { margin-top: 25px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.accounts-bottom p { max-width: 440px; }
.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.admin-toolbar .search-input { max-width: 380px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
th { color: #a4aea7; font-weight: 500; font-size: 11px; background: #1a1a1a; padding: 15px 18px; white-space: nowrap; }
td { padding: 19px 18px; border-top: 1px solid var(--line); background: var(--panel); font-variant-numeric: tabular-nums; }
td .help { margin-top: 4px; white-space: nowrap; }
.table-actions { display: flex; gap: 7px; justify-content: flex-end; }
.table-actions .button { white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; }
.pagination > div { display: flex; align-items: center; gap: 12px; }
.pagination p { font-size: 12px; color: var(--muted); }
.empty-state { text-align: center; padding: 40px 24px; color: var(--muted); }
.empty-state h2 { color: #d5dcd7; margin-bottom: 8px; }
.notifications { position: fixed; right: 25px; bottom: 25px; z-index: 70; width: min(390px, calc(100vw - 32px)); }
.toast { display: flex; align-items: start; gap: 10px; padding: 16px; background: #1c3022; border: 1px solid #3a6348; border-radius: 8px; color: #daf0e1; box-shadow: 0 8px 24px #0005; font-size: 13px; line-height: 1.6; }
.toast.error { color: #ffcbcb; background: #342020; border-color: #7a4040; }
.toast > svg { width: 18px; height: 18px; margin-top: 2px; }
.toast > span { flex: 1; }
.toast > button { color: inherit; border: 0; background: transparent; display: flex; padding: 3px; border-radius: 3px; }
dialog { background: var(--panel); color: #f5f5f5; border: 1px solid #414141; border-radius: 12px; padding: 28px; max-width: 440px; width: calc(100vw - 32px); box-shadow: 0 24px 70px #0008; }
dialog::backdrop { background: #000b; }
dialog h2 { font-size: 21px; }
dialog p { margin-top: 12px; color: #b9c0bb; font-size: 13px; }
dialog .field { margin-top: 24px; }
dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
dialog .form-status { margin-top: 18px; }
.error-shell { max-width: 560px; margin: 15vh auto 0; padding: 30px; }
.error-shell h1 { font-size: 28px; margin-top: 50px; }
.error-shell > p { color: var(--muted); margin: 15px 0 25px; }
@media (min-width: 1600px) { .app-layout { grid-template-columns: 260px minmax(0, 1fr); } .sidebar { padding-left: 27px; padding-right: 27px; } .page { padding-top: 54px; } }
@media (max-width: 1100px) { .auth-shell { padding: 30px 40px 24px; } .auth-main { gap: 50px; grid-template-columns: 1fr 390px; } .app-layout { grid-template-columns: 215px minmax(0, 1fr); } .sidebar { padding-left: 13px; padding-right: 13px; } .page { padding: 32px 28px; } .topbar { padding-left: 28px; padding-right: 28px; } .page-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; } .panel { padding: 22px; } .skin-page-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 18px; } }
@media (max-width: 900px) { .auth-main { gap: 35px; grid-template-columns: 1fr 370px; } .auth-intro h1 { font-size: 40px; } .auth-intro > p { font-size: 14px; } .auth-panel { padding: 27px; } .page-grid { grid-template-columns: 1fr; } .page-grid > .skin-panel { max-width: 420px; } .skin-page-grid { grid-template-columns: 1fr; } .skin-page-grid > .skin-panel { max-width: 420px; width: 100%; } .skin-page-grid .skin-stage { min-height: 260px; } .skin-page-grid .skin-stage canvas { width: 150px; height: 240px; } .breadcrumb > span, .breadcrumb > svg { display: none; } }
@media (max-width: 700px) { .auth-shell { padding: 24px 22px 20px; } .auth-header > p { display: none; } .auth-main { grid-template-columns: 1fr; padding: 43px 0 36px; gap: 30px; } .auth-intro { max-width: none; } .auth-intro h1 { font-size: 34px; line-height: 1.18; } .auth-intro h1 span { display: inline; } .auth-intro > p { margin-top: 13px; font-size: 13px; max-width: 440px; } .intro-features { display: none; } .auth-panel { width: 100%; max-width: 480px; padding: 26px; } .auth-panel h2 { font-size: 22px; } .auth-footer { gap: 12px; flex-direction: column; font-size: 10px; } .app-layout { display: block; } .sidebar { height: auto; position: static; border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 18px 0; } .sidebar > .brand { margin-left: 4px; } .sidebar nav { flex-direction: row; gap: 2px; margin-top: 23px; overflow-x: auto; padding-bottom: 12px; } .nav-link { min-height: 40px; padding: 9px 12px; gap: 7px; font-size: 12px; flex-shrink: 0; } .nav-link svg { width: 16px; height: 16px; } .nav-divider { margin: 4px; border-left: 1px solid var(--line); border-top: 0; } .sidebar-bottom { display: none; } .topbar { min-height: 65px; padding: 14px 22px; } .topbar .button { font-size: 11px; padding: 7px 10px; } .page { padding: 28px 22px 35px; } .page-heading { gap: 14px; margin-bottom: 24px; align-items: start; } .page-heading h1 { font-size: 28px; } .page-heading > .button { padding: 9px 11px; font-size: 11px; flex-shrink: 0; } .page-heading > .button svg { display: none; } .page-heading p { font-size: 12px; } .panel { padding: 21px; } .page-grid > .skin-panel { max-width: none; } .skin-page-grid > .skin-panel { max-width: none; } .account-row { gap: 12px; padding: 19px; flex-wrap: wrap; } .account-row-info { min-width: 160px; } .account-row > .button, .account-row > .badge { margin-left: 49px; } .accounts-bottom { align-items: flex-start; flex-direction: column; } .admin-toolbar { align-items: stretch; } .admin-toolbar .search-input { min-width: 0; } .pagination { align-items: flex-start; flex-direction: column; gap: 14px; } .notifications { right: 16px; bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
@media (max-width: 700px) {
  .sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .nav-link { font-size: 14px; }
  .nav-divider { display: none; }
}
