:root {
    --bg: #f4f7fb;
    --ink: #141b2d;
    --muted: #667085;
    --line: #dfe6f2;
    --panel: #ffffff;
    --brand: #1769ff;
    --brand-dark: #1049b8;
    --green: #0f9f6e;
    --red: #d92d20;
    --shadow: 0 22px 60px rgba(35, 55, 100, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(18, 97, 255, .15), transparent 28rem),
        linear-gradient(180deg, #eef4ff 0%, var(--bg) 34rem);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.front-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 9% 8%, rgba(23, 105, 255, .18), transparent 24rem),
        radial-gradient(circle at 88% 12%, rgba(15, 159, 110, .16), transparent 22rem),
        linear-gradient(180deg, #edf5ff 0%, #f8fafc 38rem, #eef3f8 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 249, 255, .86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(221, 227, 239, .8);
}

.front-topbar {
    background: rgba(249, 252, 255, .78);
    border-bottom-color: rgba(216, 226, 240, .7);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 800;
}

.brand-logo {
    display: block;
    width: 188px;
    height: 48px;
    object-fit: contain;
}

.brand-logo-image {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    object-fit: contain;
}

.brand-text {
    color: var(--ink);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #fff;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), #12b886);
    box-shadow: 0 10px 26px rgba(18, 97, 255, .24);
}

.front-page .brand-mark {
    border-radius: 12px;
    background: conic-gradient(from 190deg, #1769ff, #10b981, #f59e0b, #1769ff);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--brand);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.front-page .button,
.front-page button,
.front-page input[type="submit"] {
    border-radius: 10px;
}

.front-page .button.secondary {
    background: rgba(255, 255, 255, .72);
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    background: var(--brand-dark);
    box-shadow: 0 12px 22px rgba(18, 97, 255, .18);
}

.button.secondary {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

.button.danger,
button.danger {
    background: var(--red);
}

.hero {
    padding: 54px 0 34px;
}

.front-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 38px;
}

.front-hero::before {
    position: absolute;
    inset: 24px auto auto 50%;
    width: min(520px, 42vw);
    height: min(520px, 42vw);
    content: "";
    border: 1px solid rgba(23, 105, 255, .16);
    border-radius: 999px;
    transform: translateX(-2%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    align-items: center;
    gap: 34px;
}

.front-hero .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.section-kicker,
.category-label {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 13px;
    padding: 0 10px;
    color: #0f4bb8;
    background: rgba(23, 105, 255, .10);
    border: 1px solid rgba(23, 105, 255, .14);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: 0;
}

.front-hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.08;
}

.hero p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.front-hero p {
    max-width: 620px;
    font-size: 18px;
}

.weather-card {
    max-width: 660px;
    margin-top: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(216, 226, 240, .9);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(35, 55, 100, .10);
    backdrop-filter: blur(14px);
}

.weather-current {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.weather-label {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    margin-bottom: 8px;
    padding: 0 9px;
    color: #0f4bb8;
    background: rgba(23, 105, 255, .10);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.weather-current h2 {
    margin: 0;
    font-size: 26px;
}

.weather-current p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.weather-now {
    display: grid;
    place-items: center;
    min-width: 104px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(23, 105, 255, .10), rgba(16, 185, 129, .12));
    border: 1px solid rgba(216, 226, 240, .88);
    border-radius: 16px;
}

.weather-now span {
    font-size: 30px;
    line-height: 1;
}

.weather-now strong {
    margin-top: 6px;
    font-size: 28px;
    line-height: 1;
}

.weather-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(74px, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.weather-week span {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 82px;
    padding: 9px 6px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(216, 226, 240, .9);
    border-radius: 12px;
}

.weather-week b {
    font-size: 13px;
}

.weather-week i {
    font-style: normal;
    font-size: 22px;
    line-height: 1;
}

.weather-week em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.weather-week .empty-weather {
    opacity: .45;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-stats span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 14px;
    color: #344054;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(216, 226, 240, .9);
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(35, 55, 100, .08);
}

.hero-stats strong {
    color: var(--ink);
    font-size: 20px;
}

.search-panel {
    padding: 18px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(221, 227, 239, .9);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.front-search {
    position: relative;
    z-index: 1;
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .76)),
        linear-gradient(135deg, rgba(23, 105, 255, .12), rgba(16, 185, 129, .10));
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(28, 47, 84, .16);
}

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

.search-title span {
    font-size: 20px;
    font-weight: 900;
}

.search-title small {
    color: var(--muted);
    font-size: 13px;
}

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

.front-search .search-row {
    grid-template-columns: 1fr 92px;
    padding: 7px;
    background: #fff;
    border: 1px solid rgba(216, 226, 240, .9);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}

.search-row input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.front-search .search-row input {
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: transparent;
}

.front-search .search-row input:focus {
    box-shadow: none;
}

.search-row input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(18, 97, 255, .10);
}

.quick-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.front-search .quick-search {
    margin-top: 14px;
}

.quick-search button {
    min-height: 34px;
    padding: 0 12px;
    color: var(--ink);
    background: #f2f5fb;
    font-size: 14px;
}

.front-search .quick-search button {
    color: #344054;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(216, 226, 240, .9);
}

.featured-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(216, 226, 240, .9);
}

.featured-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 46px;
    padding: 9px 10px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(216, 226, 240, .8);
    border-radius: 12px;
    font-weight: 700;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.featured-links a:hover {
    background: #fff;
    border-color: rgba(23, 105, 255, .28);
    transform: translateY(-2px);
}

.featured-links span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 900;
}

.section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0 16px;
}

.front-nav .section-title {
    align-items: center;
    margin: 18px 0 20px;
}

.section-title h2,
.admin-title h1 {
    margin: 0;
    font-size: 28px;
}

.front-nav .section-title h2 {
    font-size: 34px;
}

.section-title span {
    color: var(--muted);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.category-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    color: #344054;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(216, 226, 240, .9);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.category-pills a:hover {
    color: var(--brand-dark);
    border-color: rgba(23, 105, 255, .28);
}

.category-grid {
    display: grid;
    gap: 18px;
    padding-bottom: 54px;
}

.front-nav .category-grid {
    gap: 22px;
}

.category-block {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(25, 44, 89, .07);
    overflow: hidden;
}

.front-nav .category-block {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .88);
    border-color: rgba(216, 226, 240, .88);
    border-radius: 18px;
    box-shadow: 0 20px 54px rgba(35, 55, 100, .10);
}

.front-nav .category-block::before {
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, #1769ff, #10b981);
}

.front-nav .category-block.tone-gold::before {
    background: linear-gradient(90deg, #f59e0b, #14b8a6);
}

.front-nav .category-block.tone-rose::before {
    background: linear-gradient(90deg, #f43f5e, #8b5cf6);
}

.front-nav .category-block.tone-violet::before {
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
}

.front-nav .category-block.tone-cyan::before {
    background: linear-gradient(90deg, #06b6d4, #22c55e);
}

.category-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.front-nav .category-head {
    padding: 22px 24px 18px;
    border-bottom-color: rgba(216, 226, 240, .78);
}

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

.front-nav .category-head h3 {
    font-size: 24px;
}

.front-nav .category-label {
    min-height: 22px;
    margin-bottom: 7px;
    padding: 0;
    color: #667085;
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 11px;
}

.category-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.count-badge {
    flex: 0 0 auto;
    align-self: flex-start;
    padding: 5px 9px;
    color: var(--brand-dark);
    background: #eaf1ff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.front-nav .count-badge {
    padding: 7px 11px;
    background: #f2f6ff;
    border: 1px solid rgba(23, 105, 255, .12);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.front-nav .link-grid {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 10px;
    padding: 16px 18px 18px;
    background: transparent;
}

.nav-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    min-height: 92px;
    padding: 17px;
    background: #fff;
    transition: background .15s ease, transform .15s ease;
}

.front-nav .nav-card {
    min-height: 58px;
    padding: 10px 12px;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 252, 255, .96));
    border: 1px solid rgba(216, 226, 240, .88);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(35, 55, 100, .045);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.nav-card:hover {
    position: relative;
    z-index: 1;
    background: #f8fbff;
    transform: translateY(-2px);
}

.front-nav .nav-card:hover {
    background: #fff;
    border-color: rgba(23, 105, 255, .26);
    box-shadow: 0 12px 28px rgba(35, 55, 100, .10);
    transform: translateY(-2px);
}

.nav-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #1261ff, #0f9f6e);
    font-weight: 800;
}

.front-nav .nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(23, 105, 255, .16);
    font-size: 15px;
}

.tone-blue {
    background: linear-gradient(135deg, #1769ff, #38bdf8);
}

.tone-green {
    background: linear-gradient(135deg, #0f9f6e, #84cc16);
}

.tone-gold {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.tone-rose {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.tone-violet {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.tone-cyan {
    background: linear-gradient(135deg, #06b6d4, #14b8a6);
}

.nav-card strong {
    display: block;
    margin: 1px 0 5px;
    font-size: 16px;
}

.front-nav .nav-card strong {
    display: block;
    max-width: 5.5em;
    overflow: hidden;
    color: #1d2939;
    margin: 0 0 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.front-nav .nav-card small {
    -webkit-line-clamp: 1;
    font-size: 12px;
}

.nav-card small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.footer {
    padding: 28px 0 36px;
    color: var(--muted);
    text-align: center;
}

.front-footer {
    padding-top: 4px;
}

.login-wrap,
.admin-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 34px auto 54px;
}

.login-card,
.admin-panel {
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.login-card {
    width: min(430px, 100%);
    margin: 72px auto;
    padding: 28px;
}

.install-wrap {
    width: min(760px, calc(100% - 32px));
}

.install-card {
    width: 100%;
}

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

.field {
    display: grid;
    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    color: #344054;
    font-size: 14px;
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font: inherit;
    outline: none;
}

.field textarea {
    min-height: 78px;
    resize: vertical;
}

.admin-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

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

.list-head h2 {
    margin: 0;
}

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

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(8px);
}

.admin-modal.is-open {
    display: flex;
}

.admin-modal:target {
    display: flex;
}

.modal-card {
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .24);
}

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

.modal-head h2 {
    margin: 0;
}

.modal-close {
    flex: 0 0 auto;
}

.panel-note {
    margin: 6px 0 0;
    color: var(--muted);
}

.backup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.backup-box {
    display: grid;
    align-content: start;
    gap: 12px;
    min-height: 188px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.backup-box h3 {
    margin: 0;
    font-size: 18px;
}

.backup-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.backup-box input[type="file"] {
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

th {
    color: #344054;
    background: #f8fafc;
    font-size: 14px;
}

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

.row-actions form {
    margin: 0;
}

.sort-input {
    width: 86px;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
}

.table-link {
    color: var(--brand-dark);
    font-weight: 800;
    text-decoration: none;
}

.table-link:hover {
    color: var(--brand);
    text-decoration: underline;
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #075e45;
    background: #dff8ee;
}

.alert.error {
    color: #912018;
    background: #fee4e2;
}

.status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    color: #075e45;
    background: #dff8ee;
    font-size: 13px;
    font-weight: 700;
}

.status-button {
    cursor: pointer;
    font-family: inherit;
}

.status-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, .10);
}

.status.off {
    color: #667085;
    background: #eef1f6;
}

@media (max-width: 980px) {
    .hero-grid,
    .front-hero .hero-grid {
        grid-template-columns: 1fr;
    }

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

    .front-nav .link-grid {
        grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    }
}

@media (max-width: 640px) {
    .site-shell,
    .login-wrap,
    .admin-wrap {
        width: min(100% - 22px, 1180px);
    }

    .topbar-inner,
    .category-head,
    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .front-page .topbar-inner {
        gap: 14px;
        padding: 12px 0;
    }

    .front-page .top-actions {
        width: 100%;
    }

    .brand-logo {
        width: 156px;
        height: 40px;
    }

    .brand-logo-image {
        width: 48px;
        height: 48px;
    }

    .brand-text {
        font-size: 22px;
    }

    .front-page .top-actions a {
        flex: 1;
    }

    .hero {
        padding-top: 34px;
    }

    .front-hero {
        padding: 34px 0 24px;
    }

    .front-hero h1 {
        font-size: 32px;
    }

    .weather-card {
        padding: 14px;
    }

    .weather-current {
        flex-direction: column;
    }

    .weather-now {
        width: 100%;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 10px;
    }

    .weather-now strong {
        margin-top: 0;
    }

    .weather-week {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .weather-week span {
        min-width: 82px;
    }

    .search-row,
    .form-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }

    .backup-grid {
        grid-template-columns: 1fr;
    }

    .front-search .search-row,
    .featured-links,
    .front-nav .link-grid {
        grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    }

    .section-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .front-nav .section-title {
        align-items: flex-start;
    }

    .category-pills {
        justify-content: flex-start;
    }

    .front-nav .category-head {
        padding: 20px 18px 16px;
    }

    .front-nav .link-grid {
        padding: 14px;
    }

    .nav-card {
        min-height: 82px;
    }

    .front-nav .nav-card {
        min-height: 58px;
    }
}
