/* 管理画面
   サロンボードの画面構成を踏襲しつつ、見た目はフラットで清潔に。
   グラデーションはボタンにのみ使い、面はすべて単色で構成する。 */

:root {
  --g-900: #14432c;
  --g-800: #1b5638;
  --g-700: #216b45;
  --g-600: #2b8455;
  --g-500: #3a9d68;
  --g-400: #5cb684;
  --g-200: #bfe0cd;
  --g-100: #e4f1ea;
  --g-050: #f3f9f5;

  --bg: #f5f7f6;
  --panel: #fff;
  --ink: #1d2b24;
  --ink-2: #47574e;
  --muted: #7b8a82;
  --line: #dfe6e2;
  --line-2: #eef2f0;

  --blue: #2f6fb0;
  --warn: #b8681f;
  --bad: #c0392b;
  --ok: var(--g-600);

  --r: 6px;
  --r-sm: 4px;
  --shadow: 0 1px 2px rgba(20, 67, 44, .06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- グローバルヘッダ ---------- */
.sbheader {
  background: var(--g-800);
  padding: 0 20px;
  display: flex; align-items: center; gap: 20px; height: 56px;
  position: sticky; top: 0; z-index: 30;
}
.sbheader__logo {
  display: flex; flex-direction: column; justify-content: center;
  color: #fff; line-height: 1.1;
}
.sbheader__logo b { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.sbheader__logo span { font-size: 9px; opacity: .7; letter-spacing: .18em; }
.sbheader__store { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.sbheader__badge {
  background: rgba(255,255,255,.14); color: #dcefe4; font-size: 11px;
  padding: 3px 10px; border-radius: 100px; white-space: nowrap;
}

.gnav { display: flex; align-items: center; gap: 4px; }
.gnav a {
  color: rgba(255,255,255,.82); text-decoration: none; font-size: 12px;
  padding: 6px 12px; border-radius: var(--r-sm);
}
.gnav a:hover { background: rgba(255,255,255,.12); color: #fff; }

.gnav__stamp { font-size: 11px; color: rgba(255,255,255,.62); margin-right: 6px; }
.sbheader__burger {
  display: none; background: none; border: 0; color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px;
}

/* ---------- 縦ナビ ----------
   設定項目が増え続けるので、横並びのタブでは入りきらない。
   左に固定し、カテゴリで束ねる。 */
.shell { display: flex; align-items: flex-start; }

.sidenav {
  width: 208px; flex: 0 0 208px;
  background: var(--panel); border-right: 1px solid var(--line);
  padding: 14px 0 60px;
  position: sticky; top: 56px; z-index: 20;
  height: calc(100vh - 56px); overflow-y: auto;
}
.sidenav__group { padding: 0 10px; margin-bottom: 16px; }
.sidenav__cap {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted);
  padding: 0 10px 6px;
}
.sidenav a[data-tab] {
  display: block; text-decoration: none; cursor: pointer;
  font-size: 13px; color: var(--ink-2);
  padding: 8px 10px; border-radius: var(--r-sm);
  border-left: 2px solid transparent;
}
.sidenav a[data-tab]:hover { background: var(--g-050); color: var(--g-700); }
.sidenav a[data-tab].is-current {
  background: var(--g-100); color: var(--g-800); font-weight: 700;
  border-left-color: var(--g-600);
}

/* ---------- レイアウト ---------- */
.page { flex: 1; min-width: 0; max-width: 1200px; padding: 22px 24px 80px; }

/* 画面が狭いときは引き出しにする */
@media (max-width: 860px) {
  .sbheader__burger { display: block; }
  .sidenav {
    position: fixed; left: 0; top: 56px; bottom: 0; height: auto;
    transform: translateX(-100%); transition: transform .18s ease-out;
    box-shadow: 0 0 30px rgba(0,0,0,.16);
  }
  .sidenav.is-open { transform: none; }
  .page { padding: 18px 14px 70px; }
}

.ttl {
  display: flex; align-items: baseline; gap: 10px; margin: 28px 0 10px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.ttl:first-child { margin-top: 0; }
.ttl small { font-weight: 400; font-size: 11.5px; color: var(--muted); }

.box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.box__pad { padding: 18px 20px; }

/* ---------- 数値カード ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.stat {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow);
}
.stat__k { font-size: 11px; color: var(--muted); }
.stat__v { font-size: 26px; font-weight: 700; color: var(--g-700); line-height: 1.35; letter-spacing: -.01em; }
.stat__v small { font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.stat__s { font-size: 11px; color: var(--muted); }
.stat--alert { border-color: #eccac5; background: #fdf6f5; }
.stat--alert .stat__v { color: var(--bad); }

/* ---------- テーブル ---------- */
.tbl {
  overflow-x: auto; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
thead th {
  background: var(--g-050); color: var(--ink-2); font-weight: 700; font-size: 11px;
  letter-spacing: .04em; border-bottom: 1px solid var(--line);
}
tbody tr:hover { background: var(--g-050); }
tbody tr:last-child td { border-bottom: none; }
td.wrap, th.wrap { white-space: normal; }

.kv th {
  background: var(--g-050); width: 200px; font-weight: 400; color: var(--muted);
  border-right: 1px solid var(--line-2);
}

/* ---------- ボタン（グラデーションはここだけ） ---------- */
.btn {
  font: inherit; font-size: 12.5px; cursor: pointer; border-radius: var(--r-sm);
  padding: 8px 18px; border: 1px solid var(--g-800); color: #fff;
  background: linear-gradient(180deg, var(--g-600), var(--g-800));
  transition: filter .12s;
}
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn:disabled { opacity: .4; cursor: default; }
.btn--sub {
  background: linear-gradient(180deg, #fff, #f4f7f5);
  color: var(--g-800); border-color: var(--line);
}
.btn--sub:hover:not(:disabled) { border-color: var(--g-400); filter: none; background: #fff; }
.btn--danger { background: linear-gradient(180deg, #d0503f, #a8352a); border-color: #932c22; }
.btn--sm { padding: 5px 12px; font-size: 11.5px; }

/* ---------- フォーム ---------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 180px 1fr; align-items: start; gap: 14px; }
.form__row > label { font-size: 12px; color: var(--ink-2); padding-top: 7px; }
.req { color: var(--bad); font-size: 10px; margin-left: 4px; }

input[type=text], input[type=password], input[type=number], input[type=tel],
input[type=date], input[type=time], input[type=datetime-local], select, textarea {
  font: inherit; font-size: 13px; padding: 8px 10px; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; width: 100%; max-width: 380px;
}
textarea { max-width: none; resize: vertical; line-height: 1.75; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--g-500); box-shadow: 0 0 0 3px var(--g-100);
}

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px;
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px;
  background: #fff; cursor: pointer;
}
.checks label:hover { border-color: var(--g-400); }
.checks label:has(input:checked) { border-color: var(--g-500); background: var(--g-050); font-weight: 700; }
.checks input { width: auto; margin: 0; }
.checks label.is-off { opacity: .4; cursor: not-allowed; }

/* ---------- 状態表示 ---------- */
.tag {
  display: inline-block; font-size: 11px; padding: 2px 9px;
  border-radius: 100px; border: 1px solid; line-height: 1.6;
}
.tag--sent, .tag--ok { color: var(--g-700); border-color: var(--g-200); background: var(--g-100); }
.tag--pending { color: var(--warn); border-color: #eed6bd; background: #fdf6ef; }
.tag--failed { color: var(--bad); border-color: #eccac5; background: #fdf3f2; }
.tag--hpb { color: var(--blue); border-color: #c6d9ec; background: #eef4fa; }
.tag--self { color: var(--muted); border-color: var(--line); background: var(--bg); }

.msg { padding: 11px 14px; border-radius: var(--r-sm); font-size: 12.5px; border: 1px solid; margin-top: 12px; }
.msg--ok { background: var(--g-100); border-color: var(--g-200); color: var(--g-800); }
.msg--warn { background: #fdf6ef; border-color: #eed6bd; color: var(--warn); }
.msg--bad { background: #fdf3f2; border-color: #eccac5; color: var(--bad); }

.note { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* ---------- ドロップゾーン ---------- */
.dz {
  border: 1.5px dashed var(--line); border-radius: var(--r); background: var(--panel);
  padding: 22px; text-align: center; font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.dz:hover, .dz.is-over { border-color: var(--g-500); background: var(--g-050); }
.dz b { color: var(--ink); }

/* ---------- ログ ---------- */
.log {
  background: #14231b; color: #b9dcc8;
  font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; line-height: 1.8;
  padding: 14px 16px; border-radius: var(--r-sm); margin-top: 12px;
  max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-all;
}

/* ---------- 店舗セレクタ ---------- */
.storeSwitch {
  font: inherit; font-size: 13px; font-weight: 700; max-width: 280px; width: auto;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-sm); padding: 5px 10px;
}
.storeSwitch option { color: var(--ink); background: #fff; }
.storeSwitch:focus { outline: none; border-color: rgba(255,255,255,.6); box-shadow: none; }

/* ---------- ダッシュボード（サロンボードのTOPに寄せる） ---------- */
.bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.bigbtn {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--g-700); color: #fff; border-radius: var(--r);
  padding: 20px 24px; cursor: pointer; border: none; font: inherit; text-align: left;
}
.bigbtn:hover { background: var(--g-600); }
.bigbtn__ico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,.16); display: grid; place-items: center;
  font-size: 18px; font-weight: 700;
}
.bigbtn__t { font-size: 16px; font-weight: 700; line-height: 1.3; }
.bigbtn__s { font-size: 10px; opacity: .75; letter-spacing: .12em; }

.weekbox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.weekbox__h { background: var(--g-800); color: #fff; font-size: 12.5px; font-weight: 700; padding: 9px 16px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); }
.week__c { border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); text-align: center; }
.week__c:nth-child(7n) { border-right: none; }
.week__d { font-size: 11px; padding: 5px 0; background: var(--g-050); color: var(--ink-2); border-bottom: 1px solid var(--line-2); }
.week__d--sun { color: #c0392b; background: #fdf3f2; }
.week__d--sat { color: var(--blue); background: #eef4fa; }
.week__n { font-size: 15px; font-weight: 700; padding: 10px 0; color: var(--g-700); }
.week__n--zero { color: var(--muted); font-weight: 400; }
.week__c--today .week__d { background: var(--g-600); color: #fff; font-weight: 700; }

.alertbox { border-left: 3px solid var(--warn); }
.alertbox .box__pad { padding: 14px 18px; }
.alertline { display: flex; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.alertline::before { content: "▸"; color: var(--warn); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-side { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }

/* ---------- スケジュール ---------- */
.schedbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.schedbar__date { font-size: 17px; margin-left: 10px; font-weight: 700; }
.schedbar__cap { font-size: 12px; color: var(--muted); margin-left: auto; }

.sched {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); overflow-x: auto; box-shadow: var(--shadow);
}
.sched__grid { display: grid; min-width: 900px; }
.sched__label {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-2);
  background: var(--g-050); font-size: 12px; padding: 0 12px;
  display: flex; align-items: center; white-space: nowrap; position: sticky; left: 0; z-index: 2;
}
.sched__label--head { background: var(--g-100); font-weight: 700; }
.sched__label--sep, .sched__track--sep { border-top: 2px solid var(--g-400); }

.sched__ticks { display: flex; background: var(--g-100); border-bottom: 1px solid var(--line); }
.sched__tick {
  font-size: 10.5px; color: var(--ink-2); border-left: 1px solid var(--line);
  padding: 5px 0 5px 4px; box-sizing: border-box;
}
.sched__tick:first-child { border-left: none; }

.sched__counts { display: flex; border-bottom: 1px solid var(--line); background: #fff; }
.sched__count {
  font-size: 11px; text-align: center; border-left: 1px solid var(--line-2);
  color: var(--muted); box-sizing: border-box; line-height: 2.2;
}
.sched__count--busy { background: #fdf3f2; color: var(--bad); font-weight: 700; }
.sched__count--some { background: var(--g-050); color: var(--g-700); }

.sched__track {
  position: relative; height: 34px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(var(--cw) - 1px),
    var(--line-2) calc(var(--cw) - 1px), var(--line-2) var(--cw));
  border-bottom: 1px solid var(--line-2);
}
.sched__bar {
  position: absolute; top: 4px; height: 26px; border-radius: var(--r-sm); overflow: hidden;
  font-size: 11px; line-height: 26px; padding: 0 8px; white-space: nowrap;
  border: 1px solid; box-sizing: border-box; cursor: pointer;
}
.sched__bar:hover { filter: brightness(.96); }
.sched__bar--hpb { background: #eef4fa; border-color: #b6d0e8; color: #1f4f7d; }
.sched__bar--self { background: var(--g-100); border-color: var(--g-200); color: var(--g-800); }
.sched__bar--block { background: #eff2f1; border-color: var(--line); color: var(--muted); }
.sched__bar--off {
  background: repeating-linear-gradient(45deg, #f0f3f1, #f0f3f1 6px, #e7ece9 6px, #e7ece9 12px);
  border-color: var(--line); color: var(--muted);
}

/* ---------- モーダル（サロンボードの予約詳細に寄せる） ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(16, 32, 24, .45);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px;
}
.modal__box {
  background: #fff; border-radius: var(--r); width: min(600px, 96vw);
  box-shadow: 0 12px 40px rgba(0,0,0,.28); overflow: hidden;
}
.modal__bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--g-050); border-bottom: 1px solid var(--line);
  padding: 12px 12px 12px 22px; font-size: 13px; font-weight: 700;
}
.modal__close {
  background: none; border: none; font-size: 18px; line-height: 1;
  color: var(--muted); padding: 4px 10px; cursor: pointer;
}
.modal__close:hover { color: var(--ink); }
.modal__body { padding: 20px 22px; max-height: 70vh; overflow: auto; }

/* 1枚で完結させるので、中を見出しで区切る */
.rsvsec { margin-top: 18px; }
.rsvsec:first-child { margin-top: 0; }
.rsvsec__t {
  font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--muted);
  padding-bottom: 5px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2);
}

.rsvhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.rsvhead__name { font-size: 17px; font-weight: 700; }
.rsvhead__new {
  background: var(--bad); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: var(--r-sm);
}
.rsvrow { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.rsvrow__k { color: var(--muted); }
.rsvrow__v { word-break: break-word; }
/* キャンセルは左、保存は右。押し間違いを減らすため離す */
.modal__foot {
  display: flex; gap: 8px; align-items: center;
  padding: 14px 22px; border-top: 1px solid var(--line); background: var(--g-050);
}

/* ---------- 画像 ---------- */
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.thumb { position: relative; width: 92px; height: 92px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; line-height: 1;
  border-radius: 50%; border: none; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px;
}

@media (max-width: 900px) {
  .grid2, .bigbtns, .grid-side { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .subnav { overflow-x: auto; }
}

.hidden { display: none !important; }
.tabpane { display: none; }
.tabpane.is-active { display: block; }

/* ---------- スケジュールの予約バー（サロンボードに寄せた密度） ---------- */
.sched__track { height: 46px; }
.sched__bar {
  top: 4px; height: 38px; line-height: 1.35; padding: 3px 7px;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  font-size: 11px; user-select: none;
}
.sched__bar b { font-weight: 700; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.sched__bar i { font-style: normal; opacity: .75; font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
.sched__bar--drag { opacity: .5; }
.sched__bar[data-move] { cursor: grab; }
.sched__bar[data-move]:active { cursor: grabbing; }

/* 端をつまんで時間を伸縮 */
.sched__grip {
  position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize;
  background: transparent;
}
.sched__grip--s { left: 0; }
.sched__grip--e { right: 0; }
.sched__bar:hover .sched__grip { background: rgba(0,0,0,.10); }

/* 新規客のしるし */
.sched__new {
  background: var(--bad); color: #fff; font-size: 9px; font-weight: 700;
  padding: 0 4px; border-radius: 2px; margin-right: 4px;
}

/* ドロップ先の目安 */
.sched__ghost {
  position: absolute; top: 4px; height: 38px; border-radius: var(--r-sm);
  border: 2px dashed var(--g-500); background: rgba(58,157,104,.10); pointer-events: none;
}

/* ---------------- 実行中オーバーレイ ---------------- */
/* サロンボードへの書き込みは数秒かかる。無言だと固まって見えるので状況を出す */
.ovl{
  position:fixed; inset:0; z-index:200;
  display:none; align-items:center; justify-content:center;
  background:rgba(23,32,29,.42); backdrop-filter:blur(2px);
}
.ovl--on{ display:flex; }
.ovl__card{
  width:min(360px,86vw); padding:30px 26px 24px; text-align:center;
  background:#fff; border:1px solid var(--line); border-radius:var(--r);
  box-shadow:0 16px 44px rgba(0,0,0,.18);
  animation:ovlIn .16s ease-out;
}
@keyframes ovlIn{ from{ opacity:0; transform:translateY(6px) } to{ opacity:1; transform:none } }
.ovl__spin{
  width:34px; height:34px; margin:0 auto 16px;
  border:3px solid var(--line); border-top-color:var(--g-600);
  border-radius:50%; animation:ovlSpin .8s linear infinite;
}
@keyframes ovlSpin{ to{ transform:rotate(360deg) } }
.ovl__ttl{ font-size:15px; font-weight:600; color:var(--ink); }
.ovl__step{
  margin-top:9px; min-height:20px; font-size:13px; color:var(--ink-2);
  transition:opacity .15s;
}
.ovl__note{ margin-top:14px; font-size:11px; color:var(--muted); }

/* 横に並べる小物 */
.inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.chk input { margin: 0; }

/* フォーム編集の小物 */
.fieldrow { display: flex; align-items: center; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.fieldrow:last-child { border-bottom: none; }
.imgprev img { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
input[type=color] { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
input[type=file] { font-size: 12px; }

/* ---------- フォーム編集（左で設定・右で確認） ---------- */
.edbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px;
}
.edbar__name { max-width: 280px; font-weight: 700; }
.edbar__dev { display: flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.edbar__dev button {
  font: inherit; font-size: 11.5px; padding: 6px 12px; cursor: pointer;
  background: #fff; border: none; color: var(--ink-2);
}
.edbar__dev button.is-current { background: var(--g-100); color: var(--g-800); font-weight: 700; }

.editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.editor__side { min-width: 0; display: grid; gap: 16px; }
.editor__prev { position: sticky; top: 76px; }

.preview {
  background: #333b37; border-radius: 14px; padding: 12px;
  display: flex; justify-content: center;
}
.preview iframe {
  width: 375px; height: 680px; border: none; border-radius: 8px;
  background: #fff; transition: width .16s;
}
.preview--desktop iframe { width: 100%; height: 620px; }

/* 中身の並べ替え */
.blocks { display: grid; gap: 6px; }
.blk {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 8px 10px; background: #fff;
}
.blk--drag { opacity: .4; }
.blk--over { border-color: var(--g-500); box-shadow: 0 0 0 2px var(--g-100); }
.blk__grip { cursor: grab; color: var(--muted); font-size: 14px; user-select: none; }
.blk__body { flex: 1; min-width: 0; }
.blk__t { font-size: 12.5px; font-weight: 700; }
.blk__s { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk__sys { font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
.blk__act { display: flex; gap: 2px; }
.blk__act button {
  font: inherit; font-size: 12px; cursor: pointer; background: none;
  border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2);
  width: 26px; height: 26px; line-height: 1; padding: 0;
}
.blk__act button:hover:not(:disabled) { border-color: var(--g-400); color: var(--g-700); }
.blk__act button:disabled { opacity: .3; cursor: default; }
.blk__thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }

.addblk { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .editor__prev { position: static; }
}

/* 付加機能の設定 */
.boost { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.boost:last-child { border-bottom: none; }
.boost .note { margin: 2px 0 0 24px; }
.boost__set { margin: 12px 0 4px 24px; padding-left: 14px; border-left: 2px solid var(--g-100); }
.boost__set .form__row { grid-template-columns: 150px 1fr; }
code { background: var(--g-050); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; font-size: 11.5px; }

/* ---------- タグと条件 ---------- */
.tagchip {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--g-100); color: var(--g-800); border-radius: 100px;
  padding: 2px 4px 2px 10px; font-size: 11.5px; margin: 2px 3px 2px 0;
}
.tagchip button {
  border: 0; background: none; cursor: pointer; color: var(--g-700);
  font-size: 13px; line-height: 1; padding: 0 4px;
}
.tagchip button:hover { color: var(--bad); }
.tagadd {
  border: 1px dashed var(--line); background: none; cursor: pointer;
  color: var(--muted); border-radius: 100px; padding: 2px 9px; font-size: 12px;
}
.tagadd:hover { border-color: var(--g-400); color: var(--g-700); }

.cond { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.cond select, .cond input { max-width: 190px; }
.cond button {
  border: 1px solid var(--line); background: #fff; border-radius: 3px;
  width: 28px; height: 32px; cursor: pointer; color: var(--muted); font-size: 14px;
}
.cond button:hover { border-color: var(--bad); color: var(--bad); }

/* 会計の明細 */
.payrow { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.payrow__k {
  flex: 0 0 44px; font-size: 10.5px; color: var(--muted); text-align: center;
  border: 1px solid var(--line); border-radius: 3px; padding: 4px 0;
}
.payrow input[type=text] { flex: 1; min-width: 0; max-width: none; }
.payrow input[type=number] { flex: 0 0 92px; max-width: 92px; }
.payrow input[data-pq] { flex: 0 0 62px; max-width: 62px; }
.payrow button {
  flex: 0 0 28px; border: 1px solid var(--line); background: #fff; border-radius: 3px;
  height: 34px; cursor: pointer; color: var(--muted);
}
.payrow button:hover { border-color: var(--bad); color: var(--bad); }

/* 口コミ */
.rv { margin-bottom: 10px; }
.rv__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.rv__body {
  font-size: 13px; color: var(--ink-2); line-height: 1.85; margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rv__full { font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; margin: 0; }
.rv__star { color: #e8a33d; letter-spacing: .1em; }

/* ---------------- 新着のお知らせ（ヘッダーのベル） ---------------- */

.bell { position: relative; }

.bell__btn {
  background: none; border: 0; cursor: pointer; padding: 4px 6px;
  font-size: 16px; line-height: 1; position: relative; border-radius: 6px;
}
.bell__btn:hover { background: rgba(255, 255, 255, .12); }

/* 未読があるあいだ光らせる。気づかないと二重予約になるので目立たせる */
.bell--alert .bell__icon { animation: bellRing 1.4s ease-in-out infinite; display: inline-block; }
@keyframes bellRing {
  0%, 70%, 100% { transform: rotate(0); }
  75% { transform: rotate(-14deg); }
  80% { transform: rotate(12deg); }
  85% { transform: rotate(-8deg); }
  90% { transform: rotate(6deg); }
}

.bell__count {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #e5384f; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.bell--alert .bell__count { animation: bellPulse 1.4s ease-in-out infinite; }
@keyframes bellPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 56, 79, .7); }
  50% { box-shadow: 0 0 0 6px rgba(229, 56, 79, 0); }
}

.bell__pop {
  position: absolute; right: 0; top: 34px; z-index: 60;
  width: 320px; max-height: 60vh; display: flex; flex-direction: column;
  background: #fff; color: #222;
  border: 1px solid #dcdfe4; border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}
.bell__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid #eef0f3; font-size: 12px;
}
.bell__all {
  background: none; border: 0; cursor: pointer;
  color: #5b6472; font-size: 11px; text-decoration: underline;
}
.bell__list { overflow-y: auto; }
.bell__item {
  display: block; padding: 10px 12px; border-bottom: 1px solid #f2f4f6;
  font-size: 12px; color: #222; text-decoration: none; cursor: pointer;
}
.bell__item:hover { background: #f7f9fb; }
.bell__item--unread { background: #fff8e6; }
.bell__item--unread:hover { background: #fff3d6; }
.bell__when { font-weight: 700; }
.bell__meta { color: #7a838f; font-size: 11px; margin-top: 2px; }
.bell__empty { padding: 18px 12px; color: #8a929c; font-size: 12px; text-align: center; }
.bell__more {
  display: block; padding: 9px 12px; text-align: center;
  font-size: 12px; border-top: 1px solid #eef0f3; color: #2f6fdd; text-decoration: none;
}
.bell__more:hover { background: #f7f9fb; }

/* 拾ったばかりの予約を、スケジュール上でも分かるようにする */
.slotnew { animation: slotNew 2.4s ease-out 2; }
@keyframes slotNew {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(229, 56, 79, .55); }
}

@media (max-width: 640px) {
  .bell__pop { position: fixed; left: 8px; right: 8px; top: 52px; width: auto; }
}
