/* Noday iPhone App — iOS 風格 */
:root {
  --red: #ff3b30; --blue: #007aff; --green: #34c759; --orange: #ff9500; --purple: #af52de; --pink: #ff2d55; --gray: #8e8e93;
  --bg: #f2f2f7; --card: #fff; --sep: rgba(60, 60, 67, .2); --sub: rgba(60, 60, 67, .6); --fill: rgba(118, 118, 128, .12);
  --tint: var(--red);
  --safe-top: env(safe-area-inset-top); --safe-bottom: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, "SF Pro Text", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  background: var(--bg); color: #000; -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; overscroll-behavior-y: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; font: inherit; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* 分頁 */
.view { display: none; min-height: 100%; padding: calc(var(--safe-top) + 0px) 0 calc(96px + var(--safe-bottom)); }
.view.on { display: block; }
.view.white { background: #fff; }

/* 導覽列 + 大標題 */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; margin-top: calc(-1 * var(--safe-top)); padding-top: var(--safe-top); height: calc(44px + var(--safe-top)); background: inherit; }
.view:not(.white) .nav { background: var(--bg); }
.view.white .nav { background: #fff; }
.nav .l, .nav .r { display: flex; align-items: center; gap: 20px; color: var(--tint); font-size: 17px; min-width: 60px; }
.nav .r { justify-content: flex-end; }
.nav .icon-btn { width: 30px; height: 30px; display: grid; place-items: center; color: var(--tint); }
.nav .icon-btn svg { width: 24px; height: 24px; }
.large { display: flex; align-items: flex-end; justify-content: space-between; padding: 2px 16px 10px; }
.large h1 { font-size: 34px; font-weight: 700; letter-spacing: .2px; line-height: 1.15; }
.large .arrows { display: flex; gap: 6px; color: var(--tint); }
.large .arrows button { width: 34px; height: 34px; border-radius: 17px; font-size: 22px; color: var(--tint); }
.large .arrows button:active { background: var(--fill); }

/* 搜尋列、分段按鈕 */
.search { display: flex; align-items: center; gap: 6px; margin: 0 16px 12px; background: var(--fill); border-radius: 10px; height: 36px; padding: 0 8px; color: var(--sub); }
.search svg { width: 16px; height: 16px; flex: none; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; color: #000; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 6px 14px; border-radius: 16px; background: var(--fill); font-size: 15px; color: #000; }
.chip.on { background: var(--tint); color: #fff; font-weight: 600; }
.seg { display: flex; background: var(--fill); border-radius: 9px; padding: 2px; }
.seg button { flex: 1; padding: 6px 0; border-radius: 7px; font-size: 13px; }
.seg button.on { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); font-weight: 600; }

/* 分組列表 */
.hdr { font-size: 13px; color: var(--sub); padding: 0 32px 6px; }
.group { background: var(--card); margin: 0 16px 24px; border-radius: 12px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 44px; position: relative; width: 100%; text-align: left; }
.row:active { background: #e5e5ea; }
.row + .row::before { content: ''; position: absolute; top: 0; right: 0; left: 58px; height: .5px; background: var(--sep); }
.row.plain + .row.plain::before, .group.plain .row + .row::before { left: 16px; }
.ic { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 14px; font-weight: 600; flex: none; }
.t { flex: 1; min-width: 0; }
.t b { display: block; font-size: 17px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t small { display: block; font-size: 13px; color: var(--sub); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v { font-size: 17px; color: var(--sub); white-space: nowrap; }
.chev { color: #c4c4c6; font-size: 20px; flex: none; }
.empty { text-align: center; color: var(--sub); font-size: 15px; padding: 40px 20px; }
.blue { color: var(--blue); }
.in { color: var(--green) !important; }

/* 日曆 */
.dow { display: grid; grid-template-columns: repeat(7, 1fr); font-size: 11px; color: var(--sub); text-align: center; padding: 0 8px 6px; border-bottom: .5px solid var(--sep); }
.month { padding: 0 8px; touch-action: pan-y; }
.week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: .5px solid var(--sep); height: 66px; }
.day { display: flex; flex-direction: column; align-items: center; padding-top: 5px; font-size: 19px; }
.day.blank { pointer-events: none; }
.day.wk { color: var(--sub); }
.day .n { width: 32px; height: 32px; line-height: 32px; text-align: center; border-radius: 50%; }
.day.today .n { color: var(--red); font-weight: 600; }
.day.sel .n { background: #000; color: #fff; font-weight: 600; }
.day.sel.today .n { background: var(--red); color: #fff; }
.dots { display: flex; gap: 3px; margin-top: 3px; height: 5px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; }
.span { position: absolute; height: 13px; border-radius: 4px; color: #fff; font-size: 10px; line-height: 13px; text-align: center; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; font-weight: 600; }
.span.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.span.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.daytitle { font-size: 15px; color: var(--sub); padding: 16px 16px 6px; }
.ev { display: flex; gap: 12px; padding: 10px 16px; align-items: stretch; width: 100%; text-align: left; position: relative; }
.ev:active { background: #f2f2f7; }
.ev + .ev::before { content: ''; position: absolute; top: 0; right: 0; left: 32px; height: .5px; background: var(--sep); }
.ev .bar { width: 4px; border-radius: 2px; flex: none; }
.ev .time { font-size: 13px; color: var(--sub); text-align: right; min-width: 50px; white-space: pre-line; }

/* 摘要卡 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 22px; }
.card { background: #fff; border-radius: 12px; padding: 10px 12px; min-width: 0; }
.card span { font-size: 12px; color: var(--sub); }
.card b { display: block; font-size: 19px; font-weight: 600; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 待辦 */
.circle { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #c4c4c6; flex: none; position: relative; }
.circle.done { background: var(--orange); border-color: var(--orange); }
.circle.done::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.row.done .t b { color: var(--sub); }
.hdr.overdue { color: var(--red); }

/* 下方分頁列 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 6px 0 calc(var(--safe-bottom) + 2px); background: rgba(249, 249, 249, .94); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--sep); }
.tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: #999; padding-bottom: 2px; }
.tabbar button.on { color: var(--tint); }
.tabbar svg { width: 26px; height: 26px; }

/* 下方滑出的表單（iOS 樣式） */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .25s; }
.backdrop.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; height: calc(100% - var(--safe-top) - 12px); background: var(--bg); border-radius: 12px 12px 0 0; transform: translateY(102%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.sheet.on { transform: none; }
.sheet.short { height: auto; max-height: 80vh; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; flex: none; }
.sheet-head b { font-size: 17px; font-weight: 600; }
.sheet-head button { color: var(--tint); font-size: 17px; min-width: 60px; text-align: left; }
.sheet-head button.done { font-weight: 600; text-align: right; }
.sheet-head button:disabled { color: #c4c4c6; }
.sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 0 calc(30px + var(--safe-bottom)); }
.f { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 46px; position: relative; }
.f + .f::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.f label { font-size: 17px; flex: none; min-width: 72px; }
.f input, .f select, .f textarea { flex: 1; border: 0; outline: none; background: none; font-size: 17px; color: #000; text-align: right; min-width: 0; padding: 11px 0; -webkit-appearance: none; appearance: none; }
.f input.left, .f textarea { text-align: left; }
.f input::placeholder, .f textarea::placeholder { color: #c4c4c6; }
.f textarea { min-height: 88px; resize: none; }
.f select { color: var(--sub); direction: rtl; }
.f .seg { flex: 1; margin: 8px 0; }
.f input[type=date], .f input[type=time] { color: var(--sub); }
.checks { padding: 4px 0; }
.check { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 11px 16px; font-size: 17px; position: relative; }
.check + .check::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: .5px; background: var(--sep); }
.check .mark { color: var(--tint); font-weight: 600; visibility: hidden; }
.check.on .mark { visibility: visible; }
.danger-btn { display: block; width: calc(100% - 32px); margin: 0 16px 24px; background: #fff; border-radius: 12px; color: var(--red); font-size: 17px; padding: 12px; text-align: center; }
.note { font-size: 13px; color: var(--sub); padding: 0 32px 18px; margin-top: -16px; }

/* 提示訊息 */
.toast { position: fixed; left: 50%; bottom: calc(100px + var(--safe-bottom)); z-index: 80; transform: translateX(-50%) translateY(20px); background: rgba(30, 30, 30, .9); color: #fff; font-size: 15px; padding: 10px 18px; border-radius: 20px; opacity: 0; transition: .25s; pointer-events: none; max-width: 86%; text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 收藏：Discord 風格的連結預覽卡片 */
.embeds { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.embed { background: #fff; border-radius: 10px; border-left: 4px solid #5865f2; padding: 10px 12px 12px; display: block; text-align: left; width: 100%; overflow: hidden; }
.embed:active { background: #f7f7f9; }
.e-site { font-size: 12px; color: var(--sub); margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.e-site img { width: 16px; height: 16px; border-radius: 3px; }
.e-title { display: block; font-size: 16px; font-weight: 600; color: #006ce7; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.e-desc { font-size: 14px; color: #313338; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.e-note { font-size: 14px; color: #313338; margin-top: 6px; padding: 6px 8px; background: #f2f3f5; border-radius: 6px; }
.e-img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 6px; margin-top: 8px; background: #f2f3f5; }
.e-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--sub); }
.e-tag { background: #eef0ff; color: #4752c4; border-radius: 4px; padding: 2px 6px; font-weight: 600; }
.e-edit { color: var(--sub); font-size: 20px; line-height: 1; padding: 2px 6px; letter-spacing: 1px; }

/* 收藏：Discord 風格的分組清單 */
#linkTags { display: none; }
.sec { background: #fff; margin: 0 16px 14px; border-radius: 12px; padding: 4px 16px 6px; }
.sec-h { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 0 4px; font-size: 17px; font-weight: 600; }
.sec-h span { color: var(--sub); font-weight: 400; font-size: 15px; }
.sec-h .fold { margin-left: auto; color: #c4c4c6; font-weight: 400; font-size: 14px; transition: transform .2s; }
.sec.closed .fold { transform: rotate(180deg); }
.sec.closed .li { display: none; }
.li { display: flex; gap: 8px; align-items: baseline; width: 100%; padding: 6px 0; font-size: 16px; line-height: 1.35; text-align: left; }
.li::before { content: '•'; color: var(--sub); flex: none; }
.li span { color: #006ce7; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li:active span { opacity: .5; }
.links-tip { font-size: 13px; color: var(--sub); text-align: center; padding: 4px 16px 16px; }

/* 換月份的滑動動畫 */
@keyframes inR { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inL { from { transform: translateX(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.month.in-r { animation: inR .25s ease-out; }
.month.in-l { animation: inL .25s ease-out; }

/* ---------- 輸入頁 ---------- */
.chat-view { background: #f4f6fb; padding-bottom: calc(150px + var(--safe-bottom)); }
.chat-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: center; gap: 10px; padding: calc(var(--safe-top) + 6px) 16px 8px; margin-top: calc(-1 * var(--safe-top)); background: rgba(244, 246, 251, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.chat-head img { width: 38px; height: 38px; border-radius: 10px; }
.chat-head b { display: block; font-size: 20px; font-weight: 800; color: #0d1726; line-height: 1.1; }
.chat-head small { font-size: 12px; color: #6b7280; }
.chat-list { display: flex; flex-direction: column; gap: 9px; padding: 6px 14px 0; }
.chat-day { text-align: center; font-size: 12px; color: #6b7280; margin: 6px 0 0; }
.chat-empty { text-align: center; color: #8a8f98; font-size: 14px; line-height: 1.7; padding: 40px 20px; }
.me { align-self: flex-end; max-width: 80%; background: #1677ff; color: #fff; padding: 9px 15px; border-radius: 20px 20px 5px 20px; font-size: 16px; line-height: 1.35; word-break: break-word; white-space: pre-wrap; user-select: text; -webkit-user-select: text; }
.reply { align-self: flex-start; width: 86%; background: #fff; border-radius: 16px; box-shadow: 0 2px 10px rgba(20, 40, 80, .07); overflow: hidden; }
.reply .main { display: flex; gap: 11px; align-items: center; padding: 10px 12px; width: 100%; text-align: left; }
.reply .bx { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.reply .bx svg { width: 24px; height: 24px; }
.reply .cb { flex: 1; min-width: 0; }
.reply .k { font-size: 13px; font-weight: 700; }
.reply .m { font-size: 16px; font-weight: 700; color: #111; margin: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply .s { font-size: 13px; color: #6b7280; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reply .chev { color: #b0b6c0; font-size: 20px; }
.reply .acts { display: flex; border-top: .5px solid var(--sep); }
.reply .acts button { flex: 1; padding: 9px 0; font-size: 14px; color: var(--blue, #007aff); }
.reply .acts button + button { border-left: .5px solid var(--sep); }
.reply .cats { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.reply .cats button { font-size: 13px; background: #f2f2f7; border-radius: 14px; padding: 5px 11px; }
.reply.undone { opacity: .45; }
.reply.undone .acts, .reply.undone .cats { display: none; }
.reply .hits a { display: block; padding: 9px 12px; border-top: .5px solid var(--sep); color: #1677ff; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.reply.text { padding: 10px 13px; font-size: 15px; color: #333; }
.composer { position: fixed; left: 0; right: 0; bottom: calc(52px + var(--safe-bottom)); z-index: 25; display: flex; gap: 9px; align-items: flex-end; padding: 8px 12px; background: rgba(244, 246, 251, .96); }
.composer textarea { flex: 1; resize: none; border: 0; outline: 0; background: #fff; border-radius: 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); padding: 11px 16px; font: inherit; font-size: 16px; line-height: 1.3; max-height: 120px; }
.composer button { width: 44px; height: 44px; border-radius: 50%; background: #1677ff; display: grid; place-items: center; flex: none; }
.composer button:disabled { opacity: .5; }
.composer button svg { width: 20px; height: 20px; }
body.typing .tabbar { display: none; }
body.typing .composer { bottom: 0; padding-bottom: 8px; }
.daytitle.sm { font-size: 13px; padding: 12px 16px 4px; }
.nav .icon-btn.on { background: var(--tint); color: #fff; border-radius: 8px; }
/* iPhone（iOS 26 以後）風格：工具列按鈕放進圓角膠囊，左邊「今天」，右邊動作一組 */
#v-cal .nav .l, #v-cal .nav .r { background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 1px 6px rgba(0, 0, 0, .1), inset 0 0 0 .5px rgba(0, 0, 0, .06); border-radius: 20px; height: 38px; padding: 0 6px; gap: 2px; min-width: 0; }
#v-cal .nav .l { padding: 0 14px; }
#calToday { font-size: 16px; font-weight: 600; color: #000; }
#v-cal .nav .r .icon-btn { width: 38px; height: 34px; color: #000; border-radius: 17px; }
#v-cal .nav .r .icon-btn:active, #calToday:active { opacity: .5; }
#v-cal .nav .icon-btn.on { background: var(--tint); color: #fff; }
.reply.text { white-space: pre-wrap; line-height: 1.5; }
.chat-head { position: sticky; }
.chat-more { position: absolute; right: 14px; bottom: 10px; width: 36px; height: 36px; border-radius: 18px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); display: grid; place-items: center; color: #333; }
.chat-more svg { width: 20px; height: 20px; }
.shift-week { font-size: 13px; color: var(--sub); padding: 14px 32px 6px; }
.shift-row .d { width: 64px; flex: none; }
.shift-row .d b { display: block; font-size: 17px; font-weight: 600; }
.shift-row .d small { font-size: 12px; color: var(--sub); }
.shift-row.today { background: rgba(255, 59, 48, .06); }
.shift-row .off { color: var(--sub); }
.tabbar button[hidden] { display: none; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: #e9e9eb; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: #34c759; }
.switch.on::after { transform: translateX(20px); }
.acc-mode { margin: 0 16px 12px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card .split { display: block; font-size: 11px; color: var(--sub); margin-top: 2px; }
.hol { font-size: 11px; font-weight: 600; color: #fff; background: #ff9500; border-radius: 5px; padding: 1px 5px; vertical-align: 2px; }
.icon-pick { display: flex; gap: 18px; justify-content: center; padding: 20px 16px 8px; }
.icon-pick button { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px; border-radius: 22px; border: 2px solid transparent; }
.icon-pick button.on { border-color: var(--tint); background: #fff; }
.icon-pick img { width: 90px; height: 90px; border-radius: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.icon-pick span { font-size: 14px; }
.icon-pick + .note { margin-top: 12px; }
/* ---------- 月曆：iPhone 行事曆樣式（農曆、節日、事件名稱） ---------- */
.week { height: 77px; }
.day { padding-top: 2px; }
.day .n { width: 28px; height: 28px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.day .n b { font-size: 17px; font-weight: 600; }
.day .n small { font-size: 10.5px; color: var(--sub); font-weight: 400; margin-top: 1px; }
.day .n small.m1 { color: var(--red); border-bottom: 1.5px solid var(--red); }
.day.wk .n b { color: var(--sub); }
.day.today .n { background: var(--red); }
.day.today .n b, .day.today .n small { color: #fff; border-color: #fff; }
.day.sel .n { background: #000; }
.day.sel .n b, .day.sel .n small { color: #fff; border-color: #fff; }
.day.sel.today .n { background: var(--red); }
.pill { position: absolute; height: 16px; line-height: 16px; border-radius: 5px; font-size: 10.5px; font-weight: 600; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: clip; pointer-events: none; letter-spacing: -.2px; }
.pill.bar { color: #fff; text-align: center; }
.pill.hol { background: #f1e4fb; color: #9b4dca; }
.pill.more { color: var(--sub); font-weight: 600; background: none; font-size: 11px; }
.pill.cont-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pill.cont-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.day.holi:not(.sel):not(.today) .n b { color: var(--red); }
.daytitle .holname { color: var(--red); }
.pill { height: 14px; line-height: 14px; font-size: 9.5px; border-radius: 4px; }
.pill.more { font-size: 10px; }

/* 分類排序 */
.sort-row { gap: 6px; }
.sort-row { position: relative; background: #fff; transition: transform .15s; }
.sort-row.dragging { transition: none; z-index: 2; box-shadow: 0 8px 24px rgba(0,0,0,.18); border-radius: 12px; }
.drag-h { width: 48px; height: 40px; margin-right: -8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; touch-action: none; cursor: grab; -webkit-user-select: none; user-select: none; }
.drag-h i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: #c7c7cc; }
.sort-row.dragging .drag-h i { background: var(--tint); }

/* 加班：右邊「已報／未報」滑動開關 */
.ot-row { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.ot-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; }
.ot-main b { font-size: 17px; font-weight: 600; }
.ot-main small { font-size: 14px; color: #8e8e93; }
.ot-sw { flex: none; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 6px 0 6px 10px; font: inherit; }
.ot-sw .lbl { font-size: 15px; color: #8e8e93; min-width: 2.2em; text-align: right; }
.ot-sw.on .lbl { color: #34a853; }
.ot-sw .sw { position: relative; width: 51px; height: 31px; border-radius: 16px; background: #e5e5ea; transition: background .2s; }
.ot-sw .sw i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.ot-sw.on .sw { background: #34c759; }
.ot-sw.on .sw i { transform: translateX(20px); }
#otTodo.warn { color: #ff9500; font-weight: 600; }
