// STUDIO — fixture data (extended for all 18 improvements)
window.STUDIO_DATA = {
  kpis: {
    activeDrafts:   23,
    inReview:        7,
    publishedMonth: 41,
    pendingSignoff:  4,
    collaborators:  18,
    avgCycleHrs:   3.2,
  },

  drafts: [
    { id: 1,  title: 'Motion to Compel — Meridian Oil Corp',        matter: 'Meridian Oil Corp v. Coastal Energy LLC', matterId: 'meridian',   type: 'Motion',      status: 'In Review', owner: 'M. Kirkland', modified: '2 hours ago',  size: '12 pages', reviewers: 2 },
    { id: 2,  title: 'Employment Agreement — VP Technology',         matter: 'Hartwell Manufacturing',                 matterId: 'hartwell',   type: 'Contract',    status: 'Draft',     owner: 'S. Chen',     modified: '4 hours ago',  size: '8 pages',  reviewers: 0 },
    { id: 3,  title: 'Protective Order — Confidential Data',         matter: 'TechNova vs. Quantum Systems',           matterId: 'technova',   type: 'Order',       status: 'Approved',  owner: 'R. Torres',   modified: 'Yesterday',    size: '5 pages',  reviewers: 3 },
    { id: 4,  title: 'Expert Witness Declaration — Dr. Patel',       matter: 'Meridian Oil Corp v. Coastal Energy LLC', matterId: 'meridian',  type: 'Declaration', status: 'Draft',     owner: 'M. Kirkland', modified: 'Yesterday',    size: '22 pages', reviewers: 1 },
    { id: 5,  title: 'Settlement Agreement — Final',                 matter: 'Blackwood Capital Partners',             matterId: 'blackwood',  type: 'Agreement',   status: 'Pending',   owner: 'A. Williams', modified: '2 days ago',   size: '34 pages', reviewers: 4 },
    { id: 6,  title: 'Interrogatories — Set Two',                    matter: 'Rivera v. Metro Transit Authority',      matterId: 'rivera',     type: 'Discovery',   status: 'Draft',     owner: 'L. Park',     modified: '2 days ago',   size: '9 pages',  reviewers: 0 },
    { id: 7,  title: 'Complaint — Securities Fraud',                 matter: 'Vanguard Investors Group',               matterId: 'vanguard',   type: 'Pleading',    status: 'In Review', owner: 'S. Chen',     modified: '3 days ago',   size: '47 pages', reviewers: 2 },
    { id: 8,  title: 'Deposition Summary — J. Harmon',              matter: 'TechNova vs. Quantum Systems',           matterId: 'technova',   type: 'Summary',     status: 'Published', owner: 'R. Torres',   modified: '3 days ago',   size: '15 pages', reviewers: 0 },
    { id: 9,  title: 'NDA — Strategic Partnership',                 matter: 'Hartwell Manufacturing',                 matterId: 'hartwell',   type: 'Contract',    status: 'Signed',    owner: 'M. Kirkland', modified: '1 week ago',   size: '4 pages',  reviewers: 0 },
    { id: 10, title: 'Reply Brief — Summary Judgment',              matter: 'Meridian Oil Corp v. Coastal Energy LLC', matterId: 'meridian',  type: 'Brief',       status: 'Draft',     owner: 'A. Williams', modified: '1 week ago',   size: '28 pages', reviewers: 1 },
    { id: 11, title: 'Cease & Desist — IP Infringement',            matter: 'TechNova vs. Quantum Systems',           matterId: 'technova',   type: 'Letter',      status: 'Approved',  owner: 'S. Chen',     modified: '1 week ago',   size: '3 pages',  reviewers: 0 },
    { id: 12, title: 'Rule 26(f) Discovery Plan',                   matter: 'Rivera v. Metro Transit Authority',      matterId: 'rivera',     type: 'Discovery',   status: 'Draft',     owner: 'L. Park',     modified: '2 weeks ago',  size: '6 pages',  reviewers: 1 },
  ],

  // Matter workspace grouping
  matterFolders: [
    { id: 'meridian',  name: 'Meridian Oil Corp v. Coastal Energy LLC', status: 'Active', type: 'Commercial Litigation', deadline: 'Apr 25, 2026', partner: 'M. Kirkland',
      folders: [
        { name: 'Pleadings & Motions', docIds: [1, 4, 10] },
        { name: 'Discovery',           docIds: [] },
        { name: 'Correspondence',      docIds: [] },
      ]
    },
    { id: 'technova',  name: 'TechNova vs. Quantum Systems',           status: 'Active', type: 'IP Litigation',         deadline: 'May 8, 2026',  partner: 'R. Torres',
      folders: [
        { name: 'Pleadings & Motions', docIds: [3, 11] },
        { name: 'Depositions',         docIds: [8] },
        { name: 'Orders',              docIds: [] },
      ]
    },
    { id: 'hartwell',  name: 'Hartwell Manufacturing',                 status: 'Active', type: 'Corporate',             deadline: null,           partner: 'S. Chen',
      folders: [
        { name: 'Employment',          docIds: [2, 9] },
        { name: 'Corporate Governance',docIds: [] },
      ]
    },
    { id: 'blackwood', name: 'Blackwood Capital Partners',             status: 'Active', type: 'M&A',                   deadline: 'Apr 30, 2026', partner: 'A. Williams',
      folders: [
        { name: 'Agreements',          docIds: [5] },
        { name: 'Due Diligence',       docIds: [] },
      ]
    },
    { id: 'rivera',    name: 'Rivera v. Metro Transit Authority',      status: 'Active', type: 'Personal Injury',       deadline: 'Jun 1, 2026',  partner: 'L. Park',
      folders: [
        { name: 'Discovery',           docIds: [6, 12] },
        { name: 'Correspondence',      docIds: [] },
      ]
    },
    { id: 'vanguard',  name: 'Vanguard Investors Group',               status: 'Active', type: 'Securities Fraud',      deadline: 'May 20, 2026', partner: 'S. Chen',
      folders: [
        { name: 'Pleadings',           docIds: [7] },
        { name: 'SEC Filings',         docIds: [] },
      ]
    },
  ],

  templates: [
    { id: 1,  title: 'Motion to Dismiss',        category: 'Pleadings',     uses: 84,  updated: '1 week ago',   icon: '◆', desc: 'FRCP 12(b)(6) standard motion with jurisdiction and standing sections',
      fields: [{ name: 'PLAINTIFF_NAME', example: 'Meridian Oil Corp.' }, { name: 'DEFENDANT_NAME', example: 'Coastal Energy LLC' }, { name: 'CASE_NO', example: '1:26-cv-04421' }, { name: 'COURT', example: 'S.D.N.Y.' }, { name: 'FILING_DATE', example: 'April 25, 2026' }] },
    { id: 2,  title: 'Notice of Deposition',     category: 'Discovery',     uses: 127, updated: '2 weeks ago',  icon: '▤', desc: 'FRCP 30(b)(6) corporate designee or individual deposition notice',
      fields: [{ name: 'DEPONENT_NAME', example: 'Dr. Rajiv Patel' }, { name: 'DATE_TIME', example: 'May 3, 2026 at 9:00 AM' }, { name: 'LOCATION', example: '1 Liberty Plaza, New York, NY' }] },
    { id: 3,  title: 'NDA — Bilateral',          category: 'Contracts',     uses: 203, updated: '3 days ago',   icon: '◈', desc: 'Mutual non-disclosure for M&A due diligence and partnerships',
      fields: [{ name: 'PARTY_A', example: 'Hartwell Manufacturing, Inc.' }, { name: 'PARTY_B', example: 'Acme Acquisition Corp.' }, { name: 'PURPOSE', example: 'strategic partnership discussions' }, { name: 'TERM_YEARS', example: '3' }] },
    { id: 4,  title: 'Demand Letter',            category: 'Correspondence',uses: 312, updated: '1 month ago',  icon: '•', desc: 'Pre-litigation demand with statutory damage estimates',
      fields: [{ name: 'RECIPIENT_NAME', example: 'John T. Harmon' }, { name: 'CLAIM_AMOUNT', example: '$2,400,000' }, { name: 'RESPONSE_DEADLINE', example: 'May 5, 2026' }] },
    { id: 5,  title: 'Protective Order',         category: 'Orders',        uses: 56,  updated: '2 weeks ago',  icon: 'flag', desc: 'Confidentiality tiers and claw-back provisions for document production',
      fields: [{ name: 'MATTER_NAME', example: 'Meridian v. Coastal' }, { name: 'CONFIDENTIAL_DEFINITION', example: 'trade secrets and proprietary financial data' }] },
    { id: 6,  title: 'Employment Agreement',     category: 'Contracts',     uses: 91,  updated: '1 week ago',   icon: '◈', desc: 'At-will with non-compete, IP assignment, and arbitration clause',
      fields: [{ name: 'EMPLOYEE_NAME', example: 'Sarah J. Chen' }, { name: 'TITLE', example: 'Vice President of Technology' }, { name: 'START_DATE', example: 'May 1, 2026' }, { name: 'BASE_SALARY', example: '$320,000' }, { name: 'NONCOMPETE_MONTHS', example: '18' }] },
    { id: 7,  title: 'Interrogatories Set',      category: 'Discovery',     uses: 74,  updated: '3 weeks ago',  icon: '▤', desc: 'Standard first-set interrogatories for civil litigation',
      fields: [{ name: 'RESPONDING_PARTY', example: 'Coastal Energy LLC' }, { name: 'RESPONSE_DUE', example: 'May 15, 2026' }] },
    { id: 8,  title: 'Motion in Limine',         category: 'Motions',       uses: 39,  updated: '1 month ago',  icon: '◆', desc: 'Exclude expert testimony and prejudicial evidence pre-trial',
      fields: [{ name: 'SUBJECT', example: "Defendant's expert on pipeline valuation" }, { name: 'HEARING_DATE', example: 'May 12, 2026' }] },
    { id: 9,  title: 'Settlement Agreement',     category: 'Agreements',    uses: 148, updated: '5 days ago',   icon: '◈', desc: 'Full release with payment schedule, confidentiality, and no-admit clause',
      fields: [{ name: 'SETTLING_PARTY', example: 'Blackwood Capital Partners' }, { name: 'SETTLEMENT_AMOUNT', example: '$14,500,000' }, { name: 'PAYMENT_SCHEDULE', example: 'three equal installments over 90 days' }] },
    { id: 10, title: 'Court Cover Sheet JS-44',  category: 'Court Forms',   uses: 447, updated: '2 months ago', icon: '▦', desc: 'Civil cover sheet with case type and jurisdiction auto-population',
      fields: [{ name: 'CASE_TYPE', example: 'Contract dispute' }, { name: 'JURY_DEMAND', example: 'Yes' }] },
    { id: 11, title: 'Expert Witness Report',    category: 'Pleadings',     uses: 33,  updated: '3 weeks ago',  icon: '◆', desc: 'Daubert-compliant expert opinion with methodology and qualifications',
      fields: [{ name: 'EXPERT_NAME', example: 'Dr. Michael J. Patel, PhD' }, { name: 'OPINION_SUBJECT', example: 'fair market value of Pelican Bay assets' }] },
    { id: 12, title: 'Cease & Desist',           category: 'Correspondence',uses: 178, updated: '2 weeks ago',  icon: '•', desc: 'IP infringement or harassment demand with injunctive relief language',
      fields: [{ name: 'INFRINGER', example: 'Quantum Systems, Inc.' }, { name: 'IP_DESCRIPTION', example: 'U.S. Patent No. 10,842,211 — Distributed Data Processing' }, { name: 'CEASE_BY', example: 'May 1, 2026' }] },
    { id: 13, title: 'Reply Brief',              category: 'Motions',       uses: 62,  updated: '1 week ago',   icon: '◆', desc: 'Reply to opposition with point-by-point rebuttal structure',
      fields: [{ name: 'MOTION_TITLE', example: 'Motion for Summary Judgment' }, { name: 'OPP_FILED', example: 'April 15, 2026' }] },
    { id: 14, title: 'Joint Operating Agreement',category: 'Contracts',     uses: 17,  updated: '2 weeks ago',  icon: '◈', desc: 'E&P joint venture operating agreement (AIPN model form base)',
      fields: [{ name: 'OPERATOR', example: 'Meridian Oil Corp.' }, { name: 'NON_OPERATOR', example: 'Coastal Energy LLC' }, { name: 'FIELD_NAME', example: 'Pelican Bay Offshore' }] },
  ],

  clauses: [
    { id: 1,  title: 'Force Majeure',              practice: 'Contracts',     jurisdiction: 'General', uses: 284, text: 'Neither party shall be liable for any failure or delay in performance of its obligations under this Agreement to the extent such failure or delay is caused by circumstances beyond its reasonable control...', risk: 'low' },
    { id: 2,  title: 'Mandatory Arbitration',       practice: 'Contracts',     jurisdiction: 'General', uses: 312, text: 'Any dispute arising out of or relating to this Agreement shall be submitted to binding arbitration administered by JAMS pursuant to its Comprehensive Arbitration Rules and Procedures...', risk: 'medium' },
    { id: 3,  title: 'Limitation of Liability',     practice: 'Contracts',     jurisdiction: 'General', uses: 198, text: 'IN NO EVENT SHALL EITHER PARTY BE LIABLE TO THE OTHER FOR ANY INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, HOWEVER CAUSED...', risk: 'low' },
    { id: 4,  title: 'Choice of Law — NY',          practice: 'Contracts',     jurisdiction: 'New York', uses: 421, text: 'This Agreement shall be governed by and construed in accordance with the laws of the State of New York, without giving effect to any conflict of laws provisions...', risk: 'low' },
    { id: 5,  title: 'Indemnification',             practice: 'Contracts',     jurisdiction: 'General', uses: 167, text: 'Each party (the "Indemnifying Party") shall defend, indemnify, and hold harmless the other party and its affiliates, officers, directors, employees, and agents from and against any and all claims, damages, losses, costs, and expenses...', risk: 'high' },
    { id: 6,  title: 'Entire Agreement (Merger)',   practice: 'Contracts',     jurisdiction: 'General', uses: 509, text: 'This Agreement constitutes the entire agreement between the parties with respect to the subject matter hereof and supersedes all prior and contemporaneous agreements, understandings, negotiations, and discussions...', risk: 'low' },
    { id: 7,  title: 'Confidentiality — Standard', practice: 'Contracts',     jurisdiction: 'General', uses: 388, text: 'Each party agrees to maintain in strict confidence all Confidential Information received from the other party and to use such Confidential Information solely for the purpose of fulfilling its obligations under this Agreement...', risk: 'low' },
    { id: 8,  title: 'Non-Compete — 18 Month',      practice: 'Employment',    jurisdiction: 'New York', uses: 93,  text: 'For a period of eighteen (18) months following the termination of Employee\'s employment for any reason, Employee shall not, directly or indirectly, engage in any business activity competitive with the Company\'s business...', risk: 'high' },
    { id: 9,  title: 'At-Will Employment',          practice: 'Employment',    jurisdiction: 'General', uses: 276, text: 'Employee\'s employment with Company is at-will and may be terminated by either party at any time, with or without cause and with or without notice, subject to any applicable legal requirements...', risk: 'low' },
    { id: 10, title: 'IP Assignment',               practice: 'Employment',    jurisdiction: 'General', uses: 214, text: 'Employee agrees to assign, and hereby assigns, to Company all right, title, and interest in and to any and all inventions, discoveries, improvements, works of authorship, and other intellectual property...', risk: 'medium' },
    { id: 11, title: 'Twombly/Iqbal Standard',      practice: 'Litigation',    jurisdiction: 'Federal',  uses: 156, text: 'To survive a motion to dismiss under Rule 12(b)(6), a complaint must contain sufficient factual matter, accepted as true, to "state a claim to relief that is plausible on its face." Ashcroft v. Iqbal, 556 U.S. 662, 678 (2009)...', risk: 'low' },
    { id: 12, title: 'Rule 37 Sanctions Standard',  practice: 'Litigation',    jurisdiction: 'Federal',  uses: 87,  text: 'Federal Rule of Civil Procedure 37(b) authorizes a district court to sanction a party for failing to comply with discovery orders. The court may impose sanctions including striking pleadings, prohibiting the introduction of certain evidence, or entering a default judgment...', risk: 'low' },
  ],

  reviews: [
    { id: 1, doc: 'Motion to Compel — Meridian Oil Corp',       reviewer: 'J. Walsh',    due: 'Today 5:00 PM',    dueMs: 0,  comments: 3, status: 'Pending',     priority: 'High',     urgent: true  },
    { id: 2, doc: 'Complaint — Securities Fraud',               reviewer: 'P. Harmon',   due: 'Tomorrow 12:00 PM',dueMs: 1,  comments: 1, status: 'In Progress', priority: 'High',     urgent: false },
    { id: 3, doc: 'Expert Witness Declaration — Dr. Patel',     reviewer: 'M. Kirkland', due: 'Apr 23',           dueMs: 2,  comments: 7, status: 'Pending',     priority: 'Medium',   urgent: false },
    { id: 4, doc: 'Settlement Agreement — Final',               reviewer: 'R. Torres',   due: 'Apr 22',           dueMs: 1,  comments: 2, status: 'Completed',   priority: 'Critical', urgent: false },
    { id: 5, doc: 'Reply Brief — Summary Judgment',             reviewer: 'S. Chen',     due: 'Apr 25',           dueMs: 4,  comments: 0, status: 'Pending',     priority: 'Medium',   urgent: false },
    { id: 6, doc: 'NDA — Strategic Partnership',                reviewer: 'A. Williams', due: 'Apr 24',           dueMs: 3,  comments: 1, status: 'Approved',    priority: 'Low',      urgent: false },
  ],

  // Sequential co-authoring queue
  coauthorQueue: [
    { doc: 'Reply Brief — Summary Judgment', steps: [
      { user: 'A. Williams', role: 'Associate',       task: 'Draft §I–III',          status: 'completed', completedAt: 'Apr 18' },
      { user: 'S. Chen',     role: 'Sr. Associate',   task: 'Legal research & §IV',  status: 'completed', completedAt: 'Apr 19' },
      { user: 'M. Kirkland', role: 'Partner',         task: 'Partner review & §V',   status: 'active',    dueAt: 'Apr 23' },
      { user: 'J. Walsh',    role: 'Senior Partner',  task: 'Final approval',         status: 'pending',   dueAt: 'Apr 24' },
      { user: 'L. Park',     role: 'Paralegal',       task: 'Court formatting',       status: 'pending',   dueAt: 'Apr 25' },
    ]},
    { doc: 'Settlement Agreement — Final', steps: [
      { user: 'A. Williams', role: 'Associate',       task: 'Initial draft',          status: 'completed', completedAt: 'Apr 15' },
      { user: 'R. Torres',   role: 'Sr. Associate',   task: 'Revisions & risk review',status: 'completed', completedAt: 'Apr 17' },
      { user: 'M. Kirkland', role: 'Partner',         task: 'Partner approval',       status: 'completed', completedAt: 'Apr 19' },
      { user: 'Client',      role: 'Client Review',   task: 'Client sign-off',        status: 'active',    dueAt: 'Apr 22' },
    ]},
  ],

  sources: [
    { id: 'research',   label: 'Research',   icon: '◈', accent: '#7C3AED', accentBg: 'rgba(124,58,237,0.08)',  status: 'Connected', lastSync: '8 min ago',  items: ['Twombly, 550 U.S. 544 — pleading standard', 'Iqbal, 556 U.S. 662 — plausibility test', '9th Cir. 2024 FRCP 12(b)(6) analysis'] },
    { id: 'esi',        label: 'ESI',        icon: '⟐', accent: '#0891B2', accentBg: 'rgba(8,145,178,0.08)',   status: 'Connected', lastSync: '22 min ago', items: ['14,204 docs processed — Meridian matter', 'Production set PROD-003 ready', '2 privileged docs flagged for review'] },
    { id: 'calendar',   label: 'Calendar',   icon: '▦', accent: '#65A30D', accentBg: 'rgba(101,163,13,0.08)',  status: 'Connected', lastSync: '1 min ago',  items: ['Filing deadline: Apr 25, 2026', 'Hearing: May 12, 2026 — SDNY Courtroom 4B', 'Deposition: May 3, 2026 — Dr. Patel'] },
    { id: 'billing',    label: 'Billing',    icon: '▣', accent: '#059669', accentBg: 'rgba(5,150,105,0.08)',   status: 'Connected', lastSync: '15 min ago', items: ['Matter #4421 — open billing code ready', 'Rate: $750/hr — Senior Partner', 'Budget remaining: $48,200'] },
    { id: 'automation', label: 'Automation', icon: '◆', accent: '#C9A84C', accentBg: 'rgba(201,168,76,0.10)', status: 'Connected', lastSync: '5 min ago',  items: ['Filing workflow ready to trigger', 'E-signature automation available', 'Court docket sync active'] },
    { id: 'evidence',   label: 'Evidence',   icon: '◉', accent: '#EA580C', accentBg: 'rgba(234,88,12,0.08)',   status: 'Connected', lastSync: '1 hr ago',   items: ['EXH-047 — Email chain re: acquisition', 'EXH-048 — Board resolution minutes', '6 exhibits linked to current draft'] },
  ],

  // Citation manager data
  citations: [
    { id: 1,  cite: 'Bell Atl. Corp. v. Twombly',  full: '550 U.S. 544 (2007)',      status: 'good',    uses: 3, bluebook: 'Bell Atl. Corp. v. Twombly, 550 U.S. 544 (2007)', issue: null },
    { id: 2,  cite: 'Ashcroft v. Iqbal',            full: '556 U.S. 662 (2009)',      status: 'good',    uses: 2, bluebook: 'Ashcroft v. Iqbal, 556 U.S. 662 (2009)', issue: null },
    { id: 3,  cite: 'Fed. R. Civ. P. 37(a)',        full: 'Fed. R. Civ. P. 37(a)',    status: 'good',    uses: 4, bluebook: 'Fed. R. Civ. P. 37(a)', issue: null },
    { id: 4,  cite: 'Celotex Corp. v. Catrett',     full: '477 U.S. 317 (1986)',      status: 'good',    uses: 1, bluebook: 'Celotex Corp. v. Catrett, 477 U.S. 317 (1986)', issue: null },
    { id: 5,  cite: 'Burlington N. & Santa Fe Ry.', full: '548 U.S. 53 (2006)',       status: 'warning', uses: 1, bluebook: 'Burlington N. & Santa Fe Ry. Co. v. White, 548 U.S. 53 (2006)', issue: 'Verify: subsequent history unclear' },
    { id: 6,  cite: 'Zubulake v. UBS Warburg',      full: '217 F.R.D. 309 (S.D.N.Y.)',status: 'good',   uses: 1, bluebook: 'Zubulake v. UBS Warburg LLC, 217 F.R.D. 309 (S.D.N.Y. 2003)', issue: null },
    { id: 7,  cite: 'Local Civil Rule 37.2',        full: 'S.D.N.Y. Local Civ. R. 37.2',status:'good',  uses: 1, bluebook: 'S.D.N.Y. Local Civ. R. 37.2', issue: null },
    { id: 8,  cite: 'Pension Comm. of Univ.',       full: '685 F. Supp. 2d 456 (2010)',status: 'error',  uses: 1, bluebook: 'Pension Comm. of Univ. of Montreal Pension Plan v. Banc of Am. Sec., 685 F. Supp. 2d 456 (S.D.N.Y. 2010)', issue: 'OVERRULED in part by Chin v. Port Auth.' },
    { id: 9,  cite: 'Danis v. USN Commc\'ns',       full: '2000 WL 1694325 (N.D. Ill.)',status:'good',  uses: 1, bluebook: 'Danis v. USN Commc\'ns, Inc., 2000 WL 1694325 (N.D. Ill. Oct. 23, 2000)', issue: null },
    { id: 10, cite: 'FRCP 26(b)(1)',                full: 'Fed. R. Civ. P. 26(b)(1)', status: 'good',    uses: 2, bluebook: 'Fed. R. Civ. P. 26(b)(1)', issue: null },
    { id: 11, cite: 'Sec. & Exch. Comm\'n v. Yin',  full: '2022 WL 198588 (S.D.N.Y.)',status:'warning',  uses: 1, bluebook: 'SEC v. Yin, No. 17 Civ. 972 (S.D.N.Y. Jan. 21, 2022)', issue: 'Footnote 7: verify page pin cite' },
    { id: 12, cite: 'Fed. R. Evid. 502(d)',         full: 'Fed. R. Evid. 502(d)',     status: 'good',    uses: 1, bluebook: 'Fed. R. Evid. 502(d)', issue: null },
  ],

  // Opposing counsel exchange
  opposingDocs: [
    { id: 1, title: 'Opposition to Motion to Compel',          from: 'Davis & Marsh LLP (Coastal)',      received: 'Apr 19, 2026',  status: 'Reviewed',  pages: 18, redlines: 0, action: 'Response due Apr 25' },
    { id: 2, title: 'Defendant\'s Proposed Protective Order',  from: 'Davis & Marsh LLP (Coastal)',      received: 'Apr 17, 2026',  status: 'Pending',   pages: 7,  redlines: 12, action: 'Compare to our draft' },
    { id: 3, title: 'Rule 26(f) Report — Coastal\'s Draft',    from: 'Davis & Marsh LLP (Coastal)',      received: 'Apr 14, 2026',  status: 'Reviewed',  pages: 9,  redlines: 0, action: 'Filed Apr 16' },
    { id: 4, title: 'Discovery Objections — Set One',          from: 'Davis & Marsh LLP (Coastal)',      received: 'Mar 16, 2026',  status: 'Reviewed',  pages: 22, redlines: 0, action: 'Basis for this motion' },
  ],

  versions: [
    { v: 'v1.8', author: 'M. Kirkland', time: '2 hours ago',  changes: 'Added expert opinion section; revised jurisdiction argument',           words: 8420, delta: '+340', tag: 'Current', branch: 'main' },
    { v: 'v1.7', author: 'S. Chen',     time: '5 hours ago',  changes: 'Incorporated J. Walsh review comments; tightened §III',                words: 8080, delta: '+120', tag: null,      branch: 'main' },
    { v: 'v1.6', author: 'M. Kirkland', time: 'Yesterday',    changes: 'Rewrote introduction; added Twombly/Iqbal citation block',             words: 7960, delta: '+680', tag: null,      branch: 'main' },
    { v: 'v1.5', author: 'R. Torres',   time: '2 days ago',   changes: 'Initial partner review pass — structural edits',                       words: 7280, delta: '-210', tag: null,      branch: 'main' },
    { v: 'v1.4', author: 'A. Williams', time: '3 days ago',   changes: 'Drafted §IV and §V; footnotes added',                                  words: 7490, delta: '+1840',tag: null,      branch: 'main' },
    { v: 'v1.3', author: 'M. Kirkland', time: '4 days ago',   changes: 'Merged comments from partner review meeting',                          words: 5650, delta: '+530', tag: null,      branch: 'main' },
    { v: 'v1.2', author: 'S. Chen',     time: '5 days ago',   changes: 'First draft of body sections',                                         words: 5120, delta: '+3820',tag: null,      branch: 'main' },
    { v: 'v1.1', author: 'M. Kirkland', time: '6 days ago',   changes: 'Created from template; caption and parties populated',                 words: 1300, delta: '+1300',tag: 'Created', branch: 'main' },
    { v: 'v1.8-aggressive', author: 'M. Kirkland', time: '3 hours ago', changes: 'Aggressive sanctions argument — full §1927 and inherent power', words: 8910, delta: '+490', tag: 'Branch', branch: 'aggressive-track' },
    { v: 'v1.5-settle', author: 'A. Williams', time: '2 days ago', changes: 'Softened language for settlement track; removed sanctions demand', words: 6840, delta: '-440', tag: 'Branch', branch: 'settlement-track' },
  ],

  branches: [
    { name: 'main',              label: 'Main',              color: '#C9A84C', versions: ['v1.1','v1.2','v1.3','v1.4','v1.5','v1.6','v1.7','v1.8'], active: true },
    { name: 'aggressive-track',  label: 'Aggressive Track',  color: '#B91C1C', versions: ['v1.8-aggressive'], active: true },
    { name: 'settlement-track',  label: 'Settlement Track',  color: '#059669', versions: ['v1.5-settle'], active: false },
  ],

  published: [
    { id: 1, title: 'Deposition Summary — J. Harmon',       destination: 'Court Filing (ECF)', date: 'Apr 18', format: 'PDF/A', status: 'Confirmed', receipt: 'ECF-2026-44211' },
    { id: 2, title: 'NDA — Strategic Partnership',          destination: 'Client Portal',      date: 'Apr 17', format: 'PDF',   status: 'Confirmed', receipt: 'CP-2026-0892' },
    { id: 3, title: 'Protective Order — Confidential',      destination: 'DMS (iManage)',       date: 'Apr 16', format: 'DOCX',  status: 'Confirmed', receipt: 'DMS-44109' },
    { id: 4, title: 'Interrogatories — Set One',            destination: 'Email (opposing)',    date: 'Apr 14', format: 'PDF',   status: 'Delivered', receipt: 'MSG-20260414' },
    { id: 5, title: 'Motion to Dismiss — TechNova',         destination: 'Court Filing (ECF)', date: 'Apr 10', format: 'PDF/A', status: 'Confirmed', receipt: 'ECF-2026-43876' },
    { id: 6, title: 'Employment Agreement — VP Technology', destination: 'DocuSign',            date: 'Apr 8',  format: 'PDF',   status: 'Pending',   receipt: 'DS-2026-8841' },
  ],

  // Signature management
  signatureRequests: [
    { id: 1, doc: 'Settlement Agreement — Final',       matter: 'Blackwood Capital Partners', created: 'Apr 19', deadline: 'Apr 22', signatories: [
      { name: 'M. Kirkland',    role: 'Partner (Firm)',    status: 'Signed',   signedAt: 'Apr 19 2:14 PM' },
      { name: 'A. Williams',    role: 'Associate (Firm)',  status: 'Signed',   signedAt: 'Apr 19 3:05 PM' },
      { name: 'R. Blackwood',   role: 'Client',            status: 'Pending',  signedAt: null },
      { name: 'T. Harte',       role: 'Opposing Counsel',  status: 'Pending',  signedAt: null },
    ]},
    { id: 2, doc: 'NDA — Strategic Partnership',        matter: 'Hartwell Manufacturing',     created: 'Apr 17', deadline: 'Apr 24', signatories: [
      { name: 'M. Kirkland',    role: 'Partner (Firm)',    status: 'Signed',   signedAt: 'Apr 17 10:30 AM' },
      { name: 'C. Hartwell',    role: 'Client CEO',        status: 'Signed',   signedAt: 'Apr 18 9:15 AM' },
      { name: 'P. Acquisitions',role: 'Counter-party',     status: 'Signed',   signedAt: 'Apr 18 4:42 PM' },
    ]},
    { id: 3, doc: 'Employment Agreement — VP Technology',matter: 'Hartwell Manufacturing',    created: 'Apr 8',  deadline: 'Apr 30', signatories: [
      { name: 'C. Hartwell',    role: 'Employer (CEO)',    status: 'Signed',   signedAt: 'Apr 9 11:00 AM' },
      { name: 'S. Chen',        role: 'Employee',          status: 'Pending',  signedAt: null },
    ]},
  ],

  // Scheduled publishing queue
  scheduledPublish: [
    { id: 1, doc: 'Motion to Compel — Meridian',      destination: 'Court Filing (ECF)', scheduledFor: 'Apr 25, 2026 9:00 AM', condition: 'All approvals complete', status: 'Ready',   countdown: '3d 14h' },
    { id: 2, doc: 'Reply Brief — Summary Judgment',   destination: 'Court Filing (ECF)', scheduledFor: 'Apr 28, 2026 11:59 PM',condition: 'Co-author queue complete', status: 'Waiting', countdown: '6d 22h' },
    { id: 3, doc: 'Rule 26(f) Discovery Plan',        destination: 'Email (opposing)',    scheduledFor: 'Apr 22, 2026 5:00 PM', condition: 'Immediate',               status: 'Ready',   countdown: '0d 11h' },
    { id: 4, doc: 'Expert Witness Declaration',       destination: 'Court Filing (ECF)', scheduledFor: 'Apr 30, 2026 12:00 PM',condition: 'Partner sign-off received',status: 'Blocked', countdown: '8d 4h' },
  ],

  activity: [
    { id: 1,  user: 'M. Kirkland', action: 'Saved v1.8',              doc: 'Motion to Compel — Meridian',    time: '2 hours ago',  icon: '↑', accent: '#C9A84C' },
    { id: 2,  user: 'J. Walsh',    action: 'Added 3 comments',         doc: 'Motion to Compel — Meridian',    time: '3 hours ago',  icon: '◉', accent: '#B45309' },
    { id: 3,  user: 'S. Chen',     action: 'Completed review',         doc: 'Complaint — Securities Fraud',   time: '4 hours ago',  icon: 'ok', accent: '#059669' },
    { id: 4,  user: 'R. Torres',   action: 'Linked ESI exhibit',       doc: 'Settlement Agreement — Final',   time: '5 hours ago',  icon: '⟐', accent: '#0891B2' },
    { id: 5,  user: 'A. Williams', action: 'Created from template',    doc: 'NDA — Strategic Partnership',    time: 'Yesterday',    icon: '+', accent: '#64748B' },
    { id: 6,  user: 'L. Park',     action: 'Published to DMS',         doc: 'Protective Order',                time: '2 days ago',   icon: '▶', accent: '#1D4ED8' },
    { id: 7,  user: 'M. Kirkland', action: 'Requested e-signatures',   doc: 'Employment Agreement',            time: '2 days ago',   icon: '◇', accent: '#7C3AED' },
    { id: 8,  user: 'S. Chen',     action: 'Triggered filing workflow', doc: 'Deposition Summary',             time: '3 days ago',   icon: '◆', accent: '#65A30D' },
    { id: 9,  user: 'P. Harmon',   action: 'Approved for publication', doc: 'Motion to Dismiss — TechNova',   time: '3 days ago',   icon: 'ok', accent: '#059669' },
    { id: 10, user: 'L. Park',     action: 'Pulled calendar deadline', doc: 'Reply Brief — Summary Judgment', time: '4 days ago',   icon: '▦', accent: '#65A30D' },
  ],
};
