/* Temel sıfırlama, tipografi ve küçük yardımcı sınıflar. */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: var(--fs)/1.45 var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
code { font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--hover); padding: 1px 5px; border-radius: 4px; }
kbd {
  font: 500 10.5px/1 var(--font); color: var(--muted); background: #fff;
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px;
  padding: 2px 5px; min-width: 18px; display: inline-flex; align-items: center; justify-content: center;
}
:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d8d8dd; border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #c4c4cb; }
[hidden] { display: none !important; }

.i { flex: none; display: block; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.sm { font-size: var(--fs-sm); }
.late { color: var(--danger) !important; }
.amb { color: var(--amber) !important; }
.o8 { opacity: .8; }

@keyframes pop { from { opacity: 0; transform: translateY(-3px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes flash { 0%, 40% { background: #dcefdf; } 100% { background: transparent; } }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }
.shake { animation: shake .3s; }
.flash { animation: flash 1.2s ease; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* --- açılış ekranı --- */
.boot { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); z-index: 3000; }
.boot-card { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); font-size: var(--fs-sm); }
.boot-bar { width: 160px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; width: 40%; height: 100%; background: var(--accent); border-radius: 3px; animation: bootbar 1.1s var(--ease) infinite; }
@keyframes bootbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.boot-err { max-width: 560px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); }
.boot-err h2 { margin: 0 0 8px; font-size: 16px; }
.boot-err p { margin: 0; color: var(--danger); line-height: 1.5; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.login { width: 360px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.login h1 { margin: 6px 0 0; font-size: 18px; letter-spacing: -.01em; }
.login p { margin: 0 0 6px; color: var(--muted); line-height: 1.5; }
.login label { display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-sm); font-weight: 550; color: var(--text2); }
.login input { height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; outline: 0; font-size: 14px; }
.login input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.login .btn { height: 36px; justify-content: center; margin-top: 4px; }
.login small { color: var(--faint); text-align: center; }
.login-err { color: var(--danger); background: var(--danger-soft); border-radius: 7px; padding: 7px 10px; font-size: 12.5px; }
.preview-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--amber-soft); color: #92400e; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
