/* 雪友圈管理后台 · 明亮多彩滑雪主题 */
:root {
  --sky: #1f7eb0;
  --sky-deep: #156892;
  --ice: #3aa0c8;
  --cyan: #4ec4e0;
  --mint: #3db89a;
  --aurora: #6b8cff;
  --coral: #ef7a6a;
  --sun: #f0b429;
  --lilac: #8b7cf6;
  --frost: #eef7fc;
  --snow: #f3f8fc;
  --white: #ffffff;
  --ink: #1a2f3d;
  --muted: #6a8294;
  --line: #d7e6f0;
  --line-soft: #eaf2f7;
  --navy: #1a5f86;
  --navy-2: #2478a5;
  --success: #2d9a72;
  --success-bg: #e6f7ef;
  --warn: #c4890a;
  --warn-bg: #fff7e0;
  --danger: #d2555d;
  --danger-bg: #fff1f2;
  --gold: #d4a84b;
  --shadow: 0 10px 28px rgba(31, 126, 176, .08);
  --shadow-lg: 0 18px 48px rgba(31, 126, 176, .14);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 256px;
  --topbar-h: 64px;
  --ease: cubic-bezier(.22, .8, .28, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 45% at 100% -8%, rgba(78, 196, 224, .28), transparent 55%),
    radial-gradient(ellipse 55% 40% at 0% 0%, rgba(107, 140, 255, .14), transparent 50%),
    radial-gradient(ellipse 40% 30% at 70% 100%, rgba(61, 184, 154, .1), transparent 50%),
    var(--snow);
  font: 14px/1.6 "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--sky-deep); }

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
}

/* —— Sidebar（亮蓝渐变，不压暗） —— */
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  color: #fff;
  background:
    radial-gradient(ellipse 90% 50% at 0% 0%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(180deg, #2a93c4 0%, #1f7eb0 42%, #176a97 100%);
  padding: 22px 12px 28px;
  border-right: 1px solid rgba(255,255,255,.12);
  box-shadow: 8px 0 28px rgba(31, 126, 176, .12);
  scrollbar-width: thin;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 10px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 8px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #b8ecf8);
  color: #156892;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 13px;
}
.brand h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: .14em;
  font-weight: 700;
}
.brand p {
  margin: 2px 0 0;
  color: rgba(255,255,255,.55);
  font-size: 11px;
}

.menu-group { margin-top: 10px; }
.menu-group-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255,255,255,.48);
  font: inherit;
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  text-align: left;
  transition: background .2s var(--ease), color .2s;
}
.menu-group-btn:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.75); }
.menu-group-btn .chev {
  width: 16px;
  height: 16px;
  opacity: .7;
  transition: transform .22s var(--ease);
  flex: 0 0 auto;
}
.menu-group.open .menu-group-btn .chev { transform: rotate(90deg); }
.menu-group.open .menu-group-btn { color: rgba(255,255,255,.78); }

.menu-sub {
  display: none;
  padding: 2px 0 6px;
}
.menu-group.open .menu-sub { display: block; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 14px;
  margin: 2px 0;
  color: rgba(255,255,255,.72);
  border-radius: 9px;
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s;
}
.nav-link:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.nav-link.active {
  background: rgba(255,255,255,.22);
  color: #fff;
  box-shadow: inset 3px 0 0 #fff;
  font-weight: 600;
}
.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  flex: 0 0 auto;
}
.nav-link.active .nav-dot {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}

.mobile-nav { display: none; margin-top: 12px; }
.mobile-nav select {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 0 12px;
}

/* —— Main —— */
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar-h);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: .02em;
}
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: var(--frost);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.admin-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #4ec4e0, #6b8cff);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.topbar a.logout {
  color: var(--muted);
  font-size: 13px;
}
.topbar a.logout:hover { color: var(--danger); }

.content {
  max-width: 1440px;
  padding: 26px 28px 52px;
  width: 100%;
}
.content:has(.xyq-screen) {
  max-width: none;
  padding: 0;
}

/* —— Page intro —— */
.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.eyebrow {
  color: var(--ice);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 650;
}
.page-intro h2 {
  margin: 4px 0 4px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: .02em;
}
.page-intro p { margin: 0; color: var(--muted); max-width: 560px; }
.page-intro-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* —— Panels / tables —— */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  min-height: 56px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #fbfdfe, #fff);
}
.panel-head strong { font-size: 14px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th {
  text-align: left;
  padding: 11px 16px;
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 13px 16px;
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
  color: #526570;
}
tr:hover td { background: rgba(232, 244, 250, .35); }
td.strong { color: var(--ink); font-weight: 650; }
.content-cell { max-width: 360px; min-width: 220px; }
.empty-cell { text-align: center; padding: 48px !important; color: var(--muted); }
.actions { white-space: nowrap; }
.inline-form { display: inline-flex; margin-left: 6px; }

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: #46606d;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s, transform .12s;
}
.btn:hover {
  border-color: var(--ice);
  color: var(--sky);
  background: var(--frost);
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.btn.primary {
  background: linear-gradient(180deg, #4ec4e0, #1f7eb0);
  border-color: #156892;
  color: #fff;
  box-shadow: 0 6px 16px rgba(31, 126, 176, .28);
}
.btn.primary:hover {
  background: linear-gradient(180deg, #5fd0ea, #176a97);
  color: #fff;
  border-color: #156892;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--sky);
}
.btn.ghost:hover { background: var(--frost); }
.btn.success { color: var(--success); border-color: #b7dfcb; background: var(--success-bg); }
.btn.success:hover { border-color: var(--success); }
.btn.danger { color: var(--danger); border-color: #f0c9cd; background: var(--danger-bg); }
.btn.danger:hover { border-color: var(--danger); }
.btn.warn { color: var(--warn); border-color: #f0e0a8; background: var(--warn-bg); }
.btn.sm { min-height: 30px; padding: 0 10px; font-size: 12px; }

/* —— Forms —— */
.input,
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d5e1e8;
  border-radius: var(--radius-sm);
  background: #fbfdfe;
  color: var(--ink);
  font: inherit;
  padding: 9px 11px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input { width: 260px; }
.input:focus,
.form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(94, 196, 224, .2);
  background: #fff;
}
.form-panel { padding: 22px; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-field { display: block; }
.form-field.full { grid-column: 1 / -1; }
.form-field > span {
  display: block;
  margin-bottom: 6px;
  color: #526570;
  font-size: 13px;
  font-weight: 600;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.field-help { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feedback-form { display: flex; gap: 8px; min-width: 280px; flex-wrap: wrap; }

/* —— Badges —— */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 11px;
  font-weight: 650;
}
.badge.success { background: var(--success-bg); color: var(--success); }
.badge.muted { background: #f1f3f4; color: #7e8d95; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.pending { background: var(--warn-bg); color: var(--warn); }
.badge.handled { background: var(--success-bg); color: var(--success); }
.badge.archived { background: #f1f3f4; color: #7e8d95; }
.badge.rejected,
.badge.deleted { background: var(--danger-bg); color: var(--danger); }

.status-dot { color: var(--success); font-size: 13px; }
.thumb {
  width: 72px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid var(--line);
}
.thumb.placeholder {
  background: var(--frost);
  color: var(--muted);
  text-align: center;
  line-height: 44px;
  font-size: 11px;
}

/* —— Metrics / misc —— */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.metric {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.metric::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 196, 224, .2), transparent 70%);
}
.metric span,
.metric small { display: block; color: var(--muted); }
.metric strong {
  display: block;
  font-size: 28px;
  color: #156892;
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.notice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px;
}
.notice-grid div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(160deg, #fbfdfe, var(--frost));
}
.notice-grid p { margin: 6px 0 0; color: var(--muted); }
.muted-text { color: var(--muted); font-size: 12px; }

.flash {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: flashIn .35s var(--ease);
}
.flash.ok { border-color: #c6e4d6; background: var(--success-bg); color: var(--success); }
.flash.error { border-color: #f0c9cd; background: var(--danger-bg); color: var(--danger); }
.flash-close {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: .7;
  font-size: 16px;
  line-height: 1;
}
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.perm-grid label,
.perm-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
  color: #526570;
  margin: 0;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.perm-check:hover {
  border-color: var(--ice);
  background: #f7fcfe;
}
.perm-check input,
.form-field .perm-check input,
.tag-check-grid input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  accent-color: var(--sky);
  margin: 0;
}
.perm-check span,
.tag-check-grid .perm-check span {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 1.3;
}

/* —— Modal —— */
.xyq-modal-root[hidden] { display: none !important; }
.xyq-modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.xyq-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 28, 40, .48);
  backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}
.xyq-modal {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn .22s var(--ease);
}
.xyq-modal-head {
  padding: 16px 18px 8px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.xyq-modal-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 16px;
  background: var(--frost);
  color: var(--sky);
}
.xyq-modal-icon.warn { background: var(--warn-bg); color: var(--warn); }
.xyq-modal-icon.danger { background: var(--danger-bg); color: var(--danger); }
.xyq-modal-icon.success { background: var(--success-bg); color: var(--success); }
.xyq-modal-title {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 700;
}
.xyq-modal-body {
  padding: 4px 18px 16px 66px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.xyq-modal-foot {
  padding: 12px 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: #fafcfd;
  border-top: 1px solid var(--line-soft);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

body.xyq-modal-open { overflow: hidden; }

/* —— Extra layout helpers —— */
.user-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--frost), #fff);
  border: 1px solid var(--line);
}
.user-hero .avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(31, 111, 154, .18);
}
.user-hero .avatar.placeholder {
  display: grid;
  place-items: center;
  background: var(--frost);
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}
.user-hero .name { font-size: 18px; font-weight: 700; color: var(--ink); }
.tag-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.tag-check-grid label,
.tag-check-grid .perm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  background: #fff;
  font-weight: 400;
  color: #526570;
  cursor: pointer;
  margin: 0;
}
.tag-check-grid label:has(input:checked),
.tag-check-grid .perm-check:has(input:checked) {
  border-color: var(--cyan);
  background: var(--frost);
  color: var(--sky-deep);
}
.tag-cell {
  max-width: 280px;
}
.tag-cell .perm-chip {
  margin: 2px 2px 0 0;
}
.panel-head .muted-text + a.btn,
.panel-head > a.btn {
  margin-left: auto;
}
.danger-zone {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed #f0c9cd;
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 320px;
}
.action-stack .inline-form { margin-left: 0; }
.action-stack .btn { min-height: 30px; padding: 0 10px; font-size: 12px; }
.flag-cell { white-space: nowrap; }
.weight-form { display: inline-flex; gap: 4px; align-items: center; margin: 0; }
.weight-form .input { width: 64px; min-height: 30px; padding: 4px 8px; }
.perm-groups { display: grid; gap: 12px; margin-top: 0; }
.perm-group {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdfe, #fff);
  padding: 12px 14px 14px;
}
.perm-group h4 {
  margin: 0;
  font-size: 13px;
  color: var(--sky-deep);
  letter-spacing: .04em;
}
.perm-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.perm-group-toggle {
  border: 0;
  background: transparent;
  color: var(--ice);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.perm-group-toggle:hover { color: var(--sky); text-decoration: underline; }
.perm-box { padding: 0 18px 16px 22px; }
.perm-box.is-readonly .perm-check {
  opacity: .72;
  cursor: default;
  background: #f7fafc;
}
.perm-box.is-readonly .perm-group-toggle { visibility: hidden; }
.perm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.role-edit-form .sticky-actions { margin-top: 8px; }

/* —— 系统：权限 / 日志 —— */
.sys-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.sys-metric {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.sys-metric::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 196, 224, .18), transparent 70%);
}
.sys-metric span,
.sys-metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.sys-metric strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 26px;
  color: #156892;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.role-card-list {
  display: grid;
  gap: 0;
}
.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid var(--line-soft);
  transition: background .15s;
}
.role-card:first-child { border-top: 0; }
.role-card:hover { background: rgba(232, 244, 250, .4); }
.role-card.is-frozen { opacity: .78; }
.role-card.is-super {
  background: linear-gradient(90deg, rgba(94, 196, 224, .08), transparent 55%);
}
.role-card-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.role-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(160deg, var(--cyan), var(--sky));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 6px 14px rgba(31, 126, 176, .18);
}
.role-info { min-width: 0; flex: 1; }
.role-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.role-title-row strong {
  color: var(--ink);
  font-size: 15px;
}
.role-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.role-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.role-card-actions .inline-form { margin-left: 0; }
.perm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.perm-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #d7e8f1;
  background: #f4fafd;
  color: #3d6d84;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.perm-chip.more {
  background: #fff;
  color: var(--muted);
  border-style: dashed;
}
.badge.role-badge { background: #e8f4fa; color: #1f6f96; }
.badge.role-super { background: linear-gradient(180deg, #dff3fb, #cfe9f5); color: #0f5f86; }
.badge.role-content { background: #eef6ff; color: #3d6fb5; }
.badge.role-resort { background: #e9f8f2; color: #2d8a66; }
.badge.role-service { background: #fff6e8; color: #b07a1a; }
.badge.role-custom { background: #f3efff; color: #6b5bb5; }

.log-filter-head { align-items: flex-start; }
.log-filter { width: 100%; }
.log-stream {
  display: grid;
  gap: 0;
}
.log-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 150px;
  gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.log-item:first-child { border-top: 0; }
.log-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #c9d8e1;
}
.log-item.tone-success::before { background: var(--success); }
.log-item.tone-warn::before { background: var(--warn); }
.log-item.tone-danger::before { background: var(--danger); }
.log-item:hover { background: rgba(232, 244, 250, .35); }
.log-time {
  text-align: right;
  padding-top: 2px;
}
.log-time strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.log-time span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}
.log-main { min-width: 0; }
.log-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.log-action { flex: 0 0 auto; }
.log-operator {
  color: var(--ink);
  font-weight: 650;
  font-size: 13px;
}
.log-target {
  color: var(--muted);
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f7fa;
}
.log-detail {
  margin-top: 6px;
  color: #5a6f7c;
  font-size: 12px;
  line-height: 1.55;
  word-break: break-word;
}
.log-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 2px;
}
.log-ip {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.log-code {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 6px;
  background: #f4f7f9;
  color: #7a8d98;
  font-size: 10px;
  border: 1px solid var(--line-soft);
}
.log-pager { border-top: 1px solid var(--line); }
.split-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.split-tabs a, .split-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.split-tabs a:hover { border-color: var(--ice); color: var(--sky); }
.split-tabs .on {
  background: linear-gradient(180deg, var(--ice), var(--sky));
  border-color: var(--sky-deep);
  color: #fff;
}
/* —— Login：滑雪主题全幅舞台 —— */
.login-page {
  --login-ink: #0c2433;
  --login-frost: rgba(255, 255, 255, .86);
  --login-gold: #e8c56a;
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  display: grid;
  place-items: center;
  padding: 28px 20px 40px;
  color: var(--login-ink);
  background: #0a2a3d;
  font: 14px/1.65 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.login-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 18% 12%, rgba(120, 210, 255, .55), transparent 58%),
    radial-gradient(ellipse 45% 35% at 82% 18%, rgba(255, 210, 140, .28), transparent 52%),
    radial-gradient(ellipse 60% 45% at 70% 88%, rgba(40, 160, 140, .22), transparent 55%),
    linear-gradient(165deg, #0b3a52 0%, #156f96 38%, #3aa8c9 72%, #8ed7ea 100%);
  animation: loginSkyDrift 18s ease-in-out infinite alternate;
}
.login-aurora {
  position: absolute;
  inset: -10% -5% auto;
  height: 55%;
  background:
    linear-gradient(105deg, transparent 20%, rgba(110, 220, 255, .18) 40%, rgba(180, 255, 220, .12) 55%, transparent 75%),
    linear-gradient(250deg, transparent 30%, rgba(255, 200, 120, .1) 50%, transparent 70%);
  filter: blur(28px);
  animation: loginAurora 14s ease-in-out infinite alternate;
  opacity: .9;
}
.login-mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(52vh, 420px);
}
.login-mt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.login-mt path { fill: currentColor; }
.login-mt-far { color: rgba(12, 55, 78, .45); height: 88%; transform: translateY(6%); }
.login-mt-mid { color: rgba(18, 72, 98, .62); height: 78%; }
.login-mt-near {
  color: rgba(8, 42, 60, .82);
  height: 62%;
  filter: drop-shadow(0 -8px 24px rgba(0, 20, 40, .25));
}
.login-slope {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background:
    linear-gradient(180deg, transparent, rgba(245, 252, 255, .55) 40%, rgba(232, 245, 252, .92));
}
.login-snow {
  position: absolute;
  inset: 0;
}
.login-snow i {
  position: absolute;
  top: -12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, .7);
  animation: loginSnowFall linear infinite;
}
.login-glint {
  position: absolute;
  top: 8%;
  right: 12%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .55), transparent 68%);
  filter: blur(2px);
  animation: loginGlint 6s ease-in-out infinite;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(4, 28, 44, .45),
    0 0 0 1px rgba(255, 255, 255, .22);
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, .08);
  animation: loginShellIn .8s var(--ease) both;
}

.login-hero {
  position: relative;
  padding: 48px 40px 42px;
  color: #f4fbff;
  background:
    linear-gradient(155deg, rgba(8, 48, 68, .55) 0%, rgba(20, 90, 120, .35) 55%, rgba(255, 255, 255, .08) 100%);
  border-right: 1px solid rgba(255, 255, 255, .14);
  overflow: hidden;
}
.login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: loginFadeUp .7s .1s both;
}
.login-hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--login-gold);
  box-shadow: 0 0 10px rgba(232, 197, 106, .8);
}
.login-hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  animation: loginFadeUp .7s .18s both;
}
.login-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #fff 0%, #c9eef8 45%, #5ec4e0 100%);
  color: #125878;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .04em;
  box-shadow:
    0 14px 32px rgba(0, 30, 50, .35),
    inset 0 1px 0 rgba(255, 255, 255, .9);
}
.login-hero-brand h1 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1;
  text-shadow: 0 8px 28px rgba(0, 20, 40, .35);
}
.login-hero-tag {
  margin: 0 0 18px;
  color: rgba(232, 197, 106, .95);
  font-size: 13px;
  letter-spacing: .12em;
  animation: loginFadeUp .7s .26s both;
}
.login-hero-lead {
  margin: 0 0 28px;
  max-width: 34em;
  color: rgba(235, 248, 255, .82);
  font-size: 14px;
  line-height: 1.8;
  animation: loginFadeUp .7s .34s both;
}
.login-hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  animation: loginFadeUp .7s .42s both;
}
.login-hero-stats li {
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
}
.login-hero-stats strong {
  display: block;
  font-size: 15px;
  letter-spacing: .08em;
  margin-bottom: 4px;
  color: #fff;
}
.login-hero-stats span {
  display: block;
  font-size: 11px;
  color: rgba(230, 245, 255, .65);
}
.login-trail {
  position: absolute;
  right: -20px;
  bottom: 24px;
  width: 160px;
  height: 80px;
  opacity: .35;
}
.login-trail span {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7));
  border-radius: 2px;
  transform-origin: left center;
}
.login-trail span:nth-child(1) { width: 120px; bottom: 48px; right: 20px; transform: rotate(-18deg); animation: loginTrail 3.2s ease-in-out infinite; }
.login-trail span:nth-child(2) { width: 90px; bottom: 34px; right: 36px; transform: rotate(-12deg); animation: loginTrail 3.2s .4s ease-in-out infinite; }
.login-trail span:nth-child(3) { width: 70px; bottom: 22px; right: 50px; transform: rotate(-8deg); animation: loginTrail 3.2s .8s ease-in-out infinite; }

.login-panel {
  position: relative;
  padding: 44px 40px 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(244, 250, 253, .96));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-panel-glow {
  position: absolute;
  top: -40px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 196, 224, .28), transparent 70%);
  pointer-events: none;
}
.login-panel-head {
  margin-bottom: 22px;
  animation: loginFadeUp .7s .2s both;
}
.login-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--sky);
  font-weight: 600;
}
.login-panel-head h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--login-ink);
}
.login-sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: loginFadeUp .7s .3s both;
}
.login-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.login-field > span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .04em;
}
.login-panel .field {
  width: 100%;
  height: 46px;
  border: 1px solid #d5e6ef;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  margin: 0;
  background: rgba(255, 255, 255, .9);
  outline: none;
  color: var(--login-ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.login-panel .field::placeholder { color: #9bb0be; }
.login-panel .field:focus {
  border-color: #4ec4e0;
  box-shadow: 0 0 0 4px rgba(78, 196, 224, .18);
  background: #fff;
}
.login-panel .btn-login {
  margin-top: 6px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .12em;
  color: #fff;
  background:
    linear-gradient(135deg, #2ea8d4 0%, #1f7eb0 48%, #156892 100%);
  box-shadow:
    0 12px 28px rgba(31, 126, 176, .35),
    inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .2s var(--ease), filter .2s, box-shadow .2s;
}
.login-panel .btn-login svg {
  transition: transform .25s var(--ease);
}
.login-panel .btn-login:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(31, 126, 176, .42);
}
.login-panel .btn-login:hover svg { transform: translateX(3px); }
.login-panel .btn-login:active { transform: translateY(0); }

.login-err {
  background: #fff0f1;
  color: #c04a52;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid #f0c9cd;
  animation: loginFadeUp .45s both;
}
.login-err.ok {
  background: #e8f6ef;
  color: #2d8a66;
  border-color: #c6e4d6;
}
.login-hint {
  margin-top: 22px;
  font-size: 12px;
  color: #7a93a4;
  text-align: center;
  line-height: 1.7;
  animation: loginFadeUp .7s .4s both;
}

@keyframes loginSkyDrift {
  from { transform: scale(1); }
  to { transform: scale(1.04) translateY(-1%); }
}
@keyframes loginAurora {
  from { transform: translateX(-3%) rotate(-2deg); opacity: .75; }
  to { transform: translateX(4%) rotate(2deg); opacity: 1; }
}
@keyframes loginSnowFall {
  0% { transform: translate3d(0, -10px, 0); }
  100% { transform: translate3d(18px, 105vh, 0); }
}
@keyframes loginGlint {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: .85; transform: scale(1.12); }
}
@keyframes loginShellIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes loginFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes loginTrail {
  0%, 100% { opacity: .25; }
  50% { opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  .login-sky,
  .login-aurora,
  .login-glint,
  .login-trail span,
  .login-shell,
  .login-hero-badge,
  .login-hero-brand,
  .login-hero-tag,
  .login-hero-lead,
  .login-hero-stats,
  .login-panel-head,
  .login-form,
  .login-hint { animation: none !important; }
  .login-snow i { animation: none !important; opacity: .4; }
}

@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .login-hero {
    padding: 32px 28px 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
  }
  .login-hero-lead { display: none; }
  .login-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .login-hero-stats li { padding: 10px 8px; }
  .login-panel { padding: 28px 24px 26px; }
  .login-panel-head h2 { font-size: 28px; }
  .login-trail { display: none; }
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .sys-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .perm-grid { grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); }
  .log-item { grid-template-columns: 78px minmax(0, 1fr) 120px; }
}
@media (max-width: 860px) {
  .app { display: block; }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }
  .menu-group { display: none; }
  .mobile-nav { display: block; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 14px 40px; }
  .page-intro { display: block; }
  .page-intro-actions,
  .page-intro .btn { margin-top: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .sys-metric-grid { grid-template-columns: 1fr 1fr; }
  .notice-grid { grid-template-columns: 1fr; }
  .input { width: 100%; }
  .perm-grid { grid-template-columns: 1fr 1fr; }
  .xyq-modal-body { padding-left: 18px; }
  .resort-dash { grid-template-columns: 1fr 1fr; }
  .form-grid.dense { grid-template-columns: 1fr; }
  .form-field.span-2 { grid-column: auto; }
  .role-card {
    flex-direction: column;
    align-items: stretch;
  }
  .role-card-actions { justify-content: flex-start; }
  .log-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .log-time { text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .log-time strong { display: inline; }
  .log-time span { display: inline; margin-top: 0; }
  .log-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .perm-box { padding-left: 14px; padding-right: 14px; }
}

/* —— 雪场与服务 · 进阶表单 —— */
.form-sections {
  display: grid;
  gap: 16px;
}
.form-section {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.form-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--sky);
}
.form-section.accent-sky::before { background: linear-gradient(180deg, var(--cyan), var(--sky)); }
.form-section.accent-cyan::before { background: linear-gradient(180deg, #7ad7ef, var(--ice)); }
.form-section.accent-mint::before { background: linear-gradient(180deg, #6ed4b8, var(--mint)); }
.form-section.accent-lilac::before { background: linear-gradient(180deg, #b0a6ff, var(--lilac)); }
.form-section.accent-sun::before { background: linear-gradient(180deg, #ffd56a, var(--sun)); }
.form-section.accent-coral::before { background: linear-gradient(180deg, #ff9b8f, var(--coral)); }
.form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0 22px;
}
.form-section-head h3 {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
}
.form-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.form-section .form-grid {
  padding: 14px 18px 18px 22px;
}
.form-grid.dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}
.form-field.span-2 { grid-column: span 2; }
.form-grid.dense .form-field > span {
  font-size: 12px;
  margin-bottom: 4px;
}
.form-grid.dense input:not([type="checkbox"]):not([type="radio"]),
.form-grid.dense select,
.form-grid.dense textarea {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 13px;
}
.form-grid.dense textarea {
  min-height: 0;
  resize: vertical;
}
.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-field input:not([type="checkbox"]):not([type="radio"]):focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(58, 160, 200, .15);
}
.sticky-actions {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.resort-dash {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.resort-dash-card::after {
  content: "";
  position: absolute;
  right: -12px;
  top: -18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 196, 224, .18), transparent 70%);
}
.resort-dash-card {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
}
.resort-dash-card span,
.resort-dash-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.resort-dash-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 22px;
  color: var(--sky-deep);
  font-variant-numeric: tabular-nums;
}
.resort-dash-card strong em {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.resort-dash-card.tone-ok { border-color: #bfe8d4; background: linear-gradient(145deg, #fff, #e9faf1); }
.resort-dash-card.tone-ok strong { color: var(--success); }
.resort-dash-card.tone-warn { border-color: #f0d9a0; background: linear-gradient(145deg, #fff, #fff8e8); }
.resort-dash-card.tone-warn strong { color: var(--warn); }
.resort-dash-card.tone-danger { border-color: #f0c0c4; background: linear-gradient(145deg, #fff, #fff1f2); }
.resort-dash-card.tone-danger strong { color: var(--danger); }
.resort-dash-card.tone-ice { border-color: #b9e4f3; }
.resort-dash-card.tone-mint { border-color: #b7e8d8; }
.resort-dash-card.tone-mint strong { color: var(--mint); }
.resort-dash-card.tone-sun { border-color: #f0d89a; }
.resort-dash-card.tone-sun strong { color: #c4890a; letter-spacing: 2px; }
.powder-cell { color: #c4890a; letter-spacing: 1px; white-space: nowrap; }

.weather-live-bar {
  margin: 12px 22px 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  background: linear-gradient(90deg, rgba(78,196,224,.1), rgba(107,140,255,.08));
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.weather-live-bar.has-data {
  border-style: solid;
  border-color: #b9e4f3;
}
.weather-live-bar strong {
  display: inline-block;
  margin-right: 8px;
  color: var(--sky-deep);
  font-size: 12px;
}
.weather-live-bar span { color: var(--ink); font-size: 13px; }
.weather-live-bar small { color: var(--muted); font-size: 12px; }

.media-preview {
  margin-top: 8px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--frost);
  padding: 10px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  max-width: 100%;
}
.media-preview img {
  display: block;
  max-width: min(420px, 100%);
  max-height: 180px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.media-preview.empty {
  min-height: 72px;
  min-width: 180px;
  align-items: center;
  justify-content: center;
}
.media-preview-empty {
  color: var(--muted);
  font-size: 12px;
}

.badge.pending { background: var(--warn-bg); color: var(--warn); }
.panel-head .toolbar {
  flex: 1;
  gap: 10px;
}
.panel-head .toolbar strong {
  margin-right: 4px;
}

/* Identity / permission checkboxes must not inherit text-input sizing */
.form-field.tag-field .tag-check-grid {
  width: 100%;
}
.form-field .perm-check input[type="checkbox"],
.tag-check-grid input[type="checkbox"],
.form-grid.dense .perm-check input[type="checkbox"] {
  width: 15px !important;
  height: 15px !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0;
  flex: 0 0 auto;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: var(--sky);
}
.form-field .perm-check span,
.tag-check-grid .perm-check span {
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
