/* Razem shares the page rhythm and quiet white panels of Zapisane and Znajomi. */
.product-mode .razem-shell {
  width: min(100%, 1180px);
}
.product-mode .razem-shell__head {
  margin-bottom: 8px !important;
}
.product-mode .razem-shell__head h1 {
  margin-top: 8px;
  font-size: clamp(30px, 3.5vw, 42px) !important;
  letter-spacing: -.035em;
}
.product-mode .razem-shell__head p {
  margin-top: 9px;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.product-mode .razem-shell__head .razem-button--add {
  min-height: 44px;
  padding: 10px 16px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}
.product-mode .razem-privacy {
  margin: 0 0 22px !important;
  font-size: 12px !important;
}
.product-mode .razem-privacy summary {
  width: fit-content;
  padding: 4px 0;
  color: #5b6d85;
  opacity: .9;
}
.product-mode .razem-privacy summary:hover { color: #0b1c34; opacity: 1; }
.product-mode .razem-privacy summary:focus-visible {
  outline: 2px solid #386caa;
  outline-offset: 3px;
  border-radius: 3px;
}
.product-mode .razem-section,
.product-mode .razem-archive {
  box-sizing: border-box;
  margin: 0 0 24px !important;
  padding: 26px 28px 28px;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(10, 27, 52, .045);
}
.product-mode .razem-section > header {
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
}
.product-mode .razem-section > header h2 {
  margin: 0;
  font-size: 22px !important;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.product-mode .razem-section > header > small,
.product-mode .razem-archive > summary span {
  display: grid;
  min-width: 23px;
  height: 23px;
  margin: 0;
  padding: 0 6px;
  place-items: center;
  border-radius: 6px;
  background: #eef2f7 !important;
  color: #52657d !important;
  font-size: 11px !important;
  font-weight: 750;
}
.product-mode .razem-filters {
  display: flex;
  gap: 24px;
  margin: 20px 0 0;
  border-bottom: 1px solid #e3e9f1;
}
.product-mode .razem-filters .razem-filter {
  position: relative;
  min-height: 46px;
  padding: 0 2px 12px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #5b6d85 !important;
  font-size: 12px;
  font-weight: 750;
}
.product-mode .razem-filters .razem-filter:hover,
.product-mode .razem-filters .razem-filter[aria-pressed=true] {
  color: #0b1c34 !important;
}
.product-mode .razem-filters .razem-filter[aria-pressed=true]::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #386caa;
  content: '';
}
.product-mode .razem-section--discover .razem-empty {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  justify-items: start !important;
  gap: 4px 20px !important;
  margin: 0;
  padding: 22px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}
.product-mode .razem-section--discover .razem-empty strong {
  grid-column: 1;
  margin: 0;
  font-size: 16px !important;
  line-height: 1.3;
}
.product-mode .razem-section--discover .razem-empty p {
  grid-column: 1;
  max-width: none;
  margin: 0;
  font-size: 13px !important;
}
.product-mode .razem-section--discover .razem-empty .razem-button {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 40px;
  margin: 0;
  padding: 9px 14px;
  border-color: #d8e3ef;
  border-radius: 8px !important;
  background: #f5f8fc !important;
  color: #0b1c34 !important;
  font-size: 12px !important;
}
.product-mode .razem-section--discover .razem-empty .razem-button:hover { background: #eaf1f9 !important; }
.product-mode .razem-card-grid,
.product-mode .razem-section--mine .razem-own-list,
.product-mode .razem-archive .razem-own-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-top: 20px;
}
.product-mode .razem-section--mine .razem-own-card,
.product-mode .razem-card,
.product-mode .razem-archive .razem-own-card {
  min-width: 0;
  border: 1px solid #e3e9f1 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(10, 27, 52, .025) !important;
}
.product-mode .razem-section--mine .razem-own-card { padding: 20px !important; }
.product-mode .razem-section--mine .razem-own-card__head h3 {
  margin: 0 0 3px !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
}
.product-mode .razem-section--mine .razem-own-card__head > div { gap: 5px !important; }
.product-mode .razem-section--mine .razem-own-card__head > div > span,
.product-mode .razem-section--mine .razem-own-card__head p {
  font-size: 12px !important;
  line-height: 1.5 !important;
}
.product-mode .razem-section--mine .razem-own-card > .razem-own-description {
  display: -webkit-box;
  margin: 15px 0 14px !important;
  overflow: hidden;
  color: #52647a;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.product-mode .razem-section--mine .razem-own-card > .razem-people { margin: 0 0 15px !important; }
.product-mode .razem-section--mine .razem-avatar { border-radius: 8px !important; }
.product-mode .razem-section--mine .razem-details-open {
  align-self: flex-end;
  width: auto;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 13px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #f5f8fc;
  color: #0b1c34;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
}
.product-mode .razem-section--mine .razem-details-open:hover { background: #eaf1f9; }
.product-mode .razem-archive { margin-bottom: 32px !important; }
.product-mode .razem-archive > summary {
  min-height: 32px;
  padding: 0;
  font-family: var(--font-d);
  font-size: 22px;
  line-height: 1.2;
}
.product-mode .razem-archive > summary::before { order: 2; margin: 0 0 0 12px; }
.product-mode .razem-archive > summary span { order: 3; margin-left: auto; font-family: var(--font-b); }
.product-mode .razem-archive[open] > summary { padding-bottom: 20px; border-bottom: 1px solid #e3e9f1; }
.product-mode .razem-archive > .razem-own-list { padding-top: 0; }
.product-mode .razem-archive .razem-own-card { padding: 20px !important; }
.product-mode .razem-archive .razem-own-card__head { padding: 0 !important; border: 0 !important; }

@media (max-width: 720px) {
  .product-mode .razem-shell__head { gap: 14px !important; }
  .product-mode .razem-shell__head h1 { font-size: 29px !important; }
  .product-mode .razem-shell__head p { font-size: 13px !important; }
  .product-mode .razem-shell__head .razem-button--add { font-size: 12px !important; }
  .product-mode .razem-privacy { margin-bottom: 18px !important; }
  .product-mode .razem-section,
  .product-mode .razem-archive {
    margin-bottom: 16px !important;
    padding: 19px 16px;
    border-radius: 13px;
  }
  .product-mode .razem-section > header h2,
  .product-mode .razem-archive > summary { font-size: 20px !important; }
  .product-mode .razem-filters { gap: 20px; margin-top: 17px; }
  .product-mode .razem-card-grid,
  .product-mode .razem-section--mine .razem-own-list,
  .product-mode .razem-archive .razem-own-list {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    margin-top: 16px;
  }
  .product-mode .razem-section--mine .razem-own-card { padding: 17px !important; }
  .product-mode .razem-section--mine .razem-own-card__head h3 { font-size: 18px !important; }
  .product-mode .razem-section--mine .razem-own-card__head > div > span,
  .product-mode .razem-section--mine .razem-own-card__head p { font-size: 11px !important; }
  .product-mode .razem-section--discover .razem-empty {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 18px !important;
  }
  .product-mode .razem-section--discover .razem-empty .razem-button {
    grid-column: 1;
    grid-row: 3;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-mode .razem-filters .razem-filter,
  .product-mode .razem-section--mine .razem-details-open { transition: none; }
}

/* Meeting form uses the same quiet menu treatment as Saved. */
.product-mode .razem-create-dialog .razem-dialog__intro { align-items: center; }
.product-mode .razem-create-dialog .razem-dialog__intro > span { align-self: center; }
.product-mode .razem-create-dialog .razem-meeting-picker__status,
.product-mode .razem-create-dialog .razem-meeting-picker__attribution { text-align: right; }
.product-mode .razem-create-dialog .razem-form-select { position: relative; }
.product-mode .razem-create-dialog .razem-form-select__native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.product-mode .razem-create-dialog .razem-form-select__native[hidden] { display: none; }
.product-mode .razem-create-dialog .razem-form-select__menu { position: relative; margin-top: 5px; }
.product-mode .razem-create-dialog .razem-form-select__menu > summary {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #cdd8e6;
  border-radius: 8px;
  background: #fff;
  color: #0b1c34;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.product-mode .razem-create-dialog .razem-form-select__menu > summary::-webkit-details-marker { display: none; }
.product-mode .razem-create-dialog .razem-form-select__menu > summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: #52657d;
}
.product-mode .razem-create-dialog .razem-form-select__menu[open] > summary {
  border-color: #8faeca;
  box-shadow: 0 0 0 3px rgba(56, 108, 170, .1);
}
.product-mode .razem-create-dialog .razem-form-select__menu[open] > summary svg { transform: rotate(180deg); }
.product-mode .razem-create-dialog .razem-form-select__menu > summary:focus-visible {
  outline: 2px solid #35678f;
  outline-offset: 2px;
}
.product-mode .razem-create-dialog .razem-form-select__menu > summary[aria-disabled="true"] {
  background: #f3f6fa;
  color: #75859a;
  cursor: default;
}
.product-mode .razem-create-dialog .razem-form-select__options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 12;
  padding: 5px;
  border: 1px solid #d8e3ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(10, 27, 52, .14);
}
.product-mode .razem-create-dialog .razem-form-select__options button {
  display: block;
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #41546e;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.product-mode .razem-create-dialog .razem-form-select__options button:hover,
.product-mode .razem-create-dialog .razem-form-select__options button:focus-visible { background: #f0f5fa; color: #0b1c34; }
.product-mode .razem-create-dialog .razem-form-select__options button[aria-pressed="true"] { background: #eaf2fb; color: #183e67; font-weight: 750; }

/* App-styled date and time pickers replace platform-dependent native popups. */
.product-mode .razem-create-dialog .razem-date-time { position: relative; }
.product-mode .razem-create-dialog .razem-date-time.is-open { z-index: 30; }
.product-mode .razem-create-dialog .razem-date-time__trigger {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid #cdd8e6;
  border-radius: 8px;
  background: #fff;
  color: #0b1c34;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.product-mode .razem-create-dialog .razem-date-time.is-empty .razem-date-time__trigger { color: #72829a; }
.product-mode .razem-create-dialog .razem-date-time__trigger svg { width: 16px; height: 16px; flex: 0 0 auto; color: #52657d; }
.product-mode .razem-create-dialog .razem-date-time__trigger:hover { border-color: #8faeca; }
.product-mode .razem-create-dialog .razem-date-time__trigger[aria-expanded="true"] { border-color: #8faeca; box-shadow: 0 0 0 3px rgba(56, 108, 170, .1); }
.product-mode .razem-create-dialog .razem-date-time__trigger:focus-visible { outline: 2px solid #35678f; outline-offset: 2px; }
.product-mode .razem-create-dialog .razem-date-time__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  box-sizing: border-box;
  width: 100%;
  min-width: min(285px, calc(100vw - 64px));
  padding: 11px;
  border: 1px solid #d8e3ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(10, 27, 52, .17);
}
.product-mode .razem-create-dialog .razem-date-time__panel[hidden] { display: none; }
.product-mode .razem-create-dialog .razem-date-time.is-up .razem-date-time__panel { top: auto; bottom: calc(100% + 6px); }
.product-mode .razem-create-dialog .razem-date-time__month { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.product-mode .razem-create-dialog .razem-date-time__month strong { color: #0b1c34; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.product-mode .razem-create-dialog .razem-date-time__month button {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dce5ef;
  border-radius: 7px;
  background: #fff;
  color: #355676;
  cursor: pointer;
}
.product-mode .razem-create-dialog .razem-date-time__month button:first-child svg { transform: rotate(180deg); }
.product-mode .razem-create-dialog .razem-date-time__month button:disabled { opacity: .4; cursor: default; }
.product-mode .razem-create-dialog .razem-date-time__month button svg { width: 15px; height: 15px; }
.product-mode .razem-create-dialog .razem-date-time__calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.product-mode .razem-create-dialog .razem-date-time__weekday { display: grid; height: 24px; place-items: center; color: #77879c; font-size: 10px; font-weight: 750; }
.product-mode .razem-create-dialog .razem-date-time__calendar button {
  display: grid;
  min-width: 0;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #233c58;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.product-mode .razem-create-dialog .razem-date-time__calendar button:hover,
.product-mode .razem-create-dialog .razem-date-time__calendar button:focus-visible,
.product-mode .razem-create-dialog .razem-date-time__month button:not(:disabled):hover { background: #eef4fb; }
.product-mode .razem-create-dialog .razem-date-time__calendar button[aria-pressed="true"] { background: #193b60; color: #fff; }
.product-mode .razem-create-dialog .razem-date-time__calendar button:disabled { color: #b0bccb; cursor: default; }
.product-mode .razem-create-dialog .razem-date-time__time { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.product-mode .razem-create-dialog .razem-date-time__time-column { min-width: 0; }
.product-mode .razem-create-dialog .razem-date-time__time-column > strong { display: block; margin: 0 0 5px; color: #60728a; font-size: 10px; }
.product-mode .razem-create-dialog .razem-date-time__time-list { max-height: 192px; overflow-y: auto; overscroll-behavior: contain; padding: 3px; border: 1px solid #e3eaf3; border-radius: 8px; }
.product-mode .razem-create-dialog .razem-date-time__time-list button {
  display: block;
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #334b66;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.product-mode .razem-create-dialog .razem-date-time__time-list button:hover,
.product-mode .razem-create-dialog .razem-date-time__time-list button:focus-visible { background: #eef4fb; }
.product-mode .razem-create-dialog .razem-date-time__time-list button[aria-pressed="true"] { background: #193b60; color: #fff; }
.product-mode .razem-create-dialog .razem-date-time__clear { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 0; border-top: 1px solid #e5ebf3; background: transparent; color: #526c8b; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.product-mode .razem-create-dialog .razem-date-time__clear:hover { color: #0b1c34; }

@media (max-width: 720px) {
  .product-mode .razem-create-dialog .razem-date-time__trigger { min-height: 44px; font-size: 12px; }
  .product-mode .razem-create-dialog .razem-date-time__calendar button { height: 38px; }
}
