/* hazuki-r4.css — round 4: Home is the daily operating screen. Loaded last.
   Same rules as round 3: 1px all-round lines, no one-sided colour bands, no gradients, no emoji cards, 44px targets,
   no offset button shadow, status as a tagged word, reduced motion respected. */

/* ── AI command bar ─────────────────────────────────────────────────────── */
.hz4-cmd { display: grid; gap: 10px; padding: var(--lpk-space-4); margin: 0 0 var(--lpk-space-4);
  border: 1px solid var(--lpk-color-text-primary); border-radius: var(--lpk-radius-md); background: var(--lpk-color-bg-surface); min-width: 0; }
.hz4-cmd-top { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.hz4-cmd-top h2 { margin: 0; display: flex; align-items: center; gap: 10px; font: var(--lpk-type-title); line-height: 1.3; }
.hz4-cmd-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hz4-cmd-form input { min-height: 48px; font-size: 1rem; padding: 0 14px; border: 1px solid var(--lpk-tag-neutral-border); border-radius: var(--lpk-input-radius); background: var(--lpk-color-bg-surface); color: inherit; min-width: 0; box-sizing: border-box; width: 100%; }
.hz4-cmd-form input:focus-visible { outline: 2px solid var(--lpk-color-text-primary); outline-offset: 1px; }
.hz4-cmd-form .btn { min-height: 48px; }
.hz4-cmd .help { margin: 0; }
.hz4-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hz4-chip { font-weight: 700; }
.hz4-can { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.hz4-ask { min-height: 44px; }

/* the AI result, right under the bar */
.hz4-result:empty { display: none; }
.hz4-res { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--lpk-tag-neutral-border); border-radius: var(--lpk-radius-md); min-width: 0; }
.hz4-res:focus-visible { outline: 2px solid var(--lpk-color-text-primary); outline-offset: 2px; }
.hz4-res p { margin: 0; }
.hz4-res-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.hz4-tags { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hz4-res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hz4-res-list > li { display: grid; gap: 8px; padding: 10px 0; border-top: 1px solid var(--lpk-color-border-divider); }
.hz4-res-list > li:first-child { border-top: 0; padding-top: 0; }
.hz4-res-list .btn { justify-self: start; }
.hz4-res-close { justify-self: start; }
.hz4-q { margin: 0; padding: 10px 12px; border: 1px solid var(--lpk-tag-neutral-border); border-radius: var(--lpk-radius-sm); white-space: pre-line; overflow-wrap: anywhere; }
.hz4-report .hz-end { align-items: center; }
.hz4-n { font: var(--lpk-type-title); font-weight: inherit; }
@media (prefers-reduced-motion: no-preference) { .hz4-res { animation: hz4-in 180ms cubic-bezier(.23, 1, .32, 1); } @keyframes hz4-in { from { opacity: 0; transform: translateY(4px); } } }

/* ── today ───────────────────────────────────────────────────────────────── */
.hz4-hours-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 8px; }
.hz4-hours-list > li { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--lpk-color-border-divider); min-width: 0; }
@media (min-width: 900px) { .hz4-hours-list { column-gap: 24px; } }
.hz4-hours-list p { margin: 0; }
.hz4-hours { font: var(--lpk-type-body); font-weight: 700; }
.hz4-events:empty { display: none; }

/* ── one line to Setup & fixes ───────────────────────────────────────────── */
.hz4-fixes { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 40px 0 16px; margin: 0 0 var(--lpk-space-4);
  border: 1px solid var(--lpk-tag-neutral-border); border-radius: var(--lpk-radius-md); color: inherit; text-decoration: none; font-weight: 700; }
.hz4-fixes:focus-visible { outline: 2px solid var(--lpk-color-text-primary); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .hz4-fixes:hover { background: color-mix(in srgb, var(--lpk-color-text-primary) 4%, transparent); } }
.hz4-chev { position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: .6; }

/* ── reviews / messages: one line that opens in place ───────────────────── */
.hz4-list { list-style: none; margin: 0; padding: 0; }
.hz4-card { border-top: 1px solid var(--lpk-color-border-divider); min-width: 0; }
.hz4-card:first-child { border-top: 0; }
.hz4-line { position: relative; display: grid; gap: 2px; width: 100%; min-height: 56px; padding: 10px 32px 10px 0; appearance: none; background: transparent; border: 0; margin: 0;
  text-align: left; font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
.hz4-line.is-static { cursor: default; padding-right: 0; }
.hz4-line:focus-visible { outline: 2px solid var(--lpk-color-text-primary); outline-offset: 2px; }
.hz4-line-t { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hz4-line-s { color: var(--lpk-color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hz4-line .hz4-chev { right: 8px; transform: rotate(45deg); margin-top: -7px; }
.hz4-card.is-open > .hz4-line .hz4-chev { transform: rotate(-135deg); margin-top: -3px; }
.hz4-card.is-open > .hz4-line .hz4-line-s { display: none; }
@media (prefers-reduced-motion: no-preference) { .hz4-line .hz4-chev { transition: transform 200ms cubic-bezier(.23, 1, .32, 1); } }
.hz4-detail { display: grid; grid-template-rows: 0fr; }
.hz4-card.is-open > .hz4-detail { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: no-preference) { .hz4-detail { transition: grid-template-rows 200ms cubic-bezier(.23, 1, .32, 1); } }
.hz4-inner { overflow: hidden; min-height: 0; display: grid; gap: 10px; }
.hz4-card.is-open .hz4-inner { padding-bottom: 14px; }
.hz4-inner p { margin: 0; }
.hz4-draft { display: grid; gap: 8px; }
.hz4-draft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.hz4-draft textarea { width: 100%; box-sizing: border-box; font-size: 1rem; min-height: 112px; }
.hz4-draft textarea[readonly] { background: color-mix(in srgb, var(--lpk-color-text-primary) 3%, var(--lpk-color-bg-surface)); }
.hz4-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.hz4-bar[hidden] { display: none; }
/* Editing: the bar stays visible above the bottom nav (and the AI button steps aside). */
body:has(.hz4-card.is-editing) .hz-ai-fab { display: none; }
.hz4-card.is-done .hz-note { font-weight: 700; }
.hz4-sms { margin-top: 4px; }
.hz4-sub-k { margin: 4px 0 0; font: var(--lpk-type-small); font-weight: 700; color: var(--lpk-color-text-secondary); }
.hz4-do > .tap-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }

/* quick post: the picker is the label; the real input stays focusable for the keyboard */
.hz4-do:has(#hz4-file:focus-visible) #hz4-pick { outline: 2px solid var(--lpk-color-text-primary); outline-offset: 2px; }

/* the AI panel link to 「AIでできること」 */
.hz-ai-can { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; }

@media (min-width: 900px) {
  .hz4-cmd { padding: 20px 24px; }
  .hz4-cmd-top h2 { font: var(--lpk-type-heading); }
}

/* Round 5: the 連携 list (one row per service; the 4 Google locations as plain lines, no box in a box). */
.hc-int .hz-end { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.hc-int-locs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.hc-int-locs li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 520px) { .hc-int .hz-end { justify-content: flex-start; } }
