/* EnigmaTasks — themed with the OneBloc suite design system.
   The component classes keep their of-* names (ported from the Board engine), but every token
   below is mapped to the authoritative OneBloc brand values
   (D:\OneBloc\_brand360_extract\OneBloc-Brand-Kit\tokens.css). Re-theme the module by changing
   the --acc trio only. */

:root {
  /* OneBloc neutrals + semantic */
  --ob-ink: #101720; --ob-slate: #3A4453; --ob-muted: #6A7482; --ob-faint: #9AA3AF;
  --ob-line: #E6E9EE; --ob-line-soft: #F0F2F5; --ob-bg: #F6F7F9; --ob-card: #FFFFFF;
  --ob-success: #16895A; --ob-warning: #B7791F; --ob-danger: #C8472F;
  /* Enigma Tasks module accent (teal) — swap this trio to re-theme */
  --acc: #0F9E8E; --acc-deep: #0B7A6C; --acc-soft: #E4F5F1;

  /* of-* aliases → OneBloc values, so the ported components inherit the brand */
  --of-primary: var(--ob-ink);
  --of-accent: var(--acc);
  --of-success: var(--ob-success);
  --of-warning: var(--ob-warning);
  --of-danger: var(--ob-danger);
  --of-bg: var(--ob-bg);
  --of-surface: var(--ob-card);
  --of-border: var(--ob-line);
  --of-board: var(--acc);      /* module accent replaces the Trello rose */
  --of-muted: var(--ob-muted);

  /* The vendored OB controls (ob-ui/ob-select/ob-daterange/ob-upload) all read --ob-accent and
     fall back to indigo #6366F1 when it is missing. Nothing defined it, so every modal primary
     button, select focus ring and date-range Apply rendered PURPLE against a teal app.
     This one line is the bridge. Soft/deep variants are overridden per component below, because
     those files hard-code their indigo tints rather than deriving them. */
  --ob-accent: var(--acc);
  --ob-danger-soft: #FBEAE6;   /* matches the .et-due.over fallback in tasks.css */
  --ob-warning-soft: #FBF1DE;
}

/* Per-component accent tints. Each of these files declares --accent from --ob-accent (fixed above)
   but writes --accent-weak / --accent-ink / --accent2 as literal indigo, so they need overriding
   at the same selector to inherit the module accent. */
.obsel, .obup {
  --accent-weak: var(--acc-soft);
  --accent-ink: var(--acc-deep);
}
.obdr {
  --accent2: var(--acc-deep);
  --accent-ink: var(--acc-deep);
  --accent-weak: var(--acc-soft);
  --accent-weak2: color-mix(in srgb, var(--acc) 8%, #fff);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--of-primary);
  background: var(--of-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace; font-variant-numeric: tabular-nums; }
a { color: var(--of-accent); text-decoration: none; }
a:hover { color: #1d4ed8; }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

@keyframes ofpop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ofslide { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }

/* ---------- shell ---------- */
.of-shell { display: flex; height: 100vh; overflow: hidden; background: var(--of-bg); }
.of-sidebar { width: 236px; flex: none; background: #0f172a; color: #cbd5e1; display: flex; flex-direction: column; }
.of-sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 16px; }
.of-sidebar .brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, #2563EB, #0ea5e9);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
}
.of-sidebar .brand .nm { font-weight: 700; font-size: 16px; color: #fff; letter-spacing: -.2px; }
.of-sidebar nav { flex: 1; overflow-y: auto; padding: 4px 10px; display: flex; flex-direction: column; gap: 2px; }
.of-nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px;
  cursor: pointer; color: #94a3b8; font-size: 13.5px; font-weight: 500; background: transparent;
  border: none; font-family: inherit; text-align: left; width: 100%;
}
.of-nav-item:hover { background: rgba(148, 163, 184, .12); color: #cbd5e1; }
.of-nav-item.active { color: #fff; background: rgba(219, 39, 119, .16); font-weight: 600; }
.of-nav-item .bi { font-size: 16px; width: 20px; text-align: center; }
.of-nav-item .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--of-board); }
.of-sidebar .me { padding: 14px 16px; border-top: 1px solid #1e293b; display: flex; align-items: center; gap: 10px; }
.of-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.of-topbar {
  height: 56px; flex: none; background: var(--of-surface); border-bottom: 1px solid var(--of-border);
  display: flex; align-items: center; gap: 16px; padding: 0 20px;
}
.of-avatar {
  border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 600; flex: none;
}

/* ---------- buttons ---------- */
.of-btn {
  height: 34px; padding: 0 14px; border: 1px solid var(--of-border); border-radius: 8px;
  background: var(--of-surface); color: #374151; font-size: 12.5px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
}
.of-btn:hover { background: #f8fafc; }
.of-btn-icon { width: 34px; padding: 0; justify-content: center; color: #475569; }
.of-btn-primary { background: var(--of-board); border-color: var(--of-board); color: #fff; }
.of-btn-primary:hover { background: #be185d; border-color: #be185d; }
.of-btn-dark { background: var(--of-primary); border-color: var(--of-primary); color: #fff; }
.of-btn-dark:hover { background: #000; }
.of-btn:disabled { opacity: .5; cursor: not-allowed; }
.of-input {
  height: 34px; border: 1px solid var(--of-border); border-radius: 8px; padding: 0 10px;
  font-family: inherit; font-size: 12.5px; background: var(--of-surface); outline: none; color: var(--of-primary);
}
.of-input:focus { border-color: var(--of-board); box-shadow: 0 0 0 3px rgba(219, 39, 119, .12); }

/* ---------- landing ---------- */
.of-page { flex: 1; overflow-y: auto; padding: 28px 32px; }
.of-page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.of-page-head h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.of-page-head p { margin: 4px 0 0; font-size: 13px; color: var(--of-muted); }
.of-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.of-board-tile {
  background: var(--of-surface); border: 1px solid var(--of-border); border-radius: 14px;
  overflow: hidden; cursor: pointer; transition: box-shadow .15s, transform .15s;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04); display: block; text-align: left; padding: 0;
  font-family: inherit; color: inherit; width: 100%;
}
.of-board-tile:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .10); transform: translateY(-2px); }
.of-board-tile .accent { height: 8px; }
.of-board-tile .body { padding: 16px; }
.of-board-tile .nm { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.of-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--of-muted);
  background: var(--of-bg); border: 1px solid var(--of-border); padding: 3px 8px; border-radius: 20px;
}
.of-list-chip {
  font-size: 11px; color: #475569; background: var(--of-bg); border: 1px solid var(--of-border);
  padding: 4px 9px; border-radius: 7px; white-space: nowrap;
}
.of-tile-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--of-muted); }
.of-tile-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.of-cat-badge { background: var(--of-surface); font-weight: 600; }

/* Category filter above the board grid */
.of-cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.of-cat-chip {
  height: 32px; padding: 0 13px; border: 1px solid var(--of-border); border-radius: 20px;
  background: var(--of-surface); color: #475569; font-size: 12.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 7px;
}
.of-cat-chip:hover { border-color: #cbd5e1; background: #f8fafc; }
.of-cat-chip.on { background: var(--of-primary); border-color: var(--of-primary); color: #fff; }
.of-cat-chip .n {
  font-size: 11px; font-weight: 700; background: var(--of-bg); color: #475569;
  border-radius: 20px; padding: 1px 7px; min-width: 20px; text-align: center;
}
.of-cat-chip.on .n { background: rgba(255, 255, 255, .22); color: #fff; }

/* Category picker inside the create-board dialog */
.of-cat-picker { display: flex; flex-direction: column; gap: 6px; }
.of-cat-option {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--of-border); background: var(--of-surface); cursor: pointer;
  font-family: inherit; text-align: left; width: 100%; color: var(--of-primary);
}
.of-cat-option:hover { background: #f8fafc; }
.of-cat-option.on { border-color: var(--of-board); background: #fdf2f8; box-shadow: 0 0 0 3px rgba(219, 39, 119, .10); }
.of-cat-option > .bi { font-size: 17px; color: #64748b; width: 20px; text-align: center; }
.of-cat-option.on > .bi { color: var(--of-board); }
.of-cat-option .lab { display: block; font-size: 13px; font-weight: 600; }
.of-cat-option .tag { display: block; font-size: 11.5px; color: var(--of-muted); margin-top: 1px; }
.of-board-add-tile {
  border: 2px dashed var(--of-border); border-radius: 14px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--of-muted); min-height: 160px;
  cursor: pointer; transition: .15s; background: transparent; font-family: inherit;
}
.of-board-add-tile:hover { border-color: var(--of-board); color: var(--of-board); }

/* ---------- board view ---------- */
.of-board-canvas {
  flex: 1; display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(160deg, #fdf2f8, #f9fafb 40%);
}
.of-board-head {
  flex: none; display: flex; align-items: center; gap: 14px; padding: 12px 20px;
  background: rgba(255, 255, 255, .7); border-bottom: 1px solid var(--of-border); backdrop-filter: blur(6px);
}
.of-board-head h2 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.of-board-head h2[contenteditable]:focus {
  outline: none; background: #fff; border-radius: 6px; box-shadow: 0 0 0 2px var(--of-board);
  padding: 0 4px;
}
.of-board-body {
  flex: 1; overflow-x: auto; overflow-y: hidden; padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.of-board-list {
  flex: none; width: 272px; max-height: 100%; display: flex; flex-direction: column;
  background: #f1f3f7; border-radius: 12px; transition: opacity .12s, transform .12s;
}
.of-board-list.dragging { opacity: .5; transform: rotate(1.5deg); box-shadow: 0 14px 30px rgba(16, 24, 40, .2); }
.of-board-list.drop-target { background: #fdf2f8; outline: 2px solid rgba(219, 39, 119, .35); }
.of-board-list-header {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; cursor: grab; position: relative;
}
.of-board-list-header .wip { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.of-board-list-header .nm { font-weight: 700; font-size: 13.5px; }
.of-board-list-header .nm[contenteditable]:focus {
  outline: none; background: #fff; border-radius: 4px; box-shadow: 0 0 0 2px var(--of-board);
}
.of-count-pill {
  font-size: 11px; color: var(--of-muted); background: #eef2f7; border-radius: 20px; padding: 1px 8px;
}
.of-list-menu-btn {
  margin-left: auto; width: 26px; height: 26px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; color: #94a3b8;
}
.of-list-menu-btn:hover { background: #e2e8f0; color: #475569; }
.of-cards { flex: 1; overflow-y: auto; padding: 2px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 8px; }
.of-cards-end { flex: 1; min-height: 22px; }

.of-board-card {
  flex: none; background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
  cursor: pointer; overflow: hidden; border: 1px solid #eef0f3;
  transition: box-shadow .12s, opacity .15s; text-align: left; padding: 0; font-family: inherit; width: 100%;
}
.of-board-card:hover { box-shadow: 0 2px 8px rgba(16, 24, 40, .14); }
.of-board-card.dragging { opacity: .45; transform: rotate(2.5deg); box-shadow: 0 12px 28px rgba(16, 24, 40, .22); }
.of-board-card.filtered-out { opacity: .22; }
.of-board-card .cover {
  height: 76px; background-image: linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .12));
  display: flex; align-items: flex-end; padding: 6px;
}
.of-board-card .cover .tag {
  font-size: 10px; color: #fff; background: rgba(0, 0, 0, .4); border-radius: 5px; padding: 2px 6px;
}
.of-board-card .body { padding: 9px 11px 10px; }
.of-board-card .tt { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: #1f2937; }
.of-card-done { color: var(--of-success); font-size: 12px; }
.of-card-drop-ph {
  flex: none; height: 62px; border: 2px dashed var(--of-board); border-radius: 10px;
  background: rgba(219, 39, 119, .06);
}
.of-label-bars { display: flex; gap: 5px; margin-bottom: 7px; flex-wrap: wrap; }
.of-label-bar { height: 8px; width: 34px; border-radius: 6px; }
.of-label-pill {
  height: 18px; padding: 0 8px; border-radius: 6px; color: #fff; font-size: 10px;
  font-weight: 600; display: inline-flex; align-items: center;
}
.of-label-pill.lg { height: 30px; padding: 0 12px; border-radius: 7px; font-size: 12px; }
.of-board-card-badges {
  display: flex; align-items: center; gap: 11px; margin-top: 9px; color: var(--of-muted); font-size: 11.5px;
}
.of-board-card-badge { display: inline-flex; align-items: center; gap: 4px; }
.of-due {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px;
  border-radius: 6px; font-weight: 600;
}
/* Project boards: a date is a deadline. */
.of-due.over { background: #fee2e2; color: #dc2626; }
.of-due.soon { background: #ffedd5; color: #d97706; }
.of-due.neutral { background: #eef2f7; color: #475569; }
/* Meeting boards: a date is a calendar entry, not a deadline — a past meeting is simply held,
   so it must never carry the red alarm. Today's meeting is the one that needs attention. */
.of-due.held { background: #eef2f7; color: #64748b; }
.of-due.today { background: #dbeafe; color: #1d4ed8; }
.of-due.upcoming { background: #ecfdf5; color: #047857; }
.of-card-avatars { margin-left: auto; display: flex; }
.of-card-avatars .of-avatar { width: 22px; height: 22px; font-size: 9.5px; margin-left: -6px; border: 1.5px solid #fff; }

.of-board-add-card {
  margin: 2px 8px 8px; padding: 8px 10px; border: none; background: transparent; border-radius: 8px;
  text-align: left; color: #64748b; font-size: 12.5px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; gap: 7px;
}
.of-board-add-card:hover { background: #eef2f7; color: #1f2937; }
.of-board-add-list {
  flex: none; width: 272px; padding: 12px 14px; border: none; border-radius: 12px;
  background: rgba(255, 255, 255, .55); color: #475569; font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: left; font-family: inherit; display: flex; align-items: center; gap: 8px;
}
.of-board-add-list:hover { background: rgba(255, 255, 255, .9); }
.of-composer { flex: none; background: var(--of-surface); border-radius: 10px; padding: 8px; box-shadow: 0 2px 6px rgba(16, 24, 40, .1); }
.of-composer textarea {
  width: 100%; border: none; outline: none; resize: none; font-family: inherit;
  font-size: 12.5px; min-height: 48px; color: var(--of-primary);
}
.of-composer .row { display: flex; gap: 8px; margin-top: 4px; align-items: center; }
.of-composer .cancel { border: none; background: transparent; color: #64748b; cursor: pointer; font-size: 15px; }
.of-btn-sm { padding: 6px 14px; border: none; border-radius: 7px; background: var(--of-board); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }

.of-list-collapsed {
  flex: none; width: 44px; height: 280px; background: #f1f3f7; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; padding: 12px 0; cursor: pointer; gap: 10px;
  border: none; font-family: inherit;
}
.of-list-collapsed:hover { background: #e8ebf1; }
.of-list-collapsed .vt { writing-mode: vertical-rl; font-size: 12.5px; font-weight: 700; color: #475569; }

/* ---------- popovers ---------- */
.of-popover {
  position: absolute; background: var(--of-surface); border: 1px solid var(--of-border);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .16); padding: 14px;
  z-index: 45; animation: ofpop .12s ease;
}
.of-popover-menu { border-radius: 11px; padding: 6px; width: 190px; }
.of-menu-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px;
  font-size: 12.5px; cursor: pointer; color: #374151; border: none; background: transparent;
  width: 100%; text-align: left; font-family: inherit;
}
.of-menu-item:hover { background: #f1f5f9; }
.of-menu-item.danger { color: var(--of-danger); }
.of-section-label {
  font-size: 12px; font-weight: 700; color: var(--of-muted); text-transform: uppercase;
  letter-spacing: .5px; margin-bottom: 8px;
}
.of-check-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; cursor: pointer; }
.of-swatch { width: 26px; height: 14px; border-radius: 4px; flex: none; }
.of-filter-badge {
  background: var(--of-board); color: #fff; font-size: 10px; font-weight: 700; border-radius: 20px;
  min-width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- card detail panel ---------- */
.of-card-panel-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 60;
  display: flex; justify-content: flex-end;
}
.of-card-panel {
  width: 740px; max-width: 94vw; height: 100%; background: var(--of-surface);
  box-shadow: -8px 0 40px rgba(16, 24, 40, .2); overflow-y: auto; animation: ofslide .2s ease;
}
/* Set on a re-render (the panel is already open) so an inline edit doesn't replay the slide-in. */
.of-card-panel.still { animation: none; }
.of-card-panel .cover { height: 120px; background-image: linear-gradient(135deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .15)); }
/* Direct child only. `.pad` is a generic name and the vendored controls use it too — OBDate marks
   its leading blank calendar cells `.day.pad`, and a descendant selector here gave every one of
   them 26px of side padding, which blew the 7-column grid past the popover and clipped Fri/Sat. */
.of-card-panel > .pad { padding: 20px 26px 40px; }
.of-card-title { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.3px; }
.of-card-title[contenteditable]:focus {
  outline: none; background: var(--of-bg); border-radius: 6px; box-shadow: 0 0 0 2px var(--of-board); padding: 0 4px;
}
.of-complete-toggle {
  margin-top: 3px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1;
  background: transparent; cursor: pointer; flex: none;
}
.of-complete-toggle.on { background: var(--of-success); border-color: var(--of-success); color: #fff; }
.of-quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px 34px; }
.of-quick-btn {
  height: 32px; padding: 0 12px; border: 1px solid var(--of-border); border-radius: 8px;
  background: var(--of-bg); font-size: 12.5px; font-weight: 500; color: #374151; cursor: pointer;
  display: flex; align-items: center; gap: 6px; font-family: inherit;
}
.of-quick-btn:hover { background: #eef2f7; }
.of-card-cols { display: grid; grid-template-columns: 1fr 300px; gap: 26px; }
.of-card-section { margin-bottom: 22px; position: relative; }
.of-card-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.of-card-section-head .ti { font-size: 14px; font-weight: 700; }
.of-mini-label {
  font-size: 11px; font-weight: 700; color: var(--of-muted); text-transform: uppercase;
  letter-spacing: .6px; margin-bottom: 8px;
}
.of-desc-box { border: 1px solid var(--of-border); border-radius: 11px; padding: 12px 14px; font-size: 13px; line-height: 1.6; color: #374151; white-space: pre-wrap; }
.of-desc-box:focus { outline: none; border-color: var(--of-board); box-shadow: 0 0 0 3px rgba(219, 39, 119, .12); }
.of-desc-fields { border: 1px solid var(--of-border); border-radius: 11px; overflow: hidden; }
.of-desc-field { display: flex; align-items: flex-start; gap: 14px; padding: 9px 13px; border-bottom: 1px solid var(--of-border); }
.of-desc-field:last-child { border-bottom: none; }
.of-desc-field .k { width: 120px; flex: none; font-size: 12px; color: var(--of-muted); font-weight: 600; }
.of-desc-field .v { font-size: 12.5px; color: #1f2937; flex: 1; min-width: 0; }
.of-desc-field .k:focus,
.of-desc-field .v:focus { outline: none; background: var(--of-bg); border-radius: 4px; box-shadow: 0 0 0 2px var(--of-board); }
/* Delete stays invisible until the row is hovered or something in it has focus — a column of x's
   down the side of every field turns the panel into a demolition site. */
.of-desc-field .x {
  flex: none; width: 22px; height: 20px; border: 0; background: transparent; border-radius: 6px;
  color: var(--of-muted); font-size: 10px; cursor: pointer; opacity: 0; transition: opacity .12s, background .12s;
  display: inline-flex; align-items: center; justify-content: center;
}
.of-desc-field:hover .x, .of-desc-field:focus-within .x { opacity: 1; }
.of-desc-field .x:hover { background: #FDECEC; color: #C8472F; }
.of-desc-field .x:focus-visible { opacity: 1; outline: 2px solid var(--of-board); }

.of-seg button .n {
  margin-left: 5px; padding: 0 5px; border-radius: 999px; background: rgba(15, 23, 42, .1);
  font-size: 10px; font-weight: 700; line-height: 15px; display: inline-block;
}
.of-seg button.on .n { background: var(--acc, #0F9E8E); color: #fff; }
.of-seg { display: flex; gap: 2px; background: #eef2f7; border-radius: 8px; padding: 2px; }
.of-seg button {
  height: 26px; padding: 0 11px; border: none; border-radius: 7px; font-size: 11.5px;
  font-weight: 600; cursor: pointer; font-family: inherit; background: transparent; color: #64748b;
}
.of-seg button.on { background: #fff; color: #111827; box-shadow: 0 1px 2px rgba(16, 24, 40, .1); }
.of-progress { height: 8px; background: #eef2f7; border-radius: 20px; overflow: hidden; margin-bottom: 12px; }
.of-progress .bar { height: 100%; background: var(--of-success); border-radius: 20px; transition: width .2s; }
.of-check-item {
  display: flex; align-items: flex-start; gap: 9px; padding: 6px 4px; font-size: 13px;
  cursor: pointer; border-radius: 7px;
}
.of-check-item:hover { background: #f8fafc; }
.of-check-item .tx.done { text-decoration: line-through; color: #9ca3af; }

.of-attachment-row {
  display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--of-border);
  border-radius: 10px; cursor: pointer; background: transparent; width: 100%; text-align: left; font-family: inherit;
}
.of-attachment-row:hover { background: #f8fafc; }
.of-attachment-row .th {
  width: 56px; height: 44px; border-radius: 7px; flex: none; display: flex;
  align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.of-attachment-row .th img { width: 100%; height: 100%; object-fit: cover; }
.of-attachment-row .th .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .28); color: #fff; font-size: 20px;
}
.of-attachment-row .th .dur {
  position: absolute; bottom: 2px; right: 3px; font-size: 9px; background: rgba(0, 0, 0, .7);
  color: #fff; padding: 0 4px; border-radius: 3px;
}
.of-attachment-row .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-attachment-row .mt { font-size: 11px; color: var(--of-muted); }

.of-timeline-item { display: flex; gap: 9px; }
.of-timeline-item .bd {
  font-size: 12.5px; background: var(--of-bg); border: 1px solid var(--of-border);
  border-radius: 9px; padding: 8px 11px; margin-top: 5px; line-height: 1.45; white-space: pre-wrap;
}
.of-timeline-item-activity { display: flex; gap: 9px; align-items: center; color: var(--of-muted); }
.of-timeline-item-activity .tx { font-size: 12px; line-height: 1.4; }

.of-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--of-muted);
}
.of-empty .art {
  width: 72px; height: 72px; border-radius: 20px; background: #fdf2f8; color: var(--of-board);
  display: flex; align-items: center; justify-content: center; font-size: 32px;
}
.of-empty .ti { font-size: 17px; font-weight: 700; color: var(--of-primary); }
.of-empty .ms { font-size: 13px; max-width: 320px; text-align: center; line-height: 1.5; }

/* ---------- lightbox ---------- */
.of-lightbox {
  position: fixed; inset: 0; background: rgba(2, 6, 23, .82); z-index: 90;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
}
.of-lightbox img, .of-lightbox video {
  max-width: 72vw; max-height: 70vh; border-radius: 12px; background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.of-lightbox .file-card {
  width: 560px; max-width: 80vw; height: 400px; border-radius: 14px;
  background: linear-gradient(135deg, #1e293b, #334155); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; color: #cbd5e1;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
}
.of-lightbox .cap { color: #94a3b8; font-size: 12.5px; }

/* ---------- mobile ---------- */
.of-mob-chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 11px; padding-bottom: 2px; }
.of-mob-chip {
  flex: none; height: 28px; padding: 0 11px; border: none; border-radius: 20px; font-size: 11.5px;
  font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
  background: #f1f5f9; color: #475569;
}
.of-mob-chip.on { background: var(--of-board); color: #fff; }
.of-mob-dots { flex: none; display: flex; justify-content: center; gap: 6px; padding: 9px 0; background: var(--of-surface); border-top: 1px solid var(--of-border); }
.of-mob-dot { width: 6px; height: 6px; border-radius: 20px; background: #cbd5e1; transition: .15s; }
.of-mob-dot.on { width: 18px; background: var(--of-board); }

/* Real responsive behaviour — the prototype faked this in a phone frame. */
@media (max-width: 900px) {
  .of-login-art { display: none !important; }
  .of-sidebar { display: none; }
  .of-card-cols { grid-template-columns: 1fr; gap: 18px; }
  .of-card-panel { width: 100%; max-width: 100%; }
  .of-board-head { flex-wrap: wrap; gap: 8px; }
  .of-board-head .search { display: none; }
  .of-page { padding: 18px 14px; }
}
@media (max-width: 640px) {
  .of-board-body { scroll-snap-type: x mandatory; padding: 12px 14px; }
  .of-board-list { width: calc(100vw - 28px); scroll-snap-align: center; }
}
