/* ============================================
   Kananポータル 画面パーツ
   スマホで現場で使うことを前提に組んである。
   - 指で押す領域は最低44px
   - ナビは下固定（親指の届く位置）。PCでは上に出す
   - 拠点カラーは data-color で切り替える
   ============================================ */

/* ===== 拠点カラーの割り当て ===== */
[data-color="orange"] { --c: var(--c-orange); --c-soft: var(--c-orange-soft); --c-deep: var(--c-orange-deep); }
[data-color="blue"]   { --c: var(--c-blue);   --c-soft: var(--c-blue-soft);   --c-deep: var(--c-blue-deep); }
[data-color="green"]  { --c: var(--c-green);  --c-soft: var(--c-green-soft);  --c-deep: var(--c-green-deep); }
[data-color="purple"] { --c: var(--c-purple); --c-soft: var(--c-purple-soft); --c-deep: var(--c-purple-deep); }

/* ===== 下部ナビ ===== */
.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.navbar button {
  flex: 1; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--text-mute); padding: 9px 2px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  transition: color .15s; position: relative;
}
.navbar button svg { width: 21px; height: 21px; stroke-width: 1.9; }
.navbar button.is-on { color: var(--brand); }
.navbar button.is-on::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand);
}
.navbar .dot {
  position: absolute; top: 6px; right: 50%; margin-right: -18px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--action); color: #fff; font-size: 9px; line-height: 16px;
}
.navbar .dot:empty { display: none; }

body { padding-bottom: 72px; }

/* ===== 見出し ===== */
.sec-h {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-mute);
  margin: 26px 0 11px; padding-left: 2px;
}
.lead { font-size: 12.5px; color: var(--text-sub); margin-bottom: 14px; line-height: 1.8; }

/* ===== 拠点タイル ===== */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  border: none; font-family: inherit; color: inherit;
  background: var(--card); border-radius: var(--r); padding: 16px 15px 15px;
  box-shadow: var(--shadow);
  transition: transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s;
  display: block; width: 100%;
}
.tile::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--c);
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lift); outline: none; }
.tile:active { transform: translateY(0); }
.tile .no {
  font-size: 22px; font-weight: 800; color: var(--c); line-height: 1;
  display: block; margin-bottom: 6px;
}
.tile .area { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; }
.tile .org { font-size: 11px; color: var(--text-sub); margin-top: 1px; }
.tile .foot {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-top: 11px; font-size: 11px; color: var(--text-mute);
}
.tile .pill {
  background: var(--c-soft); color: var(--c-deep);
  padding: 2px 9px; border-radius: 20px; font-weight: 700;
}
.tile .today-mark {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  animation: pop .3s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ===== 実行モード（拠点を開いた画面） ===== */
.runner { animation: slideUp .22s cubic-bezier(.2,.8,.2,1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.runner-head {
  background: var(--c); color: #fff; border-radius: var(--r);
  padding: 18px 20px 20px; margin-bottom: 14px; position: relative; overflow: hidden;
}
.runner-head::after {
  content: ""; position: absolute; right: -30px; top: -40px;
  width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1);
}
.runner-head .back {
  background: rgba(255,255,255,.2); border: none; color: #fff; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700;
  padding: 6px 13px; border-radius: 20px; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 5px;
}
.runner-head .back:hover { background: rgba(255,255,255,.32); }
.runner-head .no { font-size: 13px; font-weight: 800; opacity: .85; }
.runner-head h2 { font-size: 25px; font-weight: 800; line-height: 1.3; margin: 2px 0 4px; }
.runner-head .org { font-size: 13px; opacity: .9; }
.runner-head .purpose { font-size: 12px; opacity: .82; margin-top: 8px; line-height: 1.75; }

/* 行き方 */
.go-card { display: grid; gap: 10px; }
.go-row { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.75; }
.go-row .ic {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  background: var(--c-soft); color: var(--c-deep);
  display: grid; place-items: center;
}
.go-row .ic svg { width: 16px; height: 16px; stroke-width: 2; }
.go-row .k { font-size: 10.5px; color: var(--text-mute); font-weight: 700; letter-spacing: 0.06em; }
.go-row .v { word-break: break-word; }
.map-btn {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 5px;
  background: var(--c); color: #fff; text-decoration: none;
  font-size: 12.5px; font-weight: 700; padding: 8px 15px; border-radius: 20px;
}
.map-btn svg { width: 14px; height: 14px; stroke-width: 2.2; }

/* 暗証番号 */
.codes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.code-chip {
  flex: 1 1 130px; border: 2px dashed var(--c); border-radius: 12px;
  background: var(--c-soft); padding: 11px 14px; text-align: left;
  font-family: inherit; cursor: pointer; transition: transform .1s, background .15s;
}
.code-chip:active { transform: scale(.98); }
.code-chip .k { font-size: 10.5px; font-weight: 700; color: var(--c-deep); letter-spacing: 0.06em; }
.code-chip .v {
  font-family: "Consolas", monospace; font-size: 24px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--c-deep); line-height: 1.3;
}
.code-chip .hint { font-size: 10px; color: var(--text-mute); }
.code-chip.copied { background: var(--success-soft); border-color: var(--success); }
.code-chip.copied .k, .code-chip.copied .v { color: var(--success); }

/* 進捗 */
.prog-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.prog-head .n { font-size: 22px; font-weight: 800; color: var(--c); line-height: 1; }
.prog-head .of { font-size: 12px; color: var(--text-mute); }
.prog-head .bar { flex: 1; height: 7px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.prog-head .fill {
  height: 100%; background: var(--c); border-radius: 4px;
  transition: width .4s cubic-bezier(.2,.8,.2,1);
}

/* チェックリスト */
.checklist { display: grid; gap: 8px; }
.check-item {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 13px 14px; border-radius: 12px; background: var(--surface);
  border: 1px solid transparent; font-size: 14px; line-height: 1.7;
  transition: background .15s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.check-item:hover { background: var(--surface2); }
.check-item input { display: none; }
.check-item .box {
  flex: 0 0 auto; width: 23px; height: 23px; border-radius: 7px; margin-top: 1px;
  border: 2px solid var(--border-dot); background: var(--card);
  display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.check-item .box svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3.2; opacity: 0; transition: opacity .15s; }
.check-item input:checked ~ .box { background: var(--c, var(--brand)); border-color: var(--c, var(--brand)); }
.check-item input:checked ~ .box svg { opacity: 1; }
.check-item input:checked ~ .txt { color: var(--text-mute); text-decoration: line-through; }
.check-item .num {
  flex: 0 0 auto; font-size: 11px; font-weight: 800; color: var(--text-mute);
  width: 15px; margin-top: 3px;
}

/* 仕分けルール（表をやめてカードに） */
.rule {
  border-radius: 12px; background: var(--surface); padding: 13px 15px; margin-bottom: 9px;
  border-left: 4px solid var(--border-dot);
}
.rule.to-takadanobaba { border-left-color: var(--brand); }
.rule.to-kayabacho { border-left-color: var(--c-green); }
.rule.to-discard { border-left-color: var(--text-mute); }
.rule.to-special { border-left-color: var(--danger); }
.rule .type { font-size: 13.5px; font-weight: 800; line-height: 1.6; }
.rule .action { font-size: 12.5px; color: var(--text-sub); margin-top: 5px; line-height: 1.8; }
.dest-tag {
  display: inline-flex; align-items: center; margin-top: 7px;
  font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 20px;
}
.dest-tag.takadanobaba { background: var(--brand-soft); color: var(--brand-deep); }
.dest-tag.kayabacho { background: var(--c-green-soft); color: var(--c-green-deep); }
.dest-tag.discard { background: var(--surface2); color: var(--text-sub); }
.dest-tag.special { background: var(--danger-soft); color: var(--danger); }

/* 注意 */
.caution {
  display: flex; gap: 11px; padding: 13px 15px; border-radius: 12px;
  background: var(--warn-soft); font-size: 13px; line-height: 1.8; margin-bottom: 14px;
}
.caution .ic { flex: 0 0 auto; color: var(--warn); font-size: 16px; font-weight: 800; }
.caution b { color: var(--danger); }

/* 補足ブロック */
.extra { border-radius: 12px; background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
.extra.warn { background: var(--danger-soft); }
.extra h4 { font-size: 12.5px; font-weight: 800; margin-bottom: 8px; }
.extra.warn h4 { color: var(--danger); }
.extra ul { padding-left: 18px; font-size: 12.5px; line-height: 1.85; }
.extra ul li { margin-bottom: 5px; }
.extra .rows { display: grid; gap: 9px; font-size: 12.5px; }
.extra .rows .r b { display: block; font-size: 11.5px; color: var(--text); }
.extra .rows .r span { color: var(--text-sub); line-height: 1.8; }

/* 折りたたみ */
.fold { border-radius: 12px; background: var(--card); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.fold > summary {
  cursor: pointer; list-style: none; padding: 15px 18px;
  font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 9px;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: "＋"; margin-left: auto; color: var(--text-mute); font-weight: 400; font-size: 16px;
}
.fold[open] > summary::after { content: "−"; }
.fold > summary .n { font-size: 11px; color: var(--text-mute); font-weight: 600; }
.fold .fold-body { padding: 0 18px 18px; }

/* 記録するボタン */
.finish {
  position: sticky; bottom: 84px; z-index: 20; margin-top: 18px;
  display: flex; justify-content: center;
}
.finish .btn { width: 100%; max-width: 420px; }
.finish .btn.ready {
  animation: glow 1.6s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { box-shadow: 0 3px 10px rgba(242, 96, 60, .28); }
  50% { box-shadow: 0 3px 22px rgba(242, 96, 60, .55); }
}

/* ===== 検索 ===== */
.search-box { position: relative; margin-bottom: 16px; }
.search-box .input { padding-left: 40px; height: 46px; font-size: 15px; }
.search-box svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; stroke: var(--text-mute); stroke-width: 2;
}
.hit {
  background: var(--card); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow); border-left: 4px solid var(--c, var(--border-dot));
}
.hit .where { font-size: 11px; font-weight: 800; color: var(--c, var(--text-mute)); margin-bottom: 4px; }
.hit .type { font-size: 14px; font-weight: 800; line-height: 1.6; }
.hit .action { font-size: 12.5px; color: var(--text-sub); margin-top: 5px; line-height: 1.8; }
.quick { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.quick button {
  font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--card); color: var(--text-sub);
}
.quick button:hover { border-color: var(--brand-light); color: var(--brand); background: var(--brand-soft); }

/* ===== 確認事項 ===== */
.pq {
  background: var(--card); border-radius: 12px; padding: 15px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow); display: flex; gap: 12px;
}
.pq .site-no {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.pq .body { flex: 1; min-width: 0; }
.pq .txt { font-size: 14px; font-weight: 700; line-height: 1.7; }
.pq .hint { font-size: 12px; color: var(--text-sub); margin-top: 4px; line-height: 1.75; }
.pq .ans-row { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.pq .ans-row .input { flex: 1; min-width: 160px; }
.pq.done { box-shadow: none; background: var(--surface); }
.pq.done .txt { color: var(--text-sub); font-weight: 600; }
.pq.done .site-no { background: var(--success-soft); color: var(--success); }
.pq .answer {
  margin-top: 8px; font-size: 12.5px; padding: 9px 13px; line-height: 1.8;
  background: var(--success-soft); color: var(--success); border-radius: 9px;
}
.closed-box { margin-top: 8px; }
.closed-box > summary {
  cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--text-sub);
  padding: 12px 2px; list-style: none;
}
.closed-box > summary::-webkit-details-marker { display: none; }
.closed-box > summary::before { content: "▸ "; }
.closed-box[open] > summary::before { content: "▾ "; }

.add-form { display: grid; gap: 8px; margin-top: 14px; }
.add-form .btn { justify-self: start; }

/* ===== 巡回記録 ===== */
.lv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.lv {
  border-radius: 12px; background: var(--card); padding: 13px 14px;
  box-shadow: var(--shadow); border-left: 4px solid var(--c);
}
.lv .n { font-size: 11px; color: var(--text-mute); font-weight: 700; }
.lv .d { font-size: 17px; font-weight: 800; margin-top: 3px; color: var(--c-deep); }
.lv .a { font-size: 11px; color: var(--text-sub); }
.lv.never .d { color: var(--text-mute); font-size: 14px; }

.visit {
  background: var(--card); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: var(--shadow); display: flex; gap: 13px; border-left: 4px solid var(--c, var(--border-dot));
}
.visit .when { flex: 0 0 62px; }
.visit .when .d { font-size: 15px; font-weight: 800; line-height: 1.3; }
.visit .when .a { font-size: 10.5px; color: var(--text-mute); }
.visit .b { flex: 1; min-width: 0; }
.visit .site-name { font-size: 13.5px; font-weight: 800; }
.visit .sub { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.visit .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.visit .memo { font-size: 12.5px; color: var(--text-sub); margin-top: 8px; line-height: 1.8; }

/* ===== 資料・MTG ===== */
.doc-group { margin-bottom: 18px; }
.doc-group h4 { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-mute); margin-bottom: 9px; }
.doc { padding: 11px 14px; background: var(--surface); border-radius: 10px; margin-bottom: 7px; }
.doc .nm { font-size: 13.5px; font-weight: 700; }
.doc .pt { font-family: "Consolas", monospace; font-size: 10.5px; color: var(--text-mute); word-break: break-all; margin-top: 2px; }
.doc .nt { font-size: 11.5px; color: var(--text-sub); margin-top: 3px; }
.link-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border-radius: 10px; margin-bottom: 7px; font-size: 13.5px;
}
.link-row a { color: var(--brand); font-weight: 700; text-decoration: none; }
.link-row a:hover { text-decoration: underline; }
.link-row .nt { font-size: 11.5px; color: var(--text-mute); }
.cred-note {
  margin-top: 14px; padding: 12px 14px; font-size: 12px; line-height: 1.8;
  background: var(--info-soft); color: var(--info); border-radius: 10px;
}
.cred-note b { color: var(--text); }

.mtg { background: var(--card); border-radius: 12px; padding: 15px 17px; margin-bottom: 10px; box-shadow: var(--shadow); }
.mtg .head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.mtg .ttl { font-size: 15px; font-weight: 800; }
.mtg .date { font-size: 12px; color: var(--text-mute); }
.mtg .memo { font-size: 13px; margin-top: 10px; line-height: 1.85; }
.mtg .arts { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.todo { display: flex; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.todo:last-child { border-bottom: none; }
.todo input { accent-color: var(--action); margin-top: 4px; width: 17px; height: 17px; }
.todo.done .t { color: var(--text-mute); text-decoration: line-through; }
.todo .src { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

.howto { padding-left: 20px; font-size: 13px; line-height: 1.95; }
.howto code {
  font-family: "Consolas", monospace; font-size: 11.5px;
  background: var(--surface2); padding: 2px 7px; border-radius: 5px;
}

/* ===== 基本フロー ===== */
.flow { list-style: none; counter-reset: st; display: grid; gap: 7px; }
.flow li {
  counter-increment: st; display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; background: var(--surface); border-radius: 10px; font-size: 13.5px; font-weight: 600;
}
.flow li::before {
  content: counter(st);
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--brand);
}
.principle {
  margin-top: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--action-soft); font-size: 12.5px; line-height: 1.9;
}
.principle b { display: block; color: var(--action-deep); margin-bottom: 4px; font-size: 12.5px; }

.dest-grid { display: grid; gap: 11px; }
.dest { padding: 14px 16px; border-radius: 12px; background: var(--surface); }
.dest h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 7px; }
.dest ul { padding-left: 18px; font-size: 12.5px; line-height: 1.9; color: var(--text-sub); }
.bg-list { padding-left: 18px; font-size: 13px; line-height: 1.95; color: var(--text-sub); }
.bg-list li { margin-bottom: 6px; }

/* facts のリンク */
.fact-link { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

/* ===== PC ===== */
@media (min-width: 760px) {
  body { padding-bottom: 0; padding-top: 0; }
  .navbar {
    position: sticky; top: 0; bottom: auto; border-top: none;
    border-bottom: 1px solid var(--border);
    max-width: 980px; margin: 0 auto; padding: 0 18px;
  }
  .navbar button { flex: 0 0 auto; flex-direction: row; gap: 7px; font-size: 13px; padding: 15px 18px; }
  .navbar button.is-on::before { top: auto; bottom: 0; border-radius: 3px 3px 0 0; }
  .navbar .dot { position: static; margin: 0; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .lv-grid { grid-template-columns: repeat(4, 1fr); }
  .dest-grid { grid-template-columns: 1fr 1fr; }
  .finish { bottom: 20px; }
  .add-form { grid-template-columns: 150px 1fr 1fr auto; align-items: center; }
}

@media (max-width: 380px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ===== 帰ってからやること ===== */
.routine {
  background: var(--card); border-radius: 12px; margin-bottom: 10px;
  box-shadow: var(--shadow); overflow: hidden; border-left: 4px solid var(--action);
}
.routine.is-done { border-left-color: var(--success); }
.routine > summary {
  cursor: pointer; list-style: none; padding: 15px 17px;
  display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center;
}
.routine > summary::-webkit-details-marker { display: none; }
.routine .ttl { font-size: 14.5px; font-weight: 800; }
.routine .cyc { grid-column: 1; font-size: 11.5px; color: var(--text-mute); }
.routine .prog {
  grid-column: 2; grid-row: 1 / span 2;
  display: flex; align-items: center; gap: 7px; min-width: 96px;
}
.routine .prog .n { font-size: 18px; font-weight: 800; color: var(--action); line-height: 1; }
.routine.is-done .prog .n { color: var(--success); }
.routine .prog .of { font-size: 11px; color: var(--text-mute); }
.routine .prog .bar { flex: 1; height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.routine .prog .fill { height: 100%; background: var(--action); border-radius: 3px; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.routine.is-done .prog .fill { background: var(--success); }
.routine-body { padding: 0 17px 18px; }
.routine .sub-h {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-mute);
  margin: 16px 0 8px;
}
.routine .points { padding-left: 18px; font-size: 13px; line-height: 1.9; }
.routine .points li { margin-bottom: 4px; }

.tools { display: grid; gap: 9px; }
.tool { padding: 12px 14px; border-radius: 10px; background: var(--c-soft); border-left: 3px solid var(--c); }
.tool .who { font-size: 11.5px; font-weight: 700; color: var(--c-deep); }
.tool .what { font-size: 15px; font-weight: 800; margin-top: 2px; }
.tool .how { font-size: 12.5px; color: var(--text-sub); margin-top: 4px; line-height: 1.75; }
.tool .why {
  font-size: 11.5px; color: var(--text-mute); margin-top: 6px;
  padding-top: 6px; border-top: 1px dashed var(--border-dot); line-height: 1.75;
}

.hit.is-routine { border-left-color: var(--action); }
.hit.is-routine .where { color: var(--action); }
.hit.is-routine .btn { margin-top: 8px; padding-left: 0; }

@media (min-width: 760px) {
  .tools { grid-template-columns: 1fr 1fr; }
}

/* 持ち帰って処理する分 */
.rule.to-aftercare { border-left-color: var(--action); }
.dest-tag.aftercare { background: var(--action-soft); color: var(--action-deep); }

/* ===== 使うシステム ===== */
.sys {
  display: block; text-decoration: none; color: inherit;
  background: var(--card); border-radius: 12px; padding: 14px 16px; margin-bottom: 9px;
  box-shadow: var(--shadow); border-left: 4px solid var(--brand);
  transition: transform .12s, box-shadow .12s;
}
.sys:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.sys .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sys .nm { font-size: 14.5px; font-weight: 800; color: var(--brand-deep); }
.sys .ext { margin-left: auto; color: var(--text-mute); display: flex; }
.sys .ext svg { width: 14px; height: 14px; stroke-width: 2; }
.sys .use { display: block; font-size: 12.5px; color: var(--text-sub); margin-top: 5px; line-height: 1.75; }
.sys .login {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--text-mute); margin-top: 7px;
}
.sys .login svg { width: 12px; height: 12px; stroke-width: 2; flex: 0 0 auto; }

/* 1回きりの作業 */
.routine .map-btn { margin: 4px 0 10px; background: var(--brand); }
