/* 「내 가게」(/manage/home.html) — 휴대폰 먼저(390폭이 기본). 기존 styles.css 변수만 쓴다. 본문 12px 이상, 주 단추 46px 이상, 그 밖 단추 44px 이상. */
.hm-main { max-width: 760px; margin: 16px auto 0; padding: 0 16px 80px; }
.hm-main h2 { margin: 0; font-size: 22px; }
.hm-main h3 { margin: 0 0 10px; font-size: 18px; }
.hm-main p { margin: 0 0 8px; }
.hm-main a:focus-visible, .hm-main button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.hm-main h2:focus { outline: none; }

.hm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 14px; }
.hm-head h2 { overflow-wrap: anywhere; }
.hm-head .pill { font-size: 13px; padding: 5px 12px; }
.hm-block { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 16px; min-width: 0; }

/* 지금 할 일 */
.hm-todo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-todo-item { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 84px; padding: 10px 14px; border: 2px solid var(--green); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.hm-todo-item .hm-n { font-size: 30px; line-height: 1.1; color: var(--green); font-variant-numeric: tabular-nums; }
.hm-todo-item .hm-t { font-size: 15px; font-weight: 750; }
.hm-todo-item:not(.is-zero) { border-color: var(--orange); background: #fff3ea; }
.hm-todo-item:not(.is-zero) .hm-n { color: #a8430f; }
.hm-todo-item.is-zero { border-color: var(--line); background: #f7f6f0; color: #5d6b63; }
.hm-todo-item.is-zero .hm-n { color: #5d6b63; }

/* 가게 소식 */
.hm-feed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.hm-feed-head h3 { margin: 0; }
.hm-feed-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-feed-head button { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.hm-feed { list-style: none; margin: 0; padding: 0; }
.hm-feed-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-height: 44px; padding: 10px 6px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; }
.hm-feed li:last-child .hm-feed-item { border-bottom: 0; }
.hm-feed-when { flex: 0 0 8.5em; font-size: 13px; color: #5d6b63; font-variant-numeric: tabular-nums; }
.hm-feed-text { flex: 1 1 14em; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.hm-feed-item.is-new .hm-feed-text { font-weight: 750; }
.hm-new { flex: 0 0 auto; padding: 2px 9px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 850; }

/* 큰 단추 넷 */
.hm-big-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hm-big { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 84px; padding: 12px 14px; border: 2px solid var(--green); border-radius: 12px; background: #fff; color: var(--green); text-decoration: none; }
.hm-big strong { font-size: 17px; }
.hm-big span { font-size: 13px; color: #4b5a51; }
.hm-big-main { background: var(--green); color: #fff; }
.hm-big-main span { color: #dfeee5; }
.hm-nostore .hm-big { margin-top: 12px; }
.hm-link-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 18px; border-radius: 9px; background: var(--green); color: #fff; border: 1px solid var(--green); font-weight: 800; font-size: 16px; text-decoration: none; }
.hm-footnote { margin: 4px 2px 0; font-size: 14px; color: #3d4b43; }
.hm-mail { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #eef5f0; font-size: 14px; color: #2c3b33; word-break: keep-all; }
.hm-mail a { margin-left: 4px; color: var(--green); font-weight: 700; }
.hm-mail[hidden] { display: none; }

@media (min-width: 700px) {
  .hm-todo, .hm-big-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm-main { padding: 0 22px 80px; }
}
.hm-big span, .hm-big strong, .hm-todo-item .hm-t { word-break: keep-all; }
