.afd-front-wrap{margin:32px auto;padding:0 16px}
.afd-front-dashboard-wrap{width:100%;max-width:none;padding:0 50px;box-sizing:border-box}
.afd-front-layout{display:grid;grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:24px;align-items:start}
.afd-front-sidebar{position:sticky;top:180px}.afd-front-sidebar:empty{display:none}.afd-front-main{min-width:0}
.afd-front-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.afd-front-header h2{margin:0;font-size:34px;line-height:1.1;color:#0f172a}
.afd-kicker{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;margin-bottom:8px}
.afd-front-filters,.afd-account-form,.afd-mail-buttons-wrap,.afd-widget{background:#fff;border:1px solid #e7eaee;border-radius:24px;padding:18px;box-shadow:0 18px 40px rgba(15,23,42,.06)}
.afd-front-filters,.afd-account-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:22px}
.afd-widget + .afd-widget{margin-top:18px}.afd-widget-title{margin:0 0 12px;font-size:20px;color:#0f172a}
.afd-front-filters label,.afd-account-form label{display:block;font-size:13px;font-weight:600;color:#334155;margin-bottom:6px}
.afd-front-filters input,.afd-front-filters select,.afd-account-form input,.afd-account-form select,.afd-account-form textarea{width:100%;border:1px solid #dbe1ea;border-radius:14px;padding:12px 14px;background:#fff;min-height:48px;line-height:1.4;box-sizing:border-box}
.afd-account-form textarea{min-height:110px}.afd-filter-actions,.afd-account-actions{display:flex;align-items:end}
.afd-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}
.afd-front-card{background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid #e8eef5;border-radius:24px;padding:14px;box-shadow:0 18px 34px rgba(15,23,42,.06)}
.afd-front-card-body{display:flex;flex-direction:column;gap:18px;background:#fff;border:1px solid #e7eaee;border-radius:20px;padding:20px;box-shadow:0 10px 24px rgba(15,23,42,.04);box-sizing:border-box}
.afd-front-card-title h3{margin:0;color:#0f172a;font-size:22px;line-height:1.2}
.afd-front-card-actions{margin-top:auto}
.afd-chip-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.afd-popup-chip-row{margin-bottom:18px}
.afd-feedback-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0;padding:10px 14px;border:1px solid #bbf7d0;border-radius:18px;background:#f0fdf4;color:#166534;font-weight:700}
.afd-feedback-row .dashicons{width:18px;height:18px;font-size:18px}
.afd-feedback-row[hidden]{display:none!important}
.afd-feedback-row.is-error{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
.afd-chip{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#e8f0ff;color:#1d4ed8;font-size:12px;font-weight:700}
.afd-state{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;background:#e2e8f0;color:#0f172a}
.afd-state-creee{background:#e5e7eb}.afd-state-candidatee{background:#fef3c7;color:#92400e}.afd-state-assignee{background:#dbeafe;color:#1d4ed8}.afd-state-realisee{background:#dcfce7;color:#166534}
.afd-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border:none;border-radius:14px;background:#1d4ed8;color:#fff;text-decoration:none;font-weight:700;cursor:pointer;box-shadow:0 12px 24px rgba(29,78,216,.16)}.afd-button:hover{background:rgb(46, 114, 253);color:#fff;box-shadow:0 12px 24px rgba(29,78,216,.16)}
.afd-button-secondary{background:#0f172a;color:#FFFFFF;box-shadow:0 12px 24px rgba(15,23,42,.18)}.afd-button-secondary:hover{background:#5E5E5E;color:#FFFFFF;box-shadow:0 12px 24px rgba(15,23,42,.18)}
.afd-button-disabled{background:#94a3b8;cursor:not-allowed;box-shadow:none}.afd-button-disabled:hover{background:#94a3b8;color:#fff;box-shadow:none}
.afd-button-ghost{background:#eef4ff;color:#1d4ed8}.afd-button-small{min-height:38px;padding:0 14px;border-radius:12px;font-size:13px}.afd-button-danger{background:#b91c1c}
.afd-front-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.afd-front-actions form{margin:0}
.afd-empty-state{background:#fff;border:1px dashed #cbd5e1;border-radius:24px;padding:24px;text-align:center;color:#64748b}
.afd-empty-text{margin:0;color:#64748b}
.afd-detail-list{list-style:none;margin:0;padding:0;display:grid;gap:10px}.afd-detail-list li{display:grid;gap:4px;padding:12px 14px;border:1px solid #e6edf5;border-radius:16px;background:#fff}
.afd-detail-list-card li{background:#f8fafc}.afd-detail-label{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.afd-detail-value{font-size:15px;line-height:1.45;color:#0f172a}
.afd-attribute-list{display:grid;gap:12px}.afd-attribute-list-item{padding:14px;border:1px solid #e6edf5;border-radius:18px;background:#f8fafc}.afd-attribute-label{display:block;margin-bottom:10px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#64748b}.afd-attribute-values{display:flex;flex-wrap:wrap;gap:8px}
.afd-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:24px}.afd-modal[hidden]{display:none!important}.afd-modal-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.56);backdrop-filter:blur(4px)}
.afd-modal-dialog{position:relative;z-index:1;width:min(1040px,100%);max-height:min(92vh,980px);overflow:auto;background:#fff;border:1px solid #e7eaee;border-radius:28px;padding:28px;box-shadow:0 30px 70px rgba(15,23,42,.25)}
.afd-modal-close{position:absolute;top:16px;right:16px;width:42px;height:42px;border:none;border-radius:999px;background:#f1f5f9;color:#0f172a;font-size:28px;line-height:1;cursor:pointer}
.afd-popup-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.95fr);gap:18px}.afd-popup-main,.afd-popup-side{display:grid;gap:18px;align-content:start}
.afd-popup-block{padding:20px;border:1px solid #e7eaee;border-radius:22px;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)}.afd-popup-title-block h3{margin:0;color:#0f172a;font-size:28px;line-height:1.15}
.afd-popup-description{color:#334155}.afd-popup-description > :first-child{margin-top:0}.afd-popup-description > :last-child{margin-bottom:0}
.afd-popup-actions{margin-top:18px;padding-top:18px;border-top:1px solid #e7eaee;justify-content:flex-start}
.afd-popup-mail-buttons{display:grid;grid-template-columns:1fr;gap:8px;width:100%}
.afd-popup-mail-block .afd-popup-mail-buttons{margin-top:4px}
.afd-account-wrap{width:min(100%,var(--wp--style--global--content-size,860px))}.afd-notice{margin:0 0 18px;padding:14px 16px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:18px;color:#1e3a8a;font-weight:600}.afd-mail-buttons-wrap{margin-bottom:22px}.afd-mail-buttons{display:flex;flex-wrap:wrap;gap:10px}
.afd-account-page{padding:0 50px;background:transparent;box-sizing:border-box}.afd-account-wrap{margin:0 auto}.afd-profile-edit-container{max-width:600px;margin:0 auto;padding:30px;background:#fff;border:1px solid #e7eaee;border-radius:24px;box-shadow:0 18px 40px rgba(15,23,42,.06)}.afd-account-header{margin-bottom:18px}.afd-account-header h2{margin:0;font-size:34px;line-height:1.1;color:#0f172a}
.afd-profile-form{display:block}.afd-profile-form label{display:block;margin-top:20px;font-weight:700;font-size:14px;color:#0f172a}.afd-profile-form input,.afd-profile-form select{width:100%;padding:12px;margin-top:6px;border:1px solid #dbe1ea;border-radius:12px;font-size:14px;box-sizing:border-box;background:#fff}.afd-profile-submit{margin-top:30px;background:#000;color:#fff}.afd-profile-submit:hover{background:#5e5e5e;color:#fff}
.afd-checkbox-field{display:flex;align-items:center;gap:12px;margin-top:20px;font-weight:700;font-size:14px;color:#0f172a}.afd-checkbox-field input{width:18px;height:18px;margin:0;flex:0 0 auto}.afd-checkbox-field span{display:inline-block}.afd-profile-form .afd-checkbox-field{padding:14px 16px;border:1px solid #dbe1ea;border-radius:12px;background:#fff}
.afd-profile-form select#afd_gender{min-height:48px;line-height:1.4;padding-top:12px;padding-bottom:12px;padding-right:40px;text-align:left;text-align-last:left;background-position:right 14px center}.afd-profile-form select#afd_gender option{text-align:left}
.afd-view-nav{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 22px}.afd-view-tab{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;background:#fff;border:1px solid #dbe1ea;color:#0f172a;text-decoration:none;font-weight:700}.afd-view-tab.is-active{background:#0f172a;color:#fff;border-color:#0f172a}
.afd-front-filters select[multiple]{min-height:140px;padding-top:10px;padding-bottom:10px}.afd-field-help{margin:8px 0 0;font-size:12px;color:#64748b;line-height:1.4}
body.afd-modal-open{overflow:hidden}
@media (max-width: 960px){.afd-profile-edit-container{padding:22px}.afd-front-layout{grid-template-columns:1fr}.afd-front-sidebar{position:static;order:-1}.afd-front-dashboard-wrap{padding:0 24px}.afd-account-page{padding:0 24px}.afd-popup-grid{grid-template-columns:1fr}.afd-modal-dialog{padding:22px}}
@media (max-width: 640px){.afd-front-dashboard-wrap{padding:0 16px}.afd-account-page{padding:0 16px}.afd-card-grid{grid-template-columns:1fr}.afd-modal{padding:14px}.afd-modal-dialog{padding:18px}.afd-popup-title-block h3{font-size:24px}.afd-census-range-labels{flex-direction:column;align-items:flex-start}}

.afd-card-grid>.afd-front-card{height:100%;display:flex;flex-direction:column}.afd-card-grid>.afd-front-card .afd-front-card-body{flex:1 1 auto}.afd-registration-shortcode-wrap{margin:0;padding:0}.afd-registration-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,280px));gap:18px;justify-content:flex-start;max-width:1174px}.afd-registration-card{display:flex;flex-direction:column;overflow:hidden;height:100%;max-width:280px;width:100%;margin:0}.afd-registration-card .afd-front-card-body{flex:1 1 auto;overflow:hidden;width:100%;max-width:100%}.afd-registration-button{width:100%}.afd-registration-card .afd-front-card-actions{width:100%}.afd-registration-card .afd-front-card-actions .afd-registration-button{width:100%}.afd-popup-mail-buttons .afd-button,.afd-popup-mail-buttons .afd-button-disabled{width:100%}.afd-popup-mail-buttons{display:grid;gap:8px}.afd-popup-mail-block .afd-popup-mail-buttons{margin-top:4px}@media (max-width: 640px){.afd-registration-grid{grid-template-columns:1fr}.afd-registration-card{max-width:none}}

.afd-front-census-form{display:grid;gap:14px}.afd-front-census-total label{display:block;font-size:13px;font-weight:600;color:#334155;margin-bottom:6px}.afd-front-census-total input{width:100%;border:1px solid #dbe1ea;border-radius:14px;padding:12px 14px;background:#fff;min-height:48px;line-height:1.4;box-sizing:border-box}.afd-census-range-wrap{padding:18px;border:1px solid #e7eaee;border-radius:20px;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.04)}.afd-census-range-labels{display:flex;justify-content:space-between;gap:16px;margin-bottom:12px;color:#334155;font-weight:600}.afd-census-range-labels span{display:inline-flex;align-items:center;gap:6px}.afd-census-range{width:100%}.afd-popup-participants-block{display:grid;gap:8px}.afd-registration-grid .afd-front-card,.afd-registration-grid .afd-front-card-body{max-width:none}.afd-registration-grid .afd-front-card{width:100%}

/* 1.4.16 - performance polish and lightweight transitions */
.afd-button,.afd-view-tab,.afd-front-card,.afd-front-card-body,.afd-front-filters input,.afd-front-filters select,.afd-account-form input,.afd-account-form select,.afd-account-form textarea,.afd-profile-form input,.afd-profile-form select,.afd-modal,.afd-modal-backdrop,.afd-modal-dialog{transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease,opacity .18s ease}
.afd-front-card:hover{transform:translate3d(0,-1px,0);box-shadow:0 20px 40px rgba(15,23,42,.08)}
.afd-button:focus-visible,.afd-view-tab:focus-visible,.afd-front-filters input:focus-visible,.afd-front-filters select:focus-visible,.afd-account-form input:focus-visible,.afd-account-form select:focus-visible,.afd-account-form textarea:focus-visible,.afd-profile-form input:focus-visible,.afd-profile-form select:focus-visible,.afd-modal-close:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(29,78,216,.18)}
.afd-modal{opacity:0;pointer-events:none}
.afd-modal.is-visible,.afd-modal.is-closing{display:flex}
.afd-modal.is-visible{opacity:1;pointer-events:auto}
.afd-modal-backdrop{opacity:0}
.afd-modal.is-visible .afd-modal-backdrop{opacity:1}
.afd-modal-dialog{opacity:0;transform:translate3d(0,8px,0) scale(.985)}
.afd-modal.is-visible .afd-modal-dialog{opacity:1;transform:translate3d(0,0,0) scale(1)}
@media (prefers-reduced-motion: reduce){.afd-button,.afd-view-tab,.afd-front-card,.afd-front-card-body,.afd-front-filters input,.afd-front-filters select,.afd-account-form input,.afd-account-form select,.afd-account-form textarea,.afd-profile-form input,.afd-profile-form select,.afd-modal,.afd-modal-backdrop,.afd-modal-dialog{transition:none}.afd-front-card:hover{transform:none}}
.afd-front-sidebar .afd-widget {
  box-shadow: none;
}

.afd-front-sidebar {
  background-clip: padding-box;
}

.afd-view-tab[href*="afd_view=demandees"]{border-color:#0f172a}
.afd-popup-main input[type="datetime-local"].afd-datetime-empty{color:#94a3b8}.afd-popup-main input[type="datetime-local"].afd-datetime-empty::-webkit-datetime-edit{color:#94a3b8}.afd-popup-main input[type="datetime-local"].afd-datetime-empty::-webkit-datetime-edit-fields-wrapper{color:#94a3b8}.afd-popup-main input[type="datetime-local"].afd-datetime-empty::-webkit-date-and-time-value{color:#94a3b8}.afd-popup-main input[type="datetime-local"]:not(.afd-datetime-empty){color:#0f172a}.afd-popup-main input[type="datetime-local"]::-webkit-calendar-picker-indicator{opacity:1}

.afd-password-strength{margin-top:10px}.afd-password-strength-bar{width:100%;height:10px;border-radius:999px;background:#e5e7eb;overflow:hidden}.afd-password-strength-fill{display:block;height:100%;width:0%;border-radius:inherit;background:#cbd5e1}.afd-password-strength-text{margin:8px 0 0;font-size:13px;line-height:1.4;color:#475569}.afd-password-strength.is-very-weak .afd-password-strength-fill{background:#dc2626}.afd-password-strength.is-weak .afd-password-strength-fill{background:#f87171}.afd-password-strength.is-medium .afd-password-strength-fill{background:#f59e0b}.afd-password-strength.is-strong .afd-password-strength-fill{background:#16a34a}.afd-password-strength.is-empty .afd-password-strength-fill{background:#cbd5e1}
