/* PickChick operating workspace. Brand and finance semantics are intentionally separate. */
:root {
  --bg: #f5f7fb;
  --side: #04143a;
  --text: #15233d;
  --muted: #5d6b82;
  --border: #e0e6ef;
  --hi: #f1f4f9;
  --accent: #ff6900;
  --blue: #0047bb;
}
::selection {
  background: #dbe8ff;
  color: #04143a;
}
input,
textarea {
  caret-color: var(--blue);
}
* {
  scrollbar-color: #acb9ce transparent;
  scrollbar-width: thin;
}
:focus-visible {
  outline: 3px solid #0047bb;
  outline-offset: 3px;
}
h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 16px;
}
.shell {
  grid-template-columns: 232px minmax(0, 1fr);
}
.sidebar {
  padding: 22px 14px 16px;
  border: 0;
  color: #fff;
  gap: 20px;
}
.sidebar .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 12px 12px;
}
.brand img {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
}
.sidebar .brand small {
  color: #b8c9ed;
  font-size: 12px;
}
.nav-primary {
  gap: 5px;
}
.sidebar .nav-item {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: #c2cee6;
  font-size: 13px;
  gap: 12px;
  border-radius: 8px;
}
.nav-item::before {
  content: none;
}
.nav-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.sidebar .nav-item.active {
  background: #0047bb;
  color: #fff;
  font-weight: 600;
}
.sidebar .nav-item:hover:not(:disabled) {
  background: #19315a;
  color: #fff;
}
.sidebar .nav-item.active:hover {
  background: #0052d6;
}
.sidebar :focus-visible {
  outline-color: #ff9d57;
}
.sidebar .user {
  border-color: #29406b;
  gap: 6px;
  padding: 18px 12px 0;
}
.sidebar .user strong {
  color: #fff;
  font-size: 13px;
}
.sidebar .user .muted {
  color: #b8c9ed;
  font-size: 12px;
}
.sidebar .user .button {
  color: #dce6fa;
  border-color: #3b527d;
  min-height: 38px;
}
.sidebar .user .button:hover {
  background: #19315a;
}
.topbar {
  padding: 26px 32px 20px;
  gap: 16px 24px;
  background: var(--bg);
  border: 0;
  flex-wrap: wrap;
}
.topbar .page-title {
  flex: 1 1 360px;
  min-width: 0;
}
.topbar h1 {
  margin: 0 0 5px;
}
.topbar p {
  margin: 0;
  font-size: 13px;
  max-width: 65ch;
}
.topbar > .field {
  min-width: 190px;
  max-width: 290px;
  flex: 0 1 260px;
}
.header-tools {
  flex-basis: 100%;
  align-items: end;
  justify-content: flex-start;
  padding-top: 8px;
}
.header-tools .header-period {
  flex: 1 1 520px;
  max-width: 620px;
}
.header-tools .header-shift {
  flex: 1 1 280px;
  max-width: 340px;
}
.header-tools .op-periods {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  min-height: 52px;
}
.header-tools .op-periods button {
  flex: 1 0 auto;
  min-height: 44px;
}
.header-tools > .button,
.header-tools .header-shift select {
  min-height: 52px;
}
.header-tools > .button {
  flex: 0 0 auto;
}
.header-tools .header-shift::after {
  bottom: 23px;
}
.header-filter-hint {
  flex-basis: 100%;
}
.header-tools .date-range {
  justify-content: flex-start;
}
@media (max-width: 600px) {
  .header-tools .header-period {
    flex-basis: 100%;
    max-width: 100%;
  }
  .header-tools .header-shift {
    flex: 1 1 180px;
    max-width: none;
  }
}
.content {
  padding: 12px 32px 40px;
  gap: 22px;
}
.button {
  background: #fff;
  min-height: 42px;
  padding: 10px 16px;
  border-color: #ccd5e3;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.button:hover:not(:disabled) {
  background: #edf2fa;
  border-color: #a5b6d0;
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #231307;
}
.button.primary:hover:not(:disabled) {
  background: #ff812b;
  border-color: #ff812b;
}
button:disabled {
  cursor: not-allowed;
}
.field {
  gap: 7px;
  min-width: 0;
}
.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #3b4a63;
  line-height: 20px;
}
input:not([type='checkbox']),
select,
textarea {
  border: 1px solid #c8d3e3;
  background-color: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  min-width: 0;
}
input:not([type='checkbox']),
select {
  min-height: 44px;
}
select {
  appearance: none;
  padding-right: 34px;
}
.field:has(> select) {
  position: relative;
}
.field:has(> select)::after {
  content: '';
  position: absolute;
  right: 15px;
  bottom: 19px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #5d6b82;
  border-bottom: 1.5px solid #5d6b82;
  transform: rotate(45deg);
  pointer-events: none;
}
input::placeholder,
textarea::placeholder {
  color: #69778c;
}
.panel {
  border-color: var(--border);
  border-radius: 12px;
  box-shadow: none;
}
.panel-head {
  padding: 18px 20px;
}
.notice {
  border-radius: 10px;
  font-size: 13px;
}
.op-periods {
  background: #e8edf5;
  border: 0;
  padding: 4px;
  border-radius: 10px;
}
.op-periods button {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 12px;
  border-radius: 7px;
}
.op-periods .selected {
  background: #fff;
  color: var(--blue);
}
.stat {
  padding: 18px 20px;
  border-color: var(--border);
}
.stat strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
table {
  font-variant-numeric: tabular-nums;
}
th {
  color: #5d6b82;
  background: #f7f9fc;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 13px 16px;
}
td {
  padding: 14px 16px;
  border-color: #e9edf4;
}
tbody tr:hover {
  background: #f7faff;
}
.table-scroll {
  overscroll-behavior-x: contain;
}
.finance-workspace {
  gap: 20px;
}
.finance-filters {
  padding: 16px 18px 12px;
}
.finance-workspace input:not([type='checkbox']),
.finance-workspace select {
  height: 44px;
  min-height: 44px;
  font-size: 13px;
}
.finance-workspace .field:has(> select)::after {
  bottom: 19px;
}
.finance-period-filter,
.finance-journal-filter {
  gap: 14px;
}
.finance-period-filter > .button,
.finance-journal-filter > .button {
  min-height: 44px;
  padding: 10px 18px;
}
.finance-quick-periods {
  gap: 8px;
  margin-top: 10px;
}
.finance-period-shortcut {
  padding: 7px 10px;
  font-size: 12px;
  min-height: 36px;
}
.finance-tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 1px;
  flex-wrap: wrap;
}
.finance-tabs .button {
  flex: 0 1 auto;
  border: 0;
  border-radius: 0;
  min-height: 46px;
  padding: 12px 16px;
  font-size: 13px;
  color: #5d6b82;
}
.finance-tabs .button.selected,
.finance-tabs .button.selected:hover:not(:disabled) {
  color: var(--blue);
  background: transparent;
  box-shadow: inset 0 -3px var(--blue);
}
.finance-tabs .button:hover:not(:disabled) {
  color: var(--blue);
  background: #eaf0fa;
}
.finance-source {
  margin: -6px 0 0;
  color: #5d6b82;
  font-size: 12px;
}
.finance-heading h2 {
  margin: 0;
}
.finance-overview,
.finance-charts {
  gap: 20px;
}
.finance-overview-block {
  padding: 22px;
}
.finance-overview-block h3 {
  margin: 0;
}
.finance-key-values {
  margin: 16px 0 6px;
}
.finance-key-values > div {
  gap: 12px;
  padding: 10px 0;
  border-color: #e9edf4;
}
.finance-key-values dt {
  color: #5d6b82;
  font-size: 13px;
}
.finance-key-values dd {
  font-weight: 500;
  font-size: 16px;
}
.finance-key-values > div:last-child {
  padding-top: 16px;
}
.finance-key-values > div:last-child dt {
  color: var(--text);
  font-weight: 600;
  max-width: 20ch;
}
.finance-key-values > div:last-child dd {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.finance-link {
  text-decoration: none;
  font-weight: 500;
}
.finance-link:hover {
  text-decoration: underline;
}
.finance-chart {
  padding: 22px;
}
.finance-chart h3 {
  margin: 0 0 8px;
}
.finance-track {
  height: 7px;
  background: #eaf0fa;
}
.finance-track span {
  background: #0047bb;
}
.finance-chart-data > summary {
  color: #0047bb;
  font-size: 12px;
}
.finance-journal-filters {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.finance-journal-table {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.finance-journal-table table {
  min-width: 920px;
}
.finance-journal-table th {
  white-space: nowrap;
}
.finance-journal-table td {
  padding: 15px 16px;
  vertical-align: middle;
}
.finance-journal-table .finance-link {
  padding: 0;
  font-weight: 600;
  line-height: 1.5;
}
.finance-journal-table small {
  margin-top: 4px;
  font-size: 12px;
}
.entry-badge {
  display: inline-block;
  padding: 4px 8px;
  color: #246449;
  background: #eaf5ee;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
}
.entry-badge.voided {
  color: #805c39;
  background: #f8eee1;
}
.finance-pagination {
  gap: 8px;
}
.finance-pagination > span {
  flex: 1 1 300px;
  font-size: 12px;
}
.finance-editor {
  gap: 18px;
  max-width: 1040px;
}
.finance-editor > p {
  margin: 0;
  max-width: 75ch;
}
.finance-extra {
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 16px;
}
.finance-extra .finance-form-grid {
  padding-bottom: 16px;
}
.finance-effect {
  background: #edf4ff;
  border-color: #ccdff9;
}
.finance-sheet {
  padding: 0;
  overflow: hidden;
}
.finance-sheet > h3 {
  padding: 20px 20px 0;
}
.finance-sheet > p {
  padding: 0 20px;
}
.finance-detail-values {
  padding: 18px;
  background: #f7f9fc;
  border-radius: 10px;
}
.finance-history-list > li {
  padding-bottom: 20px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(380px, 1fr);
  gap: 0;
  padding: 0;
  background: #fff;
}
.login-intro {
  justify-self: stretch;
  align-self: stretch;
  background: #04143a;
  color: #fff;
  padding: max(40px, 9vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.login-intro img {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 48px;
}
.login-intro p.login-tagline {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 36px;
  max-width: 12ch;
  line-height: 1.1;
  margin: 0 0 24px;
}
.login-intro p {
  color: #bccded;
  font-size: 16px;
  max-width: 30ch;
  margin: 0;
  line-height: 1.65;
}
.login-card {
  align-self: center;
  justify-self: center;
  width: min(100%, 440px);
  max-width: 440px;
  border: 0;
  background: #fff;
  box-shadow: none;
  padding: 40px;
  border-radius: 0;
}
.login-card h1 {
  font-size: 28px;
}
.login-card > p {
  line-height: 1.65;
  font-size: 13px;
}
.login-card > p:last-child {
  margin-top: 24px;
  font-size: 12px;
}
.login-form {
  margin-top: 26px;
}
.login-form .button.primary {
  min-height: 48px;
}
@container finance (max-width: 759px) {
  .finance-tabs .button {
    flex: 1 1 calc(33.33% - 8px);
    padding: 10px 8px;
    font-size: 12px;
  }
  .finance-key-values > div:last-child dd {
    font-size: 16px;
  }
}
@container finance (max-width: 479px) {
  .finance-quick-periods {
    display: flex;
    flex-wrap: wrap;
  }
  .finance-period-shortcut {
    flex: 1 1 auto;
  }
  .finance-overview-block,
  .finance-chart {
    padding: 18px;
  }
  .finance-key-values > div {
    flex-wrap: wrap;
  }
  .finance-key-values dd {
    margin-left: auto;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 208px minmax(0, 1fr);
  }
  .topbar {
    padding: 24px 24px 16px;
  }
  .content {
    padding: 8px 24px 32px;
  }
}
@media (max-width: 800px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 12px 16px 8px;
    gap: 12px;
  }
  .sidebar .brand {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0;
  }
  .brand img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
  }
  .sidebar .brand small {
    max-width: 16ch;
    font-size: 12px;
  }
  .sidebar .user {
    padding: 0;
  }
  .sidebar .user .muted {
    display: none;
  }
  .navigation {
    max-width: 100%;
  }
  .nav-primary {
    gap: 6px;
  }
  .sidebar .nav-item {
    width: auto;
    padding: 10px 12px;
    min-height: 42px;
    font-size: 12px;
  }
  .nav-icon {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
  .topbar {
    padding: 22px 16px 16px;
  }
  .topbar .page-title {
    flex-basis: 100%;
  }
  .topbar > .field {
    flex: 1 1 100%;
    max-width: none;
  }
  .content {
    padding: 0 16px 32px;
  }
  h1 {
    font-size: 22px;
  }
  .login-page {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }
  .login-intro {
    padding: 24px;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
  .login-intro img {
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 12px;
  }
  .login-intro p.login-tagline {
    display: block;
    font-size: 22px;
    margin: 0;
  }
  .login-intro p {
    display: none;
  }
  .login-card {
    padding: 28px 24px;
  }
}
@media (forced-colors: active) {
  select {
    appearance: auto;
  }
  .field:has(> select)::after {
    display: none;
  }
  .finance-tabs .button.selected {
    border-bottom: 3px solid Highlight;
  }
}

.mobile-navigation-toggle {
  display: none;
}
@media (max-width: 800px) {
  .sidebar .brand {
    grid-row: 1;
    grid-column: 1;
  }
  .sidebar .user {
    grid-row: 1;
    grid-column: 2;
  }
  .mobile-navigation-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
    grid-row: 2;
    border: 1px solid #3b527d;
    color: #dce6fa;
    background: transparent;
    border-radius: 8px;
    padding: 10px 12px;
    min-height: 44px;
    text-align: left;
  }
  .navigation {
    display: none;
    grid-row: 3;
  }
  .navigation.is-open {
    display: block;
  }
  .nav-primary {
    flex-direction: column;
    overflow: visible;
  }
  .sidebar .nav-item {
    width: 100%;
  }
  .finance-workspace:has(.finance-editor) > .finance-filters {
    display: none;
  }
}
@media (max-width: 800px) {
  .button,
  .finance-workspace .button,
  .finance-tabs .button,
  .finance-period-shortcut,
  .sidebar .nav-item,
  .sidebar .user .button,
  .mobile-navigation-toggle,
  .op-periods button,
  .login-reveal {
    min-height: 48px;
  }
  input:not([type='checkbox']),
  select,
  .finance-workspace input:not([type='checkbox']),
  .finance-workspace select {
    height: 48px;
    min-height: 48px;
  }
  .field:has(> select)::after,
  .finance-workspace .field:has(> select)::after {
    bottom: 21px;
  }
}

/* Games of the app (owner 15.11.2026): cover thumbnails in the list and the editor. */
.game-cover {
  display: block;
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2, #f2f2f2);
}
.game-cover-preview .game-cover {
  width: 100%;
  max-width: 320px;
}
