/* Dice Studio — 기존 스튜디오 디자인(studio.css) 위에 얹는 스타일 */
.local-tag{border:1px solid #d6dfcf;border-radius:999px;padding:5px 10px;font-size:10px;color:#7b8c72;background:#f7faf3}

.panel{padding:18px 0;border-bottom:1px solid #e8eee1}
.panel:last-child{border-bottom:0}
.panel h2{font-size:13px;margin:0 0 14px;font-weight:600;letter-spacing:-.2px}
.panel .hint{margin:6px 0 14px}

.field{display:block;margin:0 0 14px}
.field > span{display:flex;align-items:baseline;gap:6px;font-size:11px;color:#6f8068;margin-bottom:7px}
.field > span b{font-size:12px;color:#2f5138;font-weight:600}
.field > span em{font-style:normal;font-size:10px;color:#9aa894;margin-left:auto}
.field input[type=range]{display:block}

/* 라벨 + 숫자 입력 (값을 직접 타이핑) */
.field > .field-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.field-name{flex:0 0 auto}
.field-note{font-style:normal;font-size:10px;color:#9aa894;white-space:nowrap;margin-left:0}
.field-value{display:inline-flex;align-items:center;gap:4px;margin-left:auto;font-size:10px;color:#9aa894;flex:0 0 auto}
.field-value .sign{font-size:12px;font-weight:600;color:#2f5138}
.field-value .field-note{margin:0 2px 0 0}
.field-value .unit{font-size:10px;color:#9aa894}
.num-input{width:68px;height:30px;padding:0 6px;border:1px solid #d5dfcf;border-radius:7px;background:#fcfdf9;font-size:12px;font-weight:600;color:#2f5138;text-align:center;appearance:textfield;-moz-appearance:textfield}
.num-input::-webkit-outer-spin-button,.num-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.num-input:focus{border-color:#8fae7a;background:#fff}

.color-field{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.color-field > span{margin:0}
.color-field input[type=color]{flex:0 0 auto}

.checkbox-field{display:flex;align-items:center;gap:8px;font-size:11px;color:#6f8068;margin:10px 0 0}
.checkbox-field input{accent-color:#39694f;width:16px;height:16px}

.segmented{display:flex;gap:6px;margin:0 0 14px}
.segmented label{flex:1;position:relative}
.segmented input{position:absolute;opacity:0;pointer-events:none}
.segmented span{display:block;text-align:center;padding:9px 10px;border:1px solid #d6dfcf;border-radius:8px;font-size:12px;color:#5c6f5a;background:#fff;cursor:pointer}
.segmented input:checked + span{background:#39694f;border-color:#39694f;color:#fff}

.face-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.face-grid label{font-size:10px;color:#7b8c72;display:flex;flex-direction:column;gap:4px}
.face-grid input{padding:7px 8px;border:1px solid #d5dfcf;border-radius:7px;background:#fcfdf9;font-size:13px;text-align:center;width:100%}

.face-cell{display:grid;grid-template-columns:1fr 56px;grid-template-rows:auto auto;gap:4px;align-items:center}
.face-cell > span{grid-column:1 / -1;font-size:10px;color:#7b8c72}
.face-cell select{padding:6px 4px;border:1px solid #d5dfcf;border-radius:6px;background:#fcfdf9;font-size:11px;width:100%}
.face-cell .face-spin{font-size:10px;color:#6f8068;background:#f4f7ef}

.text-cell{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#7b8c72}
.text-cell input{padding:7px 6px;border:1px solid #d5dfcf;border-radius:7px;background:#fcfdf9;font-size:13px;text-align:center;width:100%}

.field.locked{opacity:.55}
.field.locked input{pointer-events:none}

.download-actions{display:flex;gap:8px;margin-top:4px}
.download-actions button{flex:1;padding:13px 12px;font-weight:600}

.preview-toolbar .hint{margin:0;font-size:10px;color:#7e8f76;background:#ffffffc9;padding:6px 9px;border-radius:999px}

.status{padding:6px 10px;border-radius:999px;font-size:11px;background:#eef3e6;color:#57724f}
.status.busy{background:#f4efdc;color:#8a7326}
.status.error{background:#fbe9e7;color:#a13b2c}

.explode-btn{position:absolute;right:14px;bottom:14px;z-index:3;padding:11px 18px;border-radius:999px;background:#39694f;color:#fff;border:1px solid #39694f;font-size:12px;font-weight:600;box-shadow:0 6px 18px #2f513822}
.explode-btn:hover{background:#2f5a43}
.explode-btn.on{background:#fff;color:#39694f}

/* 뷰포트 좌표계 (카메라 회전에 맞춰 갱신) */
.axis-gizmo{position:absolute;left:14px;bottom:14px;z-index:3;pointer-events:none;line-height:0;filter:drop-shadow(0 2px 6px #2f513818)}
.axis-gizmo svg{display:block}

.font-current{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:6px 0 12px;font-size:11px;color:#6f8068}
.font-current b{color:#2f5138}
.font-current button{font-size:11px;padding:7px 10px}

.font-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:18px 0 8px;padding-top:6px;border-top:1px solid #eef2e8}
.font-label{display:block;font-size:10px;color:#8a9a82;margin-bottom:3px}
.font-head b{font-size:13px;color:#243b38}
.font-head button{font-size:11px;padding:8px 12px;white-space:nowrap}
.link-button{background:none;border:0;padding:0;font-size:11px;color:#6f8068;text-decoration:underline;text-underline-offset:3px;cursor:pointer;margin:4px 0 18px}
.link-button:hover{color:#2f5138;background:none}
.font-note{margin:10px 0 6px;font-size:10px;line-height:1.7;color:#8a9a82}

.google-font-picker{margin-top:6px;border:1px solid #dce5d4;border-radius:9px;background:#fafcf5;padding:12px}
.google-font-toggle{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600;cursor:pointer;color:#4b6047}
.google-font-toggle input{accent-color:#39694f;width:16px;height:16px}
#google-font-options{margin-top:12px;border-top:1px solid #e4eadb;padding-top:12px}
#google-font-options[hidden]{display:none}
#google-font-count{font-size:10px;color:#718169;margin:0 0 8px}
#google-font-note{font-size:10px;color:#819174;margin:8px 0 0;line-height:1.7}
#google-font-apply{width:100%;padding:11px;font-size:11px}

.font-preview-cards{display:grid;grid-template-columns:1fr;gap:6px;max-height:240px;overflow:auto;margin:8px 0}
.font-preview-card{min-width:0;text-align:left;border:1px solid #dbe4ce;border-radius:7px;padding:9px 11px;background:#fff;font-size:16px;line-height:1.35;color:#243b38;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;width:100%}
.font-preview-card.active{border-color:#39694f;background:#edf4e5}
.font-preview-card:disabled{opacity:.6}

@media (max-width:700px){
  .download-actions{flex-direction:column}
}

.footer-legal{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.footer-legal-sep{opacity:.45}
.footer-saved{color:#a4af9b}
.site-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:24px;padding-top:14px;border-top:1px solid #e4eadf;font-size:9px;color:#a4af9b;letter-spacing:.2px}
.site-footer a{color:#8b9a8e;text-decoration:none}
.site-footer a:hover{color:#39694f;text-decoration:underline}
.site-footer a:focus-visible{outline:2px solid #4c9f86;outline-offset:2px;border-radius:2px}

/* 헤더: 다른 스튜디오 링크 + 언어 선택 */
.eyebrow{display:block;font-size:8px;letter-spacing:2px;color:#8b9b82;font-weight:600;margin-bottom:2px}
.intro-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.intro-head h1{margin:2px 0 0}
.reset-button{flex:0 0 auto;font-size:10px;padding:7px 11px;white-space:nowrap;border-radius:999px;background:#f7faf3;color:#5c7358;border-color:#dce5d4}
.reset-button:hover{background:#edf3e5}
.workspace-title .eyebrow{margin-bottom:1px}
.workspace-title h2{margin-top:0}
.workspace-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.local-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #dce6d4;border-radius:999px;color:#7c9570;font-size:10px;white-space:nowrap;background:#fafcf8}
.live-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#5b9269}

.header-left{display:flex;align-items:center;gap:16px;min-width:0}
.header-links{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;min-width:0}
.header-site{display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:0 9px;border:1px solid #dce6de;border-radius:7px;background:#f5f9f5;color:#35694a;font-size:9px;font-weight:600;letter-spacing:.3px;white-space:nowrap;text-decoration:none}
.header-site:hover{background:#eaf2e9;color:#2f5a43}
.header-site:focus-visible{outline:2px solid #39694f;outline-offset:3px}
.header-site-short{display:none}
.header-site.hub-link{background:#eef3e6;border-color:#d3ddc9}
#language{padding:7px 9px;border:1px solid #d6dfcf;border-radius:7px;background:#fcfdf9;font-size:11px;color:#3f5848}
.header-actions{gap:8px}

@media (max-width:1240px){
  .header-site-full{display:none}
  .header-site-short{display:inline}
  .header-left{gap:12px}
}
@media (max-width:700px){
  .site-header{height:auto;flex-wrap:wrap;gap:10px}
  .intro{display:block}
  .header-left{width:100%;justify-content:space-between;flex-wrap:wrap;gap:8px}
  .header-links{gap:5px;flex-wrap:wrap}
  .header-site{min-height:32px;padding:0 8px}
  .header-actions{width:100%;justify-content:flex-end}
}
@media (max-width:400px){
  .header-site{font-size:8px;padding:0 7px}
}

