:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #eef0f3; --border: #e2e5ea;
  --text: #14171c; --muted: #6b7280; --accent: #16a34a; --accent-ink: #ffffff;
  --accent-soft: #dcfce7; --danger: #dc2626; --warn: #d97706;
  --h0: #e9ecf0; --h1: #bbf7d0; --h2: #86efac; --h3: #4ade80; --h4: #16a34a;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.05);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --surface: #171a20; --surface-2: #20242c; --border: #2a2f38;
    --text: #e8eaee; --muted: #9098a5; --accent: #22c55e; --accent-ink: #06210f;
    --accent-soft: #123222; --danger: #f87171; --warn: #fbbf24;
    --h0: #20242c; --h1: #14532d; --h2: #166534; --h3: #16a34a; --h4: #22c55e;
    --shadow: 0 1px 2px rgba(0,0,0,.3);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .tiny { font-size: 12px; } .center { text-align: center; }
.error { color: var(--danger); min-height: 1.2em; margin: 4px 0; font-size: 14px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h2 { font-size: 22px; } h3 { font-size: 16px; }

/* Auth */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 28px 22px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { font-size: 24px; }
.logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; }
.brand.sm .logo { width: 28px; height: 28px; border-radius: 8px; font-size: 14px; }
.brand.sm { font-weight: 700; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; margin: 16px 0 4px; }
.seg button { flex: 1; white-space: nowrap; border: 0; background: transparent; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 14px; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-weight: 600; }

/* Buttons */
.btn { border: 1px solid var(--border); background: var(--surface); padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
a.btn { text-decoration: none; color: var(--text); display: inline-block; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--danger); }
.btn.block { width: 100%; padding: 12px; margin-top: 10px; }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.icon-btn { border: 1px solid var(--border); background: var(--surface); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; display: inline-grid; place-items: center; font-size: 16px; }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* Layout */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 16px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .user { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sync { font-size: 12px; } .sync.ok { color: var(--accent); } .sync.busy { color: var(--warn); } .sync.err { color: var(--danger); }
.tabs { display: flex; gap: 4px; }
.tabs button, .bottomnav button { border: 0; background: transparent; cursor: pointer; color: var(--muted); }
.tabs button { padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.tabs button.active { background: var(--surface-2); color: var(--text); }
.bottomnav { display: none; }
main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 100px; }
@media (max-width: 760px) {
  .tabs { display: none; }
  .bottomnav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; padding: 4px 0; }
  .bottomnav button .ic { font-size: 19px; line-height: 1; filter: grayscale(1); opacity: .7; }
  .bottomnav button.active { color: var(--text); font-weight: 700; }
  .bottomnav button.active .ic { filter: none; opacity: 1; }
  #username { display: none; }
}

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 760px) { .g2 { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.mt { margin-top: 14px; }

/* KPI */
.kpi .label { font-size: 12.5px; color: var(--muted); }
.kpi .value { font-size: 28px; font-weight: 750; letter-spacing: -.02em; margin-top: 2px; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.up { color: var(--accent); } .down { color: var(--danger); }

/* Today */
.day-hero { display: flex; align-items: center; gap: 18px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .pct { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.habit-list { display: grid; gap: 10px; margin-top: 14px; }
.habit { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.habit.done { border-color: color-mix(in srgb, var(--hc) 55%, var(--border)); background: color-mix(in srgb, var(--hc) 8%, var(--surface)); }
.habit .hicon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; background: color-mix(in srgb, var(--hc) 18%, transparent); flex: none; }
.habit .info { flex: 1; min-width: 0; }
.habit .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.habit .meta { font-size: 12.5px; color: var(--muted); }
.habit .bar { height: 5px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.habit .bar i { display: block; height: 100%; background: var(--hc); border-radius: 3px; transition: width .25s; }
.check { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); background: transparent; cursor: pointer; font-size: 18px; font-weight: 800; color: transparent; flex: none; transition: .15s; }
.check.on { background: var(--hc); border-color: var(--hc); color: #fff; }
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper .v { min-width: 54px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.note-btn { border: 0; background: transparent; cursor: pointer; font-size: 16px; opacity: .5; padding: 4px; }
.note-btn.has { opacity: 1; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; }
.cal .dow { text-align: center; font-size: 12px; color: var(--muted); padding-bottom: 2px; }
.cal .d { aspect-ratio: 1; border-radius: 10px; background: var(--h0); border: 2px solid transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; padding: 0; color: var(--text); }
.cal .d small { font-size: 10px; font-weight: 500; opacity: .8; }
.cal .d.l1 { background: var(--h1); } .cal .d.l2 { background: var(--h2); } .cal .d.l3 { background: var(--h3); color: #06210f; } .cal .d.l4 { background: var(--h4); color: #fff; }
.cal .d.na { background: transparent; color: var(--muted); cursor: default; border: 1px dashed var(--border); }
.cal .d.future { opacity: .35; cursor: default; }
.cal .d.sel { border-color: var(--text); }
.cal .d.today { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal .pad { visibility: hidden; }
.legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.year-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 11px); gap: 3px; overflow-x: auto; padding-bottom: 4px; }
.year-heat i { width: 11px; height: 11px; border-radius: 3px; background: var(--h0); }
.year-heat i.l1 { background: var(--h1); } .year-heat i.l2 { background: var(--h2); } .year-heat i.l3 { background: var(--h3); } .year-heat i.l4 { background: var(--h4); } .year-heat i.x { background: transparent; }

/* Week */
.grade { width: 84px; height: 84px; border-radius: 20px; display: grid; place-items: center; font-size: 44px; font-weight: 850; flex: none; color: #fff; }
.week-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.week-table th { font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 2px; }
.week-table td { padding: 7px 2px; border-top: 1px solid var(--border); text-align: center; }
.week-table td:first-child, .week-table th:first-child { text-align: left; }
.week-table td:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; background: var(--surface-2); vertical-align: middle; }
.dot.part { background: color-mix(in srgb, var(--hc) 45%, var(--surface-2)); }
.dot.full { background: var(--hc); }
.dot.off { background: transparent; border: 1px dashed var(--border); }
.insight { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.insight:first-child { border-top: 0; }
.insight .e { font-size: 20px; }

/* Charts */
.chart { width: 100%; height: auto; display: block; max-height: 280px; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .grid-l { stroke: var(--border); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .12; }
.chart .pt { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.chart .bar { fill: var(--accent); }
.chart .bar.dim { opacity: .35; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 44px; gap: 10px; align-items: center; margin: 8px 0; font-size: 14px; }
.hbar .t { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.hbar .t i { display: block; height: 100%; border-radius: 5px; }
.hbar .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .p { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Habits manage */
.manage { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.manage:first-child { border-top: 0; }
.manage.arch { opacity: .55; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface-2); padding: 6px 10px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--text); }
.emoji-pick { font-size: 20px; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }

/* Log */
.log-item { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 14px; }
.log-item:first-child { border-top: 0; }
.log-item .badge { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--surface-2); height: fit-content; white-space: nowrap; }
.log-item .badge.crear, .log-item .badge.login, .log-item .badge.registro { background: var(--accent-soft); color: var(--accent); }
.log-item .badge.eliminar, .log-item .badge.login_fallido { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.log-item .when { font-size: 12px; color: var(--muted); }

/* Modal & toast */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 16px; }
.modal-card { width: 100%; max-width: 480px; max-height: 90dvh; overflow: auto; background: var(--surface); border-radius: 18px; padding: 20px; border: 1px solid var(--border); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: .2s; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Admin */
.badge-s { font-size: 10.5px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); text-transform: uppercase; }
.admin-t td { text-align: left; vertical-align: middle; font-weight: 400 !important; }
.admin-t td:last-child { text-align: right; }
.admin-t th { text-align: left; }
.admin-t .btn.sm { margin: 2px 0; }
code.pw { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.who { font-weight: 700; margin-right: 4px; }
.reg-note { font-size: 12.5px; background: var(--surface-2); color: var(--text); border-radius: 10px; padding: 8px 10px; margin-top: 12px; }
.log-item .badge.login_bloqueado, .log-item .badge.admin_eliminar_usuario { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
@media (max-width: 760px) { .bottomnav button { font-size: 9.5px; } .bottomnav button .ic { font-size: 18px; } }
@media (max-width: 760px) {
  .admin-t, .admin-t tbody, .admin-t tr, .admin-t td { display: block; width: 100%; }
  .admin-t tr:first-child { display: none; }
  .admin-t tr { border-top: 1px solid var(--border); padding: 12px 0; }
  .admin-t td { border: 0 !important; padding: 2px 0 !important; text-align: left !important; }
  .admin-t td:nth-child(2)::before { content: 'Contraseña: '; color: var(--muted); font-size: 13px; }
  .admin-t td:nth-child(3)::before { content: 'Hábitos: '; color: var(--muted); font-size: 13px; }
  .admin-t td:nth-child(4)::before { content: 'Registros: '; color: var(--muted); font-size: 13px; }
  .admin-t td:nth-child(5) div { display: inline; margin-left: 6px; }
  .admin-t td:nth-child(5)::before { content: 'Último acceso: '; color: var(--muted); }
  .admin-t td:last-child { white-space: normal !important; padding-top: 8px !important; }
}

/* ===== Agenda ===== */
.mb { margin-bottom: 14px; }
.agenda-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .agenda-grid { grid-template-columns: 1fr; } }
.tl-card { padding: 8px 10px 8px 0; max-height: 72vh; overflow-y: auto; overscroll-behavior: contain; }
.timeline { position: relative; margin-left: 52px; cursor: copy; }
.hl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.hl span { position: absolute; left: -48px; top: -8px; font-size: 11px; color: var(--muted); width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.blk-line { position: absolute; left: 0; right: 0; border-top: 2px dashed color-mix(in srgb, var(--accent) 40%, var(--border)); pointer-events: none; }
.blk-line span { position: absolute; right: 4px; top: 2px; font-size: 10.5px; color: var(--muted); background: var(--surface); padding: 0 4px; border-radius: 4px; }
.tl-events { position: absolute; inset: 0; }
.now { position: absolute; left: -6px; right: 0; border-top: 2px solid var(--danger); z-index: 3; pointer-events: none; }
.now::before { content: ''; position: absolute; left: -4px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--danger); }
.ev { position: absolute; border-radius: 8px; background: color-mix(in srgb, var(--hc) 22%, var(--surface)); border-left: 4px solid var(--hc); display: flex; gap: 6px; padding: 3px 6px; overflow: hidden; cursor: grab; touch-action: none; user-select: none; z-index: 2; font-size: 12.5px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ev.done { background: color-mix(in srgb, var(--hc) 45%, var(--surface)); }
.ev.done .ev-body b { text-decoration: line-through; opacity: .8; }
.ev.dragging { opacity: .85; box-shadow: 0 6px 20px rgba(0,0,0,.25); cursor: grabbing; z-index: 5; }
.ev-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ev-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 650; }
.ev-body span { font-size: 11px; color: var(--muted); }
.ev-check { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--hc); background: transparent; color: #fff; font-size: 11px; font-weight: 800; padding: 0; cursor: pointer; display: grid; place-items: center; margin-top: 1px; }
.ev.done .ev-check, .ag-item.done .ev-check { background: var(--hc); }
.ev-check.lg { width: 26px; height: 26px; font-size: 14px; margin: 0; }
.ag-list { display: grid; gap: 6px; margin-top: 10px; }
.ag-empty { padding: 6px 0; }
.ag-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); border-left: 4px solid var(--hc); }
.ag-item.done .ag-main b { text-decoration: line-through; opacity: .7; }
.ag-main { flex: 1; min-width: 0; cursor: pointer; }
.ag-main b { font-weight: 650; }
.ord { display: flex; gap: 4px; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 14px; }
.pbadge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; vertical-align: 1px; }
.p1 { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.p2 { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.p3 { background: var(--surface); color: var(--muted); }
.chip.prio.on.p1 { background: var(--danger); color: #fff; border-color: var(--danger); }
.chip.prio.on.p2 { background: var(--warn); color: #fff; border-color: var(--warn); }
.chip.prio.on.p3 { background: var(--muted); color: #fff; border-color: var(--muted); }
.grp-title { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 8px 2px -2px; }
.habit .sched:not(:empty) { margin-right: 6px; font-weight: 600; color: var(--text); }
.pick-list { display: grid; gap: 6px; margin-top: 12px; max-height: 55vh; overflow: auto; }
.pick { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); cursor: pointer; font-size: 18px; }
.pick:hover { border-color: var(--accent); }
.pick b { font-size: 14px; }
/* Semana */
.wk-card { padding: 8px 6px; }
.wk-head, .wk-untimed { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 2px; align-items: center; }
.wk-day { border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 8px; color: var(--muted); font-size: 11px; }
.wk-day b { font-size: 17px; color: var(--text); }
.wk-day.today b { background: var(--accent); color: var(--accent-ink); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; }
.wk-untimed { padding: 4px 0 6px; border-bottom: 1px solid var(--border); }
.wk-untimed .tiny { font-size: 10px; text-align: right; padding-right: 4px; }
.wk-cnt { border: 0; background: var(--surface-2); border-radius: 6px; font-size: 11px; padding: 3px 0; cursor: pointer; }
.wk-scroll { max-height: 65vh; overflow-y: auto; }
.wk-body { position: relative; display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 2px; }
.wk-hours { position: relative; grid-column: 1 / -1; grid-row: 1; pointer-events: none; margin-left: 44px; }
.wk-hours .hl span { left: -44px; width: 38px; }
.wk-hours .blk-line span { display: none; }
.wk-col { grid-row: 1; position: relative; cursor: pointer; border-left: 1px solid var(--border); }
.wk-col:nth-child(2) { grid-column: 2; } .wk-col:nth-child(3) { grid-column: 3; } .wk-col:nth-child(4) { grid-column: 4; } .wk-col:nth-child(5) { grid-column: 5; } .wk-col:nth-child(6) { grid-column: 6; } .wk-col:nth-child(7) { grid-column: 7; } .wk-col:nth-child(8) { grid-column: 8; }
.wk-col .ev { font-size: 13px; padding: 2px 0; justify-content: center; border-left-width: 3px; cursor: pointer; touch-action: auto; }
.wk-col .now { left: 0; }
/* Menú "Más" */
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; font-weight: 600; }
.more-item span { font-size: 24px; }
.more-item.on { border-color: var(--accent); }
.bottomnav button { font-size: 10.5px !important; }

/* Horarios según el día */
.sbadge { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, #3b82f6 16%, transparent); color: #3b82f6; white-space: nowrap; }
.scope-list { display: grid; gap: 8px; margin-top: 12px; }
.scope-list .pick span:last-child { flex: 1; text-align: left; }
.special-box { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.warn-t { color: var(--warn); margin: 6px 0 0; }
.wd-table { display: grid; gap: 6px; margin-top: 10px; }
.wd-row { display: grid; grid-template-columns: 40px 110px 1fr 1fr; gap: 6px; align-items: center; }
.wd-row b { font-size: 13px; }
.wd-row select, .wd-row input { margin: 0; padding: 7px 8px; font-size: 13px; }
@media (max-width: 420px) { .wd-row { grid-template-columns: 36px 1fr 1fr; } .wd-row > :nth-child(4) { grid-column: 2 / -1; } }
