:root { color-scheme: light; --ink: #202127; --muted: #71747e; --line: #e9eaee; --soft: #f6f7f9; --accent: #16181d; --red: #bb3030; --green: #247650; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a, label.file-label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8eb3ec; outline-offset: 3px; }
input { width: 100%; padding: 12px 13px; border: 1px solid #dcdfe5; border-radius: 10px; background: #fff; color: var(--ink); margin: 7px 0 17px; outline: none; }
input:focus { border-color: #8798ae; box-shadow: 0 0 0 3px #edf2fa; }
label { display: block; font-size: .89rem; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.7rem, 3vw, 2.1rem); letter-spacing: -.8px; margin-bottom: 10px; font-weight: 650; }
h2 { font-size: 1.5rem; letter-spacing: -.5px; margin-bottom: 0; }
h3 { font-size: 1.15rem; margin-bottom: 6px; font-weight: 650; }
.muted { color: var(--muted); line-height: 1.6; }
.eyebrow { font-size: .68rem; letter-spacing: 1.8px; font-weight: 700; color: #92959e; margin-bottom: 13px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font-size: 1.65rem; letter-spacing: 3px; font-weight: 750; }
.brand-dot { width: 6px; height: 6px; background: #cc6052; border-radius: 50%; margin: 4px 0 0 3px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; padding: 11px 16px; border: 1px solid transparent; border-radius: 10px; line-height: 1.3; text-decoration: none; font-weight: 600; font-size: .87rem; }
.primary { color: #fff; background: var(--accent); }
.primary:hover { background: #35383e; }
.secondary { background: #fff; color: #444752; border-color: #e0e2e7; }
.secondary:hover { background: var(--soft); }
.compact { padding: 8px 12px; font-size: .82rem; }
.wide { width: 100%; }
.text-button { color: var(--muted); border: 0; background: transparent; padding: 7px 0; font-size: .84rem; }
.text-button:hover { color: var(--ink); }
.login-screen { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px; background: #fafbfc; }
.login-card { width: 100%; max-width: 420px; padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.login-card .brand { margin-bottom: 44px; }
.login-card h1 { font-size: 1.8rem; }
.login-card .muted { margin-bottom: 28px; }
.initial-loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.workspace { min-height: 100vh; min-height: 100dvh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 254px; display: flex; flex-direction: column; background: #fafafb; border-right: 1px solid var(--line); padding: 30px 18px 18px; }
.sidebar > .brand { margin: 2px 16px 43px; }
.sidebar-caption { margin: 0 16px 12px; color: #a0a3ab; letter-spacing: 1.4px; font-size: .65rem; font-weight: 700; }
.navigation { display: grid; gap: 6px; }
.nav-button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 13px; border: 0; border-radius: 10px; background: transparent; color: #757984; text-align: left; font-size: .86rem; }
.nav-button > span { font-size: 1.25rem; width: 22px; text-align: center; line-height: 1; }
.nav-button[aria-current="page"] { color: #262a34; background: #eaecef; font-weight: 600; }
.sidebar-account { margin-top: auto; padding-top: 28px; }
.account-button { width: 100%; padding: 13px 9px; display: flex; gap: 11px; align-items: center; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.account-copy { min-width: 0; flex: 1; }
.account-copy strong, .account-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy strong { font-size: .86rem; font-weight: 600; }
.account-copy small { color: #9296a0; font-size: .75rem; margin-top: 4px; }
.account-chevron { color: #9296a0; font-size: 1.3rem; }
.logout { margin-left: 57px; }
.avatar { display: inline-flex; width: 35px; height: 35px; flex-shrink: 0; align-items: center; justify-content: center; background: #e8ebf0; border-radius: 50%; color: #647083; overflow: hidden; font-size: .78rem; font-weight: 650; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.large { width: 70px; height: 70px; font-size: 1.3rem; }
.main-content { flex: 1; min-width: 0; margin-left: 254px; padding: 48px clamp(24px, 5vw, 76px); max-width: 1450px; }
.page-header { display: flex; justify-content: space-between; align-items: start; gap: 22px; margin-bottom: 35px; }
.page-header .muted { margin-bottom: 0; max-width: 650px; }
.page-header > .button { flex-shrink: 0; margin-top: 30px; }
.page-message { padding: 13px 16px; border: 1px solid #dce9df; background: #f4faf5; border-radius: 10px; font-size: .88rem; line-height: 1.5; color: var(--green); margin-bottom: 22px; }
.page-message.error, .form-message.error { color: var(--red); background: #fff6f5; border-color: #f1d9d6; }
.form-message { border: 1px solid; padding: 11px 12px; border-radius: 9px; font-size: .85rem; line-height: 1.5; }
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; max-width: 950px; }
.plugin-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; background: #fff; }
.plugin-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 17px; }
.plugin-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; }
.plugin-icon img { width: 31px; height: 31px; }
.plugin-description { color: var(--muted); line-height: 1.65; font-size: .89rem; flex: 1; margin-bottom: 25px; }
.configuration-notice { margin: -12px 0 18px; color: #9b6f35; }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; border-radius: 6px; color: #868b94; background: #f1f3f6; font-size: .7rem; font-weight: 600; }
.badge.installed { color: var(--green); background: #eef7f0; }
.plugin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plugin-actions .primary { flex: 1; }
.activation-control { display: flex; align-items: start; gap: 10px; border-top: 1px solid var(--line); margin-top: 23px; padding-top: 18px; color: #6b707b; font-weight: 400; line-height: 1.5; font-size: .8rem; }
.activation-control input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #20242c; flex-shrink: 0; }
.admin-config { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.admin-config summary { font-size: .79rem; color: #69717e; cursor: pointer; }
.admin-config form { padding-top: 18px; }
.admin-config input { font-size: .85rem; }
.admin-config label { font-size: .79rem; }
.admin-config .hint { margin: -9px 0 17px; }
.empty-state { padding: 54px 24px; color: var(--muted); background: #fafbfc; border: 1px dashed #e0e3e9; border-radius: 14px; text-align: center; line-height: 1.7; }
.users-panel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.users-toolbar { padding: 17px 20px; background: #fafbfc; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.users-table { width: 100%; border-collapse: collapse; text-align: left; }
.users-table th { padding: 13px 20px; color: #979ba5; font-size: .69rem; font-weight: 600; background: #fdfdfe; }
.users-table td { padding: 17px 20px; border-top: 1px solid #f0f1f4; font-size: .87rem; }
.users-table th:last-child, .users-table td:last-child { text-align: right; }
.user-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.user-identity strong { display: block; font-size: .86rem; font-weight: 600; overflow-wrap: anywhere; }
.user-identity small { display: block; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.profile-dialog { width: min(480px, calc(100% - 30px)); max-height: calc(100dvh - 38px); border: 1px solid var(--line); border-radius: 19px; padding: 28px; box-shadow: 0 25px 90px #0002; }
.profile-dialog::backdrop { background: #19212e66; }
.dialog-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 26px; }
.dialog-heading .eyebrow { margin-bottom: 8px; }
.icon-button { width: 32px; height: 32px; color: #969ba4; border: 0; background: #f5f6f8; border-radius: 50%; font-size: 1.4rem; }
.photo-editor { display: flex; align-items: center; gap: 19px; margin-bottom: 24px; }
.file-label { display: inline-flex; margin-right: 11px; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; overflow: hidden; }
.file-label:focus-within, .file-input:focus-visible + label { outline: 3px solid #8eb3ec; }
.hint { font-size: .74rem; color: #969aa4; line-height: 1.5; margin: 7px 0 0; }
.optional { margin-left: 5px; color: #a1a5ae; font-size: .75rem; font-weight: 400; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.noscript { padding: 20px; text-align: center; }
@media (max-width: 850px) {
  .sidebar { width: 218px; padding-left: 12px; padding-right: 12px; }
  .main-content { margin-left: 218px; padding: 38px 25px; }
  .users-table th, .users-table td { padding: 13px; }
  .users-table .role-column { display: none; }
}
@media (max-width: 620px) {
  .workspace { display: block; }
  .sidebar { position: static; width: 100%; padding: 18px 19px 13px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 17px 8px; }
  .sidebar > .brand { margin: 0; font-size: 1.4rem; align-self: center; }
  .sidebar-caption { display: none; }
  .navigation { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 5px; }
  .nav-button { width: auto; padding: 10px; font-size: .77rem; }
  .nav-button > span { font-size: 1.15rem; width: 18px; }
  .sidebar-account { grid-column: 2; grid-row: 1; margin: 0; padding: 0; display: flex; align-items: center; gap: 9px; }
  .account-button { width: auto; border: 0; padding: 0; }
  .account-copy, .account-chevron { display: none; }
  .logout { margin: 0; font-size: .73rem; }
  .main-content { margin-left: 0; padding: 29px 20px; }
  .page-header { margin-bottom: 25px; gap: 12px; }
  .page-header > .button { margin-top: 26px; font-size: .7rem; padding: 8px; }
  .page-header .muted { font-size: .86rem; }
  .eyebrow { font-size: .62rem; letter-spacing: 1.4px; }
  h1 { font-size: 1.52rem; }
  .plugin-card { padding: 23px; }
  .login-card { padding: 29px 24px; }
  .profile-dialog { padding: 24px 21px; }
  .users-table th, .users-table td { padding: 12px 10px; }
  .user-identity { gap: 8px; }
  .user-identity .avatar { width: 29px; height: 29px; font-size: .65rem; }
}

.plugin-page { max-width: 1100px; margin: auto; padding: 28px 20px; }
.plugin-page > a { display: inline-block; margin-bottom: 20px; color: var(--muted); }
