/* Only mobile drawing inspectors use this material and layout. */
.drawing-bento-top,.bento-tool,.bento-style,.bento-color{display:contents}
.bento-label,.bento-mode,.bento-mobile-name,.bento-collapse,.bento-swatches{display:none}
@media(max-width:699px){
  :root[data-student-workspace=modern]{scrollbar-width:none}
  :root[data-student-workspace=modern]::-webkit-scrollbar{width:0}
  :root[data-student-workspace=modern] .identity-header{min-height:56px;padding-block:4px}
  :root[data-student-workspace=modern] .skin-toolbar{min-height:52px}
  :root[data-student-workspace=modern] .editor-tools{padding:4px;min-height:68px}
  :root[data-student-workspace=modern] .editor-tools button{min-height:56px;border-radius:12px}
  :root[data-student-workspace=modern] .canvas-zoom{min-height:48px}
  :root[data-student-workspace=modern] .pen-panel[data-bento-ready]{padding:0;min-width:0}
  :root[data-student-workspace=modern] .pen-panel .pen-heading{display:grid;grid-template-columns:minmax(0,1fr) auto 44px;gap:12px;align-items:center;position:sticky;top:0;z-index:4;height:44px;margin:0 -8px 8px;padding:0 8px 0 12px;background:var(--surface-panel);border-bottom:1px solid var(--line)}
  .pen-heading>strong{font-size:14px}.pen-heading>span{font-size:10px;white-space:nowrap;color:var(--muted)}
  .bento-collapse{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;background:transparent;color:var(--muted);font-size:22px;border-radius:10px}
  .bento-collapse:focus-visible{outline:2px solid #9a7bdd;outline-offset:-3px}
  :root[data-student-workspace=modern] .pen-panel fieldset{display:grid;gap:8px}
  .drawing-bento-top{display:grid;grid-template-columns:minmax(0,47fr) minmax(0,53fr);grid-template-areas:'tool mode' 'tool style';gap:8px;align-items:stretch}
  .bento-block{display:flex;flex-direction:column;gap:8px;min-width:0;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface-hover)}
  .bento-label{display:block;font-size:10px;font-weight:600;letter-spacing:.08em;line-height:1.4;color:var(--muted)}
  .bento-tool{grid-area:tool}.bento-mode{grid-area:mode}.bento-style{grid-area:style}.bento-mode-value{display:flex;align-items:center;min-height:36px;padding:4px 10px;border:1px solid var(--line);border-radius:10px;font-size:13px;font-weight:500}.bento-mode-note{font-size:10px;line-height:1.55;color:var(--muted)}
  :root[data-student-workspace=modern] .bento-tool .pen-modes{display:flex;flex-direction:column;gap:8px;padding:0;border:0;background:transparent}
  .bento-tool .pen-modes::before{display:none}
  :root[data-student-workspace=modern] .bento-tool .pen-modes button,:root[data-student-workspace=modern] .bento-style .paint-modes button{min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface-input);font-size:12px;line-height:1.4}
  :root[data-student-workspace=modern] .bento-tool .pen-modes button[aria-pressed=true],:root[data-student-workspace=modern] .bento-style .paint-modes button[aria-pressed=true]{background:rgba(139,107,214,.20);border-color:rgba(166,130,235,.45);color:var(--surface-active-ink)}
  .bento-mobile-name{display:inline}.bento-desktop-name{display:none}
  .bento-style .paint-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:0;border:0;background:transparent}
  .bento-mode-note{display:none}
  .bento-color{display:grid;grid-template-columns:44px minmax(0,1fr);gap:0 4px;position:relative;padding:8px 12px}
  .bento-color>.bento-label{grid-column:1/-1;min-height:18px}
  .paint-editor[data-gradient=false] .paint-preview{display:none}
  .bento-color .paint-color-grid,.bento-color .pen-color{display:contents}
  .bento-color .pen-color>[data-paint-label],.bento-color .pen-color>[data-gradient-end]{display:none}
  .bento-color .pen-color>span{display:none}
  .bento-color .pen-color input[type=color]{width:44px;height:44px;padding:7px;border:0;border-radius:50%;background:transparent;cursor:var(--akts-cursor-pointer, pointer)}
  .bento-color input[type=color]::-webkit-color-swatch-wrapper{padding:0}.bento-color input[type=color]::-webkit-color-swatch{border:1px solid rgba(140,140,155,.4);border-radius:50%}
  .bento-color .pen-color output{position:absolute;top:8px;right:12px;font-size:11px;color:var(--muted)}
  .bento-swatches{display:flex;align-items:center;justify-content:space-between;gap:0;min-width:0;overflow-x:auto;scrollbar-width:none;grid-column:2;grid-row:2}
  .bento-swatch,.bento-color-add{display:grid;place-items:center;flex:0 0 44px;min-width:44px;width:44px;height:44px;padding:0;border:0;border-radius:10px;background:transparent;cursor:var(--akts-cursor-pointer, pointer);color:var(--muted);font-size:22px}
  .paint-editor[data-gradient=true] .bento-color{grid-template-columns:44px minmax(0,1fr)}
  .paint-editor[data-gradient=true] .pen-color[data-gradient-end]{display:grid;grid-template-columns:44px minmax(0,1fr);grid-column:1/-1;grid-row:3;align-items:center}
  .paint-editor[data-gradient=true] .pen-color[data-gradient-end] output{position:static;justify-self:end}
  .bento-swatch>span{width:22px;height:22px;border-radius:50%;background:var(--swatch);border:1px solid rgba(140,140,155,.4)}
  .bento-swatch:focus-visible,.bento-color-add:focus-visible{outline:2px solid #9a7bdd;outline-offset:-2px}
  :root[data-student-workspace=modern] .pen-panel .bento-parameter{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 72px;grid-template-rows:20px 44px;column-gap:8px;row-gap:6px;min-height:78px;padding:12px 14px 6px;border:1px solid var(--line);border-radius:14px;background:var(--surface-hover)}
  .bento-parameter>.field{grid-column:1;grid-row:1;display:flex;align-items:center;font-size:10px;font-weight:600;letter-spacing:.06em;min-width:0;margin:0}
  .bento-parameter .field output{display:none}
  .bento-parameter>.adjustment-range{grid-column:1/-1;grid-row:2;margin:0;min-height:44px;align-self:center}
  .bento-parameter>.pen-range-number{grid-column:2;grid-row:1;display:flex;align-items:center;gap:3px;min-width:0;margin:0;z-index:1}
  :root[data-student-workspace=modern] .bento-parameter .pen-range-number input{height:44px;min-height:44px;min-width:0;width:52px;padding:0 3px;text-align:right;background:transparent;border-color:transparent;box-shadow:none;font-size:12px}
  .bento-parameter .pen-range-number span{position:static;font-size:11px;color:var(--muted);pointer-events:none}
  .bento-parameter .slider-thumb{width:18px;height:18px}.bento-parameter.is-range-dragging .slider-thumb{width:28px;height:28px}
  .bento-tool .brush-presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .bento-tool .brush-presets button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;padding:4px 2px;font-size:10px;overflow-wrap:anywhere}
  .bento-tool .brush-presets canvas{width:48px;max-width:100%;height:24px}
  :root[data-student-theme=dark] .bento-block,:root[data-student-theme=dark] .pen-panel .bento-parameter{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.08)}
}
@media(max-width:349px){.drawing-bento-top{grid-template-areas:'tool tool' 'mode style';grid-template-columns:minmax(0,1fr) minmax(0,1fr)}:root[data-student-workspace=modern] .bento-tool .pen-modes{flex-direction:row}.bento-tool .pen-modes button{flex:1}.bento-tool .brush-presets{grid-template-columns:repeat(3,minmax(0,1fr))}.bento-block{padding:10px}.bento-swatches{gap:0}:root[data-student-workspace=modern] .skin-toolbar{flex-wrap:nowrap}:root[data-student-workspace=modern] #save-skin{font-size:0;gap:0;min-width:44px;width:44px}}
@media(prefers-reduced-motion:reduce){.bento-collapse,.bento-parameter .slider-thumb{transition:none!important}}
