[data-view="admin-rewards"] .registry-history-panel{margin:0 0 12px;padding:14px 16px}
/* Qualified personal device counts replace mixed raw order/source counters. */
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-qualified-total{width:7%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table :is(.registry-qualified-site,.registry-qualified-history){width:8%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table th:is(.registry-qualified-total,.registry-qualified-site,.registry-qualified-history){white-space:normal}
.registry-count-review{display:inline;margin-left:3px;color:#9b601d;font-size:8px;font-style:normal;font-weight:400;white-space:nowrap}
.registry-detail-counts.registry-detail-qualified{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.registry-detail-qualified>.registry-metric{min-width:0;text-align:left}
.registry-detail-qualified>.registry-metric>small{display:block;margin-bottom:3px;font-size:9px;color:var(--muted)}
.registry-detail-qualified>.registry-metric>b{font-size:15px;line-height:1.2}
html[data-theme="dark"] .registry-count-review{color:#edbe80}
/* Two source counts keep the existing compact rows and gift controls. */
html body.admin-mode #app-main #registry-history-panel .registry-history-table :is(.registry-orders-site,.registry-orders-history){width:8%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table th:is(.registry-orders-site,.registry-orders-history){white-space:normal}
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-gifts-cell{width:30%}
.registry-history-panel h2{font-size:15px!important;line-height:1.3}
.registry-history-panel .panel-head{margin-bottom:8px}
.registry-history-panel .eyebrow{font-size:9px;margin-bottom:4px}
#registry-history-count{display:inline-block;margin-left:5px;padding:3px 6px;border-radius:6px;background:#fff0e6;color:#bc4d20;font-size:11px}
.registry-history-explanation{font-size:11px;line-height:1.4;color:var(--muted);margin:6px 0 8px}
.registry-history-explanation b{color:var(--ink,#25211e)}
.registry-history-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0}
.registry-history-toolbar input{height:30px;min-height:30px;min-width:220px;border:1px solid var(--line);border-radius:7px;padding:5px 8px;font-family:inherit;font-size:11px;color:inherit;background:var(--surface,#fff)}
.registry-history-toolbar span{font-size:10px;color:var(--muted)}
.registry-history-scroll{overflow:auto;border:1px solid var(--line);border-radius:9px}
.registry-history-table{width:100%;min-width:1050px;border-collapse:collapse;font-size:11px;line-height:1.3;text-align:left}
.registry-history-table th{padding:7px 8px;background:#f7f7f9;font-size:9px;color:var(--muted)}
.registry-history-table td{padding:7px 8px;vertical-align:top;border-top:1px solid var(--line)}
.registry-history-table small{display:block;margin-top:2px;font-size:9px;line-height:1.3;color:var(--muted)}
.registry-evidence{padding:0 0 6px;margin:0 0 6px;border-bottom:1px dashed var(--line)}
.registry-evidence:last-child{border-bottom:0;padding-bottom:0;margin-bottom:0}
.registry-evidence a{display:block;font-size:9px;margin-top:3px;color:#bd5129;text-decoration:underline}
.registry-evidence-status{display:inline-block;font-size:9px;margin-top:3px;padding:3px 5px;border-radius:5px;background:#fff4d9;color:#8d601c}
.registry-evidence-status.is-received,.registry-history-received{color:#18745b;background:#e8f7ee}
.registry-history-received,.registry-history-warning{display:block;font-size:10px;line-height:1.3;padding:5px 6px;border-radius:6px}
.registry-history-warning{color:#8d601c;background:#fff4d9}
.registry-history-panel .secondary-button{font-size:10px;min-height:27px;padding:5px 8px;margin-top:5px}
html[data-theme="dark"] .registry-history-table th,html[data-theme="dark"] .registry-history-toolbar input{background:#29231f}
html[data-theme="dark"] .registry-history-warning,html[data-theme="dark"] .registry-evidence-status{background:#3c3021;color:#f4c681}
html[data-theme="dark"] .registry-history-received,html[data-theme="dark"] .registry-evidence-status.is-received{background:#203b2d;color:#91dcad}

/* One partner per row; evidence belongs in the detail dialog. */
.registry-history-table{min-width:650px;font-size:11px}
.registry-history-table td{vertical-align:middle;padding:6px 8px;line-height:1.2}
.registry-history-table{min-width:900px}
.registry-history-table .registry-partner-cell{width:19%}
.registry-history-table :is(.registry-orders-total,.registry-orders-site,.registry-orders-history){width:5%}
.registry-history-table .registry-site-count{width:7%}
.registry-history-table .registry-gifts-cell{width:31%}
.registry-history-table .registry-address-cell{width:25%}
.registry-history-table .registry-chevron{width:3%}
.registry-history-table .registry-metric{text-align:center;white-space:nowrap;font-variant-numeric:tabular-nums}
.registry-history-table .registry-metric b{font-size:inherit;line-height:inherit}
.registry-address-cell{min-width:190px;font-size:10px;line-height:1.25}
.registry-address-value{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;color:var(--ink,#25211e)}
.registry-address-missing{color:#b5471d}
.registry-reward-address{display:grid;gap:8px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:9px}
.registry-reward-address h3{margin:0}
.registry-reward-address p{margin:0}
.registry-reward-address>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.registry-reward-address label{display:grid;gap:4px;font-size:11px;font-weight:600}
.registry-reward-address input,.registry-reward-address textarea{width:100%;box-sizing:border-box;font:inherit}
.registry-reward-address textarea{min-height:58px;resize:vertical}
.registry-reward-address button{justify-self:start}
@media(max-width:650px){.registry-reward-address>div{grid-template-columns:1fr}}
.registry-history-table tr[data-registry-history-detail]{cursor:pointer}
.registry-history-table tr[data-registry-history-detail]:hover{background:var(--surface-soft,#fff9f4)}
.registry-history-table tr:focus-visible,.registry-name:focus-visible{outline:2px solid #ed925d;outline-offset:-2px}
.registry-name{border:0;background:none;color:inherit;font:inherit;font-weight:700;padding:0;text-align:left;cursor:pointer}
.registry-chevron{color:var(--muted);font-size:18px!important;text-align:right}
.registry-gifts,.registry-detail-gifts{display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px}
.registry-gift{display:inline-flex;align-items:center;gap:5px;max-width:210px;font-size:10px;line-height:1.2}
.registry-gift small{display:block;font-size:9px;margin-top:1px;color:var(--muted)}
.registry-gift-dot{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;border:1px solid #d9dee5;border-radius:50%;color:#7b8798;background:#f4f6f9;font-size:12px;font-weight:700}
.registry-gift.is-received .registry-gift-dot{background:#dcf4e6;border-color:#b5e4ca;color:#218359}
.registry-gift.is-earned .registry-gift-dot{background:#fff3d8;border-color:#efd6a4;color:#99691b}
.registry-history-table .registry-gifts{gap:3px 9px}
.registry-history-table .registry-gift{font-size:9px;line-height:1.15;gap:3px;max-width:190px}
.registry-history-table .registry-gift-dot,.registry-gift-legend .registry-gift-dot{box-sizing:border-box;width:14px;height:14px;flex-basis:14px;font-size:9px}
.registry-history-table td{padding-top:4px;padding-bottom:4px}
.registry-gift-legend{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:5px 0 7px;font-size:9px;line-height:1.2;color:var(--muted)}
.registry-gift-legend .registry-gift{font-size:9px;gap:4px;max-width:none}
.registry-gift{position:relative}
.registry-gift-edit{font-family:inherit;cursor:pointer;padding:0;line-height:1}
.registry-gift-edit:focus-visible{outline:2px solid #ed925d;outline-offset:2px}
.registry-gift-edit:disabled{cursor:wait;opacity:.55}
.registry-gift-select{position:absolute;z-index:5;top:0;left:0;width:170px;box-sizing:border-box;height:26px;min-height:26px;padding:3px 5px;font-family:inherit;font-size:10px;border:1px solid var(--line);border-radius:5px;background:var(--surface,#fff);color:var(--ink,#25211e)}
.registry-gift-select[hidden]{display:none}
.registry-gift.is-sent .registry-gift-dot{background:#e5efff;border-color:#c0d4ee;color:#3e6f9f}
.registry-gift.is-review .registry-gift-dot{background:#fff0e4;border-color:#edc09e;color:#b36929}
.registry-gift.is-not-received .registry-gift-dot{background:#f3f4f6;border-color:#d5dae1;color:#7a8798}
html[data-theme="dark"] .registry-gift-select{background:#302a25;color:#f4eee7}
html[data-theme="dark"] .registry-gift.is-sent .registry-gift-dot{background:#223348;border-color:#496685;color:#a4c8f2}
html[data-theme="dark"] .registry-gift.is-review .registry-gift-dot{background:#463021;border-color:#805c3b;color:#f4c28f}
html[data-theme="dark"] .registry-gift.is-not-received .registry-gift-dot{background:#30343a;border-color:#535b68;color:#bbc4d3}
.registry-muted{font-size:10px;color:var(--muted)}
.modal-card:has(.registry-detail){width:min(760px,calc(100vw - 24px));padding:18px 20px;max-height:calc(100dvh - 24px)}
.registry-detail h2{font-size:20px!important;line-height:1.2;margin:5px 0 3px}
.registry-detail h3{font-size:12px;margin:14px 0 6px}
.registry-detail .modal-label{font-size:9px;padding:3px 6px;margin:0}
.registry-detail p{font-size:11px!important;line-height:1.35!important;margin:5px 0}
.registry-detail-counts{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:11px;margin:9px 0}
.registry-detail-note{background:#f6f7f9;padding:7px 9px;border-radius:6px}
.registry-detail-gifts{padding:9px 0}
.registry-detail-evidence{padding:7px 0;border-top:1px solid var(--line);font-size:11px}
.registry-detail-evidence>div{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.registry-detail-evidence small,.registry-detail-evidence a{display:block;font-size:10px;line-height:1.3;margin-top:3px}
.registry-detail-evidence a{color:#b95228}
.registry-detail .modal-actions{gap:6px;margin-top:10px}
.registry-detail .secondary-button{min-height:29px;padding:5px 9px;font-size:11px}
.registry-level-legend{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;margin:6px 0 9px;color:var(--muted)}
.registry-level-legend .registry-gift{font-size:9px;line-height:1.15;gap:4px}
.registry-level-legend .registry-gift-dot{box-sizing:border-box;width:12px;height:12px;flex-basis:12px;font-size:8px}
.registry-gift.is-upcoming .registry-gift-dot{background:transparent;border-color:#d1d7df;color:var(--muted)}
.registry-level-roadmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:5px 0 9px}
.registry-level-roadmap>.registry-gift{box-sizing:border-box;max-width:none;min-width:0;min-height:46px;padding:5px 7px;gap:6px;border:1px solid var(--line);border-radius:7px;align-items:center;font-size:10px;line-height:1.2}
.registry-level-roadmap>.registry-gift>span:last-child{min-width:0;overflow-wrap:anywhere}
.registry-level-roadmap .registry-gift-dot{box-sizing:border-box;width:18px;height:18px;flex-basis:18px;font-size:11px}
.registry-level-roadmap .registry-level-name{font-size:8px;line-height:1.15;margin-top:2px}
.registry-level-roadmap .is-upcoming{color:var(--muted)}
.registry-detail-rules,.registry-detail-sources{padding:5px 0;border-top:1px solid var(--line);font-size:10px;line-height:1.25}
.registry-detail-rules summary,.registry-detail-sources summary{cursor:pointer;color:var(--muted);font-size:10px;line-height:1.25}
.registry-profile-roadmap h3{font-size:12px;line-height:1.2;margin:0 0 5px}
.registry-profile-roadmap .registry-profile-history{font-size:10px;min-height:25px;padding:4px 8px;margin-top:5px}
@media(max-width:650px){.registry-level-roadmap{grid-template-columns:repeat(3,minmax(0,1fr))}.registry-level-roadmap>.registry-gift{font-size:9px;padding:5px;min-height:44px}}
@media(max-width:420px){.registry-level-roadmap{grid-template-columns:repeat(2,minmax(0,1fr))}}
html[data-theme="dark"] .registry-detail-note{background:#342d28}
html[data-theme="dark"] .registry-history-table tr[data-registry-history-detail]:hover{background:#342d28}
html[data-theme="dark"] .registry-gift-dot{background:#30343a;border-color:#535b68;color:#bbc4d3}
html[data-theme="dark"] .registry-gift.is-received .registry-gift-dot{background:#203b2d;border-color:#3c7559;color:#91dcad}
html[data-theme="dark"] .registry-gift.is-earned .registry-gift-dot{background:#3c3021;border-color:#735c35;color:#f4c681}
@media(max-width:760px){.registry-gift{max-width:180px}.registry-history-table{min-width:590px}.modal-card:has(.registry-detail){padding:16px 12px}.registry-history-toolbar input{min-width:0;width:100%}}

/* Partner filters use the same displayed gift states; they never record fulfillment. */
#registry-history-panel .registry-gift-legend.registry-status-filters{gap:4px;margin:5px 0 6px;align-items:center}
html body #app-main #registry-history-panel .registry-status-filters>button{display:inline-flex;align-items:center;gap:5px;box-sizing:border-box;font:inherit;font-size:10px!important;font-weight:400;line-height:1.15;min-height:24px!important;height:auto!important;padding:3px 6px!important;margin:0;border:1px solid var(--line,#ded2c9);border-radius:5px;background:var(--paper,#fff);color:var(--ink,#302721);white-space:normal;cursor:pointer;max-width:100%}
#registry-history-panel .registry-status-filters>button .registry-gift{font-size:10px!important;line-height:1.15;gap:4px;max-width:none}
#registry-history-panel .registry-status-filters>button b{font-size:9px;line-height:1;min-width:12px;text-align:center;color:var(--muted,#796e64)}
html body #app-main #registry-history-panel .registry-status-filters>button[aria-pressed=true]{border-color:#bf592b;background:#fff0e5;box-shadow:inset 0 0 0 1px #bf592b;color:#8b3b1b}
#registry-history-panel .registry-status-filters>button:focus-visible{outline:2px solid #bf592b;outline-offset:2px}
#registry-history-panel .registry-status-filters>button[hidden]{display:none!important}
#registry-history-panel .registry-gifts .registry-status-hit{outline:1px solid #c3835d;outline-offset:2px;border-radius:3px}
html[data-theme=dark] body #app-main #registry-history-panel .registry-status-filters>button[aria-pressed=true]{background:#493024;color:#ffd7b9;border-color:#df9a69;box-shadow:inset 0 0 0 1px #df9a69}
@media(max-width:700px){#registry-history-panel .registry-gift-legend.registry-status-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:100%}html body #app-main #registry-history-panel .registry-status-filters>button{min-width:0;min-height:32px!important;padding:4px 5px!important;font-size:10px!important;justify-content:space-between}#registry-history-panel .registry-status-filters>button .registry-gift{flex:1;min-width:0;font-size:9px!important}#registry-history-panel .registry-status-filters>button b{flex-shrink:0}}

html body #app-main #registry-history-panel .registry-history-table .registry-history-group>td{width:auto;padding:2px 3px!important;background:var(--surface,#faf7f4);border-top:1px solid var(--line,#ded2c9)}
html body #app-main #registry-history-panel .registry-history-group button{display:flex;align-items:center;gap:5px;width:100%;max-width:100%;box-sizing:border-box;min-height:25px!important;height:auto!important;padding:4px 5px!important;margin:0;border:0;border-radius:3px;text-align:left;font-family:inherit;font-size:10px!important;line-height:1.2;color:var(--ink,#302721);background:transparent;cursor:pointer;white-space:normal}
.registry-history-group strong{font-size:10px;line-height:1.2;font-weight:600}.registry-history-group b{font-size:9px;border:1px solid var(--line,#ded2c9);border-radius:4px;padding:1px 4px;flex-shrink:0;color:var(--muted,#796e64)}.registry-group-arrow{width:10px;flex:0 0 10px;color:#ae542b}.registry-group-action{margin-left:auto;font-size:9px;color:var(--muted,#796e64)}
.registry-history-group button:focus-visible{outline:2px solid #bf592b;outline-offset:-1px}
html[data-theme=dark] body #app-main #registry-history-panel .registry-history-group>td{background:#322a24}
@media(max-width:700px){html body.admin-mode #app-main .page-view[data-view="admin-rewards"] .registry-history-table tr.registry-history-group{display:block;min-width:0;padding:0;border:1px solid var(--line,#ded2c9);border-radius:5px;grid-template-columns:none}html body.admin-mode #app-main .page-view[data-view="admin-rewards"] .registry-history-table tr.registry-history-group>td{display:block!important;padding:0!important;width:auto!important}html body #app-main #registry-history-panel .registry-history-group button{min-height:32px!important;padding:6px!important}.registry-group-action{font-size:9px}.registry-history-group strong{min-width:0;overflow-wrap:anywhere}}

/* Counts stay centered independently of review indicators. Business rules are unchanged. */
html body.admin-mode #app-main #registry-history-panel .registry-history-table{table-layout:fixed}
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-partner-cell{width:18%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-qualified-total{width:7%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table :is(.registry-qualified-site,.registry-qualified-history){width:6%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-count-check{width:10%;text-align:center}
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-gifts-cell{width:29%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-address-cell{width:22%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-chevron{width:2%}
html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-metric{padding-inline:5px;text-align:center;font-variant-numeric:tabular-nums}
html body.admin-mode #app-main #registry-history-panel .registry-metric>b{display:block;text-align:center;margin:0;font-variant-numeric:tabular-nums}
html body #app-main #registry-history-panel .registry-count-check-button{display:inline-block;max-width:100%;min-height:22px;height:auto;margin:0;padding:2px 4px;border:1px solid #e1c79d;border-radius:4px;background:#fff7e8;color:#8e5317;font:inherit;font-size:9px;line-height:1.15;white-space:normal;overflow-wrap:normal;cursor:pointer}
.registry-count-check-button:focus-visible,.registry-count-links button:focus-visible{outline:2px solid #bf592b;outline-offset:2px}
.registry-count-clear{color:var(--muted,#796e64)}
html body #app-main #registry-history-panel .registry-count-legend{font-size:10px;line-height:1.35;color:var(--muted,#796e64);margin:4px 0 6px}
.registry-count-explanation{padding:8px 10px;margin:6px 0 8px;border:1px solid var(--line,#ded2c9);border-radius:6px;background:var(--surface-soft,#fffaf3)}
.registry-detail .registry-count-explanation h3{margin:0 0 4px;font-size:12px}
.registry-detail .registry-count-explanation p{font-size:10px!important;line-height:1.35!important;margin:4px 0}
.registry-count-reasons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 14px;margin:6px 0;font-size:10px;line-height:1.25}
.registry-count-reasons>div{display:flex;align-items:baseline;justify-content:space-between;gap:6px;min-width:0;border-bottom:1px solid var(--line,#ded2c9);padding:3px 0}
.registry-count-reasons dt{min-width:0;overflow-wrap:anywhere}.registry-count-reasons dd{margin:0;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.registry-count-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.registry-count-asof,.registry-count-overlap,.registry-count-legacy,.registry-count-access{color:var(--muted,#796e64)}
.registry-count-source-warning{color:#92541b}
.registry-count-action-message:empty{display:none}
html[data-theme=dark] body #app-main #registry-history-panel .registry-count-check-button{background:#463222;border-color:#896845;color:#f2c887}
html[data-theme=dark] .registry-count-explanation{background:#302922}
html[data-theme=dark] .registry-count-source-warning{color:#f2c887}
@media(max-width:680px){
 html body.admin-mode #app-main #registry-history-panel .registry-history-table tr[data-registry-history-detail]{grid-template-columns:repeat(3,minmax(0,1fr))}
 html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-metric{text-align:center;white-space:normal}
 html body.admin-mode #app-main #registry-history-panel .registry-history-table td.registry-metric:before{display:block;content:attr(data-label);margin:0 0 3px;font-size:9px;line-height:1.2}
 html body.admin-mode #app-main #registry-history-panel .registry-history-table .registry-count-check{grid-column:1/-1;text-align:left}
 html body #app-main #registry-history-panel .registry-count-check-button{min-height:36px;padding:6px 8px;font-size:10px}
 html body #app-main #registry-history-panel .registry-count-legend{font-size:10px}
 .registry-count-reasons{grid-template-columns:minmax(0,1fr)}
 .registry-count-links>.secondary-button{min-height:40px}
}
