/* BBX — Craigslist-simple. White, black text, blue links, native controls. */
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #111; background: #fff; margin: 0; font-size: 16px; line-height: 1.45; }
.wrap { max-width: 760px; margin: 0 auto; padding: 16px; }

header.site { border-bottom: 1px solid #ccc; padding-bottom: 8px; margin-bottom: 14px; }
header.site .name { font-weight: 700; font-size: 20px; }
header.site .name small { font-weight: 400; color: #555; font-size: 13px; }
header.site .who { float: right; font-size: 13px; color: #555; }
.topnav { margin-top: 6px; font-size: 14px; }
.topnav a { margin-right: 2px; }

a { color: #0000ee; } a:visited { color: #551a8b; }
h1 { font-size: 20px; margin: 8px 0; } h2 { font-size: 16px; margin: 16px 0 6px; }
.muted { color: #666; font-size: 14px; } .help { color: #666; font-size: 13px; margin: 3px 0; }
.crumb { font-size: 13px; margin-bottom: 8px; }

button, .btn { font-size: 16px; padding: 10px 16px; border: 2px solid #000; background: #fff; cursor: pointer; border-radius: 4px; font-weight: 700; }
button:hover { background: #f2f2f2; }
button:disabled { opacity: .5; cursor: default; }
button.submit { margin-top: 10px; }
.big { display: block; width: 100%; padding: 14px; font-size: 18px; margin: 10px 0; text-align: center; text-decoration: none; color: #000; border: 2px solid #000; border-radius: 4px; font-weight: 700; }
a.big:visited { color: #000; }
.gbtn .g { color: #4285F4; font-weight: 800; }
.center { text-align: center; }

label { display: block; font-weight: 700; margin: 8px 0 2px; font-size: 14px; }
input, select, textarea { width: 100%; font-size: 16px; padding: 8px; border: 1px solid #888; border-radius: 3px; font-family: inherit; }
.row2 { display: flex; gap: 8px; } .row2 > div { flex: 1; }

.box { border: 1px solid #ddd; border-radius: 5px; padding: 12px 14px; margin: 10px 0; }
.warnbox { border: 1px solid #c60; background: #fff8ec; border-radius: 4px; padding: 8px 10px; margin: 8px 0; font-size: 14px; }
.hidden { display: none; }
.err { color: #b00; font-size: 14px; margin: 8px 0; }

ul.list { list-style: none; padding: 0; margin: 6px 0; }
ul.list li { padding: 8px 0; border-bottom: 1px solid #e8e8e8; }
ul.list .meta, .meta { color: #666; font-size: 13px; }

table.grid { border-collapse: collapse; width: 100%; margin: 8px 0; display: block; overflow-x: auto; }
table.grid th, table.grid td { border: 1px solid #bbb; padding: 6px 8px; font-size: 14px; text-align: left; white-space: nowrap; }
table.grid th { background: #f2f2f2; }

.chip { display: inline-block; font-size: 12px; border: 1px solid #999; border-radius: 3px; padding: 0 5px; color: #444; white-space: nowrap; }
.chip.ok { border-color: #080; color: #080; } .chip.warn { border-color: #c60; color: #c60; } .chip.pend { border-color: #999; color: #666; }

.foot { border-top: 1px solid #ccc; margin-top: 24px; padding-top: 8px; font-size: 12px; color: #777; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #111; color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px; opacity: 0; transition: all .25s ease; z-index: 999; max-width: 90%; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.warn { background: #b00; } .toast.ok { background: #0a7d28; }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal-card { background: #fff; border-radius: 6px; padding: 18px 20px; width: 100%; max-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.modal-card h3 { margin: 0 0 4px; }
.modal-card label { display: block; font-size: 13px; color: #555; margin: 10px 0 3px; }
.cred-field { font-family: ui-monospace, Menlo, monospace; font-size: 15px; background: #f7f7f7; letter-spacing: .3px; }
.row-btns { display: flex; gap: 8px; margin-top: 14px; }
.row-btns button { flex: 1; }
button.ghost { background: #fff; color: #333; border: 1px solid #888; }
a.danger { color: #b00; }
