:root{
  --accent:#ff6a00;
  --accent-soft:#fff1e6;
  --accent-2:#7c3aed;
  --accent-3:#0ea5e9;
  --accent-4:#16a34a;
  --bg:#f4f5f7;
  --surface:#ffffff;
  --border:#e4e7ec;
  --text:#171a1f;
  --muted:#6b7280;
}
body{
  background:var(--bg);
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
}
.app-shell{background:#ff6300}
.app-layout{
  min-height:calc(100vh - 2.4rem);
  margin:1.2rem;
  border-radius:18px;
  border:1px solid #dfdfdf;
  background:#fff;
  box-shadow:0 20px 45px rgba(0,0,0,.14);
  overflow:hidden;
}
.app-sidebar{
  display:none;
  background:#f9fafb;
  border-right:1px solid var(--border);
  padding:1rem .75rem;
}
.app-brand{
  display:flex;
  align-items:center;
  gap:.65rem;
  text-decoration:none;
  color:var(--text);
  margin:0 .45rem 1rem;
}
.app-brand i{
  width:1.9rem;
  height:1.9rem;
  border-radius:.55rem;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#fff;
  font-size:.95rem;
}
.app-brand-logo{
  width:1.9rem;
  height:1.9rem;
  border-radius:.55rem;
  object-fit:cover;
  flex:0 0 auto;
  border:1px solid #ffd2ad;
}
.app-brand-logo.small{
  width:1.55rem;
  height:1.55rem;
  border-radius:.45rem;
}
.app-brand strong{display:block;line-height:1.15;font-size:1.28rem;font-weight:800;letter-spacing:-.01em}
.app-brand small{display:block;color:var(--muted);font-size:.72rem}
.app-user-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:.45rem;
  padding:.9rem .75rem;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  margin:0 .45rem;
  text-decoration:none;
  color:inherit;
  transition:border-color .15s ease, box-shadow .15s ease;
}
a.app-user-card:hover{
  border-color:#ffd2ad;
  box-shadow:0 2px 10px rgba(255,122,0,.08);
  color:inherit;
}
.app-user-avatar{
  width:2.4rem;
  height:2.4rem;
  border-radius:999px;
  background:#f2f4f7;
  color:#495366;
  display:grid;
  place-items:center;
  font-size:1.2rem;
  overflow:hidden;
}
.app-user-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.account-avatar-preview{
  width:5.5rem;
  height:5.5rem;
  border-radius:999px;
  background:#f2f4f7;
  color:#6b7280;
  display:grid;
  place-items:center;
  font-size:3.2rem;
  overflow:hidden;
  border:1px solid var(--border);
  flex:0 0 auto;
}
.account-avatar-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.account-crop-wrap{
  width:100%;
  max-height:70vh;
  background:#111;
}
.account-crop-wrap img{
  display:block;
  max-width:100%;
}
.app-user-meta{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.12rem;
}
.app-user-name{
  line-height:1.25;
}
.login-mode-chip{
  display:inline-flex;
  align-items:center;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.02em;
  padding:.08rem .4rem;
  border-radius:999px;
  border:1px solid transparent;
  margin-top:.15rem;
}
.login-mode-chip.mode-system{
  background:#fee2e2;
  color:#991b1b;
  border-color:#fecaca;
}
.login-mode-chip.mode-school{
  background:#dcfce7;
  color:#166534;
  border-color:#bbf7d0;
}
.app-menu{
  margin:.85rem 0;
  display:flex;
  flex-direction:column;
  gap:.2rem;
}
.app-menu-label{
  font-size:.64rem;
  font-weight:700;
  color:#9aa0ab;
  letter-spacing:.08em;
  padding:.55rem .7rem .25rem;
}
.app-menu-link{
  display:flex;
  align-items:center;
  gap:.55rem;
  text-decoration:none;
  color:#3f4757;
  font-weight:500;
  border-radius:8px;
  padding:.5rem .7rem;
  margin:0 .3rem;
  font-size:.86rem;
}
.app-menu-link i{font-size:.9rem;color:#8b94a6}
.app-menu-link:hover{background:#f0f2f5}
.app-menu-link.active{
  background:#ffffff;
  color:#161a22;
  border:1px solid var(--border);
}
.app-menu-link.active i{color:var(--accent)}
.app-sidebar-foot{padding:.35rem}
.app-content{min-height:100vh;background:#fff}
.app-toolbar{
  align-items:center;
  justify-content:space-between;
  padding:.95rem 1.1rem;
  border-bottom:1px solid var(--border);
  background:#fff;
}
.app-toolbar-title{font-size:1.1rem;font-weight:700}
.app-toolbar-sub{font-size:.78rem;color:var(--muted)}
.app-toolbar-actions{display:flex;align-items:center;gap:.45rem}
.app-toolbar-search{
  display:flex;
  align-items:center;
  gap:.45rem;
  border:1px solid var(--border);
  border-radius:10px;
  padding:.38rem .58rem;
  min-width:220px;
  background:#f9fafb;
}
.app-toolbar-search i{color:#9aa0ab}
.app-toolbar-search input{
  border:0;
  outline:0;
  width:100%;
  background:transparent;
  font-size:.82rem;
}
.app-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  padding:.85rem 1rem;
  border-bottom:1px solid var(--border);
  background:#fff;
}
.app-topbar-brand{
  display:flex;
  align-items:center;
  gap:.4rem;
  color:var(--text);
  text-decoration:none;
  font-weight:700;
}
.app-main{padding:1rem}
.hero-panel{
  border:1px solid var(--border);
  border-radius:14px;
  padding:.95rem 1.05rem;
  background:#fcfcfd;
  box-shadow:none;
}
.page-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:.8rem;
}
.hero-kicker{
  color:#8c95a5;
  letter-spacing:.08em;
  font-size:.68rem;
}
.card{
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:none;
  background:var(--surface);
}
.card .card-body{padding:1rem}
.stat-card{overflow:hidden;position:relative}
.stat-card::after{display:none}
.kpi-card .card-body{padding:.85rem .92rem}
.kpi-value{
  font-size:1.55rem;
  font-weight:700;
  line-height:1.2;
  margin-bottom:.22rem;
}
.kpi-variant-1{
  background:linear-gradient(160deg,#fff7ed 0%,#ffffff 72%);
  border-color:#ffd8b4;
}
.kpi-variant-1 .stat-icon{background:#ffedd5;color:#c2410c}
.kpi-variant-1 .kpi-value{color:#c2410c}
.kpi-variant-2{
  background:linear-gradient(160deg,#f5f3ff 0%,#ffffff 72%);
  border-color:#ddd6fe;
}
.kpi-variant-2 .stat-icon{background:#ede9fe;color:#6d28d9}
.kpi-variant-2 .kpi-value{color:#6d28d9}
.kpi-variant-3{
  background:linear-gradient(160deg,#eff6ff 0%,#ffffff 72%);
  border-color:#bfdbfe;
}
.kpi-variant-3 .stat-icon{background:#dbeafe;color:#1d4ed8}
.kpi-variant-3 .kpi-value{color:#1d4ed8}
.kpi-variant-4{
  background:linear-gradient(160deg,#ecfdf3 0%,#ffffff 72%);
  border-color:#bbf7d0;
}
.kpi-variant-4 .stat-icon{background:#dcfce7;color:#15803d}
.kpi-variant-4 .kpi-value{color:#15803d}
.stat-icon{
  width:2.3rem;
  height:2.3rem;
  border-radius:.65rem;
  display:grid;
  place-items:center;
  background:#f2f4f7;
  color:#4d5668;
  font-size:1rem;
}
.table-responsive{
  border-radius:12px;
  padding:.8rem .95rem;
}
.table-responsive .dataTables_wrapper{
  width:100%;
}
.table-responsive .dataTables_length,
.table-responsive .dataTables_filter{
  margin-bottom:.7rem;
}
.table-responsive .dataTables_filter{
  text-align:right;
  padding-right:.35rem;
}
.table-responsive .dataTables_length label,
.table-responsive .dataTables_filter label{
  display:flex;
  align-items:center;
  gap:.55rem;
  flex-wrap:wrap;
}
.table-responsive .dataTables_filter label{
  justify-content:flex-end;
}
.table-responsive .dataTables_filter input{
  min-width:10.5rem;
}
.table-responsive .dataTables_length select.form-select{
  min-width:4.8rem;
  padding:.45rem 2.15rem .45rem .75rem;
  background-position:right .75rem center;
  background-size:14px 10px;
}
.table-responsive .dataTables_info,
.table-responsive .dataTables_paginate{
  margin-top:.7rem;
}
.table-responsive .table{margin-bottom:0!important}

/* DataTables pill pagination (global) */
.dataTables_wrapper .dt-footer{
  display:flex;
  justify-content:center;
  margin-top:1rem;
  padding-top:.15rem;
}
.dataTables_wrapper .dt-pill{
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.35rem 1rem;
  max-width:100%;
  padding:.45rem .7rem .45rem .55rem;
  background:#fff;
  border:1px solid #eceff3;
  border-radius:999px;
  box-shadow:0 10px 28px rgba(15,23,42,.07);
}
.dataTables_wrapper .dt-pill .dataTables_paginate,
.dataTables_wrapper .dt-pill .dataTables_info{
  float:none!important;
  margin:0!important;
  padding:0!important;
  text-align:left!important;
}
.dataTables_wrapper .dt-pill .dataTables_info{
  color:#6b7280;
  font-size:.82rem;
  font-weight:500;
  white-space:nowrap;
  padding-right:.35rem!important;
  margin-left:auto!important;
}
.dataTables_wrapper .dt-pill .pagination{
  --bs-pagination-padding-x:.2rem;
  --bs-pagination-padding-y:.2rem;
  --bs-pagination-font-size:.88rem;
  --bs-pagination-color:#4b5563;
  --bs-pagination-bg:transparent;
  --bs-pagination-border-width:0;
  --bs-pagination-border-color:transparent;
  --bs-pagination-hover-color:#111827;
  --bs-pagination-hover-bg:#f3f4f6;
  --bs-pagination-hover-border-color:transparent;
  --bs-pagination-focus-color:#111827;
  --bs-pagination-focus-bg:#f3f4f6;
  --bs-pagination-focus-box-shadow:none;
  --bs-pagination-active-color:#fff;
  --bs-pagination-active-bg:#6366f1;
  --bs-pagination-active-border-color:#6366f1;
  --bs-pagination-disabled-color:#c4c9d2;
  --bs-pagination-disabled-bg:transparent;
  --bs-pagination-disabled-border-color:transparent;
  display:inline-flex;
  align-items:center;
  flex-wrap:wrap;
  gap:.1rem;
  margin:0;
}
.dataTables_wrapper .dt-pill .page-item .page-link{
  min-width:2rem;
  height:2rem;
  padding:0 .55rem;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.28rem;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:#4b5563!important;
  font-weight:500;
  line-height:1;
  box-shadow:none!important;
}
.dataTables_wrapper .dt-pill .page-item.previous .page-link,
.dataTables_wrapper .dt-pill .page-item.next .page-link{
  min-width:auto;
  padding:0 .7rem;
  color:#374151!important;
}
.dataTables_wrapper .dt-pill .page-item.previous .page-link .dt-page-label,
.dataTables_wrapper .dt-pill .page-item.next .page-link .dt-page-label{
  font-size:.84rem;
}
.dataTables_wrapper .dt-pill .page-item .page-link:hover{
  background:#f3f4f6!important;
  color:#111827!important;
}
.dataTables_wrapper .dt-pill .page-item.active .page-link,
.dataTables_wrapper .dt-pill .page-item.active .page-link:hover{
  min-width:2rem;
  width:2rem;
  padding:0;
  border-radius:50%!important;
  background:#6366f1!important;
  color:#fff!important;
  font-weight:700;
}
.dataTables_wrapper .dt-pill .page-item.disabled .page-link,
.dataTables_wrapper .dt-pill .page-item.disabled .page-link:hover{
  background:transparent!important;
  color:#c4c9d2!important;
  opacity:1;
}
.dataTables_wrapper .dt-pill .page-item.ellipsis .page-link,
.dataTables_wrapper .dt-pill .paginate_button.ellipsis{
  min-width:1.4rem;
  color:#9ca3af!important;
  pointer-events:none;
}
.dataTables_wrapper .dt-pill .page-link i{
  font-size:.85rem;
  line-height:1;
}

@media(max-width:768px){
  .dataTables_wrapper .dt-pill{
    width:100%;
    justify-content:space-between;
    border-radius:18px;
    padding:.55rem .65rem;
  }
  .dataTables_wrapper .dt-pill .dataTables_paginate{
    order:1;
  }
  .dataTables_wrapper .dt-pill .dataTables_info{
    order:2;
    font-size:.76rem;
    padding-right:0!important;
  }
  .dataTables_wrapper .dt-pill .page-item.previous .page-link .dt-page-label,
  .dataTables_wrapper .dt-pill .page-item.next .page-link .dt-page-label{
    display:none;
  }
  .dataTables_wrapper .dt-pill .page-item.previous .page-link,
  .dataTables_wrapper .dt-pill .page-item.next .page-link{
    min-width:2rem;
    width:2rem;
    padding:0;
  }
}
.empty-state{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  padding:1.5rem .75rem;
  color:#9aa3b2;
  text-align:center;
}
.empty-state-icon{
  font-size:1.7rem;
  line-height:1;
  color:#b0b7c3;
}
.empty-state-text{
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.01em;
  color:#9aa3b2;
}
.report-chart-wrap{
  position:relative;
  width:100%;
  min-height:220px;
}
table.dataTable tbody td.dataTables_empty{
  padding:1.25rem .75rem!important;
  border-bottom:0!important;
}
.table{font-size:.87rem}
.table>:not(caption)>*>*{
  padding:.7rem .75rem;
  vertical-align:middle;
  border-color:#eef1f4;
}
.table,
.table-striped,
table.dataTable{
  --bs-table-striped-bg: rgba(0,0,0,.012);
  --bs-table-striped-color: inherit;
}
.table-striped > tbody > tr:nth-of-type(odd) > *,
.table > tbody > tr:nth-of-type(odd) > *,
table.dataTable.table-striped > tbody > tr.odd > *,
table.dataTable.display > tbody > tr.odd > *,
table.dataTable.stripe > tbody > tr.odd > *{
  --bs-table-bg-type: rgba(0,0,0,.012)!important;
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,.012)!important;
  background-color:transparent!important;
}
.table-striped > tbody > tr:nth-of-type(even) > *,
.table > tbody > tr:nth-of-type(even) > *,
table.dataTable.table-striped > tbody > tr.even > *,
table.dataTable.display > tbody > tr.even > *,
table.dataTable.stripe > tbody > tr.even > *{
  --bs-table-bg-type: transparent!important;
  box-shadow: none!important;
  background-color:transparent!important;
}
.compact-list .list-group-item{
  border:0;
  border-top:1px solid #eef1f4;
}
.compact-list .list-group-item:first-child{border-top:0}
.compact-list .list-group-item:hover{background:#fafbfc}
.table thead th{
  color:#697386;
  font-size:.74rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.progress{
  background:#edf1f6;
  border-radius:999px;
  height:10px!important;
}
.progress-bar{background:linear-gradient(135deg,var(--accent),#ff8a00)}
.progress-bar-good{background:linear-gradient(135deg,#16a34a,#22c55e)!important}
.progress-bar-warn{background:linear-gradient(135deg,#d97706,#f59e0b)!important}
.progress-bar-danger{background:linear-gradient(135deg,#dc2626,#ef4444)!important}
.badge{
  border-radius:999px;
  font-weight:600;
  letter-spacing:.01em;
}
.badge-soft-success{background:#d1fadf;color:#05603a;border:1px solid #86efac}
.badge-soft-warning{background:#fff1c2;color:#8a4b00;border:1px solid #facc15}
.badge-soft-danger{background:#ffd9d9;color:#b42318;border:1px solid #fda4af}
.badge-soft-info{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd}
.badge-soft-primary{background:#ede9fe;color:#5b21b6;border:1px solid #c4b5fd}
.badge.text-bg-light{
  background:#eef2ff!important;
  color:#3730a3!important;
  border:1px solid #c7d2fe;
}
.btn{
  border-radius:9px;
  font-size:.82rem;
  font-weight:600;
  padding:.45rem .72rem;
}
.btn-primary{
  background:linear-gradient(135deg,var(--accent),#ff8a00);
  border-color:#ff7a1a;
  color:#fff;
}
.btn-primary:hover{
  background:linear-gradient(135deg,#e85f00,#ff7a1a);
  border-color:#e85f00;
}
.btn-light,.btn-outline-secondary{
  border-color:#c7d2fe;
  color:#3730a3;
  background:#eef2ff;
}
.btn-light:hover{
  background:#e0e7ff;
  border-color:#a5b4fc;
  color:#312e81;
}
.btn-outline-secondary{
  border-color:#d8b4fe;
  color:#7e22ce;
  background:#faf5ff;
}
.btn-outline-secondary:hover{
  border-color:#c084fc;
  background:#f3e8ff;
  color:#6b21a8;
}
.btn-outline-primary{
  border-color:#7dd3fc;
  color:#0369a1;
  background:#f0f9ff;
}
.btn-outline-primary:hover{
  border-color:#38bdf8;
  color:#075985;
  background:#e0f2fe;
}
.form-control,.form-select{
  border-radius:9px;
  border-color:var(--border);
  padding:.58rem .7rem;
  font-size:.85rem;
}
.feature-tile{
  display:flex;
  gap:.72rem;
  border:1px solid var(--border);
  border-radius:11px;
  padding:.7rem;
  background:#fff;
}
.feature-icon{
  width:2rem;
  height:2rem;
  border-radius:.6rem;
  display:grid;
  place-items:center;
  background:#f3f5f8;
  color:#4a5567;
  flex:0 0 auto;
}
.feature-tag{
  display:inline-block;
  border-radius:999px;
  padding:.12rem .45rem;
  font-size:.68rem;
  font-weight:600;
  color:#7c4a00;
  background:var(--accent-soft);
  white-space:nowrap;
}
.auth-shell{
  position:relative;
  isolation:isolate;
  background:
    radial-gradient(ellipse 90% 70% at 12% 8%,rgba(255,255,255,.35) 0%,transparent 55%),
    radial-gradient(ellipse 80% 60% at 88% 92%,rgba(255,140,0,.45) 0%,transparent 50%),
    linear-gradient(145deg,#ff8a1a 0%,#ff6a00 42%,#e85a00 78%,#c2410c 100%);
  overflow:hidden;
}
.auth-shell::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 70% 20%,rgba(255,210,150,.28) 0%,transparent 42%),
    radial-gradient(circle at 20% 80%,rgba(255,255,255,.12) 0%,transparent 40%);
  pointer-events:none;
}
.auth-card{
  border:1px solid rgba(255,255,255,.55);
  border-radius:18px;
  background:rgba(255,255,255,.97);
  box-shadow:
    0 28px 60px rgba(154,52,18,.28),
    0 2px 0 rgba(255,255,255,.65) inset;
  backdrop-filter:blur(8px);
}
.auth-card .auth-brand-title{
  font-size:1.55rem;
  letter-spacing:-.02em;
  color:#1a1a1a;
}
.auth-card .auth-subtitle{
  color:#6b7280;
  font-size:.9rem;
  line-height:1.45;
}
.auth-field{
  margin-bottom:1rem;
}
.auth-field .form-label{
  font-size:.78rem;
  font-weight:600;
  letter-spacing:.01em;
  color:#374151;
  margin-bottom:.4rem;
}
.auth-field .form-label .hint{
  font-weight:500;
  color:#9ca3af;
}
.auth-input{
  display:flex;
  align-items:stretch;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#fafafa;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
  overflow:hidden;
}
.auth-input:focus-within{
  border-color:#ff8a3d;
  background:#fff;
  box-shadow:0 0 0 3px rgba(255,106,0,.16);
}
.auth-input .auth-input-icon{
  display:grid;
  place-items:center;
  width:2.65rem;
  color:#9ca3af;
  flex:0 0 auto;
  font-size:1rem;
}
.auth-input .form-control{
  border:0;
  background:transparent;
  border-radius:0;
  box-shadow:none;
  padding:.72rem .85rem .72rem 0;
  font-size:.92rem;
  color:#111827;
}
.auth-input .form-control:focus{
  box-shadow:none;
  background:transparent;
}
.auth-input .form-control::placeholder{
  color:#b0b7c3;
}
.auth-input .auth-input-action{
  border:0;
  background:transparent;
  color:#9ca3af;
  width:2.65rem;
  display:grid;
  place-items:center;
  padding:0;
  flex:0 0 auto;
}
.auth-input .auth-input-action:hover{
  color:#ff6a00;
}
.auth-meta-row{
  display:flex;
  justify-content:flex-end;
  margin:-.35rem 0 1.15rem;
}
.auth-meta-row a{
  font-size:.82rem;
  font-weight:600;
  color:#c2410c;
  text-decoration:none;
}
.auth-meta-row a:hover{
  color:#9a3412;
  text-decoration:underline;
}
.auth-submit{
  border-radius:12px;
  font-weight:700;
  letter-spacing:.01em;
  padding:.78rem 1rem;
  box-shadow:0 10px 22px rgba(255,106,0,.28);
}
.auth-footer-link{
  margin-top:1.1rem;
  text-align:center;
  font-size:.84rem;
}
.auth-footer-link a{
  color:#c2410c;
  font-weight:600;
  text-decoration:none;
}
.auth-footer-link a:hover{
  text-decoration:underline;
}
.auth-alert{
  border-radius:12px;
  font-size:.88rem;
  border:0;
}
.parent-school-choice{
  border-radius:14px;
  border-width:1px;
}
.parent-school-choice:hover{
  background:#fff7f1;
}
.portal-option{
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  height:100%;
  transition:all .18s ease;
}
.portal-option:hover{
  border-color:#ffd0ad;
  transform:translateY(-2px);
  box-shadow:0 10px 20px rgba(0,0,0,.06);
}
.portal-option .portal-head{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:.4rem;
}
.portal-option .portal-icon{
  width:2rem;
  height:2rem;
  border-radius:.6rem;
  display:grid;
  place-items:center;
  background:#fff2e8;
  color:#c2410c;
}
/* Structured modal form (schools, reusable) */
.form-structure .modal-header{
  align-items:flex-start;
  gap:1rem;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg,#fffaf5 0%,#fff 100%);
}
.form-structure-eyebrow{
  font-size:.68rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
  margin-bottom:.2rem;
}
.form-structure .modal-body{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  background:#f8f9fb;
}
.form-structure-block{
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  padding:1rem 1.05rem 1.1rem;
}
.form-structure-head{
  display:flex;
  align-items:flex-start;
  gap:.75rem;
  margin-bottom:.9rem;
  padding-bottom:.75rem;
  border-bottom:1px dashed #e8eaee;
}
.form-structure-index{
  flex:0 0 auto;
  min-width:2.1rem;
  height:2.1rem;
  padding:0 .35rem;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.04em;
  color:#9a3412;
  background:var(--accent-soft);
  border:1px solid #ffd7b8;
}
.form-structure-title{
  margin:0;
  font-size:.95rem;
  font-weight:700;
  line-height:1.25;
  color:var(--text);
}
.form-structure-desc{
  margin:.15rem 0 0;
  font-size:.78rem;
  line-height:1.45;
  color:var(--muted);
}
.form-structure-meta{
  border:1px solid #eee;
  border-radius:10px;
  background:#fafbfc;
  padding:.55rem .7rem;
  display:flex;
  flex-direction:column;
  gap:.35rem;
}
.form-structure-meta-row{
  display:grid;
  grid-template-columns:4.5rem 1fr;
  gap:.5rem;
  align-items:start;
  font-size:.75rem;
}
.form-structure-meta-row > span{
  color:var(--muted);
  font-weight:600;
  padding-top:.1rem;
}
.form-structure-meta-row code{
  display:block;
  word-break:break-all;
  background:transparent;
  color:var(--text);
  font-size:.72rem;
}
.form-structure .modal-footer{
  border-top:1px solid var(--border);
  background:#fff;
}

@media(min-width:992px){
  .app-shell .app-layout{
    display:grid;
    grid-template-columns:245px 1fr;
  }
  .app-sidebar{
    display:flex;
    flex-direction:column;
    height:100%;
  }
  .app-main{padding:1.1rem 1.25rem}
}
.guide-layout{
  display:grid;
  gap:1rem;
}
@media(min-width:992px){
  .guide-layout{
    grid-template-columns:260px minmax(0,1fr);
    align-items:start;
  }
  .guide-toc{
    position:sticky;
    top:1rem;
  }
}
.guide-toc-list{
  display:flex;
  flex-direction:column;
  gap:.2rem;
}
.guide-toc-link{
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  padding:.45rem .55rem;
  border-radius:8px;
  color:var(--text);
  text-decoration:none;
  font-size:.9rem;
  line-height:1.3;
}
.guide-toc-link i{color:var(--accent);margin-top:.1rem}
.guide-toc-link:hover{
  background:var(--accent-soft);
  color:var(--text);
}
.guide-flow-card .card-body{padding:1rem 1.05rem}
.guide-flow{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:.55rem;
  padding:0;
  margin:0;
}
.guide-flow-step{
  display:flex;
  align-items:center;
  gap:.35rem;
  margin:0;
  flex:1 1 140px;
  min-width:0;
}
.guide-flow-link{
  display:flex;
  align-items:center;
  gap:.55rem;
  width:100%;
  min-height:3.5rem;
  padding:.55rem .65rem;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  color:inherit;
  text-decoration:none;
  transition:border-color .15s ease, background .15s ease;
}
.guide-flow-link:hover{
  border-color:#ffc49a;
  background:var(--accent-soft);
  color:inherit;
}
.guide-flow-num{
  width:1.35rem;
  height:1.35rem;
  border-radius:999px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:var(--accent);
  color:#fff;
  font-size:.72rem;
  font-weight:700;
  line-height:1;
}
.guide-flow-icon{
  width:1.7rem;
  height:1.7rem;
  border-radius:.45rem;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:#fff7f0;
  color:var(--accent);
  border:1px solid #ffe0c7;
}
.guide-flow-meta{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.2;
}
.guide-flow-label{
  font-weight:700;
  font-size:.9rem;
}
.guide-flow-hint{
  color:var(--muted);
  font-size:.72rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.guide-flow-arrow{
  display:none;
  color:#c4c9d2;
  font-size:.85rem;
  flex:0 0 auto;
}
@media(min-width:1200px){
  .guide-flow{flex-wrap:nowrap;gap:.4rem}
  .guide-flow-step{flex:1 1 0}
  .guide-flow-arrow{display:inline-flex}
}
.guide-accordion .accordion-item{
  border:1px solid var(--border);
  border-radius:12px!important;
  overflow:hidden;
  margin-bottom:.65rem;
  background:#fff;
}
.guide-accordion .accordion-button{
  gap:.75rem;
  background:#fcfcfd;
  box-shadow:none;
}
.guide-accordion .accordion-button:not(.collapsed){
  background:var(--accent-soft);
  color:var(--text);
}
.guide-accordion .accordion-button:focus{box-shadow:none}
.guide-acc-icon{
  width:2rem;
  height:2rem;
  border-radius:.55rem;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid var(--border);
  color:var(--accent);
  flex:0 0 auto;
}
.guide-acc-text{padding-right:1rem;text-align:left}
.guide-body{font-size:.95rem;line-height:1.55}
.guide-body h6{margin-top:.25rem}
.guide-body ul,.guide-body ol{padding-left:1.15rem}
.guide-video{
  max-width:605px;
  margin:1rem 0;
  overflow-x:auto;
}
.guide-video .tiktok-embed{
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
}
.guide-code{
  display:block;
  padding:.75rem .9rem;
  border:1px solid var(--border);
  border-radius:10px;
  background:#f8fafc;
  font-size:.82rem;
  white-space:pre-wrap;
  word-break:break-word;
}
.guide-filter{
  display:flex;
  flex-wrap:nowrap;
  align-items:stretch;
  width:100%;
  border:1px solid var(--border);
  border-radius:8px;
  overflow:hidden;
  background:#fff;
}
.guide-filter-btn{
  flex:1 1 0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:0;
  padding:.4rem .25rem;
  border:0;
  border-right:1px solid var(--border);
  background:transparent;
  color:var(--muted);
  text-decoration:none;
  line-height:1;
}
.guide-filter-btn:last-child{border-right:0}
.guide-filter-btn i{font-size:.95rem;line-height:1}
.guide-filter-btn:hover{
  background:#f8fafc;
  color:var(--text);
}
.guide-filter-btn.active{
  background:var(--accent);
  color:#fff;
}
.guide-filter-btn.active:hover{color:#fff}
@media(max-width:991px){
  .app-shell .app-layout{
    margin:0;
    min-height:100vh;
    border-radius:0;
    border:0;
  }
}
@media(max-width:768px){
  .page-head{flex-direction:column}
  .display-6{font-size:1.5rem}
  .table{font-size:.82rem}
  .mobile-stack td,.mobile-stack th{white-space:nowrap}
}
@media print{
  .app-sidebar,.app-topbar,.app-toolbar,.no-print{display:none!important}
  body{background:#fff}
  .app-layout{margin:0;border:0;box-shadow:none}
  .card{box-shadow:none;border:1px solid #ddd}
}
