/* 꽃집남편 — 소비자용 스타일
 *
 * 도구(app.css)와 <같은 브랜드 색, 다른 밀도>입니다.
 * 도구는 매일 숫자를 보는 화면이라 촘촘하고, 여기는 처음 오신 분이 구경하는 화면이라 넉넉합니다.
 * 파일을 나눈 이유도 그것입니다 — 한쪽을 고칠 때 다른 쪽이 흔들리지 않게.
 */
:root{
  /* 바탕의 옅은 분홍은 남깁니다 — 여기는 손님이 구경하는 화면이라
   * 도구 화면처럼 사무적일 필요가 없습니다. 다만 글자와 선은 도구와 같은
   * 무채색으로 맞춥니다. 사진이 주인공인 화면에서 회색에 색이 섞이면
   * 옆의 꽃 사진 색까지 같이 흐려 보입니다. */
  --bg:#fdf8f9; --surface:#ffffff; --surface-2:#f8f6f6; --line:#eeeaea;
  --line-2:#dedada;
  --ink:#151515; --ink-2:#616161; --ink-3:#9a9a9a;
  --brand:#b4436c; --brand-soft:#fdeff4; --brand-ink:#8d2f52;
  --ok:#1f8a4d; --ok-soft:#e9f6ee;
  --warn:#b57500; --warn-soft:#fdf4e3;
  --bad:#dc2f26; --bad-soft:#fdedec;
  --radius:14px; --radius-s:10px;
  --shadow:none;
  --shadow-float:0 2px 6px rgba(0,0,0,.06),0 12px 28px rgba(0,0,0,.13);
  color-scheme:light;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#141112; --surface:#1c1c1c; --surface-2:#242222; --line:#2f2f2f;
    --line-2:#3b3b3b;
    --ink:#f2f2f2; --ink-2:#b0b0b0; --ink-3:#848484;
    --brand:#e98bab; --brand-soft:#3a2029; --brand-ink:#f4b6ca;
    --ok:#7dd39b; --ok-soft:#1c2b21;
    --warn:#e5b45c; --warn-soft:#2e2617;
    --bad:#f2887f; --bad-soft:#33201e;
    --shadow:none;
    --shadow-float:0 2px 8px rgba(0,0,0,.4),0 14px 32px rgba(0,0,0,.45);
    color-scheme:dark;
  }
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:"Pretendard","Apple SD Gothic Neo","Malgun Gothic",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  font-size:15.5px; line-height:1.65; -webkit-text-size-adjust:100%;
  padding-bottom:76px;      /* 아래 탭바 자리 */
}
h1,h2,h3{margin:0; font-weight:800; letter-spacing:-.02em}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit}
img{max-width:100%}

/* ── 위·아래 ─────────────────────────────────────────────────────────── */
.ctop{
  position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:10px;
  padding:11px 16px; background:var(--surface); border-bottom:1px solid var(--line);
}
.ctop .brand{display:flex; align-items:center; gap:8px; font-size:17px}
.ctop .owner{
  margin-left:auto; font-size:12px; font-weight:600; color:var(--ink-3);
  border:1px solid var(--line); border-radius:999px; padding:5px 11px;
}
.ctop .owner:hover{color:var(--brand-ink); border-color:var(--brand)}

main{max-width:720px; margin:0 auto; padding:16px 14px 24px}

#tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:40;
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
  background:var(--surface); border-top:1px solid var(--line);
  padding-bottom:env(safe-area-inset-bottom);
}
#tabbar a{
  display:flex; flex-direction:column; align-items:center; gap:2px;
  padding:9px 2px 8px; font-size:11px; font-weight:600; color:var(--ink-3);
}
#tabbar a span{font-size:19px; line-height:1.1}
#tabbar a svg{width:23px; height:23px; display:block}
#tabbar a.on{color:var(--brand)}
#tabbar a.on svg{stroke-width:2.1}

.cfoot{
  max-width:720px; margin:0 auto; padding:20px 16px 28px;
  color:var(--ink-3); font-size:12px; line-height:1.7; text-align:center;
}
.cfoot .links a{color:var(--brand-ink); font-weight:600}

/* ── 카드 · 제목 ─────────────────────────────────────────────────────── */
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow); margin-bottom:14px;
}
.card > h2{
  font-size:15.5px; margin-bottom:12px; display:flex; align-items:center; gap:7px;
}
.card > h2 .hint{font-size:12px; font-weight:500; color:var(--ink-3)}
.card > h2 .more2{margin-left:auto; font-size:12.5px; font-weight:600}
.card > h2 .more2 a{color:var(--brand-ink)}
.chead{margin:4px 0 16px}
.chead h1{font-size:23px; line-height:1.3}
.chead p{margin:7px 0 0; color:var(--ink-2); font-size:14px}
.sub{color:var(--ink-2); font-size:13.5px}
.mt{margin-top:14px} .mt-s{margin-top:8px}
.empty{color:var(--ink-3); text-align:center; padding:22px 8px; margin:0; font-size:14px}
.empty a{color:var(--brand-ink); font-weight:700}
.loading{color:var(--ink-3); text-align:center; padding:26px; margin:0}
.cnt{color:var(--ink-3); font-size:12.5px; font-weight:700; margin:0 0 10px 4px}
.back{display:inline-block; color:var(--brand-ink); font-weight:700; font-size:13.5px; margin-bottom:10px}
.more{display:block; text-align:center; color:var(--brand-ink); font-weight:700;
  font-size:13.5px; margin-top:12px; padding-top:12px; border-top:1px solid var(--line)}
.fineprint{color:var(--ink-3); font-size:12px; line-height:1.7; padding:0 4px; margin:14px 0 0}
.fineprint a{color:var(--brand-ink); font-weight:600}
.linkish{background:none; border:0; padding:0; color:var(--ink-3);
  font-size:12.5px; font-weight:600; cursor:pointer; text-decoration:underline}

/* ── 버튼 ────────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  background:var(--brand); color:#fff; border:1px solid var(--brand);
  border-radius:999px; padding:11px 20px; font-size:14.5px; font-weight:700;
  cursor:pointer; white-space:nowrap; transition:.15s;
}
.btn:hover{opacity:.9}
.btn:disabled{opacity:.55; cursor:default}
.btn.ghost{background:var(--surface); color:var(--ink); border-color:var(--line)}
.btn.ghost:hover{border-color:var(--brand); color:var(--brand-ink)}
.btn.big{padding:14px 26px; font-size:15.5px}
.btn.sm{padding:7px 14px; font-size:13px}
.btnrow{display:flex; gap:9px; flex-wrap:wrap; margin-top:4px}
.btnrow .btn{flex:1; min-width:140px}
.hrow{display:flex; gap:9px; flex-wrap:wrap; margin-top:14px}

/* ── 히어로 ──────────────────────────────────────────────────────────── */
.hero{
  background:linear-gradient(160deg,var(--brand-soft),var(--surface));
  border:1px solid var(--line); border-radius:var(--radius);
  padding:28px 22px; margin-bottom:16px; box-shadow:var(--shadow);
}
.hero h1{font-size:27px; line-height:1.32; letter-spacing:-.03em}
.hero p{margin:12px 0 0; color:var(--ink-2); font-size:14.5px; line-height:1.7}

/* ── 입력 ────────────────────────────────────────────────────────────── */
.cfield{display:block; margin-bottom:14px}
.cfield .lb{display:block; font-size:12.5px; font-weight:700; color:var(--ink-2); margin-bottom:6px}
.cfield .nt{display:block; font-size:12px; color:var(--ink-3); margin-top:5px; line-height:1.6}
.cfield input, .cfield select, .cfield textarea{
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius-s);
  background:var(--surface-2); font-size:15px; color:inherit;
}
.cfield input:focus, .cfield select:focus, .cfield textarea:focus{
  outline:none; border-color:var(--brand); background:var(--surface);
}
.cfield textarea{resize:vertical; line-height:1.6}
.csearch input{
  width:100%; padding:12px 16px; border:1px solid var(--line); border-radius:999px;
  background:var(--surface-2); font-size:15px; color:inherit;
}
.csearch input:focus{outline:none; border-color:var(--brand); background:var(--surface)}

.chips{display:flex; flex-wrap:wrap; gap:7px}
.chipbar{margin-bottom:14px}
.chips button{
  border:1px solid var(--line); background:var(--surface); border-radius:999px;
  padding:8px 15px; font-size:13.5px; font-weight:600; color:var(--ink-2); cursor:pointer;
  transition:.15s;
}
.chips button:hover{border-color:var(--brand); color:var(--brand-ink)}
.chips button.on{background:var(--brand); color:#fff; border-color:var(--brand); font-weight:700}
@media (prefers-color-scheme:dark){ .chips button.on, .btn{color:#241318} }

/* ── 예시 안내 ───────────────────────────────────────────────────────── */
.demobar{
  background:var(--warn-soft); color:var(--warn); border-radius:var(--radius-s);
  padding:12px 15px; font-size:13px; line-height:1.65; margin-bottom:12px; font-weight:500;
}
.tagdemo{
  display:inline-block; background:var(--surface-2); color:var(--ink-3);
  border:1px solid var(--line); border-radius:999px;
  padding:1px 8px; font-size:10.5px; font-weight:700; vertical-align:middle; margin-left:4px;
}

/* ── 색 카드(사진 자리) ──────────────────────────────────────────────── */
.thumb{
  display:flex; align-items:center; justify-content:center; flex:0 0 auto;
  border-radius:var(--radius-s); font-size:26px;
}
.thumb.t-pink{background:#fbe4ec} .thumb.t-red{background:#fbdcdc}
.thumb.t-cream{background:#f8efe0} .thumb.t-green{background:#e4f0e6}
.thumb.t-yellow{background:#fbf1d8} .thumb.t-white{background:#f1eeee}
@media (prefers-color-scheme:dark){
  .thumb.t-pink{background:#3a2029} .thumb.t-red{background:#3a2220}
  .thumb.t-cream{background:#332c20} .thumb.t-green{background:#212b23}
  .thumb.t-yellow{background:#332c1c} .thumb.t-white{background:#2b2726}
}

/* ── 가게 카드 ───────────────────────────────────────────────────────── */
.shopcard{
  display:flex; gap:13px; align-items:flex-start;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:14px; margin-bottom:10px; box-shadow:var(--shadow); transition:.15s;
}
.shopcard:hover{border-color:var(--brand)}
.shopcard .thumb{width:58px; height:58px}
.sc-b{display:flex; flex-direction:column; gap:3px; min-width:0; flex:1}
.sc-b > b{font-size:15.5px}
.sc-r{font-size:12.5px; color:var(--ink-3); font-weight:600}
.sc-i{font-size:13px; color:var(--ink-2); line-height:1.55}
.sc-p{display:flex; gap:5px; flex-wrap:wrap; margin-top:3px}
.sc-p i{
  font-style:normal; font-size:11px; font-weight:700; color:var(--brand-ink);
  background:var(--brand-soft); border-radius:999px; padding:2px 8px;
}
.cap{font-weight:700}
.cap.c-여유{color:var(--ok)} .cap.c-보통{color:var(--ink-2)} .cap.c-마감임박{color:var(--bad)}

/* ── 가게 상세 ───────────────────────────────────────────────────────── */
.shophead h1{font-size:22px}
.shophead .sr{margin:6px 0 0; font-size:13px; color:var(--ink-3); font-weight:600}
.shophead .si{margin:10px 0 0; color:var(--ink-2); font-size:14px; line-height:1.7}
.kv{margin-top:14px; display:flex; flex-direction:column; gap:8px}
.kv > div{display:flex; gap:10px; font-size:13.5px}
.kv b{flex:0 0 76px; color:var(--ink-3); font-size:12.5px; font-weight:700; padding-top:1px}
.kv span{color:var(--ink); line-height:1.6}

.pfgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:11px}
.pf{
  display:flex; flex-direction:column; gap:8px;
  border:1px solid var(--line); border-radius:var(--radius-s); padding:10px;
  background:var(--surface-2); transition:.15s;
}
.pf:hover{border-color:var(--brand); background:var(--surface)}
.pf .thumb{width:100%; height:96px}
.pf-b{display:flex; flex-direction:column; gap:2px}
.pf-b b{font-size:13.5px}
.pf-b span{font-size:11.5px; color:var(--ink-3)}
.pf-b .like{color:var(--brand-ink); font-weight:700; margin-top:3px}

/* ── 자랑 피드 ───────────────────────────────────────────────────────── */
.feedgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:9px}
.feedgrid.big{grid-template-columns:minmax(0,1fr); gap:12px}
.pcard{display:flex; flex-direction:column; gap:5px}
.pcard .thumb{width:100%; height:88px}
.pc-b{font-size:11.5px; color:var(--ink-2); display:flex; align-items:center; gap:3px; flex-wrap:wrap}

.fcard{
  display:flex; gap:13px; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:14px; box-shadow:var(--shadow);
}
.fcard .thumb{width:82px; height:82px}
.fc-b{flex:1; min-width:0; display:flex; flex-direction:column; gap:6px}
.fc-h{display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:14px}
.fc-h .band{
  font-size:11px; font-weight:700; color:var(--brand-ink);
  background:var(--brand-soft); border-radius:999px; padding:2px 8px;
}
.fc-b p{margin:0; font-size:13.5px; color:var(--ink-2); line-height:1.6}
.madeby{font-size:12.5px; font-weight:700; color:var(--brand-ink)}
.fc-b .btn{align-self:flex-start}

/* ── 꽃 정보 ─────────────────────────────────────────────────────────── */
.glist{display:flex; flex-direction:column; gap:9px}
.grow{
  display:flex; align-items:center; gap:12px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:14px; box-shadow:var(--shadow); transition:.15s;
}
.grow:hover{border-color:var(--brand)}
.gi{
  flex:0 0 auto; width:42px; height:42px; border-radius:12px; background:var(--brand-soft);
  display:flex; align-items:center; justify-content:center; font-size:20px;
}
.gt{display:flex; flex-direction:column; gap:2px; min-width:0; flex:1}
.gt b{font-size:14.5px}
.gt span{font-size:12.5px; color:var(--ink-2); line-height:1.5}
.gc{
  flex:0 0 auto; font-size:11px; font-weight:700; color:var(--ink-3);
  border:1px solid var(--line); border-radius:999px; padding:2px 9px;
}
.guide{padding:22px}
.guide .gcat{font-size:12px; font-weight:700; color:var(--brand-ink); margin-bottom:8px}
.guide h1{font-size:23px; line-height:1.35}
.guide .lead{margin:12px 0 4px; color:var(--ink-2); font-size:14.5px; line-height:1.75}
.guide h3{
  font-size:14.5px; margin:22px 0 7px; color:var(--brand-ink);
  padding-top:16px; border-top:1px solid var(--line);
}
.guide p{margin:0; font-size:14.5px; line-height:1.85}
.cta{background:var(--brand-soft); border-color:transparent}
.cta h2{color:var(--brand-ink)}

/* ── 기념일 ──────────────────────────────────────────────────────────── */
.soon{background:var(--brand-soft); border-color:transparent}
.soon h2{color:var(--brand-ink)}
.soonrow{
  display:flex; align-items:center; gap:12px; padding:11px 13px; margin-bottom:8px;
  background:var(--surface); border-radius:var(--radius-s);
}
.soonrow .d{
  flex:0 0 auto; min-width:46px; text-align:center; font-size:13px; font-weight:800;
  color:#fff; background:var(--brand); border-radius:999px; padding:4px 9px;
}
.soonrow .t{flex:1; display:flex; flex-direction:column; min-width:0}
.soonrow .t b{font-size:14px}
.soonrow .t span{font-size:12px; color:var(--ink-3)}
.soonrow .go{font-size:12.5px; font-weight:700; color:var(--brand-ink); white-space:nowrap}

.daylist{display:flex; flex-direction:column; gap:8px}
.dayrow{
  display:flex; align-items:center; gap:11px; padding:12px 13px;
  background:var(--surface-2); border:1px solid var(--line); border-radius:var(--radius-s);
}
.dayrow.soon{background:var(--brand-soft); border-color:transparent}
.dayrow .d{
  flex:0 0 auto; min-width:44px; text-align:center; font-size:12.5px; font-weight:800;
  color:var(--ink-2);
}
.dayrow.soon .d{color:var(--brand-ink)}
.dayrow .t{flex:1; display:flex; flex-direction:column; min-width:0}
.dayrow .t b{font-size:14px}
.dayrow .t span{font-size:11.5px; color:var(--ink-3)}
.iconbtn{
  flex:0 0 auto; background:none; border:0; color:var(--ink-3);
  font-size:18px; cursor:pointer; padding:2px 6px; line-height:1;
}
.iconbtn:hover{color:var(--bad)}

.pickedshop{
  background:var(--brand-soft); color:var(--brand-ink); border-radius:var(--radius-s);
  padding:11px 15px; font-size:13.5px; margin-bottom:12px; font-weight:600;
}
.pickedshop .linkish{color:var(--brand-ink); margin-left:6px}

/* ── 보냈습니다 ──────────────────────────────────────────────────────── */
.sent{text-align:center; padding:34px 22px}
.sent .big-emo{font-size:52px; line-height:1}
.sent h1{font-size:24px; margin:14px 0 10px}
.sent p{margin:0 0 10px; color:var(--ink-2); font-size:14.5px; line-height:1.75}
.sent .hrow{justify-content:center}
.note-why p{margin:0 0 9px; font-size:14px; line-height:1.75; color:var(--ink-2)}

/* ── 토스트 ──────────────────────────────────────────────────────────── */
.toast{
  position:fixed; left:50%; bottom:88px; transform:translate(-50%,20px); z-index:90;
  background:var(--ink); color:var(--bg); padding:11px 20px; border-radius:999px;
  font-size:13.5px; font-weight:600; opacity:0; pointer-events:none; transition:.2s;
  max-width:88vw; text-align:center;
}
.toast.on{opacity:1; transform:translate(-50%,0)}

@media(min-width:720px){
  body{padding-bottom:24px}
  #tabbar{
    position:sticky; top:53px; bottom:auto; max-width:720px; margin:0 auto;
    border-top:0; border-bottom:1px solid var(--line); background:var(--bg);
  }
  #tabbar a{flex-direction:row; gap:6px; font-size:13px; padding:11px 4px}
  #tabbar a span{font-size:15px}
  .toast{bottom:28px}
}

/* ── 사진 올리기 ─────────────────────────────────────────────────────
   고르는 자리를 크게 둡니다. 작은 [파일 선택] 버튼은 폰에서 누르기 어렵고,
   무엇보다 <올려도 된다>는 느낌을 주지 못합니다. */
.uprow{display:flex; gap:14px; align-items:flex-start}
.upbtn{
  flex:0 0 auto; width:112px; height:112px; border-radius:var(--radius-s);
  border:2px dashed var(--line); background:var(--surface-2);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  overflow:hidden; transition:.15s;
}
.upbtn:hover{border-color:var(--brand); background:var(--surface)}
.upbtn img{width:100%; height:100%; object-fit:cover}
.upplus{text-align:center; color:var(--ink-3); font-size:24px; line-height:1.2; font-weight:700}
.upplus small{font-size:11.5px; font-weight:600}
.upinfo{display:flex; flex-direction:column; gap:3px; min-width:0; padding-top:4px}
.upinfo b{font-size:13.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.upinfo span{font-size:12px; color:var(--ink-3)}
.upinfo .linkish{align-self:flex-start; margin-top:4px}

.upagree{
  display:flex; gap:9px; align-items:flex-start; margin-top:14px;
  padding:12px 14px; border-radius:var(--radius-s); background:var(--warn-soft);
  font-size:12.5px; line-height:1.65; color:var(--ink); cursor:pointer;
}
.upagree input{flex:0 0 auto; margin-top:3px; width:17px; height:17px; accent-color:var(--brand)}

.minegrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(78px,1fr)); gap:8px; margin-top:8px}
.minecell{position:relative; border-radius:10px; overflow:hidden; aspect-ratio:1}
.minecell img{width:100%; height:100%; object-fit:cover; display:block}
.minecell .iconbtn{
  position:absolute; top:2px; right:2px; background:rgba(0,0,0,.55); color:#fff;
  border-radius:999px; width:22px; height:22px; font-size:15px; line-height:1;
  display:flex; align-items:center; justify-content:center;
}

/* 실제 사진이 들어가는 자리 — 색 카드(.thumb) 를 대신합니다 */
.photo{display:block; border-radius:var(--radius-s); overflow:hidden; background:var(--surface-2)}
.photo img{width:100%; height:100%; object-fit:cover; display:block}
.fcard .photo{width:82px; height:82px; flex:0 0 auto}
.pf .photo{width:100%; height:96px}
.pcard .photo{width:100%; height:88px}

/* ── 로그인 (선택) ───────────────────────────────────────────────────
   가입 없이 다 쓰실 수 있습니다. 그래서 로그인 카드는 <권하는 자리>이지
   막아서는 자리가 아닙니다 — 색을 낮추고 화면 위쪽을 차지하지 않게 둡니다. */
.authcard{background:var(--surface-2); border-style:dashed}
.authrow{display:flex; align-items:center; gap:10px; margin-bottom:6px}
.authrow .who{font-size:14.5px}
.authbtns{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.authbtns .btn{flex:0 1 auto}
/* 네이버 로그인 — BI 가이드: #03C75A · 흰 N 로고 · 흰 글자 (다크 모드에서도 그대로) */
.authbtns .naverbtn{display:inline-flex; align-items:center; gap:8px; background:#03C75A; color:#fff;
  border:none; border-radius:8px; font-weight:700}
.authbtns .naverbtn:hover{background:#02b351; color:#fff}
.authbtns .naverbtn svg{width:13px; height:13px; flex:none; display:block}
/* 카카오 로그인 — 디자인 가이드: #FEE500 · 검은 말풍선 · 검은 글자 85% · 모서리 12px */
.authbtns .kakaobtn{display:inline-flex; align-items:center; gap:8px; background:#FEE500; color:rgba(0,0,0,.85);
  border:none; border-radius:12px; font-weight:700}
.authbtns .kakaobtn:hover{background:#f5dc00; color:rgba(0,0,0,.85)}
.authbtns .kakaobtn svg{width:17px; height:17px; flex:none; display:block}

/* ══════════════════════════════════════════════════════════════════════
   커뮤니티 — 꽃 이야기

   오늘의집 '집들이' 의 구조를 꽃에 맞춘 것입니다.
   원칙 하나 — <사진이 주인공>입니다. 글·버튼은 사진을 방해하지 않게 뒤로 물립니다.
   ══════════════════════════════════════════════════════════════════════ */

.feedtop{margin-bottom:14px}
.ftitle{display:flex; align-items:center; gap:10px}
.ftitle h1{font-size:23px; flex:1}
.fsub{margin:8px 0 12px; color:var(--ink-2); font-size:13.5px; line-height:1.6}
.sortbar{margin-bottom:9px}
.sortbar .chips button{padding:6px 14px; font-size:13px}
.fend{text-align:center; color:var(--ink-3); font-size:13px; padding:18px 0 4px}

/* ── 이야기 카드 ─────────────────────────────────────────────────────
   한 줄에 하나. 폰에서 사진이 크게 보여야 넘겨 보게 됩니다. */
.storygrid{display:flex; flex-direction:column; gap:16px}
@media(min-width:680px){
  .storygrid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px}
}
.story{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column;
}
.scover{position:relative; display:block; aspect-ratio:4/3; background:var(--surface-2)}
.scover .thumb, .scover .photo{width:100%; height:100%; border-radius:0}
.scover .thumb{font-size:42px}
.pcount{
  position:absolute; top:9px; right:9px; background:rgba(0,0,0,.55); color:#fff;
  border-radius:999px; padding:2px 9px; font-size:11.5px; font-weight:700;
}
.scover .tagdemo{position:absolute; top:9px; left:9px; background:rgba(255,255,255,.9)}

.sbody{padding:13px 15px 11px; display:flex; flex-direction:column; gap:6px}
.stitle{font-size:15.5px; font-weight:800; letter-spacing:-.02em; line-height:1.4}
.smeta{display:flex; gap:6px; align-items:center; flex-wrap:wrap}
.scat{
  font-size:11px; font-weight:700; color:var(--ink-2);
  background:var(--surface-2); border-radius:999px; padding:2px 9px;
}
.stext{
  margin:0; font-size:13.5px; color:var(--ink-2); line-height:1.6;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.story .madeby{font-size:12.5px; font-weight:700; color:var(--brand-ink)}

.sact{display:flex; align-items:center; gap:4px; margin-top:4px; padding-top:9px;
  border-top:1px solid var(--line)}
.act{
  display:inline-flex; align-items:center; gap:4px; background:none; border:0;
  padding:5px 8px; border-radius:999px; cursor:pointer;
  font-size:13px; font-weight:600; color:var(--ink-2); transition:.15s;
}
.act:hover{background:var(--surface-2)}
.act.on{color:var(--brand-ink)}
.act.big{font-size:14px; padding:9px 14px; border:1px solid var(--line)}
.act.big.on{border-color:var(--brand); background:var(--brand-soft)}
.sact .who{margin-left:auto; font-size:12px; color:var(--ink-3); font-weight:600}

/* ── 이야기 상세 ─────────────────────────────────────────────────────── */
.shotbox{
  position:relative; border-radius:var(--radius); overflow:hidden;
  background:var(--surface-2); margin-bottom:14px; aspect-ratio:4/3;
}
.shotbox .thumb, .shotbox .photo{width:100%; height:100%; border-radius:0}
.shotbox .thumb{font-size:56px}
.shotnav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:999px; border:0; cursor:pointer;
  background:rgba(0,0,0,.42); color:#fff; font-size:22px; line-height:1;
  display:flex; align-items:center; justify-content:center;
}
.shotnav:hover{background:rgba(0,0,0,.6)}
.shotnav.prev{left:10px} .shotnav.next{right:10px}
.dots{position:absolute; left:0; right:0; bottom:11px; display:flex; justify-content:center; gap:6px}
.dots .dot{
  width:7px; height:7px; border-radius:999px; border:0; padding:0; cursor:pointer;
  background:rgba(255,255,255,.55);
}
.dots .dot.on{background:#fff; width:18px}

.postbody h1{font-size:21px; line-height:1.35}
.pmeta{display:flex; gap:7px; align-items:center; flex-wrap:wrap; margin:10px 0 12px}
.pmeta .who{font-size:12.5px; font-weight:700; color:var(--ink-2)}
.pmeta .when{font-size:12px; color:var(--ink-3)}
.ptext{margin:0; font-size:14.5px; line-height:1.85; color:var(--ink)}
.pact{display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; padding-top:14px;
  border-top:1px solid var(--line)}

.shoplink{background:var(--brand-soft); border-color:transparent}
.shoplink h2{color:var(--brand-ink)}
.shoprow{
  display:flex; align-items:center; gap:12px; padding:11px 13px;
  background:var(--surface); border-radius:var(--radius-s);
}
.shoprow .thumb{width:48px; height:48px}
.sr-b{flex:1; display:flex; flex-direction:column; min-width:0}
.sr-b b{font-size:14.5px}
.sr-b span{font-size:12px; color:var(--ink-3)}
.shoprow .go{font-size:12.5px; font-weight:700; color:var(--brand-ink); white-space:nowrap}
.shoplink .btn{width:100%}

/* ── 댓글 ────────────────────────────────────────────────────────────── */
.cmts{display:flex; flex-direction:column; gap:12px; margin-bottom:4px}
.cmt{padding-bottom:12px; border-bottom:1px solid var(--line)}
.cmt:last-child{border-bottom:0; padding-bottom:0}
.ch{display:flex; align-items:center; gap:8px; margin-bottom:4px}
.ch b{font-size:13px}
.ch span{font-size:11.5px; color:var(--ink-3)}
.ch .linkish{margin-left:auto; font-size:11.5px}
.cmt p{margin:0; font-size:14px; line-height:1.65; color:var(--ink)}

.cwrite{display:flex; flex-direction:column; gap:8px}
.cwrite input, .cwrite textarea{
  width:100%; padding:11px 14px; border:1px solid var(--line); border-radius:var(--radius-s);
  background:var(--surface-2); font-size:14.5px; color:inherit; resize:vertical;
}
.cwrite input:focus, .cwrite textarea:focus{
  outline:none; border-color:var(--brand); background:var(--surface);
}
.cwrite .btn{align-self:flex-end}

/* ── 올리기 (여러 장) ────────────────────────────────────────────────── */
.writecard{border-color:var(--brand); border-style:dashed}
.shots{display:flex; gap:9px; flex-wrap:wrap}
.shot{
  position:relative; width:88px; height:88px; border-radius:var(--radius-s);
  overflow:hidden; background:var(--surface-2); flex:0 0 auto;
}
.shot img{width:100%; height:100%; object-fit:cover; display:block}
.shot .iconbtn{
  position:absolute; top:2px; right:2px; background:rgba(0,0,0,.55); color:#fff;
  border-radius:999px; width:21px; height:21px; font-size:14px; line-height:1;
  display:flex; align-items:center; justify-content:center; border:0; cursor:pointer;
}
.shot.add{
  border:2px dashed var(--line); display:flex; align-items:center; justify-content:center;
  cursor:pointer; text-align:center; color:var(--ink-3); font-size:21px; font-weight:700;
}
.shot.add:hover{border-color:var(--brand); background:var(--surface)}
.shot.add small{font-size:10.5px; font-weight:600}
.note{font-size:12px; color:var(--ink-3); margin:9px 0 0}

.pc-l{font-size:11px; color:var(--ink-3); font-weight:700}
