/* 先生手帳 — 上質な紙の手帳のような見た目（細い罫線・やわらかい影・明朝の数字） */
#app {
  --tc-paper: #fffdf8; --tc-paper2: #f8f4ea; --tc-rule: #e8e0cf; --tc-rule2: #f0eadc;
  --tc-sun: #b4442f; --tc-sat: #2f5fb3; --tc-gold: #9a7a35; --tc-navy: #1f2a44; --tc-hol: #fbefec; --tc-satbg: #f3f6fc;
  --tc-serif: 'Shippori Mincho', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'BIZ UDPMincho', 'Noto Serif JP', serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) #app { --tc-paper: #1b1f27; --tc-paper2: #20252f; --tc-rule: #313847; --tc-rule2: #282e3a; --tc-sun: #ff9483; --tc-sat: #8fb3ff; --tc-gold: #d8b86c; --tc-navy: #e9edf5; --tc-hol: #2c2226; --tc-satbg: #1f2532; }
}
:root[data-theme='dark'] #app { --tc-paper: #1b1f27; --tc-paper2: #20252f; --tc-rule: #313847; --tc-rule2: #282e3a; --tc-sun: #ff9483; --tc-sat: #8fb3ff; --tc-gold: #d8b86c; --tc-navy: #e9edf5; --tc-hol: #2c2226; --tc-satbg: #1f2532; }

.techo-top { flex-wrap: wrap; gap: 8px; }
.techo-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 12px; }
@media (min-width: 1080px) { .techo-layout { grid-template-columns: minmax(0, 1fr) 300px; } }

/* ---- 手帳の本体 ---- */
.techo-book { position: relative; background: var(--tc-paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh); padding: 18px 18px 16px; min-width: 0; }
.techo-ribbon { position: absolute; bottom: -26px; right: 46px; width: 13px; height: 40px; background: linear-gradient(#8c2a22, #a3342a 30%, #93302a); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); z-index: 0; pointer-events: none; }
.techo-book { margin-bottom: 26px; }
.techo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 18px; border-bottom: 1.5px solid var(--tc-navy); padding-bottom: 10px; margin-bottom: 12px; }
.techo-title { display: flex; align-items: flex-end; gap: 14px; min-width: 0; }
.techo-big { font-family: var(--tc-serif); font-weight: 600; font-size: 64px; line-height: .8; color: var(--tc-navy); letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.techo-meta { display: grid; gap: 2px; min-width: 0; padding-bottom: 2px; }
.techo-en { font-family: var(--tc-serif); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--tc-gold); }
.techo-sub { font-size: 13.5px; color: var(--ink2); }
.techo-nav { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.techo-arrows { display: flex; gap: 4px; align-items: center; }
.techo-arrows .btn-ghost { font-size: 20px; line-height: 1; min-width: 38px; }
.techo-jumpl { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.techo-jump { width: 92px; padding: 5px 8px; }
@media (max-width: 560px) {
  .techo-book { padding: 14px 10px 12px; border-radius: 12px; }
  .techo-big { font-size: 48px; }
  .techo-ribbon { right: 22px; }
}

/* ---- 月 ---- */
.tc-month { border: 1px solid var(--tc-rule); border-radius: 10px; overflow: hidden; background: var(--card); }
.tc-mwd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--tc-paper2); border-bottom: 1px solid var(--tc-rule); }
.tc-mwd span { text-align: center; font-size: 11px; color: var(--ink2); padding: 5px 0 4px; line-height: 1.2; display: grid; }
.tc-mwd b { font-family: var(--tc-serif); letter-spacing: .16em; font-weight: 600; font-size: 11px; color: var(--ink3); }
.tc-mwd .sun, .tc-mwd .sun b { color: var(--tc-sun); } .tc-mwd .sat, .tc-mwd .sat b { color: var(--tc-sat); }
.tc-mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(108px, auto); }
.tc-cell { position: relative; border-right: 1px solid var(--tc-rule2); border-bottom: 1px solid var(--tc-rule2); padding: 5px 5px 4px; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: background .15s; }
.tc-cell:nth-child(7n) { border-right: 0; }
.tc-cell:hover { background: color-mix(in srgb, var(--tc-gold) 6%, transparent); }
.tc-cell:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.tc-cell.sun { background: var(--tc-hol); } .tc-cell.sat { background: var(--tc-satbg); }
.tc-cell.out { opacity: .42; }
.tc-cell.sel { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tc-gold) 70%, transparent); }
.tc-dh { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.tc-dn { font-family: var(--tc-serif); font-weight: 600; font-size: 18px; line-height: 1; color: var(--tc-navy); min-width: 1.4em; font-variant-numeric: lining-nums; }
.tc-cell.sun .tc-dn { color: var(--tc-sun); } .tc-cell.sat .tc-dn { color: var(--tc-sat); }
.tc-cell.today .tc-dn { background: var(--tc-navy); color: var(--tc-paper); border-radius: 99px; padding: 3px 0 2px; text-align: center; width: 1.7em; }
.tc-hol { font-size: 10.5px; color: var(--tc-sun); font-weight: 700; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tc-sk { font-size: 10px; color: var(--tc-gold); line-height: 1.1; white-space: nowrap; overflow: hidden; }
.tc-evs { display: grid; gap: 2px; min-width: 0; }
.tc-ev { --c: #64748b; display: flex; align-items: center; gap: 3px; min-width: 0; width: 100%; border: 0; border-left: 3px solid var(--c); border-radius: 3px; background: color-mix(in srgb, var(--c) 9%, transparent); color: var(--ink); font: inherit; font-size: 11.5px; line-height: 1.35; padding: 1px 4px; text-align: left; cursor: pointer; }
.tc-ev span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tc-ev i { font-style: normal; font-size: 10.5px; color: var(--ink2); font-variant-numeric: tabular-nums; flex: none; }
.tc-ev.all { background: color-mix(in srgb, var(--c) 20%, transparent); font-weight: 600; }
.tc-ev.cont { border-left-color: transparent; border-radius: 0 3px 3px 0; }
.tc-ev.nk { background: transparent; border-left-style: double; border-left-width: 4px; font-weight: 500; color: var(--ink2); }
.tc-ev:hover { filter: brightness(.97); background: color-mix(in srgb, var(--c) 26%, transparent); }
.tc-more { font-size: 10.5px; color: var(--ink3); padding-left: 4px; }
@media (max-width: 700px) {
  .tc-mgrid { grid-auto-rows: minmax(74px, auto); }
  .tc-cell { padding: 3px 2px; }
  .tc-dn { font-size: 15px; }
  .tc-dh { flex-wrap: wrap; row-gap: 1px; }
  .tc-hol, .tc-sk { font-size: 8.5px; flex-basis: 100%; }
  .tc-ev { font-size: 9.5px; padding: 0 2px; border-left-width: 2px; }
  .tc-ev i { display: none; }
  .tc-mwd b { display: none; }
}

/* ---- 選んだ日の予定（月の下） ---- */
.tc-agenda { margin-top: 14px; border-top: 1px solid var(--tc-rule); padding-top: 12px; }
.tc-agh { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.tc-agh b { font-family: var(--tc-serif); font-size: 17px; }
.tc-holb, .tc-skb { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 99px; background: var(--tc-hol); color: var(--tc-sun); border: 1px solid color-mix(in srgb, var(--tc-sun) 30%, transparent); }
.tc-skb { background: color-mix(in srgb, var(--tc-gold) 10%, transparent); color: var(--tc-gold); border-color: color-mix(in srgb, var(--tc-gold) 30%, transparent); font-weight: 600; }
.tc-aglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tc-agi { --c: #64748b; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; width: 100%; border: 1px solid var(--tc-rule2); border-left: 4px solid var(--c); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; text-align: left; padding: 7px 10px; cursor: pointer; }
.tc-agi:hover { border-color: var(--tc-rule); background: color-mix(in srgb, var(--c) 6%, var(--card)); }
.tc-agi .tm { font-size: 12.5px; color: var(--ink2); min-width: 7.6em; font-variant-numeric: tabular-nums; }
.tc-agi b { font-size: 14.5px; }
.tc-agi small { font-size: 12px; color: var(--ink3); }
.tc-agl { display: flex; gap: 10px; padding: 6px 10px; font-size: 13px; color: var(--tc-sat); border: 1px dashed transparent; background: var(--tc-satbg); border-radius: 8px; flex-wrap: wrap; }
.tc-agl .tm { min-width: 7.6em; color: var(--ink2); font-size: 12.5px; }
.tc-empty { margin: 6px 0; }

.tc-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tc-legend .chip { --c: #64748b; font-size: 12.5px; padding: 3px 11px; opacity: .5; }
.tc-legend .chip.on { opacity: 1; background: color-mix(in srgb, var(--c) 10%, var(--card)); color: var(--ink); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.tc-nkchip { cursor: default; opacity: 1 !important; }
.tc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, #64748b); flex: none; }

/* ---- 時間軸（週・日） ---- */
.tc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--tc-rule); border-radius: 10px; background: var(--card); }
.tc-tl { min-width: 720px; --hh: 54px; }
.tc-tl.one { min-width: 0; }
.tc-tl-head, .tc-tl-all, .tc-tl-body { display: grid; grid-template-columns: 50px repeat(var(--cols), minmax(0, 1fr)); }
.tc-tl-head { background: var(--tc-paper2); border-bottom: 1px solid var(--tc-rule); }
.tc-tl-dh { border: 0; border-left: 1px solid var(--tc-rule2); background: none; font: inherit; color: var(--ink); padding: 6px 4px 5px; display: grid; justify-items: center; gap: 0; cursor: pointer; line-height: 1.2; min-width: 0; }
.tc-tl-dh small { font-size: 10.5px; letter-spacing: .1em; color: var(--ink3); }
.tc-tl-dh b { font-family: var(--tc-serif); font-weight: 600; font-size: 22px; line-height: 1.05; }
.tc-tl-dh em { font-style: normal; font-size: 10.5px; color: var(--tc-sun); font-weight: 700; white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.tc-tl-dh em.sk { color: var(--tc-gold); font-weight: 500; }
.tc-tl-dh.sun b, .tc-tl-dh.sun small { color: var(--tc-sun); } .tc-tl-dh.sat b, .tc-tl-dh.sat small { color: var(--tc-sat); }
.tc-tl-dh.today b { background: var(--tc-navy); color: var(--tc-paper); border-radius: 99px; padding: 2px 8px; }
.tc-tl-all { border-bottom: 1px solid var(--tc-rule); min-height: 30px; }
.tc-tl-all .lbl { font-size: 10.5px; color: var(--ink3); display: grid; place-items: center; }
.tc-tl-ac { border-left: 1px solid var(--tc-rule2); padding: 3px; display: grid; gap: 2px; align-content: start; min-width: 0; }
.tc-tl-body { position: relative; height: calc(var(--hours) * var(--hh)); }
.tc-tl-axis { position: relative; }
.tc-tl-axis span { display: block; height: var(--hh); font-size: 10.5px; color: var(--ink3); text-align: right; padding-right: 6px; transform: translateY(-6px); font-variant-numeric: tabular-nums; }
.tc-tl-axis span:first-child { transform: none; }
.tc-tl-col { position: relative; border-left: 1px solid var(--tc-rule2); background-image: repeating-linear-gradient(to bottom, var(--tc-rule2) 0, var(--tc-rule2) 1px, transparent 1px, transparent calc(var(--hh) / 2), color-mix(in srgb, var(--tc-rule2) 45%, transparent) calc(var(--hh) / 2), color-mix(in srgb, var(--tc-rule2) 45%, transparent) calc(var(--hh) / 2 + 1px), transparent calc(var(--hh) / 2 + 1px), transparent var(--hh)); cursor: copy; }
.tc-tl-col.off { background-color: color-mix(in srgb, var(--tc-hol) 55%, transparent); }
.tc-blk { --c: #64748b; position: absolute; box-sizing: border-box; border: 0; border-left: 3px solid var(--c); border-radius: 5px; background: color-mix(in srgb, var(--c) 15%, var(--card)); color: var(--ink); font: inherit; text-align: left; padding: 2px 5px; overflow: hidden; display: flex; flex-direction: column; gap: 0; cursor: pointer; z-index: 2; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.tc-blk > * { flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-blk i { font-style: normal; font-size: 10px; color: var(--ink2); font-variant-numeric: tabular-nums; line-height: 1.25; }
.tc-blk b { font-size: 12px; line-height: 1.25; overflow: hidden; }
.tc-blk small { font-size: 10px; color: var(--ink3); line-height: 1.2; }
.tc-blk:hover { background: color-mix(in srgb, var(--c) 24%, var(--card)); }
.tc-lesson { cursor: default; z-index: 1; border-left-style: solid; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--card)) 0 6px, var(--card) 6px 11px); box-shadow: none; }
.tc-lesson b { font-weight: 600; color: var(--ink2); }
.tc-now { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--coral); z-index: 3; pointer-events: none; }
.tc-now::before { content: ''; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.tc-hours { margin-top: 10px; gap: 8px; align-items: center; flex-wrap: wrap; }
.tc-hours select { width: auto; padding: 4px 8px; }

.tc-day { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 760px) { .tc-day { grid-template-columns: minmax(0, 1fr) 260px; } }
.tc-day-main { min-width: 0; }
.tc-dcard { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--tc-rule); border-radius: 10px; background: var(--card); }
.tc-dcard b { font-family: var(--tc-serif); font-size: 17px; }
.tc-dcard .tc-holb, .tc-dcard .tc-skb { margin-left: 0; justify-self: start; }
.tc-note { font-size: 14px; line-height: 1.9; background: var(--card) repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.9em - 1px), var(--tc-rule2) calc(1.9em - 1px), var(--tc-rule2) 1.9em); background-attachment: local; padding-top: 4px; }

/* ---- 一覧 ---- */
.tc-lsearch { margin-bottom: 10px; }
.tc-lsearch .input { max-width: 420px; }
.tc-list { display: grid; gap: 0; }
.tc-lrow { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--tc-rule2); }
.tc-ld { display: grid; align-content: start; justify-items: center; line-height: 1.15; }
.tc-ld b { font-family: var(--tc-serif); font-weight: 600; font-size: 26px; color: var(--tc-navy); }
.tc-ld span { font-size: 11.5px; color: var(--ink2); }
.tc-ld em { font-style: normal; font-size: 10.5px; color: var(--tc-sun); font-weight: 700; text-align: center; }
.tc-ld.sun b, .tc-ld.sun span { color: var(--tc-sun); } .tc-ld.sat b, .tc-ld.sat span { color: var(--tc-sat); }

/* ---- 年（万年カレンダー） ---- */
.tc-yopts { gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.tc-year { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px 18px; }
@media (max-width: 460px) { .tc-year { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.tc-mini { min-width: 0; }
.tc-mini-h { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px solid var(--tc-navy); padding-bottom: 2px; margin-bottom: 4px; }
.tc-mini-h b { font-family: var(--tc-serif); font-weight: 600; font-size: 22px; line-height: 1; color: var(--tc-navy); }
.tc-mini-h span { font-family: var(--tc-serif); text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; color: var(--tc-gold); }
.tc-mini-h small { margin-left: auto; font-size: 11px; color: var(--ink3); }
.tc-mini-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
.tc-mini-g .wd { font-size: 10px; text-align: center; color: var(--ink3); font-weight: 700; }
.tc-mini-g .wd.sun { color: var(--tc-sun); } .tc-mini-g .wd.sat { color: var(--tc-sat); }
.tc-mini-g .d { position: relative; border: 0; background: none; font: inherit; font-size: 12.5px; line-height: 1; padding: 6px 0; text-align: center; color: var(--ink); cursor: pointer; border-radius: 6px; font-variant-numeric: tabular-nums; min-width: 0; }
.tc-mini-g .d:hover { background: var(--tc-paper2); }
.tc-mini-g .d.sun { color: var(--tc-sun); } .tc-mini-g .d.sat { color: var(--tc-sat); }
.tc-mini-g .d.hol { background: var(--tc-hol); font-weight: 700; }
.tc-mini-g .d.today { background: var(--tc-navy); color: var(--tc-paper); font-weight: 700; }
.tc-mini-g .d.mk::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--tc-gold); }
.tc-yinfo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; border-top: 1px solid var(--tc-rule); padding-top: 14px; }
@media (min-width: 820px) { .tc-yinfo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tc-ycol { min-width: 0; }
.tc-htable td { padding: 4px 8px; font-size: 13.5px; }
.tc-htable td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tc-htable td.sun { color: var(--tc-sun); font-weight: 700; } .tc-htable td.sat { color: var(--tc-sat); font-weight: 700; }
.tc-htable tr.k td:last-child { color: var(--ink2); }
.tc-htable small { color: var(--ink3); margin-left: 4px; }
.tc-sklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px 10px; font-size: 13px; }
.tc-sklist span { display: flex; gap: 6px; align-items: baseline; border-bottom: 1px solid var(--tc-rule2); padding: 2px 0; }
.tc-sklist b { font-family: var(--tc-serif); font-weight: 600; color: var(--tc-gold); min-width: 2.4em; }
.tc-lookup { margin-top: 14px; padding: 12px; border: 1px solid var(--tc-rule); border-radius: 10px; background: var(--card); }
.tc-lookup .input { max-width: 220px; }
.tc-lookout { margin: 8px 0 0; line-height: 1.9; }

.tc-h { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 14px 0 8px; font-family: var(--tc-serif); font-weight: 700; letter-spacing: .04em; }
.tc-h .i { width: 16px; height: 16px; color: var(--tc-gold); }

/* ---- 横の欄 ---- */
.techo-side { display: grid; gap: 14px; min-width: 0; }
.tc-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--sh-sm); min-width: 0; }
.tc-panel > .tc-h:first-child { margin-top: 0; }
.tc-cd { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tc-cd li { --c: #64748b; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--c) 7%, var(--card)); border-left: 3px solid var(--c); }
.tc-cd .num { white-space: nowrap; display: flex; align-items: baseline; justify-content: center; gap: 1px; }
.tc-cd .num b { font-family: var(--tc-serif); font-weight: 600; font-size: 28px; line-height: 1; color: var(--tc-navy); font-variant-numeric: lining-nums; }
.tc-cd .num small { font-size: 10.5px; color: var(--ink2); }
.tc-cd .txt { display: grid; min-width: 0; line-height: 1.35; }
.tc-cd .txt b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-cd .txt small { font-size: 11.5px; color: var(--ink2); }
.tc-cdnote { margin: 8px 0 0; font-size: 11px; }
.tc-tadd { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; margin-bottom: 8px; }
.tc-tadd .input { min-width: 0; padding: 6px 9px; }
.tc-tadd .tc-due { width: 140px; }
.tc-tadd .btn { grid-column: 1 / -1; justify-self: end; }
.tc-todos { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.tc-todo { --c: #64748b; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 2px 6px; align-items: center; padding: 4px 2px 4px 6px; border-left: 3px solid var(--c); border-bottom: 1px solid var(--tc-rule2); }
.tc-todo input[type='checkbox'] { width: 17px; height: 17px; accent-color: var(--tc-navy); }
.tc-ttext { border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); min-width: 0; padding: 2px 0; }
.tc-ttext:focus { outline: none; border-bottom: 1px solid var(--tc-gold); }
.tc-tdate { grid-column: 2; border: 0; background: none; font: inherit; font-size: 11.5px; color: var(--ink3); padding: 0; width: 120px; }
.tc-tleft { grid-column: 3; grid-row: 1 / span 2; font-size: 11.5px; font-weight: 700; color: var(--tc-gold); white-space: nowrap; }
.tc-todo.late .tc-tleft { color: var(--bad); }
.tc-todo.done .tc-ttext { text-decoration: line-through; color: var(--ink3); }
.tc-x { grid-column: 4; grid-row: 1 / span 2; border: 0; background: none; color: var(--ink3); font-size: 16px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.tc-x:hover { background: var(--bg2); color: var(--bad); }
.tc-ov { display: grid; gap: 2px; margin-bottom: 8px; }
.tc-ov small { font-size: 11.5px; line-height: 1.5; padding-left: 26px; }
.tc-jk { display: grid; gap: 6px; margin: 0 0 10px 24px; }
.tc-jk select { padding: 5px 8px; }
.tc-jk p { margin: 0; font-size: 11.5px; }
.tc-panel .check { font-size: 13.5px; }
.tc-ws { gap: 8px; align-items: center; margin-top: 8px; }

/* ---- 予定の書きこみ ---- */
.tc-form .field { margin: 0; }
.tc-catpick, .tc-wdpick { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-catpick .chip { --c: #64748b; font-size: 12.5px; padding: 4px 11px; }
.tc-catpick .chip.on { background: color-mix(in srgb, var(--c) 16%, var(--card)); color: var(--ink); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); }
.tc-wdpick .chip { min-width: 40px; justify-content: center; }
.tc-allday { align-self: end; padding-bottom: 10px; }
.tc-rep { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--tc-rule); border-radius: 10px; background: var(--tc-paper); }
.tc-only { padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--tc-gold) 10%, transparent); }
.tc-catrow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.tc-catrow input[type='color'] { width: 38px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--card); }
.tc-sw { display: flex; gap: 3px; flex-wrap: wrap; max-width: 130px; }
.tc-sw button { width: 13px; height: 13px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 560px) { .tc-catrow { grid-template-columns: 40px minmax(0, 1fr) auto; } .tc-sw { display: none; } }

/* ---- 印刷の設定 ---- */
.techo-print { margin-top: 18px; }
.tc-ph h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; margin: 0 0 2px; font-family: var(--tc-serif); }
.tc-ph p { margin: 0 0 12px; }
.tc-pgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 900px) { .tc-pgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.tc-pgrid .stack > .btn { justify-self: start; }
.tc-pv { display: grid; justify-items: center; gap: 6px; padding: 16px; border-radius: 12px; background: var(--bg2); min-width: 0; overflow: hidden; }
.tc-pv-box { position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 26px -10px rgba(0, 0, 0, .35); background: #fff; }
.tc-pv-in { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.tc-pv-in .tp-sheet { page-break-after: auto; }
