:root {
    --bg: #f4f7f3;
    --surface: #ffffff;
    --line: #e3ebe1;
    --text: #1c2b1e;
    --muted: #758279;
    --primary: #1bb451;
    --primary-dark: #138b40;
    --danger: #d94d4d;
    --shadow: 0 22px 55px rgba(18, 35, 19, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        linear-gradient(180deg, rgba(27, 180, 81, 0.05), transparent 220px),
        linear-gradient(180deg, #fbfdfb 0%, #eff4ef 100%);
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 28px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(20, 30, 20, 0.06);
}

.topbar-inner,
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
}

.brand,
.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-copy strong,
.admin-brand strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.brand-copy small,
.admin-brand small {
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.topbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(27, 180, 81, 0.1);
}

.topbar-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.topbar-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(27, 180, 81, 0.10);
    font-weight: 700;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(20, 30, 20, 0.08);
    box-shadow: 0 12px 24px rgba(27, 180, 81, 0.14);
}

.topnav,
.hero-meta,
.switch-tabs-bar,
.pager,
.app-actions,
.article-badges,
.detail-meta,
.filter-bar,
.form-actions,
.actions-cell,
.checkbox-row,
.inline-links,
.meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.topnav a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
}

.topnav a:hover {
    color: var(--primary-dark);
    background: rgba(27, 180, 81, 0.08);
}

.flash {
    padding-top: 12px;
}

.flash-inner {
    padding: 12px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.flash-success .flash-inner {
    color: #117137;
    background: rgba(27, 180, 81, 0.14);
}

.flash-error .flash-inner {
    color: #9b2222;
    background: rgba(217, 77, 77, 0.14);
}

.hero-banner {
    padding: 32px 0 18px;
}

.hero-banner-card,
.split-panel,
.stat-strip,
.ticker-box,
.detail-card,
.admin-card,
.stat-card,
.auth-card,
.empty-card {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-banner-card {
    padding: 34px;
    background:
        radial-gradient(circle at right top, rgba(27, 180, 81, 0.13), transparent 28%),
        linear-gradient(135deg, #ffffff, #f7fbf6);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(27, 180, 81, 0.1);
    font-size: 13px;
    font-weight: 700;
}

.hero-banner-card h1 {
    margin: 16px 0 10px;
    font-size: clamp(34px, 5.6vw, 56px);
    line-height: 1.06;
}

.hero-banner-card p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.hero-meta {
    margin-top: 18px;
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 600;
}

.switch-tabs {
    padding: 8px 0 16px;
}

.switch-tabs-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid rgba(20, 30, 20, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.switch-tab {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 66px;
    font-size: 17px;
    font-weight: 700;
    color: #38463b;
}

.switch-tab.active,
.switch-tab:hover {
    color: var(--primary);
}

.switch-tab.active::after,
.switch-tab:hover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 12px;
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background: var(--primary);
    transform: translateX(-50%);
}

.split-section {
    padding: 8px 0 28px;
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.split-panel {
    display: flex;
    flex-direction: column;
    min-height: 720px;
    padding: 22px;
}

.panel-heading,
.section-head,
.category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading h2,
.section-head h2,
.page-head h1 {
    margin: 0 0 8px;
}

.panel-heading p,
.section-head p,
.pager-status,
.field span,
.table td,
.table th,
.site-footer,
.detail-summary,
.detail-meta,
.article-copy small,
.auth-card p {
    color: var(--muted);
}

.panel-total {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(27, 180, 81, 0.1);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
}

.app-list,
.article-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
}

.app-row,
.article-link-row {
    display: grid;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8fbf7);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 124px;
}

.app-row-link {
    color: inherit;
}

.app-row {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
}

.article-link-row {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
}

.app-row:hover,
.article-link-row:hover,
.nav-link-card:hover,
.recommend-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(18, 35, 19, 0.08);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: rgba(27, 180, 81, 0.12);
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 800;
}

.article-thumb {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: cover;
    background: #eef4ec;
}

.article-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.article-copy strong {
    font-size: 16px;
    line-height: 1.45;
}

.article-link-row .article-copy strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.article-link-row .article-copy small {
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.random-article-row .article-copy strong,
.nav-link-card strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-clamp: 1;
    -webkit-line-clamp: 1;
}

.random-article-row .article-copy strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.article-copy small,
.app-row .article-copy small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.65;
}

.app-row .article-copy small {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.article-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.article-pin-badge {
    display: none;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(27, 180, 81, 0.12);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.card-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(27, 180, 81, 0.1);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.meta-row span {
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(20, 30, 20, 0.03);
    color: var(--muted);
    font-size: 13px;
}

.article-side {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.app-actions {
    margin-top: 0;
    justify-self: end;
}

.app-actions .button {
    min-width: 120px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
}

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #36c16d);
}

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

.button-block {
    width: 100%;
}

.button-disabled {
    color: #9ea79e;
    background: #eef3ee;
    cursor: default;
}

.pager {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.pager .button:first-child {
    justify-self: start;
}

.pager .button:last-child {
    justify-self: end;
}

.pager-status {
    justify-self: center;
    text-align: center;
}

.home-stats {
    padding: 0 0 12px;
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 24px;
}

.stat-box {
    padding: 10px 12px;
    text-align: center;
}

.stat-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 22px;
}

.ticker-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding: 18px 20px;
}

.ticker-box strong {
    color: var(--primary);
}

.detail-shell {
    padding: 30px 0 42px;
}

.detail-shell.container,
.search-shell {
    width: min(820px, calc(100% - 28px));
}

.detail-card {
    overflow: hidden;
}

.detail-cover-wrap {
    padding: 18px;
}

.detail-cover {
    width: 100%;
    max-height: 360px;
    border-radius: 22px;
    object-fit: cover;
}

.detail-header,
.detail-content,
.detail-nav {
    padding: 0 32px 28px;
}

.detail-header {
    padding-top: 28px;
}

.detail-header h1 {
    margin: 12px 0;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.16;
}

.detail-summary {
    margin: 14px 0 0;
    font-size: 17px;
    line-height: 1.8;
}

.detail-content {
    color: #304032;
    font-size: 16px;
    line-height: 1.9;
}

.detail-content a,
.rich-editor a {
    color: #176bff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.detail-content a:hover,
.rich-editor a:hover {
    color: #0f57d4;
}

.detail-content p {
    margin: 0 0 18px;
    text-indent: 2em;
}

.detail-content > p,
.detail-content > div:not(.article-app-embed),
.detail-content > section:not(.article-app-embed),
.detail-content > article:not(.article-app-embed) {
    text-indent: 2em;
}

.detail-content > *:not(.article-app-embed) {
    text-indent: 2em;
}

.detail-content img {
    display: block;
    margin: 18px auto;
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

.detail-content .article-app-embed {
    margin: 18px 0;
    text-indent: 0;
}

.detail-content .article-app-embed .article-thumb {
    width: 92px;
    height: 92px;
    padding: 6px;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}

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

.nav-link-card strong {
    line-height: 1.6;
    line-clamp: 2;
    -webkit-line-clamp: 2;
}

.nav-link-card,
.recommend-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbf7);
}

.nav-link-card {
    display: grid;
    gap: 10px;
    padding: 18px;
}

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

.nav-link-card.is-disabled {
    opacity: 0.65;
}

.random-section {
    margin-top: 24px;
}

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

.random-article-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbf7);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.random-article-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(18, 35, 19, 0.08);
}

.random-article-row .article-thumb {
    width: 84px;
    height: 84px;
}

.random-article-row .article-copy small {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.error-shell {
    min-height: calc(100vh - 160px);
    display: grid;
    place-items: center;
    padding: 36px 0 48px;
}

.error-card {
    width: min(560px, 100%);
    padding: 44px 28px;
    border: 1px solid rgba(27, 180, 81, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(27, 180, 81, 0.12), transparent 42%),
        #fff;
    text-align: center;
    box-shadow: var(--shadow);
}

.error-code {
    font-size: 74px;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-dark);
}

.error-card h1 {
    margin: 10px 0 8px;
}

.error-card p {
    margin: 0 0 22px;
    color: var(--muted);
}

.search-card {
    padding-bottom: 24px;
}

.search-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.search-form input {
    flex: 1;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.home-bottom {
    padding: 22px 0 0;
}

.home-bottom-card {
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #f8fbf7);
    text-align: center;
    color: var(--muted);
    line-height: 1.8;
}

.home-bottom-card p {
    margin: 0;
}

.rich-editor-wrap {
    display: grid;
    gap: 12px;
}

.rich-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rich-toolbar button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.rich-toolbar select,
.toolbar-color {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.toolbar-color {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toolbar-color input {
    width: 32px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
}

.rich-editor {
    min-height: 720px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    line-height: 1.8;
    font-weight: 400;
    outline: none;
}

.rich-editor strong,
.rich-editor b {
    font-weight: 700;
}

.rich-editor:empty::before {
    content: "请输入图文内容";
    color: #99a39b;
}

.rich-editor h2,
.rich-editor h3 {
    margin: 18px 0 10px;
}

.rich-editor blockquote {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 4px solid var(--primary);
    background: rgba(27, 180, 81, 0.06);
}

.rich-editor img {
    max-width: 100%;
    border-radius: 14px;
}

.field-hint {
    color: var(--muted);
    font-size: 13px;
}

.upload-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.upload-row input {
    flex: 1 1 320px;
    min-width: 0;
}

.article-app-embed {
    width: 100%;
}

.article-app-embed .article-copy small {
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.cover-picks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cover-pick {
    display: grid;
    gap: 6px;
    width: 100px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.cover-pick.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(27, 180, 81, 0.12);
}

.cover-pick img {
    width: 100%;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
}

.cover-pick span {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

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

.recommend-card {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.recommend-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 16px;
}

.recommend-card span {
    line-height: 1.55;
    font-weight: 700;
}

.site-footer {
    padding: 10px 0 24px;
}

.footer-legal {
    flex-direction: column;
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
}

.footer-legal p {
    margin: 0;
}

.admin-body {
    background: linear-gradient(180deg, #f7fbf7 0%, #eef4ee 100%);
}

.admin-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 24px 18px;
    color: #fff;
    background: #15201a;
}

.admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 26px;
}

.admin-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.admin-nav a.active,
.admin-nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.admin-main {
    padding: 30px;
}

.page-head {
    margin-bottom: 18px;
}

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

.stat-card {
    padding: 20px;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 32px;
}

.admin-card {
    padding: 22px;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.75fr);
    gap: 20px;
    align-items: start;
}

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

.field,
.checkbox-field {
    display: grid;
    gap: 8px;
}

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

.field input,
.field textarea,
.field select,
.filter-bar input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

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

.admin-grid-articles .rich-editor {
    min-height: 760px;
}

.checkbox-field {
    grid-auto-flow: column;
    align-items: center;
    justify-content: start;
}

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

.table {
    width: 100%;
    border-collapse: collapse;
}

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

.text-link {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 700;
    cursor: pointer;
}

.danger-link {
    color: var(--danger);
}

.actions-cell form {
    margin: 0;
}

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

.auth-card {
    width: min(460px, 100%);
    padding: 30px;
}

.auth-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.auth-header h1 {
    margin: 0 0 6px;
}

.auth-back {
    display: inline-block;
    width: 100%;
    margin-top: 12px;
    color: var(--muted);
    text-align: center;
}

.empty-card {
    padding: 28px;
    text-align: center;
}

@media (max-width: 1080px) {
    .split-grid,
    .admin-shell,
    .admin-grid,
    .stats-grid,
    .recommend-grid,
    .random-list,
    .stat-strip {
        grid-template-columns: 1fr;
    }

    .split-panel {
        min-height: auto;
    }

    .detail-shell.container,
    .search-shell {
        width: min(100% - 18px, 100%);
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 18px, 100%);
    }

    .section-head,
    .panel-heading,
    .ticker-box,
    .detail-nav,
    .filter-bar,
    .form-actions,
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .pager {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
    }

    .hero-banner-card,
    .split-panel,
    .admin-card,
    .detail-header,
    .detail-content,
    .detail-nav {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-banner-card {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .topbar-inner {
        flex-wrap: nowrap;
        gap: 10px;
        align-items: center;
    }

    .topbar-actions {
        margin-left: auto;
        width: auto;
        justify-content: flex-end;
    }

    .brand {
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-copy {
        min-width: 0;
    }

    .brand-copy strong,
    .brand-copy small {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand-copy small {
        display: none;
    }

    .topbar-home {
        min-height: 34px;
        padding: 0 10px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .topbar-icon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .app-row {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        align-items: center;
        min-height: auto;
    }

    .article-link-row {
        grid-template-columns: 64px minmax(0, 1fr);
        min-height: auto;
    }

    .article-thumb {
        width: 64px;
        height: 64px;
    }

    .article-copy small,
    .app-row .article-copy small {
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }

    .article-link-row .article-copy small {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .random-article-row .article-copy strong {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .random-article-row .article-copy small {
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .article-link-row.is-pinned .article-pin-badge {
        display: inline-flex;
    }

    .article-link-row.is-pinned .article-side-pin-badge {
        display: none;
    }

    .article-title {
        align-items: flex-start;
    }

    .random-article-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .random-article-row .article-thumb {
        width: 72px;
        height: 72px;
    }

    .app-actions {
        grid-column: auto;
        justify-self: end;
    }

    .app-actions .button {
        min-width: 96px;
        min-height: 40px;
        padding: 0 14px;
    }

    .panel-heading {
        margin-bottom: 14px;
    }

    .panel-heading p,
    .section-head p {
        margin: 0;
    }

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

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

    .admin-main {
        padding: 18px;
    }
}
