/* Echo Agenda web: looks like the Windows (FMX) app. Colors come from shared/theme/echoagenda-theme.json,
   applied as CSS variables by js/theme.js. Sizes follow MainUnit.pas / EchoUI.pas. */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--back); color: var(--text); font: 13px var(--font); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.grow { flex: 1; }
.muted { color: var(--muted); }
#app { display: flex; flex-direction: column; height: 100vh; }
.splash { position: fixed; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* ---- shared controls ---- */
.btn { height: 28px; min-width: 64px; padding: 0 12px; border-radius: 3px; border: 1px solid var(--border); background: var(--surface);
  cursor: pointer; white-space: nowrap; font-size: 12px; }
.btn:hover:not(:disabled) { background: var(--hover); }
.btn:focus-visible { outline: none; border-color: var(--accent); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn.primary:active:not(:disabled) { background: var(--primary-pressed); }
.btn:disabled { color: var(--muted); opacity: .6; cursor: default; }
.combo, select { height: 30px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); padding: 0 6px; font-size: 12px; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type=text], input:not([type]), input[type=date], input[type=time], input[type=search] { height: 28px; border: 1px solid var(--border);
  border-radius: 3px; background: var(--surface); padding: 0 8px; font-size: 12px; }
input::placeholder, textarea::placeholder { color: var(--muted); }
/* Echo checkbox (AgendaCheckBox.pas): 18px box, accent fill with a white check when on. */
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 12px; position: relative; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.check .box { width: 18px; height: 18px; border: 1.5px solid var(--check-border); border-radius: 3px; flex: none; display: grid; place-items: center; background: transparent; }
.check input:checked + .box { background: var(--check-fill); border-color: var(--check-fill); }
.check input:checked + .box::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check input:disabled + .box { opacity: .45; }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---- menu bar ---- */
.menubar { height: 38px; flex: none; display: flex; align-items: center; background: var(--toolbar); padding: 0 4px; position: relative; z-index: 20; }
.menubar > .menu-title { height: 30px; padding: 0 8px; border-radius: 3px; border: 0; background: transparent; cursor: default; font-size: 12px; }
.menubar > .menu-title:hover, .menubar > .menu-title.open { background: var(--hover); }
.menubar .spacer { flex: 1; }
.project-combo { width: 210px; margin: 4px 12px 4px 8px; }

/* drop-down and context menus */
.dropdown { position: fixed; z-index: 1000; min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 12px; }
.dropdown .item { display: flex; align-items: center; height: 26px; padding: 0 22px 0 28px; border-radius: 3px; position: relative;
  white-space: nowrap; cursor: default; gap: 24px; }
.dropdown .item:hover, .dropdown .item.active { background: var(--hover); }
.dropdown .item.disabled { color: var(--muted); opacity: .7; pointer-events: none; }
.dropdown .item .label { flex: 1; } .dropdown .item .key { color: var(--muted); }
.dropdown .item.checked::before { content: "\2713"; position: absolute; left: 9px; }
.dropdown .item.radio.checked::before { content: "\25CF"; font-size: 9px; left: 11px; }
.dropdown .item.sub::after { content: "\203A"; position: absolute; right: 9px; color: var(--muted); font-size: 14px; }
.dropdown .sep { height: 1px; background: var(--border); margin: 4px 6px; }

/* ---- ribbon (groups wrap in 76px rows) ---- */
.ribbon { flex: none; background: var(--toolbar); display: flex; flex-wrap: wrap; padding: 2px 4px 2px 12px; row-gap: 0; }
.rgroup { position: relative; height: 76px; display: flex; flex-direction: column; margin-right: 8px; padding-right: 8px; }
.rgroup::after { content: ""; position: absolute; right: 0; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.rgroup .buttons { display: flex; gap: 2px; height: 56px; }
.rgroup .caption { font-size: 10px; color: var(--muted); text-align: center; height: 16px; line-height: 16px; margin-top: 2px; }
.rbtn { width: 46px; height: 56px; border: 1px solid transparent; border-radius: 3px; background: transparent; padding: 4px 0 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; font-size: 10.5px; white-space: nowrap; }
.rbtn img { width: 24px; height: 24px; }
.rbtn:hover:not(:disabled) { background: var(--hover); }
.rbtn:active:not(:disabled), .rbtn:focus-visible { border-color: var(--border); outline: none; }
.rbtn:disabled { opacity: .45; cursor: default; }
.rbtn span { overflow: visible; }

/* ---- main area ---- */
.main { flex: 1; display: flex; min-height: 0; }
.sidebar { flex: none; background: var(--toolbar); padding: 14px 12px 12px; display: flex; flex-direction: column; overflow: hidden; }
.nav { background: var(--surface); border: 1px solid var(--border); border-radius: 3px; padding: 4px; outline: none; }
.navrow { height: 35px; display: flex; align-items: center; gap: 8px; padding: 0 6px; border-radius: 3px; cursor: pointer; border: 1px solid transparent;
  margin-bottom: 0; font-size: 12.5px; }
.navrow + .navrow { margin-top: 0; }
.navrow img { width: 20px; height: 20px; }
.navrow:hover { background: var(--hover); }
.navrow.sel { background: var(--selected); border-color: var(--accent); }
.nav:focus .navrow.sel { background: var(--accent); color: #fff; border-color: var(--accent); }
html.dark .nav:focus .navrow.sel { background: var(--selected); color: var(--text); }
.calhead { margin: 24px 0 8px 2px; font-size: 12px; }
.minical { font-size: 11px; user-select: none; }
.minical .mhead { display: flex; align-items: center; gap: 2px; height: 22px; margin-bottom: 4px; }
.minical .mhead button { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-size: 7px;
  padding: 0; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.minical .mmonth { flex: 1; text-align: center; } .minical .myear { width: 44px; text-align: right; padding-right: 4px; }
.minical .mgrid { display: grid; grid-template-columns: repeat(7, 1fr); }
.minical .mdow { text-align: center; height: 20px; line-height: 20px; }
.minical .mday { text-align: center; height: 23px; line-height: 21px; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  background: var(--surface); }
.minical .mday:hover { background: var(--hover); }
.minical .mday.other { color: var(--muted); opacity: .7; }
.minical .mday.today { font-weight: 700; color: var(--accent); }
.minical .mday.sel { background: var(--selected); border-color: var(--accent); }
html:not(.dark) .minical .mday.sel { background: #A1B3E7; color: #fff; }

.center { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 10px 20px 10px 20px; background: var(--back); }
.lhead { display: flex; align-items: center; gap: 8px; height: 40px; flex: none; }
.lhead h1 { flex: 1; min-width: 0; margin: 0; font-size: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lhead #sort { width: 150px; } .lhead #kind { width: 162px; }
.viewmode { width: 36px; height: 30px; border: 1px solid var(--border); border-radius: 3px; background: var(--surface); cursor: pointer;
  display: grid; place-items: center; margin-left: 6px; padding: 0; }
.viewmode:hover { background: var(--hover); }
/* calendar glyph (list mode) / list glyph (calendar mode), drawn as in UpdateViewButton */
.viewmode i { width: 18px; height: 16px; border: 1.6px solid var(--text); border-radius: 2px; position: relative; display: block; }
.viewmode i::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1.6px; background: var(--text); }
.viewmode i::after { content: ""; position: absolute; left: 2px; top: 6.5px; width: 2px; height: 2px; background: var(--text);
  box-shadow: 4px 0 var(--text), 8px 0 var(--text), 0 4px var(--text), 4px 4px var(--text), 8px 4px var(--text); }
.viewmode.listmode i { border: 0; height: 14px; }
.viewmode.listmode i::before { top: 0; left: 5px; height: 1.6px; box-shadow: 0 6px var(--text), 0 12px var(--text); }
.viewmode.listmode i::after { top: -1px; left: 0; width: 3px; height: 3px; border-radius: 50%; box-shadow: 0 6px var(--text), 0 12px var(--text); }
.summary { color: var(--muted); font-size: 12px; height: 22px; line-height: 22px; flex: none; }
.center.narrow .summary { display: none; }
.searchbox { position: relative; flex: none; margin: 6px 0 10px; }
.searchbox input { width: 100%; height: 26px; padding-right: 30px; background: var(--back); }
.sclear { position: absolute; right: 5px; top: 4px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; }
.sclear::before { content: ""; position: absolute; inset: 1px; border: 1.4px solid var(--search-clear); border-radius: 50%; }
.sclear::after { content: "\2715"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: var(--search-clear); }

.listwrap { flex: 1; min-height: 0; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 3px; }
#list { position: absolute; inset: 0; overflow-y: auto; padding: 1px 2px; outline: none; }
.empty { position: absolute; left: 20px; right: 20px; top: 40px; text-align: center; color: var(--muted); white-space: pre-line; font-size: 13px; pointer-events: none; }
.row { position: relative; height: 62px; margin: 3px 2px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 3px; cursor: default; }
.row.sel { background: var(--selected); border-color: var(--accent); }
.row .pbar { position: absolute; left: 3px; top: 3px; width: 4px; bottom: 3px; border-radius: 2px; }
.row .rcheck { position: absolute; left: 14px; top: 20px; }
.row .rcheck .box { width: 20px; height: 20px; }
.row .kicon { position: absolute; left: 46px; top: 17px; width: 24px; height: 24px; }
.row .rtitle { position: absolute; left: 82px; top: 6px; right: 96px; height: 25px; line-height: 25px; font-size: 14px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rmeta { position: absolute; left: 82px; top: 33px; right: 14px; height: 21px; line-height: 21px; font-size: 12px; color: var(--muted);
  white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.list.all-projects .row .rmeta { right: calc(26px + min(180px, max(80px, (100% - 96px) * .34))); }
.row .rproj { position: absolute; right: 12px; top: 33px; width: min(180px, max(80px, calc((100% - 96px) * .34))); height: 21px; line-height: 21px;
  text-align: right; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .rpct { position: absolute; right: 46px; top: 6px; width: 36px; height: 25px; line-height: 25px; text-align: right; font-size: 12px; color: var(--progress); }
.row .pbtn { position: absolute; right: 12px; top: 4px; width: 28px; height: 28px; border: 1px solid transparent; border-radius: 3px; background: transparent;
  padding: 2px; cursor: pointer; }
.row .pbtn:hover { background: var(--hover); }
.row .pbtn img { width: 22px; height: 22px; }
.row.done .rtitle, .row.done .rmeta, .row.done .rproj { text-decoration: line-through; }

.splitter { width: 8px; flex: none; cursor: col-resize; background: var(--back); position: relative; }
.splitter i { position: absolute; left: 2px; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .8; }
.details { flex: none; background: var(--surface); padding: 12px 12px 12px 12px; display: flex; flex-direction: column; min-width: 260px; }
.dhead { display: flex; align-items: center; height: 30px; font-size: 11.5px; }
.dhead .btn { width: 86px; padding: 0 4px; }
.d-title { font-size: 17px; font-weight: 700; margin: 18px 0 8px; overflow-wrap: anywhere; }
.d-meta { color: var(--muted); font-size: 11.5px; white-space: pre-wrap; min-height: 36px; line-height: 1.45; margin-top: 12px; }
.dnotes-head { display: flex; align-items: center; margin: 12px 0 6px; font-size: 13px; }
.dnotes-head .btn { width: 86px; padding: 0 4px; }
.dnotes { flex: 1; min-height: 0; }

/* ---- notes view (formatted preview + editor) ---- */
.notes-view { display: flex; flex-direction: column; min-height: 0; }
.notes-view .notes-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.notes-view .notes-head .btn { min-width: 58px; }
.notes-view .notes-head .mode { color: var(--muted); font-size: 11px; margin-left: 4px; }
.notes-editor { flex: 1; min-height: 120px; width: 100%; resize: none; border: 1px solid var(--border); border-radius: 3px; background: var(--surface);
  padding: 6px 8px; line-height: 1.5; font-size: 12px; }
.notes-preview { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 2px; font-size: 12px; line-height: 1.45; outline: none; }
.notes-view.disabled .notes-preview { opacity: .6; }
.notes-preview .nline { position: relative; margin-bottom: 2px; overflow-wrap: anywhere; min-height: 18px; }
.notes-preview .nline.task { min-height: 26px; padding-top: 3px; }
.notes-preview .nblank { height: 10px; }
.notes-preview .ncheck { position: absolute; top: 0; }
.notes-preview .ncheck .box { width: 20px; height: 20px; }
.notes-preview .nprefix { position: absolute; top: 0; }
.notes-preview .ntext.done { text-decoration: line-through; }
.notes-preview .nempty { color: var(--muted); }

/* ---- calendar view ---- */
.calwrap { flex: 1; min-height: 0; }
.calendar-view { display: flex; flex-direction: column; background: var(--cal-base); color: var(--cal-text); }
.cal-top, .cal-row2 { display: flex; align-items: center; height: 36px; flex: none; gap: 4px; }
.cal-row2 { margin: 6px 0 10px; }
.cal-heading { flex: 1; text-align: center; font-weight: 700; font-size: 16pt; }
.cal-btn { height: 36px; min-width: 40px; background: var(--cal-surface); border-color: var(--cal-border); color: var(--cal-text); font-size: 12px; }
.cal-row2 .cal-btn { width: 74px; } .cal-row2 .cal-btn[data-c="0"] { width: 72px; }
.cal-btn.active { font-weight: 700; }
.cal-weekhead { display: flex; height: 32px; flex: none; margin-right: 12px; }
.cal-weekhead .wd { flex: 1; display: grid; place-items: center; font-weight: 700; font-size: 12px; border-radius: 4px; cursor: pointer; }
.cal-weekhead .wd.sel { background: var(--cal-selected); }
.cal-weekhead .wd.today { color: var(--cal-accent); }
.cal-scroll { flex: 1; min-height: 0; overflow-y: auto; }
.cal-surface { position: relative; }
.cal-surface.week .hline { position: absolute; left: 48px; right: 0; height: 1px; background: var(--cal-border); }
.cal-surface.week .hlabel { position: absolute; left: 0; width: 44px; height: 18px; line-height: 18px; font-size: 10px; color: var(--cal-muted); }
.cal-surface.week .wcols { position: absolute; left: 48px; right: 0; top: 0; bottom: 0; display: flex; }
.cal-surface.week .wcol { flex: 1; position: relative; border-left: 1px solid var(--cal-border); }
.cal-surface.week .wm { position: absolute; background: var(--cal-surface); border-radius: 4px; border-left: 3px solid; padding: 1px 2px 2px 3px;
  overflow: hidden; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cal-surface.week .wm .t { font-size: 10px; height: 16px; line-height: 16px; }
.cal-surface.week .wm .n { font-size: 11px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { text-align: center; font-size: 11px; color: var(--cal-muted); line-height: 26px; }
.cal-day { margin: 2px; border-radius: 6px; background: var(--cal-surface); text-align: center; cursor: pointer; padding-top: 2px; }
.cal-day span { display: block; font-size: 13px; height: 22px; line-height: 22px; }
.cal-day b { display: flex; justify-content: center; gap: 3px; height: 8px; margin-top: 2px; }
.cal-day b i { width: 5px; height: 5px; border-radius: 50%; }
.cal-day.sel { background: var(--cal-selected); }
.cal-day.other span { color: var(--cal-muted); }
.cal-day.today span { color: var(--cal-accent); font-weight: 700; }
.cal-dayhead { font-size: 14px; font-weight: 700; margin: 12px 8px 8px; height: 30px; line-height: 30px; }
.cal-none { color: var(--cal-muted); font-size: 13px; margin: 0 8px; }
.cal-card { position: relative; margin: 0 4px 8px; height: 80px; background: var(--cal-surface); border-radius: 8px; padding: 4px 14px 0 18px; cursor: pointer; }
.cal-card > i { position: absolute; left: 1px; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; }
.cal-card .t { font-size: 11px; color: var(--cal-muted); height: 19px; line-height: 19px; }
.cal-card .n { font-size: 14px; font-weight: 700; height: 32px; overflow: hidden; line-height: 1.15; display: flex; align-items: center; }
.cal-card .p { font-size: 11px; height: 20px; line-height: 20px; }

/* ---- status bar ---- */
.statusbar { height: 26px; flex: none; display: flex; align-items: center; padding: 0 10px; font-size: 11px; color: var(--muted);
  background: var(--toolbar); white-space: nowrap; overflow: hidden; }
#status-text { overflow: hidden; text-overflow: ellipsis; }
.sync { font: inherit; color: inherit; border: 0; background: transparent; cursor: pointer; padding: 0 6px; display: inline-flex; align-items: center; gap: 5px; }
.sync:hover .txt { text-decoration: underline; }
.sync .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sync.ok .dot { background: #278C59; } .sync.busy .dot { background: var(--accent); }
.sync.warn .dot { background: #BD862C; } .sync.bad .dot { background: #CE5360; }
.grip { width: 10px; height: 10px; margin-left: 6px; background: radial-gradient(circle, var(--muted) 1px, transparent 1.2px) 0 0 / 3.4px 3.4px; opacity: .7;
  clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.toast { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 900; max-width: 70vw; font-size: 12px; }

/* ---- dialogs (Echo compact dialogs: title bar, body, 52px footer with a top line) ---- */
.overlay { position: fixed; inset: 0; background: rgba(10,14,20,.28); display: grid; place-items: center; z-index: 500; }
.dialog { background: var(--back); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 16px 48px rgba(0,0,0,.3);
  display: flex; flex-direction: column; max-height: min(calc(100vh - 40px), 720px); max-width: calc(100vw - 24px); }
.dialog .dtitle { height: 32px; flex: none; display: flex; align-items: center; padding: 0 4px 0 12px; font-size: 12px; background: var(--toolbar);
  border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; }
.dialog .dtitle span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog .dclose { width: 32px; height: 26px; border: 0; background: transparent; border-radius: 3px; cursor: pointer; color: var(--muted); }
.dialog .dclose:hover { background: #C42B1C; color: #fff; }
.dialog .body { padding: 18px 24px 8px; overflow: auto; flex: 1; min-height: 0; }
.dialog .derror { flex: none; color: var(--error); font-size: 12px; padding: 0 24px 10px; }
.dialog .derror:empty { display: none; }
.dialog .foot { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0; margin: 0 24px; border-top: 1px solid var(--border); }
.dialog .foot .btn { height: 28px; min-width: 88px; }
.dialog .msg { white-space: pre-wrap; font-size: 12px; line-height: 1.5; }
.field { display: block; margin-bottom: 12px; }
.field > span, .flabel { display: block; margin-bottom: 4px; font-size: 12px; }
.field input, .field select { width: 100%; }
.row2 { display: flex; gap: 16px; } .row2 .prio { width: 144px; flex: none; }
.row3 { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 8px; }
.itemdlg .pedit { width: 154px; } .itemdlg .plabel { margin-right: 12px; font-size: 12px; }
.itemdlg .dates { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.itemdlg .dates input[type=date] { width: 180px; } .itemdlg .dates input[type=time] { width: 140px; }
.iconbtn { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 3px; cursor: pointer; padding: 2px; }
.iconbtn:hover { background: var(--hover); } .iconbtn img { width: 22px; height: 22px; }
.itemdlg .toggle { width: 140px; display: block; margin: 0 0 6px; }
.itemdlg .notes-area { height: 210px; margin: 4px 0 8px; display: flex; }
.itemdlg .notes-area > * { flex: none; }
.itemdlg .notes-area { flex-direction: column; }
.itemdlg .notes-head .notes-toggle { width: 86px; }
.itemdlg .options { margin-top: 8px; }
.colorrow { display: flex; gap: 12px; align-items: center; }
.swatch { width: 28px; height: 22px; border-radius: 3px; border: 1px solid var(--border); flex: none; }
.swatch.auto { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--border) 4px 5px) !important; }
.clockbar { display: flex; gap: 6px; margin-bottom: 14px; }
.clockbar .btn { min-width: 0; padding: 0 6px; height: 30px; }
.dial { position: relative; width: 236px; height: 236px; margin: 0 auto 4px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); cursor: pointer; }
.dial .dsel { position: absolute; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); }
.dial .num { position: absolute; width: 34px; height: 28px; line-height: 28px; text-align: center; font-size: 13px; pointer-events: none; }
.dial .num.on { color: #fff; } html.dark .dial .num.on { color: var(--back); }
.daypick { width: 100%; height: 32px !important; font-size: 13px !important; }
.about .aboutrow { display: flex; gap: 20px; align-items: flex-start; }
.about .aname { font-size: 20px; font-weight: 700; }
.about .aver { color: var(--muted); margin: 4px 0 10px; }
.about .adesc { margin-bottom: 10px; } .about a { color: var(--accent); } .about .acopy { color: var(--muted); margin-top: 10px; font-size: 11.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.wslist { border: 1px solid var(--border); border-radius: 3px; background: var(--surface); max-height: 320px; overflow: auto; outline: none; }
.wsrow { padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--border); }
.wsrow span { color: var(--muted); font-size: 11.5px; }
.wsrow:hover { background: var(--hover); } .wsrow.sel { background: var(--selected); box-shadow: inset 2px 0 var(--accent); }
.syncdlg .body { display: flex; flex-direction: column; }
.tabs { display: flex; gap: 0; margin-top: 10px; border-bottom: 1px solid var(--border); }
.tab { height: 26px; padding: 0 10px; border: 1px solid var(--border); border-bottom: 0; background: var(--back); border-radius: 3px 3px 0 0; cursor: pointer; font-size: 12px; margin-right: -1px; }
.tab.on { background: var(--surface); }
.tabpane { flex: 1; min-height: 0; border: 1px solid var(--border); border-top: 0; background: var(--surface); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.conflicts { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.clist { flex: 1; min-height: 80px; border: 1px solid var(--border); border-radius: 3px; overflow: auto; background: var(--back); outline: none; }
.crow { padding: 4px 6px; cursor: pointer; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crow.sel { background: var(--primary); color: #fff; } .cnone { padding: 6px; color: var(--muted); }
.cdetail { display: flex; gap: 10px; min-height: 64px; }
.ccol { flex: 1; border: 1px solid var(--border); border-radius: 3px; padding: 6px 8px; font-size: 12px; white-space: pre-wrap; overflow: auto; max-height: 110px; }
.ccol b { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
