.cgt .kl-box + .kl-box { margin-top: 16px; }
.cgt .kl-sec-h { flex-wrap: wrap; }
.cgt-add { margin-left: auto; }
.cgt-add[hidden] { display: none; }

.cgt-list { display: flex; flex-direction: column; }
.cgt-it { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 18px 0; }
.cgt-it:first-child { padding-top: 4px; }
.cgt-it + .cgt-it { border-top: 1px solid var(--kl-line); }
.cgt-it.is-editing { grid-template-columns: minmax(0, 1fr); }
.cgt-it.is-editing .cgt-date, .cgt-it.is-editing .cgt-body { display: none; }
.cgt-date { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 2px; }
.cgt-date b { font-size: 22px; line-height: 1; font-weight: 700; color: var(--kl-t1); font-variant-numeric: tabular-nums; }
.cgt-date span { font-size: 12px; font-weight: 600; color: var(--kl-t3); white-space: nowrap; }
.cgt-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cgt-top { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.cgt-t { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--kl-t1); overflow-wrap: anywhere; }
.cgt-st { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 7px; background: #1f1f1f; color: var(--kl-t2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.cgt-st.is-live { color: var(--kl-ok); }
.cgt-st.is-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--kl-ok); }
.cgt-tools { display: inline-flex; gap: 14px; margin-left: auto; }
.cgt-tools .kl-link { margin-left: 0; font-size: 13px; color: var(--kl-t3); }
.cgt-tools .kl-link:hover { color: var(--kl-t1); }
.cgt-tools .cgt-del:hover { color: var(--kl-bad); }
.cgt-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: 15px; color: var(--kl-t3); font-variant-numeric: tabular-nums; }
.cgt-meta b { font-weight: 700; color: var(--kl-t1); }
.cgt-meta span { white-space: nowrap; }
.cgt-where { font-size: 15px; line-height: 1.4; color: var(--kl-t2); overflow-wrap: anywhere; }
.cgt-now { color: var(--kl-ok); font-weight: 700; }
.cgt-who { display: flex; align-items: center; gap: 10px; min-height: 28px; margin-top: 2px; }
.cgt-avs { display: inline-flex; align-items: center; flex: none; }
.cgt-avs a, .cgt-avs em { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--kl-card); background: var(--kl-card2); overflow: hidden; flex: none; }
.cgt-avs a + a, .cgt-avs a + em { margin-left: -8px; }
.cgt-avs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cgt-avs em { display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: var(--kl-t2); }
.cgt-avs:empty { display: none; }
.cgt-n { min-width: 0; font-size: 14px; color: var(--kl-t3); font-variant-numeric: tabular-nums; }
.cgt-n b { font-weight: 700; color: var(--kl-t1); }
.cgt-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-top: 6px; }
.cgt-rsvp button.on { background: #262626; color: var(--kl-t1); }
.cgt-links { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.cgt-links:empty { display: none; }
.cgt-links .kl-link { margin-left: 0; }

.cgt-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; padding: 18px; border: 1px solid var(--kl-line2); border-radius: 14px; background: var(--kl-card2); }
.cgt-form[hidden] { display: none; }
.cgt-it .cgt-form { margin: 0; }
.cgt-f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cgt-f label { font-size: 13px; font-weight: 600; color: var(--kl-t3); }
.cgt-f .text-input { width: 100%; min-width: 0; height: 44px; margin: 0; font-size: 15px; box-sizing: border-box; }
.cgt-f input[type="time"] { color-scheme: dark; }
.cgt-f-half { grid-column: span 2; }
.cgt-f-wide { grid-column: 1 / -1; }
.cgt-form .kl-check { align-items: flex-start; margin-top: 0; }
.cgt-form .kl-check input { margin-top: 3px; }
.cgt-f-acts { display: flex; gap: 10px; }

.cgt-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 10px; padding: 16px; border: 1px solid var(--kl-line2); border-radius: 14px; }
.cgt-mark-h { display: flex; flex-direction: column; gap: 3px; font-size: 15px; font-weight: 700; color: var(--kl-t1); }
.cgt-mark-h span { font-size: 13px; font-weight: 600; color: var(--kl-t3); }
.cgt-mark-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cgt-mark-it { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 10px; border: 1px solid var(--kl-line2); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--kl-t2); cursor: pointer; }
.cgt-mark-it input { width: 16px; height: 16px; margin: 0; accent-color: #fff; }
.cgt-mark-it img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.cgt-mark-it:has(input:checked) { color: var(--kl-t1); border-color: #3a3a3a; }

.cgt-empty { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 18px; }
.cgt-empty b { font-size: 17px; font-weight: 700; color: var(--kl-t1); }
.cgt-empty span { font-size: 14px; line-height: 1.5; color: var(--kl-t3); }
.cgt-rule { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--kl-line); font-size: 13px; line-height: 1.55; color: var(--kl-t3); }

.cgt-prow { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 0; font-size: 15px; }
.cgt-prow + .cgt-prow { border-top: 1px solid var(--kl-line); }
.cgt-pd { font-size: 14px; font-weight: 600; color: var(--kl-t3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cgt-pt { color: var(--kl-t1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cgt-pr { display: inline-flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--kl-t3); white-space: nowrap; }
.cgt-pr b { font-weight: 700; color: var(--kl-ok); }
.cgt-pr small { font-size: 13px; color: var(--kl-t3); }

.cgt-mini-t { font-size: 17px; font-weight: 700; color: var(--kl-t1); overflow-wrap: anywhere; }
.cgt-mini .cgt-meta { margin-top: 4px; gap: 0 8px; font-size: 14px; color: var(--kl-t2); }
.cgt-mini .cgt-meta .cgt-where { margin: 0; white-space: normal; }
.cgt-mini .cgt-where { margin-top: 2px; font-size: 14px; color: var(--kl-t3); }
.cgt-mini .cgt-who { margin-top: 0; }
.cgt-mini .cgt-rsvp button { flex: 1; justify-content: center; padding: 0 6px; font-size: 14px; white-space: nowrap; }
.cgt-mini > .kl-btn { align-self: flex-start; }
.cgt-mini .cgt-mini-go { margin-left: 0; align-self: flex-start; text-align: left; }
.cgt-back { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--kl-t1); font: inherit; cursor: pointer; }
.cgt-back i { font-size: 14px; color: var(--kl-t3); transition: transform .2s var(--kl-ease), color .15s; }
.cgt-back:hover i { color: var(--kl-t1); transform: translateX(-3px); }

@media (max-width: 760px) {
    .cgt-form { padding: 14px; }
    .cgt-f-half { grid-column: 1 / -1; }
    .cgt-form { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .cgt-form .cgt-f:nth-child(3) { grid-column: span 3; }
    .cgt-form .cgt-f:nth-child(4) { grid-column: span 2; }
    .cgt-form .cgt-f:nth-child(5) { grid-column: 1 / span 2; }
    .cgt-form .cgt-f:nth-child(6) { grid-column: 3 / span 3; }
    .cgt-it { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
    .cgt-top { display: contents; }
    .cgt-top .cgt-st { align-self: flex-start; }
    .cgt-date b { font-size: 20px; }
    .cgt-date span { font-size: 11px; }
    .cgt-tools { order: 10; margin: 2px 0 0; gap: 18px; }
    .cgt-acts .cgt-rsvp { width: 100%; }
    .cgt-acts .cgt-rsvp button { flex: 1; justify-content: center; padding: 0 6px; font-size: 14px; white-space: nowrap; }
    .cgt-rule { font-size: 12px; }
    .cgt-prow { grid-template-columns: 52px minmax(0, 1fr); gap: 2px 14px; align-items: start; }
    .cgt-prow .cgt-avs { display: none; }
    .cgt-pt { white-space: normal; }
    .cgt-pr { grid-column: 2; font-size: 13px; }
}
