.dorm-card {
  margin: 0 0 14px;
  color: #3d3a46;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #eadfea;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(87, 65, 90, .08);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.7;
}
.dorm-card > summary {
  position: relative;
  padding: 13px 46px 13px 17px;
  color: #514557;
  background: linear-gradient(135deg, #fff7fb, #f5f1ff);
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  transition: background .2s ease;
}
.dorm-card > summary:hover {
  background: linear-gradient(135deg, #fff0f7, #eee9ff);
}
.dorm-card > summary::-webkit-details-marker {
  display: none;
}
.dorm-card > summary::after {
  content: "＋";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 24px;
  height: 24px;
  color: #9b7ca2;
  background: rgba(255, 255, 255, .72);
  border-radius: 50%;
  line-height: 23px;
  text-align: center;
  transform: translateY(-50%);
  transition: transform .2s ease;
}
.dorm-card[open] > summary {
  border-bottom: 1px solid #eadfea;
}
.dorm-card[open] > summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}
.dorm-card > summary sub {
  margin-left: 4px;
  color: #9b8d9f;
  font-size: 11px;
  font-weight: 500;
}
xbd,
xin,
x-list,
x-p,
x-head,
x-meta,
x-note,
x-le,
x-table,
x-tr,
xc {
  box-sizing: border-box;
}
xbd {
  display: block;
  padding: 15px;
}
xin,
x-list {
  display: block;
  overflow: hidden;
  background: #fbfafc;
  border: 1px solid #eee7ef;
  border-radius: 11px;
}
xr,
xi {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px dashed #eee7ef;
}
xr:last-child,
xi:last-child {
  border-bottom: 0;
}
xr::before,
xi::before {
  content: attr(k);
  color: #766579;
  font-weight: 700;
}
x-p {
  display: block;
  margin-bottom: 17px;
  padding: 13px;
  background: linear-gradient(145deg, #fff, #fcfafc);
  border: 1px solid #eee5ee;
  border-left: 4px solid #c89fc7;
  border-radius: 12px;
}
x-p:last-child {
  margin-bottom: 0;
}
x-p[theme="pink"] {
  border-left-color: #e69ab4;
}
x-p[theme="green"] {
  border-left-color: #88b9a0;
}
x-p[theme="purple"] {
  border-left-color: #a68dcc;
}
x-p[theme="orange"] {
  border-left-color: #e7a56f;
}
x-head {
  display: block;
  margin: 17px 0 8px;
  padding-left: 9px;
  color: #5b4d61;
  border-left: 3px solid #bd9abe;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
}
x-p > x-head {
  margin-top: 0;
  font-size: 16px;
}
x-meta {
  display: block;
  margin: 8px 0 11px;
  padding: 7px 10px;
  color: #705f74;
  background: #f8f2f8;
  border-radius: 8px;
  font-size: 13px;
}
x-tag {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 7px;
  color: #755a78;
  background: #eee2f0;
  border-radius: 999px;
  font-size: 12px;
}
x-note {
  display: block;
  margin: 8px 0;
  padding: 9px 11px;
  color: #665769;
  background: #fff8ec;
  border-left: 3px solid #e9bb73;
  border-radius: 4px 9px 9px 4px;
}
x-le {
  display: block;
  padding: 8px 11px;
  background: #fbfafc;
  border: 1px solid #eee7ef;
  border-radius: 10px;
}
x-le {
  display: block;
  padding: 5px 0;
  border-bottom: 1px dashed #eee7ef;
}
x-le:last-child {
  border-bottom: 0;
}
x-table {
  display: block;
  width: 100%;
  margin: 8px 0 13px;
  overflow-x: auto;
  border: 1px solid #e8e0e9;
  border-radius: 10px;
}
x-tr {
  display: grid;
  border-bottom: 1px solid #eee7ef;
}
x-tr:last-child {
  border-bottom: 0;
}
x-table[cols="4"] x-tr {
  grid-template-columns: .75fr 1fr 1.4fr 1.4fr;
}
x-table[cols="5"] x-tr {
  grid-template-columns: .65fr repeat(4, 1fr);
}
x-table[cols="4"][memory] x-tr {
  grid-template-columns: 45px 105px 95px minmax(280px, 1fr);
}
xc {
  display: block;
  min-width: 0;
  padding: 8px 9px;
  border-right: 1px solid #eee7ef;
  overflow-wrap: anywhere;
}
xc:last-child {
  border-right: 0;
}
x-tr[head] {
  color: #5f5163;
  background: #f6f0f7;
  font-weight: 700;
}
x-tr:not([head]):nth-child(odd) {
  background: #fdfbfd;
}
x-strong {
  color: #5f4c64;
  font-weight: 700;
}
x-empty {
  color: #aaa0ad;
  font-style: italic;
}
@media (max-width: 620px) {
  .dorm-card {
    border-radius: 12px;
    font-size: 13px;
  }
  .dorm-card > summary {
    padding: 12px 43px 12px 13px;
    font-size: 15px;
  }
  xbd {
    padding: 11px;
  }
  xr,
  xi {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  xr::before,
  xi::before {
    color: #8d6e8e;
  }
  x-p {
    padding: 10px;
  }
}