.apx-sg {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f7f5f0;
  color: #1c2430;
  font-family: "Noto Sans KR", "Pretendard", sans-serif;
}

.apx-sg-guide {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f4f5f7;
}

.apx-sg-rows {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 16px 12px;
  background: #fff;
}

.apx-sg-shelf-kicker {
  margin: 0;
  color: #606060;
  font: 800 11px/1.2 "Noto Sans KR", sans-serif;
  letter-spacing: 0.08em;
}

.apx-sg-bay {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
}

.apx-sg-bay-name {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #3e4752;
  font: 700 12px/1 "Noto Sans KR", sans-serif;
  letter-spacing: -0.03em;
  white-space: nowrap;
  box-shadow: none;
}

.apx-sg-bay-name.is-yt,
.apx-sg-bay-name.is-ig {
  background: transparent;
  box-shadow: none;
  color: #3e4752;
}

.apx-sg-mark {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #7b8694;
}

.apx-sg-plank {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 8px;
  min-width: 0;
}

.apx-sg-book {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 6px 10px 6px 6px;
  border: 1px solid #e6e1d8;
  border-radius: 12px;
  background: #fff;
  color: #1c2430;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(28, 36, 48, 0.04);
}

.apx-sg-book.is-yt {
  background: #fff;
  color: #1c2430;
}

.apx-sg-book.is-ig {
  color: #1c2430;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #e7d3a4, #e7a090 46%, #b9a4d4) border-box;
  border: 1.5px solid transparent;
}

.apx-sg-book:hover { transform: translateY(-1px); }

.apx-sg-book.is-yt.is-on {
  background: #fff6f5;
  color: #1c2430;
  border-color: #e36a62;
  outline: none;
  box-shadow: 0 0 0 3px rgba(227, 106, 98, 0.16);
}

.apx-sg-book.is-ig.is-on {
  color: #1c2430;
  background:
    linear-gradient(#fffaf6, #fffaf6) padding-box,
    linear-gradient(120deg, #e2b15a, #d4786a 46%, #8d6bb8) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 3px rgba(212, 120, 106, 0.16);
}

.apx-sg-play,
.apx-sg-reel {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.apx-sg-play {
  display: grid;
  place-items: center;
  background: #ff0033;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.apx-sg-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}

.apx-sg-book.is-yt.is-on .apx-sg-play { background: #ff0033; }

.apx-sg-reel {
  background:
    radial-gradient(circle at 50% 50%, #fff 0 8px, transparent 9px),
    conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
  box-shadow: inset 0 0 0 2px #fff;
}

.apx-sg-book.is-ig.is-on .apx-sg-reel {
  box-shadow: inset 0 0 0 2px #fffaf6;
}

.apx-sg-book strong {
  display: block;
  font: 700 12px/1.3 "Noto Sans KR", sans-serif;
  letter-spacing: -0.03em;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.apx-sg-book small {
  display: block;
  margin-top: 1px;
  opacity: 0.68;
  font: 600 10px/1.25 "Noto Sans KR", sans-serif;
}

.apx-sg-rule {
  flex: 0 0 1px;
  height: 1px;
  margin: 0;
  border: 0;
  background: #e6e1d8;
  box-shadow: none;
}

.apx-sg-preview {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.apx-sg-preview-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid #ececec;
}

.apx-sg-preview-head > div { min-width: 0; }

.apx-sg-preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: max-content;
  height: auto;
  margin: 0 0 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #3e4752;
  font: 700 12px/1 "Noto Sans KR", sans-serif;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.apx-sg-preview-head h3 {
  margin: 0;
  color: #0f0f0f;
  font: 800 18px/1.3 "Noto Sans KR", sans-serif;
  letter-spacing: -0.04em;
}

.apx-sg-open {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid #d5cbbd;
  border-radius: 8px;
  background: #f6f1e8;
  color: #3c342c;
  font: 700 12px/1 "Noto Sans KR", sans-serif;
  text-decoration: none;
}

.apx-sg-open:hover { background: #efe6d8; }

.apx-sg-frame-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #faf7f2;
}

.apx-sg-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
  background: #fff;
}

.apx-sg-frame-note {
  margin: 0;
  padding: 8px 14px 10px;
  border-top: 1px solid #eee6da;
  color: #7d756c;
  font: 500 12px/1.45 "Noto Sans KR", sans-serif;
  text-align: right;
}

.sg-sheet {
  --sg-ink: #1c2418;
  --sg-muted: #667061;
  --sg-line: #e6eadf;
  --sg-line-strong: #d3d9cb;
  --sg-green: #1f6b45;
  --sg-hot: #d10f28;
  --sg-live: #1a56d6;
  --sg-text-size: calc(var(--sg-size, 15px) - 1.2pt);
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 88px),
    #eef1e8;
  color: var(--sg-ink);
}

.sg-bar {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 16px 12px;
}

.sg-title {
  flex: 0 1 auto;
  min-width: 0;
}

.sg-title h3 {
  margin: 0;
  color: var(--sg-ink);
  font: 800 18px/1.3 "Noto Sans KR", sans-serif;
  letter-spacing: -0.045em;
}

.sg-title h3 .sg-emoji {
  margin: 0 6px 0 0;
  color: inherit;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0;
}

.sg-title h3 span {
  margin-left: 8px;
  color: var(--sg-muted);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: -0.03em;
}

.sg-ai {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 2px;
  max-width: 720px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.sg-ai::-webkit-scrollbar { display: none; }

.sg-ai a {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 68px;
  min-height: 52px;
  padding: 2px 0;
  border-radius: 12px;
  color: #4d574b;
  text-decoration: none;
  font: 700 10.5px/1.15 "Noto Sans KR", sans-serif;
  letter-spacing: -0.05em;
}

.sg-ai a svg {
  width: 26px;
  height: 26px;
  display: block;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(28, 36, 24, 0.12);
}

.sg-ai a span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-ai a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--sg-ink);
}

.sg-ai a:focus-visible {
  outline: 2px solid var(--sg-green);
  outline-offset: 2px;
}

.sg-tools {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e1e6d8;
  border-radius: 16px;
  box-shadow: 0 1px 1px rgba(28, 36, 24, 0.04), 0 10px 28px rgba(28, 36, 24, 0.05);
}

.sg-tools button,
.sg-club-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #243028;
  cursor: pointer;
}

.sg-tools button {
  flex-direction: column;
  gap: 5px;
  width: 76px;
  height: 62px;
  border-radius: 12px;
  font: 700 11px/1 "Noto Sans KR", sans-serif;
  letter-spacing: -0.03em;
}

.sg-tools button svg {
  width: 18px;
  height: 18px;
}

.sg-tools button:hover,
.sg-club-add:hover { background: #f3f6ef; }

.sg-tools button.is-save {
  background: var(--sg-green);
  color: #fff;
}

.sg-tools button.is-save:hover { background: #18583a; }

.sg-tools button:focus-visible,
.sg-status button:focus-visible,
.sg-club-add:focus-visible,
.sg-audit button:focus-visible {
  outline: 2px solid var(--sg-green);
  outline-offset: 2px;
}

.sg-load {
  position: relative;
}

.sg-load-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  width: max-content;
  min-width: 240px;
  max-width: min(360px, 78vw);
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #e1e6d8;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(28, 36, 24, 0.12);
}

.sg-load-kicker,
.sg-load-empty {
  margin: 6px 10px 4px;
  color: #7d8776;
  font: 700 11px/1.4 "Noto Sans KR", sans-serif;
  letter-spacing: -0.02em;
}

.sg-tools .sg-load-menu button {
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  height: auto;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: left;
  white-space: normal;
  font: 700 13px/1.35 "Noto Sans KR", sans-serif;
}

.sg-load-menu small {
  color: #6d7768;
  font: 500 11.5px/1.4 "Noto Sans KR", sans-serif;
}

.sg-tools .sg-load-menu button.is-all {
  margin-bottom: 4px;
  background: #f3f6ef;
}

.sg-table.is-all th.is-unit,
.sg-table.is-all td.is-unit,
.sg-table.is-all th.is-no,
.sg-table.is-all td.is-no,
.sg-table.is-all th.is-name,
.sg-table.is-all td.is-name {
  position: sticky;
  z-index: 1;
}

.sg-table.is-all th.is-unit:nth-child(1),
.sg-table.is-all td.is-unit:nth-child(1) { left: 0; }

.sg-table.is-all th.is-unit:nth-child(2),
.sg-table.is-all td.is-unit:nth-child(2) { left: 64px; }

.sg-table.is-all th.is-no,
.sg-table.is-all td.is-no { left: 128px; }

.sg-table.is-all th.is-name,
.sg-table.is-all td.is-name { left: 200px; }

.sg-table.is-all th.is-unit,
.sg-table.is-all th.is-no,
.sg-table.is-all th.is-name { z-index: 3; }

.sg-table.is-all td.is-unit {
  padding: 12px 10px;
  background: #fbfcfa;
  text-align: center;
  font-weight: 750;
  vertical-align: middle;
}

.sg-meta {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 0 16px 8px;
}

.sg-meta label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3d4a38;
  font: 700 12px/1 "Noto Sans KR", sans-serif;
}

.sg-meta input[type="text"] {
  width: min(240px, 46vw);
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--sg-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--sg-ink);
  font: 600 14px/1 "Noto Sans KR", sans-serif;
}

.sg-meta input[type="text"]:focus {
  outline: none;
  border-color: var(--sg-green);
  box-shadow: 0 0 0 3px rgba(31, 107, 69, 0.12);
}

.sg-audit {
  flex: 0 0 auto;
  margin: 0 16px 10px;
  border: 1px solid #eadfd4;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.sg-audit[hidden] { display: none !important; }

.sg-audit-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fbf8f4;
  border-bottom: 1px solid #f0e6dc;
  color: #3d342c;
  font: 750 13px/1 "Noto Sans KR", sans-serif;
}

.sg-audit-head span {
  color: #8a5a3c;
  font-weight: 650;
}

.sg-audit-head button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #6d645c;
  font: 700 12px/1 "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.sg-audit-ok {
  margin: 0;
  padding: 12px 14px 14px;
  color: #3d4a38;
  font: 550 13px/1.5 "Noto Sans KR", sans-serif;
}

.sg-audit ul {
  list-style: none;
  max-height: 196px;
  margin: 0;
  padding: 4px;
  overflow: auto;
}

.sg-audit li button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sg-audit li button:hover { background: #f7f4ef; }

.sg-audit li b {
  color: var(--sg-ink);
  font: 750 13px/1.3 "Noto Sans KR", sans-serif;
}

.sg-audit li span {
  color: #9a3412;
  font: 600 12px/1.45 "Noto Sans KR", sans-serif;
}

.sg-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0 16px 14px;
}

.sg-maincol {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.sg-body .sg-audit { margin: 0 0 10px; }

.sg-body .sg-scroll { margin: 0; }

.sg-body .sg-status { margin: 0; }

.sg-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 16px;
  overflow: auto;
  background: #fff;
  border: 1px solid #111;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 16px 40px rgba(32, 40, 24, 0.05);
  -webkit-overflow-scrolling: touch;
}

.sg-drop {
  display: none;
  position: sticky;
  top: 12px;
  z-index: 5;
  height: 0;
  margin: 0;
  pointer-events: none;
}

.sg-drop strong,
.sg-drop span { display: none; }

.sg-sheet.is-drop .sg-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: auto;
  margin: 12px;
  padding: 28px 16px;
  border: 1.5px dashed var(--sg-green);
  border-radius: 12px;
  background: rgba(247, 250, 244, 0.96);
  color: #174f34;
}

.sg-sheet.is-drop .sg-drop strong,
.sg-sheet.is-drop .sg-drop span { display: block; }

.sg-drop strong {
  font: 800 16px/1.3 "Noto Sans KR", sans-serif;
  letter-spacing: -0.03em;
}

.sg-drop span {
  font: 550 13px/1.45 "Noto Sans KR", sans-serif;
}

.sg-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  font-size: var(--sg-size, 15px);
}

.sg-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 9px 10px;
  border-bottom: 1px solid #111;
  border-right: 1px solid #111;
  background: #f4f6f0;
  color: #3e4938;
  font: 750 11px/1.35 "Noto Sans KR", sans-serif;
  letter-spacing: -0.02em;
  text-align: center;
}

.sg-table td {
  padding: 0;
  border-bottom: 1px solid #111;
  border-right: 1px solid #111;
  vertical-align: middle;
  background: #fff;
}

.sg-table tr > :last-child { border-right: 0; }

.sg-table tbody tr:hover td { background: #f7faf4; }

.sg-table.is-roster th.is-no,
.sg-table.is-roster td.is-no,
.sg-table.is-roster th.is-name,
.sg-table.is-roster td.is-name {
  position: sticky;
  z-index: 1;
}

.sg-table.is-roster th.is-no,
.sg-table.is-roster td.is-no { left: 0; }

.sg-table.is-roster th.is-name,
.sg-table.is-roster td.is-name { left: 72px; }

.sg-table.is-roster th.is-no,
.sg-table.is-roster th.is-name { z-index: 3; }

.sg-table .is-no { width: 72px; min-width: 72px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 750; }
.sg-table .is-name { width: 108px; min-width: 108px; text-align: center; font-weight: 750; letter-spacing: -0.03em; }
.sg-table .is-hours { width: 88px; text-align: center; }
.sg-table .is-hope { width: 140px; }
.sg-table .is-consign { width: 96px; }
.sg-table .is-unit { width: 64px; }

.sg-table td.is-no,
.sg-table td.is-name {
  padding: 12px 10px;
  background: #fbfcfa;
  vertical-align: middle;
  font-size: calc(var(--sg-size, 15px) - 3pt);
}

.sg-table td.is-name,
.sg-table td.is-hours { text-align: center; }

.sg-table tbody tr:hover td.is-no,
.sg-table tbody tr:hover td.is-name,
.sg-table tbody tr:hover td.is-unit { background: #f3f6ee; }

.sg-table tr.is-flag td { background: #fff7f3; }
.sg-table tr.is-flag td.is-no { box-shadow: inset 3px 0 0 #c2410c; }

.sg-table .is-count {
  width: 118px;
  background: #f7faf6;
  text-align: right;
}

.sg-table td.is-count {
  padding: 8px 12px;
  vertical-align: middle;
}

.sg-table th.is-count { background: #e7f0e4; }

.sg-hours,
.sg-hope,
.sg-consign,
.sg-unit,
.sg-name-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sg-ink);
  font: 600 var(--sg-size, 15px)/1.4 "Noto Sans KR", sans-serif;
}

.sg-hours,
.sg-unit,
.sg-name-input { text-align: center; }

.sg-hours { font-size: calc(var(--sg-size, 15px) - 2pt); }

.sg-table td.is-no .sg-unit,
.sg-table td.is-name .sg-name-input {
  font-size: calc(var(--sg-size, 15px) - 3pt);
}

.sg-hours:focus,
.sg-hope:focus,
.sg-consign:focus,
.sg-unit:focus,
.sg-name-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--sg-green);
}

.sg-field {
  position: relative;
  min-height: 0;
  border-radius: 0;
  background: transparent;
}

.sg-field.is-hot { box-shadow: inset 0 0 0 1px #e35b68; }

.sg-mirror,
.sg-input {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  font: 500 var(--sg-text-size, calc(15px - 1.2pt))/1.55 "Noto Sans KR", "Noto Sans", sans-serif;
  letter-spacing: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sg-mirror {
  min-height: 0;
  color: #1c2836;
  pointer-events: none;
}

.sg-mirror .sg-ph {
  color: #a3ad9c;
  font-size: calc(1em - 2pt);
  line-height: calc(var(--sg-text-size, calc(15px - 1.2pt)) * 1.55);
}

.sg-mirror .is-ban,
.sg-mirror .is-over,
.sg-mirror .is-odd {
  color: var(--sg-hot);
  font-weight: 800;
}

.sg-mirror .is-ban,
.sg-mirror .is-odd {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sg-mirror .is-spell {
  text-decoration: underline wavy #c2410c;
  text-underline-offset: 3px;
}

.sg-mirror .is-over,
.sg-mirror .is-odd { background: #ffe8eb; }

.sg-input {
  position: absolute;
  inset: 0;
  height: 100%;
  resize: none;
  overflow: hidden;
  color: transparent;
  caret-color: #142033;
  background: transparent;
}

.sg-input:focus { outline: none; }

.sg-input::selection { background: rgba(31, 107, 69, 0.22); }

.sg-field:focus-within { box-shadow: inset 0 0 0 2px var(--sg-green); }

.sg-field.is-hot:focus-within { box-shadow: inset 0 0 0 2px var(--sg-hot); }

.sg-bytes {
  color: #4d5d4e;
  font: 700 calc(12px + 1pt)/1.35 "Noto Sans KR", sans-serif;
  font-variant-numeric: tabular-nums;
}

.sg-bytes b { display: block; font-weight: 750; }

.sg-bytes .sg-now {
  color: #5c3317;
  font-weight: 800;
}

.sg-bytes b .sg-now {
  color: #5c3317;
}

.sg-bytes .sg-now.is-zero {
  color: #5c3317;
}

.sg-bytes small {
  display: block;
  margin-top: 2px;
  color: #7b8794;
  font-weight: 650;
}

.sg-bytes.is-hot .sg-now,
.sg-bytes.is-hot b .sg-now {
  color: var(--sg-hot);
}

.sg-alerts { margin: 0; padding: 0 12px 8px; }
.sg-alerts:empty { display: none; }

.sg-alert {
  margin: 0 0 3px;
  color: var(--sg-hot);
  font: 750 12px/1.4 "Noto Sans KR", sans-serif;
}

.sg-alert.is-spell { color: #9a3412; }

.sg-empty {
  margin: 28px auto;
  max-width: 420px;
  padding: 22px 18px;
  border: 1px dashed var(--sg-line-strong);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.sg-empty p {
  margin: 0 0 12px;
  color: #445266;
  font: 600 14px/1.5 "Noto Sans KR", sans-serif;
}

.sg-empty button,
.sg-club-add {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--sg-line-strong);
  border-radius: 999px;
  background: #fff;
  color: #243028;
  font: 700 12px/1 "Noto Sans KR", sans-serif;
}

.sg-foot {
  display: flex;
  justify-content: flex-start;
  padding: 10px 12px 16px;
  background: #fff;
}

.sg-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 14px;
  padding: 8px 10px 8px 14px;
  background: #f7f8f4;
  border: 1px solid #111;
  border-radius: 0 0 14px 14px;
}

.sg-status-copy { min-width: 0; }

.sg-sum,
.sg-note {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
}

.sg-sum {
  color: #3e4a3a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.sg-sum:empty,
.sg-note:empty { display: none; }

.sg-sum.is-hot { color: var(--sg-hot); }

.sg-note {
  margin-top: 2px;
  color: #7b8574;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
}

.sg-note.is-hot { color: var(--sg-hot); font-weight: 750; }

.sg-status button {
  flex: 0 0 auto;
  height: 34px;
  margin-right: 68px;
  padding: 0 14px;
  border: 1px solid #c9d3c2;
  border-radius: 999px;
  background: #fff;
  color: #174f34;
  font: 750 13px/1 "Noto Sans KR", sans-serif;
  cursor: pointer;
}

.sg-status button:hover { background: #eef6f0; }

@media (max-width: 640px) {
  .apx-sg-bay {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .apx-sg-frame { min-height: 420px; }

  .apx-sg-preview-head { padding: 10px 12px; }

  .apx-sg-preview-head h3 { font-size: 16px; }
}

@media (max-width: 760px) {
  .sg-body { margin-left: 10px; margin-right: 10px; margin-bottom: 10px; }

  .sg-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 12px 10px;
  }

  .sg-ai {
    order: 3;
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    margin: 0;
    padding-bottom: 2px;
  }

  .sg-tools {
    width: 100%;
    overflow: visible;
  }

  .sg-tools button { flex: 0 0 76px; }

  .sg-scroll,
  .sg-status,
  .sg-audit { margin-left: 10px; margin-right: 10px; }

  .sg-table { min-width: 0; }

  .sg-table thead { display: none; }

  .sg-table.is-roster th.is-no,
  .sg-table.is-roster td.is-no,
  .sg-table.is-roster th.is-name,
  .sg-table.is-roster td.is-name,
  .sg-table.is-all th.is-unit,
  .sg-table.is-all td.is-unit,
  .sg-table.is-all th.is-no,
  .sg-table.is-all td.is-no,
  .sg-table.is-all th.is-name,
  .sg-table.is-all td.is-name {
    position: static;
    left: auto;
  }

  .sg-table,
  .sg-table tbody,
  .sg-table tr,
  .sg-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .sg-table tr {
    margin: 10px 10px 0;
    border: 1px solid #111;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }

  .sg-table td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #e4eadf;
  }

  .sg-table tr td:last-child { border-bottom: 0; }

  .sg-table td::before {
    content: attr(data-label);
    color: #6b7786;
    font: 750 11px/1.4 "Noto Sans KR", sans-serif;
    padding-top: 0;
  }

  .sg-table td.is-text,
  .sg-table td.is-count {
    grid-template-columns: 1fr;
  }

  .sg-table td.is-text::before,
  .sg-table td.is-count::before { padding-top: 0; }

  .sg-table .is-no,
  .sg-table .is-name,
  .sg-table .is-hours,
  .sg-table .is-hope,
  .sg-table .is-consign,
  .sg-table .is-unit,
  .sg-table .is-count {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .sg-table td.is-no { text-align: left; }
  .sg-table td.is-name,
  .sg-table td.is-hours { text-align: center; }

  .sg-table .is-count {
    width: auto;
    border-left: 0;
    border-top: 1px solid #e1eaf2;
    text-align: left;
  }

  .sg-status { align-items: stretch; flex-direction: column; }

  .sg-status button { align-self: flex-end; }

  .sg-hope,
  .sg-consign,
  .sg-unit,
  .sg-name-input,
  .sg-meta input[type="text"] {
    font-size: 16px;
  }

  .sg-hours { font-size: calc(16px - 2pt); }

  .sg-table td.is-no .sg-unit,
  .sg-table td.is-name .sg-name-input {
    font-size: 16px;
  }

  .sg-input,
  .sg-mirror {
    font-size: calc(16px - 1.2pt);
    font-family: "Noto Sans KR", "Noto Sans", sans-serif;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .sg-scroll { overflow: auto; }
}
