* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --surface: #141414;
    --surface-2: #1c1c1e;
    --surface-3: #2c2c2e;
    --border: rgba(255,255,255,0.08);
    --text: #ffffff;
    --text-2: rgba(255,255,255,0.7);
    --text-3: rgba(255,255,255,0.4);
    --green: #30d158;
    --green-dim: rgba(48,209,88,0.15);
    --red: #ff453a;
    --red-dim: rgba(255,69,58,0.15);
    --blue: #0a84ff;
    --blue-dim: rgba(10,132,255,0.15);
    --orange: #ff9f0a;
    --orange-dim: rgba(255,159,10,0.15);
    --purple: #bf5af2;
    --purple-dim: rgba(191,90,242,0.15);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Login */
.screen { min-height: 100vh; }

#loginScreen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 48px 40px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border);
}

.login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.login-brand h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 6px;
    margin-bottom: 4px;
}

.login-brand p {
    font-size: 14px;
    color: var(--text-3);
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-3);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--green);
}

.form-group input::placeholder {
    color: var(--text-3);
}

.error-msg {
    color: var(--red);
    font-size: 14px;
    margin-bottom: 12px;
    min-height: 20px;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.85; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* Google Sign-In Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px;
    background: #ffffff;
    color: #1f1f1f;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.btn-google:hover {
    background: #f1f1f1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-note {
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
    margin-top: 16px;
}

/* User Avatar */
.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* Top Bar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.topbar-brand-center {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger */
.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}

.hamburger-btn:hover {
    background: var(--surface-2);
    color: var(--text);
}

/* Sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
}

.sidebar-overlay.open { display: block; }

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 400;
    display: flex;
    flex-direction: column;
    transition: left 0.25s ease;
}

.sidebar.open { left: 0; }

.sidebar-brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-footer {
    padding: 12px 8px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.sidebar-item:hover {
    background: var(--surface-2);
    color: var(--text);
}

.sidebar-item.active {
    background: var(--surface-3);
    color: var(--text);
    font-weight: 600;
}

.sidebar-logout {
    color: var(--red) !important;
}

.sidebar-logout:hover {
    background: var(--red-dim) !important;
}

/* Pages */
.page { display: block; }

.org-select {
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    outline: none;
    cursor: pointer;
    min-width: 200px;
}

.org-select option {
    background: var(--surface-2);
    color: var(--text);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-3);
}

.btn-ghost {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--text);
}

.btn-back {
    padding: 6px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 12px;
}

.btn-back:hover {
    background: var(--surface-3);
    color: var(--text);
}

/* Main Content */
.main-content {
    padding: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: var(--surface-3);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-2);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 0 12px 0;
    position: relative;
    flex-wrap: wrap;
}

.filter-spacer {
    flex: 1;
}

/* Segmented Toggle */
.seg-toggle {
    display: inline-flex;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.seg-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-3);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.seg-btn.active {
    background: var(--surface-3);
    color: var(--text);
}

.seg-btn:hover:not(.active) {
    color: var(--text-2);
}

/* Filter Pills */
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    user-select: none;
}

.filter-pill:hover {
    background: var(--surface-3);
    color: var(--text);
}

.pill-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.pill-chevron {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    opacity: 0.5;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    min-width: 180px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    margin-top: 4px;
}

.dropdown-menu.open {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 6px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: var(--surface-3);
    color: var(--text);
}

.dropdown-item.selected {
    color: var(--text);
}

.dropdown-item .check {
    width: 16px;
    font-size: 13px;
    color: var(--green);
}

/* Custom Date Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.modal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 560px;
    width: 90%;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-btn {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s;
}

.modal-btn:hover {
    background: var(--surface-2);
}

.modal-btn-confirm {
    color: var(--green);
}

.date-pickers {
    display: flex;
    gap: 24px;
    padding: 24px 20px;
}

.date-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-col label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-2);
}

.date-col input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    outline: none;
    color-scheme: dark;
}

.date-col input[type="date"]:focus {
    border-color: var(--green);
}

/* Stats Row */
.stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    margin-top: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.stat-dot.green { background: var(--green); }
.stat-dot.blue { background: var(--blue); }
.stat-dot.purple { background: var(--purple); }

.stat-value {
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 15px;
    color: var(--text-3);
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
}

/* Instances Grid */
.instances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 340px);
    gap: 16px;
}

/* View Toggle */
.view-toggle-spacer { flex: 1; }

.view-toggle {
    display: inline-flex;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 30px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-3);
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn.active {
    background: var(--surface-3);
    color: var(--text);
}

.view-btn:hover:not(.active) {
    color: var(--text-2);
}

/* Instances List View */
.instances-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.instances-list .events-table tr {
    cursor: pointer;
    transition: background 0.15s;
}

.instances-list .events-table thead tr {
    cursor: default;
}

.instances-list .events-table tbody tr:hover {
    background: var(--surface-2);
}

.device-name-cell {
    font-weight: 600;
    color: var(--text);
}

.status-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.solo-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.solo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.solo-dot.on { background: var(--green); box-shadow: 0 0 4px var(--green); }
.solo-dot.off { background: var(--red); }

.instance-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}

.instance-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.instance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.instance-name {
    font-size: 17px;
    font-weight: 700;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.offline { background: var(--red); }
.status-dot.stale { background: var(--orange); }

.instance-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 14px;
    color: var(--text-2);
}

.now-playing-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--green-dim);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.now-playing-bar .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.now-playing-bar .label {
    font-size: 13px;
    color: var(--green);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* BLE Devices */
.ble-devices {
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.ble-device-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.ble-device {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.ble-device + .ble-device {
    border-top: 1px solid var(--border);
}

.ble-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ble-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--text-2);
}

.ble-info {
    flex: 1;
}

.ble-name {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ble-detail {
    font-size: 12px;
    color: var(--text-3);
}

.connected-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--green-dim);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--green);
}

.connected-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.disconnected-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--red-dim);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--red);
}

.battery-bar {
    width: 40px;
    height: 16px;
    border: 1px solid var(--text-3);
    border-radius: 3px;
    padding: 2px;
    position: relative;
}

.battery-bar::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 4px;
    width: 3px;
    height: 6px;
    background: var(--text-3);
    border-radius: 0 2px 2px 0;
}

.battery-fill {
    height: 100%;
    border-radius: 1px;
    transition: width 0.3s;
}

.battery-fill.high { background: var(--green); }
.battery-fill.mid { background: var(--orange); }
.battery-fill.low { background: var(--red); }

.battery-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-3);
    min-width: 32px;
    text-align: right;
}

/* Detail Layout — side-by-side: card left (~25%), data right (~75%) */
.detail-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-sidebar {
    flex: 0 0 340px;
    min-width: 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.detail-sidebar::-webkit-scrollbar { width: 4px; }
.detail-sidebar::-webkit-scrollbar-track { background: transparent; }
.detail-sidebar::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 2px; }
.detail-sidebar::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

.detail-main {
    flex: 1;
    min-width: 0;
}

/* Detail Card — same size as overview grid cards */
.detail-card-wrap .instance-card {
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s, border-color 0.2s, transform 0.15s;
}

.detail-card-wrap .instance-card:hover {
    opacity: 0.75;
    transform: translateY(-1px);
}

.detail-card-wrap .instance-card.selected {
    opacity: 1;
    border-color: var(--green);
    cursor: default;
}

.detail-card-wrap .instance-card.selected:hover {
    transform: none;
}

/* Events Table */
.events-table-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 600px;
    overflow-y: auto;
}

.events-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.events-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.events-table th {
    padding: 10px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}

.events-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-2);
}

.events-table tr:last-child td {
    border-bottom: none;
}

.events-table .empty-row td {
    text-align: center;
    color: var(--text-3);
    padding: 40px;
}

.event-new {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.empty-state {
    text-align: center;
    color: var(--text-3);
    padding: 60px 20px;
    font-size: 15px;
    grid-column: 1 / -1;
}

.duration-cell {
    font-family: monospace;
    font-size: 13px;
}

.playing-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-weight: 600;
    font-size: 13px;
}

.playing-indicator .mini-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 1.5s infinite;
}

/* Sortable Table Headers */
.sortable-th {
    cursor: pointer;
    user-select: none;
    transition: color 0.15s;
}

.sortable-th:hover {
    color: var(--text);
}

.sortable-th.active {
    color: var(--text);
}

.sort-arrow {
    font-size: 11px;
    opacity: 0.4;
}

.sortable-th.active .sort-arrow {
    opacity: 1;
    color: var(--green);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── Organisation Management ─── */
.org-search-wrap {
    margin-bottom: 16px;
}

.org-search {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.org-search:focus { border-color: var(--green); }
.org-search::placeholder { color: var(--text-3); }

.org-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.org-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.org-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s;
}

.org-list-item:hover {
    border-color: rgba(255,255,255,0.2);
}

.org-list-item.active {
    border-color: var(--green);
}

.org-list-name {
    font-weight: 600;
    font-size: 15px;
}

.org-list-meta {
    font-size: 13px;
    color: var(--text-3);
}

.org-list-meta span + span::before {
    content: '·';
    margin: 0 6px;
}

.btn-primary-sm {
    padding: 8px 16px;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.btn-primary-sm:hover { opacity: 0.85; }

/* Org Editor */
.org-editor {
    flex: 0 0 380px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.org-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.org-editor-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.org-editor-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 15px;
    outline: none;
    font-family: inherit;
}

.form-input:focus { border-color: var(--green); }
.form-input[readonly] { opacity: 0.5; cursor: not-allowed; }

.form-static {
    font-size: 15px;
    color: var(--text-2);
    padding: 10px 0;
}

.org-editor-actions {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

/* ─── Account Page ─── */
.account-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 500px;
}

.account-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.account-name {
    font-size: 18px;
    font-weight: 700;
}

.account-email {
    font-size: 14px;
    color: var(--text-3);
    margin-top: 4px;
}
