[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; }
body { font-feature-settings: "tnum" 1; }

.card { border-radius: 1rem; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06); outline: 1px solid rgba(213,219,227,.6); }

.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }
td.num, th.num { display: table-cell; direction: rtl; unicode-bidi: normal; }

.field { display: block; width: 100%; border-radius: .75rem; border: 1px solid #d5dbe3; background: #fff; padding: .6rem .85rem; font-size: .9rem; transition: border-color .15s, box-shadow .15s; }
.field:focus { outline: none; border-color: #338dfc; box-shadow: 0 0 0 4px rgba(51,141,252,.15); }
.field-ltr { direction: ltr; text-align: right; }
.label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 600; color: #424e63; }
.hint { margin-top: .3rem; font-size: .75rem; color: #8596ad; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border-radius: .75rem; padding: .6rem 1.1rem; font-weight: 600; font-size: .9rem; transition: all .15s; white-space: nowrap; }
.btn-primary { background: #1d6ef1; color: #fff; box-shadow: 0 6px 16px -6px rgba(29,110,241,.6); }
.btn-primary:hover { background: #1558de; }
.btn-ghost { background: #fff; color: #394354; outline: 1px solid #d5dbe3; }
.btn-ghost:hover { background: #f6f8fa; }
.btn-dark { background: #0b2a4a; color: #fff; }
.btn-dark:hover { background: #1a408d; }
.btn-danger { background: #fff; color: #be123c; outline: 1px solid #fecdd3; }
.btn-danger:hover { background: #fff1f2; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .15rem .6rem; font-size: .72rem; font-weight: 600; }
.chip-draft { background: #eceff3; color: #516079; }
.chip-sent { background: #d9edff; color: #1558de; }
.chip-won { background: #d1fae5; color: #047857; }
.chip-lost { background: #ffe4e6; color: #be123c; }
.chip-low { background: #d1fae5; color: #047857; }
.chip-medium { background: #fef3c7; color: #b45309; }
.chip-high { background: #ffe4e6; color: #be123c; }

.table { width: 100%; font-size: .875rem; }
.table th { text-align: right; font-weight: 600; color: #667893; font-size: .75rem; padding: .7rem 1rem; background: #f6f8fa; border-bottom: 1px solid #eceff3; white-space: nowrap; }
.table td { padding: .8rem 1rem; border-bottom: 1px solid #eceff3; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }

.step-dot { width: 2rem; height: 2rem; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; }

.toggle { position: relative; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: #d5dbe3; transition: background .15s; flex-shrink: 0; }
.toggle::after { content: ""; position: absolute; top: .2rem; right: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s; }
.toggle.on { background: #1d6ef1; }
.toggle.on::after { transform: translateX(-1.1rem); }

input[type=range] { accent-color: #1d6ef1; }
.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spinner { width: 1rem; height: 1rem; border-radius: 999px; border: 2px solid currentColor; border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-bg { background: radial-gradient(1200px 600px at 100% 0%, rgba(34,211,238,.25), transparent 60%), radial-gradient(900px 500px at 0% 100%, rgba(51,141,252,.35), transparent 60%), #0b2a4a; }
.wave { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='24' viewBox='0 0 160 24'%3E%3Cpath d='M0 12 Q20 0 40 12 T80 12 T120 12 T160 12' fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E"); }

@media print {
  aside, header, .no-print { display: none !important; }
  main { padding: 0 !important; }
  .card { box-shadow: none; outline: 1px solid #ddd; }
}
