:root {
  --bg: #fff7ed;
  --card: #ffffff;
  --ink: #243242;
  --muted: #64748b;
  --orange: #ff5c00;
  --line: #06c755;
  --danger: #b91c1c;
  --border: #fed7aa;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
}

#app {
  min-height: 100vh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  object-fit: contain;
}

.brand span span:last-child {
  color: var(--orange);
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 96px;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(255, 92, 0, 0.06);
}

h1 {
  margin: 0;
  font-size: 1.4rem;
}

.lead {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 16px;
  padding: 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-line {
  background: var(--line);
  color: #fff;
}

.btn-outline {
  background: #fff7ed;
  color: var(--orange);
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid #e2e8f0;
}

.btn:disabled {
  opacity: 0.5;
}

.error {
  margin-top: 12px;
  color: var(--danger);
  font-weight: 700;
}

.hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(255, 92, 0, 0.05);
  cursor: pointer;
}

.item strong {
  display: block;
}

.meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.amount {
  font-weight: 900;
  color: var(--orange);
  white-space: nowrap;
}

.fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 92, 0, 0.35);
}

.preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.preview img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
}

.center {
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.top-actions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}
