/* 创意工作台沿用原版配色与控件，仅增加模块布局。 */
#rel-robot-client .creative-abilities{gap:8px}
#rel-robot-client .creative-abilities .ability{min-height:60px;padding:9px 12px}
#rel-robot-client .creative-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#rel-robot-client .creative-card{border:1px solid #4b6391;border-radius:12px;padding:15px;background:#253c5e33;min-width:0}
#rel-robot-client .creative-card:last-child{grid-column:1/-1}
#rel-robot-client .creative-card h3{margin:8px 0;font-size:17px}
#rel-robot-client .creative-card small{display:block;line-height:1.6;opacity:.72;min-height:42px}
#rel-robot-client .creative-number{font-size:12px;color:#8cd6ff;font-weight:700;letter-spacing:2px}
#rel-robot-client .creative-intro{line-height:1.7}
#rel-robot-client .creative-card .form-actions{display:flex;flex-direction:column;gap:7px;margin-top:14px}
#rel-robot-client .creative-media{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:9px;margin:10px 0}
#rel-robot-client .creative-worktext{white-space:pre-wrap;line-height:1.9;font-size:15px;padding:14px;border:1px solid #4b6391;border-radius:10px;overflow-wrap:anywhere}
#rel-robot-client .creative-note{font-size:12px;line-height:1.7;opacity:.72}
#rel-robot-client #creative-prompt,#rel-robot-client #creative-transcript{width:100%;box-sizing:border-box;min-height:90px}
#rel-robot-client .creative-consent{display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.6;margin:12px 0}
#rel-robot-client .creative-consent input{width:auto;flex:none;margin-top:4px}
#rel-robot-client[data-theme=warm] .creative-card{background:#fffaf4;border-color:#e0baa4}
#rel-robot-client[data-theme=warm] .creative-number{color:#a86644}
#rel-robot-client[data-theme=warm] .creative-worktext{border-color:#e0baa4}
@media(max-width:420px){#rel-robot-client .creative-grid{grid-template-columns:1fr}}

/* 自定义输入沿用现有抽屉与表单控件。 */
#rel-robot-client #creative-form label{display:block;margin:12px 0;line-height:1.7}
#rel-robot-client #creative-form textarea{display:block;width:100%;box-sizing:border-box;padding:12px;font:inherit;line-height:1.7;resize:vertical;border-radius:9px}
#rel-robot-client #creative-form input[type=file]{display:block;width:100%;max-width:100%;font-size:12px;margin:8px 0;white-space:normal}
#rel-robot-client .creative-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
#rel-robot-client .creative-upload-grid>div{min-width:0}
#rel-robot-client .creative-upload-preview{display:block;width:100%;max-height:160px;object-fit:contain;margin:8px 0;border-radius:8px}
#rel-robot-client .creative-generate{width:100%;margin-top:8px}
#rel-robot-client #creative-form .creative-consent{display:flex}
@media(max-width:540px){#rel-robot-client .creative-upload-grid{grid-template-columns:1fr}}

/* 维护文档沿用抽屉按钮，逐行显示便于下载。 */
#rel-robot-client .maintenance-docs{display:grid;gap:10px}
#rel-robot-client .maintenance-docs .draweraction{display:block;margin:0;text-decoration:none;overflow-wrap:anywhere}

/* 对话管理与本地语音沿用原客户端组件。 */
#rel-robot-client .routebar{flex-wrap:wrap}
#rel-robot-client .chat-voice-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;font-size:12px}
#rel-robot-client .chat-voice-controls label{display:flex;align-items:center;gap:5px}
#rel-robot-client .chat-voice-controls input{width:auto;margin:0}
#rel-robot-client #chat-audio{max-width:100%;height:34px}
#rel-robot-client #chat-speech-status{overflow-wrap:anywhere}

/* 仅约束课堂对话高度；首页机器人及 0.3.9 主题沿用原样。 */
#rel-robot-client .console.chat-mode{height:calc(100dvh - 24px);min-height:0;display:flex;flex-direction:column}
#rel-robot-client .chat-mode .titlebar{flex:none}
#rel-robot-client .chat-mode .app{flex:1;min-height:0;overflow:hidden}
#rel-robot-client .chat-mode .sidebar{min-height:0;overflow-y:auto}
#rel-robot-client .chat-mode .content{min-height:0;overflow:hidden}
#rel-robot-client .chat-mode .dashboard{height:100%;min-height:0;align-items:stretch}
#rel-robot-client .chat-mode .mainzone{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#rel-robot-client .chat-mode .mainzone> :not(.conversation){flex-shrink:0}
#rel-robot-client .chat-mode .conversation{flex:1;min-height:0;overflow:hidden;gap:8px;padding-bottom:4px}
#rel-robot-client .chat-mode .conversation> :not(.messages){flex:none}
#rel-robot-client .chat-mode .messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto;overflow-anchor:none;padding-right:8px}
#rel-robot-client .chat-mode .chat-note{max-height:42px;overflow:auto;margin:0}
#rel-robot-client .chat-mode .resource-stack{min-height:0;overflow-y:auto}
#rel-robot-client .chat-mode .routebar{margin:0;gap:4px}
#rel-robot-client .chat-mode .routebar label{min-width:0;margin:0}
#rel-robot-client .chat-mode .routebar select{max-width:100%;min-width:0}
#rel-robot-client .chat-mode .composer textarea{max-height:100px}
@media(max-width:620px){
 #rel-robot-client .console.chat-mode{height:100dvh}
 #rel-robot-client .chat-mode .app{display:flex;flex-direction:column}
 #rel-robot-client .chat-mode .sidebar{max-height:92px;flex:none}
 #rel-robot-client .chat-mode .content{flex:1;padding:8px 12px}
 #rel-robot-client .chat-mode .chathead{gap:6px}
 #rel-robot-client .chat-mode .routebar .form-actions{margin:2px 0;gap:4px}
 #rel-robot-client .chat-mode .chat-voice-controls{gap:5px;padding:3px 0}
}

@media(max-width:930px){
 #rel-robot-client .chat-mode .dashboard{grid-template-rows:minmax(0,1fr)}
 #rel-robot-client .chat-mode .resource-stack{display:none}
}
