/* Sentry-inspired design system */
:root {
    --sentry-blurple: #6c5fc7;
    --sentry-blurple-dark: #584ac0;
    --sentry-purple-deep: #362d59;
    --sentry-purple-darker: #1f1633;
    --sentry-bg: #1a1625;
    --sentry-bg-elevated: #24202e;
    --sentry-surface: #2b2233;
    --sentry-surface-hover: #322a3d;
    --sentry-border: rgba(108, 95, 199, 0.18);
    --sentry-border-subtle: rgba(255, 255, 255, 0.06);
    --sentry-text: #ebe6f5;
    --sentry-text-muted: #9b8db8;
    --sentry-text-dim: #6e5f8a;
    --sentry-coral: #f55459;
    --sentry-teal: #57cac8;
    --sentry-amber: #f5a623;
    --sentry-radius: 0.625rem;
    --sentry-radius-lg: 0.875rem;
    --sentry-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --sentry-glow: 0 0 0 1px rgba(108, 95, 199, 0.25);
}

html.light {
    --sentry-bg: #f4f2f8;
    --sentry-bg-elevated: #ffffff;
    --sentry-surface: #ffffff;
    --sentry-surface-hover: #f8f6fc;
    --sentry-border: rgba(108, 95, 199, 0.22);
    --sentry-border-subtle: rgba(54, 45, 89, 0.1);
    --sentry-text: #1f1633;
    --sentry-text-muted: #5c4f7a;
    --sentry-text-dim: #8a7da8;
    --sentry-shadow: 0 4px 24px rgba(54, 45, 89, 0.08);
}

html {
    height: 100%;
}

body.sentry-app {
    font-family: 'Rubik', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--sentry-bg);
    color: var(--sentry-text);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    min-height: 100dvh;
    width: 100%;
    overflow-x: hidden;
}

/* Layout */
.sentry-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100vw;
    min-height: 100dvh;
}

.sentry-sidebar {
    width: 15rem;
    flex: 0 0 15rem;
    background: linear-gradient(180deg, var(--sentry-purple-darker) 0%, var(--sentry-purple-deep) 100%);
    border-right: 1px solid var(--sentry-border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100dvh;
    z-index: 40;
}

.sentry-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sentry-sidebar-brand span {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    letter-spacing: -0.01em;
}

.sentry-nav {
    flex: 1;
    padding: 0.75rem 0.5rem;
    overflow-y: auto;
}

.sentry-nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.125rem;
    border-radius: var(--sentry-radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    transition: all 0.15s ease;
    text-decoration: none;
}

.sentry-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sentry-nav-link.active {
    color: #fff;
    background: rgba(108, 95, 199, 0.35);
    box-shadow: inset 3px 0 0 var(--sentry-blurple);
}

.sentry-nav-link svg {
    width: 1.125rem;
    height: 1.125rem;
    opacity: 0.85;
}

.sentry-sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sentry-main {
    --sentry-topbar-height: 3.25rem;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 100dvh;
    background: var(--sentry-bg);
}

.sentry-topbar {
    flex-shrink: 0;
    width: 100%;
    height: var(--sentry-topbar-height);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--sentry-border-subtle);
    background: var(--sentry-bg-elevated);
}

.sentry-content {
    flex: 0 0 auto;
    padding: 1.5rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

/* Components */
.sentry-card {
    background: var(--sentry-surface);
    border: 1px solid var(--sentry-border-subtle);
    border-radius: var(--sentry-radius-lg);
    box-shadow: var(--sentry-shadow);
}

.sentry-card-padded {
    padding: 1.25rem 1.5rem;
}

.sentry-page-header {
    margin-bottom: 1.5rem;
}

.sentry-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sentry-text);
    letter-spacing: -0.02em;
}

.sentry-page-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--sentry-text-muted);
}

.sentry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--sentry-radius);
    border: 1px solid var(--sentry-border-subtle);
    background: var(--sentry-surface);
    color: var(--sentry-text);
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.sentry-btn:hover {
    background: var(--sentry-surface-hover);
    border-color: var(--sentry-border);
}

.sentry-btn-primary {
    background: linear-gradient(135deg, var(--sentry-blurple), var(--sentry-blurple-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 12px rgba(108, 95, 199, 0.35);
}

.sentry-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(108, 95, 199, 0.45);
    background: linear-gradient(135deg, #7b6fd4, var(--sentry-blurple));
}

.sentry-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--sentry-text-muted);
}

.sentry-btn-ghost:hover {
    color: var(--sentry-text);
    background: rgba(108, 95, 199, 0.1);
}

.sentry-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.sentry-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
}

.sentry-input,
.sentry-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--sentry-text);
    background: var(--sentry-bg);
    border: 1px solid var(--sentry-border-subtle);
    border-radius: var(--sentry-radius);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sentry-input:focus,
.sentry-select:focus {
    outline: none;
    border-color: var(--sentry-blurple);
    box-shadow: 0 0 0 3px rgba(108, 95, 199, 0.2);
}

.sentry-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sentry-text-muted);
    margin-bottom: 0.375rem;
}

.sentry-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.25;
}

.sentry-badge-clickup {
    background: rgba(123, 104, 238, 0.2);
    color: #a89bff;
}

.sentry-badge-sentry {
    background: rgba(245, 84, 89, 0.15);
    color: #ff7b7f;
}

.sentry-badge-open {
    background: rgba(155, 141, 184, 0.2);
    color: var(--sentry-text-muted);
}

.sentry-badge-resolving {
    background: rgba(245, 166, 35, 0.15);
    color: #f5c842;
}

.sentry-badge-done {
    background: rgba(87, 202, 200, 0.15);
    color: var(--sentry-teal);
}

.sentry-badge-pr {
    background: rgba(108, 95, 199, 0.2);
    color: #b8aef0;
}

.sentry-stat-card {
    text-align: center;
    padding: 1rem;
}

.sentry-stat-card--clickable {
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.15s, background 0.15s;
    text-align: left;
}

.sentry-stat-card--clickable:hover {
    background: var(--sentry-surface-hover);
    border-color: var(--sentry-border);
}

.sentry-stat-card--active {
    border-color: var(--sentry-blurple);
    box-shadow: var(--sentry-glow);
}

.sentry-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.sentry-select-wrap::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    pointer-events: none;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--sentry-text-dim);
}

.sentry-select-picker {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2rem;
    cursor: pointer;
    min-height: 2.25rem;
}

.sentry-select-picker:hover {
    border-color: var(--sentry-border);
}

.sentry-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.sentry-stat-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sentry-text-dim);
    white-space: nowrap;
}

.sentry-table-wrap {
    overflow: hidden;
}

.sentry-table {
    width: 100%;
    border-collapse: collapse;
}

.sentry-table thead {
    background: var(--sentry-bg);
}

.sentry-table th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sentry-text-dim);
    border-bottom: 1px solid var(--sentry-border-subtle);
}

.sentry-table th.sentry-sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

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

.sentry-sort-icon {
    display: inline-block;
    margin-left: 0.25rem;
    font-size: 0.625rem;
    opacity: 0.7;
}

.sentry-stacktrace {
    margin: 0;
    padding: 0.875rem 1rem;
    font-size: 0.75rem;
    line-height: 1.5;
    overflow-x: auto;
    border-radius: var(--sentry-radius);
    background: var(--sentry-bg);
    border: 1px solid var(--sentry-border-subtle);
    color: var(--sentry-text-muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.sentry-breadcrumbs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sentry-table th.sentry-cell-nowrap,
.sentry-table td.sentry-cell-nowrap {
    white-space: nowrap;
    width: 1%;
}

.sentry-table td {
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--sentry-border-subtle);
    vertical-align: middle;
}

.sentry-table tbody tr {
    transition: background 0.1s;
}

.sentry-table tbody tr:hover {
    background: var(--sentry-surface-hover);
}

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

.sentry-link {
    color: var(--sentry-blurple);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}

html.light .sentry-link {
    color: var(--sentry-blurple-dark);
}

.sentry-link:hover {
    color: #9b8ef5;
}

.sentry-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--sentry-radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid;
}

.sentry-alert-success {
    background: rgba(87, 202, 200, 0.1);
    border-color: rgba(87, 202, 200, 0.3);
    color: var(--sentry-teal);
}

.sentry-alert-error {
    background: rgba(245, 84, 89, 0.1);
    border-color: rgba(245, 84, 89, 0.3);
    color: #ff7b7f;
}

.sentry-alert-warning {
    background: rgba(245, 166, 35, 0.1);
    border-color: rgba(245, 166, 35, 0.3);
    color: #f5c842;
}

.sentry-alert-info {
    background: rgba(108, 95, 199, 0.1);
    border-color: rgba(108, 95, 199, 0.3);
    color: #b8aef0;
}

.sentry-callout {
    padding: 0.75rem 1rem;
    border-radius: var(--sentry-radius);
    font-size: 0.8125rem;
    border: 1px solid;
    margin-bottom: 1rem;
}

.sentry-callout-info {
    background: rgba(108, 95, 199, 0.08);
    border-color: rgba(108, 95, 199, 0.25);
    color: var(--sentry-text-muted);
}

.sentry-callout-warning {
    background: rgba(245, 166, 35, 0.08);
    border-color: rgba(245, 166, 35, 0.25);
    color: var(--sentry-text-muted);
}

.sentry-callout code {
    background: rgba(108, 95, 199, 0.15);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.sentry-status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.sentry-status-dot--ok { background: var(--sentry-teal); }
.sentry-status-dot--busy { background: var(--sentry-amber); }
.sentry-status-dot--error { background: var(--sentry-coral); }

.sentry-hero {
    background: linear-gradient(135deg, var(--sentry-purple-darker) 0%, var(--sentry-surface) 50%, var(--sentry-bg) 100%);
    border: 1px solid var(--sentry-border);
    border-radius: 1rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.sentry-hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.sentry-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sentry-text-dim);
    margin-bottom: 0.75rem;
}

.sentry-user-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.sentry-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(108, 95, 199, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}

/* Sync page specifics */
.sync-card {
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.sync-card:hover:not(.sync-card--disabled) {
    transform: translateY(-2px);
    box-shadow: var(--sentry-shadow);
}

.sync-card--selected {
    border-color: var(--sentry-blurple);
    box-shadow: var(--sentry-glow), var(--sentry-shadow);
}

.sync-card--clickup.sync-card--selected {
    border-color: #7b68ee;
}

.sync-card--sentry.sync-card--selected {
    border-color: var(--sentry-coral);
}

.sync-card--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.period-pill {
    transition: all 0.15s ease;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--sentry-radius);
    border: 1px solid var(--sentry-border-subtle);
    background: var(--sentry-surface);
    color: var(--sentry-text-muted);
    cursor: pointer;
}

.period-pill:hover {
    border-color: var(--sentry-blurple);
    color: var(--sentry-text);
}

.period-pill--active {
    background: linear-gradient(135deg, var(--sentry-blurple), var(--sentry-blurple-dark));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(108, 95, 199, 0.4);
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
}

.sync-loading {
    animation: pulse-ring 1.5s ease-in-out infinite;
}

/* Login */
.sentry-login-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, rgba(26, 22, 37, 1) 0%, rgba(31, 22, 51, 1) 44.2%, rgba(18, 14, 27, 1) 90%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Efeito de luz ambiente de fundo */
.sentry-login-bg::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(108, 95, 199, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.sentry-login-bg::after {
    content: "";
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(245, 84, 89, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

html.light .sentry-login-bg {
    background: radial-gradient(circle at 10% 20%, #f4f2f8 0%, #ebe7f5 100%);
}
html.light .sentry-login-bg::before {
    background: radial-gradient(circle, rgba(108, 95, 199, 0.08) 0%, transparent 70%);
}
html.light .sentry-login-bg::after {
    background: radial-gradient(circle, rgba(245, 84, 89, 0.05) 0%, transparent 70%);
}

.sentry-login-card {
    width: 100%;
    max-width: 26rem;
    background: rgba(43, 34, 51, 0.65);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(108, 95, 199, 0.25);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(108, 95, 199, 0.1) inset;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sentry-login-card:hover {
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(108, 95, 199, 0.2) inset;
}

html.light .sentry-login-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(108, 95, 199, 0.2);
    box-shadow: 0 20px 40px rgba(54, 45, 89, 0.08);
}

/* Logo pulse */
.login-logo-svg {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.sentry-login-card:hover .login-logo-svg {
    transform: scale(1.08) rotate(5deg);
}

/* Custom inputs for login card to guarantee isolation and premium feel */
.sentry-login-card .sentry-input {
    background: rgba(26, 22, 37, 0.4);
    border: 1px solid rgba(108, 95, 199, 0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--sentry-text);
    transition: all 0.2s ease-in-out;
}

html.light .sentry-login-card .sentry-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(108, 95, 199, 0.25);
}

.sentry-login-card .sentry-input:focus {
    background: rgba(26, 22, 37, 0.6);
    border-color: var(--sentry-blurple);
    box-shadow: 0 0 0 4px rgba(108, 95, 199, 0.25);
}

html.light .sentry-login-card .sentry-input:focus {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(108, 95, 199, 0.15);
}

/* Botão de Entrar premium */
.sentry-login-card .sentry-btn-primary {
    background: linear-gradient(135deg, var(--sentry-blurple) 0%, var(--sentry-blurple-dark) 100%);
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(108, 95, 199, 0.3);
}

.sentry-login-card .sentry-btn-primary:hover {
    background: linear-gradient(135deg, #7b6eed 0%, var(--sentry-blurple) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(108, 95, 199, 0.45);
}

.sentry-login-card .sentry-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(108, 95, 199, 0.3);
}


/* Prose for markdown */
.sentry-prose {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--sentry-text-muted);
}

.sentry-prose h1, .sentry-prose h2, .sentry-prose h3 {
    color: var(--sentry-text);
    font-weight: 600;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
}

.sentry-prose code {
    background: rgba(108, 95, 199, 0.12);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.8125em;
}

.sentry-prose pre {
    background: var(--sentry-bg);
    border: 1px solid var(--sentry-border-subtle);
    border-radius: var(--sentry-radius);
    padding: 1rem;
    overflow-x: auto;
}

/* Investigate modal */
.sentry-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(8, 7, 16, 0.72);
    backdrop-filter: blur(4px);
}

.sentry-modal-overlay[hidden] {
    display: none;
}

.sentry-modal {
    width: 100%;
    max-width: 42rem;
    max-height: min(90vh, 36rem);
    display: flex;
    flex-direction: column;
    background: var(--sentry-surface);
    border: 1px solid var(--sentry-border);
    border-radius: var(--sentry-radius-lg, 0.75rem);
    box-shadow: var(--sentry-shadow);
}

.sentry-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem 0.75rem;
}

.sentry-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--sentry-text);
}

.sentry-modal-body {
    padding: 0 1.5rem 1rem;
    overflow-y: auto;
}

.sentry-modal-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--sentry-text-muted);
    margin-bottom: 0.5rem;
}

.sentry-modal-textarea {
    width: 100%;
    min-height: 14rem;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    line-height: 1.5;
}

.sentry-modal-error {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: var(--sentry-coral);
}

.sentry-modal-loading {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--sentry-amber);
}

.sentry-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--sentry-border-subtle);
}

.sentry-inline-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.sentry-spinner {
    display: inline-block;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid var(--sentry-border);
    border-top-color: var(--sentry-blurple);
    border-radius: 50%;
    animation: sentry-spin 0.7s linear infinite;
}

.sentry-spinner--sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 1.5px;
}

.sentry-btn-with-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

@keyframes sentry-spin {
    to { transform: rotate(360deg); }
}

.sentry-activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 20rem;
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
}

.sentry-activity-line {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--sentry-radius);
    border-left: 3px solid var(--sentry-border);
    background: rgba(255, 255, 255, 0.02);
}

.sentry-activity-line--info {
    border-left-color: var(--sentry-blurple);
}

.sentry-activity-line--warn {
    border-left-color: var(--sentry-amber);
    background: rgba(245, 166, 35, 0.06);
}

.sentry-activity-line--error {
    border-left-color: var(--sentry-coral);
    background: rgba(229, 83, 75, 0.06);
}

.sentry-activity-time {
    flex-shrink: 0;
    color: var(--sentry-text-dim);
    font-size: 0.75rem;
    min-width: 8.5rem;
}

.sentry-activity-message {
    color: var(--sentry-text-muted);
    white-space: pre-wrap;
    word-break: break-word;
}

.sentry-diff-preview {
    max-height: 28rem;
    overflow: auto;
    border-radius: 0.375rem;
    border: 1px solid var(--sentry-border);
    background: rgba(0, 0, 0, 0.25);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    line-height: 1.45;
}

html.light .sentry-diff-preview {
    background: rgba(54, 45, 89, 0.04);
}

.sentry-diff-code {
    display: block;
    margin: 0;
    padding: 0;
}

.diff-line {
    display: block;
    padding: 0 0.75rem;
    white-space: pre-wrap;
    word-break: break-word;
    border-left: 3px solid transparent;
}

.diff-line-add {
    background: rgba(46, 160, 67, 0.18);
    border-left-color: #3fb950;
    color: #aff5b4;
}

.diff-line-del {
    background: rgba(248, 81, 73, 0.18);
    border-left-color: #f85149;
    color: #ffc1ba;
}

.diff-line-hunk {
    background: rgba(108, 95, 199, 0.14);
    border-left-color: var(--sentry-blurple);
    color: #c4b5fd;
    font-weight: 500;
}

.diff-line-file {
    background: rgba(255, 255, 255, 0.03);
    color: var(--sentry-text);
    font-weight: 600;
}

.diff-line-meta {
    color: var(--sentry-text-dim);
    font-weight: 500;
}

.diff-line-ctx {
    color: var(--sentry-text-muted);
}

html.light .diff-line-add {
    background: rgba(46, 160, 67, 0.12);
    color: #116329;
}

html.light .diff-line-del {
    background: rgba(248, 81, 73, 0.12);
    color: #82071e;
}

html.light .diff-line-hunk {
    background: rgba(108, 95, 199, 0.1);
    color: #584ac0;
}

html.light .diff-line-file {
    background: rgba(54, 45, 89, 0.05);
    color: var(--sentry-text);
}

html.light .diff-line-meta {
    color: var(--sentry-text-dim);
}

html.light .diff-line-ctx {
    color: var(--sentry-text-muted);
}

.sentry-group-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--sentry-border);
    background: rgba(108, 95, 199, 0.15);
    color: var(--sentry-blurple);
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
}

.sentry-group-badge:hover {
    background: rgba(108, 95, 199, 0.25);
}

.sentry-group-member-row td {
    background: rgba(108, 95, 199, 0.06);
    border-top: 1px dashed var(--sentry-border-subtle);
}

html.light .sentry-group-member-row td {
    background: rgba(108, 95, 199, 0.04);
}

/* Mobile */
@media (max-width: 768px) {
    .sentry-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sentry-sidebar-brand {
        flex: 1;
        border-bottom: none;
    }

    .sentry-nav {
        display: none;
    }

    .sentry-main {
        width: 100%;
    }

    .sentry-mobile-nav {
        display: flex;
        gap: 0.25rem;
        padding: 0 0.5rem 0.5rem;
        width: 100%;
        overflow-x: auto;
    }

    .sentry-mobile-nav .sentry-nav-link {
        white-space: nowrap;
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
    }
}

@media (min-width: 769px) {
    .sentry-mobile-nav {
        display: none;
    }
}
