/* SnapSite AI Meeting System v2.0.0 | Staff CSS */
:root {
  --sams-navy:    #0B1D3A;
  --sams-blue:    #1258C2;
  --sams-gold:    #E8A838;
  --sams-green:   #2ECC71;
  --sams-red:     #E53E3E;
  --sams-orange:  #ED8936;
  --sams-gray:    #F7F8FA;
  --sams-border:  #E2E8F0;
  --sams-text:    #2D3748;
  --sams-muted:   #718096;
  --sams-radius:  8px;
  --sams-shadow:  0 2px 8px rgba(0,0,0,.08);
  --sams-shadow-lg: 0 8px 24px rgba(0,0,0,.12);
}

/* ── BASE ──────────────────────────────────────────────────────────────────── */
.sams-staff, .sams-dash, .sams-editor, .sams-transcript-manager { font-family: 'Outfit', -apple-system, sans-serif; color: var(--sams-text); }
.sams-hidden { display: none !important; }
.sams-notice { padding: 12px 16px; border-radius: var(--sams-radius); margin: 12px 0; }
.sams-success { background: #F0FFF4; border-left: 4px solid var(--sams-green); color: #276749; }
.sams-error   { background: #FFF5F5; border-left: 4px solid var(--sams-red);   color: #9B2C2C; }
.sams-info    { background: #EBF8FF; border-left: 4px solid var(--sams-blue);  color: #2C5282; }
.sams-warning { background: #FFFBEA; border-left: 4px solid var(--sams-gold);  color: #744210; }
.sams-empty   { color: var(--sams-muted); font-style: italic; padding: 24px; text-align: center; }

/* ── TOAST ─────────────────────────────────────────────────────────────────── */
.sams-toast { position: fixed; bottom: 24px; right: 24px; z-index: 99999; padding: 12px 20px; border-radius: var(--sams-radius); background: var(--sams-navy); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--sams-shadow-lg); transform: translateY(80px); opacity: 0; transition: all .3s ease; max-width: 360px; }
.sams-toast-show { transform: translateY(0); opacity: 1; }
.sams-toast-error   { background: var(--sams-red); }
.sams-toast-warning { background: var(--sams-orange); }
.sams-toast-info    { background: var(--sams-blue); }

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.sams-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--sams-radius); border: none; cursor: pointer; font-size: 14px; font-weight: 500; transition: all .15s; text-decoration: none; background: var(--sams-border); color: var(--sams-text); line-height: 1.4; }
.sams-btn:hover { opacity: .88; transform: translateY(-1px); }
.sams-btn-primary { background: var(--sams-blue); color: #fff; }
.sams-btn-primary:hover { background: #0E47A1; color: #fff; }
.sams-btn-outline { background: transparent; border: 1.5px solid var(--sams-blue); color: var(--sams-blue); }
.sams-btn-danger  { background: #FFF5F5; color: var(--sams-red); border: 1px solid #FEB2B2; }
.sams-btn-danger:hover { background: var(--sams-red); color: #fff; }
.sams-btn-ai { background: linear-gradient(135deg, #7C3AED, #2563EB); color: #fff; }
.sams-btn-ai:hover { opacity: .9; }
.sams-btn-xs { padding: 4px 8px; font-size: 12px; }
.sams-btn-sm { padding: 6px 12px; font-size: 13px; }
.sams-btn-lg { padding: 12px 24px; font-size: 16px; }
.sams-btn-full { width: 100%; justify-content: center; }
.sams-link { color: var(--sams-blue); text-decoration: none; cursor: pointer; background: none; border: none; padding: 0; }
.sams-link:hover { text-decoration: underline; }
.sams-link-sm { font-size: 13px; color: var(--sams-blue); text-decoration: none; }

/* ── FORMS ─────────────────────────────────────────────────────────────────── */
.sams-form-group { margin-bottom: 14px; }
.sams-form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--sams-navy); margin-bottom: 5px; }
.sams-form-group input,
.sams-form-group select,
.sams-form-group textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--sams-border); border-radius: var(--sams-radius); font-size: 14px; color: var(--sams-text); background: #fff; transition: border-color .15s; box-sizing: border-box; }
.sams-form-group input:focus,
.sams-form-group select:focus,
.sams-form-group textarea:focus { outline: none; border-color: var(--sams-blue); box-shadow: 0 0 0 3px rgba(18,88,194,.1); }
.sams-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sams-form-full { grid-column: 1 / -1; }
.sams-hint { font-size: 12px; color: var(--sams-muted); margin-top: 4px; display: block; }
.sams-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 500; }
.sams-toggle input { width: auto; }
.sams-form-inline { display: flex; align-items: center; gap: 8px; }
.sams-select-sm { padding: 4px 8px; font-size: 12px; border: 1px solid var(--sams-border); border-radius: 4px; }

/* ── PANEL ─────────────────────────────────────────────────────────────────── */
.sams-panel { background: #fff; border: 1px solid var(--sams-border); border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; box-shadow: var(--sams-shadow); }
.sams-panel h3 { font-size: 16px; font-weight: 700; color: var(--sams-navy); margin: 0 0 16px; border-bottom: 2px solid var(--sams-gray); padding-bottom: 10px; }
.sams-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sams-panel-header h3 { margin: 0; border: none; padding: 0; }

/* ── TABLE ─────────────────────────────────────────────────────────────────── */
.sams-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sams-table th { background: var(--sams-gray); color: var(--sams-navy); font-weight: 600; padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--sams-border); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.sams-table td { padding: 10px 12px; border-bottom: 1px solid var(--sams-border); vertical-align: middle; }
.sams-table tr:hover td { background: #FAFBFC; }
.sams-table-sm td, .sams-table-sm th { padding: 7px 10px; font-size: 13px; }
.sams-td-date { white-space: nowrap; font-weight: 500; }
.sams-td-actions { white-space: nowrap; display: flex; gap: 4px; align-items: center; }
.sams-overdue-row td { background: #FFF5F5 !important; }

/* ── BADGES ────────────────────────────────────────────────────────────────── */
.sams-badge-ok    { background: #F0FFF4; color: #276749; border: 1px solid #9AE6B4; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.sams-badge-warn  { background: #FFFBEA; color: #744210; border: 1px solid #F6E05E; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.sams-badge-info  { background: #EBF8FF; color: #2C5282; border: 1px solid #90CDF4; padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.sams-badge-draft { background: var(--sams-gray); color: var(--sams-muted); border: 1px solid var(--sams-border); padding: 2px 8px; border-radius: 20px; font-size: 12px; }
.sams-badge-error { background: #FFF5F5; color: #9B2C2C; border: 1px solid #FEB2B2; padding: 2px 8px; border-radius: 20px; font-size: 12px; }
.sams-badge-none  { color: var(--sams-muted); font-size: 12px; }
.sams-badge-count { background: var(--sams-red); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 11px; margin-left: 4px; }
.sams-badge-ok.status-approved { background: #EBF8FF; color: #2C5282; border-color: #90CDF4; }

/* ── STAFF HEADER ──────────────────────────────────────────────────────────── */
.sams-staff-header, .sams-editor-header, .sams-dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.sams-staff-header h2, .sams-editor-header h2, .sams-dash-header h2 { font-size: 24px; font-weight: 700; color: var(--sams-navy); margin: 0; }
.sams-editor-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sams-back { color: var(--sams-blue); text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.sams-back:hover { text-decoration: underline; }

/* ── FILTER TABS ───────────────────────────────────────────────────────────── */
.sams-filter-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid var(--sams-border); }
.sams-filter-tabs a { padding: 8px 16px; text-decoration: none; color: var(--sams-muted); font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; }
.sams-filter-tabs a.active, .sams-filter-tabs a:hover { color: var(--sams-blue); border-bottom-color: var(--sams-blue); }

/* ── DASHBOARD ─────────────────────────────────────────────────────────────── */
.sams-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.sams-stat-card { background: #fff; border: 1px solid var(--sams-border); border-radius: 10px; padding: 20px; text-align: center; box-shadow: var(--sams-shadow); position: relative; }
.sams-stat-icon { font-size: 28px; margin-bottom: 8px; }
.sams-stat-value { font-size: 36px; font-weight: 800; color: var(--sams-navy); line-height: 1; }
.sams-stat-label { font-size: 13px; color: var(--sams-muted); margin-top: 4px; }
.sams-stat-link { display: block; font-size: 12px; color: var(--sams-blue); margin-top: 8px; text-decoration: none; }
.sams-stat-warning { border-top: 3px solid var(--sams-gold); }
.sams-stat-alert   { border-top: 3px solid var(--sams-red); }
.sams-stat-info    { border-top: 3px solid var(--sams-blue); }
.sams-dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.sams-dash-panel { background: #fff; border: 1px solid var(--sams-border); border-radius: 10px; padding: 20px; box-shadow: var(--sams-shadow); }
.sams-dash-panel h3 { font-size: 15px; font-weight: 700; color: var(--sams-navy); margin: 0 0 12px; }
.sams-next-meeting { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.sams-next-date { background: var(--sams-blue); color: #fff; border-radius: 8px; padding: 8px 14px; font-size: 22px; font-weight: 800; text-align: center; min-width: 60px; }
.sams-next-actions { display: flex; gap: 8px; }
.sams-action-list-mini { list-style: none; padding: 0; margin: 0; }
.sams-action-mini-item { padding: 8px 0; border-bottom: 1px solid var(--sams-border); display: flex; flex-direction: column; gap: 2px; }
.sams-action-mini-title { font-size: 13px; font-weight: 500; }
.sams-action-mini-meta { font-size: 12px; color: var(--sams-muted); }
.sams-overdue .sams-action-mini-title { color: var(--sams-red); }
.sams-dash-quicklinks { display: flex; gap: 10px; flex-wrap: wrap; }
.sams-quicklink { background: var(--sams-gray); border: 1px solid var(--sams-border); border-radius: 8px; padding: 10px 18px; text-decoration: none; color: var(--sams-navy); font-size: 14px; font-weight: 500; transition: all .15s; }
.sams-quicklink:hover { background: var(--sams-blue); color: #fff; border-color: var(--sams-blue); }

/* ── MEETING EDITOR ────────────────────────────────────────────────────────── */
.sams-editor-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.sams-panel-details { grid-column: 1; }
.sams-panel-attendance { grid-column: 2; }
.sams-publish-controls { display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid var(--sams-border); margin-top: 12px; }
.sams-attendance-grid { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.sams-att-member { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--sams-border); font-size: 13px; }
.sams-att-member em { color: var(--sams-muted); font-size: 12px; }
.sams-att-status { width: 110px !important; padding: 4px 8px !important; font-size: 12px !important; }
.sams-time-grid { display: flex; gap: 16px; margin-top: 12px; font-size: 13px; font-weight: 500; }
.sams-time-grid input { width: auto !important; margin-left: 6px; }

/* ── AGENDA BUILDER ────────────────────────────────────────────────────────── */
.sams-agenda-builder { min-height: 80px; }
.sams-agenda-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sams-agenda-empty { text-align: center; padding: 32px; color: var(--sams-muted); background: var(--sams-gray); border-radius: 8px; border: 2px dashed var(--sams-border); }
.sams-section { background: var(--sams-gray); border: 1px solid var(--sams-border); border-radius: 8px; margin-bottom: 8px; overflow: hidden; }
.sams-section-header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #EEF2F7; flex-wrap: wrap; }
.sams-drag-handle { cursor: grab; color: var(--sams-muted); font-size: 16px; user-select: none; }
.sams-drag-handle:active { cursor: grabbing; }
.sams-section-title { flex: 1; font-size: 14px; font-weight: 600; background: transparent; border: 1px solid transparent; border-radius: 4px; padding: 4px 8px; min-width: 200px; }
.sams-section-title:focus { background: #fff; border-color: var(--sams-blue); }
.sams-consent-toggle { font-size: 12px; white-space: nowrap; }
.sams-items-list { padding: 8px 14px; display: flex; flex-direction: column; gap: 4px; }
.sams-item { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sams-border); border-radius: 6px; padding: 7px 10px; flex-wrap: wrap; }
.sams-item-title { flex: 1; font-size: 13px; border: 1px solid transparent; border-radius: 4px; padding: 3px 6px; min-width: 180px; }
.sams-item-title:focus { border-color: var(--sams-blue); outline: none; background: var(--sams-gray); }
.sams-item-presenter { width: 130px; font-size: 12px; border: 1px solid transparent; border-radius: 4px; padding: 3px 6px; color: var(--sams-muted); }
.sams-item-presenter:focus { border-color: var(--sams-blue); outline: none; }
.sams-motion-toggle { font-size: 12px; white-space: nowrap; color: var(--sams-muted); }
.sams-item-level-1 { margin-left: 24px; background: #FAFBFC; }

/* ── MINUTES EDITOR ────────────────────────────────────────────────────────── */
.sams-minutes-textarea { width: 100%; font-family: 'Georgia', serif; font-size: 14px; line-height: 1.7; border: 1.5px solid var(--sams-border); border-radius: var(--sams-radius); padding: 16px; box-sizing: border-box; resize: vertical; min-height: 400px; }
.sams-minutes-textarea:focus { outline: none; border-color: var(--sams-blue); }
.sams-minutes-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sams-versions { margin-top: 20px; border-top: 1px solid var(--sams-border); padding-top: 16px; }
.sams-versions h4 { font-size: 14px; color: var(--sams-muted); margin: 0 0 10px; }
.sams-minutes-ai-notice { margin-bottom: 12px; }
.sams-badge-draft     { background: var(--sams-gray); }
.sams-badge-under_review { background: #FFFBEA; color: #744210; }
.sams-badge-approved  { background: #EBF8FF; color: #2C5282; }
.sams-badge-published { background: #F0FFF4; color: #276749; }

/* ── BOARD CARDS ───────────────────────────────────────────────────────────── */
.sams-board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.sams-board-card { background: #fff; border: 1px solid var(--sams-border); border-radius: 10px; padding: 20px; box-shadow: var(--sams-shadow); }
.sams-board-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 8px; }
.sams-board-card-header h3 { font-size: 16px; font-weight: 700; color: var(--sams-navy); margin: 0; }
.sams-board-schedule { font-size: 13px; color: var(--sams-muted); margin: 4px 0 10px; }
.sams-members-list { margin-top: 12px; border-top: 1px solid var(--sams-border); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.sams-member-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 4px 0; }
.sams-member-row em { color: var(--sams-muted); }

/* ── MODAL ─────────────────────────────────────────────────────────────────── */
.sams-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sams-modal-box { background: #fff; border-radius: 12px; padding: 28px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--sams-shadow-lg); }
.sams-modal-box h3 { font-size: 18px; font-weight: 700; color: var(--sams-navy); margin: 0 0 20px; }
.sams-modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; border-top: 1px solid var(--sams-border); padding-top: 16px; }

/* ── ACTION ITEMS ──────────────────────────────────────────────────────────── */
.sams-priority-high   { color: var(--sams-red); font-weight: 600; font-size: 12px; }
.sams-priority-normal { color: var(--sams-muted); font-size: 12px; }
.sams-priority-low    { color: var(--sams-green); font-size: 12px; }
.sams-status-pending      { color: var(--sams-orange); font-weight: 600; font-size: 12px; }
.sams-status-in_progress  { color: var(--sams-blue); font-weight: 600; font-size: 12px; }
.sams-status-completed    { color: var(--sams-green); font-weight: 600; font-size: 12px; }

/* ── TRANSCRIPT MANAGER ────────────────────────────────────────────────────── */
.sams-transcript-layout { display: flex; flex-direction: column; gap: 20px; }
.sams-txr-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 2px solid var(--sams-border); }
.sams-txr-tabs .sams-tab { padding: 8px 16px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--sams-muted); transition: all .15s; }
.sams-txr-tabs .sams-tab.active { color: var(--sams-blue); border-bottom-color: var(--sams-blue); }
.sams-txr-panel { padding-top: 16px; }
.sams-upload-zone { border: 2px dashed var(--sams-border); border-radius: 10px; padding: 32px; text-align: center; color: var(--sams-muted); transition: all .15s; }
.sams-upload-zone:hover, .sams-upload-zone.sams-drag-over { border-color: var(--sams-blue); background: #EBF8FF; }
.sams-upload-icon { font-size: 40px; margin-bottom: 8px; }
.sams-upload-hint { font-size: 12px; margin: 4px 0 16px; }
.sams-file-info { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--sams-gray); border-radius: 8px; margin-top: 12px; }
.sams-txr-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--sams-border); border-radius: 8px; margin-bottom: 8px; background: #fff; }
.sams-txr-row-info { flex: 1; }
.sams-txr-row-info strong { font-size: 14px; display: block; margin: 4px 0; }
.sams-txr-row-info small { font-size: 12px; color: var(--sams-muted); }
.sams-txr-preview { font-size: 12px; color: var(--sams-muted); margin: 4px 0; max-height: 48px; overflow: hidden; font-style: italic; }
.sams-txr-row-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }
.sams-extraction-notice { margin-bottom: 16px; }
.sams-ext-section { margin-bottom: 20px; border-bottom: 1px solid var(--sams-border); padding-bottom: 16px; }
.sams-ext-section h4 { font-size: 14px; font-weight: 700; color: var(--sams-navy); margin: 0 0 10px; }
.sams-ext-motion { background: var(--sams-gray); border-radius: 6px; padding: 10px 14px; margin-bottom: 8px; }
.sams-ext-motion p { margin: 2px 0; font-size: 13px; }
.sams-ext-list { margin: 0; padding-left: 20px; }
.sams-ext-list li { font-size: 13px; margin-bottom: 4px; }
.sams-ext-narrative { font-size: 13px; line-height: 1.7; background: var(--sams-gray); padding: 12px; border-radius: 6px; font-style: italic; white-space: pre-line; }
.sams-apply-options { background: var(--sams-gray); border-radius: 8px; padding: 16px; margin-top: 16px; }
.sams-apply-options h4 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.sams-apply-options label { display: block; margin-bottom: 8px; font-size: 14px; }
.sams-apply-options input[type=checkbox] { margin-right: 8px; }
.sams-note { font-size: 12px; color: var(--sams-muted); margin: 8px 0 12px; }

/* ── UPLOAD ZONE in editor ──────────────────────────────────────────────────── */
#sams-upload-zone { cursor: pointer; }
.sams-att-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-bottom: 1px solid var(--sams-border); font-size: 13px; }
.sams-att-name { flex: 1; }
.sams-att-size { color: var(--sams-muted); font-size: 12px; }
.sams-att-uploading { opacity: .6; }

/* ── SETTINGS ───────────────────────────────────────────────────────────────── */
.sams-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sams-usage-box { background: var(--sams-gray); border-radius: 6px; padding: 10px 14px; font-size: 13px; margin-top: 10px; }

/* ── SPINNER / LOADING ─────────────────────────────────────────────────────── */
.sams-loading { text-align: center; padding: 32px; color: var(--sams-muted); }
.sams-spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--sams-border); border-top-color: var(--sams-blue); border-radius: 50%; animation: sams-spin .7s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes sams-spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sams-editor-panels, .sams-dash-cols, .sams-settings-grid, .sams-form-grid { grid-template-columns: 1fr; }
  .sams-board-grid { grid-template-columns: 1fr; }
  .sams-stats-grid { grid-template-columns: 1fr 1fr; }
  .sams-table { font-size: 12px; }
  .sams-table th, .sams-table td { padding: 8px 8px; }
  .sams-modal-overlay { align-items: flex-end; }
  .sams-modal-box { border-radius: 12px 12px 0 0; max-height: 85vh; }
}
@media (max-width: 480px) {
  .sams-stats-grid { grid-template-columns: 1fr; }
  .sams-staff-header, .sams-editor-header { flex-direction: column; align-items: flex-start; }
}

/* ── Meeting Mode ─────────────────────────────────────────────────────────── */
.sams-meeting-mode .sams-edit-only { display: none !important; }
.sams-meeting-mode .sams-meeting-bar { display: block !important; }
.sams-meeting-mode .sams-drag-handle { display: none; }
.sams-meeting-mode .sams-section-header input,
.sams-meeting-mode .sams-section-header select,
.sams-meeting-mode .sams-section-header label { pointer-events: none; opacity: 0.7; }
.sams-meeting-mode .sams-section-header .sams-section-title {
    font-weight: bold; font-size: 15px; background: none; border: none; text-transform: uppercase;
}
.sams-meeting-mode .sams-item-row-main .sams-item-title {
    font-weight: 600; background: none; border: none; pointer-events: none;
}
.sams-meeting-mode .sams-item-row-main .sams-item-type,
.sams-meeting-mode .sams-item-row-main .sams-item-presenter { pointer-events: none; opacity: 0.6; font-size: 11px; }
.sams-meeting-mode .sams-agenda-tools button:not(#sams-mode-toggle),
.sams-meeting-mode .sams-agenda-tools select { display: none; }
.sams-meeting-mode .sams-btn-full { display: none; }
.sams-meeting-bar { padding: 6px 8px; background: #f8f9fa; border-left: 3px solid #1258C2; margin: 4px 0 8px; border-radius: 0 4px 4px 0; }
.sams-meeting-bar .sams-live-notes { width: 100%; font-size: 13px; border: 1px solid #ddd; border-radius: 3px; padding: 6px; }
.sams-vote-bar .sams-btn { font-size: 11px; padding: 3px 8px; }
.sams-meeting-mode-banner { background: #0B1D3A; color: #fff; padding: 8px 16px; border-radius: 4px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.sams-meeting-mode-banner .sams-meeting-clock { font-family: monospace; font-size: 18px; }

/* Roll Call Modal */
.sams-rollcall-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: #fff; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); padding: 20px; z-index: 10000; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; }
.sams-rollcall-modal h4 { margin: 0 0 12px; }
.sams-rollcall-modal .sams-rc-member { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #eee; }
.sams-rollcall-modal .sams-rc-member .sams-rc-btns button { margin-left: 4px; padding: 2px 10px; border: 1px solid #ccc; border-radius: 3px; cursor: pointer; background: #fff; }
.sams-rollcall-modal .sams-rc-btns button.active-yes { background: #2ECC71; color: #fff; border-color: #2ECC71; }
.sams-rollcall-modal .sams-rc-btns button.active-no { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.sams-rollcall-modal .sams-rc-btns button.active-absent { background: #95a5a6; color: #fff; border-color: #95a5a6; }
.sams-rollcall-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); z-index: 9999; }

/* ── Focus Mode (CivicPlus-style one-at-a-time) ───────────────────────────── */
.sams-focus-mode .sams-meeting-bar { padding: 12px 16px; background: #fff; border: 2px solid #1258C2; border-radius: 8px; margin: 8px 0 16px; }
.sams-focus-mode .sams-meeting-bar .sams-live-notes { font-size: 15px; min-height: 80px; border: 2px solid #ddd; padding: 10px; }
.sams-focus-mode .sams-item-row-main .sams-item-title { font-size: 18px !important; font-weight: bold !important; }
.sams-focus-mode .sams-section-header .sams-section-title { font-size: 20px !important; }
.sams-focus-mode .sams-vote-bar { gap: 8px !important; }
.sams-focus-mode .sams-vote-bar .sams-btn { font-size: 13px !important; padding: 6px 14px !important; }
.sams-focus-mode .sams-vote-bar select { font-size: 13px; padding: 4px; }
.sams-focus-active { box-shadow: 0 0 0 3px #1258C2; border-radius: 6px; }
.sams-script-prompt { transition: opacity 0.3s; }
.sams-focus-mode .sams-script-prompt { font-size: 14px !important; padding: 8px 12px; background: #f0f4ff; border-radius: 4px; }

/* ── Item Detail Panel ─────────────────────────────────────────────────────── */
.sams-item-title { cursor: pointer; }
.sams-item-title:hover { background: #f0f4f8 !important; }
.sams-item-detail { border-top: 1px solid #e2e8f0; margin-top: 6px; padding-top: 6px; }
.sams-item-detail .sams-form-group label { font-size: 12px; font-weight: 600; color: #4a5568; display: block; margin-bottom: 2px; }
.sams-item-detail textarea, .sams-item-detail input[type="text"], .sams-item-detail select {
    width: 100%; padding: 6px 8px; border: 1px solid #cbd5e0; border-radius: 4px; font-size: 13px;
}
.sams-item-detail textarea:focus, .sams-item-detail input:focus, .sams-item-detail select:focus {
    border-color: #1258C2; outline: none; box-shadow: 0 0 0 2px rgba(18,88,194,0.15);
}
.sams-expand-btn { min-width: 28px; text-align: center; }

/* ── Action Fields (inline below item row) ─────────────────────────────────── */
.sams-action-fields { padding: 14px 18px; margin: 4px 0; background: #fafbfc; border: 1px solid #e2e8f0; border-left: 3px solid #1258C2; border-radius: 0 4px 4px 0; width: 100%; }
.sams-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.sams-action-grid .sams-form-full { grid-column: 1 / -1; }
.sams-action-grid .sams-form-group { margin-bottom: 0; }
.sams-action-grid .sams-form-group > label:first-child { font-size: 12px; font-weight: 600; color: #4a5568; display: block; margin-bottom: 4px; }
.sams-action-grid textarea, .sams-action-grid input[type="text"], .sams-action-grid select {
    width: 100%; padding: 6px 10px; border: 1px solid #cbd5e0; border-radius: 4px; font-size: 13px; }
.sams-action-grid textarea:focus, .sams-action-grid input:focus, .sams-action-grid select:focus {
    border-color: #1258C2; outline: none; box-shadow: 0 0 0 2px rgba(18,88,194,0.15); }

/* Radio and checkbox groups — always horizontal */
.sams-radio-group { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.sams-radio-group label { display: inline-flex !important; align-items: center; gap: 4px; font-weight: 400 !important; font-size: 13px !important; cursor: pointer; white-space: nowrap; }
.sams-radio-group label input[type="radio"],
.sams-radio-group label input[type="checkbox"] { margin: 0; vertical-align: middle; }

/* ── Type-specific inline field blocks ─────────────────────────────────────── */
.sams-rollcall-fields, .sams-procedural-fields, .sams-discussion-fields, .sams-minutes-type-fields {
    padding: 14px 18px; margin: 4px 0; background: #fafbfc; border: 1px solid #e2e8f0; border-radius: 0 4px 4px 0; width: 100%;
}
.sams-rollcall-fields { border-left: 3px solid #E8A838; }
.sams-procedural-fields { border-left: 3px solid #95a5a6; }
.sams-discussion-fields { border-left: 3px solid #2ECC71; }
.sams-minutes-type-fields { border-left: 3px solid #8e44ad; }
.sams-consent-fields { padding: 14px 18px; margin: 4px 0; background: #fafbfc; border: 1px solid #e2e8f0; border-left: 3px solid #534AB7; border-radius: 0 4px 4px 0; width: 100%; }

/* Consent and rollcall also use action-grid */
.sams-consent-fields .sams-action-grid,
.sams-rollcall-fields .sams-action-grid,
.sams-procedural-fields .sams-action-grid,
.sams-discussion-fields .sams-action-grid,
.sams-minutes-type-fields .sams-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }

/* ── Item layout — fields stretch full width below item row ────────────────── */
.sams-item { display: flex; flex-direction: column; }
.sams-item-row-main { display: flex; align-items: center; gap: 6px; padding: 8px 10px; }
.sams-action-fields, .sams-consent-fields, .sams-rollcall-fields, .sams-procedural-fields, .sams-discussion-fields, .sams-minutes-type-fields { margin-left: 0 !important; }

/* ── Vote table styling ────────────────────────────────────────────────────── */
.sams-vote-table, .sams-rc-table { width: 100% !important; border-collapse: collapse; }
.sams-vote-table th, .sams-rc-table th { text-transform: uppercase; letter-spacing: 0.3px; font-size: 11px; background: #f7fafc; padding: 8px 10px; text-align: left; font-weight: 600; }
.sams-vote-table td, .sams-rc-table td { padding: 8px 10px; border-bottom: 1px solid #edf2f7; }
.sams-vote-table select, .sams-rc-table select { min-width: 100px; padding: 4px 8px; }
.sams-vote-table tr:hover, .sams-rc-table tr:hover { background: #f7fafc; }

/* ── Action buttons row ────────────────────────────────────────────────────── */
.sams-btn-ai { background: #EEEDFE !important; color: #534AB7 !important; border-color: #CECBF6 !important; }

/* ── Separator ─────────────────────────────────────────────────────────────── */
.sams-action-grid hr { grid-column: 1 / -1; border: none; border-top: 1px solid #e2e8f0; margin: 4px 0; }
