/* 커핑 — 컬렉션과 같은 미색 바탕, 검은 글씨. 제목은 세리프, 칸과 버튼은 SUIT. */
.cup { padding: clamp(28px, 7vh, 72px) var(--gutter) 120px; max-width: 1180px; }
.cup-head { max-width: 31em; }
.cup-head p + p { margin-top: 1.05em; }
.cup .eyebrow { display: block; font-family: "SUIT", sans-serif; font-size: 11px; letter-spacing: .06em; opacity: .55; margin-bottom: 10px; }
.cup .hint { font-family: "SUIT", sans-serif; font-size: 12px; line-height: 1.6; opacity: .6; margin-top: 14px; }
.cup .faint-s { font-family: "SUIT", sans-serif; font-size: 13px; opacity: .5; }
.cup .err { font-family: "SUIT", sans-serif; font-size: 13px; color: #a3321f; margin-top: 10px; min-height: 1em; }
.cup .err.big { font-size: 16px; margin-top: 30px; }
.cup .back { font-family: "SUIT", sans-serif; font-size: 13px; margin-bottom: 26px; }
.cup .back a { opacity: .6; } .cup .back a:hover { opacity: 1; }
.cup button, .cup .solid { all: unset; cursor: pointer; font-family: "SUIT", sans-serif; font-size: 13px; }
.cup .solid { display: inline-block; padding: 11px 18px; background: var(--ink); color: var(--paper); }
.cup .solid:hover { background: #000; }
.cup .quiet { opacity: .55; text-decoration: underline; text-underline-offset: 4px; }
.cup button:disabled, .cup input:disabled { opacity: .4; cursor: default; }
.cup .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; font-family: "SUIT", sans-serif; font-size: 13px; }
.cup .row.end { justify-content: flex-end; }

/* 폼 */
.cup-form { max-width: 420px; margin-top: clamp(36px, 6vh, 60px); }
.cup-form.wide { max-width: 640px; margin-top: 0; }
.cup-form label { display: block; margin-top: 20px; font-family: "SUIT", sans-serif; font-size: 12px; }
.cup-form label .sub { opacity: .5; margin-left: 6px; }
.cup input, .cup textarea { width: 100%; margin-top: 7px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(20,19,17,.3);
  background: transparent; color: inherit; font: inherit; font-family: "SUIT", sans-serif; font-size: 16px; outline: none; border-radius: 0; }
.cup textarea { border: 1px solid rgba(20,19,17,.3); padding: 10px 12px; line-height: 1.55; resize: vertical; }
.cup input:focus, .cup textarea:focus { border-color: var(--ink); }

/* 처음 */
.cup-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(30px, 5vh, 48px); }
.cup-actions form { display: flex; align-items: center; gap: 12px; }
.cup-actions input { width: 8.5em; margin: 0; letter-spacing: .12em; text-transform: uppercase; }
.cup-actions button { text-decoration: underline; text-underline-offset: 4px; }
.cup-list { margin-top: clamp(40px, 7vh, 72px); border-top: 1px solid rgba(20,19,17,.25); padding-top: 14px; }
.room-row { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 4px 18px; align-items: baseline; padding: 14px 0;
  border-bottom: 1px solid rgba(20,19,17,.12); }
.room-row b { font-weight: 500; font-size: calc(var(--size) * .62); line-height: 1.3; }
.room-row .m { font-family: "SUIT", sans-serif; font-size: 12px; opacity: .55; white-space: nowrap; }
.room-row:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
@media (max-width: 640px) { .room-row { grid-template-columns: 1fr; } }
.st { font-family: "SUIT", sans-serif; font-size: 11px; letter-spacing: .03em; }
.st::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; border: 1px solid currentColor; }
.st.live::before { background: #c0392b; border-color: #c0392b; }
.st.closed::before { background: var(--ink); }
.cup-foot { margin-top: 48px; font-family: "SUIT", sans-serif; font-size: 12px; }
.cup-foot button { opacity: .5; text-decoration: underline; text-underline-offset: 4px; }

/* 방 머리 */
.room-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid rgba(20,19,17,.25); }
.room-head h1 { font: inherit; font-size: var(--size); margin-top: 8px; }
.room-head .m { font-family: "SUIT", sans-serif; font-size: 12px; opacity: .6; margin-top: 8px; }
.code { display: grid; justify-items: end; gap: 4px; font-family: "SUIT", sans-serif; }
.code span { font-size: 11px; opacity: .55; }
.code b { font-size: 30px; font-weight: 600; letter-spacing: .14em; line-height: 1; }
.code button { font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 0 0; font-family: "SUIT", sans-serif; font-size: 12px; }
.people .eyebrow { margin: 0 6px 0 0; }
.pp { padding: 5px 10px; border: 1px solid rgba(20,19,17,.22); border-radius: 99px; opacity: .55; }
.pp.on { opacity: 1; border-color: rgba(20,19,17,.55); }
.pp.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #2f9e5b; margin-right: 6px; vertical-align: 1px; }
.pp.me { background: rgba(20,19,17,.06); }
.pp small { opacity: .6; margin-left: 5px; font-size: 11px; }
.pp em { font-style: normal; margin-left: 6px; opacity: .6; font-size: 11px; }
.note { margin-top: 34px; font-size: calc(var(--size) * .62); line-height: 1.6; max-width: 30em; }

/* 준비 중 */
.draft { margin-top: 34px; max-width: 680px; }
.draft-list { list-style: none; counter-reset: c; }
.draft-list li { counter-increment: c; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(20,19,17,.12); }
.draft-list li::before { content: "#" counter(c); font-family: "SUIT", sans-serif; font-size: 12px; opacity: .55; width: 2.4em; flex: none; }
.draft-list input { border: 0; margin: 0; padding: 12px 0; }
.draft-list span { display: flex; gap: 12px; font-size: 12px; opacity: .6; flex: none; }
.draft-list span button:hover { opacity: 1; text-decoration: underline; }
.row-add { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.row-add input { margin: 0; }
.row-add button { text-decoration: underline; text-underline-offset: 4px; flex: none; }

/* 진행 중 */
.timer { position: sticky; top: 0; z-index: 4; display: flex; align-items: baseline; gap: 16px; margin-top: 26px; padding: 14px 0;
  background: var(--paper); border-bottom: 1px solid rgba(20,19,17,.25); font-family: "SUIT", sans-serif; }
.timer .ph { font-size: 13px; }
.timer b { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.timer .tbtn { margin-left: auto; display: flex; gap: 16px; font-size: 12px; }
.timer .tbtn button { text-decoration: underline; text-underline-offset: 4px; }
.cups { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; margin-top: 22px;
  border-top: 1px solid rgba(20,19,17,.55); border-left: 1px solid rgba(20,19,17,.55); }
.cupc { padding: 16px 16px 12px; border-right: 1px solid rgba(20,19,17,.55); border-bottom: 1px solid rgba(20,19,17,.55); }
.cupc .no { font-size: calc(var(--size) * .9); line-height: 1; }
.cupc .score { font-size: 22px; font-variant-numeric: tabular-nums; margin-top: 14px; }
.cupc .notes { margin-top: 12px; font-size: 14px; }
.cupc .sv { display: flex; justify-content: space-between; margin-top: 8px; font-family: "SUIT", sans-serif; font-size: 11px; opacity: .6; }
.toast { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 70; padding: 14px 22px; background: var(--ink); color: var(--paper);
  font-family: "SUIT", sans-serif; font-size: 15px; animation: fade .25s ease; }

/* 결과 */
.cup .res + .legend, .legend { font-family: "SUIT", sans-serif; font-size: 11px; opacity: .65; margin-top: 14px; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.room-head ~ .eyebrow { margin-top: 30px; }
.res { border-top: 1px solid rgba(20,19,17,.55); }
.res-row { border-bottom: 1px solid rgba(20,19,17,.2); }
.res-row summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.6em minmax(0, 1.3fr) minmax(120px, 1fr) 6.5em; gap: 18px; align-items: center; padding: 16px 0; }
.res-row summary::-webkit-details-marker { display: none; }
.res-row .no { font-size: calc(var(--size) * .7); }
.res-row .nm b { display: block; font-weight: 500; font-size: calc(var(--size) * .6); line-height: 1.3; }
.res-row .nm small, .res-row .sc small { display: block; font-family: "SUIT", sans-serif; font-size: 11px; opacity: .55; margin-top: 4px; }
.res-row .sc { text-align: right; }
.res-row .sc b { font-family: "SUIT", sans-serif; font-weight: 600; font-size: 24px; font-variant-numeric: tabular-nums; }
.strip { position: relative; height: 26px; }
.strip i, .legend i { position: absolute; top: 50%; }
.strip .rg { height: 2px; margin-top: -1px; background: rgba(20,19,17,.15); }
.strip .mean, .legend .mean { width: 1px; height: 22px; margin-top: -11px; background: var(--ink); }
.strip .dot, .legend .dot { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #8f877c; opacity: .8; }
.strip .dot.host, .legend .dot.host { background: #b4532a; opacity: 1; }
.strip .dot.me, .legend .dot.me { background: var(--ink); opacity: 1; box-shadow: 0 0 0 2px var(--paper); z-index: 1; }
.legend i { position: static; display: inline-block; margin: 0 !important; }
.legend .mean { height: 12px; }
.res-in { padding: 4px 0 22px 2.6em; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px 28px; font-family: "SUIT", sans-serif; font-size: 11px; opacity: .9; }
.tiles span { opacity: .7; } .tiles b { display: block; font-size: 18px; font-weight: 600; opacity: 1; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; font-family: "SUIT", sans-serif; font-size: 12px; }
.tags span { padding: 4px 9px; border: 1px solid rgba(20,19,17,.25); }
.tags em { font-style: normal; opacity: .5; margin-left: 5px; }
.who { width: 100%; border-collapse: collapse; margin-top: 16px; font-family: "SUIT", sans-serif; font-size: 13px; }
.who td { padding: 9px 12px 9px 0; border-top: 1px solid rgba(20,19,17,.1); vertical-align: top; line-height: 1.5; }
.who td small { display: block; font-size: 11px; opacity: .55; }
.who td em { font-style: normal; font-size: 11px; opacity: .55; margin-left: 6px; }
.who td.n { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.who td.n small { font-weight: 400; }
.who tr.me td { background: rgba(20,19,17,.04); }
@media (max-width: 700px) {
  .res-row summary { grid-template-columns: 2em minmax(0, 1fr) 5em; }
  .res-row .strip { grid-column: 2 / 4; grid-row: 2; }
  .res-in { padding-left: 0; }
}

/* ── v2: 커피 정보 · 어시스트 · 구매 · 호스트 · 관리자 ── */
.draft-list li.it { display: block; }
.draft-list li.it::before { content: none; }
.it-top { display: flex; align-items: center; gap: 12px; }
.it-top::before { content: "#" counter(c); font-family: "SUIT", sans-serif; font-size: 12px; opacity: .55; width: 2.4em; flex: none; }
.nm-wrap { position: relative; flex: 1; min-width: 0; }
.it-btn { display: flex; gap: 12px; font-size: 12px; flex: none; }
.it-btn button { opacity: .6; } .it-btn button:hover { opacity: 1; text-decoration: underline; }
.item-more { padding: 4px 0 18px 2.4em; margin-left: 12px; font-family: "SUIT", sans-serif; font-size: 12px; }
.item-more label, .edit-it label { display: block; margin-top: 12px; font-family: "SUIT", sans-serif; font-size: 11px; opacity: .85; }
.item-more input, .edit-it input { font-size: 14px; padding: 6px 0; margin-top: 3px; }
.item-more textarea { font-size: 14px; margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.sale { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 0 16px; align-items: end; margin-top: 16px; padding-top: 12px; border-top: 1px dashed rgba(20,19,17,.25); }
.sale .chk { display: flex; align-items: center; gap: 6px; font-size: 13px; padding-bottom: 8px; }
.cup .sale .chk input { width: auto; margin: 0; accent-color: var(--ink); }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } .sale { grid-template-columns: 1fr 1fr; } .item-more { padding-left: 0; margin-left: 0; } }
.cup .lab { margin-top: 22px; font-family: "SUIT", sans-serif; font-size: 12px; }
.cup .lab .sub { display: block; opacity: .55; line-height: 1.6; margin: 4px 0 8px; }
.cup-form .draft-list { margin-top: 6px; }

/* 어시스트 */
.assist { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--paper); border: 1px solid var(--ink);
  box-shadow: 0 10px 28px rgba(20,19,17,.16); font-family: "SUIT", sans-serif; }
.assist-h { padding: 8px 12px 6px; font-size: 11px; opacity: .55; }
.cup .assist button { display: block; width: 100%; box-sizing: border-box; padding: 9px 12px; border-top: 1px solid rgba(20,19,17,.1); }
.assist button b { display: block; font-weight: 600; font-size: 14px; }
.assist button small { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.assist button:hover, .assist button[aria-selected="true"] { background: rgba(20,19,17,.07); }
.cup .assist .keep { font-size: 12px; opacity: .6; }

/* 확인창 */
.cup-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(20,19,17,.45); animation: fade .15s ease; }
.cup-box { width: min(420px, 100%); max-height: 90vh; overflow: auto; background: var(--paper); color: var(--ink); padding: 26px 24px 20px; font-family: "SUIT", sans-serif; font-size: 15px; line-height: 1.6; }
.cup-box label { display: block; margin-top: 14px; font-size: 12px; }
.cup-box label .sub { opacity: .55; }
.cup-box input { width: 100%; margin-top: 4px; padding: 8px 0; border: 0; border-bottom: 1px solid rgba(20,19,17,.3); background: transparent; font: inherit; font-size: 16px; outline: none; border-radius: 0; }
.cup-box .row { display: flex; justify-content: flex-end; gap: 18px; align-items: center; margin-top: 22px; font-size: 13px; }
.cup-box button { all: unset; cursor: pointer; }
.cup-box .solid { padding: 10px 18px; background: var(--ink); color: var(--paper); }
.cup-box .solid.danger { background: #a3321f; }
.cup-box .faint-s { font-size: 12px; opacity: .55; }

/* 처음 화면: 구독 · 비밀번호 */
.cup .ghost { font-family: "SUIT", sans-serif; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; opacity: .7; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 99px; background: #b4532a; color: #fff; font-family: "SUIT", sans-serif; font-size: 11px; font-weight: 600; vertical-align: 2px; }
.plan { margin-top: 36px; max-width: 34em; padding: 20px 22px; border: 1px solid rgba(20,19,17,.35); }
.plan p { font-size: 15px; line-height: 1.6; }
.plan .m { font-family: "SUIT", sans-serif; font-size: 12px; opacity: .65; margin-top: 10px; }
.plan .solid { margin-top: 16px; }
.cup .ok-s { font-family: "SUIT", sans-serif; font-size: 13px; margin-top: 14px; color: #2f7a4b; }
.cup .host-ok { opacity: .75; }
.pinbox { margin-top: 40px; font-family: "SUIT", sans-serif; font-size: 13px; }
.pinbox summary { cursor: pointer; opacity: .7; }
.pinbox .cup-form { margin-top: 6px; }

/* 결과: 커피 정보 · 구매 */
.coffee-info { margin-bottom: 18px; }
.cup .facts { display: grid; grid-template-columns: 5em 1fr; gap: 6px 14px; font-family: "SUIT", sans-serif; font-size: 13px; max-width: 560px; }
.cup .facts dt { opacity: .5; }
.cup .desc { margin-top: 12px; font-size: 15px; line-height: 1.7; max-width: 34em; }
.sl .price { font-weight: 600; opacity: 1; margin-right: 8px; }
.sl .left.out { color: #a3321f; }
.res-row .nm small.sl { opacity: .85; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 12px 14px; background: rgba(20,19,17,.05); font-family: "SUIT", sans-serif; font-size: 13px; }
.buy .lb { font-weight: 600; }
.buy label { display: flex; align-items: center; gap: 6px; }
.cup .buy input { margin: 0; padding: 6px 0; font-size: 15px; }
.cup .buy label input { width: 4em; }
.cup .buy input[name=memo] { flex: 1; min-width: 10em; }
.buy .amt { font-weight: 600; }
.edit-it { margin: 0 0 18px; font-family: "SUIT", sans-serif; font-size: 13px; }
.edit-it > summary { cursor: pointer; opacity: .65; }
.edit-it .item-more { padding-left: 0; margin-left: 0; }
.edit-it .row { margin-top: 12px; }
.cup .ok { font-family: "SUIT", sans-serif; font-size: 12px; opacity: .6; }
.shop { margin-top: 44px; max-width: 900px; }
.shop.host { padding-top: 22px; border-top: 1px solid rgba(20,19,17,.25); }
.paynote-v { font-size: 16px; line-height: 1.6; }
.shop .m { font-family: "SUIT", sans-serif; font-size: 13px; margin-top: 14px; }
.paynote { display: block; margin-top: 22px; font-family: "SUIT", sans-serif; font-size: 12px; max-width: 640px; }
.paynote .sub { display: block; opacity: .55; margin-top: 3px; }
.tw { overflow-x: auto; }
.orders { width: 100%; border-collapse: collapse; margin-top: 14px; font-family: "SUIT", sans-serif; font-size: 13px; }
.orders th { text-align: left; font-weight: 500; font-size: 11px; opacity: .55; padding: 6px 12px 6px 0; border-bottom: 1px solid rgba(20,19,17,.3); }
.orders td { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(20,19,17,.1); vertical-align: top; line-height: 1.5; }
.orders td small { display: block; font-size: 11px; opacity: .55; }
.orders td em { font-style: normal; font-size: 11px; opacity: .55; margin-left: 6px; }
.orders tr.cancelled td { opacity: .4; }
.orders tr.requested td:first-child { box-shadow: inset 3px 0 #b4532a; padding-left: 8px; }
.orders td button { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; margin-right: 8px; }
.orders select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid rgba(20,19,17,.3); background: transparent; color: inherit; }
.ost.requested { color: #b4532a; } .ost.done { opacity: .6; }
.atabs { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-family: "SUIT", sans-serif; font-size: 13px; }
.atabs button { opacity: .5; } .atabs button[aria-selected="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.adm td:last-child button { white-space: nowrap; }
.cup .shop .row, .cup #apane > .row { justify-content: flex-start; margin-top: 14px; }
.cup #apane > .row button, .cup .shop .row button { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .it-top { flex-wrap: wrap; row-gap: 0; }
  .nm-wrap { flex: 1 1 calc(100% - 3.6em); }
  .it-btn { width: 100%; justify-content: flex-end; padding-bottom: 8px; }
  .buy { padding: 12px; } .orders { font-size: 12px; }
}
