/* Profile inherits the cabinet palette, including the dark theme. */
.profile-view { min-width:0;max-width:920px; }
.live-cabinet .profile-view .action { min-height:44px;min-width:44px; }
.profile-form { display:grid;gap:20px;min-width:0; }
.profile-form .profile-section { margin:0;min-width:0; }
.profile-section > .hint { margin:0 0 18px; }
.profile-form .field { display:grid;gap:7px;margin:0 0 18px;min-width:0;font-size:13px; }
.profile-form .field:last-child { margin-bottom:0; }
.profile-form input:not([type=checkbox]),.profile-form select,.profile-form textarea {
  width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--ui-control);
  border-radius:7px;background:var(--ui-surface);color:var(--ink);font:inherit;line-height:1.5;
}
.profile-form textarea { min-height:120px;resize:vertical; }
.profile-form :disabled { opacity:1;color:var(--muted); }
.profile-form input::placeholder,.profile-form textarea::placeholder { color:var(--muted);opacity:1; }
.profile-form .field > .hint { margin:0;font-size:12px; }
.profile-workspace { display:grid;gap:5px;padding-top:14px;border-top:1px solid var(--line);overflow-wrap:anywhere; }
.profile-workspace .hint { margin:0; }
.profile-workspace strong { font-size:14px;font-weight:550; }
.profile-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px; }
.profile-full { grid-column:1/-1; }
.profile-subsection { margin:0 0 20px;padding:18px;border:1px solid var(--line);border-radius:8px;background:var(--paper); }
.profile-subsection > .hint { margin:0; }
.profile-platforms { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px;margin-bottom:16px; }
.profile-checkbox { display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 0;font-size:14px;cursor:pointer; }
.profile-checkbox input { flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:var(--ink); }
.profile-offers { display:grid;gap:16px;margin:20px 0; }
.profile-offer { min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:8px; }
.profile-offer legend { padding:0 6px;font-size:14px;font-weight:600; }
.profile-offer-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px; }
.profile-offer-heading .hint { margin:0; }
.profile-offer-heading .action { flex:0 0 auto; }
.profile-toolbar { display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px; }
.profile-toolbar .action { white-space:normal; }
.profile-conflict { margin-bottom:20px;border-left:4px solid var(--yellow); }
.profile-conflict > .hint { margin-bottom:14px; }
.profile-comparison { padding:14px 0;border-top:1px solid var(--line);overflow-wrap:anywhere; }
.profile-comparison h3 { font:600 14px/1.5 Onest,sans-serif; }
.profile-comparison p { margin:8px 0 0;white-space:pre-wrap;font-size:13px;line-height:1.6; }
.profile-view [hidden] { display:none !important; }
@media(max-width:600px) {
  .profile-grid,.profile-platforms { grid-template-columns:minmax(0,1fr); }
  .profile-form .profile-section { padding:16px; }
  .profile-offer,.profile-subsection { padding:12px; }
  .profile-toolbar .action { flex:1 1 auto; }
  .profile-offer-heading { align-items:flex-start; }
}
