html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.app-navbar {
  position: relative;
  z-index: 20;
  min-height: 58px;
  padding: 8px 18px;
  background: #ffffff;
  border-bottom: 1px solid #eef1f6;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.app-navbar-brand {
  display: inline-flex;
  margin-right: 0;
  padding-bottom: 0;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}

.app-navbar-brand:hover,
.app-navbar-brand:focus {
  color: #445be7;
}

.app-navbar-toggler {
  width: 38px;
  height: 34px;
  padding: 0;
  border: 1px solid #e4e8f0;
  border-radius: 999px;
  box-shadow: none;
}

.app-navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(68, 91, 231, 0.18);
}

.app-navbar-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.app-save-status {
  margin-top: 1px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.app-save-status.text-success {
  color: #667085 !important;
}

.app-nav-link {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.app-nav-link:hover,
.app-nav-link:focus {
  color: #445be7;
}

.app-navbar .navbar-collapse {
  position: absolute;
  top: calc(100% + 8px);
  right: 18px;
  width: min(220px, calc(100vw - 36px));
  padding: 8px;
  border: 1px solid #e4e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.16);
}

.app-navbar .navbar-nav {
  gap: 2px;
}

.app-navbar .app-nav-link {
  padding: 9px 12px;
  border-radius: 6px;
}

.app-navbar .app-nav-link:hover,
.app-navbar .app-nav-link:focus {
  background: #f7f9fc;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 18px;
  background: #fbfcfe;
  border-bottom: 1px solid #eef1f6;
  color: #344054;
  flex-wrap: wrap;
}

.local-workspace-banner {
  padding: 10px 18px;
  border-bottom: 1px solid #dbe7ff;
  background: #eef4ff;
  color: #475467;
  font-size: 13px;
}

.local-workspace-banner strong {
  color: #344054;
}

.cal-view-switcher {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #e4e8f0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.cal-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 17px;
  border: 1px solid #e4e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.cal-view-switcher .cal-nav-btn {
  min-width: 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cal-nav-btn:hover {
  background: #f7f9fc;
}

.cal-nav-btn.active {
  background: #445be7;
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(68, 91, 231, 0.25);
}

.cal-nav-icon {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.cal-nav-action {
  min-width: 66px;
}

.cal-date-label {
  font-size: 18px;
  font-weight: 600;
  color: #667085;
}

.cal-date-label {
  margin-left: auto;
  flex-basis: 100%;
  color: #475467;
}

.calendar-view-shell {
  padding: 14px;
}

@media (min-width: 768px) {
  .cal-toolbar {
    flex-wrap: nowrap;
  }

  .cal-date-label {
    flex: 1 1 auto;
    text-align: right;
  }

  .calendar-view-shell {
    padding: 20px 24px 24px;
  }
}

@media (max-width: 575.98px) {
  .cal-toolbar {
    gap: 8px;
    padding: 12px;
  }

  .cal-view-switcher {
    width: 100%;
  }

  .cal-view-switcher .cal-nav-btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    font-size: 12px;
  }

}

@media (max-width: 575.98px) and (orientation: portrait) {
  .cal-view-switcher [data-view="twoWeek"],
  .cal-view-switcher [data-view="week"] {
    display: none;
  }
}

.projects-shell {
  min-height: calc(100vh - 132px);
  padding: 24px;
  background: #f8fafc;
}

.projects-frame {
  width: 100%;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.projects-toolbar {
  padding: 22px 22px 0;
}

.projects-toolbar-inner {
  display: grid;
  width: 100%;
  gap: 12px;
}

.projects-toolbar-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.projects-toolbar-group {
  display: grid;
  gap: 7px;
}

.projects-toolbar-label {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.projects-list-picker {
  flex: 1 1 420px;
  max-width: 560px;
}

.projects-select {
  width: 100%;
  min-height: 42px;
  border-color: #d9dee8;
  border-radius: 8px;
  color: #1f2937;
  font-size: 15px;
}

.projects-name {
  width: 100%;
  min-height: 44px;
  border-color: #d9dee8;
  border-radius: 8px;
  color: #1f2937;
  font-size: 15px;
}

.projects-select:focus,
.projects-name:focus {
  border-color: #445be7;
  box-shadow: 0 0 0 3px rgba(68, 91, 231, 0.12);
}

.projects-list-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.project-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.project-toolbar-btn:hover,
.project-toolbar-btn:focus {
  border-color: #98a2b3;
  background: #f8fafc;
  color: #1f2937;
}

.project-toolbar-btn-primary {
  border-color: #445be7;
  background: #445be7;
  color: #ffffff;
}

.project-toolbar-btn-primary:hover,
.project-toolbar-btn-primary:focus {
  border-color: #3446c7;
  background: #3446c7;
  color: #ffffff;
}

.project-toolbar-btn-danger {
  color: #b42318;
}

.project-toolbar-btn-danger:hover,
.project-toolbar-btn-danger:focus {
  border-color: #fecdca;
  background: #fff4f2;
  color: #912018;
}

.projects-options {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid #e4e8f0;
  border-radius: 8px;
  background: #f8fafc;
  flex-wrap: wrap;
}

.projects-options-row {
  align-items: center;
  justify-content: space-between;
}

.projects-view-switcher {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid #e4e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.projects-view-switcher .project-toolbar-btn {
  min-height: 38px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.projects-view-switcher .project-toolbar-btn.active {
  background: #344054;
  color: #ffffff;
}

.project-name-modal {
  border: 1px solid #d9dee8;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(16, 24, 40, 0.18);
}

.project-dialog-field + .project-dialog-field {
  margin-top: 14px;
}

.projects-check-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 10px;
  margin: 0;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.projects-board {
  width: 100%;
  margin: 18px 0 0;
  padding: 22px;
  border: 0;
  border-top: 1px solid #eef1f6;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.project-list-table {
  display: grid;
  gap: 8px;
}

.project-list-row,
.project-add-list-row {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) 118px auto auto auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid #d9dee8;
  border-left-width: 5px;
  border-radius: 8px;
  background: #ffffff;
}

.project-list-main {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.project-list-title-input {
  min-height: 24px;
  font-size: 14px;
  line-height: 1.2;
}

.project-list-memo-input {
  min-height: 20px;
  max-height: 72px;
  font-size: 12px;
  line-height: 1.25;
}

.project-list-priority-select {
  min-width: 0;
  width: 118px;
  font-size: 12px;
}

.project-list-priority-badge {
  display: none;
}

.project-add-list-row {
  grid-template-columns: auto 1fr;
  border-style: dashed;
  border-left-width: 1px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.project-add-list-row span:first-child {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #eef0f3;
  color: #1f2937;
  font-size: 18px;
  line-height: 1;
}

.project-add-list-row:hover,
.project-add-list-row:focus {
  border-color: #98a2b3;
  background: #f8fafc;
}

.project-card,
.project-add-card {
  min-height: 340px;
  border: 1px solid #d9dee8;
  border-left-width: 5px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(16, 24, 40, 0.08);
}

.project-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 14px;
  padding: 30px 26px 22px;
}

.project-priority-urgent {
  border-left-color: #f04438;
}

.project-priority-high {
  border-left-color: #445be7;
}

.project-priority-normal {
  border-left-color: #12b76a;
}

.project-priority-low {
  border-left-color: #98a2b3;
}

.project-card-top,
.project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card-footer {
  justify-content: space-between;
}

.project-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.project-priority-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #445be7;
  font-size: 12px;
  font-weight: 800;
}

.project-priority-urgent .project-priority-badge {
  background: #fff4f2;
  color: #d92d20;
}

.project-priority-normal .project-priority-badge {
  background: #ecfdf3;
  color: #039855;
}

.project-priority-low .project-priority-badge {
  background: #f2f4f7;
  color: #667085;
}

.project-card-delete {
  width: 28px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #98a2b3;
  font-size: 20px;
  line-height: 1;
}

.project-card-delete:hover,
.project-card-delete:focus {
  border-color: #fecdca;
  background: #fff4f2;
  color: #b42318;
}

.project-title-input,
.project-memo-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1f2937;
  letter-spacing: 0;
}

.project-title-input {
  min-height: 54px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
}

.project-memo-input {
  min-height: 60px;
  resize: vertical;
  color: #667085;
  font-size: 14px;
}

.project-title-input:focus,
.project-memo-input:focus {
  outline: 0;
  box-shadow: inset 0 -1px 0 #445be7;
}

.project-priority-select {
  min-width: 120px;
}

.project-card > .project-priority-select {
  width: 128px;
  min-height: 34px;
  padding-top: 4px;
  padding-bottom: 4px;
  color: #475467;
  font-size: 12px;
}

.project-star-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  color: #667085;
  cursor: pointer;
}

.project-star-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.project-star-input span {
  color: #667085;
  font-size: 24px;
  line-height: 1;
}

.project-star-input input:checked + span {
  color: #445be7;
}

.project-add-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 1px dashed #d0d5dd;
  border-left-width: 1px;
  color: #667085;
  font-size: 15px;
}

.project-add-card-icon {
  display: inline-grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #eef0f3;
  color: #1f2937;
  font-size: 28px;
  line-height: 1;
}

.project-add-card:hover,
.project-add-card:focus {
  border-color: #98a2b3;
  background: #f8fafc;
}

.project-card.is-complete {
  opacity: 0.72;
}

.project-list-row.is-complete {
  opacity: 0.72;
}

.project-card.is-complete .project-title-input,
.project-list-row.is-complete .project-title-input {
  color: #98a2b3;
  text-decoration: line-through;
}

.project-group-label {
  padding: 30px 2px 12px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.projects-empty {
  padding: 30px 12px;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  color: #667085;
  text-align: center;
}

@media (max-width: 720px) {
  .projects-shell {
    padding: 12px;
  }

  .projects-frame {
    width: calc(100% - 24px);
  }

  .projects-toolbar {
    padding: 14px 12px 0;
  }

  .projects-toolbar-inner {
    width: 100%;
  }

  .projects-list-picker,
  .projects-options {
    width: 100%;
    flex-basis: 100%;
    margin-left: 0;
  }

  .projects-list-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .project-toolbar-btn {
    min-width: 0;
    padding: 0 8px;
  }

  .projects-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .projects-view-switcher {
    width: 100%;
  }

  .projects-view-switcher .project-toolbar-btn {
    flex: 1 1 0;
  }

  .projects-check-toggle {
    grid-column: 1 / -1;
  }

  .projects-board {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-add-card {
    min-height: 260px;
  }

  .project-title-input {
    min-height: 48px;
    font-size: 17px;
  }

  .project-list-row {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .project-list-priority-select {
    display: none;
  }

  .project-list-priority-badge {
    display: inline-flex;
  }

  .project-list-title-input {
    min-height: 24px;
    font-size: 14px;
  }
}

.calendar-month-grid {
  min-height: calc(100vh - 132px);
}

.cal-day-layout {
  display: flex;
  min-height: 300px;
}

.cal-day-tasks {
  flex: 0 0 62%;
  padding: 16px;
  border-right: 1px solid #e5e7eb;
}

.cal-day-memos {
  flex: 0 0 38%;
  padding: 16px;
  background: #fafafa;
}

.radar-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  min-height: calc(100vh - 132px);
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.radar-list-pane {
  min-width: 0;
  border-right: 1px solid #e5e7eb;
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #eef1f6;
}

.radar-header h2,
.radar-detail-pane h2 {
  margin: 0;
  color: #344054;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.radar-header span,
.radar-detail-kicker,
.radar-row-meta {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.radar-filters {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #eef1f6;
}

.radar-filters button {
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #e4e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.radar-filters button.active {
  border-color: #445be7;
  background: #eef4ff;
  color: #344054;
}

.radar-rows {
  display: flex;
  flex-direction: column;
}

.radar-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-height: 72px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  border-left: 3px solid #d0d5dd;
  background: #ffffff;
  text-align: left;
}

.radar-row:hover,
.radar-row.active {
  background: #f7f9fc;
  border-left-color: #445be7;
}

.radar-row-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.radar-row-title {
  min-width: 0;
  overflow: hidden;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-row-memo {
  display: -webkit-box;
  overflow: hidden;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.radar-detail-pane {
  min-width: 0;
  padding: 18px;
  background: #fafafa;
}

.radar-detail-kicker {
  margin-bottom: 8px;
  text-transform: uppercase;
}

.radar-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.radar-detail-memo {
  margin-top: 18px;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

.radar-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.radar-empty,
.radar-filter-empty {
  padding: 28px 16px;
  color: #667085;
}

.radar-empty {
  min-height: calc(100vh - 132px);
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.radar-empty-title {
  margin-bottom: 4px;
  color: #344054;
  font-size: 18px;
  font-weight: 700;
}

.radar-empty-copy {
  margin-bottom: 16px;
  font-size: 13px;
}

@media (max-width: 575.98px) {
  .cal-day-layout {
    flex-direction: column;
    min-height: 0;
  }

  .cal-day-tasks {
    flex: none;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
  }

  .cal-day-memos {
    flex: none;
    padding: 12px;
  }

  .radar-layout {
    display: block;
    min-height: 0;
  }

  .radar-list-pane {
    border-right: 0;
  }

  .radar-detail-pane {
    display: none;
  }

  .radar-row-main {
    flex-direction: column;
    gap: 2px;
  }

  .radar-row-title,
  .radar-row-meta {
    width: 100%;
  }
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
