/* 哈石油创新社团设备预约 · 样式表（一个文件，无框架） */

:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #e4e7ec;
  --ink: #1a1d23;
  --muted: #6b7280;
  --brand: #2563eb;
  --brand-soft: #eef4ff;
  --pending: #b45309;
  --pending-bg: #fef3c7;
  --ok: #047857;
  --ok-bg: #d1fae5;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --mine: #6d28d9;
  --mine-bg: #ede9fe;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --panel: #171a21;
    --line: #262b36;
    --ink: #e6e8ee;
    --muted: #97a0b0;
    --brand: #60a5fa;
    --brand-soft: #1b2740;
    --pending: #fbbf24;
    --pending-bg: #3a2c0b;
    --ok: #34d399;
    --ok-bg: #0d3326;
    --danger: #f87171;
    --danger-bg: #3b1414;
    --mine: #c4b5fd;
    --mine-bg: #2a2140;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: var(--brand-soft);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: .92em;
  font-family: ui-monospace, Consolas, monospace;
}

/* ---------------------------------------------------------------- 顶栏 */

.top {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-in {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: .02em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--brand); }

.top nav { display: flex; gap: 4px; flex: 1; }

.nav-a {
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.nav-a:hover { background: var(--bg); text-decoration: none; color: var(--ink); }
.nav-a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }

.who { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.whoform { display: flex; align-items: center; gap: 6px; }
.whoform label { color: var(--muted); font-size: 13px; }
.whoform select { padding: 5px 8px; }

.me-chip {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}
.me-chip em { font-style: normal; opacity: .65; margin-left: 6px; font-weight: 400; }

/* 管理入口：点开在顶栏里直接填学号姓名，不跳页面 */
.adm { position: relative; display: inline-block; }
.adm summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  user-select: none;
}
.adm summary::-webkit-details-marker { display: none; }
.adm summary::marker { content: ""; }
.adm summary:hover { background: var(--bg); color: var(--ink); }
.adm[open] summary { background: var(--brand-soft); color: var(--brand); }
.adm form {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 60;
  width: 220px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .16);
}
.adm form input { width: 100%; }

/* ---------------------------------------------------------------- 布局 */

.wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 60px; }

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 18px 16px 40px;
  letter-spacing: .04em;
}

.h1 { font-size: 22px; margin: 4px 0 12px; letter-spacing: -.01em; }
.h2 { font-size: 16px; margin: 26px 0 10px; }
.lead { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.muted { color: var(--muted); font-size: 13px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn.danger:hover { background: var(--danger-bg); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.sm { padding: 5px 10px; font-size: 13px; }

.inline { display: inline-flex; gap: 4px; align-items: center; margin: 0; }

input, select, textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  max-width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.mini { width: 130px; padding: 5px 8px; font-size: 13px; }

/* ---------------------------------------------------------------- 提示 */

.flash {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.flash.warn { background: var(--pending-bg); color: var(--pending); border-color: var(--pending); }
.flash.err { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.st-pending { background: var(--pending-bg); color: var(--pending); }
.st-confirmed { background: var(--ok-bg); color: var(--ok); }
.st-rejected, .st-cancelled, .st-no_show { background: var(--danger-bg); color: var(--danger); }
.st-done { background: var(--bg); color: var(--muted); }

/* ---------------------------------------------------------------- 日历 */

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dnav { display: flex; align-items: center; gap: 6px; }
.dtxt { font-size: 16px; min-width: 128px; text-align: center; }
.jump { margin: 0; }
.jump input { padding: 6px 8px; }

.legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.dot.free { background: var(--panel); border: 1px solid var(--line); }
.dot.pending { background: var(--pending-bg); border: 1px solid var(--pending); }
.dot.confirmed { background: var(--ok-bg); border: 1px solid var(--ok); }
.dot.mine { background: var(--mine-bg); border: 1px solid var(--mine); }
.dot.black { background: var(--line); }

.machine {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}

.mhead { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.mtitle { display: flex; align-items: center; gap: 8px; font-size: 15px; flex-wrap: wrap; }
.mtitle b { font-size: 15px; }
.code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
}
.loc { color: var(--muted); font-size: 13px; }
.mmeta { color: var(--muted); font-size: 12.5px; }

.strip { overflow-x: auto; padding-bottom: 4px; }

/* ---------------------------------------------------------------- 设备图片 */

.mthumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.mphoto {
  display: block;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 10px;
}

.pick-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: 4px;
}

.photo-box {
  width: 380px;
  max-width: 100%;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: block;
}
.photo-none {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12.5px;
}
.photo-up { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.photo-up input[type=file] { font-size: 12px; padding: 4px; }

.mcard-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.mcard-form { flex: 1; min-width: 300px; }.cells { display: flex; gap: 2px; min-width: max-content; }

.cell {
  position: relative;
  width: 40px;
  height: 54px;
  border-radius: 6px;
  flex: 0 0 auto;
  font-size: 11px;
  overflow: hidden;
  display: block;
}

.cell.free {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
}
.cell.free:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  text-decoration: none;
}
.cell.free .plus {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  opacity: 0;
  color: var(--brand);
}
.cell.free:hover .plus { opacity: 1; }

.cell.past { background: var(--bg); border: 1px dashed var(--line); opacity: .55; }

.cell.bk { border: 1px solid transparent; }
.cell.bk.st-confirmed { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.cell.bk.st-pending {
  background: var(--pending-bg);
  border-color: var(--pending);
  color: var(--pending);
  background-image: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,.045) 6px 12px);
}
.cell.bk.mine { background: var(--mine-bg); border-color: var(--mine); color: var(--mine); }

.cell.black {
  background: var(--line);
  color: var(--muted);
  background-image: repeating-linear-gradient(45deg, transparent 0 5px, rgba(0,0,0,.05) 5px 10px);
}

.hr {
  position: absolute;
  top: 2px;
  left: 4px;
  font-size: 9.5px;
  opacity: .55;
  font-variant-numeric: tabular-nums;
}
.nm {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 600;
  font-size: 11px;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more {
  position: absolute;
  top: 0;
  right: 2px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 0, 0, .28);
  color: #fff;
  border-radius: 999px;
  padding: 0 4px;
  line-height: 12px;
}

/* ---------------------------------------------------------------- 下单 */

.crumb { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.book { max-width: 760px; }
.book-h { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.book-h > div:first-child { display: flex; align-items: center; gap: 8px; font-size: 17px; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span { font-size: 13px; color: var(--muted); }
.field i { color: var(--danger); font-style: normal; }
.field input, .field select { width: 100%; }

.row2, .row3, .row4 { display: grid; gap: 12px; }
.row2 { grid-template-columns: 1fr 1fr; }
.row3 { grid-template-columns: 1fr 1fr 1fr; }
.row4 { grid-template-columns: repeat(4, 1fr); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 我的预约 */

.bk-list { display: flex; flex-direction: column; gap: 10px; }

.bk-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}
.bk-item.ended { opacity: .58; }
.bk-when b { display: block; font-size: 15px; }
.bk-when span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bk-what b { font-size: 15px; margin-right: 8px; }
.bk-what span { display: inline-block; }
.bk-st { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.reason { font-size: 12px; color: var(--muted); }

.big-ok {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 34px;
  line-height: 62px;
  margin: 6px auto 14px;
}

/* ---------------------------------------------------------------- 选设备 */

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pick {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pick-h { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.pick-m { font-size: 12.5px; color: var(--muted); }
.pick-a { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; }

/* ---------------------------------------------------------------- 管理 */

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 8px 14px;
  color: var(--muted);
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover { text-decoration: none; color: var(--ink); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.stat b { display: block; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12.5px; color: var(--muted); }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  white-space: nowrap;
}
.table td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--bg); }

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.filters .to { color: var(--muted); font-size: 13px; }

.mcard { max-width: 100%; }
.mcard-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.inp.name { font-size: 16px; font-weight: 600; flex: 1; min-width: 160px; }
.inp.code { width: 100px; }

.login { max-width: 420px; margin: 40px auto; }
.prose { line-height: 1.75; }
.prose h3 { font-size: 15px; margin: 18px 0 6px; }
.prose ol, .prose ul { padding-left: 20px; margin: 0 0 6px; }
.prose li { margin-bottom: 4px; }

/* ---------------------------------------------------------------- 登录页 */

.login-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 520px at 12% 8%, #dbeafe 0%, rgba(219, 234, 254, 0) 62%),
    radial-gradient(760px 520px at 88% 18%, #d9f0ee 0%, rgba(217, 240, 238, 0) 58%),
    radial-gradient(700px 420px at 70% 95%, #e8eef6 0%, rgba(232, 238, 246, 0) 60%),
    linear-gradient(160deg, #eef2f7 0%, #f8fafc 45%, #e9eef5 100%);
}

.login-card {
  width: 100%;
  max-width: 470px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .14), 0 2px 6px rgba(15, 23, 42, .06);
  padding: 28px 34px 24px;
}

.login-tabs {
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.login-tabs .on {
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  position: relative;
}
.login-tabs .on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -13px;
  height: 3px;
  border-radius: 2px;
  background: #0f766e;
}
.login-tabs .off { font-size: 15px; color: #9ca3af; cursor: not-allowed; }

.lg-row {
  display: flex;
  align-items: center;
  background: #f1f4f9;
  border-radius: 6px;
  margin-bottom: 14px;
  overflow: hidden;
}
.lg-row label {
  flex: 0 0 auto;
  width: 84px;
  text-align: center;
  font-size: 14px;
  color: #4b5563;
  padding: 12px 0;
}
.lg-row input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: #f7f9fc;
  padding: 13px 14px;
  font-size: 15px;
}
.lg-row input:focus {
  outline: 2px solid #0f766e;
  outline-offset: -2px;
  background: #fff;
}
.cap-img {
  flex: 0 0 auto;
  width: 96px;
  height: 34px;
  margin: 0 6px 0 4px;
  border-radius: 4px;
  cursor: pointer;
  background: #eef2f7;
  object-fit: cover;
}

.lg-actions { margin: 18px 0 12px; }
.lg-btn {
  background: #0f9d8a;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 11px 36px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
}
.lg-btn:hover { background: #0c8574; }

.lg-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 0;
}
.login-card .flash { margin-bottom: 16px; }

.who-line {
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 14px;
}
.who-line span { margin-left: 10px; }

@media (max-width: 480px) {
  .login-card { padding: 22px 18px 18px; }
  .lg-row label { width: 68px; font-size: 13px; }
  .cap-img { width: 78px; height: 30px; }
}

/* ---------------------------------------------------------------- 窄屏 */

@media (max-width: 760px) {
  .top-in { gap: 10px; }
  .top nav { order: 3; width: 100%; overflow-x: auto; flex: none; }
  .who { margin-left: auto; }
  .wrap { padding: 14px 10px 40px; }
  .h1 { font-size: 19px; }
  .row2, .row3, .row4 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .bk-item { grid-template-columns: 1fr; gap: 6px; }
  .bk-st { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .cell { width: 36px; height: 50px; }
  .dtxt { min-width: 104px; font-size: 15px; }
}

@media (max-width: 420px) {
  .row2, .row3, .row4 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- 日期选择器 */

/* 自己画的日历弹层：只有「取消 / 确定」，没有原生控件的「清除」。
   外观跟安卓原生那个接近，但按钮文字和留白都归我们管。 */

body.dp-lock { overflow: hidden; }

.dp-mask {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(15, 18, 25, .45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.dp-mask[hidden] { display: none; }

.dp-card {
  width: 100%;
  max-width: 358px;
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .3);
  animation: dp-in .16s ease-out;
}
@keyframes dp-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.dp-head {
  padding: 15px 20px 17px;
  color: #fff;
  background: linear-gradient(155deg, #6b7bb5, #4c5a8c);
}
.dp-yr { font-size: 13px; opacity: .85; min-height: 18px; }
.dp-big { font-size: 24px; font-weight: 600; margin-top: 2px; letter-spacing: 1px; }

.dp-body { padding: 6px 12px 2px; }

.dp-mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 10px;
}
.dp-mlabel { font-size: 14px; font-weight: 600; }
.dp-nav {
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: none; color: var(--muted);
  font-size: 21px; line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.dp-nav:active { background: var(--brand-soft); }

.dp-wk, .dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.dp-wk {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding-bottom: 4px;
}
.dp-grid { padding-bottom: 8px; }

.dp-day {
  width: 38px; height: 38px;
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.dp-day:active { background: var(--brand-soft); }
.dp-day.on { background: #4c5a8c; color: #fff; font-weight: 600; }
.dp-day.td { box-shadow: inset 0 0 0 1.5px #4c5a8c; color: #4c5a8c; }
.dp-day.td.on { color: #fff; }
.dp-day.off { color: var(--muted); opacity: .32; cursor: default; }
.dp-day.off.on { opacity: 1; color: #fff; }   /* 当前值正好落在禁选区，也别看着像坏了 */
.dp-day.blank { visibility: hidden; pointer-events: none; }

.dp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 12px 12px;
}
.dp-foot button {
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 15px;
  padding: 10px 16px;
  cursor: pointer;
}
.dp-cancel { color: var(--muted); }
.dp-ok { color: var(--brand); font-weight: 600; }
.dp-cancel:active, .dp-ok:active { background: var(--brand-soft); }

/* 被接管之后的日期框：右边挂个小日历图标，看着还能点 */
input.dp-input {
  padding-right: 30px;
  cursor: pointer;
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 15px 15px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round'><rect x='3' y='5' width='18' height='16' rx='2'/><path d='M8 3v4M16 3v4M3 11h18'/></svg>");
}

@media (max-width: 420px) {
  .dp-mask { padding: 12px; align-items: flex-end; padding-bottom: 16px; }
  .dp-card { max-width: none; }
  .dp-big { font-size: 22px; }
}
