/* 天易极简申论批改系统 - 样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: #f5f6f8;
    color: #2c2c2c;
    line-height: 1.7;
    font-size: 15px;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 导航 */
.nav {
    display: flex; align-items: center; justify-content: space-between;
    background: #1e3a5f; color: #fff; padding: 0 20px; height: 54px;
    flex-wrap: wrap;
}
.nav.admin { background: #1f2937; }
.nav .brand { color: #fff; font-weight: 700; font-size: 17px; }
.nav a { color: #fff; margin-left: 16px; }
.nav-logout { color:#fff; margin-left:16px; padding:0; border:0; background:transparent; font:inherit; cursor:pointer; }
.nav-logout:hover { text-decoration:underline; }
.nav-links { display: flex; align-items: center; }
.nav-user { color: #cbd5e1; margin-left: 16px; font-size: 13px; }

/* 容器 */
.container { max-width: 960px; margin: 24px auto; padding: 0 16px; }
.container.wide { max-width: 1100px; }

/* 卡片 */
.card {
    background: #fff; border-radius: 10px; padding: 22px; margin-bottom: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card h2 { font-size: 19px; margin-bottom: 14px; color: #1e3a5f; }
.card h3 { font-size: 16px; margin: 16px 0 8px; }

/* 按钮 */
.btn {
    display: inline-block; padding: 9px 20px; border-radius: 6px; border: none;
    cursor: pointer; font-size: 14px; background: #2563eb; color: #fff;
}
.btn:hover { background: #1d4ed8; text-decoration: none; }
.btn.block { display: block; width: 100%; }
.btn.ghost { background: #eef2f7; color: #333; }
.btn.danger { background: #dc2626; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn:disabled { background: #9ca3af; cursor: not-allowed; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
input[type=text], input[type=password], input[type=number], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px; font-family: inherit;
}
textarea { resize: vertical; line-height: 1.8; }
input:focus, textarea:focus, select:focus { outline: none; border-color: #2563eb; }
.word-counter { margin-top: 4px; text-align: right; color: #64748b; font-size: 12px; }
.word-counter.over-limit { color: #dc2626; font-weight: 600; }

/* 提示 */
.alert { background: #fef3c7; color: #92400e; padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.success { background: #dcfce7; color: #166534; }

/* 表格 */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: #f8fafc; font-weight: 600; color: #475569; }

/* 题目列表 */
.q-item { display: block; padding: 14px 16px; border-bottom: 1px solid #f0f0f0; }
.q-item:hover { background: #f8fafc; }
.q-title { font-weight: 600; color: #1f2937; }
.q-meta { color: #6b7280; font-size: 13px; margin-top: 2px; }
.q-stem { font-size: 14px; color: #374151; margin-top: 4px; line-height: 1.7; }

/* 套题卡片 */
.paper-card {
    display: block; padding: 14px 16px; border: 1px solid #e5e7eb;
    border-radius: 10px; margin-bottom: 10px; background: #fff;
    transition: all .15s;
}
.paper-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37,99,235,.08); }
.paper-head { background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%); }
.paper-q { border-left: 3px solid #e5e7eb; }
.paper-q:hover { border-left-color: #2563eb; }

/* 二级 tab */
.sub-tabs {
    display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0 14px;
    border-bottom: 2px solid #e5e7eb;
}
.sub-tab {
    padding: 8px 16px; cursor: pointer; font-size: 14px; color: #6b7280;
    border-bottom: 2px solid transparent; margin-bottom: -2px; user-select: none;
    white-space: nowrap;
}
.sub-tab:hover { color: #2563eb; }
.sub-tab.active { color: #2563eb; font-weight: 600; border-bottom-color: #2563eb; }
.sub-panel { display: none; }
.sub-panel.active { display: block; }

/* 二级菜单（题型/套题来源入口） */
.menu-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.menu-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 10px;
    background: #fff; font-size: clamp(13px, 4vw, 16px); color: #1f2937; transition: all .15s;
}
.menu-item:hover { border-color: #93c5fd; background: #eff6ff; }
.menu-item .menu-name { font-weight: 600; }
.menu-item .muted { font-size: clamp(12px, 3.5vw, 14px); color: #6b7280; }
.back-link {
    display: inline-block; font-size: 13px; color: #2563eb;
    margin-bottom: 10px; text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* 套题来源宫格（国考/山西省考 正方形并列） */
.paper-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.paper-source {
    aspect-ratio: 1 / 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    border: 1px solid #e5e7eb; border-radius: 12px; background: #fff;
    transition: all .15s;
}
.paper-source:hover { border-color: #93c5fd; background: #eff6ff; }
.paper-source .ps-icon {
    width: 46px; height: 46px; border-radius: 12px; margin-bottom: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; font-weight: 600; color: #fff;
}
.paper-source .ps-icon.gk { background: #dc2626; }
.paper-source .ps-icon.sx { background: #0891b2; }
.paper-source .ps-icon.ground { background: #16a34a; }
.paper-source .ps-icon.course { background: #2563eb; }
.paper-source .ps-name { font-size: clamp(14px, 4.5vw, 18px); font-weight: 600; color: #1f2937; }
.paper-source .ps-count { font-size: clamp(12px, 3.5vw, 15px); color: #6b7280; margin-top: 4px; }

/* 套题批改进度提示条 */
.progress-tip {
    margin-top: 12px; padding: 10px 14px; border-radius: 8px;
    font-size: 14px; background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe;
}
.progress-tip.partial { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.progress-tip.done { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* 范文来源标签 */
.article-source {
    display: inline-block; margin-bottom: 10px; padding: 4px 12px;
    background: #eef2ff; color: #3730a3; border-radius: 6px;
    font-size: 13px; font-weight: 500;
}

/* 底部口号 */
.slogan {
    text-align: center; padding: 2px 0 18px;
    font-size: clamp(13px, 3.8vw, 15px); color: #2563eb; font-weight: 600;
}

/* 范文上一篇/下一篇导航 */
.article-nav {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 22px; padding-top: 14px; border-top: 1px solid #eee;
}
.article-nav a { color: #2563eb; text-decoration: none; font-size: clamp(13px, 4vw, 15px); }
.article-nav a:hover { text-decoration: underline; }
.article-nav .muted { color: #c0c0c0; font-size: clamp(13px, 4vw, 15px); }

/* 参考答案折叠 */
.ref-answer summary {
    cursor: pointer; padding: 8px 12px; background: #f0fdf4;
    border-radius: 6px; font-weight: 600; color: #166534;
    list-style: none; user-select: none;
}
.ref-answer summary::-webkit-details-marker { display: none; }
.ref-answer summary::before { content: '▸ '; display: inline-block; transition: transform .15s; }
.ref-answer[open] summary::before { content: '▾ '; }
.ref-answer[open] summary { margin-bottom: 10px; }

/* 学员端剩余批改提示条 */
.usage-bar { display: flex; gap: 10px; justify-content: space-between; align-items: center; flex-wrap: nowrap; padding: 12px 16px; font-size: 13px; }
.section-title {
    font-size: 15px; font-weight: 700; color: #1e3a5f;
    margin: 16px 0 6px; padding: 6px 10px;
    border-left: 3px solid #2563eb;
}
.section-title.collapsible { cursor: pointer; user-select: none; border-radius: 0 6px 6px 0; }
.section-title.collapsible:hover { background: #eff6ff; }
.section-title .caret { display: inline-block; width: 14px; color: #2563eb; font-size: 12px; }
.section-body.collapsed { display: none; }
.section-title .muted { font-weight: 400; }
.tag.num { background: #e0e7ff; color: #3730a3; }
.tag {
    display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; margin-right: 6px;
}
.tag.gk { background: #dbeafe; color: #1e40af; }
.tag.fx { background: #fef3c7; color: #92400e; }
.tag.dc { background: #dcfce7; color: #166534; }
.tag.yw { background: #fce7f3; color: #9d174d; }
.tag.zw { background: #ede9fe; color: #5b21b6; }
.tag.done { background: #e5e7eb; color: #374151; }

/* 材料 */
.material-box {
    background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 16px; max-height: 400px; overflow-y: auto; white-space: pre-wrap;
    font-size: 14px; color: #374151;
}
.stem-box {
    background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px;
    padding: 14px 16px; margin-bottom: 12px; white-space: pre-wrap;
}
.answer-box {
    background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px;
    padding: 14px 16px; margin-top: 10px; white-space: pre-wrap;
}

/* 批改结果 */
.review-md { white-space: normal; }
.review-md h1, .review-md h2, .review-md h3, .review-md h4 {
    margin: 18px 0 8px; color: #1e3a5f;
}
.review-md h3 { font-size: 17px; border-left: 4px solid #2563eb; padding-left: 10px; }
.review-md p { margin: 6px 0; }
.review-md ul { margin: 6px 0 6px 20px; }
.review-md li { margin: 4px 0; }
.review-md .score-line { background: #eff6ff; padding: 10px 14px; border-radius: 6px; font-weight: 700; color: #1e40af; font-size: 16px; }
.review-md pre { background: #1f2937; color: #e5e7eb; padding: 14px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.review-md code { background: #f1f5f9; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.review-md pre code { background: none; padding: 0; }
.review-md .ol-item { margin: 4px 0 4px 6px; }

/* 加载 */
.loading {
    text-align: center; padding: 40px; color: #6b7280;
}
.spinner {
    display: inline-block; width: 36px; height: 36px; border: 4px solid #e5e7eb;
    border-top-color: #2563eb; border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 统计卡片 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stat .num { font-size: 28px; font-weight: 700; color: #1e3a5f; }
.stat .label { color: #6b7280; font-size: 13px; }

.footer { text-align: center; color: #9ca3af; font-size: 13px; padding: 30px 16px; }
.mt { margin-top: 14px; }
.muted { color: #6b7280; font-size: 13px; }
.flex { display: flex; gap: 10px; align-items: center; }

/* 方块 Tab */
.tab-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.tab-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px 10px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.tab-card:hover { border-color: #93c5fd; transform: translateY(-2px); }
.tab-card.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(37,99,235,.15);
}
.tab-icon { font-size: 34px; line-height: 1; margin-bottom: 8px; }
.tab-label { font-weight: 700; font-size: clamp(13px, 4vw, 16px); color: #1f2937; }
.tab-count { font-size: clamp(11px, 3.2vw, 13px); color: #6b7280; margin-top: 4px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 讲义批改：二级菜单（一行两列） */
.sub-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 4px 0 6px;
}
.sub-entry {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 16px; border: 1px solid #e5e7eb; border-radius: 12px;
    background: #fff; transition: all .15s;
}
.sub-entry:hover { border-color: #93c5fd; background: #eff6ff; }
.sub-entry .sub-entry-name { font-weight: 600; font-size: 15px; color: #1f2937; }

/* 讲义批改：五大题型入口 */
.type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}
.type-entry {
    display: block; text-align: center; padding: 14px 6px;
    border: 1px solid #e5e7eb; border-radius: 10px;
    background: #fff; color: #1f2937; font-size: 14px; font-weight: 500;
    transition: all .15s;
}
.type-entry:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }

/* 无权限提示 */
.no-perm { text-align: center; padding: 50px 20px; }
.no-perm h2 { color: #b45309; margin: 10px 0; }
.no-perm p { color: #6b7280; margin: 6px 0; }

/* 文章正文 */
.article-content { white-space: normal; font-size: 15px; line-height: 2; }
.article-content h2 { font-size: 20px; margin: 18px 0 10px; color: #1e3a5f; }
.article-content h3 { font-size: 17px; margin: 16px 0 8px; color: #1e3a5f; }
.article-content ul, .article-content ol { margin: 8px 0 8px 22px; }
.article-content li { margin: 4px 0; }
.article-content blockquote { border-left: 4px solid #cbd5e1; padding: 4px 12px; color: #64748b; margin: 10px 0; }

/* 富文本编辑器 */
.rte-wrap { border: 1px solid #d1d5db; border-radius: 8px; overflow: hidden; }
.rte-toolbar {
    display: flex; flex-wrap: wrap; gap: 2px; align-items: center;
    padding: 6px 8px; background: #f8fafc; border-bottom: 1px solid #e5e7eb;
}
.rte-btn {
    border: none; background: transparent; cursor: pointer;
    padding: 5px 10px; border-radius: 5px; font-size: 13px; color: #374151;
}
.rte-btn:hover { background: #e2e8f0; }
.rte-sep { width: 1px; height: 18px; background: #e5e7eb; margin: 0 4px; display: inline-block; }
.rte-editor {
    min-height: 320px; padding: 14px 16px; outline: none;
    font-size: 15px; line-height: 1.9; background: #fff;
}
.rte-editor:empty:before {
    content: attr(data-placeholder); color: #9ca3af; pointer-events: none;
}
.rte-editor h2 { font-size: 20px; margin: 12px 0 8px; }
.rte-editor h3 { font-size: 17px; margin: 12px 0 8px; }
.rte-editor ul, .rte-editor ol { margin: 6px 0 6px 22px; }
.rte-editor li { margin: 3px 0; }

/* 响应式 */
@media (max-width: 600px) {
    .container { margin: 14px auto; }
    .nav { height: auto; padding: 10px 16px; }
    .nav-links { width: 100%; flex-wrap: wrap; margin-top: 6px; }
    .nav a { margin: 4px 10px 4px 0; }
    .nav-logout { margin:4px 10px 4px 0; }
    .tab-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .tab-card { min-width:0; padding:10px 3px; border-radius:10px; aspect-ratio:auto; min-height:100px; }
    .tab-icon { font-size: 22px; margin-bottom: 4px; }
    .tab-label { font-size:12px; line-height:1.4; min-height:2.8em; display:flex; flex-direction:column; align-items:center; justify-content:center; overflow-wrap:anywhere; }
    .tab-count { font-size: 10px; }
    .sub-grid-2col { gap: 8px; }
    .sub-entry { padding: 14px 10px; }
    .sub-entry .sub-entry-name { font-size: 14px; }
    .usage-bar { font-size: 12px; padding: 10px 12px; gap: 6px; }
    .paper-grid { gap: 10px; }
    .paper-source .ps-icon { width: 40px; height: 40px; font-size: 16px; }
    .paper-source .ps-name { font-size: 14px; }
    .type-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .type-entry { font-size: 12px; padding: 11px 2px; }
    .table-scroll { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
    table { min-width: 520px; white-space: nowrap; }
    th, td { padding: 8px 10px; }
}


body { overflow-x: hidden; }
.nav-toggle { display:none; border:1px solid rgba(255,255,255,.45); border-radius:6px; background:transparent; color:#fff; padding:5px 10px; font:inherit; }
.answer-meta { display:flex; justify-content:space-between; gap:12px; margin-top:4px; }
.answer-meta .word-counter { margin-top:0; margin-left:auto; }
.jump-actions { display:flex; justify-content:flex-end; margin:8px 0; }
.score-points { display:grid; gap:10px; }
.score-point { padding:12px 14px; border:1px solid #dbeafe; border-radius:8px; background:#f8fbff; }
.score-point-head { display:flex; justify-content:space-between; gap:12px; color:#1e3a5f; }
.score-point ul { margin-left:20px; }
.word-summary { padding:10px 14px; background:#fff7ed; border-radius:6px; }
.tag.status-0 { background:#fef3c7; color:#92400e; }
.tag.status-1 { background:#dcfce7; color:#166534; }
.tag.status-2 { background:#e5e7eb; color:#475569; }

@media (max-width: 600px) {
    .tab-icon { font-size:28px; }
    .nav { flex-wrap:wrap; }
    .nav-toggle { display:block; margin-left:auto; }
    .nav-links { display:none; width:100%; flex-direction:column; align-items:stretch; margin-top:8px; padding-top:6px; border-top:1px solid rgba(255,255,255,.2); }
    .nav-links.open { display:flex; }
    .nav a, .nav-logout, .nav-user { margin:3px 0; padding:5px 0; }
    .card { padding:16px; }
    textarea.answer-input { min-height:260px; font-size:16px; }
    .sticky-submit { position:sticky; bottom:8px; z-index:20; padding:8px; margin:0 -8px; background:rgba(255,255,255,.94); backdrop-filter:blur(6px); }
    .table-scroll { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
    table { min-width: 520px; white-space: nowrap; }
    th, td { padding: 8px 10px; }
    .score-point-head { align-items:flex-start; }
    .material-box { max-height:none; }
}

/* 草稿版本与冲突提示 */
.draft-conflict pre,.draft-versions pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font:inherit}.draft-conflict button{margin:8px 8px 0 0}.draft-versions{margin-top:10px;font-size:13px}.draft-versions summary{cursor:pointer;padding:5px 0}
/* 历史教学报告 */
.grade-structure .score-point, .grade-structure .answer-box { overflow-wrap:anywhere; }

/* 学员端常显四格菜单 */
.student-header { background:#1e3a5f; color:#fff; }
.student-header-inner { max-width:960px; margin:0 auto; padding:18px 16px 16px; }
.student-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.student-brand { min-width:0; color:#fff; font-size:20px; font-weight:700; line-height:1.45; overflow-wrap:anywhere; }
.student-brand:hover { color:#fff; text-decoration:none; }
.student-identity { flex-shrink:0; max-width:35%; display:flex; flex-direction:column; align-items:flex-end; text-align:right; line-height:1.5; overflow-wrap:anywhere; }
.student-name { font-size:15px; font-weight:600; }
.student-role { font-size:12px; color:#cbd5e1; }
.student-admin-link { color:#bfdbfe; font-size:12px; }
.student-menu { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.student-menu-item { display:flex; align-items:center; justify-content:center; width:100%; min-height:48px; padding:10px 4px; border:1px solid #7992b2; border-radius:8px; background:#294c75; color:#fff; font:inherit; font-weight:600; line-height:1.4; text-align:center; cursor:pointer; }
.student-menu-item:hover { background:#355f8e; color:#fff; text-decoration:none; }
.student-menu-item.active { background:#fff; color:#1e3a5f; border-color:#fff; }
.student-menu-item:focus-visible { outline:3px solid #fbbf24; outline-offset:3px; }
.student-logout-form { margin:0; }
.history-table th:first-child,.history-table td:first-child { position:sticky; left:0; z-index:1; white-space:nowrap; }
.history-table th:first-child { background:#f8fafc; }
.history-table td:first-child { background:#fff; }
.history-view { min-height:44px; min-width:56px; display:inline-flex; align-items:center; justify-content:center; }
@media (max-width:600px) {
    .student-header-inner { padding:14px 16px; }
    .student-heading { gap:12px; margin-bottom:12px; }
    .student-brand { font-size:17px; }
    .student-name { font-size:13px; }
    .student-menu { gap:6px; }
    .student-menu-item { min-height:46px; padding:10px 2px; font-size:13px; }
}

/* 默认折叠的给定材料 */
.question-material { margin-top:16px; }
.question-material summary { cursor:pointer; padding:12px 14px; border:1px solid #dbeafe; border-radius:8px; background:#eff6ff; color:#1e3a5f; font-weight:600; }
.question-material summary:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.question-material[open] summary { margin-bottom:12px; }

/* 页面底部品牌 Logo */
.footer-logo { display:block; width:315px; max-width:100%; height:auto; margin:0 auto; }

/* 首页入口收紧留白，让底部 Logo 更靠近菜单 */
.home-entry .container { margin:10px auto 0; }
.home-entry .card { margin-bottom:10px; }
.home-entry .container > .card:last-child { margin-bottom:0; }
.container > .usage-bar { margin-bottom:10px; }
.container > .tab-grid { margin-bottom:10px; }
.home-entry .tab-card { aspect-ratio:auto; min-height:112px; padding:12px 6px; }
.home-entry .card h2 { margin-bottom:8px; }
.home-entry .paper-grid { max-width:360px; margin:0 auto; }
.home-entry .paper-source { aspect-ratio:1 / 1; min-height:0; padding:10px 8px; }
.footer { padding:14px 16px; }
.home-entry .footer { padding:10px 16px 8px; }
@media (max-width:600px) {
    .home-entry .container { margin-top:8px; }
    .home-entry .card:not(.usage-bar) { padding:12px; }
    .home-entry .tab-card { min-height:96px; padding:8px 3px; }
    .home-entry .tab-icon { font-size:24px; }
    .home-entry .paper-source { min-height:0; padding:8px 4px; }
    .home-entry .paper-source .ps-icon { width:32px; height:32px; margin-bottom:6px; font-size:15px; }
}
@media (max-width:600px) and (max-height:650px) {
    .home-entry .student-header-inner { padding-top:8px; padding-bottom:8px; }
    .home-entry .student-heading { margin-bottom:8px; }
    .home-entry .student-menu-item { min-height:40px; padding:8px 2px; }
    .home-entry .paper-source { min-height:0; }
    .home-entry .paper-source .ps-icon { width:28px; height:28px; margin-bottom:4px; }
    .home-entry .tab-card { min-height:88px; padding-top:4px; padding-bottom:4px; }
    .home-entry .tab-icon { font-size:22px; }
    .home-entry .card:not(.usage-bar) { padding:10px; }
    .home-entry .card h2 { margin-bottom:4px; }
    .home-entry .footer { padding-top:2px; }
}
