:root {
  --ink: #261a10;
  --muted: #6d604d;
  --paper: #f8efd9;
  --paper-deep: #dfc591;
  --panel: rgba(255, 252, 243, 0.96);
  --panel-strong: rgba(255, 249, 232, 0.98);
  --line: rgba(126, 84, 23, 0.28);
  --gold: #ad7624;
  --gold-soft: #68400f;
  --red: #8e2f25;
  --red-deep: #5e1813;
  --blue: #446d7d;
  --green: #526d56;
  --shadow: 0 24px 64px rgba(76, 50, 14, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(143, 96, 27, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 96, 27, 0.032) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(255, 250, 230, 0.98), transparent 36%),
    radial-gradient(circle at 84% 18%, rgba(208, 224, 220, 0.42), transparent 31%),
    linear-gradient(145deg, #fff8ea, #ecd8ab 56%, #fbefd4);
  background-size: 36px 36px, 36px 36px, auto, auto, auto;
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='150' viewBox='0 0 260 150'%3E%3Cg fill='none' stroke='%23a97422' stroke-opacity='.38' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M18 92c21 0 21-23 42-23 20 0 22 19 43 19h56c18 0 20-18 39-18 20 0 25 20 44 20'/%3E%3Cpath d='M49 102h68c14 0 16 15 31 15h46'/%3E%3Cpath d='M64 68c8-18 31-20 42-4M176 70c8-14 28-17 38-2'/%3E%3Cpath d='M24 44h58c13 0 15-13 29-13 15 0 18 13 34 13h72'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 300px 174px;
}

body::after {
  content: "";
  position: fixed;
  inset: 14px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(116, 76, 19, 0.18);
  box-shadow: inset 0 0 0 5px rgba(255, 250, 235, 0.28);
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="date"],
input[type="time"],
input[type="text"],
input[type="password"] {
  min-height: 44px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 376px minmax(0, 1fr);
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 30px 26px;
  border-right: 1px solid rgba(116, 76, 19, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(235, 215, 173, 0.92)),
    repeating-linear-gradient(90deg, rgba(126, 84, 23, 0.055) 0 1px, transparent 1px 24px);
  overflow: auto;
  box-shadow: 14px 0 38px rgba(96, 64, 18, 0.08);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(126, 84, 23, 0.2);
}

.seal {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff6d8;
  background:
    linear-gradient(145deg, var(--red-deep), #aa3b2d),
    var(--red);
  border: 2px solid rgba(246, 217, 145, 0.9);
  box-shadow:
    0 12px 26px rgba(105, 37, 25, 0.22),
    inset 0 0 0 4px rgba(255, 236, 185, 0.09);
  font-size: 28px;
  font-weight: 900;
}

.brand h1 {
  margin: 0;
  font-size: 29px;
  letter-spacing: 0;
  font-family: "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
}

.brand p,
.mystic-plate p,
.access-panel p,
.note p,
.mini,
.image-card p,
.report-empty p,
.source {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.mystic-plate {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 8px 0 24px;
  padding: 19px 13px 21px;
  border: 1px solid rgba(126, 84, 23, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 254, 247, 0.96), rgba(235, 213, 166, 0.56)),
    rgba(255, 255, 255, 0.42);
  overflow: hidden;
  box-shadow:
    0 14px 34px rgba(115, 88, 42, 0.09),
    inset 0 0 0 5px rgba(255, 250, 235, 0.28);
}

.mystic-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='104' viewBox='0 0 180 104'%3E%3Cg fill='none' stroke='%23a97422' stroke-opacity='.5' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M8 58c16 0 16-17 32-17 15 0 17 14 33 14h42c14 0 15-13 29-13s18 14 29 14'/%3E%3Cpath d='M25 71h48c11 0 12 10 24 10h43'/%3E%3Cpath d='M42 40c7-12 23-13 31-2M120 42c7-10 20-11 28-1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 180px 104px;
}

.mystic-plate > * {
  position: relative;
  z-index: 1;
}

.plate-title {
  color: #62400f;
  font: 900 16px/1 "STKaiti", "KaiTi", "Songti SC", serif;
  letter-spacing: 0.08em;
}

.bagua-ring {
  position: relative;
  width: 258px;
  height: 258px;
  border: 1px solid rgba(126, 84, 23, 0.58);
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 22.5deg, rgba(166, 109, 29, 0.12) 0 1.2deg, transparent 1.2deg 45deg),
    radial-gradient(circle, rgba(255, 254, 245, 0.96), rgba(235, 211, 152, 0.34) 64%, rgba(166, 109, 29, 0.13));
  box-shadow:
    inset 0 0 46px rgba(126, 84, 23, 0.15),
    0 14px 38px rgba(96, 58, 12, 0.13);
}

.bagua-ring::before {
  content: "";
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(170, 116, 31, 0.28);
  border-radius: 50%;
}

.bagua-ring::after {
  content: "";
  position: absolute;
  inset: 54px;
  border: 1px solid rgba(170, 116, 31, 0.18);
  border-radius: 50%;
}

.tri {
  position: absolute;
  width: 50px;
  height: 55px;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  color: #51350f;
  border: 1px solid rgba(170, 116, 31, 0.32);
  background: rgba(255, 253, 244, 0.86);
  font-weight: 900;
  box-shadow:
    inset 0 0 18px rgba(179, 127, 39, 0.08),
    0 8px 18px rgba(119, 78, 18, 0.08);
}

.tri b {
  font-size: 25px;
  line-height: 1;
}

.tri small {
  display: block;
  margin-top: -4px;
  font-size: 14px;
  line-height: 1;
}

.li { left: 104px; top: 6px; }
.kun { right: 31px; top: 33px; }
.dui { right: 8px; top: 101px; }
.qian { right: 31px; bottom: 33px; }
.kan { left: 104px; bottom: 6px; }
.gen { left: 31px; bottom: 33px; }
.zhen { left: 8px; top: 101px; }
.xun { left: 31px; top: 33px; }

.taiji {
  position: absolute;
  inset: 72px;
  border-radius: 50%;
  border: 3px solid #c79335;
  background: #faf0d0;
  box-shadow:
    0 10px 25px rgba(91, 56, 16, 0.19),
    0 0 0 8px rgba(255, 246, 217, 0.46);
  overflow: hidden;
  z-index: 2;
}

.taiji-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.taiji-dark,
.taiji-dark-eye {
  fill: #181612;
}

.taiji-light,
.taiji-light-eye {
  fill: #fff0cf;
}

.taiji-dark-eye,
.taiji-light-eye {
  stroke: #d5a347;
  stroke-width: 1.7;
}

.access-panel,
.note {
  padding: 17px;
  margin-bottom: 18px;
  border: 1px solid rgba(126, 84, 23, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.9), rgba(249, 238, 211, 0.72));
  box-shadow: 0 10px 26px rgba(92, 60, 15, 0.06);
}

.access-panel h2,
.note h2 {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 18px;
  font-family: "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
}

.access-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 12px 0 6px;
}

.nav {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 12px 14px;
  border: 1px solid rgba(126, 84, 23, 0.14);
  background: rgba(255, 253, 246, 0.58);
  font-weight: 800;
}

.nav a:hover {
  border-color: rgba(126, 84, 23, 0.3);
  color: var(--gold-soft);
  background: rgba(255, 250, 235, 0.82);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(500px, 0.95fr) minmax(460px, 1.05fr);
  gap: 30px;
  padding: 32px;
  align-items: start;
}

.workspace.locked {
  opacity: 0.45;
  pointer-events: none;
}

.report-panel,
.image-card {
  min-width: 0;
  background: var(--panel);
  border: 1px solid rgba(126, 84, 23, 0.24);
  box-shadow: var(--shadow);
  border-radius: 2px;
}

.input-panel {
  position: relative;
  min-width: 0;
  padding: 24px 28px 20px;
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.9), rgba(250, 240, 215, 0.66));
  border: 1px solid rgba(126, 84, 23, 0.22);
  border-radius: 2px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.input-panel::before,
.report-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(126, 84, 23, 0.12);
}

.form-title {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 0 0 18px;
  border-bottom: 2px solid rgba(126, 84, 23, 0.25);
}

.form-title p {
  margin: 0;
  color: var(--red);
  font-weight: 900;
}

.form-title h2 {
  margin: 0;
  color: #2b1c10;
  font: 900 32px/1.15 "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
}

.band {
  position: relative;
  z-index: 1;
  padding: 26px 0 28px;
  border-bottom: 1px solid rgba(126, 84, 23, 0.2);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 3px 0 0;
  color: #2e2213;
  font: 900 27px/1.2 "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
}

.eyebrow {
  margin: 0;
  color: var(--red);
  font: 900 13px/1 "PingFang SC", sans-serif;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 10px;
  color: #65430e;
  background: rgba(255, 249, 231, 0.76);
  border: 1px solid rgba(126, 84, 23, 0.28);
  font-size: 13px;
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  color: #4a3718;
  font-weight: 800;
}

input,
select {
  width: 100%;
  border: 1px solid rgba(126, 84, 23, 0.28);
  background: rgba(255, 254, 248, 0.94);
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  border-radius: 2px;
}

input::placeholder {
  color: rgba(90, 72, 42, 0.48);
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(173, 118, 36, 0.12);
}

button,
.upload-button {
  border: 1px solid rgba(126, 84, 23, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 252, 240, 0.98), rgba(232, 207, 151, 0.42));
  color: #57360e;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
  border-radius: 2px;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

button:hover,
.upload-button:hover {
  border-color: var(--gold-soft);
  box-shadow: 0 8px 18px rgba(96, 58, 12, 0.08);
}

button.primary {
  background:
    linear-gradient(180deg, #a83e2d, #742117);
  border-color: rgba(116, 33, 23, 0.75);
  color: #fff8df;
  box-shadow: 0 14px 28px rgba(110, 33, 22, 0.18);
}

.upload-button input {
  display: none;
}

.image-grid {
  display: grid;
  gap: 20px;
}

.image-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 252, 241, 0.98), rgba(248, 237, 208, 0.72));
}

.image-card-head,
.card-actions,
.actions,
.report-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.image-card-head {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(126, 84, 23, 0.16);
}

.image-card h3 {
  margin: 0 0 5px;
  color: #2f2013;
  font: 900 23px/1.2 "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
}

.mark-stage {
  position: relative;
  width: 100%;
  min-height: 300px;
  margin: 16px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(126, 84, 23, 0.28);
  border-radius: 2px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 246, 216, 0.74), transparent 38%),
    linear-gradient(135deg, rgba(255, 253, 246, 0.94), rgba(232, 211, 164, 0.44));
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.24),
    inset 0 0 0 9px rgba(126, 84, 23, 0.08);
}

.mark-stage::before,
.mark-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.mark-stage::before {
  width: 18px;
  height: 18px;
  left: 12%;
  top: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff9d7 0 20%, #f4c65d 21% 48%, rgba(244, 198, 93, 0.24) 49% 72%, transparent 73%);
  box-shadow:
    0 0 18px rgba(245, 198, 93, 0.88),
    0 0 46px rgba(245, 198, 93, 0.42);
}

.mark-stage::after {
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 35%, rgba(255, 233, 157, 0.06) 44%, rgba(255, 233, 157, 0.23) 50%, rgba(255, 233, 157, 0.06) 56%, transparent 66%),
    radial-gradient(circle at var(--scan-x, 42%) var(--scan-y, 42%), rgba(255, 224, 127, 0.26), transparent 16%);
  transform: translateX(-58%);
}

.mark-stage.is-reading::before {
  opacity: 1;
  animation: reading-dot 3.2s ease-in-out infinite;
}

.mark-stage.is-reading::after {
  opacity: 1;
  animation: reading-sweep 2.6s ease-in-out infinite;
}

#palmStage.is-reading::before {
  animation-name: palm-reading-dot;
}

#faceStage.is-reading::before {
  animation-name: face-reading-dot;
}

.mark-stage img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  display: block;
}

.mark-stage svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes palm-reading-dot {
  0% { left: 16%; top: 42%; transform: scale(0.82); }
  18% { left: 27%; top: 27%; transform: scale(1); }
  36% { left: 48%; top: 39%; transform: scale(0.9); }
  54% { left: 70%; top: 31%; transform: scale(1.05); }
  72% { left: 52%; top: 64%; transform: scale(0.94); }
  100% { left: 18%; top: 76%; transform: scale(0.86); }
}

@keyframes face-reading-dot {
  0% { left: 47%; top: 20%; transform: scale(0.86); }
  20% { left: 32%; top: 36%; transform: scale(1); }
  40% { left: 63%; top: 36%; transform: scale(0.95); }
  60% { left: 50%; top: 50%; transform: scale(1.08); }
  80% { left: 46%; top: 66%; transform: scale(0.92); }
  100% { left: 50%; top: 80%; transform: scale(0.86); }
}

@keyframes reading-sweep {
  0% { transform: translateX(-58%); }
  50% { transform: translateX(58%); }
  100% { transform: translateX(-58%); }
}

.empty-image {
  color: rgba(89, 70, 39, 0.48);
  font-size: 22px;
  font-weight: 800;
}

.mark-box {
  fill: rgba(214, 169, 79, 0.09);
  stroke: #f3d58b;
  stroke-width: 0.38;
}

.mark-candidate {
  fill: rgba(214, 169, 79, 0.035);
  stroke-dasharray: 1.2 1;
  opacity: 0.72;
}

.mark-line {
  fill: none;
  stroke: #ffe28a;
  stroke-width: 0.48;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.9));
}

.mark-label {
  fill: #fff7dd;
  font: 2.8px "PingFang SC", sans-serif;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.75);
  stroke-width: 0.5px;
}

.photo-analysis {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(126, 84, 23, 0.24);
  border-left: 4px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0.94), rgba(255, 249, 235, 0.9));
  border-radius: 2px;
}

.photo-analysis h4 {
  margin: 0 0 10px;
  color: #4b320f;
  font: 900 19px/1.2 "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
}

.photo-analysis p {
  margin: 9px 0 0;
  color: var(--ink);
  line-height: 1.82;
}

.raw-analysis p {
  margin: 9px 0;
  line-height: 1.78;
}

.photo-analysis ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.7;
}

.correction-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(126, 84, 23, 0.2);
  background: rgba(255, 253, 246, 0.62);
  border-radius: 2px;
}

.correction-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 10px;
}

.correction-head strong {
  color: #2f2315;
}

.correction-head span {
  color: var(--muted);
  font-size: 13px;
}

.correction-panel textarea {
  width: 100%;
  min-height: 78px;
  border: 1px solid rgba(126, 84, 23, 0.24);
  background: rgba(255, 254, 249, 0.9);
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
  font: inherit;
  resize: vertical;
  border-radius: 2px;
}

.correction-panel button {
  margin-top: 8px;
}

.actions {
  position: sticky;
  z-index: 1;
  bottom: 0;
  flex-wrap: wrap;
  padding: 20px 0 0;
  background: linear-gradient(180deg, rgba(251, 244, 228, 0), rgba(251, 244, 228, 0.96) 35%);
}

.report-panel {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 254, 249, 0.96), rgba(255, 249, 235, 0.93)),
    var(--panel);
}

.report-panel > * {
  position: relative;
  z-index: 1;
}

.report-empty {
  min-height: 360px;
  display: grid;
  align-content: center;
  padding: 28px;
  border: 1px solid rgba(126, 84, 23, 0.16);
  background: rgba(255, 253, 246, 0.62);
  border-radius: 2px;
}

.report-empty h2,
.report-title h2 {
  margin: 0 0 9px;
  color: #2e2213;
  font: 900 31px/1.2 "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
}

.report-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.score {
  min-width: 94px;
  padding: 11px 12px;
  border: 1px solid rgba(126, 84, 23, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 248, 226, 0.94), rgba(173, 118, 36, 0.13));
  text-align: center;
  border-radius: 2px;
}

.score strong {
  display: block;
  color: var(--gold-soft);
  font-size: 28px;
}

.report-section {
  padding: 21px 0;
  border-top: 1px solid rgba(126, 84, 23, 0.2);
}

.report-section h3 {
  margin: 0 0 12px;
  color: #65430e;
  font: 900 21px/1.2 "STKaiti", "KaiTi", "Songti SC", "PingFang SC", serif;
}

.report-section ul {
  margin: 0;
  padding-left: 20px;
}

.report-section li {
  margin: 8px 0;
  line-height: 1.82;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  padding: 14px;
  border: 1px solid rgba(126, 84, 23, 0.2);
  background: rgba(255, 253, 246, 0.66);
  border-radius: 2px;
}

.feature-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.feature-title strong {
  color: #2f2315;
  font-size: 18px;
}

.feature-title span,
.feature-evidence {
  color: var(--muted);
  font-size: 13px;
}

.feature-item p {
  margin: 7px 0 0;
  line-height: 1.72;
}

.feature-evidence {
  padding-top: 6px;
  border-top: 1px solid rgba(170, 116, 31, 0.14);
}

.narrative-report {
  display: grid;
  gap: 16px;
}

.narrative-section {
  padding: 2px 0 10px;
}

.narrative-section h4 {
  margin: 0 0 8px;
  color: #2f2315;
  font-size: 18px;
}

.narrative-section p {
  margin: 7px 0;
  line-height: 1.85;
}

.pillar-row,
.pill-row,
.element-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pillar,
.pill {
  border: 1px solid rgba(126, 84, 23, 0.24);
  background: rgba(255, 253, 246, 0.72);
  border-radius: 2px;
}

.pillar {
  min-width: 88px;
  padding: 10px;
  text-align: center;
}

.pillar span,
.element label {
  display: block;
  color: var(--muted);
  font: 700 12px "PingFang SC", sans-serif;
}

.pillar strong {
  display: block;
  margin-top: 4px;
  color: #2f2315;
  font-size: 23px;
}

.pill {
  padding: 6px 9px;
  color: var(--gold-soft);
  font-size: 13px;
}

.element {
  flex: 1 1 74px;
  min-width: 74px;
}

.bar {
  height: 8px;
  margin-top: 6px;
  background: rgba(121, 88, 35, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--blue));
}

.source {
  padding: 12px;
  border-left: 3px solid var(--gold);
  background: rgba(173, 118, 36, 0.08);
  border-radius: 0 2px 2px 0;
}

.error {
  color: #b53a2b;
}

@media (max-width: 1180px) {
  .app-shell,
  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .report-panel {
    position: static;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .workspace,
  .sidebar {
    padding: 16px;
  }

  .input-panel,
  .report-panel {
    padding: 16px;
  }

  .form-title {
    flex-direction: column;
    align-items: start;
  }

  .bagua-ring {
    width: 232px;
    height: 232px;
  }

  .li { left: 91px; top: 5px; }
  .kun { right: 26px; top: 29px; }
  .dui { right: 6px; top: 89px; }
  .qian { right: 26px; bottom: 29px; }
  .kan { left: 91px; bottom: 5px; }
  .gen { left: 26px; bottom: 29px; }
  .zhen { left: 6px; top: 89px; }
  .xun { left: 26px; top: 29px; }

  .taiji {
    inset: 64px;
  }

  .grid.two,
  .image-card-head,
  .card-actions,
  .report-title {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .access-form {
    grid-template-columns: 1fr;
  }

  .mark-stage {
    min-height: 240px;
  }
}
