*{box-sizing:border-box}body{margin:0;background:#f3f5f8;color:#253449;font:15px/1.5 Arial,sans-serif}a{color:#2366a4;text-decoration:none}a:hover{text-decoration:underline}.wrap{max-width:1120px;margin:auto;padding:0 18px}header{background:#fff;border-bottom:1px solid #dae1ea;position:sticky;top:0;z-index:3}header .wrap{display:flex;align-items:center;gap:20px;min-height:60px;flex-wrap:wrap}header nav{display:flex;gap:14px;flex-wrap:wrap}.logo{font-weight:800;font-size:22px;color:#1c5a94}main{padding-top:25px;padding-bottom:60px}.panel{background:#fff;border:1px solid #dfe5ed;border-radius:8px;padding:20px;margin-bottom:20px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}.tile{background:#fff;border:1px solid #dfe5ed;border-radius:8px;overflow:hidden}.tile img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#e8edf4}.tile .body{padding:12px}.muted{color:#66788d}.btn,button{border:0;border-radius:5px;background:#2469a8;color:#fff;padding:10px 15px;cursor:pointer;font:inherit;display:inline-block}.danger{background:#b63d45}.secondary{background:#66788d}input,select,textarea{font:inherit;width:100%;border:1px solid #bdc9d8;border-radius:5px;padding:9px;background:#fff}textarea{min-height:110px}label{display:block;margin:12px 0 5px;font-weight:600}form{max-width:720px}.inline{display:inline}.inline button{padding:5px 9px}.notice{padding:12px;border-radius:5px;background:#e7f3e9;margin-bottom:18px}.error{background:#ffe8e8}.profile{display:grid;grid-template-columns:180px 1fr;gap:24px}.avatar{width:180px;height:180px;object-fit:cover;border-radius:8px;background:#e6edf3}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.small{font-size:13px}.pager{display:flex;gap:10px;margin:20px 0}.tag{display:inline-block;background:#edf3f8;border-radius:4px;padding:3px 8px;margin:2px}footer{padding:25px;text-align:center;color:#778}@media(max-width:620px){.profile{grid-template-columns:1fr}.avatar{width:120px;height:120px}header .wrap{padding-top:10px;padding-bottom:10px}}

/* Dashboard layout and controls */
/* ArtPortfolio dashboard. Effects change color only, never text position or size. */
#profile-editor {max-width:720px}
.specializations {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:4px 12px;margin-top:8px}
.spec-option {display:flex;align-items:center;gap:9px;margin:3px 0;min-height:32px;font-weight:400;cursor:pointer}
.spec-option input {width:17px;height:17px;margin:0;flex-shrink:0;accent-color:#2469a8}
.autosave-line {display:flex;align-items:center;gap:10px;min-height:38px;height:38px;line-height:22px;margin-top:14px;font-size:13px;color:#397456}
#autosave-status {display:inline-block;min-height:22px;line-height:22px;white-space:nowrap}
#autosave-status.status-error {color:#a12833}
.avatar-editor {display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.avatar-editor .avatar,.avatar-placeholder {width:140px;height:140px;border-radius:12px;object-fit:cover;flex:0 0 140px}
.avatar-placeholder {background:#edf3f8;border:1px solid #d6e1ed;color:#62778c;display:flex;justify-content:center;align-items:center;font-size:13px}
.avatar-placeholder[hidden] {display:none}
.avatar-editor .avatar[hidden] {display:none}
.avatar-controls {flex:1;min-width:200px}
.avatar-controls label {margin-top:0}
#avatar-status {min-height:22px;line-height:22px}
.slug-editor {display:flex;align-items:center;gap:0;max-width:720px;border:1px solid #bdc9d8;border-radius:9px;overflow:hidden;background:#fff}
.slug-editor>span {padding:10px 12px;background:#eef3f8;color:#61758c;white-space:nowrap;border-right:1px solid #bdc9d8}
.slug-editor>input {border:0;border-radius:0;min-width:80px;flex:1;outline-offset:-2px}
.dropzone {position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:5px;min-height:190px;padding:24px;cursor:pointer;border:2px dashed #a6c4df;border-radius:13px;background:#f0f5fa;color:#365977;font-weight:400;transition:background-color .2s ease,border-color .2s ease}
.dropzone:hover,.dropzone.is-dragover,.dropzone:focus-visible {background:#e6f1fa;border-color:#4687ba}
.dropzone strong {font-size:16px;color:#294e70}
.dropzone-symbol {font-size:36px;line-height:1;color:#387cb2}
.dropzone-hint {font-size:12px;color:#7288a0}
.dropzone-filename {font-size:13px;color:#286b38;overflow-wrap:anywhere;max-width:100%;font-weight:600}
.visually-hidden {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:620px){.slug-editor{flex-wrap:wrap}.slug-editor>span{border-right:0;width:100%;font-size:12px}.avatar-editor .avatar,.avatar-placeholder{width:110px;height:110px;flex-basis:110px}.specializations{grid-template-columns:1fr}}

/* Unified ArtPortfolio buttons. One visual style for ordinary actions. */
.btn,
button {
    border: 0;
    border-radius: 10px;
    background-color: #2469a8;
    color: #fff;
    padding: 10px 15px;
    font: inherit;
    cursor: pointer;
    display: inline-block;
    transition: background-color .2s ease;
}
.btn:hover,
button:hover {
    background-color: #1b578b;
    color: #fff;
    text-decoration: none;
}
.btn:focus-visible,
button:focus-visible {
    outline: 2px solid #85b9e4;
    outline-offset: 3px;
}
/* Purposeful exceptions: secondary and destructive actions. */
.btn.secondary,
button.secondary { background-color: #66788d; }
.btn.secondary:hover,
button.secondary:hover { background-color: #4d6178; }
.btn.danger,
button.danger { background-color: #b63d45; }
.btn.danger:hover,
button.danger:hover { background-color: #982d36; }
/* An HTML hidden attribute must not be overridden by button display styles. */
[hidden] { display: none !important; }

/* Gallery manager */
.managed-works{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:16px}
.managed-work{border:1px solid #dfe5ed;border-radius:12px;overflow:hidden;background:#fbfdff;min-width:0}
.managed-work>a>img{display:block;width:100%;height:190px;object-fit:cover;background:#e9f0f7}
.managed-work-body{padding:14px}
.managed-work-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.managed-work-actions form{margin:0}
.managed-work-actions button{min-width:90px}
.work-edit{margin-top:12px;padding:10px 0;border-top:1px solid #dfe5ed}
.work-edit summary{cursor:pointer;color:#2366a4;font-weight:600}
.work-edit form{margin-top:10px}
.delete-work-form{margin-top:12px}
.publish-status{min-height:24px;line-height:24px;margin-top:10px;color:#397456;font-size:13px}
.publish-status.status-error{color:#a12833}
button:disabled{opacity:.7;cursor:default}
@media(max-width:620px){.managed-works{grid-template-columns:1fr}}

/* AJAX gallery management and profile-address feedback */
.works-status,.slug-status{min-height:24px;line-height:24px;font-size:13px;color:#397456;margin-top:8px}
.works-status.status-error,.slug-status.status-error{color:#a12833}
.work-edit-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.work-edit-buttons button{min-width:110px}
.delete-work-trigger{margin-top:12px}
.confirm-dialog{width:min(420px,calc(100vw - 32px));max-width:100%;border:1px solid #d9e3ec;border-radius:16px;background:#fff;color:#253449;padding:26px;box-shadow:0 20px 65px rgba(24,49,71,.22)}
.confirm-dialog::backdrop{background:rgba(19,35,55,.47)}
.confirm-dialog h2{font-size:20px;margin:0 0 10px}
.confirm-dialog p{color:#596d83;line-height:1.5;overflow-wrap:anywhere;margin:0 0 22px}
.confirm-dialog-actions{display:flex;gap:10px;justify-content:flex-end}
.confirm-dialog-actions button{min-width:90px}
.managed-work.is-busy{opacity:.77}
.managed-work.is-busy button{pointer-events:none}
@media(max-width:460px){.confirm-dialog{padding:18px}}

.dialog-error{font-size:13px;color:#a12833!important;background:#fff1f2;border-radius:8px;padding:8px;margin-bottom:12px!important}


/* Add a new portfolio work in a modal instead of an extra page section. */
.work-create-toolbar{margin:0 0 18px}
.work-add-dialog{width:min(700px,calc(100vw - 30px));max-width:100%;max-height:min(90vh,920px);padding:0;overflow-y:auto;border:1px solid #d9e3ec;border-radius:16px;background:#fff;color:#253449;box-shadow:0 20px 65px rgba(24,49,71,.22)}
.work-add-dialog::backdrop{background:rgba(19,35,55,.47)}
.work-add-inner{padding:24px}
.work-add-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.work-add-header h2{margin:0;font-size:21px}
.work-add-close{width:38px;height:38px;flex:0 0 38px;padding:0;background:#edf3f8;color:#47627e;border-radius:10px;font-size:25px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background-color .2s ease}
.work-add-close:hover{background:#dbe8f4;color:#47627e}
.work-add-dialog form{max-width:none}
.work-add-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.work-add-actions button{min-width:130px}
@media(max-width:520px){.work-add-inner{padding:18px}.work-add-dialog{max-height:94vh}.work-add-actions button{flex:1}}

/* Avatar controls and reusable neutral silhouette. */
.avatar-delete-button{margin-top:10px}
.avatar-fallback{object-fit:contain!important;background:#edf3f8}
.profile-city-link,.profile-specialization-link{color:#2366a4}
.profile-city-link:hover,.profile-specialization-link:hover{text-decoration:underline}
.profile-specialization-link:focus-visible,.profile-city-link:focus-visible{outline:2px solid #85b9e4;outline-offset:2px}

/* Work-only search and browseable author specializations. */
.specialization-nav{display:block;margin:0 0 18px;padding:17px 18px;background:#fff;border:1px solid #dfe5ed;border-radius:13px}
.specialization-nav-title{display:block;color:#253449;font-weight:700;margin:0 0 12px}
/* A fully visible tag cloud: no horizontal scrollbar or clipped first/last items. */
.specialization-nav-links{display:flex;flex-wrap:wrap;align-items:center;gap:9px;overflow:visible;padding:0;min-width:0}
.specialization-chip{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:36px;flex:0 1 auto;white-space:normal;overflow-wrap:anywhere;line-height:1.25;color:#245f95;background:#eff5fb;border:1px solid #d7e4f0;padding:8px 14px;border-radius:999px;text-decoration:none;transition:background-color .2s ease}
.specialization-chip:hover{background:#dcecf8;color:#174d7d;text-decoration:none}
.specialization-chip:focus-visible{background:#dcecf8;color:#174d7d;text-decoration:none;outline:2px solid #85b9e4;outline-offset:2px}
.specialization-chip.is-selected{background:#2469a8;border-color:#2469a8;color:#fff}
.specialization-chip.is-selected:hover{background:#1b578b;color:#fff}
.work-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.work-search-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.work-results .tile .muted a{color:#607b93}
@media(max-width:620px){.work-filter-grid{grid-template-columns:1fr;gap:0}.specialization-nav{margin-left:0;margin-right:0;padding:14px}.specialization-nav-links{gap:7px}.specialization-chip{padding:8px 12px}}

/* Compact search and author filters: no extra stylesheet or scripts. */
.work-search { padding: 13px 15px; margin-bottom: 18px; border-radius: 13px; }
.work-search-form { max-width: none; }
.work-search-bar { display: flex; align-items: stretch; gap: 10px; min-width: 0; }
.work-search-bar input[type="search"] { flex: 1 1 auto; width: 100%; min-width: 0; height: 44px; padding: 10px 13px; border-radius: 9px; background-color: #f8fbff; }
.work-search-bar input[type="search"]:focus-visible { outline: 2px solid #8abbe4; outline-offset: 1px; }
.work-search-bar button { flex: 0 0 auto; height: 44px; min-width: 94px; padding: 10px 19px; }
.work-search-advanced { margin-top: 10px; }
.work-search-advanced summary { width: fit-content; cursor: pointer; color: #276a9e; font-size: 13px; font-weight: 600; line-height: 23px; }
.work-search-advanced summary:hover { color: #1b578b; }
.work-search-advanced summary:focus-visible { outline: 2px solid #8abbe4; outline-offset: 3px; border-radius: 3px; }
.work-search-advanced .work-filter-grid { margin-top: 10px; gap: 10px; }
.work-search-advanced label, .author-filters label { font-size: 12px; color: #60758a; font-weight: 600; margin: 0 0 5px; }
.work-search-advanced select, .author-filters select { height: 42px; border-radius: 9px; padding: 8px 11px; min-width: 0; }
.work-search-clear { display: inline-block; margin-top: 8px; font-size: 13px; }
/* Compact author catalog filters; no text-based author search. */
.author-filters { padding: 14px 16px; border-radius: 13px; }
.author-filters form { max-width: none; display: flex; align-items: flex-end; gap: 12px; }
.author-filters .work-filter-grid { flex: 1 1 auto; min-width: 0; gap: 12px; }
.author-filters .work-search-actions { flex: 0 0 auto; margin: 0; }
.author-filters .work-search-actions button { min-height: 42px; white-space: nowrap; }
@media (max-width: 650px) {
  .work-search { padding: 12px; }
  .work-search-bar { gap: 8px; }
  .work-search-bar button { min-width: 78px; padding: 10px 13px; }
  .work-search-advanced .work-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .author-filters form { display: block; }
  .author-filters .work-filter-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .author-filters .work-search-actions { margin-top: 10px; }
}
@media (max-width: 430px) {
  .work-search-advanced .work-filter-grid, .author-filters .work-filter-grid { grid-template-columns: 1fr; }
}

/* Consistent breathing room after the sticky header on pages without an H1
   above their first panel (public profiles, sign-in and password forms). */
main.wrap > .panel:first-child,
main.wrap > .notice:first-child {
    margin-top: 25px;
}
@media (max-width: 620px) {
    main.wrap > .panel:first-child,
    main.wrap > .notice:first-child { margin-top: 18px; }
}

/* Private profile notice: visible only to its owner. */
.private-profile-note{display:flex;flex-direction:column;gap:3px;margin:25px 0 18px;padding:13px 16px;background:#fff8e7;border:1px solid #e8d7a5;border-left:4px solid #c7902f;border-radius:12px;color:#594b30}
.private-profile-note strong{font-size:15px}
.private-profile-note span{font-size:13px}
.private-profile-note+.panel{margin-top:0!important}

/* Compact mathematical CAPTCHA. All inputs are intentionally placeholder-free. */
.math-captcha{display:flex;align-items:center;gap:9px;flex-wrap:nowrap;margin:16px 0 8px;max-width:100%}
.math-captcha label{font-size:14px;font-weight:600;white-space:nowrap;margin:0;flex:0 1 auto}
.math-captcha input[name="captcha_answer"]{width:66px!important;min-width:55px;max-width:66px;flex:0 0 66px;text-align:center;margin:0;height:40px;padding:6px 6px;border-radius:9px}
@media(max-width:420px){.math-captcha{gap:6px}.math-captcha label{font-size:12px}.math-captcha input[name="captcha_answer"]{flex-basis:55px;width:55px!important}}

/* Inline form messages, no page refresh. */
.form-feedback{padding:10px 12px;background:#e8f6ed;border-radius:9px;color:#245c3d;font-size:13px;line-height:1.45;margin-top:12px}
.form-feedback.is-error{background:#fff1f1;color:#a12833}
.form-feedback[hidden]{display:none!important}

/* Public links and the contact popup. */
.contact-public h2{font-size:20px;margin:0 0 14px}
.public-links{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
.public-link{display:inline-flex;align-items:center;min-height:38px;max-width:100%;padding:8px 13px;border-radius:999px;color:#245f95;background:#eff5fb;border:1px solid #d7e4f0;overflow-wrap:anywhere;text-decoration:none;transition:background-color .2s ease}
.public-link:hover{background:#dcecf8;color:#174d7d;text-decoration:none}
.public-link:focus-visible{outline:2px solid #85b9e4;outline-offset:2px}
.contact-dialog{width:min(540px,calc(100vw - 28px));max-width:100%;max-height:93dvh;overflow:auto;border:1px solid #d9e3ec;border-radius:16px;padding:0;background:#fff;color:#253449;box-shadow:0 20px 65px rgba(24,49,71,.22)}
.contact-dialog::backdrop{background:rgba(19,35,55,.5)}
.contact-dialog-inner{padding:24px}
.contact-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.contact-dialog-head h2{margin:0;font-size:21px}
.contact-dialog-head button{width:36px;height:36px;line-height:1;padding:0;font-size:23px;background:#edf3f8;color:#365977}
.contact-dialog-head button:hover{background:#dbe8f4;color:#365977}
.contact-dialog form{max-width:none}
.contact-dialog label{font-size:14px}
.contact-dialog input,.contact-dialog textarea{border-radius:10px}
.contact-dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.contact-dialog-actions button{flex:0 1 auto}
.form-trap{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
@media(max-width:620px){.private-profile-note{margin-top:18px}.contact-dialog-inner{padding:18px}.contact-dialog-actions button{font-size:14px;white-space:nowrap}.contact-dialog-actions button:first-child{flex:2 1 0}.contact-dialog-actions button:last-child{flex:1 1 0}}

/* Manage public links and the private contact switch. */
.contact-dashboard h2{margin-top:0}
.contact-dashboard h3{margin-top:24px;margin-bottom:5px}
.contact-switch{display:flex;align-items:center;gap:10px;font-weight:500;cursor:pointer;max-width:max-content}
.contact-switch input{width:18px;height:18px;margin:0;accent-color:#2469a8;flex:0 0 18px}
.my-links{display:flex;flex-direction:column;gap:8px;margin:13px 0}
.my-link{display:flex;align-items:center;gap:10px;justify-content:space-between;border:1px solid #e1e8ef;background:#f8fbff;padding:8px 11px;border-radius:10px;max-width:720px;min-width:0}
.my-link a{overflow-wrap:anywhere;min-width:0}
.my-link button{flex:0 0 auto;font-size:12px;padding:7px 11px}
#add-link-form{max-width:720px}
#add-link-form select,#add-link-form input{border-radius:9px}


/* Compact /dashboard only. Existing input IDs, form endpoints and AJAX behaviour stay unchanged. */
.dashboard-settings {margin:0 0 14px}
.dashboard-heading {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 16px}
.dashboard-heading h1 {margin:0;font-size:28px;line-height:1.25}
.dashboard-heading a {font-size:14px;font-weight:600;white-space:nowrap}
.dashboard-layout {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start}
.dashboard-layout > * {min-width:0}
.dashboard-side {display:grid;gap:16px;min-width:0}
.dashboard-settings .panel {padding:18px;margin:0 0 16px;border-radius:13px}
.dashboard-layout .panel {margin:0}
.dashboard-settings h2 {font-size:20px;line-height:1.3;margin:0 0 13px}
.dashboard-settings h3 {font-size:15px;margin:0 0 8px}
.dashboard-settings label {margin:9px 0 4px}
.dashboard-settings input:not([type="checkbox"]):not([type="file"]),
.dashboard-settings select {min-height:40px}
.dashboard-personal #profile-editor {max-width:none}
.dashboard-personal #profile-bio {min-height:84px;resize:vertical}
.dashboard-personal .specializations {grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 10px;margin-top:5px}
.dashboard-personal .spec-option {font-size:13px;min-height:28px;gap:7px;margin:1px 0;line-height:1.25}
.dashboard-personal .autosave-line {height:auto;min-height:25px;margin-top:6px}
.dashboard-avatar .avatar-editor {flex-wrap:nowrap;gap:14px;align-items:flex-start}
.dashboard-avatar .avatar-editor .avatar {width:100px;height:100px;flex:0 0 100px;border-radius:11px}
.dashboard-avatar .avatar-controls {min-width:0;flex:1}
.dashboard-avatar #avatar-input {max-width:100%;font-size:12px;padding:7px}
.dashboard-avatar .avatar-controls label {margin:0 0 5px}
.dashboard-avatar .avatar-controls .muted {font-size:12px;line-height:1.35;margin:6px 0}
.dashboard-avatar .avatar-delete-button {margin-top:5px;padding:7px 11px;font-size:13px}
.dashboard-avatar #avatar-status {min-height:0}
.dashboard-visibility > .muted {margin:0 0 10px;line-height:1.45}
.dashboard-visibility #slug-form {max-width:none}
.dashboard-visibility .slug-form-row {display:flex;align-items:flex-end;gap:10px;min-width:0}
.dashboard-visibility .slug-editor {display:flex;flex:1 1 auto;min-width:0;flex-wrap:wrap;margin:0;max-width:none}
.dashboard-visibility .slug-editor > span {display:block;border-right:0;border-bottom:1px solid #bdc9d8;width:100%;min-width:0;padding:6px 10px;font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dashboard-visibility .slug-editor > input {width:100%;flex:1 0 100%;min-width:0;padding:9px 10px}
.dashboard-visibility .slug-form-row > button {flex:0 0 auto;min-height:40px;white-space:nowrap;padding:8px 12px;font-size:13px}
.dashboard-visibility .slug-status,.dashboard-visibility .publish-status {min-height:0;margin-top:4px;line-height:1.4}
.dashboard-visibility .slug-status:empty,.dashboard-visibility .publish-status:empty {display:none}
.dashboard-publish-section {border-top:1px solid #e2e9f0;margin-top:14px;padding-top:12px}
.dashboard-publish-label {display:flex;gap:6px 12px;flex-wrap:wrap;align-items:center;font-size:13px;margin-bottom:9px}
.dashboard-publish-label span {color:#64778b}
.dashboard-publish-label strong {font-weight:700}
.dashboard-publish-section button {padding:8px 12px;font-size:13px}
.dashboard-settings .contact-dashboard {margin:16px 0 14px}
.dashboard-settings .contact-dashboard > .muted {margin:0 0 12px}
.dashboard-contact-grid {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
.dashboard-contact-grid > div {min-width:0}
.dashboard-contact-current {border-right:1px solid #e3eaf2;padding-right:20px}
.dashboard-contact-current .contact-switch {margin:0 0 6px;font-size:14px}
.dashboard-contact-current > .muted {font-size:12px;margin:4px 0 8px}
.dashboard-contact-current h3 {margin-top:16px}
.dashboard-contact-current .my-links {margin:9px 0 0}
.dashboard-contact-current .my-link {max-width:none}
.dashboard-contact-new #add-link-form {max-width:none}
.dashboard-contact-new .dashboard-link-fields {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);gap:10px}
.dashboard-contact-new #add-link-form label {font-size:13px;margin:0 0 5px}
.dashboard-contact-new #add-link-form input,
.dashboard-contact-new #add-link-form select {width:100%;min-width:0}
.dashboard-contact-new #custom-link-label {margin-top:8px}
.dashboard-contact-new #add-link-form button {margin-top:12px;padding:9px 13px;font-size:13px}
@media(max-width:850px){
  .dashboard-settings .contact-dashboard {margin-top:12px}
  .dashboard-layout {grid-template-columns:minmax(0,1fr);gap:12px}
  .dashboard-side {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start}
  .dashboard-settings .panel {margin-bottom:12px}
  .dashboard-layout .panel {margin:0}
  .dashboard-avatar .avatar-editor {flex-wrap:wrap}
  .dashboard-personal .specializations {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  .dashboard-heading {gap:7px;margin-bottom:12px}
  .dashboard-heading h1 {font-size:24px}
  .dashboard-side {grid-template-columns:minmax(0,1fr)}
  .dashboard-settings .panel {padding:14px;margin-bottom:12px}
  .dashboard-layout .panel {margin:0}
  .dashboard-personal .specializations {grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px}
  .dashboard-personal .spec-option {font-size:12px}
  .dashboard-contact-grid {grid-template-columns:1fr;gap:14px}
  .dashboard-contact-current {border-right:0;border-bottom:1px solid #e3eaf2;padding:0 0 13px}
  .dashboard-contact-new .dashboard-link-fields {grid-template-columns:1fr 1fr;gap:10px}
  .dashboard-avatar .avatar-editor {flex-wrap:nowrap}
}
@media(max-width:380px){
  .dashboard-heading a {font-size:13px}
  .dashboard-personal .specializations {grid-template-columns:1fr}
  .dashboard-contact-new .dashboard-link-fields {grid-template-columns:1fr}
}
