/* src/frontend/components/LoginScreen.css */
.login {
  display: flex;
  justify-content: center;
  align-items:  center;
  height: 100%;
}

.login__card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  width: 360px;
  padding: 40px;
}

.login__title {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
}

.login__subtitle {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 13px;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login__sent {
  color: var(--accent-green);
  margin-top: 12px;
  font-size: 14px;
}

.login__error {
  color: var(--accent-red);
  margin-top: 8px;
  font-size: 13px;
}

/* src/frontend/components/TabBar.css */
.navbar {
  display: flex;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  height: var(--tab-height);
  flex-shrink: 0;
  align-items:  center;
  gap: 4px;
  padding: 0 16px;
}

.navbar__logo {
  color: var(--accent);
  margin-right: 12px;
  font-size: 15px;
  font-weight: 600;
}

.navbar__tabs {
  display: flex;
  align-items:  center;
  gap: 2px;
}

.navbar__btn {
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  background: none;
  border: none;
  padding: 6px 12px;
  transition: color .15s, background .15s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.navbar__btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.navbar__btn--active {
  color: var(--accent);
  background: var(--bg-active);
}

.navbar__spacer {
  flex: 1;
}

.navbar__signout {
  color: var(--text-disabled);
  cursor: pointer;
  border-radius: var(--radius);
  background: none;
  border: none;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
}

.navbar__signout:hover {
  color: var(--accent-red);
  background: var(--bg-hover);
}

/* src/frontend/components/kitchen/ItemRow.css */
.item-row {
  position: relative;
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 10px;
  padding: 8px 16px;
  transition: background .1s;
}

.item-row:hover {
  background: var(--bg-hover);
}

.item-row__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.item-row__qty {
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: 12px;
}

.item-row__category {
  color: var(--accent);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  background: #4a7aaa1a;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
}

.item-row__category:hover {
  background: #4a7aaa2e;
}

.item-row__actions {
  display: flex;
  gap: 4px;
}

.item-row--eating {
  animation: eat-float .5s ease-in forwards;
  pointer-events: none;
}

.item-row--eating-collapse {
  pointer-events: none;
  overflow: hidden;
  animation: eat-collapse .3s ease-in-out forwards;
}

@keyframes eat-float {
  0% {
    opacity: 1;
    transform: translateY(0)scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-30px)scale(.95);
  }
}

@keyframes eat-collapse {
  0% {
    max-height: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom-width: 1px;
  }

  100% {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-bottom-width: 0;
  }
}

.category-picker {
  position: absolute;
  z-index: 20;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 280px;
  padding: 8px;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 16px #0000001f;
}

.category-picker__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.category-picker__item {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  text-align: center;
  border-radius: 6px;
  padding: 6px 4px;
  transition: background .1s, border-color .1s;
  font-family: inherit;
  font-size: 11px;
}

.category-picker__item:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.category-picker__item--active {
  border-color: var(--accent);
  color: var(--accent);
  background: #4a7aaa1f;
  font-weight: 600;
}

/* src/frontend/components/kitchen/ShoppingList.css */
.shopping-item {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 10px;
  padding: 8px 16px;
}

.shopping-item:hover {
  background: var(--bg-hover);
}

.shopping-item--purchased {
  opacity: .45;
}

.shopping-item--purchased .shopping-item__name {
  text-decoration: line-through;
}

.shopping-item__name {
  flex: 1;
  font-size: 13px;
}

.shopping-item__qty {
  color: var(--text-secondary);
  font-size: 12px;
}

/* src/frontend/components/kitchen/QuickAdd.css */
.quick-add {
  display: flex;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.quick-add__title {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
}

.quick-add__list {
  overflow-y: auto;
  flex: 1;
}

.quick-add__group-btn {
  display: flex;
  border: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  justify-content: space-between;
  align-items:  center;
  width: 100%;
  padding: 8px 14px;
  transition: background .15s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.quick-add__group-btn:hover {
  background: var(--bg-hover);
}

.quick-add__group-btn--open {
  color: var(--accent);
  background: var(--bg-hover);
}

.quick-add__chevron {
  color: var(--text-secondary);
  font-size: 10px;
}

.quick-add__items {
  display: flex;
  flex-direction: column;
}

.quick-add__item {
  display: flex;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  background: none;
  justify-content: space-between;
  align-items:  center;
  width: 100%;
  padding: 6px 14px 6px 24px;
  transition: background .1s;
  font-family: inherit;
  font-size: 12px;
}

.quick-add__item:hover {
  background: var(--bg-hover);
}

.quick-add__item-action {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
}

.quick-add__item--added {
  cursor: default;
  color: var(--accent-green);
}

.quick-add__item--added .quick-add__item-action {
  color: var(--accent-green);
}

.quick-add__item-wrap {
  position: relative;
}

.quick-add__float {
  position: absolute;
  color: var(--accent);
  pointer-events: none;
  white-space: nowrap;
  animation: quick-add-float .5s ease-out forwards;
  font-size: 12px;
  font-weight: 600;
  top: 0;
  left: 24px;
}

@keyframes quick-add-float {
  0% {
    opacity: .7;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-24px);
  }
}

/* src/frontend/components/kitchen/KitchenPanel.css */
.kitchen-layout {
  display: flex;
  overflow: hidden;
  flex: 1;
  justify-content: center;
}

.kitchen-stage {
  position: relative;
  display: flex;
  overflow: visible;
  flex: 1;
  max-width: 900px;
}

.quick-add-drawer {
  position: absolute;
  z-index: 0;
  width: 200px;
  transition: transform .25s;
  top: 0;
  bottom: 0;
  right: 100%;
  transform: translateX(200px);
}

.kitchen-stage--open .quick-add-drawer {
  transform: translateX(0);
}

.kitchen-main {
  position: relative;
  z-index: 1;
  display: flex;
  overflow: hidden;
  background: var(--bg-base);
  flex-direction: column;
  flex: 1;
  min-width: 0;
  transition: box-shadow .25s;
}

.kitchen-stage--open .kitchen-main {
  box-shadow: -4px 0 12px #00000014;
}

.kitchen-main__tab {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-surface);
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  border-left: none;
  padding: 8px 8px 8px 6px;
  transition: background .15s;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  top: 24px;
  left: 0;
}

.kitchen-main__tab:hover {
  background: var(--bg-hover);
}

.kitchen-grid {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  justify-content: center;
  align-items:  center;
  gap: 8px;
  padding: 20px 16px 14px 32px;
}

.zone-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  user-select: none;
  aspect-ratio: 1;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  width: 95px;
  padding: 10px;
  transition: border-color .15s, background .15s;
}

.zone-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.zone-card--active {
  border-color: var(--accent);
  background: var(--bg-active);
}

.zone-card__art {
  color: var(--accent);
  white-space: pre;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items:  center;
  height: 32px;
  font-family: SF Mono, Fira Code, Cascadia Code, monospace;
  font-size: 10px;
  line-height: 1.3;
}

.zone-card__label {
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
}

.zone-card__count {
  color: var(--text-secondary);
  font-size: 11px;
}

.zone-card__count strong {
  color: var(--accent);
  font-weight: 600;
}

.zone-detail {
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--border);
  flex-direction: column;
  flex: 1;
  align-self:  center;
  width: 100%;
  max-width: 770px;
  min-height: 0;
}

.zone-detail__header {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  padding: 12px 16px;
}

.zone-detail__title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.zone-detail__count {
  color: var(--text-secondary);
  font-size: 12px;
}

.zone-detail__body {
  overflow-y: auto;
  flex: 1;
}

.zone-detail__empty {
  display: flex;
  color: var(--text-disabled);
  justify-content: center;
  align-items:  center;
  padding: 32px;
  font-size: 13px;
}

/* src/frontend/components/chat/ScheduleForm.css */
.schedule-section {
  background: var(--bg-elevated);
  padding: 16px 24px;
}

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

.schedule-section__title {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.schedule-form {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
}

.schedule-form__row {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.schedule-form__row label {
  color: var(--text-secondary);
  min-width: 70px;
  font-size: 12px;
}

.schedule-form__row input, .schedule-form__row select {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 13px;
}

.schedule-form__row input[type="text"] {
  flex: 1;
}

.schedule-form__row input[type="time"] {
  width: 110px;
}

.schedule-form__days {
  display: flex;
  gap: 4px;
}

.schedule-form__day {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  background: none;
  border-radius: 50%;
  justify-content: center;
  align-items:  center;
  width: 28px;
  height: 28px;
  transition: all .1s;
  font-family: inherit;
  font-size: 11px;
}

.schedule-form__day--active {
  background: var(--text-primary);
  color: var(--bg-surface);
  border-color: var(--text-primary);
}

.schedule-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-item {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items:  center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

.schedule-item__info {
  flex: 1;
  min-width: 0;
}

.schedule-item__label {
  color: var(--text-primary);
  font-weight: 600;
}

.schedule-item__detail {
  color: var(--text-secondary);
  margin-top: 2px;
  font-size: 11px;
}

.schedule-item__toggle {
  cursor: pointer;
  position: relative;
  border: none;
  border-radius: 10px;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  transition: background .2s;
}

.schedule-item__toggle--on {
  background: #22c55e;
}

.schedule-item__toggle--off {
  background: var(--border);
}

.schedule-item__toggle:after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  transition: left .2s;
  top: 2px;
}

.schedule-item__toggle--on:after {
  left: 18px;
}

.schedule-item__toggle--off:after {
  left: 2px;
}

/* src/frontend/components/chat/ChatPanel.css */
.messages-layout {
  display: flex;
  overflow: hidden;
  flex: 1;
  gap: 16px;
  margin: 24px 32px;
}

.messages-left {
  display: flex;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  flex: 1;
}

.messages-right {
  display: flex;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  flex: 1;
}

.meal-planner {
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.mini-cal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 12px;
}

.mini-cal__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 10px;
}

.mini-cal__month {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.mini-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.mini-cal__day-header {
  color: var(--text-disabled);
  text-align: center;
  padding: 4px 0;
  font-size: 10px;
  font-weight: 600;
}

.mini-cal__cell {
  aspect-ratio: 1;
  display: flex;
  color: var(--text-secondary);
  border-radius: var(--radius);
  background: none;
  border: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 3px 4px;
  font-size: 12px;
}

.mini-cal__cell--day {
  cursor: pointer;
  transition: background .1s, color .1s;
}

.mini-cal__cell--day:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.mini-cal__cell--today {
  color: var(--accent);
  font-weight: 700;
}

.mini-cal__cell--selected {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.mini-cal__cell--selected:hover {
  background: var(--accent-hover);
  color: #fff;
}

.mini-cal__date {
  text-align: left;
  font-size: 10px;
  line-height: 1;
}

.mini-cal__tags {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-self: stretch;
  gap: 1px;
  min-height: 0;
}

.mini-cal__tag {
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #22c55e;
  border-radius: 1px;
  padding: 1px 2px;
  font-size: 6px;
  font-weight: 600;
  line-height: 1;
}

.mini-cal__cell--selected .mini-cal__tag {
  background: #ffffff4d;
}

.meal-planner__day-title {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.meal-planner__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meal-planner__action {
  text-align: left;
  width: 100%;
}

.email-list__header {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  padding: 8px 12px 8px 16px;
  font-size: 15px;
  font-weight: 600;
}

.email-list__body {
  overflow-y: auto;
  flex: 1;
}

.email-list__empty {
  color: var(--text-disabled);
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
}

.email-row {
  display: flex;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  background: none;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 16px;
  transition: background .1s;
  font-family: inherit;
}

.email-row:hover {
  background: var(--bg-hover);
}

.email-row--active {
  background: var(--bg-active);
}

.email-row__from {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.email-row__subject {
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.email-row__date {
  color: var(--text-disabled);
  font-size: 11px;
}

.email-expanded {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 16px 20px;
}

.email-expanded__from {
  color: var(--text-primary);
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}

.email-expanded__date {
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-size: 11px;
}

.email-expanded__body {
  color: var(--text-primary);
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.6;
}

.email-expanded__reply {
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: pre-wrap;
  margin-top: 12px;
  padding-top: 12px;
  font-size: 12px;
}

.email-expanded__reply-label {
  color: var(--text-disabled);
  margin-bottom: 4px;
  font-size: 11px;
}

/* src/frontend/components/recipes/IngredientPicker.css */
.ingredient-picker {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  max-height: 320px;
  padding: 16px 24px;
}

.ingredient-picker__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 8px;
}

.ingredient-picker__toggle {
  color: var(--accent, #4a9eff);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12px;
}

.ingredient-picker__toggle:hover {
  text-decoration: underline;
}

.ingredient-picker__count {
  color: var(--text-disabled);
  font-size: 12px;
}

.ingredient-picker__list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.ingredient-picker__item {
  padding: 3px 0;
}

.ingredient-picker__item label {
  display: flex;
  color: var(--text-primary);
  cursor: pointer;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
}

.ingredient-picker__item input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
}

.ingredient-picker__add {
  align-self:  flex-start;
  margin-top: 10px;
}

/* src/frontend/components/recipes/RecipesPanel.css */
.recipes-panel {
  display: flex;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: 1;
  margin: 32px 100px;
}

.recipe-list {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex-shrink: 0;
  width: 280px;
}

.recipe-list__header {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  padding: 8px 12px 8px 16px;
  font-size: 15px;
  font-weight: 600;
}

.recipe-list__tabs {
  display: flex;
  gap: 0;
}

.recipe-tab {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  padding: 4px 12px;
  transition: background .1s, color .1s;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.recipe-tab:first-child {
  border-radius: 4px 0 0 4px;
}

.recipe-tab:last-child {
  border-left: none;
  border-radius: 0 4px 4px 0;
}

.recipe-tab--active {
  background: var(--bg-active);
  color: var(--text-primary);
}

.recipe-tab:hover:not(.recipe-tab--active) {
  background: var(--bg-hover);
}

.recipe-search {
  position: relative;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  padding: 8px 12px;
}

.recipe-search__input {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  border-radius: 4px;
  width: 100%;
  padding: 6px 28px 6px 10px;
  transition: border-color .15s;
  font-family: inherit;
  font-size: 13px;
}

.recipe-search__input:focus {
  border-color: var(--accent, #4a9eff);
}

.recipe-search__input::placeholder {
  color: var(--text-disabled);
}

.recipe-search__clear {
  position: absolute;
  color: var(--text-disabled);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0 4px;
  font-size: 16px;
  line-height: 1;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.recipe-search__clear:hover {
  color: var(--text-primary);
}

.recipe-list__body {
  overflow-y: auto;
  flex: 1;
}

.recipe-list__empty {
  color: var(--text-disabled);
  text-align: center;
  padding: 24px 16px;
  font-size: 13px;
}

.recipe-row {
  display: flex;
  border: none;
  border-bottom: 1px solid var(--border);
  text-align: left;
  cursor: pointer;
  background: none;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 16px;
  transition: background .1s;
  font-family: inherit;
}

.recipe-row:hover {
  background: var(--bg-hover);
}

.recipe-row--active {
  background: var(--bg-active);
}

.recipe-row__title {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
}

.recipe-row__date, .recipe-row__meta {
  color: var(--text-disabled);
  font-size: 11px;
}

.recipe-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.recipe-tag {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 10px;
}

.recipe-reader {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.recipe-reader__empty {
  display: flex;
  color: var(--text-disabled);
  flex: 1;
  justify-content: center;
  align-items:  center;
  padding: 24px;
  font-size: 13px;
}

.recipe-reader__header {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  padding: 16px 24px;
}

.recipe-reader__title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.recipe-reader__meta {
  color: var(--text-secondary);
  margin-top: 2px;
  font-size: 12px;
}

.recipe-reader__actions {
  display: flex;
  gap: 8px;
}

.recipe-reader__body {
  overflow-y: auto;
  color: var(--text-primary);
  flex: 1;
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.recipe-reader__body h1 {
  margin: 0 0 12px;
  font-size: 20px;
}

.recipe-reader__body h2 {
  color: var(--text-primary);
  margin: 20px 0 8px;
  font-size: 17px;
}

.recipe-reader__body h3 {
  color: var(--text-secondary);
  margin: 16px 0 6px;
  font-size: 15px;
}

.recipe-reader__body p {
  margin: 0 0 12px;
}

.recipe-reader__body ul, .recipe-reader__body ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

.recipe-reader__body li {
  margin-bottom: 4px;
}

.recipe-reader__body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.recipe-reader__body code {
  background: var(--bg-elevated);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 13px;
}

.recipe-reader__body pre {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 12px;
  padding: 12px;
}

.recipe-reader__body blockquote {
  border-left: 3px solid var(--border);
  color: var(--text-secondary);
  margin: 0 0 12px;
  padding: 4px 16px;
}

.recipe-reader__body strong {
  font-weight: 600;
}

.recipe-reader__body table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 12px;
}

.recipe-reader__body th, .recipe-reader__body td {
  border: 1px solid var(--border);
  text-align: left;
  padding: 6px 12px;
  font-size: 13px;
}

.recipe-reader__body th {
  background: var(--bg-elevated);
  font-weight: 600;
}

.recipe-upload {
  display: none;
}

.ingredient-sidebar-group {
  border-bottom: 1px solid var(--border);
}

.ingredient-sidebar-group__header {
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
  display: flex;
  position: sticky;
  background: var(--bg-elevated);
  z-index: 1;
  align-items:  center;
  gap: 6px;
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  top: 0;
}

.ingredient-sidebar-group__count {
  color: var(--text-disabled);
  font-size: 10px;
  font-weight: 400;
}

.ingredient-sidebar-row {
  display: flex;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  justify-content: space-between;
  align-items:  center;
  gap: 8px;
  width: 100%;
  padding: 4px 16px;
  transition: background .1s;
  font-family: inherit;
  font-size: 13px;
}

.ingredient-sidebar-row:hover {
  background: var(--bg-hover);
}

.ingredient-sidebar-row--active {
  background: var(--bg-active);
}

.ingredient-sidebar-row__name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ingredient-sidebar-row__unit {
  color: var(--text-disabled);
  text-align: right;
  flex-shrink: 0;
  font-size: 11px;
}

.ingredients-summary__title {
  color: var(--text-primary);
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
}

.ingredients-summary__count {
  color: var(--text-disabled);
  font-size: 13px;
}

.ingredient-detail {
  display: flex;
  overflow-y: auto;
  flex-direction: column;
  flex: 1;
  align-items:  center;
  padding: 40px 32px;
}

.ingredient-detail__image-container {
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 280px;
  height: 280px;
  margin-bottom: 24px;
}

.ingredient-detail__image {
  object-fit: contain;
  border-radius: 12px;
  max-width: 100%;
  max-height: 100%;
}

.ingredient-detail__name {
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.ingredient-detail__meta {
  display: flex;
  align-items:  center;
  gap: 16px;
  margin-bottom: 20px;
}

.ingredient-detail__category {
  color: var(--text-secondary);
  background: var(--bg-hover);
  border-radius: 10px;
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 600;
}

.ingredient-detail__unit {
  color: var(--text-disabled);
  font-size: 13px;
}

.ingredient-detail__aliases {
  text-align: center;
  max-width: 400px;
}

.ingredient-detail__aliases-label {
  color: var(--text-disabled);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

.ingredient-detail__alias-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

/* src/frontend/components/receipts/ReceiptsPanel.css */
.receipts-panel {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
}

.receipts-panel__header {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  align-items:  center;
  gap: 12px;
  padding: 12px 16px;
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  margin: 12px 16px;
  padding: 24px;
  transition: border-color .15s, background .15s;
}

.upload-area:hover {
  border-color: var(--accent);
  background: #4a7aaa0f;
}

.upload-area--active {
  border-color: var(--accent);
  background: #4a7aaa1a;
}

.upload-area--busy {
  cursor: default;
  opacity: .7;
}

.food-loader {
  color: var(--text-secondary);
  white-space: pre;
  display: inline-block;
  font-family: monospace;
  line-height: 1.3;
}

.food-loader--md {
  min-width: 7ch;
  font-size: 13px;
}

.food-loader--sm {
  letter-spacing: .5px;
  min-width: 5ch;
  font-size: 11px;
}

.receipt-grid {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  flex: 1;
  align-content:  start;
  gap: 10px;
  padding: 8px 16px;
}

.receipt-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  overflow: hidden;
  flex-direction: column;
  gap: 0;
  padding: 0;
}

.receipt-card__thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-elevated);
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 100%;
}

.receipt-card__thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.receipt-card__thumb--empty {
  color: var(--text-disabled);
}

.receipt-card__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
}

.receipt-card__filename {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}

.receipt-card__date {
  color: var(--text-secondary);
  font-size: 11px;
}

.receipt-card__badge {
  display: inline-block;
  border-radius: 10px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px 8px;
  font-size: 11px;
}

.badge--pending {
  color: var(--accent-amber);
  background: #9a7a3a1a;
}

.badge--completed {
  color: var(--accent-green);
  background: #3d7a501a;
}

.badge--failed {
  color: var(--accent-red);
  background: #b050501a;
}

.receipt-card--skeleton {
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.receipt-card--pending {
  opacity: .7;
}

.skeleton-line {
  background: var(--border);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-line--title {
  width: 70%;
  height: 13px;
}

.skeleton-line--date {
  width: 40%;
  height: 11px;
}

.skeleton-line--badge {
  border-radius: 10px;
  width: 60px;
  height: 18px;
}

@keyframes skeleton-pulse {
  0%, 100% {
    opacity: .4;
  }

  50% {
    opacity: .8;
  }
}

/* src/frontend/components/compost/CompostPanel.css */
.compost-panel {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 770px;
  margin: 0 auto;
}

.compost-panel__header {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  justify-content: space-between;
  align-items:  center;
  padding: 16px 16px 12px;
}

.compost-panel__title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
}

.compost-panel__count {
  color: var(--text-secondary);
  font-size: 12px;
}

.compost-panel__body {
  overflow-y: auto;
  flex: 1;
}

.compost-panel__empty {
  display: flex;
  color: var(--text-disabled);
  text-align: center;
  justify-content: center;
  align-items:  center;
  padding: 48px 24px;
  font-size: 13px;
}

.compost-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  align-items:  center;
  gap: 10px;
  padding: 8px 16px;
}

.compost-row__name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
}

.compost-row__qty {
  color: var(--text-disabled);
  white-space: nowrap;
  font-size: 12px;
}

.compost-row__category {
  color: var(--accent);
  white-space: nowrap;
  background: #4a7aaa1a;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
}

.compost-row__date {
  color: var(--text-disabled);
  white-space: nowrap;
  font-size: 11px;
}

/* src/frontend/components/settings/SettingsPanel.css */
.settings-panel {
  overflow-y: auto;
  flex: 1;
  max-width: 640px;
  padding: 24px;
}

.settings-section {
  margin-bottom: 28px;
}

.settings-section__title {
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.settings-row {
  display: flex;
  align-items:  center;
  gap: 12px;
  margin-bottom: 10px;
}

.settings-row label {
  color: var(--text-secondary);
  min-width: 120px;
  font-size: 13px;
}

.settings-row input, .settings-row select {
  flex: 1;
}

.contact-row {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
}

.contact-row__name {
  flex: 1;
}

.contact-row__email {
  color: var(--text-secondary);
}

/* src/frontend/components/SecurityTab.css */
.sec-section {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding-top: 20px;
}

.sec-section:first-of-type {
  border-top: none;
  margin-top: 16px;
  padding-top: 0;
}

.sec-details {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  gap: 4px;
  margin: 12px 0;
  padding: 12px 14px;
}

.sec-detail-row {
  display: flex;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
}

.sec-detail-label {
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 110px;
  font-weight: 600;
}

.sec-detail-row span:last-child {
  color: var(--text-secondary);
}

.sec-not-stored {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.sec-not-item {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  align-items:  center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
}

.sec-not-item:before {
  content: "✗";
  color: var(--accent-red);
  flex-shrink: 0;
  font-weight: 600;
}

.sec-summary-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0;
  font-size: 13px;
}

.sec-summary-table th, .sec-summary-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 12px;
}

.sec-summary-table th {
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 600;
}

/* src/frontend/components/FaqTab.css */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item__question {
  display: flex;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  border: none;
  align-items:  flex-start;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  transition: background .1s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-item__question:hover {
  background: var(--bg-hover);
}

.faq-item__arrow {
  color: var(--text-disabled);
  flex-shrink: 0;
  width: 12px;
  margin-top: 2px;
  font-size: 12px;
}

.faq-item__answer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 0 14px 14px 36px;
}

.faq-item__answer p {
  color: var(--text-secondary);
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.faq-item__read-btn {
  margin-top: 10px;
}

/* src/frontend/components/McpTab.css */
.mcp-step {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 24px;
}

.mcp-step:first-of-type {
  border-top: none;
  margin-top: 16px;
  padding-top: 0;
}

.mcp-step h4 {
  color: var(--text-secondary);
  margin-top: 18px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
}

.mcp-api-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}

.mcp-api-item {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items:  center;
  gap: 12px;
  padding: 8px 12px;
  font-size: 13px;
}

.mcp-api-name {
  color: var(--accent);
  flex-shrink: 0;
  min-width: 140px;
  font-weight: 600;
}

.mcp-api-desc {
  color: var(--text-secondary);
}

.mcp-flow {
  display: flex;
  flex-direction: column;
  align-items:  flex-start;
  gap: 2px;
  margin: 12px 0;
}

.mcp-flow__step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
}

.mcp-flow__arrow {
  color: var(--text-disabled);
  padding-left: 20px;
  font-size: 14px;
}

/* src/frontend/components/SignUpModal.css */
.signup-overlay {
  position: fixed;
  display: flex;
  z-index: 100;
  background: #0000004d;
  justify-content: center;
  align-items:  center;
  inset: 0;
}

.signup-modal {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  width: 380px;
  padding: 40px;
}

.signup-modal__close {
  position: absolute;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: 22px;
  line-height: 1;
  top: 12px;
  right: 16px;
}

.signup-modal__close:hover {
  color: var(--text-primary);
}

.signup-modal__title {
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
}

.signup-modal__subtitle {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 13px;
}

.signup-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-modal__sent {
  color: var(--accent-green);
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.signup-modal__error {
  color: var(--accent-red);
  margin-top: 8px;
  font-size: 13px;
}

/* src/frontend/components/DocsPage.css */
.docs-layout {
  display: flex;
  overflow: hidden;
  height: 100%;
}

.docs-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 200px;
}

.docs-sidebar__logo {
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  padding: 20px 16px 16px;
  font-size: 15px;
  font-weight: 600;
}

.docs-sidebar__tabs {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.docs-sidebar__btn {
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid #0000;
  padding: 10px 16px;
  transition: color .15s, background .15s, border-color .15s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
}

.docs-sidebar__btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.docs-sidebar__btn--active {
  color: var(--accent);
  background: var(--bg-active);
  border-left-color: var(--accent);
}

.docs-sidebar__spacer {
  flex: 1;
}

.docs-sidebar__login {
  color: var(--text-disabled);
  cursor: pointer;
  text-align: left;
  border: none;
  border-top: 1px solid var(--border);
  background: none;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 12px;
}

.docs-sidebar__login:hover {
  color: var(--accent);
}

.docs-panel {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-width: 0;
}

.docs-content {
  max-width: 760px;
  padding: 32px 32px 48px;
}

.docs-content__header {
  display: flex;
  justify-content: space-between;
  align-items:  center;
  margin-bottom: 12px;
}

.docs-content__header h2 {
  margin-bottom: 0;
}

.docs-tts-controls {
  display: flex;
  align-items:  center;
  gap: 8px;
}

.docs-voice-select {
  max-width: 200px;
  padding: 4px 8px;
  font-size: 12px;
}

.docs-content h2 {
  color: var(--text-primary);
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 600;
}

.docs-content h3 {
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 600;
}

.docs-content p {
  color: var(--text-secondary);
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
}

.docs-content code {
  background: var(--bg-surface);
  color: var(--accent);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 13px;
}

.docs-code {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  overflow-x: auto;
  white-space: pre;
  margin: 8px 0 12px;
  padding: 14px 16px;
  font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.docs-groups {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.docs-group {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.docs-group__header {
  display: flex;
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  border: none;
  align-items:  center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  transition: background .1s;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.docs-group__header:hover {
  background: var(--bg-hover);
}

.docs-group__arrow {
  color: var(--text-disabled);
  flex-shrink: 0;
  width: 12px;
  font-size: 12px;
}

.docs-group__label {
  flex: 1;
}

.docs-group__count {
  color: var(--text-disabled);
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 400;
}

.docs-group__body {
  border-top: 1px solid var(--border);
}

.docs-endpoint {
  display: flex;
  border-bottom: 1px solid var(--border);
  align-items:  center;
  gap: 12px;
  padding: 8px 14px 8px 34px;
  font-size: 13px;
}

.docs-endpoint:last-child {
  border-bottom: none;
}

.docs-endpoint:hover {
  background: var(--bg-hover);
}

.docs-endpoint__method {
  flex-shrink: 0;
  width: 52px;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
}

.docs-endpoint__path {
  color: var(--text-primary);
  flex-shrink: 0;
  min-width: 240px;
  font-family: monospace;
}

.docs-endpoint__desc {
  color: var(--text-secondary);
}

.docs-capabilities-table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 20px;
  font-size: 13px;
}

.docs-capabilities-table th, .docs-capabilities-table td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 10px 12px;
}

.docs-capabilities-table th {
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 600;
}

.docs-capabilities-table td code {
  font-size: 12px;
}

/* src/frontend/app.css */
:root {
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
  --bg-base: #f5f5f8;
  --bg-surface: #fff;
  --bg-elevated: #eeeef3;
  --bg-hover: #e4e4ec;
  --bg-active: #dddde8;
  --text-primary: #1a1a2e;
  --text-secondary: #6b6b82;
  --text-disabled: #a0a0b4;
  --border: #dddde6;
  --border-focus: #5a7faa;
  --accent: #4a7aaa;
  --accent-hover: #3d6d9a;
  --accent-green: #3d7a50;
  --accent-red: #b05050;
  --accent-amber: #9a7a3a;
  --tab-height: 48px;
  --zone-sidebar-width: 170px;
  --radius: 6px;
}

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body, #root {
  overflow: hidden;
  background: var(--bg-base);
  color: var(--text-primary);
  height: 100%;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

#root {
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.dashboard {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

.tab-panel {
  overflow: hidden;
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}

input[type="text"], input[type="email"], input[type="password"], input[type="date"], textarea, select {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  outline: none;
  padding: 8px 12px;
  transition: border-color .15s;
  font-family: inherit;
  font-size: 13px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--border-focus);
}

button {
  font-family: inherit;
}

.btn {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  padding: 8px 16px;
  transition: background .15s;
  font-size: 13px;
  font-weight: 500;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.btn--sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn--danger {
  background: var(--accent-red);
}

.btn--danger:hover {
  background: #a04545;
}

.btn--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: none;
}

.btn--ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.loading {
  display: flex;
  color: var(--text-disabled);
  justify-content: center;
  align-items:  center;
  height: 100%;
}
