.profile-dialog{width:min(660px,calc(100% - 28px));padding:28px;max-height:calc(100dvh - 32px)}
.profile-dialog .icon-button{width:44px;height:44px;min-width:44px;min-height:44px}
.profile-intro{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 21px}
.profile-tabs{display:flex;border-bottom:1px solid var(--line);gap:22px;margin-bottom:23px}
.profile-tab{background:none;font-size:14px;font-weight:600;min-height:44px;padding:0 0 13px;position:relative;color:var(--muted)}
.profile-tab[aria-selected="true"]{color:var(--accent)}
.profile-tab[aria-selected="true"]::after{content:"";height:2px;position:absolute;bottom:-1px;left:0;right:0;background:var(--accent);border-radius:2px}
.profile-preferences{display:grid;grid-template-columns:1fr 1fr;gap:21px 16px}
.profile-field{display:flex;flex-direction:column;gap:9px;min-width:0}
.profile-field-label{font-size:13px;font-weight:600;color:var(--ink);line-height:1.5}
.profile-field select{font:inherit;font-size:16px;width:100%;min-height:48px;padding:11px 28px 11px 12px;border:1px solid var(--line);border-radius:12px;background:#fffdf8;color:var(--ink)}
.profile-field select:focus-visible{outline:3px solid #91a58a;outline-offset:3px}
.profile-hint{font-size:12px;color:var(--muted);line-height:1.7;margin:18px 0 0}
.profile-panel>.profile-hint:first-child{margin:0 0 16px}
.profile-editor{border:1px solid var(--line);background:var(--soft);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:13px}
.profile-editor textarea{font:inherit;font-size:16px;line-height:1.55;resize:vertical;width:100%;min-height:90px;max-height:180px;border:1px solid var(--line);background:#fffdf8;color:var(--ink);border-radius:12px;padding:12px}
.profile-editor textarea::placeholder{color:var(--muted);opacity:1}
.profile-editor-actions{display:flex;align-items:center;gap:13px}
.profile-count{font-size:11px;color:var(--muted)}
.profile-editor-actions .profile-count{margin-right:auto}
.profile-text-button{background:none;min-width:44px;min-height:44px;padding:10px 8px;font-size:12px;color:var(--accent);text-decoration:underline;text-underline-offset:3px;line-height:1.5;white-space:nowrap}
.profile-text-button:hover{color:var(--accent)}
.profile-text-button:disabled{opacity:.4;text-decoration:none}
.profile-add-button{background:#dbe4d3;color:var(--ink);min-height:44px;padding:10px 15px;font-weight:600;font-size:13px;border-radius:12px}
.profile-add-button:hover{background:#d0ddc6}
.profile-notes-heading{display:flex;align-items:center;justify-content:space-between;margin-top:22px}
.profile-notes-heading h3{font-size:13px;font-weight:600;margin:0}
.profile-empty{font-size:13px;color:var(--muted);line-height:1.7;margin:12px 0 0;background:var(--soft);border-radius:14px;padding:16px}
.profile-notes{list-style:none;padding:0;margin:7px 0 0}
.profile-note{display:flex;gap:15px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}
.profile-note-content{min-width:0;flex:1}
.profile-note-label{font-size:11px;letter-spacing:.3px;color:var(--muted);font-weight:600}
.profile-note p{font-size:14px;line-height:1.65;margin:5px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
.profile-note-actions{display:flex;gap:10px;padding-top:3px;flex-shrink:0}
.profile-status{font-size:13px;line-height:1.65;color:var(--accent);margin:16px 0 0}
.profile-status:empty{display:none}
.profile-error{color:#8b4f3d}
.profile-footer{border-top:1px solid var(--line);padding-top:16px;margin-top:24px}
.profile-privacy{font-size:12px;color:var(--muted);line-height:1.65;margin:0 0 7px}
.profile-consent{font-size:12px;color:var(--muted);line-height:1.65;margin:0 0 18px}
.profile-footer-actions{display:flex;align-items:center;gap:10px}
.profile-footer-actions .primary-button{width:auto;min-height:48px;padding:12px 16px;font-size:14px}
.profile-footer-actions .secondary-button{min-height:48px;padding:12px 16px;font-size:14px}
.profile-clear{margin-right:auto}
.profile-clear-dialog{width:min(470px,calc(100% - 32px))}
.profile-clear-dialog button{min-height:44px}
@media(max-width:600px){.profile-dialog{width:100%;max-height:calc(100dvh - 16px);padding:22px 19px max(22px,env(safe-area-inset-bottom))}.profile-preferences{grid-template-columns:1fr;gap:17px}.profile-tabs{gap:19px}.profile-tab{font-size:13px}.profile-footer-actions{flex-wrap:wrap}.profile-clear{flex-basis:100%;text-align:left;margin:0 0 5px;padding-left:0}.profile-footer-actions .secondary-button{flex:1}.profile-footer-actions .primary-button{flex:2}.profile-note{gap:9px}.profile-note-actions{flex-direction:column;gap:2px;align-items:flex-end}.profile-editor{padding:13px}.profile-intro{font-size:14px}}
