:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --line: #d7dfeb;
    --text: #101b2d;
    --muted: #647086;
    --green: #16866b;
    --green-dark: #0f725a;
    --red: #c92418;
    --red-bg: #fff0ee;
    --blue-bg: #eaf2ff;
    --yellow-bg: #fff7e5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at 20% 0%, #f8fbff 0, var(--bg) 42%, #f6f8fc 100%);
    color: var(--text);
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.page {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.topbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
}

h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1;
    letter-spacing: 0;
}

.select-card {
    width: 260px;
    min-height: 62px;
    border: 1px solid #cbd5e4;
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 8px 24px rgba(21, 36, 62, 0.07);
    display: grid;
    grid-template-columns: 40px 1fr 18px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
}

.select-wrap {
    position: relative;
    width: 260px;
}

.select-wrap .select-card {
    width: 100%;
}

.country-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.select-card .icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e9f8f2;
    font-size: 20px;
}

.select-card .flag {
    border-radius: 3px;
    background: linear-gradient(#ffd526 0 50%, #154bb8 50% 75%, #d92525 75%);
}

.label {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.value {
    font-size: 18px;
    font-weight: 800;
}

.chevron {
    color: var(--muted);
    font-size: 18px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 28px rgba(20, 34, 58, 0.05);
}

.notice {
    padding: 18px 22px;
    margin-bottom: 16px;
}

.notice h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

.notice p {
    margin: 6px 0;
    font-size: 16px;
    line-height: 1.45;
}

.notice a {
    color: #007f68;
    font-weight: 800;
}

.form-panel {
    padding: 20px;
    margin-bottom: 16px;
}

.field-label {
    color: var(--muted);
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 114px;
    gap: 14px;
}

.secret-row {
    display: grid;
    grid-template-columns: 1fr 112px;
    gap: 10px;
}

.money-row {
    position: relative;
}

.money-row span {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
    font-weight: 800;
}

.money-row .card-input {
    padding-left: 38px;
}

input,
button,
select {
    font: inherit;
}

.card-input {
    width: 100%;
    height: 52px;
    border: 1px solid #c6d0df;
    border-radius: 9px;
    background: #fff;
    padding: 0 20px;
    font-size: 16px;
}

.btn {
    min-height: 48px;
    border: 1px solid #c5d0df;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
    user-select: none;
}

.btn:hover {
    border-color: #95a7bf;
    box-shadow: 0 8px 18px rgba(22, 39, 68, 0.1);
    transform: translateY(-1px);
}

.btn:active,
.btn.is-pressing {
    box-shadow: 0 3px 8px rgba(22, 39, 68, 0.12);
    transform: translateY(1px) scale(0.985);
}

.btn:focus-visible {
    outline: 3px solid rgba(22, 134, 107, 0.25);
    outline-offset: 2px;
}

.btn::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
}

.btn.is-pressing::after {
    animation: button-ripple 420ms ease-out;
}

.btn.is-loading {
    color: transparent;
    pointer-events: none;
}

.btn.is-loading::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-top-color: #fff;
    border-radius: 999px;
    animation: button-spin 800ms linear infinite;
}

.btn:not(.btn-primary).is-loading::before {
    border-color: rgba(16, 27, 45, 0.22);
    border-top-color: var(--text);
}

@keyframes button-ripple {
    0% {
        opacity: 0.22;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(42);
    }
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.btn-primary:hover {
    background: var(--green-dark);
}

.btn-danger {
    background: var(--red-bg);
    border-color: #ffc4bc;
    color: var(--red);
}

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

.alert {
    border: 1px solid #ffd486;
    border-radius: 10px;
    background: var(--yellow-bg);
    margin-bottom: 16px;
    padding: 12px 16px;
    font-size: 16px;
}

.alert-error {
    border-color: #ffb8ae;
    background: var(--red-bg);
    color: var(--red);
}

.status-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.85fr) minmax(260px, 1.35fr) minmax(150px, 0.85fr) minmax(160px, 0.9fr) minmax(170px, 0.95fr);
    gap: 14px;
}

.status-card {
    min-height: 124px;
    padding: 16px;
}

.status-card.highlight {
    background: var(--blue-bg);
    border-color: #b9d1ff;
}

.status-card.danger {
    background: var(--red-bg);
    border-color: #ffb8ae;
    color: var(--red);
}

.status-card.danger .status-title,
.status-card.danger .status-value {
    color: var(--red);
}

.status-title {
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 18px;
}

.status-value {
    font-size: 20px;
    line-height: 1.12;
    font-weight: 900;
    word-break: break-word;
}

.phone-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.phone-line .status-value {
    min-width: 0;
    white-space: nowrap;
    word-break: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 18px;
}

.copy-icon-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #bdd0e8;
    border-radius: 7px;
    background: #f8fbff;
    color: #175ddc;
    cursor: pointer;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.copy-icon-btn:hover {
    border-color: #7fa6df;
    background: #edf5ff;
    box-shadow: 0 6px 14px rgba(23, 93, 220, 0.13);
    transform: translateY(-1px);
}

.copy-icon-btn:active,
.copy-icon-btn.is-pressing {
    transform: translateY(1px) scale(0.96);
}

.copy-icon-btn.is-done {
    border-color: #9edcca;
    background: #e9fbf4;
    color: #0f725a;
}

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

.admin-sections {
    display: grid;
    grid-template-columns: minmax(360px, 0.95fr) minmax(520px, 1.05fr);
    gap: 16px;
    align-items: stretch;
}

.card-admin-section {
    grid-column: 1 / -1;
    order: 2;
}

.admin-section:not(.card-admin-section) {
    order: 1;
    min-height: 560px;
}

.admin-section:not(.card-admin-section):first-of-type {
    display: flex;
    flex-direction: column;
}

.admin-section:not(.card-admin-section):first-of-type .mini-status {
    margin-top: auto;
}

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

.card-filter-grid {
    display: grid;
    grid-template-columns: 160px repeat(2, 180px) 120px;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
}

.admin-search-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) 140px 150px 150px 96px 92px auto;
    gap: 10px;
    align-items: end;
    margin-top: 14px;
}

.admin-search-grid .search-wide {
    min-width: 0;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border: 1px solid #d9e5f3;
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    padding: 0 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.filter-pill strong {
    min-width: 24px;
    border-radius: 999px;
    background: #eef5ff;
    color: #175ddc;
    font-size: 12px;
    line-height: 1;
    padding: 5px 7px;
    text-align: center;
}

.filter-pill:hover {
    transform: translateY(-1px);
    border-color: #b8d2ff;
}

.filter-pill.is-active {
    border-color: #92c5ff;
    background: #edf6ff;
    color: #175ddc;
}

.filter-pill.is-active strong {
    background: #dcecff;
}

.legacy-card-filter,
.legacy-card-filter + .field-label,
.legacy-card-filter + .field-label + .secret-row {
    display: none;
}

.legacy-number-search {
    display: none;
}

.legacy-number-search + .list-count {
    display: none;
}

.number-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.number-summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    border: 1px solid #d9e5f3;
    border-radius: 999px;
    background: #f8fbff;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding: 0 12px;
}

.number-summary strong {
    color: var(--text);
    font-size: 14px;
}

.list-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-top: 8px;
}

.list-count strong {
    color: var(--text);
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(100%, 380px);
    padding: 24px;
}

.login-brand {
    margin-bottom: 18px;
}

.login-brand h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
}

.login-brand p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form .card-input {
    min-height: 44px;
}

.login-form .btn {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
}

.number-search {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 92px auto;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.card-table {
    display: grid;
    grid-template-columns: minmax(220px, 1.6fr) 90px 90px 90px minmax(140px, 1fr) 136px;
    gap: 0;
    align-items: center;
    max-height: 360px;
    overflow: auto;
    margin-top: 18px;
    font-size: 14px;
}

.number-table {
    display: grid;
    grid-template-columns: minmax(140px, 1.1fr) 74px 82px 58px 86px 88px 52px minmax(140px, 1fr) minmax(210px, 1.4fr) 68px;
    gap: 0;
    align-items: center;
    max-height: 300px;
    overflow: auto;
    margin-top: 12px;
    font-size: 13px;
}

.number-table > div {
    padding: 7px 9px;
}

.number-table > div:nth-child(20n + 11),
.number-table > div:nth-child(20n + 12),
.number-table > div:nth-child(20n + 13),
.number-table > div:nth-child(20n + 14),
.number-table > div:nth-child(20n + 15),
.number-table > div:nth-child(20n + 16),
.number-table > div:nth-child(20n + 17),
.number-table > div:nth-child(20n + 18),
.number-table > div:nth-child(20n + 19),
.number-table > div:nth-child(20n + 20) {
    background: #f6f9fd;
}

.number-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.number-card-list span {
    background: #edf4ff;
    border: 1px solid #cfe0ff;
    border-radius: 6px;
    color: #175ddc;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    padding: 3px 5px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: rgba(15, 23, 42, 0.34);
    padding: 24px;
}

.modal-panel {
    width: min(720px, 100%);
    max-height: min(680px, calc(100vh - 48px));
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.modal-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 12px;
    border-bottom: 1px solid var(--border);
}

.modal-head h3 {
    margin: 0;
    font-size: 20px;
}

.modal-head p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.generated-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: auto;
    padding: 14px 20px;
}

.generated-card-row {
    background: #f6f9fd;
    border: 1px solid #e2ebf8;
    border-radius: 6px;
    color: #175ddc;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 10px;
}

.modal-status {
    min-height: 20px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
    padding: 0 20px 2px;
}

.modal-status-error {
    color: #b91c1c;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--border);
}

.card-head {
    color: var(--muted);
    font-weight: 800;
    padding: 8px 10px;
}

.card-table > div:not(.card-head) {
    padding: 8px 10px;
}

.card-table > div.card-row-alt {
    background: #f6f9fd;
}

.card-code {
    color: #175ddc;
    font-weight: 900;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 7px;
    padding: 2px 9px;
    border: 1px solid #d8e1ef;
    background: #f7f9fd;
    color: #26364f;
    font-weight: 800;
}

.status-unused {
    border-color: #bad7ff;
    background: #edf5ff;
    color: #175ddc;
}

.status-active,
.status-success {
    border-color: #9edcca;
    background: #e9fbf4;
    color: #0f725a;
}

.status-used_up,
.status-expired {
    border-color: #ffd58f;
    background: #fff7e5;
    color: #8a5a00;
}

.status-disabled,
.status-destroyed {
    border-color: #ffc4bc;
    background: #fff0ee;
    color: var(--red);
}

.row-actions {
    display: flex;
    gap: 8px;
}

.mini-btn {
    min-height: 30px;
    border: 1px solid #c5d0df;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 0 10px;
    position: relative;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.mini-btn:hover {
    border-color: #95a7bf;
    background: #f8fbff;
    box-shadow: 0 6px 14px rgba(22, 39, 68, 0.1);
    transform: translateY(-1px);
}

.mini-btn:active,
.mini-btn.is-pressing {
    box-shadow: 0 2px 6px rgba(22, 39, 68, 0.14);
    transform: translateY(1px) scale(0.97);
}

.mini-btn.is-done {
    border-color: #9edcca;
    background: #e9fbf4;
    color: #0f725a;
}

.mini-btn.is-confirming {
    border-color: #ff9b8f;
    background: #ffe3df;
    color: var(--red);
    box-shadow: 0 0 0 3px rgba(201, 36, 24, 0.12);
}

.mini-btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.mini-danger {
    border-color: #ffc4bc;
    color: var(--red);
    background: var(--red-bg);
}

.mono {
    font-family: Consolas, "Courier New", monospace;
    word-break: break-all;
}

.admin-section h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

#number-pool {
    scroll-margin-top: 18px;
}

.two-actions {
    grid-template-columns: 1fr 1fr;
}

.mini-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.mini-status div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.mini-status span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.mini-status strong {
    font-size: 20px;
}

.muted-text {
    color: var(--muted);
    margin: -6px 0 14px;
    font-size: 15px;
}

.country-table {
    display: grid;
    grid-template-columns: 120px 90px 1fr 120px 120px;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 22px;
    font-size: 18px;
}

.country-table-compact {
    max-height: 460px;
    overflow: auto;
    padding-right: 6px;
    grid-template-columns: 86px 64px 1fr 72px 76px;
    font-size: 15px;
}

.country-table-compact input[type="number"] {
    min-height: 36px;
}

.country-head {
    color: var(--muted);
    font-weight: 800;
}

.country-table input[type="number"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid #c6d0df;
    border-radius: 7px;
    padding: 0 10px;
}

.check-cell {
    display: flex;
    align-items: center;
}

.check-cell input {
    width: 22px;
    height: 22px;
}

.small-page h1 {
    font-size: 30px;
    margin-bottom: 16px;
}

.small-page {
    width: min(1480px, calc(100% - 36px));
    padding: 20px 0 32px;
}

.small-page .admin-grid {
    gap: 12px;
}

.small-page .status-card {
    min-height: 88px;
    padding: 12px 14px;
}

.small-page .status-title {
    font-size: 14px;
    margin-bottom: 12px;
}

.small-page .status-value {
    font-size: 18px;
}

.small-page .alert {
    padding: 9px 14px;
    font-size: 14px;
    margin-bottom: 12px;
}

.small-page .admin-sections {
    gap: 12px;
}

.small-page .form-panel {
    padding: 14px;
    margin-bottom: 12px;
}

.small-page .admin-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.small-page .field-label {
    font-size: 13px;
    margin-bottom: 7px;
}

.small-page .card-input {
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
}

.small-page .btn {
    min-height: 40px;
    font-size: 14px;
}

.small-page .actions {
    gap: 10px;
    margin-top: 12px;
}

.small-page .secret-row {
    grid-template-columns: 1fr 92px;
}

.small-page .money-row span {
    left: 14px;
    font-size: 15px;
}

.small-page .money-row .card-input {
    padding-left: 32px;
}

.small-page .admin-section:not(.card-admin-section) {
    min-height: 430px;
}

.small-page .mini-status {
    gap: 10px;
    margin-top: 12px;
}

.small-page .mini-status div {
    padding: 9px 10px;
}

.small-page .mini-status span {
    font-size: 12px;
    margin-bottom: 5px;
}

.small-page .mini-status strong {
    font-size: 16px;
}

.small-page .muted-text {
    font-size: 13px;
    margin: -4px 0 10px;
}

.small-page .country-table-compact {
    max-height: 340px;
    gap: 7px 10px;
    grid-template-columns: 72px 56px 1fr 64px 66px;
    font-size: 13px;
    margin-bottom: 12px;
}

.small-page .country-table-compact input[type="number"] {
    min-height: 32px;
    padding: 0 8px;
}

.small-page .check-cell input {
    width: 18px;
    height: 18px;
}

.small-page .card-generate-grid {
    gap: 10px;
}

.small-page .card-filter-grid {
    grid-template-columns: 140px repeat(2, 160px) 104px;
    gap: 8px;
    margin-top: 12px;
}

.small-page .card-table {
    max-height: 300px;
    margin-top: 12px;
    font-size: 13px;
}

.small-page .card-head,
.small-page .card-table > div:not(.card-head) {
    padding: 6px 8px;
}

.small-page .status-pill {
    min-height: 24px;
    padding: 1px 7px;
    border-radius: 6px;
}

.small-page .mini-btn {
    min-height: 26px;
    padding: 0 8px;
    font-size: 12px;
}

.compact-home {
    width: min(1180px, calc(100% - 36px));
    padding-top: 26px;
}

.compact-home .topbar {
    gap: 12px;
    margin-bottom: 18px;
}

.compact-home h1 {
    font-size: 36px;
}

.compact-home .select-card,
.compact-home .select-wrap {
    width: 230px;
}

.compact-home .select-card {
    min-height: 56px;
    grid-template-columns: 34px 1fr 16px;
    padding: 8px 12px;
}

.compact-home .select-card .icon {
    width: 28px;
    height: 28px;
    font-size: 18px;
}

.compact-home .label {
    font-size: 13px;
}

.compact-home .value {
    font-size: 17px;
}

.compact-home .notice {
    padding: 14px 18px;
}

.compact-home .notice h2 {
    font-size: 19px;
    margin-bottom: 8px;
}

.compact-home .notice p {
    font-size: 14px;
    margin: 4px 0;
}

.compact-home .form-panel {
    padding: 16px;
}

.compact-home .card-input {
    height: 46px;
}

.compact-home .btn {
    min-height: 44px;
}

.compact-home .actions {
    margin-top: 14px;
}

.compact-home .alert {
    padding: 10px 14px;
    font-size: 14px;
}

.compact-home .status-card {
    min-height: 108px;
    padding: 14px;
}

.compact-home .status-title {
    font-size: 14px;
    margin-bottom: 14px;
}

.compact-home .status-value {
    font-size: 18px;
}

.compact-home .phone-line {
    grid-template-columns: minmax(0, 1fr) 34px;
}

.compact-home .phone-line .status-value {
    font-size: 18px;
    letter-spacing: 0;
}

@media (max-width: 980px) {
    .page {
        width: min(100% - 24px, 760px);
        padding-top: 36px;
    }

    .topbar,
    .actions,
    .status-grid,
    .admin-grid,
    .admin-sections {
        grid-template-columns: 1fr;
    }

    .country-table {
        grid-template-columns: 82px 70px 1fr;
    }

    .card-generate-grid,
    .card-filter-grid,
    .admin-search-grid,
    .number-search,
    .generated-card-list,
    .modal-actions,
    .number-table,
    .card-table {
        grid-template-columns: 1fr;
    }

    .country-table .country-head:nth-child(4),
    .country-table .country-head:nth-child(5),
    .country-table div:nth-child(5n + 4),
    .country-table div:nth-child(5n + 5) {
        display: none;
    }

    .select-card {
        width: 100%;
    }

    .select-wrap {
        width: 100%;
    }

    h1,
    .small-page h1 {
        font-size: 30px;
    }
}
