h1 { font-family: Arial, Helvetica, sans-serif; }
/* --- Foalfolio shell (M1) --- */
body { margin: 0; font-family: Georgia, 'Times New Roman', serif; background: #f6f1e7; color: #2b2118; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 10px 18px; background: #2b2118; color: #f6f1e7; flex-wrap: wrap; }
.wordmark { color: #e8b34b; font-weight: bold; letter-spacing: 2px; text-decoration: none; font-size: 20px; }
.topnav a { color: #f6f1e7; text-decoration: none; margin-right: 12px; opacity: .85; }
.topnav a:hover { opacity: 1; text-decoration: underline; }
.pills { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: #453723; border: 1px solid #6b543a; border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.pill.clock { background: transparent; border-color: #6b543a; }
.landing { text-align: center; padding: 80px 20px; }
.landing h1 { font-size: 44px; letter-spacing: 3px; margin-bottom: 8px; }
.pitch { font-size: 19px; font-style: italic; color: #5a4632; }
.btn { display: inline-block; padding: 10px 22px; border-radius: 6px; text-decoration: none; border: 1px solid #6b543a; color: #2b2118; background: #fffdf7; }
.btn.primary { background: #2b2118; color: #e8b34b; font-size: 17px; }
.page { max-width: 880px; margin: 0 auto; padding: 22px 18px 60px; }
.founders summary { font-size: 19px; cursor: pointer; margin-bottom: 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { background: #fffdf7; border: 1px solid #d8c9ae; border-radius: 10px; padding: 16px; }
.card-name { font-size: 21px; font-weight: bold; }
.card-sub { color: #5a4632; margin-top: 2px; }
.card-sub.dim { opacity: .75; font-size: 14px; }
.card-note { font-style: italic; color: #6b543a; margin: 10px 0 0; }
.next-steps { margin-top: 28px; background: #efe6d2; border-radius: 10px; padding: 14px 18px; }

/* --- Inspector panel (M2) --- */
.card-actions { margin: 10px 0 0; }
.card-actions a { color: #7a4d16; }
.inspector { background: #fffdf7; border: 1px solid #d8c9ae; border-radius: 10px; padding: 18px; margin-top: 14px; }
.insp-name { font-size: 26px; font-weight: bold; }
.insp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 640px) { .insp-cols { grid-template-columns: 1fr; } }
.inspector h4 { margin: 12px 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: #6b543a; }
.stat-row { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14px; }
.stat-name { width: 96px; }
.stat-bar { flex: 1; height: 8px; background: #e7dcc4; border-radius: 4px; overflow: hidden; }
.stat-fill { display: block; height: 100%; background: #b98a2f; }
.stat-val { width: 52px; text-align: right; color: #5a4632; }
.genetics-head { display: flex; align-items: baseline; justify-content: space-between; }
.geno-toggle { font-size: 13px; color: #5a4632; cursor: pointer; }
.locus-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e0d3b4; font-size: 14px; }
.locus-val.unknown { color: #9a8a72; font-style: italic; }
.inspector .geno { display: none; }
.inspector.show-geno .geno { display: inline; }
.inspector.show-geno .plain { display: none; }
.small { font-size: 13px; }
.dim { opacity: .75; }

/* --- Breeding & badges (M3) --- */
.badge { background: #efe0b8; border: 1px solid #c9a94e; border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.inline-form { display: inline; }
.btn.small { padding: 3px 10px; font-size: 13px; cursor: pointer; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
select, input[type="text"] { font: inherit; padding: 5px 8px; border: 1px solid #c9b98f; border-radius: 5px; background: #fffdf7; }

/* --- Market / racing (M4) --- */
table.results { border-collapse: collapse; margin: 12px 0; }
table.results td { padding: 4px 14px 4px 0; border-bottom: 1px dashed #e0d3b4; }

/* --- Auth (M5) --- */
.auth-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 18px auto; text-align: left; }
@media (max-width: 640px) { .auth-cols { grid-template-columns: 1fr; } }
.error { color: #a33; font-weight: bold; }
input[type="email"], input[type="password"] { font: inherit; padding: 5px 8px; border: 1px solid #c9b98f; border-radius: 5px; background: #fffdf7; width: 100%; box-sizing: border-box; }
