/* Treasury: balance and review state first; native disclosure forms, no fake charts. */
body.miki-pulse .pulse-screen-events .event-board { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:12px; align-items:start; }
body.miki-pulse .pulse-screen-events .event-card { min-height:0; padding:14px; border-radius:12px; }
body.miki-pulse .pulse-screen-events .event-card h3 { font-size:16px; line-height:1.3; margin:12px 0; }
body.miki-pulse .pulse-screen-events .event-meta-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
body.miki-pulse .pulse-screen-events .event-meta-grid > div { padding:8px; min-height:0; border-radius:8px; }
body.miki-pulse .pulse-screen-events .event-meta-grid span { font-size:10px; }
body.miki-pulse .pulse-screen-events .event-participants { margin-top:8px; padding:8px; }
body.miki-pulse .pulse-events-archive { margin-top:16px; border-top:1px solid var(--line); }
body.miki-pulse .pulse-events-archive > summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:14px; color:var(--muted); }
body.miki-pulse .pulse-treasury { display:grid; gap:24px; min-width:0; }
body.miki-pulse .pulse-treasury-balance { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr); gap:24px; padding:28px; background:linear-gradient(125deg,#282039,#171b2c); border:1px solid #57446f; border-radius:18px; resize:none; }
body.miki-pulse .pulse-treasury-balance span { color:#c4b6dc; font-size:14px; }
body.miki-pulse .pulse-treasury-balance strong { display:block; font-size:38px; line-height:1.2; color:#f0e6ff; margin:10px 0; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
body.miki-pulse .pulse-treasury-balance p { margin:8px 0 0; font-size:13px; line-height:1.55; color:#b4aec7; }
body.miki-pulse .pulse-treasury-pending { border-left:1px solid #4e415f; padding-left:24px; display:flex; flex-direction:column; justify-content:center; }
body.miki-pulse .pulse-treasury-pending b { font-size:28px; color:#eadcfb; line-height:1.3; margin:8px 0 0; }
body.miki-pulse .pulse-treasury-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:16px; }
body.miki-pulse .pulse-treasury-action { min-width:0; padding:0; border:1px solid #34384e; border-radius:18px; background:linear-gradient(135deg,#1a1e30,#111723); overflow:hidden; resize:none; }
body.miki-pulse .pulse-treasury-action summary { display:flex; justify-content:space-between; gap:16px; align-items:center; min-height:68px; padding:18px 22px; font-size:17px; font-weight:650; color:#ece5fa; cursor:pointer; list-style:none; }
body.miki-pulse .pulse-treasury-action summary::-webkit-details-marker { display:none; }
body.miki-pulse .pulse-treasury-action summary:hover { background:#26223b; }
body.miki-pulse .pulse-treasury-disclosure { display:grid; place-items:center; width:28px; height:28px; flex:none; border:1px solid #5b4678; border-radius:8px; color:var(--accent,#9975ff); font-size:23px; line-height:1; transition:transform .15s; }
body.miki-pulse .pulse-treasury-action[open] .pulse-treasury-disclosure { transform:rotate(45deg); }
body.miki-pulse .pulse-treasury-action>p { margin:0 22px 18px; font-size:14px; color:#afb7cf; line-height:1.6; }
body.miki-pulse .pulse-treasury-action form.form-card { display:grid; gap:16px; padding:0 22px 22px; margin:0; background:none; border:0; box-shadow:none; resize:none; }
body.miki-pulse .pulse-treasury label { display:grid; gap:8px; color:#cecce0; font-size:14px; min-width:0; }
body.miki-pulse .pulse-treasury :is(input:not([type=hidden]),textarea,select) { width:100%; min-width:0; min-height:44px; font:inherit; }
body.miki-pulse .pulse-treasury textarea { min-height:88px; resize:vertical; }
body.miki-pulse .pulse-treasury :is(.pulse-treasury-muted,.pulse-treasury-empty) { color:#aeb6ce; font-size:13px; line-height:1.6; margin:0; }
body.miki-pulse .pulse-treasury-section { padding:24px; min-width:0; border:1px solid #30364c; background:linear-gradient(135deg,#171c2b,#111723); border-radius:18px; resize:none; }
body.miki-pulse .pulse-treasury-section>header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
body.miki-pulse .pulse-treasury-section h2 { font-size:21px; margin:0; padding:0; border:0; }
body.miki-pulse .pulse-treasury-section header>span { font-size:12px; color:#a3acc7; }
body.miki-pulse .pulse-treasury .table-wrap { margin:0; max-width:100%; }
body.miki-pulse .pulse-treasury table { margin:0; font-size:13px; }
body.miki-pulse .pulse-treasury :is(th,td) { padding:14px 16px; white-space:nowrap; overflow-wrap:normal; }
body.miki-pulse .pulse-treasury td:last-child { white-space:normal; overflow-wrap:anywhere; min-width:220px; max-width:420px; }
body.miki-pulse .admin-screen--treasury .pulse-treasury td:last-child { min-width:170px; }
body.miki-pulse .pulse-treasury-queue td:nth-child(4) { white-space:normal; overflow-wrap:anywhere; min-width:160px; }
body.miki-pulse :is(.pulse-treasury-request-author,.pulse-treasury-request-amount) { display:grid; gap:8px; }
body.miki-pulse .pulse-treasury-request-author { min-width:150px; }
body.miki-pulse .pulse-treasury-request-amount b { font-size:15px; font-variant-numeric:tabular-nums; }
body.miki-pulse .pulse-treasury-request-amount span { color:#aab3ca; font-size:12px; }
body.miki-pulse .pulse-treasury .status-badge { text-transform:none; font-size:12px; }
body.miki-pulse .pulse-treasury .status-badge.ok { color:#9be4c5; background:#173128; border-color:#2e6051; }
body.miki-pulse .pulse-treasury .status-badge.bad { color:#ffb3bf; background:#34212d; border-color:#754351; }
body.miki-pulse .pulse-treasury .status-badge.wait { color:#ecd3a0; background:#302b25; border-color:#655637; }
body.miki-pulse .pulse-treasury td:nth-child(3) { font-variant-numeric:tabular-nums; }
body.miki-pulse .pulse-treasury-ticket { display:inline-flex; align-items:center; min-height:44px; color:#c6afff; text-underline-offset:4px; }
body.miki-pulse .pulse-treasury .mini-form { display:grid; gap:10px; min-width:154px; margin:0; }
body.miki-pulse .pulse-treasury .pulse-treasury-review-label { font-size:12px; }
body.miki-pulse .pulse-treasury .button { min-height:44px; font-size:14px; margin:0; }
body.miki-pulse .pulse-treasury-notice { margin:0; padding:16px 18px; border:1px solid #685187; border-left:3px solid var(--accent,#9975ff); border-radius:12px; background:#29213b; color:#e1d5f5; font-size:14px; line-height:1.6; }
@media(max-width:720px) {
  body.miki-pulse .pulse-treasury { gap:18px; }
  body.miki-pulse .pulse-treasury-balance { grid-template-columns:minmax(0,1fr); padding:22px; gap:18px; }
  body.miki-pulse .pulse-treasury-balance strong { font-size:32px; }
  body.miki-pulse .pulse-treasury-pending { border-left:0; border-top:1px solid #4e415f; padding:16px 0 0; }
  body.miki-pulse .pulse-treasury-actions { grid-template-columns:minmax(0,1fr); gap:12px; }
  body.miki-pulse .pulse-treasury-action summary { padding:16px 18px; min-height:62px; }
  body.miki-pulse .pulse-treasury-action>p { margin-left:18px; margin-right:18px; }
  body.miki-pulse .pulse-treasury-action form.form-card { padding:0 18px 18px; }
  body.miki-pulse .pulse-treasury-section { padding:18px; }
  body.miki-pulse .pulse-treasury :is(input:not([type=hidden]),textarea,select) { font-size:16px; }
  body.miki-pulse .pulse-treasury .table-wrap { border:0; background:none; overflow:visible; }
  body.miki-pulse .pulse-treasury table { display:block; min-width:0; width:100%; background:none; }
  body.miki-pulse .pulse-treasury thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  body.miki-pulse .pulse-treasury tbody { display:grid; gap:12px; }
  body.miki-pulse .pulse-treasury tbody tr { display:grid; grid-template-columns:minmax(0,1fr); padding:14px; background:#111624; border:1px solid #31364b; border-radius:12px; }
  body.miki-pulse .pulse-treasury tbody td,
  body.miki-pulse .pulse-treasury-queue td:nth-child(4),
  body.miki-pulse .admin-screen--treasury .pulse-treasury td:last-child { display:grid; grid-template-columns:82px minmax(0,1fr); align-items:baseline; gap:12px; min-width:0; max-width:none; padding:7px 0; border:0; white-space:normal; overflow-wrap:anywhere; }
  body.miki-pulse .pulse-treasury td::before { content:attr(data-label); color:#9fa9c3; font-size:12px; font-weight:400; }
  body.miki-pulse .pulse-treasury .mini-form { min-width:0; }
  body.miki-pulse .pulse-treasury-request-author { min-width:0; }
  body.miki-pulse .pulse-treasury .status-badge { justify-self:start; }
}

/* PULSE member shop: catalogue first; one contextual native checkout. */
body.miki-pulse .pulse-shop { display:grid; gap:28px; min-width:0; }
body.miki-pulse .pulse-shop-wallet { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px; border:1px solid #605080; border-radius:18px; background:linear-gradient(120deg,#2e2444,#191c2c); }
body.miki-pulse .pulse-shop-wallet span,.pulse-shop-kicker { color:#c8b6ec; font-size:11px; letter-spacing:.12em; }
body.miki-pulse .pulse-shop-wallet p { margin:8px 0 0; font-size:14px; color:#c8c2d9; }
body.miki-pulse .pulse-shop-wallet b { color:#e3d2ff; font-size:34px; margin-right:9px; line-height:1.2; }
body.miki-pulse .pulse-shop-wallet-note { display:grid; gap:12px; color:#b9b5cc; font-size:13px; }
body.miki-pulse .pulse-shop-wallet-note a { color:#ccb3ff; text-underline-offset:4px; }
body.miki-pulse .pulse-shop-section-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 16px; }
body.miki-pulse .pulse-shop-section-head h2 { font-size:22px; margin:0; padding:0; border:0; }
body.miki-pulse .pulse-shop-section-head>span { color:#a3abc1; font-size:12px; }
body.miki-pulse .pulse-shop-products { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
body.miki-pulse .pulse-shop-product { display:flex; flex-direction:column; min-width:0; padding:22px; border:1px solid #30364c; border-radius:17px; background:linear-gradient(145deg,#1b1e30,#141823); }
body.miki-pulse .pulse-shop-product-meta { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:20px; }
body.miki-pulse .pulse-shop-product-meta small { color:#a5aec5; font-size:12px; text-align:right; }
body.miki-pulse .pulse-shop-product-icon { display:grid; place-items:center; flex:0 0 38px; height:38px; border:1px solid #594675; border-radius:11px; color:var(--accent,#a579ff); background:#2b233e; }
body.miki-pulse .pulse-shop-product-icon .icon { width:20px; height:20px; }
body.miki-pulse .pulse-shop-product h3 { font-size:18px; line-height:1.35; margin:0 0 10px; overflow-wrap:anywhere; }
body.miki-pulse .pulse-shop-product>p { font-size:13px; line-height:1.65; color:#adb5cb; margin:0 0 22px; }
body.miki-pulse .pulse-shop-product-bottom { display:grid; gap:12px; margin-top:auto; }
body.miki-pulse .pulse-shop-price { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; }
body.miki-pulse .pulse-shop-price b { font-size:27px; line-height:1.2; color:#e5dcfa; }
body.miki-pulse .pulse-shop-price span { color:#b5accd; font-size:12px; }
body.miki-pulse .pulse-shop-availability { font-size:12px; color:#b6adc8; line-height:1.45; }
body.miki-pulse .pulse-shop-product .button { width:100%; min-height:44px; justify-content:center; font-size:13px; margin:0; }
body.miki-pulse :is(.pulse-shop-hint,.pulse-shop-notice) { color:#b8bfd4; font-size:13px; line-height:1.6; margin:0; }
body.miki-pulse .pulse-shop-notice { padding:16px 18px; border:1px solid #665287; border-radius:12px; background:#272138; }
body.miki-pulse .pulse-shop-orders { min-width:0; padding:22px; border:1px solid #30364c; border-radius:17px; background:#141823; scroll-margin-top:100px; }
body.miki-pulse .pulse-shop-orders table { margin:0; }
body.miki-pulse .pulse-shop-order-kind { display:block; font-size:12px; color:#a7afc5; margin-top:6px; }
body.miki-pulse .pulse-shop-checkout { display:grid; gap:18px; padding:22px; border:1px solid #30364c; border-radius:17px; min-width:0; scroll-margin-top:100px; }
body.miki-pulse .pulse-shop-checkout header h2 { font-size:25px; margin:8px 36px 0 0; padding:0; border:0; }
body.miki-pulse .pulse-shop-checkout form { display:grid; gap:16px; margin:0; padding:0; background:none; border:0; box-shadow:none; resize:none; }
body.miki-pulse .pulse-shop-checkout label { display:grid; gap:8px; color:#d0cee0; font-size:13px; min-width:0; }
body.miki-pulse .pulse-shop-checkout :is(select,input) { width:100%; min-width:0; min-height:44px; font:inherit; }
body.miki-pulse .pulse-shop-checkout .member-lookup { display:grid; gap:8px; min-width:0; }
body.miki-pulse .pulse-shop-checkout small { color:#a8b0c8; font-size:12px; line-height:1.5; }
body.miki-pulse .pulse-shop-checkout :is(.pulse-shop-checkout-note,.pulse-shop-checkout-state) { margin:0; color:#b4bbd0; font-size:13px; line-height:1.55; }
body.miki-pulse .pulse-shop-checkout .pulse-shop-total { margin:0; padding-top:16px; border-top:1px solid #34374d; color:#e2d3fc; font-size:16px; font-weight:600; }
body.miki-pulse .pulse-shop-checkout .button { min-height:44px; width:100%; margin:0; font-size:14px; }
body.miki-pulse .pulse-shop-dialog { box-sizing:border-box; width:min(520px,calc(100vw - 28px)); max-width:none; max-height:calc(100dvh - 28px); padding:24px; overflow:auto; border:1px solid #655681; border-radius:18px; background:linear-gradient(150deg,#202238,#121620); }
body.miki-pulse .pulse-shop-dialog .pulse-shop-checkout { padding:0; border:0; border-radius:0; }
body.miki-pulse .pulse-shop-close { position:absolute; top:12px; right:12px; width:44px; height:44px; padding:0; color:#d7cee8; background:#24253a; border:1px solid #454056; border-radius:10px; font-size:25px; }
body.miki-pulse .pulse-shop-mode { display:flex; gap:4px; padding:4px; background:#0e121d; border:1px solid #30364c; border-radius:12px; }
body.miki-pulse .pulse-shop-mode button { flex:1; min-width:0; min-height:44px; font-size:14px; color:#bac1d8; background:transparent; border:1px solid transparent; border-radius:9px; }
body.miki-pulse .pulse-shop-mode button[aria-pressed=true] { background:#34264f; border-color:#68518e; color:#e8dbff; }
body.miki-pulse .pulse-shop-checkout.is-enhanced .pulse-shop-fallback-title { display:none; }
body.miki-pulse .pulse-shop [hidden] { display:none !important; }
@media(max-width:1100px) { body.miki-pulse .pulse-shop-products { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) {
  body.miki-pulse .pulse-shop { gap:22px; }
  body.miki-pulse .pulse-shop-wallet { align-items:flex-start; flex-direction:column; gap:16px; padding:20px; }
  body.miki-pulse .pulse-shop-wallet-note { font-size:12px; }
  body.miki-pulse .pulse-shop-products { grid-template-columns:minmax(0,1fr); gap:12px; }
  body.miki-pulse .pulse-shop-product { padding:20px; }
  body.miki-pulse .pulse-shop-orders { padding:16px; }
  body.miki-pulse .pulse-shop-dialog { padding:20px; }
  body.miki-pulse .pulse-shop-checkout :is(input,select) { font-size:16px; }
}

/* Member accounting: keep the real workflows, remove the legacy scroller. */
body.miki-pulse .accounting-workspace .accounting-heading {
  align-items: center !important;
  gap: 20px !important;
}
body.miki-pulse .accounting-workspace .accounting-format-hint {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 232px;
  padding: 10px 13px;
  border: 1px solid rgba(168, 137, 255, .32);
  border-radius: 11px;
  background: linear-gradient(125deg, rgba(126, 89, 214, .15), rgba(126, 89, 214, .035));
}
body.miki-pulse .accounting-workspace .accounting-format-hint span {
  color: #b7a3ed;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.miki-pulse .accounting-workspace .accounting-format-hint code {
  color: #f0eaff !important;
  font-size: 12px !important;
  font-weight: 650;
  white-space: nowrap !important;
}
body.miki-pulse .accounting-workspace .accounting-nav {
  display: grid !important;
  grid-template-columns: minmax(230px, 288px) minmax(0, 1fr) !important;
  align-items: end !important;
  gap: 16px !important;
}
body.miki-pulse .accounting-workspace .accounting-section-picker {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 7px !important;
  min-width: 0 !important;
}
body.miki-pulse .accounting-workspace .accounting-section-picker label {
  min-width: 0 !important;
}
body.miki-pulse .accounting-workspace .accounting-section-picker select {
  width: 100% !important;
  min-width: 0 !important;
}
body.miki-pulse .accounting-workspace .accounting-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  overflow: visible !important;
  padding: 0 !important;
}
body.miki-pulse .accounting-workspace .accounting-tabs a {
  min-height: 35px !important;
  padding: 7px 10px !important;
  border: 1px solid rgba(165, 180, 211, .18) !important;
  border-radius: 9px !important;
  background: rgba(25, 29, 45, .68) !important;
  color: #bfc5d9 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
}
body.miki-pulse .accounting-workspace .accounting-tabs a:hover {
  border-color: rgba(180, 149, 255, .48) !important;
  color: #fff !important;
}
body.miki-pulse .accounting-workspace .accounting-tabs a.active {
  border-color: rgba(181, 148, 255, .66) !important;
  background: rgba(130, 88, 218, .24) !important;
  color: #f3ebff !important;
}
body.miki-pulse .accounting-workspace .accounting-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 13px !important;
  padding: 16px !important;
}
body.miki-pulse .accounting-workspace .accounting-filters {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: end !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: none !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) {
  display: grid !important;
  grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  align-items: end !important;
}
body.miki-pulse .accounting-workspace .accounting-filters > input[name="accounting_q"] {
  flex: 2 1 230px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters > select[name="accounting_status"] {
  flex: 1 1 155px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > input[name="accounting_q"] {
  grid-area: 1 / 1 / 2 / span 4 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > select[name="accounting_status"] {
  grid-area: 1 / 5 / 2 / span 2 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-date:first-of-type {
  grid-area: 1 / 7 / 2 / span 2 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-date:nth-of-type(2) {
  grid-area: 1 / 9 / 2 / span 2 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-page-size {
  grid-area: 1 / 11 / 2 / span 2 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-switch:nth-of-type(3) {
  grid-area: 2 / 1 / 3 / span 3 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-switch:nth-of-type(4) {
  grid-area: 2 / 4 / 3 / span 3 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > button {
  grid-area: 2 / 10 / 3 / span 3 !important;
}
body.miki-pulse .accounting-workspace .accounting-date,
body.miki-pulse .accounting-workspace .accounting-page-size {
  min-width: 0 !important;
}
body.miki-pulse .accounting-workspace .accounting-date input,
body.miki-pulse .accounting-workspace .accounting-page-size select {
  width: 100% !important;
  min-width: 0 !important;
}
body.miki-pulse .accounting-workspace .accounting-filters > .accounting-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 9px 11px !important;
  border: 1px solid rgba(165, 180, 211, .22) !important;
  border-radius: 9px !important;
  background: rgba(20, 25, 39, .7) !important;
}
body.miki-pulse .accounting-workspace .accounting-filters > .accounting-switch input {
  flex: 0 0 auto;
  accent-color: #a77dff;
}
body.miki-pulse .accounting-workspace .accounting-filters > button,
body.miki-pulse .accounting-workspace .accounting-toolbar-actions button,
body.miki-pulse .accounting-workspace .accounting-bulk button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(180, 149, 255, .5) !important;
  border-radius: 9px !important;
  background: rgba(121, 87, 203, .15) !important;
  color: #e9dfff !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer !important;
}
body.miki-pulse .accounting-workspace .accounting-toolbar-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  padding-top: 12px !important;
  border-top: 1px solid rgba(164, 148, 212, .18) !important;
}
body.miki-pulse .accounting-workspace .accounting-toolbar-actions > form {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}
body.miki-pulse .accounting-workspace .accounting-toolbar-actions > [data-accounting-open-add] {
  border-color: #b79bfa !important;
  background: linear-gradient(125deg, #c7afff, #895de9) !important;
  color: #171124 !important;
  box-shadow: 0 8px 22px rgba(116, 73, 211, .18) !important;
}
body.miki-pulse .accounting-workspace .accounting-toolbar-actions button:disabled {
  border-color: rgba(151, 151, 179, .2) !important;
  background: #25283a !important;
  color: #a2a5ba !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}
body.miki-pulse .accounting-workspace .accounting-filters > button:focus-visible,
body.miki-pulse .accounting-workspace .accounting-toolbar-actions button:focus-visible,
body.miki-pulse .accounting-workspace .accounting-bulk button:focus-visible {
  outline: 2px solid #e8d9ff !important;
  outline-offset: 3px !important;
}
@media (max-width: 1100px) {
  body.miki-pulse .accounting-workspace .accounting-nav {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.miki-pulse .accounting-workspace .accounting-tabs {
    order: 0 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > input[name="accounting_q"] {
    grid-area: 1 / 1 / 2 / span 3 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > select[name="accounting_status"] {
    grid-area: 1 / 4 / 2 / span 3 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-date:first-of-type {
    grid-area: 2 / 1 / 3 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-date:nth-of-type(2) {
    grid-area: 2 / 3 / 3 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-page-size {
    grid-area: 2 / 5 / 3 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-switch:nth-of-type(3) {
    grid-area: 3 / 1 / 4 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-switch:nth-of-type(4) {
    grid-area: 3 / 3 / 4 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > button {
    grid-area: 3 / 5 / 4 / span 2 !important;
  }
}
@media (max-width: 720px) {
  body.miki-pulse .accounting-workspace .accounting-heading {
    align-items: stretch !important;
    gap: 13px !important;
  }
  body.miki-pulse .accounting-workspace .accounting-format-hint {
    min-width: 0;
    width: 100%;
  }
  body.miki-pulse .accounting-workspace .accounting-tabs {
    display: none !important;
  }
  body.miki-pulse .accounting-workspace .accounting-section-picker {
    width: 100%;
  }
  body.miki-pulse .accounting-workspace .accounting-toolbar {
    padding: 12px !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > input[name="accounting_q"] {
    grid-area: 1 / 1 / 2 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > select[name="accounting_status"] {
    grid-area: 2 / 1 / 3 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-date:first-of-type {
    grid-area: 3 / 1 / 4 / span 1 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-date:nth-of-type(2) {
    grid-area: 3 / 2 / 4 / span 1 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-switch:nth-of-type(3) {
    grid-area: 4 / 1 / 5 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-switch:nth-of-type(4) {
    grid-area: 5 / 1 / 6 / span 2 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > .accounting-page-size {
    grid-area: 6 / 1 / 7 / span 1 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-filters:has(> .accounting-date) > button {
    grid-area: 6 / 2 / 7 / span 1 !important;
  }
  body.miki-pulse .accounting-workspace .accounting-toolbar-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.miki-pulse .accounting-workspace .accounting-toolbar-actions > form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.miki-pulse .accounting-workspace .accounting-toolbar-actions button {
    width: 100% !important;
  }
}

/* Shop and treasury actions were inheriting transparent, borderless buttons. */
body.miki-pulse .command-center-shell[data-tab="economy"] main form button,
body.miki-pulse .command-center-shell[data-tab="treasury"] main form.form-card button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  border: 1px solid #b79bfa !important;
  border-radius: 10px !important;
  background: linear-gradient(125deg, #c7afff, #895de9) !important;
  color: #171124 !important;
  box-shadow: 0 8px 22px rgba(116, 73, 211, .18) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer !important;
}
body.miki-pulse .command-center-shell[data-tab="economy"] main form button:hover:not(:disabled),
body.miki-pulse .command-center-shell[data-tab="treasury"] main form.form-card button:hover:not(:disabled) {
  filter: brightness(1.08);
}
body.miki-pulse .command-center-shell[data-tab="economy"] main form button:focus-visible,
body.miki-pulse .command-center-shell[data-tab="treasury"] main form.form-card button:focus-visible {
  outline: 2px solid #e8d9ff !important;
  outline-offset: 3px !important;
}
body.miki-pulse .command-center-shell[data-tab="economy"] main form button.secondary {
  border-color: rgba(183, 155, 250, .55) !important;
  background: rgba(133, 91, 222, .14) !important;
  color: #e8deff !important;
  box-shadow: none !important;
}
body.miki-pulse .command-center-shell[data-tab="economy"] main form button:disabled,
body.miki-pulse .command-center-shell[data-tab="treasury"] main form.form-card button:disabled {
  border-color: rgba(151, 151, 179, .2) !important;
  background: #25283a !important;
  color: #a2a5ba !important;
  box-shadow: none !important;
  filter: none !important;
  cursor: not-allowed !important;
}
body.miki-pulse .command-center-shell[data-tab="economy"] main form button[aria-busy="true"],
body.miki-pulse .command-center-shell[data-tab="economy"] main form[aria-busy="true"] button,
body.miki-pulse .command-center-shell[data-tab="treasury"] main form.form-card button[aria-busy="true"],
body.miki-pulse .command-center-shell[data-tab="treasury"] main form.form-card[aria-busy="true"] button {
  border-color: #9581d1 !important;
  background: #544482 !important;
  color: #f3edff !important;
  box-shadow: none !important;
  cursor: progress !important;
}

/* One missing primary action in the otherwise finished member idea form. */
body.miki-pulse .command-center-shell[data-tab="ideas"] main form[action="/ideas/add"] > button {
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 10px 16px !important;
  border: 1px solid #b79bfa !important;
  border-radius: 10px !important;
  background: linear-gradient(125deg, #c7afff, #895de9) !important;
  color: #171124 !important;
  box-shadow: 0 8px 22px rgba(116, 73, 211, .18) !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  cursor: pointer !important;
}
body.miki-pulse .command-center-shell[data-tab="ideas"] main form[action="/ideas/add"] > button:hover:not(:disabled) {
  filter: brightness(1.08);
}
body.miki-pulse .command-center-shell[data-tab="ideas"] main form[action="/ideas/add"] > button:focus-visible {
  outline: 2px solid #e8d9ff !important;
  outline-offset: 3px !important;
}
body.miki-pulse .command-center-shell[data-tab="ideas"] main form[action="/ideas/add"] > button:disabled {
  border-color: #44485b !important;
  background: #292c3c !important;
  color: #a2a5b9 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* Keep game economy unchanged; share the PULSE surfaces and hierarchy. */
body.miki-pulse .pulse-screen-fishing :is(.fishing-card,.fishing-rewards) { border: 1px solid #34394f !important; background: #171b2b !important; border-radius: 16px !important; padding: 20px !important; }
body.miki-pulse .pulse-screen-fishing .fishing-actions > button { display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; gap: 6px !important; min-width: 0 !important; min-height: 72px !important; padding: 12px !important; font-size: 13px !important; line-height: 1.4 !important; }
body.miki-pulse .pulse-screen-fishing .fishing-actions small { color: inherit !important; font-size: 11px !important; }
body.miki-pulse .pulse-screen-fishing .fishing-control-panel { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
body.miki-pulse .pulse-screen-fishing .fishing-control-panel > div { grid-column: 1/-1 !important; }
body.miki-pulse .pulse-screen-fishing main button:disabled { opacity: 1 !important; background: #25293c !important; color: #9fa6bf !important; border-color: #383d54 !important; box-shadow: none !important; cursor: not-allowed !important; }
@media (min-width: 761px) and (max-width: 1500px) {
  body.miki-pulse .pulse-screen-fishing .fishing-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.miki-pulse .pulse-screen-fishing .fishing-card-wide { grid-column: 1/-1 !important; }
}
body.miki-pulse :is(.pulse-screen-wheel .wheel-hero,.pulse-screen-roulette .roulette-casino-hero) {
  padding: 24px !important; border: 1px solid #443955 !important; border-radius: 18px !important;
  background: linear-gradient(120deg,#252037,#151827) !important; box-shadow: none !important;
}
body.miki-pulse .pulse-screen-wheel .wheel-hero::after { display: none !important; }
body.miki-pulse :is(.pulse-screen-wheel .wheel-hero,.pulse-screen-roulette .roulette-casino-hero) .kicker { color: #b69aef !important; font-size: 10px !important; letter-spacing: .12em !important; }
body.miki-pulse :is(.pulse-screen-wheel .wheel-hero,.pulse-screen-roulette .roulette-casino-hero) h2 { font-size: clamp(24px,2.5vw,34px) !important; line-height: 1.15 !important; }
body.miki-pulse :is(.pulse-screen-wheel .wheel-hero,.pulse-screen-roulette .roulette-casino-hero) p { color: #b4b8cf !important; line-height: 1.6 !important; }
body.miki-pulse .pulse-screen-wheel .wheel-hero img { width: 96px !important; height: 110px !important; object-fit: contain !important; }
body.miki-pulse .pulse-screen-wheel .wheel-next { background: #171b2b !important; border-color: #35394f !important; border-radius: 12px !important; box-shadow: none !important; gap: 8px !important; }
body.miki-pulse .pulse-screen-wheel .wheel-next b { font: 750 24px/1.3 var(--font-body,Inter,"Segoe UI",sans-serif) !important; }
body.miki-pulse .pulse-screen-wheel .wheel-next span { font-size: 10px !important; color: #a9aec8 !important; }
body.miki-pulse .pulse-screen-wheel .wheel-next small { font-size: 12px !important; color: #a9aec8 !important; line-height: 1.5 !important; }
body.miki-pulse .pulse-screen-wheel .wheel-window { background: #111424 !important; border-color: #48405d !important; box-shadow: inset 0 0 24px #0a0b1680 !important; }
body.miki-pulse .pulse-screen-wheel .wheel-tile { background: linear-gradient(155deg,#24283c,#171a2b) !important; border-color: #3d425b !important; box-shadow: none !important; }
body.miki-pulse .pulse-screen-wheel .wheel-tile.result { background: linear-gradient(155deg,#493465,#241c39) !important; border-color: #ac83f5 !important; box-shadow: 0 0 24px #9160e526 !important; }
body.miki-pulse .pulse-screen-wheel .wheel-pointer { border-top-color: #ba98ff !important; border-bottom: 0 !important; }
body.miki-pulse .pulse-screen-wheel .wheel-pointer::after { background: linear-gradient(#ba98ff,transparent) !important; box-shadow: 0 0 18px #a17bfa40 !important; }
body.miki-pulse .pulse-screen-wheel .wheel-reward-card { background: #181c2d !important; border-color: #353a53 !important; box-shadow: none !important; }
body.miki-pulse .pulse-screen-wheel .wheel-reward-card span { color: #ba9af5 !important; }
body.miki-pulse .pulse-screen-roulette :is(.roulette-stage-card,.roulette-board,.roulette-feed) { background: #171b2b !important; border-color: #34394f !important; box-shadow: none !important; border-radius: 16px !important; }
body.miki-pulse .pulse-screen-roulette .roulette-stage-card { background: radial-gradient(ellipse at 50% 40%,#35274480,transparent 65%),#171b2b !important; }
body.miki-pulse .pulse-screen-roulette .roulette-balance { background: #211c32 !important; border-color: #6b508d !important; box-shadow: none !important; }
body.miki-pulse .pulse-screen-roulette .roulette-balance b { color: #d6c1ff !important; }
body.miki-pulse .pulse-screen-roulette .roulette-outer-glow { stroke: #a17bfa !important; }
body.miki-pulse .pulse-screen-roulette .roulette-inner-ring { stroke: #c6a8fc !important; }
body.miki-pulse .pulse-screen-roulette .roulette-sector-x2 { fill: #a17bfa; }
body.miki-pulse .pulse-screen-roulette .roulette-sector-x3 { fill: #5276b7; }
body.miki-pulse .pulse-screen-roulette .roulette-sector-x5 { fill: #6ecbc3; }
body.miki-pulse .pulse-screen-roulette .roulette-sector-x10 { fill: #f087a3; }
body.miki-pulse .pulse-screen-roulette .roulette-pointer { border-top-color: #d9c5ff !important; }
body.miki-pulse .pulse-screen-roulette .roulette-hub { border-color: #9171be !important; background: linear-gradient(150deg,#d5bbff,#9870dd) !important; box-shadow: 0 4px 28px #08081580 !important; }
body.miki-pulse .pulse-screen-roulette .roulette-hub :is(b,small) { color: #211330 !important; }
body.miki-pulse .pulse-screen-roulette .roulette-chips { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
body.miki-pulse .pulse-screen-roulette .roulette-chip { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 5px !important; min-width: 0 !important; min-height: 100px !important; padding: 12px !important; border: 1px solid #454d6c !important; border-radius: 12px !important; background: #23273b !important; color: #f1edff !important; box-shadow: none !important; }
body.miki-pulse .pulse-screen-roulette .roulette-chip b { font-size: 24px !important; line-height: 1.1 !important; }
body.miki-pulse .pulse-screen-roulette .roulette-chip :is(span,small) { color: #c3c5d7 !important; font-size: 12px !important; line-height: 1.3 !important; }
body.miki-pulse .pulse-screen-roulette .roulette-chip.active { background: #342849 !important; border-color: #9f77e6 !important; }
body.miki-pulse .pulse-screen-roulette .roulette-chip:disabled { opacity: .7 !important; cursor: not-allowed !important; }
body.miki-pulse .pulse-screen-roulette .roulette-bet-label span { color: #bc9feb !important; }
body.miki-pulse .pulse-screen-roulette .roulette-risk-card { background: #202538 !important; border-color: #38425e !important; }
body.miki-pulse .pulse-screen-roulette .roulette-risk-card b { color: #ded1ff !important; }
body.miki-pulse .pulse-screen-roulette .roulette-risk-card span { color: #bfa7ef !important; }
body.miki-pulse .pulse-screen-roulette .roulette-risk-card i { background: #393e56 !important; }
body.miki-pulse .pulse-screen-roulette .roulette-risk-card i::before { background: linear-gradient(90deg,#a17bfa,#cbb5f8) !important; }
body.miki-pulse .pulse-screen-roulette .roulette-form [role=status] { margin: 0; padding: 10px 12px; color: #c6b0e8; background: #272037; border: 1px solid #584568; border-radius: 9px; font-size: 12px; }
@media (max-width: 640px) {
  body.miki-pulse :is(.pulse-screen-wheel .wheel-hero,.pulse-screen-roulette .roulette-casino-hero) { padding: 18px !important; }
  body.miki-pulse .pulse-screen-wheel .wheel-hero { gap: 16px !important; }
  body.miki-pulse .pulse-screen-wheel .wheel-hero img { width: 64px !important; height: 78px !important; }
  body.miki-pulse .pulse-screen-wheel .wheel-next b { font-size: 22px !important; }
  body.miki-pulse .pulse-screen-roulette .roulette-stage-card { min-height: 260px !important; }
}
