/* Nhà Mơ Studio – bản 101: giao diện trình thiết kế (chỉ đổi diện mạo, không đổi chức năng) */
body.editor67{--e-ink:#101820;--e-ink2:#41524f;--e-mut:#6b7b7a;--e-line:#e3e8e6;--e-bg:#F3F5F4;--e-teal:#2F6F73;--e-gold:#F5C777;--e-card:#fff;background:var(--e-bg)!important;font-family:"Be Vietnam Pro",system-ui,sans-serif}
/* ---- Thanh trên ---- */
body.editor67>header{height:58px!important;min-height:58px;padding:0 16px!important;gap:8px!important;background:rgba(255,255,255,.92)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--e-line)!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset,0 8px 24px -22px rgba(16,24,32,.5)}
body.editor67>header .logo{font:400 1.45rem Newsreader,Georgia,serif!important;color:var(--e-ink)!important;margin-right:6px;white-space:nowrap}
body.editor67>header button,body.editor67>header .tb78>button{height:36px;border-radius:10px!important;border:1px solid transparent!important;background:transparent!important;color:var(--e-ink)!important;font:500 13px/1 "Be Vietnam Pro",sans-serif!important;padding:0 12px!important;box-shadow:none!important;transition:background .15s,color .15s}
body.editor67>header button:hover,body.editor67>header .tb78>button:hover{background:#eef2f1!important}
body.editor67>header button.primary,body.editor67>header #save{background:var(--e-ink)!important;color:#fff!important;padding:0 18px!important}
body.editor67>header #save:hover,body.editor67>header button.primary:hover{background:var(--e-teal)!important}
body.editor67>header #createPlan{background:var(--e-ink)!important;color:#fff!important}
body.editor67>header #tplLib77,body.editor67>header #siteBtn71,body.editor67>header #leadOpen76{background:#faf6ea!important;border-color:#ecdcae!important;color:#6b4e12!important}
body.editor67>header #draftSaveStatus{font-size:11.5px;color:var(--e-mut)}
.tb78-pop{border-radius:14px!important;border:1px solid var(--e-line)!important;box-shadow:0 24px 50px -20px rgba(16,24,32,.4)!important;padding:6px!important}
.tb78-pop button,.tb78-pop a{border-radius:9px!important;text-align:left}
/* ---- Cột trái ---- */
body.editor67 main.layout>aside:first-child{background:#fff!important;border-right:1px solid var(--e-line)!important;padding:16px 14px!important}
body.editor67 aside h2{font:600 10.5px/1 "Be Vietnam Pro",sans-serif!important;letter-spacing:.14em;text-transform:uppercase;color:var(--e-mut)!important;margin:0 0 12px!important}
body.editor67 .tools{gap:8px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.editor67 .tools button{display:flex!important;flex-direction:column;align-items:flex-start;justify-content:flex-end;gap:8px;min-height:72px;padding:11px 12px!important;border-radius:14px!important;border:1px solid var(--e-line)!important;background:#fafbfa!important;color:var(--e-ink)!important;font:500 12.5px/1.2 "Be Vietnam Pro",sans-serif!important;text-align:left;transition:all .15s;overflow:hidden}
body.editor67 .tools button b{font-size:18px;line-height:1;color:var(--e-teal)}
body.editor67 .tools button:hover{border-color:var(--e-ink)!important;background:#fff!important;transform:translateY(-1px);box-shadow:0 10px 20px -14px rgba(16,24,32,.5)}
body.editor67 .tools button.active{background:var(--e-ink)!important;border-color:var(--e-ink)!important;color:#fff!important}
body.editor67 .tools button.active b{color:var(--e-gold)}
body.editor67 #addArea71{border-radius:12px!important;margin-top:8px}
body.editor67 aside select,body.editor67 aside input[type=text],body.editor67 aside input:not([type]),body.editor67 aside input[type=search]{border-radius:12px!important;border:1px solid var(--e-line)!important;background:#fafbfa!important;height:40px;font:400 13px "Be Vietnam Pro",sans-serif!important}
body.editor67 aside .hint{font-size:12px!important;color:var(--e-mut)!important;line-height:1.5}
body.editor67 aside .card{background:linear-gradient(160deg,#101820,#1c3a42)!important;color:#e9f0ee!important;border:0!important;border-radius:16px!important;padding:16px!important}
body.editor67 aside .card strong{font:400 1.15rem Newsreader,Georgia,serif;display:block;margin-bottom:4px;color:#fff}
body.editor67 aside .card button.full{background:var(--e-gold)!important;color:var(--e-ink)!important;border:0!important;border-radius:10px!important;margin-top:10px;font-weight:600}
/* ---- Thanh làm việc ---- */
body.editor67 .workspace{background:var(--e-bg)!important}
body.editor67 .workspace>.bar{padding:10px 16px!important;gap:8px!important;background:#fff!important;border-bottom:1px solid var(--e-line)!important}
body.editor67 .bar #projectName{font:500 1.05rem Newsreader,Georgia,serif!important;border:1px solid transparent!important;background:transparent!important;border-radius:10px!important;height:38px;max-width:260px;padding:0 10px!important}
body.editor67 .bar #projectName:hover,body.editor67 .bar #projectName:focus{background:#f3f5f4!important;border-color:var(--e-line)!important}
body.editor67 .bar button,body.editor67 .level-bar button,body.editor67 .cloud-bar button{height:34px;border-radius:10px!important;border:1px solid var(--e-line)!important;background:#fff!important;color:var(--e-ink)!important;font:500 12.5px/1 "Be Vietnam Pro",sans-serif!important;padding:0 14px!important;transition:all .15s}
body.editor67 .bar button:hover,body.editor67 .level-bar button:hover,body.editor67 .cloud-bar button:hover{border-color:var(--e-ink)!important}
body.editor67 .bar #two,body.editor67 .bar #three{border-radius:999px!important;height:36px;padding:0 18px!important}
body.editor67 .bar #two.active,body.editor67 .bar #three.active,body.editor67 .level-bar button.active{background:var(--e-ink)!important;color:#fff!important;border-color:var(--e-ink)!important}
body.editor67 .cloud-bar{background:#f7f9f8!important;border-bottom:1px solid var(--e-line)!important;padding:5px 16px!important;min-height:0!important;font-size:11.5px;color:var(--e-mut)}
body.editor67 .cloud-bar button{height:28px;font-size:11.5px!important;padding:0 11px!important}
body.editor67 .level-bar{background:#fff!important;border-bottom:1px solid var(--e-line)!important;padding:8px 16px!important;gap:8px!important}
body.editor67 .level-bar select,body.editor67 #visualControls select,body.editor67 #annotationBar select{border-radius:10px!important;border:1px solid var(--e-line)!important;height:34px;background:#fff!important;font:400 12.5px "Be Vietnam Pro",sans-serif}
body.editor67 #visualControls,body.editor67 #annotationBar{background:#fff!important;border-bottom:1px solid var(--e-line)!important;padding:8px 16px!important}
/* ---- Khung vẽ ---- */
body.editor67 .canvas-wrap{background:#EDF1EF!important;background-image:radial-gradient(rgba(16,24,32,.07) 1px,transparent 1px)!important;background-size:22px 22px}
body.editor67 .canvas-wrap canvas#canvas{background:transparent}
body.editor67 .floating{background:rgba(255,255,255,.94)!important;border:1px solid var(--e-line)!important;border-radius:16px!important;box-shadow:0 24px 50px -22px rgba(16,24,32,.5)!important;padding:6px!important;gap:4px!important;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body.editor67 .floating button{height:36px;min-width:36px;border-radius:11px!important;border:0!important;background:transparent!important;color:var(--e-ink)!important;font:500 12.5px "Be Vietnam Pro",sans-serif!important;padding:0 12px!important}
body.editor67 .floating button:hover{background:#eef2f1!important}
body.editor67 .status{background:#fff!important;border-top:1px solid var(--e-line)!important;font-size:11.5px!important;color:var(--e-mut)!important;padding:6px 16px!important}
body.editor67 .bottom-info{background:rgba(255,255,255,.94)!important;border:1px solid var(--e-line)!important;border-radius:12px!important;font-size:11.5px!important}
/* ---- Cột phải ---- */
body.editor67 main.layout>aside:last-child{background:#fff!important;border-left:1px solid var(--e-line)!important;padding:16px 16px!important}
body.editor67 aside .stats>div,body.editor67 aside .stats>p{border-bottom:1px solid #eef1f0;padding:7px 0!important;font-size:12.5px!important}
body.editor67 #area{font-variant-numeric:tabular-nums}
body.editor67 #properties,body.editor67 #roomFitPanel{font-size:13px}
body.editor67 #properties h3,body.editor67 #properties strong{font:500 1.1rem Newsreader,Georgia,serif}
body.editor67 #properties input,body.editor67 #properties select{border-radius:10px!important;border:1px solid var(--e-line)!important;height:36px;background:#fafbfa!important}
body.editor67 #png.full{border-radius:12px!important;margin-top:12px}
body.editor67 aside::-webkit-scrollbar,body.editor67 .workspace::-webkit-scrollbar{width:10px}
body.editor67 aside::-webkit-scrollbar-thumb{background:#d5dcda;border-radius:9px;border:3px solid #fff}
/* ---- Hộp thoại ---- */
body.editor67 dialog.studio-dialog{border:0!important;border-radius:24px!important;box-shadow:0 50px 120px -30px rgba(16,24,32,.6)!important}
body.editor67 dialog.studio-dialog::backdrop{background:rgba(16,24,32,.55);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
body.editor67 .dialog-top{border-bottom:1px solid var(--e-line)}
body.editor67 button.primary.generate{border-radius:999px!important;background:var(--e-ink)!important;height:46px;padding:0 26px!important}
body.editor67 #annotationBar{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 12px}
body.editor67 #annotationBar select{height:36px!important;min-width:190px;padding:0 10px!important;line-height:1.2}
body.editor67 #annotationBar button{height:34px;border-radius:10px!important;border:1px solid var(--e-line)!important;background:#fff!important;padding:0 14px!important;font:500 12.5px "Be Vietnam Pro",sans-serif!important;white-space:nowrap;color:var(--e-ink)!important}
body.editor67 #annotationBar label{font-size:12px;color:var(--e-ink2);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
body.editor67 #annotationBar .annotation-count,body.editor67 #annotationBar .annotation-version{font-size:11.5px;color:var(--e-mut)}
/* ---- 3D: gọn bảng điều khiển để khung nhìn luôn đủ rộng ---- */
body.editor67 .cloud-bar{flex-wrap:nowrap!important;overflow:hidden;white-space:nowrap}
body.editor67 .cloud-bar>span:not(#cloudStatus){display:none!important}
body.editor67 #visualControls:not([hidden]){display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 12px;max-height:132px;overflow-y:auto;padding:8px 16px!important;border-bottom:1px solid var(--e-line)}
body.editor67 #visualControls label{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--e-ink2);white-space:nowrap}
body.editor67 #visualControls select{height:32px!important}
body.editor67 #visualControls button{height:32px;padding:0 13px!important;border-radius:999px!important;border:1px solid var(--e-line)!important;background:#fff!important;font:500 12px "Be Vietnam Pro",sans-serif!important;color:var(--e-ink)!important}
body.editor67 #visualControls details.nm77-fx{flex:1 1 100%;margin:0!important;border-radius:12px;background:#f7f9f8;border:1px solid var(--e-line);padding:6px 12px}
body.editor67 #visualControls details>summary{font:600 12px "Be Vietnam Pro",sans-serif;cursor:pointer}
body.editor67 #studioControlsV66:not([hidden]){display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 14px;max-height:96px;overflow-y:auto;padding:8px 16px!important;background:#fff;border-bottom:1px solid var(--e-line)}
body.editor67 #studioControlsV66 label{display:inline-flex!important;align-items:center;gap:6px;font-size:12px;margin:0!important;width:auto!important}
body.editor67 #studioControlsV66 select{height:32px!important;width:auto!important;min-width:110px}
body.editor67 #studioControlsV66 button{height:32px;border-radius:999px!important;padding:0 14px!important}
body.editor67 #studioControlsV66 .studio-engine-badge{font-size:11px;padding:3px 9px;border-radius:99px;background:#eef2f1;color:var(--e-ink2)}
body.editor67 .canvas-wrap{min-height:320px;flex:1 1 auto}
/* ---- Điện thoại: thanh trên cuộn ngang thay vì tràn khỏi màn hình ---- */
@media(max-width:820px){
 body.editor67>header{overflow-x:auto!important;overflow-y:hidden;flex-wrap:nowrap!important;scrollbar-width:none;-webkit-overflow-scrolling:touch;max-width:100vw}
 body.editor67>header::-webkit-scrollbar{display:none}
 body.editor67>header>*{flex-shrink:0}
 body.editor67 .tb78-pop{position:fixed!important;left:8px!important;right:8px!important;top:64px!important;max-height:70vh;overflow:auto}
 body.editor67 .workspace>.bar{flex-wrap:wrap}
}
