:root{
  --dvlm-primary:var(--dvl-primary,#d18062);
  --dvlm-secondary:var(--dvl-secondary,#a9553d);
  --dvlm-bg:var(--dvl-bg,#ffffff);
  --dvlm-text:var(--dvl-text,#2b1814);
  --dvlm-heading:var(--dvl-heading,#1a0f0c);
  --dvlm-link:var(--dvl-link,#a9553d);
  --dvlm-soft:#fff8f4;
  --dvlm-border:rgba(43,24,20,.10);
  --dvlm-border-strong:rgba(209,128,98,.28);
  --dvlm-radius:14px;
  --dvlm-radius-lg:18px;
  --dvlm-shadow:0 22px 60px rgba(43,24,20,.08);
  --dvlm-shadow-soft:0 12px 34px rgba(43,24,20,.06);
}

.dvlm-card,
.dvlm-card *{box-sizing:border-box}

.dvlm-card{
  width:min(100%,980px);
  margin:24px auto;
  color:var(--dvlm-text);
  font-family:var(--dvl-body-font,inherit);
  direction:rtl;
  text-align:right;
}

.dvlm-card a{color:var(--dvlm-link);text-decoration:none}

.dvlm-profile,
.dvlm-account{
  background:#fff;
  border:1px solid var(--dvlm-border);
  border-radius:var(--dvlm-radius-lg);
  box-shadow:var(--dvlm-shadow);
  overflow:hidden;
}

.dvlm-profile-head{
  display:flex;
  align-items:center;
  gap:20px;
  padding:26px;
  background:radial-gradient(circle at 12% 0%,rgba(209,128,98,.18),transparent 36%),linear-gradient(135deg,#fffaf7 0%,#fff 58%,#fff5ef 100%);
  border-bottom:1px solid var(--dvlm-border);
}

.dvlm-profile-avatar{
  width:128px;
  height:128px;
  flex:0 0 128px;
  border-radius:28px;
  padding:5px;
  background:linear-gradient(145deg,var(--dvlm-primary),rgba(169,85,61,.64));
  box-shadow:0 18px 34px rgba(169,85,61,.22);
}

.dvlm-profile-avatar.is-small{
  width:96px;
  height:96px;
  flex-basis:96px;
  border-radius:22px;
}

.dvlm-avatar-img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:23px;
  background:#fff;
  border:3px solid #fff;
}

.dvlm-profile-avatar.is-small .dvlm-avatar-img{border-radius:18px}

.dvlm-profile-identity{min-width:0;flex:1}
.dvlm-profile-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--dvlm-secondary);
  font-weight:800;
  font-size:13px;
  letter-spacing:0;
  margin-bottom:7px;
}

.dvlm-profile-identity h2,
.dvlm-section-head h2{
  margin:0;
  color:var(--dvlm-heading);
  font-size:clamp(26px,4vw,38px);
  line-height:1.15;
  letter-spacing:-.03em;
}

.dvlm-role-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}

.dvlm-role-badges span{
  display:inline-flex;
  min-height:30px;
  align-items:center;
  padding:0 12px;
  border-radius:999px;
  background:rgba(209,128,98,.12);
  border:1px solid rgba(209,128,98,.22);
  color:#6a3326;
  font-size:13px;
  font-weight:800;
}

.dvlm-profile-actions{margin-inline-start:auto}

.dvlm-button,
.dvlm-button:visited{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:0 18px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  background:var(--dvlm-primary);
  color:#1a0d0a;
  font-weight:900;
  line-height:1;
  cursor:pointer;
  box-shadow:0 16px 34px rgba(209,128,98,.24);
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}

.dvlm-button:hover{transform:translateY(-1px);box-shadow:0 20px 44px rgba(209,128,98,.28);color:#1a0d0a}
.dvlm-button-secondary,
.dvlm-button-secondary:visited{background:#fff;color:var(--dvlm-secondary);border-color:rgba(209,128,98,.26);box-shadow:var(--dvlm-shadow-soft)}
.dvlm-button-secondary:hover{color:#783927}

.dvlm-tabs-nav{
  display:flex;
  gap:10px;
  padding:14px 18px;
  border-bottom:1px solid var(--dvlm-border);
  background:#fff;
  overflow-x:auto;
  scrollbar-width:thin;
}

.dvlm-tab-link{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  white-space:nowrap;
  padding:0 14px;
  border-radius:10px;
  color:#5c3a30;
  background:transparent;
  border:1px solid transparent;
  font-weight:800;
  transition:background .16s ease,color .16s ease,border-color .16s ease;
}

.dvlm-tab-link .dashicons{width:20px;height:20px;font-size:20px;line-height:20px;color:var(--dvlm-secondary)}
.dvlm-tab-link:hover{background:rgba(209,128,98,.09);border-color:rgba(209,128,98,.16);color:#2b1814}
.dvlm-tab-link.is-active{background:linear-gradient(135deg,rgba(209,128,98,.21),rgba(209,128,98,.09));border-color:rgba(209,128,98,.30);color:#1f100c;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}

.dvlm-tab-panel{padding:26px}

.dvlm-overview-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-bottom:20px;
}

.dvlm-info-card{
  min-height:104px;
  padding:18px;
  border:1px solid var(--dvlm-border);
  border-radius:var(--dvlm-radius);
  background:linear-gradient(180deg,#fff,#fffaf7);
  box-shadow:var(--dvlm-shadow-soft);
}

.dvlm-info-label{
  display:block;
  margin-bottom:7px;
  font-size:13px;
  color:#86665a;
  font-weight:800;
}

.dvlm-info-card strong{display:block;color:var(--dvlm-heading);font-size:17px;line-height:1.5}

.dvlm-profile-bio{
  padding:20px;
  border:1px solid var(--dvlm-border);
  border-radius:var(--dvlm-radius);
  background:#fff;
}

.dvlm-profile-bio h3{margin:0 0 10px;color:var(--dvlm-heading);font-size:20px}
.dvlm-profile-bio p{margin:0;color:var(--dvlm-text)}
.dvlm-muted,.dvlm-help{color:#80645a;font-size:14px}

.dvlm-empty-state{
  padding:34px;
  text-align:center;
  border:1px dashed rgba(209,128,98,.38);
  border-radius:var(--dvlm-radius);
  background:#fff9f5;
}

.dvlm-empty-state strong{display:block;color:var(--dvlm-heading);font-size:18px;margin-bottom:6px}
.dvlm-empty-state p{margin:0;color:#80645a}

.dvlm-notice{
  margin:16px 0;
  padding:13px 15px;
  border-radius:10px;
  border:1px solid rgba(209,128,98,.24);
  background:#fff8f4;
  color:#4a241b;
  font-weight:700;
}
.dvlm-notice-success{border-color:rgba(42,137,82,.24);background:#f3fbf6;color:#245738}
.dvlm-notice-error{border-color:rgba(190,57,57,.24);background:#fff4f4;color:#7b2525}
.dvlm-notice-warning{border-color:rgba(209,128,98,.40);background:#fff8ed;color:#73431f}
.dvlm-notice-info{border-color:rgba(80,120,160,.24);background:#f3f8fc;color:#274c68}

.dvlm-account{padding:26px}
.dvlm-section-head{margin-bottom:22px}
.dvlm-section-head p{margin:8px 0 0;color:#80645a}
.dvlm-form label{display:block;font-weight:900;color:var(--dvlm-heading);margin-bottom:7px}
.dvlm-form input[type="text"],
.dvlm-form input[type="file"],
.dvlm-form textarea{
  width:100%;
  border:1px solid rgba(43,24,20,.16);
  border-radius:10px;
  background:#fff;
  min-height:44px;
  padding:10px 12px;
  color:var(--dvlm-text);
  outline:none;
}
.dvlm-form textarea{resize:vertical;min-height:120px}
.dvlm-form input:focus,
.dvlm-form textarea:focus{border-color:var(--dvlm-primary);box-shadow:0 0 0 3px rgba(209,128,98,.16)}

.dvlm-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dvlm-form-grid p,.dvlm-form p{margin:0 0 16px}
.dvlm-account-avatar-row{display:flex;align-items:center;gap:18px;margin-bottom:20px;padding:16px;border:1px solid var(--dvlm-border);border-radius:var(--dvlm-radius);background:#fffaf7}
.dvlm-checkbox{display:inline-flex!important;align-items:center;gap:8px;margin-top:8px;font-weight:700!important;color:#60463b!important}
.dvlm-checkbox input{margin:0}

@media (max-width:782px){
  .dvlm-card{margin:18px auto}
  .dvlm-profile-head{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:20px}
  .dvlm-profile-actions{grid-column:1/-1;margin:0}
  .dvlm-profile-actions .dvlm-button{width:100%}
  .dvlm-profile-avatar{width:92px;height:92px;flex-basis:92px;border-radius:22px}
  .dvlm-avatar-img{border-radius:18px}
  .dvlm-overview-grid,.dvlm-form-grid{grid-template-columns:1fr}
  .dvlm-tab-panel{padding:18px}
  .dvlm-account-avatar-row{align-items:flex-start}
}

@media (max-width:520px){
  .dvlm-profile-head{grid-template-columns:1fr;text-align:center;justify-items:center}
  .dvlm-role-badges{justify-content:center}
  .dvlm-tabs-nav{padding:12px}
  .dvlm-tab-link{min-height:40px;padding:0 12px}
  .dvlm-account{padding:18px}
  .dvlm-account-avatar-row{display:grid;text-align:right}
}

.dvlm-auth-card{background:#fff;border:1px solid var(--dvlm-border);border-radius:var(--dvlm-radius-lg);box-shadow:var(--dvlm-shadow);padding:26px;overflow:hidden}.dvlm-auth-form{margin-top:18px}.dvlm-auth-form .dvlm-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dvlm-field-with-icon label{display:flex;align-items:center;gap:6px}.dvlm-required{color:#b23b2f;font-weight:900}.dvlm-input-wrap{display:flex;align-items:center;gap:10px;width:100%;border:1px solid rgba(43,24,20,.16);border-radius:12px;background:#fff;min-height:48px;padding:0 12px;transition:border-color .16s ease,box-shadow .16s ease}.dvlm-input-wrap>.dashicons{color:var(--dvlm-secondary);width:20px;height:20px;font-size:20px;line-height:20px;flex:0 0 20px}.dvlm-input-wrap input,.dvlm-input-wrap select,.dvlm-input-wrap textarea{border:0!important;box-shadow:none!important;outline:0!important;background:transparent!important;width:100%;min-height:46px;padding:0!important;color:var(--dvlm-text);font-family:inherit}.dvlm-input-wrap select{appearance:none;-webkit-appearance:none;-moz-appearance:none}.dvlm-native-select{position:absolute!important;opacity:0!important;pointer-events:none!important;inset:0 auto auto 0;width:1px!important;height:1px!important;min-height:1px!important}.dvlm-custom-select{position:relative;flex:1;min-width:0}.dvlm-custom-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;padding:0;background:transparent;border:0;cursor:pointer;color:var(--dvlm-text);font:inherit;text-align:right}.dvlm-custom-select-trigger:focus-visible{outline:none}.dvlm-custom-select-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--dvlm-text)}.dvlm-custom-select.is-placeholder .dvlm-custom-select-label{color:#8f7468}.dvlm-custom-select-arrow{display:inline-flex;align-items:center;justify-content:center;flex:0 0 18px;width:18px;height:18px;color:var(--dvlm-secondary);transition:transform .16s ease}.dvlm-custom-select.is-open .dvlm-custom-select-arrow{transform:rotate(180deg)}.dvlm-custom-select-menu{position:absolute;top:calc(100% + 10px);right:0;left:0;z-index:40;display:none;max-height:240px;overflow:auto;padding:8px;border:1px solid rgba(209,128,98,.26);border-radius:12px;background:#fff;box-shadow:0 18px 42px rgba(43,24,20,.14)}.dvlm-custom-select.is-open .dvlm-custom-select-menu{display:block}.dvlm-custom-select-option{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:40px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--dvlm-text);font:inherit;text-align:right;cursor:pointer}.dvlm-custom-select-option:hover,.dvlm-custom-select-option:focus-visible{background:#fff6f0;color:var(--dvlm-heading);outline:none}.dvlm-custom-select-option.is-selected{background:rgba(209,128,98,.13);color:var(--dvlm-secondary);font-weight:800}.dvlm-input-wrap.is-textarea{align-items:flex-start;padding-top:12px}.dvlm-input-wrap.is-textarea textarea{min-height:110px;padding-top:0!important;resize:vertical}.dvlm-input-wrap:focus-within,.dvlm-input-wrap.is-open{border-color:var(--dvlm-primary);box-shadow:0 0 0 3px rgba(209,128,98,.16)}.dvlm-auth-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 18px}.dvlm-auth-already{margin:16px 0 0}.dvlm-custom-fields-grid{margin-top:4px}
[dir="ltr"] .dvlm-auth-card{direction:ltr;text-align:left}[dir="ltr"] .dvlm-auth-options{direction:ltr}
@media (max-width:782px){.dvlm-auth-card{padding:20px}.dvlm-auth-form .dvlm-form-grid{grid-template-columns:1fr}.dvlm-auth-options{display:grid;justify-items:start}}

.dvlm-auth-footer-link{text-align:center;margin:18px 0 0}.dvlm-auth-footer-link a{color:var(--dvlm-primary);font-weight:800;text-decoration:none}.dvlm-auth-footer-link a:hover{text-decoration:underline}


.dvlm-space-welcome{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px;
  margin-bottom:18px;
  border:1px solid var(--dvlm-border-strong);
  border-radius:var(--dvlm-radius);
  background:radial-gradient(circle at 10% 0%,rgba(209,128,98,.18),transparent 34%),linear-gradient(135deg,#fffaf7,#fff);
  box-shadow:var(--dvlm-shadow-soft);
}
.dvlm-space-welcome h3{margin:4px 0 8px;color:var(--dvlm-heading);font-size:24px;line-height:1.25}
.dvlm-space-welcome p{margin:0;color:#6f5146;font-weight:700;line-height:1.8}
.dvlm-space-placeholder{
  display:flex;
  align-items:flex-start;
  gap:16px;
  padding:26px;
  border:1px dashed rgba(209,128,98,.42);
  border-radius:var(--dvlm-radius);
  background:linear-gradient(135deg,#fffaf7,#fff);
}
.dvlm-space-placeholder-icon{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:15px;
  background:rgba(209,128,98,.14);
  color:var(--dvlm-secondary);
}
.dvlm-space-placeholder-icon .dashicons{width:28px;height:28px;font-size:28px;line-height:28px}
.dvlm-space-placeholder h3{margin:0 0 7px;color:var(--dvlm-heading);font-size:22px}
.dvlm-space-placeholder p{margin:0 0 9px;color:var(--dvlm-text);line-height:1.8}
.dvlm-space-placeholder span{display:inline-flex;color:#80645a;font-size:14px;font-weight:800}
@media (max-width:520px){.dvlm-space-placeholder{display:grid;text-align:right}.dvlm-space-welcome{padding:18px}}


/* v1.2.2: Student Space dashboard width fix */
.dvlm-student-space.dvlm-layout-full{
  width:100%;
  max-width:none;
  margin:0 auto;
  border-left:0;
  border-right:0;
  border-radius:0;
}
.dvlm-student-space.dvlm-layout-wide{
  width:min(calc(100% - 48px),1280px);
  max-width:1280px;
  margin:24px auto;
}
.dvlm-student-space.dvlm-layout-boxed{
  width:min(100%,980px);
  max-width:980px;
  margin:24px auto;
}
.dvlm-student-space.dvlm-layout-full .dvlm-profile-head,
.dvlm-student-space.dvlm-layout-full .dvlm-tabs-nav,
.dvlm-student-space.dvlm-layout-full .dvlm-tab-panel{
  padding-left:clamp(18px,4vw,56px);
  padding-right:clamp(18px,4vw,56px);
}
.dvlm-student-space.dvlm-layout-full .dvlm-tab-panel{
  min-height:360px;
}
.dvlm-student-space.dvlm-layout-full .dvlm-profile-head{
  border-radius:0;
}
.dvlm-student-space.dvlm-layout-full .dvlm-overview-grid{
  grid-template-columns:repeat(3,minmax(220px,1fr));
}
@media (max-width:782px){
  .dvlm-student-space.dvlm-layout-wide{width:calc(100% - 28px);}
  .dvlm-student-space.dvlm-layout-full .dvlm-profile-head,
  .dvlm-student-space.dvlm-layout-full .dvlm-tabs-nav,
  .dvlm-student-space.dvlm-layout-full .dvlm-tab-panel{padding-left:18px;padding-right:18px;}
}
@media (max-width:520px){
  .dvlm-student-space.dvlm-layout-full .dvlm-overview-grid{grid-template-columns:1fr;}
}


/* v1.2.3: compact student space header + modern mobile tabs */
:root{
  --dvlm-radius:10px;
  --dvlm-radius-lg:12px;
  --dvlm-shadow:0 16px 44px rgba(43,24,20,.07);
  --dvlm-shadow-soft:0 8px 24px rgba(43,24,20,.055);
}
.dvlm-profile,
.dvlm-account,
.dvlm-auth-card,
.dvlm-info-card,
.dvlm-profile-bio,
.dvlm-empty-state,
.dvlm-space-welcome,
.dvlm-space-placeholder{border-radius:var(--dvlm-radius-lg)}
.dvlm-button,
.dvlm-tab-link,
.dvlm-form input[type="text"],
.dvlm-form input[type="file"],
.dvlm-form textarea,
.dvlm-input-wrap,
.dvlm-notice{border-radius:8px}
.dvlm-profile-avatar{border-radius:18px}
.dvlm-avatar-img{border-radius:14px}
.dvlm-profile-avatar.is-small{border-radius:14px}
.dvlm-profile-avatar.is-small .dvlm-avatar-img{border-radius:10px}
.dvlm-role-badges span{border-radius:8px}
.dvlm-space-placeholder-icon{border-radius:10px}

@media (max-width:600px){
  .dvlm-card{margin:0 auto}
  .dvlm-student-space.dvlm-layout-full{box-shadow:none;border-top:0}
  .dvlm-student-space .dvlm-profile-head{
    display:block !important;
    position:relative;
    min-height:104px;
    padding:14px 16px !important;
    text-align:right;
    background:linear-gradient(135deg,#fffaf7,#fff 62%,#fff6f0);
  }
  .dvlm-student-space .dvlm-profile-avatar{
    position:absolute;
    left:16px;
    top:16px;
    width:66px;
    height:66px;
    min-width:66px;
    flex-basis:66px;
    padding:3px;
    border-radius:14px;
    box-shadow:0 8px 18px rgba(169,85,61,.16);
  }
  .dvlm-student-space .dvlm-avatar-img{
    border-width:2px;
    border-radius:11px;
  }
  .dvlm-student-space .dvlm-profile-identity{
    min-height:72px;
    padding-left:86px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-end;
    text-align:right;
  }
  .dvlm-student-space .dvlm-profile-kicker{
    margin:0 0 3px;
    font-size:12px;
    line-height:1.2;
  }
  .dvlm-student-space .dvlm-profile-identity h2{
    width:100%;
    margin:0;
    font-size:22px;
    line-height:1.25;
    letter-spacing:-.02em;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .dvlm-student-space .dvlm-role-badges{
    width:100%;
    margin-top:6px;
    justify-content:flex-start;
    gap:5px;
  }
  .dvlm-student-space .dvlm-role-badges span{
    min-height:24px;
    padding:0 8px;
    font-size:12px;
    border-radius:7px;
  }
  .dvlm-student-space .dvlm-profile-actions{
    margin:8px 0 0;
    padding-left:86px;
    text-align:right;
  }
  .dvlm-student-space .dvlm-profile-actions .dvlm-button{
    width:auto;
    min-height:34px;
    padding:0 12px;
    border-radius:8px;
    font-size:13px;
    box-shadow:none;
  }
  .dvlm-student-space .dvlm-tabs-nav{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    overflow:visible;
    scrollbar-width:none;
    padding:10px 12px !important;
    background:#fff;
  }
  .dvlm-student-space .dvlm-tabs-nav::-webkit-scrollbar{display:none}
  .dvlm-student-space .dvlm-tab-link{
    width:100%;
    min-height:40px;
    justify-content:center;
    padding:0 8px;
    border-radius:8px;
    white-space:normal;
    font-size:14px;
    line-height:1.25;
    background:#fffaf7;
    border-color:rgba(209,128,98,.16);
  }
  .dvlm-student-space .dvlm-tab-link.is-active{
    background:rgba(209,128,98,.16);
    border-color:rgba(209,128,98,.36);
    box-shadow:none;
  }
  .dvlm-student-space .dvlm-tab-link .dashicons{
    width:18px;
    height:18px;
    font-size:18px;
    line-height:18px;
  }
  .dvlm-student-space.dvlm-layout-full .dvlm-tab-panel{
    padding:14px 10px 20px !important;
    min-height:260px;
  }
  .dvlm-space-placeholder{
    display:grid;
    grid-template-columns:44px 1fr;
    align-items:center;
    gap:12px;
    padding:16px;
    text-align:right;
  }
  .dvlm-space-placeholder-icon{
    width:44px;
    height:44px;
    flex-basis:44px;
  }
  .dvlm-space-placeholder-icon .dashicons{
    width:23px;
    height:23px;
    font-size:23px;
    line-height:23px;
  }
  .dvlm-space-placeholder h3{font-size:20px;margin-bottom:4px}
  .dvlm-space-placeholder p{line-height:1.65;font-size:14px}
  .dvlm-space-placeholder span{font-size:13px}
}

@media (max-width:360px){
  .dvlm-student-space .dvlm-tabs-nav{grid-template-columns:1fr}
  .dvlm-student-space .dvlm-profile-identity,
  .dvlm-student-space .dvlm-profile-actions{padding-left:78px}
  .dvlm-student-space .dvlm-profile-avatar{width:58px;height:58px;min-width:58px;flex-basis:58px}
}

/* v1.2.4: professional compact mobile student-space UI */
.dvlm-mobile-tabs{
  display:none;
}

@media (max-width:600px){
  :root{
    --dvlm-radius:8px;
    --dvlm-radius-lg:10px;
  }

  .dvlm-student-space.dvlm-layout-full{
    background:#fff;
  }

  .dvlm-student-space .dvlm-profile-head{
    display:grid !important;
    grid-template-columns:58px minmax(0,1fr) auto;
    grid-template-areas:"avatar info action";
    align-items:center;
    column-gap:12px;
    min-height:0;
    padding:12px 14px !important;
    direction:ltr;
    text-align:right;
    background:linear-gradient(135deg,#fffaf7 0%,#fff 100%);
    border-bottom:1px solid rgba(43,24,20,.08);
  }

  .dvlm-student-space .dvlm-profile-avatar{
    grid-area:avatar;
    position:static !important;
    width:54px;
    height:54px;
    min-width:54px;
    flex-basis:54px;
    padding:3px;
    border-radius:11px;
    box-shadow:0 7px 16px rgba(169,85,61,.15);
  }

  .dvlm-student-space .dvlm-avatar-img{
    border-width:2px;
    border-radius:8px;
  }

  .dvlm-student-space .dvlm-profile-identity{
    grid-area:info;
    min-height:0;
    padding:0 !important;
    display:block;
    direction:rtl;
    text-align:right !important;
  }

  .dvlm-student-space .dvlm-profile-kicker{
    display:block;
    margin:0 0 2px;
    font-size:11px;
    line-height:1.2;
    color:#9a5542;
    text-align:right !important;
  }

  .dvlm-student-space .dvlm-profile-identity h2{
    margin:0;
    width:100%;
    max-width:100%;
    font-size:19px;
    line-height:1.2;
    letter-spacing:0;
    text-align:right !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .dvlm-student-space .dvlm-role-badges{
    width:100%;
    margin-top:5px;
    justify-content:flex-start;
    gap:4px;
  }

  .dvlm-student-space .dvlm-role-badges span{
    min-height:22px;
    padding:0 7px;
    border-radius:6px;
    font-size:11px;
    background:#fff6f1;
  }

  .dvlm-student-space .dvlm-profile-actions{
    grid-area:action;
    margin:0;
    padding:0 !important;
    direction:rtl;
    align-self:center;
  }

  .dvlm-student-space .dvlm-profile-actions .dvlm-button{
    width:auto;
    min-height:32px;
    padding:0 10px;
    border-radius:7px;
    font-size:12px;
    box-shadow:none;
    white-space:nowrap;
  }

  .dvlm-student-space .dvlm-tabs-nav{
    display:none !important;
  }

  .dvlm-mobile-tabs{
    display:block;
    padding:10px 14px;
    background:#fff;
    border-bottom:1px solid rgba(43,24,20,.08);
  }

  .dvlm-mobile-tabs-label{
    display:block;
    margin:0 0 6px;
    font-size:12px;
    font-weight:800;
    color:#8a5a4b;
    text-align:right;
  }

  .dvlm-mobile-tab-select{
    width:100%;
    min-height:40px;
    padding:0 12px;
    border:1px solid rgba(209,128,98,.28);
    border-radius:8px;
    background:#fffaf7;
    color:#2b1814;
    font:inherit;
    font-weight:800;
    direction:rtl;
    text-align:right;
    outline:none;
    box-shadow:none;
  }

  .dvlm-mobile-tab-select:focus{
    border-color:var(--dvlm-primary);
    box-shadow:0 0 0 3px rgba(209,128,98,.14);
  }

  .dvlm-student-space.dvlm-layout-full .dvlm-tab-panel{
    padding:12px 10px 18px !important;
    min-height:220px;
    background:#fff;
  }

  .dvlm-space-placeholder{
    display:flex !important;
    align-items:flex-start;
    gap:11px;
    padding:14px;
    text-align:right !important;
    border:1px solid rgba(43,24,20,.10);
    border-radius:9px;
    background:#fff;
    box-shadow:0 8px 22px rgba(43,24,20,.045);
  }

  .dvlm-space-placeholder-icon{
    order:2;
    width:38px;
    height:38px;
    flex:0 0 38px;
    border-radius:8px;
    background:#fff2ec;
  }

  .dvlm-space-placeholder-icon .dashicons{
    width:20px;
    height:20px;
    font-size:20px;
    line-height:20px;
  }

  .dvlm-space-placeholder > div:not(.dvlm-space-placeholder-icon){
    order:1;
    flex:1;
    min-width:0;
    direction:rtl;
    text-align:right;
  }

  .dvlm-space-placeholder h3{
    margin:0 0 5px;
    font-size:18px;
    line-height:1.35;
    text-align:right;
  }

  .dvlm-space-placeholder p{
    margin:0;
    font-size:13px;
    line-height:1.7;
    color:#4a352d;
    text-align:right;
  }

  .dvlm-space-placeholder span{
    display:block;
    margin-top:7px;
    font-size:12px;
    line-height:1.55;
    color:#8a6a5f;
    text-align:right;
  }

  .dvlm-space-welcome,
  .dvlm-info-card,
  .dvlm-profile-bio,
  .dvlm-empty-state{
    border-radius:9px;
  }
}

@media (max-width:360px){
  .dvlm-student-space .dvlm-profile-head{
    grid-template-columns:50px minmax(0,1fr);
    grid-template-areas:"avatar info" "avatar action";
    row-gap:6px;
  }

  .dvlm-student-space .dvlm-profile-avatar{
    width:48px;
    height:48px;
    min-width:48px;
    flex-basis:48px;
  }

  .dvlm-student-space .dvlm-profile-actions{
    justify-self:end;
  }
}


/* v1.2.5: refined mobile student-space header and themed tab dropdown */
.dvlm-edit-icon-link .dashicons{
  width:18px;
  height:18px;
  font-size:18px;
  line-height:18px;
}

@media (max-width:600px){
  .dvlm-student-space .dvlm-profile-head{
    grid-template-columns:56px minmax(0,1fr) 34px !important;
    grid-template-areas:"avatar info action" !important;
    column-gap:10px !important;
    padding:11px 12px !important;
    background:linear-gradient(135deg,#fffaf7 0%,#fff 72%) !important;
  }

  .dvlm-student-space .dvlm-profile-kicker{
    display:none !important;
  }

  .dvlm-student-space .dvlm-profile-identity{
    align-self:center;
    padding:0 !important;
  }

  .dvlm-student-space .dvlm-profile-identity h2{
    font-size:18px !important;
    line-height:1.18 !important;
    margin:0 0 5px !important;
    text-align:right !important;
  }

  .dvlm-student-space .dvlm-role-badges{
    margin-top:0 !important;
    justify-content:flex-start !important;
  }

  .dvlm-student-space .dvlm-role-badges span{
    min-height:20px !important;
    padding:0 8px !important;
    border-radius:6px !important;
    font-size:11px !important;
  }

  .dvlm-student-space .dvlm-profile-avatar{
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    flex-basis:52px !important;
    border-radius:10px !important;
  }

  .dvlm-student-space .dvlm-avatar-img{
    border-radius:7px !important;
  }

  .dvlm-student-space .dvlm-profile-actions{
    align-self:start !important;
    justify-self:end !important;
    padding:0 !important;
    margin:0 !important;
  }

  .dvlm-student-space .dvlm-profile-actions .dvlm-edit-icon-link{
    width:32px !important;
    height:32px !important;
    min-width:32px !important;
    min-height:32px !important;
    padding:0 !important;
    border-radius:8px !important;
    box-shadow:none !important;
    background:#fffaf7 !important;
    border-color:rgba(209,128,98,.25) !important;
    color:var(--dvlm-secondary) !important;
  }

  .dvlm-student-space .dvlm-profile-actions .dvlm-edit-icon-link .dashicons{
    width:17px;
    height:17px;
    font-size:17px;
    line-height:17px;
  }

  .dvlm-mobile-tabs{
    padding:10px 12px !important;
  }

  .dvlm-mobile-tabs-label,
  .dvlm-mobile-tab-select{
    display:none !important;
  }

  .dvlm-mobile-tab-dropdown{
    position:relative;
    width:100%;
    direction:rtl;
  }

  .dvlm-mobile-tab-current{
    min-height:42px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:0 12px 0 42px;
    border:1px solid rgba(209,128,98,.26);
    border-radius:8px;
    background:linear-gradient(180deg,#fff,#fff8f4);
    color:#2b1814;
    font-weight:900;
    list-style:none;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(43,24,20,.045);
  }

  .dvlm-mobile-tab-current::-webkit-details-marker{
    display:none;
  }

  .dvlm-mobile-tab-current::after{
    content:"";
    position:absolute;
    left:15px;
    top:17px;
    width:8px;
    height:8px;
    border-left:2px solid var(--dvlm-secondary);
    border-bottom:2px solid var(--dvlm-secondary);
    transform:rotate(-45deg);
    transition:transform .16s ease,top .16s ease;
  }

  .dvlm-mobile-tab-dropdown[open] .dvlm-mobile-tab-current::after{
    top:20px;
    transform:rotate(135deg);
  }

  .dvlm-mobile-tab-current .dashicons{
    width:18px;
    height:18px;
    font-size:18px;
    line-height:18px;
    color:var(--dvlm-secondary);
  }

  .dvlm-mobile-tab-menu{
    position:absolute;
    z-index:30;
    top:calc(100% + 6px);
    right:0;
    left:0;
    overflow:hidden;
    border:1px solid rgba(209,128,98,.24);
    border-radius:9px;
    background:#fff;
    box-shadow:0 20px 45px rgba(43,24,20,.14);
  }

  .dvlm-mobile-tab-option{
    display:flex;
    align-items:center;
    gap:9px;
    min-height:42px;
    padding:0 12px;
    color:#4a2b22 !important;
    font-weight:850;
    border-bottom:1px solid rgba(43,24,20,.065);
    background:#fff;
  }

  .dvlm-mobile-tab-option:last-child{
    border-bottom:0;
  }

  .dvlm-mobile-tab-option .dashicons{
    width:18px;
    height:18px;
    font-size:18px;
    line-height:18px;
    color:var(--dvlm-secondary);
  }

  .dvlm-mobile-tab-option:hover,
  .dvlm-mobile-tab-option.is-active{
    background:#fff3ec;
    color:#1f100c !important;
  }
}

@media (max-width:360px){
  .dvlm-student-space .dvlm-profile-head{
    grid-template-columns:50px minmax(0,1fr) 32px !important;
    grid-template-areas:"avatar info action" !important;
  }

  .dvlm-student-space .dvlm-profile-avatar{
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    flex-basis:48px !important;
  }
}


/* v1.2.6: mobile header alignment refinement */
@media (max-width:600px){
  .dvlm-student-space .dvlm-profile-head{
    position:relative !important;
    display:grid !important;
    grid-template-columns:60px minmax(0,1fr) !important;
    grid-template-areas:"avatar info" !important;
    column-gap:12px !important;
    align-items:center !important;
    min-height:82px !important;
    padding:12px 12px !important;
    direction:ltr !important;
    text-align:right !important;
  }

  .dvlm-student-space .dvlm-profile-avatar{
    grid-area:avatar !important;
    justify-self:start !important;
    align-self:center !important;
    width:54px !important;
    height:54px !important;
    min-width:54px !important;
    flex-basis:54px !important;
    padding:3px !important;
  }

  .dvlm-student-space .dvlm-profile-identity{
    grid-area:info !important;
    justify-self:stretch !important;
    align-self:center !important;
    width:100% !important;
    min-width:0 !important;
    padding:0 !important;
    margin:0 !important;
    direction:rtl !important;
    text-align:right !important;
  }

  .dvlm-student-space .dvlm-profile-identity h2{
    display:block !important;
    margin:0 0 5px !important;
    width:100% !important;
    max-width:100% !important;
    text-align:right !important;
    font-size:19px !important;
    line-height:1.18 !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }

  .dvlm-student-space .dvlm-role-badges{
    justify-content:flex-start !important;
    margin:0 !important;
    width:100% !important;
  }

  .dvlm-student-space .dvlm-profile-actions{
    position:absolute !important;
    left:52px !important;
    top:52px !important;
    z-index:4 !important;
    grid-area:auto !important;
    padding:0 !important;
    margin:0 !important;
    width:auto !important;
    height:auto !important;
  }

  .dvlm-student-space .dvlm-profile-actions .dvlm-edit-icon-link{
    width:28px !important;
    height:28px !important;
    min-width:28px !important;
    min-height:28px !important;
    border-radius:50% !important;
    background:#fff !important;
    border:1px solid rgba(209,128,98,.42) !important;
    box-shadow:0 8px 18px rgba(43,24,20,.12) !important;
    color:var(--dvlm-secondary) !important;
  }

  .dvlm-student-space .dvlm-profile-actions .dvlm-edit-icon-link .dashicons{
    width:14px !important;
    height:14px !important;
    font-size:14px !important;
    line-height:14px !important;
  }

  .dvlm-mobile-tabs{
    padding:9px 12px !important;
  }
}

@media (max-width:360px){
  .dvlm-student-space .dvlm-profile-head{
    grid-template-columns:56px minmax(0,1fr) !important;
    grid-template-areas:"avatar info" !important;
  }

  .dvlm-student-space .dvlm-profile-avatar{
    width:50px !important;
    height:50px !important;
    min-width:50px !important;
    flex-basis:50px !important;
  }

  .dvlm-student-space .dvlm-profile-actions{
    left:48px !important;
    top:49px !important;
  }
}


/* v1.2.7: mobile tab dropdown height refinement */
@media (max-width:600px){
  .dvlm-mobile-tab-current{
    min-height:48px !important;
    padding:0 13px 0 46px !important;
  }
  .dvlm-mobile-tab-current::after{
    left:17px !important;
    top:19px !important;
  }
  .dvlm-mobile-tab-dropdown[open] .dvlm-mobile-tab-current::after{
    top:22px !important;
  }
  .dvlm-mobile-tab-option{
    min-height:44px !important;
  }
}

/* v1.3.0 registration layout + conditional logic */
.dvlm-register-form .dvlm-register-grid{grid-template-columns:repeat(var(--dvlm-reg-cols-desktop,2),minmax(0,1fr))!important;gap:14px!important}.dvlm-register-form .dvlm-register-grid>.dvlm-field-with-icon{grid-column:span min(var(--dvlm-field-span,1),var(--dvlm-reg-cols-desktop,2));margin:0!important}.dvlm-register-form .is-dvlm-hidden{display:none!important}.dvlm-register-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.dvlm-register-actions .dvlm-button{min-width:150px}.dvlm-register-form .dvlm-section-head{margin-bottom:16px}.dvlm-register-form .dvlm-auth-form{margin-top:0}.dvlm-register-form .dvlm-input-wrap{min-height:46px}.dvlm-register-form .dvlm-input-wrap input,.dvlm-register-form .dvlm-input-wrap select{min-height:44px}.dvlm-register-form .dvlm-input-wrap.is-textarea textarea{min-height:86px}
@media(max-width:900px){.dvlm-register-form .dvlm-register-grid{grid-template-columns:repeat(var(--dvlm-reg-cols-tablet,2),minmax(0,1fr))!important}.dvlm-register-form .dvlm-register-grid>.dvlm-field-with-icon{grid-column:span min(var(--dvlm-field-span,1),var(--dvlm-reg-cols-tablet,2))}}@media(max-width:620px){.dvlm-register-form .dvlm-register-grid{grid-template-columns:repeat(var(--dvlm-reg-cols-mobile,1),minmax(0,1fr))!important}.dvlm-register-form .dvlm-register-grid>.dvlm-field-with-icon{grid-column:span min(var(--dvlm-field-span,1),var(--dvlm-reg-cols-mobile,1))}.dvlm-register-actions{display:grid}.dvlm-register-actions .dvlm-button{width:100%}.dvlm-register-form .dvlm-auth-card,.dvlm-auth-card.dvlm-register-form{padding:18px!important}}

/* v1.3.0 span corrections */
.dvlm-register-form .dvlm-register-grid>.dvlm-field-with-icon{grid-column:auto!important}.dvlm-register-form .dvlm-register-grid>.dvlm-field-span-1{grid-column:span 1!important}.dvlm-register-form .dvlm-register-grid>.dvlm-field-span-2{grid-column:span 2!important}.dvlm-register-form .dvlm-register-grid>.dvlm-field-span-3{grid-column:span 3!important}.dvlm-register-form .dvlm-register-grid>.dvlm-field-span-4{grid-column:span 4!important}
@media(max-width:900px){.dvlm-register-form .dvlm-register-grid>.dvlm-field-span-3,.dvlm-register-form .dvlm-register-grid>.dvlm-field-span-4{grid-column:1/-1!important}}@media(max-width:620px){.dvlm-register-form .dvlm-register-grid>.dvlm-field-with-icon{grid-column:1/-1!important}}


/* v1.3.2 registration form is shortcode-only: no forced title/header */
.dvlm-register-form-minimal{padding:20px!important}
.dvlm-register-form-minimal .dvlm-auth-form{margin-top:0!important}
.dvlm-register-form-minimal .dvlm-register-grid{margin-top:0!important}
@media(max-width:620px){.dvlm-register-form-minimal{padding:14px!important}}

/* v1.4.0 multi-choice registration fields */
.dvlm-input-wrap .dvlm-multichoice-group{display:grid;width:100%;gap:8px;padding:8px 0}
.dvlm-input-wrap .dvlm-multichoice-item{display:flex!important;align-items:center;gap:8px;margin:0!important;padding:7px 10px;border:1px solid rgba(209,128,98,.22);border-radius:10px;background:#fff8f4;font-weight:800;color:var(--dvlm-text);cursor:pointer}
.dvlm-input-wrap .dvlm-multichoice-item input{width:auto!important;min-height:auto!important;margin:0!important;accent-color:var(--dvlm-primary)}
.dvlm-input-wrap .dvlm-multichoice-item span{line-height:1.4}
.dvlm-field-type-multiselect .dvlm-input-wrap{align-items:flex-start}

/* v1.4.1 scrollable multi-choice field for long option lists */
.dvlm-field-type-multiselect .dvlm-input-wrap{
  padding-top:8px;
  padding-bottom:8px;
}
.dvlm-input-wrap .dvlm-multichoice-group{
  max-height:240px;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-inline-end:6px;
  scrollbar-width:thin;
}
.dvlm-input-wrap .dvlm-multichoice-group::-webkit-scrollbar{
  width:8px;
}
.dvlm-input-wrap .dvlm-multichoice-group::-webkit-scrollbar-track{
  background:#fff7f2;
  border-radius:999px;
}
.dvlm-input-wrap .dvlm-multichoice-group::-webkit-scrollbar-thumb{
  background:rgba(209,128,98,.55);
  border-radius:999px;
}
.dvlm-input-wrap .dvlm-multichoice-group::-webkit-scrollbar-thumb:hover{
  background:rgba(169,85,61,.75);
}

.dvlm-input-wrap .dvlm-multichoice-group.is-dvlm-invalid{
  outline:2px solid rgba(190,57,57,.35);
  outline-offset:4px;
  border-radius:10px;
}
