/* Extracted from app.css */
/* ─── DEPT TABS ─── */
.dept-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.dept-tab {
    padding: 0.4rem 0.9rem;
    border: none;
    background: var(--gray-100);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    transition: all 0.15s;
}

.dept-tab:hover { background: var(--border-default); }
.dept-tab.active { background: var(--brand-500); color: var(--text-inverse); }

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-tertiary);
}

.empty-state p { margin-bottom: 1rem; }

/* ─── Shared primitives ─── */
.oo-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    border-radius: 999px;
    border: 1px solid var(--border-default);
    background: var(--gray-100);
    color: var(--text-secondary);
    white-space: nowrap;
    line-height: 1.4;
    gap: 0.28rem;
}

.oo-chip > span {
    display: inline-block;
}

.oo-chip-danger  { background: var(--danger-50);  color: var(--danger-500);  border-color: rgba(196, 58, 42, 0.18); }
.oo-chip-warn    { background: var(--warning-50); color: var(--warning-500); border-color: rgba(196, 138, 42, 0.18); }
.oo-chip-accent  { background: #FAE3D8; color: var(--brand-500); border-color: rgba(196, 86, 42, 0.2); }
.oo-chip-good    { background: var(--success-50); color: var(--success-500); border-color: rgba(45, 138, 86, 0.18); }
.oo-chip-muted   { background: var(--gray-100);   color: var(--text-secondary); }

.oo-dot {
    display: inline-block;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--text-tertiary);
    margin: 0 0.45rem;
    vertical-align: middle;
}

.oo-muted { color: var(--text-tertiary); }

.oo-ghost-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    transition: all 0.15s ease;
}
.oo-ghost-btn:hover {
    color: var(--brand-500);
    border-color: var(--brand-500);
    background: #FAE3D8;
}

.oo-inline-form { margin: 0; display: inline-flex; }

/* ─── Empty card (no one in scope) ─── */
.oo-empty-card {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}
.oo-empty-card strong {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════════════════ */

.oo-home { display: flex; flex-direction: column; gap: 1.75rem; }

.oo-section {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.oo-section-head {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.oo-section-title-group {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
}
.oo-section-title-group h2 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
.oo-section-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--gray-100);
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    min-width: 1.4rem;
    text-align: center;
}
.oo-section-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* Tone accent — a thin left stripe on the section card grid, no heavy tinting. */
.oo-section-accent .oo-section-head { border-bottom-color: rgba(196, 86, 42, 0.25); }
.oo-section-warn   .oo-section-head { border-bottom-color: rgba(196, 138, 42, 0.3); }
.oo-section-danger .oo-section-head { border-bottom-color: rgba(196, 58, 42, 0.3); }

.oo-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 0.75rem;
}

.oo-section-empty-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    padding: 0.75rem 0;
    font-style: italic;
}

.oo-home-redesign {
    gap: 2rem;
}

.oo-home-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.oo-home-summary {
    margin-top: -0.25rem;
}

.oo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.oo-kpi-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.oo-kpi-card-accent { border-color: rgba(196, 86, 42, 0.22); }
.oo-kpi-card-warn { border-color: rgba(196, 138, 42, 0.26); }
.oo-kpi-card-danger { border-color: rgba(196, 58, 42, 0.26); }

.oo-kpi-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
}

.oo-kpi-value {
    font-family: var(--font-sans);
    font-size: 1.55rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.oo-kpi-helper {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.oo-home-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oo-focus-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oo-focus-section {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface-primary);
    padding: 1rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.oo-focus-section-accent { border-color: rgba(196, 86, 42, 0.22); }
.oo-focus-section-warn { border-color: rgba(196, 138, 42, 0.26); }
.oo-focus-section-danger { border-color: rgba(196, 58, 42, 0.26); }

.oo-focus-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.oo-focus-head h3 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.oo-focus-head p {
    margin-top: 0.15rem;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.oo-mini-note {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.oo-focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}

.oo-section-grid-recent {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
}

/* ─── Person card ─── */
.oo-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.oo-card:hover {
    border-color: var(--brand-500);
    transform: translateY(-1px);
    box-shadow: var(--shadow-xs);
    color: inherit;
}

.oo-person-card-headline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.oo-person-card-identity { min-width: 0; }
.oo-mini-badge {
    flex: 0 0 auto;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    background: var(--gray-100);
    border-radius: 999px;
    padding: 0.2rem 0.45rem;
    font-weight: 600;
}
.oo-person-card-name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oo-person-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oo-person-card-when {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding: 0.5rem 0.7rem;
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    margin-top: 0.1rem;
}
.oo-person-card-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.oo-person-card-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.oo-person-card-date.oo-muted,
.oo-person-card-time.oo-muted {
    color: var(--text-tertiary);
    font-weight: 500;
}

.oo-person-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.oo-person-card-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
}

.oo-person-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.oo-person-card-stat {
    background: var(--gray-100);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}

.oo-person-card-stat-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.92rem;
}

.oo-person-card-stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.oo-person-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    padding-top: 0.15rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.05rem;
}

.oo-person-card-footer-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
}

.oo-person-card-footer-value {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: right;
}

.oo-person-card-focus {
    min-height: 100%;
}

.oo-person-card-recent {
    gap: 0.75rem;
}

.oo-recent-card-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-500);
}

.oo-recent-card-summary {
    font-size: 0.87rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.oo-recent-card-summary.oo-muted {
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════════════
   PERSON PAGE
   ═══════════════════════════════════════════════════════════════════ */

.oo-person-page { display: flex; flex-direction: column; gap: 1.25rem; }

.oo-back {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    align-self: flex-start;
    padding: 0.2rem 0;
}
.oo-back:hover { color: var(--brand-500); }

/* ─── Top bar ─── */
.oo-person-topbar {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}
.oo-person-topbar-identity { flex: 1; min-width: 0; }
.oo-person-topbar-identity h1 {
    font-size: 1.75rem;
}
.oo-person-topbar-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.15rem;
}

.oo-person-topbar-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 0.85rem;
    align-items: center;
}
.oo-fact {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.oo-fact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
}
.oo-fact-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}
.oo-fact-primary .oo-fact-value { color: var(--brand-500); font-family: var(--font-sans); }
.oo-fact-muted .oo-fact-value { color: var(--text-tertiary); font-weight: 500; }

.oo-person-topbar-actions {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* ─── Cadence collapsible form ─── */
.oo-cadence-panel {
    position: relative;
}
.oo-cadence-panel > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
}
.oo-cadence-panel > summary::-webkit-details-marker { display: none; }
.oo-cadence-panel[open] > summary {
    background: var(--gray-100);
    border-color: var(--brand-500);
    color: var(--brand-500);
}

.oo-cadence-form {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 20;
    background: var(--surface-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1rem;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.oo-cadence-form label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.oo-field-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
}
.oo-cadence-form select,
.oo-cadence-form input[type="text"] {
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    background: var(--surface-primary);
    color: var(--text-primary);
}
.oo-cadence-form select:focus,
.oo-cadence-form input[type="text"]:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px #FAE3D8;
}
.oo-cadence-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.25rem;
}

/* ─── Tabs ─── */
.oo-tabs {
    display: flex;
    gap: 0.15rem;
    border-bottom: 1px solid var(--border-default);
    overflow-x: auto;
}
.oo-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1rem;
    margin-bottom: -1px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.oo-tab:hover {
    color: var(--text-primary);
    background: var(--gray-100);
}
.oo-tab.active {
    color: var(--brand-500);
    border-bottom-color: var(--brand-500);
    font-weight: 600;
}
.oo-tab-count {
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--text-secondary);
    padding: 0.05rem 0.45rem;
    border-radius: 999px;
    min-width: 1.3rem;
    text-align: center;
}
.oo-tab.active .oo-tab-count {
    background: #FAE3D8;
    color: var(--brand-500);
}

/* ─── Body grid ─── */
.oo-person-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1.5rem;
    align-items: start;
}

.oo-person-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

/* ─── Panels ─── */
.oo-panel {
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.oo-panel-muted { background: var(--gray-50); }

.oo-panel-head h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
.oo-panel-sub {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.oo-panel-empty {
    padding: 0.85rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* ─── Suggested topics panel ─── */
.oo-panel-suggested {
    border-color: rgba(196, 86, 42, 0.2);
    background: linear-gradient(180deg, #FAE3D8 0%, var(--surface-primary) 65%);
}
.oo-suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.oo-suggestion {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin: 0;
}
.oo-suggestion-body { flex: 1; min-width: 0; }
.oo-suggestion-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.oo-suggestion-source {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 0.1rem;
}
.oo-suggestion-text {
    font-size: 0.92rem;
    color: var(--text-primary);
    margin-top: 0.4rem;
    line-height: 1.45;
}
.oo-suggestion-add {
    background: transparent;
    color: var(--brand-500);
    border: 1px solid var(--brand-500);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.oo-suggestion-add:hover {
    background: var(--brand-500);
    color: var(--text-inverse);
}

/* ─── Item list (topics, actions, closed) ─── */
.oo-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.oo-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.oo-item-body { flex: 1; min-width: 0; }
.oo-item-text {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.oo-item-meta {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 0.3rem;
}
.oo-item-closed {
    opacity: 0.65;
}
.oo-item-closed .oo-item-text {
    text-decoration: line-through;
    text-decoration-color: var(--text-tertiary);
    text-decoration-thickness: 1px;
}

/* ─── Compose form ─── */
.oo-compose {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.oo-compose textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    background: var(--surface-primary);
    color: var(--text-primary);
    resize: vertical;
    min-height: 4rem;
}
.oo-compose textarea:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px #FAE3D8;
}
.oo-compose-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.oo-compose-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

/* ─── Notes list ─── */
.oo-note-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.oo-note {
    padding: 0.85rem 1rem;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid #FAE3D8;
    border-radius: var(--radius-lg);
}
.oo-note-meta {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.35rem;
}
.oo-note-author { font-weight: 600; color: var(--text-secondary); }
.oo-note-body {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ─── History ─── */
.oo-history-list,
.oo-decision-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.oo-history-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.oo-history-date {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-500);
}
.oo-history-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.oo-history-summary {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-top: 0.35rem;
    line-height: 1.5;
}

.oo-decision {
    padding: 0.75rem 0.85rem;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--warning-500);
    border-radius: var(--radius-lg);
}
.oo-decision-body {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.5;
}
.oo-decision-meta {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 0.35rem;
}

/* ─── Prep sidebar ─── */
.oo-prep {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: sticky;
    top: calc(0px + 1rem);
}
.oo-prep-card {
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 1rem 1.1rem;
}
.oo-prep-title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.005em;
}

.oo-prep-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    margin: 0;
}
.oo-prep-grid dt {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
    align-self: center;
}
.oo-prep-grid dd {
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.oo-pulse-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}
.oo-pulse-good   { background: var(--success-500); box-shadow: 0 0 0 3px var(--success-50); }
.oo-pulse-warn   { background: var(--warning-500); box-shadow: 0 0 0 3px var(--warning-50); }
.oo-pulse-danger { background: var(--danger-500);  box-shadow: 0 0 0 3px var(--danger-50); }

.oo-prep-collapsible { padding: 0; }
.oo-prep-collapsible > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1.1rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.oo-prep-collapsible > summary::-webkit-details-marker { display: none; }
.oo-prep-collapsible > summary::after {
    content: "+";
    font-size: 1.1rem;
    color: var(--text-tertiary);
    font-weight: 400;
}
.oo-prep-collapsible[open] > summary { border-bottom: 1px solid var(--border-subtle); }
.oo-prep-collapsible[open] > summary::after { content: "−"; }

.oo-prep-excerpt {
    padding: 0.75rem 1.1rem;
}
.oo-prep-excerpt-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}
.oo-prep-excerpt p {
    font-size: 0.85rem;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
}
.oo-prep-excerpt + .oo-prep-excerpt { border-top: 1px solid var(--border-subtle); }

.oo-prep-goals,
.oo-prep-actions {
    list-style: none;
    margin: 0;
    padding: 0.6rem 1.1rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.oo-prep-goal {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.25rem 0.65rem;
    color: inherit;
    text-decoration: none;
    align-items: center;
}
.oo-prep-goal:hover .oo-prep-goal-title { color: var(--brand-500); }
.oo-prep-goal-title {
    grid-column: 1 / 2;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oo-prep-goal-bar {
    grid-column: 1 / 2;
    height: 4px;
    background: var(--border-subtle);
    border-radius: 999px;
    overflow: hidden;
}
.oo-prep-goal-fill {
    height: 100%;
    background: var(--brand-500);
    border-radius: inherit;
    transition: width 0.3s ease;
}
.oo-prep-goal-pct {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.oo-prep-actions li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.oo-prep-action-title {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

/* ─── Modal: Start a 1:1 ──────────────────────────────────────── */
.oo-modal[hidden] { display: none; }
.oo-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: oo-modal-in 0.18s ease-out;
}
@keyframes oo-modal-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.oo-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(44, 37, 32, 0.55);
    backdrop-filter: blur(4px);
}
.oo-modal-panel {
    position: relative;
    background: var(--surface-primary);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: oo-modal-panel-in 0.2s ease-out;
}
@keyframes oo-modal-panel-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.oo-modal-open { overflow: hidden; }

.oo-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border-subtle);
}
.oo-modal-head h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}
.oo-modal-close {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.4rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.oo-modal-close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

.oo-modal-body {
    padding: 1.1rem 1.35rem 1.35rem;
    overflow-y: auto;
}
.oo-modal-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.oo-modal-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--surface-primary);
    color: var(--text-primary);
}
.oo-modal-input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px #FAE3D8;
}

.oo-modal-results {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 320px;
    overflow-y: auto;
}
.oo-modal-result {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.12s ease;
    font-family: inherit;
    color: var(--text-primary);
}
.oo-modal-result:hover,
.oo-modal-result:focus-visible {
    background: var(--gray-100);
    border-color: var(--border-default);
    outline: none;
}
.oo-modal-result-busy {
    opacity: 0.5;
    pointer-events: none;
}
.oo-modal-result-name {
    font-weight: 600;
    font-size: 0.92rem;
}
.oo-modal-result-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}
.oo-modal-empty {
    padding: 0.85rem;
    color: var(--text-tertiary);
    font-size: 0.88rem;
    text-align: center;
}
.oo-modal-hint {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-top: 0.85rem;
}

@media (max-width: 640px) {
    .oo-home-head {
        flex-direction: column;
        align-items: stretch;
    }
    .oo-start-btn { align-self: flex-start; }
    .oo-toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    .oo-toast { max-width: none; }
}

/* ─── 1:1 page polish overrides ─── */
.oo-topbar-helper {
    margin-top: 0.6rem;
    font-size: 0.84rem;
    color: var(--text-tertiary);
}

.oo-person-body {
    display: block;
    margin-top: 1.25rem;
}

.oo-complete-form-shell {
    position: relative;
}

.oo-complete-confirm {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 25;
    width: min(360px, calc(100vw - 2rem));
    background: var(--surface-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 0.95rem;
}

.oo-complete-confirm-copy {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.oo-complete-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.oo-complete-form-shell.is-confirming [data-oo-complete-trigger] {
    visibility: hidden;
}

.oo-time-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.oo-field-help {
    margin: -0.15rem 0 0;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.oo-agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 1rem;
    align-items: start;
}

.oo-agenda-primary,
.oo-agenda-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.oo-panel-tight {
    padding: 1rem 1.1rem;
}

.oo-panel-head-compact h3 {
    font-size: 0.98rem;
}

.oo-panel-head-compact .oo-panel-sub {
    margin-top: 0.12rem;
}

.oo-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.oo-preview-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.oo-preview-title {
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--text-primary);
}

.oo-preview-more {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.oo-inline-link {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--brand-500);
    text-decoration: none;
}

.oo-inline-link:hover {
    text-decoration: underline;
}

.oo-prep-goals-open,
.oo-prep-actions-open {
    padding: 0;
}

.oo-prep-excerpt-divided {
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 1020px) {
    .oo-agenda-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .oo-time-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .oo-complete-confirm {
        left: 0;
        right: auto;
        width: min(360px, calc(100vw - 2rem));
    }
}

/* ─── 1:1 agenda redesign: make actions first-class ───────────── */
.oo-panel-head-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.oo-agenda-focus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.oo-panel-focus {
    min-height: 100%;
}

.oo-panel-actions {
    border-color: rgba(196, 86, 42, 0.16);
    box-shadow: inset 0 0 0 1px rgba(196, 86, 42, 0.04);
}

.oo-panel-context {
    margin-top: 1rem;
}

.oo-context-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.oo-context-card {
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem 1.05rem;
}

.oo-context-card .oo-panel-head {
    margin-bottom: 0.1rem;
}

.oo-context-card .oo-panel-sub {
    margin-top: 0.18rem;
}

.oo-context-card .oo-prep-excerpt {
    padding-left: 0;
    padding-right: 0;
}

.oo-context-card .oo-prep-actions,
.oo-context-card .oo-prep-goals {
    margin-top: 0.1rem;
}

@media (max-width: 1020px) {
    .oo-agenda-focus,
    .oo-context-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .oo-panel-head-split {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ─── 1:1 agenda refresh: quick capture + centered workspace ───── */
.oo-panel-meeting-board {
    border-color: rgba(196, 86, 42, 0.18);
    box-shadow: inset 0 0 0 1px rgba(196, 86, 42, 0.04);
}

.oo-meeting-board-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.oo-quick-capture {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.oo-quick-switch {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.oo-quick-switch-btn,
.oo-inline-action {
    appearance: none;
    border: 1px solid var(--border-default);
    background: var(--surface-primary);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.14s ease;
}

.oo-quick-switch-btn:hover,
.oo-inline-action:hover {
    border-color: rgba(196, 86, 42, 0.32);
    color: var(--brand-500);
    background: #FAE3D8;
}

.oo-quick-switch-btn.active {
    border-color: rgba(196, 86, 42, 0.38);
    background: #FAE3D8;
    color: var(--brand-500);
}

.oo-quick-form textarea {
    min-height: 78px;
}

.oo-quick-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.oo-quick-helper {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.oo-agenda-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
    margin-top: 1rem;
}

.oo-panel-head-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.oo-agenda-footer-note {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.oo-agenda-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.oo-agenda-footer-copy strong {
    color: var(--text-primary);
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .oo-agenda-board {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .oo-quick-form-actions,
    .oo-agenda-footer-note,
    .oo-panel-head-actions {
        align-items: stretch;
        justify-content: flex-start;
    }

    .oo-inline-action,
    .oo-quick-switch-btn {
        width: auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   1:1 redesign — calmer hierarchy, clearer workflow
   ═══════════════════════════════════════════════════════════════════ */
.oo-person-page {
    gap: 1rem;
}

.oo-person-shell,
.oo-tabs-shell {
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    box-shadow: var(--shadow-xs);
}

.oo-person-topbar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.4rem 1.5rem;
    border-bottom: none;
}

.oo-person-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
}

.oo-person-hero-main {
    min-width: 0;
    flex: 1;
}

.oo-person-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--brand-500);
    margin-bottom: 0.45rem;
}

.oo-person-topbar-identity h1,
.oo-person-hero h1 {
    font-size: 2.2rem;
    letter-spacing: -0.03em;
}

.oo-person-topbar-sub {
    margin-top: 0.2rem;
    font-size: 1rem;
}

.oo-person-topbar-actions {
    align-items: flex-start;
    gap: 0.7rem;
}

.oo-person-topbar-actions .btn-primary,
.oo-person-topbar-actions .btn-secondary,
.oo-cadence-panel > summary {
    min-height: 42px;
    padding-inline: 1rem;
}

.oo-person-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 220px;
    gap: 0.9rem;
}

.oo-schedule-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(250,248,245,0.9) 0%, rgba(255,255,255,0.92) 100%);
}

.oo-schedule-toolbar-copy {
    min-width: 0;
    display: grid;
    gap: 0.28rem;
}

.oo-schedule-toolbar-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.oo-schedule-toolbar-note,
.oo-schedule-toolbar-helper {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.oo-schedule-toolbar-helper {
    color: var(--brand-500);
}

.oo-schedule-toolbar-actions {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.oo-inline-panel {
    position: relative;
}

.oo-inline-panel > summary::-webkit-details-marker {
    display: none;
}

.oo-inline-panel > summary {
    list-style: none;
}

.oo-inline-panel[open] > summary {
    margin-bottom: 0.55rem;
}

.oo-inline-panel-actions {
    margin-top: 0.7rem;
}

.oo-reschedule-form-shell {
    min-width: 290px;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: var(--surface-primary);
    box-shadow: var(--shadow-md);
}

.oo-reschedule-form-shell input[type="datetime-local"] {
    width: 100%;
    min-height: 42px;
    padding: 0.72rem 0.85rem;
    border: 1px solid var(--border-default);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    box-sizing: border-box;
}

.oo-reschedule-form-shell input[type="datetime-local"]:focus {
    outline: none;
    border-color: rgba(196, 86, 42, 0.55);
    box-shadow: 0 0 0 3px rgba(196, 86, 42, 0.12);
}

.oo-skip-form-shell {
    position: relative;
}

.oo-skip-confirm {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(340px, 88vw);
    z-index: 30;
}

.oo-overview-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(250,248,245,0.65) 100%);
    min-width: 0;
}

.oo-overview-card-primary {
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
    border-color: rgba(196, 86, 42, 0.16);
}

.oo-overview-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.oo-overview-value {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.oo-overview-card-primary .oo-overview-value {
    color: var(--brand-500);
}

.oo-overview-meta,
.oo-overview-meta-row {
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.oo-overview-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.1rem;
}

.oo-overview-card-compact {
    justify-content: space-between;
}

.oo-overview-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.oo-overview-metric {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.oo-overview-metric-value {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    line-height: 1;
}

.oo-overview-metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.oo-tabs-shell {
    padding: 0.25rem 0.35rem;
}

.oo-tabs {
    gap: 0.35rem;
    border-bottom: none;
    overflow-x: auto;
}

.oo-tab {
    border-radius: 12px;
    border-bottom: none;
    margin-bottom: 0;
    padding: 0.72rem 0.95rem;
}

.oo-tab:hover {
    background: var(--gray-100);
}

.oo-tab.active {
    background: #FAE3D8;
    color: var(--brand-500);
}

.oo-tab.active .oo-tab-count {
    background: rgba(196, 86, 42, 0.14);
}

.oo-person-body {
    margin-top: 0;
}

.oo-person-main {
    gap: 1rem;
}

.oo-agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}

.oo-agenda-primary,
.oo-agenda-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.oo-agenda-side {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
}

.oo-panel {
    gap: 0.95rem;
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    border-color: var(--border-subtle);
    box-shadow: var(--shadow-xs);
}

.oo-panel-soft {
    background: linear-gradient(180deg, rgba(252, 232, 222, 0.45) 0%, rgba(255,255,255,1) 55%);
    border-color: rgba(196, 86, 42, 0.14);
}

.oo-panel-stack-card,
.oo-panel-rail-card {
    background: var(--surface-primary);
}

.oo-panel-head-tight {
    gap: 0.18rem;
}

.oo-panel-head h3 {
    font-size: 1.1rem;
}

.oo-panel-sub {
    font-size: 0.88rem;
    max-width: 70ch;
}

.oo-meeting-board-meta,
.oo-panel-head-actions {
    align-items: center;
}

.oo-quick-capture {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.oo-quick-switch {
    margin-bottom: 0.7rem;
}

.oo-quick-switch-btn,
.oo-inline-action {
    background: var(--surface-primary);
    border-color: var(--border-default);
    color: var(--text-secondary);
    padding: 0.42rem 0.8rem;
}

.oo-inline-action {
    cursor: pointer;
}

.oo-quick-switch-btn.active {
    background: #FAE3D8;
    border-color: rgba(196, 86, 42, 0.32);
}

.oo-quick-form textarea,
.oo-compose textarea {
    display: block;
    width: 100%;
    min-height: 118px;
    border-radius: 14px;
    padding: 0.95rem 1rem;
    font-size: 0.96rem;
    line-height: 1.55;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(44, 37, 32, 0.03);
}

.oo-quick-form-actions,
.oo-compose-actions {
    margin-top: 0;
}

.oo-quick-helper,
.oo-compose-hint {
    font-size: 0.84rem;
}

.oo-suggestion-list {
    gap: 0.65rem;
}

.oo-suggestion {
    gap: 0.8rem;
    align-items: center;
    padding: 0.9rem 0.95rem;
}

.oo-suggestion-meta-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.oo-suggestion-source {
    margin-top: 0;
}

.oo-suggestion-text {
    margin-top: 0.35rem;
}

.oo-suggestion-add {
    padding: 0.48rem 0.8rem;
}

.oo-item-list,
.oo-note-list,
.oo-history-list,
.oo-decision-list {
    gap: 0.65rem;
}

.oo-item {
    align-items: center;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, rgba(250,248,245,0.95) 0%, rgba(255,255,255,0.9) 100%);
    border-radius: 14px;
}

.oo-item-strong {
    border-color: rgba(196, 86, 42, 0.16);
    background: linear-gradient(180deg, rgba(252, 232, 222, 0.35) 0%, rgba(255,255,255,1) 100%);
}

.oo-item-text {
    font-size: 0.95rem;
}

.oo-item-meta {
    font-size: 0.76rem;
}

.oo-ghost-btn {
    white-space: nowrap;
}

.oo-panel-empty {
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.oo-rail-note-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.oo-rail-note-body {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.oo-prep-grid {
    gap: 0.6rem 1rem;
}

.oo-prep-grid dt {
    font-size: 0.78rem;
}

.oo-prep-grid dd {
    font-size: 0.89rem;
}

.oo-prep-excerpt {
    padding-left: 0;
    padding-right: 0;
}

.oo-prep-goals-open,
.oo-prep-actions-open {
    margin-top: 0.15rem;
}

.oo-prep-goal,
.oo-prep-actions li {
    min-width: 0;
}

.oo-complete-confirm,
.oo-cadence-form {
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.oo-cadence-form {
    min-width: 320px;
}

.oo-time-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.oo-history-item,
.oo-decision,
.oo-note {
    border-radius: 14px;
}

.oo-history-item {
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
}

.oo-history-entry {
    display: block;
    width: 100%;
    padding: 0.9rem 1rem;
    background: linear-gradient(180deg, rgba(250,248,245,0.95) 0%, rgba(255,255,255,0.9) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
}

.oo-history-summary-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    cursor: pointer;
    list-style: none;
}

.oo-history-body {
    min-width: 0;
}

.oo-history-summary-row::-webkit-details-marker {
    display: none;
}

.oo-history-counts,
.oo-last-meeting-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.55rem;
}

.oo-history-detail {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.9rem;
}

.oo-history-section {
    display: grid;
    gap: 0.45rem;
}

.oo-history-section h4 {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oo-history-detail-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.45rem;
}

.oo-history-detail-list-notes {
    padding-left: 0;
    list-style: none;
}

.oo-history-detail-list-notes li {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(74, 64, 56, 0.08);
    border-radius: 12px;
    background: rgba(255,255,255,0.72);
}

.oo-history-detail-meta {
    display: inline-block;
    margin-left: 0.45rem;
    color: var(--text-dim);
    font-size: 0.78rem;
}

.oo-last-meeting-date {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}
@media (max-width: 900px) {
    .oo-person-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .oo-overview-card-compact {
        grid-column: 1 / -1;
    }

    .oo-schedule-toolbar {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .oo-schedule-toolbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .oo-inline-panel,
    .oo-reschedule-form-shell,
    .oo-skip-form-shell {
        width: 100%;
    }

    .oo-inline-panel > summary,
    .oo-skip-form-shell > button {
        width: 100%;
        justify-content: center;
    }

    .oo-skip-confirm {
        position: static;
        width: 100%;
        margin-top: 0.55rem;
    }

    .oo-history-summary-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .oo-history-date {
        font-size: 0.82rem;
    }

    .oo-history-entry {
        padding: 0.85rem 0.9rem;
    }
}


.oo-last-meeting-note {
    margin-top: 0.7rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.oo-note {
    background: linear-gradient(180deg, rgba(250,248,245,0.92) 0%, rgba(255,255,255,0.95) 100%);
}

.oo-panel-muted {
    background: linear-gradient(180deg, rgba(250,248,245,0.85) 0%, rgba(255,255,255,0.9) 100%);
}

@media (max-width: 1180px) {
    .oo-person-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .oo-overview-card-compact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1020px) {
    .oo-person-topbar {
        padding: 1.15rem;
    }
    .oo-person-hero {
        flex-direction: column;
    }
    .oo-person-topbar-actions {
        width: 100%;
    }
    .oo-agenda-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .oo-agenda-side {
        position: static;
    }
}

@media (max-width: 720px) {
    .oo-person-overview {
        grid-template-columns: minmax(0, 1fr);
    }
    .oo-overview-card-compact {
        grid-column: auto;
    }
    .oo-tabs-shell {
        padding: 0.2rem;
    }
}

@media (max-width: 640px) {
    .oo-person-topbar-identity h1,
    .oo-person-hero h1 {
        font-size: 1.8rem;
    }
    .oo-panel,
    .oo-person-topbar {
        border-radius: 16px;
    }
    .oo-quick-form-actions,
    .oo-compose-actions,
    .oo-panel-head-actions,
    .oo-panel-head-split {
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
    }
    .oo-person-topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .oo-person-topbar-actions .btn-primary,
    .oo-person-topbar-actions .btn-secondary,
    .oo-cadence-panel > summary {
        width: 100%;
        justify-content: center;
    }
    .oo-time-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .oo-cadence-form {
        left: 0;
        right: 0;
        width: min(100vw - 2rem, 360px);
        min-width: 0;
    }
}


.oo-quick-form {
    display: grid;
    gap: 0.8rem;
}

.oo-quick-form-actions {
    align-items: flex-start;
}

.oo-quick-form-actions .btn-primary {
    min-width: 132px;
}

@media (max-width: 1200px) {
    .oo-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .oo-attention-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .oo-kpi-grid,
    .oo-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .oo-home-row {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 0.9fr);
    }
    .oo-home-row-stats,
    .oo-home-row-notes {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .oo-home-hero,
    .oo-home-banner,
    .oo-recent-row-head,
    .oo-directory-group-head {
        flex-direction: column;
        align-items: stretch;
    }
    .oo-kpi-grid,
    .oo-kpi-strip,
    .oo-focus-grid,
    .oo-section-grid-recent,
    .oo-person-card-stats {
        grid-template-columns: 1fr;
    }
    .oo-focus-head,
    .oo-person-card-headline,
    .oo-person-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .oo-person-card-footer-value {
        text-align: left;
    }
    .oo-home-row {
        grid-template-columns: 1fr;
    }
}

/* ─── Prep snapshot refresh ─── */
.oo-prep-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.oo-prep-stat-card {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.65rem 0.75rem;
    background: rgba(255,255,255,0.02);
    min-width: 0;
}

.oo-prep-stat-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 0.2rem;
}

.oo-prep-stat-value {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oo-prep-summary-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.6rem;
    align-items: center;
    margin-top: 0.8rem;
}

.oo-prep-summary-label {
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.oo-prep-summary-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.oo-prep-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.7rem;
}

.oo-prep-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.oo-prep-list-item {
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    min-width: 0;
}

.oo-prep-list-item.is-danger {
    border-color: rgba(220, 68, 55, 0.28);
    background: rgba(220, 68, 55, 0.05);
}

.oo-prep-list-item.is-warn {
    border-color: rgba(255, 166, 0, 0.26);
    background: rgba(255, 166, 0, 0.05);
}

.oo-prep-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.6rem;
}

.oo-prep-row-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

a.oo-prep-row-title:hover {
    color: var(--brand-500);
}

.oo-prep-row-meta {
    color: var(--text-tertiary);
    font-size: 0.76rem;
    flex-shrink: 0;
}

.oo-prep-row-body {
    margin-top: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.oo-prep-memory-date {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 0.45rem;
}

.oo-prep-memory-summary,
.oo-prep-memory-note {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.oo-prep-memory-note {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .oo-prep-stat-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .oo-prep-row-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   1:1 HOME v2 — Simple people list
   ═══════════════════════════════════════════════════════════════════ */

.oo-home-v2 {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;
}

.oo-home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.oo-home-header h1 {
    font-family: var(--font-sans);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ─── Empty state ─── */
.oo-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
}

.oo-empty-state-icon {
    font-size: 2rem;
    color: var(--brand-500);
    margin-bottom: 0.75rem;
}

.oo-empty-state strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.oo-empty-state p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    max-width: 380px;
    margin: 0 auto;
}

/* ─── People list ─── */
.oo-people-list {
    background: var(--surface-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    overflow: hidden;
}

.oo-list-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-tertiary);
    background: var(--gray-50);
    border-bottom: 1px solid var(--border-subtle);
}

.oo-list-section-label:not(:first-child) {
    border-top: 1px solid var(--border-subtle);
}

.oo-list-section-count {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    background: var(--border-subtle);
    color: var(--text-tertiary);
    min-width: 18px;
    text-align: center;
}

/* ─── Person row ─── */
.oo-person-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.15rem;
    gap: 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.oo-person-row:last-child {
    border-bottom: none;
}

.oo-person-row:hover {
    background: var(--gray-100);
}

.oo-person-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--border-subtle);
    color: var(--text-secondary);
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
}

.oo-person-identity {
    flex: 1;
    min-width: 0;
}

.oo-person-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.oo-relationship-badge {
    font-size: 0.62rem;
    font-weight: 500;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    background: var(--border-subtle);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.oo-person-role {
    font-size: 0.74rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.05rem;
}

.oo-person-schedule {
    text-align: right;
    flex-shrink: 0;
    min-width: 130px;
}

.oo-person-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.oo-person-time {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 0.05rem;
}

.oo-person-nodate {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-style: italic;
}

.oo-person-chevron {
    color: var(--text-tertiary);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.1s;
}

.oo-person-row:hover .oo-person-chevron {
    opacity: 1;
}

/* ─── Header v2: compact single-row card ─── */
.oo-person-topbar-v2.oo-person-topbar-compact {
  padding: 16px 22px !important;
  border-radius: 14px !important;
  margin-bottom: 8px !important;
  border: 1px solid #e8ddd4 !important;
  background: #fff !important;
}
.oo-person-topbar-v2 .oo-person-topbar-row {
  grid-template-columns: minmax(200px, 1fr) auto auto auto !important;
  gap: 28px !important;
  align-items: center !important;
}
.oo-person-topbar-v2 .oo-person-hero-compact {
  gap: 12px !important;
}
.oo-person-topbar-v2 .oo-person-avatar {
  width: 42px !important;
  height: 42px !important;
  font-size: 1.05rem !important;
  background: #f0e9e3 !important;
  color: #6d5f55 !important;
  font-family: 'Inter', sans-serif !important;
}
.oo-person-identity-v2 h1,
.oo-person-topbar-v2 .oo-person-identity h1 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  color: #2a2119 !important;
  margin: 0 !important;
}
.oo-person-topbar-v2 .oo-person-topbar-sub {
  font-size: 0.8rem !important;
  margin-top: 1px !important;
  color: #8a7d73 !important;
  font-family: 'Inter', sans-serif !important;
}

/* Header stat columns v2 */
.oo-person-topbar-stat-v2.oo-person-topbar-stat {
  min-height: unset !important;
  padding-left: 24px !important;
  border-left: 1px solid #ece3dc !important;
  gap: 1px !important;
  justify-content: center !important;
}
.oo-person-topbar-stat-v2 .oo-overview-label {
  font-size: 0.65rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
  color: #9a8d83 !important;
  font-weight: 600 !important;
  gap: 6px !important;
  display: flex !important;
  align-items: center !important;
}
.oo-person-topbar-stat-v2 .oo-overview-value {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #2a2119 !important;
}
.oo-person-topbar-stat-v2 .oo-overview-meta {
  display: none !important;
}
/* Hide schedule actions inside the stat — these show in the cadence panel instead */
.oo-person-topbar-stat-v2 .oo-schedule-actions {
  display: none !important;
}

/* Stat icons v2 */
.oo-person-topbar-stat-v2 .oo-overview-label::before {
  width: 15px !important;
  height: 15px !important;
}

/* Action buttons v2 */
.oo-person-topbar-actions-v2.oo-person-topbar-actions-compact {
  gap: 8px !important;
}
.oo-person-topbar-actions-v2 .btn-primary {
  min-height: 36px !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  font-size: 0.85rem !important;
}
.oo-person-topbar-actions-v2 .btn-secondary,
.oo-person-topbar-actions-v2 .oo-cadence-panel > summary {
  min-height: 36px !important;
  border-radius: 8px !important;
  padding: 0 16px !important;
  font-size: 0.85rem !important;
}

/* ─── Tabs v2 ─── */
.oo-tabs-shell { margin-bottom: 6px !important; }
.oo-tabs {
  border-radius: 12px !important;
  padding: 3px !important;
  gap: 2px !important;
  border-color: #e8ddd4 !important;
}
.oo-tab {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  padding: 8px 16px !important;
  border-radius: 9px !important;
  font-family: 'Inter', sans-serif !important;
  color: #6d5f55 !important;
}
.oo-tab.active {
  background: #fff1e8 !important;
  color: #d46a32 !important;
}
.oo-tab-count { display: none !important; }

/* ─── Composer v2 ─── */
.oo-panel-composer-v2.oo-panel {
  background: #fff !important;
  padding: 16px 18px 14px !important;
  border-radius: 14px !important;
}
.oo-compose-headline {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #5a4f46 !important;
  margin-bottom: 12px !important;
  font-family: 'Inter', sans-serif !important;
}
.oo-panel-composer-v2 .oo-panel-head-tight {
  margin-bottom: 0 !important;
}

/* Quick switch buttons — kill ::before pseudo-element icons, use inline SVGs */
.oo-panel-composer-v2 .oo-quick-switch {
  gap: 8px !important;
  margin-bottom: 4px !important;
}
.oo-panel-composer-v2 .oo-quick-switch-btn {
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 0.85rem !important;
  border-radius: 999px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  border: 1px solid #e4d7cf !important;
  background: #fff !important;
  color: #6d5f55 !important;
  gap: 6px !important;
}
.oo-panel-composer-v2 .oo-quick-switch-btn::before {
  display: none !important;
}
.oo-panel-composer-v2 .oo-quick-switch-btn.active {
  background: #fff1e8 !important;
  border-color: #edc8b3 !important;
  color: #d46a32 !important;
}
.oo-panel-composer-v2 .oo-quick-switch-btn .oo-btn-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

/* Input field */
.oo-quick-input-v2 {
  width: 100% !important;
  padding: 10px 14px !important;
  border: 1px solid #e4d7cf !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.88rem !important;
  color: #342a24 !important;
  background: #faf8f6 !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box !important;
}
.oo-quick-input-v2::placeholder {
  color: #a89a8f !important;
}
.oo-quick-input-v2:focus {
  border-color: #d46a32 !important;
  box-shadow: 0 0 0 3px rgba(212, 106, 50, 0.08) !important;
  background: #fff !important;
}
.oo-quick-form-v2 .oo-quick-form-actions,
.oo-quick-form-v2 .oo-quick-helper {
  display: none !important;
}

/* ─── Section panels v2 (Topics / Follow-ups) ─── */
.oo-panel-section-v2.oo-panel {
  border-radius: 14px !important;
  padding: 16px 18px !important;
  background: #fff !important;
}
.oo-panel-section-v2 .oo-panel-sub {
  display: none !important;
}
.oo-panel-section-v2 .oo-panel-head h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #2a2119 !important;
  letter-spacing: 0 !important;
}
.oo-panel-head-actions-v2 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.oo-panel-head-actions-v2 .oo-chip {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  min-height: 24px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
}
.oo-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8a7d73;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.oo-sort-label svg { color: #8a7d73; }

/* ─── Item cards v2 ─── */
.oo-item-v2.oo-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  min-height: unset !important;
  background: #fff !important;
  border: 1px solid #ece4dc !important;
}
.oo-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.oo-item-icon-topic {
  background: #f5ede7;
  color: #8a7a6d;
}
.oo-item-icon-followup {
  background: #edf5ed;
  color: #5a8a5a;
}
.oo-item-v2 .oo-item-body {
  flex: 1;
  min-width: 0;
}
.oo-item-v2 .oo-item-text {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #2a2119 !important;
  line-height: 1.4 !important;
  font-family: 'Inter', sans-serif !important;
}
.oo-item-desc {
  font-size: 0.82rem;
  color: #7d7168;
  margin-top: 2px;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}
.oo-item-v2 .oo-item-meta {
  font-size: 0.76rem !important;
  color: #9b8d82 !important;
  margin-top: 3px !important;
  font-family: 'Inter', sans-serif !important;
}

/* Item actions v2 */
.oo-item-actions-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* "Open" status badge — clearly NOT a button */
.oo-badge-open {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  background: #fef7f2;
  color: #c4612e;
  border: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: default;
  user-select: none;
}

/* 3-dot menu */
.oo-item-menu {
  position: relative;
}
.oo-item-menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: #b0a59a;
  transition: all 0.15s ease;
}
.oo-item-menu > summary::-webkit-details-marker { display: none; }
.oo-item-menu > summary:hover {
  background: #f5ede7;
  color: #5a4f46;
}
.oo-item-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #e8ddd3;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(46, 31, 20, 0.1);
  padding: 4px;
  min-width: 140px;
  margin-top: 4px;
}
.oo-item-menu-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 500;
  color: #5a4f46;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.oo-item-menu-btn:hover {
  background: #f5ede7;
}

/* ─── Sidebar v2 ─── */
.oo-agenda-side-v2 .oo-panel {
  border-radius: 12px !important;
  padding: 14px 16px !important;
}

/* Rail section headers v2 */
.oo-rail-v2 .oo-panel-head h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  color: #2a2119 !important;
  gap: 8px !important;
}
.oo-rail-v2 .oo-panel-head h3::before {
  font-size: 0.85rem !important;
}
.oo-rail-v2.oo-rail-section .oo-panel-sub {
  font-size: 0.8rem !important;
  margin-top: 2px !important;
}

/* Prep list v2 — clean icon + text list */
.oo-prep-list-v2 {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}
.oo-prep-list-item-v2 {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 8px 0 !important;
  border-bottom: none !important;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
}
.oo-prep-item-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  background: #f3ece6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8a7a6d;
  margin-top: 1px;
}
.oo-prep-item-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: #3d322b;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}
.oo-view-all-link {
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  color: #d46a32 !important;
  margin-top: 8px !important;
  display: inline-block !important;
  font-family: 'Inter', sans-serif !important;
}

/* Last 1:1 recap header with date */
.oo-panel-head-with-date {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.oo-prep-date-badge {
  font-size: 0.76rem;
  font-weight: 500;
  color: #9a8d83;
  font-family: 'Inter', sans-serif;
}

/* Check-in items v2 */
.oo-prep-checkin-list {
  gap: 0 !important;
}
.oo-prep-checkin-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 7px 0 !important;
  border-bottom: none !important;
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
}
.oo-prep-checkin-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 6px;
  background: #f0ebe6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #7d7168;
}
.oo-prep-checkin-content {
  flex: 1;
  min-width: 0;
}
.oo-prep-checkin-content .oo-prep-row-title {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: #3d322b !important;
  font-family: 'Inter', sans-serif !important;
}
.oo-prep-checkin-content .oo-prep-row-body {
  font-size: 0.8rem !important;
  color: #7d7168 !important;
  margin-top: 1px !important;
  font-family: 'Inter', sans-serif !important;
}

/* Memory summary in sidebar v2 */
.oo-rail-v2 .oo-prep-memory-summary {
  font-size: 0.84rem !important;
  line-height: 1.5 !important;
  color: #4a3d36 !important;
  font-family: 'Inter', sans-serif !important;
}
.oo-rail-v2 .oo-prep-memory-note {
  font-size: 0.82rem !important;
  color: #7d7168 !important;
  margin-top: 6px !important;
  font-family: 'Inter', sans-serif !important;
}

/* ─── Agenda layout grid v2 ─── */
.oo-agenda-layout {
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.72fr) !important;
  gap: 14px !important;
}

/* ─── Person body v2 — kill old 2-col grid ─── */
.oo-person-body {
  display: block !important;
  grid-template-columns: unset !important;
}

/* ─── Panel spacing cleanup ─── */
.oo-panel + .oo-panel { margin-top: 10px !important; }
.oo-panel-head-tight { margin-bottom: 8px !important; }

/* ─── Responsive v2 ─── */
@media (max-width: 1280px) {
  .oo-person-topbar-v2 .oo-person-topbar-row {
    grid-template-columns: minmax(180px, 1fr) auto auto auto !important;
    gap: 20px !important;
  }
}
@media (max-width: 1120px) {
  .oo-person-topbar-v2 .oo-person-topbar-row {
    grid-template-columns: 1fr 1fr !important;
  }
  .oo-person-topbar-actions-v2 {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
}
@media (max-width: 980px) {
  .oo-person-topbar-v2 .oo-person-topbar-row {
    grid-template-columns: 1fr !important;
  }
  .oo-person-topbar-stat-v2.oo-person-topbar-stat {
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid #ece4dc !important;
    padding-top: 10px !important;
  }
  .oo-agenda-layout {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════
   V2 FIXES — Round 3
   ═══════════════════════════════════════════════════════ */

/* ─── Inline submit button in composer ─── */
.oo-quick-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.oo-quick-input-wrap .oo-quick-input-v2 {
  padding-right: 44px !important;
}
.oo-quick-submit-v2 {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #d46a32;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  padding: 0;
  flex-shrink: 0;
}
.oo-quick-submit-v2:hover {
  background: #c25e29;
}
.oo-quick-submit-v2 svg {
  transform: rotate(180deg);
}

/* ─── Sidebar "Bring to this 1:1" items v2 ─── */
.oo-prep-bring-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  list-style: none;
}
.oo-prep-bring-item + .oo-prep-bring-item {
  border-top: 1px solid #f2ece7;
}
.oo-prep-bring-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 7px;
  background: #f3ece6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #8a7a6d;
  margin-top: 1px;
}
.oo-prep-bring-icon-danger {
  background: #fdeeed;
  color: var(--danger-500);
}
.oo-prep-bring-icon-warn {
  background: #fef6ec;
  color: #c87f2a;
}
.oo-prep-bring-icon-accent {
  background: #fef3ec;
  color: #d46a32;
}

.oo-prep-bring-icon-success {
  background: #edf5ed;
  color: #3d7a3d;
}
.oo-prep-mini-heading {
  margin: 10px 0 4px;
  font-size: 0.72rem;
  color: #9a8d83;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.oo-prep-bring-content {
  flex: 1;
  min-width: 0;
}
.oo-prep-bring-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #2a2119;
  line-height: 1.4;
  font-family: 'Inter', sans-serif;
}
.oo-prep-bring-body {
  font-size: 0.8rem;
  color: #7d7168;
  line-height: 1.4;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}
.oo-prep-bring-tag {
  font-size: 0.72rem;
  color: #9a8d83;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   V2 FIXES — Round 4: UX-driven sidebar
   ═══════════════════════════════════════════════════════ */

/* ─── Alert chips (watchouts) ─── */
.oo-prep-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.oo-prep-alert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
}
.oo-prep-alert-accent {
  background: #fef3ec;
  color: #c4612e;
}
.oo-prep-alert-warn {
  background: #fef6ec;
  color: #b8791f;
}
.oo-prep-alert-danger {
  background: #fdeeed;
  color: #b83a2e;
}
.oo-prep-alert-muted {
  background: #f3ece6;
  color: #6d5f55;
}

/* ─── Check-in items — label as inline tag, body as content ─── */
.oo-prep-checkin-item {
  padding: 6px 0 !important;
  border: none !important;
  background: transparent !important;
  display: block !important;
}
.oo-prep-checkin-item + .oo-prep-checkin-item {
  border-top: 1px solid #f2ece7 !important;
  padding-top: 8px !important;
}
.oo-prep-checkin-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-family: 'Inter', sans-serif;
}
.oo-prep-checkin-label-default {
  background: #edf5ed;
  color: #3d7a3d;
}
.oo-prep-checkin-label-danger {
  background: #fdeeed;
  color: #b83a2e;
}
.oo-prep-checkin-label-warn {
  background: #fef6ec;
  color: #b8791f;
}
.oo-prep-checkin-content {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}
.oo-prep-checkin-content .oo-prep-row-body {
  font-size: 0.84rem !important;
  color: #3d322b !important;
  line-height: 1.45 !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
}

/* ─── Prep bring items — tighter ─── */
.oo-prep-bring-item {
  padding: 6px 0 !important;
}
.oo-prep-bring-item + .oo-prep-bring-item {
  border-top: 1px solid #f2ece7 !important;
}
.oo-prep-bring-icon {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 6px !important;
}
.oo-prep-bring-title {
  font-size: 0.84rem !important;
  font-weight: 500 !important;
}
.oo-prep-bring-tag {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════
   V3 — Unified meeting page (no tab switching)
   ═══════════════════════════════════════════════════════ */

/* ─── Section cards ─── */
.oo-section-v3.oo-panel {
  border-radius: 14px !important;
  padding: 16px 18px !important;
  background: #fff !important;
  margin-top: 0 !important;
}
.oo-section-v3 + .oo-section-v3 {
  margin-top: 12px !important;
}
.oo-section-header-v3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.oo-section-header-v3 h3 {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  color: #2a2119 !important;
  margin: 0 !important;
  letter-spacing: 0 !important;
}
.oo-section-count {
  font-size: 0.76rem;
  font-weight: 600;
  color: #8a7d73;
  font-family: 'Inter', sans-serif;
}

/* ─── Inline input row ─── */
.oo-section-input-v3 {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.oo-input-v3 {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e4d7cf;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: #342a24;
  background: #faf8f6;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.oo-input-v3::placeholder { color: #a89a8f; }
.oo-input-v3:focus {
  border-color: #d46a32;
  box-shadow: 0 0 0 2px rgba(212, 106, 50, 0.08);
  background: #fff;
}
.oo-textarea-v3 {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid #e4d7cf;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: #342a24;
  background: #faf8f6;
  outline: none;
  resize: vertical;
  min-height: 48px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.oo-textarea-v3::placeholder { color: #a89a8f; }
.oo-textarea-v3:focus {
  border-color: #d46a32;
  box-shadow: 0 0 0 2px rgba(212, 106, 50, 0.08);
  background: #fff;
}
.oo-assign-select-v3 {
  padding: 8px 10px;
  border: 1px solid #e4d7cf;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #5a4f46;
  background: #faf8f6;
  outline: none;
  max-width: 130px;
}
.oo-assign-select-v3:focus {
  border-color: #d46a32;
}
.oo-add-btn-v3 {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: #d46a32;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
  flex-shrink: 0;
}
.oo-add-btn-v3:hover { background: #c25e29; }
.oo-add-btn-note {
  align-self: flex-end;
}

/* Notes input: stack vertically */
.oo-section-v3 .oo-section-input-v3:has(.oo-textarea-v3) {
  flex-direction: column;
  align-items: stretch;
}

/* ─── Item rows v3 ─── */
.oo-item-v3.oo-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  min-height: unset !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #f2ece7 !important;
}
.oo-item-v3:last-child {
  border-bottom: none !important;
}
.oo-item-v3 .oo-item-body { flex: 1; min-width: 0; }
.oo-item-v3 .oo-item-text {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: #2a2119 !important;
  font-family: 'Inter', sans-serif !important;
}
.oo-item-v3 .oo-item-meta {
  font-size: 0.74rem !important;
  color: #9b8d82 !important;
  margin-top: 1px !important;
  font-family: 'Inter', sans-serif !important;
}
.oo-item-list-v3 {
  gap: 0 !important;
}

/* Close button (×) */
.oo-close-btn-v3 {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #b0a59a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
  padding: 0;
}
.oo-close-btn-v3:hover {
  background: #fdeeed;
  color: #b83a2e;
}

/* Done button (✓) */
.oo-done-btn-v3 {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #b0a59a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  flex-shrink: 0;
  padding: 0;
}
.oo-done-btn-v3:hover {
  background: #edf5ed;
  color: #3d7a3d;
}

/* ─── Notes v3 ─── */
.oo-note-v3 {
  border-left: none !important;
  padding: 8px 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid #f2ece7 !important;
  border-radius: 0 !important;
}
.oo-note-v3:last-child { border-bottom: none !important; }
.oo-note-v3 .oo-note-meta {
  font-size: 0.72rem !important;
  gap: 4px !important;
}
.oo-note-v3 .oo-note-body {
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
  font-family: 'Inter', sans-serif !important;
}

/* ─── Tabs v2 adjustments ─── */
.oo-tabs-v2 {
  margin-bottom: 10px !important;
}

/* ─── Kill old composer styles ─── */
.oo-panel-composer-v2,
.oo-quick-capture,
.oo-quick-switch,
.oo-quick-input-wrap,
.oo-quick-form-v2 {
  /* These are unused now but keeping selectors in case old HTML remnants exist */
}

/* 1:1 meeting workspace cleanup — explicit carry-forward copy + prep-only rail */
.oo-section-header-v3-stack {
  align-items: flex-start;
  gap: 14px;
}
.oo-section-header-v3-stack > div {
  min-width: 0;
}
.oo-section-helper-v3 {
  margin: 4px 0 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #8a7d73;
}
.oo-prep-intro-copy {
  margin-top: 6px !important;
  line-height: 1.45 !important;
}
.oo-rail-section-prep .oo-panel-head h3::before {
  content: "📌";
}
.oo-rail-section-work .oo-panel-head h3::before {
  content: "↗";
  color: #df6931;
}
.oo-rail-section-completed .oo-panel-head h3::before {
  content: "✓";
  color: #3d7a3d;
}
.oo-prep-bring-icon-success {
  background: #edf5ed !important;
  color: #3d7a3d !important;
}
@media (max-width: 900px) {
  .oo-section-header-v3-stack {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ─── Goals in prep sidebar ─── */
.oo-prep-goal-item {
    list-style: none;
    padding: 6px 0;
}
.oo-prep-goal-item + .oo-prep-goal-item {
    border-top: 1px solid #f2ece7;
}
.oo-prep-goal-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 2px 4px;
    border-radius: 6px;
    transition: background 0.15s;
}
.oo-prep-goal-link:hover {
    background: var(--gray-50, #f9f7f5);
}
.oo-prep-goal-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary, #1a1715);
    line-height: 1.35;
    margin-bottom: 4px;
}
.oo-prep-goal-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.oo-prep-goal-bar {
    flex: 1;
    height: 6px;
    background: var(--gray-100, #eee9e3);
    border-radius: 3px;
    overflow: hidden;
}
.oo-prep-goal-bar-fill {
    height: 100%;
    background: var(--brand-500, #d46a32);
    border-radius: 3px;
    transition: width 0.3s ease;
}
.oo-prep-goal-bar-low {
    background: var(--amber-500, #f59e0b);
}
.oo-prep-goal-bar-high {
    background: var(--green-500, #22c55e);
}
.oo-prep-goal-pct {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary, #6b6560);
    min-width: 28px;
    text-align: right;
}
.oo-prep-goal-status {
    font-size: 0.68rem;
    color: var(--amber-600, #d97706);
    margin-top: 2px;
}

/* ─── FOCUS LAYOUTS ─── */
@media (min-width: 981px) {
    /* Org chart gets a true edge-to-edge canvas. The regular app padding was
       winning the cascade and leaving a visible gutter above/left of the chart. */
    .app-authenticated.app-page-org-chart .main-content {
        width: 100%;
        max-width: none;
        height: 100vh;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .app-page-org-chart {
        --app-sidebar-collapsed-width: 86px;
        --app-sidebar-expanded-width: 228px;
    }

    .app-page-org-chart .app-shell {
        display: block;
        min-height: 100vh;
    }

    .app-page-org-chart .app-stage {
        width: calc(100vw - var(--app-sidebar-collapsed-width));
        min-height: 100vh;
        margin-left: var(--app-sidebar-collapsed-width);
        overflow: hidden;
    }

    .app-page-org-chart .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--app-sidebar-collapsed-width);
        height: 100vh;
        box-sizing: border-box;
        padding-left: 0.65rem;
        padding-right: 0.65rem;
        gap: 0.7rem;
        overflow-x: hidden;
        overflow-y: auto;
        box-shadow: none;
        transition: width 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease;
        z-index: 120;
    }

    .app-page-org-chart .app-sidebar:hover,
    .app-page-org-chart .app-sidebar:focus-within {
        width: var(--app-sidebar-expanded-width);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        box-shadow: 18px 0 36px rgba(44, 37, 32, 0.08);
    }

    .app-page-org-chart .app-brand,
    .app-page-org-chart .app-nav-link,
    .app-page-org-chart .app-account-card {
        justify-content: center;
        white-space: nowrap;
    }

    .app-page-org-chart .app-sidebar:hover .app-brand,
    .app-page-org-chart .app-sidebar:focus-within .app-brand,
    .app-page-org-chart .app-sidebar:hover .app-nav-link,
    .app-page-org-chart .app-sidebar:focus-within .app-nav-link,
    .app-page-org-chart .app-sidebar:hover .app-account-card,
    .app-page-org-chart .app-sidebar:focus-within .app-account-card {
        justify-content: flex-start;
    }

    .app-page-org-chart .app-brand {
        width: 100%;
        font-size: 1.3rem;
    }

    .app-page-org-chart .app-brand span:not(.brand-mark),
    .app-page-org-chart .app-nav-link span,
    .app-page-org-chart .app-account-copy {
        display: none;
    }

    .app-page-org-chart .app-sidebar:hover .app-brand span:not(.brand-mark),
    .app-page-org-chart .app-sidebar:focus-within .app-brand span:not(.brand-mark),
    .app-page-org-chart .app-sidebar:hover .app-nav-link span,
    .app-page-org-chart .app-sidebar:focus-within .app-nav-link span {
        display: inline;
    }

    .app-page-org-chart .app-sidebar:hover .app-account-copy,
    .app-page-org-chart .app-sidebar:focus-within .app-account-copy {
        display: flex;
    }

    .app-page-org-chart .app-sidebar-org,
    .app-page-org-chart .app-sidebar-section-label,
    .app-page-org-chart .app-signout-btn {
        display: none;
    }

    .app-page-org-chart .app-sidebar:hover .app-sidebar-org,
    .app-page-org-chart .app-sidebar:focus-within .app-sidebar-org,
    .app-page-org-chart .app-sidebar:hover .app-sidebar-section-label,
    .app-page-org-chart .app-sidebar:focus-within .app-sidebar-section-label,
    .app-page-org-chart .app-sidebar:hover .app-signout-btn,
    .app-page-org-chart .app-sidebar:focus-within .app-signout-btn {
        display: block;
    }

    .app-page-org-chart .app-nav-link {
        min-height: 46px;
        padding: 0.7rem 0;
        border-radius: 14px;
    }

    .app-page-org-chart .app-sidebar:hover .app-nav-link,
    .app-page-org-chart .app-sidebar:focus-within .app-nav-link {
        padding-left: 0.78rem;
        padding-right: 0.78rem;
    }

    .app-page-org-chart .app-sidebar-footer {
        gap: 0.45rem;
    }

    .app-page-org-chart .app-account-card {
        padding: 0.55rem;
        border-radius: 14px;
    }

    .app-page-org-chart .app-sidebar:hover .app-account-card,
    .app-page-org-chart .app-sidebar:focus-within .app-account-card {
        padding: 0.72rem 0.8rem;
    }
}

/* ORG CHART VIEWPORT + HOVER SIDEBAR OVERRIDE */
@media (min-width: 981px) {
    html:has(body.app-page-org-chart),
    body.app-page-org-chart {
        height: 100%;
        overflow: hidden !important;
    }

    .app-page-org-chart {
        --app-sidebar-collapsed-width: 86px;
        --app-sidebar-expanded-width: 228px;
        height: 100vh;
        overflow: hidden !important;
        background: var(--gray-50);
    }

    .app-page-org-chart .app-shell {
        display: block;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden !important;
    }

    .app-page-org-chart .app-stage {
        width: calc(100vw - var(--app-sidebar-collapsed-width));
        height: 100vh;
        min-height: 0;
        margin-left: var(--app-sidebar-collapsed-width);
        overflow: hidden !important;
    }

    .app-authenticated.app-page-org-chart .main-content {
        width: 100%;
        max-width: none;
        height: 100vh;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden !important;
    }

    .app-page-org-chart .app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--app-sidebar-collapsed-width);
        height: 100vh;
        box-sizing: border-box;
        padding: 0.72rem 0.65rem;
        gap: 0.58rem;
        overflow: hidden !important;
        scrollbar-width: none;
        box-shadow: none;
        transition: width 0.18s ease, box-shadow 0.18s ease, padding 0.18s ease;
        z-index: 120;
    }

    .app-page-org-chart .app-sidebar::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .app-page-org-chart .app-sidebar:hover,
    .app-page-org-chart .app-sidebar:focus-within {
        width: var(--app-sidebar-expanded-width);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        box-shadow: 18px 0 36px rgba(44, 37, 32, 0.08);
    }

    .app-page-org-chart .app-sidebar-top {
        min-height: 36px;
        flex: 0 0 auto;
    }

    .app-page-org-chart .app-brand,
    .app-page-org-chart .app-nav-link,
    .app-page-org-chart .app-account-card {
        justify-content: center;
        white-space: nowrap;
    }

    .app-page-org-chart .app-sidebar:hover .app-brand,
    .app-page-org-chart .app-sidebar:focus-within .app-brand,
    .app-page-org-chart .app-sidebar:hover .app-nav-link,
    .app-page-org-chart .app-sidebar:focus-within .app-nav-link,
    .app-page-org-chart .app-sidebar:hover .app-account-card,
    .app-page-org-chart .app-sidebar:focus-within .app-account-card {
        justify-content: flex-start;
    }

    .app-page-org-chart .app-brand {
        width: 100%;
        font-size: 1.28rem;
    }

    .app-page-org-chart .app-brand span:not(.brand-mark),
    .app-page-org-chart .app-nav-link span,
    .app-page-org-chart .app-account-copy {
        display: none;
    }

    .app-page-org-chart .app-sidebar:hover .app-brand span:not(.brand-mark),
    .app-page-org-chart .app-sidebar:focus-within .app-brand span:not(.brand-mark),
    .app-page-org-chart .app-sidebar:hover .app-nav-link span,
    .app-page-org-chart .app-sidebar:focus-within .app-nav-link span {
        display: inline;
    }

    .app-page-org-chart .app-sidebar:hover .app-account-copy,
    .app-page-org-chart .app-sidebar:focus-within .app-account-copy {
        display: flex;
    }

    .app-page-org-chart .app-sidebar-org,
    .app-page-org-chart .app-sidebar-section-label,
    .app-page-org-chart .app-signout-btn {
        display: none;
    }

    .app-page-org-chart .app-sidebar:hover .app-sidebar-org,
    .app-page-org-chart .app-sidebar:focus-within .app-sidebar-org,
    .app-page-org-chart .app-sidebar:hover .app-sidebar-section-label,
    .app-page-org-chart .app-sidebar:focus-within .app-sidebar-section-label,
    .app-page-org-chart .app-sidebar:hover .app-signout-btn,
    .app-page-org-chart .app-sidebar:focus-within .app-signout-btn {
        display: block;
    }

    .app-page-org-chart .app-sidebar-org {
        padding: 0.75rem 0.85rem;
        margin: 0;
    }

    .app-page-org-chart .app-sidebar-section-label {
        margin: 0.08rem 0 0.02rem;
    }

    .app-page-org-chart .app-nav {
        gap: 0.18rem;
    }

    .app-page-org-chart .app-nav-link {
        min-height: 42px;
        padding: 0.58rem 0;
        border-radius: 14px;
    }

    .app-page-org-chart .app-sidebar:hover .app-nav-link,
    .app-page-org-chart .app-sidebar:focus-within .app-nav-link {
        padding-left: 0.78rem;
        padding-right: 0.78rem;
    }

    .app-page-org-chart .app-sidebar-footer {
        gap: 0.35rem;
        padding-top: 0.55rem;
        margin-top: auto;
        flex: 0 0 auto;
    }

    .app-page-org-chart .app-account-card {
        padding: 0.5rem;
        border-radius: 14px;
    }

    .app-page-org-chart .app-sidebar:hover .app-account-card,
    .app-page-org-chart .app-sidebar:focus-within .app-account-card {
        padding: 0.62rem 0.75rem;
    }

    .app-page-org-chart .app-signout-btn {
        min-height: 34px;
        padding: 0.48rem 0.75rem;
    }
}

/* Account menu + org chart collapsed-sidebar handling */
@media (min-width: 981px) {
    .app-page-org-chart .app-account-menu {
        width: 100%;
    }

    .app-page-org-chart .app-account-chevron {
        display: none;
    }

    .app-page-org-chart .app-sidebar:hover .app-account-chevron,
    .app-page-org-chart .app-sidebar:focus-within .app-account-chevron {
        display: inline-flex;
    }

    .app-page-org-chart .app-account-popover {
        min-width: 180px;
    }
}


/* ─── STABLE SIDEBAR WORKSPACE FOOTER ───
   Keeps the org chart collapsed rail and expanded flyout vertically aligned.
   The workspace block lives in the footer instead of above navigation, so hover
   expansion reveals labels without pushing the nav buttons down. */
.app-sidebar-workspace {
    flex-shrink: 0;
}

.app-sidebar-footer .app-sidebar-workspace {
    padding: 0.62rem 0.75rem;
    border-radius: 14px;
    background: var(--gray-50);
}

@media (min-width: 981px) {
    .app-page-org-chart .app-sidebar-top {
        height: 42px;
        min-height: 42px;
    }

    .app-page-org-chart .app-nav,
    .app-page-org-chart .app-nav-secondary {
        flex: 0 0 auto;
    }

    .app-page-org-chart .app-sidebar-section-label {
        display: block;
        height: 18px;
        margin: 0.08rem 0 0.02rem;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .app-page-org-chart .app-sidebar:hover .app-sidebar-section-label,
    .app-page-org-chart .app-sidebar:focus-within .app-sidebar-section-label {
        display: block;
        opacity: 1;
    }

    .app-page-org-chart .app-sidebar-workspace {
        display: none;
        margin: 0 0 0.35rem;
        padding: 0.5rem 0.62rem;
    }

    .app-page-org-chart .app-sidebar:hover .app-sidebar-workspace,
    .app-page-org-chart .app-sidebar:focus-within .app-sidebar-workspace {
        display: block;
    }

    .app-page-org-chart .app-sidebar-footer {
        margin-top: auto;
        padding-top: 0.55rem;
        border-top: 1px solid var(--border-subtle);
    }

    .app-page-org-chart .app-sidebar:not(:hover):not(:focus-within) .app-sidebar-footer {
        align-items: center;
    }

    .app-page-org-chart .app-sidebar:not(:hover):not(:focus-within) .app-account-card {
        width: 54px;
        height: 54px;
        padding: 0;
        justify-content: center;
    }

    .app-page-org-chart .app-sidebar:hover .app-account-card,
    .app-page-org-chart .app-sidebar:focus-within .app-account-card {
        width: 100%;
        height: auto;
    }
}

/* Profile notification preferences */
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 32px;
    font-weight: 600;
    color: var(--text-primary, #1f2937);
}
.checkbox-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* Profile settings cleanup */
.profile-page-header {
    max-width: 760px;
}
.profile-settings-grid {
    max-width: 760px;
    gap: 1rem;
}
.profile-summary-block {
    padding: 1.1rem 1.15rem;
}
.profile-badge-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-top: 0.45rem;
}
.profile-badge-row .person-dept {
    margin: 0;
}
.profile-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}
.profile-section-heading h3 {
    margin-bottom: 0;
}
.profile-section-heading p {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.86rem;
    white-space: normal;
    text-align: right;
}
.profile-two-column-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.profile-compact-block {
    min-width: 0;
}
.profile-settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.profile-form-actions {
    display: flex;
    justify-content: flex-end;
}
.profile-toggle-list,
.profile-access-list {
    display: grid;
    gap: 0.65rem;
}
.profile-toggle-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.75rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--gray-100);
    cursor: pointer;
}
.profile-toggle-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
}
.profile-toggle-row strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}
.profile-toggle-row em {
    display: block;
    margin-top: 0.16rem;
    color: var(--text-tertiary);
    font-style: normal;
    font-size: 0.82rem;
    line-height: 1.35;
}
.profile-access-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.78rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.profile-access-row:last-child {
    border-bottom: 0;
}
.profile-access-row strong {
    display: block;
    font-size: 0.92rem;
    color: var(--text-primary);
}
.profile-access-row span {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.84rem;
    margin-top: 0.12rem;
}
@media (max-width: 760px) {
    .profile-two-column-row {
        grid-template-columns: 1fr;
    }
    .profile-section-heading {
        display: block;
    }
    .profile-section-heading p {
        margin-top: 0.25rem;
        text-align: left;
    }
    .profile-access-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
.auth-secondary-action {
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
}

/* ─── EMPTY STATES ─── */
.empty-state {
    padding: 4rem 2rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

.empty-state p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.empty-state .btn-primary {
    margin-top: 0.25rem;
}

/* ─── CARDS & PANELS ─── */
.card,
.au-panel,
.perm-card,
.cs-card,
.cs-setting,
.billing-overview-panel,
.billing-section-panel,
.billing-ledger-v3,
.billing-section-v3,
.admin-sso-card,
.au-detail-card,
.au-viewer,
.au-access-form,
.au-access-item,
.billing-alert,
.billing-alert-v3 {
    background: var(--surface-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(44, 37, 32, 0.04) !important;
}

.perm-card,
.cs-card,
.cs-setting {
    padding: 1.15rem 1.25rem;
}

/* Card headings */
.perm-card h2,
.cs-card h2,
.cs-setting h3 {
    font-family: var(--font-sans) !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    margin: 0 0 0.3rem;
    color: var(--text-primary) !important;
}

.perm-card > p,
.cs-setting > p {
    font-size: 0.84rem !important;
    color: var(--text-secondary) !important;
    line-height: 1.5;
}

/* ─── PERSON ROW CONSISTENCY (people table) ─── */
.au-name {
    font-weight: 700 !important;
    font-size: 0.88rem !important;
}

.au-title {
    font-size: 0.76rem !important;
    color: var(--text-tertiary) !important;
}

.au-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    background: #FAE3D8 !important;
    color: var(--brand-500) !important;
}

/* ============================================================
   TIGHTENED STYLE — match dashboard aesthetic
   ============================================================ */

/* Panels: 18px → 12px radius, tighter padding */
.oo-panel {
    border-radius: 12px !important;
    padding: 0.85rem 1rem !important;
    gap: 0.65rem !important;
}

/* Section headers: tighter, no stack layout needed without helper text */
.oo-section-header-v3 {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}
.oo-section-header-v3-stack {
    flex-direction: row !important;
}
.oo-section-header-v3 h3 {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}
.oo-section-helper-v3 {
    display: none !important;
}
.oo-section-count {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: var(--text-tertiary) !important;
}

/* Inputs: tighter, less prominent buttons */
.oo-section-input-v3 {
    gap: 0.4rem !important;
    margin-bottom: 0.5rem !important;
}
.oo-input-v3 {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.84rem !important;
    border-radius: 8px !important;
}
.oo-textarea-v3 {
    padding: 0.45rem 0.7rem !important;
    font-size: 0.84rem !important;
    border-radius: 8px !important;
}
.oo-add-btn-v3 {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
    font-weight: 650 !important;
}

/* Assign dropdown: smaller */
.oo-assign-select-v3 {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
}

/* Item rows: flat dividers, tighter */
.oo-item-v3 {
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    margin: 0 !important;
}
.oo-item-v3:last-child {
    border-bottom: none !important;
}
.oo-item-v3:hover {
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
}
.oo-item-text {
    font-size: 0.86rem !important;
    font-weight: 600 !important;
}
.oo-item-meta {
    font-size: 0.72rem !important;
    color: var(--text-tertiary) !important;
    margin-top: 0.1rem !important;
}

/* Circle checkbox — left-side completion button */
.oo-check-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.12s, background 0.12s;
    margin-top: 2px;
}
.oo-check-btn:hover {
    border-color: var(--brand-500);
    background: var(--brand-500);
}
.oo-check-btn:hover::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    margin: 3px auto;
    background: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Completed item checkbox — filled */
.oo-check-btn-done {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    background: var(--gray-300);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.12s, background 0.12s;
    margin-top: 2px;
    position: relative;
}
.oo-check-btn-done::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    margin: 3px auto;
    background: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}
.oo-check-btn-done:hover {
    border-color: var(--brand-500);
    background: var(--brand-500);
}

/* Item row layout — checkbox left, body fills remaining */
.oo-item-v3 {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.6rem !important;
}

/* Notes: tighter */
.oo-note-v3 {
    padding: 0.4rem 0 !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.oo-note-v3:last-child {
    border-bottom: none !important;
}
.oo-note-meta {
    font-size: 0.72rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}
.oo-note-body {
    font-size: 0.84rem !important;
    margin-top: 0.15rem !important;
    line-height: 1.5 !important;
}
.oo-note-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Notes form — unified, at the bottom */
.oo-note-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.4rem !important;
    border-top: 1px solid var(--border-subtle) !important;
    padding-top: 0.55rem !important;
    margin-top: 0.3rem !important;
}
.oo-note-input-wrap {
    width: 100% !important;
}
.oo-note-input-wrap .oo-textarea-v3 {
    width: 100% !important;
    box-sizing: border-box !important;
}
.oo-note-form-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
}
.oo-note-submit {
    padding: 0.3rem 0.65rem !important;
    font-size: 0.76rem !important;
    font-weight: 650 !important;
    font-family: var(--font-sans) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-default) !important;
    background: #fff !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    transition: border-color 0.1s, color 0.1s !important;
    flex-shrink: 0 !important;
}
.oo-note-submit:hover {
    border-color: var(--brand-500) !important;
    color: var(--brand-500) !important;
}

/* Note mode toggle bar */
.oo-note-mode-bar {
    display: flex !important;
    gap: 0 !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    width: fit-content !important;
}
.oo-note-mode-btn {
    padding: 0.3rem 0.7rem !important;
    font-size: 0.74rem !important;
    font-weight: 650 !important;
    font-family: var(--font-sans) !important;
    border: none !important;
    background: #fff !important;
    color: var(--text-tertiary) !important;
    cursor: pointer !important;
    transition: background 0.12s, color 0.12s !important;
}
.oo-note-mode-btn:not(:last-child) {
    border-right: 1px solid var(--border-default) !important;
}
.oo-note-mode-btn.oo-note-mode-active {
    background: var(--gray-100) !important;
    color: var(--text-primary) !important;
}
.oo-note-mode-btn:hover:not(.oo-note-mode-active) {
    background: var(--gray-50) !important;
    color: var(--text-secondary) !important;
}

/* Private mode form transformation */
.oo-note-form[data-oo-private-mode="true"] .oo-note-input-wrap {
    background: #fef9f0 !important;
    border: 2px solid #e8a84c !important;
    border-radius: 10px !important;
    padding: 0.2rem !important;
}
.oo-note-form[data-oo-private-mode="true"] .oo-textarea-v3 {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.oo-note-form[data-oo-private-mode="true"] .oo-note-mode-hint {
    color: #b87a1a !important;
    font-weight: 700 !important;
}

/* Mode hint */
.oo-note-mode-hint {
    font-size: 0.72rem !important;
    color: var(--text-tertiary) !important;
    font-weight: 500 !important;
}

/* Private note styling in list */
.oo-note-private {
    background: var(--gray-50) !important;
    border-radius: 6px !important;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
    margin: 0.1rem 0 !important;
}
.oo-note-lock {
    font-size: 0.62rem !important;
    margin-right: 0.15rem !important;
}

/* Textarea */
.oo-textarea-v3 {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.84rem !important;
    font-family: var(--font-sans) !important;
    border: 1px solid var(--border-default) !important;
    border-radius: 8px !important;
    resize: vertical !important;
    min-height: 44px !important;
    color: var(--text-primary) !important;
}
.oo-textarea-v3:focus {
    border-color: var(--brand-500) !important;
    outline: none !important;
}

/* Empty states: match dashboard */
.oo-panel-empty {
    font-size: 0.82rem !important;
    padding: 0.6rem !important;
    border-radius: 8px !important;
}

/* Person topbar: tighter */
.oo-person-topbar-v2 {
    border-radius: 12px !important;
    padding: 0.85rem 1.1rem !important;
}

/* Sidebar panels: tighter */
.oo-panel-rail-card {
    border-radius: 12px !important;
}

/* Agenda grid: slightly tighter gap */
.oo-agenda-layout {
    gap: 0.85rem !important;
}
.oo-agenda-primary {
    gap: 0.7rem !important;
}

/* ============================================================
   HISTORY TAB — clean timeline (oo-past- prefix avoids old CSS)
   ============================================================ */
.oo-past-timeline {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}
.oo-past-entry {
    border-bottom: 1px solid var(--border-subtle) !important;
    background: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}
.oo-past-entry:last-child {
    border-bottom: none !important;
}
.oo-past-entry[open] > .oo-past-row .oo-past-chevron {
    transform: rotate(90deg);
}
.oo-past-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.6rem !important;
    padding: 0.6rem 0.75rem !important;
    cursor: pointer !important;
    list-style: none !important;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: background 0.1s !important;
}
.oo-past-row:hover {
    background: var(--gray-50) !important;
}
.oo-past-row::-webkit-details-marker {
    display: none !important;
}
.oo-past-row-left {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
}
.oo-past-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}
.oo-past-dot-success { background: var(--success-500); }
.oo-past-dot-warning { background: var(--warning-500); }
.oo-past-dot-neutral { background: var(--gray-400); }
.oo-past-dot-info    { background: var(--info-500); }
.oo-past-row-title {
    font-size: 0.86rem;
    font-weight: 650;
    color: var(--text-primary);
}
.oo-past-row-sub {
    font-weight: 500;
    color: var(--text-tertiary);
    margin-left: 0.3rem;
}
.oo-past-row-meta {
    font-size: 0.74rem;
    color: var(--text-tertiary);
    margin-top: 0.1rem;
}
.oo-past-chevron {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
    transition: transform 0.15s;
}

/* Past detail (expanded) */
.oo-past-detail {
    padding: 0 0.75rem 0.75rem 1.8rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
}
.oo-past-detail-section {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.oo-past-detail-label {
    font-size: 0.66rem;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding-bottom: 0.1rem;
}
.oo-past-detail-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--border-subtle);
}
.oo-past-detail-item:last-child {
    border-bottom: none;
}
.oo-past-detail-item-body {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}
.oo-past-detail-item-meta {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}
.oo-past-detail-empty {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-style: italic;
    padding: 0.25rem 0;
}

/* Show older meetings button */
.oo-past-show-older {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-subtle);
}
.oo-past-show-older-btn {
    width: 100%;
    padding: 0.45rem;
    background: none;
    border: 1px dashed var(--border-default);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.1s, border-color 0.1s;
}
.oo-past-show-older-btn:hover {
    color: var(--brand-500);
    border-color: var(--brand-500);
}

/* Ghost inputs — auto-create pattern */
.oo-ghost-input {
    width: 100%;
    padding: 0.45rem 0.7rem;
    font-size: 0.84rem;
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-subtle);
    border-radius: 0;
    outline: none;
    transition: border-color 0.12s;
    margin-top: 0.25rem;
}
.oo-ghost-input::placeholder {
    color: var(--text-tertiary);
}
.oo-ghost-input:focus {
    border-top-color: var(--brand-500);
}
.oo-ghost-input:disabled {
    opacity: 0.5;
}
.oo-ghost-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.25rem;
}
.oo-ghost-row .oo-ghost-input {
    border-top: none;
    margin-top: 0;
    flex: 1;
}
.oo-ghost-assign {
    padding: 0.3rem 0.45rem;
    font-size: 0.72rem;
    font-family: var(--font-sans);
    color: var(--text-secondary);
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.oo-ghost-assign:focus {
    border-color: var(--brand-500);
    outline: none;
}

/* Privacy toggle for talking points */
.oo-privacy-toggle {
    padding: 0.3rem 0.4rem;
    font-size: 0.78rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--text-tertiary);
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}
.oo-privacy-toggle:hover {
    background: var(--gray-50);
    color: var(--text-secondary);
}
.oo-privacy-toggle.is-private {
    color: var(--amber-600, #d97706);
    background: var(--amber-50, #fffbeb);
    border-color: var(--amber-200, #fde68a);
}
.oo-privacy-icon {
    font-size: 0.82rem;
}

/* Private talking point items */
.oo-item-private {
    background: var(--gray-50) !important;
    border-radius: 6px !important;
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
}
.oo-item-lock {
    font-size: 0.62rem !important;
    margin-right: 0.15rem !important;
}

/* Ghost textarea for notes */
.oo-ghost-textarea {
    resize: none;
    overflow: hidden;
    min-height: 2.2rem;
    line-height: 1.5;
}

/* ── Note composer ── */
.oo-note-composer {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.55rem;
    margin-bottom: 0.25rem;
}
.oo-note-mode-bar {
    display: flex;
    gap: 2px;
    background: var(--gray-100, #f3f4f6);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 0.4rem;
}
.oo-note-mode-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.oo-note-mode-btn:hover {
    color: var(--text-secondary);
}
.oo-note-mode-btn.is-active {
    background: #fff;
    color: var(--brand-600, #4f46e5);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 0 0 1px rgba(79, 70, 229, 0.15);
    font-weight: 700;
}
.oo-note-mode-btn[data-oo-note-mode="private"].is-active {
    background: var(--amber-100, #fef3c7);
    color: var(--amber-800, #92400e);
    box-shadow: 0 1px 3px rgba(217, 119, 6, 0.2), 0 0 0 1px rgba(217, 119, 6, 0.25);
    font-weight: 700;
}
.oo-note-input-area {
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.oo-note-input-area:focus-within {
    border-color: var(--brand-500);
}
.oo-note-input-area.is-private {
    border-color: var(--amber-300, #fcd34d);
    background: var(--amber-50, #fffbeb);
}
.oo-note-input-area.is-private:focus-within {
    border-color: var(--amber-500, #f59e0b);
}
.oo-note-private-banner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--amber-700, #b45309);
    border-bottom: 1px solid var(--amber-200, #fde68a);
}
.oo-note-private-banner svg {
    flex-shrink: 0;
    stroke: var(--amber-600, #d97706);
}
.oo-note-textarea {
    border-top: none !important;
    margin-top: 0 !important;
    background: transparent !important;
    padding: 0.45rem 0.7rem !important;
    border-radius: 0 0 8px 8px;
}

/* Shared workspace banner */
.oo-shared-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: var(--gray-50);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}
.oo-shared-banner svg {
    flex-shrink: 0;
    color: var(--text-tertiary);
}

/* Split talking point groups */
.oo-split-group {
    margin-top: 0.6rem;
}
.oo-split-group:first-of-type {
    margin-top: 0;
}
.oo-split-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 0.35rem 0 0.2rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 0.15rem;
}
.oo-panel-empty-inline {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    padding: 0.4rem 0;
    font-style: italic;
}

/* Inline edit input */
.oo-inline-edit-input {
    width: 100%;
    padding: 0;
    font-size: 0.86rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    line-height: 1.35;
}

/* Editable items get a subtle hover hint */
.oo-item-editable .oo-item-text {
    border-radius: 4px;
    transition: background 0.1s;
}
.oo-item-editable .oo-item-text:hover {
    background: var(--gray-50);
}

/* Ghost checkbox — matches saved item circle but non-interactive */
.oo-check-btn-ghost {
    display: inline-block;
    pointer-events: none;
    opacity: 0.4;
}

/* Pending item row — while typing before save */
.oo-inline-row-input {
    width: 100%;
    padding: 0;
    font-size: 0.86rem;
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-radius: 0;
    outline: none;
    line-height: 1.35;
}
.oo-inline-row-input::placeholder {
    color: var(--text-tertiary);
    font-weight: 500;
}
.oo-item-saving .oo-item-meta {
    color: var(--brand-500);
}
.oo-item-saving {
    opacity: 0.7;
}
.oo-pending-remove {
    opacity: 0.3;
    position: relative;
}
.oo-pending-remove::after {
    content: '×';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-tertiary);
    width: 100%;
    height: 100%;
}
.oo-pending-remove:hover {
    opacity: 1;
    border-color: var(--danger-500);
    background: transparent;
}
.oo-pending-remove:hover::after {
    color: var(--danger-500);
    background: none;
}

/* Completed items */
.oo-item-done .oo-item-text {
    text-decoration: line-through;
    color: var(--text-tertiary);
}
.oo-item-done .oo-item-meta {
    color: var(--text-tertiary);
}
.oo-item-done {
    opacity: 0.65;
}

/* Completed group - collapsible section */
.oo-completed-group {
    margin-top: 0.5rem;
}
.oo-completed-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    background: none;
    border: none;
    border-top: 1px solid var(--border-subtle);
    padding: 0.55rem 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 650;
    color: var(--text-tertiary);
    cursor: pointer;
    letter-spacing: 0.02em;
    border-radius: 0 0 10px 10px;
    transition: background 0.1s, color 0.1s;
}
.oo-completed-toggle:hover {
    background: var(--gray-50);
    color: var(--text-secondary);
}
.oo-completed-toggle-icon {
    font-size: 0.72rem;
    line-height: 1;
    transition: transform 0.15s;
}
.oo-completed-list {
    margin-top: 0;
    padding: 0 0.25rem;
}

/* Reopen button */
.oo-reopen-btn-v3 {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: border-color 0.1s, color 0.1s;
}
.oo-reopen-btn-v3:hover {
    border-color: var(--brand-500);
    color: var(--brand-500);
}

/* Action item assignee emphasis */
.oo-item-assignee {
    font-weight: 650;
    color: var(--text-primary);
}

/* Section lifecycle subtitles */
.oo-section-lifecycle {
    font-size: 0.68rem;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-top: 0.1rem;
}

/* (Private notes now inline with shared — no separate section) */

