* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #f4f1e9;
  color: #17210f;
}

body {
  overflow: hidden;
}

.app-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100dvh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  color: #fff;
  background: #2f6f3e;
  cursor: pointer;
  white-space: nowrap;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.secondary-button {
  color: #17210f;
  background: #e7e1d4;
}

.danger-button {
  color: #fff;
  background: #a7352a;
  margin-right: auto;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9c0ad;
  border-radius: 0.85rem;
  padding: 0.8rem;
  background: #fffdf8;
  color: #17210f;
}

textarea {
  resize: vertical;
}

.storage-warning {
  position: fixed;
  left: 8px;
  right: 8px;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  z-index: 3000;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff3cd;
  border: 2px solid #b8860b;
  color: #3b2f00;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.storage-warning[hidden] {
  display: none;
}

.storage-warning p {
  margin: 0 0 10px;
}

.storage-warning-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
