body {
    font-family: 'Poppins', sans-serif;
}

html,
body {
    overflow-x: hidden;
}

input[type='date'] {
    min-height: 3rem;
    color-scheme: dark;
}

input[type='date']::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(76%) sepia(44%) saturate(6395%) hue-rotate(232deg) brightness(93%) contrast(99%);
}

input[type='date']::-webkit-datetime-edit,
input[type='date']::-webkit-datetime-edit-text,
input[type='date']::-webkit-datetime-edit-month-field,
input[type='date']::-webkit-datetime-edit-day-field,
input[type='date']::-webkit-datetime-edit-year-field {
    color: #f8fafc;
}

input[type='file'] {
    border: 1px dashed rgba(139, 92, 246, 0.3) !important;
    background: linear-gradient(180deg, rgba(18, 18, 28, 0.92), rgba(9, 9, 14, 0.9)) !important;
    padding: 0.9rem !important;
}

input[type='file']::file-selector-button {
    margin-right: 0.9rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(109, 40, 217, 0.18);
    color: #ede9fe;
    padding: 0.65rem 1rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-link {
    display: block;
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(109, 40, 217, 0.14);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.15);
}

.panel-card {
    border: 1px solid rgba(42, 42, 58, 1);
    background: rgba(21, 21, 32, 0.92);
    border-radius: 1.75rem;
    padding: 1.5rem;
    min-width: 0;
}

.metric-card {
    border: 1px solid rgba(42, 42, 58, 1);
    background: linear-gradient(180deg, rgba(27, 27, 40, 0.96), rgba(10, 10, 15, 0.96));
    border-radius: 1.5rem;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 112px;
}

.metric-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: rgba(109, 40, 217, 0.16);
    color: #d8b4fe;
    flex-shrink: 0;
}

.metric-label {
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.metric-value {
    margin-top: 0.45rem;
    font-size: clamp(1.35rem, 1.9vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
}

.metric-value--money {
    font-size: clamp(1.05rem, 1.6vw, 1.55rem);
}

.badge {
    border-radius: 9999px;
    padding: 0.38rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px currentColor;
    white-space: nowrap;
}

.text-bg-success,
.text-bg-primary,
.text-bg-warning,
.text-bg-danger,
.text-bg-info,
.text-bg-secondary,
.taskora-badge-purple {
    background: rgba(15, 23, 42, 0.5);
}

.text-bg-success {
    color: #4ade80;
}

.text-bg-primary {
    color: #60a5fa;
}

.text-bg-warning {
    color: #fbbf24;
}

.text-bg-danger {
    color: #fb7185;
}

.text-bg-info {
    color: #38bdf8;
}

.text-bg-secondary {
    color: #cbd5e1;
}

.taskora-badge-purple {
    color: #c084fc;
}

.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    border: 1px solid rgba(42, 42, 58, 1);
    padding: 0.55rem 0.9rem;
    color: #cbd5e1;
    transition: all 0.2s ease;
}

.table-action:hover {
    border-color: rgba(139, 92, 246, 0.45);
    color: white;
}

.table-action-danger:hover {
    border-color: rgba(244, 63, 94, 0.45);
}

.icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(42, 42, 58, 1);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.55);
    transition: all 0.2s ease;
}

.icon-action:hover {
    border-color: rgba(139, 92, 246, 0.45);
    color: white;
}

.tooltip-trigger {
    position: relative;
}

.tooltip-trigger::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 0.55rem);
    transform: translateX(-50%) translateY(4px);
    padding: 0.35rem 0.55rem;
    border-radius: 0.6rem;
    background: rgba(15, 23, 42, 0.96);
    color: #e2e8f0;
    font-size: 0.72rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s ease;
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.tooltip-trigger:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.empty-state {
    border: 1px dashed rgba(42, 42, 58, 1);
    border-radius: 1.5rem;
    padding: 1.5rem;
    text-align: center;
    color: #94a3b8;
}

.detail-item {
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.25rem;
    padding: 1rem;
    background: rgba(2, 6, 23, 0.35);
}

.detail-item span {
    display: block;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.detail-item strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

summary {
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

.toast-stack {
    position: fixed;
    top: 1.35rem;
    right: 1.35rem;
    z-index: 70;
    width: min(24rem, calc(100vw - 2rem));
    display: grid;
    gap: 0.75rem;
}

.toast-message {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.18);
    background: linear-gradient(180deg, rgba(22, 22, 35, 0.98), rgba(11, 11, 18, 0.96));
    border-radius: 1.3rem;
    padding: 1rem 1rem 0.95rem;
    box-shadow: 0 22px 50px rgba(6, 8, 20, 0.42);
    animation: toast-enter 0.28s ease;
}

.toast-message__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 9999px;
    background: rgba(109, 40, 217, 0.18);
    color: #ddd6fe;
}

.toast-message__close {
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.toast-message.toast-success .toast-message__icon {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

.toast-message.toast-error .toast-message__icon {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
}

.toast-message.toast-warning .toast-message__icon {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

.toast-hiding {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.2s ease;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 5, 10, 0.52);
    backdrop-filter: blur(10px);
}

.page-loader__card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(25, 25, 37, 0.98), rgba(11, 11, 18, 0.98));
    box-shadow: 0 24px 50px rgba(7, 10, 20, 0.45);
}

.loader-orb {
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #c084fc, #60a5fa);
    box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.5);
    animation: pulse-loader 1.05s ease infinite;
}

.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.button-spinner {
    display: inline-flex;
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: currentColor;
    animation: spin 0.7s linear infinite;
}

.status-inline-form {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.status-inline-form__select {
    width: 100%;
    min-width: 0;
    border-radius: 9999px;
    border: 1px solid rgba(42, 42, 58, 1);
    background: rgba(2, 6, 23, 0.68);
    padding: 0.62rem 0.9rem;
    font-size: 0.8rem;
    color: white;
}

.status-inline-form__badge {
    flex-shrink: 0;
}

.upload-progress {
    display: none;
    gap: 0.75rem;
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 1.25rem;
    background: rgba(10, 10, 18, 0.82);
    padding: 1rem;
}

.upload-progress.is-visible {
    display: grid;
}

.upload-progress__bar {
    overflow: hidden;
    height: 0.55rem;
    border-radius: 9999px;
    background: rgba(30, 41, 59, 0.9);
}

.upload-progress__fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #38bdf8);
    transition: width 0.18s ease;
}

.upload-preview-grid {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.95rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.upload-preview-card,
.media-card-preview,
.media-thumb {
    border-radius: 1.15rem;
    border: 1px solid rgba(42, 42, 58, 1);
    background: rgba(9, 9, 15, 0.92);
}

.upload-preview-card {
    overflow: hidden;
}

.upload-preview-card__media {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.upload-preview-card__meta {
    padding: 0.85rem 0.95rem;
}

.media-card-preview {
    width: 148px;
    min-width: 148px;
    height: 112px;
    object-fit: cover;
    overflow: hidden;
}

.media-card-preview--icon,
.media-thumb--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 1.4rem;
}

.media-thumb {
    width: 52px;
    min-width: 52px;
    height: 52px;
    object-fit: cover;
    overflow: hidden;
}

.notebook-list-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.25rem;
    background: rgba(9, 9, 15, 0.62);
    transition: all 0.2s ease;
}

.notebook-list-item:hover {
    border-color: rgba(139, 92, 246, 0.34);
    transform: translateY(-1px);
}

.notebook-list-item__icon {
    display: inline-flex;
    width: 2.8rem;
    height: 2.8rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(109, 40, 217, 0.18);
    color: #ddd6fe;
}

.notebook-workspace {
    max-width: 1420px;
    margin: 0 auto;
}

.notebook-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.2rem 1.35rem;
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(22, 22, 32, 0.96), rgba(12, 12, 18, 0.96));
}

.notebook-toolbar-shell {
    position: sticky;
    top: 5.25rem;
    z-index: 25;
}

.notebook-eyebrow {
    color: #94a3b8;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.notebook-title {
    margin-top: 0.55rem;
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    font-weight: 700;
}

.notebook-subtitle {
    margin-top: 0.75rem;
    color: #94a3b8;
    font-size: 0.92rem;
}

.notebook-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.35rem;
    background: rgba(11, 11, 18, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
}

.notebook-toolbar__button {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 9999px;
    padding: 0.8rem 1rem;
    font-size: 0.86rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.notebook-toolbar__button--ghost {
    border: 1px solid rgba(42, 42, 58, 1);
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.48);
}

.notebook-toolbar__button--soft {
    border: 1px solid rgba(139, 92, 246, 0.28);
    background: rgba(109, 40, 217, 0.14);
    color: #ede9fe;
}

.notebook-toolbar__button--primary {
    background: #4f46e5;
    color: white;
}

.notebook-toolbar__button:hover {
    transform: translateY(-1px);
}

.notebook-shell {
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(20, 20, 28, 0.98), rgba(11, 11, 16, 0.98));
    box-shadow: 0 18px 40px rgba(3, 7, 18, 0.26);
    overflow: hidden;
}

.notebook-shell__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(42, 42, 58, 1);
    background: rgba(10, 10, 16, 0.9);
}

.notebook-cells {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.notebook-dataset-panel__summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.notebook-dataset-file {
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.25rem;
    background: rgba(9, 9, 15, 0.58);
    padding: 1rem;
}

.notebook-manage-panel,
.notebook-dataset-manager {
    min-width: 0;
}

.notebook-manage-form {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.notebook-home-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.modal-open {
    overflow: hidden;
}

.notebook-home-dataset-card__header,
.notebook-home-dataset-card__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.notebook-home-dataset-card__meta {
    margin-top: 1rem;
}

.notebook-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

.notebook-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 12, 0.72);
    backdrop-filter: blur(10px);
}

.notebook-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1320px, 100%);
    max-height: calc(100vh - 2.4rem);
    overflow: auto;
    background: linear-gradient(180deg, rgba(18, 18, 28, 0.98), rgba(10, 10, 16, 0.98));
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
}

.notebook-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.notebook-modal__body {
    margin-top: 1rem;
}

.notebook-home-dataset-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 9999px;
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.48);
    transition: all 0.18s ease;
}

.notebook-home-dataset-card__link:hover {
    border-color: rgba(139, 92, 246, 0.34);
    color: white;
}

.notebook-home-dataset-path {
    margin-top: 1rem;
    display: inline-flex;
    max-width: 100%;
    overflow-wrap: anywhere;
    border-radius: 9999px;
    border: 1px solid rgba(42, 42, 58, 1);
    padding: 0.5rem 0.85rem;
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(8, 12, 22, 0.82);
}

.notebook-home-dataset-card__layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(290px, 0.88fr) minmax(0, 1.12fr);
    align-items: start;
    margin-top: 1rem;
}

.notebook-dataset-actions,
.notebook-dataset-items {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.notebook-dataset-action-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.25rem;
    background: rgba(7, 10, 18, 0.6);
}

.notebook-dataset-path {
    max-width: 100%;
    overflow-wrap: anywhere;
    border-radius: 9999px;
    border: 1px solid rgba(42, 42, 58, 1);
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
    color: #94a3b8;
    background: rgba(8, 12, 22, 0.82);
}

.notebook-dataset-item-actions {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.95rem;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
}

.notebook-dataset-rename-form {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.notebook-dataset-file--manager {
    background: rgba(7, 10, 18, 0.72);
    box-shadow: inset 0 0 0 1px rgba(42, 42, 58, 0.45);
}

.profile-overview-card {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.profile-page-card {
    display: grid;
    gap: 1.75rem;
}

.profile-page-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.profile-page-card__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(15rem, 20rem);
    gap: 1.25rem;
    align-items: center;
    padding: 1.4rem;
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, rgba(12, 16, 28, 0.96), rgba(8, 12, 22, 0.82));
}

.profile-page-card__form {
    display: grid;
    gap: 1.4rem;
}

.profile-form-section {
    display: grid;
    gap: 1.15rem;
    padding: 1.35rem;
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.6rem;
    background: rgba(7, 10, 18, 0.58);
}

.profile-overview-card__avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.5rem;
    object-fit: cover;
    border: 1px solid rgba(42, 42, 58, 1);
    background: rgba(8, 12, 22, 0.8);
}

.profile-overview-card__avatar--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.95), rgba(79, 70, 229, 0.92));
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
}

.profile-overview-card__meta {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-image-field {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid rgba(42, 42, 58, 0.9);
    border-radius: 1.4rem;
    background: rgba(2, 6, 23, 0.45);
}

.profile-image-field__preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.profile-image-field__thumb {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.2rem;
    object-fit: cover;
    border: 1px solid rgba(42, 42, 58, 1);
    background: rgba(8, 12, 22, 0.82);
    flex-shrink: 0;
}

.profile-image-field__thumb--fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.95), rgba(79, 70, 229, 0.92));
}

.profile-image-field__controls {
    display: grid;
    gap: 0.85rem;
}

.profile-image-field__controls input[type='file'] {
    cursor: pointer;
}

.profile-image-field__controls input[type='file']::file-selector-button {
    margin-right: 0.9rem;
    border: 1px solid rgba(109, 40, 217, 0.55);
    border-radius: 999px;
    background: rgba(76, 29, 149, 0.45);
    color: white;
    padding: 0.7rem 1rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-image-field__controls input[type='file']::file-selector-button:hover {
    background: rgba(109, 40, 217, 0.62);
    border-color: rgba(139, 92, 246, 0.8);
}

.profile-image-field__clear {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.profile-image-field__clear input {
    width: 1rem;
    height: 1rem;
    accent-color: #8b5cf6;
}

.notebook-cell {
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.5rem;
    background: rgba(17, 17, 26, 0.9);
    overflow: hidden;
}

.notebook-editor-cell,
.notebook-output-card {
    border: 1px solid rgba(42, 42, 58, 1);
    border-radius: 1.5rem;
    background: rgba(17, 17, 26, 0.9);
    overflow: hidden;
}

.colab-cell {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.colab-cell__gutter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.8rem;
}

.colab-run-button {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(30, 41, 59, 0.84);
    color: #e2e8f0;
    transition: all 0.18s ease;
}

.colab-run-button:hover {
    background: #4f46e5;
    border-color: rgba(129, 140, 248, 0.8);
}

.colab-exec {
    color: #94a3b8;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.74rem;
}

.colab-cell__body {
    border: 1px solid rgba(96, 165, 250, 0.35);
    border-radius: 1rem;
    background: #1f1f1f;
    overflow: hidden;
}

.colab-cell__body:focus-within {
    border-color: rgba(96, 165, 250, 0.65);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.colab-cell__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid rgba(71, 85, 105, 0.4);
    background: rgba(17, 24, 39, 0.95);
}

.colab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 9999px;
    color: #cbd5e1;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.colab-icon:hover {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(51, 65, 85, 0.7);
}

.colab-editor {
    display: block;
    padding: 0;
    background: #1f1f1f;
}

.notebook-cell__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(42, 42, 58, 1);
    background: rgba(8, 8, 14, 0.72);
}

.notebook-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.notebook-pill--code {
    background: rgba(56, 189, 248, 0.14);
    color: #7dd3fc;
}

.notebook-pill--markdown {
    background: rgba(192, 132, 252, 0.14);
    color: #d8b4fe;
}

.notebook-source,
.notebook-output {
    padding: 1rem;
}

.notebook-source {
    border-bottom: 1px solid rgba(42, 42, 58, 0.8);
}

.notebook-source pre,
.notebook-output pre {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
}

.notebook-output {
    background: rgba(5, 8, 16, 0.52);
}

.notebook-output--error {
    border-top: 1px solid rgba(251, 113, 133, 0.25);
    background: rgba(69, 10, 10, 0.25);
}

.notebook-editor-textarea {
    width: 100%;
    min-height: 280px;
    resize: vertical;
    overflow: auto;
    display: block;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 1rem 1rem 1rem 1rem;
    color: #e5e7eb;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.92rem;
    line-height: 1.72;
    outline: none;
    white-space: pre;
    tab-size: 4;
    overscroll-behavior: contain;
    max-height: 72vh;
}

.notebook-editor-textarea[data-cell-mode='markdown'] {
    min-height: 120px;
    max-height: 50vh;
}

.notebook-editor-textarea:focus {
    box-shadow: none;
}

.notebook-markdown-rendered {
    padding: 0.8rem 1rem 0.95rem;
    line-height: 1.75;
    color: #e5e7eb;
}

.notebook-markdown-rendered h1,
.notebook-markdown-rendered h2,
.notebook-markdown-rendered h3 {
    font-weight: 700;
    color: white;
    margin-bottom: 0.7rem;
}

.notebook-markdown-rendered h1 {
    font-size: 1.65rem;
}

.notebook-markdown-rendered h2 {
    font-size: 1.35rem;
}

.notebook-markdown-rendered h3 {
    font-size: 1.1rem;
}

.notebook-markdown-rendered p,
.notebook-markdown-rendered ul,
.notebook-markdown-rendered pre {
    margin-top: 0.8rem;
}

.notebook-markdown-rendered ul {
    padding-left: 1.2rem;
    list-style: disc;
}

.notebook-markdown-rendered code,
.notebook-markdown-rendered pre {
    font-family: Consolas, 'Courier New', monospace;
}

.notebook-markdown-rendered code {
    padding: 0.15rem 0.4rem;
    border-radius: 0.45rem;
    background: rgba(30, 41, 59, 0.8);
    color: #c4b5fd;
}

.notebook-markdown-rendered pre {
    padding: 0.95rem;
    border-radius: 1rem;
    background: rgba(6, 8, 16, 0.88);
    white-space: pre-wrap;
    word-break: break-word;
}

.colab-rendered-output {
    padding: 10px;
    border-top: 1px solid rgba(71, 85, 105, 0.36);
    background: rgba(8, 11, 19, 0.95);
}

.colab-output {
    border-top: 1px solid rgba(71, 85, 105, 0.36);
    background: rgba(11, 16, 28, 0.95);
    padding: 0.55rem 0.7rem 0.7rem;
    display: grid;
    gap: 0.55rem;
}

.colab-output__block {
    padding: 0.72rem 0.8rem;
    border-radius: 0.9rem;
    background: rgba(7, 10, 18, 0.88);
    border: 1px solid rgba(42, 42, 58, 1);
}

.colab-output__block--error {
    background: rgba(69, 10, 10, 0.3);
    border-color: rgba(251, 113, 133, 0.22);
}

@keyframes toast-enter {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse-loader {
    0%,
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.42);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 14px rgba(192, 132, 252, 0);
    }
}

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

@media (max-width: 640px) {
    .panel-card,
    .metric-card {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .table-action {
        width: 100%;
        justify-content: center;
    }

    .toast-stack {
        left: 1rem;
        right: 1rem;
        width: auto;
    }

    .status-inline-form {
        min-width: 100%;
    }

    .media-card-preview {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .notebook-toolbar-shell {
        top: 4.75rem;
    }
}

@media (max-width: 1080px) {
    .notebook-home-dataset-card__layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .notebook-manage-form,
    .notebook-dataset-item-actions,
    .notebook-dataset-rename-form {
        grid-template-columns: 1fr;
    }

    .notebook-home-note {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-page-card__header,
    .profile-page-card__hero {
        grid-template-columns: 1fr;
    }

    .profile-page-card__header {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-overview-card__meta {
        grid-template-columns: 1fr;
    }

    .profile-image-field__preview {
        align-items: flex-start;
        flex-direction: column;
    }
}
