/* :root{
  --toolbar-bg: #f6f7f9;
  --toolbar-border: #e2e6ea;
  --btn-bg: white;
  --btn-hover: #eef3fb;
  --active: #d6e8ff;
  --editor-bg: white;
  --accent: #1677ff;
} */
/* 
*{box-sizing: border-box} */


.editor-shell{
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid var(--toolbar-border);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  border-radius: 8px;
  overflow: hidden;
  color: #111;
  background: linear-gradient(180deg,#f7f9fb,#ffffff);
  box-shadow: 0 8px 30px rgba(16,24,40,0.06);
}

/* toolbar */
.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  padding:10px;
  background:var(--toolbar-bg);
  border-bottom:1px solid var(--toolbar-border);
}

.toolbar-group{
  display:flex;
  gap:6px;
  align-items:center;
  margin-right:6px;
}

/* buttons */
.toolbar button{
  background:var(--btn-bg);
  border:1px solid var(--toolbar-border);
  padding:6px 8px;
  border-radius:6px;
  cursor:pointer;
  font-weight:600;
  min-width:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}

.toolbar button img {
  width: 18px;
  width: 18px;
}

.toolbar button:hover{ background:var(--btn-hover) }
.toolbar button.active{ background:var(--active); outline:2px solid rgba(22,119,255,0.12) }

.toolbar select, .toolbar input[type="color"]{
  border:1px solid var(--toolbar-border);
  padding:6px;
  border-radius:6px;
  background:white;
  height:34px;
}

/* editor area */
.editor-area{
  padding:16px;
  background:var(--editor-bg);
}

.editor{
  min-height:320px;
  border-radius:6px;
  padding:18px;
  outline:none;
  box-shadow: inset 0 1px 0 rgba(16,24,40,0.02);
  font-size:16px;
  line-height:1.45;
  background:white;
  border:1px dashed transparent;
}

/* focus state */
.editor:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(22,119,255,0.06);
}

/* status bar */
.statusbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-top:1px solid var(--toolbar-border);
  padding:10px 12px;
  background:#fbfdff;
}

.status-left span{ margin-right:10px; color:#666; font-size:13px }
.status-right button{
  margin-left:8px;
  padding:6px 10px;
  border-radius:6px;
  background:white;
  border:1px solid var(--toolbar-border);
}


/* responsive */
@media (max-width:700px){
  .toolbar{ gap:6px }
  .toolbar button{ padding:6px; min-width:32px }
  .editor{ min-height:220px }
}

/* fullscreen class */
.editor-shell.fullscreen{
  position:fixed;
  left:0;right:0;top:0;bottom:0;
  width:100%;
  height:100%;
  z-index:9999;
  margin:0;
  border-radius:0;
  display:flex;
  flex-direction:column;
}

.editor-shell.fullscreen .editor-area{
  flex:1;
  padding:18px;
}
