/* /owner only (space owner page): sections, the one-time key and the change log inside the phone width. */
.owner { overflow-wrap: anywhere; }
.owner-box { border-top: 1px solid var(--rule); padding-block: 18px 6px; }
.owner-box h2 { font-size: 1.1rem; margin: 0 0 8px; }
.owner-box p { margin: 0 0 12px; }
.owner-dm { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; margin-block: 16px; }
.owner-img { margin: 0 0 14px; }
.owner-img img { display: block; width: 100%; height: auto; max-width: 480px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); }
.owner-key { margin-top: 12px; }
/* /owner/key: the one-time key sits above the key list */
#key-box > .owner-key { margin: 0 0 12px; }
.owner-key code { display: block; max-width: 100%; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); font-size: 0.85rem; word-break: break-all; }
/* The space's keys (owner.js fillKeys): first characters + ***, 멈추기 at the row's end. */
.owner-keys { list-style: none; display: grid; gap: 8px; margin: 0 0 12px; padding: 0; }
.owner-keys li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 6px 6px 6px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.owner-keys code { font-size: 0.85rem; overflow-wrap: anywhere; }
/* 내 등록 신청 (public/owner-signups.js): one card per sign-up, its buttons wrap on a phone */
.signup-list { list-style: none; display: grid; gap: 10px; margin: 12px 0; padding: 0; }
.signup-row { padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.signup-row p { margin: 0 0 6px; }
/* the dashboard's 72ch line cap (owner-console.css) would leave 검토 중 halfway across a wide card */
.owner-console main .signup-list .signup-row p { max-width: none; }
.signup-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.signup-state { font-size: 0.85rem; color: var(--lantern); }
.signup-state.is-ok { color: var(--moss); }
.signup-meta { font-size: 0.85rem; overflow-wrap: anywhere; }
.signup-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.owner-keys .btn { flex: none; min-height: 32px; height: 32px; margin: 0; padding: 0 12px; font-size: 0.8rem; }
.owner-log { margin: 0 0 14px; padding-left: 1.1em; color: var(--ink-2); font-size: 0.9rem; }
/* 공간운영자 메일 (owner.js fillMails): one row per mail, the address, its tags (지금 로그인 · 수신 거부됨 · 대기 중) and 빼기 at the end;
   then 공간운영자 추가하기 and the mail switch as flat sections under a line. */
.owner-mails { list-style: none; margin: 0 0 12px; padding: 0; }
.owner-mails li { display: flex; align-items: center; gap: 8px 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--rule); }
.owner-mails .mail-addr { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.owner-mails .mail-tag { flex: none; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.owner-mails .mail-tag.is-me { background: color-mix(in srgb, var(--lantern) 14%, var(--surface)); color: var(--ink); }
.owner-mails .mail-tag.is-wait { border: 1px solid var(--rule); color: var(--ink-2); }
/* 수신 거부됨: the address gets no operating notices (controller 11/12) */
.owner-mails .mail-tag.is-optout { border: 1px dashed var(--ink-2); color: var(--ink-2); }
.owner-mails .btn { flex: none; margin-left: auto; }
.owner-mails .mail-none { color: var(--ink-2); }
.mails-add, .mails-notify { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--rule); }
.mails-add h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
#mails-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
#mails-form label { flex: 1 1 260px; max-width: 420px; }
#mails-form .status { flex-basis: 100%; }
.mails-notify .owner-notify { margin: 0; }

/* 정각 모임 fields (owner.js fillMeetup) */
.meetup-row { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.meetup-row legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.site-ways { display: grid; gap: 12px; padding-left: 1.2em; }
.site-code { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--rule); font-size: 0.85rem; overflow-wrap: anywhere; user-select: all; }
/* Copy and 파일 다운로드 under each code (owner.js loadSite); the file line's one-line guide below it. */
.site-ways .btn { margin-top: 8px; padding: 6px 14px; font-size: 0.85rem; }
.site-how { display: block; margin-top: 8px; color: var(--ink-2); font-size: 0.9rem; }
/* 운영자 메일 right under 공간 관리 (owner 11/10 「위로 올려」), a card of its own so it is not missed. */
.owner-must { margin-block: 12px; padding: 14px 16px 8px; border: 2px solid var(--lantern); border-radius: 12px; background: var(--surface); }
.owner-must .status:empty { display: none; }
/* The in-page warning when leaving without the operator mail (owner.js leave). */
.owner-warn { width: min(420px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.owner-warn::backdrop { background: rgba(21, 18, 31, 0.5); }
.owner-warn p { margin: 0 0 16px; font-weight: 700; line-height: 1.5; }
.owner-warn-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.find-list { display: grid; gap: 6px; padding-left: 1.2em; }
.guide-text { width: 100%; font: 0.85rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 12px; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); resize: vertical; }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--lantern); text-decoration: underline; cursor: pointer; font: inherit; text-align: left; }
#guide-note { font-weight: 700; }

/* 메타모아 파트너사 특전 (owner.js loadSell): fee lines, the product form and each product's copyable button code. */
.sell-fees { margin: 0 0 12px; padding-left: 1.1em; }
.sell-hrum-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sell-state strong { color: var(--lantern); }
#sell-form { margin-top: 14px; }
.sell-products, .portal-items { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.sell-products li, .portal-items li { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.sell-products code { display: block; margin: 6px 0 8px; font-size: 0.85rem; overflow-wrap: anywhere; user-select: all; }
.sell-products .btn + .btn { margin-left: 8px; }
/* Toss mini app tier picker: 「받는 돈 약 N원」 under the select, each product's Toss tier line. */
.sell-receive { display: block; margin: -4px 0 10px; color: var(--lantern); font-weight: 700; }
.sell-toss { display: block; margin-top: 4px; font-size: 0.85rem; }

/* the visitor-count example under the key */
.owner-live-ex { max-width: 100%; margin: 0 0 8px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); font-size: 0.8rem; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 계좌번호 대신, 공간에서 결제 받기 (owner.html #hrum-card): a short card under 포탈 연결 pointing to #sell-box. */
.hrum-card { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--lantern); border-radius: 12px; padding: 14px 16px 4px; margin-block: 16px; }
.hrum-card-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* 대표 캐릭터 보내기 (owner.html #char-card, owner.js loadChar): the goblin swap card under 포탈 연결, file picker and send. */
.char-card { background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--lantern); border-radius: 12px; padding: 14px 16px 4px; margin-block: 16px; }
.char-files { margin: 0 0 12px; padding-left: 1.1em; display: grid; gap: 4px; }
.char-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.char-form label { flex: 1 1 220px; min-width: 0; }
.char-form input[type="file"] { display: block; width: 100%; max-width: 100%; margin-top: 4px; }

/* 3D 광고 (public/owner.js <ads>): 광고 게재 동의, 광고 API, 광고 자리, 30일 집계. */
.ads-notice { padding: 12px 14px; border-radius: 10px; background: var(--chip, rgba(226, 102, 58, 0.1)); border-left: 4px solid #e2663a; }
.ads-switch { align-items: flex-start; gap: 10px; }
.ads-switch input { margin-top: 4px; }
.ads-agreed, .ads-size, .ads-filtered { font-size: 0.88rem; opacity: 0.8; }
.ads-partner { margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--lantern); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 0.92rem; }
.ads-api pre { overflow-x: auto; }
.ads-slot-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.ads-slot-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid rgba(127, 127, 127, 0.25); border-radius: 10px; }
.ads-slot-list li strong { min-width: 8em; }
.ads-slot-list .ads-off { opacity: 0.6; }
.ads-slot-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; align-items: end; margin-top: 10px; }
.ads-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 0; }
.ads-nums div { padding: 10px 12px; border-radius: 10px; background: rgba(127, 127, 127, 0.08); }
.ads-nums dt { font-size: 0.8rem; opacity: 0.75; }
.ads-nums dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 700; }

/* ---- 대시보드 pages (owner 11/11 items 1·11, public/owner.js PAGE) ----
   The console shell (left menu, top bar, page widths) is public/owner-console.css. */

/* dashboard head: the space on the left, the three numbers on the right (stacked on a phone) */
.dash { padding-top: 4px; }
.dash-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.dash-kicker { margin: 0 0 2px; font-size: 0.8rem; color: var(--ink-2); }
.page .dash-name { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.2; }
.dash-open { display: inline-block; margin-top: 6px; font-size: 0.88rem; }
.dash-sum { display: grid; grid-template-columns: repeat(3, minmax(96px, auto)); gap: 0; margin: 0; }
.dash-sum div { padding: 2px 16px; border-left: 1px solid var(--rule); }
.dash-sum dt { font-size: 0.78rem; color: var(--ink-2); }
.dash-sum dd { margin: 2px 0 0; font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash > .status:empty { display: none; }
.dash > .status { margin: 12px 0 0; }
/* 처리할 일: warnings first with the lantern edge */
.dash-todo { margin: 18px 0 0; }
.page .dash-todo h3, .page .dash-board h3 { font-size: 1rem; margin: 0 0 8px; }
.todo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo-list li { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.todo-list li[data-tone="warn"] { border-color: var(--lantern); border-left-width: 4px; }
.todo-list a { display: block; padding: 10px 14px; text-decoration: none; color: var(--ink); }
.todo-list a::after { content: " →"; color: var(--ink-2); }
.todo-list a:hover, .todo-list a:focus-visible { background: var(--paper); border-radius: 10px; }
.todo-list .todo-none, .board-list .todo-none { padding: 10px 14px; color: var(--ink-2); border-style: dashed; }
.dash-stats { margin: 22px 0 0; }
.dash-board { margin: 22px 0 6px; }
.dash-board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board-list li:not(.todo-none) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.board-list li a { color: var(--ink); text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.board-list li a:hover { text-decoration: underline; }
.board-meta { color: var(--ink-2); font-size: 0.82rem; white-space: nowrap; }
@media (max-width: 560px) {
  .dash-head { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .dash-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-sum div { padding: 0 8px; }
  .dash-sum div:first-child { border-left: 0; padding-left: 0; }
  .dash-sum dd { font-size: 1rem; white-space: normal; }
}

/* The chat button on the dashboard pages (controller 11/12: fixed at the bottom-right it lay over the right-most stat
   card). public/owner.js puts it in the top bar, left of 목록으로, so it never lies over a card; 44px with negative
   block margins, so the bar keeps its height. The console's work area runs to the right edge of the screen (owner
   tg 12373 「풀 대시보드」), so there is no free margin to float it in: it stays in the top bar at every width. */
.top > .chat-fab { position: relative; right: auto; bottom: auto; z-index: auto; flex: none; width: 44px; height: 44px; margin: -5px 10px -5px auto; }
.top > .chat-fab > svg { width: 22px; height: 22px; }
/* in the bar, the people badge (public/chat-badge.css) smaller and higher, so it does not cover the 44px button's icon */
.top > .chat-fab .chat-fab-n { top: -11px; right: -14px; height: 20px; min-width: 22px; gap: 3px; padding: 0 6px; border-radius: 10px; font-size: 12px; line-height: 16px; }
.top > .chat-fab .chat-fab-n svg { width: 12px; height: 12px; }
.top > .chat-fab .chat-fab-d { height: 16px; }
.top > .chat-fab .chat-fab-new { width: 18px; height: 18px; bottom: -4px; left: -6px; font-size: 11px; }

/* 둘러보기 사진 (owner.html #shots-box, owner-shots.js): the card's hover pictures in order, two a row on phones. */
.shots-count { margin: 0 0 8px; font-weight: 700; }
.shots-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.shots-item { min-width: 0; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 8px; }
.shots-item.is-over { opacity: .6; }
.shots-fig { position: relative; margin: 0; }
.shots-fig img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 8px; background: var(--rule); }
.shots-no { position: absolute; top: 6px; left: 6px; min-width: 1.6em; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; font-size: .8rem; font-weight: 800; text-align: center; }
.shots-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; }
.shots-src { font-weight: 700; color: var(--moss); }
.shots-src.is-ours { color: var(--lantern); }
.shots-over { color: var(--muted, inherit); }
.shots-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.shots-btns .btn { flex: 1 1 auto; min-width: 0; padding-inline: 8px; }
.shots-btns .btn:disabled { opacity: .45; cursor: default; }
.shots-empty { color: var(--muted, inherit); }
.shots-wait { margin: 0 0 12px; padding-left: 1.1em; display: grid; gap: 4px; font-size: .9rem; }
.shots-wait-item.is-rejected strong { color: var(--danger, #c0392b); }
.shots-wait-item .btn { margin-left: 4px; padding: 2px 10px; }
