:root {
  color-scheme: light;
  --ink: #19231f;
  --muted: #65716b;
  --canvas: #f3f6f4;
  --surface: #ffffff;
  --line: #d8e0dc;
  --line-strong: #b9c6c0;
  --primary: #157a55;
  --primary-dark: #0d5d40;
  --primary-soft: #e3f2eb;
  --coral: #c6533f;
  --coral-soft: #faebe7;
  --gold: #b88316;
  --gold-soft: #fbf1d9;
  --shadow: 0 12px 36px rgba(27, 47, 38, 0.09);
  --radius: 8px;
  --font-ui: Inter, "Segoe UI", Arial, sans-serif;
  --font-myanmar: "Noto Sans Myanmar", "Myanmar Text", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

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

a {
  color: inherit;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 28px;
  height: 28px;
}

.btn {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  border-color: var(--line-strong);
}

.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="tab"]:focus-visible {
  outline: 3px solid rgba(21, 122, 85, 0.22);
  outline-offset: 2px;
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-danger {
  color: var(--coral);
  border-color: #e8c4bb;
  background: var(--surface);
}

.btn-icon {
  width: 44px;
  padding: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field label,
.field-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.input,
.textarea,
.select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
}

.textarea {
  min-height: 118px;
  resize: vertical;
  line-height: 1.6;
}

.input:hover,
.textarea:hover,
.select:hover {
  border-color: #899c92;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--coral);
  background: #fffaf9;
}

.field-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.field-error {
  color: #a13827;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading-line {
  height: 3px;
  overflow: hidden;
  background: var(--line);
}

.loading-line::after {
  content: "";
  display: block;
  width: 35%;
  height: 100%;
  background: var(--primary);
  animation: loading 1.1s ease-in-out infinite;
}

@keyframes loading {
  from { transform: translateX(-110%); }
  to { transform: translateX(310%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

