/* sorn dashboard additions. Loaded last. */

/* warning notices (raid mode on, read-only pages) */
.notice.warn { border-color: rgba(252, 212, 124, .28) !important; color: #d2d2d5 !important; }
.notice.warn i { color: #fcd47c !important; }
.notice .code, .section-sub .code, .lbl .code, .help .code, .empty-state .code {
  font-family: ui-monospace, Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px;
  background: rgba(255, 255, 255, .07); color: #e6e6e9;
}

/* read-only form pages (antinuke for anyone but the owner) */
.srow.locked .ctl { opacity: .55; pointer-events: none; }

/* autoreact rows: the emojis it reacts with */
.emoji-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
.emoji-line .dc-emoji { width: 20px; height: 20px; object-fit: contain; }
.emoji-line .dc-uni { font-size: 18px; line-height: 1; }

/* the add rows on list cards line up and wrap on phones */
.add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.add-row .input { flex: 1 1 200px; }
.add-row .dd { flex: 1 1 220px; }

/* stat cards under the overview banner sit in a tidy grid */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* commands page: the switch sits at the end of each row */
.cmd-row .toggle { margin-left: auto; flex: none; }
.cmd-row.off code { text-decoration: line-through; opacity: .6; }

/* the save bar floats over the page (accent.css sets every child of #root to position: relative) */
#root > .savebar { position: fixed !important; z-index: 80; }

/* overview: six stats in one row on wide screens, three otherwise */
.stat-strip.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1180px) { .stat-strip.six { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stat-strip.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* code chips inside help text stay inline (help text spans are blocks) */
.srow .lbl span .code, .notice span .code { display: inline !important; margin: 0 !important; }
