/*
 * ESPADA design system — interior pages.
 * Graphite / muted orchid / warm gold; Exo 2 + Manrope.
 * Only active on pages using body.espada-unified.
 * Page structure, responsive breakpoints and interaction states remain intact.
 */
body.espada-unified {
  --espada-bg: #0b0f17;
  --espada-surface: #151b26;
  --espada-surface-2: #101620;
  --espada-border: #303647;
  --espada-card: linear-gradient(165deg,#19202c 0%,#151b26 48%,#101620 100%);
  --espada-text: #e9ecf3;
  --espada-muted: #a1abbc;
  --espada-magenta: #ca67d4;
  --espada-yellow: #e5d071;
  --espada-danger: #d76f98;
  font-family: "Manrope","Segoe UI",Arial,sans-serif !important;
  font-weight: 500;
  color: var(--espada-text) !important;
  background:
    radial-gradient(circle at 12% 3%,rgba(202,103,212,.11),transparent 35%),
    radial-gradient(circle at 88% 97%,rgba(229,208,113,.065),transparent 32%),
    #0b0f17 !important;
}
body.espada-unified::before {
  background: rgba(202,103,212,.16) !important;
}
body.espada-unified::after {
  background: rgba(229,208,113,.10) !important;
}
body.espada-unified :is(button,input,select,textarea) {
  font-family: "Manrope","Segoe UI",Arial,sans-serif;
}
body.espada-unified :is(.guild-name,.title,.home-logo) {
  font-family: "Exo 2","Trebuchet MS","Segoe UI",sans-serif !important;
  color: #ca67d4 !important;
  font-weight: 700 !important;
  letter-spacing: .13em !important;
  line-height: 1.17;
  text-shadow: 0 0 22px rgba(202,103,212,.19),0 1px 0 rgba(0,0,0,.18) !important;
}
body.espada-unified :is(.guild-name,.title,.home-logo) a {
  color: inherit !important;
  text-decoration: none !important;
}
body.espada-unified .guild-line {
  height: 2px !important;
  background: linear-gradient(90deg,#ca67d4,#e5d071) !important;
  box-shadow: 0 0 13px rgba(202,103,212,.11) !important;
  opacity: .96;
}
body.espada-unified :is(h2,h3,.section-title) {
  color: #f1eefa !important;
  font-family: "Manrope","Segoe UI",sans-serif !important;
  letter-spacing: -.015em;
  font-weight: 700 !important;
}
body.espada-unified :is(.card,.panel,.login-card,.table-card,.member,.loot,.poll-card,.result-item,.item) {
  background: var(--espada-card) !important;
  border-color: rgba(202,103,212,.19) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.22),0 0 26px rgba(202,103,212,.025) !important;
}
body.espada-unified :is(.card,.panel,.login-card,.table-card)::before {
  background: linear-gradient(90deg,transparent,rgba(202,103,212,.65),rgba(229,208,113,.58),transparent) !important;
  opacity: .52 !important;
}
body.espada-unified :is(.history-row,.edit-loot-row,.request-row,.class-summary-item,.option,.choice,.change-vote-option,.entry-form,.direct-loot-form,.edit-panel) {
  border-color: rgba(202,103,212,.15) !important;
  background: rgba(21,27,38,.84) !important;
  box-shadow: none !important;
}
body.espada-unified :is(.poll-card,.result-item,.item,.loot,.history-row,.class-summary-item):hover {
  border-color: rgba(202,103,212,.35) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.20) !important;
}
body.espada-unified :is(.nick,.nickname,.entry-name,.poll-question,.question,.class-summary-value) {
  color: #e5d071 !important;
}
body.espada-unified :is(.nick,.nickname,.entry-name,.seller,.request-nick) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}
body.espada-unified :is(.profession-icon-wrap,.summary-avatar) {
  border-color: rgba(202,103,212,.24) !important;
  background: radial-gradient(circle,rgba(202,103,212,.055),transparent 72%),#111722 !important;
  box-shadow: inset 0 0 12px rgba(202,103,212,.02) !important;
}
body.espada-unified :is(.badge,.role,.admin-badge,.active-badge,.total-chip) {
  border-color: rgba(202,103,212,.32) !important;
  background-color: rgba(202,103,212,.055) !important;
  color: #e8bfed !important;
}
body.espada-unified :is(.hint,.meta,.message,.msg,.loading,.footer,.entry-meta,.poll-meta,.class-summary-label) {
  color: #a1abbc;
}
body.espada-unified :is(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),select,textarea) {
  border-color: rgba(155,168,189,.24) !important;
  background: #111722 !important;
  color: #eff0f5 !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.14) !important;
}
body.espada-unified :is(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),select,textarea):focus {
  border-color: rgba(229,208,113,.58) !important;
  background: #141c29 !important;
  box-shadow: 0 0 0 3px rgba(229,208,113,.06) !important;
  outline: none !important;
}
body.espada-unified :is(input[type="radio"],input[type="checkbox"],input[type="range"]) {
  accent-color: #e5d071;
}
body.espada-unified :is(input,textarea)::placeholder {
  color: #8995a7 !important;
}
/* Main actions: dark gold outline, not solid fluorescent fills. */
body.espada-unified :is(
  .submit,.save-button,.login-button,.register-button,.issue-button,
  .want-button,.poll-link,.ok,.edit-save,.admin-link,.party-survey-link,
  .yellow-select-trigger,.summary-open-manage,.loot-row-button
) {
  border-color: rgba(229,208,113,.35) !important;
  background: rgba(229,208,113,.048) !important;
  color: #ebdda0 !important;
  box-shadow: none !important;
}
body.espada-unified :is(
  .submit,.save-button,.login-button,.register-button,.issue-button,
  .want-button,.poll-link,.ok,.edit-save,.admin-link,.party-survey-link,
  .yellow-select-trigger,.summary-open-manage,.loot-row-button
):hover:not(:disabled) {
  border-color: rgba(229,208,113,.62) !important;
  background: rgba(229,208,113,.09) !important;
  color: #fff1b8 !important;
  box-shadow: 0 6px 20px rgba(229,208,113,.04) !important;
}
/* Secondary actions: soft orchid. */
body.espada-unified :is(
  .poll-results-link,.members-link,.loot-link,.cancel-button,.later-button,
  .change-vote,.edit-poll,.register-item,.add-loot-link,.role-toggle,
  .toolbar-button,.category-button,.results-link,.page-button
) {
  border-color: rgba(202,103,212,.34) !important;
  background: rgba(202,103,212,.048) !important;
  color: #ead9ec !important;
  box-shadow: none !important;
}
body.espada-unified :is(
  .poll-results-link,.members-link,.loot-link,.cancel-button,.later-button,
  .change-vote,.edit-poll,.register-item,.add-loot-link,.role-toggle,
  .toolbar-button,.category-button,.results-link,.page-button
):hover:not(:disabled) {
  border-color: rgba(202,103,212,.60) !important;
  background: rgba(202,103,212,.10) !important;
  color: #fff0ff !important;
  box-shadow: 0 6px 20px rgba(202,103,212,.04) !important;
}
/* Destructive actions maintain a distinct muted rose warning. */
body.espada-unified :is(
  .delete-button,.delete-lot,.delete-entry,.delete-results,.no,.demote,
  .admin-delete-response
) {
  border-color: rgba(215,111,152,.36) !important;
  background: rgba(215,111,152,.045) !important;
  color: #efbfd3 !important;
  box-shadow: none !important;
}
body.espada-unified :is(
  .delete-button,.delete-lot,.delete-entry,.delete-results,.no,.demote,
  .admin-delete-response
):hover:not(:disabled) {
  border-color: rgba(215,111,152,.62) !important;
  background: rgba(215,111,152,.095) !important;
  color: #ffdae9 !important;
}
body.espada-unified :is(.trade-link,.issued-loot-link) {
  border-color: rgba(229,208,113,.31) !important;
  background: rgba(229,208,113,.035) !important;
  color: #ebdda0 !important;
}
body.espada-unified :is(.trade-link,.issued-loot-link):hover {
  border-color: rgba(229,208,113,.55) !important;
  background: rgba(229,208,113,.08) !important;
}
body.espada-unified .back {
  border-color: rgba(161,171,188,.16) !important;
  background: rgba(161,171,188,.025) !important;
  color: #a1abbc !important;
}
body.espada-unified .back:hover {
  border-color: rgba(229,208,113,.37) !important;
  color: #e5d071 !important;
}
body.espada-unified :is(.guild-name,.title,.home-logo,a,button,input,select,textarea):focus-visible {
  outline: 2px solid #e5d071 !important;
  outline-offset: 3px;
}
/* Tables: retain sticky columns, row interactions and horizontal scroll. */
body.espada-unified :is(
  .issued-table-scroll,.loot-table-scroll,.table-scroll,.table-card
) {
  background: #101620 !important;
  border-color: rgba(202,103,212,.24) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.24) !important;
}
body.espada-unified :is(table,.issued-table,.loot-table) th {
  background: #1a2230 !important;
  color: #e5d071 !important;
  border-color: rgba(229,208,113,.20) !important;
}
body.espada-unified :is(table,.issued-table,.loot-table) td {
  border-color: rgba(161,171,188,.09) !important;
  color: #d9dfeb;
}
body.espada-unified .issued-table tbody .summary-member-row > td,
body.espada-unified .loot-table tbody .loot-table-row > td {
  background: #121a25 !important;
}
body.espada-unified .issued-table tbody .summary-member-row > td:first-child,
body.espada-unified .loot-table tbody .loot-table-row > td:first-child {
  background: #18212e !important;
}
body.espada-unified .issued-table tbody .summary-member-row:hover > td,
body.espada-unified .loot-table tbody .loot-table-row:hover > td {
  background: #1e2938 !important;
}
body.espada-unified .issued-table tbody .summary-member-row:hover > td:first-child,
body.espada-unified .loot-table tbody .loot-table-row:hover > td:first-child {
  background: #263344 !important;
}
body.espada-unified :is(.summary-manage-inner,.loot-table-detail > td) {
  background: #101620 !important;
}
body.espada-unified :is(.summary-item,.summary-relic-detail-item,.summary-operation-item,.loot-details) {
  border-color: rgba(161,171,188,.15) !important;
  background: #171f2b !important;
  color: #dce1e9 !important;
}
/* Preserve subtle choice hover in hand-built select menus. */
body.espada-unified .yellow-select-menu {
  background: #161d29 !important;
  border-color: rgba(202,103,212,.28) !important;
}
body.espada-unified .yellow-select-option {
  color: #e5e1ec !important;
}
body.espada-unified .yellow-select-option:hover,
body.espada-unified .yellow-select-option:focus-visible {
  background: rgba(229,208,113,.085) !important;
  color: #fff1b8 !important;
  box-shadow: inset 2px 0 0 rgba(229,208,113,.7) !important;
}
body.espada-unified .yellow-select-option[aria-selected="true"]:not(:hover):not(:focus-visible) {
  background: rgba(229,208,113,.035) !important;
  color: #e5d071 !important;
  box-shadow: inset 2px 0 0 rgba(229,208,113,.4) !important;
}
/* Forms, dialogs and overlays: same graphite finish, no structural changes. */
body.espada-unified :is(
  .item-edit-dialog,.total-edit-dialog,.money-issue-dialog,
  .delete-entry-dialog,.delete-confirm-dialog,.modal-dialog
) {
  background: linear-gradient(160deg,#1b2431,#111824) !important;
  border-color: rgba(202,103,212,.31) !important;
  box-shadow: 0 25px 70px rgba(0,0,0,.48) !important;
}
body.espada-unified :is(.option,.choice,.change-vote-option):hover {
  background: rgba(202,103,212,.075) !important;
  border-color: rgba(202,103,212,.38) !important;
}
body.espada-unified :is(.bar-fill,.success-line) {
  background: linear-gradient(90deg,#ca67d4,#e5d071) !important;
}
body.espada-unified :is(.price,.qty,.request-nick,.summary-item-name,.loot-table-item) {
  color: #e5d071 !important;
}
body.espada-unified :is(.logout-button,.later-button[disabled]) {
  border-color: rgba(161,171,188,.18) !important;
}
@media (max-width: 760px) {
  body.espada-unified :is(.guild-name,.title,.home-logo) {
    letter-spacing: .095em !important;
  }
  body.espada-unified :is(.card,.panel,.login-card,.table-card) {
    box-shadow: 0 14px 38px rgba(0,0,0,.25) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.espada-unified *,body.espada-unified *::before,body.espada-unified *::after {
    transition: none !important;
  }
}

/*
 * Interaction audit (post-theme migration).
 * Restore semantic hover, selected, expanded, and editing states that the
 * generic button/card rules otherwise suppress or recolor incorrectly.
 */

/* Party survey: selected answer must stay distinct from an idle or hovered card. */
body.espada-unified .choice:has(input:checked) {
  border-color: rgba(229,208,113,.66) !important;
  background: linear-gradient(90deg,rgba(229,208,113,.115),rgba(202,103,212,.045)) !important;
  color: #fff1c3 !important;
  box-shadow: inset 3px 0 0 #e5d071 !important;
}
body.espada-unified .choice:has(input:checked):hover {
  border-color: rgba(229,208,113,.82) !important;
  background: linear-gradient(90deg,rgba(229,208,113,.14),rgba(202,103,212,.06)) !important;
  box-shadow: inset 3px 0 0 #e5d071 !important;
}

/* Poll results: current (disabled) voting option is visibly selected. */
body.espada-unified .change-vote-option.current,
body.espada-unified .change-vote-option.current:disabled,
body.espada-unified .change-vote-option.current:hover {
  border-color: rgba(202,103,212,.60) !important;
  background: rgba(202,103,212,.12) !important;
  color: #eed0f1 !important;
  box-shadow: inset 3px 0 0 #ca67d4 !important;
}
body.espada-unified .change-vote-option.current:disabled {
  opacity: .82;
}

/* The member role action used to be yellow; a secondary-theme rule made it pink. */
body.espada-unified .role-toggle {
  border-color: rgba(229,208,113,.36) !important;
  background: rgba(229,208,113,.047) !important;
  color: #ebdda0 !important;
  box-shadow: none !important;
}
body.espada-unified .role-toggle:hover:not(:disabled) {
  border-color: rgba(229,208,113,.62) !important;
  background: rgba(229,208,113,.095) !important;
  color: #fff1b8 !important;
  box-shadow: 0 6px 18px rgba(229,208,113,.04) !important;
}

/* Survey results navigation was originally the primary gold action. */
body.espada-unified .results-link {
  border-color: rgba(229,208,113,.37) !important;
  background: rgba(229,208,113,.055) !important;
  color: #ebdda0 !important;
  box-shadow: none !important;
}
body.espada-unified .results-link:hover:not(:disabled) {
  border-color: rgba(229,208,113,.60) !important;
  background: rgba(229,208,113,.105) !important;
  color: #fff1b8 !important;
  box-shadow: 0 7px 20px rgba(229,208,113,.045) !important;
}

/* Inventory: closed, hovered and expanded controls use identical warm-gold hues. */
body.espada-unified .loot-table-requests button.loot-request-count {
  border-color: rgba(229,208,113,.26) !important;
  background: rgba(229,208,113,.04) !important;
  color: #e2d9b7 !important;
}
body.espada-unified .loot-table-requests button.loot-request-count:is(:hover,:focus-visible,[aria-expanded="true"]) {
  border-color: rgba(229,208,113,.55) !important;
  background: rgba(229,208,113,.10) !important;
  color: #fff1b8 !important;
}
body.espada-unified .loot-table-actions .loot-row-button:is(:hover,:focus-visible,[aria-expanded="true"]) {
  border-color: rgba(229,208,113,.59) !important;
  background: rgba(229,208,113,.105) !important;
  color: #fff1b8 !important;
  box-shadow: none !important;
}

/* Inventory delete action: remove the previous high-saturation pink hover. */
body.espada-unified .loot-table .delete-button {
  border-color: rgba(215,111,152,.36) !important;
  background: rgba(215,111,152,.045) !important;
  color: #efbfd3 !important;
}
body.espada-unified .loot-table .delete-button:hover:not(:disabled) {
  border-color: rgba(215,111,152,.64) !important;
  background: rgba(215,111,152,.10) !important;
  color: #ffdae9 !important;
}

/* Trade table editing retains visible, muted-orchid row feedback. */
body.espada-unified .table-scroll tbody tr:hover > td {
  background: rgba(202,103,212,.035) !important;
}
body.espada-unified .table-scroll tbody tr.editable:hover > td {
  background: rgba(202,103,212,.09) !important;
}

/* Issued-loot edit modals also use warm gold, not leftover neon yellow. */
body.espada-unified .total-edit-save {
  border-color: rgba(229,208,113,.36) !important;
  background: rgba(229,208,113,.055) !important;
  color: #ebdda0 !important;
}
body.espada-unified .total-edit-save:hover:not(:disabled) {
  border-color: rgba(229,208,113,.60) !important;
  background: rgba(229,208,113,.105) !important;
  color: #fff1b8 !important;
}
body.espada-unified .total-edit-cancel {
  border-color: rgba(161,171,188,.20) !important;
  background: rgba(161,171,188,.025) !important;
  color: #bdc4d1 !important;
}
body.espada-unified .total-edit-cancel:hover:not(:disabled) {
  border-color: rgba(161,171,188,.40) !important;
  background: rgba(161,171,188,.075) !important;
  color: #e9ecf3 !important;
}

/*
 * Interior finishing pass: survey response details, status badges,
 * directory labels, result cards and informational controls.
 * Shared muted orchid / warm gold palette from ESPADA dashboard.
 */

/* The results of the start survey previously retained neon interior accents. */
body.espada-unified .eyebrow {
  border: 1px solid rgba(229,208,113,.30) !important;
  background: rgba(229,208,113,.045) !important;
  color: #e5d071 !important;
  font-weight: 700 !important;
}
body.espada-unified .deadline {
  background: rgba(161,171,188,.035) !important;
  border: 1px solid rgba(161,171,188,.16) !important;
  color: #b2bac8 !important;
  font-weight: 600 !important;
}
body.espada-unified .respondent-count {
  border: 1px solid rgba(229,208,113,.34) !important;
  background: rgba(229,208,113,.062) !important;
  color: #e5d071 !important;
  font-weight: 700 !important;
}
body.espada-unified .class-summary .class-summary-item {
  background: linear-gradient(180deg,#19212d,#151d28) !important;
  border: 1px solid rgba(161,171,188,.15) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}
body.espada-unified .class-summary-label {
  color: #a1abbc !important;
}
body.espada-unified .class-summary-value {
  color: #e5d071 !important;
}
body.espada-unified .result-item {
  border: 1px solid rgba(202,103,212,.19) !important;
  background: linear-gradient(170deg,#1a2230 0%,#131a25 100%) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.19) !important;
}
body.espada-unified .result-item::before {
  background: linear-gradient(180deg,#ca67d4,#e5d071) !important;
  opacity: .72 !important;
}
body.espada-unified .result-item:hover {
  border-color: rgba(202,103,212,.40) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.24) !important;
}
body.espada-unified .result-item .nickname {
  color: #e5d071 !important;
  font-weight: 750 !important;
}
body.espada-unified .result-item .profession {
  border: 1px solid rgba(202,103,212,.32) !important;
  background: rgba(202,103,212,.082) !important;
  color: #e5c0e9 !important;
  font-weight: 650 !important;
}
body.espada-unified .result-item .detail {
  background: rgba(10,15,23,.38) !important;
  border: 1px solid rgba(161,171,188,.14) !important;
  color: #d7ddea !important;
}
body.espada-unified .result-item .detail strong {
  color: #a7b0c0 !important;
  font-weight: 700 !important;
}
body.espada-unified .meta,
body.espada-unified .page-info {
  border-color: rgba(161,171,188,.12) !important;
  background: rgba(161,171,188,.035) !important;
  color: #a1abbc !important;
}
body.espada-unified .page-button {
  border: 1px solid rgba(229,208,113,.25) !important;
  background: rgba(229,208,113,.038) !important;
  color: #d9d1ab !important;
}
body.espada-unified .page-button:hover:not(:disabled) {
  border-color: rgba(229,208,113,.52) !important;
  background: rgba(229,208,113,.09) !important;
  color: #fff0b8 !important;
}
body.espada-unified .page-button:disabled {
  opacity: .36 !important;
  cursor: not-allowed;
}

/* Same clean accents across trading, poll and guild member lists. */
body.espada-unified :is(.seller,.loot-type) {
  color: #dca4e4 !important;
}
body.espada-unified .seller strong,
body.espada-unified .contact-link {
  color: #e5d071 !important;
}
body.espada-unified .contact-link:hover {
  color: #fff1b8 !important;
}
body.espada-unified :is(.option-percent,.option-name) {
  color: #e5d071 !important;
}
body.espada-unified .voter {
  border-color: rgba(202,103,212,.28) !important;
  background: rgba(202,103,212,.055) !important;
  color: #e2d7e7 !important;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
  line-height: 1.5;
}
body.espada-unified .options > .option,
body.espada-unified .option-head,
body.espada-unified .voters {
  min-width: 0;
}
body.espada-unified .success-title {
  color: #e5d071 !important;
  text-shadow: 0 0 16px rgba(229,208,113,.12) !important;
}
body.espada-unified :is(.message.success,.message-pending) {
  border-color: rgba(229,208,113,.26) !important;
  background: rgba(229,208,113,.055) !important;
  color: #e9dfb4 !important;
}
body.espada-unified .role {
  color: #dfa6e6 !important;
}
body.espada-unified .choice input {
  accent-color: #e5d071 !important;
}
body.espada-unified .change-vote-option.current {
  border-color: rgba(202,103,212,.60) !important;
  color: #eed0f1 !important;
}
body.espada-unified .loot-table .loot-table-type {
  color: #dca4e4 !important;
}

/* ESPADA interior tile completion v5 */
/* Start-survey results: old flat details now have the dashboard's layered slate finish. */
body.espada-unified .respondent-count {
  background: linear-gradient(135deg,rgba(229,208,113,.11),rgba(229,208,113,.025)) !important;
  border-color: rgba(229,208,113,.37) !important;
  color: #f0e1ab !important;
  box-shadow: inset 0 1px 0 rgba(229,208,113,.045) !important;
}
body.espada-unified .class-summary .class-summary-item {
  background: linear-gradient(150deg,#1c2532,#121a26) !important;
  border-color: rgba(202,103,212,.20) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.032) !important;
}
body.espada-unified .class-summary .class-summary-value {
  font-family: "Exo 2","Manrope",sans-serif !important;
  font-weight: 700 !important;
}
body.espada-unified .result-item {
  background:
    radial-gradient(circle at 2% 0%,rgba(202,103,212,.075),transparent 40%),
    linear-gradient(155deg,#1c2533,#151e2a 52%,#101823) !important;
  border-color: rgba(202,103,212,.28) !important;
  border-radius: 14px !important;
  padding: 15px 16px 15px 19px;
  box-shadow: 0 12px 34px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.042) !important;
}
body.espada-unified .result-item:hover {
  background: linear-gradient(155deg,#212c3a,#182230 52%,#131c29) !important;
  border-color: rgba(202,103,212,.47) !important;
  box-shadow: 0 15px 36px rgba(0,0,0,.28) !important;
}
body.espada-unified .result-item::before {
  top: 14px;
  bottom: 14px;
  height: auto;
  border-radius: 0 4px 4px 0;
  opacity: .82 !important;
}
body.espada-unified .result-item .result-top {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(161,171,188,.12);
}
body.espada-unified .result-item .nickname {
  color: #f0dd9e !important;
  font-size: 15px;
  font-weight: 750 !important;
}
body.espada-unified .result-item .details {
  gap: 9px;
  margin-top: 11px;
}
body.espada-unified .result-item .details .detail {
  min-height: 62px;
  border: 1px solid rgba(161,171,188,.17) !important;
  border-radius: 10px;
  padding: 11px 12px;
  background: linear-gradient(175deg,#141d29,#101722) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
  color: #e0e5ef !important;
  font-size: 12px;
  line-height: 1.5;
}
body.espada-unified .result-item .details .detail strong {
  margin-bottom: 6px;
  color: #b7a8c2 !important;
  font-size: 10px;
  font-weight: 700 !important;
}
body.espada-unified .result-item .profession {
  background: rgba(202,103,212,.085) !important;
  border-color: rgba(202,103,212,.34) !important;
  color: #e9c4ec !important;
}
body.espada-unified .result-item .delete-button {
  border-color: rgba(215,111,152,.36) !important;
  background: rgba(215,111,152,.050) !important;
  color: #efd1df !important;
}
body.espada-unified .result-item .delete-button:hover:not(:disabled) {
  border-color: rgba(215,111,152,.65) !important;
  background: rgba(215,111,152,.11) !important;
  color: #ffe0ed !important;
}
/* Guild-poll options and voting details: polish the nested surfaces as well. */
body.espada-unified .poll-list .poll-card {
  background: linear-gradient(155deg,#1b2532,#121a26) !important;
  border-color: rgba(202,103,212,.23) !important;
  box-shadow: 0 11px 30px rgba(0,0,0,.21) !important;
}
body.espada-unified .poll-list .poll-card:hover {
  background: linear-gradient(155deg,#202b3a,#141f2b) !important;
  border-color: rgba(202,103,212,.47) !important;
}
body.espada-unified .poll-card .poll-head {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(161,171,188,.12);
}
body.espada-unified .poll-card .option-row {
  padding: 7px 9px;
  border: 1px solid rgba(161,171,188,.12);
  border-radius: 8px;
  background: rgba(10,15,23,.31);
}
body.espada-unified .poll-card .option-name {
  color: #dce1ec !important;
}
body.espada-unified .options .option {
  background: linear-gradient(165deg,#19222f,#131b27) !important;
  border-color: rgba(161,171,188,.18) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
}
body.espada-unified .change-vote-box {
  background: linear-gradient(165deg,#1b2431,#121a26) !important;
  border-color: rgba(202,103,212,.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.027) !important;
}
/* Survey input groups, auction filters and loot details were still plain black. */
body.espada-unified fieldset {
  border-color: rgba(202,103,212,.20) !important;
  background: linear-gradient(165deg,#19222e,#111925) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.028) !important;
}
body.espada-unified fieldset legend {
  color: #e8e5ef !important;
}
body.espada-unified .filters {
  background: linear-gradient(155deg,#1a2330,#121925) !important;
  border-color: rgba(202,103,212,.23) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.026) !important;
}
body.espada-unified .loot-table-detail .loot-details {
  background: linear-gradient(165deg,#19222e,#131b27) !important;
  border-color: rgba(161,171,188,.16) !important;
}
@media (max-width: 760px) {
  body.espada-unified .result-item {
    padding: 11px 11px 12px 14px;
  }
  body.espada-unified .result-item .details {
    gap: 7px;
  }
  body.espada-unified .result-item .details .detail {
    min-height: 56px;
    padding: 9px 10px;
  }
  body.espada-unified .poll-card .option-row {
    padding: 7px 8px;
  }
}

/* Complete nested surfaces across interior pages — consistent with the dashboard. */
body.espada-unified .panel .toolbar,
body.espada-unified .table-card .toolbar {
  border-color: rgba(161,171,188,.12);
}
body.espada-unified :is(.requests-list,.history-list,.voters,.edit-loot-list) {
  scrollbar-color: #41495b #121824;
}
body.espada-unified .poll-card .option-row,
body.espada-unified .class-summary .class-summary-item,
body.espada-unified .result-item .detail {
  border-color: rgba(202,103,212,.19) !important;
  background: linear-gradient(165deg,#1b2533,#131c29) !important;
}
body.espada-unified .poll-card .option-row:hover {
  border-color: rgba(202,103,212,.34) !important;
  background: linear-gradient(165deg,#222e3e,#182331) !important;
}
body.espada-unified :is(.history-row,.request-row,.option,.change-vote-box,.loot-details) {
  border-color: rgba(161,171,188,.16) !important;
}
body.espada-unified .result-item .detail strong,
body.espada-unified .class-summary-label {
  color: #b9b2c4 !important;
}
body.espada-unified :is(.request-nick,.result-item .nickname,.entry-name) {
  color: #e5d071 !important;
}
body.espada-unified .total-edit-dialog,
body.espada-unified .edit-panel {
  border-color: rgba(202,103,212,.28) !important;
  box-shadow: 0 24px 65px rgba(0,0,0,.35) !important;
}

/* Inner areas that still retained the original flat dark styling. */
body.espada-unified .member-actions,
body.espada-unified .requests,
body.espada-unified .admin-issue,
body.espada-unified .history,
body.espada-unified .options,
body.espada-unified .change-vote-options {
  border-color: rgba(202,103,212,.17) !important;
}
body.espada-unified .request-row,
body.espada-unified .history-row,
body.espada-unified .change-vote-option:not(.current) {
  background: linear-gradient(165deg,#192330,#121a26) !important;
  border-color: rgba(161,171,188,.16) !important;
}
body.espada-unified .change-vote-option:not(.current):hover:not(:disabled) {
  background: rgba(202,103,212,.105) !important;
  border-color: rgba(202,103,212,.54) !important;
  color: #f3d9f5 !important;
}
body.espada-unified .request-row .request-nick,
body.espada-unified .poll-list .poll-question { color: #e7d894 !important; }
body.espada-unified .option .option-head,
body.espada-unified .result-item .result-top { border-color: rgba(202,103,212,.15) !important; }
body.espada-unified :is(.issued-table-scroll,.loot-table-scroll,.table-scroll) {
  border-color: rgba(202,103,212,.25) !important;
}

/* Shared form hierarchy and readable assistance text. */
body.espada-unified .form-intro {
  margin: -8px 0 24px;
  color: #aeb9ca;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}
body.espada-unified.auth-page .field label {
  color: #c6cfdd !important;
  font-size: 13px !important;
}
body.espada-unified.auth-page .hint {
  color: #a1abbc !important;
  font-size: 12px !important;
  line-height: 1.5;
}
body.espada-unified.auth-page :is(input,select) {
  font-size: 16px !important;
}
body.espada-unified .password-field {
  position: relative;
}
body.espada-unified .password-field input {
  padding-right: 94px !important;
}
body.espada-unified .password-toggle {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 86px;
  min-height: 44px;
  height: 100%;
  padding: 0 10px;
  border: 0 !important;
  border-left: 1px solid rgba(161,171,188,.18) !important;
  border-radius: 0 9px 9px 0;
  background: transparent !important;
  color: #dca4e4;
  font-size: 12px;
  cursor: pointer;
  transform: none !important;
}
body.espada-unified .auth-alternative {
  margin: 22px 0 0;
  color: #aeb9ca;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
body.espada-unified .auth-alternative a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #e5d071;
  text-underline-offset: 4px;
}
body.espada-unified .back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
body.espada-unified .card > .back {
  display: flex;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (pointer: coarse), (max-width: 760px) {
  body.espada-unified :is(button,.register-item,.add-loot-link,.change-vote,.edit-poll,.results-link) {
    min-height: 44px !important;
  }
  body.espada-unified :is(input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),select) {
    min-height: 44px;
    font-size: 16px !important;
  }
}
