:root { color-scheme: light dark; font-family: system-ui, sans-serif; }
body { margin: 0; background: var(--tg-theme-secondary-bg-color, #f2f2f7); color: var(--tg-theme-text-color, #111); }
main { max-width: 860px; margin: auto; padding: 16px; } header, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; } h1, h2 { margin: 0; } h1 { font-size: 1.5rem; } #user { color: var(--tg-theme-hint-color, #a8a8a8); }
section, .card { background: var(--tg-theme-bg-color, #fff); border-radius: 12px; padding: 14px; margin: 12px 0; }.card { border: 1px solid #8884; }.expired { border-color: #d33; }.warning { border-color: #d90; }
.section-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 12px; }.section-card { display: grid; gap: 6px; min-height: 100px; text-align: left; background: var(--tg-theme-bg-color, #fff); color: var(--tg-theme-text-color, #111); border-color: var(--tg-theme-hint-color, #777); }.section-title { font-size: 1.1rem; font-weight: 700; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } label { display: grid; gap: 4px; margin: 8px 0; } input, button, textarea { padding: 10px; font: inherit; border-radius: 8px; border: 1px solid #8888; } button { cursor: pointer; background: var(--tg-theme-button-color, #2481cc); color: var(--tg-theme-button-text-color, #fff); } button.secondary { background: transparent; color: inherit; } #status { min-height: 1.2em; color: #ff6b6b; }.meta { color: var(--tg-theme-hint-color, #a8a8a8); font-size: .88em; } textarea { width: 100%; min-height: 60px; box-sizing: border-box; }
.table-wrap { overflow-x: auto; }.certificates-table { width: 100%; border-collapse: collapse; }.certificates-table th, .certificates-table td { padding: 10px 8px; border-bottom: 1px solid #8884; text-align: left; vertical-align: top; }.certificates-table th button { background: transparent; color: inherit; padding: 0; border: 0; font-weight: 700; }.certificates-table tr.expired { background: #d33a; }.certificates-table tr.warning { background: #d902; }.certificates-table .actions { margin: 0; }.certificates-table .actions button { padding: 6px 8px; font-size: .9em; }
dialog { width: min(480px, calc(100% - 32px)); border: 0; border-radius: 14px; background: var(--tg-theme-bg-color, #fff); color: inherit; box-shadow: 0 12px 40px #0007; } dialog::backdrop { background: #0008; }
.setting-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid #8884; cursor: pointer; }.setting-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--tg-theme-button-color, #2481cc); }.setting-row span { display: grid; gap: 3px; }.setting-row small { color: var(--tg-theme-hint-color, #a8a8a8); } #admin-settings { margin-top: 16px; } #admin-settings h3 { margin: 0; }
@media (max-width: 540px) { main { padding: 12px; }.certificates-table th, .certificates-table td { padding: 8px 6px; }.certificates-table th:last-child, .certificates-table td:last-child { min-width: 145px; } }
