/* Profile: section menu, roster editor, AI sharing switch, the feedback tab and dialog. */
a.account-button { text-decoration: none; }
.account-button[aria-current="page"] { box-shadow: 0 0 0 2px rgba(255, 247, 232, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.identity-name { font: 400 24px/1.2 var(--serif); overflow-wrap: anywhere; }
.identity-email { color: var(--cream-2); overflow-wrap: anywhere; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; padding: 12px 16px; border-radius: 18px;
  color: var(--cream); text-decoration: none;
}
.menu-row:hover { background: rgba(244, 233, 215, 0.07); }
.menu-text { display: grid; gap: 3px; }
.menu-title { font-weight: 600; font-size: 17px; }
.menu-sub { color: var(--cream-3); font-size: 14px; }
.menu-row .icon { color: var(--amber); }
.profile-signout { min-height: 50px; }
.roster-editor { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: rgba(244, 233, 215, 0.05); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; cursor: pointer; }
.switch {
  appearance: none; position: relative; flex: none; width: 52px; height: 32px; margin: 0; border-radius: 999px; cursor: pointer;
  background: rgba(244, 233, 215, 0.18); transition: background-color 0.2s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--cream); transition: transform 0.2s; }
.switch:checked { background: linear-gradient(180deg, #f8d59e, #dc9f5e); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.dialog-body { white-space: pre-line; }
.form-notice { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(63, 144, 137, 0.25); font-size: 15px; }
@media (prefers-reduced-motion: reduce) {
  .switch, .switch::after { transition: none; }
}

/* Feedback: the amber "!" tab on the right edge, its form and the log. */
.feedback-fab { position: fixed; z-index: 25; right: 0; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 96px); display: flex; align-items: center; gap: 6px; }
.feedback-tab {
  width: 24px; height: 46px; padding: 0; border: 2px solid #79533a; border-right: 0; border-radius: 12px 0 0 12px; cursor: pointer;
  color: #352b24; font: 800 17px/1 var(--sans); background: #f6b73c;
}
.feedback-hide { width: 28px; height: 36px; border: 0; border-radius: 10px; cursor: pointer; color: var(--cream); font-size: 20px; background: rgba(16, 34, 32, 0.8); }
.feedback-bubble {
  display: grid; justify-items: center; gap: 1px; min-height: 48px; margin-right: 16px; padding: 6px 12px; border: 2px solid #79533a; border-radius: 14px;
  cursor: pointer; color: #352b24; font: 800 11px/1.1 var(--sans); background: #f6b73c; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
}
.feedback-bubble span:first-child { font-size: 17px; }
.feedback-dialog { width: min(520px, calc(100% - 24px)); }
.feedback-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.feedback-form { display: grid; gap: 12px; }
.feedback-form .field-area { min-height: 180px; }
.feedback-status { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: rgba(244, 233, 215, 0.06); }
.feedback-status p { margin: 0; color: var(--cream-2); }
.feedback-status[hidden] { display: none; }
.feedback-log-link { width: 100%; margin-top: 12px; }
.rules-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--cream-2); line-height: 1.5; }
@media (min-width: 721px) {
  .feedback-fab { bottom: 32px; }
}
