/* 私のちいさなサロン
   お客さま画面: アイボリー × くすみローズ、枝葉の線画、明朝の大見出し（assets/design のモックを参考）
   管理画面: 白基調のシンプルな業務画面（ローズはアクセントのみ） */
:root {
  --ivory: #f8f3ee;
  --ivory-deep: #f1e8e0;
  --paper: #fffdfb;
  --line: #ece1d8;
  --line-strong: #dcc9c0;
  --rose: #b4737b;          /* 装飾・選択枠 */
  --rose-btn: #a65d67;      /* ボタン地（白文字 5.0:1） */
  --rose-btn-hover: #944f59;
  --rose-ink: #8e4f59;      /* 強調文字（アイボリー上 6.4:1） */
  --rose-soft: #f6e6e5;
  --rose-mist: #fbf1ef;
  --leaf: #cdb7ad;
  --ink: #4a3d3e;
  --muted-ink: #7a6a68;
  --ok: #4d7059;
  --warn: #8a5a1c;
  --err: #a13d45;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --shadow: 0 6px 22px rgba(150, 105, 100, .08), 0 1px 2px rgba(150, 105, 100, .06);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.75; }
a { color: var(--rose-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
p { margin: 0 0 .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fine { font-size: .8rem; color: var(--muted-ink); }
.center { text-align: center; }
.muted { color: var(--muted-ink); }
.small { font-size: .85rem; }
.warn { color: var(--warn); }

input, select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%;
}
textarea { line-height: 1.7; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--rose-btn); }
label { display: grid; gap: 4px; font-size: .9rem; }
label.check { display: flex; align-items: flex-start; gap: 10px; }
label.check input { margin-top: 4px; flex: none; }
.stack { display: grid; gap: 12px; }
form.inline { display: inline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border-radius: 10px; border: 1px solid var(--rose-btn); background: #fff; color: var(--rose-ink);
  font: inherit; font-weight: 600; letter-spacing: .08em; text-decoration: none; cursor: pointer;
  transition: background .2s, transform .15s var(--ease), box-shadow .2s, opacity .2s;
}
.btn:hover { background: var(--rose-mist); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--rose-btn); color: #fff; border-color: var(--rose-btn); box-shadow: 0 6px 16px rgba(166, 93, 103, .22); }
.btn.primary:hover { background: var(--rose-btn-hover); }
.btn.danger { color: var(--err); border-color: var(--err); }
.btn.wide { width: 100%; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: .85rem; letter-spacing: .02em; }
.btn[aria-busy="true"] { opacity: .65; cursor: progress; }
.btn.is-waiting { opacity: .55; box-shadow: none; }
.btn .chev { margin-left: auto; }
.btn.wide { position: relative; padding-left: 44px; padding-right: 44px; }
.btn.wide .chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); margin: 0; }
.linklike { background: none; border: 0; padding: 0; color: var(--rose-ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.notice { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--rose); border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; font-size: .92rem; }
.notice.ok { border-left-color: var(--ok); }
.notice.err { border-left-color: var(--err); background: #fdf3f3; color: #6f2a30; }
.notice.warn { border-left-color: var(--warn); }
.notice p:last-child { margin-bottom: 0; }

/* ═════════ お客さま画面 ═════════ */
body.customer {
  background:
    radial-gradient(120% 60% at 50% -10%, #fffaf6 0%, rgba(255, 250, 246, 0) 60%),
    linear-gradient(180deg, var(--ivory) 0%, #f6efe8 100%);
  min-height: 100vh;
}
.screen { position: relative; max-width: 560px; margin: 0 auto; overflow: hidden; }
.botanical { position: absolute; width: 110px; color: var(--leaf); pointer-events: none; opacity: .9; }
.bot-left { left: -18px; top: 6px; transform: scaleX(-1) rotate(-8deg); }
.bot-right { right: -22px; top: 120px; transform: rotate(-4deg); width: 96px; opacity: .7; }

.site-head { position: relative; padding: 26px 56px 6px; text-align: center; }
.brand-link { text-decoration: none; color: inherit; display: inline-block; }
.app-name { margin: 0; font-family: var(--serif); font-size: 1.32rem; letter-spacing: .14em; color: var(--ink); font-weight: 500; }
.app-name.solo { margin: 8px 0; }
.brand .shop { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 2px; }
.logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.shop-name { font-family: var(--serif); font-size: 1.2rem; letter-spacing: .12em; color: var(--ink); }
.tagline { margin: 0; font-family: var(--serif); font-size: .56rem; letter-spacing: .36em; color: var(--muted-ink); }

/* ドロワー（メニュー） */
.drawer { position: absolute; right: 12px; top: 22px; }
.drawer > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.drawer > summary::-webkit-details-marker { display: none; }
.burger { display: grid; gap: 6px; width: 24px; }
.burger i { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.drawer[open] .burger i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.drawer[open] .burger i:nth-child(2) { opacity: 0; }
.drawer[open] .burger i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.drawer-panel {
  position: absolute; right: 0; top: 52px; z-index: 30; width: min(300px, 86vw); text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; box-shadow: var(--shadow);
  animation: drop .28s var(--ease);
}
.drawer-title { font-family: var(--serif); letter-spacing: .1em; padding: 4px 12px 8px; margin: 0; border-bottom: 1px solid var(--line); }
.drawer-panel a, .drawer-btn {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none;
  background: none; border: 0; font: inherit; width: 100%; cursor: pointer; text-align: left;
}
.drawer-panel a:hover, .drawer-btn:hover { background: var(--rose-mist); }
.drawer-panel .uicon { color: var(--rose); }
.drawer-note { font-size: .75rem; color: var(--muted-ink); padding: 8px 12px 0; margin: 6px 0 0; border-top: 1px solid var(--line); }

.wrap { position: relative; padding: 0 18px 28px; }
.hero { text-align: center; margin: 14px 0 22px; }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: 1.85rem; letter-spacing: .12em; margin: 0 0 4px; color: var(--ink); line-height: 1.5; }
.hero-lead { font-family: var(--serif); color: var(--muted-ink); letter-spacing: .14em; font-size: .92rem; margin: 0; }

.card { background: var(--paper); border-radius: 18px; padding: 18px; margin: 0 0 14px; box-shadow: var(--shadow); }
.card.soft { background: rgba(255, 253, 251, .78); box-shadow: none; border: 1px solid var(--line); }
.card.center { text-align: center; }
.card-title { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; letter-spacing: .1em; margin: 0 0 10px; }
.text-link { font-size: .9rem; }

/* メニュー */
.menu-list { list-style: none; border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.menu-card {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: var(--paper);
  border-radius: 18px; box-shadow: var(--shadow); border: 1.5px solid transparent; color: var(--ink);
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.menu-card.choice { cursor: pointer; }
.menu-card.choice:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(150, 105, 100, .12); }
.menu-card input { position: absolute; opacity: 0; pointer-events: none; }
.menu-card:has(input:checked) { border-color: var(--rose); background: #fffafa; }
.menu-card:has(input:focus-visible) { outline: 2px solid var(--rose); outline-offset: 3px; }
.menu-icon { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: var(--rose); background: radial-gradient(circle at 35% 30%, #fbefee, #f3dedd); }
.menu-icon.small { width: 44px; height: 44px; }
.menu-body { display: grid; gap: 4px; justify-items: start; }
.menu-name { font-family: var(--serif); font-size: 1.22rem; letter-spacing: .12em; }
.menu-desc { font-size: .8rem; color: var(--muted-ink); }
.pill { display: inline-block; font-size: .78rem; padding: 1px 12px; border-radius: 999px; background: var(--ivory-deep); color: var(--ink); }
.chev { color: var(--muted-ink); flex: none; }
.menu-card .chev { margin-left: auto; }
.menu-card:has(input:checked) .chev { color: var(--rose); }

/* 日時 */
.selected-menu {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 18px; background: var(--paper);
  border-radius: 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-family: var(--serif); letter-spacing: .08em;
}
.selected-menu .menu-name { font-size: 1.1rem; }
.selected-menu .change { margin-left: auto; font-family: var(--sans); font-size: .8rem; color: var(--rose-ink); text-decoration: underline; text-underline-offset: 3px; }
.dot { color: var(--muted-ink); margin: 0 2px; }
.month { font-family: var(--serif); font-size: 1.15rem; letter-spacing: .1em; margin: 0 0 6px 6px; }
.date-row { display: flex; align-items: center; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.date-arrow { flex: none; width: 30px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--muted-ink); cursor: pointer; border-radius: 8px; }
.date-arrow:hover { background: var(--rose-mist); }
.date-strip { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip {
  flex: 0 0 auto; width: 52px; scroll-snap-align: start; display: grid; justify-items: center; gap: 0; padding: 6px 0;
  border-radius: 12px; color: var(--ink); text-decoration: none; position: relative; transition: background .2s, color .2s;
}
.date-chip + .date-chip::before { content: ""; position: absolute; left: 0; top: 22%; height: 56%; width: 1px; background: var(--line); }
.date-chip .d { font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.date-chip .wd { font-size: .72rem; color: var(--muted-ink); }
.date-chip.wd0 .wd { color: #b04f57; }
.date-chip.wd6 .wd { color: #5a6f9c; }
.date-chip.full { color: #b8aba7; }
.date-chip.full .wd { color: #c4b8b4; }
.date-chip:hover { background: var(--rose-mist); }
.date-chip[aria-current] { background: var(--rose-btn); color: #fff; box-shadow: 0 6px 14px rgba(166, 93, 103, .28); }
.date-chip[aria-current] .wd { color: #fbe9e9; }
.date-chip[aria-current]::before, .date-chip[aria-current] + .date-chip::before { display: none; }

.slots { border: 0; padding: 0; margin: 0 0 16px; }
.slots-title { font-family: var(--serif); font-size: .92rem; letter-spacing: .08em; color: var(--ink); text-align: center; width: 100%; margin-bottom: 12px; }
.slots-date { display: block; font-size: 1.05rem; color: var(--ink); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span {
  display: grid; place-items: center; min-height: 50px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff;
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .06em; color: var(--ink); transition: all .2s var(--ease);
}
.slot:hover span { border-color: var(--rose); }
.slot input:checked + span { background: var(--rose-btn); border-color: var(--rose-btn); color: #fff; box-shadow: 0 6px 14px rgba(166, 93, 103, .28); transform: translateY(-1px); }
.slot input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 3px; }
.slot.taken { cursor: default; }
.slot.taken span { background: #ebe5e1; border-color: #ebe5e1; color: #b0a4a0; }

.room-note { display: flex; gap: 14px; align-items: flex-start; background: rgba(241, 232, 224, .7); border-radius: 14px; padding: 14px 16px; margin: 0 0 14px; color: var(--muted-ink); }
.room-note .uicon { color: var(--ink); flex: none; margin-top: 2px; }
.room-note-title { font-family: var(--serif); color: var(--ink); letter-spacing: .06em; margin: 0 0 2px; font-size: .95rem; }
.room-note-body { font-size: .8rem; margin: 0; }

/* 確認・確定 */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-row { display: flex; align-items: center; gap: 18px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-icon { width: 34px; display: grid; place-items: center; color: var(--muted-ink); flex: none; }
.info-icon .micon { color: var(--rose); }
.info-text { font-family: var(--serif); font-size: 1.12rem; letter-spacing: .06em; }
.ref { font-size: .75rem; color: var(--muted-ink); margin: 10px 4px 0; }
.muted-card { opacity: .75; }
.kv-soft { display: grid; grid-template-columns: 6em 1fr; gap: 6px 12px; margin: 0 0 8px; font-size: .92rem; }
.kv-soft dt { color: var(--muted-ink); }
.kv-soft dd { margin: 0; }
.guidance { background: #fff; border-radius: 12px; padding: 12px 14px; max-height: 280px; overflow: auto; font-size: .9rem; border: 1px solid var(--line); margin-top: 10px; }
.guidance p:last-child { margin: 0; }
details > summary { cursor: pointer; }
.guide-toggle > summary { display: flex; align-items: center; gap: 10px; font-family: var(--serif); letter-spacing: .06em; list-style: none; }
.guide-toggle > summary::-webkit-details-marker { display: none; }
label.check.pretty { padding: 12px 14px; border-radius: 12px; background: var(--rose-mist); font-size: .95rem; cursor: pointer; }
.row-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 0 0 14px; border-radius: 14px; background: rgba(241, 232, 224, .7);
  color: var(--ink); text-decoration: none; font-size: .9rem;
}
details.row-link { display: block; }
.row-link > summary { display: flex; align-items: center; gap: 12px; list-style: none; }
.row-link > summary::-webkit-details-marker { display: none; }
.row-link .chev, .row-link > summary .chev { margin-left: auto; transition: transform .25s var(--ease); }
details.row-link[open] > summary .chev { transform: rotate(90deg); }
.cancel-box { text-align: center; margin: 4px 0 12px; }
.cancel-box > summary { display: inline-block; font-family: var(--serif); letter-spacing: .12em; color: var(--ink); text-decoration: underline; text-underline-offset: 6px; padding: 8px 4px; list-style: none; }
.cancel-box > summary::-webkit-details-marker { display: none; }
.cancel-box .card { text-align: left; margin-top: 10px; }

.done-hero { text-align: center; margin: 12px 0 22px; }
.done-check { width: 84px; height: 84px; margin-bottom: 10px; }
.done-check circle { fill: none; stroke: var(--rose); stroke-width: 2.4; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw .9s var(--ease) forwards; }
.done-check path { fill: none; stroke: var(--rose); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 44; stroke-dashoffset: 44; animation: draw .5s .7s var(--ease) forwards; }
.done-hero .hero-title { font-size: 1.6rem; }
.done-hero .hero-lead { font-size: .85rem; line-height: 2; letter-spacing: .08em; }

/* 自分の予約 */
.res-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.res-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.res-body { display: grid; }
.res-card .when { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .06em; }
.res-card .what { font-size: .8rem; color: var(--muted-ink); }
.res-card .st { margin-left: auto; font-size: .74rem; color: var(--rose-ink); white-space: nowrap; }
.res-card.st-cancelled { opacity: .6; box-shadow: none; border: 1px solid var(--line); }
.past > summary { font-size: .88rem; color: var(--muted-ink); margin: 6px 0 12px; }

/* 固定ボタンとタブバー */
body.customer.has-tabs { padding-bottom: 72px; }
body.customer.has-cta { padding-bottom: 96px; }
body.customer.has-tabs.has-cta { padding-bottom: 160px; }
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248, 243, 238, 0), rgba(248, 243, 238, .96) 30%);
}
.has-tabs .cta-bar { bottom: 64px; padding-bottom: 10px; }
.cta-bar > * { max-width: 524px; margin: 0 auto; display: flex; }
.cta-bar .btn { min-height: 54px; font-family: var(--serif); font-size: 1.05rem; letter-spacing: .16em; font-weight: 500; }
.cta-bar .btn .chev { color: #fff; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; display: flex; justify-content: center; gap: 0;
  background: rgba(255, 253, 251, .97); border-top: 1px solid var(--line); padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  backdrop-filter: blur(8px);
}
.tabbar a { flex: 0 1 260px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; color: var(--muted-ink); text-decoration: none; font-size: .85rem; letter-spacing: .1em; position: relative; }
.tabbar a + a::before { content: ""; position: absolute; left: 0; top: 25%; height: 50%; width: 1px; background: var(--line); }
.tabbar a .uicon { color: var(--rose); }
.tabbar a[aria-current] { color: var(--rose-ink); font-weight: 600; }

.site-foot { text-align: center; padding: 0 18px 24px; }

/* 動き */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero, .selected-menu, .customer .card, .room-note { animation: rise .55s var(--ease) both; }
.reveal > * { animation: rise .5s var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: .06s; }
.reveal > *:nth-child(3) { animation-delay: .12s; }
.reveal > *:nth-child(4) { animation-delay: .18s; }
.reveal > *:nth-child(n+5) { animation-delay: .22s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .done-check circle, .done-check path { stroke-dashoffset: 0; }
}
@media (max-width: 360px) {
  .menu-icon { width: 68px; height: 68px; }
  .hero-title { font-size: 1.6rem; }
  .slot-grid { grid-template-columns: repeat(2, 1fr); }
}

.mail-body { white-space: pre-wrap; font-family: var(--sans); font-size: .9rem; background: #fff; padding: 12px; border-radius: 10px; overflow-wrap: anywhere; }
.card.mail h2 { font-size: 1rem; }
body.owner-login { background: #f6f4f5; }
body.owner-login .card { margin-top: 18px; border-radius: 8px; box-shadow: none; border: 1px solid #e7e2e4; }
body.owner-login .page-title { font-family: var(--sans); font-size: 1.2rem; }
body.owner-login .botanical { display: none; }
body.owner-login .app-name { font-family: var(--sans); font-size: .9rem; letter-spacing: .1em; color: var(--muted-ink); }

/* ═════════ 管理画面（シンプル・白基調） ═════════ */
body.owner { background: #f6f4f5; font-size: 15px; line-height: 1.65; }
body.owner h1, body.owner h2, body.owner h3 { font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }
.owner-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 10px 24px; background: #fff; border-bottom: 1px solid #e7e2e4; position: sticky; top: 0; z-index: 5; }
.owner-brand { display: flex; align-items: center; gap: 12px; }
.owner .brand.compact .app-name { font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; color: var(--muted-ink); }
.owner .brand.compact .shop { justify-content: flex-start; margin: 0; }
.owner .brand.compact .shop-name { font-family: var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.owner .brand.compact .logo { width: 28px; height: 28px; }
.owner-nav { display: flex; gap: 2px; flex-wrap: wrap; }
.owner-nav a { padding: 8px 14px; border-radius: 6px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.owner-nav a[aria-current="page"] { color: var(--rose-ink); background: var(--rose-mist); }
.owner-nav a:hover:not([aria-current]) { background: #f3eff0; }
.owner-logout { margin-left: auto; display: flex; gap: 14px; align-items: center; font-size: .88rem; }
.owner-main { max-width: 1180px; margin: 0 auto; padding: 18px 24px 60px; }
.page-title { font-size: 1.25rem; margin: 6px 0 14px; }
.owner .btn { border-radius: 6px; min-height: 40px; padding: 6px 16px; letter-spacing: .02em; border-color: #d4c5c8; color: var(--ink); background: #fff; }
.owner .btn:hover { background: #f8f3f4; }
.owner .btn.primary { background: var(--rose-btn); color: #fff; border-color: var(--rose-btn); box-shadow: none; }
.owner .btn.danger { color: var(--err); border-color: #e0b5b9; }
.owner .btn.small { min-height: 30px; padding: 2px 10px; }
.owner input, .owner select, .owner textarea { border-radius: 6px; min-height: 40px; padding: 7px 10px; border-color: #d9d1d3; }
.owner .notice { border-radius: 6px; background: #fff; }
.panel { background: #fff; border: 1px solid #e7e2e4; border-radius: 8px; padding: 16px 18px; margin: 0 0 16px; }
.panel h2 { font-size: 1rem; margin: 0 0 10px; }
.panel.attention { border-color: #ecc9a9; background: #fffaf4; }
.status-pill { font-size: .72rem; padding: 1px 9px; border-radius: 4px; border: 1px solid #e3dcde; }
.status-pill.st-open { background: #edf5ef; color: var(--ok); border-color: #cfe1d4; }
.status-pill.st-paused, .status-pill.st-draft { background: #fbf2e7; color: var(--warn); border-color: #eed7b8; }
.badge { display: inline-block; font-size: .72rem; padding: 0 7px; border-radius: 4px; background: var(--rose-mist); color: var(--rose-ink); border: 1px solid #eed6d6; }
.badge.warn, .badge.d-failed, .badge.d-retry_wait { background: #fbf2e7; color: var(--warn); border-color: #eed7b8; }
.badge.d-succeeded { background: #edf5ef; color: var(--ok); border-color: #cfe1d4; }
.plain { list-style: none; padding: 0; margin: 0; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0ebec; }
.upcoming li { padding: 6px 0; border-bottom: 1px solid #f0ebec; }
.upcoming a { text-decoration: none; color: var(--ink); }
.upcoming a:hover strong { color: var(--rose-ink); }
.week-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 12px; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.day-col { background: #fff; border: 1px solid #e7e2e4; border-radius: 6px; padding: 8px; min-height: 140px; }
.day-col.today { border-color: var(--rose); box-shadow: inset 0 2px 0 var(--rose); }
.day-col h3 { font-size: .85rem; margin: 0 0 8px; }
.day-col li + li { margin-top: 6px; }
.appt { display: grid; padding: 7px 8px; border-radius: 5px; background: var(--rose-mist); border-left: 3px solid var(--rose); text-decoration: none; color: var(--ink); font-size: .8rem; line-height: 1.45; }
.appt .time { font-weight: 700; color: var(--rose-ink); }
.appt.st-cancelled { background: #f4f2f2; border-left-color: #cfc7c8; color: var(--muted-ink); text-decoration: line-through; }
.appt.st-cancelled .badge { text-decoration: none; }
.block-item { font-size: .78rem; padding: 6px 8px; border-radius: 5px; background: repeating-linear-gradient(45deg, #f3f1f1, #f3f1f1 6px, #ebe8e8 6px, #ebe8e8 12px); display: flex; justify-content: space-between; gap: 6px; }
.grid-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 8px 0; }
.grid-form label { min-width: 140px; }
.grid-form label.grow { flex: 1 1 260px; }
.grid-form label.check { min-width: auto; align-self: center; }
.menu-form { border: 1px solid #ebe5e7; border-radius: 6px; padding: 12px; margin: 0 0 10px; background: #fcfbfb; }
.menu-form-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.menu-form-head .micon { color: var(--rose); width: 38px; height: 38px; padding: 6px; background: var(--rose-mist); border-radius: 50%; }
.menu-form-head .grow { flex: 1 1 200px; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 8px 0; }
.table th, .table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #efe9eb; vertical-align: middle; }
.table thead th { font-size: .78rem; color: var(--muted-ink); font-weight: 600; background: #faf8f8; }
.hours-cell { white-space: nowrap; }
.hours-cell input { width: 7.5em; display: inline-block; }
.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 10em 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted-ink); }
.kv dd { margin: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
.chips li { background: #f3eff0; border-radius: 4px; padding: 2px 10px; font-size: .86rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 10px; }
.checklist .ok { color: var(--ok); }
.checklist .ng { color: var(--warn); }
.handoff { border: 1px solid #e8c9cc; background: #fff8f8; border-radius: 6px; padding: 12px 14px; margin: 10px 0 14px; }
.handoff-url { font-family: ui-monospace, Menlo, monospace; font-size: .82rem; background: #fff; }
.integration { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0ebec; }
.inline-buttons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.owner details > summary { color: var(--rose-ink); font-weight: 600; }
.owner .guidance { max-height: 240px; }

@media (max-width: 900px) {
  .week-grid { grid-template-columns: 1fr; }
  .day-col { min-height: 0; }
  .owner-head { padding: 10px 16px; }
  .owner-main { padding: 14px 16px 48px; }
  .owner-logout { margin-left: 0; }
  .kv { grid-template-columns: 1fr; gap: 0; }
  .kv dd { margin-bottom: 8px; }
  .table { display: block; overflow-x: auto; }
}
