.pool-page { background: #f5f7f3; }
.pool-page .topbar { gap: 34px; }
.pool-nav { display: flex; gap: 26px; align-items: center; margin-right: auto; }
.pool-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.pool-nav a[aria-current] { color: var(--green); font-weight: 750; }
.pool-user { font-size: 13px; color: var(--muted); }
.pool-main { max-width: 1260px; margin: auto; padding: 40px 38px 56px; }
.pool-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; min-height: 328px; border: 1px solid #dce5d9; background: #edf3e9; overflow: hidden; }
.pool-hero-copy { padding: 40px 0 32px 42px; }
.pool-hero .eyebrow { font-size: 12px; font-family: inherit; line-height: 1.5; letter-spacing: 2px; }
.pool-hero h1 { font-size: clamp(32px,4vw,48px); line-height: 1.2; letter-spacing: -2px; margin: 14px 0 18px; }
.pool-lead { font-size: 14px; color: #536655; line-height: 1.9; }
.pool-hero-actions { display: flex; gap: 10px; margin-top: 23px; }
.pool-hero-actions button { min-height: 45px; padding: 11px 21px; }
.pool-hero-actions .quiet { background: #ffffff80; border-color: #cbdac7; color: var(--green); }
.pool-small { font-size: 12px; line-height: 1.7; color: var(--muted); }
#drawHint { margin-bottom: 0; }
.pool-water { position: relative; display: grid; place-content: center; padding: 16px 0; }
.pool-water svg { width: 100%; max-width: 460px; overflow: visible; }
.water-caption { text-align: center; color: #94a88e; font-size: 11px; margin: 0 0 -28px; }
.water-ripple { stroke: #9ebca3; stroke-width: 1.3; }
.water-fill { fill: #d8e8d5; fill-opacity: .6; }
.bottle-glass { fill: #b5d4ba; fill-opacity: .78; stroke: #4b8160; stroke-width: 2; }
.bottle-cork { fill: #bba67b; stroke: #927e54; stroke-width: 1.5; }
.bottle-paper { fill: #fbf8e8; stroke: #a8ba91; }
.bottle-lines { stroke: #79936d; stroke-width: 2; stroke-linecap: round; }
.bottle-shine { stroke: #f5fff1; stroke-width: 3; stroke-linecap: round; }
.bottle-small { fill: #c0d7bf; stroke: #85a887; stroke-width: 1.5; }
.water-spark { stroke: #93b18b; stroke-width: 1.5; stroke-linecap: round; }
.water-footnote { text-align: center; font-size: 11px; color: #779071; margin-top: -12px; }
.pool-notice { color: #a33d32; font-size: 13px; line-height: 1.7; white-space: pre-line; }
.pool-notice:empty { display: none; }
.pool-notice.success { color: var(--green); }
.pool-section-heading { display: flex; justify-content: space-between; align-items: center; margin: 38px 0 25px; gap: 20px; }
.pool-section-heading h2 { font-size: 23px; margin: 7px 0 0; }
.pool-section-heading .eyebrow { font-size: 10px; color: var(--muted); }
.pool-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow: auto; }
.pool-tabs button { flex-shrink: 0; background: transparent; color: var(--muted); padding: 0 0 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-size: 13px; }
.pool-tabs button[aria-pressed="true"] { color: var(--green); border-color: var(--green); }
.pool-tabs span { background: #e7ece4; font-size: 10px; padding: 2px 6px; border-radius: 3px; margin-left: 5px; font-variant-numeric: tabular-nums; }
.pool-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 22px 0 18px; }
.pool-filters label, .pool-dialog label { display: grid; gap: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.pool-filters input, .pool-filters select { font-size: 12px; min-height: 36px; padding: 7px 9px; }
.pool-filters input[type="number"] { width: 85px; }
.pool-search { flex: 1; min-width: 165px; }
#tagFilter { max-width: 155px; }
.pool-filters .pool-mine { display: flex; align-items: center; gap: 6px; min-height: 36px; white-space: nowrap; }
.pool-mine input { width: 14px; min-height: 14px; accent-color: var(--green); }
.pool-filters button { font-size: 11px; min-height: 36px; padding: 7px 10px; }
.pool-list-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px; font-size: 11px; color: var(--muted); margin-bottom: 15px; }
.pool-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.pool-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); padding: 22px; transition: border-color .15s; }
.pool-card:hover { border-color: #a4bca7; }
.pool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pool-oj { font-size: 10px; color: var(--green); font-weight: 750; letter-spacing: .3px; }
.pool-status { font-size: 10px; color: var(--muted); background: var(--soft); border-radius: 3px; padding: 3px 6px; white-space: nowrap; }
.status-ac { color: #176c4b; background: #e2f1e6; }
.status-picked { color: #8a692d; background: #faf0d9; }
.status-skipped { color: #7c7f7a; background: #eeefed; }
.pool-card h3 { font-size: 17px; line-height: 1.5; margin: 14px 0 5px; overflow-wrap: anywhere; }
.pool-card .problem-id { font: 11px/1.7 ui-monospace,SFMono-Regular,Menlo,monospace; color: var(--muted); overflow-wrap: anywhere; }
.pool-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 13px 0 0; }
.pool-tag { font-size: 10px; color: #74816e; padding: 3px 6px; border: 1px solid #e3e8df; border-radius: 3px; }
.pool-rating { border-color: #d4dfd0; color: #4d724c; }
.pool-note { color: #687367; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.pool-card .pool-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pool-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; }
.pool-card-foot small { font-size: 10px; color: #8b9589; overflow-wrap: anywhere; }
.pool-card-foot button { border: 1px solid #d6e0d2; background: #f6f9f3; color: var(--green); font-size: 11px; min-height: 31px; padding: 5px 10px; white-space: nowrap; }
.pool-empty { padding: 42px 16px; text-align: center; border: 1px dashed #ccd7c7; background: #f0f4ed; color: var(--muted); }
.pool-empty h3 { color: #5c6c54; font-size: 18px; margin: 10px; }
.pool-empty p { font-size: 13px; line-height: 1.8; }
.empty-wave { font-size: 45px; line-height: 1; color: #a7bda1; }
.pool-link-button { display: inline-block; padding: 10px 16px; border-radius: 4px; text-decoration: none; }
.pool-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 24px; }
.pool-pagination button { min-height: 33px; font-size: 11px; }
.pool-pagination span { font-size: 12px; color: var(--muted); }
.pool-footer { margin: 28px 0 0; font-size: 11px; color: #86907f; text-align: center; line-height: 1.9; }
.pool-dialog { width: min(540px,calc(100% - 32px)); max-height: 90vh; max-height: 90dvh; padding: 28px; border: 1px solid #d4dfcf; border-radius: 8px; color: var(--ink); background: #fff; box-shadow: var(--shadow); }
.pool-dialog::backdrop { background: #142a1bb3; backdrop-filter: blur(3px); }
.pool-dialog header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pool-dialog h2 { margin: 7px 0 0; font-size: 25px; }
.pool-dialog header button { min-height: 29px; padding: 4px 8px; }
.pool-dialog form { display: grid; gap: 16px; }
.pool-dialog label .pool-small { display: inline; font-size: 10px; }
.pool-dialog input, .pool-dialog select, .pool-dialog textarea { font-size: 13px; }
.pool-optional { border-top: 1px solid var(--line); padding-top: 16px; }
.pool-optional summary { cursor: pointer; font-size: 13px; color: var(--green); margin-bottom: 16px; }
.pool-optional summary span { display: block; margin: 5px 0 0 14px; font-weight: 400; }
.pool-optional label { margin-top: 14px; }
.pool-form-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px; }
.pool-inline-error { color: #ad3c31; font-size: 12px; white-space: pre-line; line-height: 1.7; }
.pool-inline-error:empty { display: none; }
.bottle-dialog { background: #fbfcf8; }
.bottle-dialog .pool-note { padding: 14px 16px; background: #f0f4e9; border-left: 2px solid #c4d4b4; }
.bottle-dialog .problem-id { margin-top: 10px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.bottle-dialog .bottle-byline { font-size: 11px; color: var(--muted); line-height: 1.9; }
.bottle-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 14px; }
.bottle-actions button, .bottle-actions a { font-size: 12px; }
.bottle-actions a { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 12px; text-decoration: none; border: 1px solid #c9d6c4; border-radius: 4px; background: #fff; color: var(--green); }
.bottle-dialog footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.bottle-dialog footer button { white-space: nowrap; font-size: 12px; }
[hidden] { display: none !important; }
@media(max-width:1000px) { .pool-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .pool-hero-copy { padding-left: 30px; } .pool-tabs { gap: 20px; } }
@media(max-width:650px) {
  .pool-page .topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 12px; padding: 13px 20px; }
  .pool-nav { order: 3; width: 100%; gap: 22px; padding-top: 5px; }
  .pool-user { margin-left: auto; max-width: 160px; overflow-wrap: anywhere; }
  .pool-main { padding: 22px 16px 38px; }
  .pool-hero { grid-template-columns:1fr; gap:0; }
  .pool-hero-copy { padding:27px 25px 12px; }
  .pool-hero h1 { font-size:36px; }
  .pool-water { padding:0 16px 20px; }
  .pool-water svg { max-width:320px; max-height:165px; }
  .water-caption { display:none; }
  .water-footnote { margin-top:0; font-size:10px; }
  .pool-hero-actions button { font-size:12px; padding:10px 15px; }
  .pool-section-heading { margin-top:30px; }
  .pool-section-heading h2 { font-size:21px; }
  .pool-tabs { gap:19px; }
  .pool-tabs button { font-size:12px; }
  .pool-filters { gap:10px; }
  .pool-search { flex-basis:100%; }
  .pool-cards { grid-template-columns:1fr; gap:12px; }
  .pool-card { padding:20px; }
  .pool-dialog { padding:22px; }
  .bottle-dialog footer { align-items:flex-start; }
  .pool-footer { text-align:left; }
}
