/* OttoCare PREFERENCES module — scoped to .oc-prefs. Same page look as My Profile; channel colors from the old preference groups. */
.oc-prefs, .oc-prefs * { box-sizing: border-box; }
.oc-prefs { position: absolute; inset: 0; z-index: 4000; display: flex; flex-direction: column; background: #0d1117; color: #fff; font-family: 'DM Sans', sans-serif; }
.oc-prefs[hidden], .oc-prefs [hidden] { display: none !important; }
.oc-prefs-top { position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 44px 22px 16px; background: rgba(0, 0, 0, 0.92); }
.oc-prefs-back { position: absolute; left: 18px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 15px; cursor: pointer; }
.oc-prefs-title { font-family: 'DM Serif Display', serif; font-size: 18px; }
.oc-prefs-content { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px 110px; }
.oc-prefs-section { overflow: hidden; padding-bottom: 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; background: linear-gradient(145deg, rgba(29, 158, 117, 0.08) 0%, rgba(239, 159, 39, 0.04) 50%, rgba(29, 158, 117, 0.06) 100%); }
.oc-prefs-head { padding: 16px 18px; background: rgba(255, 255, 255, 0.04); color: #c9a84c; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.oc-prefs-intro { margin: 14px 18px 12px; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.65); }
.oc-prefs-item {
  --c: #1d9e75;
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 24px);
  margin: 0 12px 10px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), color-mix(in srgb, var(--c) 6%, transparent));
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.oc-prefs-item.email { --c: #5d8eff; }
.oc-prefs-item.text { --c: #1d9e75; }
.oc-prefs-item.call { --c: #9b7fd4; }
.oc-prefs-item > i { width: 22px; text-align: center; font-size: 17px; color: var(--c); }
.oc-prefs-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.oc-prefs-name small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, 0.5); }
/* the switch */
.oc-prefs-switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.18); transition: background 0.2s; }
.oc-prefs-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.oc-prefs-item[aria-checked="true"] .oc-prefs-switch { background: var(--c); }
.oc-prefs-item[aria-checked="true"] .oc-prefs-switch::after { transform: translateX(20px); }
.oc-prefs-note { margin: 4px 18px 0; font-size: 12px; color: #f3c06d; }
.oc-prefs-toast { position: absolute; left: 50%; bottom: 96px; max-width: calc(100% - 32px); padding: 12px 18px; border: 1px solid rgba(29, 158, 117, 0.45); border-radius: 8px; background: rgba(13, 40, 32, 0.95); font-size: 13px; text-align: center; transform: translateX(-50%); }
