*{box-sizing:border-box}html{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202630;background:#f3f6f8}body{margin:0;min-height:100vh;display:flex;flex-direction:column}main{flex:1}.container{width:min(1784px,calc(100% - 40px));margin:0 auto}.topbar{background:linear-gradient(100deg,var(--primary),var(--primary-dark));min-height:66px;color:#fff}.topbar-inner{width:min(1784px,calc(100% - 40px));margin:0 auto;min-height:66px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;font-size:20px}.brand img{height:38px;max-width:240px;object-fit:contain}.brand-mark{display:inline-grid;place-items:center;width:34px;height:34px;border:2px solid #fff;border-radius:50%}.language-switch{display:flex;background:rgba(255,255,255,.12);border-radius:6px;overflow:hidden}.language-switch a{color:#fff;text-decoration:none;padding:10px 13px;font-weight:700;font-size:13px}.language-switch a.active{background:rgba(255,255,255,.18)}.hero-title{background:#fff;border-bottom:1px solid #d7dde2;padding:48px 0 32px}.hero-title h1{font-size:32px;line-height:1.2;margin:0;max-width:1100px}.result-hero{padding-top:42px}.back-link{display:inline-block;color:var(--accent);text-decoration:none;margin-bottom:25px;font-size:14px}.page-area{padding:34px 0 46px}.search-card,.result-card{background:#fff;border:1px solid #d9e0e5;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.03)}.search-card{padding:34px;min-height:470px}.search-card h2{font-size:22px;font-weight:500;margin:0 0 20px}.criteria-grid{display:flex;gap:18px;flex-wrap:wrap}.criteria-option{border:1px solid #cfd6dc;padding:14px 16px;display:flex;align-items:center;gap:12px;cursor:pointer;background:#fff}.criteria-option:has(input:checked){border-color:#1f7ce0}.criteria-option input{width:20px;height:20px;accent-color:#1677d2}.form-group{display:flex;flex-direction:column}.search-input-wrap{margin-top:28px;width:min(360px,100%)}.search-input-wrap label{font-size:14px;font-weight:600;margin-bottom:4px}.search-input-wrap small{font-size:12px;color:#5e6872;margin-bottom:8px}.search-input-wrap input,.admin-input,.admin-select,.admin-textarea{width:100%;border:1px solid #cbd3da;border-radius:4px;background:#fff;padding:12px 13px;font:inherit;outline:none}.search-input-wrap input:focus,.admin-input:focus,.admin-select:focus,.admin-textarea:focus{border-color:#2b7fd7;box-shadow:0 0 0 2px rgba(43,127,215,.12)}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:3px;padding:13px 26px;text-decoration:none;font-weight:700;font-size:14px;cursor:pointer}.search-card .btn{margin-top:44px;min-width:200px}.btn-primary{background:var(--primary-dark);color:#fff}.btn-secondary{background:#fff;color:var(--primary-dark);border-color:#cdd5db}.alert{padding:12px 14px;border-radius:4px;margin:0 0 18px}.alert-error{background:#fff1f1;color:#a52020;border:1px solid #f0c8c8}.alert-success{background:#edf9f1;color:#17683a;border:1px solid #bfe5cc}.result-summary{padding:30px 32px;border-bottom:1px solid #d8dee3}.query-heading{font-size:27px}.as-of{margin-top:3px}.not-found-block{padding:38px 32px 32px;min-height:355px}.not-found-block h2{font-size:21px;margin:0 0 46px}.not-found-block h3{font-size:17px;font-weight:500;display:inline-block;margin:0 0 17px;border-bottom:1px solid var(--primary);padding-bottom:8px}.not-found-block ul{padding-left:18px;color:#555f69;font-size:14px;line-height:1.6}.button-row{display:flex;gap:20px;flex-wrap:wrap;margin-top:46px}.found-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 32px;border-bottom:1px solid #d8dee3}.found-header h2{margin:0;font-size:28px}.status-badge{padding:9px 16px;border-radius:3px;font-weight:800;color:#fff;letter-spacing:.02em}.status-active{background:#159447}.status-warning{background:#d68a00}.status-inactive{background:#a63838}.data-section{padding:28px 32px;border-bottom:1px solid #d8dee3}.data-section:last-child{border-bottom:0}.data-section h3{font-size:22px;margin:0 0 18px}.data-grid{border-top:1px solid #e1e6ea}.data-row{display:grid;grid-template-columns:minmax(240px,40%) 1fr;gap:30px;padding:14px 0;border-bottom:1px solid #edf0f2}.data-label{color:#58616a}.data-value{font-weight:600;overflow-wrap:anywhere}.site-footer{background:var(--footer-bg,#fff);border-top:1px solid #d8dee3;padding:24px 0;color:var(--footer-text,#68717a);font-size:13px}.footer-inner{display:flex;justify-content:space-between;gap:30px}.footer-contacts{text-align:right}
@media(max-width:720px){.container,.topbar-inner{width:min(100% - 24px,1784px)}.topbar,.topbar-inner{min-height:60px}.brand{font-size:15px}.brand img{height:32px;max-width:170px}.hero-title{padding:28px 0 22px}.hero-title h1{font-size:24px}.result-hero{padding-top:26px}.page-area{padding:18px 0 30px}.search-card{padding:20px;min-height:auto}.criteria-grid{display:grid;grid-template-columns:1fr}.criteria-option{width:100%}.search-input-wrap{width:100%}.search-card .btn{width:100%;margin-top:28px}.result-summary,.not-found-block,.found-header,.data-section{padding-left:20px;padding-right:20px}.query-heading{font-size:21px}.not-found-block h2{margin-bottom:30px}.found-header{align-items:flex-start;flex-direction:column}.found-header h2{font-size:23px}.data-row{grid-template-columns:1fr;gap:6px}.data-label{font-size:13px}.button-row{display:grid;grid-template-columns:1fr;gap:12px}.button-row .btn{width:100%}.footer-inner{flex-direction:column}.footer-contacts{text-align:left}}
.admin-body{background:#eef2f5}.admin-topbar{height:62px;background:#17212b;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:20}.admin-brand{color:#fff;text-decoration:none;font-weight:800}.admin-user{display:flex;align-items:center;gap:14px;font-size:14px}.admin-user a{color:#b9d9ff}.admin-shell{display:grid;grid-template-columns:230px minmax(0,1fr);min-height:calc(100vh - 62px)}.admin-nav{background:#fff;border-right:1px solid #d9e0e5;padding:18px 12px;display:flex;flex-direction:column;gap:4px}.admin-nav a{padding:10px 12px;border-radius:4px;text-decoration:none;color:#303942;font-size:14px}.admin-nav a:hover{background:#f0f5f8}.admin-main{padding:24px;min-width:0}.admin-page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.admin-page-head h1{font-size:27px;margin:0}.admin-card{background:#fff;border:1px solid #d8e0e5;border-radius:5px;padding:20px;margin-bottom:20px}.admin-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}.admin-toolbar form{display:flex;gap:8px;flex-wrap:wrap;flex:1}.admin-toolbar .admin-input{max-width:320px}.admin-btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;border-radius:4px;padding:10px 14px;font-weight:700;cursor:pointer;font-size:14px}.admin-btn-primary{background:#287b50;color:#fff}.admin-btn-secondary{background:#e9eef2;color:#27313a}.admin-btn-danger{background:#a63737;color:#fff}.admin-table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;font-size:14px}.admin-table th,.admin-table td{text-align:left;padding:11px 10px;border-bottom:1px solid #e7ecef;vertical-align:top}.admin-table th{background:#f7f9fa;white-space:nowrap}.admin-table td.actions{white-space:nowrap}.admin-table td.actions a{margin-right:8px}.admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-field{display:flex;flex-direction:column;gap:6px}.admin-field.full{grid-column:1/-1}.admin-field label{font-size:13px;font-weight:700}.admin-field small{color:#69737c}.admin-textarea{min-height:96px;resize:vertical}.admin-section-title{font-size:19px;margin:30px 0 14px;padding-bottom:8px;border-bottom:1px solid #e3e8eb}.admin-checkbox{display:flex;align-items:center;gap:9px}.admin-checkbox input{width:18px;height:18px}.admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.admin-kpi{background:#fff;border:1px solid #d9e0e5;padding:20px;border-radius:5px}.admin-kpi strong{display:block;font-size:31px;margin-bottom:3px}.admin-kpi span{color:#66717a}.admin-login-page{min-height:100vh;display:grid;place-items:center;background:#eef2f5;padding:20px}.admin-login-card{width:min(430px,100%);background:#fff;border:1px solid #d5dde3;border-radius:6px;padding:28px;box-shadow:0 8px 28px rgba(30,40,50,.08)}.admin-login-card h1{margin:0 0 8px}.admin-login-card p{color:#68727b}.admin-login-card .admin-field{margin:14px 0}.admin-login-card .admin-btn{width:100%;margin-top:8px}.secret-box{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;background:#f5f7f8;border:1px dashed #b6c0c8;padding:12px;word-break:break-all}.muted{color:#68717a;font-size:13px}.pagination{display:flex;gap:8px;margin-top:16px}.pagination a,.pagination span{padding:7px 10px;border:1px solid #d6dde2;border-radius:3px;text-decoration:none;color:#303942}.pagination .current{background:#263642;color:#fff}.status-dot{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:800;color:#fff}.status-dot.active{background:#159447}.status-dot.suspended,.status-dot.not_started{background:#d68a00}.status-dot.inactive,.status-dot.expired{background:#a63838}
@media(max-width:900px){.admin-shell{grid-template-columns:1fr}.admin-nav{border-right:0;border-bottom:1px solid #d9e0e5;flex-direction:row;overflow:auto;position:sticky;top:62px;z-index:15}.admin-nav a{white-space:nowrap}.admin-main{padding:16px}.admin-form-grid{grid-template-columns:1fr}.admin-kpis{grid-template-columns:1fr}.admin-page-head h1{font-size:23px}}
.client-link-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:420px}.client-link-box code{display:block;max-width:620px;overflow-wrap:anywhere;word-break:break-all;background:#f5f7f8;border:1px solid #e0e5e9;border-radius:4px;padding:8px}.inline-admin-form{display:inline-block;margin:0 6px 6px 0}.client-links-table td{vertical-align:middle}
@media(max-width:900px){.client-link-box{min-width:280px}}

/* v2.3 — compact policy details layout */
.result-hero-found{padding:31px 0 16px;border-bottom:0}
.result-hero-found .back-link{margin-bottom:0}
.found-page-area{padding-top:8px}
.result-card-found{overflow:hidden}
.result-card-found .found-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 24px 25px;border-bottom:1px solid #d8dee3}
.found-title-block{min-width:0}
.result-card-found .found-header h2{font-size:23px;line-height:1.22;margin:0;font-weight:800}
.registration-meta{margin-top:5px;color:#323b43;font-size:10px;line-height:1.35;font-weight:400}
.result-card-found .status-badge{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:5px 14px;border-radius:999px;font-size:12px;line-height:1;font-weight:800;letter-spacing:0;color:#fff;white-space:nowrap}
.result-card-found .status-active{background:#14c766}
.result-card-found .status-warning{background:#d69214}
.result-card-found .status-inactive{background:#a83a3a}
.result-card-found .data-section{padding:20px 24px 18px;border-bottom:1px solid #d8dee3}
.result-card-found .data-section:last-child{border-bottom:0}
.result-card-found .data-section h3{font-size:14px;line-height:1.3;margin:0 0 17px;font-weight:800}
.result-card-found .data-grid{max-width:720px;border-top:0}
.result-card-found .data-row{display:block;padding:0;margin:0 0 16px;border-bottom:0}
.result-card-found .data-row:last-child{margin-bottom:0}
.result-card-found .data-label{margin:0 0 5px;color:#7a8792;font-size:10px;line-height:1.3;font-weight:400}
.result-card-found .data-value{color:#25313b;font-size:12px;line-height:1.45;font-weight:400;overflow-wrap:anywhere}

@media(max-width:720px){
  .result-hero-found{padding:22px 0 12px}
  .found-page-area{padding-top:6px}
  .result-card-found .found-header{flex-direction:row;align-items:flex-start;gap:12px;padding:20px 18px}
  .result-card-found .found-header h2{font-size:20px}
  .registration-meta{font-size:9px;max-width:390px}
  .result-card-found .status-badge{min-height:26px;padding:5px 11px;font-size:10px}
  .result-card-found .data-section{padding:19px 18px 16px}
  .result-card-found .data-section h3{font-size:14px;margin-bottom:16px}
  .result-card-found .data-row{margin-bottom:15px}
  .result-card-found .data-label{font-size:10px}
  .result-card-found .data-value{font-size:12px}
}

@media(max-width:420px){
  .result-card-found .found-header{gap:9px}
  .result-card-found .found-header h2{font-size:18px}
  .result-card-found .status-badge{padding:5px 9px;font-size:9px}
}
/* v2.5 — logo upload preview in admin */
.admin-logo-setting{gap:10px}
.admin-logo-preview{display:flex;flex-direction:column;gap:7px;margin:4px 0 2px}
.admin-logo-preview>span{font-size:12px;color:#69737c}
.admin-logo-preview-bar{min-height:66px;display:flex;align-items:center;padding:10px 18px;border-radius:5px;background:linear-gradient(100deg,#179c58,#2f7d4d);overflow:hidden}
.admin-logo-preview-bar img{display:block;max-height:38px;max-width:280px;width:auto;height:auto;object-fit:contain}
@media(max-width:720px){.admin-logo-preview-bar img{max-height:32px;max-width:190px}}

/* v2.7 — public result page matched to the approved reference proportions */
body:not(.admin-body){
  font-family:"Avenir Next","Century Gothic","Trebuchet MS","Segoe UI",Arial,sans-serif;
  color:#292f35;
}

@media (min-width:1001px){
  .result-hero-found .container,
  .found-page-area .container{
    width:min(1584px,calc(100% - 188px));
  }
}

.result-hero-found{
  padding:0;
  border-bottom:1px solid #d7dde2;
}
.result-hero-found .container{
  min-height:112px;
  display:flex;
  align-items:center;
}
.result-hero-found .back-link{
  margin:0;
  font-size:16px;
  line-height:1.35;
}
.found-page-area{
  padding:46px 0 54px;
}
.result-card-found{
  border-color:#d6dde2;
  border-radius:4px;
}
.result-card-found .found-header{
  min-height:172px;
  align-items:flex-start;
  gap:28px;
  padding:44px 47px 46px;
}
.result-card-found .found-header h2{
  font-size:36px;
  line-height:1.18;
  font-weight:700;
  letter-spacing:-.025em;
}
.registration-meta{
  margin-top:11px;
  color:#2f363c;
  font-size:16px;
  line-height:1.42;
  font-weight:400;
}
.result-card-found .status-badge{
  min-height:29px;
  padding:5px 15px;
  margin-top:0;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:800;
}
.result-card-found .data-section{
  padding:38px 47px 34px;
}
.result-card-found .data-section h3{
  margin:0 0 30px;
  font-size:22px;
  line-height:1.3;
  font-weight:700;
  letter-spacing:-.01em;
}
.result-card-found .data-grid{
  max-width:780px;
}
.result-card-found .data-row{
  margin:0 0 26px;
}
.result-card-found .data-label{
  margin:0 0 9px;
  color:#7a858f;
  font-size:15px;
  line-height:1.4;
  font-weight:400;
}
.result-card-found .data-value{
  color:#293138;
  font-size:17px;
  line-height:1.48;
  font-weight:400;
}

@media (min-width:721px) and (max-width:1000px){
  .result-hero-found .container,
  .found-page-area .container{
    width:calc(100% - 64px);
  }
  .result-card-found .found-header{padding:36px 38px 38px;min-height:148px}
  .result-card-found .found-header h2{font-size:31px}
  .registration-meta{font-size:14px}
  .result-card-found .data-section{padding:32px 38px 28px}
  .result-card-found .data-section h3{font-size:20px;margin-bottom:26px}
  .result-card-found .data-label{font-size:14px}
  .result-card-found .data-value{font-size:16px}
}

@media(max-width:720px){
  .result-hero-found{padding:0}
  .result-hero-found .container{min-height:82px}
  .result-hero-found .back-link{font-size:14px}
  .found-page-area{padding:20px 0 34px}
  .result-card-found .found-header{
    min-height:0;
    padding:24px 20px 26px;
    gap:12px;
  }
  .result-card-found .found-header h2{
    font-size:24px;
    line-height:1.2;
  }
  .registration-meta{
    margin-top:8px;
    font-size:12px;
    line-height:1.4;
    max-width:none;
  }
  .result-card-found .status-badge{
    min-height:25px;
    padding:5px 10px;
    font-size:9px;
  }
  .result-card-found .data-section{padding:26px 20px 23px}
  .result-card-found .data-section h3{font-size:18px;margin-bottom:23px}
  .result-card-found .data-row{margin-bottom:22px}
  .result-card-found .data-label{font-size:13px;margin-bottom:7px}
  .result-card-found .data-value{font-size:15px;line-height:1.45}
}

@media(max-width:420px){
  .result-card-found .found-header h2{font-size:21px}
  .result-card-found .status-badge{padding:5px 8px;font-size:8px}
}
