/* ==================================================================
   学员学习平台 · 小鹅通风格设计
   品牌色：珊瑚橙 #FF6D3D / 白卡片 / 大圆角 / 轻投影
   ================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand: #FF6D3D;
  --brand-deep: #F2541F;
  --brand-grad: linear-gradient(135deg, #FF9A62 0%, #FF5433 100%);
  --brand-weak: #FFF3EC;
  --brand-border: #FFD3BF;
  --text-1: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --line: #E5E6EB;
  --bg: #F5F6FA;
  --card: #FFFFFF;
  --green: #00B42A;
  --green-bg: #E8FFEA;
  --green-line: #AFF0B5;
  --red: #F53F3F;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(30, 35, 45, .04), 0 6px 20px rgba(30, 35, 45, .05);
  --shadow-lift: 0 4px 8px rgba(30, 35, 45, .06), 0 12px 32px rgba(30, 35, 45, .09);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  font-size: 14px;
}
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { text-decoration: none; }

.ic-svg { vertical-align: -3px; flex-shrink: 0; }
.page-loading { text-align: center; padding: 120px 0; color: var(--text-3); }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px;
  padding: 9px 16px; font-size: 14px; font-weight: 500;
  transition: all .15s ease; line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--brand-grad); color: #fff;
  box-shadow: 0 4px 12px rgba(255, 84, 51, .28);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 6px 16px rgba(255, 84, 51, .36); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-danger { background: #fff; border-color: #FDCDC5; color: var(--red); }
.btn-danger:hover { background: #FFECE8; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; gap: 4px; }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.icon-btn {
  width: 30px; height: 30px; border-radius: 7px; border: none; background: transparent;
  color: var(--text-3); display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.icon-btn:hover { background: var(--brand-weak); color: var(--brand); }
.icon-btn.danger:hover { background: #FFECE8; color: var(--red); }

/* ===================== 卡片 / 通用 ===================== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 14px; background: #fff; color: var(--text-1);
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #C2C7D0; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 109, 61, .12);
}
.field textarea { resize: vertical; min-height: 64px; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 600; user-select: none;
}

.progress-track { height: 8px; border-radius: 999px; background: #F2F3F5; overflow: hidden; flex: 1; }
.progress-fill {
  height: 100%; border-radius: 999px; background: var(--brand-grad);
  transition: width .4s ease;
}
.progress-fill.full { background: linear-gradient(90deg, #3DD66C, #00B42A); }

.chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  white-space: nowrap;
}
.chip-brand { background: var(--brand-weak); color: var(--brand); }
.chip-green { background: var(--green-bg); color: var(--green); }
.chip-amber { background: #FFF7E8; color: #D25F00; }

.empty { text-align: center; padding: 52px 20px; }
.empty-ico {
  width: 88px; height: 88px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--brand-weak); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.empty-t { font-size: 15px; font-weight: 600; color: var(--text-2); }
.empty-s { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ===================== 顶栏（学员端） ===================== */
.navbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.navbar-inner {
  max-width: 1020px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.brand img, .brand svg { border-radius: 8px; display: block; }
.user-box { display: flex; align-items: center; gap: 10px; }
.user-nick { font-weight: 600; font-size: 14px; }
.role-badge { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.role-badge.student { background: var(--brand-weak); color: var(--brand); }
.role-badge.admin { background: var(--brand-grad); color: #fff; }

/* ===================== 登录页（左右分栏） ===================== */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 154, 98, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(255, 84, 51, .28), transparent 55%),
    linear-gradient(160deg, #2B2118 0%, #3D2417 55%, #4A2A16 100%);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 880px; background: #fff;
  border-radius: 20px; overflow: hidden; display: flex;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}
.auth-brand {
  width: 350px; flex-shrink: 0; padding: 44px 36px;
  background: var(--brand-grad); color: #fff; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.auth-brand-logo { width: 58px; height: 58px; border-radius: 15px; background: rgba(255,255,255,.18); padding: 5px; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.auth-brand h2 { font-size: 22px; margin-top: 22px; letter-spacing: .5px; }
.auth-brand .auth-brand-slogan { font-size: 13px; opacity: .92; margin-top: 8px; line-height: 1.7; }
.auth-brand-feats { list-style: none; margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.auth-brand-feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.auth-brand-feats li .feat-ico {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.16);
  display: inline-flex; align-items: center; justify-content: center;
}
.auth-brand-goose {
  position: absolute; right: -26px; bottom: -30px; width: 170px; height: 170px;
  opacity: .16; pointer-events: none;
}
.auth-form { flex: 1; padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.auth-form h1 { font-size: 21px; }
.auth-form .auth-sub { color: var(--text-3); font-size: 13px; margin: 6px 0 22px; }
.auth-tabs {
  display: flex; background: #F2F3F5; border-radius: 9px; padding: 4px; margin-bottom: 20px;
}
.auth-tabs button {
  flex: 1; border: none; background: transparent; padding: 9px; border-radius: 6px;
  font-size: 14px; font-weight: 600; color: var(--text-3); transition: all .15s;
}
.auth-tabs button.active { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.auth-error {
  background: #FFECE8; color: var(--red); border-radius: 8px;
  padding: 10px 12px; font-size: 13px; margin-bottom: 14px;
}
.auth-foot { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 18px; }

/* ===================== 学员端主区域 ===================== */
.container { max-width: 1020px; margin: 0 auto; padding: 24px 20px 70px; }

/* ---- 欢迎横幅 ---- */
.hero {
  position: relative; overflow: hidden;
  background: var(--brand-grad); border-radius: 16px;
  color: #fff; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  box-shadow: 0 10px 30px rgba(255, 84, 51, .3);
  margin-bottom: 16px;
}
.hero::after {
  content: ""; position: absolute; right: -34px; bottom: -58px; width: 190px; height: 190px;
  background: url("/logo.svg") no-repeat center / contain; opacity: .18; pointer-events: none;
}
.hero-hi { font-size: 21px; font-weight: 700; }
.hero-sub { font-size: 13px; opacity: .95; margin-top: 8px; }
.hero-total {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 16px; font-size: 13px; background: rgba(255,255,255,.16);
  border-radius: 999px; padding: 6px 14px;
}
.hero-total b { font-size: 15px; }
.hero-ring { position: relative; width: 108px; height: 108px; flex-shrink: 0; }
.hero-ring svg { width: 100%; height: 100%; display: block; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 11; }
.ring-fg { fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; transition: stroke-dashoffset .5s ease; }
.hero-ring-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1.2;
}
.hero-ring-label b { font-size: 21px; }
.hero-ring-label span { font-size: 11px; opacity: .9; margin-top: 1px; }

/* ---- 日期导航 ---- */
.date-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 18px; }
.date-nav .nav-arrow {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.date-nav .nav-arrow:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-weak); }
.date-info { flex: 1; text-align: center; }
.date-big { font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.date-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; letter-spacing: 1px; }

/* ---- 任务卡片 ---- */
.task-card { margin-bottom: 16px; overflow: hidden; padding: 0; transition: box-shadow .2s ease; }
.task-card:hover { box-shadow: var(--shadow-lift); }
.task-head { padding: 18px 20px 14px; display: flex; gap: 14px; align-items: flex-start; }
.task-ico {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  background: var(--brand-weak); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.task-head-main { flex: 1; min-width: 0; }
.task-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-desc { font-size: 13px; color: var(--text-3); margin-top: 5px; line-height: 1.65; }
.task-progress-box { min-width: 168px; text-align: right; }
.task-progress-num { font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-3); }
.task-progress-num b { color: var(--brand); font-size: 16px; }
.task-progress-num.all { color: var(--green); }
.task-progress-num.all b { color: var(--green); }

.task-done-banner {
  margin: 0 20px 16px; background: var(--green-bg); color: var(--green);
  border: 1px solid var(--green-line); border-radius: 9px; padding: 10px 14px;
  font-size: 14px; font-weight: 600; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}

/* ---- 任务点 ---- */
.points { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.point {
  display: flex; gap: 13px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 11px; padding: 14px 16px;
  transition: all .2s ease; background: #fff;
}
.point:hover { border-color: var(--brand-border); }
.point.done { background: #FBFFFC; border-color: var(--green-line); }
.point-check {
  width: 28px; height: 28px; min-width: 28px; border-radius: 50%;
  border: 2px solid #C9CDD4; background: #fff; color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 1px; transition: all .2s;
  user-select: none;
}
.student-view .point-check { cursor: pointer; }
.student-view .point-check:hover { border-color: var(--brand); color: var(--brand); }
.point.done .point-check { background: var(--brand-grad); border-color: transparent; color: #fff; }
.point-body { flex: 1; min-width: 0; }
.point-title { font-size: 15px; font-weight: 600; line-height: 1.5; word-break: break-word; }
.point.done .point-title { color: var(--text-3); text-decoration: line-through; text-decoration-color: #C9CDD4; }
.point-desc { font-size: 13px; color: var(--text-3); margin-top: 4px; line-height: 1.65; word-break: break-word; white-space: pre-wrap; }
.point-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn-video {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--brand-weak); border: 1px solid var(--brand-border); color: var(--brand-deep);
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transition: all .15s; white-space: nowrap;
}
.btn-video:hover { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 10px rgba(255,84,51,.3); }

/* ---- 管理端任务点展示 ---- */
.admin-point-meta { font-size: 12px; color: var(--text-3); margin-top: 6px; display: flex; align-items: center; gap: 5px; word-break: break-all; }
.admin-point-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }

/* ===================== 管理后台（侧边栏布局） ===================== */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 224px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; border-bottom: 1px solid #F2F3F5; }
.side-brand svg, .side-brand img { border-radius: 9px; display: block; }
.side-brand-name { line-height: 1.25; }
.side-brand-name b { display: block; font-size: 14px; }
.side-brand-name span { font-size: 11px; color: var(--text-3); }

.side-nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-nav button {
  display: flex; align-items: center; gap: 10px;
  border: none; background: transparent; color: var(--text-2);
  padding: 11px 13px; border-radius: 9px; font-size: 14px; font-weight: 500;
  transition: all .15s; text-align: left;
}
.side-nav button:hover { background: #F7F8FA; color: var(--text-1); }
.side-nav button.active {
  background: var(--brand-weak); color: var(--brand); font-weight: 700;
}
.side-user {
  margin: 10px; padding: 12px; border-radius: 11px; background: #F7F8FA;
  display: flex; align-items: center; gap: 10px;
}
.side-user-info { flex: 1; min-width: 0; line-height: 1.3; }
.side-user-info b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-info span { font-size: 11px; color: var(--text-3); }
.side-user-acts { display: flex; gap: 2px; }

.admin-main { flex: 1; min-width: 0; padding: 26px 30px 60px; max-width: 1000px; }
.admin-header { margin-bottom: 20px; }
.admin-header h2 { font-size: 20px; font-weight: 700; }
.admin-header p { font-size: 13px; color: var(--text-3); margin-top: 5px; }

.admin-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 14px 18px; flex-wrap: wrap; }
.admin-toolbar label { font-size: 14px; font-weight: 600; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.admin-toolbar input[type="date"] {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; background: #fff;
}
.admin-toolbar input[type="date"]:focus { outline: none; border-color: var(--brand); }
.admin-toolbar .toolbar-hint { font-size: 13px; color: var(--text-3); }
.admin-toolbar .toolbar-spacer { flex: 1; }

.new-task-card { margin-bottom: 16px; border: 1.5px dashed var(--brand-border); background: #FFFDFB; box-shadow: none; }
.new-task-card h3 { font-size: 15px; margin-bottom: 14px; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.form-row2 { display: flex; gap: 12px; }
.form-row2 .field { flex: 1; }
.form-actions { display: flex; gap: 10px; margin-top: 4px; }

.add-point-box { border: 1.5px dashed var(--line); border-radius: 11px; background: #FAFBFC; }
.add-point-toggle {
  width: 100%; border: none; background: transparent; color: var(--text-3);
  font-size: 14px; font-weight: 600; padding: 13px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.add-point-toggle:hover { background: var(--brand-weak); color: var(--brand); }
.point-form { border: 1.5px dashed var(--brand-border); border-radius: 11px; padding: 15px; background: #FFF9F6; }

/* ---- 学员进度表 ---- */
.progress-task { margin-bottom: 16px; padding: 0; overflow: hidden; }
.progress-task-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 20px; background: var(--brand-weak);
}
.progress-task-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.progress-task-date { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.student-progress-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid #F2F3F5; }
.student-progress-row:last-child { border-bottom: none; }
.sp-name { width: 150px; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.sp-num { width: 52px; text-align: right; font-size: 13px; color: var(--text-3); flex-shrink: 0; }
.sp-num.done-all { color: var(--green); font-weight: 700; }
.progress-refresh { display: flex; justify-content: flex-end; margin-bottom: 14px; }

/* ---- 学员管理 ---- */
.user-row { display: flex; align-items: center; gap: 13px; padding: 13px 20px; border-bottom: 1px solid #F2F3F5; }
.user-row:last-child { border-bottom: none; }
.user-row:hover { background: #FAFBFC; }
.user-main { flex: 1; min-width: 0; line-height: 1.4; }
.user-main b { font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.user-main .u-name { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.user-meta { font-size: 12px; color: var(--text-3); flex-shrink: 0; }

.account-box {
  background: #F7F8FA; border: 1px dashed var(--brand-border); border-radius: 10px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin: 14px 0 10px;
}
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.acct-row span { color: var(--text-3); flex-shrink: 0; }
.acct-row b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; word-break: break-all; }
.acct-tip { font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* ===================== 站内视频播放窗口 ===================== */
.player-mask {
  position: fixed; inset: 0; background: rgba(20, 22, 26, .58); z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.player-win {
  background: #0f1115; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
  width: min(880px, 94vw);
  display: flex; flex-direction: column;
}
.player-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 14px; height: 46px; flex-shrink: 0;
  background: #171a20; color: #fff; cursor: move; user-select: none;
}
.player-title {
  flex: 1; font-size: 13px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.player-title .ic-svg { color: var(--brand); }
.player-acts { display: flex; gap: 2px; }
.p-act {
  width: 32px; height: 32px; border: none; border-radius: 7px;
  background: transparent; color: #c9cdd4; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.p-act:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.p-act.close:hover { background: #f53f3f; }
.player-body { aspect-ratio: 16 / 9; background: #000; }
.player-body iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-win.max { width: calc(100vw - 36px); }
.player-win.max .player-body { aspect-ratio: auto; height: calc(100vh - 36px - 46px); }
.player-win.max .player-bar { cursor: default; }

/* ===================== 弹窗 ===================== */
.modal-mask {
  position: fixed; inset: 0; background: rgba(29, 33, 41, .5); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 26px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal h3 { font-size: 17px; margin-bottom: 18px; }
.modal .form-actions { justify-content: flex-end; margin-top: 18px; }

/* ===================== toast ===================== */
.toast {
  position: fixed; top: 76px; left: 50%; transform: translateX(-50%);
  background: rgba(29, 33, 41, .92); color: #fff; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: fadeIn .2s ease;
  display: flex; align-items: center; gap: 7px;
}
@keyframes fadeIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; } }

/* ===================== 响应式 ===================== */
@media (max-width: 960px) {
  .auth-brand { display: none; }
  .auth-form { padding: 38px 30px; }
  .admin-shell { display: block; }
  .sidebar {
    width: 100%; height: auto; position: sticky; top: 0; z-index: 50;
    flex-direction: row; align-items: center; padding: 8px 12px; gap: 4px;
    border-right: none; border-bottom: 1px solid var(--line);
  }
  .side-brand { padding: 4px 8px 4px 4px; border-bottom: none; }
  .side-brand-name { display: none; }
  .side-nav { flex-direction: row; padding: 0; flex: 1; }
  .side-nav button { padding: 9px 12px; }
  .side-user { margin: 0 0 0 auto; padding: 4px; background: transparent; }
  .side-user-info { display: none; }
  .admin-main { padding: 18px 16px 50px; }
}
@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .hero-ring { position: absolute; right: 18px; top: 18px; width: 84px; height: 84px; }
  .hero-ring-label b { font-size: 17px; }
  .task-head { flex-wrap: wrap; }
  .task-progress-box { min-width: 0; width: 100%; text-align: left; }
  .point { flex-wrap: wrap; }
  .point-actions { width: 100%; justify-content: flex-start; }
  .sp-name { width: 110px; }
  .form-row2 { flex-direction: column; gap: 0; }
  .user-nick { display: none; }
  .admin-toolbar .toolbar-hint { display: none; }
}
