:root {
  --bg: #f6f4ef; --surface: #fff; --ink: #24221d; --muted: #6f6a5f; --line: #e0dbd0; --accent: #3f4a36; --accent-ink: #fff; --accent-soft: #ebeee5;
  --chart: #4f7f3a; --chart-grid: #ece8df;
  --danger: #a33a2a; --danger-soft: #f8e9e5; --warn: #8a5a10; --warn-soft: #f7efdc; --ok: #2f6b45; --ok-soft: #e4f1e8;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif; -webkit-text-size-adjust: 100%; }
.top { display: flex; align-items: baseline; gap: 12px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo { font-weight: 700; letter-spacing: .18em; }
.top-title { color: var(--muted); font-size: 13px; }
.top-who { margin-left: auto; color: var(--muted); font-size: 12px; }
.wrap { max-width: 620px; margin: 0 auto; padding: 20px 16px 64px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 16px 16px 64px; }
h1 { font-size: 20px; line-height: 1.4; margin: 0 0 6px; font-weight: 600; }
h2 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.steps { display: flex; gap: 4px; margin-bottom: 18px; list-style: none; padding: 0; }
.steps li { flex: 1; font-size: 11px; color: var(--muted); border-top: 3px solid var(--line); padding-top: 5px; }
.steps li.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 12px; }
label.field { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
label.field .sub { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 11px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: #fff; border: 1px solid #c9c3b6; border-radius: 6px;
}
textarea { min-height: 76px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.actions .btn:last-child { flex: 1; }
.notice { padding: 10px 12px; border-radius: 6px; font-size: 14px; margin-bottom: 12px; background: var(--accent-soft); }
.notice.err { background: var(--danger-soft); color: var(--danger); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.fine { font-size: 12px; color: var(--muted); }
details.fine summary { cursor: pointer; }
.line { display: flex; gap: 12px; align-items: flex-start; }
.line input[type=checkbox] { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--accent); }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--line); flex: none; }
.line-title { font-weight: 600; line-height: 1.45; }
.line-sub { font-size: 12px; color: var(--muted); }
.line-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.radio { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #c9c3b6; border-radius: 6px; margin-top: 6px; font-weight: 400; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.radio small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { padding: 0; font-size: 13px; font-weight: 600; }
.pill { display: inline-block; padding: 1px 8px; font-size: 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.no { background: var(--danger-soft); color: var(--danger); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.grey { background: #ece9e1; color: var(--muted); }
.uploads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.up { position: relative; width: 76px; height: 76px; border-radius: 6px; background: #ece9e1; overflow: hidden; font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: center; text-align: center; }
.up img, .up video { width: 100%; height: 100%; object-fit: cover; }
.up button { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.up .bar { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); }
.up.failed { background: var(--danger-soft); color: var(--danger); padding: 4px; }
.addbtn { position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px dashed #a9a394; border-radius: 6px; font-size: 13px; font-weight: 400; cursor: pointer; background: #fff; margin-right: 6px; margin-top: 4px; }
.addbtn:focus-within { outline: 2px solid var(--accent); }
.addbtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
dl.kv { display: grid; grid-template-columns: 96px 1fr; gap: 4px 10px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); font-size: 13px; }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.done-id { font-size: 22px; font-weight: 700; letter-spacing: .04em; }

.linkbtn { display: block; min-height: 44px; margin: 6px auto 0; padding: 8px; border: 0; background: none; font: inherit; font-size: 14px; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* 担当者 */
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; align-items: center; }
.tab { min-height: 36px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.tab[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tab .n { opacity: .7; margin-left: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.row { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.row[aria-current=true] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.row-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-id { font-weight: 600; font-variant-numeric: tabular-nums; }
.row-date { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-items { font-size: 13px; color: var(--muted); margin-top: 3px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.panel { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.media { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.media a { display: block; }
.media img { width: 112px; height: 112px; object-fit: cover; border-radius: 6px; display: block; background: var(--line); }
.media video { width: 240px; max-width: 100%; border-radius: 6px; background: #000; display: block; }
.item-block { padding: 12px 0; border-top: 1px solid var(--line); }
.item-block:first-of-type { border-top: 0; padding-top: 0; }
.decide textarea { min-height: 60px; }
.nav { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rules { max-width: 760px; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.rule-label { font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding-left: 8px; font-size: 13px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); overflow-wrap: anywhere; }
.chip button { width: 28px; height: 28px; flex: none; border: 0; background: none; color: inherit; font-size: 14px; cursor: pointer; border-radius: 50%; }
.add-row { display: flex; gap: 6px; align-items: center; }
.add-row input { margin-top: 0; min-width: 0; flex: 1; }
.btn.small { min-height: 44px; padding: 4px 12px; flex: none; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .panel { position: static; max-height: none; }
  body.admin.has-detail .list-col { display: none; }
  .rule-grid { grid-template-columns: minmax(0, 1fr); }
  .refund-line:has(.price) { flex-wrap: wrap; }
  .refund-line:has(.price) .refund-name { flex-basis: 100%; }
}
@media (min-width: 861px) { .only-narrow { display: none; } }

/* 対応（返金・追加発送） */
.resolve { border-top: 1px solid var(--line); padding: 12px 0; }
.resolve-body { background: #fbfaf7; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.money-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.money-sum strong { color: var(--ink); }
.refund-line { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.refund-name { flex: 1; min-width: 0; font-size: 14px; }
.refund-line select { width: 68px; flex: none; margin: 0; }
.refund-line .price { width: 96px; flex: none; margin: 0; text-align: right; }
.refund-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.refund-total { font-size: 20px; font-variant-numeric: tabular-nums; }
.refund-foot .btn { margin-left: auto; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 8px; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.tab:disabled { opacity: .5; cursor: default; }
.search-results { margin-top: 8px; max-height: 240px; overflow-y: auto; }
.pick { display: flex; gap: 10px; align-items: center; width: 100%; min-height: 44px; padding: 6px; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick:disabled { opacity: .45; cursor: default; }
.pick-name { font-size: 14px; line-height: 1.4; min-width: 0; }
.pick-name small { display: block; font-size: 12px; color: var(--muted); }
.thumb-s { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: 4px; background: var(--line); }
.icon-x { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: none; font-size: 15px; color: var(--muted); cursor: pointer; }
.history-row { padding: 10px 0; border-top: 1px solid var(--line); }
.history-row:first-child { border-top: 0; }
@media (hover: hover) { .pick:hover:not(:disabled) { background: var(--accent-soft); } .icon-x:hover { background: rgba(0, 0, 0, .07); } }

/* 担当者 */
.assignee-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.assignee-filter select { width: auto; margin: 0; padding: 4px 8px; font-size: 13px; min-height: 36px; max-width: 150px; }
.assignee { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.list-col .toolbar .assignee-filter { margin-left: auto; }

/* 分析 */
.stats { transition: opacity .15s; }
.stats.busy { opacity: .6; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.tile-label { font-size: 12px; color: var(--muted); }
.tile-value { font-size: 24px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.tile-sub { font-size: 12px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-bottom: 8px; }
.stat-card { margin: 0; min-width: 0; }
.cols-wrap { display: flex; gap: 6px; height: 170px; margin-top: 18px; }
.cols-axis { display: flex; flex-direction: column; justify-content: space-between; flex: none; width: 38px; text-align: right; font-size: 11px; line-height: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.cols-plot { position: relative; flex: 1; min-width: 0; }
.grid-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--chart-grid); }
.cols { position: absolute; inset: 0; display: flex; align-items: stretch; }
.col { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; outline-offset: -1px; cursor: default; }
.col:hover { background: rgba(0, 0, 0, .03); }
.col b { display: block; width: 100%; max-width: 24px; min-height: 2px; background: var(--chart); border-radius: 4px 4px 0 0; }
.col-peak { position: absolute; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--ink); white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.col:first-child .col-peak { left: 0; transform: none; }
.col:last-child .col-peak { left: auto; right: 0; transform: none; }
.cols-x { display: flex; justify-content: space-between; margin: 4px 0 8px 44px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-tip { position: fixed; z-index: 10; padding: 4px 8px; font-size: 12px; color: #fff; background: rgba(36, 34, 29, .92); border-radius: 4px; pointer-events: none; white-space: nowrap; }
.chart-tip[hidden] { display: none; }
.hbar { margin-bottom: 10px; }
.hbar-label { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.hbar-track { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.hbar-track b { display: block; height: 12px; min-width: 2px; background: var(--chart); border-radius: 0 4px 4px 0; }
.hbar-track span { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.stat-table th { text-align: right; font-weight: 400; font-size: 12px; color: var(--muted); padding: 4px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stat-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--chart-grid); white-space: nowrap; }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; padding-left: 0; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: minmax(0, 1fr); } .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-value { font-size: 20px; } }

.delivery-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 10px; }

/* 進捗ボード */
body.board-mode .wrap-wide { max-width: none; padding-bottom: 12px; }
.layout-switch { display: inline-flex; gap: 4px; margin-left: auto; }
.board-page .toolbar { margin-bottom: 8px; }
.board { display: flex; gap: 10px; align-items: flex-start; overflow-x: auto; height: calc(100vh - 190px); height: calc(100dvh - 190px); min-height: 360px; padding-bottom: 8px; scroll-padding: 0 16px; }
.bcol { flex: none; width: 272px; max-height: 100%; display: flex; flex-direction: column; background: #efece4; border-radius: 8px; }
.bcol-head { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 4px 6px 12px; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.bcol-head h2 { margin: 0; font-size: 14px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.bcol-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bcol-head .icon-x { margin-left: auto; line-height: 1; }
.bcol-rename { margin: 0; padding: 4px 8px; font-size: 14px; flex: 1; min-width: 0; }
.bcol-menu { position: absolute; z-index: 5; top: 42px; right: 4px; width: 190px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 4px 16px rgba(36, 34, 29, .14); cursor: default; }
.bcol-menu button { display: block; width: 100%; min-height: 40px; padding: 4px 10px; text-align: left; font: inherit; font-size: 13px; color: inherit; background: none; border: 0; border-radius: 4px; cursor: pointer; }
.bcol-menu button:disabled { opacity: .45; cursor: default; }
.bcol-menu p { margin: 4px 10px; line-height: 1.5; }
.bcol-cards { flex: 1 1 auto; min-height: 44px; overflow-y: auto; padding: 0 8px 8px; }
.bcol-more { flex: none; margin: 0 auto 4px; font-size: 13px; }
.bcard { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: border-color .15s; }
.bcard[aria-current=true] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.bcard-name { font-size: 13px; font-weight: 600; margin-top: 2px; }
.bcard .row-items { font-size: 12px; line-height: 1.5; margin-top: 0; }
.bcard-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.bcol-add { flex: none; width: 272px; }
.bcol-add input { margin: 0 0 6px; }
.bcol-add .addbtn { margin: 0; width: 100%; justify-content: center; min-height: 44px; }
.drag-slot { background: rgba(36, 34, 29, .08); border-radius: 8px; margin-bottom: 8px; max-width: 100%; }
.board > .drag-slot { margin-bottom: 0; }
.drag-ghost { position: fixed; z-index: 30; margin: 0; pointer-events: none; box-shadow: 0 8px 24px rgba(36, 34, 29, .22); }
.bcol.drag-ghost { overflow: hidden; }
body.dragging, body.dragging * { cursor: grabbing !important; }
body.drawer-open { overflow: hidden; }
.drawer-wrap { position: fixed; inset: 0; z-index: 20; }
.scrim { position: absolute; inset: 0; background: rgba(36, 34, 29, .28); }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); overflow-y: auto; padding: 8px 12px 24px; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.drawer-head { display: flex; justify-content: flex-end; grid-column: 1 / -1; }
.drawer .panel { position: static; max-height: none; overflow: visible; margin-bottom: 0; min-width: 0; }
.drawer .only-narrow { display: none; }
.drawer .chat-side { grid-column: auto; position: static; max-height: none; }
.drawer .chat-side .chat-box { max-height: 360px; }
@media (min-width: 1100px) {
  body.has-chat .drawer { width: min(1080px, 100vw); grid-template-columns: minmax(0, 1.3fr) minmax(300px, .9fr); }
  body.has-chat .drawer .chat-side { position: sticky; top: 0; max-height: calc(100vh - 32px); }
  body.has-chat .drawer .chat-side .chat-box { max-height: none; }
}
@media (hover: hover) { .bcard:hover { border-color: #a9a394; } .bcol-menu button:hover:not(:disabled) { background: var(--accent-soft); } }
@media (max-width: 860px) {
  .bcol, .bcol-add { width: min(84vw, 300px); }
  .board { scroll-snap-type: x proximity; height: calc(100dvh - 210px); }
  .bcol { scroll-snap-align: start; }
  body.dragging .board { scroll-snap-type: none; }
}

/* 問い合わせチャット */
.chat-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; margin-bottom: 0; min-width: 0; }
.chat-side > .notice { flex: none; }
body.admin.has-chat .wrap-wide { max-width: 1600px; }
body.admin.has-chat .split { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.2fr) minmax(300px, .9fr); }
@media (max-width: 1180px) {
  body.admin.has-chat .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  body.admin.has-chat .list-col { grid-row: 1 / span 2; }
  body.admin.has-chat .panel { position: static; max-height: none; }
  .chat-side { position: static; max-height: none; grid-column: 2; }
  .chat-side .chat-box { max-height: 360px; }
}
@media (max-width: 860px) {
  body.admin.has-chat .split { grid-template-columns: minmax(0, 1fr); }
  .chat-side { grid-column: 1; }
}
.chat-sources { flex: none; display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.chat-sources .chip { padding: 2px 8px; font-size: 12px; }
.chat-sources .chip:has(button) { padding-right: 0; }
.chat-more { flex: none; margin-top: 8px; }
.chat-more-body { margin-top: 6px; max-height: 240px; overflow-y: auto; }
.chat-box { flex: 1 1 auto; min-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 10px; background: #fbfaf7; border: 1px solid var(--line); border-radius: 8px; }
.msg { flex: none; max-width: 88%; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.msg.staff, .msg.bot { align-self: flex-end; background: var(--accent-soft); border-color: transparent; }
.msg.note { background: var(--warn-soft); border-color: transparent; }
.msg-head { font-size: 11px; color: var(--muted); }
.msg-text { font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* 動き（開閉・画面の切り替えは motion.js）。短く、控えめに */
input, select, textarea { transition: border-color .15s; }
input[type=text]:hover, input[type=email]:hover, input[type=tel]:hover, select:hover, textarea:hover { border-color: #a9a394; }
.btn { transition: background-color .15s, border-color .15s, opacity .15s, transform .1s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.row, .tab, .radio, .addbtn, .chip button, .up button, .linkbtn { transition: background-color .15s, border-color .15s, color .15s; }
@media (hover: hover) {
  .btn:hover:not(:disabled) { background: #333c2c; border-color: #333c2c; }
  .btn.ghost:hover:not(:disabled) { background: var(--accent-soft); border-color: var(--accent); }
  .btn.danger:hover:not(:disabled) { background: #8a3023; border-color: #8a3023; }
  .row:hover:not(:disabled) { border-color: #a9a394; }
  .tab:hover:not([aria-pressed=true]) { border-color: #a9a394; background: #fbfaf7; }
  .radio:hover { border-color: #a9a394; }
  .radio:has(input:checked):hover { border-color: var(--accent); }
  .addbtn:hover { background: #fbfaf7; border-color: var(--accent); }
  .chip button:hover { background: rgba(0, 0, 0, .07); }
  .linkbtn:hover { color: #333c2c; }
}
.steps li.just { animation: step-on .3s ease-out; }
@keyframes step-on { from { border-top-color: var(--line); color: var(--muted); } }
.up .bar { transition: width .15s linear; }
.up.fresh, .chip.fresh { animation: pop-in .16s cubic-bezier(.2, 0, 0, 1); }
@keyframes pop-in { from { opacity: 0; transform: scale(.92); } }
.loading { animation: appear .2s .2s both; }   /* すぐ読めるときは、読み込み中の文字を見せない */
@keyframes appear { from { opacity: 0; } }
details.fine summary { list-style: none; }
details.fine summary::-webkit-details-marker { display: none; }
details.fine summary::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .16s; }
details.fine.is-open summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
