:root { --ink: #1e293b; --muted: #64748b; --border: #d9e1ea; --page: #f5f7fa; --surface: #fff; --primary: #0969da; --danger: #b42318; --success: #067647; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--page); font: 14px/1.5 Arial, sans-serif; }
.admin-shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }.sidebar { display: flex; position: sticky; top: 0; flex-direction: column; height: 100vh; padding: 24px 16px; color: #e8eef8; background: #18212f; }.brand { margin: 0 8px 26px; color: white; font-size: 16px; font-weight: 700; text-decoration: none; }.sidebar-nav { display: grid; gap: 4px; }.sidebar-nav a { padding: 9px 10px; border-radius: 4px; color: #e8eef8; text-decoration: none; }.sidebar-nav a:hover, .sidebar-nav a.active { background: #27364a; color: white; }.logout-form { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #34455b; }.logout-form .link-button { color: #e8eef8; }
.page { width: min(1180px, calc(100% - 40px)); margin: 28px auto 56px; }.page-heading, .form-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }.page-heading h1, .form-heading h1 { margin: 0; font-size: 24px; }.page-heading p, .section-help { margin: 4px 0 0; color: var(--muted); }
.section { margin-top: 22px; }.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.section h2 { font-size: 17px; margin: 0; }.table-wrap, .editor-form, .login-form { border: 1px solid var(--border); background: var(--surface); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }.stat-card { display: grid; gap: 8px; min-height: 128px; padding: 18px; border: 1px solid var(--border); border-top: 3px solid var(--primary); color: var(--muted); background: var(--surface); text-decoration: none; }.stat-card strong { color: var(--ink); font-size: 30px; font-weight: 700; }
table { border-collapse: collapse; width: 100%; } th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; } th { color: var(--muted); font-size: 12px; font-weight: 600; } tr:last-child td { border-bottom: 0; }.empty { text-align: center; color: var(--muted); padding: 24px; }
button, .button { display: inline-flex; justify-content: center; align-items: center; min-height: 34px; padding: 7px 12px; border: 1px solid var(--primary); border-radius: 4px; color: white; background: var(--primary); cursor: pointer; text-decoration: none; font: inherit; }.secondary { color: var(--primary); background: white; }.danger { border: 0; min-height: auto; padding: 0; color: var(--danger); background: transparent; }.link-button { border: 0; padding: 0; min-height: auto; background: transparent; }.actions form { margin: 0; }
a { color: var(--primary); }.inline-form { display: flex; gap: 12px; align-items: end; margin-bottom: 12px; }.inline-form label { flex: 1; }.inline-form button { flex: 0 0 auto; }
label { display: grid; gap: 5px; color: #344054; font-weight: 600; } input, select, textarea { width: 100%; min-height: 36px; padding: 7px 9px; border: 1px solid #bfc9d6; border-radius: 4px; color: var(--ink); background: white; font: inherit; font-weight: 400; } textarea { resize: vertical; }.editor-form { display: grid; gap: 18px; max-width: 760px; padding: 24px; }.editor-form fieldset { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 1px solid var(--border); }.editor-form .message-editor { display: grid; grid-template-columns: 1fr; gap: 14px; }.editor-form legend { padding: 0 4px; color: var(--muted); }.button-editor { display: grid; gap: 10px; }.button-editor .section-title { margin: 0; }.button-editor h2 { margin: 0; font-size: 15px; }.button-list { display: grid; gap: 10px; }.button-row { display: grid; grid-template-columns: 1.1fr 1.5fr 1.2fr auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--border); background: #fafcff; }.field-help { margin: 0; color: var(--muted); }.checkbox { display: flex; align-items: center; gap: 8px; }.checkbox input, input[type=radio] { width: auto; min-height: auto; }.tag, .existing { margin-left: 8px; color: var(--success); font-size: 12px; }.notice { margin-bottom: 14px; padding: 10px 12px; border-left: 3px solid; background: white; }.notice.success { border-color: var(--success); }.notice.error { border-color: var(--danger); }
.login-shell { display: grid; place-items: center; min-height: calc(100vh - 112px); }.login-form { display: grid; gap: 16px; width: min(100%, 360px); padding: 28px; }.login-form h1 { margin: 0 0 6px; font-size: 20px; }
 .emoji-library { display: grid; gap: 10px; }.emoji-library .section-title { margin: 0; }.emoji-library h2 { margin: 0; font-size: 15px; }.emoji-library-list { display: flex; flex-wrap: wrap; gap: 8px; }.emoji-library-item { display: inline-flex; align-items: center; gap: 7px; min-height: 48px; padding: 6px 8px; border: 1px solid var(--border); background: #fafcff; }.emoji-library-item img, .emoji-preview img { width: 32px; height: 32px; object-fit: contain; }.emoji-label { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.emoji-no-preview { color: var(--muted); font-size: 12px; }.emoji-select { display: flex; align-items: center; gap: 7px; }.emoji-select select { min-width: 0; }.emoji-preview { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; }
@media (max-width: 720px) { .admin-shell { display: block; }.sidebar { position: static; height: auto; padding: 14px 16px; }.brand { display: block; margin: 0 0 12px; }.sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }.logout-form { margin-top: 12px; padding: 12px 0 0; }.page { width: min(100% - 24px, 1180px); margin-top: 18px; }.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.inline-form, .editor-form fieldset, .button-row { display: grid; grid-template-columns: 1fr; }.table-wrap { overflow-x: auto; }.table-wrap table { min-width: 680px; } }
