.lcal-wrap {
    --lcal-border: #d9e2ef;
    --lcal-muted: #5f6b7a;
    --lcal-text: #132238;
    --lcal-accent: #2458d3;
    --lcal-bg: #ffffff;
    color: var(--lcal-text);
    margin: 24px 0;
}

.lcal-export-bar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.lcal-export-form {
    margin: 0;
}

.lcal-export-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d7e1ef;
    border-radius: 999px;
    color: #17324d;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    padding: 8px 14px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.lcal-export-btn:hover {
    border-color: #9ab5d8;
    box-shadow: 0 10px 24px rgba(32, 68, 116, .12);
    transform: translateY(-1px);
}

.lcal-export-badge {
    background: #2458d3;
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    letter-spacing: .08em;
    min-width: 46px;
    padding: 4px 8px;
    text-align: center;
    text-transform: uppercase;
}

.lcal-export-pdf .lcal-export-badge {
    background: #d14343;
}

.lcal-export-docx .lcal-export-badge {
    background: #2f7c4f;
}

.lcal-print-btn .lcal-export-badge {
    background: #4b5563;
}

.lcal-header {
    margin: 0 0 16px;
}

.lcal-eyebrow {
    color: var(--lcal-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.lcal-title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0;
}

.lcal-year-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lcal-month {
  background: var(--lcal-bg);
  border: 1px solid var(--lcal-border);
  border-radius: 8px;
  overflow: hidden;
}

.lcal-table-wrap {
  background: var(--lcal-bg);
  border: 1px solid var(--lcal-border);
  border-radius: 8px;
  overflow-x: auto;
}

.lcal-table {
  border-collapse: collapse;
  width: 100%;
}

.lcal-table th,
.lcal-table td {
  border-bottom: 1px solid var(--lcal-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}

.lcal-table th {
  background: #2d71b8;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.lcal-table tbody tr:nth-child(even) {
  background: #f7f9fc;
}

.lcal-table tbody tr:last-child td {
  border-bottom: 0;
}

.lcal-table-phase {
  align-items: center;
  display: flex;
  gap: 10px;
}

.lcal-month-title {
    background: #2d71b8;
    color: #fff;
    font-size: 15px;
    line-height: 1.2;
    margin: 0;
    padding: 10px 12px;
}

.lcal-phase-list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lcal-phase-item,
.lcal-phase-card,
.lcal-legend-item {
    align-items: center;
    display: flex;
    gap: 10px;
}

.lcal-phase-item {
    border-top: 1px solid #edf2f7;
    min-height: 58px;
    padding: 10px 12px;
}

.lcal-phase-item:first-child {
    border-top: 0;
}

.lcal-today {
    background: #ecfff3;
    box-shadow: inset 4px 0 0 #22c55e;
}

.lcal-phase-icon {
    display: inline-flex;
    flex: 0 0 auto;
    height: 24px;
    width: 24px;
}

.lcal-phase-icon svg {
    display: block;
    height: 24px;
    width: 24px;
}

.lcal-phase-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.lcal-phase-name {
    font-size: 14px;
    line-height: 1.25;
}

.lcal-phase-date,
.lcal-phase-empty {
    color: var(--lcal-muted);
    font-size: 13px;
    line-height: 1.25;
}

.lcal-legend {
    align-items: center;
    background: #f7f9fc;
    border: 1px solid var(--lcal-border);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: 16px;
    padding: 12px;
}

.lcal-legend-item {
    color: var(--lcal-muted);
    font-size: 13px;
}

.lcal-phase-card {
    background: #fff;
    border: 1px solid var(--lcal-border);
    border-radius: 8px;
    color: var(--lcal-text);
    display: inline-flex;
    min-height: 44px;
    padding: 10px 12px;
}

.lcal-faq {
    border: 1px solid var(--lcal-border);
    border-radius: 8px;
    margin: 24px 0;
    overflow: hidden;
}

.lcal-faq-title {
    background: #f7f9fc;
    border-bottom: 1px solid var(--lcal-border);
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
    padding: 14px 16px;
}

.lcal-faq-item {
    border-top: 1px solid #edf2f7;
}

.lcal-faq-item:first-of-type {
    border-top: 0;
}

.lcal-faq-question {
    cursor: pointer;
    font-weight: 700;
    padding: 13px 16px;
}

.lcal-faq-answer {
    color: var(--lcal-muted);
    padding: 0 16px 14px;
}

.lcal-faq-answer p {
    margin: 0;
}

@media (max-width: 520px) {
    .lcal-title {
        font-size: 23px;
    }

    .lcal-year-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .lcal-export-bar {
        display: none !important;
    }

    .lcal-wrap {
        break-inside: avoid;
    }

    .lcal-year-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lcal-month {
        break-inside: avoid;
    }
}
