/* ===========================================
   Allergi & specialkost - Feature styles
   =========================================== */

/* Context indicator */
.context-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--cl-super-soft, #e8eaf6);
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    color: var(--cl-hard, #26418f);
    flex-wrap: wrap;
}

.context-indicator__icon {
    font-size: 18px;
    color: var(--cl-medium, #3f51b5);
}

.context-indicator__text {
    flex: 1;
    min-width: 200px;
}

.context-indicator__change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid var(--cl-soft, #7986cb);
    border-radius: 16px;
    background: var(--white, #fff);
    color: var(--cl-hard, #26418f);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: background 0.2s;
}

.context-indicator__change:hover {
    background: var(--cl-super-soft, #e8eaf6);
}

.context-indicator__change .material-icons {
    font-size: 16px;
}

/* Page header */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--gray-darkest, #212121);
}

.page-header__subtitle {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--gray-dark, #757575);
}

.view-toggle {
    display: flex;
    border: 1px solid var(--gray-light, #e0e0e0);
    border-radius: 4px;
    overflow: hidden;
}

.view-toggle__btn {
    padding: 6px 10px;
    border: none;
    background: var(--white, #fff);
    color: var(--gray-dark, #757575);
    cursor: pointer;
    transition: all 0.2s;
}

.view-toggle__btn--active {
    background: var(--cl-hard, #26418f);
    color: var(--white, #fff);
}

/* Demo controls */
.demo-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff3e0;
    border-radius: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
}

.demo-controls__label {
    color: #e65100;
    font-weight: 500;
    white-space: nowrap;
}

.demo-controls__btn {
    padding: 4px 10px;
    border: 1px solid #ffcc80;
    border-radius: 14px;
    background: #fff;
    color: #e65100;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.demo-controls__btn:hover,
.demo-controls__btn[data-active="true"] {
    background: #e65100;
    color: #fff;
    border-color: #e65100;
}

/* Children list */
.children-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.child-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--white, #fff);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    border: 1px solid var(--gray-lighter, #f5f5f5);
}

.child-row:hover {
    background: var(--gray-lightest, #fafafa);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.child-row:focus-visible {
    outline: 2px solid var(--cl-medium, #3f51b5);
    outline-offset: 2px;
}

.child-row__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cl-super-soft, #e8eaf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: var(--cl-hard, #26418f);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.child-row__info {
    flex: 1;
    min-width: 0;
}

.child-row__name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-darkest, #212121);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.child-row__meta {
    font-size: 0.8125rem;
    color: var(--gray-dark, #757575);
    margin-top: 2px;
}

.child-row__allergy-indicators {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 50%;
}

.allergy-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.allergy-chip .material-icons {
    font-size: 14px;
}

.allergy-chip--allergi {
    background: #ffebee;
    color: #c62828;
}

.allergy-chip--intolerans {
    background: #fff3e0;
    color: #e65100;
}

.allergy-chip--specialkost {
    background: #e3f2fd;
    color: #1565c0;
}

.allergy-chip--more {
    background: var(--gray-lighter, #f5f5f5);
    color: var(--gray-dark, #757575);
    font-weight: 400;
}

.allergy-chip--protected {
    background: #f3e5f5;
    color: #6a1b9a;
}

.child-row__arrow {
    color: var(--gray-light, #bdbdbd);
    font-size: 20px;
    flex-shrink: 0;
}

/* No allergy indicator */
.child-row--no-allergy .child-row__allergy-indicators {
    opacity: 0.5;
}

/* Empty states */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    max-width: 480px;
    margin: 40px auto;
}

.empty-state__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-state--no-data .empty-state__icon {
    color: var(--gray-light, #bdbdbd);
}

.empty-state--no-access .empty-state__icon {
    color: #e65100;
}

.empty-state--wrong-context .empty-state__icon {
    color: var(--cl-medium, #3f51b5);
}

.empty-state__title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--gray-darkest, #212121);
}

.empty-state__text {
    font-size: 0.875rem;
    color: var(--gray-dark, #757575);
    margin: 0 0 20px;
    line-height: 1.6;
}

.empty-state__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background: var(--cl-hard, #26418f);
    color: var(--white, #fff);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.empty-state__action:hover {
    background: var(--cl-medium, #3f51b5);
}

/* Side panel (child profile) */
.side-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 480px;
    max-width: 100vw;
    height: 100vh;
    background: var(--white, #fff);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.side-panel--open {
    right: 0;
}

.side-panel__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-lighter, #f0f0f0);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--gray-lightest, #fafafa);
    flex-shrink: 0;
}

.side-panel__close {
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--gray-dark, #757575);
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.side-panel__close:hover {
    background: var(--gray-lighter, #f0f0f0);
}

.side-panel__child-info {
    flex: 1;
}

.side-panel__child-name {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0 0 4px;
    color: var(--gray-darkest, #212121);
}

.side-panel__child-meta {
    font-size: 0.8125rem;
    color: var(--gray-dark, #757575);
}

.side-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Allergy section in profile */
.allergy-section {
    margin-bottom: 24px;
}

.allergy-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.allergy-section__title {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-darkest, #212121);
    margin: 0;
}

.allergy-section__title .material-icons {
    font-size: 20px;
    color: var(--cl-medium, #3f51b5);
}

.allergy-section__add {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border: 1px solid var(--cl-soft, #7986cb);
    border-radius: 16px;
    background: var(--white, #fff);
    color: var(--cl-hard, #26418f);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.allergy-section__add:hover {
    background: var(--cl-super-soft, #e8eaf6);
}

.allergy-section__add .material-icons {
    font-size: 16px;
}

/* Allergy post card */
.allergy-card {
    padding: 14px 16px;
    border: 1px solid var(--gray-lighter, #f0f0f0);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border-left: 4px solid;
}

.allergy-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background: var(--gray-lightest, #fafafa);
}

.allergy-card:focus-visible {
    outline: 2px solid var(--cl-medium, #3f51b5);
    outline-offset: 2px;
}

.allergy-card--allergi {
    border-left-color: #d32f2f;
}

.allergy-card--intolerans {
    border-left-color: #f57c00;
}

.allergy-card--specialkost {
    border-left-color: #1976d2;
}

.allergy-card--inactive {
    border-left-color: var(--gray-light, #bdbdbd);
    opacity: 0.7;
}

.allergy-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.allergy-card__type-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--gray-darkest, #212121);
}

.allergy-card__severity {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.allergy-card__severity--allvarlig {
    background: #ffebee;
    color: #c62828;
}

.allergy-card__severity--mattlig {
    background: #fff3e0;
    color: #e65100;
}

.allergy-card__severity--mild {
    background: #e3f2fd;
    color: #1565c0;
}

.allergy-card__severity .material-icons {
    font-size: 12px;
}

.allergy-card__meta {
    font-size: 0.75rem;
    color: var(--gray-dark, #757575);
    display: flex;
    align-items: center;
    gap: 4px;
}

.allergy-card__meta .material-icons {
    font-size: 14px;
}

.allergy-card__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 500;
    margin-left: 8px;
}

.allergy-card__status-badge--verified {
    background: #e8f5e9;
    color: #2e7d32;
}

.allergy-card__status-badge--not-verified {
    background: #fff3e0;
    color: #e65100;
}

.allergy-card__status-badge--inactive {
    background: var(--gray-lighter, #f0f0f0);
    color: var(--gray-dark, #757575);
}

.allergy-card__status-badge .material-icons {
    font-size: 12px;
}

/* Detail panel */
.detail-panel {
    position: fixed;
    top: 0;
    right: -520px;
    width: 520px;
    max-width: 100vw;
    height: 100vh;
    background: var(--white, #fff);
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 1100;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-panel--open {
    right: 0;
}

.detail-panel__header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray-lighter, #f0f0f0);
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-lightest, #fafafa);
    flex-shrink: 0;
}

.detail-panel__back,
.detail-panel__close {
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--gray-dark, #757575);
    border-radius: 50%;
    transition: background 0.2s;
}

.detail-panel__back:hover,
.detail-panel__close:hover {
    background: var(--gray-lighter, #f0f0f0);
}

.detail-panel__title {
    flex: 1;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.detail-panel__close {
    margin-left: auto;
}

.detail-panel__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Detail fields */
.detail-field {
    margin-bottom: 16px;
}

.detail-field__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-dark, #757575);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-field__value {
    font-size: 0.9375rem;
    color: var(--gray-darkest, #212121);
    line-height: 1.5;
}

.detail-field__value--action {
    background: var(--gray-lightest, #fafafa);
    padding: 10px 12px;
    border-radius: 6px;
    border-left: 3px solid var(--cl-medium, #3f51b5);
}

.detail-divider {
    border: none;
    border-top: 1px solid var(--gray-lighter, #f0f0f0);
    margin: 20px 0;
}

/* Post ID display */
.detail-post-id {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: var(--gray-lighter, #f0f0f0);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--gray-dark, #757575);
    font-family: monospace;
}

/* Detail actions */
.detail-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.detail-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border: 1px solid var(--gray-light, #e0e0e0);
    border-radius: 4px;
    background: var(--white, #fff);
    color: var(--gray-darkest, #212121);
    cursor: pointer;
    font-size: 0.8125rem;
    transition: all 0.2s;
}

.detail-action-btn:hover {
    background: var(--gray-lightest, #fafafa);
    border-color: var(--gray, #9e9e9e);
}

.detail-action-btn--danger {
    color: #c62828;
    border-color: #ef9a9a;
}

.detail-action-btn--danger:hover {
    background: #ffebee;
    border-color: #c62828;
}

.detail-action-btn .material-icons {
    font-size: 16px;
}

/* History timeline */
.history-section {
    margin-top: 20px;
}

.history-section__title {
    font-size: 0.875rem;
    font-weight: 500;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-darkest, #212121);
}

.history-section__title .material-icons {
    font-size: 18px;
    color: var(--cl-medium, #3f51b5);
}

.history-timeline {
    position: relative;
    padding-left: 24px;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--gray-lighter, #e0e0e0);
}

.history-entry {
    position: relative;
    padding-bottom: 16px;
}

.history-entry:last-child {
    padding-bottom: 0;
}

.history-entry::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cl-medium, #3f51b5);
    border: 2px solid var(--white, #fff);
}

.history-entry--inactive::before {
    background: var(--gray, #9e9e9e);
}

.history-entry__date {
    font-size: 0.75rem;
    color: var(--gray-dark, #757575);
    margin-bottom: 2px;
}

.history-entry__actor {
    font-size: 0.75rem;
    color: var(--gray, #9e9e9e);
}

.history-entry__change {
    font-size: 0.8125rem;
    color: var(--gray-darkest, #212121);
    margin-top: 2px;
    line-height: 1.4;
}

/* Dialog */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.dialog-overlay--open {
    display: flex;
}

.dialog {
    background: var(--white, #fff);
    border-radius: 12px;
    width: 560px;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.dialog--small {
    width: 440px;
}

.dialog__header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-lighter, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog__title {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    color: var(--gray-darkest, #212121);
}

.dialog__close {
    padding: 4px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--gray-dark, #757575);
    border-radius: 50%;
}

.dialog__close:hover {
    background: var(--gray-lighter, #f0f0f0);
}

.dialog__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.dialog__child-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--cl-hard, #26418f);
    margin: 0 0 16px;
    padding: 8px 12px;
    background: var(--cl-super-soft, #e8eaf6);
    border-radius: 6px;
}

.dialog__footer {
    padding: 12px 20px;
    border-top: 1px solid var(--gray-lighter, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.dialog__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.dialog__btn--cancel {
    background: none;
    color: var(--gray-dark, #757575);
}

.dialog__btn--cancel:hover {
    background: var(--gray-lighter, #f0f0f0);
}

.dialog__btn--save {
    background: var(--cl-hard, #26418f);
    color: var(--white, #fff);
}

.dialog__btn--save:hover {
    background: var(--cl-medium, #3f51b5);
}

.dialog__btn--danger {
    background: #d32f2f;
    color: var(--white, #fff);
}

.dialog__btn--danger:hover {
    background: #c62828;
}

/* Form elements */
.form-group {
    margin-bottom: 16px;
}

.form-group--half {
    flex: 1;
    min-width: 0;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-darkest, #212121);
    margin-bottom: 4px;
}

.form-required {
    color: #d32f2f;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-light, #e0e0e0);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--gray-darkest, #212121);
    background: var(--white, #fff);
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--cl-medium, #3f51b5);
    box-shadow: 0 0 0 2px rgba(63, 81, 181, 0.15);
}

.form-select--error,
.form-input--error,
.form-textarea--error {
    border-color: #d32f2f;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--gray, #9e9e9e);
    margin-top: 4px;
    line-height: 1.4;
}

.form-error {
    display: none;
    font-size: 0.75rem;
    color: #d32f2f;
    margin-top: 4px;
}

.form-error--visible {
    display: block;
}

.form-textarea {
    resize: vertical;
    min-height: 60px;
}

/* Severity options */
.severity-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.severity-option {
    cursor: pointer;
}

.severity-option input {
    display: none;
}

.severity-option__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.severity-option__chip .material-icons {
    font-size: 16px;
}

.severity-option__chip--allvarlig {
    background: #ffebee;
    color: #c62828;
}

.severity-option__chip--mattlig {
    background: #fff3e0;
    color: #e65100;
}

.severity-option__chip--mild {
    background: #e3f2fd;
    color: #1565c0;
}

.severity-option input:checked + .severity-option__chip {
    border-color: currentColor;
    box-shadow: 0 0 0 1px currentColor;
}

/* Duplicate warning */
.duplicate-warning {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #ffcc02;
    border-radius: 6px;
    margin-bottom: 16px;
}

.duplicate-warning .material-icons {
    color: #f57f17;
    flex-shrink: 0;
    margin-top: 2px;
}

.duplicate-warning strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.duplicate-warning p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--gray-dark, #757575);
    line-height: 1.4;
}

/* Form preview */
.form-preview {
    padding: 12px 16px;
    background: var(--gray-lightest, #fafafa);
    border-radius: 6px;
    border: 1px dashed var(--gray-light, #e0e0e0);
}

.form-preview__content {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* Toast */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #323232;
    color: var(--white, #fff);
    border-radius: 6px;
    font-size: 0.875rem;
    z-index: 3000;
    transition: bottom 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.toast--visible {
    bottom: 80px;
}

.toast__icon {
    font-size: 20px;
}

.toast--success .toast__icon {
    color: #66bb6a;
}

.toast--info .toast__icon {
    color: #42a5f5;
}

.toast--warning .toast__icon {
    color: #ffa726;
}

/* Panel overlay */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 900;
    display: none;
}

.panel-overlay--visible {
    display: block;
}

/* History section in profile panel */
.allergy-history-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border: 1px solid var(--gray-light, #e0e0e0);
    border-radius: 4px;
    background: var(--white, #fff);
    color: var(--gray-dark, #757575);
    cursor: pointer;
    font-size: 0.8125rem;
    margin-top: 8px;
    transition: all 0.2s;
}

.allergy-history-toggle:hover {
    background: var(--gray-lightest, #fafafa);
    border-color: var(--gray, #9e9e9e);
}

.allergy-history-toggle .material-icons {
    font-size: 16px;
}

/* Tags */
.allergy-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.allergy-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: var(--gray-lighter, #f0f0f0);
    border-radius: 10px;
    font-size: 0.6875rem;
    color: var(--gray-dark, #757575);
}

.allergy-tag .material-icons {
    font-size: 12px;
}

/* FAB */
.fab-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 800;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 28px;
    border: none;
    background: var(--cl-hard, #26418f);
    color: var(--white, #fff);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fab:hover {
    background: var(--cl-medium, #3f51b5);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

.fab .material-icons {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 959px) {
    .side-panel,
    .detail-panel {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .child-row__allergy-indicators {
        max-width: 40%;
    }
}

@media (max-width: 599px) {
    .page-header {
        flex-direction: column;
    }
    
    .context-indicator {
        font-size: 0.8125rem;
    }
    
    .child-row {
        padding: 10px 12px;
        gap: 8px;
    }
    
    .child-row__allergy-indicators {
        max-width: 45%;
    }
    
    .allergy-chip {
        font-size: 0.6875rem;
        padding: 2px 7px;
    }
    
    .demo-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .fab-container {
        bottom: 16px;
        right: 16px;
    }
}
