[data-process-study] {
  --study-ground: #203c31;
  --study-yellow: #e9dc88;
  color: var(--ink, #24352e);
}
.study-tabs {
  display: flex;
  gap: clamp(15px, 3vw, 38px);
  border-bottom: 1px solid #a9b3a4;
}
.study-tab {
  position: relative;
  appearance: none;
  background: transparent;
  padding: 12px 0 13px;
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.83rem, 1.3vw, 1rem);
  color: #4e6054;
}
.study-tab[aria-selected="true"] {
  color: var(--ink);
}
.study-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 3px;
  background: currentColor;
}
.study-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.38fr);
  gap: clamp(18px, 4vw, 68px);
  align-items: center;
  padding-top: clamp(20px, 3vw, 38px);
}
.study-caption {
  min-width: 0;
}
.study-caption h3 {
  font-size: clamp(1.65rem, 3vw, 3.1rem);
  letter-spacing: -0.05em;
  line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}
.study-description {
  max-width: 38ch;
  line-height: 1.65;
  font-size: clamp(0.92rem, 1.25vw, 1.08rem);
  color: #465a4d;
}
.study-caption :lang(ko) {
  word-break: keep-all;
}
.study-board {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  min-height: clamp(260px, 23vw, 360px);
  padding: clamp(18px, 3vw, 44px);
  border-radius: 8px;
  color: #f6f3e9;
  background-color: var(--study-ground);
  background-image:
    linear-gradient(to right, #dcebd00c 1px, transparent 1px),
    linear-gradient(to bottom, #dcebd00c 1px, transparent 1px);
  background-size: 24px 24px;
}
.study-sheet {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(12px, 2vw, 24px);
  background: #f6f3e8;
  color: #24352e;
  box-shadow: 3px 5px 0 #0b251e;
  border-radius: 3px;
}
.study-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  padding-bottom: 12px;
  border-bottom: 1px solid #cbd0bf;
}
.study-status {
  font-size: 0.69rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.study-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #306348;
}
[data-process-study][data-stage="0"] .study-status::before {
  background: #b84d34;
}
.study-chart {
  padding-top: 14px;
}
.study-ticks {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #4c5e50;
  font:
    500 clamp(0.54rem, 1.1vw, 0.73rem)/1.3 ui-monospace,
    monospace;
}
.study-lane {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding-block: 3px;
  background: repeating-linear-gradient(
    to right,
    #c9d1c3 0 1px,
    transparent 1px 20%
  );
}
.study-bar {
  padding: 7px clamp(4px, 1vw, 12px);
  min-width: 0;
  border-left: 3px solid #334f40;
  display: flex;
  gap: 2px;
  flex-direction: column;
  line-height: 1.15;
}
.study-bar span {
  font-size: clamp(0.67rem, 1.25vw, 0.94rem);
  font-weight: 650;
}
.study-bar small,
.study-checks small,
.study-slot {
  font:
    500 clamp(0.55rem, 1.1vw, 0.77rem)/1.35 ui-monospace,
    monospace;
}
.study-bar-existing {
  background: #d3ddc9;
}
.study-bar-proposed {
  border-color: #95852f;
  background: var(--study-yellow);
}
[data-process-study][data-stage="0"] .study-bar-proposed {
  border-color: #a0432e;
  background: repeating-linear-gradient(135deg, #eab69f 0 4px, #f0c0ad 4px 8px);
}
.study-slots {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}
.study-slot-label {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: #4e6054;
}
.study-slot {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #849481;
  background: transparent;
  border-radius: 4px;
  font-size: 0.85rem;
}
.study-slot[aria-pressed="true"] {
  background: #243d32;
  color: #fff;
}
.study-checks {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
}
.study-checks li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #a7beb240;
  font-size: 0.75rem;
}
.study-checks li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--study-yellow);
}
.study-checks li:first-child::before {
  background: #ecac8e;
}
.study-checks small {
  margin-left: auto;
}
@media (max-width: 740px) {
  .study-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .study-caption h3 {
    margin-bottom: 8px;
  }
  .study-board {
    min-height: 220px;
  }
  .study-description {
    max-width: 56ch;
  }
}
@media (max-width: 390px) {
  .study-board {
    padding: 12px;
  }
  .study-sheet {
    padding: 10px;
  }
}
