/* ===== 基本 ===== */
:root {
  --brand: #8b0000;
  --brand-soft: #fbeaea;
  --text: #222;
  --muted: #666;
  --line: #e4e4e4;
  --bg: #fff;
  --bg-soft: #f7f7f7;
  --card: #fafafa;
  --hover: #f0f6ff;
  --warn: #b03a2e;
  --warn-bg: #fdecea;
  --ok: #1e8449;
  --ok-bg: #e9f7ef;
  --info-bg: #eef4fb;
  --radius: 8px;
  --sidebar-w: 440px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 15px;
}

#app {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100%;
}

#map { flex: 1; height: 100%; z-index: 1; }

#sidebar {
  width: var(--sidebar-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  box-shadow: -2px 0 12px rgba(0, 0, 0, .15);
  z-index: 2;
  min-width: 0;
}

/* ===== ヘッダ・タブ ===== */
.header { padding: 14px 18px; background: var(--brand); color: #fff; }
.header h1 { margin: 0 0 4px; font-size: 1.1rem; }
.header p { margin: 0; font-size: .78rem; opacity: .9; line-height: 1.4; }

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow-x: auto;
}
.tab {
  flex: 1;
  min-width: 64px;
  padding: 10px 6px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-size: .85rem;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.tab-badge {
  display: inline-block;
  margin-left: 4px;
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--warn);
  color: #fff;
  font-size: .68rem;
  line-height: 18px;
}

.filter-bar {
  padding: 8px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.filter-label { font-size: .72rem; color: var(--muted); margin-right: 2px; }
.filter-bar[hidden] { display: none; }
.chip {
  border: 1px solid #ccc;
  background: #fff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: .76rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

/* ===== パネル ===== */
.panel { flex: 1; overflow-y: auto; padding: 12px 14px 24px; }
.panel h2 {
  font-size: .95rem;
  margin: 18px 0 8px;
  padding-left: 8px;
  border-left: 4px solid var(--brand);
}
.panel h2:first-child { margin-top: 4px; }
.panel h3 { font-size: .88rem; margin: 14px 0 6px; }
.muted { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.note { font-size: .78rem; color: var(--muted); line-height: 1.5; margin: 6px 0 10px; }

/* スポット・ホテルカード */
.city-block { margin-bottom: 16px; }
.city-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
  font-weight: 700;
  border-left: 4px solid var(--brand);
  padding-left: 8px;
  margin-bottom: 8px;
}
.city-title button {
  font-size: .72rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 2px 8px;
  cursor: pointer;
  color: var(--muted);
}

.card {
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}
.card:hover, .card:focus-visible { background: var(--hover); border-color: #4a90e2; outline: none; }
.card.selected { border-color: var(--brand); background: var(--brand-soft); }
.card img {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #ddd;
}
.card-body { min-width: 0; flex: 1; }
.card-title { font-size: .86rem; font-weight: 700; margin: 2px 0; line-height: 1.35; }
.card-meta { font-size: .75rem; color: var(--muted); line-height: 1.45; }
.card-price { font-size: .78rem; font-weight: 700; color: var(--text); margin-top: 2px; }
.card-warn { font-size: .74rem; color: var(--warn); margin-top: 2px; }

.badge {
  display: inline-block;
  font-size: .66rem;
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
}

/* 表 */
.table-wrap { overflow-x: auto; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: .78rem; }
th, td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.45; }
th { background: var(--bg-soft); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.total td { font-weight: 700; background: var(--brand-soft); }
tr.warn td { background: var(--warn-bg); }
td.nowrap { white-space: nowrap; }

/* 注意ボックス */
.alert { border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; font-size: .8rem; line-height: 1.5; }
.alert strong { display: block; margin-bottom: 2px; }
.alert.high { background: var(--warn-bg); border-left: 4px solid var(--warn); }
.alert.info { background: var(--info-bg); border-left: 4px solid #2e86c1; }
.alert.ok { background: var(--ok-bg); border-left: 4px solid var(--ok); }

/* 行程（タイムライン） */
.day { border-left: 2px solid var(--line); margin-left: 6px; padding: 0 0 12px 14px; position: relative; }
.day::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}
.day.warn::before { background: var(--warn); border-color: var(--warn); }
.day-date { font-weight: 700; font-size: .85rem; }
.day-city { font-size: .78rem; color: var(--brand); margin-left: 6px; }
.day-plan { font-size: .8rem; margin: 3px 0; line-height: 1.5; }
.day-move, .day-stay { font-size: .74rem; color: var(--muted); line-height: 1.45; }

/* 画像ギャラリー */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #ddd; }
.gallery figcaption { font-size: .7rem; color: var(--muted); margin-top: 2px; }

ul.list { padding-left: 18px; margin: 4px 0 10px; }
ul.list li { font-size: .8rem; line-height: 1.55; margin-bottom: 4px; }

.criteria dt { font-weight: 700; font-size: .8rem; }
.criteria dd { margin: 0 0 6px; font-size: .78rem; color: var(--muted); line-height: 1.5; }

.footer { padding: 6px 14px; font-size: .68rem; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.4; display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.footer .link { border: 0; background: none; color: #1f618d; text-decoration: underline; cursor: pointer; font-size: .72rem; white-space: nowrap; padding: 2px; }
.footer a { color: inherit; }

a { color: #1f618d; }

/* ===== 地図ポップアップ ===== */
.popup { width: 260px; }
.popup img { width: 100%; height: 130px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; background: #ddd; }
.popup-title { font-weight: 700; font-size: .92rem; margin-bottom: 4px; }
.popup-desc { font-size: .8rem; color: #444; line-height: 1.45; margin: 4px 0; }
.popup dl { margin: 6px 0 0; font-size: .74rem; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.popup dt { color: var(--muted); white-space: nowrap; }
.popup dd { margin: 0; }
.popup .warn { color: var(--warn); font-size: .76rem; margin-top: 6px; }
.popup .credit { font-size: .65rem; color: #999; margin-top: 4px; }

.marker-pin {
  width: 16px;
  height: 16px;
  box-sizing: border-box;
  border: 2.5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(0, 0, 0, .45);
}
.marker-pin.warn { box-shadow: 0 0 0 3px rgba(176, 58, 46, .55), 0 0 4px rgba(0, 0, 0, .45); }

.error { color: var(--warn); font-size: .85rem; padding: 12px; }

/* ===== スマホ・縦画面 ===== */
@media (max-width: 820px) {
  #app { flex-direction: column; }
  #map { flex: none; height: 42vh; height: 42dvh; }
  #sidebar { width: 100%; flex: 1; min-height: 0; box-shadow: 0 -2px 12px rgba(0, 0, 0, .15); }
  .header { padding: 10px 16px; }
  .panel { padding: 10px 16px 24px; }
  .filter-bar { padding: 8px 16px; }
}

/* ===== 優先度・表示有無 ===== */
.prio-chip small { margin-left: 4px; opacity: .75; font-size: .68rem; }
.prio-chip.active.p1 { background: #922b21; border-color: #922b21; }
.prio-chip.active.p2 { background: #b9770e; border-color: #b9770e; }
.prio-chip.active.p3 { background: #5d6d7e; border-color: #5d6d7e; }
.badge.prio { color: #fff; }
.badge.prio.p1 { background: #922b21; }
.badge.prio.p2 { background: #b9770e; }
.badge.prio.p3 { background: #5d6d7e; }
.badge.ai { background: #5b2c6f; }
.badge.hidden-badge { background: #7f8c8d; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; cursor: pointer; }
.check.small { font-size: .72rem; color: var(--muted); }

.card.is-hidden { opacity: .55; border-style: dashed; }
.card .noimg { width: 84px; height: 64px; border-radius: 6px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.card-admin { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.card-admin select { font-size: .72rem; padding: 2px 4px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.mini { font-size: .72rem; padding: 3px 8px; border: 1px solid #ccc; border-radius: 6px; background: #fff; cursor: pointer; color: var(--text); }
.mini:hover { border-color: #4a90e2; }
.mini.off { background: #eceff1; color: #555; }
.mini.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.marker-pin.p1 { box-shadow: 0 0 0 2px rgba(146, 43, 33, .35), 0 0 5px rgba(0, 0, 0, .5); }
.marker-pin.hidden-item { opacity: .45; border-style: dashed; }
.edit-pin {
  width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--brand); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.draft-pin {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2.5px dashed #5b2c6f;
  color: #5b2c6f; font-weight: 700; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 4px rgba(0, 0, 0, .4);
}
#map.picking { cursor: crosshair; }
#map.picking .leaflet-interactive { cursor: crosshair; }
.popup-links { margin-top: 6px; font-size: .74rem; }

/* ===== 管理：ボタン・ツールバー ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  font: inherit; font-size: .8rem; padding: 7px 12px; border-radius: 8px;
  border: 1px solid #c8c8c8; background: #fff; color: var(--text); cursor: pointer;
}
.btn:hover { border-color: #4a90e2; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.btn.danger { color: var(--warn); border-color: #e6b0aa; margin-left: auto; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible, .mini:focus-visible, .chip:focus-visible { outline: 2px solid #4a90e2; outline-offset: 1px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px; background: var(--brand-soft); border-radius: var(--radius); }
.toolbar .btn { flex: 1; min-width: 150px; }
.icon-btn { border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: var(--bg-soft); }

/* ===== 管理：フォーム ===== */
.editor { display: flex; flex-direction: column; gap: 10px; }
.editor-head { display: flex; justify-content: space-between; align-items: center; }
.editor-head h2 { margin: 0 !important; }
.editor label { display: flex; flex-direction: column; gap: 3px; font-size: .76rem; color: var(--muted); min-width: 0; }
.editor label.check { flex-direction: row; color: var(--text); }
.editor input:not([type="checkbox"]):not([type="radio"]), .editor select, .editor textarea {
  font: inherit; font-size: .88rem; color: var(--text); padding: 7px 9px; border: 1px solid #ccc; border-radius: 7px; background: #fff; width: 100%;
}
.editor input:focus, .editor select:focus, .editor textarea:focus { outline: 2px solid #4a90e2; outline-offset: -1px; border-color: #4a90e2; }
.editor textarea { resize: vertical; line-height: 1.5; }
.editor fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px 10px; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.editor legend { font-size: .78rem; font-weight: 700; padding: 0 4px; }
.editor .note { margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prio-radio { flex-direction: row !important; flex-wrap: wrap; }
.radio { flex: 1; flex-direction: row !important; align-items: center; gap: 6px !important; padding: 6px 8px; border: 1px solid #ccc; border-radius: 8px; cursor: pointer; color: var(--text) !important; }
.radio span { display: flex; flex-direction: column; font-size: .82rem; font-weight: 700; }
.radio small { font-weight: 400; font-size: .68rem; color: var(--muted); }
.radio:has(input:checked).p1 { border-color: #922b21; background: #f9ebea; }
.radio:has(input:checked).p2 { border-color: #b9770e; background: #fef5e7; }
.radio:has(input:checked).p3 { border-color: #5d6d7e; background: #eef1f3; }
.search-row { display: flex; gap: 6px; }
.search-row input { flex: 1; }
.geo-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.geo-results button { width: 100%; text-align: left; font-size: .74rem; border: 1px solid var(--line); background: var(--card); border-radius: 6px; padding: 6px 8px; cursor: pointer; line-height: 1.4; }
.geo-results button:hover { background: var(--hover); border-color: #4a90e2; }
.img-preview img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 6px; }
.form-error { color: var(--warn); font-size: .8rem; line-height: 1.5; }
.form-error:empty { display: none; }
.editor-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.editor-actions.sticky { position: sticky; bottom: -24px; background: var(--bg); padding: 10px 0; border-top: 1px solid var(--line); }

/* ===== 管理：スクショ取り込み ===== */
.importer { display: flex; flex-direction: column; gap: 10px; }
.dropzone {
  border: 2px dashed #bbb; border-radius: 12px; padding: 28px 16px; text-align: center; cursor: pointer;
  background: var(--bg-soft); transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); outline: none; }
.dropzone p { margin: 6px 0; font-size: .82rem; line-height: 1.6; }
.dz-icon { font-size: 2rem; }
kbd { font-family: inherit; font-size: .72rem; padding: 1px 5px; border: 1px solid #ccc; border-bottom-width: 2px; border-radius: 4px; background: #fff; }
.picked { display: flex; flex-direction: column; gap: 8px; }
.shot-preview { max-width: 100%; max-height: 320px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; align-self: center; background: var(--bg-soft); }
.loading { display: flex; align-items: center; gap: 10px; font-size: .84rem; padding: 12px; background: var(--info-bg); border-radius: var(--radius); }
.spinner { width: 20px; height: 20px; border: 3px solid #c5d9ee; border-top-color: #2e86c1; border-radius: 50%; animation: spin 0.9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.source-box { display: flex; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.source-box img { width: 64px; height: 96px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.draft-card { display: flex; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.draft-card.registered { background: var(--ok-bg); border-color: #a9dfbf; }
.draft-card > img, .draft-card .noimg { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.draft-card .noimg { background: var(--bg-soft); display: grid; place-items: center; font-size: 1.4rem; }
.draft-check { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.draft-no { width: 20px; height: 20px; border-radius: 50%; border: 2px dashed #5b2c6f; color: #5b2c6f; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.card-title small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.geo-note { font-size: .72rem; margin-top: 3px; line-height: 1.4; }
.geo-note.ok { color: var(--ok); }
.geo-note.warn { color: var(--warn); }
.done { color: var(--ok); font-size: .76rem; font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); max-width: calc(100vw - 32px); }

@media (max-width: 820px) {
  .row2 { grid-template-columns: 1fr; }
  .toolbar .btn { min-width: 0; }
}

/* ===== 画面切り替え（地図／記事） ===== */
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.view-nav { display: flex; gap: 4px; flex-shrink: 0; }
.view-nav a {
  font-size: .76rem; color: #fff; text-decoration: none; padding: 4px 10px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .55); white-space: nowrap;
}
.view-nav a:hover { background: rgba(255, 255, 255, .15); }
.view-nav a[aria-current="page"] { background: #fff; color: var(--brand); font-weight: 700; }
.view-nav a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#app[hidden], #articleView[hidden] { display: none; }

/* 記事へのリンク（地図側） */
.article-ref {
  display: inline-block; font-size: .76rem; margin: -2px 0 8px; padding: 3px 10px;
  border-radius: 12px; background: #eef4fb; color: #1f618d; text-decoration: none;
}
.article-ref:hover { background: #d6e6f5; }
.card-article { display: inline-block; font-size: .72rem; margin-top: 4px; color: #1f618d; text-decoration: none; }
.card-article:hover { text-decoration: underline; }
.popup-articles { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.popup-articles a { font-size: .76rem; text-decoration: none; }
.popup-articles a:hover { text-decoration: underline; }

/* ルート一覧（移動タブ） */
.route-list { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.route-list a {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; padding: 7px 10px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card); color: var(--text); text-decoration: none; font-size: .78rem;
}
.route-list a:hover { background: var(--hover); border-color: #4a90e2; }
.route-date { color: var(--brand); font-weight: 700; grid-row: span 2; align-self: center; min-width: 4.5em; }
.route-time { color: var(--muted); }

/* ===== 地図：都市間ルートの矢印・ラベル ===== */
.route-line { stroke: #6e2c00; stroke-opacity: .75; }
.route-annot { overflow: visible; }
.route-arrow { position: absolute; left: 0; top: 0; width: 26px; height: 26px; transform-origin: center; pointer-events: none; }
.route-arrow svg { display: block; fill: #6e2c00; stroke: #6e2c00; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 1px #fff); }
.route-label {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  font: inherit; font-size: 12px; font-weight: 700; line-height: 1.25; color: #4a1f00;
  background: #fffaf2; border: 1.5px solid #6e2c00; border-radius: 10px; padding: 3px 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .3); cursor: pointer;
}
.route-label small { font-size: 10px; font-weight: 400; color: #7b5b3a; }
.route-label:hover, .route-label:focus-visible { background: #fdebd0; outline: none; }
.route-toggle { background: #fff; padding: 4px 8px; font-size: 12px; }
.route-toggle label { display: flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap; }

@media (max-width: 820px) {
  .view-nav a { padding: 3px 8px; }
  .route-label { font-size: 11px; padding: 2px 6px; }
}

/* ===== 手書きアノテーション ===== */
.hw-note {
  margin: 6px 0; padding: 7px 9px; border-radius: 8px; background: #fff8e1;
  border: 1px solid #f3d27a; border-left: 4px solid #e6a100; font-size: .76rem; line-height: 1.5;
}
.hw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 700; color: #7a4f00; }
.hw-text { font-size: .86rem; font-weight: 700; color: #222; margin-top: 2px; }
.hw-interp { color: #5d4a1f; }
.hw-intent { font-size: .68rem; padding: 1px 7px; border-radius: 10px; color: #fff; font-weight: 700; }
.hw-intent.intent-must { background: #922b21; }
.hw-intent.intent-want { background: #b9770e; }
.hw-intent.intent-maybe { background: #5d6d7e; }
.hw-intent.intent-skip { background: #7f8c8d; text-decoration: line-through; }
.hw-refined { font-size: .66rem; font-weight: 400; color: #7a4f00; background: #fff; border: 1px solid #f3d27a; border-radius: 10px; padding: 0 6px; }
.hw-thumbs { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.hw-thumbs img { height: 64px; max-width: 150px; object-fit: contain; border: 1px solid #e0c46c; border-radius: 4px; background: #fff; }
.hw-summary .hw-general { margin-top: 6px; }
.draft-card.marked { border-color: #e6a100; box-shadow: 0 0 0 1px #f3d27a inset; }
.draft-card.dimmed { opacity: .6; }
.draft-card.dimmed:hover, .draft-card.dimmed:focus-within { opacity: 1; }
.badge.hw { background: #e6a100; }
.hw-popup { margin: 6px 0; padding: 5px 8px; background: #fff8e1; border-left: 3px solid #e6a100; border-radius: 4px; font-size: .78rem; line-height: 1.45; }
.hw-popup small { color: #5d4a1f; }
