/* 고객 화면(/my/, 10/23 사장님 "이대로 붙어야지"): 회사 화면(ui/web/company.css)과 같은 틀 —
   왼쪽 176px 묶음 메뉴(10/23 사장님 "크기가 너무 크잖아·위아래 간격도 멀고" → 촘촘하게)(흰 판·1px 선·고른 메뉴 연초록), 46px 머리줄(리뷰트리 위쪽 줄처럼 낮게), 밝은 회백 바탕, 안 창에 회사 화면과 같은 상품 페이지.
   850px 아래는 메뉴를 서랍으로. 인라인 스타일 금지(CSP). */
body.my-page { margin: 0; min-height: 100dvh; -webkit-text-size-adjust: 100%; }
body.my-page ::selection { background: var(--accent-w); color: var(--text); }
body.my-page :is(input, textarea) { caret-color: var(--accent); }
body.my-page :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.my-page [hidden]:not(.my-frame) { display: none !important; }

/* ── 틀 ── */
.my-shell { display: grid; grid-template-columns: 176px minmax(0, 1fr); height: 100dvh; overflow: hidden; }
.my-rail { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--sep); }
.my-brand { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 9px 14px; color: var(--text); }
.my-brand img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.my-brand-word { font-size: 15px; font-weight: 760; line-height: 1.2; letter-spacing: -.04em; }
.my-nav { flex: 1; min-height: 0; overflow: hidden auto; padding: 0 2px 12px 6px; scrollbar-width: thin; scrollbar-color: var(--sep-2) transparent; }
.my-nav-group { margin: 2px 0 10px; }
.my-nav-label { margin: 0; padding: 0 9px 3px; font-size: 11px; font-weight: 600; line-height: 1.5; color: #5f7066; }
/* 메뉴 묶음 접기(10/23) — 이름 줄 오른쪽 작은 단추, 접으면 그 묶음 메뉴를 숨김 */
.my-nav-head { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.my-nav-head .my-nav-label { flex: 1; min-width: 0; padding-bottom: 0; }
.my-nav-fold { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-right: 2px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #5f7066; cursor: pointer; }
.my-nav-fold:hover { background: #edf3ef; color: #233f2d; }
.my-nav-fold:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.my-nav-fold svg { transition: transform .15s ease; }
.my-nav-group[data-folded="1"] .my-nav-fold svg { transform: rotate(-90deg); }
.my-nav-group[data-folded="1"] > :not(.my-nav-head) { display: none; }
.my-nav-group[data-folded="1"] .my-nav-head { margin-bottom: 0; }
.my-nav a { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 34px; padding: 6px 9px; border-radius: 6px; color: #52665b; font-size: 12px; font-weight: 600; line-height: 1.35; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.my-nav a:hover { background: #f0f5f1; color: #233f2d; }
.my-nav a[aria-current=page] { color: #1b5a3e; background: var(--accent-w); font-weight: 700; }
.my-nav img { width: 16px; height: 16px; flex: none; border-radius: 4px; }
.my-nav-sep { border: 0; border-top: 1px solid var(--sep); margin: 5px 9px; }   /* 리뷰 · 미션 사이(12/01 — 회사 화면 web-nav-sep 과 같은 모양) */
.my-nav .sn-mark, .my-nav .my-nav-ico { width: 16px; height: 16px; flex: none; display: inline-flex; }
.my-nav small { margin-left: auto; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.my-nav .sn-ig { color: #c13584; } .my-nav .sn-yt { color: #e62117; } .my-nav .sn-fb { color: #1877f2; } .my-nav .sn-tt, .my-nav .sn-x { color: #20242a; } .my-nav .sn-tg { color: #229ed9; }
.my-rail-foot { display: grid; gap: 1px; padding: 9px 14px 11px; border-top: 1px solid var(--sep); font-size: 11.5px; color: var(--text-3); line-height: 1.5; }
.my-rail-foot b { color: var(--text-2); font-weight: 650; }

.my-work { min-width: 0; min-height: 0; display: grid; grid-template-rows: 46px minmax(0, 1fr); }
.my-head { display: flex; align-items: center; gap: 12px; padding: 0 18px; }
.my-head h1 { margin: 0; font-size: 15px; line-height: 1.3; letter-spacing: -.02em; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.my-menu { display: none; }
.my-who { margin-left: auto; display: flex; align-items: center; gap: 8px 14px; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.my-who-item { display: inline-flex; align-items: baseline; gap: 6px; }
.my-who-name { color: var(--text); font-weight: 650; }
.my-point { font-size: 12.5px; color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.my-head .btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid #d1ddd5; border-radius: 6px; background: #fff; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: background-color .15s ease; }
.my-head .btn:hover { background: var(--fill); }
.my-stage { min-height: 0; padding: 0 16px 14px; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.my-stage > .my-frame, .my-stage > .my-board { grid-area: 1 / 1; }
.my-frame { display: block; width: 100%; height: 100%; border: 1px solid var(--sep); border-radius: 10px; background: #fff; }
/* 숨겨도 안 창의 크기를 유지해야 보고 있던 스크롤 위치가 남는다. */
.my-frame[hidden] { visibility: hidden; }
.my-loading { padding: 48px 28px; color: var(--text-3); }
/* 대시보드(10/26) — 회사 화면과 같은 숫자 줄(wk-strip)·판넬(wk-panel) */
.my-board { height: 100%; overflow: auto; display: grid; align-content: start; gap: 16px; padding-bottom: 8px; }
.my-board .wk-strip { margin: 0; }
.my-board-strip .is-main strong { color: var(--accent); } .my-board-strip .is-bad strong { color: var(--red); }
.my-board-scroll { overflow-x: auto; }
.my-matrix th, .my-matrix td, .my-recent th, .my-recent td { padding: 9px 14px; border-top: 1px solid var(--sep); text-align: left; white-space: nowrap; }
.my-matrix thead th, .my-recent thead th { border-top: 0; font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--fill); }
.my-matrix .num, .my-recent .num { text-align: right; font-variant-numeric: tabular-nums; }
.my-matrix th[scope=row] a { color: var(--text); font-weight: 600; text-decoration: none; } .my-matrix th[scope=row] a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.my-n-link { display: inline-block; min-width: 28px; padding: 1px 6px; border-radius: 6px; font-weight: 700; color: var(--accent); text-decoration: none; text-align: center; }
.my-n-link:hover { background: var(--accent-w); } .my-n-link.is-bad { color: var(--red); background: var(--red-w); }
.my-zero { color: #b9c5bd; }
.my-alert { margin: 12px 16px 14px; padding: 12px 14px; border: 1px solid #efc9cb; border-radius: 10px; background: var(--red-w); }
.my-alert h3 { margin: 0 0 6px; font-size: 13px; color: var(--red); }
.my-alert ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.my-alert a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; color: var(--text); text-decoration: none; font-size: 13.5px; } .my-alert a:hover { text-decoration: underline; text-underline-offset: 3px; }
.my-alert small { color: var(--text-3); font-size: 12px; }
.my-board-note { margin: 0; padding: 0 16px 14px; font-size: 13px; } .my-board-note a { color: var(--accent); font-weight: 600; }
.my-as { display: inline-block; padding: 1px 5px; margin-right: 5px; border-radius: 4px; color: #276385; background: #e4f0f6; font-size: 11px; font-weight: 600; vertical-align: 1px; }   /* 회사 화면 목록 pd-tag와 같은 색 */
.my-recent-name { color: var(--text); text-decoration: none; font-weight: 600; } .my-recent-name:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.my-board .wk-tools .btn { height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border: 1px solid #d1ddd5; border-radius: 6px; background: #fff; color: var(--text); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.my-board .wk-tools .btn:hover { background: var(--fill); }

/* ── 로그인(한 입구, 10/23 사장님 '고객도 관리자도 쓰는 화면 · 이쁘게') — 왼쪽 리뷰트리 초록 판(로고 별빛 노랑만 포인트), 오른쪽 회백 바탕에 흰 로그인 판.
   860px 아래는 위아래(초록 띠 짧게). 그림자는 로고 원판에만, 나머지는 1px 선(회사 화면 규칙) ── */
.my-toast { margin: 0 0 16px; padding: 10px 14px; border: 1px solid #c6dccf; border-radius: 8px; background: var(--accent-w); color: var(--accent); font-size: 14px; line-height: 1.5; }
.my-toast.error { border-color: #e9c3c5; background: var(--red-w); color: var(--red); }
.my-gate { box-sizing: border-box; width: 100%; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 44fr) 56fr; word-break: keep-all; overflow-wrap: anywhere; }   /* 한글은 띄어쓰기에서만 줄바꿈('리뷰|부터' 갈라짐 막음) */
.my-gate-brand { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 44px 52px 34px;
  background: linear-gradient(162deg, #23694f 0%, #1c5843 55%, #164536 100%); color: #eef6f1; }
.my-gate-brand::after { content: ''; position: absolute; right: -150px; bottom: -160px; width: 600px; height: 600px; background: url('/my/logo-white.png') center / contain no-repeat; opacity: .07; pointer-events: none; }
.my-gate-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.my-gate-mark { box-sizing: border-box; width: 46px; height: 46px; padding: 5px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(6, 28, 20, .28); }
.my-gate-name { margin: 0; font-size: 19px; font-weight: 760; letter-spacing: -.035em; color: #fff; }
.my-gate-copy { position: relative; z-index: 1; max-width: 440px; }
.my-gate-copy h2 { margin: 0 0 14px; font-size: clamp(27px, 2.5vw, 36px); line-height: 1.28; letter-spacing: -.035em; font-weight: 720; color: #fff; text-wrap: balance; }
.my-gate-copy p { margin: 0; font-size: 15px; line-height: 1.7; color: #c9e0d3; }
.my-gate-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 11px; }
.my-gate-list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.45; color: #e3efe8; }
.my-gate-list svg { flex: none; width: 16px; height: 16px; color: #f2c94c; }
.my-gate-foot { position: relative; z-index: 1; margin: 0; font-size: 12px; color: #9fc3b0; letter-spacing: .01em; }
.my-gate-main { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.my-gate-card { box-sizing: border-box; width: min(404px, 100%); padding: 36px 34px 28px; background: #fff; border: 1px solid var(--sep); border-radius: 12px; animation: my-rise .55s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes my-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.my-gate-card h1 { margin: 0 0 24px; font-size: 24px; line-height: 1.3; letter-spacing: -.03em; font-weight: 720; color: var(--text); }
.my-gate-field { display: grid; gap: 7px; margin: 0 0 16px; font-size: 13px; font-weight: 650; color: var(--text); }
.my-gate-keep { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; justify-self: start; margin: -4px 0 4px; font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; }   /* 로그인 상태 유지(10/27) */
.my-gate .my-gate-keep input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--accent); cursor: pointer; box-shadow: none; }   /* 위 .my-gate input(46px 칸)보다 앞서게 */
.my-gate .my-gate-keep input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.my-gate-input { position: relative; }
.my-gate input { box-sizing: border-box; width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 1px solid #c9d6ce; border-radius: 8px; background: #fff; color: var(--text);
  font: 500 15.5px/1.2 var(--wk-font); transition: border-color .15s ease, box-shadow .15s ease; }
.my-gate input:hover { border-color: #a8bcb0; }
.my-gate input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(32, 98, 76, .16); }
.my-gate input:focus-visible { outline: none; }
.my-gate input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--text); caret-color: var(--accent); }
.my-gate input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px #fff inset, 0 0 0 3px rgba(32, 98, 76, .16); }
.my-gate .has-eye input { padding-right: 48px; }
.my-gate-eye { position: absolute; top: 4px; right: 4px; width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; transition: background-color .15s, color .15s; }
.my-gate-eye:hover { background: var(--fill); color: var(--text); }
.my-gate-eye[aria-pressed="true"] { color: var(--accent); }
.my-gate-eye svg { width: 18px; height: 18px; }
.my-gate-go { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; height: 48px; margin-top: 10px; border: 0; border-radius: 8px; background: var(--accent); color: #fff;
  font: 650 15.5px/1 var(--wk-font); letter-spacing: -.01em; cursor: pointer; transition: background-color .15s ease, transform .1s ease; }
.my-gate-go:hover:not(:disabled) { background: var(--accent-h); }
.my-gate-go:active:not(:disabled) { transform: translateY(1px); }
.my-gate-go:disabled { cursor: progress; background: #3a7a63; }
.my-gate-go.is-busy::before { content: ''; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: my-spin .7s linear infinite; }
@keyframes my-spin { to { transform: rotate(360deg); } }

/* ── 좁은 화면: 메뉴는 서랍(회사 화면 850px 기준과 같게) ── */
.my-scrim { display: none; }
@media (max-width: 850px) {
  .my-nav-fold { width: 40px; height: 40px; }
  .my-shell { grid-template-columns: minmax(0, 1fr); }
  .my-rail { position: fixed; inset: 0 auto 0 0; z-index: 20; width: min(280px, 84vw); transform: translateX(-102%); transition: transform .22s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 16px 48px rgba(16, 32, 24, .18); }
  .my-shell.is-open .my-rail { transform: none; }
  .my-shell.is-open .my-scrim { display: block; position: fixed; inset: 0; z-index: 19; background: #20362d55; }
  .my-menu { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: -8px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
  .my-work { grid-template-rows: auto minmax(0, 1fr); }
  .my-head { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; }
  .my-head h1 { font-size: 19px; flex: 1; }
  .my-who { width: 100%; justify-content: space-between; gap: 10px; }
  .my-head .btn { height: 40px; }
  .my-stage { padding: 0 8px 8px; }
  .my-gate { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .my-gate-brand { padding: 22px 20px 24px; gap: 16px; }
  .my-gate-brand::after { width: 300px; height: 300px; right: -90px; bottom: -120px; }
  .my-gate-mark { width: 40px; height: 40px; }
  .my-gate-copy h2 { margin-bottom: 6px; font-size: 21px; }
  .my-gate-copy p { font-size: 13.5px; }
  .my-gate-list, .my-gate-foot { display: none; }
  .my-gate-main { place-items: start center; padding: 18px 16px 32px; }
  .my-gate-card { padding: 26px 20px 22px; }
  .my-gate input { font-size: 16px; }   /* 아이폰은 16px보다 작은 칸을 누르면 화면을 확대함 */
}
@media (prefers-reduced-motion: reduce) { .my-rail, .my-nav a, .my-nav-fold svg { transition: none; } .my-gate-card { animation: none; } .my-gate-go.is-busy::before { animation-duration: 1.6s; } }
/* API 열쇠 — 메뉴는 남기고 조작만 잠금 */
.my-nav a[aria-disabled="true"], .my-nav a[aria-disabled="true"]:hover { color: #9aa8a0; background: transparent; cursor: not-allowed; transition: none; }
.my-nav .my-api-lock { margin-left: auto; flex-shrink: 0; }
