/* Break Engine visual port from Figma component system */

.brk {
    position: relative;
    border-radius: 24px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.brk__reminder-toast {
    margin: 0.75rem 1.1rem 0.5rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    font-size: 0.85rem;
}

.brk-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.brk-svg--sm {
    width: 16px;
    height: 16px;
}

.brk__dismiss {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.brk__header {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.1rem 0.8rem;
}

.brk__icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brk__icon .brk-svg {
    width: 24px;
    height: 24px;
}

.brk__headline {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.brk__subhead {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    font-weight: 400;
}

.brk__panel {
    margin: 0 0.8rem 0.9rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 0.85rem;
}

.brk__panel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.brk__crowd-state {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 600;
}

.brk__crowd-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.brk__crowd-dot--high {
    background: #eab308;
}

.brk__crowd-dot--very-high {
    background: #f97316;
}

.brk__crowd-dot--extreme {
    background: #ef4444;
}

.brk__badge {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 0.74rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0.16rem 0.5rem;
}

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

.brk__panel-label {
    font-size: 0.78rem;
    color: #6b7280;
}

.brk__panel-value {
    font-size: 1.5rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.2;
}

.brk__panel-value--muted {
    color: #9ca3af;
}

.brk__panel-unit {
    font-size: 0.95rem;
    margin-left: 0.1rem;
    color: #6b7280;
}

.brk__panel-callout {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.75rem;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-size: 0.8rem;
}

.brk__section {
    padding: 0 0.8rem 0.9rem;
}

.brk__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.brk__section-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.brk__toggle {
    border: none;
    background: transparent;
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
}

.brk__actions {
    display: flex;
    gap: 0.55rem;
    padding: 0 0.8rem 0.5rem;
}

.brk__actions--two > * {
    flex: 1;
}

.brk__actions--inline {
    padding-top: 0.2rem;
}

.brk__primary,
.brk__secondary {
    border-radius: 10px;
    min-height: 42px;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brk__primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
}

.brk__secondary {
    border: 1px solid #93c5fd;
    background: #fff;
    color: #1d4ed8;
}

.brk__primary--sm,
.brk__secondary--sm {
    min-height: 34px;
    font-size: 0.78rem;
    padding: 0.35rem 0.55rem;
}

.brk__footer {
    text-align: center;
    color: #6b7280;
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem 0.9rem;
}

.brk--card {
    background: linear-gradient(145deg, #eff6ff 0%, #e0e7ff 100%);
    border: 2px solid #bfdbfe;
}

.brk--card .brk__icon {
    background: #3b82f6;
    color: #fff;
}

.brk--card .brk__headline {
    color: #1e3a8a;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.brk--card .brk__subhead {
    color: #1d4ed8;
    font-size: 0.875rem;
}

.brk--banner {
    border: 1px solid #bfdbfe;
    background: linear-gradient(90deg, #eff6ff 0%, #e0e7ff 100%);
}

.brk__banner-row {
    display: flex;
    gap: 0.7rem;
    padding: 0.9rem 1rem 0.45rem;
}

.brk__banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: #fff;
    flex-shrink: 0;
}

.brk__banner-title {
    color: #1e3a8a;
    font-weight: 700;
}

.brk__banner-text {
    color: #1d4ed8;
    font-size: 0.84rem;
    margin-top: 0.1rem;
}

.brk__banner-expand {
    padding: 0 1rem 0.9rem;
}

.brk--hero {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 55%, #7c3aed 100%);
    color: #fff;
    border: none;
}

.brk__hero-decor {
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    filter: blur(52px);
}

.brk__hero-decor--one {
    width: 240px;
    height: 240px;
    top: -70px;
    right: -80px;
}

.brk__hero-decor--two {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -75px;
}

.brk--hero .brk__header,
.brk--hero .brk__stats,
.brk--hero .brk__section,
.brk--hero .brk__actions,
.brk--hero .brk__footer {
    position: relative;
    z-index: 2;
}

.brk--hero .brk__icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
}

.brk--hero .brk__dismiss {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.brk--hero .brk__headline,
.brk--hero .brk__subhead,
.brk--hero .brk__section-title,
.brk--hero .brk__toggle,
.brk--hero .brk__footer {
    color: #fff;
}

.brk--hero .brk__headline {
    font-size: 1.5rem;
    font-weight: 700;
}

.brk--hero .brk__subhead {
    font-size: 0.9rem;
}

.brk__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0 1.1rem 0.9rem;
}

.brk__stat {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.7rem;
}

.brk__stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
}

.brk__stat-value {
    margin-top: 0.12rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
}

.brk__stat-unit {
    font-size: 0.8rem;
    margin-left: 0.08rem;
}

.brk__stat-sub {
    margin-top: 0.2rem;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.82);
}

.brk--hero .brk__primary {
    border-color: #fff;
    background: #fff;
    color: #4f46e5;
}

.brk--hero .brk__secondary {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    white-space: nowrap;
}

.brk-acts {
    display: grid;
    gap: 0.55rem;
}

.brk-acts--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brk-acts__tile,
.brk-acts__row {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 12px;
}

.brk-acts__tile {
    padding: 0.72rem;
}

.brk-acts__tile-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.45rem;
}

.brk-acts__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.brk-acts__meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.1rem;
}

.brk-acts__row {
    padding: 0.72rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brk-acts__row-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #dbeafe;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brk-acts__row-chevron {
    color: #9ca3af;
    margin-left: auto;
}

.brk-acts__row-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.brk--hero .brk-acts__tile,
.brk--hero .brk-acts__row {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.brk--hero .brk-acts__tile-icon,
.brk--hero .brk-acts__row-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.brk--hero .brk-acts__label,
.brk--hero .brk-acts__meta,
.brk--hero .brk-acts__row-chevron {
    color: #fff;
}

@media (max-width: 640px) {
    .brk__actions {
        flex-direction: column;
    }

    .brk__stats {
        grid-template-columns: 1fr;
    }

    .brk--hero .brk__headline {
        font-size: 1.3rem;
    }
}
