.panel-host .tool-main {
  padding: 0;
}
.tool-layout { display: flex; min-height: 100vh; }
.tool-side {
  width: 260px;
  flex: none;
  background: #fff;
  box-shadow: 5px 0 25px rgba(94, 92, 154, 0.1);
  padding: 22px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}
.tool-brand {
  display: block;
  padding: 0 24px 18px;
  font-weight: 800;
  color: #0e1726;
  text-decoration: none;
}
.tool-side h2 {
  margin: 8px 0 0;
  padding: 14px 24px 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #888ea8;
  font-weight: 700;
}
.tool-side a.tool-link {
  display: block;
  padding: 10px 24px;
  color: #506690;
  text-decoration: none;
}
.tool-side a.tool-link:hover,
.tool-side a.tool-link.active {
  color: #f18944;
  background: #fff7f1;
}
.tool-main { flex: 1; min-width: 0; padding: 24px; }
.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.tool-page-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0e1726;
}
.tool-note { margin: 0 0 16px; color: #506690; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-grid .full { grid-column: 1 / -1; }
.condition { grid-template-columns: 1fr 1fr auto; align-items: center; margin-top: 10px; }
.tool-main label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.tool-main label.tool-actions { flex-direction: row; align-items: center; }
.tool-main .form-input,
.tool-main .form-select,
.tool-main .form-textarea,
.tool-main textarea { width: 100%; }
.tool-main textarea { min-height: 96px; }
.tool-main h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; }
section.panel { margin-bottom: 20px; }
.tool-table .btn + .btn { margin-left: 8px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-table { width: 100%; border-collapse: collapse; }
.tool-table th {
  text-align: left;
  color: #888ea8;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  border-bottom: 1px solid #e0e6ed;
}
.tool-table td {
  padding: 12px;
  border-bottom: 1px solid #f1f2f3;
  vertical-align: middle;
}
.tool-cover { width: 96px; height: 54px; object-fit: cover; border-radius: 6px; background: #192335; }
.student-pick { position: relative; }
.student-pick-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(14, 23, 38, 0.12);
  max-height: 240px;
  overflow: auto;
}
.student-pick-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f1f2f3;
  padding: 10px 12px;
  cursor: pointer;
}
.student-pick-list button strong { display: block; color: #0e1726; }
.student-pick-list button span { color: #506690; font-size: 12px; font-weight: 600; }
.student-pick-list button:hover { background: #fff7f1; }
#message { min-height: 24px; margin: 0 0 12px; font-weight: 700; }
#message.error { color: #e7515a; }
#message.ok { color: #00ab55; }
@media (max-width: 900px) {
  .tool-layout { display: block; }
  .tool-side { width: auto; height: auto; position: static; }
  .tool-grid { grid-template-columns: 1fr; }
}

.lt-admin h1 { margin: 0 0 6px; font-size: 28px; font-weight: 800; color: #0e1726; }
.lt-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.lt-page-head p { margin: 0; color: #506690; font-size: 15px; max-width: 640px; }
.navbar-sticky .panel-host header,
.navbar-floating .panel-host header {
  position: static;
  top: auto;
  z-index: auto;
}
.lt-subnav { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.lt-subnav button,
.pf-tabs button { flex: 0 0 auto; white-space: nowrap; }
.lt-subnav button {
  border: 1px solid #e0e6ed;
  background: #fff;
  color: #0e1726;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
}
.lt-subnav button.is-on { background: #f18944; border-color: #f18944; color: #fff; }
.lt-panel { padding: 20px; }
.lt-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.lt-toolbar .form-input,
.lt-toolbar .form-select { min-width: 180px; max-width: 280px; }
.lt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.lt-card {
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lt-card h3 { margin: 0; font-size: 16px; line-height: 1.45; color: #0e1726; }
.lt-card-top, .lt-row-actions, .lt-form-actions, .lt-meta-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lt-card-meta, .lt-meta, .lt-empty { margin: 0; color: #506690; }
.lt-skill {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7f1;
  color: #c56a24;
  font-size: 12px;
  font-weight: 800;
}
.lt-editor { display: grid; gap: 14px; }
.lt-label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; color: #0e1726; }
.lt-skills { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-skills button {
  border: 1px solid #e0e6ed;
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.lt-skills button.is-on { background: #192335; color: #fff; border-color: #192335; }
.lt-upload {
  border: 1px dashed #f18944;
  border-radius: 14px;
  padding: 16px;
  background: #fffaf6;
  display: grid;
  gap: 12px;
}
.lt-upload-head { display: flex; justify-content: space-between; align-items: center; }
.lt-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f3d2b8;
  cursor: pointer;
  text-align: center;
  padding: 12px;
  color: #506690;
  font-weight: 700;
}
.lt-drop input { display: none; }
.lt-admin audio { width: 100%; }
.lt-table-wrap,
.tool-main .panel:has(> .tool-table) {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}
.main-content:has(.panel-host) {
  min-width: 0;
  max-width: 100%;
}
.lt-detail {
  margin-top: 16px;
  border-top: 1px solid #e0e6ed;
  padding-top: 16px;
}
.lt-detail h3 { margin: 0 0 10px; }
.lt-skill-line, .lt-answer-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.lt-skill-line span, .lt-answer {
  background: #f8fafc;
  border-radius: 10px;
  padding: 8px 10px;
}
.lt-answer { flex: 1 1 100%; }
.lt-answer strong { display: block; margin-bottom: 4px; }
.lt-answer p { margin: 0; color: #506690; }
.lt-answer.ok { background: #e8faf1; }
.lt-answer.bad { background: #fff1f2; }
.lt-admin .lt-stat-row,
.pf-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.lt-admin .lt-stat-chip,
.pf-stats > div {
  min-width: 0;
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  color: #506690;
}
.lt-admin .lt-stat-chip span,
.pf-stats b {
  display: block;
  color: #f18944;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}
.pf-stats span { color: #888ea8; font-size: 13px; font-weight: 700; }
.lt-admin .lt-split {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 16px;
  align-items: start;
}
.lt-admin .lt-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.lt-admin .lt-editor-head h2 { margin: 0; }
.lt-admin .lt-options-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.lt-admin .lt-options-head span { color: #888ea8; font-size: 12px; font-weight: 600; }
.lt-admin .lt-option-rows { display: grid; gap: 8px; }
.lt-admin .lt-option-row {
  display: grid;
  grid-template-columns: 22px 36px 1fr auto;
  gap: 8px;
  align-items: center;
}
.lt-admin .lt-letter-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff7f1;
  color: #f18944;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.lt-admin .lt-filters .form-input,
.lt-admin .lt-filters .form-select { min-width: 140px; max-width: 220px; }
.lt-admin .lt-q-cell {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lt-admin .lt-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.lt-admin .lt-badge.ok { background: #e8faf1; color: #00ab55; }
.lt-admin .lt-badge.off { background: #f1f2f3; color: #888ea8; }
.lt-admin .lt-row-actions { white-space: nowrap; }
.lt-admin .lt-row-actions .btn + .btn { margin-left: 6px; }
.lt-attempt-list { display: grid; gap: 10px; }
.lt-attempt {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.lt-attempt-head {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: 0;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}
.lt-attempt-body {
  white-space: pre-wrap;
  padding: 12px 14px 14px;
  color: #334155;
  border-top: 1px solid #e5e7eb;
}
.lt-admin .lt-field-hint {
  font-weight: 600;
  color: #888ea8;
  font-size: 12px;
  margin-left: 6px;
}
@media (max-width: 1100px) {
  .lt-admin .lt-split { grid-template-columns: 1fr; }
}
.pf-option-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 10px;
  align-items: center;
}
.pf-option-row img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef1f6;
}
.pf-option-tools { display: flex; gap: 8px; align-items: center; }
.pf-file {
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  color: #506690;
}
.pf-file input { display: none; }
.pf-condition {
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  display: grid;
  gap: 10px;
  background: #fff;
}
.pf-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-checks label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 1px solid #e0e6ed;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}
.log-pre {
  margin: 12px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #192335;
  color: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  max-height: 360px;
  overflow: auto;
}
.log-advanced[hidden] { display: none !important; }
@media (max-width: 720px) {
  .pf-option-row { grid-template-columns: 56px 1fr; }
  .pf-option-tools { grid-column: 1 / -1; }
}

.pf-admin { color: #0e1726; }
.pf-admin [hidden] { display: none !important; }
.pf-admin [data-pane] { display: none; }
.pf-admin [data-pane].is-on { display: block; }
.pf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; }
.pf-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #f18944; }
.pf-admin h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: #0e1726; }
.pf-lead-in { margin: 6px 0 0; color: #506690; font-size: 15px; }
.pf-head-actions { display: flex; gap: 8px; align-items: center; }
.pf-primary, .pf-ghost, .pf-danger {
  border-radius: 10px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  cursor: pointer;
}
.pf-primary { background: #f18944; color: #fff; border: 0; }
.pf-primary:hover { background: #e07a34; }
.pf-ghost { background: #fff; color: #0e1726; border: 1px solid #e0e6ed; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.pf-ghost:hover { border-color: #f18944; color: #c45e16; }
.pf-danger { background: #fff; color: #e7515a; border: 1px solid #f3d0d3; }
.pf-danger:disabled, .pf-ghost:disabled, .pf-primary:disabled { opacity: 0.45; cursor: default; }
.pf-mini { min-height: 34px; padding: 0 12px; font-size: 13px; }
.pf-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #e0e6ed; margin-bottom: 16px; }
.pf-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 14px;
  font-weight: 800;
  color: #506690;
}
.pf-tabs button.is-on { color: #0e1726; border-bottom-color: #f18944; }
.pf-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f4f6f9;
  color: #506690;
  font-style: normal;
  font-size: 12px;
  align-items: center;
  justify-content: center;
}
.pf-tabs button.is-on .pf-count { background: #fff7f1; color: #c45e16; }
.pf-sheet { background: #fff; border: 1px solid #e8edf3; border-radius: 16px; overflow: hidden; }
.pf-sheet-note { padding: 14px 18px; color: #506690; background: #fbfcfe; border-bottom: 1px solid #eef2f6; }
.pf-empty { margin: 0; padding: 28px 18px; color: #506690; }
.pf-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-top: 1px solid #eef2f6;
}
.pf-row:first-child { border-top: 0; }
.pf-rule { grid-template-columns: minmax(0, 1fr) auto; }
.pf-index {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff7f1;
  color: #c45e16;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.pf-row h3 { margin: 2px 0 0; font-size: 16px; line-height: 1.4; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f6f9;
  color: #243044;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 600;
}
.pf-chip img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }
.pf-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pf-badges, .pf-row-actions, .pf-form-actions, .pf-inline, .pf-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-badge {
  border-radius: 999px;
  padding: 4px 8px;
  background: #f4f6f9;
  color: #506690;
  font-size: 12px;
  font-weight: 800;
}
.pf-badge.ok { background: #e8faf1; color: #00ab55; }
.pf-badge.off { background: #f1f2f3; color: #888ea8; }
.pf-flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.pf-flow .pf-chips { margin-top: 0; }
.pf-arrow { color: #f18944; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pf-recs { display: flex; flex-direction: column; gap: 4px; }
.pf-recs strong { font-size: 14px; line-height: 1.35; }
.pf-lead {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 280px;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid #eef2f6;
  align-items: start;
}
.pf-lead strong { display: block; font-size: 15px; }
.pf-lead > div:first-child span,
.pf-lead > div:first-child em { display: block; margin-top: 2px; color: #888ea8; font-style: normal; font-size: 13px; font-weight: 600; }
.pf-lead-picks { display: grid; gap: 10px; }
.pf-lead-picks p { margin: 0; color: #888ea8; font-size: 12px; font-weight: 700; }
.pf-lead-picks .pf-chips { margin-top: 4px; }
.pf-rec {
  background: #fff7f1;
  border-radius: 12px;
  padding: 12px;
}
.pf-rec strong { font-size: 14px; line-height: 1.35; margin-top: 6px; }
.pf-rec strong:first-child { margin-top: 0; }
.pf-rec span { display: block; margin-top: 8px; color: #8a5a32; font-size: 12px; font-weight: 700; }
.pf-rec.is-empty { background: #f6f7f9; color: #888ea8; font-weight: 700; }
.pf-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid #eef2f6; color: #506690; font-weight: 700; }
.pf-pager div { display: flex; gap: 8px; }
.pf-card { background: #fff; border: 1px solid #e8edf3; border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.pf-admin .pf-card h2 { margin: 0; }
.pf-back { justify-self: start; background: none; border: 0; padding: 0; color: #506690; font-weight: 800; cursor: pointer; }
.pf-back:hover { color: #c45e16; }
.pf-admin label.pf-field { display: flex; flex-direction: column; gap: 8px; font-weight: 800; }
.pf-field-order { width: 110px; }
.pf-admin label.pf-switch,
.pf-admin label.pf-check,
.pf-admin label.pf-file {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin: 0;
}
.pf-switch {
  border: 1px solid #e0e6ed;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
}
.pf-block-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pf-block-head span { color: #888ea8; font-size: 12px; font-weight: 700; }
.pf-options, .pf-conditions { display: grid; gap: 8px; }
.pf-opt {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #fbfcfe;
}
.pf-opt img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: #eef1f6; }
.pf-opt-tools { display: flex; gap: 8px; }
.pf-file { border: 1px solid #e0e6ed; border-radius: 10px; padding: 8px 10px; background: #fff; cursor: pointer; color: #506690; }
.pf-file input { display: none; }
.pf-editor-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr); gap: 16px; align-items: start; }
.pf-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-condition {
  border: 1px solid #e8edf3;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: #fbfcfe;
}
.pf-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-check { border: 1px solid #e0e6ed; border-radius: 999px; padding: 8px 12px; background: #fff; }
.pf-check:has(input:checked) { background: #fff7f1; border-color: #f18944; color: #c45e16; }
.pf-condition-remove { justify-self: start; }
.pf-preview {
  position: sticky;
  top: 72px;
  background: #192335;
  color: #fff;
  border-radius: 16px;
  padding: 18px;
}
.pf-preview p { margin: 0 0 8px; color: #f18944; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.pf-preview h3 { margin: 0; font-size: 20px; line-height: 1.35; color: #fff; }
.pf-preview-opt {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.pf-preview-opt img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.pf-preview-rule h3 { font-size: 18px; font-weight: 700; }
.pf-form-actions { margin-top: 4px; }
@media (max-width: 980px) {
  .pf-head, .pf-editor-grid, .pf-split, .pf-lead, .pf-row, .pf-rule { display: grid; grid-template-columns: 1fr; }
  .pf-side { align-items: flex-start; }
  .pf-preview { position: static; }
}
.sms-admin,
.jr-admin {
  max-width: 100%;
  min-width: 0;
}
.stack-list { display: grid; gap: 10px; }
.stack-card,
.jr-sheet {
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 16px;
  padding: 14px;
  min-width: 0;
}
.stack-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.stack-top strong,
.stack-who,
.stack-meta,
.stack-card p,
.jr-event p,
.jr-field strong {
  overflow-wrap: anywhere;
}
.stack-who { margin: 0; color: #192335; font-weight: 800; }
.stack-meta { margin: 0; color: #506690; font-size: 13px; }
.stack-card p,
.jr-event p { margin: 0; }
.stack-empty {
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 16px;
  color: #506690;
}
.jr-sheet { display: none; margin-top: 14px; }
.jr-sheet.is-open { display: grid; gap: 12px; }
.jr-sheet h2 { margin: 0; font-size: 18px; color: #192335; }
.jr-fields { display: grid; gap: 8px; }
.jr-field {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  background: #f7f8fb;
  border-radius: 12px;
}
.jr-field span { color: #506690; font-size: 12px; font-weight: 800; }
.jr-events { display: grid; }
.jr-event {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid #e0e6ed;
}
.stack-card .btn,
.jr-sheet .btn { flex: 0 0 auto; }
@media (max-width: 720px) {
  .sms-admin .tool-grid,
  .jr-admin .tool-grid { grid-template-columns: 1fr; }
  .lt-page-head,
  .pf-head {
    flex-direction: column;
    align-items: stretch;
  }
  .lt-page-head .btn,
  .pf-head-actions { align-self: flex-start; }
  .lt-admin .lt-stat-row,
  .pf-stats { grid-template-columns: 1fr 1fr; }
  .lt-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }
  .lt-toolbar .form-input,
  .lt-toolbar .form-select,
  .lt-toolbar .btn {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .pf-opt { grid-template-columns: 56px minmax(0, 1fr); }
  .pf-opt-tools,
  .lt-admin .lt-option-row .btn { grid-column: 1 / -1; justify-self: start; }
  .lt-admin .lt-option-row { grid-template-columns: 22px 36px minmax(0, 1fr); }
  .tool-actions .btn { white-space: normal; }
}

body.lt-modal-open { overflow: hidden; }
.lt-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  padding: 16px;
  background: rgba(14, 23, 38, 0.55);
  overflow: hidden;
}
.lt-modal-card {
  width: min(1120px, 100%);
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(14, 23, 38, 0.28);
}
.lt-modal-head {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 12px;
  background: #fff;
  border-bottom: 1px solid #eef1f6;
  border-radius: 18px 18px 0 0;
}
.lt-modal-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  color: #0e1726;
}
.lt-modal-head p { margin: 4px 0 0; color: #506690; }
.lt-modal-close {
  border: 1px solid #e0e6ed;
  background: #fff;
  color: #0e1726;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
  flex: none;
}
.lt-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  gap: 12px;
  padding: 16px 18px 22px;
}
.lt-modal-body h3 {
  margin: 8px 0 0;
  font-size: 16px;
  color: #0e1726;
}
.lt-detail-grid,
.lt-msg-grid,
.lt-q-list {
  display: grid;
  gap: 10px;
}
.lt-detail-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.lt-msg-grid { grid-template-columns: 1fr; }
.lt-msg-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.lt-field,
.lt-msg,
.lt-q {
  min-width: 0;
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  background: #fff;
  padding: 12px;
}
.lt-field {
  display: grid;
  gap: 4px;
  background: #f8fafc;
}
.lt-field span { color: #506690; font-size: 12px; font-weight: 800; }
.lt-field strong { color: #0e1726; overflow-wrap: anywhere; }
.lt-field a,
.lt-card-meta a,
.lt-mail-html a,
.lt-msg-text a {
  color: #c56a24;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lt-profile-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid #f18944;
  border-radius: 14px;
  background: #fff7f1;
  padding: 12px;
  color: #0e1726;
  text-decoration: none;
}
.lt-profile-card span { color: #c56a24; font-size: 12px; font-weight: 800; }
.lt-profile-card strong { font-size: 16px; }
.lt-msg.is-empty {
  min-height: 1px;
  padding: 0;
  border: 0;
  background: transparent;
}
.lt-msg-top,
.lt-q-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.lt-q-head { flex-direction: column; }
.lt-q-head strong,
.lt-msg-top strong { color: #0e1726; overflow-wrap: anywhere; }
.lt-q-head span,
.lt-msg-subject,
.lt-msg-note { margin: 0; color: #506690; }
.lt-msg-text,
.lt-mail-html,
.lt-passage {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: #0e1726;
}
.lt-msg-text,
.lt-mail-html,
.lt-passage {
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
}
.lt-mail-html { white-space: normal; }
.lt-mail-html p { margin: 0 0 8px; }
.lt-mail-html p:last-child { margin-bottom: 0; }
.lt-q-options { display: grid; gap: 8px; margin-top: 10px; }
.lt-opt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef1f6;
}
.lt-opt span { overflow-wrap: anywhere; }
.lt-opt em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
}
.lt-opt.is-picked { border-color: #f18944; background: #fff7f1; }
.lt-opt.is-correct { border-color: #00ab55; }
.lt-q.ok { border-color: #b7ebc9; }
.lt-q.bad { border-color: #f5c2c7; }
@media (max-width: 720px) {
  .lt-modal { padding: 0; }
  .lt-modal-card { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
  .lt-modal-head { border-radius: 0; padding-top: calc(14px + env(safe-area-inset-top)); }
  .lt-modal-body { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .lt-detail-grid { grid-template-columns: 1fr; }
  .lt-msg-pair { grid-template-columns: 1fr 1fr; }
  .lt-modal-head h2 { font-size: 18px; }
}
/* Profil menü: yalnızca süper admin (Admin koleksiyonu / isAdmin) */
html:not(.is-super-admin) li:has(a[href="/users/profile"]),
html:not(.is-super-admin) li:has(a[href="/profil-ayarlari"]),
html:not(.is-super-admin) li:has(a[href="/users/user-account-settings"]),
body:not(.is-super-admin) li:has(a[href="/users/profile"]),
body:not(.is-super-admin) li:has(a[href="/profil-ayarlari"]),
body:not(.is-super-admin) li:has(a[href="/users/user-account-settings"]) {
  display: none !important;
}

.admin-profile h2 { margin: 0 0 14px; font-size: 18px; font-weight: 700; color: #0e1726; }
.admin-profile .pt-5 { display: grid; gap: 16px; }
.admin-profile section.panel,
.admin-profile form.panel { margin: 0; }
.profile-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; min-width: 0; }
.profile-card { text-align: left; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 72px; height: 72px; margin: 0; flex: 0 0 auto; border-radius: 50%;
  display: grid; place-items: center; background: #fff7f1; color: #e07a32;
  font-size: 24px; font-weight: 800;
}
.profile-role { margin: 0; color: #506690; font-weight: 700; }
.profile-facts {
  list-style: none; margin: 14px 0 0; padding: 0; text-align: left;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px;
}
.profile-facts li {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 10px 0; border-top: 1px solid #e0e6ed; font-size: 14px;
}
.profile-facts span { color: #506690; }
.profile-facts strong, .profile-facts a { min-width: 0; max-width: 100%; overflow-wrap: anywhere; text-align: left; font-weight: 700; }
.profile-card h2 { overflow-wrap: anywhere; }
.admin-profile label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-weight: 600; }
.admin-profile .form-input { width: 100%; font-size: 16px; }
.admin-profile .profile-fields,
.profile-pass-fields { grid-template-columns: 1fr; }
.admin-profile .tool-actions { margin-top: 16px; }
.profile-log { display: grid; }
.profile-log article {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px;
  align-items: center; padding: 12px 0; border-top: 1px solid #e0e6ed;
}
.profile-log time { color: #506690; font-size: 13px; font-weight: 700; }
.profile-log strong { font-size: 14px; font-weight: 700; }
.profile-empty { margin: 0; color: #506690; }
.profile-totp-lead { margin: 0 0 14px; color: #506690; }
.profile-totp-setup-grid {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start;
}
.profile-totp-setup-grid img {
  width: 220px; height: 220px; border: 1px solid #e0e6ed; border-radius: 12px; background: #fff;
}
.profile-totp-secret {
  display: block; margin: 10px 0 14px; padding: 10px 12px; border-radius: 10px;
  background: #f6f8fb; color: #0e1726; font-size: 13px; word-break: break-all;
}
.profile-totp-backups { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e0e6ed; }
.profile-totp-backups h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.profile-totp-backup-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px;
  list-style: none; margin: 12px 0 0; padding: 0;
}
.profile-totp-backup-list li {
  padding: 8px 10px; border-radius: 8px; background: #fff7f1; font-family: ui-monospace, monospace;
  font-weight: 700; text-align: center;
}
.btn-outline-danger {
  border: 1px solid #e7515a; color: #e7515a; background: transparent; border-radius: 8px;
  padding: 8px 14px; font-weight: 700;
}
@media (max-width: 900px) {
  .profile-forms, .profile-facts { grid-template-columns: 1fr; }
  .profile-card { text-align: center; }
  .profile-head { flex-direction: column; }
  .profile-log article { grid-template-columns: 1fr; gap: 2px; }
  .profile-totp-setup-grid { grid-template-columns: 1fr; justify-items: center; }
}

.main-content .panel{min-width:0;max-width:100%}.main-content .panel:has(table){overflow-x:auto}

.admin-home { color: #0e1726; min-width: 0; }
.admin-home-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; position: static; }
.admin-home-filter { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-end; gap: 8px; margin: 0; }
.admin-home-filter label { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; margin: 0; color: #506690; font-size: 12px; font-weight: 700; line-height: 1.2; }
.admin-home-filter select, .admin-home-filter input {
  width: 148px; height: 40px; box-sizing: border-box; border: 1px solid #e0e6ed; border-radius: 10px;
  background: #fff; color: #0e1726; padding: 0 10px; font: 16px/1.2 Nunito, sans-serif;
}
.admin-home-filter select { width: 168px; }
.admin-date { position: relative; width: 148px; }
.admin-date input { width: 100%; padding-right: 34px; }
.admin-date-open {
  position: absolute; right: 4px; bottom: 4px; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: #4361ee; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.admin-cal {
  position: fixed; z-index: 40; width: 280px; padding: 10px; background: #fff;
  border: 1px solid #e0e6ed; border-radius: 12px; box-shadow: 0 12px 32px rgba(14, 23, 38, .16); color: #0e1726;
}
.admin-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-cal-head strong { font-size: 14px; }
.admin-cal-head button {
  width: 32px; height: 32px; border: 0; border-radius: 8px; background: #eef1f6; color: #0e1726;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.admin-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: 8px; }
.admin-cal-grid span { text-align: center; color: #506690; font-size: 11px; font-weight: 800; padding: 4px 0; }
.admin-cal-grid button {
  height: 32px; border: 0; border-radius: 8px; background: transparent; color: #0e1726;
  font-weight: 700; cursor: pointer;
}
.admin-cal-grid button.is-out { color: #b8c2d0; }
.admin-cal-grid button.is-today { box-shadow: inset 0 0 0 1px #4361ee; }
.admin-cal-grid button.is-on { background: #4361ee; color: #fff; }
.admin-home-filter-actions { display: flex; align-items: center; gap: 8px; height: 40px; }
.admin-home-filter button { height: 40px; border: 0; border-radius: 10px; padding: 0 14px; font-weight: 800; cursor: pointer; }
.admin-home-filter .admin-date-open { width: 32px; height: 32px; padding: 0; border-radius: 8px; background: transparent; color: #4361ee; }
.admin-home-filter .is-apply { background: #4361ee; color: #fff; }
.admin-home-filter .is-reset { background: #eef1f6; color: #0e1726; }
.admin-chart:has(.admin-candles) { padding-left: 8px; padding-right: 8px; }
.admin-chart:has(.admin-candles) h3,
.admin-chart:has(.admin-candles) .admin-candle-note { margin-left: 8px; margin-right: 8px; }
.admin-candles { width: 100%; height: 248px; display: block; }
.admin-candle-toast {
  position: fixed; z-index: 50; pointer-events: none; min-width: 128px; padding: 8px 10px;
  border-radius: 10px; background: #0e1726; color: #fff; box-shadow: 0 10px 24px rgba(14, 23, 38, .22);
  font-size: 12px; line-height: 1.4;
}
.admin-candle-toast[hidden] { display: none; }
.admin-candle-toast strong { display: block; font-size: 13px; }
.admin-candle-toast span { display: block; color: rgba(255,255,255,.88); }
.admin-candle-note { margin: 0 0 8px; }
.admin-home h1 { margin: 0; font-size: 26px; line-height: 1.2; font-weight: 800; }
.admin-home-lead { margin: 8px 0 0; color: #506690; font-size: 14px; line-height: 1.5; }
.admin-home h2 { margin: 0; font-size: 18px; font-weight: 800; }
.admin-home h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.admin-home-note { margin: 0 0 12px; color: #506690; font-size: 13px; line-height: 1.45; }
.admin-home-loading {
  min-height: 460px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center;
}
.admin-home-loading img { width: 112px; height: 112px; }
.admin-home-loading p { margin: 0; color: #0e1726; font-size: 18px; font-weight: 800; }
.admin-home-spinner {
  width: 36px; height: 36px; border: 3px solid #e7edf5; border-top-color: #ef7d00; border-radius: 50%;
  animation: admin-home-spin .8s linear infinite;
}
@keyframes admin-home-spin { to { transform: rotate(360deg); } }
.admin-home-section { margin-top: 22px; }
.admin-stats, .admin-charts, .admin-board { display: grid; gap: 12px; }
.admin-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.admin-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-board { grid-template-columns: 1fr 1fr; align-items: start; margin-top: 22px; }
.admin-stat {
  position: relative; min-height: 118px; padding: 14px 14px 46px; border: 0; border-radius: 14px; color: #fff; min-width: 0;
  background: var(--c, #4361ee); box-shadow: 0 8px 18px rgba(14, 23, 38, 0.08);
}
.admin-stat-go {
  position: absolute; right: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px;
  background: color-mix(in srgb, var(--c, #4361ee) 68%, #000);
  color: #fff !important; font-size: 12px; font-weight: 800;
  line-height: 1; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.admin-stat-go:hover { background: color-mix(in srgb, var(--c, #4361ee) 52%, #000); }
.admin-stat b { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; }
.admin-stat span { display: block; margin-top: 6px; color: rgba(255,255,255,.92); font-size: 13px; line-height: 1.35; }
.admin-chart, .admin-block {
  background: #fff; border: 1px solid #e0e6ed; border-radius: 14px; min-width: 0; padding: 16px;
}
.admin-block { margin: 0; border-top: 4px solid var(--c, #4361ee); }
.admin-block-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.admin-block-head a { color: var(--c, #e07a32); font-weight: 800; text-decoration: none; font-size: 13px; }
.admin-donut { display: flex; gap: 12px; align-items: center; }
.admin-donut svg { width: 132px; height: 132px; flex: none; }
.admin-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.admin-legend li { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.admin-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.admin-bars { display: grid; gap: 8px; }
.admin-bar { display: grid; grid-template-columns: 92px minmax(0,1fr) auto; gap: 8px; align-items: center; font-size: 12px; }
.admin-bar-track { height: 10px; background: #eef1f6; border-radius: 999px; overflow: hidden; }
.admin-bar-fill { height: 100%; border-radius: 999px; }
.admin-table-wrap { overflow-x: auto; }
.admin-home table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-home th, .admin-home td { padding: 8px 6px; border-bottom: 1px solid #eef1f6; text-align: left; vertical-align: top; }
.admin-home th { color: #506690; font-size: 12px; font-weight: 700; }
.admin-home td a { color: #e07a32; font-weight: 700; text-decoration: none; }
.admin-detail {
  display: inline-block; padding: 4px 10px; border-radius: 8px; background: #4361ee;
  color: #fff !important; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.admin-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; background: #eef1f6; }
.admin-pill.ok { background: #e8f8ef; color: #0b7a3b; }
.admin-pill.bad { background: #fdecec; color: #b42318; }
@media (max-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-charts, .admin-board { grid-template-columns: 1fr; }
  .admin-home-top { display: block; }
  .admin-home-filter { justify-content: flex-start; margin-top: 14px; }
  .admin-home h1 { font-size: 22px; }
  .admin-bar { grid-template-columns: 78px minmax(0,1fr) auto; }
}

/* Üst bar bildirim menüsü: uzun metin ve bağlantı kutudan taşmasın */
header .dropdown ul.divide-y.w-\[300px\] {
  max-height: 70vh;
  overflow-x: hidden;
  overflow-y: auto;
}
header .dropdown ul.divide-y.w-\[300px\] .flex-1 { min-width: 0; }
header .dropdown ul.divide-y.w-\[300px\] h6,
header .dropdown ul.divide-y.w-\[300px\] .text-xs {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
header .dropdown ul.divide-y.w-\[300px\] .text-xs p { margin: 4px 0 0; }