.bf-attendance{margin:1.25rem 0;background:#ffffff;border:1px solid #e0e0e0;border-radius:18px;padding:1.25rem;color:#000000;font-size:1rem}.bf-attendance *{box-sizing:border-box}.bf-attendance-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.bf-attendance-heading p{font-size:.75rem;font-weight:700;letter-spacing:.12em;color:#5c5c5c;margin:0 0 .35rem}.bf-attendance-heading h3{font-size:1.35rem;margin:0 0 .4rem}.bf-attendance-heading span{font-size:.875rem;color:#5c5c5c;line-height:1.6}.bf-attendance button{font:inherit;font-size:.875rem;border:1px solid #e0e0e0;border-radius:9px;background:#f7f7f7;color:#000000;padding:.55rem .8rem;cursor:pointer;line-height:1.4}.bf-attendance button:hover{background:#f0f0f0}.bf-attendance button:focus-visible,.bf-attendance input:focus-visible,.bf-attendance select:focus-visible,.bf-attendance textarea:focus-visible{outline:3px solid #c4c4c4;outline-offset:2px}.bf-attendance button:disabled{opacity:.55;cursor:wait}.bf-attendance-toolbar{display:flex;align-items:flex-end;gap:.7rem;flex-wrap:wrap;margin:1rem 0}.bf-attendance label{display:flex;flex-direction:column;gap:.35rem;font-size:.875rem;font-weight:600;color:#5c5c5c}.bf-attendance select,.bf-attendance input,.bf-attendance textarea{font:inherit;font-size:.95rem;color:#000000;background:white;border:1px solid #e0e0e0;padding:.6rem .7rem;border-radius:9px;max-width:100%;min-height:2.6rem}.bf-attendance select{appearance:none;padding-right:2rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' fill='none' stroke='%23000000' stroke-width='1.6'/%3E%3C/svg%3E");background-size:14px;background-repeat:no-repeat;background-position:right .6rem center}.bf-attendance-stats{display:flex;flex-wrap:wrap;gap:.6rem 1.3rem;margin:.8rem 0 1rem;font-size:.875rem;color:#5c5c5c}.bf-attendance-stats b{color:#000000;margin:0 .2rem;font-size:1.1rem}.bf-attendance-tabs{display:flex;gap:.5rem;flex-wrap:wrap}.bf-attendance-tabs [aria-pressed=true]{background:#f0f0f0;border-color:#737373;color:#000000;font-weight:700}.bf-attendance-notice:empty{display:none}.bf-attendance-notice{background:#f7f7f7;padding:.75rem;border-radius:9px;font-size:.9rem;line-height:1.55}.bf-attendance-notice.error{background:#f7f7f7;color:#000000}.bf-attendance-list{display:grid;gap:.8rem;margin-top:1rem}.bf-attendance-item,.bf-attendance-case{border:1px solid #f0f0f0;border-radius:12px;padding:1rem;overflow-wrap:anywhere}.bf-attendance-item>header,.bf-attendance-case>header{display:flex;gap:.8rem;align-items:baseline;justify-content:space-between}.bf-attendance-item h4,.bf-attendance-case h4{font-size:1rem;margin:0}.bf-attendance-item header>span,.bf-attendance-case header p{font-size:.875rem;color:#5c5c5c;margin:0 0 .45rem}.bf-attendance-case h4 span{display:inline-block;font-size:.85rem;color:#5c5c5c;margin-left:.6rem;font-weight:400}.bf-attendance-case>p{font-size:.9rem;line-height:1.65;margin:.55rem 0}.bf-attendance-teacher{display:flex;gap:.8rem;justify-content:space-between;align-items:center;margin-top:.8rem}.bf-attendance-teacher small{display:block;margin-top:.3rem;font-size:.875rem;color:#5c5c5c}.bf-attendance-actions{display:flex;gap:.5rem;flex-wrap:wrap}.bf-attendance-status{font-size:.875rem;line-height:1.5;white-space:normal;background:#f7f7f7;color:#5c5c5c;padding:.25rem .5rem;border-radius:6px}.bf-attendance-status.pending{background:#f7f7f7;color:#000000}.bf-attendance-status.resolved{background:#f7f7f7;color:#5c5c5c}.bf-attendance-names{font-size:.875rem;color:#5c5c5c;margin:.5rem 0}.bf-attendance-empty{margin:.5rem 0;padding:1rem;color:#5c5c5c;text-align:center}.bf-attendance-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;background:#f7f7f7;border:1px solid #e0e0e0;padding:1rem;border-radius:10px;margin-top:1rem}.bf-attendance-editor h4,.bf-attendance-editor>p,.bf-attendance-editor>.bf-attendance-actions,.bf-attendance-editor label:has(textarea){grid-column:1/-1}.bf-attendance-editor>p{font-size:.875rem;line-height:1.6;margin:0;color:#5c5c5c}.bf-attendance-editor [data-ta-form-error]{color:#000000}.bf-attendance-editor textarea{resize:vertical;min-height:6rem;width:100%}.bf-attendance-editor .bf-attendance-check{display:flex;flex-direction:row;align-items:center;grid-column:1/-1}.bf-attendance-check input{min-height:initial;accent-color:#000000}.bf-attendance-followups{margin:.8rem 0 0;border-top:1px solid #f0f0f0}.bf-attendance-followups>div{display:flex;justify-content:space-between;align-items:center;gap:.6rem;padding:.75rem 0;border-bottom:1px solid #f0f0f0;font-size:.875rem}.bf-attendance-followups small{display:block;color:#5c5c5c;font-size:.85rem;margin:.35rem 0 0;line-height:1.55}.bf-attendance-history{margin:.8rem 0 0;font-size:.875rem}.bf-attendance-history summary{cursor:pointer;color:#5c5c5c}.bf-attendance-history p{line-height:1.55;margin:.65rem 0;padding-left:.8rem;border-left:2px solid #e0e0e0}.bf-attendance-history time{display:block;color:#5c5c5c;font-size:.8rem;margin-bottom:.15rem}.bf-attendance-loading{padding:1rem;color:#5c5c5c}@media(max-width:650px){.bf-attendance{padding:1rem}.bf-attendance-item>header,.bf-attendance-case>header,.bf-attendance-teacher{align-items:flex-start;flex-direction:column}.bf-attendance-toolbar label{flex:1;min-width:8rem}.bf-attendance-editor{grid-template-columns:1fr}.bf-attendance-actions button{min-height:2.6rem}.bf-attendance-followups>div{align-items:flex-start;flex-direction:column}}

.bf-arrival-card .bf-arrival-date{font-size:12px;color:#666;margin:0 0 4px}
.bf-arrival-time{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:26px;font-weight:750;letter-spacing:-.04em;font-variant-numeric:tabular-nums;line-height:1.2}
.bf-arrival-time>span{font-size:16px;font-weight:400;letter-spacing:0}
.bf-attendance-simple .bf-arrival-card header>.bf-arrival-place{margin:0;border:0;border-radius:7px;background:#eee7ff;padding:6px 10px;color:#000;font-size:12px;font-weight:600;max-width:100%;text-align:center}
.bf-attendance-simple .bf-arrival-card header>.bf-arrival-place.is-online{background:#e4f2ff}
.bf-attendance-simple .bf-arrival-card h4{font-size:18px;line-height:1.4;letter-spacing:-.015em}
.bf-arrival-students{font-size:14px;line-height:1.65;margin:5px 0 16px;color:#5c5c5c}
.bf-arrival-state{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}
.bf-arrival-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650;line-height:1.6;padding:4px 9px;border-radius:6px;background:#f2f2f2;color:#000}
.bf-arrival-badge:before{content:'';display:inline-block;width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor}
.bf-arrival-badge.ready{background:#fff9c4}
.bf-arrival-badge.done{background:#dcfce7}
.bf-arrival-badge.review{background:#ffe4ec}
.bf-arrival-badge.muted{background:#f2f2f2;color:#666}
.bf-arrival-recorded{font-size:12px;line-height:1.5;color:#5c5c5c}

.bf-attendance .lamp-yellow{--ta-lamp:#ffff00}.bf-attendance .lamp-blue{--ta-lamp:#4191ff}.bf-attendance .lamp-green{--ta-lamp:#31bf75}.bf-attendance .lamp-purple{--ta-lamp:#b586ff}.bf-attendance .lamp-red{--ta-lamp:#ff7575}.bf-attendance .lamp-gray{--ta-lamp:#aaa}
.bf-attendance .ta-late-review h4{font-size:1rem;margin:1rem 0 .5rem}
.bf-attendance .ta-late-review details{margin:.7rem 0}

/* Personal arrival mirrors the schedule's time column, with a yellow action on white. */
.bf-attendance.bf-attendance-simple {
  margin: 0 0 18px;
  padding: 0 22px;
  min-width: 0;
  max-width: 100%;
  color: #000;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 16px;
}
.bf-attendance.bf-attendance-simple button,
.bf-attendance.bf-attendance-simple input,
.bf-attendance.bf-attendance-simple select,
.bf-attendance.bf-attendance-simple summary {min-height:44px}
.bf-attendance-simple button {font-weight:600}
.bf-attendance-simple :is(button,input,select,textarea,summary):focus-visible {outline:2px solid #000;outline-offset:2px}
.bf-attendance-simple summary {cursor:pointer;list-style:none}
.bf-attendance-simple summary::-webkit-details-marker {display:none}
.bf-attendance-simple .ta-panel-head {display:flow-root;border-bottom:1px solid #e7e7e7;padding:6px 0}
.ta-panel-head h3 {display:flex;align-items:center;gap:9px;float:left;margin:0;min-height:44px;font-size:21px;line-height:1.25;letter-spacing:-.03em;color:#000}
.ta-panel-head h3::before {content:'';width:5px;height:19px;border-radius:2px;background:#ffff00}
.bf-arrival-filters > summary {display:flex;width:max-content;max-width:calc(100% - 110px);margin-left:auto;align-items:center;justify-content:flex-end;gap:7px;padding:3px 2px 3px 8px;color:#404040;font-size:13px;line-height:1.4;text-align:right}
.bf-arrival-filters > summary::after, .ta-other-lessons > summary::before, .ta-tools summary::before, .ta-more-people > summary::before {content:'';display:inline-block;flex:none;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);margin:0 2px 3px}
.bf-attendance-simple details[open] > summary::before,.bf-arrival-filters[open] > summary::after {transform:rotate(225deg);margin-bottom:-3px}
.bf-arrival-filters .bf-attendance-toolbar {clear:both;align-items:flex-end;margin:3px 0 5px}
.bf-arrival-filters .bf-attendance-toolbar > label {flex:0 1 172px;min-width:0}
.bf-attendance-simple .bf-attendance-list {margin:0;gap:0}
.bf-attendance-simple .bf-arrival-card {background:#fff;border:0;border-radius:0;padding:15px 0}
.bf-attendance-simple .bf-arrival-card + .bf-arrival-card {border-top:1px solid #ededed}
.bf-attendance-simple .ta-session {
  display:grid;
  grid-template-columns:minmax(68px,max-content) minmax(0,1fr) auto;
  grid-template-areas:"time course actions" "time roster actions" "info info info" "note note note" "editor editor editor";
  column-gap:18px;
  align-items:center;
}
.ta-time {grid-area:time;align-self:stretch;display:flex;align-items:flex-start;justify-content:center;flex-direction:column;border-right:1px solid #e5e5e5;padding-right:14px;font-variant-numeric:tabular-nums}
.ta-time strong {font-size:23px;line-height:1.1;letter-spacing:-.04em}
.ta-time > span,.ta-time > small {font-size:12px;color:#5c5c5c}
.ta-time > span {margin-top:2px}
.ta-time > small {margin-bottom:4px}
.ta-course {grid-area:course;min-width:0}
.bf-attendance-simple .ta-course h4 {margin:0;font-size:18px;line-height:1.35;letter-spacing:-.015em}
.ta-meta {display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;margin-top:4px;font-size:12px;line-height:1.45}
.ta-place {background:#f1f1f1;padding:2px 7px;border-radius:6px;font-weight:600}
.bf-attendance .ta-lesson {display:inline-flex;align-items:center;gap:5px;font-weight:650}
.bf-attendance .ta-photo i,.bf-attendance .ta-lesson i {display:inline-block;background:var(--ta-lamp,#888);border:1px solid #303030;border-radius:50%;width:10px;height:10px;flex:none}
.ta-roster {grid-area:roster;min-width:0}
.ta-members {display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px}
.ta-roster:not(:empty) {margin-top:7px}
.ta-member {display:inline-flex;align-items:center;gap:7px;max-width:100%;min-width:0}
.ta-photo {position:relative;display:grid;place-items:center;border-radius:50%;background:#f1f1f1;color:#000;font-weight:650;width:29px;height:29px;flex:none;font-size:12px}
.ta-photo img {width:100%;height:100%;border-radius:50%;object-fit:cover}
.bf-attendance .ta-photo i {position:absolute;right:-1px;bottom:-1px;box-shadow:0 0 0 1px #fff}
.ta-member > span:last-child {min-width:0;font-size:12px;line-height:1.4}
.ta-member strong,.ta-member small {display:block}
.ta-member strong {font-size:13px}
.ta-member small {font-size:11px;color:#555}
.ta-more-people > summary,.ta-tools summary,.ta-other-lessons > summary {display:flex;align-items:center;gap:7px;width:fit-content;max-width:100%;font-size:13px;font-weight:600;line-height:1.4;color:#454545}
.ta-more-people > summary {font-size:12px}
.ta-more-people .ta-members {margin:0 0 7px}
.bf-arrival-card-actions {grid-area:actions;display:flex;flex-direction:column;align-items:flex-end;gap:2px}
.bf-attendance-simple .bf-arrival-primary,.bf-attendance-simple .bf-attendance-editor button[type=submit] {color:#000;background:#ffff00;border:1px solid #000;font-weight:700;border-radius:10px}
.bf-attendance-simple .bf-arrival-primary {padding:8px 14px}
.bf-attendance-simple .bf-arrival-primary:hover,.bf-attendance-simple .bf-attendance-editor button[type=submit]:hover {background:#000;color:#ffff00}
.bf-attendance-simple .bf-arrival-secondary,.bf-attendance-simple .ta-tools > button {color:#555;background:transparent;border:0;padding:5px 7px;font-size:13px}
.bf-attendance-simple .bf-arrival-secondary:hover,.bf-attendance-simple .ta-tools > button:hover {color:#000;background:#f5f5f5}
.bf-attendance-simple .bf-arrival-hint {grid-area:info;margin:6px 0 0;color:#555;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.ta-editor-host {grid-area:editor}
.ta-editor-host:empty {display:none}
.bf-attendance-simple .bf-attendance-editor {margin:10px 0 0}
.bf-attendance-simple .bf-attendance-editor [data-ta-form-error]:empty {display:none}
.bf-attendance-simple .bf-attendance-notice {background:#dcfce7;color:#000}
.bf-attendance-simple .bf-attendance-notice.error {background:#ffe4ec}
.bf-attendance-simple .bf-attendance-empty {text-align:left;margin:0;padding:15px 0;font-size:14px}
.ta-other-lessons,.ta-tools {border-top:1px solid #e7e7e7}
.ta-other-lessons > summary span,.ta-tools summary span {background:#fff9c4;border-radius:6px;padding:2px 6px;color:#000;font-size:12px}
.ta-tools {display:flow-root}
.ta-tools > button {float:right}
.ta-tools .bf-attendance-list {clear:both;gap:8px;margin:8px 0}
.ta-tools .bf-arrival-hint {clear:both;margin:0 0 12px}
.bf-attendance-simple .bf-attendance-case {background:#fafafa}
.bf-attendance-simple .bf-attendance-history > summary {display:flex;align-items:center}
@media(max-width:760px){
 .bf-attendance.bf-attendance-simple {padding:0 14px;margin-bottom:14px}
 .ta-panel-head h3 {font-size:19px}
 .bf-attendance-simple .ta-session {grid-template-columns:minmax(60px,max-content) minmax(0,1fr);grid-template-areas:"time course" "roster roster" "info info" "actions actions" "note note" "editor editor";column-gap:12px}
 .ta-time {padding-right:10px}
 .ta-time strong {font-size:21px}
 .ta-roster:not(:empty) {margin-top:9px}
 .bf-arrival-card-actions {margin-top:8px;flex-direction:row;flex-wrap:wrap;align-items:center;gap:2px 8px}
 .ta-course h4 {overflow-wrap:anywhere}
 .bf-arrival-filters .bf-attendance-toolbar > label {flex:1 1 125px}
 .bf-arrival-filters input,.bf-arrival-filters select {width:100%;min-width:0}
 .bf-attendance-simple .bf-attendance-editor {padding:12px}
}
.ta-private-note {grid-area:note;min-width:0}
.ta-private-note > summary,.ta-report-options > summary {display:flex;align-items:center;gap:6px;font-size:13px;color:#555;line-height:1.45;width:fit-content;max-width:100%}
.ta-private-note > summary::before,.ta-report-options > summary::before {content:'›';font-size:16px}
.ta-private-note[open] > summary::before,.ta-report-options[open] > summary::before {transform:rotate(90deg)}
.ta-private-note p {background:#f7f7f7;border-radius:8px;margin:0 0 5px;padding:7px 10px;line-height:1.55;font-size:13px;overflow-wrap:anywhere}
.ta-report-options > div {display:flex;flex-direction:column;align-items:stretch}
