.asg-section { margin-top: var(--space-md); }
.asg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asg-head .section-label { margin: 0; }
.asg-count {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--color-primary); color: #fff;
  font-size: 12px; line-height: 20px; text-align: center; vertical-align: middle;
}
.asg-empty { color: var(--color-text-muted); font-size: var(--font-size-sm); margin: 8px 0; }
.asg-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.asg-item {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 10px 12px;
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.asg-item--admin { flex-direction: column; align-items: stretch; }
.asg-item__row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.asg-item--done { opacity: .78; }
.asg-item__body { flex: 1; min-width: 0; cursor: default; }
.asg-item--admin .asg-item__body { cursor: pointer; }
.asg-item__title { font-weight: 700; color: var(--color-text); overflow-wrap: anywhere; }
.asg-item__meta { font-size: var(--font-size-sm); color: var(--color-text-secondary); margin-top: 2px; }
.asg-item__words { font-size: var(--font-size-sm); color: var(--color-text); margin-top: 2px; overflow-wrap: anywhere; }
.asg-item__note { font-size: var(--font-size-sm); color: var(--color-text-muted); margin-top: 4px; font-style: italic; overflow-wrap: anywhere; }
.asg-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.asg-start-btn { min-height: 40px; min-width: 72px; }
.asg-del-btn { min-width: 40px; min-height: 40px; flex-shrink: 0; }
.asg-due--late { color: #c0392b; font-weight: 600; }
.asg-due--soon { color: #a15c00; font-weight: 600; }

.asg-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--color-surface-2, rgba(0,0,0,.05)); color: var(--color-text-secondary); white-space: nowrap;
}
.asg-badge--done { background: #e8f5e9; color: #2e7d32; }
.asg-badge--late { background: #fdecea; color: #c0392b; }
[data-theme="dark"] .asg-badge--done { background: #0a3a0a; color: #81c784; }
[data-theme="dark"] .asg-badge--late { background: #4a1208; color: #ef9a9a; }
[data-theme="dark"] .asg-due--late { color: #ef9a9a; }
[data-theme="dark"] .asg-due--soon { color: #ffcc80; }

.asg-table-wrap { overflow-x: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
.asg-table { width: 100%; border-collapse: collapse; font-size: var(--font-size-sm); }
.asg-table th, .asg-table td { text-align: left; padding: 6px 6px; border-top: 1px solid var(--color-border); vertical-align: top; }
.asg-table th { color: var(--color-text-muted); font-weight: 600; white-space: nowrap; border-top: 0; }
.asg-td-name { font-weight: 600; max-width: 150px; overflow-wrap: anywhere; }
.asg-td-sub { font-weight: 400; font-size: 11px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.asg-td-muted { color: var(--color-text-muted); font-style: italic; }
.asg-perword { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.asg-pw { padding: 0 4px; border-radius: 4px; font-size: 13px; background: rgba(160,140,125,.18); }
.asg-pw--l1, .asg-pw--l2 { background: rgba(217,138,28,.25); }
.asg-pw--l3, .asg-pw--l4 { background: rgba(76,175,80,.25); }
.asg-pw--l5, .asg-pw--l6, .asg-pw--l7 { background: rgba(46,125,50,.45); }

.asg-sheet { max-height: min(88vh, 760px); overflow-y: auto; }
.asg-words-head { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.asg-words {
  max-height: 34vh; overflow-y: auto; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 4px; margin-bottom: 4px;
}
.asg-word { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 6px; cursor: pointer; min-height: 40px; }
.asg-word:hover { background: var(--color-surface-2, rgba(0,0,0,.04)); }
.asg-word input { width: 18px; height: 18px; flex-shrink: 0; }
.asg-word__char { font-weight: 700; font-size: 18px; min-width: 2.2em; }
.asg-word__py { color: var(--color-text-secondary); font-size: var(--font-size-sm); min-width: 4em; }
.asg-word__en { color: var(--color-text-muted); font-size: var(--font-size-sm); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asg-note-input { resize: vertical; min-height: 44px; font-family: inherit; }

.asg-home { margin-top: 8px; }
.asg-home__label { font-size: var(--font-size-sm); font-weight: 700; color: var(--color-text-secondary); margin: 4px 2px; }
.asg-home__more { margin-top: 4px; }

.hw-fixes { border-top: 1px solid var(--color-border); padding-top: 10px; }
.hw-fix-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--color-primary); color: #1a0e08; font-size: 11px; line-height: 18px; text-align: center; }
.hw-fix-done { font-size: 12px; color: var(--cp-lime, #6a9a3a); text-align: right; }
.hw-fix-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hw-fix { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 8px 10px; min-width: 0; }
.hw-fix__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hw-fix__mark { width: 18px; flex-shrink: 0; font-weight: 700; text-align: center; }
.hw-fix__row--wrong .hw-fix__mark { color: var(--cp-magenta, #c0392b); }
.hw-fix__row--wrong .hw-fix__zh { color: var(--color-text-secondary); text-decoration: line-through; text-decoration-color: var(--cp-magenta, #c0392b); }
.hw-fix__row--right .hw-fix__mark { color: var(--cp-lime, #2e7d32); }
.hw-fix__zh { flex: 1; min-width: 0; font-family: 'Noto Sans SC', sans-serif; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.hw-fix__en { margin: 2px 0 0 26px; font-size: 13px; color: var(--color-text-secondary); }
.hw-fix__why { margin: 4px 0 0 26px; font-size: 13px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.hw-fix__kind { display: inline-block; margin-right: 4px; padding: 0 6px; border: 1px solid var(--color-border); border-radius: 999px; font-size: 11px; color: var(--color-text-secondary); white-space: nowrap; }
.hw-fix-words { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.hw-fix-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 12px; border: 1.5px solid var(--color-primary); border-radius: 999px; background: transparent; color: var(--color-text); font-size: 15px; cursor: pointer; }
.hw-fix-chip span[lang="zh"] { font-family: 'Noto Sans SC', sans-serif; font-size: 17px; }
.hw-fix-chip__py { font-size: 12px; color: var(--color-text-secondary); }
.hw-fix-chip__st { color: var(--color-primary); font-weight: 700; }
.hw-fix-chip--in { border-color: var(--color-border); cursor: default; opacity: .8; }
.hw-fix-chip--in .hw-fix-chip__st { color: var(--cp-lime, #2e7d32); }
.hw-fix-words .hw-add-all-btn { min-height: 40px; }
.hw-fix-practise { min-height: 48px; margin-top: 4px; }
.hw-revisit { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 12px 14px; text-align: left; cursor: pointer;
  background: var(--color-surface); border: 1.5px solid var(--color-primary); border-radius: var(--radius-md); color: var(--color-text); font: inherit; }
.hw-revisit__icon { font-size: 22px; color: var(--color-primary); flex-shrink: 0; }
.hw-revisit__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; color: var(--color-text-secondary); }
.hw-revisit__body strong { font-size: 15px; color: var(--color-text); }
.asg-insights { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 14px; }
.asg-box { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px 12px; min-width: 0; }
.asg-box__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.asg-box__title { font-weight: 700; color: var(--color-text); }
.asg-box__sub { font-size: 12px; color: var(--color-text-muted); }
.asg-heat__note { margin: 6px 0 0; font-size: 12px; color: var(--color-text-muted); font-style: italic; }
.asg-heat__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.asg-heat__item { border-radius: var(--radius-sm); }
.asg-heat__item--open { background: rgba(255, 178, 74, .06); }
.asg-heat__row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 4px 6px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.asg-heat__sw { width: 12px; height: 28px; border-radius: 3px; flex-shrink: 0; background: rgba(160,140,125,.3); }
.asg-drill-word .asg-heat__sw { height: 14px; width: 8px; }
.asg-heat--1 { background: #d8c24a; }
.asg-heat--2 { background: #f0a030; }
.asg-heat--3 { background: #ff7a3a; }
.asg-heat--4 { background: #ff4a5a; }
.asg-heat__char { font-family: 'Noto Sans SC', sans-serif; font-size: 22px; font-weight: 700; min-width: 2.2em; }
.asg-heat__mid { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.asg-heat__py { font-size: 13px; color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asg-heat__stats { font-size: 12px; color: var(--color-text-muted); }
.asg-heat__who { font-size: 12px; color: var(--cp-magenta, #c0392b); white-space: nowrap; flex-shrink: 0; }
.asg-heat__detail { padding: 0 6px 8px 28px; font-size: 13px; color: var(--color-text-secondary); display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.asg-heat__drill { margin-top: 10px; min-height: 44px; }
.asg-heat__cold { margin: 8px 0 0; font-size: 12px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.asg-heat__cold span { font-family: 'Noto Sans SC', sans-serif; font-size: 14px; color: var(--color-text-secondary); }
.asg-focus { color: var(--color-primary); font-weight: 600; }
.asg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.asg-chip { min-height: 40px; padding: 4px 12px; border: 1.5px solid var(--color-border); border-radius: 999px; background: transparent; color: var(--color-text-secondary); font: inherit; font-size: 14px; cursor: pointer; }
.asg-chip--on { border-color: var(--color-primary); color: var(--color-text); background: rgba(255, 178, 74, .12); font-weight: 700; }
.asg-drill-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.asg-drill-word { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 999px; cursor: pointer; }
.asg-drill-word input { width: 18px; height: 18px; }
.asg-drill-word span[lang="zh"] { font-family: 'Noto Sans SC', sans-serif; font-size: 18px; }
.asg-sheet__lead { font-size: 13px; color: var(--color-text-secondary); margin: 0 0 8px; }
.asg-goal__row { display: flex; align-items: center; gap: 12px; margin-top: 6px; min-width: 0; }
.asg-goal__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; color: var(--color-text-secondary); overflow-wrap: anywhere; }
.asg-goal__txt strong { font-size: 15px; color: var(--color-text); }
.asg-goal--home { margin-top: 8px; padding: 8px 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.asg-goal--home .asg-goal__row { margin-top: 0; }
.asg-ring { flex-shrink: 0; }
.asg-ring__bg { fill: none; stroke: var(--color-border); stroke-width: 5; }
.asg-ring__fg { fill: none; stroke: var(--cp-lime, #4caf50); stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.asg-ring text { font-size: 11px; font-weight: 700; fill: var(--color-text); font-family: var(--font-sans, sans-serif); }
body.plc-open { overflow: hidden; }
.plc-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  padding: max(12px, var(--safe-top, 0px)) 12px max(12px, var(--safe-bottom, 0px)); background: rgba(10, 5, 4, .78); }
.plc-overlay.hidden { display: none; }
.plc-sheet { position: relative; width: 100%; max-width: 480px; max-height: 100%; overflow-y: auto; box-sizing: border-box;
  padding: 22px 18px 18px; background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 12px; color: var(--color-text); box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.plc-sheet > * { flex-shrink: 0; }
.plc-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; color: var(--color-text-muted); font-size: 20px; cursor: pointer; }
.plc-x--sm { position: static; width: 40px; height: 40px; font-size: 16px; }
.plc-hero { font-family: 'Noto Sans SC', sans-serif; font-size: 56px; text-align: center; color: var(--color-primary); line-height: 1; margin-top: 4px; }
.plc-title { font-family: var(--font-pixel, var(--font-sans)); font-size: 26px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.15; margin: 0 36px 0 0; color: var(--color-text); overflow-wrap: anywhere; }
.plc-lead { font-size: 15px; line-height: 1.45; margin: 0; color: var(--color-text-secondary); }
.plc-big { min-height: 52px; font-size: 16px; }
.plc-link { align-self: center; min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--color-text-muted); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.plc-progress { height: 6px; margin-right: 40px; border-radius: 3px; background: var(--color-border); overflow: hidden; }
.plc-progress span { display: block; height: 100%; background: var(--color-primary); transition: width .25s ease; }
.plc-band { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.plc-word { font-family: 'Noto Sans SC', sans-serif; font-size: clamp(56px, 18vw, 88px); font-weight: 700; text-align: center; line-height: 1.2; padding: 10px 0 0; overflow-wrap: anywhere; }
.plc-q { text-align: center; margin: 0; font-size: 15px; color: var(--color-text-secondary); }
.plc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plc-opts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.plc-opt { min-height: 48px; padding: 8px 12px; text-align: left; background: transparent; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); font: inherit; font-size: 16px; cursor: pointer; }
.plc-opt--ok { border-color: var(--cp-lime, #4caf50); background: rgba(200, 216, 112, .15); }
.plc-opt--bad { border-color: var(--cp-magenta, #c0392b); background: rgba(255, 90, 122, .12); }
.plc-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.plc-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.plc-sub { font-size: 14px; font-weight: 700; color: var(--color-text-secondary); }
.plc-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 30vh; overflow-y: auto; }
.plc-chip { display: inline-flex; flex-direction: column; align-items: center; padding: 4px 10px; border: 1px solid var(--color-border); border-radius: 10px; font-family: 'Noto Sans SC', sans-serif; font-size: 18px; }
.plc-chip small { font-family: var(--font-sans, sans-serif); font-size: 11px; color: var(--color-text-muted); max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plc-chips--next .plc-chip { border-color: var(--color-primary); }
.plc-interests { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.plc-interest { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 96px; padding: 12px; text-align: left; cursor: pointer;
  background: transparent; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); color: var(--color-text); font: inherit; }
.plc-interest:hover, .plc-interest:focus-visible { border-color: var(--color-primary); }
.plc-interest__emoji { font-size: 28px; line-height: 1; }
.plc-interest__label { font-weight: 700; font-size: 16px; }
.plc-interest__words { font-family: 'Noto Sans SC', sans-serif; font-size: 14px; color: var(--color-text-secondary); }
.plc-start { margin: 0 0 12px; padding: 10px 12px; background: var(--color-surface); border: 1.5px solid var(--color-primary); border-radius: var(--radius-md); }
.plc-start__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plc-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.plc-step { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.plc-step__dot { width: 22px; height: 22px; flex-shrink: 0; border: 1.5px solid var(--color-border); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.plc-step--done .plc-step__dot { border-color: var(--cp-lime, #4caf50); color: var(--cp-lime, #4caf50); }
.plc-step--done .plc-step__label { color: var(--color-text-muted); text-decoration: line-through; }
.plc-step__btn { flex: 1; min-height: 44px; padding: 0; text-align: left; background: none; border: 0; color: var(--color-text); font: inherit; font-size: 15px; cursor: pointer; }
.plc-step__btn span { color: var(--color-primary); }
@media (max-width: 380px) { .plc-interests { grid-template-columns: 1fr 1fr; gap: 8px; } .plc-title { font-size: 22px; } }


.asg-anns { margin: 8px 0 12px; }
.asg-ann__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.asg-ann { position: relative; padding: 8px 40px 8px 10px; border-radius: var(--radius-sm); background: var(--color-surface-2); border: 1px solid var(--color-border); min-width: 0; }
.asg-ann--private { border-style: dashed; }
.asg-ann__meta { font-size: 11px; color: var(--color-text-muted); }
.asg-ann__who { font-weight: 700; color: var(--color-text-secondary); }
.asg-ann__text { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.asg-ann__ref { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--color-text-secondary); }
.asg-ann__del { position: absolute; top: 4px; right: 4px; min-width: 36px; min-height: 36px; }
.asg-ann:not(:has(.asg-ann__del)) { padding-right: 10px; }

.asg-home-ann { display: flex; align-items: flex-start; gap: 10px; width: 100%; margin: 0 0 8px; padding: 10px 12px; text-align: left;
  border-radius: var(--radius-md); border: 1px solid var(--color-border); background: var(--color-surface-2); color: var(--color-text); font: inherit; cursor: pointer; min-width: 0; }
.asg-home-ann--new { border-color: var(--color-primary, #ffb24a); box-shadow: 0 0 0 1px rgba(255, 178, 74, .35); }
.asg-home-ann__icon { flex: 0 0 auto; font-size: 1.2rem; line-height: 1.3; }
.asg-home-ann__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.asg-home-ann__k { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.asg-home-ann__t { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.asg-home-ann__badge { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--red, #c0392b); color: #fff; font-size: 10px; letter-spacing: 0; }

.asg-ros { margin: 0 0 12px; }
.asg-ros__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.asg-ros__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px; border-radius: var(--radius-sm); border: 1px solid transparent; min-width: 0; }
.asg-ros__row--open { border-color: var(--color-border); background: var(--color-surface-2); }
.asg-ros__who { flex: 1 1 140px; min-width: 0; }
.asg-ros__name { font-weight: 700; overflow-wrap: anywhere; }
.asg-ros__role { display: inline-block; padding: 0 6px; border-radius: 999px; border: 1px solid var(--color-border); font-size: 10px; font-weight: 700; color: var(--color-text-secondary); }
.asg-ros__sub { font-size: 11px; color: var(--color-text-muted); overflow-wrap: anywhere; }
.asg-ros__stat { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; color: var(--color-text-secondary); min-width: 70px; }
.asg-ros__la--stale { color: #ff7a3a; font-weight: 700; }
.asg-ros__acts { display: flex; gap: 4px; }
.asg-ros__acts .btn { min-height: 36px; }
.asg-ros__menu { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.asg-ros__remove { color: var(--red, #c0392b) !important; }

.asg-gram__lead { margin: 8px 0 4px; font-size: 14px; }
.asg-gram__list { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.asg-gram__item { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.asg-gram__mid { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.asg-gram__name { font-weight: 700; }
.asg-gram__stats { font-size: 12px; color: var(--color-text-muted); overflow-wrap: anywhere; }

.asg-hw { margin: 0 0 12px; }
.asg-hw__sum { margin: 8px 0 6px; font-size: 14px; }
.asg-hw__assign { margin-bottom: 8px; }
.asg-hw__list { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.asg-hw__row { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 8px 10px; text-align: left; cursor: pointer; font: inherit; color: inherit;
  border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-surface-2); min-width: 0; }
.asg-hw__row--new { border-left: 3px solid var(--color-primary, #ffb24a); }
.asg-hw__who { overflow-wrap: anywhere; }
.asg-hw__kinds { display: flex; flex-wrap: wrap; gap: 4px; }
.asg-hw__kind { display: inline-block; padding: 1px 8px; border-radius: 999px; background: rgba(255, 122, 58, .14); color: var(--color-text-secondary); font-size: 12px; }
.asg-hw__kind--ok { background: rgba(67, 160, 71, .15); }
.asg-hw__when { font-size: 11px; color: var(--color-text-muted); }
.asg-hw-sheet { max-width: 560px; }
.asg-hw__checks, .asg-hw__mist { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.asg-hw__check { overflow-wrap: anywhere; }
.asg-hw__check--ok b { color: #43a047; }
.asg-hw__check--wrong b { color: var(--red, #c0392b); }
.asg-hw__wrong { text-decoration: line-through; opacity: .8; }
.asg-hw__right { font-weight: 700; }
.asg-hw__tr { white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--color-surface-2); max-height: 220px; overflow-y: auto; }

.class-code-card { margin-top: var(--space-md); }
.class-code-input { text-transform: uppercase; letter-spacing: .18em; font-size: 1.05rem !important; font-weight: 700; min-width: 0; }
.class-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.class-code-row__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); }
.class-code-row__code { font-size: 1.5rem; letter-spacing: .14em; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; }
.class-hero__acts { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.class-hero__rename { color: #fff !important; border-color: rgba(255,255,255,.4) !important; }

.cm-sheet__sub { margin: 0 0 12px; color: var(--color-text-muted); font-size: 0.92rem; line-height: 1.45; overflow-wrap: anywhere; }
.cm-sheet__lbl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 0.95rem; }
.cm-sheet__due { flex: 1 1 150px; min-width: 0; max-width: 100%; }
.cm-sheet__hint { margin: 8px 0 0; font-size: 0.82rem; color: var(--color-text-muted); }
.cm-item .asg-item__title, .cm-item .asg-item__words { overflow-wrap: anywhere; }
.asg-done-btn { font-size: 12px; }

.asg-head__acts { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.asg-sel-wrap { display: flex; align-items: center; justify-content: center; min-width: 32px; min-height: 40px; flex: none; cursor: pointer; }
.asg-sel { width: 20px; height: 20px; }
.asg-item--closed { opacity: .6; }
.asg-bulk { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 10px;
  background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.asg-bulk strong { margin-right: 4px; }
.asg-tpl { margin-bottom: 6px; }
.asg-tpl .asg-chip { min-height: 36px; font-size: 13px; }
.asg-repeat { display: flex; align-items: center; gap: 8px; min-height: 40px; margin: -4px 0 6px; font-size: 14px; color: var(--color-text); }
.asg-repeat input { width: 20px; height: 20px; }
.asg-repeat small { color: var(--color-text-muted); }
.asg-sheet__lead { margin: -6px 0 10px; font-size: 14px; color: var(--color-text-secondary); }
.hwl-recbox { margin-top: var(--space-md); }
.asg-hwl:empty { display: none; }
