@media (min-width: 861px) {
  html,
  body {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    background: #050607 !important;
  }

  body::before,
  body::after {
    display: none !important;
  }

  .app-root {
    position: relative !important;
    display: block !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 36%),
      linear-gradient(135deg, #101214 0%, #050607 42%, #010203 100%) !important;
    color: #f5f6f2 !important;
  }

  .app-root > .desktop-titlebar,
  .app-root > .room-rail,
  .app-root > .workspace,
  .app-root > .side-dock,
  .app-root > .bottom-nav {
    display: none !important;
  }

  .flow-ref {
    --ref-bg: #050607;
    --ref-panel: rgba(17, 20, 22, 0.72);
    --ref-panel-deep: rgba(8, 10, 11, 0.9);
    --ref-card: rgba(16, 18, 20, 0.78);
    --ref-card-soft: rgba(22, 24, 27, 0.66);
    --ref-line: rgba(255, 255, 255, 0.13);
    --ref-line-soft: rgba(255, 255, 255, 0.08);
    --ref-line-strong: rgba(255, 255, 255, 0.28);
    --ref-text: #f7f7f2;
    --ref-muted: rgba(247, 247, 242, 0.64);
    --ref-faint: rgba(247, 247, 242, 0.38);
    --ref-black-text: #090b0d;
    --ref-glow:
      0 0 0 1px rgba(255, 255, 255, 0.26),
      0 0 26px rgba(255, 255, 255, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.72);
    --ref-card-shadow:
      0 18px 54px rgba(0, 0, 0, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: fixed !important;
    inset: 0 !important;
    z-index: 80 !important;
    display: grid !important;
    grid-template-columns: 236px minmax(720px, 1fr) 398px;
    grid-template-rows: 67px minmax(0, 1fr);
    grid-template-areas:
      "title title title"
      "rail main dock";
    column-gap: 26px;
    row-gap: 0;
    direction: ltr;
    font-family: "Noto Sans Hebrew", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--ref-text);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 34%),
      #050607;
    isolation: isolate;
  }

  .flow-ref,
  .flow-ref * {
    box-sizing: border-box;
    letter-spacing: 0 !important;
  }

  .flow-ref svg {
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
  }

  .flow-ref button,
  .flow-ref textarea,
  .flow-ref input {
    font: inherit;
  }

  .flow-ref button {
    cursor: pointer;
    color: inherit;
    border: 0;
    background: transparent;
  }

  .flow-ref button:focus-visible,
  .flow-ref textarea:focus-visible,
  .flow-ref input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.68);
    outline-offset: 2px;
  }

  .flow-ref-titlebar {
    grid-area: title;
    height: 67px;
    min-height: 67px;
    display: grid;
    grid-template-columns: 236px 1fr auto auto;
    align-items: center;
    gap: 22px;
    padding: 0 23px 0 27px;
    direction: ltr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.008)),
      rgba(5, 7, 8, 0.88);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.025);
  }

  .flow-ref-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    color: #fff;
  }

  .flow-ref-brand strong {
    font-size: 25px;
    line-height: 1;
    font-weight: 850;
  }

  .flow-ref-search {
    justify-self: start;
    width: 216px;
    height: 36px;
    padding: 0 10px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    color: var(--ref-faint);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
      rgba(14, 16, 18, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }

  .flow-ref-search span {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 15px;
    white-space: nowrap;
  }

  .flow-ref-search svg {
    font-size: 15px;
    opacity: 0.78;
  }

  .flow-ref-search kbd {
    height: 24px;
    min-width: 49px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.78);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
  }

  .flow-ref-title-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 19px;
    direction: rtl;
  }

  .flow-ref-icon-button,
  .flow-ref-new {
    min-width: 0;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: rgba(246, 247, 243, 0.72);
    transition: transform 210ms ease, border-color 210ms ease, box-shadow 210ms ease, color 210ms ease, background 210ms ease;
  }

  .flow-ref-icon-button {
    width: 38px;
    font-size: 20px;
  }

  .flow-ref-new {
    gap: 8px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 850;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
      rgba(22, 24, 26, 0.92);
    box-shadow:
      0 0 22px rgba(255, 255, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .flow-ref-window-controls {
    display: flex;
    align-items: center;
    gap: 21px;
    color: rgba(255, 255, 255, 0.74);
  }

  .flow-ref-window-controls span {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 5px;
  }

  .flow-ref-window-controls .min::before,
  .flow-ref-window-controls .max::before,
  .flow-ref-window-controls .close::before,
  .flow-ref-window-controls .close::after {
    content: "";
    position: absolute;
    inset: auto;
    background: currentColor;
  }

  .flow-ref-window-controls .min::before {
    left: 3px;
    right: 3px;
    top: 9px;
    height: 2px;
  }

  .flow-ref-window-controls .max::before {
    left: 4px;
    top: 4px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    background: transparent;
    border-radius: 2px;
  }

  .flow-ref-window-controls .close::before,
  .flow-ref-window-controls .close::after {
    left: 3px;
    top: 8px;
    width: 13px;
    height: 2px;
    transform: rotate(45deg);
  }

  .flow-ref-window-controls .close::after {
    transform: rotate(-45deg);
  }

  .flow-ref-rail {
    grid-area: rail;
    min-width: 0;
    min-height: 0;
    padding: 8px 18px 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    direction: rtl;
    overflow: hidden auto;
    scrollbar-width: none;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 42%),
      rgba(6, 10, 10, 0.94);
  }

  .flow-ref-rail::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .flow-ref-nav {
    display: grid;
    gap: 7px;
  }

  .flow-ref-section {
    display: grid;
    gap: 6px;
    padding-top: 12px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
  }

  .flow-ref-section > span {
    height: 18px;
    padding-inline: 8px;
    display: block;
    text-align: left;
    color: var(--ref-faint);
    font-size: 12px;
    line-height: 18px;
    font-weight: 800;
  }

  .flow-ref-rail-bottom {
    margin-top: auto;
    display: grid;
    gap: 7px;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
  }

  .flow-ref-nav-item,
  .flow-ref-model,
  .flow-ref-plain {
    position: relative;
    width: 100%;
    height: 39px;
    padding: 0 11px 0 7px;
    display: flex;
    align-items: center;
    gap: 10px;
    direction: rtl;
    border-radius: 12px;
    color: rgba(247, 247, 242, 0.67);
    border: 1px solid transparent;
    background: transparent;
    transition: transform 240ms cubic-bezier(.2, .9, .2, 1), color 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
  }

  .flow-ref-model,
  .flow-ref-nav-item.slim,
  .flow-ref-plain {
    height: 39px;
    border-color: rgba(255, 255, 255, 0.105);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
      rgba(17, 19, 21, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  }

  .flow-ref-nav-item svg,
  .flow-ref-model svg,
  .flow-ref-plain svg {
    width: 18px;
    height: 18px;
    opacity: 0.86;
  }

  .flow-ref-nav-item b,
  .flow-ref-model b,
  .flow-ref-plain b {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 820;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .flow-ref-nav-item > span,
  .flow-ref-nav-item > small,
  .flow-ref-model > i {
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #f8f8f4;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.08);
  }

  .flow-ref-model > i {
    min-width: 19px;
    width: 19px;
    height: 19px;
    padding: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
  }

  .flow-ref-nav-item.active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
      rgba(23, 25, 28, 0.88);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      0 0 26px rgba(255, 255, 255, 0.08);
  }

  .flow-ref-model.active,
  .flow-ref-plain.active {
    color: var(--ref-black-text);
    border-color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, #ffffff, #d8dbe0 58%, #969ba4);
    box-shadow: var(--ref-glow);
  }

  .flow-ref-main {
    grid-area: main;
    min-width: 0;
    min-height: 0;
    padding: 0 0 20px;
    display: grid;
    grid-template-rows: 100px 157px 88px minmax(360px, 1fr);
    gap: 12px;
    direction: rtl;
    overflow: hidden;
  }

  .flow-ref-hero {
    height: 100px;
    padding: 24px 24px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 14px 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006)),
      rgba(6, 8, 9, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .flow-ref-hero h1 {
    margin: 0;
    color: #f4f4ef;
    font-size: 29px;
    line-height: 1.08;
    font-weight: 850;
  }

  .flow-ref-hero h1::before {
    content: "👋 ";
  }

  .flow-ref-hero p {
    margin: 6px 0 0;
    color: rgba(247, 247, 242, 0.72);
    font-size: 14px;
    font-weight: 500;
  }

  .flow-ref-capture,
  .flow-ref-list-panel,
  .flow-ref-card,
  .flow-ref-metrics article {
    border: 1px solid var(--ref-line);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
      var(--ref-card);
    box-shadow: var(--ref-card-shadow);
    backdrop-filter: blur(18px);
  }

  .flow-ref-capture {
    position: relative;
    height: 157px;
    padding: 28px 18px 15px;
    display: grid;
    grid-template-rows: 1fr 44px;
    gap: 12px;
    border-radius: 16px;
    overflow: hidden;
  }

  .flow-ref-capture::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.68), transparent 23%, transparent 76%, rgba(255, 255, 255, 0.32)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 26%);
    opacity: 0.34;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    padding: 1px;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  .flow-ref-capture textarea {
    width: 100%;
    min-width: 0;
    height: 100%;
    min-height: 0;
    resize: none;
    color: #f6f6f0;
    border: 0;
    background: transparent;
    text-align: right;
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
  }

  .flow-ref-capture textarea::placeholder {
    color: rgba(247, 247, 242, 0.35);
  }

  .flow-ref-capture-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
  }

  .flow-ref-capture-actions button,
  .flow-ref-view-toggle button,
  .flow-ref-list-toolbar nav button,
  .flow-ref-filter,
  .flow-ref-more,
  .flow-ref-quick button,
  .flow-ref-upcoming button,
  .flow-ref-focus button {
    min-width: 0;
    height: 44px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    direction: rtl;
    border-radius: 10px;
    color: rgba(247, 247, 242, 0.78);
    font-size: 14px;
    font-weight: 850;
    border: 1px solid rgba(255, 255, 255, 0.125);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.018)),
      rgba(15, 17, 19, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 230ms cubic-bezier(.2, .9, .2, 1), border-color 230ms ease, background 230ms ease, box-shadow 230ms ease, color 230ms ease;
  }

  .flow-ref-capture-actions button svg,
  .flow-ref-quick button svg,
  .flow-ref-upcoming button svg,
  .flow-ref-focus button svg {
    font-size: 18px;
  }

  .flow-ref-capture-actions .send {
    margin-inline-start: auto;
    min-width: 119px;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.58);
    background: linear-gradient(180deg, #ffffff, #bbbfc7 48%, #5c6068);
    box-shadow:
      0 0 24px rgba(255, 255, 255, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.52);
  }

  .flow-ref-capture > small {
    position: absolute;
    right: auto;
    left: 35px;
    bottom: -1px;
    color: rgba(247, 247, 242, 0.64);
    font-size: 12px;
    font-weight: 600;
  }

  .flow-ref-metrics {
    height: 88px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
  }

  .flow-ref-metrics article {
    height: 88px;
    padding: 14px 26px 13px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: center;
    border-radius: 15px;
  }

  .flow-ref-metrics span {
    grid-column: 1 / 2;
    color: #f4f4ef;
    font-size: 14px;
    font-weight: 820;
  }

  .flow-ref-metrics strong {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    align-self: center;
    color: #f9f9f5;
    font-size: 31px;
    line-height: 1;
    font-weight: 850;
  }

  .flow-ref-metrics small {
    grid-column: 1 / 2;
    color: var(--ref-faint);
    font-size: 12px;
    font-weight: 600;
  }

  .flow-ref-list-panel {
    min-height: 0;
    padding: 12px 12px 20px;
    display: grid;
    grid-template-rows: 50px 39px 1fr 42px;
    gap: 0;
    border-radius: 15px;
    overflow: hidden;
  }

  .flow-ref-list-toolbar {
    height: 50px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 26px;
    direction: ltr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  }

  .flow-ref-view-toggle {
    display: flex;
    direction: ltr;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
  }

  .flow-ref-view-toggle button {
    width: 53px;
    height: 37px;
    padding: 0;
    border-radius: 10px;
    border: 0;
    background: transparent;
  }

  .flow-ref-list-toolbar nav {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 24px;
    direction: rtl;
  }

  .flow-ref-list-toolbar nav button {
    width: 88px;
    height: 38px;
    padding: 0 12px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .flow-ref-list-toolbar .active,
  .flow-ref-view-toggle .active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.44);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.045)),
      rgba(20, 22, 24, 0.84);
    box-shadow:
      0 0 18px rgba(255, 255, 255, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .flow-ref-filter {
    justify-self: end;
    width: 181px;
    height: 38px;
    padding: 0 14px;
  }

  .flow-ref-day {
    height: 39px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    padding: 0 13px;
    color: rgba(247, 247, 242, 0.84);
    font-size: 16px;
    font-weight: 750;
  }

  .flow-ref-day b {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
  }

  .flow-ref-table {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 6px 0 0;
    overflow: hidden;
  }

  .flow-ref-table article {
    height: 52px;
    display: grid;
    grid-template-columns: 34px 38px 78px minmax(250px, 1fr) 34px 86px 28px;
    align-items: center;
    gap: 9px;
    direction: ltr;
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(255, 255, 255, 0.012);
  }

  .flow-ref-table article + article {
    margin-top: 1px;
  }

  .flow-ref-table article > button {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.035);
  }

  .flow-ref-table i {
    color: rgba(247, 247, 242, 0.55);
    font-size: 23px;
    font-style: normal;
    line-height: 1;
  }

  .flow-ref-table time {
    color: rgba(247, 247, 242, 0.55);
    font-size: 17px;
    font-weight: 600;
  }

  .flow-ref-table strong {
    min-width: 0;
    color: rgba(247, 247, 242, 0.92);
    font-size: 15px;
    line-height: 1.2;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .flow-ref-table article svg {
    justify-self: center;
    color: rgba(247, 247, 242, 0.72);
    font-size: 19px;
  }

  .flow-ref-table article span {
    justify-self: end;
    min-width: 72px;
    height: 28px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(247, 247, 242, 0.82);
    font-size: 13px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
  }

  .flow-ref-table em {
    color: rgba(247, 247, 242, 0.42);
    font-size: 16px;
    font-style: normal;
    line-height: 1;
  }

  .flow-ref-table article.empty {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 50px;
    color: rgba(247, 247, 242, 0.72);
  }

  .flow-ref-table article.empty strong {
    white-space: normal;
  }

  .flow-ref-table article.empty span {
    justify-self: end;
  }

  .flow-ref-table article.flow-ref-action-row {
    grid-template-columns: 44px minmax(0, 1fr) 88px;
    min-height: 56px;
    height: auto;
    padding: 9px 14px;
    direction: rtl;
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.105);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.066), rgba(255, 255, 255, 0.018)),
      rgba(16, 18, 20, 0.66);
    transition: transform 220ms cubic-bezier(.2, .9, .2, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
  }

  .flow-ref-table article.flow-ref-action-row:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.32);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.028)),
      rgba(22, 24, 27, 0.74);
    box-shadow:
      0 0 22px rgba(255, 255, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .flow-ref-table article.flow-ref-action-row svg {
    justify-self: center;
    width: 24px;
    height: 24px;
    color: rgba(247, 247, 242, 0.82);
  }

  .flow-ref-table article.flow-ref-action-row strong {
    display: grid;
    gap: 3px;
    color: #f8f8f4;
    font-size: 15px;
    line-height: 1.1;
    white-space: normal;
  }

  .flow-ref-table article.flow-ref-action-row small {
    color: rgba(247, 247, 242, 0.5);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
  }

  .flow-ref-table article.flow-ref-action-row span {
    justify-self: end;
    min-width: 74px;
  }

  .flow-ref-table article.flow-ref-data-row {
    grid-template-columns: 38px minmax(0, 1fr) 112px 96px 78px;
    min-height: 58px;
    height: auto;
    direction: rtl;
    padding: 9px 13px;
    border-color: rgba(255, 255, 255, 0.09);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014)),
      rgba(12, 14, 16, 0.62);
  }

  .flow-ref-table article.flow-ref-data-row.due {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 18px rgba(255, 255, 255, 0.06);
  }

  .flow-ref-table article.flow-ref-data-row.muted {
    opacity: 0.58;
  }

  .flow-ref-table article.flow-ref-data-row > svg {
    justify-self: center;
    width: 21px;
    height: 21px;
    color: rgba(247, 247, 242, 0.78);
  }

  .flow-ref-table article.flow-ref-data-row strong {
    display: grid;
    gap: 4px;
    min-width: 0;
    white-space: normal;
    line-height: 1.16;
  }

  .flow-ref-table article.flow-ref-data-row small {
    min-width: 0;
    color: rgba(247, 247, 242, 0.5);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .flow-ref-table article.flow-ref-data-row time {
    justify-self: end;
    font-size: 13px;
    white-space: nowrap;
  }

  .flow-ref-table article.flow-ref-data-row span {
    justify-self: end;
    min-width: 80px;
    max-width: 110px;
  }

  .flow-ref-table article.flow-ref-data-row .flow-ref-row-action {
    justify-self: end;
    width: auto;
    min-width: 68px;
    height: 32px;
    padding: 0 14px;
    border-radius: 999px;
    color: #111315;
    font-size: 13px;
    font-weight: 850;
    background: linear-gradient(180deg, #ffffff, #dfe1e3);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.12);
  }

  .flow-ref-more {
    justify-self: center;
    align-self: end;
    width: 116px;
    height: 36px;
    padding: 0 14px;
  }

  .flow-ref-dock {
    grid-area: dock;
    min-width: 0;
    min-height: 0;
    padding: 10px 20px 25px 0;
    display: grid;
    grid-template-rows: 248px 149px 187px 220px;
    align-content: start;
    gap: 12px;
    direction: rtl;
    overflow: hidden auto;
    scrollbar-width: none;
  }

  .flow-ref-dock::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .flow-ref-card {
    border-radius: 14px;
    padding: 18px;
    overflow: hidden;
  }

  .flow-ref-card h2 {
    margin: 0 0 15px;
    color: #f5f5f0;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 850;
    text-align: right;
  }

  .flow-ref-quick {
    display: grid;
    grid-template-rows: auto 1fr 54px;
    gap: 10px;
  }

  .flow-ref-quick > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .flow-ref-quick button {
    height: 54px;
    border-radius: 10px;
  }

  .flow-ref-quick .wide {
    width: 100%;
  }

  .flow-ref-quick button.active {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(180deg, #ffffff, #c4c7cf 48%, #4d5159);
    box-shadow:
      0 0 30px rgba(255, 255, 255, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.58);
  }

  .flow-ref-daily > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .flow-ref-daily article {
    height: 84px;
    padding: 15px 10px;
    display: grid;
    place-items: center;
    gap: 6px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
  }

  .flow-ref-daily article.active {
    border-color: rgba(255, 255, 255, 0.54);
    box-shadow:
      0 0 24px rgba(255, 255, 255, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }

  .flow-ref-daily span {
    color: rgba(247, 247, 242, 0.72);
    font-size: 13px;
    font-weight: 750;
  }

  .flow-ref-daily strong {
    color: #fff;
    font-size: 28px;
    line-height: 1;
    font-weight: 850;
  }

  .flow-ref-upcoming {
    display: grid;
    grid-template-rows: auto 42px 42px 42px;
    gap: 8px;
  }

  .flow-ref-upcoming article {
    height: 42px;
    padding: 0 11px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 45px;
    align-items: center;
    gap: 10px;
    direction: ltr;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.018);
  }

  .flow-ref-upcoming time {
    color: rgba(247, 247, 242, 0.48);
    font-size: 14px;
  }

  .flow-ref-upcoming strong {
    color: rgba(247, 247, 242, 0.72);
    font-size: 13px;
    font-weight: 650;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .flow-ref-upcoming span {
    color: rgba(247, 247, 242, 0.52);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
  }

  .flow-ref-upcoming button {
    width: 100%;
    height: 38px;
    justify-self: stretch;
  }

  .flow-ref-upcoming article[data-ref-entry-id],
  .flow-ref-table article[data-ref-entry-id] {
    cursor: pointer;
  }

  .flow-ref-focus {
    display: grid;
    grid-template-rows: auto 1fr 46px;
    gap: 9px;
  }

  .flow-ref-focus-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: 139px 1fr;
    gap: 16px;
    direction: ltr;
  }

  .flow-ref-ring {
    align-self: center;
    width: 122px;
    height: 122px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background:
      radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.2), transparent 34%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
      rgba(18, 20, 22, 0.88);
    box-shadow:
      0 0 32px rgba(255, 255, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }

  .flow-ref-ring strong {
    font-size: 25px;
    line-height: 1;
    font-weight: 860;
  }

  .flow-ref-ring span {
    color: rgba(247, 247, 242, 0.72);
    font-size: 13px;
    font-weight: 750;
  }

  .flow-ref-focus-presets {
    display: grid;
    gap: 9px;
    direction: rtl;
  }

  .flow-ref-focus-presets button {
    width: 100%;
    height: 46px;
    justify-content: flex-start;
    padding: 0 14px;
  }

  .flow-ref-focus-presets button span {
    flex: 1;
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .flow-ref-focus-presets button small {
    color: var(--ref-muted);
    font-size: 12px;
    font-weight: 700;
  }

  .flow-ref-focus .start {
    width: 106px;
    height: 46px;
    justify-self: start;
  }

  .flow-ref-press {
    transform: translateY(1px) scale(0.985) !important;
    transition-duration: 90ms !important;
  }

  @media (hover: hover) and (pointer: fine) {
    .flow-ref button:hover,
    .flow-ref-search:hover {
      border-color: rgba(255, 255, 255, 0.28);
      box-shadow:
        0 0 22px rgba(255, 255, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    .flow-ref-nav-item:hover,
    .flow-ref-model:hover,
    .flow-ref-plain:hover,
    .flow-ref-capture-actions button:hover,
    .flow-ref-quick button:hover,
    .flow-ref-focus button:hover,
    .flow-ref-upcoming button:hover,
    .flow-ref-more:hover,
    .flow-ref-filter:hover {
      transform: translateY(-1px);
    }

    .flow-ref-table article:hover {
      border-color: rgba(255, 255, 255, 0.14);
      background: rgba(255, 255, 255, 0.035);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
    }
  }

  /* Density polish: keep the reference layout, but reduce button scale and visual crowding. */
  .flow-ref-title-actions {
    gap: 16px;
  }

  .flow-ref-brand {
    gap: 13px;
  }

  .flow-ref-brand strong {
    font-size: 24px;
  }

  .flow-ref-icon-button,
  .flow-ref-new {
    height: 34px;
    border-radius: 10px;
  }

  .flow-ref-icon-button {
    width: 34px;
    font-size: 18px;
  }

  .flow-ref-new {
    gap: 7px;
    padding: 0 14px;
    font-size: 13px;
  }

  .flow-ref-window-controls {
    gap: 18px;
  }

  .flow-ref-nav {
    gap: 7px;
  }

  .flow-ref-section {
    gap: 7px;
    padding-top: 12px;
  }

  .flow-ref-rail-bottom {
    gap: 7px;
    padding-top: 12px;
  }

  .flow-ref-nav-item,
  .flow-ref-model,
  .flow-ref-plain {
    height: 38px;
    padding: 0 10px 0 7px;
    gap: 9px;
    border-radius: 11px;
  }

  .flow-ref-model,
  .flow-ref-nav-item.slim,
  .flow-ref-plain {
    height: 37px;
  }

  .flow-ref-nav-item svg,
  .flow-ref-model svg,
  .flow-ref-plain svg {
    width: 18px;
    height: 18px;
  }

  .flow-ref-nav-item b,
  .flow-ref-model b,
  .flow-ref-plain b {
    font-size: 13px;
  }

  .flow-ref-nav-item > span,
  .flow-ref-nav-item > small,
  .flow-ref-model > i {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: 11px;
  }

  .flow-ref-main {
    gap: 14px;
  }

  .flow-ref-hero {
    align-items: flex-start;
    padding-top: 23px;
  }

  .flow-ref-hero h1 {
    font-size: 28px;
  }

  .flow-ref-hero h1::before {
    content: "\1F44B\FE0F  ";
  }

  .flow-ref-capture {
    padding: 26px 18px 16px;
    grid-template-rows: 1fr 38px;
    gap: 14px;
  }

  .flow-ref-capture textarea {
    font-size: 16px;
    line-height: 1.5;
  }

  .flow-ref-capture-actions {
    gap: 10px;
  }

  .flow-ref-capture-actions button,
  .flow-ref-view-toggle button,
  .flow-ref-list-toolbar nav button,
  .flow-ref-filter,
  .flow-ref-more,
  .flow-ref-quick button,
  .flow-ref-upcoming button,
  .flow-ref-focus button {
    height: 38px;
    padding: 0 14px;
    gap: 8px;
    border-radius: 9px;
    font-size: 13px;
  }

  .flow-ref-capture-actions button svg,
  .flow-ref-quick button svg,
  .flow-ref-upcoming button svg,
  .flow-ref-focus button svg {
    font-size: 16px;
  }

  .flow-ref-capture-actions .send {
    order: -1;
    min-width: 106px;
    margin-inline-start: 0;
    margin-inline-end: auto;
  }

  .flow-ref-metrics article {
    padding: 13px 23px 12px;
  }

  .flow-ref-metrics span {
    font-size: 13px;
  }

  .flow-ref-metrics strong {
    font-size: 29px;
  }

  .flow-ref-list-panel {
    padding: 12px 13px 20px;
  }

  .flow-ref-list-toolbar {
    gap: 16px;
  }

  .flow-ref-view-toggle button {
    width: 48px;
    height: 34px;
  }

  .flow-ref-list-toolbar nav {
    gap: 14px;
  }

  .flow-ref-list-toolbar nav button {
    width: 72px;
    height: 34px;
    padding: 0 10px;
  }

  .flow-ref-filter {
    width: 156px;
    height: 34px;
    padding: 0 12px;
  }

  .flow-ref-day {
    font-size: 15px;
  }

  .flow-ref-day b {
    min-width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .flow-ref-table article {
    height: 50px;
    grid-template-columns: 32px 36px 72px minmax(250px, 1fr) 32px 78px 26px;
    gap: 8px;
    padding: 0 14px;
  }

  .flow-ref-table article > button {
    width: 22px;
    height: 22px;
  }

  .flow-ref-table i {
    font-size: 21px;
  }

  .flow-ref-table time {
    font-size: 16px;
  }

  .flow-ref-table strong {
    font-size: 14px;
  }

  .flow-ref-table article svg {
    font-size: 17px;
  }

  .flow-ref-table article span {
    min-width: 68px;
    height: 26px;
    padding: 0 11px;
    font-size: 12px;
  }

  .flow-ref-more {
    width: 108px;
    height: 34px;
    padding: 0 12px;
  }

  .flow-ref-card {
    padding: 16px;
  }

  .flow-ref-card h2 {
    margin-bottom: 14px;
    font-size: 17px;
  }

  .flow-ref-quick {
    grid-template-rows: auto 1fr 46px;
    gap: 11px;
  }

  .flow-ref-quick > div {
    gap: 12px;
    direction: ltr;
  }

  .flow-ref-quick button {
    height: 46px;
    direction: rtl;
  }

  .flow-ref-daily > div {
    gap: 11px;
  }

  .flow-ref-daily article {
    height: 78px;
    padding: 13px 10px;
  }

  .flow-ref-daily span {
    font-size: 12px;
  }

  .flow-ref-daily strong {
    font-size: 26px;
  }

  .flow-ref-upcoming {
    gap: 9px;
  }

  .flow-ref-upcoming article {
    height: 40px;
    grid-template-columns: 50px minmax(0, 1fr) 42px;
  }

  .flow-ref-upcoming button {
    height: 34px;
  }

  .flow-ref-focus {
    gap: 10px;
  }

  .flow-ref-focus-grid {
    grid-template-columns: 130px 1fr;
    gap: 18px;
  }

  .flow-ref-ring {
    width: 112px;
    height: 112px;
  }

  .flow-ref-ring strong {
    font-size: 23px;
  }

  .flow-ref-ring span {
    font-size: 12px;
  }

  .flow-ref-focus-presets button {
    height: 42px;
  }

  .flow-ref-focus .start {
    width: 100px;
    height: 40px;
  }

  @media (max-width: 1440px) {
    .flow-ref {
      grid-template-columns: 214px minmax(560px, 1fr) 320px;
      column-gap: 16px;
    }

    .flow-ref-titlebar {
      grid-template-columns: 214px 1fr auto auto;
      gap: 16px;
    }

    .flow-ref-metrics {
      gap: 14px;
    }

    .flow-ref-dock {
      padding-left: 0;
      padding-right: 0;
    }

    .flow-ref-table article.flow-ref-data-row {
      grid-template-columns: 34px minmax(0, 1fr) 94px 84px 68px;
    }
  }

  @media (max-height: 780px) {
    .flow-ref {
      grid-template-rows: 64px minmax(0, 1fr);
    }

    .flow-ref-titlebar {
      height: 64px;
      min-height: 64px;
    }

    .flow-ref-rail {
      padding: 6px 18px 8px;
      gap: 6px;
    }

    .flow-ref-nav {
      gap: 5px;
    }

    .flow-ref-section {
      gap: 4px;
      padding-top: 7px;
      margin-top: 0;
    }

    .flow-ref-section > span {
      display: none;
    }

    .flow-ref-rail-bottom {
      display: none;
    }

    .flow-ref-nav-item,
    .flow-ref-model,
    .flow-ref-plain {
      height: 30px;
      gap: 7px;
      padding-inline: 10px 7px;
      border-radius: 9px;
    }

    .flow-ref-model,
    .flow-ref-nav-item.slim,
    .flow-ref-plain {
      height: 30px;
    }

    .flow-ref-nav-item svg,
    .flow-ref-model svg,
    .flow-ref-plain svg {
      width: 14px;
      height: 14px;
    }

    .flow-ref-nav-item b,
    .flow-ref-model b,
    .flow-ref-plain b {
      font-size: 11.5px;
    }

    .flow-ref-nav-item > span,
    .flow-ref-nav-item > small,
    .flow-ref-model > i {
      min-width: 20px;
      height: 20px;
      padding: 0 5px;
      font-size: 10px;
    }

    .flow-ref-main {
      grid-template-rows: 88px 130px 70px minmax(0, 1fr);
      gap: 9px;
      padding-bottom: 10px;
    }

    .flow-ref-hero {
      height: 88px;
      padding: 18px 22px 0;
    }

    .flow-ref-hero h1 {
      font-size: 25px;
    }

    .flow-ref-hero p {
      margin-top: 4px;
      font-size: 13px;
    }

    .flow-ref-capture {
      height: 130px;
      grid-template-rows: 1fr 34px;
      gap: 8px;
      padding: 18px 16px 12px;
    }

    .flow-ref-capture textarea {
      font-size: 15px;
      line-height: 1.42;
    }

    .flow-ref-capture-actions {
      gap: 8px;
    }

    .flow-ref-capture-actions button,
    .flow-ref-view-toggle button,
    .flow-ref-list-toolbar nav button,
    .flow-ref-filter,
    .flow-ref-more,
    .flow-ref-quick button,
    .flow-ref-upcoming button,
    .flow-ref-focus button {
      height: 34px;
      padding: 0 12px;
      font-size: 12px;
      border-radius: 9px;
    }

    .flow-ref-capture-actions .send {
      min-width: 96px;
    }

    .flow-ref-capture > small {
      left: 30px;
      font-size: 11px;
    }

    .flow-ref-metrics {
      height: 70px;
      gap: 12px;
    }

    .flow-ref-metrics article {
      height: 70px;
      padding: 11px 17px 10px;
      border-radius: 13px;
    }

    .flow-ref-metrics span {
      font-size: 12px;
    }

    .flow-ref-metrics strong {
      font-size: 25px;
    }

    .flow-ref-metrics small {
      font-size: 11px;
    }

    .flow-ref-list-panel {
      grid-template-rows: 44px 32px minmax(0, 1fr) 40px;
      padding: 9px 10px 11px;
    }

    .flow-ref-list-toolbar {
      height: 44px;
      gap: 14px;
    }

    .flow-ref-view-toggle button {
      width: 41px;
      height: 32px;
    }

    .flow-ref-list-toolbar nav {
      gap: 12px;
    }

    .flow-ref-list-toolbar nav button {
      width: 68px;
      height: 32px;
      padding: 0 8px;
    }

    .flow-ref-filter {
      width: 154px;
      height: 32px;
      padding: 0 10px;
    }

    .flow-ref-day {
      height: 32px;
      gap: 10px;
      padding: 0 10px;
      font-size: 13px;
    }

    .flow-ref-day b {
      min-width: 24px;
      height: 24px;
      font-size: 12px;
    }

    .flow-ref-table {
      overflow: hidden auto;
      scrollbar-width: none;
    }

    .flow-ref-table::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    .flow-ref-table article {
      height: 44px;
      grid-template-columns: 28px 31px 59px minmax(170px, 1fr) 28px 66px 23px;
      gap: 7px;
      padding: 0 11px;
      border-radius: 10px;
    }

    .flow-ref-table article > button {
      width: 20px;
      height: 20px;
    }

    .flow-ref-table i {
      font-size: 19px;
    }

    .flow-ref-table time {
      font-size: 14px;
    }

    .flow-ref-table strong {
      font-size: 13px;
    }

    .flow-ref-table article svg {
      font-size: 15px;
    }

    .flow-ref-table article span {
      min-width: 58px;
      height: 24px;
      padding: 0 9px;
      font-size: 11px;
    }

    .flow-ref-more {
      width: 98px;
      height: 40px;
    }

    .flow-ref-dock {
      grid-template-rows: auto auto auto auto;
      padding-top: 9px;
      padding-bottom: 14px;
      gap: 10px;
    }

    .flow-ref-quick {
      min-height: 170px;
      gap: 8px;
    }

    .flow-ref-card {
      padding: 14px;
    }

    .flow-ref-card h2 {
      margin-bottom: 11px;
      font-size: 16px;
    }

    .flow-ref-quick > div {
      gap: 8px;
    }

    .flow-ref-quick .wide {
      height: 36px;
    }

    .flow-ref-upcoming {
      min-height: 162px;
      gap: 7px;
    }

    .flow-ref-upcoming article {
      height: 37px;
      grid-template-columns: 42px minmax(0, 1fr) 35px;
      gap: 7px;
    }

    .flow-ref-upcoming button {
      height: 32px;
    }

    .flow-ref-focus {
      min-height: 194px;
      grid-template-rows: auto 1fr 36px;
      gap: 8px;
    }

    .flow-ref-focus-grid {
      grid-template-columns: 112px 1fr;
      gap: 12px;
    }

    .flow-ref-ring {
      width: 98px;
      height: 98px;
    }

    .flow-ref-ring strong {
      font-size: 21px;
    }

    .flow-ref-focus-presets {
      gap: 7px;
    }

    .flow-ref-focus-presets button {
      height: 36px;
    }

    .flow-ref-focus .start {
      width: 92px;
      height: 34px;
    }
  }

  @media (max-width: 1240px) {
    .flow-ref {
      grid-template-columns: 214px minmax(0, 1fr);
      grid-template-areas:
        "title title"
        "rail main";
      column-gap: 16px;
    }

    .flow-ref-dock {
      display: none;
    }

    .flow-ref-titlebar {
      grid-template-columns: 214px 1fr auto auto;
    }
  }
}

@media (max-width: 860px) {
  .flow-ref {
    display: none !important;
  }
}
