body.entry-page {
  --entry-accent: #93b9ff;
  --entry-accent-background: #172742;
  --entry-text: #ecf1f8;
  --entry-muted: #a2afc1;
  --entry-border: #2c3a4c;
  background: radial-gradient(ellipse at 50% 0, #131f32, transparent 55%), #090e17;
  color: var(--entry-text);
  min-width: 0;
}

body.entry-admin {
  --entry-accent: #efca7f;
  --entry-accent-background: #302718;
  background: radial-gradient(ellipse at 50% 0, #24201b, transparent 55%), #0d1017;
}

.entry-page *, .entry-page *::before, .entry-page *::after { box-sizing: border-box; }
.entry-shell { display: grid; min-height: 100vh; place-items: center; padding: 32px 16px; }
.entry-card { width: min(100%, 450px); padding: clamp(20px, 5vw, 34px); border: 1px solid var(--entry-border); border-radius: 18px; background: #121a27; box-shadow: 0 22px 60px #0005; }
.entry-title { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--entry-accent); font-size: 1rem; font-weight: 750; }
.entry-title::before { width: 12px; height: 12px; border: 2px solid currentColor; transform: rotate(45deg); border-radius: 3px; content: ""; }
.entry-card h1, .entry-card h2, .admin-board h1, .admin-board h2 { margin: 0 0 8px; letter-spacing: -.025em; }
.entry-card h1, .entry-card h2 { font-size: 1.4rem; }
.entry-page .muted { margin: 0 0 16px; color: var(--entry-muted); font-size: .85rem; }
.entry-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 20px; }
.entry-tabs button, .entry-action { border: 1px solid var(--entry-border); border-radius: 8px; padding: 9px 12px; color: var(--entry-text); background: #151f2e; cursor: pointer; }
.entry-tabs button[aria-pressed="true"] { border-color: var(--entry-accent); color: var(--entry-accent); background: var(--entry-accent-background); }
.entry-form { display: grid; gap: 14px; }
.entry-form label, .entry-field { display: grid; gap: 6px; font-size: .86rem; }
.entry-form input:not([type="checkbox"]), .entry-search { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--entry-border); border-radius: 8px; background: #0d1521; color: var(--entry-text); }
.entry-page :focus-visible { outline: 2px solid var(--entry-accent); outline-offset: 2px; }
.entry-form input[aria-invalid="true"] { border-color: #f38e99; }
.entry-page .entry-check { display: flex; align-items: center; gap: 8px; color: var(--entry-muted); }
.entry-check input { accent-color: var(--entry-accent); }
.entry-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#registerForm .entry-pair { align-items: start; }
.entry-password { display: flex; align-items: center; position: relative; }
.entry-password input { padding-right: 72px !important; }
.entry-password button { position: absolute; right: 5px; border: 0; border-radius: 5px; padding: 7px; color: var(--entry-accent); background: #121d2c; cursor: pointer; font-size: .8rem; }
.entry-primary { padding: 12px 14px; border: 0; border-radius: 8px; background: var(--entry-accent); color: #151b25; font-weight: 750; cursor: pointer; }
.entry-primary:disabled, .entry-action:disabled { opacity: .55; cursor: default; }
.entry-link { display: inline-block; border: 0; padding: 4px 0; margin-top: 10px; color: var(--entry-accent); background: transparent; font-size: .86rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.entry-note { margin: 0; color: var(--entry-muted); font-size: .8rem; line-height: 1.55; }
.entry-support { margin-top: 20px; border-top: 1px solid var(--entry-border); padding-top: 10px; }
.entry-page .notice { font-size: .85rem; }
#forgotSentEmail { overflow-wrap: anywhere; }
.entry-page .notice:empty { display: none; }
.entry-page .notice.error { border-color: #8f4a55; }
.admin-board { width: min(1440px, calc(100% - 32px)); margin: 28px auto 36px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.admin-top .entry-title { margin: 0 0 6px; }
.admin-top h1 { font-size: clamp(1.4rem, 3vw, 2.15rem); }
.admin-top p { margin: 0; overflow-wrap: anywhere; }
.admin-block { border: 1px solid var(--entry-border); border-radius: 14px; padding: clamp(14px, 2vw, 24px); background: #121a27; margin-bottom: 16px; }
.admin-block h2 { margin: 0; font-size: 1.1rem; }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
.admin-toolbar, .admin-quick-actions { display: flex; align-items: start; gap: 7px; flex-wrap: wrap; }
.entry-search { flex: 1 1 200px; width: auto; min-width: 180px; min-height: 36px; }
.admin-table-scroll { overflow-x: auto; border: 1px solid var(--entry-border); border-radius: 6px; }
.admin-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .86rem; }
.admin-users { min-width: 1020px; }
.admin-table th, .admin-table td { padding: 9px 12px; border-right: 1px solid var(--entry-border); border-bottom: 1px solid var(--entry-border); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.admin-table th { background: #202c3d; color: #c4d3e6; font-size: .81rem; white-space: nowrap; }
.admin-table th:last-child, .admin-table td:last-child { border-right: 0; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table tbody tr { background: #111c2b; }
.admin-table tbody tr:nth-child(even) { background: #152131; }
.admin-table th small, .admin-day { display: block; color: var(--entry-muted); font-weight: 400; }
.admin-day { margin-top: 3px; }
.admin-empty { color: var(--entry-muted); }
.admin-permission { width: 17px; height: 17px; margin: 0; vertical-align: middle; accent-color: var(--entry-accent); }
.admin-tag { display: inline-block; padding: 4px 7px; border-radius: 5px; background: var(--entry-accent-background); color: var(--entry-accent); font-size: .79rem; white-space: nowrap; }
.admin-tag-active { color: #9ae8bf; background: #16392d; }
.admin-tag-pending { color: #ffd689; background: #3b3019; }
.admin-tag-closed { color: #ffb3bb; background: #3d232e; }
.admin-details { color: var(--entry-muted); font-size: .89rem; }
.admin-details summary { cursor: pointer; color: var(--entry-text); }
.admin-fold { margin-top: 14px; }
.admin-fold form, .admin-fold .notice, .admin-fold .entry-note { margin-top: 10px; max-width: 570px; }
.admin-table .entry-action { padding: 5px 9px; font-size: .78rem; }
.admin-actions summary { width: max-content; }
.admin-action-list { display: grid; gap: 5px; min-width: 140px; margin-top: 5px; }
.admin-danger { color: #f6a4ad; }
@media (max-width: 430px) {
  .entry-pair { grid-template-columns: 1fr; }
  .entry-shell { padding-block: 20px; }
}
