.alc-card {
  min-width: 0;
  padding: clamp(16px, 2.2vw, 24px);
  align-self: start;
  border: 1px solid var(--edge, #d9e1ef);
  border-radius: 18px;
  background: #fff;
}
.alc-header, .alc-agenda > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.alc-header h2 { font-size: clamp(17px, 2vw, 21px); }
.alc-card button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.alc-card button:hover:not(:disabled) { background: #f0f4fd; }
.alc-card button:disabled { cursor: default; opacity: .52; }
.alc-card button:focus-visible, .alc-card a:focus-visible, .alc-card textarea:focus-visible {
  outline: 2px solid var(--accent, #254bd9);
  outline-offset: 2px;
}
.alc-card .alc-today {
  min-height: 34px;
  padding-inline: 10px;
  border: 1px solid var(--edge, #d9e1ef);
  color: var(--muted, #526079);
  font-size: 12px;
  font-weight: 720;
}
.alc-month-nav {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  margin-block: 16px 9px;
  text-align: center;
}
.alc-month-nav h3 { font-size: 15px; font-weight: 750; }
.alc-month-nav button { min-height: 38px; color: #42516c; font-size: 27px; line-height: 1; }
.alc-weekdays, .alc-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; }
.alc-weekdays { margin-bottom: 5px; }
.alc-weekdays span { padding: 4px 0; color: #59667d; font-size: 12px; font-weight: 690; }
.alc-weekdays span:first-child { color: #a74757; }
.alc-weekdays span:last-child { color: #3550a1; }
.alc-days { gap: 2px 3px; }
.alc-days button {
  position: relative;
  min-width: 0;
  min-height: 36px;
  padding: 1px 0 7px;
  border: 1px solid transparent;
  color: #273754;
  font-size: 13px;
  font-weight: 680;
}
.alc-days button[data-outside] { color: #657187; }
.alc-days button[aria-current="date"] { border-color: #a4b9f3; }
.alc-days button[aria-pressed="true"] {
  background: #2345cb;
  color: #fff;
  border-color: transparent;
  font-weight: 760;
}
.alc-days button[aria-pressed="true"]:hover { background: #1a37af; }
.alc-markers {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  inset: auto 0 4px;
  height: 4px;
}
.alc-markers i { display: block; width: 4px; height: 4px; border-radius: 50%; }
.alc-event-mark { background-color: #3559da; }
.alc-memo-mark { background-color: #d18a1b; }
.alc-days button[aria-pressed="true"] .alc-event-mark { background-color: #d5e2ff; }
.alc-days button[aria-pressed="true"] .alc-memo-mark { background-color: #ffdf80; }
.alc-agenda { margin-top: 15px; padding-top: 14px; border-top: 1px solid #e7ebf2; }
.alc-agenda h3 { font-size: 14px; font-weight: 730; overflow-wrap: anywhere; }
.alc-agenda button[data-alc-add] {
  flex: none;
  min-height: 34px;
  padding-inline: 7px;
  color: #2345bd;
  font-weight: 750;
  font-size: 12px;
}
.alc-events, .alc-memos { list-style: none; padding: 0; margin: 9px 0 0; }
.alc-events li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 7px;
  row-gap: 4px;
  padding-block: 8px;
  font-size: 13px;
}
.alc-events li + li { border-top: 1px solid #edf0f5; }
.alc-events a { flex: 1; min-width: 10ch; overflow-wrap: anywhere; color: #233f9f; font-weight: 720; }
.alc-events a:hover { text-decoration: underline; }
.alc-event-type { flex: none; border-radius: 5px; padding: 3px 5px; background: #f0f4fd; color: #304d9d; font-size: 11px; font-weight: 720; }
.alc-event-type[data-kind="assessment"] { background: #f9efff; color: #643796; }
.alc-events time { flex: none; color: var(--muted, #526079); font-size: 12px; }
.alc-memos { display: grid; gap: 7px; }
.alc-memos li {
  display: grid;
  gap: 4px;
  padding: 10px 11px 5px;
  border: 1px solid #f2e1aa;
  border-radius: 8px;
  background: #fff8dd;
  color: #5b420c;
}
.alc-memos p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.55; }
.alc-memos li > div { display: flex; justify-content: flex-end; gap: 4px; }
.alc-memos button { min-height: 30px; padding-inline: 7px; font-size: 12px; font-weight: 700; }
.alc-memos button:hover:not(:disabled) { background: #f5e8b8; }
.alc-empty, .alc-status {
  margin-block: 8px 0;
  color: var(--muted, #526079);
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
}
.alc-status:empty { margin: 0; }
.alc-status.alc-error { color: #a03928; }
.alc-card .alc-retry { min-height: 35px; padding-inline: 8px; color: #2345bd; font-size: 13px; font-weight: 720; }
.alc-dialog {
  box-sizing: border-box;
  width: min(440px, calc(100vw - 30px));
  max-height: calc(100dvh - 30px);
  padding: 20px;
  border: 1px solid var(--edge, #d9e1ef);
  border-radius: 15px;
  background: #fff;
  color: var(--ink, #101b32);
  box-shadow: 0 20px 70px #1327443a;
}
.alc-dialog::backdrop { background: #15213a66; }
.alc-dialog form { display: grid; gap: 9px; }
.alc-dialog header h3 { font-size: 19px; }
.alc-dialog header p, .alc-editor-meta { color: var(--muted, #526079); font-size: 13px; }
.alc-dialog label { font-weight: 720; font-size: 13px; }
.alc-dialog textarea {
  min-width: 0;
  width: 100%;
  resize: vertical;
  padding: 10px 11px;
  border: 1px solid #d6bd75;
  border-radius: 8px;
  background: #fff9e5;
  color: var(--ink, #101b32);
  font: inherit;
  font-size: 16px;
}
.alc-editor-meta, .alc-editor-actions { display: flex; align-items: center; gap: 8px; }
.alc-editor-meta { justify-content: space-between; }
.alc-editor-actions { justify-content: flex-end; margin-top: 4px; }
.alc-editor-actions .button { min-height: 38px; padding-inline: 13px; }
.alc-editor-actions .primary { background: var(--accent, #254bd9); color: #fff; }
.alc-editor-actions .primary:hover:not(:disabled) { background: var(--accent-hover, #1938b0); }
.alc-editor-actions .outlined { border: 1px solid var(--edge, #d9e1ef); }
@media (max-width: 480px) {
  .alc-today:focus-visible, .alc-days button:focus-visible { outline-offset: -2px; }
  .alc-days button { min-height: 35px; }
}
