/* Yazılım Takibi — config tool'dan bağımsız, açık "beyaz + amber" teması. */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef1f6;
  --line: #e6eaf0;
  --line-strong: #d3d9e3;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #a3aebf;
  --accent: #ffb020;
  --accent-2: #ff7a2f;
  --accent-ink: #2a1600;
  --accent-text: #b45309;
  --ring: rgba(255,176,32,.28);
  --ok: #0f9f6e;
  --danger: #d92d3f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 6px 18px -8px rgba(15,23,42,.10);
  --font: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; }
html { color-scheme: light; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 420px at 90% -140px, rgba(80,120,255,.07), transparent 70%),
    radial-gradient(700px 380px at -10% 0, rgba(80,120,255,.045), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------- üst şerit */
.yt-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.yt-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.01em; font-size: 16px; }
.yt-logo { width: 38px; height: 38px; display: block; flex: none; }
.yt-brand small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }

.yt-admin-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(15,159,110,.09); border: 1px solid rgba(15,159,110,.3); color: var(--ok);
  font-size: 12px; font-weight: 700;
}
.yt-admin-chip.viewer { background: #eaf1ff; border-color: #cfdffc; color: #1e429f; }
.yt-admin-chip.viewer i { background: #3b6fd8; box-shadow: 0 0 0 3px rgba(59,111,216,.18); }
.yt-admin-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(15,159,110,.18); }

/* ------------------------------------------------------------------ butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-color: transparent; font-weight: 800; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: rgba(217,45,63,.3); background: rgba(217,45,63,.04); }
.btn.danger:hover { background: rgba(217,45,63,.1); border-color: var(--danger); }
.btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn svg { width: 15px; height: 15px; flex: none; }
.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0;
  border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(217,45,63,.5); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn svg { width: 15px; height: 15px; }

.yt-main { max-width: 1480px; margin: 0 auto; padding: 34px 28px 80px; }

/* ------------------------------------------------------------------ ana ekran */
.yt-hero h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 10px; font-weight: 800; }
.yt-hero h1 em { font-style: normal; background: linear-gradient(135deg, #f59e0b, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.yt-hero p { margin: 0; color: var(--muted); max-width: 560px; line-height: 1.55; }

.yt-devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 34px; max-width: 900px; }
.yt-device {
  position: relative; overflow: hidden; text-align: left; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.yt-device::after {
  content: ''; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,176,32,.22), transparent 70%); transition: opacity .2s; opacity: .7;
}
.yt-device:hover { border-color: rgba(245,158,11,.6); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(255,140,40,.45); }
.yt-device:hover::after { opacity: 1; }
.yt-device-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #f4f6fa; border: 1px solid #cfdffc; color: var(--accent-text); margin-bottom: 20px; }
.yt-device-ico svg { width: 24px; height: 24px; }
.yt-device h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.yt-app-desc { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 40ch; }
.yt-device-stats { display: flex; gap: 18px; margin-top: 16px; }
.yt-stat b { display: block; font-size: 22px; font-weight: 800; font-family: var(--mono); }
.yt-stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.yt-device-go { position: absolute; right: 22px; bottom: 22px; color: var(--faint); transition: color .2s, transform .2s; }
.yt-device:hover .yt-device-go { color: var(--accent-text); transform: translateX(3px); }

/* --------------------------------------------------------------- cihaz ekranı */
.yt-crumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.yt-crumbs button { background: none; border: none; padding: 0; color: var(--muted); font-weight: 600; }
.yt-crumbs button:hover { color: var(--accent-text); }

.yt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.yt-toolbar-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.yt-seg { display: inline-flex; padding: 4px; background: var(--surface-3); border-radius: 12px; }
.yt-seg button { border: none; background: transparent; padding: 8px 18px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); }
.yt-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15,23,42,.15); }
.yt-search { position: relative; }
.yt-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.yt-search input {
  width: 280px; max-width: 100%; padding: 10px 14px 10px 36px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--line-strong); outline: none; font-size: 14px;
}
.yt-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.yt-tools { display: flex; gap: 8px; }
.yt-count { color: var(--muted); font-size: 13px; }
.yt-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.yt-switch input { position: absolute; opacity: 0; pointer-events: none; }
.yt-switch .sw { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--line-strong); transition: background .15s; flex: none; }
.yt-switch .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.3); transition: transform .15s; }
.yt-switch input:checked + .sw { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.yt-switch input:checked + .sw::after { transform: translateX(14px); }
.yt-switch input:focus-visible + .sw { box-shadow: 0 0 0 3px var(--ring); }
.yt-switch:hover { color: var(--text); }

/* Kayıt kartları: özellikler genişliğe göre alt satırlara sarılır, yatay kaydırma yok. */
.yt-list { display: flex; flex-direction: column; gap: 12px; }
.yt-rec {
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 290px; gap: 12px 30px; align-items: start;
  padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .12s;
}
.yt-rec:hover { border-color: rgba(245,158,11,.65); box-shadow: 0 10px 28px -14px rgba(255,140,40,.5); }
.yt-rec-key { min-width: 0; }
.yt-rec-key .lbl, .yt-attr .k, .yt-rec-files .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.yt-code { font-family: var(--mono); font-weight: 800; font-size: 17px; color: var(--accent-text); word-break: break-all; letter-spacing: -.02em; }
.yt-name { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; word-break: break-word; }
.yt-key-gap { margin-top: 12px; }
.yt-rec-date { margin-top: 12px; }
.yt-rec-date .lbl { margin-bottom: 3px; }
.yt-rec-date .d { font-size: 13px; font-weight: 600; color: var(--text); }
.yt-rec-attrs { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px 22px; align-content: start; min-width: 0; }
.yt-attr { min-width: 0; }
.yt-attr .v { font-size: 13.5px; line-height: 1.4; word-break: break-word; }
.yt-dash { color: var(--faint); }
.ek { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: #eaf1ff; color: #1e429f; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 800; vertical-align: 1px; }
.yt-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.yt-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 999px; background: #eaf1ff; border: 1px solid #cfdffc; color: #1e429f; font-size: 12px; font-weight: 600; font-family: var(--mono); }
/* Çoklu değer bandı: kartın altında tam genişlik; etiketler 2 satıra kadar görünür, kalanı açılır. */
.yt-multi-band { grid-column: 1 / -1; order: 4; display: flex; flex-direction: column; gap: 14px; padding-top: 16px; margin-top: 2px; border-top: 1px dashed var(--line-strong); }
.yt-multi-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 6px 30px; align-items: start; }
.yt-multi-row .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding-top: 6px; }
.yt-multi-row .tail { white-space: nowrap; }
.yt-multi-row .cnt { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 10.5px; letter-spacing: 0; }
.yt-multi-row .yt-tags { max-height: 57px; overflow: hidden; }
.yt-multi-row.open .yt-tags { max-height: none; }
.yt-tags-toggle { margin-top: 6px; padding: 2px 0; border: none; background: none; color: var(--accent-text); font-size: 12px; font-weight: 700; }
.yt-tags-toggle:hover { text-decoration: underline; }
.yt-rec-files { min-width: 0; }

.yt-fchips { display: flex; flex-direction: column; gap: 6px; }
.yt-fchip {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px 5px 10px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; min-width: 0;
}
.yt-fchip .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); flex: 1; min-width: 0; }
.yt-fchip .s { color: var(--muted); font-size: 11px; white-space: nowrap; }
.yt-fchip .dl { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--ok); background: rgba(15,159,110,.1); flex: none; }
.yt-fchip .dl:hover { background: rgba(15,159,110,.22); }
.yt-fchip .dl svg { width: 14px; height: 14px; }
.yt-more { font-size: 12px; color: var(--muted); padding-left: 4px; }
.yt-nofile { color: var(--faint); font-size: 12.5px; }

.yt-empty { text-align: center; padding: 70px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.yt-empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* ------------------------------------------------------------ çekmece (drawer) */
.yt-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.32); backdrop-filter: blur(2px); z-index: 40; }
.yt-scrim.anim { animation: fade .15s ease; }
.yt-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100vw); z-index: 41;
  background: var(--surface); border-left: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 60px -24px rgba(15,23,42,.3);
}
.yt-drawer.anim { animation: slide .2s ease; }
.yt-drawer-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.yt-drawer-head .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.yt-drawer-head h2 { margin: 4px 0 0; font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.02em; word-break: break-word; }
.yt-drawer-code { margin-top: 4px; font-family: var(--mono); font-weight: 800; font-size: 16px; color: var(--accent-text); letter-spacing: -.02em; word-break: break-all; }
.yt-drawer-date { margin-top: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.yt-drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px; }
.yt-drawer-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: space-between; background: var(--surface-2); }
.yt-drawer-foot .grp { display: flex; gap: 10px; }
.yt-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 12px; }
.yt-sec + * { margin-bottom: 26px; }

.yt-sec-hint { margin-left: 8px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.yt-extras-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.yt-extras { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.yt-extra { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.yt-extra-head { display: flex; align-items: center; gap: 8px; }
.yt-extra input[type=text] { flex: 1; min-width: 0; padding: 9px 11px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-strong); outline: none; font-size: 14px; width: 100%; }
.yt-extra-head input[type=text] { font-weight: 700; }
.yt-extra input[type=text]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.yt-extra .yt-chipbox { background: var(--surface); }
.yt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.yt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yt-field.wide { grid-column: 1 / -1; }
.yt-field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.yt-field label i { color: var(--accent-text); font-style: normal; }
.yt-field label .multi-badge { margin-left: 6px; font-size: 10px; font-weight: 700; color: #1e429f; background: #eaf1ff; padding: 1px 6px; border-radius: 999px; }
.yt-field input[type=text], .yt-chipbox {
  padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); outline: none; font-size: 14px; width: 100%;
}
.yt-field input[type=text]:focus, .yt-chipbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.yt-field .val { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); min-height: 40px; font-size: 14px; word-break: break-word; }
.yt-field .val.empty { color: var(--faint); }

/* çoklu değer girişi: etiketler + yazı alanı */
.yt-chipbox { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 8px; cursor: text; }
.yt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #eaf1ff; border: 1px solid #cfdffc; color: #1e429f; font-size: 12.5px; font-weight: 600; font-family: var(--mono); }
.yt-chip button { width: 18px; height: 18px; border: none; border-radius: 50%; background: transparent; color: #5b7bd0; display: grid; place-items: center; padding: 0; }
.yt-chip button:hover { background: rgba(217,45,63,.15); color: var(--danger); }
.yt-chip button svg { width: 11px; height: 11px; }
.yt-chipbox input { flex: 1; min-width: 110px; border: none; outline: none; background: transparent; padding: 4px 2px; font-size: 14px; }
.yt-chiphint { font-size: 11.5px; color: var(--faint); }

.yt-flist { display: flex; flex-direction: column; gap: 8px; }
.yt-frow { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); }
.yt-fico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; font-family: var(--mono); font-size: 10px; font-weight: 800; background: #ffe9d6; color: #c2410c; }
.yt-fico.bin { background: #e3ecff; color: #1d4ed8; }
.yt-finfo { flex: 1; min-width: 0; }
.yt-finfo .n { font-family: var(--mono); font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yt-finfo .m { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.yt-finfo .m span { cursor: help; }
.yt-frow .btns { display: flex; gap: 6px; }

.yt-drop {
  margin-top: 10px; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 22px 16px; text-align: center; color: var(--muted); font-size: 13px;
  transition: border-color .15s, background .15s; cursor: pointer; display: block; width: 100%; background: transparent;
}
.yt-drop b { color: var(--text); }
.yt-drop:hover, .yt-drop.over { border-color: var(--accent); background: var(--surface-2); color: var(--text); }
.yt-drop small { display: block; margin-top: 4px; color: var(--faint); }
.yt-note { padding: 14px; border-radius: 11px; background: #f1f5fb; border: 1px solid #cfdffc; color: #1e429f; font-size: 13px; line-height: 1.5; }

/* --------------------------------------------------------------- modal pencere */
.yt-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(15,23,42,.36); backdrop-filter: blur(3px); }
.yt-modal.anim { animation: fade .15s ease; }
.yt-modal.anim .yt-modal-card { animation: pop .18s ease; }
.yt-modal-card { width: min(460px, 100%); max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 30px 70px -20px rgba(15,23,42,.4); }
.yt-modal-card.wide { width: min(660px, 100%); }
.yt-modal-card h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.yt-modal-card p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.yt-modal-card input.txt { width: 100%; padding: 11px 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); outline: none; margin-bottom: 10px; font-size: 14px; }
.yt-modal-card input.txt:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.yt-pw { position: relative; }
.yt-pw input.txt { padding-right: 46px; }
.yt-pw-eye { position: absolute; top: 5px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: none; border-radius: 8px; background: transparent; color: var(--muted); }
.yt-pw-eye:hover { color: var(--accent-text); background: var(--surface-2); }
.yt-pw-eye svg { width: 18px; height: 18px; }
.yt-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.yt-form-err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin-top: 4px; }

.yt-collist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.yt-colrow { display: flex; align-items: center; gap: 8px; }
.yt-colrow input[type=text] { flex: 1; min-width: 0; padding: 8px 11px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line-strong); outline: none; font-size: 13.5px; }
.yt-colrow input[type=text]:focus { border-color: var(--accent); }
.yt-colrow input[type=text]:disabled { color: var(--accent-text); font-family: var(--mono); font-weight: 700; background: var(--surface-2); }
.yt-colrow .lock { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.yt-multi { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; cursor: pointer; user-select: none; }
.yt-multi input { accent-color: #f59e0b; width: 15px; height: 15px; margin: 0; }
.yt-coladd { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.yt-coladd input[type=text] { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-strong); outline: none; font-size: 14px; }
.yt-coladd input[type=text]:focus { border-color: var(--accent); }

.yt-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80;
  padding: 11px 18px; border-radius: 12px; background: #0f172a; color: #fff; border: 1px solid #0f172a;
  font-size: 13.5px; font-weight: 600; box-shadow: 0 12px 34px -8px rgba(15,23,42,.5); animation: pop .18s ease; max-width: calc(100vw - 32px);
}
.yt-toast.err { background: var(--danger); border-color: var(--danger); }
.yt-toast.ok { background: #0b7a54; border-color: #0b7a54; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

@media (max-width: 1100px) {
  .yt-rec { grid-template-columns: minmax(0, 1fr) 280px; }
  .yt-rec-attrs { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 720px) {
  .yt-nav { padding: 12px 16px; }
  .yt-main { padding: 22px 14px 60px; }
  .yt-hero h1 { font-size: 27px; }
  .yt-fields { grid-template-columns: 1fr; }
  .yt-search input { width: 100%; }
  .yt-search { flex: 1 1 100%; }
  .yt-rec { grid-template-columns: 1fr; padding: 16px; }
  .yt-multi-row { grid-template-columns: 1fr; }
  .yt-multi-row .k { padding-top: 0; }
  .yt-colrow { flex-wrap: wrap; }
}

/* ------------------------------------------------------------- giriş sayfası */
.yt-login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.yt-login-card { width: min(400px, 100%); padding: 36px 32px 30px; border-radius: 22px; text-align: center; box-shadow: 0 30px 70px -28px rgba(15,23,42,.28), 0 2px 6px rgba(15,23,42,.05); }
.yt-login-logo { width: 68px; height: 68px; display: block; margin: 0 auto 16px; }
.yt-login-card h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.yt-login-brand { margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.yt-login-card p { margin: 18px 0 20px; }
.yt-login-card label { display: block; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 6px; }
.yt-login-card .yt-pw, .yt-login-card input.txt { text-align: left; }
.yt-login-card .btn.big { width: 100%; padding: 12px 16px; font-size: 14px; border-radius: 12px; margin-top: 6px; }
.yt-login-card .yt-form-err { text-align: center; margin: 0 0 6px; }
.yt-login-foot { margin-top: 18px; font-size: 12px; color: var(--faint); text-align: center; }
