.animation-workshop { --workshop-accent: #285240; --workshop-line: #d5dacd; }
.animation-workshop [hidden] { display: none !important; }
button, textarea, select { font: inherit; }
.animation-workshop button { cursor: pointer; }
.animation-workshop button:disabled { cursor: default; opacity: .5; }
.animation-workshop :is(button, select):focus-visible { outline: 2px solid #a06b3b; outline-offset: 4px; }
.workspace { width: min(100% - 96px, 1120px); margin: 24px auto 0; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 30px; }
.workspace-back { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 0; color: #536656; font-size: 12px; }
.workspace-back:hover, .text-button:hover:not(:disabled) { color: #a36037; }
.workspace-heading h1 { font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.4; margin-top: 5px; }
.workspace-heading > p { color: var(--muted); font-size: 12px; line-height: 1.8; padding-bottom: 5px; }
.section-bar, .section-title { display: flex; align-items: center; gap: 12px; }
.section-bar { justify-content: space-between; margin-bottom: 15px; min-height: 26px; }
.preview-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.section-number { color: #9b7b5d; font-size: 10px; }
.section-title h2 { font-size: 14px; font-weight: 550; }
.quiet-tag { font-size: 11px; border-left: 1px solid var(--workshop-line); padding-left: 12px; color: var(--muted); }
.text-button { background: none; border: 0; color: #536656; padding: 8px 0; font-size: 12px; display: inline-flex; align-items: center; min-height: 36px; }
.target-control { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; font-size: 12px; }
.target-control label { color: #536656; }
.target-control select { background: #fbfcf8; border: 1px solid #c3cdbc; border-radius: 5px; color: #32483a; padding: 9px 28px 9px 11px; min-height: 40px; max-width: min(100%, 470px); }
.target-control span { color: var(--muted); font-size: 11px; }
#animation-preview { width: 100%; aspect-ratio: 16 / 9; background: #fff; border: 1px solid #e0e3da; border-radius: 5px; box-shadow: 0 6px 28px #233d300a; overflow: hidden; }
.empty-preview { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; color: #a6b09f; }
.empty-preview > span[lang] { font-size: 9px; letter-spacing: .18em; }
.frame-corner { font-size: 26px; font-weight: 200; opacity: .6; }
.preview-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #111e18; }
.preview-caption { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-top: 10px; color: #7c8877; font-size: 11px; line-height: 1.7; }
.preview-caption > :last-child { white-space: nowrap; font-size: 10px; }
.preview-error { color: #8a6339; font-size: 12px; line-height: 1.8; margin-top: 10px; }
.requirements-section { margin-top: 32px; }
.small-note { color: var(--muted); font-size: 11px; }
.composer { padding: 24px 26px 18px; background: #fafbf7; border: 1px solid #bccabc; border-radius: 8px; }
.composer:focus-within { border-color: #6d8b70; }
.composer > label { display: block; font-size: 18px; font-weight: 550; letter-spacing: -.02em; }
.composer textarea { display: block; width: 100%; min-height: 110px; max-height: 420px; resize: vertical; margin-top: 12px; padding: 5px 0; color: #32483a; background: transparent; border: none; font-size: 14px; line-height: 1.9; }
.composer textarea::placeholder { color: #939b8e; }
.composer textarea:focus { outline: none; }
.composer textarea:disabled { color: #697965; opacity: 1; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid #e0e5d9; }
#request-hint { font-size: 11px; color: var(--muted); line-height: 1.8; }
.submit-actions { display: flex; gap: 20px; align-items: center; flex-shrink: 0; }
#character-count { color: #879181; font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.primary-button { display: flex; gap: 23px; align-items: center; padding: 12px 18px; min-height: 44px; border-radius: 5px; border: 1px solid var(--workshop-accent); color: #f9faf4; background: var(--workshop-accent); font-size: 13px; white-space: nowrap; }
.primary-button:hover:not(:disabled) { background: #193d2e; }
.primary-button:disabled { background: #dce3d8; border-color: #dce3d8; color: #53664d; }
.save-status { color: #7c8877; font-size: 11px; line-height: 1.8; margin: 10px 2px 0; }
.storage-alert { margin-top: 12px; padding: 14px 17px; border: 1px solid #ddba9a; background: #fff6e9; color: #8e512a; font-size: 12px; line-height: 1.9; border-radius: 5px; }
.server-draft-label { margin-top: 10px; font-size: 11px; }
#server-draft-preview, #local-draft-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 200px; overflow-y: auto; }
.draft-conflict-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.build-status { position: relative; padding: 24px; display: flex; align-items: flex-start; gap: 14px; border: 1px solid #d5dfcf; background: #eaf0e3; border-radius: 8px; }
.build-status:not([hidden]) + #request-composer { margin-top: 26px; }
.build-status[data-state="queued"] { border-color: #d8cbae; background: #faf8f1; }
.build-status[data-state="processing"] { border-color: #a8bda0; background: #f8faf3; }
.build-status[data-state="needs_clarification"] { background: #fbf7ec; border-color: #d5bd85; }
.build-status[data-state="rejected"] { background: #fbf2ef; border-color: #d6b5aa; }
.status-mark { margin-top: 2px; width: 19px; height: 19px; flex-shrink: 0; border: 1.5px solid currentColor; border-radius: 50%; color: #a58b51; display: grid; place-items: center; font-size: 11px; }
[data-state="processing"] .status-mark { border-color: #b7c8ad; border-top-color: #4e7646; }
.is-processing .status-mark { animation: processing-turn 1.8s linear infinite; }
.is-processing::before { content: ''; position: absolute; inset: -1px; border: 1px solid #78996b; border-radius: inherit; box-shadow: 0 0 0 4px #78996b12; pointer-events: none; animation: processing-breathe 3.2s ease-in-out infinite; }
.build-status-content { flex: 1; min-width: 0; }
.build-status-content h3 { font-size: 17px; font-weight: 600; }
.build-status-content > p { font-size: 12px; line-height: 1.9; color: #65775a; margin-top: 9px; }
.request-original, .feedback-message, .feedback-reply, .delivery-summary { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.9; color: #394e3d; }
.request-original { margin: 17px 0 0; }
.request-feedback { border-left: 2px solid #c4cdbb; padding-left: 15px; margin-top: 18px; }
.feedback-label { color: #8b7960; font-size: 11px; line-height: 1.8; margin-bottom: 5px; }
.feedback-reply { margin-top: 12px; }
.feedback-suggestions, .request-card-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.suggestion-button { min-height: 40px; padding: 9px 14px; border: 1px solid #d5c7a7; border-radius: 5px; background: #fffdf7; color: #735a33; font-size: 12px; text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.request-history { margin-top: 35px; }
.requirement-card { padding: 22px 24px 16px; border-top: 1px solid var(--workshop-line); }
.requirement-card:last-child { border-bottom: 1px solid var(--workshop-line); }
.requirement-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7f8979; font-size: 11px; }
.requirement-target { color: #4c624c; }
.requirement-status { font-size: 11px; }
.requirement-status[data-state="completed"] { color: #46733e; }
.requirement-status[data-state="rejected"] { color: #976351; }
.delivery-summary { font-size: 12px; color: #607153; margin-top: 12px; }
.action-status { font-size: 12px; line-height: 1.8; color: #5a754c; margin-top: 14px; }
.delete-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 40px); border: 1px solid #d5dbcf; border-radius: 12px; background: #f9faf5; color: #304637; padding: 30px; box-shadow: 0 24px 100px #17362833; }
.delete-dialog::backdrop { background: #18362b66; }
.dialog-eyebrow { font-size: 10px; color: #8a7961; letter-spacing: .08em; }
.delete-dialog h2 { margin: 12px 0; font-size: 21px; }
#delete-request-description, .delete-dialog-note { font-size: 12px; line-height: 1.9; color: #75806c; }
.delete-request-preview { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; margin: 18px 0; background: #edf0e7; border-radius: 5px; padding: 14px; font-size: 13px; line-height: 1.8; }
.delete-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.secondary-button, .danger-button { min-height: 42px; padding: 10px 17px; border-radius: 5px; border: 1px solid #bdcbb7; background: #f5f7ef; color: #506449; font-size: 12px; }
.danger-button { background: #975c42; border-color: #975c42; color: #fff; }
.workspace-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding: 23px 0 30px; border-top: 1px solid var(--workshop-line); font-size: 10px; color: #899182; line-height: 1.8; }
.noscript-note { padding: 20px; text-align: center; }
@keyframes processing-breathe { 0%, 100% { opacity: .25; } 50% { opacity: .85; } }
@keyframes processing-turn { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .workspace { width: calc(100% - 40px); margin-top: 14px; }
  .workspace-heading { margin-bottom: 25px; }
  .workspace-heading h1 { font-size: 28px; }
  .target-control { gap: 8px; }
  .target-control select { flex: 1; min-width: 0; }
  .target-control span { width: 100%; }
  .preview-caption { font-size: 10px; }
  .preview-section > .section-bar { flex-wrap: wrap; gap: 7px; }
  .empty-preview { gap: 10px; }
  .empty-preview > span[lang] { font-size: 7px; }
  .requirements-section { margin-top: 24px; }
  .composer { padding: 20px 17px 15px; }
  .composer > label { font-size: 16px; }
  .composer textarea { font-size: 14px; min-height: 135px; }
  .composer-footer { flex-wrap: wrap; }
  .submit-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .build-status { padding: 20px 17px; gap: 11px; }
  .build-status-content h3 { font-size: 16px; }
  .requirement-card { padding: 18px 15px 13px; }
  .workspace-footer { flex-direction: column; gap: 6px; }
  .delete-dialog { padding: 25px 20px; }
}
@media (prefers-reduced-motion: reduce) { .animation-workshop *, .animation-workshop *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
