/* Design tokens
   Paper:    #F6F3EC (base)
   Ink:      #24211D (text)
   Tin:      #1F3A3D (deep teal - primary, echoes an enamel paint tin)
   Wet:      #C77D26 (amber - the "wet paint" accent, used sparingly)
   Muted:    #8A8375 (secondary text / borders)
   Good:     #3E6B4F (paid/settled)
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #F6F3EC;
  color: #24211D;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

h1, h2, h3, .display {
  font-family: 'Georgia', 'Iowan Old Style', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* --- Signature element: the swatch strip --- */
.swatch-strip {
  display: flex;
  height: 10px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}
.swatch-strip span { flex: 1; }
.swatch-strip .s1 { background: #1F3A3D; }
.swatch-strip .s2 { background: #C77D26; }
.swatch-strip .s3 { background: #3E6B4F; }
.swatch-strip .s4 { background: #8A8375; }

header.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 4px;
  margin-bottom: 6px;
}
header.top .brand { font-size: 20px; color: #1F3A3D; }
header.top .who { font-size: 13px; color: #8A8375; }
header.top .who a { color: #1F3A3D; }

.card {
  background: #FFFFFF;
  border: 1px solid #E5E0D3;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

.card h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8A8375;
  margin-bottom: 14px;
}

label { display: block; font-size: 13px; color: #55503F; margin: 10px 0 4px; }

input, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D8D2C2;
  border-radius: 6px;
  background: #FCFBF7;
  font-size: 15px;
  color: #24211D;
}
input:focus, select:focus { outline: 2px solid #1F3A3D; outline-offset: 1px; }

button, .btn {
  display: inline-block;
  background: #1F3A3D;
  color: #F6F3EC;
  border: none;
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  text-decoration: none;
}
button:hover, .btn:hover { background: #16292B; }
button.secondary { background: transparent; color: #1F3A3D; border: 1px solid #1F3A3D; }
button.secondary:hover { background: #ECE7DA; }
button.amber { background: #C77D26; }
button.amber:hover { background: #AD6A1C; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #EFEAdd; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #8A8375; }
tr:last-child td { border-bottom: none; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: #FBF9F3; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.chip { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.chip.invited { background: #FBEBD8; color: #A15E10; }
.chip.active { background: #E4EFE7; color: #3E6B4F; }

.owed { font-size: 26px; font-weight: 700; color: #1F3A3D; }

.muted { color: #8A8375; font-size: 13px; }
.error { color: #AD3B2C; font-size: 13px; margin-top: 8px; }
.notice { color: #3E6B4F; font-size: 13px; margin-top: 8px; }

.empty { text-align: center; padding: 30px 10px; color: #8A8375; font-size: 14px; }

.row { display: flex; gap: 12px; }
.row > * { flex: 1; }

.variant-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.variant-row input { flex: 1; }
.variant-row button { margin-top: 0; padding: 8px 10px; }

nav.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid #E5E0D3; }
nav.tabs a { padding: 9px 14px; font-size: 14px; text-decoration: none; color: #8A8375; border-bottom: 2px solid transparent; cursor: pointer; }
nav.tabs a.active { color: #1F3A3D; border-bottom-color: #C77D26; font-weight: 600; }

.center-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { max-width: 380px; width: 100%; text-align: center; }
.login-card .swatch-strip { margin: 0 auto 20px; }
.login-card p.tagline { color: #8A8375; margin: 6px 0 22px; font-size: 14px; }
.login-card label, .login-card input { text-align: left; }

.back-link { display: inline-block; margin-bottom: 12px; font-size: 13px; color: #1F3A3D; cursor: pointer; text-decoration: underline; }
