.ec-page { --ec-ink: #24334a; container: excel-calendar / inline-size; }
.ec-page .pt-hero { background: linear-gradient(115deg, #184f42, #327c68); }
.ec-templates { margin-top: 22px; }
.ec-template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ec-page .ec-template { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 16px; border: 2px solid #e1e8e5; border-radius: 12px; background: #fff; }
.ec-template > span:last-child { font-weight: 400; font-size: 12px; color: #52627a; }
.ec-template-icon { font-size: 30px; line-height: 1; color: #376d98; }
.ec-template-pastel .ec-template-icon { color: #548b71; }
.ec-template-memo .ec-template-icon { color: #8867a6; }
.ec-page .ec-template[aria-pressed="true"] { border-color: #28765f; background: #f0f8f4; }
.ec-workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); align-items: start; gap: 18px; margin-top: 18px; }
.ec-workspace > .pt-card { margin-top: 0; }
.ec-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; }
.ec-full { grid-column: 1 / -1; }
.ec-fields > div { min-width: 0; }
.ec-fields input, .ec-fields select { min-width: 0; }
.ec-page .ec-fields input[type="color"] { width: 100%; height: 44px; padding: 5px; cursor: pointer; }
.ec-checks { margin-top: 18px; display: grid; gap: 8px; }
.ec-checks label { display: flex; align-items: center; gap: 8px; }
.ec-preview-card { min-width: 0; }
.ec-preview-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ec-preview-heading h2 { margin: 0; }
.ec-preview-heading > div { max-width: 180px; }
#ec-preview { overflow: auto; max-height: 780px; padding: 12px; background: #f5f7f9; border: 1px solid #dce4ea; border-radius: 8px; }
.ec-table { border-collapse: collapse; table-layout: fixed; background: white; }
.ec-page .ec-table td { padding: 3px 6px; text-align: left; vertical-align: top; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.3; color: #24334a; border: var(--ec-border-width) var(--ec-border-style) var(--ec-border); }
.ec-page .ec-table .ec-style-0, .ec-page .ec-table .ec-style-1 { border: 0; background: white; }
.ec-page .ec-table .ec-style-1 { text-align: center; vertical-align: middle; font-size: 20px; font-weight: 700; }
.ec-page .ec-table .ec-style-2 { background: var(--ec-header); color: var(--ec-header-ink); text-align: center; vertical-align: middle; font-weight: 700; }
.ec-page .ec-table :is(.ec-style-4,.ec-style-5,.ec-style-6,.ec-style-8) { border-bottom: 0; }
.ec-page .ec-table :is(.ec-style-7,.ec-style-16) { border-top: 0; }
.ec-page .ec-table :is(.ec-style-5,.ec-style-14) { color: #c43442; }
.ec-page .ec-table :is(.ec-style-6,.ec-style-15) { color: #285fad; }
.ec-page .ec-table :is(.ec-style-8,.ec-style-16) { background: #f5f7fa; }
.ec-page .ec-table .ec-style-9 { background: var(--ec-header); color: var(--ec-header-ink); font-weight: 700; }
.ec-page .ec-table tr:last-child td { border-bottom: var(--ec-border-width) var(--ec-border-style) var(--ec-border); }
.ec-after-workspace-ad .winj-manual-ad-wrap { margin: 40px auto; }
@media(max-width: 1000px) { .ec-workspace { grid-template-columns: minmax(0, 1fr); } .ec-fields { grid-template-columns: repeat(4,minmax(0,1fr)); } .ec-full { grid-column: span 2; } }
@media(max-width: 600px) { .ec-template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .ec-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } .ec-page .ec-template { padding: 12px; } .ec-preview-heading > div { max-width: 145px; } }
/* Navigation and ad rails can narrow the tool even on a wide screen. */
@container excel-calendar (max-width: 960px) {
  .ec-workspace { grid-template-columns: minmax(0, 1fr); }
  .ec-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ec-full { grid-column: span 2; }
}
@container excel-calendar (max-width: 600px) {
  .ec-template-grid, .ec-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ec-template { padding: 12px; }
  .ec-preview-heading > div { max-width: 145px; }
}
