/* ===== 包班大廳管理：正式後台風格 ===== */
:root {
  --brand: #a8324d; --brand-soft: #fbe9ee; --ink: #2b2730; --ink-2: #6b6570; --ink-3: #9b95a0;
  --line: #ebe6ea; --bg: #f6f4f6; --card: #fff;
  --ok: #1f9d6b; --ok-soft: #e3f6ee; --warn: #c27a00; --warn-soft: #fff3dc; --mute: #8a8590; --mute-soft: #f0eef1;
  --line-green: #06c755;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: "Noto Sans TC", system-ui, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

/* 版面 */
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 100dvh; }
.side { background: #fff; border-right: 1px solid var(--line); padding: 22px 14px; position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; }
.logo { font-weight: 700; font-size: 16px; display: flex; align-items: center; }
.top-back { font-size: 26px; line-height: 1; color: var(--brand); text-decoration: none; padding: 0 10px 3px 2px; font-weight: 400; }
.org { color: var(--ink-3); font-size: 12px; margin: 4px 0 22px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; margin-bottom: 2px; white-space: nowrap; }
.side .ng { margin-bottom: 22px; }
.side .ng-t { font-size: 15px; font-weight: 800; letter-spacing: .04em; color: var(--ink); padding: 1px 10px; margin: 0 0 8px 4px; border-left: 4px solid var(--brand); }
.side nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.side nav .n { margin-left: auto; font-size: 12px; background: var(--brand); color: #fff; border-radius: 10px; padding: 0 7px; }
.back { margin-top: auto; text-align: center; text-decoration: none; }
.refresh { margin-top: auto; }
main { padding: 26px 30px 40px; min-width: 0; }
.ph { display: flex; align-items: flex-end; margin-bottom: 18px; }
.ph h1 { font-size: 21px; margin: 0; }
.ph p { margin: 4px 0 0; color: var(--ink-3); font-size: 13px; }

/* 共用元件 */
.btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 13px; color: var(--ink); }
.btn:hover { border-color: #cfc8ce; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn.ghost { border-color: transparent; color: var(--ink-2); background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.b-open { background: var(--brand-soft); color: var(--brand); }
.b-talk { background: var(--warn-soft); color: var(--warn); }
.b-ready { background: #e3f6e8; color: #2f7d4f; }
.b-confirmed { background: var(--ok-soft); color: var(--ok); }
.b-closed, .b-mute { background: var(--mute-soft); color: var(--mute); }
.b-ban { background: #3b3a40; color: #fff; }
.type { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--mute-soft); font-size: 15px; }
.empty { text-align: center; color: var(--ink-3); padding: 34px 0; font-size: 13px; }
.dim { color: var(--ink-3); font-size: 12px; }
.av { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; border: 2px solid #fff; flex: none; }

/* ========== 揪團看板 ========== */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: #efecef; border-radius: 12px; padding: 10px; min-height: 260px; }
.col h3 { font-size: 13px; margin: 2px 4px 10px; display: flex; align-items: center; gap: 6px; }
.col h3 .dot { width: 8px; height: 8px; border-radius: 50%; }
.col h3 .c { margin-left: auto; color: var(--ink-3); font-weight: 400; }
.kcard { background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.05); cursor: pointer; border: 1px solid transparent; }
.kcard:hover { border-color: var(--line); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.kcard.hidden-item { opacity: .55; }
.kcard .t { font-weight: 700; line-height: 1.45; margin-bottom: 6px; word-break: break-word; }
.kcard .m { color: var(--ink-3); font-size: 12px; margin-bottom: 10px; }
.kcard .ppl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.kcard .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.col .none { color: var(--ink-3); text-align: center; font-size: 12.5px; padding: 30px 0; }

/* 揪團詳細面板 */
.drawer-mask { position: fixed; inset: 0; background: rgba(30,20,30,.3); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--bg); z-index: 41;
  transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 22px 22px 40px;
  box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.drawer.open { transform: none; }
.dh { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.dh h2 { margin: 0; font-size: 18px; line-height: 1.4; word-break: break-word; }
.dh .close { margin-left: auto; }
.steps { display: flex; align-items: center; margin: 4px 0 18px; }
.steps .s { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); flex: none; }
.steps .s i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; }
.steps .s.done i { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps .s.now i { border-color: var(--brand); color: var(--brand); }
.steps .s.done, .steps .s.now { color: var(--ink); }
.steps .bar { flex: 1; height: 2px; background: var(--line); margin: 0 6px 18px; }
.steps .bar.done { background: var(--brand); }
.sect { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.sect h3 { margin: 0 0 10px; font-size: 14px; }
.sect.danger h3 { color: #b3261e; }
.mem { display: flex; flex-wrap: wrap; gap: 8px; }
.mem span { background: var(--bg); border-radius: 999px; padding: 3px 10px 3px 3px; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.mem .av { width: 22px; height: 22px; border: none; font-size: 10px; }
.row-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.sect textarea { width: 100%; min-height: 96px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; resize: vertical; margin-bottom: 8px; line-height: 1.6; }
/* 課程設定、教室課表：左右兩欄（手機上下排），上方用按鈕切換校區、教室 */
.set-root { --ink-soft: var(--ink-3); --cream: #fff; }
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.picker { margin-bottom: 8px; }
.picker .room-tabs { margin-bottom: 6px; }
.tt-preview { position: sticky; top: 14px; }
.tt-preview .cal-blk { pointer-events: none; }
.c-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.c-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.c-row .c-desc { flex-basis: 100%; font-size: 13px; color: #555; }
.c-row input, .tt-open input, .tt-class input, .tt-class select, .tt-note { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; background: #fff; }
.c-row .c-icon { width: 52px; text-align: center; }
.c-row .c-name { flex: 1; min-width: 0; }
.size-table tr.off td:nth-child(n+2) { opacity: .4; }
.tt-label { display: block; font-size: 13px; color: var(--ink-2); margin: 10px 0 6px; }
.tt-note { display: block; width: 100%; margin-top: 4px; box-sizing: border-box; }
.tt-open, .tt-class { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.tt-room { border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 4px; }
.tt-class .k-n { flex: 1; min-width: 120px; }
.tt-class .k-l { width: 64px; }
.tt-class .unit { font-size: 12px; color: var(--ink-3); }
.size-room { max-width: 560px; }
.size-table th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 500; padding: 4px 6px; }
.size-table td { padding: 5px 6px; border-top: 1px solid var(--line); }
.size-table input { width: 90px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; }
.size-save { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 30px; }
.size-save .hint { font-size: 12px; color: var(--ink-3); }
.sect .hint { font-size: 12px; color: var(--ink-3); margin: 0 0 8px; }

/* ========== 言論審核 ========== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat small { color: var(--ink-3); }
.stat b { display: block; font-size: 26px; margin-top: 2px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs { display: flex; gap: 22px; }
.tabs a { color: var(--ink-2); padding: 4px 0 10px; border-bottom: 2px solid transparent; cursor: pointer; user-select: none; }
.tabs a.on { color: var(--ink); font-weight: 700; border-color: var(--brand); }
.search { margin-left: auto; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; width: 220px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; padding: 10px 16px; background: #fbfafb; border-bottom: 1px solid var(--line); }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fcfbfc; }
tr.hid td { color: var(--ink-3); }
tr.hid .content { text-decoration: line-through; }
td.content { max-width: 420px; word-break: break-word; }
td.act { width: 56px; text-align: right; }

/* ⋯ 選單 */
.more { position: relative; display: inline-block; }
.more .menu {
  display: none; position: absolute; right: 0; top: 34px; z-index: 30; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 160px; padding: 6px; text-align: left;
}
.more.open .menu { display: block; }
.menu button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 8px 10px; border-radius: 6px; color: var(--ink); }
.menu button:hover { background: var(--bg); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.menu .danger { color: #b3261e; }

/* 登入 */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; }
.login-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; width: min(380px, 100%); text-align: center; }
.login-card .big { font-size: 40px; }
.login-card h2 { margin: 6px 0; }
.login-card p { color: var(--ink-2); font-size: 13px; }
.login-card input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; margin-bottom: 10px; }
.login-card .btn { width: 100%; }

/* 提示 */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; transition: all .25s; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; z-index: 99; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 手機 */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; z-index: 20; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-right: none; border-bottom: 1px solid var(--line); }
  .side .org { display: none; }
  /* 手機、平板：兩組分頁各一排，可以左右滑，字不會被擠成直的 */
  .side nav { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 8px; }
  .side .ng { margin: 0; display: flex; align-items: center; gap: 8px; }
  .side .ng-t { flex: none; width: 4.9em; padding: 0 0 0 6px; margin: 0; font-size: 13px; letter-spacing: 0; line-height: 1.3; border-left-width: 3px; }
  .side .ng-l { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
  .side .ng-l::-webkit-scrollbar { display: none; }
  .side nav a { flex: none; margin: 0; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: 13.5px; gap: 6px; }
  .side nav a.on { border-color: var(--brand); }
  .refresh { margin: 0 0 0 auto; order: 1; }
  .side nav { order: 2; }
  main { padding: 16px 12px 30px; }
  .board { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .search { width: 100%; margin-left: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; position: relative; }
  td { border: none; padding: 3px 16px; }
  td.act { position: absolute; right: 4px; top: 8px; width: auto; }
  /* 人數設定的表格在手機上維持三欄 */
  .size-table { display: table; }
  .size-table thead { display: table-header-group; }
  .size-table tbody { display: table-row-group; }
  .size-table tr { display: table-row; padding: 0; }
  .size-table td { display: table-cell; padding: 5px 4px; border-top: 1px solid var(--line); }
  .size-table input { width: 72px; }
  .set-grid { grid-template-columns: 1fr; }
  .tt-preview { position: static; }
}

.kc { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; }
.kc span { font-size: 11.5px; background: var(--mute-soft); color: var(--ink-2); border-radius: 6px; padding: 1px 7px; }

/* ---------- 本期課表 ---------- */
.cl-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.cl-bar b { font-size: 18px; }
.cl-bar .dirty { color: #b3261e; }
.cl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-actions select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:disabled { opacity: .4; }
.cl-alert { background: #fff6d6; border: 1px solid #f0dc9a; color: #6b5200; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cl-open { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin-bottom: 10px; }
.cl-open.on { border-color: #9bd3a8; background: #f3fbf5; }
.cl-open small { display: block; color: var(--ink-2); font-size: 12.5px; }
.cl-open .at { margin-left: auto; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.cl-open .at input { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font: inherit; }
.sw { position: relative; width: 46px; height: 26px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: #d5ccd0; border-radius: 99px; transition: .2s; cursor: pointer; }
.sw span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.sw input:checked + span { background: #2e9a4f; }
.sw input:checked + span::after { transform: translateX(20px); }
.cl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.cl-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cl-table th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 8px; border-bottom: 1px solid var(--line); background: #fcfafb; white-space: nowrap; }
.cl-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cl-table tr.off td { opacity: .5; }
.cl-table .nw { white-space: nowrap; }
.cl-table input:not([type=checkbox]), .cl-table textarea { width: 100%; min-width: 120px; border: 1px solid var(--line); border-radius: 7px; padding: 5px 7px; font: inherit; font-size: 13px; margin-bottom: 4px; }
.cl-table textarea { min-width: 220px; resize: vertical; }
.cl-table .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.ct { font-size: 11px; border-radius: 99px; padding: 1px 7px; background: #f1ecee; color: var(--ink-2); }
.ct.new { background: #e3f4e8; color: #1f7a3c; } .ct.gone, .ct.warn { background: #fde8e6; color: #b3261e; } .ct.mute { background: #f4f4f4; color: #888; }
.cl-new { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; }
.cl-new input, .cl-new select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; width: 120px; }
.cl-new input[data-n=url] { width: 240px; } .cl-new input[type=checkbox] { width: auto; }

/* ---------- 學員出席、停課通知 ---------- */
.st-search { display: flex; gap: 8px; margin-bottom: 12px; }
.st-search input { flex: 1; max-width: 320px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.st-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 14px; }
.st-head { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.st-head b { font-size: 18px; } .st-head span { color: var(--ink-2); font-size: 13.5px; }
.st-course { padding: 12px 0; border-bottom: 1px solid var(--line); }
.st-course:last-child { border-bottom: 0; }
.st-dots { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 4px; }
.sd { font-size: 11px; text-align: center; line-height: 1.3; padding: 4px 6px; border-radius: 6px; background: #f4f1f2; color: #888; min-width: 44px; }
.sd.ok { background: var(--brand); color: #fff; } .sd.miss { background: #fde8e6; color: #b3261e; }
.nt-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nt-row select { border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font: inherit; min-width: 360px; }
#notice-box textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; }

/* ---------- 對照包班大廳課表（彈出視窗） ---------- */
.sy-mask { position: fixed; inset: 0; background: rgba(30, 20, 25, .4); z-index: 100; display: grid; place-items: center; padding: 16px; }
.sy-card { background: #fff; border-radius: 14px; width: min(640px, 100%); max-height: 88vh; overflow-y: auto; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.sy-card h2 { margin: 0 0 6px; font-size: 19px; }
.sy-sec { border-top: 1px solid var(--line); padding: 12px 0; }
.sy-sec > b { display: block; font-size: 14.5px; }
.sy-sec > small { display: block; color: var(--ink-3); font-size: 12.5px; margin: 2px 0 6px; }
.sy-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.sy-item input { margin-top: 3px; }
.sy-item small { color: var(--ink-2); }
.sy-btns { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); position: sticky; bottom: -20px; background: #fff; padding-bottom: 4px; }

/* ---------- 手機、平板（860 以下）：頂部列、本期課表 ---------- */
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }   /* 不讓分頁那排把整頁撐寬 */
  .app > * { min-width: 0; }
  .side nav, .side .ng { min-width: 0; max-width: 100%; }
  .side .logo { flex: 1; min-width: 0; white-space: nowrap; }
  .back, .refresh { font-size: 13px; padding: 5px 10px; white-space: nowrap; }
  .cl-bar { flex-direction: column; align-items: stretch; }
  .cl-actions { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .cl-actions .btn { flex: none; }
  .cl-open { flex-direction: row; flex-wrap: wrap; }
  .cl-open > div { flex: 1; min-width: 200px; }
  .cl-open .at { margin-left: 0; width: 100%; justify-content: space-between; }
  /* 課表每一堂變成一張卡片 */
  .cl-wrap { border: 0; background: none; overflow: visible; }
  .cl-table tr { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 10px 4px; display: grid; grid-template-columns: 34px 1fr auto; column-gap: 6px; }
  .cl-table td { padding: 3px 8px; border: 0; }
  .cl-table td:nth-child(1) { grid-row: 1; grid-column: 1; }
  .cl-table td:nth-child(2) { grid-row: 1; grid-column: 2; }
  .cl-table td:nth-child(6) { grid-row: 1; grid-column: 3; text-align: right; }
  .cl-table td:nth-child(3), .cl-table td:nth-child(4), .cl-table td:nth-child(5), .cl-table td:nth-child(7) { grid-column: 1 / -1; }
  .cl-table input:not([type=checkbox]), .cl-table textarea { min-width: 0; }
  .st-search input { max-width: none; }
  .nt-row select { min-width: 0; width: 100%; }
}

/* 對照視窗：左右兩個版本，點一邊＝用那個 */
.sy-card { width: min(720px, 100%); }
.sy-card .hint b { color: var(--brand); }
.sy-all { display: flex; gap: 8px; justify-content: flex-end; margin: 4px 0 6px; }
.sy-all .btn { font-size: 12.5px; padding: 5px 10px; }
.sy-row { padding: 10px 0 12px; border-top: 1px dashed var(--line); }
.sy-row:first-of-type { border-top: 0; }
.sy-when { font-size: 13px; color: var(--ink-2); font-weight: 700; margin-bottom: 6px; }
.sy-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sy-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; min-width: 0; }
.sy-opt small { font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.sy-opt b { font-size: 14px; overflow-wrap: anywhere; }
.sy-opt > span { font-size: 12.5px; color: var(--ink-2); }
.sy-opt .diff { color: #d0456b; }
.sy-opt .sy-none { color: var(--ink-3); font-size: 13px; padding: 2px 0; }
.sy-opt em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink-3); margin-top: 6px; }
.sy-opt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset; }
.sy-opt.on em { color: var(--brand); }
@media (hover: hover) { .sy-opt:not(.on):hover { border-color: #d9b6c0; } }
.sy-sum { margin-right: auto; align-self: center; font-size: 13px; color: var(--ink-2); font-weight: 700; }
@media (max-width: 520px) { .sy-btns { flex-wrap: wrap; } .sy-sum { width: 100%; } }
