/* Riwayat only: compact account workspace, shared OCL identity. */
body.history-view {
  --history-text: var(--ui-ink);
  --history-muted: var(--ui-muted);
  --history-border: var(--ui-line);
  background: var(--ui-canvas) !important;
  color: var(--history-text);
  font-family: "Inter", Arial, sans-serif;
}
body.history-view::before, body.history-view::after { display: none !important; }
body.history-view [hidden] { display: none !important; }
body.history-view .registration-header {
  position: relative !important;
  inset: auto !important;
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: space-between;
  min-height: 78px !important;
  padding: 14px max(24px, calc((100vw - 1100px) / 2)) !important;
  gap: 18px !important;
  background: #fff !important;
  border-bottom: 1px solid #e8e9ed !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body.history-view .registration-brand { order: -1 !important; flex: none; }
body.history-view .registration-logo-frame { width: 118px !important; height: 44px !important; flex: 0 0 118px !important; }
body.history-view .registration-logo { width: 180px !important; height: 180px !important; }
body.history-view .registration-back {
  width: auto !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  gap: 8px;
  border: 0 !important;
  border-radius:var(--ui-radius-control);
  background: transparent !important;
  color: #59616d !important;
  font-size:14px;
  font-weight: 600;
  box-shadow: none !important;
  transform: none !important;
}
body.history-view .registration-back span { display: inline !important; }
body.history-view .registration-back svg { width: 18px; height: 18px; }
body.history-view .history-page {
  width: 100%;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 40px 24px 44px !important;
  background: transparent !important;
  min-height: calc(100dvh - 78px) !important;
}
body.history-view .history-hero { max-width: 720px !important; margin-bottom: 28px !important; }
body.history-view .history-kicker { margin: 0 0 12px !important; font-size:12px !important; font-weight: 700 !important; letter-spacing: .12em !important; color: #bc1320 !important; }
body.history-view .history-kicker span { width: 18px; height: 3px; }
body.history-view .history-hero h1 { font-size: clamp(28px, 3.8vw, 38px) !important; line-height: 1.2 !important; letter-spacing: -.04em !important; }
body.history-view .history-hero > p:last-child { margin: 12px 0 0; max-width: 65ch; font-size: 14px !important; line-height: 1.7 !important; color: var(--ui-muted) !important; }
body.history-view .history-dashboard { padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.history-view .history-account-bar { box-shadow:var(--ui-shadow); margin: 0 0 28px; padding: 17px 20px; gap: 20px; border-color: var(--ui-line) !important; border-radius: 14px !important; background: #fff !important; }
body.history-view .history-account-bar > div:first-child { min-width: 0; }
body.history-view .history-account-bar span { margin-bottom: 5px; color: #707784 !important; font-size:12px; letter-spacing: .08em; font-weight: 650; }
body.history-view .history-account-bar strong { font-size:14px; line-height: 1.6; font-weight: 650; }
body.history-view .history-account-actions { flex: none; gap: 10px; }
body.history-view .history-dashboard-heading { align-items: center; flex-direction: row; gap: 16px; padding: 0; border: 0; margin-bottom: 16px; }
body.history-view .history-dashboard-heading h2 { font-size: 20px !important; line-height: 1.3 !important; letter-spacing: -.025em !important; }
body.history-view .history-total-card { display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 0; border: 0 !important; background: transparent !important; }
body.history-view .history-total-card span { margin: 0; color: #737b87 !important; font-size:12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
body.history-view .history-total-card strong { font: inherit; font-size:14px; font-weight: 700; color: #4a525f; }
body.history-view .history-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
body.history-view .history-filters { display: flex; align-items: center; gap: 4px; padding: 4px; background: #eceff3; border-radius: 12px; }
body.history-view .history-filters button { min-height: 44px; min-width: 66px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #667080; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
body.history-view .history-filters button[aria-pressed="true"] { background: white; color: #b71020; border-color: #e3e5ea; box-shadow: 0 2px 4px #24344805; }
body.history-view .history-toolbar { min-height: 0; margin: 14px 0 20px; gap: 0; }
body.history-view .history-inline-message { font-size: 12px; font-weight: 400; line-height: 1.7; color: #6a7381 !important; letter-spacing: 0; text-transform: none; }
body.history-view .history-inline-message:empty { display: none; }
body.history-view .history-inline-message.is-error, body.history-view .history-message.is-error { width: 100%; padding: 13px 15px; border: 1px solid #efd6da; border-radius:var(--ui-radius-control); background: #fff2f4 !important; color: #ac1324 !important; }
body.history-view .history-registration-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
body.history-view .history-registration-card { position: relative; padding: 24px; border: 1px solid var(--ui-line) !important; border-top: 1px solid var(--ui-line) !important; border-radius:var(--ui-radius-card) !important; background: #fff !important; box-shadow:var(--ui-shadow) !important; }
body.history-view .history-card-header { align-items: flex-start; flex-direction: column; gap: 12px; }
body.history-view .history-card-sport { color: #757d89 !important; font-size:12px; line-height: 1.65; letter-spacing: .01em; font-weight: 650; text-transform: none; overflow-wrap: anywhere; }
body.history-view .history-card-status { max-width: 100%; padding: 6px 9px; color: #866015; background: #fff7e6; border-color: #f0e2c4; border-radius: 7px; font-size:12px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
body.history-view .history-card-status[data-status="ACCEPTED"] { background: #edf7f1; color: #246440; border-color: #d4e8db; }
body.history-view .history-card-status[data-status="TEAM_FORMED"] { background: #eff4fa; color: #355778; border-color: #d9e4f0; }
body.history-view .history-card-status[data-status="REJECTED"] { background: #fff1f3; color: #ab2439; border-color: #f1d5db; }
body.history-view .history-card-status:is([data-status="CANCELLED"], [data-status="UNKNOWN"]) { background: #f1f3f5; color: #68717e; border-color: var(--ui-line); }
body.history-view .history-registration-card h3 { margin: 17px 0 20px; color: var(--ui-ink) !important; font-size: 21px; line-height: 1.35; font-weight: 750; letter-spacing: -.025em; }
body.history-view .history-card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0 0 20px; }
body.history-view .history-card-meta > div { padding: 0; border-radius: 0; background: transparent; }
body.history-view .history-card-meta dt { margin-bottom: 5px; color: #7b838e !important; font-size:12px; font-weight: 550; letter-spacing: 0; text-transform: none; line-height: 1.5; }
body.history-view .history-card-meta dd { color: #3d4653 !important; font-size: 12px; font-weight: 550; line-height: 1.7; }
body.history-view .history-next-step { margin: 0 0 16px; padding: 14px 15px; border: 1px solid #e7ebf0; border-radius:var(--ui-radius-control); background: var(--ui-soft); }
body.history-view .history-next-step strong { display: block; margin-bottom: 5px; font-size:12px; line-height: 1.5; font-weight: 650; color: #465260; }
body.history-view .history-next-step p { margin: 0; color: var(--ui-muted); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-line; }
body.history-view .history-payment-note { background: #fffbf4; border-color: #efe5d3; }
body.history-view .history-payment-note strong { color: #806137; }
body.history-view .history-payment-note p { color: #786746; }
body.history-view .history-review-notes { margin: 0 0 16px; padding: 14px 15px; border: 1px solid #f0d6db !important; border-left: 3px solid #b92b43 !important; border-radius:var(--ui-radius-control) !important; background: #fff6f7 !important; }
body.history-view .history-review-notes strong { margin-bottom: 5px; color: #962c40; font-size:12px; font-weight: 650; letter-spacing: 0; text-transform: none; }
body.history-view .history-review-notes p { color: #785560; font-size: 12px; line-height: 1.7; font-weight: 400; }
body.history-view .history-card-details { margin: 0 0 16px; border-block: 1px solid #edf0f4; }
body.history-view .history-card-details summary { min-height: 44px; padding: 13px 0; font-size:12px; line-height: 1.6; font-weight: 550; color: #717c8b; cursor: pointer; }
body.history-view .history-card-details .history-card-meta { padding-top: 8px; margin-bottom: 16px; grid-template-columns: 1fr; gap: 12px; }
body.history-view .history-card-details dd { font-size:12px; font-weight: 400; }
body.history-view :is(.history-primary-button, .history-secondary-button, .history-logout-button, .history-refresh-button, .history-detail-link, .history-edit-link, .history-whatsapp-button) { min-height: 44px; padding: 11px 16px; border-radius:var(--ui-radius-control) !important; font-size: 12px; line-height: 1.6; font-weight: 650 !important; box-shadow: none !important; transform: none !important; }
body.history-view :is(.history-primary-button, .history-edit-link) { background: var(--ui-red) !important; border-color: var(--ui-red) !important; }
body.history-view :is(.history-secondary-button, .history-detail-link) { border: 1px solid #e3d2d6 !important; color: #b91727 !important; background: #fff !important; }
body.history-view :is(.history-logout-button, .history-refresh-button) { width: auto; background: #fff !important; border: 1px solid var(--ui-line) !important; color: #636c7a !important; }
body.history-view .history-card-actions { grid-template-columns: 1fr; margin-top: 0; gap: 10px; }
body.history-view .history-whatsapp-group { margin: 24px 0 0; padding: 19px 20px; gap: 24px; border: 1px solid #dfe8e1 !important; border-radius: 14px !important; background: #f7fbf8 !important; }
body.history-view .history-whatsapp-group span { color: #53735e; font-size:12px; font-weight: 600; letter-spacing: .08em; }
body.history-view .history-whatsapp-group h3 { margin: 5px 0 7px; color: #395845; font-size: 15px; line-height: 1.5; }
body.history-view .history-whatsapp-group p { color: #6b7d72; font-size: 12px; line-height: 1.75; }
body.history-view .history-whatsapp-button { background: #fff !important; color: #356145 !important; border-color: #ccdcd1 !important; }
body.history-view .history-help { margin: 28px 0 0; font-size: 12px; line-height: 1.7; color: #727b88; text-align: center; }
body.history-view .history-help a { display: inline-flex; align-items: center; min-height: 44px; color: #a82230; text-underline-offset: 3px; font-weight: 550; }
body.history-view .history-auth-panel { max-width: 630px !important; padding: 32px !important; gap: 24px !important; border-radius:var(--ui-radius-card) !important; border-color: var(--ui-line) !important; box-shadow: none !important; }
body.history-view .history-auth-icon { width: 50px !important; height: 50px !important; border-radius: 13px !important; }
body.history-view .history-auth-icon svg { width: 25px !important; height: 25px !important; }
body.history-view .history-auth-panel > div > p { font-size:12px !important; letter-spacing: .08em !important; }
body.history-view .history-auth-panel h2 { margin: 7px 0 10px !important; font-size: 25px !important; line-height: 1.3 !important; letter-spacing: -.025em !important; }
body.history-view .history-auth-panel span { font-size:14px !important; line-height: 1.75 !important; }
body.history-view .history-auth-panel .history-inline-message { margin: 0; font-weight: 400; letter-spacing: 0; text-transform: none; }
body.history-view .history-message { padding: 32px 20px; border-radius: 14px !important; border-color: var(--ui-line) !important; box-shadow: none !important; color: #758090; font-size:14px; font-weight: 500; }
body.history-view .history-empty-state { padding: 36px 24px; border: 1px solid var(--ui-line); background: #fff; border-radius:var(--ui-radius-card); }
body.history-view .history-empty-state > div { width: 52px; height: 52px; border-radius: 14px; color: #b82130; background: #fcf0f2; }
body.history-view .history-empty-state svg { width: 27px; height: 27px; }
body.history-view .history-empty-state h3 { color: #3c4552; font-size: 20px; line-height: 1.4; }
body.history-view .history-empty-state p { max-width: 50ch; margin: 12px auto 20px; color: #76808e; font-size:14px; line-height: 1.8; }
body.history-view .history-filter-empty { margin: 0; padding: 26px 20px; border: 1px dashed #d9dfe7; border-radius: 14px; color: #758090; font-size:14px; line-height: 1.8; text-align: center; }
body.history-view :is(a, button, summary):focus-visible { outline: 3px solid #cf17265c; outline-offset: 3px; }
@media (hover: hover) {
  body.history-view :is(.history-primary-button, .history-edit-link):hover { background: var(--ui-red-hover) !important; }
  body.history-view :is(.history-secondary-button, .history-detail-link):hover { background: #fff5f6 !important; }
}
@media (max-width: 760px) {
  body.history-view .history-page { padding: 28px 16px 32px !important; }
  body.history-view .registration-header { min-height: 70px !important; padding: 10px 16px !important; }
  body.history-view .registration-logo-frame { width: 104px !important; height: 40px !important; flex-basis: 104px !important; }
  body.history-view .registration-logo { width: 160px !important; height: 160px !important; }
  body.history-view .history-hero { margin-bottom: 22px !important; }
  body.history-view .history-hero > p:last-child { font-size:14px !important; }
  body.history-view .history-registration-list { grid-template-columns: 1fr; gap: 16px; }
  body.history-view .history-account-bar { padding: 16px; margin-bottom: 26px; flex-direction: column; align-items: stretch; gap: 14px; }
  body.history-view .history-account-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  body.history-view .history-account-bar strong { font-size: 12px; }
  body.history-view .history-registration-card { padding: 20px; border-radius: 16px !important; }
  body.history-view .history-registration-card h3 { font-size: 20px; }
  body.history-view .history-card-meta { gap: 16px; }
  body.history-view .history-card-meta dd, body.history-view .history-next-step p { font-size:14px; }
  body.history-view .history-whatsapp-group { padding: 18px; gap: 15px; align-items: stretch; flex-direction: column; }
  body.history-view .history-auth-panel { padding: 24px 20px !important; gap: 20px !important; }
  body.history-view .history-auth-panel h2 { font-size: 23px !important; }
  body.history-view .history-auth-panel .history-primary-button { width: 100%; }
  body.history-view .history-help { margin-top: 22px; font-size:12px; }
}
@media (max-width: 390px) {
  body.history-view .history-filters { gap: 0; padding: 3px; }
  body.history-view .history-filters button { min-width: 0; padding: 9px 10px; font-size: 12px; }
  body.history-view .history-filter-bar { gap: 8px; }
  body.history-view .history-refresh-button { padding: 9px 10px; font-size:12px; }
  body.history-view .history-registration-card { padding: 18px; }
  body.history-view .history-card-meta { grid-template-columns: 1fr; gap: 13px; }
  body.history-view .history-hero h1 { max-width: 11ch; }
}
@media (prefers-reduced-motion: reduce) {
  body.history-view *, body.history-view *::before, body.history-view *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
