@metropolle/design-system
Version:
Sistema de design unificado para a plataforma Metropolle
5,930 lines • 151 kB
CSS
/* Metropolle Design System - Component Styles */
/* Animatable custom property for ProfileCard gradient rotation */
@property --mds-pc-angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
/* Button Styles */
.mds-button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--mds-spacing-sm);
font-family: var(--mds-typography-fontFamily-brand);
font-weight: var(--mds-typography-fontWeight-medium);
text-decoration: none;
border: none;
border-radius: var(--mds-spacing-borderRadius-md);
cursor: pointer;
transition: var(--mds-effects-transition-normal);
/* Remove default button styles */
background: none;
outline: none;
/* Prevent text selection */
-moz-user-select: none;
user-select: none;
-webkit-user-select: none;
}
.mds-button:disabled,
.mds-button--disabled {
opacity: var(--mds-effects-opacity-disabled);
cursor: not-allowed;
pointer-events: none;
}
.mds-button--loading {
cursor: wait;
}
.mds-button--full-width {
width: 100%;
}
/* =========================
Modal Styles
NOTE: Modal styling is handled 100% via inline styles in Modal.tsx
(same approach as ProfileCard for visual consistency)
NO CSS classes are used for the modal card itself.
========================= */
/* Header close button sizing + alignment */
.mds-modal-header > button[aria-label="Close"],
.mds-modal-header > button[aria-label="Fechar"] {
/* Size and reset */
font-size: 1rem !important;
line-height: 1 !important;
transition: none !important;
padding: 0 !important;
background: transparent !important;
border: none !important;
/* Colors from DS tokens with robust fallback */
color: var(--mds-color-text-secondary, var(--text-secondary, rgba(0,0,0,0.65))) !important;
/* Absolute centering like the left icon */
position: absolute !important;
right: 16px !important;
top: 50% !important;
transform: translateY(-50%) !important;
width: 32px !important;
height: 32px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
}
.mds-modal-header > button[aria-label="Close"]:hover,
.mds-modal-header > button[aria-label="Close"]:focus,
.mds-modal-header > button[aria-label="Close"]:focus-visible,
.mds-modal-header > button[aria-label="Fechar"]:hover,
.mds-modal-header > button[aria-label="Fechar"]:focus,
.mds-modal-header > button[aria-label="Fechar"]:focus-visible {
/* Keep centered on interactive states and avoid lifts/shadows */
position: absolute !important;
right: 16px !important;
top: 50% !important;
transform: translateY(-50%) !important;
box-shadow: none !important;
transition: none !important;
color: var(--mds-color-text-primary, var(--text-primary, #111827)) !important;
}
/* Responsive modal */
@media (max-width: 768px) {
.mds-modal-overlay .mds-modal-card,
.modal-overlay .mds-modal-card {
min-width: 90vw !important;
max-width: 95vw !important;
margin: 20px !important;
}
}
/* Button Sizes */
.mds-button--sm {
padding: var(--mds-spacing-sm) var(--mds-spacing-md);
font-size: var(--mds-typography-fontSize-sm);
min-height: 2rem;
}
.mds-button--md {
padding: var(--mds-spacing-md) var(--mds-spacing-lg);
font-size: var(--mds-typography-fontSize-base);
min-height: 2.5rem;
}
.mds-button--lg {
padding: var(--mds-spacing-lg) var(--mds-spacing-xl);
font-size: var(--mds-typography-fontSize-lg);
min-height: 3rem;
}
/* Button Variants */
.mds-button--primary {
background: var(--mds-color-brand-primary);
color: white;
box-shadow: var(--mds-spacing-shadow-md);
}
.mds-button--primary:hover:not(:disabled) {
background: #0044CC;
transform: var(--mds-effects-transform-scale-hover);
box-shadow: var(--mds-spacing-shadow-lg);
}
.mds-button--primary:active:not(:disabled) {
transform: var(--mds-effects-transform-scale-active);
}
.mds-button--secondary {
background: var(--mds-color-brand-secondary);
color: white;
box-shadow: var(--mds-spacing-shadow-md);
}
.mds-button--secondary:hover:not(:disabled) {
background: #E68A00;
transform: var(--mds-effects-transform-scale-hover);
box-shadow: var(--mds-spacing-shadow-lg);
}
/* BUG-0269: every colour here needs a fallback. A host that maps only part of
the legacy `--mds-*` aliases (as @front does) left `--mds-color-border-medium`
undefined, which made the whole `border` declaration invalid — outline
buttons painted with NO affordance, and outline/ghost hover was a no-op.
The fallbacks resolve to the Meridian tokens, then to literals. */
.mds-button--outline {
background: transparent;
color: var(--mds-color-text-primary, var(--ink, #17171C));
border: 2px solid var(--mds-color-border-medium, var(--stroke-2, rgba(0, 0, 0, .18)));
}
.mds-button--outline:hover:not(:disabled) {
background: var(--mds-color-background-secondary, var(--accent-soft, rgba(0, 0, 0, .05)));
border-color: var(--mds-color-border-strong, var(--ink-dim, rgba(0, 0, 0, .58)));
}
.mds-button--ghost {
background: transparent;
color: var(--mds-color-text-primary, var(--ink, #17171C));
}
.mds-button--ghost:hover:not(:disabled) {
background: var(--mds-color-background-secondary, var(--accent-soft, rgba(0, 0, 0, .05)));
}
/* Subtle variant - minimal border, muted colors, perfect for navigation buttons */
.mds-button--subtle {
background: transparent;
border: 1px solid var(--mds-liquid-border-subtle, rgba(255, 255, 255, 0.12));
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.7));
}
.mds-button--subtle:hover:not(:disabled) {
background: var(--mds-liquid-bg-button, rgba(255, 255, 255, 0.08));
border-color: var(--mds-liquid-border-bright, rgba(255, 255, 255, 0.2));
color: var(--mds-color-text-primary);
}
/* Light theme adjustments for subtle */
html[data-theme="light"] .mds-button--subtle {
border-color: var(--mds-liquid-border-subtle, rgba(0, 0, 0, 0.12));
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
html[data-theme="light"] .mds-button--subtle:hover:not(:disabled) {
background: var(--mds-liquid-bg-button, rgba(0, 0, 0, 0.05));
border-color: var(--mds-liquid-border-bright, rgba(0, 0, 0, 0.2));
color: var(--mds-color-text-primary);
}
.mds-button--glass {
background: var(--glass);
color: var(--mds-color-text-primary);
border: none;
box-shadow: var(--card-shadow-sm);
}
.mds-button--glass:hover:not(:disabled) {
background: var(--accent-soft);
box-shadow: var(--card-shadow);
}
.mds-button--danger {
background: var(--mds-color-error, #dc2626);
color: #ffffff;
border: 1px solid transparent;
}
.mds-button--danger:hover:not(:disabled) {
background: #b91c1c;
transform: var(--mds-effects-transform-hoverUp);
box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
/* Button Icons */
.mds-button__icon {
display: inline-flex;
align-items: center;
justify-content: center;
}
.mds-button__icon--left {
margin-right: calc(var(--mds-spacing-sm) * -0.5);
}
.mds-button__icon--right {
margin-left: calc(var(--mds-spacing-sm) * -0.5);
}
.mds-button__content {
display: inline-flex;
align-items: center;
}
/* Spinner Animation */
.mds-spinner {
animation: mds-spin 1s linear infinite;
}
.mds-spinner__path {
animation: mds-spinner-dash 2s ease-in-out infinite;
}
@keyframes mds-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
@keyframes mds-spinner-dash {
0% {
stroke-dasharray: 1 40;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 40 40;
stroke-dashoffset: -15;
}
100% {
stroke-dasharray: 40 40;
stroke-dashoffset: -60;
}
}
/* Typography Styles */
.mds-text {
font-family: var(--mds-typography-fontFamily-brand);
color: var(--mds-color-text-primary);
margin: 0;
}
.mds-text--color-primary {
color: var(--mds-color-text-primary);
}
.mds-text--color-secondary {
color: var(--mds-color-text-secondary);
}
.mds-text--color-muted {
color: var(--mds-color-text-muted);
}
/* Font Weights */
.mds-text--weight-light {
font-weight: var(--mds-typography-fontWeight-light);
}
.mds-text--weight-normal {
font-weight: var(--mds-typography-fontWeight-normal);
}
.mds-text--weight-medium {
font-weight: var(--mds-typography-fontWeight-medium);
}
.mds-text--weight-semibold {
font-weight: var(--mds-typography-fontWeight-semibold);
}
.mds-text--weight-bold {
font-weight: var(--mds-typography-fontWeight-bold);
}
/* Font Sizes */
.mds-text--size-xs {
font-size: var(--mds-typography-fontSize-xs);
}
.mds-text--size-sm {
font-size: var(--mds-typography-fontSize-sm);
}
.mds-text--size-base {
font-size: var(--mds-typography-fontSize-base);
line-height: var(--mds-typography-lineHeight-normal);
}
.mds-text--size-lg {
font-size: var(--mds-typography-fontSize-lg);
}
.mds-text--size-xl {
font-size: var(--mds-typography-fontSize-xl);
}
.mds-text--size-2xl {
font-size: var(--mds-typography-fontSize-2xl);
line-height: var(--mds-typography-lineHeight-tight);
}
.mds-text--size-3xl {
font-size: var(--mds-typography-fontSize-3xl);
line-height: var(--mds-typography-lineHeight-tight);
}
.mds-text--size-4xl {
font-size: var(--mds-typography-fontSize-4xl);
line-height: var(--mds-typography-lineHeight-tight);
}
/* Typography Variants */
.mds-text--h1,
.mds-text--h2,
.mds-text--h3,
.mds-text--h4 {
font-weight: var(--mds-typography-fontWeight-semibold);
line-height: var(--mds-typography-lineHeight-tight);
}
.mds-text--body {
line-height: var(--mds-typography-lineHeight-normal);
}
.mds-text--caption {
font-size: var(--mds-typography-fontSize-sm);
color: var(--mds-color-text-secondary);
}
.mds-text--brand,
.mds-brand-logo {
font-size: var(--mds-typography-fontSize-4xl);
line-height: var(--mds-typography-lineHeight-tight);
letter-spacing: var(--mds-typography-letterSpacing-brand);
font-weight: var(--mds-typography-fontWeight-bold);
color: var(--mds-color-text-primary);
}
/* Logo brand class for consistent branding */
.logo-brand {
font-size: var(--mds-typography-fontSize-4xl);
color: var(--mds-color-text-primary);
letter-spacing: var(--mds-typography-letterSpacing-brand);
font-weight: var(--mds-typography-fontWeight-bold);
font-family: var(--mds-typography-fontFamily-brand);
}
/* Brand Logo Size Variants - Consistent across all environments */
.mds-brand-logo--sm {
font-size: 1.5rem; /* 24px - Navbar size */
letter-spacing: -0.03rem;
}
.mds-brand-logo--md {
font-size: 2rem; /* 32px - Medium contexts */
letter-spacing: -0.04rem;
}
.mds-brand-logo--lg {
font-size: 2rem; /* 32px - Landing/top menu contexts */
letter-spacing: -0.03em;
}
/* Navbar-specific brand logo - always consistent size */
.navbar-brand-logo,
.navbar__brand-logo,
.login-brand-logo {
font-size: 1.5rem !important;
letter-spacing: -0.03rem !important;
font-weight: var(--mds-typography-fontWeight-bold) !important;
font-family: var(--mds-typography-fontFamily-brand) !important;
color: var(--mds-color-text-primary) !important;
}
/* Brand Logo Responsive */
@media (max-width: 768px) {
.mds-text--brand,
.mds-brand-logo,
.logo-brand {
font-size: 1.8rem;
letter-spacing: var(--mds-typography-letterSpacing-tight);
}
.mds-brand-logo--sm,
.navbar-brand-logo,
.navbar__brand-logo,
.login-brand-logo {
font-size: 1.25rem !important;
letter-spacing: -0.02rem !important;
}
.mds-brand-logo--md {
font-size: 1.5rem;
letter-spacing: -0.03rem;
}
.mds-brand-logo--lg {
font-size: 2rem;
letter-spacing: -0.03em;
}
}
/* Glass Card - Enhanced styles (complementing base tokens.css) */
.mds-glass-card--no-hover:hover {
transform: none !important;
box-shadow: inherit !important;
border-color: inherit !important;
background: inherit !important;
}
/* Utility Classes */
.mds-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
.mds-focus-visible {
outline: 2px solid var(--mds-color-brand-primary);
outline-offset: 2px;
}
/* Dashboard Components */
/* Dashboard Action Controls */
.mds-dashboard-controls {
display: flex;
align-items: center;
gap: var(--mds-spacing-md);
}
/* Period Filter Dropdown */
.mds-period-filter {
position: relative;
display: inline-block;
}
.mds-period-filter__select {
padding: var(--mds-spacing-sm) var(--mds-spacing-md);
font-weight: var(--mds-typography-fontWeight-medium);
font-size: var(--mds-typography-fontSize-sm);
font-family: var(--mds-typography-fontFamily-brand);
border-radius: var(--mds-spacing-borderRadius-md);
cursor: pointer;
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-repeat: no-repeat;
background-size: 16px;
padding-right: 2rem;
min-width: 140px;
transition: var(--mds-effects-transition-normal);
/* Theme-specific styles are applied via CSS custom properties */
background-color: var(--mds-dashboard-control-bg);
color: var(--mds-dashboard-control-color);
border: 1px solid var(--mds-dashboard-control-border);
background-image: var(--mds-dashboard-control-dropdown-icon);
background-position: right 8px center;
box-shadow: var(--mds-dashboard-control-shadow);
}
.mds-period-filter__select:hover:not(:disabled) {
background-color: var(--mds-dashboard-control-bg-hover);
box-shadow: var(--mds-dashboard-control-shadow-hover);
}
.mds-period-filter__select:disabled {
opacity: var(--mds-effects-opacity-disabled);
cursor: not-allowed;
}
/* Dropdown Options Styling - High specificity to override compat rules */
select.mds-period-filter__select option {
background-color: var(--mds-dashboard-control-option-bg) !important;
color: var(--mds-dashboard-control-option-color) !important;
padding: var(--mds-spacing-xs) var(--mds-spacing-sm) !important;
-webkit-appearance: none !important;
}
select.mds-period-filter__select option:hover,
select.mds-period-filter__select option:focus,
select.mds-period-filter__select option:checked {
background-color: var(--mds-dashboard-control-option-bg-hover) !important;
color: var(--mds-dashboard-control-option-color-hover) !important;
}
/* Enhanced contrast for webkit-based browsers */
select.mds-period-filter__select option:focus,
select.mds-period-filter__select option:active,
select.mds-period-filter__select option[selected] {
background-color: var(--mds-dashboard-control-option-bg-hover) !important;
color: var(--mds-dashboard-control-option-color-hover) !important;
font-weight: 500 !important;
}
/* Additional styling for browsers that support it */
.mds-period-filter__select::-webkit-scrollbar {
width: 8px;
}
.mds-period-filter__select::-webkit-scrollbar-track {
background: var(--mds-dashboard-control-option-bg);
}
.mds-period-filter__select::-webkit-scrollbar-thumb {
background: var(--mds-dashboard-control-border);
border-radius: 4px;
}
.mds-period-filter__select::-webkit-scrollbar-thumb:hover {
background: var(--mds-dashboard-control-border-disabled);
}
/* =========================
Generic Dropdown/Select Component
========================= */
/* Generic dropdown container */
.mds-dropdown {
position: relative;
display: inline-block;
}
/* Generic themed select - inherits dashboard control styling */
.mds-select-themed {
padding: var(--mds-spacing-sm) var(--mds-spacing-md) !important;
font-weight: var(--mds-typography-fontWeight-medium) !important;
font-size: var(--mds-typography-fontSize-sm) !important;
font-family: var(--mds-typography-fontFamily-brand) !important;
border-radius: var(--mds-spacing-borderRadius-md) !important;
cursor: pointer !important;
outline: none !important;
-webkit-appearance: none !important;
-moz-appearance: none !important;
appearance: none !important;
background-repeat: no-repeat !important;
background-size: 16px !important;
padding-right: 2rem !important;
transition: var(--mds-effects-transition-normal) !important;
/* Theme-specific styles are applied via CSS custom properties */
background-color: var(--mds-dashboard-control-bg) !important;
color: var(--mds-dashboard-control-color) !important;
border: 1px solid var(--mds-dashboard-control-border) !important;
background-image: var(--mds-dashboard-control-dropdown-icon) !important;
background-position: right 8px center !important;
box-shadow: var(--mds-dashboard-control-shadow) !important;
}
.mds-select-themed:hover:not(:disabled) {
background-color: var(--mds-dashboard-control-bg-hover) !important;
box-shadow: var(--mds-dashboard-control-shadow-hover) !important;
}
.mds-select-themed:disabled {
opacity: var(--mds-effects-opacity-disabled) !important;
cursor: not-allowed !important;
}
/* Dropdown Options Styling - High specificity to override compat rules */
select.mds-select-themed option {
background-color: var(--mds-dashboard-control-option-bg) !important;
color: var(--mds-dashboard-control-option-color) !important;
padding: var(--mds-spacing-xs) var(--mds-spacing-sm) !important;
-webkit-appearance: none !important;
}
select.mds-select-themed option:hover,
select.mds-select-themed option:focus,
select.mds-select-themed option:checked {
background-color: var(--mds-dashboard-control-option-bg-hover) !important;
color: var(--mds-dashboard-control-option-color-hover) !important;
}
/* Enhanced contrast for webkit-based browsers */
select.mds-select-themed option:focus,
select.mds-select-themed option:active,
select.mds-select-themed option[selected] {
background-color: var(--mds-dashboard-control-option-bg-hover) !important;
color: var(--mds-dashboard-control-option-color-hover) !important;
font-weight: 500 !important;
}
/* Maximum specificity for geo dropdowns to ensure they always work */
html .mds-dropdown select.mds-select-themed option {
background-color: var(--mds-dashboard-control-option-bg) !important;
color: var(--mds-dashboard-control-option-color) !important;
}
html .mds-dropdown select.mds-select-themed option:hover,
html .mds-dropdown select.mds-select-themed option:focus,
html .mds-dropdown select.mds-select-themed option:checked {
background-color: var(--mds-dashboard-control-option-bg-hover) !important;
color: var(--mds-dashboard-control-option-color-hover) !important;
}
/* Absolute specificity to override any browser or other CSS */
html body .mds-dropdown select.mds-select-themed option,
html body div .mds-dropdown select.mds-select-themed option {
background-color: var(--mds-dashboard-control-option-bg) !important;
color: var(--mds-dashboard-control-option-color) !important;
padding: var(--mds-spacing-xs) var(--mds-spacing-sm) !important;
font-size: var(--mds-typography-fontSize-sm) !important;
font-family: var(--mds-typography-fontFamily-brand) !important;
}
html body .mds-dropdown select.mds-select-themed option:hover,
html body .mds-dropdown select.mds-select-themed option:focus,
html body .mds-dropdown select.mds-select-themed option:checked,
html body div .mds-dropdown select.mds-select-themed option:hover,
html body div .mds-dropdown select.mds-select-themed option:focus,
html body div .mds-dropdown select.mds-select-themed option:checked {
background-color: var(--mds-dashboard-control-option-bg-hover) !important;
color: var(--mds-dashboard-control-option-color-hover) !important;
font-weight: 500 !important;
}
/* Ultimate specificity safeguard for geo dropdowns */
html body div.mds-dropdown select.mds-select-themed {
background-color: var(--mds-dashboard-control-bg) !important;
color: var(--mds-dashboard-control-color) !important;
border: 1px solid var(--mds-dashboard-control-border) !important;
background-image: var(--mds-dashboard-control-dropdown-icon) !important;
background-position: right 8px center !important;
background-repeat: no-repeat !important;
background-size: 16px !important;
padding-right: 2rem !important;
}
/* Additional styling for browsers that support it */
.mds-select-themed::-webkit-scrollbar {
width: 8px;
}
.mds-select-themed::-webkit-scrollbar-track {
background: var(--mds-dashboard-control-option-bg);
}
.mds-select-themed::-webkit-scrollbar-thumb {
background: var(--mds-dashboard-control-border);
border-radius: 4px;
}
.mds-select-themed::-webkit-scrollbar-thumb:hover {
background: var(--mds-dashboard-control-border-disabled);
}
/* Compatibility alias - maps period filter to generic themed select */
.mds-period-filter__select {
/* Copy all styles from .mds-select-themed for full compatibility */
padding: var(--mds-spacing-sm) var(--mds-spacing-md);
font-weight: var(--mds-typography-fontWeight-medium);
font-size: var(--mds-typography-fontSize-sm);
font-family: var(--mds-typography-fontFamily-brand);
border-radius: var(--mds-spacing-borderRadius-md);
cursor: pointer;
outline: none;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-repeat: no-repeat;
background-size: 16px;
padding-right: 2rem;
min-width: 140px;
transition: var(--mds-effects-transition-normal);
/* Theme-specific styles are applied via CSS custom properties */
background-color: var(--mds-dashboard-control-bg);
color: var(--mds-dashboard-control-color);
border: 1px solid var(--mds-dashboard-control-border);
background-image: var(--mds-dashboard-control-dropdown-icon);
background-position: right 8px center;
box-shadow: var(--mds-dashboard-control-shadow);
}
.mds-period-filter__select:hover:not(:disabled) {
background-color: var(--mds-dashboard-control-bg-hover);
box-shadow: var(--mds-dashboard-control-shadow-hover);
}
.mds-period-filter__select:disabled {
opacity: var(--mds-effects-opacity-disabled);
cursor: not-allowed;
}
/* Dashboard Refresh Button */
.mds-dashboard-refresh {
padding: var(--mds-spacing-sm) var(--mds-spacing-md);
font-weight: var(--mds-typography-fontWeight-medium);
font-size: var(--mds-typography-fontSize-sm);
font-family: var(--mds-typography-fontFamily-brand);
border-radius: var(--mds-spacing-borderRadius-md);
cursor: pointer;
outline: none;
border: 1px solid var(--mds-dashboard-control-border);
transition: var(--mds-effects-transition-normal);
min-width: 140px;
width: 140px;
/* Theme-specific styles */
background-color: var(--mds-dashboard-control-bg);
color: var(--mds-dashboard-control-color);
box-shadow: var(--mds-dashboard-control-shadow);
}
.mds-dashboard-refresh:hover:not(:disabled) {
background-color: var(--mds-dashboard-control-bg-hover);
box-shadow: var(--mds-dashboard-control-shadow-hover);
}
.mds-dashboard-refresh:disabled {
opacity: var(--mds-effects-opacity-disabled);
cursor: not-allowed;
background-color: transparent !important;
border: 2px solid var(--mds-dashboard-control-border-disabled);
transform: none !important;
box-shadow: none !important;
}
/* Theme Support - Default (Dark Theme) */
:root {
/* Dashboard Control Variables - Dark Theme (default) */
--mds-dashboard-control-bg: rgba(0, 0, 0, 0.35);
--mds-dashboard-control-bg-hover: rgba(0, 0, 0, 0.5);
--mds-dashboard-control-color: #ffffff;
--mds-dashboard-control-border: rgba(255, 255, 255, 0.18);
--mds-dashboard-control-border-disabled: rgba(255, 255, 255, 0.3);
--mds-dashboard-control-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
--mds-dashboard-control-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
--mds-dashboard-control-dropdown-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
/* Dropdown Options - Dark Theme */
--mds-dashboard-control-option-bg: #2a2a2a;
--mds-dashboard-control-option-color: #ffffff;
--mds-dashboard-control-option-bg-hover: #505050;
--mds-dashboard-control-option-color-hover: #ffffff;
/* Login specific variables - Dark Theme */
--mds-login-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
--mds-input-bg: rgba(255, 255, 255, 0.1);
--mds-input-focus-border: #aaaaaa;
--mds-input-focus-bg: rgba(255, 255, 255, 0.15);
--mds-input-focus-shadow: 0 4px 12px rgba(170, 170, 170, 0.2);
--mds-error-bg: rgba(200, 200, 200, 0.15);
--mds-error-border: rgba(200, 200, 200, 0.3);
}
/* Theme Toggle (square, themed) */
.mds-theme-toggle {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
width: var(--mds-theme-toggle-size, 2.5rem);
height: var(--mds-theme-toggle-size, 2.5rem);
min-width: var(--mds-theme-toggle-size, 2.5rem);
padding: 0;
border-radius: var(--mds-spacing-borderRadius-md);
border: 1px solid var(--mds-dashboard-control-border);
background-color: var(--mds-dashboard-control-bg);
color: var(--mds-dashboard-control-color);
box-shadow: var(--mds-dashboard-control-shadow);
cursor: pointer;
outline: none;
transition: var(--mds-effects-transition-normal);
}
/* Force dark background in dark theme */
.mds-theme-toggle[data-theme="dark"] {
background-color: rgba(0, 0, 0, 0.35) !important;
border: 1px solid rgba(255, 255, 255, 0.18) !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.mds-theme-toggle:hover:not(:disabled) {
background-color: var(--mds-dashboard-control-bg-hover);
box-shadow: var(--mds-dashboard-control-shadow-hover);
}
/* Force dark hover in dark theme */
.mds-theme-toggle[data-theme="dark"]:hover:not(:disabled) {
background-color: rgba(0, 0, 0, 0.5) !important;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.mds-theme-toggle:disabled {
opacity: var(--mds-effects-opacity-disabled);
cursor: not-allowed;
background-color: transparent !important;
border: 2px solid var(--mds-dashboard-control-border-disabled);
box-shadow: none !important;
}
.mds-theme-toggle--sm { --mds-theme-toggle-size: 2rem; }
.mds-theme-toggle--md { --mds-theme-toggle-size: 2.5rem; }
.mds-theme-toggle--lg { --mds-theme-toggle-size: 3rem; }
/* Monochromatic theme toggle icons via CSS pseudo-elements */
.mds-theme-toggle[data-theme="light"]::before {
content: '';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 20px;
height: 20px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z' fill='%23000000'/%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
.mds-theme-toggle[data-theme="dark"]::before {
content: '';
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 20px;
height: 20px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='4' fill='%23ffffff'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
/* Light Theme Support */
[data-theme="light"] {
--mds-dashboard-control-bg: rgba(0, 0, 0, 0.1);
--mds-dashboard-control-bg-hover: rgba(0, 0, 0, 0.15);
--mds-dashboard-control-color: #1a1a1a;
--mds-dashboard-control-border: rgba(0, 0, 0, 0.1);
--mds-dashboard-control-border-disabled: rgba(0, 0, 0, 0.3);
--mds-dashboard-control-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
--mds-dashboard-control-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
--mds-dashboard-control-dropdown-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
/* Dropdown Options - Light Theme */
--mds-dashboard-control-option-bg: #ffffff;
--mds-dashboard-control-option-color: #1a1a1a;
--mds-dashboard-control-option-bg-hover: #f0f7ff;
--mds-dashboard-control-option-color-hover: #1a1a1a;
/* Login specific variables - Light Theme */
--mds-login-bg: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 50%, #dcdcdc 100%);
--mds-input-bg: rgba(255, 255, 255, 0.8);
--mds-input-focus-border: #666666;
--mds-input-focus-bg: rgba(255, 255, 255, 1);
--mds-input-focus-shadow: 0 4px 12px rgba(102, 102, 102, 0.15);
--mds-error-bg: rgba(150, 150, 150, 0.1);
--mds-error-border: rgba(150, 150, 150, 0.3);
}
/* Form Input Styles */
.mds-input {
position: relative;
display: block;
width: 100%;
padding: var(--mds-spacing-md) var(--mds-spacing-md);
font-family: var(--mds-typography-fontFamily-brand);
font-size: var(--mds-typography-fontSize-base);
font-weight: var(--mds-typography-fontWeight-normal);
line-height: var(--mds-typography-lineHeight-normal);
color: var(--mds-color-text-primary);
background-color: var(--mds-color-background-primary);
border: 2px solid var(--mds-color-border-medium);
border-radius: var(--mds-spacing-borderRadius-md);
outline: none;
transition: var(--mds-effects-transition-normal);
}
.mds-input:focus {
border-color: var(--mds-color-brand-primary);
box-shadow: 0 0 0 3px rgba(0, 111, 238, 0.1);
}
.mds-input:disabled {
opacity: var(--mds-effects-opacity-disabled);
cursor: not-allowed;
background-color: var(--mds-color-background-secondary);
}
.mds-input--error {
border-color: #dc2626;
background-color: #fef2f2;
}
.mds-input--error:focus {
border-color: #dc2626;
box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
/* Readonly input display (non-editable) */
.mds-input-readonly {
padding: 10px 12px;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 6px;
color: var(--mds-color-text-secondary, var(--text-secondary));
font-size: 0.95rem;
}
/* Textarea specific styles */
.mds-textarea {
resize: vertical;
min-height: 80px;
}
/* Select specific styles */
.mds-select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
background-position: right var(--mds-spacing-md) center;
background-repeat: no-repeat;
background-size: 16px;
padding-right: calc(var(--mds-spacing-md) + 24px);
}
.mds-select:disabled {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}
/* Select dropdown option styles for .mds-input - fixes Edge/Windows dropdown visibility */
select.mds-input {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
color-scheme: dark; /* Forces OS to render dropdown with dark theme on Edge/Chrome Windows */
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
background-position: right var(--mds-spacing-md) center;
background-repeat: no-repeat;
background-size: 16px;
padding-right: calc(var(--mds-spacing-md) + 24px);
cursor: pointer;
}
select.mds-input:disabled {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239CA3AF' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
cursor: not-allowed;
}
select.mds-input option {
background-color: var(--mds-dashboard-control-option-bg) !important;
color: var(--mds-dashboard-control-option-color) !important;
padding: var(--mds-spacing-xs) var(--mds-spacing-sm) !important;
}
select.mds-input option:hover,
select.mds-input option:focus,
select.mds-input option:checked {
background-color: var(--mds-dashboard-control-option-bg-hover) !important;
color: var(--mds-dashboard-control-option-color-hover) !important;
}
/* Light theme override for select.mds-input */
html[data-theme="light"] select.mds-input {
color-scheme: light;
}
/* ============================================
Custom Select Component (JavaScript-rendered dropdown)
Cross-browser compatible - works on Edge/Chrome Windows
============================================ */
/* Select Trigger Button */
.mds-select-trigger {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
min-width: 0;
max-width: 100%;
box-sizing: border-box;
padding: 10px 12px;
font-family: var(--mds-typography-fontFamily-brand, system-ui, sans-serif);
font-size: 0.95rem;
line-height: 1.5;
color: var(--mds-color-text-primary, #ffffff);
background-color: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
text-align: left;
outline: none;
overflow: hidden;
}
.mds-select-trigger:hover:not(:disabled) {
background-color: rgba(255, 255, 255, 0.12);
border-color: rgba(255, 255, 255, 0.25);
}
.mds-select-trigger:focus:not(:disabled) {
border-color: var(--mds-color-primary, #3b82f6);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.mds-select-trigger--open {
border-color: var(--mds-color-primary, #3b82f6);
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}
.mds-select-trigger--disabled {
opacity: 0.5;
cursor: not-allowed;
background-color: rgba(255, 255, 255, 0.04);
}
.mds-select-trigger--loading {
cursor: wait;
}
.mds-select-trigger--error {
border-color: var(--mds-color-error, #ef4444);
}
.mds-select-trigger--error:focus {
box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}
.mds-select-trigger--full-width {
width: 100%;
}
/* Select Trigger Value */
.mds-select-trigger__value {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mds-select-trigger__placeholder {
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.5));
}
/* Select Trigger Icon */
.mds-select-trigger__icon {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 20px;
height: 20px;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.5));
transition: transform 0.2s ease;
}
.mds-select-trigger--open .mds-select-trigger__icon {
transform: rotate(180deg);
}
.mds-select-chevron {
width: 16px;
height: 16px;
}
.mds-select-spinner {
width: 16px;
height: 16px;
animation: mds-select-spin 1s linear infinite;
}
@keyframes mds-select-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
/* Select Dropdown — Meridian flat floating surface */
.mds-select-dropdown {
background-color: var(--mds-dashboard-control-option-bg, #2a2a2a);
border: none;
border-radius: var(--r-sm, 4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
overflow: hidden; /* Changed from auto to hidden - scroll is on .mds-select-options */
animation: mds-select-dropdown-enter 0.15s ease-out;
display: flex;
flex-direction: column;
}
@keyframes mds-select-dropdown-enter {
from {
opacity: 0;
transform: translateY(-4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Select Search */
.mds-select-search {
position: relative; /* Required for absolute positioning of search icon */
flex-shrink: 0; /* Don't shrink in flex container */
padding: 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
background-color: var(--mds-dashboard-control-option-bg, #2a2a2a);
}
.mds-select-search__input {
width: 100%;
padding: 8px 12px 8px 36px;
font-family: var(--mds-typography-fontFamily-brand, system-ui, sans-serif);
font-size: 0.9rem;
color: var(--mds-color-text-primary, #ffffff);
background-color: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 6px;
outline: none;
transition: all 0.2s ease;
}
.mds-select-search__input:focus {
border-color: var(--mds-color-primary, #3b82f6);
background-color: rgba(255, 255, 255, 0.12);
}
.mds-select-search__input::-moz-placeholder {
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.5));
}
.mds-select-search__input::placeholder {
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.5));
}
.mds-select-search__icon {
position: absolute;
left: 20px;
top: 50%;
transform: translateY(-50%);
width: 16px;
height: 16px;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.5));
pointer-events: none;
}
/* Select Options List */
.mds-select-options {
list-style: none;
margin: 0;
padding: 4px;
overflow-y: auto;
flex: 1;
min-height: 0; /* Required for flex scroll */
}
/* Select Option */
.mds-select-option {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 12px;
font-size: 0.95rem;
color: var(--mds-dashboard-control-option-color, #ffffff);
background-color: transparent;
border-radius: 6px;
cursor: pointer;
transition: background-color 0.15s ease;
}
.mds-select-option:hover,
.mds-select-option--highlighted {
background-color: var(--mds-dashboard-control-option-bg-hover, #505050);
}
.mds-select-option--selected {
color: var(--mds-color-primary, #3b82f6);
font-weight: 500;
}
.mds-select-option--disabled {
opacity: 0.5;
cursor: not-allowed;
}
.mds-select-option--disabled:hover {
background-color: transparent;
}
.mds-select-option--empty {
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.5));
font-style: italic;
cursor: default;
}
.mds-select-option--empty:hover {
background-color: transparent;
}
.mds-select-option__label {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mds-select-option__check {
flex-shrink: 0;
width: 16px;
height: 16px;
color: var(--mds-color-primary, #3b82f6);
}
/* Select Size Variants */
.mds-select--sm .mds-select-trigger {
padding: 6px 10px;
font-size: 0.85rem;
}
.mds-select--sm .mds-select-option {
padding: 6px 10px;
font-size: 0.85rem;
}
.mds-select--lg .mds-select-trigger {
padding: 14px 16px;
font-size: 1.05rem;
}
.mds-select--lg .mds-select-option {
padding: 12px 16px;
font-size: 1.05rem;
}
/* Light Theme Overrides */
html[data-theme="light"] .mds-select-trigger {
color: var(--mds-color-text-primary, #1a1a1a);
background-color: rgba(0, 0, 0, 0.04);
border-color: rgba(0, 0, 0, 0.15);
}
html[data-theme="light"] .mds-select-trigger:hover:not(:disabled) {
background-color: rgba(0, 0, 0, 0.08);
border-color: rgba(0, 0, 0, 0.25);
}
html[data-theme="light"] .mds-select-trigger__placeholder {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.5));
}
html[data-theme="light"] .mds-select-trigger__icon {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.5));
}
html[data-theme="light"] .mds-select-dropdown {
background-color: var(--mds-dashboard-control-option-bg, #ffffff);
border-color: rgba(0, 0, 0, 0.15);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .mds-select-search {
border-bottom-color: rgba(0, 0, 0, 0.1);
background-color: var(--mds-dashboard-control-option-bg, #ffffff);
}
html[data-theme="light"] .mds-select-search__input {
color: var(--mds-color-text-primary, #1a1a1a);
background-color: rgba(0, 0, 0, 0.04);
border-color: rgba(0, 0, 0, 0.15);
}
html[data-theme="light"] .mds-select-search__input:focus {
background-color: rgba(0, 0, 0, 0.02);
}
html[data-theme="light"] .mds-select-search__input::-moz-placeholder {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.5));
}
html[data-theme="light"] .mds-select-search__input::placeholder {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.5));
}
html[data-theme="light"] .mds-select-search__icon {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.5));
}
html[data-theme="light"] .mds-select-option {
color: var(--mds-dashboard-control-option-color, #1a1a1a);
}
html[data-theme="light"] .mds-select-option:hover,
html[data-theme="light"] .mds-select-option--highlighted {
background-color: var(--mds-dashboard-control-option-bg-hover, #f0f7ff);
}
html[data-theme="light"] .mds-select-option--empty {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.5));
}
/* Label styles */
.mds-label {
display: block;
font-family: var(--mds-typography-fontFamily-brand);
font-size: var(--mds-typography-fontSize-sm);
font-weight: var(--mds-typography-fontWeight-medium);
color: var(--mds-color-text-primary);
margin-bottom: var(--mds-spacing-xs);
}
.mds-label--required::after {
content: " *";
color: #dc2626;
}
/* Field group */
.mds-field {
margin-bottom: var(--mds-spacing-lg);
}
.mds-field-error {
display: block;
font-family: var(--mds-typography-fontFamily-brand);
font-size: var(--mds-typography-fontSize-sm);
color: #dc2626;
margin-top: var(--mds-spacing-xs);
}
.mds-field-help {
display: block;
font-family: var(--mds-typography-fontFamily-brand);
font-size: var(--mds-typography-fontSize-sm);
color: var(--mds-color-text-secondary);
margin-top: var(--mds-spacing-xs);
}
/* Dashboard Layout Utilities */
.mds-dashboard-grid {
display: grid;
gap: var(--mds-spacing-xl);
}
.mds-dashboard-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: var(--mds-spacing-lg);
}
.mds-dashboard-charts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: var(--mds-spacing-lg);
}
/* Dashboard Content Sections */
.mds-dashboard-section {
display: flex;
flex-direction: column;
gap: var(--mds-spacing-xl);
}
/* Dashboard Progress Bars */
.mds-progress-row {
display: flex;
align-items: center;
gap: 15px;
}
.mds-progress-label {
width: 120px;
font-size: 0.9rem;
color: var(--mds-color-text-secondary);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mds-progress-label--wide { width: 200px; }
.mds-progress-track {
flex: 1;
height: 8px;
background: var(--mds-color-border, rgba(128, 128, 128, 0.2));
border-radius: 4px;
overflow: hidden;
}
.mds-progress-fill {
height: 100%;
border-radius: 4px;
transition: width 0.3s ease;
}
.mds-progress-fill--blue { background: linear-gradient(90deg, #007bff, #0056b3); }
.mds-progress-fill--green { background: linear-gradient(90deg, #28a745, #20c997); }
.mds-progress-fill--yellow { background: linear-gradient(90deg, #ffc107, #fd7e14); }
.mds-progress-value {
width: 60px;
text-align: right;
font-size: 0.9rem;
color: var(--mds-color-text-primary);
font-weight: 500;
}
/* Dashboard Stat Items (themed) */
.mds-stat-box {
padding: 15px;
background: var(--mds-stat-box-bg, rgba(255, 255, 255, 0.05));
border-radius: 8px;
text-align: center;
border: var(--mds-stat-box-border, none);
}
html[data-theme="light"] .mds-stat-box {
--mds-stat-box-bg: rgba(0, 0, 0, 0.03);
--mds-stat-box-border: 1px solid rgba(0, 0, 0, 0.1);
}
.mds-stat-box__value {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 5px;
color: var(--mds-color-text-primary);
}
.mds-stat-box__label {
font-size: 0.8rem;
color: var(--mds-color-text-secondary);
}
/* Dashboard Activity Items */
.mds-activity-item {
display: flex;
align-items: center;
gap: 15px;
padding: 15px;
background: var(--mds-color-border-light, rgba(128, 128, 128, 0.1));
border-radius: 8px;
transition: all 0.3s ease;
}
.mds-activity-icon {
font-size: 1.5rem;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: var(--mds-color-border, rgba(128, 128, 128, 0.2));
border-radius: 8px;
}
.mds-activity-content { flex: 1; }
.mds-activity-text {
font-size: 0.9rem;
color: var(--mds-color-text-primary);
margin-bottom: 5px;
}
.mds-activity-time {
font-size: 0.8rem;
color: var(--mds-color-text-tertiary, var(--mds-color-text-secondary));
}
.mds-activity-status {
padding: 4px 12px;
border-radius: 12px;
font-size: 0.8rem;
font-weight: 500;
background: rgba(40, 167, 69, 0.2);
color: #28a745;
}
/* Dashboard Card Header */
.mds-card-header {
margin-bottom: 25px;
font-size: 1.5rem;
font-weight: 600;
color: inherit;
}
.mds-card-header--sm { font-size: 1.25rem; margin-bottom: 15px; }
/* Card Title/Subtitle */
.mds-card-title {
margin: 0 0 0.5rem 0;
font-size: 1.25rem;
font-weight: 600;
color: var(--mds-color-text-primary, inherit);
}
.mds-card-subtitle {
margin: 0;
font-size: 0.9rem;
opacity: 0.8;
color: var(--mds-color-text-secondary, inherit);
}
/* ========================================
Layout Utility Classes - @back optimization
======================================== */
/* Flexbox utilities */
.mds-flex {
display: flex;
}
.mds-flex-col {
display: flex;
flex-direction: column;
}
.mds-flex-center {
display: flex;
align-items: center;
justify-content: center;
}
.mds-flex-between {
display: flex;
align-items: center;
justify-content: space-between;
}
.mds-flex-start {
display: flex;
align-items: flex-start;
justify-content: flex-start;
}
.mds-flex-end {
display: flex;
align-items: center;
justify-content: flex-end;
}
/* Spacing utilities */
.mds-gap-xs { gap: var(--mds-spacing-xs); }
.mds-gap-sm { gap: var(--mds-spacing-sm); }
.mds-gap-md { gap: var(--mds-spacing-md); }
.mds-gap-lg { gap: var(--mds-spacing-lg); }
.mds-gap-xl { gap: var(--mds-spacing-xl); }
/* Padding utilities */
.mds-p-xs { padding: var(--mds-spacing-xs); }
.mds-p-sm { padding: var(--mds-spacing-sm); }
.mds-p-md { padding: var(--mds-spacing-md); }
.mds-p-lg { padding: var(--mds-spacing-lg); }
.mds-p-xl { padding: var(--mds-spacing-xl); }
/* Margin utilities */
.mds-m-xs { margin: var(--mds-spacing-xs); }
.mds-m-sm { margin: var(--mds-spacing-sm); }
.mds-m-md { margin: var(--mds-spacing-md); }
.mds-m-lg { margin: var(--mds-spacing-lg); }
.mds-m-xl { margin: var(--mds-spacing-xl); }
/* Margin bottom utilities */
.mds-mb-xs { margin-bottom: var(--mds-spacing-xs); }
.mds-mb-sm { margin-bottom: var(--mds-spacing-sm); }
.mds-mb-md { margin-bottom: var(--mds-spacing-md); }
.mds-mb-lg { margin-bottom: var(--mds-spacing-lg); }
.mds-mb-xl { margin-bottom: var(--mds-spacing-xl); }
/* ========================================
Dashboard Layout Classes - @back optimization
======================================== */
/* Dashboard container */
.mds-dashboard-container {
display: flex;
min-height: 100vh;
font-family: var(--mds-typography-fontFamily-brand);
transition: all 0.3s ease;
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
background-attachment: fixed;
background-repeat: no-repeat;
background-size: 100% 100%;
color: #ffffff;
}
/* Light theme dashboard container */
html[data-theme="light"] .mds-dashboard-container {
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
color: #1a1a1a;
}
/* Dashboard main content */
.mds-dashboard-main {
flex: 1;
margin-left: 260px;
margin-top: 60px;
display: flex;
flex-direction: column;
min-height: calc(100vh - 60px);
}
/* Page header */
.mds-page-header {
padding: var(--mds-spacing-lg) var(--mds-spacing-xl) var(--mds-spacing-md) var(--mds-spacing-xl);
box-shadow: var(--card-shadow-sm);
}
/* Dark theme page header */
html[data-theme="dark"] .mds-page-header {
background-color: var(--panel);
}
/* Light theme page header */
html[data-theme="light"] .mds-page-header {
background-color: var(--panel);
}
/* Page title */
.mds-page-title {
margin: 0 0 var(--mds-spacing-xs) 0;
font-size: var(--mds-typography-fontSize-xl);
font-weight: var(--mds-typography-fontWeight-semibold);
color: var(--mds-colors-color-text-primary);
}
/* Page description */
.mds-page-description {
margin: 0;
font-size: var(--mds-typography-fontSize-sm);
color: var(--mds-colors-color-text-secondary);
line-height: var(--mds-typography-lineHeight-normal);
}
/* Main content area */
.mds-main-content {
flex: 1;
padding: var(--mds-spacing-xl);
overflow-y: auto;
position: relative;
}
/* ========================================
Navbar Classes - @back optimization
======================================== */
/* Fixed navbar */
.mds-navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
height: 60px;
z-index: 1000;
box-shadow: var(--card-shadow-sm);
transition: all 0.3s ease;
font-family: var(--mds-typography-fontFamily-brand);
}
/* Dark theme navbar */
html[data-theme="dark"] .mds-navbar {
background-color: var(--panel);
}
/* Light theme navbar */
html[data-theme="light"] .mds-navbar {
background-color: var(--panel);
}
/* Navbar content container */
.mds-navbar-content {
display: flex;
align-items: center;
justify-content: space-between;
height: 100%;
max-width: 100%;
}
/* Navbar brand section */
.mds-navbar-brand {
display: flex;
align-items: center;
gap: var(--mds-spacing-md);
}
/* Navbar actions section */
.mds-navbar-actions {
display: flex;
align-items: center;
gap: var(--mds-spacing-md);
}
/* User info in navbar */
.mds-navbar-user {
font-size: var(--mds-typography-fontSize-sm);
color: var(--mds-colors-color-text-secondary);
margin-right: var(--mds-spacing-sm);
}
/* Sidebar-width brand section */
.mds-navbar-brand-section {
width: 260px;
display: flex;
align-items: center;
justify-content: center;
}
/* Center user info section */
.mds-navbar-center {
flex: 1;
display: flex;
justify-content: center;
}
/* User info badge */
.mds-navbar-user-badge {
display: flex;
align-items: center;
gap: var(--mds-spacing-sm);
font-size: var(--mds-typography-fontSize-sm);
padding: var(--mds-spacing-sm) var(--mds-spacing-md);
border-radius: var(--r, 2px);
border: none;
font-weight: var(--mds-typography-fontWeight-medium);
}
/* Dark theme user badge */
html[data-theme="dark"] .mds-navbar-user-badge {
color: #888;
background-color: var(--field);
}
/* Light theme user badge */
html[data-theme="light"] .mds-navbar-user-badge {
color: #666;
background-color: var(--field);
}
/* User badge elements */
.mds-navbar-user-badge .user-name {
font-weight: var(--mds-typography-fontWeight-medium);
}
.mds-navbar-user-badge .user-separator {
opacity: 0.7;
}
.mds-navbar-user-badge .user-email {
opacity: 0.8;
}
/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
/* Enhanced styles for dark mode when implemented */
}
/* ========================================
DataTable Component Styles
======================================== */
/* DataTable Base Styles */
.data-table {
position: relative;
border-radius: var(--r, 2px);
background-color: var(--panel);
border: none;
box-shadow: var(--card-shadow);
overflow: hidden;
font-family: var(--mds-typography-fontFamily-brand);
}
/* Loading Animation */
.data-table-spinner {
width: 32px;
height: 32px;
border: 2px solid transparent;
border-top: 2px solid white;
border-radius: 50%;
animation: mds-spin 1s linear infinite;
}
/* Responsive Breakpoints */
@media (max-width: 768px) {
.data-table[role="table"] {
display: block !important;
}
.data-table .table-header {
display: none !important;
}
.data-table .table-body {
display: block !important;
}
.data-table .table-row {
display: block !important;
border: 1px solid var(--mds-color-border-medium) !important;
border-radius: 12px !important;
margin-bottom: 16px !important;
padding: 16px !important;
background: rgba(255, 255, 255, 0.05) !important;
}
.data-table .table-cell {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
padding: 8px 0 !important;
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.data-table .table-cell:last-child {
border-bottom: none !important;
justify-content: center !important;
margin-top: 12px !important;
}
.data-table .table-cell::before {
content: attr(data-label) !important;
font-weight: var(--mds-typography-fontWeight-medium) !important;
color: var(--mds-color-text-secondary) !important;
font-size: var(--mds-typography-fontSize-xs) !important;
text-transform: uppercase !important;
letter-spacing: 0.5px !important;
min-width: 100px !important;
}
.data-table .table-actions {
flex-direction: column !important;
gap: var(--mds-spacing-sm) !important;
}
.data-table .table-actions button {
width: 100% !important;
justify-content: center !important;
}
}
/* Tablet Breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
.data-table .table-row {
font-size: var(--mds-typography-fontSize-sm) !important;
}
.data-table .table-cell {
padding: var(--mds-spacing-sm) var(--mds-spacing-md) !important;
}
.data-table .table-actions button {
padding: var(--mds-spacing-xs) var(--mds-spacing-sm) !important;
font-size: var(--mds-typography-fontSize-xs) !important;
}
}
/* Utility Classes */
.data-table-compact .table-cell {
padding: var(--mds-spacing-xs) var(--mds-spacing-sm) !important;
}
.data-table-audit .table-row {
border-left: 3px solid transparent;
}
.data-table-audit .table-row[data-action="CREATE"] {
border-left-color: rgba(34, 197, 94, 0.5);
}
.data-table-audit .table-row[data-action="UPDATE"] {
border-left-color: rgba(59, 130, 246, 0.5);
}
.data-table-audit .table-row[data-action="DELETE"] {
border-left-color: rgba(239, 68, 68, 0.5);
}
/* Scrollbar Styling */
.data-table .table-body::-webkit-scrollbar {
width: 8px;
}
.data-table .table-body::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
border-radius: 4px;
}
.data-table .table-body::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 4px;
}
.data-table .table-body::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Badge and Chip Styles */
.data-table-badge {
display: inline-flex;
align-items: center;
padding: 4px 8px;
border-radius: var(--r, 2px);
font-size: var(--mds-typography-fontSize-xs);
font-weight: var(--mds-typography-fontWeight-medium);
border: none;
white-space: nowrap;
}
.data-table-badge.primary {
background-color: rgba(59, 130, 246, 0.2);
border-color: rgba(59, 130, 246, 0.3);
color: #3b82f6;
}
.data-table-badge.success {
background-color: rgba(34, 197, 94, 0.2);
border-color: rgba(34, 197, 94, 0.3);
color: #22c55e;
}
.data-table-badge.warning {
background-color: rgba(234, 179, 8, 0.2);
border-color: rgba(234, 179, 8, 0.3);
color: #eab308;
}
.data-table-badge.danger {
background-color: rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.3);
color: #ef4444;
}
.data-table-badge.info {
background-color: rgba(147, 51, 234, 0.2);
border-color: rgba(147, 51, 234, 0.3);
color: #9333ea;
}
/* Code/Monospace Cell Styling */
.data-table-code {
font-family: 'Courier New', monospace;
background-color: rgba(255, 255, 255, 0.1);
padding: 4px 12px;
border-radius: 8px;
display: inline-block;
font-size: var(--mds-typography-fontSize-sm);
word-break: break-all;
}
/* ========================================
Settings Page Components - PROC-007 Fase 3
======================================== */
/* Page container */
.mds-page-container {
max-width: 1200px;
margin: 0 auto;
padding: var(--mds-spacing-lg);
display: flex;
flex-direction: column;
gap: var(--mds-spacing-lg);
}
/* Tabs Navigation */
.mds-tabs {
display: flex;
flex-wrap: wrap;
gap: 4px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
padding-bottom: 0;
}
html[data-theme="light"] .mds-tabs {
border-bottom-color: rgba(0, 0, 0, 0.1);
}
.mds-tab {
padding: 12px 20px;
border: none;
background: transparent;
color: var(--mds-color-text-secondary);
cursor: pointer;
font-size: 0.95rem;
font-weight: 400;
font-family: var(--mds-typography-fontFamily-brand);
border-bottom: 2px solid transparent;
margin-bottom: -1px;
transition: all 0.2s;
white-space: nowrap;
}
.mds-tab:hover {
color: var(--mds-color-text-primary);
}
.mds-tab--active {
background: rgba(59, 130, 246, 0.1);
color: var(--mds-color-info);
font-weight: 600;
border-bottom-color: var(--mds-color-info);
}
/* Settings Card (sections) — Meridian flat: afford via fill + shadow */
.mds-settings-card {
padding: 20px;
border: none;
border-radius: 12px;
background: var(--field);
box-shadow: var(--card-shadow-sm);
}
html[data-theme="light"] .mds-settings-card {
background: var(--field);
}
/* Key-Value Pair Display */
.mds-kv-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 2px 0;
font-size: 0.9rem;
}
.mds-kv-label {
color: var(--mds-color-text-secondary);
}
.mds-kv-value {
font-weight: 600;
color: var(--mds-color-text-primary);
}
/* Status Box (colored background indicators) */
.mds-status-box {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
border-radius: 8px;
border: 1px solid;
}
.mds-status-box--loading {
background-color: rgba(156, 163, 175, 0.1);
border-color: rgba(156, 163, 175, 0.2);
}
.mds-status-box--success {
background-color: rgba(16, 185, 129, 0.1);
border-color: rgba(16, 185, 129, 0.2);
}
.mds-status-box--error {
background-color: rgba(239, 68, 68, 0.1);
border-color: rgba(239, 68, 68, 0.2);
}
.mds-status-box--warning {
background-color: rgba(245, 158, 11, 0.1);
border-color: rgba(245, 158, 11, 0.2);
}
.mds-status-box--info {
background-color: rgba(59, 130, 246, 0.1);
border-color: rgba(59, 130, 246, 0.2);
}
.mds-status-box__icon {
font-size: 1.5rem;
}
.mds-status-box__content {
flex: 1;
}
.mds-status-box__title {
font-weight: 600;
}
.mds-status-box__title--loading { color: var(--mds-color-text-secondary); }
.mds-status-box__title--success { color: var(--mds-color-success); }
.mds-status-box__title--error { color: var(--mds-color-error); }
.mds-status-box__title--warning { color: var(--mds-color-warning); }
.mds-status-box__title--info { color: var(--mds-color-info); }
.mds-status-box__subtitle {
font-size: 0.85rem;
color: var(--mds-color-text-secondary);
margin-top: 4px;
}
/* Info Panel (blue informational box) */
.mds-info-panel {
padding: 16px;
border-radius: 8px;
background-color: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.2);
}
.mds-info-panel__header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.mds-info-panel__icon {
font-size: 1.2rem;
}
.mds-info-panel__title {
font-weight: 600;
color: var(--mds-color-text-primary);
}
.mds-info-panel__content {
font-size: 0.85rem;
color: var(--mds-color-text-secondary);
line-height: 1.5;
}
/* Error Panel (red error box) */
.mds-error-panel {
padding: 12px 16px;
border-radius: 8px;
background-color: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.3);
color: var(--mds-color-error);
}
/* Danger Section (for delete account, etc.) */
.mds-danger-section {
padding: 20px;
border: 1px solid rgba(239, 68, 68, 0.3);
border-radius: 12px;
background-color: rgba(239, 68, 68, 0.05);
}
.mds-danger-section__title {
color: var(--mds-color-error);
margin-bottom: 8px;
}
/* Section Header with Icon */
.mds-section-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 20px;
}
.mds-section-header__icon {
font-size: 2rem;
}
.mds-section-header__content {
flex: 1;
}
.mds-section-header__title {
margin-bottom: 4px;
}
.mds-section-header__subtitle {
color: var(--mds-color-text-secondary);
}
/* Grid layouts */
.mds-grid-auto {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.mds-grid-auto-sm {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
}
/* Notification/Alert variants */
.mds-notification {
padding: 16px;
border-radius: 8px;
display: flex;
align-items: center;
gap: 12px;
}
.mds-notification--success {
background-color: rgba(16, 185, 129, 0.1);
border-left: 4px solid var(--mds-color-success);
}
.mds-notification--error {
background-color: rgba(239, 68, 68, 0.1);
border-left: 4px solid var(--mds-color-error);
}
.mds-notification__icon {
font-size: 1.2rem;
}
/* Search counter */
.mds-search-counter {
font-size: 0.9rem;
color: var(--mds-color-text-secondary);
font-weight: 500;
white-space: nowrap;
}
/* Width utilities */
.mds-w-full { width: 100%; }
.mds-w-auto { width: auto; }
.mds-max-w-sm { max-width: 400px; }
.mds-max-w-md { max-width: 600px; }
.mds-max-w-lg { max-width: 800px; }
/* Margin auto utilities */
.mds-ml-auto { margin-left: auto; }
.mds-mr-auto { margin-right: auto; }
.mds-mx-auto { margin-left: auto; margin-right: auto; }
/* Margin top utilities */
.mds-mt-xs { margin-top: var(--mds-spacing-xs); }
.mds-mt-sm { margin-top: var(--mds-spacing-sm); }
.mds-mt-md { margin-top: var(--mds-spacing-md); }
.mds-mt-lg { margin-top: var(--mds-spacing-lg); }
.mds-mt-xl { margin-top: var(--mds-spacing-xl); }
/* Text utilities */
.mds-text-secondary { color: var(--mds-color-text-secondary); }
.mds-text-success { color: var(--mds-color-success); }
.mds-text-error { color: var(--mds-color-error); }
.mds-text-warning { color: var(--mds-color-warning); }
.mds-text-info { color: var(--mds-color-info); }
.mds-text-sm { font-size: 0.85rem; }
.mds-text-xs { font-size: 0.75rem; }
.mds-text-lg { font-size: 1.1rem; }
.mds-font-medium { font-weight: 500; }
.mds-font-semibold { font-weight: 600; }
.mds-font-bold { font-weight: 700; }
/* Box sizing */
.mds-box-border { box-sizing: border-box; }
/* Overflow */
.mds-overflow-hidden { overflow: hidden; }
/* Zero padding */
.mds-p-0 { padding: 0; }
/* ============================================
PROC-007 Phase 5: Deep Cleanup Classes
============================================ */
/* ---------- Badges (Status Indicators) ---------- */
.mds-badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 4px 10px;
font-size: 12px;
font-weight: 500;
line-height: 1;
border-radius: 12px;
white-space: nowrap;
}
.mds-badge--sm {
padding: 2px 8px;
font-size: 11px;
}
.mds-badge--lg {
padding: 6px 14px;
font-size: 13px;
}
.mds-badge--success {
background-color: rgba(16, 185, 129, 0.15);
color: var(--mds-color-success, #10b981);
}
.mds-badge--warning {
background-color: rgba(245, 158, 11, 0.15);
color: var(--mds-color-warning, #f59e0b);
}
.mds-badge--danger {
background-color: rgba(239, 68, 68, 0.15);
color: var(--mds-color-error, #ef4444);
}
.mds-badge--info {
background-color: rgba(59, 130, 246, 0.15);
color: var(--mds-color-info, #3b82f6);
}
.mds-badge--neutral {
background-color: rgba(156, 163, 175, 0.15);
color: var(--mds-color-text-secondary, #9ca3af);
}
/* ---------- Code/Monospace Elements ---------- */
.mds-code {
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
font-size: 12px;
background-color: rgba(0, 0, 0, 0.1);
padding: 2px 6px;
border-radius: 4px;
}
.mds-code-block {
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
font-size: 12px;
background-color: rgba(0, 0, 0, 0.2);
padding: 12px 16px;
border-radius: 8px;
overflow-x: auto;
white-space: pre;
margin: 0;
}
.mds-code-box {
background-color: rgba(0, 0, 0, 0.15);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 12px 16px;
overflow: auto;
max-height: 300px;
}
.mds-code-box pre {
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
font-size: 11px;
line-height: 1.5;
margin: 0;
white-space: pre-wrap;
word-break: break-all;
color: var(--mds-color-text-primary);
}
/* ---------- Diff Display (Audit Logs) ---------- */
.mds-diff {
display: grid;
grid-template-columns: 1fr auto 1fr;
gap: 12px;
align-items: center;
}
.mds-diff-label {
font-size: 11px;
color: var(--mds-color-text-secondary);
margin-bottom: 4px;
}
.mds-diff-value {
padding: 8px 12px;
border-radius: 6px;
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
font-size: 12px;
word-break: break-all;
}
.mds-diff-before {
background-color: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.2);
color: var(--mds-color-error);
}
.mds-diff-after {
background-color: rgba(16, 185, 129, 0.1);
border: 1px solid rgba(16, 185, 129, 0.2);
color: var(--mds-color-success);
}
.mds-diff-arrow {
color: var(--mds-color-text-secondary);
font-size: 18px;
}
/* ---------- Change Item (Field Change in Audit) ---------- */
.mds-change-item {
background-color: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 12px;
}
.mds-change-item--modified {
background-color: rgba(59, 130, 246, 0.05);
border-color: rgba(59, 130, 246, 0.2);
}
.mds-change-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.mds-change-field {
color: var(--mds-color-text-secondary);
font-size: 12px;
font-weight: 600;
text-transform: capitalize;
}
.mds-change-type {
font-size: 10px;
padding: 2px 6px;
border-radius: 4px;
font-weight: 500;
}
.mds-change-type--modified {
background-color: rgba(59, 130, 246, 0.2);
color: var(--mds-color-info);
}
.mds-change-type--added {
background-color: rgba(16, 185, 129, 0.2);
color: var(--mds-color-success);
}
.mds-change-type--removed {
background-color: rgba(239, 68, 68, 0.2);
color: var(--mds-color-error);
}
/* ---------- Table Utilities ---------- */
.mds-table {
width: 100%;
border-collapse: collapse;
}
.mds-th {
padding: 14px 16px;
text-align: left;
font-weight: 600;
font-size: 0.85rem;
color: var(--mds-color-text-primary);
background-color: rgba(255, 255, 255, 0.05);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mds-th--center { text-align: center; }
.mds-th--right { text-align: right; }
.mds-td {
padding: 12px 16px;
color: var(--mds-color-text-primary);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mds-td--center { text-align: center; }
.mds-td--right { text-align: right; }
.mds-td--secondary { color: var(--mds-color-text-secondary); }
.mds-td--small { font-size: 0.9rem; }
.mds-tr:hover {
background-color: rgba(255, 255, 255, 0.03);
}
.mds-tr--striped:nth-child(even) {
background-color: rgba(255, 255, 255, 0.02);
}
.mds-table-empty {
padding: 40px;
text-align: center;
color: var(--mds-color-text-secondary);
}
/* ---------- Action Button Groups ---------- */
.mds-action-group {
display: flex;
gap: 2px;
justify-content: center;
align-items: center;
}
.mds-action-btn {
padding: 6px 10px;
font-size: 12px;
font-weight: 500;
border: none;
border-radius: 6px;
cursor: pointer;
transition: all 0.2s ease;
display: flex;
align-items: center;
gap: 4px;
}
.mds-action-btn--view {
background-color: rgba(59, 130, 246, 0.15);
color: var(--mds-color-info);
}
.mds-action-btn--view:hover {
background-color: rgba(59, 130, 246, 0.25);
}
.mds-action-btn--edit {
background-color: rgba(245, 158, 11, 0.15);
color: var(--mds-color-warning);
}
.mds-action-btn--edit:hover {
background-color: rgba(245, 158, 11, 0.25);
}
.mds-action-btn--delete {
background-color: rgba(239, 68, 68, 0.15);
color: var(--mds-color-error);
}
.mds-action-btn--delete:hover {
background-color: rgba(239, 68, 68, 0.25);
}
/* ---------- Avatar/User Icon ---------- */
.mds-avatar {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 50%;
background-color: rgba(59, 130, 246, 0.15);
color: var(--mds-color-info);
font-weight: 600;
font-size: 1rem;
}
.mds-avatar--sm {
width: 32px;
height: 32px;
font-size: 0.85rem;
}
.mds-avatar--lg {
width: 56px;
height: 56px;
font-size: 1.5rem;
}
/* ---------- User Row (Table Cell with Avatar) ---------- */
.mds-user-row {
display: flex;
align-items: center;
gap: 12px;
}
.mds-user-row__avatar {
width: 32px;
height: 32px;
border-radius: 50%;
-o-object-fit: cover;
object-fit: cover;
}
.mds-user-row__fallback {
width: 32px;
height: 32px;
border-radius: 50%;
background-color: rgba(59, 130, 246, 0.15);
color: var(--mds-color-info);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 14px;
}
/* ---------- Link Styles ---------- */
.mds-link {
color: var(--mds-color-info, #3b82f6);
text-decoration: none;
transition: color 0.2s ease;
}
.mds-link:hover {
text-decoration: underline;
}
.mds-link--underline {
text-decoration: underline;
}
/* ---------- Cookie Banner ---------- */
.mds-cookie-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 9999;
padding: 1rem;
transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.mds-cookie-banner--hidden {
transform: translateY(100%);
opacity: 0;
}
.mds-cookie-banner--visible {
transform: translateY(0);
opacity: 1;
}
.mds-cookie-banner__content {
max-width: 600px;
margin: 0 auto;
padding: 1.25rem;
background: var(--panel);
border-radius: var(--r-sm, 4px);
border: none;
box-shadow: var(--mds-liquid-shadow-floating);
}
.mds-cookie-banner__title {
margin: 0 0 0.5rem 0;
font-size: 1rem;
font-weight: 600;
color: var(--mds-color-text-primary);
}
.mds-cookie-banner__text {
margin: 0;
font-size: 0.875rem;
color: var(--mds-color-text-secondary);
line-height: 1.5;
}
.mds-cookie-banner__actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
justify-content: flex-end;
}
/* ---------- Ghost Button (for banners) ---------- */
.mds-btn-ghost {
padding: 0.625rem 1.25rem;
font-size: 0.875rem;
font-weight: 500;
color: var(--mds-color-text-secondary);
background: transparent;
border: 1px solid var(--mds-liquid-border-subtle, rgba(255, 255, 255, 0.3));
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
}
.mds-btn-ghost:hover {
background: var(--mds-liquid-bg-hover, rgba(255, 255, 255, 0.1));
}
.mds-btn-solid {
padding: 0.625rem 1.25rem;
font-size: 0.875rem;
font-weight: 500;
color: white;
background: var(--mds-color-primary, #007AFF);
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
}
.mds-btn-solid:hover {
opacity: 0.9;
}
/* ---------- Icon Buttons (Action Buttons in Tables) ---------- */
.mds-icon-btn {
background: transparent;
border: none;
padding: 6px;
border-radius: 4px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
}
.mds-icon-btn:disabled {
cursor: not-allowed;
opacity: 0.5;
}
.mds-icon-btn--info {
color: var(--mds-color-info);
}
.mds-icon-btn--info:hover:not(:disabled) {
background-color: rgba(59, 130, 246, 0.15);
}
.mds-icon-btn--success {
color: var(--mds-color-success);
}
.mds-icon-btn--success:hover:not(:disabled) {
background-color: rgba(16, 185, 129, 0.15);
}
.mds-icon-btn--danger {
color: var(--mds-color-error);
}
.mds-icon-btn--danger:hover:not(:disabled) {
background-color: rgba(239, 68, 68, 0.15);
}
.mds-icon-btn--secondary {
color: var(--mds-color-text-secondary);
}
.mds-icon-btn--secondary:hover:not(:disabled) {
background-color: rgba(255, 255, 255, 0.1);
}
/* ---------- Username Code Display ---------- */
.mds-username {
background-color: rgba(59, 130, 246, 0.1);
color: var(--mds-color-info);
padding: 4px 8px;
border-radius: 4px;
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s ease;
}
.mds-username:hover {
background-color: var(--accent-soft);
}
/* ---------- ID Row (Compact Identity Display) ---------- */
.mds-id-row {
background-color: rgba(255, 255, 255, 0.04);
}
.mds-id-row td {
padding: 4px 16px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mds-id-text {
color: var(--mds-color-text-secondary);
font-size: 0.65rem;
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
letter-spacing: 0.02em;
opacity: 0.7;
}
/* ---------- Data Row (Table Row with Hover) ---------- */
.mds-data-row {
transition: background-color 0.2s;
}
.mds-data-row:hover {
background-color: rgba(255, 255, 255, 0.03);
}
/* ---------- Search Input Container ---------- */
.mds-search-row {
margin-top: 16px;
display: flex;
align-items: center;
gap: 12px;
}
/* ---------- Overflow X Auto ---------- */
.mds-overflow-x-auto {
overflow-x: auto;
}
/* ---------- Modal Overlay ---------- */
.mds-modal-overlay {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
padding: 24px;
}
.mds-modal-overlay--dark {
background-color: rgba(0, 0, 0, 0.62);
}
.mds-modal-overlay--light {
background-color: rgba(0, 0, 0, 0.45);
}
/* ---------- Grid Layouts ---------- */
.mds-grid-2 {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}
.mds-grid-3 {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.mds-grid-4 {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.mds-grid-2-1-1 {
display: grid;
grid-template-columns: 2fr 1fr 1fr;
gap: 12px;
}
.mds-grid-2-1 {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 12px;
}
/* Gap Variants for Grids */
.mds-grid-gap-md { gap: 16px; }
.mds-grid--2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.mds-grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.mds-grid--auto-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* Font Weight Utilities */
.mds-fw-400 { font-weight: 400; }
.mds-fw-500 { font-weight: 500; }
.mds-fw-600 { font-weight: 600; }
.mds-fw-700 { font-weight: 700; }
/* ---------- Info Card (Compact Info Display) ---------- */
.mds-info-card {
padding: 12px;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: center;
}
.mds-info-card--primary {
background-color: rgba(59, 130, 246, 0.1);
border-left: 3px solid var(--mds-color-info);
}
.mds-info-card--subtle {
background-color: rgba(255, 255, 255, 0.03);
border-left: 3px solid rgba(0, 212, 255, 0.5);
}
.mds-info-card__label {
font-size: 0.7rem;
margin-bottom: 2px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--mds-color-text-secondary);
}
.mds-info-card__value {
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
letter-spacing: 0.5px;
font-size: 0.95rem;
}
/* ---------- Meta Row (Inline Meta Display) ---------- */
.mds-meta-row {
padding: 10px 12px;
background-color: rgba(255, 255, 255, 0.03);
border-radius: 10px;
display: flex;
gap: 16px;
font-size: 0.8rem;
flex-wrap: wrap;
}
/* ---------- Preview Box ---------- */
.mds-preview-box {
padding: 12px 16px;
border-radius: 8px;
margin-bottom: 16px;
border-left: 4px solid var(--mds-color-info);
background-color: rgba(59, 130, 246, 0.1);
}
.mds-preview-box--warning {
background-color: rgba(234, 179, 8, 0.1);
border-left-color: var(--mds-color-warning);
}
/* ---------- Read-Only Field ---------- */
.mds-readonly-field {
padding: 8px 10px;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 6px;
color: var(--mds-color-text-secondary);
font-size: 0.85rem;
}
/* ---------- Flex Utilities ---------- */
.mds-flex-1 { flex: 1; }
.mds-align-stretch { align-items: stretch; }
/* ---------- User Header Layout (Photo + Info Cards) ---------- */
.mds-user-header {
display: flex;
gap: 16px;
margin-bottom: 16px;
align-items: stretch;
}
.mds-user-header__info {
flex: 1;
display: flex;
flex-direction: column;
gap: 8px;
}
.mds-user-header__cards {
display: flex;
gap: 8px;
flex: 1;
}
/* ---------- Info Card Value Variants ---------- */
.mds-info-card__value--body {
font-size: 0.9rem;
color: var(--mds-color-text-primary);
}
.mds-info-card__value--small {
font-size: 0.75rem;
color: var(--mds-color-text-secondary);
}
/* ---------- Helper Text ---------- */
.mds-helper-text {
font-size: 0.75rem;
margin-top: 2px;
display: block;
}
.mds-helper-text--checking {
color: var(--mds-color-text-secondary);
}
.mds-helper-text--success {
color: var(--mds-color-success);
}
.mds-helper-text--error {
color: var(--mds-color-error);
}
/* ---------- Info Banner (Full-width info/warning) ---------- */
.mds-info-banner {
padding: 10px 12px;
border-radius: 6px;
border-left: 3px solid var(--mds-color-info);
background-color: rgba(59, 130, 246, 0.1);
}
.mds-info-banner--warning {
background-color: rgba(234, 179, 8, 0.1);
border-left-color: var(--mds-color-warning);
}
/* ---------- Preview Label/Value ---------- */
.mds-preview-box__label {
font-size: 0.8rem;
margin-bottom: 4px;
color: var(--mds-color-text-secondary);
}
.mds-preview-box__value {
font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
letter-spacing: 0.5px;
font-size: 1rem;
}
/* ---------- Text Utilities ---------- */
.mds-text-sm { font-size: 0.8rem; }
.mds-text-xs { font-size: 0.75rem; }
.mds-text-primary { color: var(--mds-color-text-primary); }
.mds-text-secondary { color: var(--mds-color-text-secondary); }
.mds-text-success { color: var(--mds-color-success); }
.mds-text-error { color: var(--mds-color-error); }
.mds-text-warning { color: var(--mds-color-warning); }
/* Link Utilities */
.mds-link-primary { color: var(--mds-color-primary); text-decoration: none; }
.mds-link-primary:hover { opacity: 0.8; }
.mds-underline { text-decoration: underline; }
.mds-no-underline { text-decoration: none; }
/* ---------- Width Utilities ---------- */
.mds-full-width { width: 100%; }
/* ---------- Alignment Utilities ---------- */
.mds-align-self-start { align-self: flex-start; }
.mds-align-self-center { align-self: center; }
.mds-align-self-end { align-self: flex-end; }
.mds-text-center { text-align: center; }
/* ---------- Flex Wrap Utilities ---------- */
.mds-flex-wrap { flex-wrap: wrap; }
/* ---------- Max Width Utilities ---------- */
.mds-max-w-sm { max-width: 300px; }
.mds-max-w-md { max-width: 400px; }
.mds-max-w-lg { max-width: 500px; }
.mds-max-w-xl { max-width: 600px; }
.mds-max-w-2xl { max-width: 800px; }
.mds-max-w-3xl { max-width: 1000px; }
/* ---------- Border Utilities ---------- */
.mds-border-bottom { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
/* ---------- Table Container ---------- */
.mds-table-container { overflow-x: auto; }
/* ---------- Table Row Variants ---------- */
.mds-tr--header { background-color: rgba(255, 255, 255, 0.05); }
.mds-tr--hoverable {
border-top: 1px solid rgba(255, 255, 255, 0.05);
transition: background-color 0.2s;
}
.mds-tr--hoverable:hover { background-color: rgba(255, 255, 255, 0.03); }
/* ---------- Table Cell Variants ---------- */
.mds-td--empty {
padding: 40px;
text-align: center;
color: var(--mds-color-text-secondary);
}
/* ---------- Code Variants ---------- */
.mds-code--info {
background-color: rgba(59, 130, 246, 0.1);
color: var(--mds-color-info);
font-weight: 600;
}
/* ---------- Badge Variants ---------- */
.mds-badge--accent {
background-color: rgba(147, 51, 234, 0.1);
color: var(--mds-color-accent, #9333ea);
}
/* ---------- User Cell (Email + ID) ---------- */
.mds-user-cell {
display: flex;
flex-direction: column;
gap: 2px;
}
.mds-user-cell__email {
font-weight: 500;
color: var(--mds-color-text-primary);
}
.mds-user-cell__id {
font-size: 0.75rem;
color: var(--mds-color-text-secondary);
}
/* ---------- Pending Item (Invitation/Request Row) ---------- */
.mds-pending-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background-color: rgba(255, 255, 255, 0.03);
border-radius: 8px;
border-left: 3px solid var(--mds-color-warning);
}
/* ---------- Text Size Utilities ---------- */
.mds-text-lg { font-size: 1.2rem; }
/* ---------- Font Utilities ---------- */
.mds-font-mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; }
.mds-font-semibold { font-weight: 600; }
.mds-font-medium { font-weight: 500; }
/* ---------- Settings Section Layout ---------- */
.mds-settings-container {
display: flex;
flex-direction: column;
gap: 24px;
width: 100%;
}
.mds-settings-card {
padding: 24px;
width: 100%;
box-sizing: border-box;
}
.mds-settings-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 20px;
}
.mds-settings-header__icon {
font-size: 2rem;
}
.mds-settings-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
/* ---------- Settings Panel ---------- */
.mds-settings-panel {
padding: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 12px;
}
.mds-settings-panel__title {
margin-bottom: 8px;
}
.mds-settings-panel__description {
margin-bottom: 16px;
}
/* ---------- Key-Value Row ---------- */
.mds-kv-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.mds-kv-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.mds-kv-label {
color: var(--mds-color-text-secondary);
}
.mds-kv-value {
font-weight: 600;
}
/* ---------- Info Box Header ---------- */
.mds-info-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 8px;
}
.mds-info-header__icon {
font-size: 1.2rem;
}
/* ---------- Margin Utilities ---------- */
.mds-mb-xs { margin-bottom: 4px; }
.mds-mb-sm { margin-bottom: var(--mds-spacing-sm); }
.mds-mb-md { margin-bottom: var(--mds-spacing-md); }
.mds-mb-lg { margin-bottom: var(--mds-spacing-lg); }
.mds-mt-sm { margin-top: var(--mds-spacing-sm); }
.mds-pt-sm { padding-top: var(--mds-spacing-sm); }
/* ---------- Border Utilities ---------- */
.mds-border-top { border-top: 1px solid rgba(255, 255, 255, 0.1); }
/* ---------- Display Utilities ---------- */
.mds-block { display: block; }
/* ---------- Flex Alignment Utilities ---------- */
.mds-justify-center { justify-content: center; }
.mds-justify-between { justify-content: space-between; }
.mds-justify-start { justify-content: flex-start; }
.mds-justify-end { justify-content: flex-end; }
/* ---------- Extra Padding Utilities ---------- */
.mds-p-2xl { padding: 2.5rem; }
.mds-p-3xl { padding: 3rem; }
/* ---------- Margin Zero Utilities ---------- */
.mds-m-0 { margin: 0; }
.mds-mt-0 { margin-top: 0; }
.mds-mb-0 { margin-bottom: 0; }
/* ---------- Text Size Utilities ---------- */
.mds-text-4xl { font-size: 4rem; }
.mds-text-3xl { font-size: 3rem; }
.mds-text-2xl { font-size: 2rem; }
/* ---------- Min Height Utilities ---------- */
.mds-min-h-400 { min-height: 400px; }
.mds-min-h-300 { min-height: 300px; }
.mds-min-h-200 { min-height: 200px; }
/* ---------- Text Color Utilities ---------- */
.mds-text-inherit { color: inherit; }
/* ---------- Text Transform Utilities ---------- */
.mds-capitalize { text-transform: capitalize; }
/* ---------- Sidebar Utilities ---------- */
.mds-sidebar-icon { font-size: 1.25rem; }
.mds-sidebar-scroll { flex: 1; overflow-y: auto; padding-top: 0.5rem; position: relative; }
.mds-sidebar-item { position: relative; }
.mds-sidebar-footer { margin-top: auto; padding: 0.5rem 0; display: flex; justify-content: center; }
.mds-mt-xs { margin-top: 0.25rem; }
.mds-mt-md { margin-top: var(--mds-spacing-md); }
.mds-mt-lg { margin-top: var(--mds-spacing-lg); }
/* ---------- Legal Page Layout ---------- */
.mds-legal-page {
min-height: 100vh;
padding: 2rem;
background-color: var(--mds-color-bg);
color: var(--mds-color-text-primary);
}
.mds-legal-container {
max-width: 800px;
margin: 0 auto;
}
.mds-legal-back-link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: var(--mds-color-info);
text-decoration: none;
font-size: 0.875rem;
margin-bottom: 1.5rem;
transition: opacity 0.2s;
}
.mds-legal-back-link:hover { opacity: 0.8; }
.mds-legal-title {
font-size: 1.75rem;
font-weight: 600;
color: var(--mds-color-text-primary);
margin-bottom: 0.5rem;
}
.mds-legal-updated {
font-size: 0.875rem;
color: var(--mds-color-text-secondary);
margin-bottom: 2rem;
}
.mds-legal-sections {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.mds-legal-section-title {
font-size: 1.125rem;
font-weight: 600;
color: var(--mds-color-text-primary);
margin-bottom: 0.75rem;
}
.mds-legal-section-content {
font-size: 0.9375rem;
line-height: 1.6;
color: var(--mds-color-text-secondary);
}
.mds-legal-list {
margin-top: 0.5rem;
padding-left: 1.5rem;
}
.mds-legal-glass-card {
max-width: 800px;
margin: 0 auto;
padding: 2rem;
background: var(--panel);
border-radius: var(--r, 2px);
border: none;
box-shadow: var(--card-shadow);
}
.mds-legal-gradient-bg {
min-height: 100vh;
padding: 2rem;
background: var(--mds-liquid-gradient);
color: var(--mds-color-text-primary);
}
/**
* ProfileCard Component Styles
* Passport-style profile card with Liquid Glass aesthetic
* Supports light/dark themes via data-theme attribute
*
* @package @metropolle/design-system
*/
/* =============================================================================
Main Card
============================================================================= */
.mds-profile-card {
--mds-profile-card-photo-width: 280px;
--mds-profile-card-min-height: 272px;
position: relative;
display: grid;
grid-template-columns: var(--mds-profile-card-photo-width) 1fr;
gap: 0;
min-height: var(--mds-profile-card-min-height);
/* Meridian: flat opaque surface, zero-border, no glass halo */
background: var(--panel);
border-radius: var(--r, 2px);
border: none;
box-shadow: var(--card-shadow);
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
max-width: 800px;
width: 100%;
isolation: isolate;
animation: mds-profile-card-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Halo removed (Meridian is flat) — pseudo neutralized to inert */
.mds-profile-card::before {
content: none;
}
@keyframes mds-profile-card-gradient-spin {
from { --mds-pc-angle: 0deg; }
to { --mds-pc-angle: 360deg; }
}
@keyframes mds-profile-card-reveal {
from {
opacity: 0;
transform: translateY(20px) scale(0.98);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Private account variant - no photo, centered content */
.mds-profile-card--private {
grid-template-columns: 1fr;
}
.mds-profile-card--private .mds-profile-card__content {
align-items: center;
text-align: center;
border-left: none;
padding: 3rem 2rem;
min-height: var(--mds-profile-card-min-height);
}
/* Light theme */
html[data-theme="light"] .mds-profile-card {
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.8);
box-shadow:
0 8px 32px rgba(0, 0, 0, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 1);
}
html[data-theme="light"] .mds-profile-card::before {
background: conic-gradient(
from var(--mds-pc-angle),
rgba(0, 0, 0, 0.1),
rgba(0, 0, 0, 0.03),
rgba(0, 0, 0, 0.08),
rgba(0, 0, 0, 0.025),
rgba(0, 0, 0, 0.09),
rgba(0, 0, 0, 0.1)
);
}
/* Reduced motion — stop gradient rotation */
@media (prefers-reduced-motion: reduce) {
.mds-profile-card::before {
animation: none;
}
}
/* =============================================================================
Grain Overlay
============================================================================= */
.mds-profile-card__grain {
position: absolute;
inset: 0;
border-radius: var(--r, 2px);
opacity: 0.12;
mix-blend-mode: overlay;
pointer-events: none;
z-index: 5;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
}
html[data-theme="light"] .mds-profile-card__grain {
opacity: 0.05;
}
/* =============================================================================
Photo Loading Progress Bar
============================================================================= */
.mds-profile-card__progress-bar {
position: absolute;
bottom: 0;
left: 12px;
right: 12px;
height: 2px;
background: rgba(255, 255, 255, 0.08);
border-radius: 0 0 2px 2px;
overflow: hidden;
z-index: 10;
}
.mds-profile-card__progress-fill {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: rgba(255, 255, 255, 0.5);
transition: width 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.mds-profile-card__progress-glow {
position: absolute;
top: -2px;
width: 8px;
height: 7px;
background: rgba(255, 255, 255, 0.8);
border-radius: 50%;
filter: blur(3px);
transform: translateX(-50%);
transition: left 0.15s cubic-bezier(0.4, 0, 0.2, 1);
animation: mds-profile-card-progress-pulse 1.5s ease-in-out infinite;
}
@keyframes mds-profile-card-progress-pulse {
0%, 100% { opacity: 0.6; }
50% { opacity: 1; }
}
/* Light theme */
html[data-theme="light"] .mds-profile-card__progress-bar {
background: rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .mds-profile-card__progress-fill {
background: rgba(0, 0, 0, 0.3);
}
html[data-theme="light"] .mds-profile-card__progress-glow {
background: rgba(0, 0, 0, 0.5);
}
/* =============================================================================
Photo Section
============================================================================= */
.mds-profile-card__photo {
position: relative;
overflow: hidden;
z-index: 2;
border-radius: var(--r, 2px) 0 0 var(--r, 2px);
height: var(--mds-profile-card-min-height);
background-color: rgba(26, 26, 46, 0.1);
}
html[data-theme="light"] .mds-profile-card__photo {
background-color: rgba(255, 255, 255, 0.05);
}
.mds-profile-card__avatar {
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center top;
object-position: center top;
display: block;
opacity: 0.9;
transition: opacity 0.4s ease;
}
.mds-profile-card__photo:hover .mds-profile-card__avatar {
opacity: 1;
}
.mds-profile-card__photo-slot {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
min-height: var(--mds-profile-card-min-height);
}
/* =============================================================================
Content Section
============================================================================= */
.mds-profile-card__content {
position: relative;
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
padding: 27px;
border-left: 1px solid rgba(255, 255, 255, 0.06);
z-index: 1;
gap: 16px;
min-width: 0;
min-height: var(--mds-profile-card-min-height);
overflow: hidden;
}
html[data-theme="light"] .mds-profile-card__content {
border-left-color: rgba(0, 0, 0, 0.04);
}
/* =============================================================================
Identity Block
============================================================================= */
.mds-profile-card__identity {
width: 100%;
margin-bottom: 20px;
}
.mds-profile-card__name {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 32px;
font-weight: normal;
color: var(--mds-color-text-primary, #ffffff);
margin: 0 0 5px 0;
letter-spacing: 0.06em;
text-transform: uppercase;
line-height: 1.2;
white-space: nowrap;
overflow: hidden;
max-width: 100%;
}
.mds-profile-card__profession {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 16px;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.7));
letter-spacing: 0.1em;
text-transform: uppercase;
margin: 5px 0 0 0;
}
.mds-profile-card__username {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 15px;
color: var(--mds-color-text-tertiary, rgba(255, 255, 255, 0.5));
letter-spacing: 0.06em;
margin: 0;
}
/* =============================================================================
Details Block
============================================================================= */
.mds-profile-card__details {
width: 100%;
}
.mds-profile-card__location {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 18px;
color: var(--mds-color-text-tertiary, rgba(255, 255, 255, 0.5));
letter-spacing: 0.06em;
margin: 0 0 5px 0;
}
.mds-profile-card__username-detail {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 18px;
color: var(--mds-color-text-tertiary, rgba(255, 255, 255, 0.5));
letter-spacing: 0.06em;
}
/* Username Hierarchical Links */
.mds-profile-card__username-link {
color: inherit;
text-decoration: none;
transition: color 0.2s ease, text-shadow 0.2s ease;
}
.mds-profile-card__username-link:hover {
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.95));
text-shadow: 0 0 8px var(--mds-color-accent-glow, rgba(139, 92, 246, 0.4));
}
.mds-profile-card__username-separator {
color: var(--mds-color-text-tertiary, rgba(255, 255, 255, 0.3));
margin: 0 1px;
}
/* Navigation links (profession, location) */
.mds-profile-card__nav-link {
color: inherit;
text-decoration: none;
transition: color 0.2s ease, text-shadow 0.2s ease;
}
.mds-profile-card__nav-link:hover {
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.95));
text-shadow: 0 0 8px var(--mds-color-accent-glow, rgba(139, 92, 246, 0.4));
}
.mds-profile-card__email {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 14px;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.7));
letter-spacing: 0.04em;
margin: 0 0 4px 0;
}
.mds-profile-card__member {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 11px;
color: var(--mds-color-text-tertiary, rgba(255, 255, 255, 0.4));
letter-spacing: 0.08em;
text-transform: uppercase;
}
/* =============================================================================
Verification Section (Compact Variant)
============================================================================= */
.mds-profile-card__verification {
display: flex;
align-items: center;
gap: 12px;
margin-top: 8px;
}
.mds-profile-card__verified-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 12px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 100px;
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 10px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.5);
}
html[data-theme="light"] .mds-profile-card__verified-badge {
background: rgba(0, 0, 0, 0.03);
border-color: rgba(0, 0, 0, 0.08);
color: rgba(0, 0, 0, 0.4);
}
.mds-profile-card__verified-badge svg {
width: 14px;
height: 14px;
fill: currentColor;
}
/* =============================================================================
Social Icons — Inline, bottom-left (aligned with corner-meta)
============================================================================= */
.mds-profile-card__social-icons {
position: absolute;
bottom: 18px;
left: 20px;
right: 260px;
display: flex;
flex-wrap: wrap-reverse;
gap: 10px;
row-gap: 8px;
align-items: center;
align-content: flex-end;
z-index: 10;
}
.mds-profile-card__social-link {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
color: rgba(255, 255, 255, 0.35);
text-decoration: none;
cursor: pointer;
transition: color 0.2s ease, transform 0.2s ease;
}
.mds-profile-card__social-link:hover {
color: rgba(255, 255, 255, 0.8);
}
html[data-theme="light"] .mds-profile-card__social-link {
color: rgba(0, 0, 0, 0.3);
}
html[data-theme="light"] .mds-profile-card__social-link:hover {
color: rgba(0, 0, 0, 0.7);
}
.mds-profile-card__social-link svg {
width: 16px;
height: 16px;
fill: currentColor;
}
/* Discord glyph fills only ~78% of its 24x24 viewBox (Simple Icons brand path),
making it appear smaller than siblings like Facebook/LinkedIn which fill 100%.
Scale to visually match; transform-origin center keeps it aligned. */
.mds-profile-card__social-link[data-provider="discord"] svg {
transform: scale(1.2);
transform-origin: center;
}
/* Social icon — clickable, opens modal */
.mds-profile-card__social-link {
position: relative;
cursor: pointer;
}
/* =============================================================================
Dynamic Info Group (Full Variant)
============================================================================= */
/* =============================================================================
Corner Badge & Meta (Full Variant)
============================================================================= */
.mds-profile-card__corner-badge {
position: absolute;
top: 20px;
right: 20px;
display: flex;
align-items: center;
gap: 6px;
color: rgba(255, 255, 255, 0.45);
z-index: 10;
background: none;
border: none;
padding: 0;
cursor: pointer;
transition: color 0.2s ease;
}
.mds-profile-card__corner-badge:hover {
color: rgba(255, 255, 255, 0.75);
}
.mds-profile-card__corner-badge svg {
width: 22px;
height: 22px;
fill: currentColor;
}
.mds-profile-card__score-value {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 16px;
font-weight: 700;
letter-spacing: 0.04em;
color: rgba(255, 255, 255, 0.55);
transition: color 0.2s ease;
}
.mds-profile-card__corner-badge:hover .mds-profile-card__score-value {
color: rgba(255, 255, 255, 0.8);
}
.mds-profile-card__corner-meta {
position: absolute;
bottom: 18px;
right: 20px;
display: flex;
gap: 14px;
z-index: 10;
}
.mds-profile-card__corner-meta span {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 11px;
color: rgba(255, 255, 255, 0.3);
letter-spacing: 0.06em;
text-transform: uppercase;
white-space: nowrap;
}
html[data-theme="light"] .mds-profile-card__corner-badge {
color: rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] .mds-profile-card__corner-badge:hover {
color: rgba(0, 0, 0, 0.6);
}
html[data-theme="light"] .mds-profile-card__score-value {
color: rgba(0, 0, 0, 0.45);
}
html[data-theme="light"] .mds-profile-card__corner-badge:hover .mds-profile-card__score-value {
color: rgba(0, 0, 0, 0.7);
}
html[data-theme="light"] .mds-profile-card__corner-meta span {
color: rgba(0, 0, 0, 0.3);
}
/* Shield badge variant (using VerificationShield component) */
.mds-profile-card__corner-badge--shield {
top: 16px;
right: 16px;
opacity: 0.7;
transition: opacity 0.2s ease, transform 0.2s ease;
}
.mds-profile-card__corner-badge--shield:hover {
opacity: 1;
}
.mds-profile-card__corner-badge--shield .mds-verification-shield {
filter: none;
}
/* =============================================================================
Social Link Modal — Liquid Glass (same pattern as Score Modal)
============================================================================= */
.mds-profile-card__social-modal {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 1rem 0;
}
.mds-profile-card__social-modal-backdrop {
position: absolute;
inset: 0;
background: var(--mds-liquid-bg-overlay, rgba(0, 0, 0, 0.45));
}
.mds-profile-card__social-modal-content {
position: relative;
max-width: 340px;
max-height: calc(100vh - 2rem);
overflow-y: auto;
width: calc(100% - 2rem);
margin: auto;
padding: 32px;
background: var(--mds-liquid-bg-glass-thick, var(--panel));
border-radius: var(--r-sm, 4px);
border: none;
box-shadow: var(--mds-liquid-shadow-floating, var(--card-shadow));
text-align: center;
}
.mds-profile-card__social-modal-content::before {
content: none;
}
.mds-profile-card__social-modal-header {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 24px;
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.9));
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 16px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.mds-profile-card__social-modal-avatar-wrap {
position: relative;
display: flex;
justify-content: center;
margin: 0 auto 24px;
}
.mds-profile-card__social-modal-avatar {
width: 88px;
height: 88px;
border-radius: 50%;
-o-object-fit: cover;
object-fit: cover;
border: 2px solid var(--mds-liquid-border-subtle, rgba(255, 255, 255, 0.12));
}
.mds-profile-card__social-modal-avatar--placeholder {
display: flex;
align-items: center;
justify-content: center;
background: var(--mds-liquid-bg-glass, rgba(255, 255, 255, 0.06));
}
.mds-profile-card__social-modal-grid {
position: relative;
display: flex;
justify-content: center;
gap: 28px;
margin-bottom: 24px;
}
.mds-profile-card__social-modal-kpi {
text-align: center;
}
.mds-profile-card__social-modal-kpi-value {
font-size: 20px;
font-weight: 700;
line-height: 1.2;
font-variant-numeric: tabular-nums;
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.9));
display: flex;
align-items: center;
justify-content: center;
min-height: 24px;
}
.mds-profile-card__social-modal-kpi-label {
font-size: 11px;
opacity: 0.5;
text-transform: uppercase;
letter-spacing: 0.05em;
margin-top: 2px;
}
.mds-profile-card__social-modal-metrics {
position: relative;
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 24px;
}
.mds-profile-card__social-modal-row {
display: flex;
justify-content: space-between;
align-items: center;
}
.mds-profile-card__social-modal-label {
font-size: 12px;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.5));
}
.mds-profile-card__social-modal-value {
font-size: 16px;
font-weight: 600;
font-variant-numeric: tabular-nums;
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.9));
display: flex;
align-items: center;
}
.mds-profile-card__social-modal-open {
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
padding: 12px;
margin-bottom: 8px;
background: var(--mds-liquid-bg-glass, rgba(255, 255, 255, 0.08));
border: 1px solid var(--mds-liquid-border-subtle, rgba(255, 255, 255, 0.12));
border-radius: 12px;
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.9));
font-family: inherit;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.mds-profile-card__social-modal-open:hover {
background: var(--mds-liquid-bg-glass-thick, rgba(255, 255, 255, 0.14));
}
/* Top-right X close button (replaces bottom Close in newer design) */
.mds-profile-card__social-modal-close-x {
position: absolute;
top: 14px;
right: 14px;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background: transparent;
border: none;
border-radius: 8px;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.55));
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
padding: 0;
z-index: 1;
}
.mds-profile-card__social-modal-close-x:hover {
background: var(--mds-liquid-bg-glass-thin, rgba(255, 255, 255, 0.08));
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.9));
}
.mds-profile-card__social-modal-close-x:focus-visible {
outline: 2px solid var(--mds-liquid-focus-ring, rgba(120, 180, 255, 0.6));
outline-offset: 2px;
}
/* Spacing between chart and Open button — chart was visually glued to button */
.mds-profile-card__social-modal-chart {
margin-top: 18px;
margin-bottom: 22px;
}
@media (max-width: 480px) {
.mds-profile-card__social-modal-content {
padding: 24px;
}
}
/* =============================================================================
Verification Score Modal
============================================================================= */
.mds-profile-card__score-modal {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
padding: 1rem 0;
}
.mds-profile-card__score-modal-backdrop {
position: absolute;
inset: 0;
background: var(--mds-liquid-bg-overlay, rgba(0, 0, 0, 0.45));
}
.mds-profile-card__score-modal-content {
position: relative;
max-width: 420px;
max-height: calc(100vh - 2rem);
overflow-y: auto;
width: calc(100% - 2rem);
margin: auto;
padding: 32px;
background: var(--mds-liquid-bg-glass-thick, var(--panel));
border-radius: var(--r-sm, 4px);
border: none;
box-shadow: var(--mds-liquid-shadow-floating, var(--card-shadow));
}
/* Specular highlight removed (Meridian is flat) */
.mds-profile-card__score-modal-content::before {
content: none;
}
.mds-profile-card__score-modal-header {
position: relative;
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.9));
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 16px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.mds-profile-card__score-modal-header svg {
width: 24px;
height: 24px;
fill: currentColor;
}
.mds-profile-card__score-modal-text {
position: relative;
font-size: 14px;
line-height: 1.7;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
margin: 0 0 16px 0;
}
.mds-profile-card__score-modal-text:last-of-type {
margin-bottom: 24px;
}
.mds-profile-card__score-modal-close {
position: relative;
display: block;
width: 100%;
padding: 12px;
background: var(--mds-liquid-bg-glass, rgba(255, 255, 255, 0.08));
border: 1px solid var(--mds-liquid-border-subtle, rgba(255, 255, 255, 0.12));
border-radius: 12px;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.7));
font-family: inherit;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.mds-profile-card__score-modal-close:hover {
background: var(--mds-liquid-bg-glass-thick, rgba(255, 255, 255, 0.12));
color: var(--mds-color-text-primary, rgba(255, 255, 255, 0.9));
}
@media (max-width: 480px) {
.mds-profile-card__score-modal-content {
padding: 24px;
}
}
/* =============================================================================
Responsive
============================================================================= */
@media (max-width: 700px) {
.mds-profile-card {
grid-template-columns: 1fr;
max-width: 400px;
}
.mds-profile-card__photo {
border-radius: var(--r, 2px) var(--r, 2px) 0 0;
height: 280px;
}
.mds-profile-card__content {
border-left: none;
border-top: 1px solid rgba(255, 255, 255, 0.06);
padding: 20px;
align-items: center;
text-align: center;
}
html[data-theme="light"] .mds-profile-card__content {
border-top-color: rgba(0, 0, 0, 0.04);
}
.mds-profile-card__identity,
.mds-profile-card__details {
text-align: center;
}
.mds-profile-card__verification {
justify-content: center;
}
.mds-profile-card__corner-badge {
top: 14px;
right: 14px;
}
.mds-profile-card__corner-meta {
bottom: 12px;
right: 14px;
}
.mds-profile-card__social-icons {
bottom: 12px;
left: 14px;
right: 180px;
}
}
@media (max-width: 480px) {
.mds-profile-card__name {
font-size: 24px;
}
.mds-profile-card__profession,
.mds-profile-card__location,
.mds-profile-card__username-detail {
font-size: 14px;
}
}
/* =============================================================================
Clickable Avatar
============================================================================= */
.mds-profile-card__avatar--clickable {
cursor: pointer;
transition: transform 0.2s ease, filter 0.2s ease;
}
.mds-profile-card__avatar--clickable:hover {
filter: brightness(1.05);
}
.mds-profile-card__avatar--clickable:focus {
outline: 2px solid var(--mds-color-accent-primary, #00d4ff);
outline-offset: 2px;
}
/* =============================================================================
Photo Modal (Liquid Glass)
============================================================================= */
.mds-profile-card__photo-modal {
position: fixed;
inset: 0;
z-index: 99999; /* Higher z-index to cover everything including header */
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
cursor: pointer;
animation: mds-photo-modal-fade-in 0.25s ease-out;
}
@keyframes mds-photo-modal-fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.mds-profile-card__photo-modal-backdrop {
position: fixed;
inset: 0;
/* Meridian: opaque scrim, no glass blur */
background: rgba(0, 0, 0, 0.78);
}
html[data-theme="light"] .mds-profile-card__photo-modal-backdrop {
background: rgba(0, 0, 0, 0.55);
}
.mds-profile-card__photo-modal-content {
position: relative;
display: flex;
align-items: center;
justify-content: center;
/* Desktop: 90% of viewport */
max-width: 90vw;
max-height: 90vh;
width: auto;
height: auto;
animation: mds-photo-modal-scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mds-photo-modal-scale-in {
from {
opacity: 0;
transform: scale(0.92);
}
to {
opacity: 1;
transform: scale(1);
}
}
.mds-profile-card__photo-modal-image {
/* Fill available space while maintaining aspect ratio */
width: auto;
height: auto;
max-width: 90vw;
max-height: 85vh;
-o-object-fit: contain;
object-fit: contain;
border-radius: var(--r-sm, 4px);
/* Meridian flat frame */
background: var(--panel);
border: none;
box-shadow:
0 25px 80px rgba(0, 0, 0, 0.5),
0 10px 30px rgba(0, 0, 0, 0.3);
}
html[data-theme="light"] .mds-profile-card__photo-modal-image {
background: var(--panel);
box-shadow:
0 25px 80px rgba(0, 0, 0, 0.2),
0 10px 30px rgba(0, 0, 0, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 1);
}
/* Mobile: Photo expands to fill screen width */
@media (max-width: 700px) {
.mds-profile-card__photo-modal {
padding: 12px;
}
.mds-profile-card__photo-modal-content {
max-width: 96vw;
max-height: 85vh;
}
.mds-profile-card__photo-modal-image {
max-width: 96vw;
max-height: 80vh;
border-radius: 12px;
}
}
/* =============================================================================
FEAT-090: Verification Score Components (Settings Page)
============================================================================= */
.mds-verification-score-display {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 24px 40px;
border-radius: var(--r, 2px);
background: var(--field);
border: none;
}
html[data-theme="light"] .mds-verification-score-display {
background: var(--field);
}
.mds-verification-score-number {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 4rem;
font-weight: bold;
line-height: 1;
color: #00d4aa;
}
html[data-theme="light"] .mds-verification-score-number {
color: #00b48c;
}
.mds-verification-score-label {
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
}
.mds-verification-checks-grid {
display: flex;
flex-direction: column;
gap: 12px;
}
.mds-verification-check-card {
display: flex;
align-items: center;
gap: 16px;
padding: 16px 20px;
border-radius: 12px;
background: var(--field);
border: 1px solid transparent;
transition: all 0.2s ease;
}
html[data-theme="light"] .mds-verification-check-card {
background: var(--field);
border-color: transparent;
}
.mds-verification-check-card--passed {
background: rgba(0, 212, 170, 0.05);
border-color: rgba(0, 212, 170, 0.2);
}
html[data-theme="light"] .mds-verification-check-card--passed {
background: rgba(0, 180, 140, 0.05);
border-color: rgba(0, 180, 140, 0.2);
}
.mds-verification-check-icon {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
font-size: 16px;
font-weight: bold;
background: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.3);
flex-shrink: 0;
}
.mds-verification-check-card--passed .mds-verification-check-icon {
background: rgba(0, 212, 170, 0.15);
color: #00d4aa;
}
html[data-theme="light"] .mds-verification-check-icon {
background: rgba(0, 0, 0, 0.05);
color: rgba(0, 0, 0, 0.3);
}
html[data-theme="light"] .mds-verification-check-card--passed .mds-verification-check-icon {
background: rgba(0, 180, 140, 0.15);
color: #00b48c;
}
.mds-verification-check-content {
flex: 1;
min-width: 0;
}
.mds-verification-check-action {
flex-shrink: 0;
}
/* =============================================================================
FEAT-090: Verification Tab (Modal/Backoffice)
============================================================================= */
.mds-verification-tab {
display: flex;
flex-direction: column;
gap: 20px;
padding: 8px 0;
}
.mds-verification-score-header {
display: flex;
align-items: center;
gap: 20px;
padding: 20px;
background: rgba(0, 212, 170, 0.05);
border: 1px solid rgba(0, 212, 170, 0.15);
border-radius: 12px;
}
.mds-verification-score-badge {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 16px 24px;
background: rgba(0, 212, 170, 0.1);
border-radius: 10px;
}
.mds-verification-score-badge .mds-verification-score-number {
display: block;
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 2.5rem;
font-weight: bold;
line-height: 1;
color: #00d4aa;
text-align: center;
}
.mds-verification-score-badge .mds-verification-score-label {
display: block;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
text-align: center;
margin-top: 4px;
}
.mds-verification-score-info {
flex: 1;
}
.mds-verification-checks-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.mds-verification-check-item {
display: flex;
align-items: center;
gap: 14px;
padding: 14px 16px;
background: var(--field);
border: 1px solid transparent;
border-radius: 10px;
transition: all 0.2s ease;
}
.mds-verification-check-item--passed {
background: rgba(0, 212, 170, 0.05);
border-color: rgba(0, 212, 170, 0.2);
}
.mds-verification-check-status {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.3);
flex-shrink: 0;
}
.mds-verification-check-item--passed .mds-verification-check-status {
background: rgba(0, 212, 170, 0.15);
color: #00d4aa;
}
.mds-verification-check-content {
flex: 1;
min-width: 0;
}
/* Verification action buttons - uses Button component */
.mds-verification-check-item .mds-button {
flex-shrink: 0;
margin-left: auto;
}
html[data-theme="light"] .mds-verification-score-header {
background: rgba(0, 180, 140, 0.05);
border-color: rgba(0, 180, 140, 0.15);
}
html[data-theme="light"] .mds-verification-score-badge {
background: rgba(0, 180, 140, 0.1);
}
html[data-theme="light"] .mds-verification-score-badge .mds-verification-score-number {
color: #00b48c;
}
html[data-theme="light"] .mds-verification-check-item {
background: var(--field);
border-color: transparent;
}
html[data-theme="light"] .mds-verification-check-item--passed {
background: rgba(0, 180, 140, 0.05);
border-color: rgba(0, 180, 140, 0.15);
}
html[data-theme="light"] .mds-verification-check-status {
background: rgba(0, 0, 0, 0.05);
color: rgba(0, 0, 0, 0.3);
}
html[data-theme="light"] .mds-verification-check-item--passed .mds-verification-check-status {
background: rgba(0, 180, 140, 0.15);
color: #00b48c;
}
/* =============================================================================
FEAT-090: VerificationScoreCard Component (Unified)
Used by ProfileCard popup, @front settings, @back UserIdentityModal
============================================================================= */
/* Compact Popup Variant (ProfileCard) */
.mds-verification-popup {
min-width: 200px;
}
.mds-verification-popup__header {
font-size: 0.875rem;
font-weight: 600;
color: var(--mds-color-text-primary, #fff);
padding-bottom: 12px;
margin-bottom: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
html[data-theme="light"] .mds-verification-popup__header {
color: var(--mds-color-text-primary, #1f2937);
border-bottom-color: rgba(0, 0, 0, 0.1);
}
.mds-verification-popup__checks {
display: flex;
flex-direction: column;
gap: 8px;
}
.mds-verification-popup__footer {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 12px;
margin-top: 12px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.75rem;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
}
html[data-theme="light"] .mds-verification-popup__footer {
border-top-color: rgba(0, 0, 0, 0.1);
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
.mds-verification-popup__sequence,
.mds-verification-popup__date {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
}
/* Compact Check Item (for popup) */
.mds-verification-check-item--compact {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 0;
}
.mds-verification-check-icon {
width: 18px;
height: 18px;
display: flex;
align-items: center;
justify-content: center;
font-size: 12px;
font-weight: bold;
color: rgba(255, 255, 255, 0.3);
}
.mds-verification-check-icon--passed {
color: #00d4aa;
}
html[data-theme="light"] .mds-verification-check-icon {
color: rgba(0, 0, 0, 0.3);
}
html[data-theme="light"] .mds-verification-check-icon--passed {
color: #00b48c;
}
.mds-verification-check-label {
font-size: 0.8125rem;
color: var(--mds-color-text-primary, #fff);
}
html[data-theme="light"] .mds-verification-check-label {
color: var(--mds-color-text-primary, #1f2937);
}
/* Full Card Variant */
.mds-verification-card {
display: flex;
flex-direction: column;
gap: 20px;
}
.mds-verification-card__header {
display: flex;
align-items: center;
gap: 20px;
padding: 20px;
background: rgba(0, 212, 170, 0.05);
border: 1px solid rgba(0, 212, 170, 0.15);
border-radius: 12px;
}
html[data-theme="light"] .mds-verification-card__header {
background: rgba(0, 180, 140, 0.05);
border-color: rgba(0, 180, 140, 0.15);
}
.mds-verification-card__badge {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 16px 24px;
background: rgba(0, 212, 170, 0.1);
border-radius: 10px;
}
html[data-theme="light"] .mds-verification-card__badge {
background: rgba(0, 180, 140, 0.1);
}
.mds-verification-card__badge-label {
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
}
.mds-verification-card__badge-score {
font-family: 'OCR-B', 'OCR B Std', 'Courier New', monospace;
font-size: 2.5rem;
font-weight: bold;
line-height: 1;
color: #00d4aa;
}
html[data-theme="light"] .mds-verification-card__badge-score {
color: #00b48c;
}
.mds-verification-card__title {
flex: 1;
}
.mds-verification-card__heading {
margin: 0 0 4px 0;
font-size: 1.125rem;
font-weight: 600;
color: var(--mds-color-text-primary, #fff);
}
html[data-theme="light"] .mds-verification-card__heading {
color: var(--mds-color-text-primary, #1f2937);
}
.mds-verification-card__subtitle {
margin: 0;
font-size: 0.875rem;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
}
html[data-theme="light"] .mds-verification-card__subtitle {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
.mds-verification-card__error {
padding: 12px 16px;
background: rgba(220, 38, 38, 0.1);
border: 1px solid rgba(220, 38, 38, 0.2);
border-radius: 8px;
color: #ef4444;
font-size: 0.875rem;
}
.mds-verification-card__checks {
display: flex;
flex-direction: column;
gap: 10px;
}
.mds-verification-check-description {
display: block;
font-size: 0.9375rem;
color: var(--mds-color-text-primary, #fff);
}
html[data-theme="light"] .mds-verification-check-description {
color: var(--mds-color-text-primary, #1f2937);
}
.mds-verification-check-points {
display: block;
font-size: 0.8125rem;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
margin-top: 2px;
}
html[data-theme="light"] .mds-verification-check-points {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
.mds-verification-card__info {
margin: 0;
padding: 16px;
background: rgba(255, 255, 255, 0.03);
border-radius: 8px;
font-size: 0.875rem;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
}
html[data-theme="light"] .mds-verification-card__info {
background: rgba(0, 0, 0, 0.02);
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
/* =============================================================================
FEAT-097: Verification Timeline Styles
============================================================================= */
.mds-verification-timeline {
display: flex;
flex-direction: column;
gap: var(--mds-spacing-md, 16px);
}
.mds-verification-timeline--loading {
opacity: 0.7;
}
/* Chart Container */
.mds-timeline-chart-container {
padding: var(--mds-spacing-md, 16px);
background: rgba(255, 255, 255, 0.03);
border-radius: var(--mds-spacing-borderRadius-md, 8px);
border: 1px solid rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .mds-timeline-chart-container {
background: rgba(0, 0, 0, 0.02);
border-color: rgba(0, 0, 0, 0.08);
}
/* SVG Chart */
.mds-timeline-chart {
display: block;
color: var(--mds-color-text-primary, #fff);
}
html[data-theme="light"] .mds-timeline-chart {
color: var(--mds-color-text-primary, #111827);
}
.mds-timeline-chart--empty {
display: flex;
align-items: center;
justify-content: center;
height: 120px;
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
}
html[data-theme="light"] .mds-timeline-chart--empty {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
/* Divider */
.mds-timeline-divider {
height: 1px;
background: rgba(255, 255, 255, 0.1);
margin: var(--mds-spacing-sm, 8px) 0;
}
html[data-theme="light"] .mds-timeline-divider {
background: rgba(0, 0, 0, 0.1);
}
/* Events Section */
.mds-timeline-events-title {
font-size: var(--mds-typography-fontSize-sm, 14px);
font-weight: var(--mds-typography-fontWeight-semibold, 600);
color: var(--mds-color-text-primary, #fff);
margin: 0 0 var(--mds-spacing-sm, 8px) 0;
}
html[data-theme="light"] .mds-timeline-events-title {
color: var(--mds-color-text-primary, #111827);
}
.mds-timeline-events {
display: flex;
flex-direction: column;
gap: var(--mds-spacing-sm, 8px);
}
/* Event Item */
.mds-timeline-event {
display: flex;
align-items: flex-start;
gap: var(--mds-spacing-sm, 8px);
padding: var(--mds-spacing-sm, 8px);
background: rgba(255, 255, 255, 0.03);
border-radius: var(--mds-spacing-borderRadius-sm, 4px);
border: 1px solid rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .mds-timeline-event {
background: rgba(0, 0, 0, 0.02);
border-color: rgba(0, 0, 0, 0.05);
}
.mds-timeline-event__indicator {
width: 8px;
height: 8px;
border-radius: 50%;
margin-top: 4px;
flex-shrink: 0;
}
.mds-timeline-event__content {
flex: 1;
min-width: 0;
}
.mds-timeline-event__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--mds-spacing-sm, 8px);
}
.mds-timeline-event__type {
font-size: var(--mds-typography-fontSize-sm, 14px);
font-weight: var(--mds-typography-fontWeight-medium, 500);
color: var(--mds-color-text-primary, #fff);
}
html[data-theme="light"] .mds-timeline-event__type {
color: var(--mds-color-text-primary, #111827);
}
.mds-timeline-event__badge {
font-size: var(--mds-typography-fontSize-xs, 12px);
font-weight: var(--mds-typography-fontWeight-semibold, 600);
padding: 2px 6px;
border-radius: var(--mds-spacing-borderRadius-sm, 4px);
}
.mds-timeline-event__badge--positive {
color: #22c55e;
background: rgba(34, 197, 94, 0.15);
}
.mds-timeline-event__badge--negative {
color: #ef4444;
background: rgba(239, 68, 68, 0.15);
}
.mds-timeline-event__meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--mds-spacing-sm, 8px);
margin-top: 2px;
}
.mds-timeline-event__date,
.mds-timeline-event__score {
font-size: var(--mds-typography-fontSize-xs, 12px);
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
}
html[data-theme="light"] .mds-timeline-event__date,
html[data-theme="light"] .mds-timeline-event__score {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
/* Empty State */
.mds-timeline-empty {
text-align: center;
padding: var(--mds-spacing-lg, 24px);
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
}
html[data-theme="light"] .mds-timeline-empty {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
.mds-timeline-empty__hint {
font-size: var(--mds-typography-fontSize-sm, 14px);
margin-top: var(--mds-spacing-xs, 4px);
opacity: 0.8;
}
/* Recharts Tooltip (FEAT-097) — Meridian flat */
.score-timeline-tooltip {
background: rgba(20, 20, 30, 0.98) !important;
border: none !important;
box-shadow: var(--card-shadow) !important;
color: #fff !important;
}
html[data-theme="light"] .score-timeline-tooltip {
background: #FFFFFF !important;
border: none !important;
box-shadow: var(--card-shadow) !important;
color: #111827 !important;
}
html[data-theme="light"] .score-timeline-tooltip div {
color: inherit;
}
html[data-theme="light"] .score-timeline-tooltip div:first-child {
/* Keep event color */
}
html[data-theme="light"] .score-timeline-tooltip div:nth-child(2) {
color: #111827 !important;
}
html[data-theme="light"] .score-timeline-tooltip div:nth-child(3) {
color: #6b7280 !important;
}
/* Skeleton Loading */
.mds-timeline-skeleton {
display: flex;
flex-direction: column;
gap: var(--mds-spacing-md, 16px);
}
.mds-timeline-skeleton__chart {
background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
background-size: 200% 100%;
animation: mds-skeleton-shimmer 1.5s infinite;
border-radius: var(--mds-spacing-borderRadius-md, 8px);
}
html[data-theme="light"] .mds-timeline-skeleton__chart {
background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.03) 75%);
background-size: 200% 100%;
}
.mds-timeline-skeleton__events {
display: flex;
flex-direction: column;
gap: var(--mds-spacing-sm, 8px);
}
.mds-timeline-skeleton__event {
height: 48px;
background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
background-size: 200% 100%;
animation: mds-skeleton-shimmer 1.5s infinite;
border-radius: var(--mds-spacing-borderRadius-sm, 4px);
}
html[data-theme="light"] .mds-timeline-skeleton__event {
background: linear-gradient(90deg, rgba(0,0,0,0.03) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.03) 75%);
background-size: 200% 100%;
}
@keyframes mds-skeleton-shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* =============================================================================
FEAT-097: Modal Tabs Styles
============================================================================= */
.mds-modal-tabs {
display: flex;
gap: var(--mds-spacing-xs, 4px);
padding: var(--mds-spacing-xs, 4px);
background: rgba(255, 255, 255, 0.05);
border-radius: var(--mds-spacing-borderRadius-md, 8px);
}
html[data-theme="light"] .mds-modal-tabs {
background: rgba(0, 0, 0, 0.05);
}
.mds-modal-tab {
display: flex;
align-items: center;
gap: var(--mds-spacing-xs, 4px);
padding: var(--mds-spacing-sm, 8px) var(--mds-spacing-md, 16px);
background: transparent;
border: none;
border-radius: var(--mds-spacing-borderRadius-sm, 4px);
color: var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6));
font-size: var(--mds-typography-fontSize-sm, 14px);
font-weight: var(--mds-typography-fontWeight-medium, 500);
cursor: pointer;
transition: all 0.2s ease;
flex: 1;
justify-content: center;
}
html[data-theme="light"] .mds-modal-tab {
color: var(--mds-color-text-secondary, rgba(0, 0, 0, 0.6));
}
.mds-modal-tab:hover {
background: rgba(255, 255, 255, 0.08);
color: var(--mds-color-text-primary, #fff);
}
html[data-theme="light"] .mds-modal-tab:hover {
background: rgba(0, 0, 0, 0.08);
color: var(--mds-color-text-primary, #111827);
}
.mds-modal-tab--active {
background: rgba(255, 255, 255, 0.12);
color: var(--mds-color-text-primary, #fff);
}
html[data-theme="light"] .mds-modal-tab--active {
background: rgba(0, 0, 0, 0.1);
color: var(--mds-color-text-primary, #111827);
}
.mds-modal-tab svg {
width: 16px;
height: 16px;
opacity: 0.8;
}
.mds-modal-tab--active svg {
opacity: 1;
}
/* =============================================================================
VerificationShield Component (LiquidGlass Style)
============================================================================= */
/* VerificationShield — Outline style (stroke, no fill) */
.mds-verification-shield {
display: inline-block;
vertical-align: middle;
flex-shrink: 0;
color: rgba(255, 255, 255, 0.6);
}
.mds-verification-shield__outline {
opacity: 0.4;
}
.mds-verification-shield__text {
fill: currentColor;
text-rendering: geometricPrecision;
}
/* Light theme */
html[data-theme="light"] .mds-verification-shield {
color: rgba(0, 0, 0, 0.5);
}
/* Hover emphasis (ProfileCard corner badge) */
.mds-profile-card__corner-badge--shield:hover .mds-verification-shield {
color: rgba(255, 255, 255, 0.85);
}
.mds-profile-card__corner-badge--shield:hover .mds-verification-shield__outline {
opacity: 0.6;
}
html[data-theme="light"] .mds-profile-card__corner-badge--shield:hover .mds-verification-shield {
color: rgba(0, 0, 0, 0.7);
}
/* =============================================================================
MetricsEvolutionChart (shared between @front dashboard and @design ProfileCard)
Reuses `social-chart__*` BEM namespace for visual parity with the legacy
inline @front chart; adds `metrics-chart__period-pill*` for period filter.
============================================================================= */
.social-chart__section {
margin-top: 0.75rem;
border-radius: var(--r, 2px);
border: none;
background: var(--glass, var(--mds-liquid-bg-card, #1C1C20));
box-shadow: var(--card-shadow-sm, var(--mds-liquid-shadow-raised, none));
padding: 1rem 0.5rem 0.5rem 0.25rem;
}
.social-chart__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
flex-wrap: wrap;
padding: 0 0.75rem 0.5rem;
}
.social-chart__title {
display: block;
font-size: 0.6875rem;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--ink-faint, var(--mds-color-text-tertiary, rgba(255, 255, 255, 0.5)));
font-weight: 600;
}
.social-chart__empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 80px;
margin-top: 0.5rem;
padding: 0 0.75rem;
text-align: center;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(255, 255, 255, 0.55)));
}
/* Recharts tooltip — Meridian flat floating surface */
.social-chart__tooltip {
padding: 10px 14px;
border-radius: var(--r-sm, 4px);
background: var(--panel, var(--mds-liquid-bg-glass-thick, #1C1C20));
border: none;
box-shadow: var(--mds-modal-elevation, var(--card-shadow, 0 16px 36px -18px rgba(0, 0, 0, 0.9)));
font-size: 12px;
color: var(--ink, var(--mds-color-text-primary, rgba(255, 255, 255, 0.8)));
}
.social-chart__tooltip-period {
font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
font-size: 11px;
color: var(--ink-faint, var(--mds-color-text-tertiary, rgba(255, 255, 255, 0.45)));
margin-bottom: 6px;
letter-spacing: 0.03em;
}
.social-chart__tooltip-grouped {
font-size: 10px;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(255, 255, 255, 0.6)));
margin-bottom: 6px;
font-style: italic;
}
.social-chart__tooltip-row {
display: flex;
align-items: center;
gap: 6px;
line-height: 1.6;
}
.social-chart__tooltip-row strong {
color: var(--ink, var(--mds-color-text-primary, #fff));
font-weight: 600;
}
.social-chart__tooltip-dot {
width: 6px;
height: 6px;
border-radius: 50%;
flex-shrink: 0;
}
.social-chart__tooltip-pct {
font-size: 10px;
color: var(--ink-faint, var(--mds-color-text-tertiary, rgba(255, 255, 255, 0.3)));
margin-left: 1px;
}
/* Period pills row */
.metrics-chart__period-pills {
display: inline-flex;
align-items: center;
gap: 2px;
padding: 2px;
border-radius: 999px;
background: var(--field, var(--mds-liquid-bg-input, rgba(255, 255, 255, 0.04)));
border: none;
}
.metrics-chart__period-pill {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border: 0;
background: transparent;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(255, 255, 255, 0.55)));
font-size: 10px;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 4px 10px;
border-radius: 999px;
cursor: pointer;
transition: background-color 120ms ease, color 120ms ease;
line-height: 1;
}
.metrics-chart__period-pill:hover {
color: var(--ink, var(--mds-color-text-primary, rgba(255, 255, 255, 0.85)));
background: var(--accent-soft, rgba(255, 255, 255, 0.04));
}
.metrics-chart__period-pill--active {
color: var(--on-accent, #fff);
background: var(--accent, var(--mds-color-text-primary, #fff));
box-shadow: none;
}
.metrics-chart__period-pill--active:hover {
background: var(--accent, var(--mds-color-text-primary, #fff));
}
/* Light theme overrides */
html[data-theme="light"] .social-chart__section {
background: var(--glass, var(--mds-liquid-bg-card, #FFFFFF));
color: var(--ink, var(--mds-color-text-primary, rgba(0, 0, 0, 0.7)));
}
html[data-theme="light"] .social-chart__tooltip {
background: var(--panel, var(--mds-liquid-bg-glass-thick, #FFFFFF));
color: var(--ink, var(--mds-color-text-primary, rgba(0, 0, 0, 0.8)));
}
/* =============================================================================
FEAT-0413 — Guided journey primitives
Meridian: flat, zero-border, typographic. Affordance comes from background +
shadow, never from a border. Colour is reserved for DATA (score, status);
the chrome is monochrome and driven by --ink. Every token carries a fallback
so the components also render correctly outside @front/@back.
============================================================================= */
.mds-visually-hidden {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
/* --- JourneyProgress ------------------------------------------------------ */
.mds-journey-progress {
display: flex;
flex-direction: column;
gap: 12px;
width: 100%;
}
.mds-journey-progress__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
min-height: 32px;
}
.mds-journey-progress__caption {
font-family: var(--mono, ui-monospace, monospace);
font-size: 11px;
font-weight: 600;
letter-spacing: .06em;
text-transform: uppercase;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(0, 0, 0, .58)));
}
.mds-journey-progress__tracks {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}
.mds-journey-track {
display: flex;
flex-direction: column;
gap: 7px;
opacity: .55;
transition: opacity 200ms ease;
}
.mds-journey-track--active { opacity: 1; }
.mds-journey-track__label {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
font-size: 12px;
font-weight: 600;
letter-spacing: .01em;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(0, 0, 0, .58)));
}
.mds-journey-track--active .mds-journey-track__label {
color: var(--ink, var(--mds-color-text-primary, #17171C));
font-weight: 700;
}
.mds-journey-track__rail {
height: 7px;
border-radius: 999px;
background: var(--field, rgba(0, 0, 0, .08));
overflow: hidden;
}
.mds-journey-track__bar {
height: 100%;
width: 0;
border-radius: inherit;
background: var(--accent, var(--mds-color-text-primary, #17171C));
transition: width 320ms cubic-bezier(.4, 0, .2, 1);
}
.mds-journey-track[data-track="premium"] .mds-journey-track__bar {
background: linear-gradient(90deg, var(--mds-premium-gold-deep, #7a6023), var(--mds-premium-gold-mid, #c9a84c));
}
@media (max-width: 640px) {
.mds-journey-progress__tracks { gap: 10px; }
.mds-journey-track__rail { height: 6px; }
.mds-journey-track__label { font-size: 11px; }
}
/* --- JourneyCard ---------------------------------------------------------- */
.mds-journey-card {
position: relative;
display: flex;
flex: 1;
flex-direction: column;
min-height: 0;
padding: clamp(20px, 2.4vw, 30px);
border-radius: var(--r, 8px);
background: var(--panel, var(--mds-liquid-bg-card, #FFFFFF));
color: var(--ink, var(--mds-color-text-primary, #17171C));
box-shadow: var(--card-shadow, 0 1px 3px rgba(0, 0, 0, .05), 0 16px 34px -18px rgba(0, 0, 0, .14));
overflow: hidden;
}
.mds-journey-card__facets {
position: absolute;
z-index: 0;
bottom: -70px;
left: -70px;
width: 260px;
height: 260px;
pointer-events: none;
opacity: .05;
background:
linear-gradient(135deg, transparent 48%, currentColor 48%, currentColor 50%, transparent 50%),
linear-gradient(135deg, transparent 62%, currentColor 62%, currentColor 63.4%, transparent 63.4%),
linear-gradient(135deg, transparent 76%, currentColor 76%, currentColor 77%, transparent 77%);
}
.mds-journey-card--enhance .mds-journey-card__facets {
border-radius: 50%;
opacity: .07;
background:
radial-gradient(circle, transparent 55%, currentColor 55.6%, transparent 57%),
radial-gradient(circle, transparent 70%, currentColor 70.6%, transparent 72%);
}
.mds-journey-card--premium {
background: linear-gradient(155deg, var(--mds-premium-tint, rgba(154, 122, 46, .16)), var(--panel, #16161A) 62%);
}
.mds-journey-card--premium .mds-journey-card__facets {
opacity: .3;
color: var(--mds-premium-gold-mid, #c9a84c);
}
.mds-journey-card__inner {
position: relative;
z-index: 1;
display: flex;
flex: 1;
flex-direction: column;
justify-content: center;
gap: 22px;
min-height: 0;
/* Safety valve: if a host constrains the card below its content, the body
scrolls inside the card instead of bleeding under the action row. */
overflow-y: auto;
overscroll-behavior: contain;
}
.mds-journey-card__header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
}
/* `flex: 1; min-width: 0` is load-bearing: without it the metric column (whose
label does not wrap) squeezes the heading until the title breaks one word per
line. */
.mds-journey-card__heading {
display: flex;
flex: 1;
flex-direction: column;
gap: 8px;
min-width: 0;
}
.mds-journey-card__kicker {
margin: 0;
font-family: var(--mono, ui-monospace, monospace);
font-size: 10px;
font-weight: 600;
letter-spacing: .1em;
text-transform: uppercase;
color: var(--ink-faint, var(--mds-color-text-muted, rgba(0, 0, 0, .4)));
}
.mds-journey-card__title {
margin: 0;
font-size: clamp(20px, 2.2vw, 27px);
font-weight: 700;
letter-spacing: -.03em;
line-height: 1.16;
}
.mds-journey-card__title:focus-visible { outline: none; }
.mds-journey-card__lede {
margin: 0;
font-size: 15px;
line-height: 1.5;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(0, 0, 0, .58)));
}
.mds-journey-card__metric {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 2px;
flex-shrink: 0;
}
.mds-journey-card__metric strong {
font-family: var(--mono, ui-monospace, monospace);
font-size: 34px;
font-weight: 600;
line-height: 1;
letter-spacing: -.03em;
}
.mds-journey-card__metric span {
max-width: 96px;
font-size: 10px;
line-height: 1.3;
letter-spacing: .07em;
text-align: right;
text-transform: uppercase;
color: var(--ink-faint, var(--mds-color-text-muted, rgba(0, 0, 0, .4)));
}
.mds-journey-card__body {
display: flex;
flex-direction: column;
gap: 18px;
min-height: 0;
}
.mds-journey-card__actions {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
margin-top: 26px;
}
/* --- CodeInput ------------------------------------------------------------ */
.mds-code-input { display: flex; flex-direction: column; gap: 8px; }
.mds-code-input__label {
font-size: 12px;
font-weight: 600;
letter-spacing: .02em;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(0, 0, 0, .58)));
}
.mds-code-input__field { position: relative; cursor: text; }
.mds-code-input__control {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
padding: 0;
border: 0;
background: transparent;
color: transparent;
caret-color: transparent;
font-family: var(--mono, ui-monospace, monospace);
letter-spacing: 1em;
}
.mds-code-input__control:focus { outline: none; }
.mds-code-input__slots { display: flex; gap: 8px; }
.mds-code-input__slot {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
min-width: 0;
height: 46px;
border-radius: var(--r-sm, 2px);
background: var(--field, rgba(0, 0, 0, .05));
font-family: var(--mono, ui-monospace, monospace);
font-size: 20px;
font-weight: 600;
color: var(--ink, var(--mds-color-text-primary, #17171C));
transition: box-shadow 140ms ease, background-color 140ms ease;
}
.mds-code-input__control:focus + .mds-code-input__slots .mds-code-input__slot--next {
box-shadow: inset 0 -2px 0 var(--accent, #17171C);
background: var(--accent-soft, rgba(0, 0, 0, .05));
}
.mds-code-input--error .mds-code-input__slot {
box-shadow: inset 0 -2px 0 var(--bad, #b42318);
}
.mds-code-input__error {
min-height: 16px;
font-size: 12px;
color: var(--bad, #b42318);
}
/* --- ComboField ----------------------------------------------------------- */
.mds-combo-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mds-combo-field__label {
font-size: 12px;
font-weight: 600;
letter-spacing: .02em;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(0, 0, 0, .58)));
}
.mds-combo-field__required { color: var(--bad, #b42318); }
.mds-combo-field__control { position: relative; display: flex; align-items: center; }
.mds-combo-field__input {
width: 100%;
min-width: 0;
padding: 12px 14px;
border: 0;
border-radius: var(--r-sm, 2px);
background: var(--field, rgba(0, 0, 0, .05));
color: var(--ink, var(--mds-color-text-primary, #17171C));
font-size: 15px;
transition: box-shadow 140ms ease;
}
.mds-combo-field__input::-moz-placeholder {
color: var(--ink-faint, var(--mds-color-text-muted, rgba(0, 0, 0, .4)));
}
.mds-combo-field__input::placeholder {
color: var(--ink-faint, var(--mds-color-text-muted, rgba(0, 0, 0, .4)));
}
.mds-combo-field__input:focus {
outline: none;
box-shadow: inset 0 -2px 0 var(--accent, #17171C);
}
.mds-combo-field__input:disabled { opacity: .6; cursor: not-allowed; }
.mds-combo-field--error .mds-combo-field__input {
box-shadow: inset 0 -2px 0 var(--bad, #b42318);
}
.mds-combo-field__adornment {
position: absolute;
right: 12px;
display: inline-flex;
align-items: center;
pointer-events: none;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(0, 0, 0, .58)));
}
.mds-combo-field__helper {
font-size: 12px;
color: var(--ink-faint, var(--mds-color-text-muted, rgba(0, 0, 0, .4)));
}
.mds-combo-field__error { font-size: 12px; color: var(--bad, #b42318); }
/* --- InvitationChip ------------------------------------------------------- */
.mds-invitation-chip {
display: inline-flex;
align-items: center;
gap: 10px;
max-width: 100%;
padding: 7px 8px 7px 11px;
border-radius: var(--r-sm, 2px);
background: var(--accent-soft, rgba(0, 0, 0, .05));
}
.mds-invitation-chip--premium {
background: var(--mds-premium-gold-soft, rgba(154, 122, 46, .11));
color: var(--ink, var(--mds-color-text-primary, #17171C));
}
.mds-invitation-chip__mark { display: inline-flex; flex-shrink: 0; }
.mds-invitation-chip--premium .mds-invitation-chip__mark {
color: var(--mds-premium-gold, #9a7a2e);
}
.mds-invitation-chip__mark svg { width: 18px; height: 18px; }
.mds-invitation-chip__copy {
display: flex;
flex-direction: column;
min-width: 0;
line-height: 1.25;
}
.mds-invitation-chip__copy > span {
font-size: 9px;
font-weight: 600;
letter-spacing: .09em;
text-transform: uppercase;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(0, 0, 0, .68)));
}
.mds-invitation-chip__copy > strong {
overflow: hidden;
font-family: var(--mono, ui-monospace, monospace);
font-size: 12px;
font-weight: 600;
letter-spacing: .02em;
text-overflow: ellipsis;
white-space: nowrap;
}
.mds-invitation-chip__copy > small {
font-size: 10px;
color: var(--ink-dim, var(--mds-color-text-secondary, rgba(0, 0, 0, .68)));
}
.mds-invitation-chip__remove {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
padding: 0;
border: 0;
border-radius: var(--r-sm, 2px);
background: transparent;
color: inherit;
cursor: pointer;
opacity: .7;
transition: opacity 140ms ease, background-color 140ms ease;
}
.mds-invitation-chip__remove:hover {
opacity: 1;
background: var(--accent-soft, rgba(0, 0, 0, .06));
}
.mds-invitation-chip__remove svg { width: 14px; height: 14px; }
/* --- ChoiceTile ----------------------------------------------------------- */
.mds-choice-tile {
display: inline-flex;
align-items: center;
gap: 12px;
min-height: 52px;
padding: 12px 16px;
border: 0;
border-radius: var(--r-sm, 2px);
background: var(--field, rgba(0, 0, 0, .05));
color: var(--ink, var(--mds-color-text-primary, #17171C));
font: inherit;
text-align: left;
cursor: pointer;
transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.mds-choice-tile--block { width: 100%; }
.mds-choice-tile:hover:not(:disabled) { background: var(--accent-soft, rgba(0, 0, 0, .08)); }
.mds-choice-tile:active:not(:disabled) { transform: translateY(1px); }
.mds-choice-tile:disabled { opacity: .5; cursor: not-allowed; }
.mds-choice-tile--subtle { background: transparent; }
.mds-choice-tile--subtle:hover:not(:disabled) { background: var(--accent-soft, rgba(0, 0, 0, .05)); }
.mds-choice-tile--primary {
background: var(--accent, #17171C);
color: var(--on-accent, #FFFFFF);
}
.mds-choice-tile--primary:hover:not(:disabled) { background: var(--accent-2, #3A3A42); }
.mds-choice-tile--selected { box-shadow: inset 0 0 0 2px var(--accent, #17171C); }
.mds-choice-tile--primary.mds-choice-tile--selected {
box-shadow: inset 0 0 0 2px var(--on-accent, #FFFFFF);
}
.mds-choice-tile__icon {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 22px;
height: 22px;
}
.mds-choice-tile__icon svg { width: 100%; height: 100%; }
.mds-choice-tile__copy {
display: flex;
flex: 1;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.mds-choice-tile__label {
overflow: hidden;
font-size: 14px;
font-weight: 600;
letter-spacing: -.01em;
text-overflow: ellipsis;
white-space: nowrap;
}
.mds-choice-tile__meta {
overflow: hidden;
font-size: 11px;
opacity: .7;
text-overflow: ellipsis;
white-space: nowrap;
}
.mds-choice-tile__mark {
display: inline-flex;
flex-shrink: 0;
width: 18px;
height: 18px;
opacity: 0;
transition: opacity 140ms ease;
}
.mds-choice-tile__mark svg { width: 100%; height: 100%; }
.mds-choice-tile--selected .mds-choice-tile__mark { opacity: 1; }
/* --- OctahedronMark ------------------------------------------------------- */
.mds-octahedron {
display: block;
width: min(var(--mds-octahedron-size, 220px), 100%);
aspect-ratio: 1;
color: currentColor;
transition: transform 520ms cubic-bezier(.4, 0, .2, 1);
}
.mds-octahedron svg { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
.mds-octahedron,
.mds-journey-track__bar,
.mds-choice-tile { transition: none; }
}