/* Only integration/authentication additions; table and themes come from the supplied design. */
[hidden] { display: none !important; }
.main-col > main { width: 100%; min-width: 0; }
.sidebar { display: flex; }
.btn-cta { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 11px 20px; background: var(--grad-cta, linear-gradient(100deg,#7c4dff,#df4497)); color: #fff; font: 700 13px var(--font); cursor: pointer; }
.btn-cta:hover { filter: brightness(1.1); }
.btn-cta:disabled { opacity: .55; cursor: wait; }
.btn-cta:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.account-row .sub { display: block; margin-top: 4px; }
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 440px); background: var(--panel, var(--card)); border: 1px solid var(--line2); padding: 36px; border-radius: 18px; display: grid; gap: 18px; }
.auth-card h1 { font-size: 27px; margin: 0; }
.auth-card p { margin: 0; }
.auth-card label, .compact-form label { display: grid; gap: 8px; font-size: 13px; }
.auth-card input, .compact-form input, .compact-form select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card2); color: var(--text); font: inherit; }
.compact-form { display: grid; gap: 14px; padding: 24px; max-width: 580px; margin-bottom: 20px; }
.compact-form h2 { margin: 0; font-size: 19px; }
#invite-form > p { margin: 0; }
.compact-form input[type=color] { width: 80px; }
.auth-card input:focus-visible, .compact-form :is(input, select):focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.row-name { border: 0; background: transparent; color: inherit; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.row-name:hover { color: var(--acc); }
.row-name:focus-visible { outline: 2px solid var(--acc); outline-offset: 4px; }
.prdlg fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.prdlg legend { color: var(--mute); font-size: 12px; margin-bottom: 8px; }
.prdlg :disabled { opacity: .65; }
.conflict-reload { margin: 0 22px 16px; }
.narrow { max-width: 540px; }
.narrow .compact-form { margin: 0; }
.audit-entry { padding: 16px 20px; border-bottom: 1px solid var(--line2); }
.audit-entry summary { cursor: pointer; line-height: 1.8; }
.audit-diff { display: grid; gap: 8px; padding-top: 12px; }
.audit-diff p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.audit-diff del { color: var(--mute); }
.audit-diff ins { text-decoration: none; color: var(--acc); }
.account-row { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line2); }
.account-row > div { flex: 1; }
.art { gap: 14px; }
.collaborator-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.topbar { justify-content: space-between; }
.topbar #identity { font-size: 12px; color: var(--mute); }
#connection:not(:empty) { border: 1px solid var(--amber); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; color: var(--amber); }
#toasts { position: fixed; right: 24px; bottom: 24px; z-index: 200; pointer-events: none; max-width: min(440px,90vw); }
.notice { background: var(--card2); color: var(--text); border: 1px solid var(--line2); border-left: 3px solid var(--acc); padding: 14px 18px; border-radius: 10px; margin-top: 8px; }
.notice.bad { border-left-color: var(--red); }
.notice b { display: block; }
.auth-wrap .derr:empty { display: none; }
@media(max-width: 900px) { .sidebar { display: flex; width: 190px; flex-basis: 190px; } .topbar #identity { display: none; } }
@media(max-width: 640px) { .app-shell { flex-direction: column; } .sidebar { position: static; width: 100%; height: auto; flex-basis: auto; padding: 16px; } .sidebar nav { display: flex; overflow: auto; } .snav { flex-shrink: 0; } .sidebar .farm, .sidebar .credit { display: none; } .sb-brand { padding-bottom: 12px; margin-bottom: 4px; } .auth-card { padding: 24px; } .sv-head { flex-wrap: wrap; } .sv-kpis { overflow: auto; } }
