/* Counter-specific styles; shared Bringolf site.css remains unchanged. */
.counter-page, .counter-page * { box-sizing: border-box; }
.counter-page { width:100%; display:flex; justify-content:center; padding:18px 12px 30px; }
.counter-panel { width:100%; max-width:460px; background:#fff; border:1px solid #d8e2ef; border-radius:12px; padding:20px; box-shadow:0 4px 18px #0002; color:#26364c; }
.counter-page h2 { margin:0 0 12px; text-align:center; font-size:23px; color:#0759a5; }
.counter-page h3 { font-size:16px; color:#0759a5; margin:22px 0 10px; }
.counter-muted { color:#66778d; font-size:14px; margin:6px 0 14px; }
.counter-error,.counter-message { color:#ae2630; font-size:14px; min-height:22px; }
.counter-create label { display:block; font-weight:bold; font-size:13px; margin-bottom:5px; }
.counter-create-row { display:flex; align-items:stretch; gap:8px; }
.counter-page .counter-create-row input { flex:1; min-width:0; width:auto; border:1px solid #b9c8d9; border-radius:6px; padding:9px; font:inherit; }
.counter-page .counter-create-row button { white-space:nowrap; }
.counter-title-list { display:flex; flex-direction:column; gap:7px; }
.counter-title-row { display:flex; gap:8px; align-items:stretch; }
.counter-title-link { min-width:0; flex:1; display:flex; justify-content:space-between; align-items:center; gap:12px; text-decoration:none; background:#f0f6ff; border:1px solid #cddff2; border-radius:8px; padding:12px 10px; }
.counter-title-link:hover { background:#dbeaff; }
.counter-title-name { overflow-wrap:anywhere; font-weight:bold; }
.counter-title-total { font-weight:bold; color:#0759a5; font-variant-numeric:tabular-nums; }
.counter-title-row form { margin:0; }
.counter-page .counter-delete { height:100%; padding:7px 10px; border:1px solid #b83040; border-radius:6px; background:#b83040; color:white; font:bold 12px Arial,sans-serif; cursor:pointer; }
.counter-topline { margin-bottom:10px; }
.counter-topline a { text-decoration:none; }
.counter-totalbox { text-align:center; background:#eaf3ff; border-radius:12px; padding:13px 8px; margin:14px 0; }
.counter-totalbox small { display:block; color:#526783; }
.counter-total { font-size:52px; font-weight:bold; color:#0865c4; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.counter-pad { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.counter-page .counter-pad button { width:100%; min-width:0; height:70px; margin:0; border-radius:12px; cursor:pointer; touch-action:manipulation; }
.counter-page .counter-digit { background:#f1f5f9; color:#23344b; border:1px solid #c7d5e5; font:bold 30px Arial,sans-serif; box-shadow:0 3px 0 #d5dee8; }
.counter-page .counter-digit:hover { background:#d8eaff; }
.counter-page .counter-subtract { background:#fff3d7; color:#7d4900; border:1px solid #ba7910; font:bold 13px Arial,sans-serif; }
.counter-page .counter-subtract.active { background:#e28c1a; color:#fff; }
.counter-page .counter-reset { background:#d29a1e; color:white; border:1px solid #b67e12; font:bold 15px Arial,sans-serif; }
.counter-message { text-align:center; margin:10px 0 0; }
@media (max-width:600px) {
  .counter-page { padding:5px; }
  .counter-panel { padding:10px; border-radius:8px; box-shadow:none; }
  .counter-page h2 { font-size:20px; }
  .counter-pad { gap:7px; }
  .counter-page .counter-pad button { height:76px; }
  .counter-total { font-size:42px; }
}
