.admin-section {
  margin: 1.5rem 0;
}
.admin-section .admin-actions {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 505px) {
  .admin-section .admin-actions {
    gap: 0.5rem;
  }
}
.admin-section .admin-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.8);
}
.admin-section .admin-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-section .admin-radio label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.admin-section .admin-submit {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

.manage-table {
  width: 100%;
}
.manage-table th,
.manage-table td {
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
}
.manage-table th {
  background: rgba(0, 0, 0, 0.05);
}
.manage-table .row1 {
  background: rgba(0, 0, 0, 0.02);
}
.manage-table .row2 {
  background: rgba(0, 0, 0, 0.06);
}

.state-controls {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}
.state-controls label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.thread-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.75rem;
}
.thread-toolbar .checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 756px) {
  .manage-table {
    font-size: 1rem;
  }
  .manage-table th,
  .manage-table td {
    padding: 0.4rem;
  }
}
@media (max-width: 500px) {
  .admin-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}
.admin-shell {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-shell table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.admin-shell th,
.admin-shell td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem;
  text-align: left;
  vertical-align: top;
}
.admin-shell .actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.admin-shell .form-toolbar {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.admin-shell .alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
}
.admin-shell .alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #b7dfb9;
}
.admin-shell .alert-error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f5c6cb;
}
.admin-shell .checkbox-cell {
  text-align: center;
}

.thread.admin-thread {
  margin: 0;
}

.admin-card {
  padding: 1.15rem 1.25rem 0.5rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  margin-bottom: 0;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.admin-form input[type=text],
.admin-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
}
.admin-form textarea {
  min-height: 90px;
}
.admin-form label.postblock,
.admin-form .postblock {
  font-weight: 600;
  margin-top: 0.35rem;
  display: block;
}
.admin-form .field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.admin-form .field-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.admin-form .field-row--full {
  grid-column: 1/-1;
}
.admin-form .field-hint {
  font-size: 0.78rem;
  color: #64748b;
}

.slogan-section {
  margin-top: 0.5rem;
}
.slogan-section.is-hidden {
  display: none;
}

.board-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}
.board-picker select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.summary-list {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
}
.summary-list li {
  margin: 0.15rem 0;
}

.warning-list {
  margin: 0.4rem 0 0;
  padding-left: 1rem;
}

.status-meta {
  font-size: 0.85rem;
  color: #475569;
}

.board-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.board-tool-card {
  border: none;
  border-radius: 0;
  padding: 0.25rem 0;
  background: transparent;
}
.board-tool-card textarea {
  min-height: 180px;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}
.board-tool-card h4 {
  margin-top: 0;
  font-size: 1rem;
}

.board-meta {
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

.override-group {
  margin-top: 0.85rem;
}
.override-group:first-of-type {
  margin-top: 0.35rem;
}

.override-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.override-grid.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.override-field {
  border: none;
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.override-field code {
  background: rgba(0, 0, 0, 0.05);
  padding: 0 0.3rem;
  border-radius: 4px;
}

.override-type {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.override-hint {
  font-size: 0.75rem;
  color: #475569;
}

.override-pill-active {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  color: inherit;
}

.override-bool-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.override-standard-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.override-standard-hint {
  font-size: 0.8rem;
  color: #64748b;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.button:hover, .button:focus {
  background: #e2e8f0;
}
.button.secondary {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.button.tertiary {
  background: transparent;
  border: 1px dashed #cbd5e1;
  color: inherit;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
}

.status-table,
.log-table,
.stylesheet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}
.status-table th,
.status-table td,
.log-table th,
.log-table td,
.stylesheet-table th,
.stylesheet-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.4rem 0.5rem;
  text-align: left;
  vertical-align: top;
}

.section-lead {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #475569;
}

.log-output {
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  padding: 0.75rem;
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
}

.stylesheet-table input[type=text],
.stylesheet-table input[type=number] {
  width: 100%;
  box-sizing: border-box;
}

.status-pill,
.log-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-pill .status-dot,
.log-chip .status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #94a3b8;
  display: inline-block;
}
.status-pill.status-ok .status-dot, .status-pill.log-chip-info .status-dot,
.log-chip.status-ok .status-dot,
.log-chip.log-chip-info .status-dot {
  background: #16a34a;
}
.status-pill.status-warn .status-dot, .status-pill.log-chip-warning .status-dot,
.log-chip.status-warn .status-dot,
.log-chip.log-chip-warning .status-dot {
  background: #f59e0b;
}
.status-pill.status-fail .status-dot, .status-pill.log-chip-error .status-dot,
.log-chip.status-fail .status-dot,
.log-chip.log-chip-error .status-dot {
  background: #dc2626;
}
.status-pill.status-skip .status-dot,
.log-chip.status-skip .status-dot {
  background: #0ea5e9;
}

.log-chip.log-chip-info {
  color: #15803d;
}
.log-chip.log-chip-warning {
  color: #b45309;
}
.log-chip.log-chip-error {
  color: #b91c1c;
}
.log-chip.log-chip-default {
  color: #475569;
}

.log-controls {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.thread--collapsed .threadBody > *:not(:first-child) {
  display: none;
}

.text-error {
  color: #b91c1c;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.m-0 {
  margin: 0;
}

.w-full {
  width: 100%;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.gap-1 {
  gap: 0.35rem;
}

.gap-2 {
  gap: 0.5rem;
}

.col-span-full {
  grid-column: 1/-1;
}

.input-readonly {
  background-color: #eee;
  color: #555;
  cursor: not-allowed;
}

.w-std {
  width: 60px;
}

.w-order {
  width: 90px;
}

.w-del {
  width: 80px;
}

/*# sourceMappingURL=admin.css.map */

/* Advanced Settings Toggle */
.advanced-setting {
    display: none;
}

.show-advanced .advanced-setting {
    display: block;
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}
