.attols-app{
  --at-primary:#1f54a5;
  --at-primary-dark:#123d7a;
  --at-success:#17643a;
  --at-success-bg:#eaf6ef;
  --at-warning:#8a5a00;
  --at-warning-bg:#fff7e5;
  --at-danger:#a3261e;
  --at-danger-bg:#fff1f0;
  --at-text:#182033;
  --at-muted:#657087;
  --at-line:#e3e8f1;
  --at-soft:#f6f9fe;
  --at-panel:#fbfcfe;
  --at-card:#ffffff;
  max-width:1040px;
  margin:22px auto;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--at-text);
}

.attols-card{
  background:var(--at-card);
  border:1px solid var(--at-line);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 10px 34px rgba(24,42,75,.08);
}

.attols-header{
  padding:28px 28px 18px;
  background:linear-gradient(180deg,#f4f8ff 0%,#ffffff 100%);
}
.attols-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#e9f2ff;
  color:#18417e;
  font-size:11px;
  font-weight:900;
  letter-spacing:.06em;
  margin-bottom:10px;
}
.attols-header h2{
  margin:0 0 8px;
  font-size:clamp(24px,3.2vw,36px);
  line-height:1.18;
  letter-spacing:-.02em;
}
.attols-header p{
  margin:0;
  color:var(--at-muted);
  font-size:15px;
  line-height:1.6;
}

.attols-form{
  padding:22px 28px 24px;
}
.attols-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.attols-field label{
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:900;
}
.attols-field label span{color:#b3261e;}
.attols-field input,
.attols-field select{
  width:100%;
  box-sizing:border-box;
  border:1px solid #cfd8e6;
  border-radius:14px;
  background:#fff;
  padding:14px 15px;
  min-height:52px;
  font-size:18px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}
.attols-field input:focus,
.attols-field select:focus{
  border-color:#6f8fca;
  box-shadow:0 0 0 4px rgba(31,84,165,.10);
}
.attols-field small{
  display:block;
  margin-top:7px;
  color:var(--at-muted);
  font-size:12px;
  line-height:1.5;
}

.attols-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}
.attols-actions button,
.attols-result-btn,
.attols-view-result,
.attols-copy,
.attols-debug-btn{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  border-radius:12px;
  min-height:46px;
  padding:11px 18px;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  transition:transform .12s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.attols-actions button:hover,
.attols-result-btn:hover,
.attols-view-result:hover,
.attols-copy:hover,
.attols-debug-btn:hover{
  transform:translateY(-1px);
}
.attols-primary,
.attols-result-btn,
.attols-view-result,
.attols-debug-btn{
  background:var(--at-primary);
  color:#fff!important;
  box-shadow:0 6px 18px rgba(31,84,165,.16);
}
.attols-primary:hover,
.attols-result-btn:hover,
.attols-view-result:hover,
.attols-debug-btn:hover{
  background:var(--at-primary-dark);
}
.attols-primary:disabled,
.attols-result-btn:disabled,
.attols-view-result:disabled{
  opacity:.68;
  cursor:wait;
  transform:none;
}
.attols-clear{
  background:#eef2f7;
  color:#344158;
}
.attols-copy{
  background:#fff;
  color:#173559;
  border:1px solid #cdd7e6;
  min-width:88px;
  box-shadow:none;
}
.attols-copy:hover{background:#f7f9fc;}

.attols-privacy{
  margin-top:18px;
  padding:13px 14px;
  border-radius:12px;
  background:#f8fafc;
  color:#566176;
  font-size:12px;
  line-height:1.6;
}

.attols-status{
  margin:0 28px 16px;
  padding:0;
  font-weight:900;
  line-height:1.55;
  font-size:15px;
}
.attols-status:empty{display:none;}
.attols-info{color:#43536f;}
.attols-success{color:var(--at-success);}
.attols-warning{color:var(--at-warning);}
.attols-error{color:var(--at-danger);}

.attols-result{
  padding:0 28px 28px;
}
.attols-match-list{
  display:grid;
  gap:16px;
}
.attols-result-card{
  border:1px solid var(--at-line);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 4px 16px rgba(24,42,75,.04);
}
.attols-match{margin:0;}

.attols-candidate{
  padding:18px 18px 14px;
  background:linear-gradient(180deg,#f7fbff 0%,#fcfdff 100%);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.attols-candidate span,
.attols-ticket span{
  display:block;
  color:var(--at-muted);
  font-size:12px;
  font-weight:800;
  margin-bottom:5px;
}
.attols-candidate strong{
  display:block;
  font-size:29px;
  line-height:1.15;
  font-weight:900;
  word-break:break-word;
}
.attols-source{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  align-self:flex-start;
  margin-left:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.03em;
}
.is-live{background:#e9f7ef;color:#17643a;}
.is-offline{background:#fff4d9;color:#7a5300;}

.attols-details{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding:16px 18px;
  background:#fff;
  border-top:1px solid var(--at-line);
}
.attols-main-details{background:#fff;}
.attols-detail{
  min-width:0;
  padding:12px 13px;
  border:1px solid #e6ebf3;
  border-radius:12px;
  background:#fbfcfe;
}
.attols-detail span{
  display:block;
  color:var(--at-muted);
  font-size:11px;
  font-weight:800;
  margin-bottom:5px;
}
.attols-detail strong{
  display:block;
  font-size:14px;
  line-height:1.45;
  word-break:break-word;
}
.attols-detail.is-missing{
  background:#fbfbfc;
}
.attols-detail.is-missing strong{
  color:#1f2c42;
  opacity:.9;
}

.attols-ticket{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px;
  border-top:1px solid var(--at-line);
  background:#fff;
}
.attols-ticket > div:first-child{
  min-width:0;
}
.attols-ticket-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  flex:0 0 auto;
}
.attols-hall-link{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:transparent;
  padding:2px 0;
  color:#0b55aa;
  font:inherit;
  font-size:34px;
  line-height:1.08;
  font-weight:900;
  letter-spacing:.01em;
  text-decoration:underline;
  text-decoration-thickness:1.5px;
  text-underline-offset:4px;
  cursor:pointer;
  text-align:left;
  word-break:break-all;
}
.attols-hall-link:hover,
.attols-hall-link:focus{
  color:#073b79;
  text-decoration-thickness:2px;
  outline:none;
}
.attols-hall-link:focus-visible{
  box-shadow:0 0 0 4px rgba(31,84,165,.14);
  border-radius:8px;
}
.attols-hall-link.is-loading,
.attols-hall-link:disabled{
  opacity:.62;
  cursor:wait;
}

.attols-help-box,
.attols-auto-result-note,
.attols-error-box,
.attols-small-note{
  margin-top:12px;
  padding:12px 14px;
  border-radius:12px;
  font-size:13px;
  line-height:1.6;
}
.attols-help-box,
.attols-auto-result-note{
  background:#f5f8fd;
  color:#53617a;
}
.attols-error-box{
  background:var(--at-danger-bg);
  color:#8f241d;
  font-weight:700;
}
.attols-small-note{
  background:#f7f9fc;
  color:#51607a;
}
.attols-loading{
  color:#566176;
  font-size:14px;
  line-height:1.5;
}

.attols-memo-area{
  border-top:1px solid var(--at-line);
  padding:18px;
  background:#fcfdff;
}
.attols-memo-area:empty{display:none;}
.attols-auto-result-card{
  border:1px solid #dfe6f0;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 4px 14px rgba(24,42,75,.05);
}
.attols-result-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 16px;
  background:linear-gradient(180deg,#f4f8fe 0%,#fafdff 100%);
  border-bottom:1px solid #dfe6f0;
}
.attols-result-title strong{
  display:block;
  font-size:18px;
  color:#0b4f9c;
}
.attols-result-title small{
  display:block;
  margin-top:4px;
  color:var(--at-muted);
  font-size:12px;
}
.attols-result-person-grid,
.attols-marks-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  padding:16px;
}
.attols-marks-grid{
  border-top:1px solid #e7ebf2;
  background:#fbfcfe;
}
.attols-result-field{
  min-width:0;
  border:1px solid #e5e9f0;
  border-radius:12px;
  padding:12px 13px;
  background:#fff;
}
.attols-result-field span{
  display:block;
  color:#657087;
  font-size:11px;
  font-weight:800;
  margin-bottom:5px;
}
.attols-result-field strong{
  display:block;
  font-size:15px;
  line-height:1.45;
  word-break:break-word;
}
.attols-result-field.is-em{
  border-color:#bdd2ef;
  background:#f3f8ff;
}
.attols-result-field.is-em strong{
  font-size:22px;
  color:#0a4e9b;
}

.attols-raw-result{
  margin:0 16px 16px;
  border:1px solid #e1e6ee;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
}
.attols-raw-result summary{
  cursor:pointer;
  font-weight:900;
  color:#40506a;
  padding:12px 14px;
  list-style:none;
}
.attols-raw-result summary::-webkit-details-marker{display:none;}

.attols-table-wrap{
  overflow:auto;
  border-top:1px solid var(--at-line);
}
.attols-table{
  width:100%;
  min-width:560px;
  border-collapse:separate;
  border-spacing:0;
}
.attols-table td{
  padding:10px 12px;
  border-bottom:1px solid #edf0f5;
  vertical-align:top;
  font-size:13px;
}
.attols-table tr:nth-child(odd){background:#fafbfd;}

.attols-debug{
  margin:16px 0;
  border:1px dashed #c8d2e3;
  border-radius:14px;
  padding:12px;
  background:#fbfdff;
}
.attols-debug summary{
  cursor:pointer;
  font-weight:900;
  color:#163d76;
}
.attols-debug-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0;
}
.attols-debug pre{
  white-space:pre-wrap;
  overflow:auto;
  max-height:420px;
  background:#f6f8fb;
  border-radius:10px;
  padding:12px;
  font-size:12px;
  line-height:1.5;
}

.attols-official-note{
  padding:14px 28px 20px;
  border-top:1px solid var(--at-line);
  color:#6b7485;
  font-size:12px;
  line-height:1.6;
}

/* Tablet */
@media (max-width:860px){
  .attols-details,
  .attols-result-person-grid,
  .attols-marks-grid{
    grid-template-columns:1fr 1fr;
  }
  .attols-candidate strong{
    font-size:24px;
  }
  .attols-hall-link{
    font-size:28px;
  }
}

/* Mobile */
@media (max-width:680px){
  .attols-app{
    margin:10px 0;
  }
  .attols-card{
    border-radius:14px;
  }
  .attols-header,
  .attols-form,
  .attols-result,
  .attols-official-note{
    padding-left:14px;
    padding-right:14px;
  }
  .attols-status{
    margin-left:14px;
    margin-right:14px;
  }
  .attols-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  .attols-field input,
  .attols-field select{
    min-height:50px;
    font-size:18px;
  }
  .attols-actions{
    gap:10px;
  }
  .attols-actions button{
    flex:1 1 calc(50% - 5px);
  }
  .attols-primary{
    flex-basis:100%!important;
  }

  .attols-candidate{
    flex-direction:column;
    align-items:flex-start;
  }
  .attols-source{
    margin-left:0;
    margin-top:2px;
  }
  .attols-candidate strong{
    font-size:22px;
  }

  .attols-details{
    grid-template-columns:1fr 1fr;
    padding:12px 14px;
    gap:10px;
  }
  .attols-ticket{
    flex-direction:column;
    align-items:flex-start;
    padding:14px;
  }
  .attols-ticket-actions{
    width:100%;
  }
  .attols-copy{
    min-width:0;
    width:100%;
  }
  .attols-hall-link{
    font-size:24px;
  }

  .attols-memo-area{
    padding:14px;
  }
  .attols-result-title{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }
  .attols-result-person-grid,
  .attols-marks-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding:14px;
  }
}

/* Small mobile */
@media (max-width:480px){
  .attols-header{
    padding-top:18px;
    padding-bottom:14px;
  }
  .attols-header h2{
    font-size:28px;
  }
  .attols-header p{
    font-size:14px;
  }
  .attols-actions button{
    min-height:48px;
    font-size:15px;
  }
  .attols-details,
  .attols-result-person-grid,
  .attols-marks-grid{
    grid-template-columns:1fr;
  }
  .attols-detail,
  .attols-result-field{
    padding:11px 12px;
  }
  .attols-result-field.is-em strong{
    font-size:19px;
  }
  .attols-hall-link{
    font-size:20px;
  }
  .attols-table{
    min-width:480px;
  }
}

/* v1.5.5 Security Clean Final */
.attols-privacy,
.attols-official-note,
.attols-debug,
.attols-raw-result {
  display: none !important;
}
.attols-card {
  border-radius: 18px !important;
  overflow: hidden;
}
.attols-result {
  padding-top: 0 !important;
}
.attols-table-card {
  border: 1px solid #dfe7f4;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 55, 90, .06);
  margin-top: 16px;
}
.attols-table-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: #f5f8fd;
  border-bottom: 1px solid #dfe7f4;
  color: #17386f;
  line-height: 1.4;
}
.attols-table-top strong {
  font-size: 15px;
}
.attols-table-top span {
  color: #59677d;
  font-size: 13px;
}
.attols-search-table-wrap {
  max-height: 640px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.attols-search-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.attols-search-table th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #0b4ea2 !important;
  color: #ffffff !important;
  text-align: left;
  padding: 13px 10px;
  font-weight: 900;
  border-right: 1px solid rgba(255,255,255,.28) !important;
  border-bottom: 2px solid #06306c !important;
  white-space: nowrap;
  text-shadow: none !important;
  letter-spacing: .02em;
}
.attols-search-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #e7edf6;
  border-right: 1px solid #eef2f8;
  vertical-align: middle;
  color: #14233f;
  background: #fff;
}
.attols-search-table tr:nth-child(even) td {
  background: #fbfdff;
}
.attols-search-table tr.is-selected td {
  background: #eef6ff;
  box-shadow: inset 0 1px 0 #cfe2ff, inset 0 -1px 0 #cfe2ff;
}
.attols-sno {
  text-align: center;
  width: 55px;
  font-weight: 800;
  color: #53627a;
}
.attols-name-cell {
  min-width: 170px;
}
.attols-ticket-cell {
  min-width: 150px;
}
.attols-hall-link {
  border: 0;
  background: transparent;
  color: #0057b8;
  text-decoration: underline;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 0;
}
.attols-hall-link:hover,
.attols-hall-link:focus {
  color: #003f87;
  outline: none;
}
.attols-copy {
  border: 1px solid #c9d7ea;
  background: #fff;
  border-radius: 10px;
  color: #17386f;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
}
.attols-copy:hover {
  background: #f1f6ff;
}
.attols-source {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.attols-source.is-live {
  color: #166337;
  background: #e7f8ed;
}
.attols-source.is-offline {
  color: #8a5a00;
  background: #fff4d8;
}
.attols-selected-result {
  margin-top: 18px;
}
.attols-result-panel-head {
  border: 1px solid #dfe7f4;
  border-bottom: 0;
  background: #f5f8fd;
  color: #17386f;
  border-radius: 16px 16px 0 0;
  padding: 13px 16px;
  font-weight: 800;
}
.attols-selected-result .attols-auto-result-card {
  border-radius: 0 0 16px 16px;
  margin-top: 0;
}
.attols-auto-result-card {
  border: 1px solid #dfe7f4;
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(25, 55, 90, .06);
}
.attols-result-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #e5ecf7;
}
.attols-result-title strong {
  display: block;
  color: #004a9f;
  font-size: 20px;
  line-height: 1.25;
}
.attols-result-title small {
  display: block;
  color: #5b6880;
  margin-top: 4px;
}
.attols-result-person-grid,
.attols-marks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.attols-result-field {
  border: 1px solid #dfe7f4;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  min-height: 58px;
}
.attols-result-field span {
  display: block;
  color: #52627a;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}
.attols-result-field strong {
  display: block;
  color: #071b3a;
  font-size: 14px;
  line-height: 1.35;
}
.attols-result-field.is-em {
  border-color: #abcaf5;
  background: #f4f8ff;
}
.attols-result-field.is-em strong {
  color: #004ca6;
  font-size: 16px;
}
.attols-loading,
.attols-error-box {
  border-radius: 12px;
  padding: 13px 14px;
  font-weight: 800;
  line-height: 1.5;
}
.attols-loading {
  background: #f2f7ff;
  color: #174987;
}
.attols-error-box {
  background: #fff0f0;
  color: #a12117;
}
@media (max-width: 760px) {
  .attols-header h2 {
    font-size: 23px;
  }
  .attols-table-top {
    display: block;
  }
  .attols-table-top span {
    display: block;
    margin-top: 4px;
  }
  .attols-search-table-wrap {
    max-height: 560px;
    border-radius: 0;
  }
  .attols-search-table {
    min-width: 980px;
    font-size: 12px;
  }
  .attols-search-table th,
  .attols-search-table td {
    padding: 9px 8px;
  }
  .attols-hall-link {
    font-size: 15px;
  }
  .attols-result-person-grid,
  .attols-marks-grid {
    grid-template-columns: 1fr;
  }
  .attols-auto-result-card {
    padding: 12px;
  }
  .attols-result-title {
    align-items: flex-start;
  }
}


/* v1.5.2 Strong header color override for Sahifa/theme table styles */
.attols-app .attols-search-table thead th,
.attols-app table.attols-search-table thead tr th,
.entry .attols-app .attols-search-table thead th,
.post-content .attols-app .attols-search-table thead th {
  background: #0b4ea2 !important;
  color: #ffffff !important;
  border-right: 1px solid rgba(255,255,255,.28) !important;
  border-bottom: 2px solid #062f68 !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}
.attols-app .attols-search-table thead th:nth-child(1),
.attols-app .attols-search-table thead th:nth-child(5),
.attols-app .attols-search-table thead th:nth-child(7),
.attols-app .attols-search-table thead th:nth-child(8),
.attols-app .attols-search-table thead th:nth-child(9),
.attols-app .attols-search-table thead th:nth-child(10) {
  text-align: center;
}


/* v1.5.5 frontend cleanup */
.attols-source,
.attols-privacy,
.attols-official-note,
.attols-debug,
.attols-raw-result {
  display: none !important;
}
.attols-name-cell br { display:none !important; }
