.horse-board{max-width:1000px;margin-inline:auto;min-width:0}
.hb-week-label{font-size:12px;color:var(--muted);line-height:1.5;margin:0 0 8px}
.hb-table-wrap{touch-action:pan-y pinch-zoom;user-select:none;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.hb-table-wrap.is-loading{opacity:.55}.hb-week-error{font-size:12px;margin-bottom:10px;color:var(--muted)}.hb-week-error button{min-height:44px}
.hb-table-wrap:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.hb-table{width:100%;min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:13px}
.hb-table th,.hb-table td{border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:center;vertical-align:middle}
.hb-table thead th{background:var(--surface-soft);padding:9px 2px;font-size:12px;font-weight:500}.hb-table thead small{display:block;color:var(--muted);font-size:11px;line-height:1.6}
.hb-table th:first-child{width:72px;text-align:left;padding:8px}.hb-table thead th.is-today{box-shadow:inset 0 3px var(--accent);background:var(--accent-soft);color:var(--accent)}
.hb-table tbody td{position:relative;padding:0}.hb-table tbody th{background:var(--surface)}.hb-table tbody .is-today{background:color-mix(in srgb,var(--accent-soft) 25%,var(--surface))}
.hb-table tr>:last-child{border-right:0}.hb-table tbody tr:last-child>*{border-bottom:0}.hb-table tbody tr:last-child>:not(:last-child){border-right:1px solid var(--line)}
.hb-horse-name{display:block;font-size:14px;font-weight:600;overflow-wrap:anywhere;line-height:1.4}
.hb-cell-content{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;align-content:center;gap:5px;padding:10px 3px;min-height:64px;pointer-events:none}
.hb-cell{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent}.hb-cell:hover{background:color-mix(in srgb,var(--accent) 8%,transparent)}.hb-cell:focus-visible{outline:3px solid var(--accent);outline-offset:-3px}
.hb-code{width:28px;height:28px;flex:0 0 auto;display:inline-grid;place-items:center;border-radius:7px;font-size:13px;font-weight:650;line-height:1;background:var(--surface-soft);color:var(--text)}
.hb-pink{background:#f4dce5;color:#823d56}.hb-green{background:#dfede2;color:#366548}.hb-blue{background:#dfeaf3;color:#3c6180}.hb-purple{background:#e9dff0;color:#705183}.hb-amber{background:#f4ebd4;color:#786232}.hb-slate{background:#e5e8ec;color:#52616f}
.hb-code.is-done{background:#cce7d6;color:#24583a;text-decoration:line-through;text-decoration-thickness:2px}
.hb-unplanned{color:var(--muted);font-size:13px}.hb-task-extra summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;padding:10px 0}
.hb-empty{border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:22px}.hb-empty h2{font-size:23px;margin-bottom:10px}.hb-empty p{color:var(--muted);font-size:13px;line-height:1.7}.hb-empty button{margin-top:15px}
.hb-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hb-day-sheet{min-width:0}.hb-sheet-date{color:var(--muted);font-size:13px;line-height:1.6;margin-bottom:20px}.hb-sheet-section+.hb-sheet-section{margin-top:24px}.hb-sheet-section h3,.hb-add-task h3{font-size:18px;margin-bottom:12px}.hb-sheet-section h3>span{font-family:var(--body);font-size:12px;color:var(--muted);font-weight:400;margin-left:6px}
.hb-day-list{list-style:none;padding:0;margin:0}.hb-day-task{display:flex;align-items:flex-start;gap:11px;padding:14px 0;border-bottom:1px solid var(--line)}.hb-day-task:first-child{padding-top:3px}.hb-day-task>.hb-code{margin-top:4px}.hb-day-task-main{flex:1;min-width:0}.hb-task-detail{display:block;text-align:left;padding:0;font-size:14px;font-weight:600;overflow-wrap:anywhere;line-height:1.6}.hb-task-detail:hover{color:var(--accent)}.hb-day-task-main>p{font-size:12px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}.hb-day-task-main>.hb-task-note{white-space:pre-wrap;color:var(--text);margin-top:6px}.hb-task-status{display:block;font-size:11px;color:var(--muted);margin-top:4px}.hb-day-task.is-done .hb-task-status{color:var(--success)}
.hb-task-complete,.hb-task-completed{flex:0 0 44px;width:44px;min-height:44px;display:grid;place-items:center}.hb-task-complete{border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--accent)}.hb-task-complete:hover{background:var(--accent-soft)}.hb-task-completed{color:var(--success)}
.hb-add-task{margin-top:24px;padding-top:22px;border-top:1px solid var(--line)}.hb-add-task h3{margin-bottom:18px}.hb-task-extra{font-size:12px;color:var(--muted)}.hb-task-extra .form-field:first-of-type{margin-top:12px}.hb-sheet-status{font-size:13px;color:var(--muted);line-height:1.7;margin:20px 0}.hb-catalog-link{margin-top:18px;min-height:44px}
.hb-catalog>p{font-size:13px;color:var(--muted);line-height:1.7;margin-bottom:18px}.hb-catalog-row{border:1px solid var(--line);border-radius:12px;padding:14px;margin:0 0 18px;min-width:0}.hb-catalog-row legend{padding:0 6px;font-size:12px;font-weight:600}.hb-catalog-fields{display:grid;grid-template-columns:80px 1fr 1.2fr;gap:10px}.hb-catalog-row .form-field{margin-bottom:12px}.hb-catalog-row .text-link{min-height:36px}.hb-catalog-limit{font-size:12px;color:var(--muted);line-height:1.7;margin-top:12px}
[data-theme=dark] .hb-pink{background:#54303f;color:#f5c8da}[data-theme=dark] .hb-green{background:#304837;color:#c4e4cb}[data-theme=dark] .hb-blue{background:#304352;color:#c5def1}[data-theme=dark] .hb-purple{background:#483753;color:#e2cdf0}[data-theme=dark] .hb-amber{background:#4d442e;color:#eddda9}[data-theme=dark] .hb-slate{background:#37424b;color:#d2dfe7}[data-theme=dark] .hb-code.is-done{background:#254e39;color:#c3efd2}
@media(max-width:700px){.hb-table th:first-child{width:52px;padding:7px 4px}.hb-table thead th{padding:8px 0;font-size:11px}.hb-horse-name{font-size:12px}.hb-cell-content{gap:4px;padding:9px 1px;min-height:62px}.hb-code{width:25px;height:27px;font-size:12px}.hb-catalog-fields{grid-template-columns:65px 1fr;gap:8px}.hb-catalog-fields>.form-field:last-child{grid-column:1/-1}.hb-table .hb-code{width:24px}.hb-day-task{gap:8px}.hb-task-complete,.hb-task-completed{flex-basis:42px;width:42px}}
