/* House materials (C05): channel tags, order timeline, batches and arrival trace. */
.hm-tag{display:inline-flex;align-items:center;min-height:22px;padding:1px 8px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap}
.hm-tag-platform{background:var(--pale,#eef1e9);color:var(--brand,#294e40);border:1px solid currentColor}
.hm-tag-self{background:#fff7ec;color:#8a5a22;border:1px solid #d9b98e}
.hm-tag-kind{background:transparent;color:var(--muted,#687168);border:1px solid var(--line,#e8e6de);font-weight:500}
.hm-row-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.hm-status{margin-left:auto;font-size:13px;color:var(--muted,#687168)}
.hm-status-overdue,.hm-status-cancelled{color:var(--red,#a34837)}
.hm-status-partial,.hm-status-shipped{color:var(--gold,#956f48)}
.hm-status-arrived,.hm-status-confirmed{color:var(--brand,#294e40)}
.hm-status-cancelled{color:var(--muted,#687168)}
.hm-row{display:block;padding:14px 15px;margin:10px 0;border:1px solid var(--line,#e8e6de);border-radius:12px;background:#fff;color:inherit;text-decoration:none}
.hm-row.is-warn{border-left:3px solid var(--red,#a34837)}
.hm-row h3{margin:8px 0 3px;font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.hm-row>p{margin:0;font-size:13px;color:var(--muted,#687168);line-height:1.7;overflow-wrap:anywhere}
.hm-node{display:flex;align-items:center;gap:5px;margin-top:6px;font-size:13px;line-height:1.6}
.hm-node .icon{flex:0 0 14px;width:14px;height:14px}
.hm-node.muted{color:var(--muted,#687168)}
.hm-dates{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:9px 0 0;padding:9px 10px;border-radius:9px;background:var(--bg,#f8f6f2)}
.hm-dates div{min-width:0}
.hm-dates dt{font-size:12px;color:var(--muted,#687168)}
.hm-dates dd{margin:2px 0 0;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.hm-missing{margin:8px 0 0!important;color:var(--gold,#956f48)!important;font-size:13px}
.hm-row-trace{display:flex;align-items:center;gap:5px;margin:7px 0 0!important;color:var(--red,#a34837)!important;font-size:13px}
.hm-row-trace .icon{width:14px;height:14px;flex:0 0 14px}
.hm-row-actions{margin:-4px 0 12px;display:flex;justify-content:flex-end}
.hm-row-more{margin:-4px 0 12px;font-size:13px}
.hm-timeline{list-style:none;margin:10px 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.hm-timeline li{position:relative;min-width:0;padding-top:30px;font-size:12px;line-height:1.5}
.hm-timeline li:before{content:'';position:absolute;top:11px;left:24px;right:-6px;height:2px;background:var(--line,#e8e6de)}
.hm-timeline li:last-child:before{display:none}
.hm-timeline li.done:before{background:var(--brand,#294e40)}
.hm-dot{position:absolute;top:0;left:0;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;border:2px solid var(--line,#e8e6de);background:#fff}
.hm-timeline li.done .hm-dot{background:var(--brand,#294e40);border-color:var(--brand,#294e40);color:#fff}
.hm-dot .icon{width:13px;height:13px}
.hm-timeline strong{display:block;font-size:13px}
.hm-timeline time{display:block;color:var(--muted,#687168)}
.hm-timeline li:not(.done) time{color:#a3a69e}
.hm-timeline small{display:block;margin-top:3px;color:var(--gold,#956f48);overflow-wrap:anywhere}
.hm-trace{display:flex;gap:9px;margin:12px 0;padding:12px 13px;border-radius:10px;background:#fbf4e9;color:#6e4c22;font-size:13px;line-height:1.7}
.hm-trace.is-warn{background:#f9ece8;color:#7d3528}
.hm-trace>.icon{flex:0 0 16px;width:16px;height:16px;margin-top:3px}
.hm-trace p{margin:2px 0 0}
.hm-trace .hm-link{display:inline-block;margin-top:5px;color:inherit;font-weight:600}
.hm-table{width:100%;margin:8px 0;border-collapse:collapse;font-size:13px}
.hm-table th{text-align:left;font-weight:500;color:var(--muted,#687168);border-bottom:1px solid var(--line,#e8e6de);padding:6px 4px}
.hm-table td{padding:8px 4px;border-bottom:1px solid var(--line,#e8e6de);vertical-align:top}
.hm-table td small{display:block;color:var(--muted,#687168)}
.hm-table th:not(:first-child),.hm-table td:not(:first-child){text-align:right;white-space:nowrap}
.hm-issue{color:var(--red,#a34837)}
.hm-batches{list-style:none;margin:8px 0;padding:0}
.hm-batches li{padding:10px 0;border-bottom:1px solid var(--line,#e8e6de);font-size:13px;line-height:1.7}
.hm-batches li:last-child{border-bottom:0}
.hm-batches p{margin:2px 0;overflow-wrap:anywhere}
.hm-batch-head{display:flex;justify-content:space-between;gap:8px}
.hm-batch-head span{flex:0 0 auto;color:var(--muted,#687168)}
.hm-batch-head span.hm-issue{color:var(--red,#a34837)}
.hm-empty{font-size:13px;color:var(--muted,#687168)}
.hm-sub{margin:14px 0 2px;font-size:14px}
.hm-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:8px}
.hm-photos img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:var(--pale,#eef1e9)}
.hm-file{display:flex;align-items:center;gap:4px;font-size:12px;overflow-wrap:anywhere}
.hm-photo-note{margin:4px 0 0;font-size:11px;color:var(--muted,#687168)}
.hm-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.hm-line label small{display:block;font-weight:400;color:var(--muted,#687168)}
.hm-form-lead{margin-bottom:12px}
.hm-form-lead strong{display:block;margin-top:6px}
.hm-form-lead p{margin:2px 0 0;font-size:13px;color:var(--muted,#687168)}
/* C pages */
.hm-summary{margin:22px 0 4px;padding:16px;border:1px solid var(--line,#e8e6de);border-radius:14px;background:#fff}
.hm-summary-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.hm-summary-head h2{font-size:18px}
.hm-summary-head p{margin:3px 0 0;font-size:13px;color:var(--muted,#687168)}
.hm-more{display:inline-flex;align-items:center;gap:2px;white-space:nowrap;font-size:13px;color:var(--brand,#294e40);text-decoration:none;min-height:32px}
.hm-more .icon{width:13px;height:13px}
.hm-summary-focus{margin-top:12px}
.hm-summary-focus>strong{font-size:13px;color:var(--muted,#687168)}
.hm-summary-ok{display:flex;align-items:center;gap:6px;margin:12px 0 0;font-size:13px;color:var(--brand,#294e40)}
.hm-summary-ok .icon{width:14px;height:14px}
.hm-summary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.hm-summary-actions .btn{width:100%;margin:0;min-height:44px}
.hm-page-head h1{font-size:23px;line-height:1.4}
.hm-page-head p{margin:5px 0 0;font-size:13px;line-height:1.8;color:var(--muted,#687168)}
.hm-filters{display:flex;gap:6px;margin:16px 0 4px;overflow-x:auto;scrollbar-width:none}
.hm-filters a{flex:0 0 auto;display:inline-flex;align-items:center;gap:4px;min-height:36px;padding:6px 13px;border-radius:999px;border:1px solid var(--line,#e8e6de);background:#fff;color:inherit;text-decoration:none;font-size:13px}
.hm-filters a[aria-current]{background:var(--brand,#294e40);border-color:var(--brand,#294e40);color:#fff}
.hm-filters small{font-size:11px;opacity:.8}
.hm-foot,.hm-note{margin:14px 0 0;font-size:12px;line-height:1.8;color:var(--muted,#687168)}
.hm-detail-head{padding:4px 0 6px}
.hm-detail-head h1{margin:10px 0 3px;font-size:22px;line-height:1.4;overflow-wrap:anywhere}
.hm-detail-head>p{margin:0;font-size:13px;color:var(--muted,#687168)}
.hm-block{margin:18px 0;padding-top:14px;border-top:1px solid var(--line,#e8e6de)}
.hm-block h2{font-size:16px;margin-bottom:4px}
.hm-facts{margin:6px 0 0}
.hm-facts div{display:flex;gap:12px;padding:7px 0;font-size:13px;line-height:1.7}
.hm-facts dt{flex:0 0 64px;color:var(--muted,#687168)}
.hm-facts dd{margin:0;min-width:0;overflow-wrap:anywhere}
.hm-history summary{cursor:pointer;font-size:14px;font-weight:600;min-height:32px}
.hm-history ol{list-style:none;padding:0;margin:6px 0 0}
.hm-history li{padding:7px 0;font-size:13px;line-height:1.7;border-bottom:1px solid var(--line,#e8e6de)}
.hm-history time{color:var(--muted,#687168);font-size:12px}
.hm-history p{margin:0}
.hm-actions{display:grid;gap:8px;margin:20px 0 10px}
.hm-actions .btn{margin:0}
@media (max-width:360px){.hm-timeline{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}.hm-timeline li:nth-child(2):before{display:none}.hm-summary-actions{grid-template-columns:1fr}}
.hm-order-section{margin:22px 0}
.hm-order-section .material-order-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hm-order-links{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:6px}
