*{box-sizing:border-box}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;margin:0;background:#f6f7fb;color:#111827;line-height:1.45}
.wrap{width:100%;max-width:1180px;margin:0 auto;padding:clamp(12px,2vw,24px)}
.top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.brand{font-weight:800;text-decoration:none;color:#111;font-size:20px}
nav{display:flex;gap:8px;flex-wrap:wrap}
nav a{color:#243b53;text-decoration:none}

.card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:clamp(16px,2.2vw,28px);margin:14px 0;box-shadow:0 8px 24px rgba(0,0,0,.05)}
.card h1{margin:0 0 6px;font-size:clamp(22px,3vw,32px);line-height:1.15}
.muted{color:#667085}

.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:clamp(14px,1.8vw,20px);align-items:end}
.grid label{grid-column:span 6;margin:0;font-size:14px;font-weight:650;color:#344054}
.sr-label{font-size:0!important}
.sr-label input,.sr-label select,.sr-label textarea,.sr-label .phone-wrap{font-size:15px!important}
.field-label{font-size:14px;color:#344054}

input,select,textarea{
  width:100%;min-height:48px;padding:12px 4px 10px;border:0;border-bottom:1px solid #d0d5dd;
  border-radius:0;background:transparent;color:#111827;font-size:15px;
}
input:focus,select:focus,textarea:focus{outline:0;border-bottom-color:#111827}
input::placeholder,textarea::placeholder{color:#98a2b3;opacity:1}

.phone-wrap{display:flex!important;align-items:stretch;width:100%;border-bottom:1px solid #d0d5dd}
.phone-wrap:focus-within{border-bottom-color:#111827}
.phone-wrap input{flex:1 1 auto;width:100%;border:0!important;border-bottom:0!important;padding:12px 8px 10px 4px!important}
.wa-check{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.wa-toggle{flex:0 0 46px;width:46px;height:48px;display:flex!important;align-items:center;justify-content:center;color:#98a2b3;cursor:pointer}
.wa-toggle::before{content:"";width:18px;height:18px;background-color:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-1.9 5.4A8.5 8.5 0 1 1 21 11.5z'/%3E%3Cpath d='M8 10c1.5 3 3 4.5 6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-1.9 5.4A8.5 8.5 0 1 1 21 11.5z'/%3E%3Cpath d='M8 10c1.5 3 3 4.5 6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.wa-check:checked + .wa-toggle{color:#22c55e}

button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border:0;background:#111827;color:#fff;text-decoration:none;cursor:pointer;margin:6px 6px 6px 0;font-weight:700}
.btn.secondary{background:#ffffff;color:#004052;border:1px solid rgba(158,136,84,.55)}.btn.danger,button.danger,.btn.ok,button.ok{background:#ffffff;color:#004052;border:1px solid rgba(158,136,84,.55)}

#cropBox{grid-column:1/-1;background:#f8fafc;border:1px dashed #cbd5e1;padding:16px}
#cropImage{display:block;margin:0 auto;max-width:100%;height:auto;background:#fff}
#applyCrop{background:#334155}
button[title="Save vCard"]{margin-top:20px;min-width:180px;min-height:46px}

table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}
th,td{padding:11px;border-bottom:1px solid #eef2f7;text-align:left;vertical-align:middle}
.flash{padding:12px;border-radius:10px;background:#dcfce7;margin:8px 0}.flash.err{background:#fee2e2}
.profile{text-align:center;max-width:520px;margin:0 auto}.avatar{width:140px;height:140px;object-fit:cover;border-radius:50%;border:4px solid #fff;box-shadow:0 8px 18px rgba(0,0,0,.15)}
.logo{max-height:70px;max-width:220px}.actions{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:16px 0}.actions a{padding:13px;background:#111827;color:#fff;text-decoration:none}
.qr{width:180px;height:180px;max-width:100%;flex:0 0 auto}.small{font-size:13px}.public{background:#fff}.icons a{display:inline-block;margin:6px;padding:9px 12px;border-radius:999px;background:#f1f5f9;color:#111;text-decoration:none}

@media(max-width:900px){.grid label{grid-column:1/-1}}
@media(max-width:640px){
  .wrap{padding:10px}.top{display:block}.top nav{margin-top:10px}
  .top nav a,.btn,button{width:100%;text-align:center;margin:5px 0}
  table{display:block;overflow-x:auto;white-space:nowrap}
  input,select,textarea{font-size:16px}
  button[title="Save vCard"]{width:100%}
}

.wa-toggle::before{content:none!important}
.wa-toggle svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* WhatsApp actual line icon + background active state */
.wa-toggle::before{content:none!important}

.wa-toggle{
  margin:5px 0 5px 6px;
  width:38px!important;
  height:38px!important;
  flex:0 0 38px!important;
  border-radius:999px!important;
  background:#f2f4f7!important;
  color:#667085!important;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.wa-toggle svg{
  width:20px;
  height:20px;
  stroke:currentColor;
  fill:none;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.wa-check:checked + .wa-toggle{
  background:#25D366!important;
  color:#ffffff!important;
}

.wa-toggle:hover{
  transform:translateY(-1px);
}

.phone-wrap{
  align-items:center!important;
}

/* WhatsApp square button matching field height */
.phone-wrap{
  align-items:stretch!important;
}

.wa-toggle{
  margin:0!important;
  width:48px!important;
  height:48px!important;
  flex:0 0 48px!important;
  border-radius:0!important;
  background:#e5e7eb!important;
  color:#9E8854!important;
  border:0!important;
}

.wa-check:checked + .wa-toggle{
  background:#25D366!important;
  color:#ffffff!important;
}

.wa-toggle:hover{
  transform:none!important;
  background:#d1d5db!important;
}

.wa-check:checked + .wa-toggle:hover{
  background:#1ebe5d!important;
}

.tile-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:20px;
}

.tile{
  display:block;
  min-height:118px;
  padding:18px;
  border:1px solid #e5e7eb;
  background:#fff;
  color:#111827;
  text-decoration:none;
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}

.tile span{
  display:block;
  font-weight:800;
  font-size:17px;
  margin-bottom:8px;
}

.tile small{
  display:block;
  color:#667085;
  font-size:13px;
  line-height:1.45;
}

.tile:hover{
  transform:translateY(-2px);
  border-color:#111827;
  box-shadow:0 10px 24px rgba(16,24,40,.08);
}

/* Premium dashboard tiles */
.tile-grid{
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.tile{
  position:relative;
  overflow:hidden;
  min-height:138px;
  padding:22px;
  border:1px solid #eef2f7;
  background:linear-gradient(145deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 10px 28px rgba(16,24,40,.06);
}

.tile::after{
  content:"";
  position:absolute;
  right:-34px;
  top:-34px;
  width:96px;
  height:96px;
  border-radius:50%;
  background:rgba(17,24,39,.045);
}

.tile span{
  font-size:18px;
  letter-spacing:-.01em;
}

.tile small{
  max-width:260px;
}

.tile:hover{
  border-color:#d0d5dd;
  box-shadow:0 18px 40px rgba(16,24,40,.12);
}

.card{
  border-color:#eef2f7;
  box-shadow:0 14px 40px rgba(16,24,40,.07);
}

/* Official ZuriDream Global palette */
:root{
  --zdg-primary:#004052;
  --zdg-accent:#9E8854;
  --zdg-purple:#004052;
  --zdg-gold:#9E8854;

  --zdg-primary-soft:#e7eff1;
  --zdg-accent-soft:#f8e9ef;
}

body{
  background:
    radial-gradient(circle at top right, rgba(167,38,94,.05), transparent 24%),
    radial-gradient(circle at bottom left, rgba(0,64,82,.06), transparent 28%),
    #f7f9fb;
}

.brand,
.card h1{
  color:var(--zdg-primary);
}

button,
.btn{
  background:linear-gradient(135deg,var(--zdg-primary),#0d596f);
}

.btn.secondary{
  background:linear-gradient(135deg,var(--zdg-purple),#8f2a7c);
}

.btn.ok{
  background:linear-gradient(135deg,#0f9f63,#25D366);
}

.btn.danger{
  background:linear-gradient(135deg,#004052,#9E8854);
}

.tile{
  border:1px solid rgba(0,64,82,.08);
  background:
    linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%);
  box-shadow:
    0 10px 28px rgba(16,24,40,.05),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.tile::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg,
      rgba(0,64,82,.025),
      rgba(167,38,94,.03));
  pointer-events:none;
}

.tile::after{
  background:
    linear-gradient(135deg,
      rgba(0,64,82,.16),
      rgba(167,38,94,.16));
}

.tile span{
  color:var(--zdg-primary);
}

.tile small{
  color:#667085;
}

.tile:hover{
  border-color:rgba(167,38,94,.28);
  box-shadow:
    0 20px 44px rgba(16,24,40,.10),
    0 2px 10px rgba(167,38,94,.08);
}

input:focus,
select:focus,
textarea:focus,
.phone-wrap:focus-within{
  border-bottom-color:var(--zdg-accent)!important;
}

.wa-check:checked + .wa-toggle{
  background:#25D366!important;
}

.top{
  margin-bottom:24px;
}

/* Premium ZDG shell */
.top{
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(14px);
  border:1px solid rgba(0,64,82,.08);
  box-shadow:0 12px 32px rgba(16,24,40,.06);
  padding:14px 18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:21px;
  letter-spacing:-.02em;
}



.card{
  position:relative;
  overflow:hidden;
}

.card::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:4px;
  background:linear-gradient(90deg,#004052,#9E8854,#004052,#9E8854);
}

.tile{
  min-height:160px;
  padding:26px;
}

.tile span{
  font-size:20px;
}

.tile small{
  font-size:14px;
}

.tile::after{
  right:-26px;
  top:-26px;
  width:118px;
  height:118px;
  border-radius:32px;
  transform:rotate(18deg);
}

.tile:hover{
  transform:translateY(-4px);
}

/* Premium class layer */
body{
  min-height:100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(0,64,82,.12), transparent 28%),
    radial-gradient(circle at 92% 12%, rgba(167,38,94,.10), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(158,136,84,.10), transparent 30%),
    #f6f7fb;
}

.wrap{
  max-width:1240px;
}

.top{
  border-radius:0;
  background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(255,255,255,.72));
}

.card{
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:
    0 24px 60px rgba(0,64,82,.09),
    0 1px 0 rgba(255,255,255,.9) inset;
}

.card h1{
  font-weight:900;
  letter-spacing:-.035em;
}

.muted{
  color:#6b7280;
}

.tile{
  background:
    linear-gradient(145deg,rgba(255,255,255,.98),rgba(248,250,252,.92));
  border:1px solid rgba(0,64,82,.10);
  box-shadow:
    0 18px 42px rgba(0,64,82,.08),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.tile span{
  position:relative;
  z-index:1;
  font-weight:900;
}

.tile small{
  position:relative;
  z-index:1;
}

.tile::before{
  background:
    linear-gradient(135deg,rgba(0,64,82,.06),transparent 38%),
    linear-gradient(315deg,rgba(167,38,94,.07),transparent 42%);
}

.tile:hover{
  border-color:rgba(158,136,84,.45);
}

button,
.btn{
  border-radius:0;
  min-height:44px;
  box-shadow:0 10px 22px rgba(0,64,82,.16);
}

input,
select,
textarea,
.phone-wrap{
  background:rgba(255,255,255,.25);
}

input:focus,
select:focus,
textarea:focus,
.phone-wrap:focus-within{
  background:rgba(255,255,255,.55);
}

table{
  border:1px solid #eef2f7;
  box-shadow:0 12px 30px rgba(16,24,40,.04);
}

th{
  color:#004052;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.04em;
  background:#f8fafc;
}

@media(max-width:640px){
  .top{padding:12px}
  .tile{min-height:132px;padding:20px}
}

.page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px;
}

.page-head .btn{
  margin:0;
  white-space:nowrap;
}

.table-wrap{
  overflow-x:auto;
}

.action-bar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.action-bar form{
  display:inline-flex;
  margin:0;
}

.action-bar .btn,
.action-bar button{
  margin:0;
  min-height:38px;
  padding:8px 11px;
  font-size:13px;
  box-shadow:none;
}

.status-pill{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.status-pill.active{
  color:#004052;
  background:#ecfdf3;
}

.status-pill.inactive{
  color:#9a3412;
  background:#fff7ed;
}

@media(max-width:700px){
  .page-head{
    display:block;
  }
  .page-head .btn{
    width:100%;
    margin-top:14px;
  }
}

/* Mobile no-horizontal-scroll tables */
@media(max-width:700px){
  .table-wrap{
    overflow:visible!important;
  }

  table{
    display:block!important;
    width:100%!important;
    overflow:visible!important;
    white-space:normal!important;
    border:0!important;
    box-shadow:none!important;
    background:transparent!important;
  }

  table tr{
    display:block;
    background:#fff;
    border:1px solid rgba(0,64,82,.10);
    margin:12px 0;
    padding:12px;
    box-shadow:0 12px 28px rgba(16,24,40,.06);
  }

  table tr:first-child{
    display:none;
  }

  table td{
    display:block;
    width:100%;
    border:0;
    padding:8px 0;
    white-space:normal;
    word-break:break-word;
  }

  table td:last-child{
    padding-bottom:0;
  }

  .action-bar{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .action-bar .btn,
  .action-bar button,
  .action-bar form{
    width:100%;
  }
}

/* Neater mobile list cards */
@media(max-width:700px){
  .card{
    padding:16px;
  }

  table tr{
    width:100%;
    margin:14px 0;
    padding:16px;
    border-radius:0;
  }

  table td{
    padding:7px 0;
  }

  table td:first-child strong{
    display:block;
    font-size:17px;
    margin-bottom:3px;
  }

  .status-pill{
    width:fit-content;
  }

  .action-bar{
    grid-template-columns:1fr;
    margin-top:8px;
  }

  .action-bar .btn,
  .action-bar button{
    min-height:42px;
  }
}

/* Force mobile table cards full width */
@media(max-width:700px){
  table,
  table tbody,
  table tr,
  table td{
    width:100%!important;
    max-width:100%!important;
  }

  table tr{
    display:block!important;
  }

  table td{
    display:block!important;
  }

  .table-wrap{
    width:100%!important;
  }

  .action-bar{
    width:100%!important;
  }
}

/* Compact mobile action grid */
@media(max-width:700px){
  .action-bar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }

  .action-bar form{
    display:block!important;
    width:100%!important;
  }

  .action-bar .btn,
  .action-bar button{
    width:100%!important;
    min-height:36px!important;
    padding:7px 8px!important;
    font-size:12px!important;
    margin:0!important;
    box-shadow:none!important;
  }
}


/* ZDG palette normalization */

:root{
  --zdg-teal:#004052;
  --zdg-gold:#9E8854;
  --zdg-white:#ffffff;
}

.btn,
button,
input[type="submit"]{
  background:var(--zdg-teal) !important;
  color:var(--zdg-white) !important;
  border:1px solid var(--zdg-teal) !important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover{
  background:var(--zdg-gold) !important;
  border-color:var(--zdg-gold) !important;
  color:var(--zdg-white) !important;
}

.btn.secondary,
a.btn.secondary,
.action-bar .btn,
.action-bar button,
.icon-btn{
  background:var(--zdg-white) !important;
  color:var(--zdg-teal) !important;
  border:1px solid rgba(158,136,84,.55) !important;
}

.btn.secondary:hover,
a.btn.secondary:hover,
.action-bar .btn:hover,
.action-bar button:hover,
.icon-btn:hover{
  background:var(--zdg-white) !important;
  color:var(--zdg-gold) !important;
  border-color:var(--zdg-gold) !important;
}

.danger,
.ok{
  color:var(--zdg-teal) !important;
}

.status-pill.active,
.status-pill.inactive{
  background:rgba(158,136,84,.12) !important;
  color:var(--zdg-teal) !important;
  border:1px solid rgba(158,136,84,.35) !important;
}

/* Public vCard premium profile */
body.public{
  min-height:100vh;
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(158,136,84,.18), transparent 34%),
    linear-gradient(145deg,#004052 0%,#003443 48%,#ffffff 48%,#ffffff 100%);
  color:#004052;
}

.public-shell{
  min-height:100vh;
  width:100%;
  padding:28px 14px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.public-card{
  width:min(100%,430px);
  position:relative;
  overflow:hidden;
  border-radius:30px;
  padding:26px 20px 22px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(158,136,84,.34);
  box-shadow:0 28px 70px rgba(0,64,82,.24);
  text-align:center;
}

.public-topline{
  position:absolute;
  inset:0 0 auto;
  height:7px;
  background:linear-gradient(90deg,#004052,#9E8854);
}

.public-logo{
  max-width:132px;
  max-height:58px;
  object-fit:contain;
  margin:6px auto 18px;
  display:block;
}

.public-avatar-wrap{
  width:126px;
  height:126px;
  margin:0 auto 16px;
  border-radius:50%;
  padding:5px;
  background:linear-gradient(135deg,#004052,#9E8854);
  box-shadow:0 16px 34px rgba(0,64,82,.22);
}

.public-avatar{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  display:block;
  background:#ffffff;
  border:4px solid #ffffff;
}

.public-card h1{
  margin:8px 0 4px;
  font-size:28px;
  line-height:1.08;
  letter-spacing:-.04em;
  color:#004052;
}

.public-role{
  margin:0;
  font-size:15px;
  color:#9E8854;
  font-weight:700;
}

.public-company{
  margin:6px 0 18px;
  font-size:14px;
  color:#004052;
  opacity:.78;
}

.public-actions,
.public-links{
  display:grid;
  justify-content:center;
  gap:10px;
  margin-left:auto;
  margin-right:auto;
}

.public-actions{
  grid-template-columns:repeat(4,56px);
  max-width:330px;
  margin-top:18px;
  margin-bottom:18px;
}

.public-links{
  grid-template-columns:repeat(auto-fit,56px);
  width:100%;
  max-width:320px;
  margin-top:16px;
}

.public-actions a,
.public-links a{
  width:56px;
  min-width:56px;
  height:56px;
  min-height:56px;
  aspect-ratio:1 / 1;
  padding:0;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border:1px solid rgba(158,136,84,.44);
  color:#004052;
  background:#ffffff;
  box-shadow:0 10px 24px rgba(0,64,82,.08);
  transition:.18s ease;
}

.public-actions a:first-child{
  background:#004052;
  color:#ffffff;
  border-color:#004052;
}

.public-actions a:hover,
.public-links a:hover{
  color:#ffffff;
  background:#9E8854;
  border-color:#9E8854;
  transform:translateY(-1px);
}

.public-actions a span,
.public-links a span{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.public-actions i,
.public-links i{
  width:auto;
  font-size:21px;
  line-height:1;
  color:currentColor;
  transition:.18s ease;
}

.public-links a:hover i,
.public-actions a:hover i{
  transform:scale(1.06);
}

.public-info{
  margin:18px 0;
  padding:14px;
  border-radius:20px;
  background:rgba(0,64,82,.045);
  border:1px solid rgba(158,136,84,.24);
  text-align:left;
}

.public-info p{
  margin:8px 0;
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  line-height:1.45;
  color:#004052;
}

.public-info i{
  width:18px;
  min-width:18px;
  text-align:center;
  color:#9E8854;
  margin-top:2px;
}

@media(max-width:420px){
  .public-shell{
    padding:16px 10px;
    align-items:flex-start;
  }
  .public-card{
    border-radius:26px;
    padding:24px 15px 18px;
  }
  .public-card h1{
    font-size:25px;
  }
  .public-avatar-wrap{
    width:116px;
    height:116px;
  }
  .public-actions{
    grid-template-columns:repeat(4,50px);
  }
  .public-links{
    grid-template-columns:repeat(auto-fit,50px);
    max-width:280px;
  }
  .public-actions a,
  .public-links a{
    width:50px;
    min-width:50px;
    height:50px;
    min-height:50px;
    border-radius:17px;
  }
  .public-actions i,
  .public-links i{
    font-size:18px;
  }
}

.completion-card{
  margin:18px 0 22px;
  padding:18px;
  border:1px solid rgba(158,136,84,.28);
  border-radius:18px;
  background:linear-gradient(135deg, rgba(0,64,82,.06), rgba(158,136,84,.08));
}
.completion-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.completion-score{
  min-width:62px;
  height:62px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#004052;
  color:#ffffff;
  font-weight:800;
  border:3px solid #9E8854;
}
.completion-bar{
  margin:14px 0 10px;
  height:10px;
  border-radius:999px;
  background:rgba(0,64,82,.12);
  overflow:hidden;
}
.completion-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:#9E8854;
}
@media(max-width:640px){
  .completion-top{align-items:center}
  .completion-score{min-width:54px;height:54px;font-size:14px}
}

.site-footer{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  gap:14px;
  align-items:center;
  margin:28px 0 12px;
  padding:16px 0 0;
  border-top:1px solid rgba(158,136,84,.22);
  color:#004052;
  font-size:13px;
}
.site-footer > div:nth-child(2){
  text-align:center;
}
.site-footer > div:nth-child(3){
  text-align:right;
}
.footer-links a{
  color:#004052;
  text-decoration:none;
}
.footer-links a:hover{
  color:#9E8854;
}
@media(max-width:820px){
  .site-footer{
    grid-template-columns:1fr;
    text-align:center;
  }
  .site-footer > div:nth-child(2),
  .site-footer > div:nth-child(3){
    text-align:center;
  }
}

.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}
.brand img{
  height:42px;
  width:auto;
  display:block;
  object-fit:contain;
}
@media(max-width:640px){
  .brand img{
    height:36px;
    max-width:160px;
  }
}

.dashboard-tiles{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))!important;
  gap:14px!important;
  align-items:stretch;
}
.dashboard-tiles .tile{
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  flex-direction:column;
  justify-content:space-between;
  gap:8px;
  border-radius:20px;
  padding:18px;
}
.dashboard-tiles .tile span,
.dashboard-tiles .tile small{
  overflow-wrap:anywhere;
}
@media(max-width:640px){
  .dashboard-tiles{
    grid-template-columns:1fr!important;
  }
  .dashboard-tiles .tile{
    padding:16px;
  }
}

.dashboard-tiles .tile span{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.dashboard-tiles .tile span i{
  color:#9E8854;
  width:18px;
  text-align:center;
}

.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.top .brand{
  min-width:0;
  max-width:55%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.top nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.top nav a{
  white-space:nowrap;
}
@media(max-width:720px){
  .top{
    align-items:flex-start;
  }
  .top .brand{
    max-width:100%;
    font-size:18px;
  }
  .top nav{
    width:100%;
    justify-content:flex-start;
  }
}
@media(max-width:420px){
  .top{
    display:grid;
    grid-template-columns:1fr;
  }
  .top nav{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
  }
  .top nav a{
    text-align:center;
  }
}

@media(max-width:720px){
  .top .brand{
    margin:0 auto;
    text-align:center;
    font-size:22px;
    justify-content:center;
  }
}
@media(max-width:420px){
  .top .brand{
    font-size:24px;
    max-width:100%;
  }
}

.dashboard-tiles .subtle-tile{
  opacity:.88;
  background:linear-gradient(135deg,rgba(0,64,82,.025),rgba(158,136,84,.045))!important;
}
.dashboard-tiles .subtle-tile:hover{
  opacity:1;
}

.admin-mini-actions{
  margin:14px 0 18px;
  display:flex;
}
.admin-mini-actions a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid rgba(158,136,84,.24);
  color:#004052;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  background:rgba(158,136,84,.06);
}
.admin-mini-actions a i{
  color:#9E8854;
}
@media(max-width:640px){
  .admin-mini-actions a{
    width:100%;
    justify-content:center;
  }
}
