/* BartekFinanse — static utility layer (no Tailwind CDN).
   Class names mirror Tailwind so HTML stays handoff-friendly.
   Depends on CSS vars from vault-common.css. */

/* —— Base resets for prototype CTAs —— */
a {
  color: inherit;
  text-decoration: none;
}
button {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  box-shadow: none;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
th, td {
  font-weight: inherit;
}

/* —— Layout —— */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-x-0 { left: 0; right: 0; }
.bottom-0 { bottom: 0; }
.-top-7 { top: -1.75rem; }
.-ml-2 { margin-left: -0.5rem; }

.flex-1 { flex: 1 1 0%; }
.flex-\[1\.3\] { flex: 1.3 1 0%; }
.flex-\[1\.4\] { flex: 1.4 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }

.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; }
.divide-white\/\[0\.07\] > :not([hidden]) ~ :not([hidden]) { border-color: rgba(255, 255, 255, 0.07); }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.min-w-0 { min-width: 0; }
.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.m-0 { margin: 0; }
.mb-0 { margin-bottom: 0; }

/* —— Sizing —— */
.w-1\.5 { width: 0.375rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-20 { width: 5rem; }
.w-\[72px\] { width: 72px; }
.w-\[148px\] { width: 148px; }
.w-\[180px\] { width: 180px; }
.w-\[min\(100vw\,430px\)\] { width: min(100vw, 430px); }
.w-\[min\(92vw\,340px\)\] { width: min(92vw, 340px); }
.h-1 { height: 0.25rem; }
.h-1\.5 { height: 0.375rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-11 { height: 2.75rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }
.h-\[52px\] { height: 52px; }
.h-\[72px\] { height: 72px; }
.min-w-\[48px\] { min-width: 48px; }
.min-w-\[64px\] { min-width: 64px; }
.max-w-\[16ch\] { max-width: 16ch; }
.max-w-\[32ch\] { max-width: 32ch; }
.max-w-\[34ch\] { max-width: 34ch; }
.max-w-\[430px\] { max-width: 430px; }

/* —— Spacing —— */
.p-0 { padding: 0; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-0\.5 { padding-left: 0.125rem; padding-right: 0.125rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-5 { padding-bottom: 1.25rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-\[88px\] { padding-bottom: 88px; }
.pb-\[max\(8px\,env\(safe-area-inset-bottom\,0px\)\)\] {
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.ml-1 { margin-left: 0.25rem; }
.mx-1\.5 { margin-left: 0.375rem; margin-right: 0.375rem; }

/* —— Type —— */
.font-sans { font-family: "IBM Plex Sans", system-ui, sans-serif; }
.font-serif { font-family: "IBM Plex Serif", Georgia, serif; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.uppercase { text-transform: uppercase; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.tracking-tight { letter-spacing: -0.015em; }
.tracking-wide { letter-spacing: 0.04em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.leading-\[1\.05\] { line-height: 1.05; }
.leading-\[1\.2\] { line-height: 1.2; }

.text-\[10px\] { font-size: 10px; line-height: 1.3; }
.text-\[11px\] { font-size: 11px; line-height: 1.35; }
.text-\[12px\] { font-size: 12px; line-height: 1.4; }
.text-\[13px\] { font-size: 13px; line-height: 1.45; }
.text-\[14px\] { font-size: 14px; line-height: 1.45; }
.text-\[15px\] { font-size: 15px; line-height: 1.45; }
.text-\[16px\] { font-size: 16px; line-height: 1.4; }
.text-\[17px\] { font-size: 17px; line-height: 1.35; }
.text-\[20px\] { font-size: 20px; line-height: 1.3; }
.text-\[22px\] { font-size: 22px; line-height: 1.25; }
.text-\[24px\] { font-size: 24px; line-height: 1.25; }
.text-\[26px\] { font-size: 26px; line-height: 1.2; }
.text-\[28px\] { font-size: 28px; line-height: 1.15; }
.text-\[32px\] { font-size: 32px; line-height: 1.05; }

/* —— Colors —— */
.bg-transparent { background-color: transparent; }
.bg-vault-bg { background-color: var(--bg); }
.bg-vault-raised { background-color: var(--raised); }
.bg-vault-surface { background-color: var(--surface); }
.bg-vault-hover { background-color: var(--hover); }
.bg-vault-input { background-color: var(--input); }
.bg-vault-accent { background-color: var(--accent); }
.bg-vault-sage { background-color: var(--sage); }
.bg-vault-coral { background-color: var(--coral); }
.bg-vault-amber { background-color: var(--amber); }
.bg-vault-amber\/10 { background-color: rgba(214, 168, 90, 0.1); }
.bg-vault-amber\/20 { background-color: rgba(214, 168, 90, 0.2); }
.bg-vault-sage\/10 { background-color: rgba(127, 191, 143, 0.1); }
.bg-vault-fg\/10 { background-color: rgba(242, 241, 237, 0.1); }
.bg-white\/20 { background-color: rgba(255, 255, 255, 0.2); }

.text-vault-fg { color: var(--fg); }
.text-vault-muted { color: var(--muted); }
.text-vault-bg { color: var(--bg); }
.text-vault-accent { color: var(--accent); }
.text-vault-sage { color: var(--sage); }
.text-vault-coral { color: var(--coral); }
.text-vault-amber { color: var(--amber); }

.border { border-width: 1px; border-style: solid; border-color: var(--border-strong); }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-b-0 { border-bottom-width: 0; }
.border-white\/\[0\.07\] { border-color: rgba(255, 255, 255, 0.07); }
.border-white\/\[0\.12\] { border-color: rgba(255, 255, 255, 0.12); }
.border-vault-amber\/25 { border-color: rgba(214, 168, 90, 0.25); }
.border-vault-amber\/30 { border-color: rgba(214, 168, 90, 0.3); }
.border-vault-sage\/35 { border-color: rgba(127, 191, 143, 0.35); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-\[24px\] { border-top-left-radius: 24px; border-top-right-radius: 24px; }
.rounded-b-none { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.shadow-\[0_12px_40px_-20px_rgba\(0\,0\,0\,0\.55\)\] {
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.55);
}
.shadow-\[0_10px_28px_-8px_rgba\(227\,169\,77\,0\.55\)\] {
  box-shadow: 0 10px 28px -8px rgba(227, 169, 77, 0.55);
}

.outline-none { outline: none; }
.resize-none { resize: none; }
.transition,
.transition-colors {
  transition-property: color, background-color, border-color, filter, opacity, transform;
  transition-duration: var(--dur);
  transition-timing-function: var(--ease-out);
}

/* —— Hover (paired fg/bg — never muted-on-hover alone) —— */
.hover\:bg-vault-hover:hover { background-color: var(--hover); }
.hover\:bg-vault-amber\/15:hover { background-color: rgba(214, 168, 90, 0.15); }
.hover\:text-vault-fg:hover { color: var(--fg); }
.hover\:text-vault-coral:hover { color: var(--coral); }
.hover\:border-vault-coral\/40:hover { border-color: rgba(217, 123, 119, 0.4); }
.hover\:brightness-105:hover { filter: brightness(1.05); }
.hover\:brightness-110:hover { filter: brightness(1.1); }

.placeholder\:text-vault-muted::placeholder { color: var(--muted); }

/* Dialog backdrop already in vault-common; keep class no-ops for markup parity */
.backdrop\:bg-black\/60::backdrop,
.backdrop\:bg-black\/70::backdrop {
  background: rgba(10, 11, 14, 0.72);
}
