
#taskmenu a.calendar:before {
  content: "\f073";
}
#rnk-cal-wrap {
  padding: 18px 22px;
  max-width: 1280px;
  margin: 0 auto;
  overflow-y: auto;
  height: 100%;
}
.rnk-cal-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.rnk-cal-title-block h2 { margin: 0; font-size: 1.35rem; font-weight: 700; }
.rnk-cal-title-block p { margin: 2px 0 0; font-size: 0.85rem; opacity: 0.78; }
.rnk-cal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rnk-cal-sync-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(139,92,246,0.35);
  background: rgba(139,92,246,0.08);
  margin-bottom: 14px;
  font-size: 0.82rem;
}
.rnk-badge-caldav {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  margin-right: 6px;
}
.rnk-sync-label { opacity: 0.85; margin-right: 6px; }
#rnk-caldav-url-code { font-size: 0.8rem; word-break: break-all; }
.rnk-cal-alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 600;
}
.rnk-cal-alert.is-ok { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.4); color: #10b981; }
.rnk-cal-alert.is-error { background: rgba(244,63,94,0.15); border: 1px solid rgba(244,63,94,0.4); color: #f43f5e; }
.rnk-cal-grid-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 16px;
}
@media (max-width: 960px) {
  .rnk-cal-grid-layout { grid-template-columns: 1fr; }
}
.rnk-cal-month-card, .rnk-cal-sidebar-card {
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 12px;
  padding: 14px;
  background: rgba(15,23,42,0.03);
}
.rnk-cal-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.rnk-cal-month-header h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.rnk-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.7;
  padding-bottom: 6px;
}
.rnk-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.rnk-cal-day {
  min-height: 82px;
  border: 1px solid rgba(148,163,184,0.2);
  border-radius: 8px;
  padding: 5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rnk-cal-day:hover { border-color: #7c3aed; }
.rnk-cal-day.is-empty { border: none; cursor: default; }
.rnk-cal-day.is-today { border-color: #0284c7; background: rgba(2,132,199,0.08); }
.rnk-day-num { font-size: 0.78rem; font-weight: 700; }
.rnk-day-pill {
  font-size: 0.72rem;
  padding: 2px 5px;
  border-radius: 4px;
  background: #7c3aed;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rnk-day-more { font-size: 0.7rem; opacity: 0.75; }
.rnk-cal-sidebar-card h4 { margin: 0 0 10px; font-size: 0.98rem; font-weight: 700; }
.rnk-events-list { display: flex; flex-direction: column; gap: 8px; max-height: 490px; overflow-y: auto; }
.rnk-ev-item {
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 8px;
  padding: 8px 10px;
}
.rnk-ev-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 0.85rem; }
.rnk-del-ev { border: none; background: transparent; color: #f43f5e; font-weight: 700; font-size: 1rem; cursor: pointer; }
.rnk-ev-meta { font-size: 0.75rem; opacity: 0.75; margin-top: 3px; }
.rnk-muted { font-size: 0.82rem; opacity: 0.72; }
.rnk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2,6,23,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rnk-modal-box {
  background: #fff;
  color: #0f172a;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  max-height: 90vh;
  overflow-y: auto;
}
html.dark-mode .rnk-modal-box {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
}
.rnk-modal-wide { max-width: 620px; }
.rnk-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rnk-modal-head h4 { margin: 0; font-weight: 700; }
.rnk-close-x { border: none; background: transparent; font-size: 1.4rem; cursor: pointer; color: inherit; }
.rnk-modal-form { display: flex; flex-direction: column; gap: 10px; font-size: 0.86rem; }
.rnk-modal-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.rnk-modal-form input[type="text"],
.rnk-modal-form input[type="number"],
.rnk-modal-form input[type="password"],
.rnk-modal-form input[type="url"],
.rnk-modal-form input[type="datetime-local"],
.rnk-modal-form textarea {
  padding: 7px 10px;
  border-radius: 7px;
  border: 1px solid #cbd5e1;
  font-size: 0.86rem;
  width: 100%;
}
html.dark-mode .rnk-modal-form input,
html.dark-mode .rnk-modal-form textarea {
  background: #020617;
  color: #f8fafc;
  border-color: #334155;
}
.rnk-checkbox-inline { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.rnk-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rnk-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.rnk-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.rnk-tab {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
}
.rnk-tab.active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.rnk-helper { font-size: 0.8rem; opacity: 0.85; margin: 0; }
