.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 44px; padding: 11px 17px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 650; line-height: 1.25; transition: background var(--transition), border-color var(--transition), transform var(--transition); white-space: normal; text-align: center; }
.button:hover:not(:disabled) { transform: translateY(-1px); } .button:active:not(:disabled) { transform: translateY(0); }
.button-primary { background: var(--navy); color: white; } .button-primary:hover { background: #123976; }
.button-secondary { border-color: var(--border); background: white; color: var(--navy); } .button-secondary:hover { border-color: #A3B5D2; background: var(--navy-soft); }
.button-danger { background: var(--red); color: white; } .button-danger:hover { background: #BD0024; }
.button-ghost { color: var(--navy); background: transparent; } .button-ghost:hover { background: var(--navy-soft); }
.button:disabled { opacity: .45; } .button .icon { width: 17px; height: 17px; }
.button-block { width: 100%; } .small-button { min-height: 40px; padding: 9px 13px; }
.icon-button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; }
.icon-button:hover { background: var(--navy-soft); } .icon-button[aria-expanded="true"] { background: var(--navy-soft); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 5px; font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: .035em; white-space: nowrap; }
.badge-neutral { background: #EDF0F5; color: #536176; } .badge-info { background: var(--sky-soft); color: #00537C; }
.badge-success { background: var(--success-soft); color: var(--success); } .badge-warning { background: var(--warning-soft); color: var(--warning); } .badge-danger { background: var(--red-soft); color: #B30023; }
.badge-outline { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { padding: 23px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); }
.card-header h2 { font-size: 1rem; } .card-body { padding: 24px; } .card-description { margin-top: 5px; font-size: var(--text-sm); color: var(--muted); }
.avatar { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-size: 13px; font-weight: 750; color: var(--navy); background: #E6EDF8; }
.avatar-small { width: 36px; height: 36px; font-size: 11px; } .avatar-sky { background: var(--sky-soft); color: #00618B; } .avatar-red { background: #FDECEF; color: #AD1834; }
.avatar-stack { display: flex; } .avatar-stack .avatar { border: 3px solid white; width: 35px; height: 35px; font-size: 10px; } .avatar-stack .avatar + .avatar { margin-left: -9px; }
.table-wrap { overflow-x: auto; } table { border-collapse: collapse; text-align: left; width: 100%; font-size: var(--text-sm); }
th { font-weight: 600; font-size: 11px; color: var(--muted); background: #FAFBFD; padding: 13px 24px; white-space: nowrap; }
td { padding: 17px 24px; border-top: 1px solid var(--border); } tbody tr:hover { background: #FAFBFD; }
.person-cell { display: flex; align-items: center; gap: 12px; min-width: 160px; } .person-cell strong { font-size: 12px; display: block; } .person-cell small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.form-field { display: grid; gap: 7px; min-width: 0; } .form-field label { font-size: 12px; font-weight: 650; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 11px 13px; color: var(--text); border: 1px solid #CAD3DF; background: white; border-radius: var(--radius-sm); outline-offset: 2px; }
.input::placeholder, .textarea::placeholder { color: #758195; } .input:disabled { background: var(--background); }
.input[aria-invalid="true"] { border-color: var(--red); } .field-help, .field-error { font-size: 11px; } .field-help { color: var(--muted); } .field-error { color: #B50024; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .form-span { grid-column: 1 / -1; }
.switch { width: 42px; height: 25px; border: 0; background: #AFB9C8; padding: 3px; border-radius: 30px; display: inline-flex; align-items: center; position: relative; flex: 0 0 auto; }
.switch::before { content: ""; width: 19px; height: 19px; background: white; border-radius: 50%; transition: transform var(--transition); box-shadow: 0 1px 4px #0002; }
.switch[aria-checked="true"] { background: var(--navy); } .switch[aria-checked="true"]::before { transform: translateX(17px); }
.switch::after { content: ""; position: absolute; inset: -10px -2px; } .switch-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 20px; min-height: 48px; }
.switch-row + .switch-row { border-top: 1px solid var(--border); }
.modal { width: min(520px, calc(100% - 32px)); max-height: min(85dvh, 780px); border: 0; border-radius: var(--radius-lg); padding: 0; color: var(--text); background: white; box-shadow: var(--shadow-dialog); overflow-y: auto; }
.modal::backdrop { background: #08142680; backdrop-filter: blur(3px); } .modal[open] { animation: enter 180ms var(--ease); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--border); gap: 14px; }
.modal-header h2 { font-size: 1.15rem; } .modal-body { padding: 24px; } .modal-body > p { font-size: var(--text-sm); color: var(--muted); } .modal-body > p + p { margin-top: 12px; }
.modal-footer { padding: 16px 24px 24px; display: flex; gap: 10px; justify-content: flex-end; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: grid; gap: 10px; max-width: min(390px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--dark); color: white; border: 1px solid #FFFFFF20; border-radius: 12px; box-shadow: var(--shadow); font-size: 12px; animation: enter 180ms var(--ease); pointer-events: auto; }
.toast .icon { color: #80D4B0; } .toast-close { color: white; background: transparent; border: 0; padding: 6px; margin-left: auto; }
.empty-state { text-align: center; padding: 48px 24px; } .empty-icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--navy-soft); color: var(--navy); border-radius: 20px; margin: 0 auto 20px; }
.empty-icon .icon { width: 28px; height: 28px; } .empty-state h2, .empty-state h3 { margin-bottom: 10px; } .empty-state p { max-width: 360px; margin-inline: auto; font-size: var(--text-sm); color: var(--muted); } .empty-state .button { margin-top: 24px; }
.skeleton { border-radius: 8px; background: linear-gradient(90deg,#E9EEF4 25%,#F7F9FB 50%,#E9EEF4 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skeleton-title { width: 230px; height: 36px; margin-bottom: 24px; } .skeleton-card { height: 150px; margin-bottom: 20px; } .skeleton-line { height: 14px; margin: 12px 0; }
.skeleton-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.inline-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); padding: 14px 16px; background: var(--navy-soft); border-radius: 8px; }
.inline-note .icon { width: 17px; height: 17px; color: var(--navy); margin-top: 1px; }
.notification-list { list-style: none; } .notification-item { display: flex; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--border); } .notification-item:last-child { border: 0; }
.notification-symbol { background: var(--sky-soft); color: #005B82; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.notification-copy strong { font-size: 12px; display: block; } .notification-copy p { font-size: 12px; color: var(--muted); margin-top: 3px; } .notification-copy small { display: block; color: var(--muted); font-size: 10px; margin-top: 7px; }
.notification-item.is-read { opacity: .65; } .notification-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; position: absolute; top: 9px; right: 10px; box-shadow: 0 0 0 2px white; }
.component-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; } .component-grid .full-width { grid-column: 1 / -1; }
.component-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.color-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 14px; }
.color-chip { height: 70px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 10px; } .color-name { font-size: 12px; font-weight: 650; } .color-code { font-size: 10px; color: var(--muted); font-family: var(--font-mono); }
.type-specimen { border-bottom: 1px solid var(--border); padding: 16px 0; } .type-specimen:last-child { border: 0; } .type-specimen small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.spacing-specimen { display: flex; align-items: center; gap: 14px; margin: 10px 0; font-size: 11px; } .spacing-specimen span { width: 48px; } .spacing-bar { height: 12px; background: var(--sky); border-radius: 3px; }
@media(max-width:767px) { .component-grid { grid-template-columns: 1fr; } .color-grid { grid-template-columns: repeat(3,1fr); } .form-grid { grid-template-columns: 1fr; } .skeleton-grid { grid-template-columns: 1fr; } .toast-region { right: 16px; bottom: 16px; } .card-header, .card-body { padding: 20px; } }


/* Let table specimens scroll within the grid rather than enlarging a narrow page. */
.component-grid > .card { min-width: 0; }
.toast-close { min-width: 44px; min-height: 44px; }

