
html, body { background: #fff; color: #000; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 1.4; }
a { color: #00e; text-decoration: underline; }
a:visited { color: #551a8b; }
.wrap { max-width: 900px; margin: 0 auto; padding: 8px 16px 16px; min-height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; }
.wrap > .footer { margin-top: auto; }
.masthead { display: flex; align-items: baseline; gap: 14px; padding: 6px 0 4px; flex-wrap: wrap; }
.masthead .logo { font-size: 20px; font-weight: bold; color: #551a8b; text-decoration: none; letter-spacing: -0.5px; }
.masthead small { color: #666; }
.masthead .right { margin-left: auto; color: #666; font-size: 11px; }
.crumbs { color: #333; margin: 6px 0 14px; }
h1 { font-size: 16px; margin: 12px 0 8px; }
h2 { font-size: 13px; margin: 14px 0 4px; }
h3 { font-size: 13px; margin: 8px 0 4px; }
p { margin: 6px 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.rows li { padding: 3px 0; border-bottom: 1px dotted #ccc; }
ul.rows li:last-child { border-bottom: 0; }
.box { border: 1px solid #ccc; background: #f7f7f7; padding: 8px 10px; margin: 8px 0; }
.posting { border: 1px solid #ccc; background: #fff; padding: 10px 12px; margin: 8px 0; }
.postingbody { white-space: pre-wrap; font-family: "Times New Roman", Times, serif; font-size: 14px; }
.attrs span { display: inline-block; background: #eee; border: 1px solid #ddd; padding: 1px 6px; margin: 2px 4px 2px 0; font-size: 12px; }
.meta { color: #666; font-size: 11px; }
.warn { color: #a00; }
.ok { color: #060; }
.dim { color: #888; }
.best { background: #efe; border-color: #9c9; }
table { border-collapse: collapse; font-size: 13px; }
td, th { padding: 2px 8px 2px 0; vertical-align: top; text-align: left; }
th { font-weight: normal; color: #555; }
table.grid td, table.grid th { border-bottom: 1px dotted #ccc; padding: 3px 10px 3px 0; }
form.stack label { display: block; margin: 6px 0; }
form.stack label span { display: inline-block; min-width: 140px; color: #333; }
input[type=text], input[type=email], input[type=number], select, textarea { font: inherit; border: 1px solid #999; padding: 2px 4px; background: #fff; }
textarea { width: 100%; box-sizing: border-box; font-family: "Times New Roman", Times, serif; font-size: 14px; }
button, input[type=submit] { font: inherit; padding: 2px 10px; cursor: pointer; }
button.link { border: 0; background: none; color: #00e; text-decoration: underline; padding: 0; }
form.inline { display: inline; }
.cols { display: flex; gap: 24px; flex-wrap: wrap; }
.cols > div { flex: 1 1 320px; min-width: 0; }
.footer { margin-top: 40px; border-top: 1px solid #ccc; padding-top: 6px; color: #666; font-size: 11px; }
.footer span { float: right; }
.footer a { margin-right: 8px; }
hr { border: 0; border-top: 1px solid #ccc; margin: 12px 0; }
.err { background: #fee; border: 1px solid #c99; padding: 6px 8px; }
.notice { background: #ffe; border: 1px solid #cc9; padding: 6px 8px; }
.formula { margin-top: 10px; padding: 8px 10px; border: 1px solid #ccc; background: #fafafa; }
.formula math { font-size: 16px; margin: 4px 0; white-space: nowrap; }
.madlib { font-size: 15px; line-height: 2.1; }
.madlib input[type=text], .madlib input[type=number] { font-size: 15px; border: 0; border-bottom: 1px solid #333; background: #ffe; padding: 0 4px; }
.madlib p { line-height: 1.4; margin-top: 8px; }
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.attrs.stats span { background: #f7f7f7; font-size: 13px; padding: 3px 8px; }
.attrs.stats b { font-size: 15px; }
.stack .prefilled { background: #ffe; }
@media (max-width: 640px) {
  .wrap { padding: 8px 12px 16px; }
  .footer span { float: none; display: block; margin-top: 4px; }
  .masthead .right { margin-left: 0; width: 100%; font-size: 12px; }
  .cols { display: block; }
  .cols > div { margin-bottom: 12px; }
  form.stack label span { display: block; min-width: 0; }
  input[type=text], input[type=email], input[type=number], select { max-width: 100%; box-sizing: border-box; }
  button, input[type=submit] { padding: 6px 12px; }
  table.grid { font-size: 12px; }
}
