.mobile-record-row {
  display:flex;
  flex-direction:column;
  align-items:start;
  gap:8px;
  height:auto !important;
  min-height:26px;
  overflow:visible !important;
  flex-shrink:0;
}
.mobile-record-row[data-record-state="Empty"] {opacity:.5}
.mobile-record-row[data-name="任意记录"] {width:100%;min-height:24px}
.mobile-record-attributes {
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:start;
  min-height:26px;
  width:100%;
  height:auto !important;
}
.mobile-record-attributes[role="button"] {cursor:text}
.mobile-record-direction {
  flex:0 0 32px;
  width:32px;
  text-align:start;
  line-height:1.5;
}
.mobile-record-rating,.mobile-record-room {
  height:26px;
  display:inline-flex;
  align-items:center;
  flex:none;
  padding:2px 8px;
  border-radius:999px;
  font-family:"Source Han Sans SC",sans-serif;
  font-weight:350;
  font-size:14px;
  line-height:1.6;
}
.mobile-record-rating[data-rating="凶"] {background:var(--dark);color:var(--white);border-color:transparent}
.mobile-record-rating[data-rating="凶"] p {color:var(--white)}
.mobile-record-rating[data-rating="吉"] {background:var(--white);color:var(--dark)}
.mobile-record-rating[data-rating="吉"] p {color:var(--dark)}
.mobile-record-room[data-name="小胶囊-屋"] {
  background:var(--input\/btn-solid-fill,#f8f7f2);
  border:1px solid transparent;
  box-shadow:inset 0 0 0 1px var(--input\/btn-solid-border,#859697);
  color:var(--input\/btn-solid-text,#425d5f);
  white-space:nowrap;
}
.mobile-record-room[data-name="小圆钮-屋hollow"] {
  justify-content:center;
  width:26px;
  padding:0;
  border:1px dashed var(--input\/btn-hollow-border,#859697);
  background:var(--input\/btn-hollow-fill,#f8f7f2);
  color:var(--input\/btn-hollow-text,#425d5f);
}
.mobile-record-body {
  box-sizing:border-box;
  width:100%;
  min-height:24px;
  padding-inline-start:40px;
  outline:0;
  color:var(--text-primary,#373737);
  font:400 16px/1.5 "Noto Sans SC",sans-serif;
  text-align:start;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.mobile-record-body > :is(div,p,figure) {margin:8px 0 0}
.mobile-record-body > :first-child {margin-top:0}
.mobile-record-row[data-name="任意记录"] > .mobile-record-body {padding-inline-start:0}
.mobile-record-body[hidden],.mobile-record-room[hidden],.mobile-record-pinned[hidden] {display:none}
.mobile-record-prop {
  display:inline-block;
  box-sizing:border-box;
  height:24px;
  vertical-align:top;
  padding:0 5px;
  border-radius:6px;
  background:var(--white,white);
  box-shadow:inset 0 0 0 1px var(--light,#d9d9d9);
  font:350 16px/1.5 "Source Han Sans SC",sans-serif;
  color:var(--text-primary);
  white-space:nowrap;
}
.mobile-record-photo {display:block;width:300px;height:300px;max-width:100%}
.mobile-record-photo img {display:block;width:100%;height:100%;object-fit:cover}
.mobile-free-divider {position:relative;flex:none;width:100%;height:0}
.mobile-free-divider::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:var(--divider-light);
}
.mobile-record-pinned {
  position:absolute;
  z-index:3;
  height:0;
  pointer-events:none;
}
.mobile-record-pinned[data-record-pinned-line]::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:var(--record-pinned-color,var(--divider-light));
}
.mobile-record-pinned > p {
  position:absolute;
  left:0;
  top:var(--record-title-top,12px);
}
.mobile-record-key {position:absolute;background:transparent;cursor:pointer}
.mobile-record-key:focus-visible {outline:2px solid var(--border-brand)}
.mobile-direction-search {
  position:absolute;
  inset:0;
  width:100%;
  padding:0 8px;
  border:0;
  outline:0;
  color:var(--text-primary);
  background:transparent;
}
.mobile-record-direction-options {
  position:absolute;
  inset:0 auto 0 88px;
  width:231px;
  overflow:auto hidden;
  scrollbar-width:none;
}
.mobile-record-direction-list {
  display:flex;
  align-items:center;
  width:max-content;
  min-width:100%;
  height:100%;
  padding-inline:40px 4px;
}
.mobile-record-direction-list > button {
  height:30px;
  flex:1 0 32px;
  min-width:32px;
  padding:0 4px;
  text-align:center;
  border-inline-end:1px solid var(--divider-light);
  font:500 16px/1.5 "Source Han Sans SC",sans-serif;
}
.mobile-record-direction-list > button:last-child {border-inline-end:0}
.mobile-record-direction-list > span {margin:auto;font-size:14px;color:var(--text-secondary)}
[data-record-image-gesture] {touch-action:none;overflow:hidden;cursor:grab}
.mobile-photo-dialog {
  --photo-height:222px;
  position:fixed;
  inset:clamp(12px,var(--photo-top),max(12px,100dvh - var(--photo-height) - 12px)) 0 auto;
  box-sizing:border-box;
  width:min(330px,calc(100vw - 24px));
  max-height:calc(100dvh - 24px);
  margin:0 auto;
  padding:0;
  border:2px solid var(--modal\/toast-hint);
  border-radius:12px;
  background:var(--surface\/paper);
  box-shadow:2px 2px 6px rgb(55 55 55 / .25);
  color:var(--text-primary);
}
.mobile-photo-dialog[data-crop] {--photo-height:514px}
.mobile-photo-dialog::backdrop {background:rgb(55 55 55 / .2)}
.mobile-photo-panel {display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px}
.mobile-photo-panel > p {
  margin:0;
  min-height:30px;
  font:500 20px/30px "Source Han Sans SC",sans-serif;
  color:var(--modal\/toast-hint);
  text-align:center;
}
.mobile-photo-panel > p:focus {outline:none}
.mobile-photo-panel canvas {
  box-sizing:border-box;
  width:min(302px,calc(100% + 8px));
  max-width:none;
  aspect-ratio:1;
  border:1px solid var(--input\/btn-secondary-border);
  touch-action:none;
}
.mobile-photo-panel input[type="range"] {
  appearance:none;
  width:100%;
  height:18px;
  margin:0;
  padding:0;
  background:transparent url("assets/photo-crop-track.svg") center / 100% 2px no-repeat;
  cursor:pointer;
}
.mobile-photo-panel input[type="range"]::-webkit-slider-thumb {
  appearance:none;
  width:18px;
  height:18px;
  background:url("assets/photo-crop-thumb.svg") center no-repeat;
}
.mobile-photo-panel input[type="range"]::-moz-range-thumb {
  width:18px;
  height:18px;
  border:0;
  background:url("assets/photo-crop-thumb.svg") center no-repeat;
}
.mobile-photo-actions {display:flex;gap:12px;width:100%}
.mobile-photo-panel button {
  display:grid;
  place-items:center;
  height:40px;
  padding:0 12px;
  border:0;
  border-radius:8px;
  font:500 18px/1 "Source Han Sans SC",sans-serif;
  color:var(--input\/btn-secondary-text);
  background:var(--input\/btn-secondary-fill);
  box-shadow:inset 0 0 0 1px var(--input\/btn-secondary-border);
}
.mobile-photo-panel > button {width:calc(100% + 4px);flex:none}
.mobile-photo-actions > button {flex:1;min-width:0}
.mobile-photo-panel .mobile-photo-primary {
  color:var(--input\/btn-primary-text);
  background:var(--input\/btn-primary-fill);
  box-shadow:inset 0 0 0 1px var(--input\/btn-primary-border);
}
.mobile-record-attributes {min-height:28px;overflow:visible}
.mobile-record-direction {height:24px;align-self:start;margin-top:1px}
.mobile-record-rating,.mobile-record-room {box-sizing:border-box;height:26px;min-height:26px;max-height:26px}
.mobile-record-rating[data-rating="吉"] {
  border-color:transparent;
  box-shadow:inset 0 0 0 1px var(--light,#d9d9d9);
}
.mobile-record-pinned {transform:translateY(-1px);z-index:0}
.mobile-record-pinned::before {
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:var(--record-pinned-color,var(--divider-light));
}
.mobile-record-direction-list {padding-inline-start:20px}
.mobile-room-caret {
  display:inline-block;
  width:12px;
  flex:none;
  height:24px;
  margin-inline-start:-8px;
  outline:0;
  caret-color:var(--text-primary,#373737);
}
.mobile-room-caret[hidden] {display:none}

.mobile-record-attributes-with-lane {padding-inline-start:40px}
.mobile-record-title-lane {
  position:absolute;
  inset:1px auto 1px 0;
  width:32px;
  pointer-events:none;
}
.mobile-record-title-lane > .mobile-record-direction {
  margin-top:0;
  position:sticky;
  top:13px;
}
.mobile-record-row[data-record-state="Empty"] .mobile-record-title-lane > .mobile-record-direction {
  position:static;
}

.mobile-direction-placeholder,.mobile-direction-search::placeholder {
  color:var(--text-secondary,#808080);
  opacity:1;
}

.mobile-record-gua-highlight {
  display:inline-block;
  height:24px;
  vertical-align:top;
  padding:0 4px;
  border-radius:6px;
  background:var(--brand-primary\/ivory-white,#f8f7f2);
  white-space:nowrap;
}

.mobile-unassigned-touch-input {
  position:absolute;
  inset:24px auto auto 0;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
  font-size:16px;
}

[data-name="快捷打字栏"] [data-round-state="Disabled"] {
  background-image:linear-gradient(rgb(217 217 217 / .5),rgb(217 217 217 / .5)),
    linear-gradient(var(--input\/btn-secondary-fill,white),var(--input\/btn-secondary-fill,white));
  cursor:default;
}
