:root {
    color-scheme: light;
    --bg: #f5f7f6;
    --panel: #ffffff;
    --ink: #142224;
    --muted: #667477;
    --line: #d9e0dd;
    --accent: #0f766e;
    --accent-dark: #0a4f4a;
    --danger: #b42318;
    --warning: #a15c07;
    --shadow: 0 18px 44px rgba(20, 34, 36, .08);
}

* {
    box-sizing: border-box;
}

.license-body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font: 14px/1.5 "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: var(--bg);
}

.license-shell {
    width: min(1440px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 24px 0 36px;
}

.license-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.license-brand {
    margin: 0 0 4px;
    color: var(--accent-dark);
    font-weight: 800;
}

.license-top h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.12;
}

.license-top p {
    margin: 8px 0 0;
    color: var(--muted);
}

.license-nav {
    display: flex;
    gap: 10px;
}

.license-nav a,
.license-filters button,
.manual-form button,
.pager button,
.detail-actions button,
.button-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--accent);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button-soft.secondary {
    color: var(--accent-dark);
    background: #e2f1ed;
}

.button-soft.danger {
    color: var(--danger);
    background: #fdeceb;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: var(--accent-dark);
    font-weight: 800;
    text-decoration: none;
}

.save-ok,
.license-metrics article,
.license-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.save-ok {
    margin-bottom: 12px;
    padding: 12px 14px;
    color: var(--accent-dark);
    font-weight: 800;
}

.save-warning {
    border-color: #f1cf8b;
    color: #5c3900;
    background: #fff8e8;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.inline-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    background: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.owner-guidance {
    margin-bottom: 12px;
}

.owner-search-panel {
    margin-bottom: 12px;
}

.owner-search-form {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    margin-bottom: 0;
}

.owner-reference-search {
    border-color: #c5d7d3;
    background: linear-gradient(180deg, #f9fcfb 0%, #f3f8f6 100%);
}

.owner-main-search {
    grid-column: span 6;
    font-weight: 900;
}

.owner-search-form select[name="country"],
.owner-search-form select[name="risk_level"],
.owner-search-form select[name="entity_type"] {
    grid-column: span 2;
}

.owner-search-form select[name="mineral"] {
    grid-column: span 6;
}

.owner-search-form button,
.owner-reset-button {
    grid-column: span 2;
    min-height: 42px;
    justify-content: center;
}

.owner-exact-toggle {
    grid-column: span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid #c7dbd5;
    border-radius: 6px;
    padding: 0 10px;
    color: var(--accent-dark);
    background: #edf7f4;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.owner-exact-toggle input {
    width: 16px !important;
    height: 16px !important;
    min-height: 0 !important;
    margin: 0;
    accent-color: var(--accent);
    flex: 0 0 auto;
}

.owner-empty-state {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.owner-empty-state h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.owner-empty-state p {
    margin: 0;
    color: var(--muted);
}

.owner-next-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.owner-next-actions span {
    border: 1px solid #c7dbd5;
    border-radius: 999px;
    padding: 7px 10px;
    color: var(--accent-dark);
    background: #edf7f4;
    font-size: 13px;
    font-weight: 800;
}

.owner-results {
    display: grid;
    gap: 12px;
}

.owner-result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    color: var(--ink);
    font-weight: 900;
}

.owner-result-summary span {
    color: var(--muted);
    font-size: 13px;
}

.owner-result-card {
    overflow: hidden;
}

.owner-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.owner-result-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.owner-result-head span {
    color: var(--muted);
}

.owner-license-table {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.owner-license-row {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr 1fr .9fr 1.2fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    color: var(--ink);
    text-decoration: none;
}

.owner-license-row + .owner-license-row {
    border-top: 1px solid var(--line);
}

.owner-license-row.header {
    color: var(--muted);
    background: #f2f6f5;
    font-size: 13px;
    font-weight: 900;
}

.owner-license-row:not(.header):hover {
    background: #f7fbfa;
}

.owner-license-row small {
    color: var(--muted);
}

.owner-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.owner-import-panel {
    margin-bottom: 12px;
}

.owner-import-form {
    grid-template-columns: minmax(220px, 1fr) 180px minmax(240px, 1fr) 142px;
}

.owner-profile-total {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--accent-dark);
    background: #e2f1ed;
    font-weight: 900;
}

.owner-import-status {
    margin-bottom: 12px;
}

.owner-import-preview {
    margin-bottom: 12px;
}

.owner-import-preview .owner-profile-list {
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.owner-library-panel {
    margin-bottom: 12px;
}

.owner-library-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.owner-library-empty {
    border: 1px dashed #c7dbd5;
    border-radius: 8px;
    padding: 16px;
    color: var(--muted);
    background: #f7fbfa;
    font-weight: 800;
}

.owner-library-list {
    display: grid;
    gap: 10px;
    max-height: 420px;
    overflow: auto;
    padding-right: 4px;
}

.owner-library-item {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(360px, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.owner-library-item.is-deleted {
    opacity: .68;
    background: #f7f7f7;
}

.owner-library-main h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.owner-library-main p {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.owner-library-main p span {
    min-width: 0;
}

.owner-library-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(76px, 1fr));
    gap: 8px;
}

.owner-library-metrics span {
    border: 1px solid #d9e6e3;
    border-radius: 6px;
    padding: 8px;
    color: var(--muted);
    background: #f8fbfa;
    font-size: 12px;
    font-weight: 800;
}

.owner-library-metrics strong {
    display: block;
    margin-top: 2px;
    color: var(--ink);
    font-size: 18px;
}

.owner-library-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.owner-library-actions form {
    margin: 0;
}

.owner-library-actions button {
    cursor: pointer;
}

.owner-import-summary {
    margin-bottom: 12px;
}

.owner-import-management-panel {
    margin-bottom: 12px;
}

.owner-import-filter {
    grid-template-columns: minmax(260px, 1fr) 190px 160px 120px 110px;
    align-items: end;
    margin-bottom: 14px;
}

.owner-import-filter .button-soft {
    min-height: 42px;
    justify-content: center;
}

.owner-import-management-list {
    display: grid;
    gap: 10px;
}

.owner-import-management-item {
    grid-template-columns: minmax(320px, 1.5fr) minmax(360px, 1fr) auto;
}

.owner-import-management-item .owner-library-main p + p {
    margin-top: 6px;
}

.owner-import-management-item .owner-library-main small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.owner-import-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-weight: 800;
}

.owner-import-pagination div {
    display: flex;
    gap: 8px;
}

.owner-profile-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.owner-profile-list.compact .owner-profile-item {
    min-width: 0;
}

.owner-profile-list.compact .owner-profile-main {
    display: block;
}

.owner-profile-list.compact .owner-profile-main span {
    margin-top: 4px;
}

.owner-profile-card {
    border-color: #bfdad2;
    background: #fbfefd;
}

.owner-profile-list {
    display: grid;
    gap: 10px;
}

.owner-profile-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
}

.owner-profile-card.owner-profile-item {
    box-shadow: var(--shadow);
}

.owner-profile-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.owner-profile-hero {
    padding-bottom: 12px;
    border-bottom: 1px dashed #c9d8d4;
}

.owner-profile-main h3 {
    margin: 0;
    font-size: 17px;
}

.owner-profile-main h3 span {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border-radius: 4px;
    padding: 5px 9px;
    color: #1f2930;
    background: #ffbf4d;
    font-weight: 950;
    line-height: 1.25;
}

.owner-profile-main span,
.owner-profile-item small {
    color: var(--muted);
}

.owner-profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.owner-profile-tags span {
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--accent-dark);
    background: #edf7f4;
    font-size: 12px;
    font-weight: 800;
}

.owner-profile-item p {
    margin: 8px 0 0;
    color: #2b3a3d;
    white-space: pre-wrap;
}

.owner-profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 16px;
    margin-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #d4dfdc;
}

.owner-profile-meta-grid div {
    min-width: 0;
}

.owner-profile-meta-grid span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.owner-profile-meta-grid strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.owner-profile-detail-table {
    display: grid;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.owner-profile-detail-table div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 46px;
    background: #fff;
}

.owner-profile-detail-table div + div {
    border-top: 1px solid var(--line);
}

.owner-profile-detail-table strong {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    color: #557073;
    background: #f3f8f6;
    font-size: 13px;
    font-weight: 900;
}

.owner-profile-detail-table p {
    margin: 0;
    padding: 10px 12px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.65;
    white-space: pre-wrap;
}

.owner-profile-detail-table + small {
    display: block;
    margin-top: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--accent-dark);
    background: #e6f4ef;
    font-size: 12px;
    font-weight: 900;
}

.status-badge.danger {
    color: var(--danger);
    background: #fdebea;
}

.status-badge.warn {
    color: var(--warning);
    background: #fff4dc;
}

.status-badge.muted {
    color: #59676a;
    background: #edf0ef;
}

.license-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.license-metrics article {
    min-height: 104px;
    padding: 16px;
}

.license-metrics span,
.panel-head span,
.license-row small,
.history-list small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.license-metrics strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    line-height: 1;
}

.metric-button {
    display: block;
    margin-top: 8px;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.metric-button.danger {
    color: var(--danger);
}

.metric-button.warning {
    color: var(--warning);
}

.metric-button.bump {
    animation: number-bump .32s ease;
}

.metric-button.active {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.license-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 12px;
}

.license-panel {
    padding: 16px;
}

.license-list-panel {
    min-height: 560px;
}

.alert-node-panel {
    grid-column: 1 / -1;
}

.license-form-panel {
    grid-column: 1 / -1;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.license-filters {
    display: grid;
    grid-template-columns: 1fr 160px 160px 88px;
    gap: 10px;
    margin-bottom: 12px;
}

.export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 12px;
}

.license-filters input,
.license-filters select,
.manual-form input,
.manual-form select,
.manual-form textarea,
.action-form input,
.action-form select,
.action-form textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.license-table {
    display: grid;
    gap: 8px;
}

.license-row {
    display: grid;
    grid-template-columns: minmax(112px, .8fr) minmax(70px, .48fr) minmax(180px, 1.15fr) minmax(130px, .9fr) minmax(86px, .58fr) minmax(116px, .72fr) minmax(92px, .62fr);
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.license-row:not(.header) {
    cursor: pointer;
}

.license-row:not(.header):hover {
    border-color: rgba(15, 118, 110, .45);
    background: #f7fbfa;
}

.license-row.header {
    min-height: 34px;
    color: var(--muted);
    background: #f8faf9;
    font-weight: 800;
    cursor: default;
}

.license-row.header button {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.license-row.header button.active {
    color: var(--accent-dark);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: #e2f1ed;
    font-weight: 800;
    white-space: nowrap;
}

.status-pill.expired {
    color: #fff;
    background: var(--danger);
}

.status-pill.warning {
    color: #7c4a03;
    background: #fff1c7;
}

.status-pill.active {
    color: var(--accent-dark);
    background: #e2f1ed;
}

.status-pill.unknown {
    color: #475569;
    background: #e5e7eb;
}

.status-pill.review {
    color: #fff;
    background: var(--warning);
}

.action-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #475569;
    background: #eef3f1;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.action-pill.follow {
    color: #fff;
    background: var(--accent-dark);
}

.action-pill.handled {
    color: #063b2f;
    background: #ccefe4;
}

.action-pill.ignored {
    color: #59616a;
    background: #e5e7eb;
}

.action-pill.pending {
    color: #5c3900;
    background: #fff0cf;
}

.node-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-height: 244px;
    overflow-y: auto;
    padding-right: 4px;
}

.node-card {
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.node-card strong,
.node-card span,
.node-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-card strong {
    color: var(--ink);
}

.node-card span {
    color: var(--muted);
}

.node-card small {
    color: var(--muted);
}

.node-card.red {
    border-color: rgba(180, 35, 24, .38);
    background: #fff8f6;
}

.node-card.yellow {
    border-color: rgba(161, 92, 7, .38);
    background: #fff9ed;
}

.node-card.blue {
    border-color: rgba(37, 99, 235, .34);
    background: #f3f7ff;
}

.node-card.green {
    border-color: rgba(15, 118, 110, .34);
    background: #f0faf7;
}

.history-list {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px;
}

.history-card {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
}

.history-card strong {
    display: block;
    margin-bottom: 4px;
}

.empty {
    margin: 0;
    color: var(--muted);
}

.manual-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.manual-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-weight: 800;
}

.manual-form .wide-field {
    grid-column: span 2;
}

.manual-form .form-note {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(14, 120, 109, .18);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(14, 120, 109, .08);
    font-size: 13px;
    line-height: 1.6;
}

.manual-form .collector-running {
    border-color: #f1cf8b;
    color: #5c3900;
    background: #fff8e8;
}

.manual-form button {
    align-self: end;
}

.manual-form button:disabled {
    cursor: wait;
    opacity: .72;
}

.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.page-size {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.page-size select {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

#licenseRows {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 4px;
}

.pager button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.run-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #07342d;
    background: #ccefe4;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.run-status-pill.pending,
.run-status-pill.dev {
    color: #432800;
    background: #fff0cf;
}

.run-status-pill.ready {
    color: #063b52;
    background: #d4f3ff;
}

.run-status-pill.warn {
    color: #432800;
    background: #fff0cf;
}

.run-status-pill.danger {
    color: #fff;
    background: var(--danger);
}

.run-status-pill.blocked {
    color: #50220a;
    background: #ffe2cf;
}

.run-status-pill.failed {
    color: #fff;
    background: var(--danger);
}

.run-status-pill.ok {
    color: #07342d;
    background: #ccefe4;
}

.run-status-note {
    display: block;
    margin-top: 5px;
    max-width: 180px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.country-health-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.country-health-strip div {
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.country-health-strip span,
.country-health-strip small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.country-health-strip strong {
    display: block;
    margin: 6px 0;
    color: var(--ink);
    font-size: 28px;
}

.collection-guide-panel {
    margin-bottom: 16px;
}

.collection-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.collection-guide-grid section {
    min-height: 118px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    background: #f8fcfb;
}

.collection-guide-grid strong,
.collection-guide-grid span {
    display: block;
}

.collection-guide-grid strong {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
}

.collection-guide-grid span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.license-dialog {
    width: min(860px, calc(100vw - 28px));
    max-height: min(820px, calc(100vh - 28px));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 28px 80px rgba(20, 34, 36, .26);
}

.license-dialog::backdrop {
    background: rgba(20, 34, 36, .34);
}

.dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: #eef3f1;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.detail-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-right: 34px;
    margin-bottom: 14px;
}

.detail-head p,
.detail-head h2 {
    margin: 0;
}

.detail-head p {
    color: var(--muted);
}

.detail-head h2 {
    font-size: 30px;
    line-height: 1.1;
}

.detail-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 9px 14px;
    margin: 0;
}

.detail-grid dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-grid dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.source-missing-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(161, 92, 7, .22);
    border-radius: 8px;
    background: #fff9ed;
}

.source-missing-box strong,
.source-missing-box span {
    display: block;
}

.source-missing-box strong {
    margin-bottom: 4px;
}

.source-missing-box span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.source-missing-box button {
    align-self: stretch;
}

.expiry-advice-box {
    border-color: rgba(15, 118, 110, .18);
    background: #f7fbfa;
}

.expiry-advice-box.expired {
    border-color: rgba(220, 38, 38, .24);
    background: #fff5f5;
}

.expiry-advice-box.warning {
    border-color: rgba(217, 119, 6, .28);
    background: #fff9ed;
}

.expiry-advice-box.unknown {
    border-color: rgba(100, 116, 139, .28);
    background: #f8fafc;
}

.missing-tags {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.missing-tags span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    border-radius: 999px;
    padding: 4px 9px;
    color: #5c3900;
    background: #fff;
    font-size: 12px;
    font-weight: 900;
}

.action-form {
    display: grid;
    grid-template-columns: 170px minmax(150px, 1fr) minmax(150px, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 8px;
    background: #f7fbfa;
}

.action-form label {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-weight: 800;
}

.action-form .wide-field {
    grid-column: 1 / -1;
}

.action-form .checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.action-form .checkbox-line input {
    width: auto;
    min-height: 0;
}

.action-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.manual-open {
    border: 0;
    cursor: pointer;
}

.manual-dialog {
    width: min(1040px, calc(100vw - 28px));
}

.manual-tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: #e2f1ed;
    font-weight: 900;
}

.change-list {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.change-list span {
    display: block;
    padding: 5px 7px;
    border-radius: 6px;
    color: var(--warning);
    background: #fff7ed;
    font-size: 13px;
    font-weight: 800;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    padding: 12px 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--accent-dark);
    box-shadow: 0 18px 48px rgba(20, 34, 36, .24);
    animation: toast-in .2s ease;
}

.import-result {
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid rgba(15, 118, 110, .28);
    border-radius: 8px;
    background: #f1faf7;
    box-shadow: var(--shadow);
}

.import-result h2 {
    margin: 0 0 12px;
}

.import-result dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 8px 12px;
    margin: 0 0 14px;
}

.import-result dt {
    color: var(--muted);
    font-weight: 800;
}

.import-result dd {
    margin: 0;
}

.import-note {
    margin: -4px 0 14px;
    color: var(--muted);
}

.import-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 14px 0;
}

.import-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: var(--ink);
    font-weight: 800;
}

.inline-check input {
    width: auto;
    min-height: 0;
}

.import-compare-table-wrap {
    max-height: 420px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.import-compare-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.import-compare-table th,
.import-compare-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.import-compare-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--muted);
    background: #f7faf9;
    font-size: 12px;
    font-weight: 900;
}

.compare-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--accent-dark);
    background: #e2f1ed;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.compare-badge.changed_identity {
    color: #744210;
    background: #fff3cd;
}

.compare-badge.exact_duplicate,
.compare-badge.record_key_duplicate {
    color: #475569;
    background: #e8eef2;
}

.compare-badge.missing_identity {
    color: var(--danger);
    background: #fee4e2;
}

.save-error {
    color: var(--danger);
}

.import-panel {
    max-width: 980px;
}

.import-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
}

.country-settings-grid {
    grid-template-columns: 460px minmax(0, 1fr);
}

.project-decision-grid {
    grid-template-columns: 520px minmax(0, 1fr);
}

.project-task-grid {
    grid-template-columns: 430px minmax(0, 1fr);
    margin-top: 16px;
}

.project-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-task-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-guidance {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
    border: 1px solid #d4e8e2;
    border-radius: 8px;
    padding: 12px 14px;
    color: #18413a;
    background: #f4fbf8;
}

.project-guidance strong {
    font-weight: 900;
}

.project-guidance span {
    color: var(--muted);
    line-height: 1.55;
}

.settings-form-panel {
    min-height: 420px;
}

.settings-list-panel {
    align-self: start;
}

.collector-action-panel {
    min-height: auto;
    margin-bottom: 14px;
}

.collector-action-panel .collector-form {
    grid-template-columns: minmax(300px, 1.35fr) minmax(250px, .95fr) repeat(3, minmax(132px, 170px));
    align-items: end;
}

.collector-action-panel .collector-form .wide-field {
    grid-column: auto;
}

.collector-action-panel .collector-form .form-note {
    grid-column: 1 / -1;
}

.collector-action-panel .button-soft {
    width: 100%;
    justify-content: center;
}

.collector-rule-panel {
    margin-bottom: 14px;
}

.collector-rule-panel .collector-rule-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.collector-rule-panel .recipient-card {
    min-height: 96px;
    align-items: start;
    padding: 11px 12px;
}

.collector-rule-panel .recipient-card strong {
    margin-bottom: 4px;
}

.collector-rule-panel .recipient-card span,
.collector-rule-panel .recipient-card small {
    white-space: normal;
    line-height: 1.45;
}

.alert-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notify-guide-grid,
.notify-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
}

.notify-status-panel {
    min-height: 250px;
}

.mail-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mail-settings-form label {
    font-size: 12px;
}

.mail-settings-form input,
.mail-settings-form select {
    min-height: 36px;
}

.mail-settings-form .form-note,
.mail-settings-form button {
    grid-column: 1 / -1;
}

.config-status-list {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}

.config-status-list div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
}

.config-status-list dt,
.config-status-list dd {
    margin: 0;
}

.config-status-list dt,
.hint-copy {
    color: var(--muted);
}

.config-status-list dd {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.notify-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.notify-action-row form {
    margin: 0;
}

.notify-action-row button {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 8px 14px;
    color: #fff;
    background: var(--accent);
    font-weight: 900;
    cursor: pointer;
}

.command-code {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 12px;
    border-radius: 8px;
    color: #173a59;
    background: #e9f2f8;
    font-size: 12px;
}

.notify-result-list {
    display: grid;
    gap: 10px;
}

.notify-result-card {
    display: grid;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--muted);
    border-radius: 8px;
    background: #f8faf9;
}

.notify-result-card.sent,
.notify-result-card.dry-run {
    border-left-color: var(--accent);
}

.notify-result-card.failed {
    border-left-color: var(--danger);
}

.notify-result-card.skipped {
    border-left-color: var(--warning);
}

.notify-result-card span,
.notify-result-card small {
    color: var(--muted);
}

.alert-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.alert-overview-card {
    display: grid;
    gap: 6px;
    min-height: 128px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.alert-overview-card.active {
    border-color: var(--accent);
    box-shadow: 0 18px 44px rgba(15, 118, 110, .16);
}

.alert-overview-card span,
.alert-overview-card small {
    color: var(--muted);
}

.alert-overview-card strong {
    font-size: 34px;
    line-height: 1;
}

.alert-overview-card.red strong,
.alert-level-pill.red {
    color: var(--danger);
}

.alert-overview-card.yellow strong,
.alert-level-pill.yellow {
    color: var(--warning);
}

.alert-overview-card.blue strong,
.alert-level-pill.blue {
    color: #1767b1;
}

.alert-overview-card.green strong,
.alert-level-pill.green {
    color: var(--accent-dark);
}

.alert-table-wrap {
    width: 100%;
    max-height: min(720px, calc(100vh - 320px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.alert-table-wrap.compact {
    max-height: 380px;
}

.alert-ledger-table {
    width: max(1180px, 100%);
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
}

.alert-ledger-table th,
.alert-ledger-table td {
    border-bottom: 1px solid var(--line);
    padding: 10px 11px;
    text-align: left;
    vertical-align: top;
}

.alert-ledger-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #fff;
    background: #173a59;
    white-space: nowrap;
}

.alert-ledger-table td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.alert-level-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 4px 9px;
    background: #f1f5f4;
    font-weight: 900;
    white-space: nowrap;
}

.alert-help-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.country-settings-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.level-fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.level-fieldset legend {
    padding: 0 6px;
    color: var(--muted);
    font-weight: 800;
}

.level-fieldset label {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
}

.level-fieldset input {
    width: auto;
    min-height: 0;
}

.recipient-list {
    display: grid;
    gap: 10px;
}

.recipient-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
}

.recipient-card strong,
.recipient-card span,
.recipient-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recipient-card span,
.recipient-card small {
    color: var(--muted);
}

.recipient-card button {
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 7px 10px;
    color: #fff;
    background: var(--danger);
    font-weight: 800;
    cursor: pointer;
}

.country-table-wrap {
    width: 100%;
    max-height: min(680px, calc(100vh - 230px));
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.country-ledger-table {
    width: max(2180px, 100%);
    border-collapse: collapse;
    font-size: 13px;
}

.country-ledger-table th,
.country-ledger-table td {
    border-bottom: 1px solid var(--line);
    padding: 9px 10px;
    text-align: left;
    vertical-align: top;
}

.country-ledger-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: #fff;
    background: #173a59;
    font-weight: 900;
    white-space: nowrap;
}

.country-ledger-table tbody tr:nth-child(even) {
    background: #eef8fb;
}

.country-ledger-table tbody tr:hover {
    background: #e2f1ed;
}

.country-ledger-table td:nth-child(1),
.country-ledger-table td:nth-child(7),
.country-ledger-table td:nth-child(14) {
    text-align: center;
    white-space: nowrap;
}

.country-ledger-table td:nth-child(6),
.country-ledger-table td:nth-child(11),
.country-ledger-table td:nth-child(15) {
    min-width: 220px;
    max-width: 360px;
    overflow-wrap: anywhere;
}

.country-ledger-table td:nth-child(8),
.country-ledger-table td:nth-child(9),
.country-ledger-table td:nth-child(12),
.country-ledger-table td:nth-child(13),
.country-ledger-table td:nth-child(17) {
    white-space: nowrap;
}

.country-ledger-table a {
    color: var(--accent-dark);
    font-weight: 800;
}

.project-table-wrap {
    max-height: min(760px, calc(100vh - 250px));
}

.project-ledger-table {
    width: max(1960px, 100%);
}

.project-task-table-wrap {
    max-height: min(600px, calc(100vh - 290px));
}

.project-task-table {
    width: max(1280px, 100%);
}

.quality-grid {
    grid-template-columns: minmax(260px, 0.85fr) minmax(520px, 1.15fr);
}

.quality-table-wrap {
    max-height: 420px;
}

.compact-ledger-table {
    width: max(860px, 100%);
}

.ops-command-grid {
    grid-template-columns: minmax(420px, 1.1fr) minmax(320px, 0.9fr);
}

.ops-log-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.ops-log-grid .license-panel {
    min-width: 0;
}

.ops-command-list {
    display: grid;
    gap: 12px;
}

.ops-command-list section {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfd;
}

.ops-command-list strong {
    color: var(--ink);
}

.ops-command-list code {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding: 9px 10px;
    border-radius: 6px;
    color: #173a59;
    background: #e9f2f8;
    font-size: 12px;
}

.ops-backup-form {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.ops-backup-form small {
    color: var(--muted);
    line-height: 1.45;
}

.ops-backup-list {
    max-height: 378px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-color: rgba(14, 120, 109, .58) rgba(225, 235, 234, .9);
    scrollbar-width: thin;
}

.ops-backup-list::-webkit-scrollbar {
    width: 8px;
}

.ops-backup-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(225, 235, 234, .9);
}

.ops-backup-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(14, 120, 109, .58);
}

.ops-backup-list::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 120, 109, .78);
}

.table-health-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ops-table-wrap {
    max-height: 360px;
}

.ops-ledger-table {
    width: max(1180px, 100%);
}

.ops-log-grid article:first-child .ops-ledger-table {
    width: max(1080px, 100%);
}

.ops-log-grid article:nth-child(2) .ops-ledger-table {
    width: max(1240px, 100%);
}

.ops-ledger-table td:nth-child(6),
.ops-ledger-table td:nth-child(11),
.ops-ledger-table td:nth-child(15) {
    min-width: 0;
    max-width: none;
}

.ops-ledger-table td:nth-child(2),
.ops-ledger-table td:nth-child(4),
.ops-ledger-table td:nth-child(5) {
    overflow-wrap: anywhere;
}

.ops-ledger-table td:nth-child(1),
.ops-ledger-table td:nth-child(3),
.ops-ledger-table td:nth-child(6) {
    white-space: nowrap;
}

.collector-readiness-wrap {
    max-height: min(620px, calc(100vh - 260px));
}

.collector-readiness-table {
    width: max(1500px, 100%);
}

.muted-cell {
    color: var(--muted);
}

.country-table-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

.country-table-actions form {
    margin: 0;
}

.country-table-actions a,
.country-table-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 0;
    border-radius: 6px;
    padding: 7px 10px;
    color: #fff;
    background: var(--accent);
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.country-table-actions a:nth-child(2) {
    color: var(--accent-dark);
    background: #e2f1ed;
}

.country-table-actions button {
    background: var(--danger);
}

.country-table-actions .country-edit-button {
    background: var(--accent);
}

@keyframes number-bump {
    0% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes toast-in {
    from {
        transform: translateY(10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding-top: 0;
}

.auth-panel {
    width: min(100%, 460px);
    min-height: auto;
}

.auth-panel .panel-head {
    margin-bottom: 18px;
}

.auth-panel .panel-head h1 {
    margin: 6px 0 0;
    font-size: 28px;
}

.auth-form {
    grid-template-columns: 1fr;
}

.auth-form button {
    width: 100%;
    min-height: 44px;
}

@media (max-width: 1100px) {
    .license-metrics,
    .license-grid,
    .manual-form,
    .action-form,
    .node-strip,
    .country-health-strip,
    .collection-guide-grid,
    .settings-grid,
    .notify-guide-grid,
    .notify-result-grid,
    .country-settings-grid,
    .project-decision-grid,
    .project-task-grid,
    .alert-overview-grid,
    .alert-help-grid,
    .alert-settings-form,
    .country-settings-form,
    .project-form,
    .project-task-form,
    .table-health-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .license-list-panel,
    .license-form-panel {
        grid-column: 1 / -1;
    }

    .license-filters,
    .license-row,
    .import-form {
        grid-template-columns: 1fr 1fr;
    }

    .owner-library-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .owner-library-actions {
        justify-content: flex-start;
    }

    .collector-action-panel .collector-form,
    .collector-rule-panel .collector-rule-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collector-action-panel .collector-form button,
    .collector-action-panel .collector-form .button-soft {
        min-height: 40px;
    }
}

@media (max-width: 720px) {
    .license-shell {
        width: min(100vw - 20px, 560px);
        padding-top: 14px;
    }

    .license-top,
    .license-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .license-metrics,
    .license-grid,
    .license-filters,
    .owner-search-form,
    .owner-profile-list.compact,
    .owner-license-row,
    .manual-form,
    .action-form,
    .license-row,
    .import-form,
    .detail-grid,
    .node-strip,
    .country-health-strip,
    .collection-guide-grid,
    .settings-grid,
    .notify-guide-grid,
    .notify-result-grid,
    .country-settings-grid,
    .project-decision-grid,
    .project-task-grid,
    .alert-overview-grid,
    .alert-help-grid,
    .alert-settings-form,
    .country-settings-form,
    .project-form,
    .project-task-form,
    .table-health-list,
    .recipient-card {
        grid-template-columns: 1fr;
    }

    .pager {
        justify-content: stretch;
    }

    .pager button {
        flex: 1;
    }

    .source-missing-box {
        grid-template-columns: 1fr;
    }

    .config-status-list div {
        grid-template-columns: 1fr;
    }

    .manual-form .wide-field,
    .action-form .wide-field {
        grid-column: 1 / -1;
    }

    .collector-action-panel .collector-form,
    .collector-rule-panel .collector-rule-list {
        grid-template-columns: 1fr;
    }

    .mail-settings-form {
        grid-template-columns: 1fr;
    }

    .collector-rule-panel .recipient-card {
        min-height: auto;
    }

    .ops-backup-list {
        max-height: 320px;
    }

    .project-guidance {
        grid-template-columns: 1fr;
    }

    .owner-result-head {
        display: block;
    }

    .owner-result-head .button-soft {
        margin-top: 10px;
    }

    .owner-library-head-actions,
    .owner-import-pagination {
        justify-content: flex-start;
    }

    .owner-library-list {
        max-height: 360px;
    }

    .owner-library-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .owner-library-actions {
        flex-wrap: wrap;
    }

    .owner-import-filter {
        grid-template-columns: 1fr;
    }

    .owner-main-search,
    .owner-search-form select[name="country"],
    .owner-search-form select[name="risk_level"],
    .owner-search-form select[name="entity_type"],
    .owner-search-form select[name="mineral"],
    .owner-search-form button,
    .owner-reset-button,
    .owner-exact-toggle {
        grid-column: auto;
    }

    .owner-result-summary {
        display: block;
    }

    .owner-result-summary span {
        margin-top: 4px;
    }

    .owner-profile-meta-grid {
        grid-template-columns: 1fr;
    }

    .owner-profile-detail-table div {
        grid-template-columns: 1fr;
    }

    .owner-license-row.header {
        display: none;
    }
}
