.packet { margin-top:28px; border:1px solid var(--line); border-radius:16px; background:var(--surface); overflow:hidden; }
.packet-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:24px; }
.packet-heading h3 { font-size:23px; line-height:1.25; margin-top:7px; letter-spacing:-.025em; }
.packet-local-label { font-size:10px; color:var(--muted); text-align:right; }
.packet-tabs { display:flex; gap:8px; border-bottom:1px solid var(--line); padding:0 24px; }
.packet-tabs button { color:var(--muted); padding:12px 2px 14px; border-bottom:2px solid transparent; margin-bottom:-1px; font-size:13px; }
.packet-tabs button+button { margin-left:18px; }
.packet-tabs [aria-selected=true] { color:var(--text); border-color:var(--accent); font-weight:600; }
.packet-message { padding:0 24px; font-size:12px; line-height:1.6; color:var(--muted); }
.packet-message:not(:empty) { padding-top:18px; }
.packet-message-error { color:var(--coral); }
.packet-panel { padding:24px; min-width:0; }
.packet-files-intro>p { font-size:14px; line-height:1.6; }
.packet-files-intro>small { display:block; color:var(--muted); margin-top:6px; font-size:11px; line-height:1.6; }
.packet-file-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:20px; }
.packet-file-group { min-width:0; border:1px solid var(--line); border-radius:12px; padding:18px; }
.packet-file-group>header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.packet-file-group h4 { font-size:14px; line-height:1.4; font-weight:600; }
.packet-file-group header p { font-size:11px; color:var(--muted); line-height:1.6; margin-top:7px; }
.cp .packet-upload { position:relative; overflow:hidden; flex-shrink:0; min-height:36px; font-size:11px; padding:8px 12px; cursor:pointer; }
.cp .packet-upload>input { position:absolute; inset:0; opacity:0; width:100%; height:100%; min-height:0; padding:0; cursor:pointer; }
.packet-upload:focus-within { outline:2px solid var(--accent); outline-offset:3px; }
.packet-upload:has(input:disabled) { opacity:.42; cursor:default; }
.packet-file-list { list-style:none; padding:0; margin:14px 0 0; }
.packet-file { display:flex; align-items:center; gap:10px; min-width:0; padding:12px 0; border-top:1px solid var(--line); }
.packet-file-icon { flex-shrink:0; width:42px; height:42px; border:1px solid var(--line); border-radius:7px; display:grid; place-items:center; overflow:hidden; background:var(--bg); color:var(--muted); }
.packet-file-icon img { width:100%; height:100%; object-fit:contain; }
.packet-file-copy { flex:1; min-width:0; }
.packet-file-copy strong { display:block; font-size:12px; line-height:1.45; font-weight:500; overflow-wrap:anywhere; }
.packet-file-copy small { display:block; font-size:10px; color:var(--muted); margin-top:4px; }
.packet-file-actions { display:flex; flex-direction:column; gap:4px; }
.cp .packet-file-actions>.cp-button { font-size:10px; min-height:28px; padding:5px 8px; background:transparent; }
.packet-empty { font-size:11px; color:var(--muted); margin-top:20px; }
.packet-next { display:flex; justify-content:flex-end; margin-top:20px; }
.packet-storage-note { font-size:10px; line-height:1.6; color:var(--muted); border-top:1px solid var(--line); padding:14px 24px; }
.packet-summary-heading { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.packet-summary-heading h4 { font-size:24px; letter-spacing:-.025em; line-height:1.35; margin-top:8px; overflow-wrap:anywhere; }
.packet-summary-heading p { font-size:12px; color:var(--muted); margin-top:6px; }
.packet-status { display:inline-block; border:1px solid var(--line); border-radius:999px; padding:6px 10px; color:var(--muted); font-size:11px; white-space:nowrap; }
.packet-status-pending { color:var(--text); background:var(--surface3); }
.packet-summary-section { padding-top:22px; margin-top:22px; border-top:1px solid var(--line); }
.packet-summary-section>header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.packet-summary-section h4 { font-size:15px; font-weight:600; }
.packet-summary-section>header>span { font-size:10px; color:var(--muted); border-radius:5px; padding:5px 8px; background:var(--surface3); }
.packet-summary-section>p { font-size:12px; line-height:1.65; margin-top:12px; }
.packet-summary-section>header>.cp-button { font-size:11px; min-height:34px; padding:7px 11px; }
.packet-parameters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; margin-top:16px; }
.packet-parameters>div { padding:12px 0; border-bottom:1px solid var(--line); min-width:0; }
.packet-parameters dt { font-size:11px; color:var(--muted); }
.packet-parameters dd { font-size:13px; margin:6px 0 0; overflow-wrap:anywhere; }
.packet-design-note { margin-top:16px; }
.packet-design-note>strong { font-size:11px; font-weight:500; color:var(--muted); }
.packet-design-note>p { font-size:13px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; margin-top:6px; }
.packet-brand-name { color:var(--text); }
.packet-submit { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; padding:20px; border:1px solid var(--line); border-radius:12px; background:var(--surface3); margin-top:26px; }
.packet-submit>div:first-child { flex:1; min-width:220px; }
.packet-submit h4 { font-size:17px; font-weight:600; }
.packet-submit p { font-size:12px; line-height:1.7; margin-top:9px; }
.packet-submit small { display:block; color:var(--muted); font-size:10px; line-height:1.65; margin-top:10px; }
.packet-submit-actions { display:flex; flex-direction:column; gap:8px; }
.packet-submit-actions>.cp-button { font-size:12px; }
.packet-export-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:20px; }
.packet-export-actions>.cp-button { font-size:12px; }
.packet-request-dialog { width:min(720px,calc(100% - 28px)); }
.packet-request-note { font-size:12px; color:var(--muted); }
.packet-request-text { white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.8 Manrope,Arial,sans-serif; border:1px solid var(--line); border-radius:10px; background:var(--surface); padding:18px; margin:20px 0; }
.packet-request-files { list-style:none; padding:0; margin-top:20px; }
.packet-request-files li { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-top:1px solid var(--line); }
.packet-request-files li>span { min-width:0; font-size:12px; overflow-wrap:anywhere; }
.packet-request-files small { display:block; font-size:10px; color:var(--muted); margin-top:5px; }
.packet-request-files .cp-button { flex-shrink:0; min-height:34px; font-size:11px; padding:7px 11px; }
.cp .packet-project-state { font-size:10px; }
.legacy-packet-toolbar { display:flex; align-items:center; gap:16px; flex-wrap:wrap; padding:18px 20px; border:1px solid var(--line); border-radius:12px; background:var(--surface); margin:0 0 18px; }
.legacy-packet-intro { flex:1; min-width:200px; }
.legacy-packet-intro strong { display:block; font-size:16px; color:var(--text); }
.legacy-packet-intro span { display:block; font-size:11px; line-height:1.6; color:var(--muted); margin-top:5px; }
.legacy-packet-actions { display:flex; gap:8px; flex-wrap:wrap; }
.legacy-packet-actions .cp-button { min-height:40px; padding:10px 13px; font-size:12px; }
.legacy-packet-actions [aria-pressed=true] { border-color:var(--accent); background:var(--surface3); }
.legacy-packet-host { margin-bottom:18px; }
.legacy-packet-host .packet { margin-top:0; }
.legacy-packet-host[hidden],.legacy-packet-actions [hidden],#creatorLegacyDesign .design-layout[hidden] { display:none!important; }
.has-ai-chat .packet-file-groups { grid-template-columns:1fr; }
@media(max-width:1000px) { .packet-file-groups { grid-template-columns:1fr; } }
@media(max-width:760px) {
  .legacy-packet-toolbar { padding:16px; gap:12px; }
  .legacy-packet-actions { width:100%; }
  .legacy-packet-actions .cp-button { flex:1; }
  .packet-heading,.packet-panel { padding:18px; }
  .packet-heading { align-items:flex-start; flex-direction:column; gap:8px; }
  .packet-heading h3 { font-size:22px; }
  .packet-tabs { padding:0 18px; }
  .packet-tabs button { font-size:12px; }
  .packet-tabs button+button { margin-left:10px; }
  .packet-message { padding-left:18px; padding-right:18px; }
  .packet-storage-note { padding:13px 18px; }
  .packet-file-group { padding:15px; }
  .packet-file-group>header { flex-wrap:wrap; }
  .packet-file-group>header>div { flex:1; min-width:150px; }
  .packet-summary-heading h4 { font-size:22px; }
  .packet-submit { padding:17px; }
  .packet-submit>div:first-child { min-width:0; }
  .packet-submit-actions,.packet-submit-actions>.cp-button { width:100%; }
  .packet-export-actions>.cp-button { flex:1; }
}
@media(max-width:380px) {
  .packet-parameters { grid-template-columns:1fr; }
  .packet-file-icon { width:32px; height:32px; }
  .packet-file { gap:7px; }
}
