/* Advanced workspace: live task overview and an on-demand group profile.
   Native group cards and their financial controls retain their own styles. */
.aw-dashboard,
.aw-workboard,
.aw-profile-dialog {
  --aw-ink: #14294c;
  --aw-muted: #5a6d88;
  --aw-line: #dfe7f2;
  --aw-blue: #0861ee;
  color: var(--aw-ink);
  font-family: Arial, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: start;
}
.aw-dashboard,
.aw-workboard,
.aw-profile-dialog,
.aw-dashboard *,
.aw-workboard *,
.aw-profile-dialog * { box-sizing: border-box; }
.aw-dashboard [hidden],
.aw-workboard [hidden],
.aw-profile-dialog [hidden] { display: none !important; }
.aw-dashboard :is(button, a),
.aw-workboard :is(button, a),
.aw-profile-dialog :is(button, a) { font-family: inherit; }
.aw-dashboard :is(button, a):focus-visible,
.aw-workboard :is(button, a):focus-visible,
.aw-profile-dialog :is(button, a):focus-visible,
.aw-profile-open:focus-visible { outline: 3px solid #8cb7ff; outline-offset: 3px; }
.aw-dashboard svg,
.aw-workboard svg,
.aw-profile-dialog svg { flex: none; width: 20px; height: 20px; vertical-align: middle; }
.aw-overview > .reference-metrics { display: none !important; }
#overview.aw-overview > .reference-dashboard-heading { display: none !important; }
.aw-dashboard { width: 100%; min-width: 0; margin-bottom: 18px; }
.aw-dashboard-grid > .aw-dashboard { grid-column: 1 / -1; order: 1; margin: 0; }

/* Saudi Hijri uses Riyadh; Afghan and Gregorian dates use Kabul. */
#overview .rc-approved > summary .safe-controls-title { flex: 1 1 280px; min-width: 0; }
#overview .rc-approved > summary .aw-kabul-clock { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: center; gap: 13px; flex: 0 1 auto; min-width: 0; margin-inline-start: auto; padding: 10px 13px; border: 1px solid #ffffff3b; border-radius: 11px; background: #ffffff10; color: #fff; text-align: start; cursor: default; }
#overview .rc-approved > summary .aw-kabul-clock + .rc-status { margin-inline-start: 0; }
#overview .aw-kabul-clock small { display: block; color: #d6e7ff; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .02em; }
#overview .aw-kabul-clock time { display: block; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
#overview .aw-clock-dates { display: contents; }
#overview .aw-clock-dates > span { padding-inline-start: 13px; border-inline-start: 1px solid #ffffff30; }
#overview .aw-clock-dates time[lang="fa-AF"] { text-align: start; }

/* The rail shares the payment area's height. Long activity remains readable inside it. */
.aw-dashboard-grid .reference-activity { display: flex; flex-direction: column; min-width: 0; min-height: 120px; overflow: hidden; }
.aw-dashboard-grid .reference-activity > .panel-head { flex: 0 0 auto; }
.aw-dashboard-grid #referenceActivity { flex: 1 1 auto; min-width: 0; min-height: 0; max-height: 380px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; }
.aw-dashboard-grid #referenceActivity:focus-visible { outline: 2px solid #8cb7ff; outline-offset: -2px; }
.aw-dashboard-grid #referenceActivity .reference-activity-copy { min-width: 0; }
.aw-dashboard-grid #referenceActivity .reference-activity-copy :is(strong,p) { overflow-wrap: anywhere; }
@media (min-width: 1001px) {
  .reference-dashboard-grid.aw-dashboard-grid > .reference-dashboard-side { display: flex; flex-direction: column; min-height: 0; height: var(--aw-side-height, auto); max-height: var(--aw-side-height, none); overflow-x: hidden; overflow-y: auto; }
  .reference-dashboard-grid.aw-dashboard-grid > .reference-dashboard-side > * { flex: 0 0 auto; }
  .reference-dashboard-grid.aw-dashboard-grid > .reference-dashboard-side > .reference-activity { flex: 0 1 auto; }
  .aw-dashboard-grid #referenceActivity { max-height: none; }
}
@media (max-width: 1250px) {
  #overview .rc-approved > summary { flex-wrap: wrap; gap: 14px; }
  #overview .rc-approved > summary .aw-kabul-clock { order: 1; flex: 1 0 100%; margin-inline-start: 0; }
  #overview .rc-approved > summary .rc-status { margin-inline-start: auto; }
  #overview .rc-approved > summary .aw-kabul-clock + .rc-status { margin-inline-start: auto; }
}
@media (max-width: 650px) {
  #overview .rc-approved > summary .aw-kabul-clock { grid-column: 1 / -1; grid-row: 3; grid-template-columns: minmax(0,1fr); width: 100%; padding: 9px 11px; gap: 7px; }
  #overview .aw-clock-dates > span { padding-inline-start: 0; border-inline-start: 0; }
  #overview .aw-kabul-clock time { font-size: 12px; }
  .aw-dashboard-grid #referenceActivity { max-height: min(380px,50vh); }
}
@media (max-width: 1000px) {
  .reference-dashboard-grid.aw-dashboard-grid > .reference-dashboard-side { order: 2; }
}
.aw-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  min-width: 0;
  padding: 22px 26px;
  border: 1px solid #0b4ec0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(115deg, #083f97, #0755d2 62%, #0968f1);
}
.aw-hero-copy { min-width: 0; }
.aw-eyebrow { display: block; font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .065em; }
.aw-hero .aw-eyebrow { margin-bottom: 5px; color: #d8e8ff; }
.aw-hero h2 { margin: 0; color: #fff; font-size: clamp(26px, 2.5vw, 34px); font-weight: 750; line-height: 1.18; letter-spacing: -.03em; }
.aw-hero p { margin: 7px 0 0; color: #e8f1ff; font-size: 14px; line-height: 1.5; }
.aw-date { flex: none; max-width: 35%; padding: 8px 12px; border: 1px solid #ffffff40; border-radius: 8px; background: #ffffff0e; color: #f5f9ff; font-size: 12px; text-align: end; }
.aw-summary { flex: 0 0 100%; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.aw-stat { min-width: 0; padding: 15px 18px; border: 1px solid var(--aw-line); border-radius: 10px; background: #fff; }
.aw-stat > span { display: block; color: var(--aw-muted); font-size: 12px; line-height: 1.4; }
.aw-stat > strong { display: block; margin-top: 5px; color: var(--aw-ink); font-size: clamp(23px, 2.1vw, 30px); font-weight: 750; line-height: 1.2; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.aw-hero .aw-stat { border-color: #ffffff30; background: #ffffff12; }
.aw-hero .aw-stat > span, .aw-hero .aw-stat > small { color: #e0edff; }
.aw-hero .aw-stat > strong { color: #fff; }
.aw-stat > small { display: block; margin-top: 5px; color: var(--aw-muted); font-size: 12px; line-height: 1.45; }

/* A short list of actionable work. Groups continues to show every matching card. */
.aw-workboard { width: 100%; min-width: 0; margin: 14px 0; border: 1px solid var(--aw-line); border-radius: 12px; background: #fff; overflow: hidden; }
.aw-board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 16px 20px 12px; }
.aw-board-head > div { min-width: 0; }
.aw-board-head h2 { margin: 0; color: var(--aw-ink); font-size: 18px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; }
.aw-board-head p { margin: 4px 0 0; color: var(--aw-muted); font-size: 12px; line-height: 1.5; }
.aw-group-work > summary.aw-board-head { list-style: none; cursor: pointer; }
.aw-group-work > summary.aw-board-head::-webkit-details-marker { display: none; }
.aw-group-work > summary.aw-board-head::marker { content: ""; }
.aw-group-work > summary.aw-board-head::after { flex: none; width: 7px; height: 7px; margin: -4px 3px 0 0; border-right: 1.5px solid #4773ac; border-bottom: 1.5px solid #4773ac; transform: rotate(45deg); content: ""; }
.aw-group-work[open] > summary.aw-board-head::after { margin-top: 4px; transform: rotate(225deg); }
.aw-group-work > summary.aw-board-head:hover { background: #f9fbff; }
.aw-group-work > summary.aw-board-head:focus-visible { outline: 3px solid #8cb7ff; outline-offset: -3px; }
.aw-group-work > summary.aw-board-head > div { flex: 1; }
.aw-group-work > summary.aw-board-head > .aw-link { flex: none; }
.aw-group-work [data-aw-task-count] { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; min-height: 21px; margin-inline-start: 5px; padding: 1px 6px; border-radius: 6px; color: #2864b3; background: #edf4ff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.aw-group-work:not([open]) > summary.aw-board-head { padding-bottom: 12px; }
.aw-tasks { margin: 0; padding: 0 20px; list-style: none; }
.aw-task { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-width: 0; padding: 12px 0; border-top: 1px solid #eaf0f7; }
.aw-task-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #edf4ff; color: #2264c4; font-size: 18px; line-height: 1; }
.aw-task-copy { min-width: 0; }
.aw-task-copy > strong { display: block; color: var(--aw-ink); font-size: 14px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.aw-task-copy > small { display: block; margin-top: 2px; color: var(--aw-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.aw-pill { display: inline-flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; min-height: 25px; padding: 3px 8px; border: 1px solid #e0e7f0; border-radius: 6px; background: #f3f6fa; color: #50627c; font-size: 11px; font-weight: 650; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.aw-pill.is-danger { border-color: #f5d6d3; background: #fff0ee; color: #b0352a; }
.aw-pill.is-amber { border-color: #f3dfb0; background: #fff7e8; color: #95600c; }
.aw-pill.is-blue { border-color: #d4e4ff; background: #edf4ff; color: #175cc5; }
.aw-pill.is-green { border-color: #c9e9d8; background: #edf9f2; color: #147b4d; }
.aw-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 40px; margin: 0; padding: 9px 14px; border: 1px solid #cedced; border-radius: 8px; color: #205fc2; background: #fff; box-shadow: none; font-size: 13px; font-weight: 650; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer; }
.aw-button:hover { border-color: #9ebfed; background: #f5f9ff; }
.aw-button.is-primary { border-color: var(--aw-blue, #0861ee); color: #fff; background: var(--aw-blue, #0861ee); }
.aw-button.is-primary:hover { border-color: #0753cf; background: #0753cf; }
.aw-button:disabled { opacity: .55; cursor: default; }
.aw-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; margin: 0; padding: 5px 2px; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: #145fcb; font-size: 12px; font-weight: 650; line-height: 1.5; text-align: start; text-decoration: none; cursor: pointer; }
.aw-link:hover { color: #0749a7; text-decoration: underline; text-underline-offset: 3px; }
.aw-board-head > .aw-link { flex: none; }
.aw-board-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin: 0; padding: 9px 20px; border-top: 1px solid #eaf0f7; background: #fafcff; color: var(--aw-muted); font-size: 11px; line-height: 1.5; }
.aw-empty { padding: 22px 20px; color: var(--aw-muted, #5a6d88); font-size: 13px; line-height: 1.65; }
.aw-empty > strong { display: block; margin-bottom: 4px; color: var(--aw-ink, #14294c); font-size: 14px; font-weight: 650; }
.aw-empty p { margin: 0; }
#groups.gr-design .aw-workboard { margin: 0 0 12px; }
#groups.gr-design .aw-board-head { padding: 12px 17px 8px; }
#groups.gr-design .aw-board-head h2 { font-size: 16px; }
#groups.gr-design .aw-tasks { padding-inline: 17px; }
#groups.gr-design .aw-task { padding-block: 9px; }
#groups.gr-design .aw-board-foot { padding: 7px 17px; }

/* Compact the approved blue header without styling the original cards. */
#groups.gr-design .gr-hero { gap: 20px; min-height: 110px; padding: 18px 23px; }
#groups.gr-design .gr-hero-identity { gap: 16px; }
#groups.gr-design .gr-hero-icon { width: 58px; height: 58px; border-radius: 14px; }
#groups.gr-design .gr-hero-icon svg { width: 33px; height: 33px; }
#groups.gr-design .gr-eyebrow { margin-bottom: 5px; font-size: 10px; }
#groups.gr-design .gr-hero h2 { font-size: clamp(26px, 2.5vw, 34px); line-height: 1.15; }
#groups.gr-design .gr-hero p { margin-top: 5px; font-size: 13px; line-height: 1.45; letter-spacing: .01em; }
#groups.gr-design .gr-balances { flex-basis: 375px; min-width: 285px; padding: 12px 17px; border-radius: 11px; }
#groups.gr-design .gr-balance-summary + .gr-balance-summary { margin-left: 15px; padding-left: 18px; }
#groups.gr-design .gr-balance-summary label,
#groups.gr-design .gr-balance-summary > span { margin-bottom: 5px; font-size: 11px; }
#groups.gr-design .gr-balance-summary strong { font-size: clamp(24px, 2.15vw, 30px); }
#groups.gr-design .gr-metrics { min-height: 66px; padding: 12px 14px; margin-bottom: 12px; }
#groups.gr-design .gr-metric { gap: 13px; }
#groups.gr-design .gr-metric-icon { width: 36px; height: 36px; border-radius: 9px; }
#groups.gr-design .gr-metric-icon svg { width: 23px; height: 23px; }
#groups.gr-design .gr-metric > div > span { margin-bottom: 3px; font-size: 12px; }
#groups.gr-design .gr-metric strong { font-size: 23px; }
.aw-profile-open { appearance: none; display: inline; min-width: 0; width: auto; min-height: 0; height: auto; margin: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; box-shadow: none; color: inherit; font: inherit; font-size: max(14px, 1em); line-height: inherit; text-align: start; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.aw-profile-open:hover { color: #165ebf; text-decoration: underline; text-underline-offset: 3px; }
#overviewGroups .dashboard-group-head .aw-profile-open,
#allGroups .group-cell .aw-profile-open { width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; white-space: normal; }

/* A modal drawer: no profile occupies directory space until a group is opened. */
#awGroupProfile.aw-profile-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(470px, 100vw);
  max-width: 100vw;
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid #d4dfef;
  border-radius: 0;
  color: var(--aw-ink);
  background: #fff;
  box-shadow: -18px 0 60px #122d5829;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#awGroupProfile.aw-profile-dialog[open] { display: flex; flex-direction: column; }
#awGroupProfile.aw-profile-dialog::backdrop { background: #10244045; backdrop-filter: blur(2px); }
.aw-profile-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; min-height: 65px; padding: 11px 22px; border-bottom: 1px solid var(--aw-line); background: #fff; }
.aw-profile-head h2 { min-width: 0; margin: 0; color: var(--aw-ink); font-size: 17px; line-height: 1.4; font-weight: 700; }
.aw-close { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; min-height: 44px; margin: 0 -8px 0 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #566b87; box-shadow: none; font-size: 25px; line-height: 1; cursor: pointer; }
.aw-close:hover { background: #edf3fb; color: #153d78; }
.aw-profile-identity { display: flex; align-items: center; gap: 13px; flex: none; min-width: 0; padding: 21px 22px 18px; }
.aw-avatar { display: grid; place-items: center; flex: none; width: 45px; height: 45px; border: 1px solid #d8e5f7; border-radius: 12px; color: #2c66b5; background: #edf4ff; font-size: 19px; font-weight: 700; }
.aw-profile-identity > div { flex: 1; min-width: 0; }
.aw-profile-identity h3 { margin: 0; color: var(--aw-ink); font-size: 17px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.aw-profile-identity small { display: block; margin-top: 3px; color: var(--aw-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.aw-profile-identity .aw-pill { margin-top: 7px; }
.aw-balance { flex: none; min-width: 0; margin: 0 22px; padding: 18px; border: 1px solid #d4e6fc; border-radius: 12px; color: var(--aw-ink); background: linear-gradient(120deg, #eef7ff, #f6fbff); }
.aw-balance .aw-eyebrow { color: #527094; font-size: 10px; }
.aw-money { display: block; margin-top: 5px; color: #124a91; font-size: 31px; font-weight: 750; line-height: 1.25; letter-spacing: -.025em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.aw-progress { height: 6px; margin: 13px 0 6px; border-radius: 99px; background: #dbe7f5; overflow: hidden; }
.aw-progress > i { display: block; max-width: 100%; height: 100%; border-radius: inherit; background: #17a56a; }
.aw-balance > small { display: block; color: #54708f; font-size: 11px; line-height: 1.5; }
.aw-balance-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #dbe7f4; }
.aw-balance-grid > div { min-width: 0; }
.aw-balance-grid span { display: block; color: #5b7491; font-size: 10px; line-height: 1.5; }
.aw-balance-grid strong { display: block; margin-top: 3px; color: #254970; font-size: 13px; line-height: 1.5; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.aw-profile-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; flex: none; padding: 13px 22px 18px; }
.aw-profile-dialog .aw-button { min-height: 44px; font-size: 12px; }
.aw-tabs { position: sticky; top: 65px; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; flex: none; min-width: 0; padding: 0 13px; border-top: 1px solid var(--aw-line); border-bottom: 1px solid var(--aw-line); background: #fff; }
.aw-tabs > button { position: relative; min-width: 0; min-height: 47px; margin: 0; padding: 11px 4px; border: 0; border-radius: 0; color: #607089; background: transparent; box-shadow: none; font-size: 12px; font-weight: 650; line-height: 1.4; cursor: pointer; }
.aw-tabs > button:hover { color: #165fc5; background: #f7faff; }
.aw-tabs > button[aria-selected="true"] { color: #075fd8; }
.aw-tabs > button[aria-selected="true"]::after { position: absolute; right: 9px; bottom: -1px; left: 9px; height: 3px; border-radius: 3px 3px 0 0; background: #0861ee; content: ""; }
.aw-tab-panel { flex: 1 0 auto; min-width: 0; padding: 2px 22px 22px; }
.aw-section { min-width: 0; padding: 19px 0; border-bottom: 1px solid #e7edf5; }
.aw-section:last-child { border-bottom: 0; }
.aw-section h3 { margin: 0 0 12px; color: #244368; font-size: 12px; font-weight: 700; line-height: 1.5; }
.aw-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; margin-bottom: 9px; }
.aw-section-head h3 { min-width: 0; margin: 0; }
.aw-section-head > :is(.aw-link, .aw-button) { flex: none; }
.aw-detail-list { display: grid; gap: 10px; min-width: 0; }
.aw-detail-list > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-width: 0; }
.aw-detail-list > div > span { flex: 0 1 45%; min-width: 0; color: var(--aw-muted); font-size: 12px; line-height: 1.6; }
.aw-detail-list > div > strong,
.aw-detail-list > div > small { flex: 0 1 60%; min-width: 0; color: #254465; font-size: 12px; font-weight: 600; line-height: 1.6; text-align: end; overflow-wrap: anywhere; }
.aw-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px 0; border-bottom: 1px solid #eaf0f6; }
.aw-item:last-child { border-bottom: 0; }
.aw-item > div { flex: 1; min-width: 0; }
.aw-item strong { display: block; color: #234266; font-size: 13px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.aw-item small { display: block; margin-top: 3px; color: var(--aw-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.aw-item p { margin: 6px 0 0; color: #536a85; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.aw-item > :is(.aw-link, .aw-button) { flex: none; max-width: 40%; }
.aw-history .aw-item { position: relative; padding-inline-start: 17px; }
.aw-history .aw-item::before { position: absolute; top: 19px; inset-inline-start: 0; width: 6px; height: 6px; border-radius: 50%; background: #91b3df; content: ""; }
.aw-profile-dialog .aw-empty { padding: 22px 0; }
.aw-note { margin: 14px 0 0; padding: 11px 12px; border: 1px solid #e3eaf4; border-radius: 8px; color: #596e89; background: #f7faff; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }

@media (max-width: 1150px) {
  #groups.gr-design .gr-hero { gap: 15px; padding-inline: 20px; }
  #groups.gr-design .gr-hero-identity { gap: 13px; }
  #groups.gr-design .gr-hero-icon { width: 50px; height: 50px; }
  #groups.gr-design .gr-hero h2 { font-size: 27px; }
  #groups.gr-design .gr-hero p { font-size: 12px; }
  #groups.gr-design .gr-balances { flex-basis: 310px; min-width: 260px; padding: 12px 14px; }
  #groups.gr-design .gr-balance-summary strong { font-size: 25px; }
  #groups.gr-design .gr-balance-summary + .gr-balance-summary { margin-left: 11px; padding-left: 13px; }
  .aw-summary { gap: 10px; }
  .aw-stat { padding: 13px 14px; }
  .aw-stat > strong { font-size: 25px; }
  .aw-task { gap: 10px; }
}
@media (max-width: 760px) {
  .aw-hero { align-items: flex-start; gap: 16px; padding: 20px; }
  .aw-hero h2 { font-size: 28px; }
  .aw-hero p { font-size: 13px; }
  .aw-date { max-width: 34%; padding: 6px 8px; font-size: 11px; }
  .aw-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aw-stat { padding: 13px 16px; }
  .aw-board-head { padding-inline: 16px; }
  .aw-tasks { padding-inline: 16px; }
  .aw-board-foot { padding-inline: 16px; }
  .aw-task { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px 10px; }
  .aw-task > .aw-pill { grid-column: 2; justify-self: start; }
  .aw-task > :is(.aw-button, .aw-link) { grid-column: 3; grid-row: 1 / 3; min-height: 44px; }
  .aw-task-icon { width: 32px; height: 32px; align-self: start; }
  .aw-task-copy > strong { font-size: 14px; }
  #groups.gr-design .gr-hero { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px 20px; }
  #groups.gr-design .gr-hero-identity { gap: 13px; }
  #groups.gr-design .gr-hero h2 { font-size: 28px; }
  #groups.gr-design .gr-hero p { font-size: 12px; }
  #groups.gr-design .gr-balances { flex: none; width: 100%; min-width: 0; padding: 11px 15px; }
  #groups.gr-design .gr-metric { gap: 10px; }
  #groups.gr-design .gr-metric > div > span { font-size: 11px; }
}
@media (max-width: 600px) {
  .aw-dashboard { margin-bottom: 14px; }
  .aw-hero { align-items: stretch; flex-direction: column; gap: 12px; padding: 18px; border-radius: 11px; }
  .aw-hero h2 { font-size: 27px; }
  .aw-hero p { margin-top: 6px; font-size: 13px; }
  .aw-date { max-width: 100%; padding: 5px 8px; text-align: start; }
  .aw-summary { gap: 8px; margin-top: 8px; }
  .aw-stat { padding: 12px; border-radius: 8px; }
  .aw-stat > span { font-size: 11px; }
  .aw-stat > strong { font-size: 23px; }
  .aw-stat > small { font-size: 11px; }
  .aw-workboard { margin-block: 12px; }
  .aw-board-head { gap: 10px; padding: 13px 13px 9px; }
  .aw-board-head h2 { font-size: 16px; }
  .aw-board-head p { font-size: 11px; }
  .aw-board-head > .aw-link { max-width: 34%; font-size: 11px; }
  .aw-tasks { padding-inline: 13px; }
  .aw-task { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 8px; padding-block: 11px; }
  .aw-task-icon { width: 28px; height: 30px; border-radius: 7px; font-size: 16px; }
  .aw-task-icon svg { width: 17px; height: 17px; }
  .aw-task-copy > small { font-size: 11px; }
  .aw-task > :is(.aw-button, .aw-link) { max-width: 95px; padding: 8px 10px; font-size: 11px; }
  .aw-board-foot { flex-wrap: wrap; gap: 5px; padding: 8px 13px; font-size: 10px; }
  .aw-empty { padding: 18px 13px; }
  #groups.gr-design .gr-hero { gap: 12px; padding: 16px; }
  #groups.gr-design .gr-hero-icon { width: 46px; height: 46px; border-radius: 11px; }
  #groups.gr-design .gr-hero-icon svg { width: 28px; height: 28px; }
  #groups.gr-design .gr-eyebrow { font-size: 9px; }
  #groups.gr-design .gr-hero h2 { font-size: clamp(23px, 5.8vw, 28px); }
  #groups.gr-design .gr-hero p { font-size: 12px; }
  #groups.gr-design .gr-balances { padding: 11px 13px; }
  #groups.gr-design .gr-balance-summary strong { font-size: clamp(23px, 5.6vw, 27px); }
  #groups.gr-design .gr-balance-summary label,
  #groups.gr-design .gr-balance-summary > span { font-size: 11px; }
  #groups.gr-design .gr-metrics { gap: 13px 0; padding: 13px 6px; }
  #groups.gr-design .gr-metric { gap: 10px; padding-left: 13px; }
  #groups.gr-design .gr-metric-icon { width: 34px; height: 34px; }
  #groups.gr-design .gr-metric strong { font-size: 22px; }
  #groups.gr-design .aw-board-head { padding-inline: 13px; }
  #groups.gr-design .aw-tasks { padding-inline: 13px; }
  #groups.gr-design .aw-board-foot { padding-inline: 13px; }
  #awGroupProfile.aw-profile-dialog { width: 100vw; max-width: 100vw; border-inline-start: 0; box-shadow: none; }
  .aw-profile-head { min-height: 61px; padding: 9px 17px; }
  .aw-profile-identity { padding: 18px 17px 16px; }
  .aw-profile-identity h3 { font-size: 17px; }
  .aw-balance { margin-inline: 17px; padding: 16px; }
  .aw-money { font-size: 30px; }
  .aw-profile-actions { gap: 8px; padding: 12px 17px 16px; }
  .aw-tabs { top: 61px; padding-inline: 9px; }
  .aw-tabs > button { font-size: 11px; }
  .aw-tab-panel { padding-inline: 17px; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .aw-task { grid-template-columns: 25px minmax(0, 1fr); }
  .aw-task-icon { width: 25px; height: 28px; }
  .aw-task > :is(.aw-button, .aw-link) { grid-column: 2; grid-row: auto; justify-self: start; max-width: none; margin-top: 2px; }
  .aw-task > .aw-pill { grid-column: 2; }
  .aw-stat > strong { font-size: 21px; }
  .aw-profile-head,
  .aw-profile-identity { padding-inline: 14px; }
  .aw-balance { margin-inline: 14px; padding: 14px; }
  .aw-profile-actions { padding-inline: 14px; }
  .aw-profile-dialog .aw-button { padding-inline: 9px; font-size: 11px; }
  .aw-tab-panel { padding-inline: 14px; }
  .aw-balance-grid { gap: 7px; }
  .aw-balance-grid strong { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .aw-dashboard *,
  .aw-workboard *,
  .aw-profile-dialog *,
  .aw-profile-open { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
