.acct-report { margin: 16px 0; padding: 20px; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(249, 115, 22, 0.06) 70%), #10131b; }
.acct-report[hidden] { display: none; }
.ar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ar-head-copy { min-width: 0; flex: 1 1 260px; }
.ar-kicker { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: #7dd3fc; }
.ar-head h3 { margin: 2px 0 4px; font-size: 1.1rem; }
.ar-head p { margin: 0; font-size: 0.8rem; color: var(--muted, #9ca3af); }
.ar-scan-btn, .ar-btn-primary { border: 0; color: #fff; font-weight: 700; border-radius: 12px; padding: 10px 18px;
  background: linear-gradient(180deg, #38bdf8, #0284c7); box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3); display: inline-flex; align-items: center; gap: 8px; }
.ar-btn-soft { border-radius: 12px; padding: 10px 16px; font-weight: 700; color: #fed7aa; background: rgba(249, 115, 22, 0.14); border: 1px solid rgba(251, 146, 60, 0.45); }
.ar-scan-btn:disabled { opacity: 0.7; }
.ar-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.ar-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin: 18px 0 16px;
  padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.07); }
.ar-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ar-field > span { font-size: 0.74rem; font-weight: 700; color: var(--muted, #9ca3af); }
.ar-field input[type="text"] { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.3); color: inherit; font: inherit; }
.ar-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); }
.ar-seg-btn { flex: 1; border: 0; background: transparent; color: inherit; padding: 7px 10px; border-radius: 8px; font: inherit; font-size: 0.8rem; font-weight: 700; opacity: 0.7; cursor: pointer; white-space: nowrap; }
.ar-seg-btn.is-on { opacity: 1; background: linear-gradient(90deg, #0ea5e9, #f97316); color: #fff; }
.ar-check { flex-direction: row; align-items: center; gap: 8px; align-self: end; }
.ar-check input { width: 18px; height: 18px; accent-color: #0ea5e9; }
.ar-sections, .ar-actions, .ar-hint { grid-column: 1 / -1; }
.ar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-hint { margin: 0; font-size: 0.74rem; color: var(--muted, #9ca3af); }
.ar-preview { display: grid; gap: 14px; }
.ar-block { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.ar-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ar-block-head h4 { margin: 0; font-size: 0.98rem; }
.ar-block-head h4 em { font-style: normal; font-size: 0.74rem; padding: 2px 8px; border-radius: 999px; margin-left: 4px; background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.ar-gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-gchip { display: inline-flex; align-items: center; gap: 3px; font-size: 0.76rem; font-weight: 700; }
.ar-gchip img { width: 18px; height: 18px; object-fit: contain; }
.ar-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ar-tiles.is-compact { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ar-tile { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); min-width: 0; }
.ar-tile img { grid-row: 1 / 3; width: 32px; height: 32px; object-fit: contain; }
.ar-tile span { font-size: 0.72rem; color: var(--muted, #9ca3af); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-tile b { font-size: 1.02rem; }
.ar-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ar-power { display: grid; gap: 10px; }
.ar-power-row { display: grid; grid-template-columns: 32px 64px 1fr auto; align-items: center; gap: 10px; }
.ar-power-row img { width: 32px; height: 32px; object-fit: contain; }
.ar-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ar-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #fb923c); }
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.ar-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; min-width: 0; transition: opacity 0.2s; }
.ar-item-art { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); }
.ar-item.is-L .ar-item-art { background: linear-gradient(135deg, rgba(244, 114, 182, 0.28), rgba(129, 140, 248, 0.2)); }
.ar-item.is-SS .ar-item-art { background: linear-gradient(135deg, rgba(251, 113, 133, 0.28), rgba(244, 63, 94, 0.18)); }
.ar-item.is-S .ar-item-art { background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(245, 158, 11, 0.16)); }
.ar-item.is-A .ar-item-art { background: linear-gradient(135deg, rgba(167, 139, 250, 0.28), rgba(124, 58, 237, 0.16)); }
.ar-item.is-B .ar-item-art { background: linear-gradient(135deg, rgba(96, 165, 250, 0.26), rgba(37, 99, 235, 0.16)); }
.ar-item.is-C .ar-item-art { background: linear-gradient(135deg, rgba(156, 163, 175, 0.22), rgba(75, 85, 99, 0.16)); }
.ar-item-art > img:first-child { width: 80%; height: 80%; object-fit: contain; }
.ar-item-badge { position: absolute; top: -5px; left: -5px; width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8)); }
.ar-lv { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 8px; font-style: normal; font-size: 0.66rem; font-weight: 800; background: rgba(0, 0, 0, 0.72); color: #fde68a; }
.ar-item-name { width: 100%; font-size: 0.68rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-item.is-off { opacity: 0.28; }
.ar-item.is-off .ar-item-art::after { content: "ซ่อน"; position: absolute; inset: auto 0 40% 0; text-align: center; font-size: 0.7rem; font-weight: 800; }
.ar-modal { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(6px); }
.ar-modal-sheet { width: min(920px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; border-radius: 20px; background: #10131b; border: 1px solid rgba(255, 255, 255, 0.12); overflow: hidden; }
.ar-modal-head, .ar-modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; }
.ar-modal-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: transparent; color: inherit; font-size: 1.3rem; cursor: pointer; }
.ar-modal-body { flex: 1; overflow: auto; padding: 0 16px; }
.ar-modal-img { display: block; width: 100%; height: auto; border-radius: 12px; }
.ar-modal-meta { font-size: 0.78rem; color: var(--muted, #9ca3af); }
@media (max-width: 520px) {
  .acct-report { padding: 14px; }
  .ar-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .ar-power-row { grid-template-columns: 28px 52px 1fr auto; }
}
.acct-report .ar-scan-btn, .acct-report .ar-btn-primary, .ar-modal .ar-btn-primary {
  background: linear-gradient(180deg, #38bdf8, #0284c7) !important; color: #fff !important; border: 0 !important;
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3) !important; }
.acct-report .ar-btn-soft { background: rgba(249, 115, 22, 0.16) !important; color: #fed7aa !important; border: 1px solid rgba(251, 146, 60, 0.5) !important; box-shadow: none !important; }
.ar-empty { margin: 14px 0 0; font-size: 0.84rem; color: var(--muted, #9ca3af); }
.ar-loading { margin-top: 16px; display: grid; gap: 12px; }
.ar-loading-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ar-loading-bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #fb923c); animation: ar-slide 1.2s ease-in-out infinite; }
@keyframes ar-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.ar-loading-text { margin: 0; font-size: 0.8rem; color: #7dd3fc; }
.ar-skel-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ar-skel-tile { height: 58px; }
.ar-skel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 10px; }
.ar-skel-item { height: auto; aspect-ratio: 1; }
.ar-scan-btn .at-spin { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@media (prefers-reduced-motion: reduce) { .ar-loading-bar i { animation: none; width: 100%; } }
body.ar-sheet-open { overflow: hidden; }
.ar-sheet { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; padding: 16px; background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(6px); }
.ar-sheet-panel { width: min(1240px, 100%); height: min(860px, calc(100vh - 32px)); display: grid; grid-template-rows: auto 1fr auto; border-radius: 20px; overflow: hidden;
  background: #10131b; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.ar-sheet-head, .ar-sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ar-sheet-foot { border-bottom: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); justify-content: flex-end; flex-wrap: wrap; }
.ar-sheet-head strong { display: block; font-size: 1rem; }
.ar-sheet-head span { font-size: 0.74rem; color: var(--muted, #9ca3af); }
.ar-sheet-body { display: grid; grid-template-columns: 380px 1fr; min-height: 0; }
.ar-settings { overflow-y: auto; padding: 16px 18px 24px; border-right: 1px solid rgba(255, 255, 255, 0.08); display: grid; align-content: start; gap: 16px; }
.ar-group { display: grid; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ar-group h4 { margin: 0; font-size: 0.82rem; letter-spacing: 0.02em; color: #7dd3fc; }
.ar-settings .ar-field input[type="text"] { width: 100%; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.3); color: inherit; font: inherit; font-size: 0.86rem; }
.ar-settings .ar-seg { display: flex; width: 100%; }
.ar-switches { display: grid; gap: 8px; }
.ar-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.82rem; }
.ar-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ar-switch i { flex: 0 0 auto; width: 36px; height: 20px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); position: relative; transition: background 0.2s; }
.ar-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.ar-switch input:checked + i { background: linear-gradient(90deg, #0ea5e9, #f97316); }
.ar-switch input:checked + i::after { transform: translateX(16px); }
.ar-switch input:focus-visible + i { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.ar-themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ar-theme { display: grid; gap: 4px; justify-items: center; padding: 6px 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: transparent; color: inherit; font: inherit; font-size: 0.7rem; cursor: pointer; }
.ar-theme i { width: 100%; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.15); }
.ar-theme.is-on { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35); }
.ar-pick { border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07); }
.ar-pick summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; font-size: 0.82rem; font-weight: 600; list-style: none; }
.ar-pick summary::-webkit-details-marker { display: none; }
.ar-pick summary em { font-style: normal; color: var(--muted, #9ca3af); font-weight: 400; }
.ar-pick-acts { margin-left: auto; display: flex; gap: 4px; }
.ar-pick-acts button { border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: inherit; font: inherit; font-size: 0.68rem; padding: 3px 8px; border-radius: 8px; cursor: pointer; }
.ar-pick .ar-grid { padding: 0 12px 12px; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.ar-lock { margin: 0; font-size: 0.74rem; color: var(--muted, #9ca3af); }
.ar-preview-pane { display: grid; grid-template-rows: 1fr auto; min-height: 0; padding: 16px; gap: 8px; background: repeating-conic-gradient(rgba(255,255,255,0.025) 0% 25%, transparent 0% 50%) 50% / 24px 24px; }
.ar-preview-frame { position: relative; min-height: 0; overflow: auto; display: grid; place-items: start center; border-radius: 12px; }
.ar-preview-frame img { display: block; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); }
.ar-preview-busy { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 0.74rem; background: rgba(0, 0, 0, 0.72); color: #e2e8f0; }
.ar-preview-busy[hidden] { display: none; }
.ar-preview-err { color: #fda4af; }
.ar-preview-meta { margin: 0; text-align: center; font-size: 0.74rem; color: var(--muted, #9ca3af); }
@media (max-width: 900px) {
  .ar-sheet { padding: 0; }
  .ar-sheet-panel { height: 100vh; height: 100dvh; border-radius: 0; }
  .ar-sheet-body { grid-template-columns: 1fr; grid-template-rows: 42vh 1fr; }
  .ar-preview-pane { order: -1; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .ar-settings { border-right: 0; }
  .ar-sheet-foot .btn { flex: 1 1 auto; }
}
.ar-sheet .ar-btn-primary { background: linear-gradient(180deg, #38bdf8, #0284c7) !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 18px rgba(14, 165, 233, 0.3) !important; }
.ar-sheet .ar-btn-primary:disabled { opacity: 0.55; }
.ar-sheet .ar-btn-soft { background: rgba(249, 115, 22, 0.16) !important; color: #fed7aa !important; border: 1px solid rgba(251, 146, 60, 0.5) !important; box-shadow: none !important; }
