/* アイカタ（試作）の見た目
   紺を軸に、連絡の知らせだけあたたかい色。白い面・細い線・控えめな影でまとめる。 */
:root {
  --ink: #142033;
  --ink-2: #3a4658;
  --sub: #6a7585;
  --faint: #9aa3b0;
  --line: #e5e8ee;
  --line-2: #eef0f4;
  --bg: #f5f6f9;
  --card: #fff;
  --main: #1d4f91;
  --main-2: #2a64b3;
  --main-weak: #eaf1fb;
  --main-weak-2: #f4f8fd;
  --ok: #1b7a4e;
  --ok-weak: #e7f5ee;
  --warn: #b25e09;
  --warn-weak: #fff4e5;
  --warn-line: #f6dcb4;
  --ng: #c0362c;
  --ng-weak: #fdecea;
  --r: 14px;
  --r-s: 9px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .04);
  --sh-2: 0 4px 14px rgba(16, 24, 40, .07);
  --sh-3: 0 18px 48px rgba(16, 24, 40, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.7;
  font-feature-settings: "palt" 1; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
a { color: var(--main); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--main-2); outline-offset: 2px; border-radius: 6px; }
::selection { background: #cfe0f7; }
.ic { flex: none; vertical-align: -3px; }
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--sub); background: #fff; }

/* ───────── 上の帯 ───────── */
header.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 28px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.top .brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; color: var(--ink); letter-spacing: .02em; }
header.top .brand:hover { text-decoration: none; }
header.top .logo { width: 30px; height: 30px; border-radius: 8px; display: block; }
header.top .tag { font-size: 11px; color: var(--sub); background: var(--line-2); border-radius: 20px; padding: 1px 9px; white-space: nowrap; }
.searchbtn {
  display: flex; align-items: center; gap: 8px; min-width: 260px; height: 36px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--faint); font-size: 13px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.searchbtn:hover { border-color: #cfd5de; background: #fff; }
.searchbtn span { flex: 1; text-align: left; }
nav.tabs { display: flex; gap: 2px; margin-left: auto; }
nav.tabs a {
  position: relative; display: flex; align-items: center; gap: 6px;
  color: var(--sub); padding: 7px 11px; border-radius: 9px; font-size: 13.5px; white-space: nowrap; font-weight: 500;
  transition: background .15s, color .15s;
}
nav.tabs a:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
nav.tabs a.on { background: var(--main-weak); color: var(--main); font-weight: 700; }
nav.tabs a .n { min-width: 17px; padding: 0 5px; border-radius: 9px; background: var(--ng); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; font-weight: 700; }
@media (max-width: 1180px) { .searchbtn { min-width: 0; } .searchbtn span, .searchbtn kbd { display: none; } nav.tabs a .lb { display: none; } nav.tabs a { padding: 8px 10px; } }
@media (max-width: 760px) {
  header.top { padding: 8px 14px; gap: 10px; }
  header.top .tag { display: none; }
  .searchbtn { margin-left: auto; height: 34px; }
  nav.tabs {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 30; gap: 0;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    justify-content: space-around; padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
  }
  nav.tabs a { flex-direction: column; gap: 1px; padding: 5px 4px; font-size: 10.5px; flex: 1; }
  nav.tabs a .lb { display: block; }
  nav.tabs a.on { background: none; }
  nav.tabs a .n { position: absolute; top: 1px; left: 52%; }
  main { padding-bottom: 96px !important; }
}

/* ───────── 骨組み ───────── */
main { max-width: 1200px; margin: 0 auto; padding: 26px 28px 64px; }
main.wide { max-width: 1520px; }
h1 { font-size: 23px; margin: 0 0 4px; letter-spacing: .02em; line-height: 1.4; }
h2 { font-size: 15.5px; margin: 0 0 10px; }
.lead { color: var(--sub); margin: 2px 0 18px; font-size: 13.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--sub); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.page-h { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.page-h .spacer { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--sub); margin-bottom: 8px; }
.back:hover { color: var(--main); text-decoration: none; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--sh-1); }
.panel h2 { display: flex; align-items: center; gap: 8px; }
.panel h2 .note { font-weight: 400; font-size: 12.5px; color: var(--sub); }
.panel h2 a.note { margin-left: auto; }

/* ───────── ボタン ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  background: var(--main); color: #fff; border: 1px solid var(--main); border-radius: 10px; padding: 9px 16px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap; line-height: 1.4;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08); transition: background .15s, border-color .15s, transform .08s, box-shadow .15s;
}
.btn:hover { background: var(--main-2); border-color: var(--main-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.big { padding: 13px 22px; font-size: 15.5px; }
.btn.line { background: #fff; color: var(--main); border-color: #c6d6ec; font-weight: 600; }
.btn.line:hover { background: var(--main-weak-2); border-color: var(--main); }
.btn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line); font-weight: 500; box-shadow: none; }
.btn.ghost:hover { background: var(--bg); border-color: #d3d8e0; }
.btn.s { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.warn { background: var(--warn); border-color: var(--warn); }
.linkbtn { background: none; border: 0; padding: 2px 0; font-size: 11.5px; color: var(--sub); cursor: pointer; font-family: inherit; }
.linkbtn:hover { color: var(--main); text-decoration: underline; }

/* ───────── 顔アイコン ───────── */
.av { display: inline-grid; place-items: center; border-radius: 50%; font-weight: 700; flex: none; letter-spacing: 0; box-shadow: 0 0 0 2px #fff; }
.av.more { background: var(--line-2); color: var(--sub); font-size: 10.5px; }
.avs { display: inline-flex; }
.avs .av + .av { margin-left: -7px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--main-weak); color: var(--main); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; overflow: hidden; }

/* ───────── 印 ───────── */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 20px; padding: 0 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; line-height: 20px; }
.b-ok { background: var(--ok-weak); color: var(--ok); }
.b-warn { background: var(--warn-weak); color: var(--warn); }
.b-ng { background: var(--ng-weak); color: var(--ng); }
.b-info { background: var(--main-weak); color: var(--main); }
.b-gray { background: var(--line-2); color: var(--sub); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ───────── 知らせ ───────── */
.alert { border: 1px solid var(--warn-line); background: linear-gradient(180deg, #fffaf2, var(--warn-weak)); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.alert .msg { font-weight: 700; color: #7a4206; }
.alert .who { font-size: 14px; }
.alert .acts { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.alert.due { border-color: #cfdcf0; background: linear-gradient(180deg, #f8fbff, var(--main-weak)); }
.alert.due .msg { color: var(--main); }

/* ───────── 会う前メモ ───────── */
.brief { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.brief .when { font-size: 12.5px; color: var(--main); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.brief .ttl { font-weight: 700; font-size: 15.5px; line-height: 1.5; margin: 2px 0 4px; }
.brief .ttl:hover { color: var(--main); }
.brief .last { background: var(--main-weak-2); border-left: 3px solid var(--main); padding: 8px 12px; margin-top: 8px; border-radius: 0 8px 8px 0; font-size: 13.5px; white-space: pre-line; color: var(--ink-2); }
.brief ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; }
.brief .lbl { font-size: 11.5px; color: var(--sub); margin-top: 10px; font-weight: 700; letter-spacing: .04em; }
.brief details.more { margin-top: 8px; }
.brief details.more summary { cursor: pointer; color: var(--main); }

/* ───────── 一覧 ───────── */
.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; color: var(--ink); cursor: pointer; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.item:hover { border-color: #c6d6ec; box-shadow: var(--sh-2); text-decoration: none; }
.item .main { flex: 1; min-width: 0; }
.item .t { font-weight: 700; }
.item .d { font-size: 12.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .side { text-align: right; font-size: 12px; color: var(--sub); white-space: nowrap; }
.cardthumb { width: 84px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; background: #fafafa; }
.line-item { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.line-item:last-child { border-bottom: 0; }
.line-item .side { text-align: right; font-size: 12px; color: var(--sub); white-space: nowrap; }
.li-main { display: flex; gap: 10px; align-items: center; min-width: 0; flex: 1; }
.li-main > div { min-width: 0; }
.li-main .ttl { font-weight: 600; font-size: 13.5px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-main .sub { font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.li-main, a.li-main:hover { color: inherit; text-decoration: none; }
.b-row { cursor: pointer; border-radius: 8px; }
.b-row:hover { background: var(--main-weak-2); }

/* 名刺の一覧（カード） */
.ctools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 14px; }
.ctools .q { position: relative; flex: 1; min-width: 220px; }
.ctools .q .ic { position: absolute; left: 11px; top: 11px; color: var(--faint); }
.ctools .q input { padding-left: 36px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.ccard { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ccard:hover { border-color: #c6d6ec; box-shadow: var(--sh-2); transform: translateY(-1px); text-decoration: none; }
.ccard .top { display: flex; gap: 12px; align-items: center; }
.ccard .nm { font-weight: 700; font-size: 15px; line-height: 1.4; }
.ccard .co { font-size: 12.5px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--sub); border-top: 1px solid var(--line-2); padding-top: 9px; }
.ccard .meta .spacer { flex: 1; }
.ccard.late { border-color: var(--warn-line); }

/* ───────── フォーム ───────── */
label.f { display: block; font-size: 12px; color: var(--sub); margin: 12px 0 4px; font-weight: 600; }
input.i, select.i, textarea.i {
  width: 100%; font: inherit; font-size: 14.5px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input.i:focus, select.i:focus, textarea.i:focus { outline: none; border-color: var(--main-2); box-shadow: 0 0 0 3px rgba(42, 100, 179, .14); }
textarea.i { min-height: 220px; font-size: 13px; line-height: 1.65; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }
.drop { border: 2px dashed #d3dae4; border-radius: 12px; padding: 20px; text-align: center; color: var(--sub); font-size: 14px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.drop:hover { border-color: #b8c7dc; }
.drop.over { border-color: var(--main); background: var(--main-weak); }
.samples { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.samples img { width: 150px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.samples img:hover { border-color: var(--main); box-shadow: var(--sh-2); }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--line-2); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 6px 14px; font-size: 13.5px; color: var(--sub); cursor: pointer; border-radius: 8px; font-family: inherit; font-weight: 600; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: #fff; color: var(--main); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.seg.s button { padding: 3px 10px; font-size: 12.5px; }

/* ───────── 詳細 ───────── */
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; font-size: 13.5px; }
.kv dt { color: var(--sub); }
.kv dd { margin: 0; word-break: break-all; }
.timeline { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 18px; }
.tl { position: relative; margin-bottom: 16px; }
.tl::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--main); box-shadow: 0 0 0 3px #fff; }
.tl.doc::before { background: var(--ok); }
.tl.touch::before { background: var(--warn); }
.tl.event::before { background: var(--faint); }
.tl .h { font-size: 12.5px; color: var(--sub); }
.tl .b { font-size: 13.5px; white-space: pre-line; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 20px; padding: 2px 11px; font-size: 12.5px; background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: #c6d6ec; text-decoration: none; }
.chip.on { border-color: var(--main); background: var(--main-weak); color: var(--main); font-weight: 600; }
.prof { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.prof .cardimg { width: 250px; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-2); }

/* 予定 */
.day { margin-bottom: 16px; }
.day .dh { font-size: 12.5px; font-weight: 700; color: var(--sub); margin-bottom: 6px; letter-spacing: .03em; }
.day .dh.today { color: var(--main); }
.ev { display: flex; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 6px; cursor: pointer; align-items: center; transition: border-color .15s, box-shadow .15s; }
.ev:hover { border-color: #c6d6ec; box-shadow: var(--sh-2); }
.ev .tm { width: 92px; font-size: 12.5px; color: var(--sub); font-variant-numeric: tabular-nums; flex: none; }
.ev .tt { flex: 1; font-weight: 600; }
.ev.past { opacity: .75; }

/* 結果・要約 */
.summary { background: var(--main-weak-2); border: 1px solid #dde8f6; border-radius: 10px; padding: 11px 14px; white-space: pre-line; font-size: 13.5px; color: var(--ink-2); }
.error { background: var(--ng-weak); color: var(--ng); border-radius: 10px; padding: 10px 14px; }
.empty { color: var(--faint); text-align: center; padding: 24px 10px; font-size: 13px; }
.timer { font-variant-numeric: tabular-nums; color: var(--sub); font-size: 13px; }
.ul { margin: 2px 0 0; padding-left: 20px; font-size: 13.5px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.bar-l { display: flex; flex-direction: column; line-height: 1.3; }
.bar-t { background: var(--line-2); border-radius: 6px; height: 10px; overflow: hidden; }
.bar { background: linear-gradient(90deg, #2a64b3, #1d4f91); height: 10px; border-radius: 6px; }
.bar-v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.3; }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; }
table.data th, table.data td { border-bottom: 1px solid var(--line-2); padding: 8px 10px; text-align: left; vertical-align: top; }
table.data th { background: #f7f8fa; font-weight: 600; white-space: nowrap; color: var(--sub); font-size: 12px; }
table.data tr:hover td { background: var(--main-weak-2); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .nw { white-space: nowrap; }
.scroll { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 12px; color: var(--sub); box-shadow: var(--sh-1); }
.stat b { display: block; font-size: 21px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; line-height: 1.35; }

/* ───────── モーダル・知らせ ───────── */
.modal-wrap { position: fixed; inset: 0; background: rgba(15, 25, 40, .42); backdrop-filter: blur(3px); z-index: 50; display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 48px 14px; animation: fade .18s ease both; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 720px; padding: 20px 24px 24px; box-shadow: var(--sh-3); animation: pop .22s var(--ease) both; }
.modal .mh { display: flex; align-items: center; gap: 10px; margin: 0 -24px 14px; padding: 0 24px 12px; border-bottom: 1px solid var(--line-2); }
.modal .mh h2 { margin: 0; flex: 1; font-size: 17px; }
.modal .x { border: 0; background: var(--line-2); width: 30px; height: 30px; border-radius: 50%; font-size: 18px; color: var(--sub); cursor: pointer; line-height: 1; display: grid; place-items: center; transition: background .15s; }
.modal .x:hover { background: var(--line); color: var(--ink); }
@media (max-width: 600px) { .modal-wrap { padding: 0; } .modal { border-radius: 0; min-height: 100vh; } }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: #142033; color: #fff; border-radius: 12px; padding: 11px 18px; font-size: 13.5px; box-shadow: var(--sh-3);
  max-width: min(560px, calc(100% - 32px)); animation: rise .25s var(--ease) both;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fd39a; flex: none; }
@media (max-width: 760px) { .toast { bottom: 84px; } }
.fadein { animation: rise .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fadein:not(.toast) { animation-name: pop; }

/* ───────── どこでも検索 ───────── */
.pal-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(15, 25, 40, .38); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 14px 14px; animation: fade .15s ease both; }
.pal { width: 100%; max-width: 620px; background: #fff; border-radius: 16px; box-shadow: var(--sh-3); overflow: hidden; animation: pop .2s var(--ease) both; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--faint); }
.pal-in input { flex: 1; border: 0; outline: none; font: inherit; font-size: 16px; color: var(--ink); background: none; }
.pal-list { max-height: 52vh; overflow: auto; padding: 6px; }
.pal-g { font-size: 11px; font-weight: 700; color: var(--faint); padding: 8px 10px 4px; letter-spacing: .06em; }
.pal-it { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.pal-it .pal-t { flex: 1; min-width: 0; }
.pal-it .pal-t > div:first-child { font-weight: 600; font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-it.on { background: var(--main-weak); }
.pal-it.on .ic { color: var(--main); }
.pal-foot { display: flex; gap: 16px; padding: 8px 14px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--faint); background: #fafbfc; }
.pal-foot kbd { margin-right: 2px; }

/* ───────── ホーム ───────── */
.hero { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.hero .date { font-size: 12.5px; color: var(--sub); font-weight: 600; letter-spacing: .04em; }
.hero h1 { font-size: 25px; margin: 2px 0 2px; }
.hero .say { font-size: 14px; color: var(--ink-2); }
.hero .say b { color: var(--ink); }
.hero .say b.w { color: var(--warn); }
.hero .say b.n { color: var(--ng); }
.home-acts { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.kpi { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi > a, .kpi > div { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px 12px; box-shadow: var(--sh-1); color: var(--ink); transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.kpi > a:hover { border-color: #c6d6ec; box-shadow: var(--sh-2); text-decoration: none; }
.kpi .k { font-size: 12px; color: var(--sub); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.01em; line-height: 1.35; }
.kpi .v small { font-size: 13px; font-weight: 700; margin-left: 2px; color: var(--ink-2); }
.kpi .s { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .w .v { color: var(--warn); }
.kpi .spark { position: absolute; right: 12px; top: 14px; color: var(--line); }
@media (max-width: 1100px) { .kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.dash { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dash { grid-template-columns: 1fr; gap: 0; } }
.dash .col-h { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .06em; margin: 0 4px 10px; }
.dash .col-h .ic { color: var(--faint); }
.dash .panel { padding: 14px 16px; margin-bottom: 14px; }
.dash .panel h2 { font-size: 14.5px; flex-wrap: nowrap; margin-bottom: 0; }
.dash .panel h2 span.note { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dash .panel h2 .cnt { margin-left: auto; flex-shrink: 0; background: var(--line-2); color: var(--ink-2); border-radius: 20px; padding: 0 8px; font-size: 11.5px; font-weight: 700; line-height: 20px; }
.dash .panel h2 a.note { margin-left: auto; flex-shrink: 0; }
.dash .panel h2 a.note + .cnt { margin-left: 6px; }
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold[open] > summary h2 { margin-bottom: 10px; }
details.fold > summary h2::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid var(--faint); border-bottom: 1.8px solid var(--faint); transform: rotate(45deg); margin: 0 4px 3px 4px; flex: none; transition: transform .2s; }
details.fold[open] > summary h2::after { transform: rotate(-135deg); margin-bottom: -3px; }
.dash .brief { margin-bottom: 6px; padding: 11px 13px; background: linear-gradient(180deg, #fff, #fbfcfe); }
.dash .brief .last { font-size: 13px; }
.dash .brief ul { font-size: 13px; }

/* 知らせ（小さい形） */
.dash .alert { display: flex; gap: 12px; align-items: center; padding: 10px 12px; margin-bottom: 8px; }
.dash .alert .a-main { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: flex-start; }
.dash .alert .a-main > div { min-width: 0; }
.dash .alert .msg { font-weight: 600; font-size: 12px; margin-top: 1px; }
.dash .alert .who { font-size: 13.5px; line-height: 1.45; }
.dash .alert .who a { color: var(--ink); }
.dash .alert .acts { margin-top: 0; flex-direction: column; align-items: stretch; gap: 2px; flex-shrink: 0; }
.dash .alert .sub { display: flex; gap: 10px; justify-content: center; }

/* 今日の予定（時間の線） */
.today .tl2 { position: relative; }
.today .t-row { position: relative; display: grid; grid-template-columns: 50px 14px 1fr auto; gap: 8px; align-items: center; padding: 7px 4px; border-radius: 10px; transition: background .15s; }
.today .t-row[data-tap] { cursor: pointer; }
.today .t-row[data-tap]:hover { background: var(--main-weak-2); }
.today .t-time { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; line-height: 1.3; }
.today .t-time .tiny { display: block; font-weight: 400; color: var(--faint); font-size: 11px; }
.today .t-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--main); box-shadow: 0 0 0 3px var(--main-weak); justify-self: center; z-index: 1; }
.today .t-body { min-width: 0; }
.today .t-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.45; }
.today .t-body .who { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.today .t-side { display: flex; align-items: center; gap: 6px; }
.today .tl2::before { content: ""; position: absolute; left: 66px; top: 14px; bottom: 14px; width: 2px; background: var(--line-2); }
.today .t-row.done { color: var(--faint); }
.today .t-row.done .t-title, .today .t-row.done .t-time { color: var(--faint); }
.today .t-row.done .t-dot { background: #c9cfd8; box-shadow: 0 0 0 3px var(--line-2); }
.today .t-row.done.need { background: var(--ng-weak); }
.today .t-row.done.need .t-title { color: var(--ink); }
.today .t-row.done.need .t-dot { background: var(--ng); box-shadow: 0 0 0 3px #f8d3cf; }
.today .t-row.live .t-dot { background: var(--ok); box-shadow: 0 0 0 4px #cdebdc; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(27, 122, 78, .12); } }
.today .now-line { position: relative; height: 0; border-top: 1.5px dashed var(--ng); margin: 6px 0 6px 58px; z-index: 1; }
.today .now-line span { position: absolute; top: -10px; left: -58px; background: var(--ng); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.today .t-empty { display: flex; align-items: center; gap: 10px; color: var(--sub); font-size: 13px; padding: 10px 2px; }

/* ───────── スマホ ───────── */
@media (max-width: 640px) {
  main { padding: 16px 14px 64px; }
  h1 { font-size: 20px; }
  .hero { gap: 10px; margin-bottom: 12px; }
  .hero h1 { font-size: 20px; }
  .hero .say { font-size: 13px; }
  .home-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; margin-left: 0; }
  .home-acts .btn { padding: 9px 2px; font-size: 11.5px; flex-direction: column; gap: 3px; }
  .kpi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
  .kpi > a:nth-child(n+4), .kpi > div:nth-child(n+4) { display: none; }
  .kpi > a, .kpi > div { padding: 8px 10px; border-radius: 12px; }
  .kpi .v { font-size: 17px; white-space: nowrap; }
  .kpi .k { font-size: 10.5px; }
  .kpi .s, .kpi .spark { display: none; }
  .dash .col-h { display: none; }
  .dash .panel { padding: 12px 14px; margin-bottom: 8px; }
  .dash .panel h2 span.note { display: none !important; }
  .dash .alert { flex-direction: column; align-items: stretch; gap: 8px; }
  .dash .alert .acts { flex-direction: row; align-items: center; gap: 12px; }
  .today .t-side .btn { display: none; }
  .stat { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stat > div { padding: 6px 8px; font-size: 11px; }
  .stat b { font-size: 17px; }
  .bar-row { grid-template-columns: 70px 1fr auto; }
  .cgrid { grid-template-columns: 1fr; }
  .btn.big { padding: 12px 14px; font-size: 15px; flex: 1; }
  .panel h2 { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.dash .alert .sub { flex-direction: column; align-items: center; gap: 0; }
@media (max-width: 640px) { .dash .alert .sub { flex-direction: row; gap: 12px; } }
@media (max-width: 760px) { header.top { backdrop-filter: none; background: #fff; } }

/* ───────── コックピット（メーターと警告灯） ───────── */
.cockpit { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; margin-bottom: 18px; }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gauge {
  position: relative; background: radial-gradient(120% 90% at 50% 10%, #ffffff 0%, #f7f9fc 70%, #eef2f8 100%);
  border: 1px solid var(--line); border-radius: 18px; padding: 10px 12px 12px; box-shadow: var(--sh-1), inset 0 1px 0 #fff;
  cursor: pointer; transition: box-shadow .2s, border-color .2s, transform .2s; text-align: center;
}
.gauge:hover { border-color: #c6d6ec; box-shadow: var(--sh-2); transform: translateY(-1px); }
.gauge svg { width: 100%; max-width: 230px; display: block; margin: 0 auto -8px; overflow: visible; }
.gauge .track { fill: none; stroke: #e3e8ef; stroke-width: 12; stroke-linecap: round; }
.gauge .zone { fill: none; stroke-width: 12; stroke-linecap: butt; }
.gauge .zone.done { stroke: #d8efe3; }
.gauge .zone.near { stroke: #fbe3bf; }
.gauge .zone.red { stroke: #f6c4bf; }
.gauge .fill { fill: none; stroke: url(#none); stroke: var(--main-2); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease); filter: drop-shadow(0 1px 3px rgba(42, 100, 179, .35)); }
.gauge.g-done .fill { stroke: var(--ok); filter: drop-shadow(0 1px 3px rgba(27, 122, 78, .35)); }
.gauge.g-near .fill { stroke: #e08a12; filter: drop-shadow(0 1px 3px rgba(224, 138, 18, .35)); }
.gauge.g-over .fill { stroke: var(--ng); filter: drop-shadow(0 1px 3px rgba(192, 54, 44, .35)); }
.gauge .tk { stroke: #c3cad5; stroke-width: 1.2; }
.gauge .tk.b { stroke: #8d97a6; stroke-width: 2; }
.gauge .goalmk { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.gauge .goaltx { font-size: 9.5px; font-weight: 700; fill: var(--sub); }
.gauge .needle { transform-origin: 110px 108px; transition: transform 1.3s cubic-bezier(.3, 1.35, .4, 1); }
.gauge .needle line { stroke: #d6322a; stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .25)); }
.gauge .hub { fill: #142033; stroke: #fff; stroke-width: 3; }
.gauge .val { font-size: 27px; font-weight: 800; fill: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; font-family: "SF Pro Display", "Hiragino Sans", system-ui, sans-serif; }
.gauge .unit { font-size: 10.5px; fill: var(--sub); font-weight: 600; }
.gauge .g-lb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; }
.gauge .g-pct { font-size: 11.5px; font-weight: 800; padding: 0 7px; border-radius: 20px; background: var(--main-weak); color: var(--main); font-variant-numeric: tabular-nums; }
.gauge.g-done .g-pct { background: var(--ok-weak); color: var(--ok); }
.gauge.g-near .g-pct { background: var(--warn-weak); color: var(--warn); }
.gauge.g-over .g-pct { background: var(--ng-weak); color: var(--ng); }
.gauge .g-sub { font-size: 11px; color: var(--faint); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 10px; box-shadow: var(--sh-1); align-content: center; }
.lamp { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; background: var(--bg); border-radius: 14px; padding: 10px 4px 8px; cursor: pointer; color: var(--faint); font-family: inherit; transition: transform .15s, background .2s; }
.lamp:hover { transform: translateY(-1px); background: var(--line-2); }
.lamp-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e9edf2; transition: all .3s; }
.lamp-n { font-size: 20px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; color: #b6bec9; }
.lamp-l { font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.lamp.on .lamp-l { color: var(--ink-2); }
.lamp.on.warn .lamp-ic { background: #ffb547; color: #fff; box-shadow: 0 0 0 4px #ffe9c7, 0 0 16px rgba(255, 166, 0, .55); animation: glow 2.4s ease-in-out infinite; }
.lamp.on.warn .lamp-n { color: var(--warn); }
.lamp.on.ng .lamp-ic { background: #ec5b50; color: #fff; box-shadow: 0 0 0 4px #fbd5d1, 0 0 16px rgba(236, 91, 80, .5); animation: glow 2.4s ease-in-out infinite; }
.lamp.on.ng .lamp-n { color: var(--ng); }
.lamp.on.info .lamp-ic { background: var(--main-2); color: #fff; box-shadow: 0 0 0 4px #d8e5f7; }
.lamp.on.info .lamp-n { color: var(--main); }
@keyframes glow { 50% { filter: brightness(1.08); box-shadow: 0 0 0 5px rgba(255, 233, 199, .6), 0 0 22px rgba(255, 166, 0, .35); } }
.a-chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.dash .panel h2 span.note { display: none; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px rgba(42, 100, 179, .35); } 100% { box-shadow: var(--sh-1); } }
@media (max-width: 1280px) { .cockpit { grid-template-columns: 1fr; } .lamps { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 900px) { .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .gauges { gap: 8px; }
  .gauge { padding: 6px 6px 8px; border-radius: 14px; }
  .gauge .val { font-size: 30px; }
  .gauge .g-lb { font-size: 12px; }
  .gauge .g-sub { display: none; }
  .lamps { grid-template-columns: repeat(3, 1fr); padding: 8px; gap: 6px; }
  .lamp { padding: 7px 2px 6px; }
  .lamp-ic { width: 30px; height: 30px; }
  .lamp-n { font-size: 17px; }
}

/* 実データ */
header.top .tag { border: 0; cursor: pointer; font-family: inherit; }
header.top .tag:hover { background: var(--line); }
header.top .tag.real { background: #fff1dc; color: #9a4f00; font-weight: 700; }
.ws-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ws { text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 14px 16px; cursor: pointer; font-family: inherit; display: flex; flex-direction: column; gap: 4px; transition: all .15s; }
.ws b { font-size: 15px; color: var(--ink); }
.ws span { font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.ws:hover { border-color: #c6d6ec; }
.ws.on { border-color: var(--main); background: var(--main-weak-2); box-shadow: 0 0 0 3px rgba(42, 100, 179, .12); }
@media (max-width: 600px) { .ws-pick { grid-template-columns: 1fr; } }
.start { border-color: #f1d9b3; background: linear-gradient(180deg, #fffaf3, #fff); }
.start-h { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.start-bar { flex: 1; height: 8px; background: var(--line-2); border-radius: 8px; overflow: hidden; max-width: 320px; margin-left: auto; }
.start-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f0a43a, #e07a12); border-radius: 8px; transition: width .6s var(--ease); }
.start-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.st { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.st-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--sub); font-size: 12px; font-weight: 800; }
.st.done .st-n { background: var(--ok); color: #fff; }
.st-t { display: flex; flex-direction: column; flex: 1; }
.st-t b { font-size: 13.5px; line-height: 1.45; }
.st-t span { font-size: 11.5px; color: var(--sub); line-height: 1.5; margin-top: 2px; }
.st.done .st-t b { color: var(--sub); }
.st .btn { align-self: flex-start; }
@media (max-width: 1100px) { .start-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .start-steps { grid-template-columns: 1fr; } .st { flex-direction: row; align-items: center; } .start-bar { display: none; } }
.bc-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; }
.bc-row { display: flex; align-items: center; gap: 10px; padding: 6px; border: 1px solid var(--line-2); border-radius: 10px; animation: pop .2s var(--ease) both; }
.bc-row img { width: 72px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.bc-t { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.sync-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
@media (max-width: 760px) { .sync-acts { grid-template-columns: 1fr; } }
.map-list { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* 次にやること：チェックと文が別の行に割れないように */
.todo { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; margin: 6px 0; line-height: 1.6; cursor: pointer; }
.todo input { margin-top: 4px; }
.panel.help > summary { list-style: none; cursor: pointer; }
.panel.help > summary::-webkit-details-marker { display: none; }
.panel.help > summary h2 { margin: 0; }
.panel.help > summary h2::after { content: "＋"; margin-left: auto; color: var(--sub); font-weight: 400; }
.panel.help[open] > summary h2::after { content: "－"; }
.help-body { margin-top: 12px; font-size: 14px; line-height: 1.85; }
.help-body h3 { font-size: 14.5px; margin: 16px 0 4px; }
.help-body h3:first-child { margin-top: 0; }
.help-body p { margin: 4px 0 8px; }
.help-body ol, .help-body ul { margin: 4px 0 8px; padding-left: 22px; }
.help-body li { margin: 3px 0; }
.setup .steps { list-style: none; margin: 8px 0 0; padding: 0; }
.setup .step { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-2); }
.setup .step:first-child { border-top: 0; }
.setup .step .num { width: 24px; height: 24px; border-radius: 50%; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.setup .step.ok .num { background: #e3f4ea; color: #2f7a4d; }
.setup .steps.opt .num { background: none; color: var(--sub); }
.setup .step .body b { font-size: 14px; }
.sgroup { font-size: 13px; color: var(--sub); margin: 22px 2px 8px; font-weight: 700; }
#s-data, #s-google, #s-gc, #s-bulk, #s-notion, #s-notes, #s-goals { scroll-margin-top: 70px; }
.flash > .panel, .panel.flash { box-shadow: 0 0 0 3px #bcd3f5; transition: box-shadow .3s; }
.fav { display: inline-block; vertical-align: -3px; border-radius: 4px; flex-shrink: 0; }
.favs { display: inline-flex; gap: 3px; align-items: center; margin-right: 6px; vertical-align: -3px; }
.panel h2 > .fav { margin-right: 2px; }
.setup .step .body .favs, .setup .step .body > .fav { margin-right: 6px; }
.help-body h3 .fav, .help-body h3 .favs, .help-body li > .fav, .help-body li > .favs { margin-right: 6px; }
.flow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 18px; }
.ftile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: border-color .15s, transform .1s; }
.ftile:hover { border-color: #9db7e6; }
.ftile:active { transform: scale(.98); }
.ftile .fi { width: 46px; height: 46px; border-radius: 12px; background: #e8effb; color: #0e45b4; display: grid; place-items: center; flex-shrink: 0; }
.ftile .when { display: block; font-size: 12px; color: var(--sub); }
.ftile b { display: block; font-size: 16.5px; margin-top: 1px; }
.fi.s { width: 30px; height: 30px; border-radius: 8px; background: #e8effb; color: #0e45b4; display: grid; place-items: center; flex-shrink: 0; }
.news h2 { display: flex; align-items: center; gap: 6px; }
.stepbar { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 14px; flex-wrap: wrap; }
.stepbar li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sub); padding: 4px 10px 4px 4px; border-radius: 20px; background: var(--line-2); }
.stepbar li span { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.stepbar li.on { background: #0e45b4; color: #fff; font-weight: 700; }
.stepbar li.on span { color: #0e45b4; }
.stepbar li.done { background: #e3f4ea; color: #2f7a4d; }
.fq { font-size: 17px; margin: 4px 0 10px; }
.chosen { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--line-2); font-size: 13.5px; margin-bottom: 10px; }
.chosen .linkbtn { margin-left: auto; }
.evpick { display: grid; gap: 6px; margin: 6px 0 4px; }
.evrow { display: grid; grid-template-columns: 110px 1fr; gap: 2px 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.evrow:hover { border-color: #9db7e6; background: #f6f9fe; }
.evrow .t { grid-row: span 2; color: var(--sub); font-size: 13px; }
.picker .q { display: flex; align-items: center; gap: 6px; margin: 8px 0; }
.picker .q .i { flex: 1; }
.picker .chips { gap: 6px; }
.picker .chip { cursor: pointer; }
.btn.mic { background: #0e45b4; color: #fff; border-color: #0e45b4; }
.btn.mic.rec { background: #d6453d; border-color: #d6453d; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.saved { display: flex; align-items: center; gap: 8px; color: #2f7a4d; font-weight: 700; margin: 4px 0 12px; }
.extras, .bulk { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.xbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.xbtn:hover { border-color: #9db7e6; background: #f6f9fe; }
.xbtn .ic { color: #0e45b4; }
.drop.big { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; color: #0e45b4; }
.drop.big b { font-size: 16px; color: var(--ink); }
@media (max-width: 760px) {
  .flow3 { grid-template-columns: 1fr; gap: 8px; margin-bottom: 14px; }
  .ftile { padding: 14px; }
  .ftile .fi { width: 40px; height: 40px; }
  .evrow { grid-template-columns: 1fr; }
  .evrow .t { grid-row: auto; }
}
.startline { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin: 0 0 14px; border-radius: 12px; background: #fff8e8; border: 1px solid #f3dfb0; color: var(--ink); font-size: 13.5px; text-decoration: none; }
.startline .go { margin-left: auto; color: #0e45b4; font-weight: 700; white-space: nowrap; }
.news > summary { list-style: none; cursor: pointer; }
.news > summary::-webkit-details-marker { display: none; }
.news h2 { margin-bottom: 4px; }
.news h2 .cnt { background: var(--line-2); color: var(--ink-2); border-radius: 20px; padding: 0 8px; font-size: 11.5px; font-weight: 700; line-height: 20px; }
.news h2 #newsOk { margin-left: auto; }
.news h2 .chev { font-size: 12px; font-weight: 400; color: var(--sub); }
.news h2 .chev:not(:empty)::after { content: " ▾"; }
.news[open] h2 .chev:not(:empty)::after { content: " ▴"; }
.news[open] h2 .chev:not(:empty) { font-size: 0; }
.news[open] h2 .chev:not(:empty)::after { font-size: 12px; }
.home-side { display: none; }
@media (min-width: 1100px) {
  .home-wrap.has-side { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
  .home-wrap.has-side .home-side { display: block; position: sticky; top: 76px; }
  .home-wrap.has-side .news-top { display: none; }
  .home-wrap.has-side .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-side h2 { font-size: 14.5px; }
  .news-side .line-item .ttl { white-space: normal; }
}
@media (min-width: 1500px) {
  .home-wrap.has-side .dash { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.home2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
.home2 > .panel { margin-bottom: 0; }
@media (min-width: 900px) { .home2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.home2 + .stats1 { margin-top: 16px; }
.panel h2 .cnt { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--ng); color: #fff; font-size: 11px; line-height: 20px; text-align: center; vertical-align: 2px; margin-left: 4px; }
.todo-row .ttl { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-row .sub { font-size: 12px; color: var(--sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-row a.li-main { color: inherit; text-decoration: none; }
.todo-row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.todo-row .ck { width: 20px; height: 20px; flex: none; accent-color: var(--main); }
.kind { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 0 6px; margin-right: 6px; line-height: 17px; }
.kind.k-ng { background: var(--ng-weak); color: var(--ng); }
.kind.k-warn { background: var(--warn-weak); color: var(--warn); }
.kind.k-info { background: var(--main-weak); color: var(--main); }
.av.q { width: 30px; height: 30px; background: var(--line-2); color: var(--faint); font-size: 14px; }
.more-todo summary { list-style: none; cursor: pointer; padding: 8px 0 2px; font-size: 13px; color: var(--main); }
.more-todo summary::-webkit-details-marker { display: none; }
.today .prev { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.stats1 { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 900px) { .stats1 { grid-template-columns: repeat(4, 1fr); } }
.stat1 { display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: inherit; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.stat1:hover { border-color: var(--main-2); box-shadow: var(--sh-2); }
.stat1 .lb { font-size: 12px; color: var(--sub); }
.stat1 b { font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat1 b small { font-size: 12px; font-weight: 500; margin-left: 2px; color: var(--sub); }
.stat1 .bar { display: block; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.stat1 .bar i { display: block; height: 100%; border-radius: 4px; background: var(--main); }
.stat1.over .bar i { background: var(--warn); }
.home-wrap.has-side .home2 { grid-template-columns: 1fr; }
@media (min-width: 1300px) { .home-wrap.has-side .home2 { grid-template-columns: 1fr 1fr; } }
.home2 > * { min-width: 0; }
.todo-row .li-main > div { min-width: 0; flex: 1; }
details.fold:not([open]) > summary h2 { margin-bottom: 0; }
#s-google > summary h2::after, #s-gc details.fold > summary h2::after, #s-notion details.fold > summary h2::after, #s-notes details.fold > summary h2::after, #s-bulk > summary h2::after, #s-goals > summary h2::after { margin-left: auto; }
.panel.help .hic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--main-weak); color: var(--main); margin-right: 10px; flex: none; }
.tut h3 { font-size: 18px; margin: 14px 0 8px; display: flex; align-items: center; gap: 8px; }
.tut p { line-height: 1.8; }
.tut-hero { text-align: center; padding: 6px 0 4px; }
.tut-hero img { display: block; margin: 0 auto 4px; }
.tut-hero h3 { justify-content: center; font-size: 20px; }
.tut-ok { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--main-weak); color: var(--main); }
.tut-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.tut-tiles > div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; }
.tut-tiles .fi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--main-weak); color: var(--main); }
.tut-tiles b { font-size: 13px; }
.tut-tiles span:last-child { font-size: 11px; color: var(--sub); }
.tut-list { padding-left: 20px; line-height: 1.9; margin: 6px 0 12px; }
.tut-act { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 12px; background: var(--main-weak-2); border: 1px solid var(--line); }
.tut-switch { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin: 8px 0; }
.tut-switch input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--main); flex: none; }
.tut-switch > span { display: flex; flex-direction: column; gap: 2px; }
.tut-foot { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.bgi { position: relative; overflow: hidden; isolation: isolate; }
.bgi::after { content: ""; position: absolute; right: -14px; bottom: -16px; width: 110px; height: 94px; background: no-repeat center / contain; opacity: .1; pointer-events: none; z-index: -1; transform: rotate(-6deg); }
.bgi.bg-card::after { background-image: url(/brand/bg-card.svg); }
.bgi.bg-meeting::after { background-image: url(/brand/bg-meeting.svg); }
.bgi.bg-receipt::after { background-image: url(/brand/bg-receipt.svg); }
.ftile.bgi::after { width: 120px; height: 100px; right: -10px; bottom: -22px; }
.modal.tut-modal { background: #fff url(/brand/bg-tutorial.svg) center top / cover no-repeat; }
.modal.tut-modal .mh { border-bottom-color: rgba(14, 69, 180, .08); }
.tut-modal .tut-tiles > div, .tut-modal .ws, .tut-modal .tut-switch, .tut-modal .xbtn { background-color: rgba(255, 255, 255, .82); backdrop-filter: blur(2px); }
.tut-modal .tut-act { background: rgba(255, 255, 255, .7); }
.tut-modal .tut-foot { border-top-color: rgba(14, 69, 180, .08); }
body[data-bg]::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--bg) url(/brand/bg-tutorial.svg) center top / cover no-repeat; pointer-events: none; }
body[data-bg="contacts"]::before { background-image: url(/brand/bg-contacts.svg); }
body[data-bg="calendar"]::before { background-image: url(/brand/bg-calendar.svg); }
body[data-bg="meetings"]::before { background-image: url(/brand/bg-meetings.svg); }
body[data-bg="docs"]::before { background-image: url(/brand/bg-docs.svg); }
body[data-bg="expenses"]::before { background-image: url(/brand/bg-expenses.svg); }
body[data-bg="settings"]::before { background-image: url(/brand/bg-settings.svg); }
body[data-bg="help"]::before { background-image: url(/brand/bg-help.svg); }
@media (max-width: 700px) { body[data-bg]::before { background-position: center 64px; } }
.pcard h2 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pcard h2 .spacer { flex: 1; }
.pc { display: flex; flex-direction: column; gap: 8px; }
.pc-bd { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 13px; padding: 4px 10px; border-radius: 20px; background: var(--main-weak); color: var(--main); }
.pc-bd.soon { background: #fff4dc; color: #9a5b00; }
.pc-g { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: start; }
.pc-k { font-size: 11.5px; font-weight: 700; color: var(--sub); padding-top: 4px; white-space: nowrap; }
.pc-v { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-f { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; line-height: 1.5; padding: 3px 10px; border-radius: 8px; background: var(--main-weak-2); border: 1px solid var(--line); }
.pc-x { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 14px; line-height: 1; padding: 0 0 0 2px; }
.pc-x:hover { color: var(--ng); }
.pc.compact { margin-top: 8px; gap: 5px; }
.pc.compact .pc-g { grid-template-columns: 64px 1fr; }
.pc.compact .pc-f { font-size: 12px; padding: 2px 8px; }
.pc-empty { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--sub); line-height: 1.7; padding: 4px 0; }
.pc-empty svg { flex: none; margin-top: 3px; color: var(--main); }
.pc-pick { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--main-weak-2); border: 1px solid var(--line); }
.pc-pick .f { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 0; }
.pc-row { display: grid; grid-template-columns: 20px 76px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: 13.5px; }
.pc-row:last-child { border-bottom: 0; }
.pc-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--main); }
.pc-row select { width: auto; padding: 2px 6px; font-size: 12px; }
.pc-row .pc-k { padding: 0; }
@media (max-width: 600px) { .pc-row { grid-template-columns: 20px 1fr; } .pc-row .pc-k { grid-column: 2; } .pc-row .pc-t, .pc-row select, .pc-row > .tiny { grid-column: 2; } }
.dict-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--sub); line-height: 1.7; background: var(--main-weak-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.dict-hint svg { flex: none; margin-top: 3px; color: var(--main); }
@media (max-width: 900px) { .cdetail { display: flex; flex-direction: column; gap: 0; } .cdetail > div { display: contents; } .cdetail > div > section { order: 5; } .cdetail > div:first-child > section:first-child { order: 1; } .cdetail .pcard { order: 2; } .cdetail > div > section { min-width: 0; width: 100%; } }
.tut-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 12px; }
@media (max-width: 600px) { .tut-feats { grid-template-columns: 1fr; } }
.tut-feats > div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .85); }
.tut-feats .fi { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--main-weak); color: var(--main); flex: none; }
.tut-feats b { display: block; font-size: 14px; line-height: 1.5; margin-bottom: 3px; }
.tut-feats span:not(.fi) { display: block; font-size: 12.5px; line-height: 1.7; color: var(--sub); }
.tut-hero p { margin: 4px 0 0; }

/* スマホ：スワイプで画面を移ったときに横から入る */
@keyframes swipeInL { from { transform: translateX(36px); opacity: .3; } to { transform: none; opacity: 1; } }
@keyframes swipeInR { from { transform: translateX(-36px); opacity: .3; } to { transform: none; opacity: 1; } }
#view.swipe-l { animation: swipeInL .22s ease-out; }
#view.swipe-r { animation: swipeInR .22s ease-out; }
@media (prefers-reduced-motion: reduce) { #view.swipe-l, #view.swipe-r { animation: none; } }

/* ロゴ（文字込み）：ヘッダーの高さに合わせる */
header.top .wordmark { height: 28px; width: auto; display: block; }
@media (max-width: 760px) { header.top .wordmark { height: 24px; } }

/* 顔写真 */
img.av.ph { object-fit: cover; padding: 0; background: #fff; }
.cphoto { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; flex: none; }
.cphoto .av { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); }
.cphoto .cam { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: #0e45b4; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.cphoto:hover .av { filter: brightness(.95); }
.ph-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ph-pick .drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border: 1.5px dashed #b9c8e6; border-radius: 12px; background: #f7faff; cursor: pointer; font: inherit; color: var(--ink); }
.ph-stage { position: relative; width: 280px; height: 280px; margin: 0 auto; overflow: hidden; border-radius: 12px; background: #111; touch-action: none; cursor: grab; user-select: none; }
.ph-stage:active { cursor: grabbing; }
.ph-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.ph-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 400px rgba(0,0,0,.55); outline: 2px solid #fff; outline-offset: -2px; pointer-events: none; }
