@font-face {
  font-family: "Open Sans";
  src: url("/fonts/open-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("/fonts/noto-naskh-arabic.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}
:root {
  font-family: "Open Sans", "Noto Naskh Arabic", Arial, sans-serif;
  color: #333;
  background: #f0f2f5;
  --indigo: #3d3d5f;
  --blue: #1473e6;
  --green: #2bc784;
  --muted: #60636d;
  --line: #dcdde4;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.52; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, p { margin-block: 0 .5rem; }
h1 { font-size: 1.1rem; }
h3 { font-size: .96rem; overflow-wrap: anywhere; }
svg { display: block; width: 22px; height: 22px; flex: none; }
.wrap { width: min(100% - 2rem, 60rem); margin-inline: auto; }
.row, .top-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.topbar { background: var(--indigo); color: white; }
.top-row { min-height: 61px; }
.top-title { display: flex; align-items: center; gap: .58rem; font-size: 1rem; font-weight: 700; }
.top-title svg:last-child:not(:first-child) { width: 15px; height: 15px; }
.wallet-link { min-width: 44px; min-height: 44px; display: grid; place-items: center; color: white; }
.topbar .top-row { direction: ltr; min-height: 52px; padding-inline-end: 7px; }
.topbar button.top-title { background: transparent; padding-inline: 0; gap: 5px; font-size: .9rem; font-weight: 600; }
body:has(#main-menu[open]) .top-title svg:last-child { transform: rotate(180deg); }
.stats { padding-block-start: 27px; border-block-end: 1px solid var(--line); }
.stat-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-block-end: 6px;
}
.stat-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; align-content: start; gap: 15px; }
.stat-carousel.expanded { display: grid; gap: 15px; }
.stat-card {
  display: grid;
  grid-template-columns: clamp(64px, 25%, 100px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 6%, 24px);
  padding: 18px clamp(16px, 6%, 24px);
  min-height: 119px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 2px 4px #0000000d;
}
.stat-art svg { width: min(100%, 76px); height: auto; margin: auto; }
.stat-info h2 { display: flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; margin: 0; }
.stat-info h2 svg { width: 17px; height: 17px; }
.stat-line { margin-block: 13px 16px; height: 1px; background: #e0e0e5; }
.stat-line::before { content: ""; display: block; width: 37px; height: 3px; background: #7c7eb9; }
.stat-people .stat-line::before { background: #67a9dc; }
.stat-balance .stat-line::before { background: #45af91; }
.stat-issued .stat-line::before { background: #d7a33e; }
.stat-number { display: inline-block; font-size: 1.23rem; line-height: 1.1; overflow-wrap: anywhere; }
.stat-number span { font-size: .8rem; white-space: nowrap; }
.stat-controls { min-height: 44px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.stat-dots { grid-column: 2; grid-row: 1; display: flex; gap: .05rem; }
.stat-dots button { display: grid; place-items: center; width: 28px; min-height: 44px; padding: 0; background: none; }
.stat-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c8c9d2; }
.stat-dots button[aria-current="true"]::before { background: #878991; }
.stat-toggle { grid-column: 3; grid-row: 1; justify-self: end; background: none; color: var(--blue); padding-inline: .3rem; }
.controls { padding-block: 13px 14px; }
.filter-pill {
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 106px;
  min-height: 42px;
  padding-inline: 1rem;
  border-radius: 99px;
  color: #153a2c;
  background: var(--green);
  font-weight: 700;
}
.filter-pill[aria-disabled] { background: #dceae4; color: #4b645a; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; align-items: center; min-height: 45px; margin-block-start: 5px; }
.tabs a { white-space: nowrap; color: inherit; border-radius: 99px; padding: .35rem .85rem; font-weight: 600; }
.tabs a[aria-current="page"] { background: var(--blue); color: white; }
.section { background: white; padding-block-end: calc(85px + env(safe-area-inset-bottom)); }
.section-title { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 66px; }
.section-title h1 { margin: 0; }
.section-title::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0; width: 38px; height: 3px; background: var(--blue); }
.section-icons { display: flex; align-items: center; gap: .9rem; }
.section-icons svg:last-child { color: var(--blue); }
.section-body { border-block-start: 1px solid var(--line); padding-block: 16px 10px; }
.bottom-nav {
  position: fixed;
  z-index: 2;
  inset: auto 0 0;
  padding-block-end: env(safe-area-inset-bottom);
  background: white;
  border-block-start: 1px solid #cdced5;
}
.bottom-nav .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(100%, 60rem); }
.bottom-nav a, .bottom-nav .disabled-link {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  min-height: 56px;
  padding-inline: 2px;
  color: #22252d;
  font-size: .71rem;
  line-height: 1.2;
  text-align: center;
}
.bottom-nav svg { width: 23px; height: 23px; }
.bottom-nav a:nth-child(3) svg, .bottom-nav .disabled-link:nth-child(3) svg { width: 25px; height: 25px; }
.bottom-nav a[aria-current="page"] { color: var(--blue); }
.bottom-nav .disabled-link { color: #777985; }
.card, .inner-card, .child { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: .85rem; }
.inner-card, .child { margin-block-end: .65rem; }
.inner-card { scroll-margin-block-start: .5rem; }
.login { min-height: 100svh; padding: 0 10px 2rem; background: #192b4a; }
.login-card { width: min(100%, 26rem); margin-inline: auto; padding: 30px 20px; border-radius: 20px; box-shadow: 0 2px 4px #0000001a; }
.login-card h1 { margin-block-end: 28px; font-size: 1.25rem; font-weight: 600; text-align: center; color: #42484e; }
.login-mark { height: 115px; display: flex; align-items: center; justify-content: center; gap: .65rem; color: white; font-size: 1.3rem; font-weight: 700; }
.login-mark svg { width: 37px; height: 37px; color: #ffda73; }
.login-welcome { color: white; width: min(100%, 20rem); margin: 26px auto 0; text-align: center; }
.login-welcome h2 { font-size: 1.9rem; }
.login-welcome p { font-size: 1.1rem; }
.login-card form { gap: 30px; }
.login-field { position: relative; }
.login-field svg { position: absolute; inset-inline-start: 14px; inset-block-start: 13px; color: #414448; pointer-events: none; }
.login-field input:not([type=hidden]) { min-height: 48px; padding-right: 42px; text-align: right; border-color: #c9c9c9; border-radius: 6px; background: white; }
.login-card button { min-height: 48px; border-radius: 42px; background: #103f80; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted, time { color: var(--muted); }
form { display: grid; gap: .65rem; }
label { display: grid; gap: .2rem; font-size: .9rem; font-weight: 600; }
input:not([type=hidden]), select, button { font: inherit; font-size: 1rem; min-height: 44px; border-radius: .6rem; padding: .45rem .7rem; }
input:not([type=hidden]), select { border: 1px solid #a5a7b5; background: #fcfcfe; width: 100%; min-width: 0; }
button { color: white; background: var(--blue); border: 1px solid transparent; cursor: pointer; font-weight: 700; }
button.secondary { background: #eef2fa; color: var(--indigo); border-color: #d5d9e8; }
:focus-visible { outline: 3px solid #115fb4; outline-offset: 2px; }
.topbar :focus-visible { outline-color: white; }
.notice { border: 1px solid #b4d7c1; background: #e0f3e7; padding: .7rem; border-radius: .6rem; }
.notice.error { border-color: #edc4bd; background: #fce9e5; color: #79291e; }
.child-meta { display: grid; justify-items: end; text-align: end; overflow-wrap: anywhere; }
.badge { background: #e0f3e7; color: #1a5c38; border-radius: 2rem; padding: .08rem .5rem; font-size: .79rem; }
.badge.blocked { background: #fce9e5; color: #79291e; }
.inner-card, .child { padding-block: .4rem; }
.inner-card[open], .child details[open] { padding-block-end: .75rem; }
.child > .row { padding-block-start: .35rem; }
summary { align-content: center; min-height: 40px; font-weight: 700; cursor: pointer; }
details form + form { margin-block-start: .65rem; }
.transfer { display: grid; gap: .65rem; }
.transfer form + form { margin: 0; }
.transfer-balance { display: flex; justify-content: space-between; gap: .6rem; padding-block: .7rem; }
.tree ul { padding-inline-start: .9rem; border-inline-start: 1px solid var(--line); }
.tree li { overflow-wrap: anywhere; }
.audit { list-style: none; padding: 0; margin: 0; }
.audit li { padding: .65rem 0; border-block-start: 1px solid var(--line); }
.audit p { margin: .2rem 0 0; overflow-wrap: anywhere; }
time { font-size: .77rem; text-align: end; }
.phase-layout > .tabs { min-height: 58px; }
.phase-layout .section { min-height: calc(100svh - 124px); }
.phase-layout .section-body > :last-child { margin-block-end: 0; }
.page-actions, .filter-actions, .pagination { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.page-actions { justify-content: space-between; margin-block-end: .75rem; }
.page-actions p { margin: 0; }
.filter-grid { background: #f0f2f5; padding: .75rem; border-radius: 13px; margin-block: .75rem; }
.filter-actions button { background: var(--green); color: #153a2c; border-radius: 99px; padding-inline: 1rem; }
.record-count { margin-block-start: .75rem; }
.records { width: 100%; table-layout: fixed; border-collapse: collapse; margin-block-end: .75rem; }
.records th, .records td { text-align: start; padding: .6rem; overflow-wrap: anywhere; }
.records th { background: #f0f2f5; color: var(--indigo); }
.records td { border-block-end: 1px solid var(--line); }
.record-label { display: none; }
.pagination { justify-content: center; margin-block: .75rem; }
.pagination a { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 99px; }
.empty-records { border: 1px solid var(--line); padding: .8rem; border-radius: 13px; color: var(--muted); }
.detail-list { margin-block: .75rem; border: 1px solid var(--line); border-radius: 13px; padding: .25rem .85rem; }
.detail-list div, .tree-node { display: flex; align-items: baseline; justify-content: space-between; gap: .35rem .75rem; }
.detail-list div { padding-block: .65rem; }
.detail-list div + div { border-block-start: 1px solid var(--line); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; text-align: end; min-width: 0; }
.detail-list dt { color: var(--indigo); }
.network-tree { padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 13px; margin-block: .75rem; }
.tree-node { flex-wrap: wrap; padding-block: .25rem; }
.tree-node span { font-size: .85rem; color: var(--muted); }
.dashboard-layout .stats { padding-block-start: 24px; }
.dashboard-layout .stat-card { direction: ltr; min-height: 103px; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 12px 18px 12px 12px; border-radius: 19px; }
.dashboard-layout .stat-art svg { width: 64px; margin-inline: 2px auto; }
.dashboard-layout .stat-info h2 { font-size: .77rem; font-weight: 600; justify-content: space-between; }
.dashboard-layout .stat-number { font-size: 1.04rem; color: #3b3b3b; }
.dashboard-layout .stat-line { margin-block: 13px 18px; }
.dashboard-layout .stat-line::before { width: 32px; }
.dashboard-layout .stat-info h2 svg { transform: scaleX(-1); }
.dashboard-layout .stat-controls { grid-template-rows: 26px 34px; padding-block-end: 8px; }
.dashboard-layout .stat-dots { direction: ltr; }
.dashboard-layout .stat-dots button:first-child::before { transform: translateX(6px); }
.dashboard-layout .stat-dots button:last-child::before { transform: translateX(-6px); }
.dashboard-layout .stat-toggle { grid-column: 1; grid-row: 2; justify-self: start; margin-inline-start: 8px; font-size: .86rem; transform: translateY(-7px); }
.dashboard-layout .controls .filter-pill { min-width: 94px; min-height: 34px; margin-block-end: 8px; color: #fff; font-size: .85rem; }
.dashboard-layout .filter-pill[aria-disabled] { color: #4b645a; }
.dashboard-layout .tabs { direction: ltr; }
.earnings-layout { min-height: calc(100svh - 52px); display: flex; flex-direction: column; }
.earnings-layout .controls { padding-block-end: 7px; }
.earnings-layout .section { flex: 1; }
.earnings-tabs { gap: 2px; justify-content: space-between; margin-block-start: 0; }
.earnings-tabs a { padding: .22rem .54rem; font-size: .81rem; }
.earnings-tabs a[aria-current="page"] { padding-inline: .82rem; }
.earnings-tabs a:first-child { min-width: 132px; text-align: center; }
.dashboard-layout .section-title { direction: ltr; }
.dashboard-layout .section-title h1 { font-size: .87rem; font-weight: 600; }
.earnings-layout .section-title { min-height: 62px; padding-inline-start: 4px; }
.dashboard-layout .section-title::after { inset-inline-start: 4px; width: 32px; }
.earnings-layout .section-body { width: 100%; }
.bottom-nav .wrap { direction: ltr; }
.bottom-nav a, .bottom-nav .disabled-link { position: relative; min-height: 47px; font-size: .68rem; }
.bottom-nav svg { width: 19px; height: 19px; }
.bottom-nav a:nth-child(3) svg, .bottom-nav .disabled-link:nth-child(3) svg { width: 22px; height: 22px; }
.notification-badge { position: absolute; top: -2px; left: calc(50% + 3px); display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid white; border-radius: 50%; background: #e7463e; color: white; font: 600 .61rem "Open Sans", sans-serif; }
.panel-sheet {
  position: fixed; inset: auto 0 0; width: min(100%, 32rem); max-width: 100%;
  max-height: 85svh; margin: 0 auto; padding: 10px 0 env(safe-area-inset-bottom);
  border: 0; border-radius: 10px 10px 0 0; background: #fff; color: #22252d;
}
.panel-sheet::backdrop { background: #00000038; }
.panel-sheet:focus, #main-menu nav:focus { outline: none; }
#main-menu { padding-block-end: calc(8px + env(safe-area-inset-bottom)); }
body:has(.panel-sheet[open]) { overflow: hidden; }
.panel-sheet nav { display: grid; text-align: left; }
.panel-sheet nav > :is(a, p) {
  min-height: 43px; display: flex; align-items: center; justify-content: space-between;
  flex-direction: row-reverse; padding: .55rem 22px; margin: 0; color: inherit; font-size: .88rem;
}
.panel-sheet nav [aria-current] { color: var(--blue); }
.panel-sheet nav [aria-disabled] { color: var(--muted); }
.profile-sheet { padding-block-start: 0; }
.profile-sheet header { display: flex; direction: ltr; align-items: center; gap: 16px; border-block-end: 1px solid #f1f1f3; padding: 16px 14px; min-height: 79px; }
.profile-sheet header div { min-width: 0; overflow-wrap: anywhere; }
.profile-sheet header strong { font-weight: 600; }
.profile-sheet small { display: block; color: #707070; font-size: .81rem; }
.profile-avatar { background: #111; color: white; border-radius: 50%; padding: 7px; flex: none; }
.profile-avatar svg { width: 15px; height: 15px; }
.profile-sheet nav { padding-block-start: 19px; }
.profile-sheet nav > :is(a, p) { min-height: 37px; padding-inline: 14px 18px; }
.profile-sheet nav > .profile-setting { flex-direction: row; }
.profile-setting svg { width: 13px; height: 13px; }
.profile-sheet button { background: none; color: #e33d35; font-size: .89rem; font-weight: 600; text-align: left; padding-inline: 14px; }
.workflow-layout { background: #fff; min-height: 100svh; color: #303035; font-size: .87rem; }
.workflow-wrap { width: min(100% - 28px, 35rem); margin-inline: auto; }
.workflow-bar { border-block-end: 1px solid #f1f1f3; }
.workflow-bar .workflow-wrap { direction: ltr; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; min-height: 50px; }
.workflow-bar h1 { text-align: center; margin: 0; font-size: .88rem; font-weight: 650; }
.workflow-bar .workflow-wrap > * { transform: translateY(-3px); }
.workflow-bar a, .workflow-bar button { display: flex; align-items: center; min-height: 44px; }
.workflow-bar a { width: 44px; color: inherit; }
.workflow-bar button { background: none; color: var(--blue); justify-self: end; padding: 0; font-size: .87rem; }
.workflow-bar button:disabled { opacity: .48; cursor: default; }
.workflow-body { padding-block: 19px 12px; }
[data-workflow=create] .workflow-body { padding-block-start: 14px; }
.workflow-body form { gap: 18.5px; }
.workflow-body hr { width: 100%; border: 0; border-block-end: 1px solid #ededf1; margin: 0; }
.workflow-body label { font-size: inherit; font-weight: 400; }
.workflow-body input[type=radio] { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--blue); }
.wizard-options, .funds-mode { direction: ltr; }
.wizard-options label, .funds-mode label { display: flex; gap: 8px; align-items: center; }
.wizard-options label, .funds-mode label { font-weight: 600; }
.wizard-options p, .funds-mode p { padding-inline-start: 25px; margin: 9px 0 16px; color: #747474; font-weight: 500; line-height: 1.32; }
.wizard-options p:last-child { margin-block-end: 0; }
.segmented { display: flex; direction: ltr; width: min(188px, 100%); justify-self: center; border: 1px solid #e0e0e5; border-radius: 99px; }
.segmented label { position: relative; flex: 1; }
.segmented label input { position: absolute; opacity: 0; }
.segmented label span { display: grid; place-items: center; min-height: 39px; margin: -1px; border: 1px solid transparent; border-radius: 99px; cursor: pointer; font-weight: 600; }
.segmented input:checked + span { color: #1268cf; border-color: var(--blue); }
.segmented input:focus-visible + span { outline: 2px solid var(--blue); }
.segmented input:disabled + span { cursor: default; }
.outline-field { position: relative; display: block; direction: ltr; }
.outline-field > span:first-child { position: absolute; z-index: 1; top: -.55em; left: 18px; background: #fff; padding: 0 4px; color: #797979; font-size: .68rem; }
.outline-field.editable:has(:placeholder-shown):not(:focus-within) > span:first-child,
.outline-field.choice:has(select:invalid) > span:first-child { opacity: 0; }
.outline-field :is(input, select) { border: 1px solid #ccc; border-radius: 99px; min-height: 39px; background: white; padding: 5px 18px; color: inherit; font-size: .88rem; line-height: 1.5; }
.outline-field input::placeholder { direction: ltr; text-align: left; color: #828282; }
.outline-field.editable:focus-within input::placeholder { color: transparent; }
.outline-field select { appearance: none; padding-inline-end: 38px; }
.outline-field select:invalid, .outline-field input[readonly] { color: #828282; }
.outline-field input[readonly] { padding-inline-end: 62px; }
.locked-icons { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; pointer-events: none; }
.locked-icons svg { width: 15px; height: 15px; color: #999; }
.locked-icons svg:not(:last-child) { color: #ccc; }
.choice .locked-icons svg { color: #303030; }
[data-workflow=create] .outline-field input { min-height: 34px; }
.funds-card { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 44px 44px minmax(38px, auto); gap: 6px 8px; padding: 10px; border: 1px solid #eee; border-radius: 10px; box-shadow: 0 1px 4px #26264418; }
.funds-card > div { display: grid; align-content: start; gap: 4px; text-align: left; min-width: 0; overflow-wrap: anywhere; }
.funds-card span { color: #858585; font-size: .86rem; }
.funds-card strong { line-height: 1; }
.funds-mode input:disabled { opacity: .5; }
.workflow-link { display: inline-block; padding: .55rem 1.2rem; background: var(--blue); border-radius: 99px; color: white; }
@media (max-width: 43.99rem) {
  .phase-layout > .tabs a { padding-inline: .48rem; font-size: .92rem; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-actions { grid-column: 1 / -1; }
  .records, .records tbody, .records tr, .records td { display: block; }
  .records thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .records tr { padding: .3rem .7rem; margin-block-end: .65rem; border: 1px solid var(--line); border-radius: 13px; }
  .records td { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: baseline; gap: .4rem; padding: .25rem 0; }
  .records td:last-child { border-block-end: 0; }
  .records td > :last-child { text-align: end; }
  .record-label { display: block; color: var(--muted); font-size: .85rem; }
}
@media (min-width: 44rem) {
  .stat-slide, .transfer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .login-card { padding: 2rem; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-actions { grid-column: 1 / -1; }
  .records th:first-child { width: 9%; }
}
