/* Account access and mobile app surfaces. */
.access-submit {
  width: 100%;
  min-height: 49px;
  margin-top: 18px;
  font-size: 16px;
}
.access-text-button {
  background: none;
  border: 0;
  min-height: 32px;
  padding: 3px 0;
  font-size: 14px;
  color: var(--kt-muted);
}
.access-forgot {
  display: block;
  margin-left: auto;
  margin-top: -6px;
}
.access-divider {
  border-top: 1px solid var(--kt-line);
  text-align: center;
  margin: 28px 0 25px;
  height: 0;
}
.access-divider span {
  position: relative;
  top: -13px;
  padding: 0 13px;
  background: var(--kt-canvas);
  font-size: 14px;
  color: var(--kt-muted-2);
}
.logincard p.access-switch {
  font-size: 15px;
  text-align: center;
  margin: 25px 0 0;
}
.access-switch button {
  border: 0;
  background: none;
  padding: 4px;
  min-height: 32px;
  color: var(--kt-ink-2);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.logincard .field {
  margin: 20px 0;
}
.logincard .field input {
  font-size: 16px;
  min-height: 48px;
}
.logincard .fieldline {
  align-items: center;
}
.logincard .field small {
  font-size: 13px;
}
.logincard p.login-trust {
  font-size: 13px;
  line-height: 1.75;
  margin: 30px 0 0;
  color: var(--kt-muted-2);
}
.logincard .notice {
  font-size: 14px;
  margin-top: 15px;
}
#access-message:not([hidden]) {
  font-size: 14px;
  line-height: 1.7;
  background: var(--kt-line);
  border: 1px solid var(--kt-line);
  padding: 13px 15px;
  border-radius: 10px;
  color: var(--kt-ink-2);
  margin: 20px 0;
}
.access-submit:disabled {
  cursor: not-allowed;
}
.install-app {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  border-color: var(--kt-line);
  color: var(--kt-muted);
  font-size: 13px;
  min-height: 40px;
  margin: 0 0 18px;
  gap: 9px;
}
.install-app .icon {
  width: 17px;
  height: 17px;
}
.install-steps {
  padding-left: 23px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--kt-muted);
}
.install-steps li {
  margin: 18px 0;
}
.mobile-dock {
  display: none;
}
.touch-menu {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.touch-menu button {
  justify-content: flex-start;
  font-size: 16px;
  padding: 15px;
  min-height: 52px;
}
.calendar .calheader {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.calendar .calheader h2 {
  margin-right: auto;
  line-height: 1.4;
}
.calendar-mode {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: var(--kt-canvas);
  border: 1px solid var(--kt-line);
  border-radius: 10px;
}
.calendar-mode button {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--kt-muted-2);
  font-size: 14px;
  padding: 8px 16px;
}
.calendar-mode button.selected {
  background: var(--kt-surface);
  color: var(--kt-ink-2);
  box-shadow: 0 1px 4px #1b30451a;
}
.calendar[data-mode='agenda'] .month-view,
.calendar[data-mode='month'] .agenda-view {
  display: none;
}
.agenda-view {
  padding: 0 25px 25px;
}
.agenda-day {
  margin-top: 25px;
}
.agenda-day > h3 {
  font-size: 16px;
  text-transform: capitalize;
  font-weight: 650;
  margin: 0 0 17px;
  color: var(--kt-muted);
}
.agenda-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--kt-canvas);
  border: 1px solid var(--kt-line);
  border-radius: 12px;
  padding: 18px;
  margin: 0 0 12px;
}
.agenda-item > time {
  font-size: 18px;
  font-weight: 650;
  color: var(--kt-ink-2);
  width: 74px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.agenda-item > img {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.agenda-item > div {
  flex: 1;
  min-width: 0;
}
.agenda-item strong {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.agenda-item p {
  font-size: 14px;
  color: var(--kt-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.agenda-item p .network {
  width: 25px;
  height: 25px;
  border-radius: 6px;
}
.agenda-item p .network svg {
  width: 15px;
  height: 15px;
}
.agenda-item .badge {
  font-size: 12px;
}
.agenda-item > button {
  flex-shrink: 0;
}
.calendar .calday .calevent {
  font-size: 12px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .sidebar {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: 16px;
  }
  .sidebar .brand {
    padding-bottom: 0;
  }
  .sidebar > .nav {
    display: none;
  }
  .main {
    padding-bottom: calc(75px + env(safe-area-inset-bottom));
    scroll-padding-top: 72px;
  }
  .mobile-dock {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 15;
    height: calc(72px + env(safe-area-inset-bottom));
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--kt-surface) 96%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--kt-line);
    box-shadow: 0 -3px 18px #1829420a;
  }
  .mobile-dock button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--kt-muted-2);
    padding: 6px 3px;
    min-height: 48px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
  }
  .mobile-dock .icon {
    width: 22px;
    height: 22px;
  }
  .mobile-dock button.active {
    color: var(--kt-ink);
    background: var(--kt-canvas);
  }
  .mobile-dock button.dock-upload {
    background: var(--kt-accent);
    color: var(--kt-surface);
    margin: 0 6px;
    max-width: 65px;
    box-shadow: 0 2px 7px #21345020;
  }
  .footeractions {
    bottom: calc(80px + env(safe-area-inset-bottom));
    gap: 10px;
  }
  .content,
  .editor-content {
    padding-bottom: 30px !important;
  }
  .pagefooter {
    margin-bottom: 10px;
  }
  .modalback {
    padding: 14px 12px calc(84px + env(safe-area-inset-bottom));
    align-items: center;
  }
  .modal {
    max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));
    overflow-y: auto;
    scrollbar-width: thin;
  }
  .modal .actions {
    position: sticky;
    bottom: -23px;
    padding-top: 14px;
    padding-bottom: 5px;
    background: var(--kt-surface);
    z-index: 2;
  }
  .uploadinput {
    width: 100%;
    font-size: 15px;
    padding: 13px;
    border: 1px dashed var(--kt-line-strong);
    border-radius: 10px;
    min-height: 70px;
    background: var(--kt-canvas);
  }
  .uploadinput::file-selector-button {
    font: inherit;
    background: var(--kt-line);
    color: var(--kt-ink-2);
    border: 1px solid var(--kt-line-strong);
    padding: 10px 12px;
    border-radius: 8px;
    margin-right: 10px;
  }
  .calendar .calheader {
    gap: 11px;
    padding: 17px 14px;
  }
  .calendar .calheader h2 {
    font-size: 20px;
    flex: 1;
    text-align: center;
    margin-right: 0;
    min-width: 160px;
  }
  .calendar .calheader > button {
    min-width: 40px;
    padding: 8px;
  }
  .calendar-mode {
    width: 100%;
    margin-top: 6px;
  }
  .calendar-mode button {
    flex: 1;
    font-size: 14px;
    min-height: 41px;
  }
  .agenda-view {
    padding: 0 14px 16px;
  }
  .agenda-day {
    margin-top: 22px;
  }
  .agenda-day > h3 {
    font-size: 15px;
    margin-bottom: 13px;
  }
  .agenda-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 16px;
    align-items: start;
  }
  .agenda-item > time {
    grid-column: 1;
    grid-row: 1;
    font-size: 16px;
    width: auto;
  }
  .agenda-item > img {
    grid-column: 1;
    grid-row: 2;
    width: 49px;
    height: 63px;
  }
  .agenda-item > div {
    grid-column: 2;
    grid-row: 1/3;
  }
  .agenda-item > button {
    grid-column: 1/-1;
    width: 100%;
    font-size: 14px;
    min-height: 42px;
    margin-top: 7px;
  }
  .agenda-item strong {
    font-size: 16px;
  }
  .agenda-item p {
    font-size: 14px;
  }
  .agenda-item .badge {
    font-size: 12px;
    white-space: normal;
    line-height: 1.5;
  }
  .login {
    grid-template-rows: auto 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 24px 25px;
    display: block;
  }
  .login-story > div:not(.brand),
  .login-caption {
    display: none;
  }
  .login-story .brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .login-story .brand strong {
    font-size: 24px;
  }
  .login-access {
    align-items: flex-start;
    padding: 30px 24px 42px;
  }
  .logincard h2 {
    font-size: 28px;
  }
  .logincard p {
    font-size: 15px;
  }
  .logincard .field {
    margin: 20px 0;
  }
  .access-submit {
    min-height: 49px;
  }
  .logincard .login-trust {
    margin-top: 24px;
  }
  .login .access-text-button {
    font-size: 14px;
  }
}
@media (display-mode: standalone) {
  .install-app {
    display: none;
  }
}
