/* A single quiet action family for creating, revisiting and opening courses. */
body :is(
 .generation-send,.new-conversation,.history-toggle,
 .retry-generation,.retry-history,.resume-progress,
 .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
){
 display:inline-flex;align-items:center;justify-content:center;gap:7px;
 min-width:0;max-width:100%;min-height:36px;padding:8px 12px;
 border:1px solid #dce4dd;border-radius:8px;
 background:#fff;color:#4b6157;box-shadow:none;
 font-size:12px;font-weight:500;line-height:1.5;letter-spacing:0;
 text-align:center;text-decoration:none;white-space:nowrap;
 opacity:1;cursor:pointer;transform:none;
 transition:background 170ms ease,border-color 170ms ease,color 170ms ease,transform 170ms ease;
}
body :is(
 .generation-send,.new-conversation,.history-toggle,
 .retry-generation,.retry-history,.resume-progress,
 .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
) .icon{
 width:15px;height:15px;flex-shrink:0;stroke-width:1.8;
 transform:none;transition:none;
}
body :is(
 .generation-send,.new-conversation,.history-toggle,
 .retry-generation,.retry-history,.resume-progress,
 .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
):hover{background:#f7f9f6;border-color:#c8d5cc;color:#244c48;box-shadow:none}
body :is(
 .generation-send,.new-conversation,.history-toggle,
 .retry-generation,.retry-history,.resume-progress,
 .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
):active{transform:translateY(1px);box-shadow:none}
body :is(
 .generation-send,.new-conversation,.history-toggle,
 .retry-generation,.retry-history,.resume-progress,
 .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
):focus-visible{outline:2px solid #63877a;outline-offset:3px;box-shadow:none}

/* Submit and lesson entry share a solid accent; supporting actions stay white. */
body :is(.generation-send,.generation-result .btn,[data-action="generate"],[data-action="new-topic"]):not(.secondary):not(.soft){
 min-height:40px;padding:9px 15px;border-color:#244c48;
 background:#244c48;color:#fff;box-shadow:none;
}
body :is(.generation-send,.generation-result .btn,[data-action="generate"],[data-action="new-topic"]):not(.secondary):not(.soft):hover:not(:disabled):not([aria-disabled=true]){
 border-color:#173c38;background:#173c38;color:#fff;box-shadow:none;
}
body .generation-send{min-width:122px}
body .workspace-actions{gap:7px}
body .workspace-actions :is(.new-conversation,.history-toggle){min-height:34px;padding:7px 10px;font-size:11px}
body .workspace-actions .history-toggle[aria-expanded=true]{background:#f2f6f1;border-color:#cbd9ce;color:#244c48;box-shadow:none}
body .generation-result .btn{gap:9px;margin-top:7px}
body :is(.retry-generation,.retry-history){margin-top:11px}
body .resume-progress{margin-top:0}

/* Disabled controls retain the same shape without implying activity. */
body :is(
 .generation-send,.new-conversation,.history-toggle,
 .retry-generation,.retry-history,.resume-progress,
 .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
):disabled,
body :is(
 .generation-send,.new-conversation,.history-toggle,
 .retry-generation,.retry-history,.resume-progress,
 .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
)[aria-disabled=true]{
 border-color:#e4e9e3;background:#f4f6f2;color:#879287;
 opacity:1;cursor:not-allowed;box-shadow:none;transform:none;transition:none;
}
body :is(.generation-send,.generation-result .btn,[data-action="generate"],[data-action="new-topic"]):not(.secondary):not(.soft):is(:disabled,[aria-disabled=true]){
 border-color:#e0e8e1;background:#e9efea;color:#75857a;
 box-shadow:none;transform:none;opacity:1;
}

@media(max-width:600px){
 body :is(.generation-send,.retry-generation,.retry-history,.resume-progress,.generation-result .btn,[data-action="generate"],[data-action="new-topic"]){
  min-height:40px;padding:9px 12px;font-size:12px;
 }
 body .generation-send{min-width:106px}
 body .workspace-actions{gap:5px}
 body .workspace-actions :is(.new-conversation,.history-toggle){min-height:34px;padding:7px 9px;font-size:11px;gap:6px}
 body .workspace-actions :is(.new-conversation,.history-toggle) .icon{width:14px;height:14px}
 body :is(.generation-send,.generation-result .btn,[data-action="generate"],[data-action="new-topic"]):not(.secondary):not(.soft){padding:9px 12px}
}
@media(max-width:360px){
 body .generation-send{min-width:100px}
 body .workspace-actions{gap:4px}
 body .workspace-actions :is(.new-conversation,.history-toggle){padding-left:8px;padding-right:8px;gap:5px}
 body .generation-result .btn{white-space:normal}
}
body.reduce-motion :is(
 .generation-send,.new-conversation,.history-toggle,
 .retry-generation,.retry-history,.resume-progress,
 .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
){transition:none!important;transform:none!important}
@media(prefers-reduced-motion:reduce){
 body :is(
  .generation-send,.new-conversation,.history-toggle,
  .retry-generation,.retry-history,.resume-progress,
  .generation-result .btn,[data-action="generate"],[data-action="new-topic"]
 ){transition:none!important;transform:none!important}
}
