/* Yönet SA portalı — tema.css tokenları üzerine. Sabit renk yok. */
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font, system-ui, sans-serif); font-size: var(--fs-md); }
[hidden] { display: none !important; }

/* Giriş */
.giris-sayfa { display: grid; place-items: center; padding: 16px; }
.giris-kart { width: min(360px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; text-align: center; box-shadow: 0 10px 40px rgba(15, 26, 46, .08); }
.giris-kart img { align-self: center; }
.giris-kart h1 { margin: 0; font-size: var(--fs-2xl); line-height: var(--lh-2xl); }
.giris-kart .alt { margin: -8px 0 8px; color: var(--text-3); font-size: var(--fs-sm); }
.giris-kart .btn { justify-content: center; gap: 8px; }
.giris-kart .alan { display: flex; flex-direction: column; gap: 4px; text-align: start; font-size: var(--fs-sm); color: var(--text-2); }
.giris-kart .uyari { color: var(--warning-text); font-size: var(--fs-sm); margin: 0; }
.mesaj { min-height: 18px; margin: 0; font-size: var(--fs-sm); color: var(--text-2); }
.mesaj.hata { color: var(--danger-text); }

/* Portal: ince şerit + tam ekran çerçeve */
.portal { display: flex; flex-direction: column; overflow: hidden; }
.serit { flex: 0 0 36px; height: 36px; display: flex; align-items: center; gap: 4px; padding: 0 8px; background: var(--surface); border-bottom: 1px solid var(--border); min-width: 0; }
.logo { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px 0 2px; color: var(--text); text-decoration: none; font-size: var(--fs-sm); }
.sekmeler { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 2px; overflow: hidden; height: 100%; }
.sekme { flex: 0 0 auto; height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 6px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); white-space: nowrap; }
.sekme:hover { background: var(--surface-3); color: var(--text); }
.sekme[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.sekme:focus-visible, .ikon-btn:focus-visible, .tasan-oge:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.tasan { position: relative; flex: 0 0 auto; }
.tasan-menu { position: absolute; top: 30px; right: 0; z-index: 30; min-width: 180px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; box-shadow: 0 12px 32px rgba(15, 26, 46, .14); }
.tasan-oge { display: block; width: 100%; text-align: start; border: 0; background: none; padding: 7px 10px; border-radius: 6px; color: var(--text); font: inherit; font-size: var(--fs-sm); cursor: pointer; }
.tasan-oge:hover { background: var(--surface-3); }
.tasan-oge.secili { background: var(--primary-soft); color: var(--primary-text); font-weight: 600; }
.sag { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding-inline-start: 6px; border-inline-start: 1px solid var(--border); margin-inline-start: 4px; }
.ikon-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 0; background: none; color: var(--text-2); border-radius: 6px; cursor: pointer; }
.ikon-btn:hover { background: var(--surface-3); color: var(--text); }
.ikon-btn:disabled { opacity: .4; cursor: default; }
.ikon-btn.vurgulu { background: var(--primary-soft); color: var(--primary-text); }

.cerceveler { flex: 1 1 auto; position: relative; min-height: 0; background: var(--surface); }
.cerceveler iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--surface); }
.bos { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }

/* Ayarlar çekmecesi (sağ) */
.cekmece-zemin { position: fixed; inset: 0; background: var(--overlay, rgba(15, 26, 46, .4)); z-index: 40; }
.cekmece { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 41; background: var(--surface); display: flex; flex-direction: column; box-shadow: -16px 0 48px rgba(15, 26, 46, .18); border-radius: 20px 0 0 20px; }
.cekmece-bas { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--border); }
.cekmece-bas h2 { margin: 0; font-size: var(--fs-xl); }
.cekmece-govde { flex: 1; overflow: auto; padding: 12px 20px 24px; scrollbar-width: thin; }
.bolum-bas { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.bolum-bas h3 { margin: 0; font-size: var(--fs-md); color: var(--text-2); }
.panel-listesi { display: flex; flex-direction: column; gap: 6px; }
.panel-oge { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.panel-oge.tasiniyor { opacity: .5; }
.panel-oge > summary { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; list-style: none; }
.panel-oge > summary::-webkit-details-marker { display: none; }
.panel-oge > summary b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tutamak { color: var(--text-3); cursor: grab; letter-spacing: -2px; user-select: none; }
.rozet { font-size: var(--fs-xs); padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.rozet.basari { background: var(--success-soft); color: var(--success-text); }
.panel-form { display: flex; flex-direction: column; gap: 10px; padding: 4px 12px 12px; }
.panel-form .field { display: flex; flex-direction: column; gap: 4px; }
.panel-form .ipucu { color: var(--text-3); font-size: var(--fs-xs); }
.panel-form-alt { display: flex; justify-content: flex-end; gap: 6px; }
.cihaz-satir { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.cihaz-satir small { display: block; color: var(--text-3); font-size: var(--fs-xs); }

.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--text-inv); padding: 8px 14px; border-radius: 8px; font-size: var(--fs-sm); }
.toast.hata { background: var(--danger-solid, var(--danger)); color: #fff; }
