/* MycoCRM Pro — frontend design system */

.mycocrm-portal-shell{max-width:1120px;margin:40px auto;padding:0 16px;}
.mycocrm-portal-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:start}
.mycocrm-portal-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:24px;box-shadow:0 24px 60px rgba(15,23,42,.08);overflow:hidden}
.mycocrm-portal-hero{padding:32px;background:linear-gradient(135deg,#0f172a,#1e293b 55%,#0ea5e9);color:#fff}
.mycocrm-portal-kicker{display:inline-block;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;letter-spacing:.04em;text-transform:uppercase;margin-bottom:16px}
.mycocrm-portal-hero h2{margin:0 0 10px;font-size:32px;line-height:1.1}
.mycocrm-portal-hero p{margin:0;opacity:.92;font-size:15px;line-height:1.7}
.mycocrm-portal-form{padding:28px}
.mycocrm-portal-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mycocrm-field-full{grid-column:1/-1}
.mycocrm-portal-form label{display:block;font-weight:600;margin:0 0 7px;color:#0f172a}
.mycocrm-portal-form input,.mycocrm-portal-form select,.mycocrm-portal-form textarea{width:100%;min-height:48px;border:1px solid #cbd5e1;border-radius:14px;padding:12px 14px;font-size:15px;box-sizing:border-box;background:#fff}
.mycocrm-portal-form textarea{min-height:120px;resize:vertical}
.mycocrm-portal-checks{display:grid;gap:12px;margin-top:18px}
.mycocrm-portal-check{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}
.mycocrm-portal-check input{width:auto;min-height:0;margin-top:4px}
.mycocrm-portal-submit{margin-top:18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.mycocrm-portal-button{border:0;border-radius:999px;padding:15px 24px;font-size:15px;font-weight:700;background:linear-gradient(135deg,#0ea5e9,#2563eb);color:#fff;cursor:pointer;box-shadow:0 20px 35px rgba(37,99,235,.22)}
.mycocrm-portal-meta{padding:28px;display:grid;gap:18px}
.mycocrm-portal-mini{padding:18px;border-radius:18px;background:#f8fafc;border:1px solid #e2e8f0}
.mycocrm-portal-mini h3{margin:0 0 8px;font-size:17px;color:#0f172a}
.mycocrm-portal-mini p,.mycocrm-portal-mini li{margin:0;color:#334155;line-height:1.7;font-size:14px}
.mycocrm-portal-mini ul{margin:0;padding-left:18px}
.mycocrm-portal-notice{max-width:1120px;margin:0 auto 18px;padding:16px 18px;border-radius:18px;font-size:15px}
.mycocrm-portal-notice.success{background:#ecfdf5;color:#166534;border:1px solid #86efac}
.mycocrm-portal-notice.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
@media (max-width: 900px){.mycocrm-portal-grid{grid-template-columns:1fr}.mycocrm-portal-hero h2{font-size:28px}}
@media (max-width: 640px){.mycocrm-portal-fields{grid-template-columns:1fr}.mycocrm-portal-form,.mycocrm-portal-meta,.mycocrm-portal-hero{padding:22px}}


.mycocrm-student-shell{max-width:1180px}
.mycocrm-student-dashboard{display:grid;gap:24px}
.mycocrm-student-top{display:grid;gap:18px}
.mycocrm-student-hero{overflow:hidden}
.mycocrm-student-hero-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px;border-top:1px solid rgba(15,23,42,.08);background:#fff}
.mycocrm-student-ghost{border:1px solid #cbd5e1;background:#fff;border-radius:999px;padding:12px 18px;font-weight:700;cursor:pointer}
.mycocrm-student-pill{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.mycocrm-student-pill.success{background:#dcfce7;color:#166534}.mycocrm-student-pill.warn{background:#fef3c7;color:#92400e}.mycocrm-student-pill.danger{background:#fee2e2;color:#991b1b}.mycocrm-student-pill.info{background:#dbeafe;color:#1d4ed8}.mycocrm-student-pill.neutral{background:#e2e8f0;color:#334155}
.mycocrm-student-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.mycocrm-student-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:20px;padding:18px;box-shadow:0 18px 34px rgba(15,23,42,.06)}
.mycocrm-student-card span{display:block;color:#475569;font-size:13px;margin-bottom:10px}.mycocrm-student-card strong{font-size:32px;line-height:1;color:#0f172a}
.mycocrm-student-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.mycocrm-student-section{padding:24px}
.mycocrm-student-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.mycocrm-student-section-head h3{margin:0;color:#0f172a}
.mycocrm-student-profile{display:grid;gap:12px}.mycocrm-student-profile-row{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e2e8f0}.mycocrm-student-profile-row:last-child{border-bottom:0}.mycocrm-student-profile-row span{color:#64748b}.mycocrm-student-profile-row strong{text-align:right;color:#0f172a}
.mycocrm-student-renewal-text{margin:0 0 12px;color:#0f172a;font-weight:600;line-height:1.7}
.mycocrm-student-table-wrap{overflow-x:auto}.mycocrm-student-table{width:100%;border-collapse:collapse}.mycocrm-student-table th,.mycocrm-student-table td{padding:14px 12px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:14px;vertical-align:top}.mycocrm-student-table th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#64748b}.mycocrm-student-muted{color:#64748b;font-size:13px}.mycocrm-student-tag{display:inline-flex;padding:7px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:600;font-size:12px}
.mycocrm-student-docs{display:grid;gap:14px}.mycocrm-student-doc{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}.mycocrm-student-doc strong{display:block;color:#0f172a}.mycocrm-student-doc span{display:block;color:#64748b;font-size:13px;margin-top:4px}.mycocrm-student-download{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:999px;background:#0f172a;color:#fff;text-decoration:none;font-weight:700;white-space:nowrap}
.mycocrm-student-empty{padding:18px;border:1px dashed #cbd5e1;border-radius:16px;color:#64748b;background:#f8fafc}
@media (max-width: 980px){.mycocrm-student-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.mycocrm-student-grid{grid-template-columns:1fr}}
@media (max-width: 640px){.mycocrm-student-cards{grid-template-columns:1fr}.mycocrm-student-hero-actions{flex-direction:column;align-items:stretch}.mycocrm-student-doc{flex-direction:column;align-items:flex-start}.mycocrm-student-download{width:100%}.mycocrm-student-profile-row{flex-direction:column}.mycocrm-student-profile-row strong{text-align:left}}

.mycocrm-student-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.mycocrm-student-auth-box{padding:20px;border:1px solid #e2e8f0;border-radius:20px;background:#f8fafc}
.mycocrm-student-auth-box h3{margin:0 0 14px;color:#0f172a}
.mycocrm-student-inline-check label{display:flex;gap:10px;align-items:center;margin:0;color:#334155}
.mycocrm-student-inline-check input{width:auto;min-height:0}
.mycocrm-student-hero-badges{display:flex;gap:10px;flex-wrap:wrap}
.mycocrm-student-password-form .mycocrm-portal-fields{grid-template-columns:1fr}
.mycocrm-student-payment-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:12px}
.mycocrm-student-mini-stat{padding:14px 16px;border-radius:18px;border:1px solid #e2e8f0;background:#f8fafc}
.mycocrm-student-mini-stat span{display:block;color:#64748b;font-size:13px;margin-bottom:8px}
.mycocrm-student-mini-stat strong{color:#0f172a;font-size:22px;line-height:1.1}
.mycocrm-student-payment-line{margin-top:8px;color:#0f172a;font-weight:600}
.mycocrm-student-timeline{display:grid;gap:14px;position:relative}
.mycocrm-student-timeline-item{display:grid;grid-template-columns:24px 1fr;gap:14px;align-items:start}
.mycocrm-student-timeline-dot{width:14px;height:14px;border-radius:999px;background:#2563eb;box-shadow:0 0 0 6px rgba(37,99,235,.12);margin-top:6px}
.mycocrm-student-timeline-content{padding:16px 18px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}
.mycocrm-student-timeline-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:6px}
.mycocrm-student-timeline-head strong{color:#0f172a}
.mycocrm-student-timeline-head span{color:#64748b;font-size:13px;white-space:nowrap}
.mycocrm-student-timeline-content p{margin:0;color:#334155;line-height:1.6}
@media (max-width: 900px){.mycocrm-student-auth-grid{grid-template-columns:1fr}.mycocrm-student-payment-summary{grid-template-columns:1fr}}
@media (max-width: 640px){.mycocrm-student-timeline-head{flex-direction:column;align-items:flex-start}}
.mycocrm-student-form-divider{height:1px;background:#e2e8f0;margin:18px 0}
.mycocrm-student-profile-form .mycocrm-portal-fields,.mycocrm-student-section form .mycocrm-portal-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.mycocrm-student-section select,.mycocrm-student-section textarea,.mycocrm-student-section input[type="text"],.mycocrm-student-section input[type="email"],.mycocrm-student-section input[type="password"],.mycocrm-student-section input[type="number"],.mycocrm-student-section input[type="date"],.mycocrm-student-section input[type="file"]{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:12px 14px;background:#fff;box-sizing:border-box}
.mycocrm-student-section textarea{min-height:110px;resize:vertical}
.mycocrm-student-section label{display:block;font-size:13px;font-weight:600;color:#334155;margin-bottom:8px}

.mycocrm-student-case{display:grid;gap:14px}
.mycocrm-student-progress{display:grid;gap:8px}
.mycocrm-student-progress-meta{display:flex;justify-content:space-between;gap:12px;align-items:center;color:#334155;font-size:14px}
.mycocrm-student-progress-bar{height:12px;background:#e2e8f0;border-radius:999px;overflow:hidden}
.mycocrm-student-progress-bar span{display:block;height:12px;border-radius:999px;background:linear-gradient(90deg,#0ea5e9,#2563eb)}
.mycocrm-student-case-list{margin:0;padding-left:18px;color:#334155;display:grid;gap:8px}

/* NextWebLevel hardening UI - v2.15.3 */
.mycocrm-hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
.mycocrm-portal-card,
.mycocrm-student-card {
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}
.mycocrm-portal-button,
.mycocrm-student-button {
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.mycocrm-portal-button:hover,
.mycocrm-student-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
}
@media (max-width: 640px) {
  .mycocrm-portal-shell,
  .mycocrm-student-shell {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* MycoCRM Pro 2.16.0 - brandable frontend */
.mycocrm-portal,
.mycocrm-student-area {
  --myco-front-primary: var(--mycocrm-front-primary, #2563eb);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 24px 70px rgba(15,23,42,.10);
  border: 1px solid rgba(15,23,42,.08);
}
.mycocrm-portal .button,
.mycocrm-student-area .button,
.mycocrm-portal button,
.mycocrm-student-area button {
  border-radius: 999px;
}
.mycocrm-portal .button-primary,
.mycocrm-student-area .button-primary,
.mycocrm-portal button[type="submit"],
.mycocrm-student-area button[type="submit"] {
  background: linear-gradient(135deg, var(--myco-front-primary), #1d4ed8);
  border-color: var(--myco-front-primary);
  box-shadow: 0 12px 24px rgba(37,99,235,.25);
}
.mycocrm-portal input,
.mycocrm-student-area input,
.mycocrm-portal select,
.mycocrm-student-area select,
.mycocrm-portal textarea,
.mycocrm-student-area textarea {
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
}

/* 2.16.1 frontend branding */
.mycocrm-portal-hero{background-size:cover;background-position:center;border-radius:22px;color:#fff}.mycocrm-portal-hero .mycocrm-portal-kicker,.mycocrm-portal-hero h2,.mycocrm-portal-hero p{color:inherit}.mycocrm-portal-logo{max-width:160px;max-height:70px;object-fit:contain;background:rgba(255,255,255,.9);border-radius:14px;padding:8px;margin-bottom:12px}.mycocrm-captcha-field{padding:12px;border:1px solid rgba(37,99,235,.18);background:rgba(37,99,235,.05);border-radius:14px}.mycocrm-portal-button{background:var(--mycocrm-front-primary,#2563eb)!important}.mycocrm-verify-shortcode form div{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.mycocrm-verify-shortcode input{min-width:260px;padding:10px 12px;border:1px solid #cdd4db;border-radius:8px}.mycocrm-verify-shortcode button{padding:10px 14px;border:0;border-radius:8px;background:var(--mycocrm-front-primary,#20453c);color:#fff;cursor:pointer}

/* MycoCRM Pro 2.16.2 - brand refinement */
.mycocrm-portal-shell,.mycocrm-student-shell{max-width:1180px;margin:0 auto}.mycocrm-portal-grid{align-items:stretch}.mycocrm-portal-footer{margin-top:14px;text-align:center;color:#64748b;font-size:13px}.mycocrm-portal-button{border-radius:999px;letter-spacing:.01em;font-weight:800}.mycocrm-portal-fields input,.mycocrm-portal-fields select,.mycocrm-portal-fields textarea{width:100%;box-sizing:border-box}.mycocrm-portal-notice{border-radius:14px;padding:12px 14px;margin:0 0 14px}.mycocrm-portal-notice.success{background:#ecfdf5;border:1px solid #bbf7d0;color:#166534}.mycocrm-portal-notice.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}

/* MycoCRM Pro — frontend design system */
.mycocrm-verify-shortcode .mycocrm-public-form-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;align-items:center;}
.mycocrm-verify-shortcode .mycocrm-public-form-row input{min-width:280px;flex:1 1 280px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;box-shadow:inset 0 1px 2px rgba(15,23,42,.04);}
.mycocrm-verify-shortcode .mycocrm-public-button{padding:12px 18px;border:0;border-radius:999px;background:linear-gradient(135deg,var(--mycocrm-front-primary,#20453c),#2563eb);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 12px 24px rgba(37,99,235,.20);}
.mycocrm-verify-shortcode .mycocrm-public-result{margin-top:14px;padding:14px 16px;border-radius:18px;border:1px solid #e2e8f0;background:#fff;box-shadow:0 14px 35px rgba(15,23,42,.08);}
.mycocrm-verify-shortcode .mycocrm-public-result.is-ok{border-color:#bbf7d0;background:#f0fdf4;color:#14532d;}
.mycocrm-verify-shortcode .mycocrm-public-result.is-error{border-color:#fecaca;background:#fef2f2;color:#7f1d1d;}
.mycocrm-verify-shortcode .mycocrm-public-result-meta{margin-top:6px;font-size:13px;opacity:.78;}
@media(max-width:640px){.mycocrm-verify-shortcode .mycocrm-public-form-row{display:grid}.mycocrm-verify-shortcode .mycocrm-public-form-row input{min-width:0;width:100%}}

/* MycoCRM Pro — frontend design system */
.mycocrm-portal,
.mycocrm-student-area,
.mycocrm-verify-shortcode,
.mycocrm-public-card {
  box-sizing: border-box;
  width: min(100%, 1120px);
  margin: 24px auto;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mycocrm-portal-shell,
.mycocrm-student-shell,
.mycocrm-verify-shortcode {
  background: linear-gradient(180deg,#ffffff,#f8fbff);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 34px);
  box-shadow: 0 24px 70px rgba(15,23,42,.10);
}
.mycocrm-portal h2,
.mycocrm-student-area h2,
.mycocrm-verify-shortcode h2 {
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 12px;
  color: #0f172a;
}
.mycocrm-portal p,
.mycocrm-student-area p,
.mycocrm-verify-shortcode p { color: #475569; line-height: 1.65; }
.mycocrm-portal-fields,
.mycocrm-student-area form,
.mycocrm-verify-shortcode form { display: grid; gap: 14px; }
.mycocrm-portal input,
.mycocrm-portal select,
.mycocrm-portal textarea,
.mycocrm-student-area input,
.mycocrm-student-area select,
.mycocrm-student-area textarea,
.mycocrm-verify-shortcode input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15,23,42,.14);
  border-radius: 16px;
  padding: 12px 14px;
  box-sizing: border-box;
  font-size: 16px;
  background: #fff;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.mycocrm-portal input:focus,
.mycocrm-portal select:focus,
.mycocrm-portal textarea:focus,
.mycocrm-student-area input:focus,
.mycocrm-student-area select:focus,
.mycocrm-student-area textarea:focus,
.mycocrm-verify-shortcode input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.mycocrm-portal button,
.mycocrm-portal-button,
.mycocrm-student-area button[type="submit"],
.mycocrm-verify-shortcode .mycocrm-public-button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: linear-gradient(135deg,#20453c,#2563eb) !important;
  color: #fff !important;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(37,99,235,.22);
}
.mycocrm-portal-notice,
.mycocrm-public-result,
.mycocrm-student-area .notice,
.mycocrm-student-area .mycocrm-panel {
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(15,23,42,.08);
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.07);
}
.mycocrm-public-result.is-ok { border-color: rgba(22,163,74,.28); background: #f0fdf4; }
.mycocrm-public-result.is-error { border-color: rgba(220,38,38,.24); background: #fef2f2; }
@media (max-width: 640px) {
  .mycocrm-portal,
  .mycocrm-student-area,
  .mycocrm-verify-shortcode { margin: 12px auto; padding-inline: 10px; }
  .mycocrm-portal-shell,
  .mycocrm-student-shell,
  .mycocrm-verify-shortcode { border-radius: 22px; padding: 18px; }
  .mycocrm-verify-shortcode .mycocrm-public-form-row { display: grid !important; gap: 10px; }
  .mycocrm-verify-shortcode .mycocrm-public-form-row input,
  .mycocrm-verify-shortcode .mycocrm-public-button { width: 100%; min-width: 0; }
}

/* MycoCRM Pro — frontend design system */
.mycocrm-portal,
.mycocrm-portal-shell,
.mycocrm-verify-shortcode {
    --myco-primary: #20453c;
    --myco-primary-2: #2f6f5f;
    --myco-accent: #c9984a;
    --myco-ink: #17231f;
    --myco-muted: #61716a;
    --myco-line: #dbe7e1;
    --myco-soft: #f4f8f6;
    --myco-card: #ffffff;
    --myco-danger: #b42318;
    --myco-success: #16794a;
    --myco-warning: #9a6700;
    color: var(--myco-ink);
    box-sizing: border-box;
}
.mycocrm-portal *,
.mycocrm-portal-shell *,
.mycocrm-verify-shortcode * { box-sizing: border-box; }
.mycocrm-portal-pro,
.mycocrm-verify-pro {
    width: 100%;
    max-width: 1180px;
    margin: 28px auto;
    padding: clamp(16px, 3vw, 32px);
    background: linear-gradient(135deg, rgba(32,69,60,.08), rgba(201,152,74,.08));
    border-radius: 30px;
    overflow: hidden;
}
.mycocrm-portal-shell,
.mycocrm-student-shell { max-width: 1180px; margin: 0 auto; padding: 0; }
.mycocrm-portal-header,
.mycocrm-verify-hero,
.mycocrm-portal-hero {
    padding: clamp(22px, 4vw, 42px);
    border: 1px solid rgba(32,69,60,.12);
    background: radial-gradient(circle at top right, rgba(201,152,74,.16), transparent 34%), var(--myco-card);
    border-radius: 26px;
    box-shadow: 0 20px 60px rgba(23,35,31,.08);
}
.mycocrm-portal-logo { max-height: 72px; max-width: 220px; object-fit: contain; margin-bottom: 14px; }
.mycocrm-portal-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 12px; border-radius: 999px;
    background: rgba(32,69,60,.09); color: var(--myco-primary);
    font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.mycocrm-portal-header h2,
.mycocrm-verify-hero h2,
.mycocrm-portal-hero h2 { margin: 16px 0 10px; font-size: clamp(28px, 5vw, 48px); line-height: 1.06; color: var(--myco-ink); }
.mycocrm-portal-header p,
.mycocrm-verify-hero p,
.mycocrm-portal-hero p { margin: 0; max-width: 760px; color: var(--myco-muted); font-size: clamp(16px, 2vw, 18px); line-height: 1.7; }
.mycocrm-portal-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mycocrm-portal-trust span,
.mycocrm-student-pill,
.mycocrm-student-tag,
.mycocrm-verify-status {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px;
    background: #eef6f2; color: var(--myco-primary); border: 1px solid rgba(32,69,60,.12);
    font-size: 12px; font-weight: 800; line-height: 1.2;
}
.mycocrm-student-pill.success,.mycocrm-public-result.is-ok .mycocrm-verify-status { background: #e6f7ed; color: var(--myco-success); border-color: rgba(22,121,74,.24); }
.mycocrm-student-pill.warn,.mycocrm-verify-result.status-expired .mycocrm-verify-status { background: #fff7df; color: var(--myco-warning); border-color: rgba(154,103,0,.22); }
.mycocrm-student-pill.danger,.mycocrm-public-result.is-error .mycocrm-verify-status { background: #ffe8e4; color: var(--myco-danger); border-color: rgba(180,35,24,.22); }
.mycocrm-portal-form,
.mycocrm-portal-card,
.mycocrm-public-result {
    background: var(--myco-card);
    border: 1px solid rgba(32,69,60,.12);
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(23,35,31,.07);
}
.mycocrm-portal-form { margin-top: 18px; padding: clamp(18px, 3vw, 30px); }
.mycocrm-portal-card { padding: clamp(18px, 3vw, 28px); }
.mycocrm-stepper-top { margin-bottom: 22px; }
.mycocrm-stepper-progress { height: 9px; border-radius: 999px; overflow: hidden; background: #e8f0ec; margin-bottom: 14px; }
.mycocrm-stepper-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--myco-primary),var(--myco-accent)); border-radius: inherit; transition: width .25s ease; }
.mycocrm-stepper-tabs { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; }
.mycocrm-stepper-tabs span { min-width: 0; border: 1px solid var(--myco-line); background: var(--myco-soft); color: var(--myco-muted); border-radius: 15px; padding: 10px 8px; text-align: center; font-size: 12px; font-weight: 700; }
.mycocrm-stepper-tabs b { display: block; width: 24px; height: 24px; line-height: 24px; margin: 0 auto 5px; border-radius: 50%; background: #fff; color: var(--myco-primary); }
.mycocrm-stepper-tabs span.is-current { background: var(--myco-primary); color: #fff; border-color: var(--myco-primary); }
.mycocrm-stepper-tabs span.is-current b { background: #fff; color: var(--myco-primary); }
.mycocrm-stepper-tabs span.is-done { background: #edf8f2; color: var(--myco-success); border-color: rgba(22,121,74,.22); }
.mycocrm-step { padding: clamp(12px, 2vw, 18px) 0 0; }
.mycocrm-step[hidden] { display: none !important; }
.mycocrm-step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.mycocrm-step-head > span { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; background: var(--myco-primary); color: #fff; font-weight: 900; }
.mycocrm-step-head h3 { margin: 0 0 4px; font-size: clamp(22px, 3vw, 30px); }
.mycocrm-step-head p { margin: 0; color: var(--myco-muted); line-height: 1.55; }
.mycocrm-portal-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.mycocrm-field-full { grid-column: 1 / -1; }
.mycocrm-portal-fields label,
.mycocrm-verify-form label { display: block; margin: 0 0 7px; font-weight: 800; color: var(--myco-ink); }
.mycocrm-portal-fields input,
.mycocrm-portal-fields select,
.mycocrm-portal-fields textarea,
.mycocrm-verify-form input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--myco-line); border-radius: 14px; background: #fff;
    color: var(--myco-ink); font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.mycocrm-portal-fields textarea { min-height: 112px; resize: vertical; }
.mycocrm-portal-fields input:focus,
.mycocrm-portal-fields select:focus,
.mycocrm-portal-fields textarea:focus,
.mycocrm-verify-form input:focus,
.mycocrm-public-button:focus,
.mycocrm-portal-button:focus,
.mycocrm-step-primary:focus,
.mycocrm-step-secondary:focus,
.mycocrm-student-quick-actions a:focus {
    border-color: var(--myco-primary-2); box-shadow: 0 0 0 4px rgba(47,111,95,.16); outline: 0;
}
.mycocrm-portal-fields input.is-invalid,
.mycocrm-portal-fields select.is-invalid,
.mycocrm-portal-fields textarea.is-invalid { border-color: var(--myco-danger); background: #fff8f7; }
.mycocrm-field-error { display: block; margin-top: 6px; color: var(--myco-danger); font-size: 13px; font-weight: 700; }
.mycocrm-step-actions,
.mycocrm-portal-submit { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.mycocrm-step-primary,
.mycocrm-portal-button,
.mycocrm-public-button {
    appearance: none; border: 0; border-radius: 16px; padding: 13px 20px;
    background: linear-gradient(135deg,var(--myco-primary),var(--myco-primary-2)); color: #fff;
    font-weight: 900; text-decoration: none; cursor: pointer; min-height: 48px;
    box-shadow: 0 12px 28px rgba(32,69,60,.22);
}
.mycocrm-step-secondary,
.mycocrm-student-ghost {
    appearance: none; border: 1px solid var(--myco-line); border-radius: 16px; padding: 13px 18px;
    background: #fff; color: var(--myco-primary); font-weight: 900; cursor: pointer; min-height: 48px;
}
.mycocrm-upload-help,
.mycocrm-student-muted,
.mycocrm-verify-privacy { color: var(--myco-muted); line-height: 1.65; font-size: 14px; }
.mycocrm-portal-notice { border-radius: 18px; padding: 14px 16px; margin: 0 0 18px; font-weight: 800; border: 1px solid transparent; }
.mycocrm-portal-notice.success { background: #e8f8ef; color: var(--myco-success); border-color: rgba(22,121,74,.2); }
.mycocrm-portal-notice.error { background: #fff0ed; color: var(--myco-danger); border-color: rgba(180,35,24,.2); }
.mycocrm-portal-body-grid { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 18px; margin-top: 18px; align-items: start; }
.mycocrm-portal-mini { padding: 16px; border-radius: 18px; background: var(--myco-soft); border: 1px solid var(--myco-line); margin-bottom: 12px; }
.mycocrm-portal-mini h3 { margin: 0 0 8px; font-size: 17px; }
.mycocrm-portal-mini ul { margin: 0; padding-left: 18px; color: var(--myco-muted); }
.mycocrm-student-top { display: grid; gap: 18px; margin-bottom: 18px; }
.mycocrm-student-hero { display: flex; justify-content: space-between; gap: 18px; align-items: stretch; }
.mycocrm-student-hero .mycocrm-portal-hero { box-shadow: none; border: 0; padding: 0; background: transparent; }
.mycocrm-student-hero-actions { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; align-items: flex-end; }
.mycocrm-student-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.mycocrm-student-cards,
.mycocrm-student-payment-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.mycocrm-student-stat,
.mycocrm-student-mini-stat { padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--myco-line); }
.mycocrm-student-stat strong,
.mycocrm-student-mini-stat strong { display: block; font-size: 24px; margin-top: 4px; color: var(--myco-primary); }
.mycocrm-student-section { margin-top: 18px; }
.mycocrm-student-section-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.mycocrm-student-section-head h3 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); }
.mycocrm-student-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; align-items: start; }
.mycocrm-student-quick-actions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.mycocrm-student-quick-actions a { display: flex; flex-direction: column; gap: 4px; min-height: 108px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid var(--myco-line); text-decoration: none; color: var(--myco-ink); box-shadow: 0 10px 28px rgba(23,35,31,.06); }
.mycocrm-student-quick-actions a span { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: rgba(32,69,60,.09); color: var(--myco-primary); font-weight: 900; }
.mycocrm-student-quick-actions a small { color: var(--myco-muted); }
.mycocrm-student-progress-bar { height: 10px; background: #edf4f1; border-radius: 999px; overflow: hidden; }
.mycocrm-student-progress-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--myco-primary),var(--myco-accent)); }
.mycocrm-student-timeline { position: relative; display: grid; gap: 12px; }
.mycocrm-student-timeline-item { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 12px; }
.mycocrm-student-timeline-dot { width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--myco-primary); box-shadow: 0 0 0 5px rgba(32,69,60,.12); }
.mycocrm-student-timeline-content,
.mycocrm-message-card { border: 1px solid var(--myco-line); border-radius: 18px; padding: 14px; background: #fff; }
.mycocrm-student-timeline-head,
.mycocrm-message-card { display: flex; justify-content: space-between; gap: 12px; }
.mycocrm-student-timeline-head span,
.mycocrm-message-card span { color: var(--myco-muted); font-size: 13px; white-space: nowrap; }
.mycocrm-message-list { display: grid; gap: 10px; }
.mycocrm-message-card p { margin: 6px 0 0; color: var(--myco-muted); line-height: 1.55; }
.mycocrm-student-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 18px; border: 1px solid var(--myco-line); }
.mycocrm-student-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.mycocrm-student-table th,
.mycocrm-student-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--myco-line); vertical-align: top; }
.mycocrm-student-download { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 12px; border-radius: 12px; background: #eef6f2; color: var(--myco-primary); font-weight: 800; text-decoration: none; }
.mycocrm-student-empty { padding: 16px; border-radius: 18px; background: var(--myco-soft); color: var(--myco-muted); border: 1px dashed var(--myco-line); }
.mycocrm-acceptance-card { margin-bottom: 12px; box-shadow: none; }
.mycocrm-acceptance-card h4 { margin: 0 0 10px; }
.mycocrm-verify-pro { max-width: 920px; }
.mycocrm-verify-form { margin-top: 18px; padding: clamp(18px, 3vw, 28px); background: #fff; border: 1px solid var(--myco-line); border-radius: 24px; box-shadow: 0 18px 50px rgba(23,35,31,.07); }
.mycocrm-verify-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: end; }
.mycocrm-verify-form input { min-height: 58px; font-size: 18px; font-weight: 700; }
.mycocrm-verify-result { margin-top: 18px; padding: clamp(18px, 3vw, 28px); }
.mycocrm-verify-result h3 { margin: 14px 0; font-size: clamp(22px,3vw,30px); }
.mycocrm-public-result-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.mycocrm-public-result-meta > div { padding: 12px; border-radius: 14px; background: var(--myco-soft); border: 1px solid var(--myco-line); }
.mycocrm-public-result-meta strong { display: block; margin-bottom: 3px; color: var(--myco-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.mycocrm-hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (max-width: 980px) {
    .mycocrm-stepper-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .mycocrm-portal-body-grid,
    .mycocrm-student-grid { grid-template-columns: 1fr; }
    .mycocrm-student-quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mycocrm-student-cards,
    .mycocrm-student-payment-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .mycocrm-student-hero { flex-direction: column; }
    .mycocrm-student-hero-actions { align-items: stretch; }
}
@media (max-width: 640px) {
    .mycocrm-portal-pro,
    .mycocrm-verify-pro { margin: 12px auto; padding: 12px; border-radius: 22px; }
    .mycocrm-portal-fields,
    .mycocrm-public-result-meta,
    .mycocrm-student-cards,
    .mycocrm-student-payment-summary { grid-template-columns: 1fr; }
    .mycocrm-stepper-tabs { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
    .mycocrm-stepper-tabs span { min-width: 112px; scroll-snap-align: start; }
    .mycocrm-step-actions,
    .mycocrm-portal-submit { flex-direction: column-reverse; }
    .mycocrm-step-actions button,
    .mycocrm-portal-submit button,
    .mycocrm-public-button { width: 100%; justify-content: center; }
    .mycocrm-verify-row { grid-template-columns: 1fr; }
    .mycocrm-student-quick-actions { grid-template-columns: 1fr; }
    .mycocrm-student-quick-actions a { min-height: 86px; }
    .mycocrm-message-card,
    .mycocrm-student-timeline-head { flex-direction: column; }
    .mycocrm-portal-header,
    .mycocrm-verify-hero,
    .mycocrm-portal-card,
    .mycocrm-portal-form { border-radius: 20px; }
}
.mycocrm-review-box { padding: 16px; border: 1px solid var(--myco-line); border-radius: 18px; background: var(--myco-soft); }
.mycocrm-review-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.mycocrm-review-grid > div { padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--myco-line); }
.mycocrm-review-grid span { display: block; color: var(--myco-muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mycocrm-review-grid strong { display: block; margin-top: 3px; overflow-wrap: anywhere; }
.mycocrm-portal-checks { display: grid; gap: 12px; }
.mycocrm-portal-check { display: flex; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--myco-line); border-radius: 16px; background: #fff; cursor: pointer; }
.mycocrm-portal-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--myco-primary); }
.mycocrm-submit-final { align-items: center; }
.mycocrm-submit-final span { color: var(--myco-muted); line-height: 1.45; }
.mycocrm-portal-sidegrid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 18px; }
.mycocrm-mini-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 13px; background: rgba(32,69,60,.1); color: var(--myco-primary); font-weight: 900; margin-bottom: 10px; }
@media (max-width: 760px) { .mycocrm-review-grid,.mycocrm-portal-sidegrid { grid-template-columns: 1fr; } }


/* MycoCRM Pro — frontend design system */
.mycocrm-portal-shell,.mycocrm-student-shell,.mycocrm-verify-shortcode,.mycocrm-portal-card,.mycocrm-student-dashboard,.mycocrm-student-grid,.mycocrm-portal-grid{box-sizing:border-box;min-width:0;max-width:100%}
.mycocrm-portal-shell *,.mycocrm-student-shell *,.mycocrm-verify-shortcode *,.mycocrm-public-standalone *{box-sizing:border-box}
.mycocrm-portal-shell img,.mycocrm-student-shell img,.mycocrm-verify-shortcode img{max-width:100%;height:auto}
.mycocrm-portal-shell code,.mycocrm-student-shell code,.mycocrm-verify-shortcode code{overflow-wrap:anywhere;word-break:break-word}
.mycocrm-portal-notice.info{background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe}
.mycocrm-portal-button,.mycocrm-public-button,.mycocrm-step-primary,.mycocrm-step-secondary,.mycocrm-student-ghost,.mycocrm-student-download{min-height:44px;touch-action:manipulation}
.mycocrm-portal-button:focus-visible,.mycocrm-public-button:focus-visible,.mycocrm-step-primary:focus-visible,.mycocrm-step-secondary:focus-visible,.mycocrm-student-ghost:focus-visible,.mycocrm-student-download:focus-visible,.mycocrm-portal-shell a:focus-visible,.mycocrm-student-shell a:focus-visible{outline:3px solid #0f172a;outline-offset:3px}
.mycocrm-portal-form input:focus-visible,.mycocrm-portal-form select:focus-visible,.mycocrm-portal-form textarea:focus-visible,.mycocrm-student-section input:focus-visible,.mycocrm-student-section select:focus-visible,.mycocrm-student-section textarea:focus-visible,.mycocrm-verify-form input:focus-visible{outline:3px solid rgba(37,99,235,.30);outline-offset:2px;border-color:#2563eb}
.mycocrm-field-error{margin-top:7px;color:#b91c1c;font-size:13px;font-weight:650;line-height:1.45}
.mycocrm-portal-shell .is-invalid,.mycocrm-student-shell .is-invalid,.mycocrm-verify-shortcode .is-invalid{border-color:#dc2626!important}
.mycocrm-student-timeline-dot::after{content:"";display:block;width:4px;height:4px;border-radius:50%;background:#fff;margin:5px}

.mycocrm-public-standalone{margin:0;background:#f3f6f8;color:#172033;font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;min-height:100vh}
.mycocrm-standalone-wrap{width:min(860px,calc(100% - 32px));margin:0 auto;padding:40px 0}
.mycocrm-standalone-card{padding:clamp(22px,5vw,38px);overflow:visible}
.mycocrm-standalone-card h1{margin:16px 0 10px;font-size:clamp(28px,5vw,42px);line-height:1.12;color:#0f172a}
.mycocrm-standalone-message{margin:0;color:#475569;line-height:1.7}
.mycocrm-standalone-card .mycocrm-verify-status{display:inline-flex;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.mycocrm-standalone-card .mycocrm-verify-status.is-valid{background:#dcfce7;color:#166534}
.mycocrm-standalone-card .mycocrm-verify-status.is-invalid{background:#fee2e2;color:#991b1b}
.mycocrm-standalone-card .mycocrm-public-result-meta{margin-top:22px}
.mycocrm-standalone-card code{display:inline-block;max-width:100%;padding:5px 8px;border-radius:8px;background:#0f172a;color:#f8fafc;overflow-wrap:anywhere}
.mycocrm-standalone-actions{margin-top:24px;display:flex;flex-wrap:wrap;gap:12px}
.mycocrm-standalone-actions .mycocrm-public-button{text-decoration:none}

@media (max-width:640px){
  .mycocrm-portal-shell{margin:20px auto;padding:0 12px}
  .mycocrm-portal-card{border-radius:18px}
  .mycocrm-portal-button,.mycocrm-public-button,.mycocrm-step-primary,.mycocrm-step-secondary{width:100%;justify-content:center;text-align:center}
  .mycocrm-student-section{padding:18px}
  .mycocrm-student-table{min-width:680px}
  .mycocrm-student-table-wrap{-webkit-overflow-scrolling:touch}
  .mycocrm-standalone-wrap{width:min(100% - 24px,860px);padding:20px 0}
}

@media (prefers-reduced-motion:reduce){
  .mycocrm-portal-shell *,.mycocrm-student-shell *,.mycocrm-verify-shortcode *,.mycocrm-public-standalone *{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* MycoCRM Pro — frontend design system */
.mycocrm-student-progress-native{display:block;width:100%;height:12px;border:0;border-radius:999px;overflow:hidden;background:#edf4f1;appearance:none;-webkit-appearance:none}
.mycocrm-student-progress-native::-webkit-progress-bar{background:#edf4f1;border-radius:999px}
.mycocrm-student-progress-native::-webkit-progress-value{background:linear-gradient(90deg,var(--myco-primary),var(--myco-accent));border-radius:999px}
.mycocrm-student-progress-native::-moz-progress-bar{background:linear-gradient(90deg,var(--myco-primary),var(--myco-accent));border-radius:999px}

/* MycoCRM Pro — frontend design system */
.mycocrm-portal-shell,
.mycocrm-student-shell,
.mycocrm-verify-shortcode { --myco-focus: rgba(12,111,86,.28); }
.mycocrm-portal-shell { width:min(100% - 28px,1120px); }
.mycocrm-portal-header,
.mycocrm-student-hero,
.mycocrm-verify-hero { position:relative; overflow:hidden; }
.mycocrm-portal-header:after,
.mycocrm-student-hero:after,
.mycocrm-verify-hero:after { content:""; position:absolute; width:220px; height:220px; right:-90px; top:-110px; border-radius:50%; background:rgba(255,255,255,.07); pointer-events:none; }
.mycocrm-portal-header h1,
.mycocrm-student-hero h1,
.mycocrm-verify-hero h1 { letter-spacing:-.035em; text-wrap:balance; }
.mycocrm-portal-card,
.mycocrm-student-section,
.mycocrm-verify-form,
.mycocrm-verify-result { box-shadow:0 16px 44px rgba(22,52,43,.065); }
.mycocrm-portal-field label,
.mycocrm-form-field label { font-weight:800; color:#24372f; }
.mycocrm-portal-field input,
.mycocrm-portal-field select,
.mycocrm-portal-field textarea,
.mycocrm-form-field input,
.mycocrm-form-field select,
.mycocrm-form-field textarea { min-height:48px; border-radius:14px; }
.mycocrm-portal-field textarea,.mycocrm-form-field textarea { min-height:112px; }
.mycocrm-portal-field input:focus,
.mycocrm-portal-field select:focus,
.mycocrm-portal-field textarea:focus,
.mycocrm-form-field input:focus,
.mycocrm-form-field select:focus,
.mycocrm-form-field textarea:focus { border-color:var(--myco-primary); box-shadow:0 0 0 4px var(--myco-focus); outline:0; }
.mycocrm-student-focus-callout { margin:0 0 18px; padding:16px 18px; border:1px solid rgba(12,111,86,.16); border-radius:18px; background:linear-gradient(135deg,#f0f8f5,#fff); }
.mycocrm-student-focus-callout strong { display:block; margin-bottom:4px; color:var(--myco-primary); }
.mycocrm-student-focus-callout p { margin:0; color:var(--myco-muted); line-height:1.55; }
#mycocrm-student-documents,#mycocrm-student-renewal { scroll-margin-top:28px; }
.mycocrm-upload-help { padding:10px 12px; margin-top:8px; border-radius:12px; background:var(--myco-soft); color:var(--myco-muted); font-size:13px; line-height:1.45; }
.mycocrm-verify-form label { display:block; margin-bottom:7px; font-weight:850; color:#24372f; }
.mycocrm-verify-form input { width:100%; box-sizing:border-box; }
.mycocrm-verify-status { gap:7px; }
.mycocrm-student-table-wrap { scrollbar-width:thin; scrollbar-color:#b7c9c1 transparent; }
.mycocrm-student-table th { background:#f6faf8; color:#365247; font-size:12px; text-transform:uppercase; letter-spacing:.035em; }
.mycocrm-student-table tbody tr:last-child td { border-bottom:0; }
@media (max-width:640px) {
  .mycocrm-portal-shell { width:min(100% - 16px,1120px); padding:8px; margin:8px auto; }
  .mycocrm-portal-header,.mycocrm-student-hero,.mycocrm-verify-hero { padding:22px 18px; }
  .mycocrm-portal-card,.mycocrm-student-section,.mycocrm-verify-form,.mycocrm-verify-result { padding:17px; }
  .mycocrm-portal-field input,.mycocrm-portal-field select,.mycocrm-form-field input,.mycocrm-form-field select { min-height:50px; font-size:16px; }
  .mycocrm-student-table { min-width:620px; }
  .mycocrm-student-table th,.mycocrm-student-table td { padding:11px 12px; }
}

/* Pagine area corsista focalizzate: meno rumore, più azione. */
#mycocrm-section-upload,
#mycocrm-section-documents,
[id^="mycocrm-section-renewal"] { scroll-margin-top:28px; }
.mycocrm-student-dashboard[data-focus="documents"] .mycocrm-student-grid,
.mycocrm-student-dashboard[data-focus="renewal"] .mycocrm-student-grid { display:contents; }
.mycocrm-student-dashboard[data-focus="documents"] .mycocrm-student-section:not(#mycocrm-section-upload):not(#mycocrm-section-documents) { display:none; }
.mycocrm-student-dashboard[data-focus="renewal"] .mycocrm-student-section:not([id^="mycocrm-section-renewal"]) { display:none; }
.mycocrm-student-dashboard[data-focus="documents"] .mycocrm-student-quick-actions,
.mycocrm-student-dashboard[data-focus="renewal"] .mycocrm-student-quick-actions { margin-bottom:14px; }

/* MycoCRM Pro — frontend design system */
.mycocrm-portal{--myco-public-ink:#10221f;--myco-public-muted:#60716e;--myco-public-line:#dce8e5;--myco-public-soft:#f5faf8;}
.mycocrm-portal-shell{max-width:1120px!important;margin-inline:auto!important;}
.mycocrm-portal-hero{border-radius:28px!important;padding:clamp(24px,5vw,46px)!important;overflow:hidden!important;}
.mycocrm-portal-card,.mycocrm-student-card,.mycocrm-verify-card{border:1px solid rgba(15,118,110,.12)!important;border-radius:22px!important;box-shadow:0 14px 42px rgba(15,23,42,.065)!important;background:#fff!important;}
.mycocrm-portal input,.mycocrm-portal select,.mycocrm-portal textarea{border-radius:13px!important;border:1px solid #cedbd8!important;min-height:48px!important;background:#fff!important;color:#10221f!important;box-sizing:border-box!important;}
.mycocrm-portal input:focus,.mycocrm-portal select:focus,.mycocrm-portal textarea:focus{border-color:#2f9d87!important;box-shadow:0 0 0 4px rgba(15,118,110,.1)!important;outline:none!important;}
.mycocrm-portal label{font-weight:800!important;color:#29423d!important;}
.mycocrm-step{border-radius:22px!important;}
.mycocrm-step-head{gap:14px!important;margin-bottom:20px!important;}
.mycocrm-step-head>span{width:36px!important;height:36px!important;flex:0 0 36px!important;box-shadow:0 8px 18px rgba(15,118,110,.16)!important;}
.mycocrm-field-help{margin:7px 0 0;color:#6b7c78;font-size:13px;line-height:1.45;}
.mycocrm-empty-state{border-radius:18px!important;background:linear-gradient(180deg,#fbfefd,#f5faf8)!important;}

.mycocrm-operator-dock{position:fixed;right:22px;bottom:22px;z-index:99990;}
.mycocrm-operator-launch{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 15px 8px 9px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:linear-gradient(135deg,#0b3f36,#0f766e 58%,#2563eb);color:#fff;box-shadow:0 18px 45px rgba(15,23,42,.24);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease;}
.mycocrm-operator-launch:hover,.mycocrm-operator-launch:focus-visible{transform:translateY(-2px);box-shadow:0 22px 54px rgba(15,23,42,.29);outline:3px solid rgba(45,212,191,.28);outline-offset:2px;}
.mycocrm-operator-launch-icon{width:40px;height:40px;border-radius:13px;background:rgba(255,255,255,.14);display:grid;place-items:center;font-size:26px;font-weight:800;}
.mycocrm-operator-launch span:last-child{display:grid;text-align:left;line-height:1.05;}
.mycocrm-operator-launch strong{font-size:14px;}
.mycocrm-operator-launch small{margin-top:4px;color:rgba(255,255,255,.72);font-size:10px;}
.mycocrm-operator-modal[hidden]{display:none!important;}
.mycocrm-operator-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px;box-sizing:border-box;}
.mycocrm-operator-backdrop{position:absolute;inset:0;background:rgba(2,6,23,.72);backdrop-filter:blur(9px);}
.mycocrm-operator-dialog{position:relative;width:min(960px,100%);max-height:calc(100vh - 36px);overflow:auto;border:1px solid rgba(255,255,255,.24);border-radius:28px;background:#fff;box-shadow:0 35px 100px rgba(2,6,23,.42);}
.mycocrm-operator-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px 20px;background:linear-gradient(135deg,#0b2f29,#0f766e);color:#fff;border-radius:27px 27px 0 0;}
.mycocrm-operator-dialog-head h2{margin:4px 0 5px;color:#fff;font-size:26px;line-height:1.1;}
.mycocrm-operator-dialog-head p{margin:0;max-width:650px;color:rgba(255,255,255,.8);font-size:13px;line-height:1.5;}
.mycocrm-operator-eyebrow{display:block;color:#99f6e4;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.11em;}
.mycocrm-operator-close{width:38px;height:38px;flex:0 0 38px;border:1px solid rgba(255,255,255,.2);border-radius:12px;background:rgba(255,255,255,.1);color:#fff;font-size:26px;line-height:1;cursor:pointer;}
.mycocrm-operator-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;padding:20px;}
.mycocrm-operator-camera-card,.mycocrm-operator-preview-card{border:1px solid #dce8e5;border-radius:20px;background:#fff;padding:16px;box-shadow:0 10px 30px rgba(15,23,42,.045);}
.mycocrm-operator-reader{min-height:320px;border-radius:16px;overflow:hidden;background:#08111f;}
.mycocrm-operator-reader video,.mycocrm-operator-reader canvas{max-width:100%!important;border-radius:14px;}
.mycocrm-operator-status{margin:12px 0;padding:11px 12px;border-radius:12px;background:#f1f5f9;color:#475569;font-size:13px;font-weight:700;}
.mycocrm-operator-status[data-tone=success]{background:#ecfdf5;color:#047857;}.mycocrm-operator-status[data-tone=error]{background:#fef2f2;color:#b91c1c;}.mycocrm-operator-status[data-tone=loading]{background:#eff6ff;color:#1d4ed8;}
.mycocrm-operator-camera-actions,.mycocrm-operator-preview-actions{display:flex;flex-wrap:wrap;gap:9px;}
.mycocrm-operator-manual{margin-top:14px;padding-top:14px;border-top:1px solid #e2e8f0;}
.mycocrm-operator-manual label{display:block;margin-bottom:6px;color:#475569;font-size:12px;font-weight:800;}
.mycocrm-operator-manual>div{display:flex;gap:8px;}.mycocrm-operator-manual input{flex:1;min-width:0;min-height:42px;padding:0 11px;border:1px solid #cbd5e1;border-radius:11px;}
.mycocrm-operator-preview-card h3{margin:6px 0 18px;color:#0f172a;font-size:24px;line-height:1.15;}
.mycocrm-operator-preview-card dl{display:grid;gap:10px;margin:0 0 16px;}.mycocrm-operator-preview-card dl>div{padding:11px 12px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0;}.mycocrm-operator-preview-card dt{font-size:10px;font-weight:900;color:#64748b;text-transform:uppercase;letter-spacing:.055em;}.mycocrm-operator-preview-card dd{margin:3px 0 0;color:#0f172a;font-weight:800;}
.mycocrm-operator-confirm-note{margin:0 0 14px;padding:11px 12px;border-left:4px solid #0f766e;border-radius:10px;background:#f0fdfa;color:#115e59;font-size:12px;line-height:1.45;}
html.mycocrm-operator-open{overflow:hidden;}
@media(max-width:760px){
  .mycocrm-operator-dock{right:12px;bottom:12px;}.mycocrm-operator-launch{min-height:52px;border-radius:16px;padding-right:12px}.mycocrm-operator-launch small{display:none}.mycocrm-operator-modal{padding:0;align-items:end}.mycocrm-operator-dialog{width:100%;max-height:96vh;border-radius:24px 24px 0 0}.mycocrm-operator-dialog-head{padding:18px;border-radius:23px 23px 0 0}.mycocrm-operator-dialog-head h2{font-size:22px}.mycocrm-operator-layout{grid-template-columns:1fr;padding:12px;gap:12px}.mycocrm-operator-reader{min-height:260px}.mycocrm-operator-camera-card,.mycocrm-operator-preview-card{border-radius:16px;padding:12px}.mycocrm-operator-camera-actions .mycocrm-button,.mycocrm-operator-preview-actions .mycocrm-button{flex:1 1 100%}.mycocrm-operator-manual>div{display:grid;grid-template-columns:minmax(0,1fr) auto}.mycocrm-portal{width:100%!important;overflow-x:hidden!important}.mycocrm-portal-shell{padding-inline:10px!important;box-sizing:border-box!important}.mycocrm-portal-fields{grid-template-columns:1fr!important}.mycocrm-portal input,.mycocrm-portal select,.mycocrm-portal textarea{font-size:16px!important;max-width:100%!important;width:100%!important}.mycocrm-step-actions{display:grid!important;grid-template-columns:1fr!important}.mycocrm-step-actions button{width:100%!important}.mycocrm-card-grid,.mycocrm-portal-sidegrid{grid-template-columns:1fr!important}}

/* Frontend premium — percorsi focalizzati e responsive */
.mycocrm-student-dashboard[data-focus="documents"] .mycocrm-student-cards,
.mycocrm-student-dashboard[data-focus="renewal"] .mycocrm-student-cards{display:none!important;}
.mycocrm-student-dashboard[data-focus="documents"] .mycocrm-student-section:not([data-area="upload"]):not([data-area="documents"]):not([data-area="messages"]){display:none!important;}
.mycocrm-student-dashboard[data-focus="renewal"] .mycocrm-student-section:not([data-area="practice"]):not([data-area="renewal-status"]):not([data-area="renewal"]):not([data-area="renewal-history"]):not([data-area="renewal-requests"]):not([data-area="documents"]){display:none!important;}
.mycocrm-student-dashboard[data-focus="documents"] .mycocrm-student-top,
.mycocrm-student-dashboard[data-focus="renewal"] .mycocrm-student-top{margin-bottom:18px;}
.mycocrm-student-dashboard[data-focus="documents"] [data-area="upload"],
.mycocrm-student-dashboard[data-focus="renewal"] [data-area="renewal"]{border-color:rgba(15,118,110,.28)!important;box-shadow:0 22px 55px rgba(15,118,110,.10)!important;}
.mycocrm-portal-header,.mycocrm-student-hero,.mycocrm-verify-hero{position:relative;overflow:hidden;}
.mycocrm-portal-header:after,.mycocrm-student-hero:after,.mycocrm-verify-hero:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-110px;top:-120px;background:radial-gradient(circle,rgba(255,255,255,.20),rgba(255,255,255,0) 70%);pointer-events:none;}
.mycocrm-portal-form,.mycocrm-student-section,.mycocrm-verify-form{scroll-margin-top:24px;}
.mycocrm-student-section{transition:box-shadow .18s ease,border-color .18s ease;}
.mycocrm-student-section:target{border-color:rgba(37,99,235,.34)!important;box-shadow:0 0 0 4px rgba(37,99,235,.08),0 20px 50px rgba(15,23,42,.09)!important;}
@media(max-width:640px){
 .mycocrm-portal-shell,.mycocrm-student-shell,.mycocrm-verify-shortcode{padding-inline:0!important;margin-inline:auto!important;width:100%!important;}
 .mycocrm-portal-header,.mycocrm-student-hero,.mycocrm-verify-hero{border-radius:20px!important;padding:22px 18px!important;}
 .mycocrm-portal-card,.mycocrm-student-section,.mycocrm-verify-form{border-radius:18px!important;}
 .mycocrm-student-hero-actions{align-items:stretch!important;}
 .mycocrm-student-hero-actions form,.mycocrm-student-hero-actions button{width:100%!important;}
}

/* Territorio autocomplete — frontend */
.mycocrm-territory-autocomplete{position:relative;min-width:0}
.mycocrm-territory-autocomplete>input{width:100%}
.mycocrm-territory-suggestions{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 6px);max-height:260px;overflow:auto;padding:6px;border:1px solid #d9e3ee;border-radius:14px;background:#fff;box-shadow:0 18px 42px rgba(15,23,42,.16)}
.mycocrm-territory-option{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border:0;border-radius:10px;background:transparent;color:#0f172a;text-align:left;cursor:pointer}
.mycocrm-territory-option:hover,.mycocrm-territory-option.is-active{background:#f0fdfa}
.mycocrm-territory-option strong{font-size:14px}.mycocrm-territory-option span{font-size:12px;color:#64748b}
