/* EduScreen 2.2 — visual design system. Presentation only: no event or state logic. */
:root {
  --ed-ink:#18374B;
  --ed-ink-strong:#102A3C;
  --ed-text:#244456;
  --ed-muted:#647D8A;
  --ed-brand:#0E8D7D;
  --ed-brand-dark:#08796D;
  --ed-brand-soft:#E7F7F1;
  --ed-sky:#E7F2FA;
  --ed-amber:#F1AC52;
  --ed-border:#DCE7EB;
  --ed-page:#F2F6F8;
  --ed-elevated:#FFF;
  --ed-shadow:0 12px 38px rgba(21,54,68,.09);
}
body{background:var(--ed-page);color:var(--ed-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.header{
  background:rgba(255,255,255,.97);
  box-shadow:0 2px 18px rgba(30,65,73,.045);
  border-bottom-color:var(--ed-border);
}
.header .brandmark{
  background:linear-gradient(145deg,#1C5060,#122F42);
  box-shadow:0 4px 12px rgba(20,74,77,.15);
  border-radius:14px;
}
.header .brandmark span{color:#61DABD}
.brandcopy strong{color:var(--ed-ink-strong);letter-spacing:-.75px}
.brandcopy small{font-weight:600;letter-spacing:.1px}
.headercenter input{border-radius:12px;font-weight:750}
.headercenter input:focus{background:#F5FAFA;border-color:#B9DED8}
.headeractions .iconbtn{
  display:inline-grid;place-items:center;
  border-radius:11px!important;color:#526F7C;background:transparent;
  transition:background .15s,color .15s;
}
.headeractions .iconbtn:hover{color:#087F73;background:#EDF8F5}
.headeractions .primary{
  border-radius:12px;
  background:linear-gradient(135deg,#1F5260,#153849);
  box-shadow:0 3px 10px rgba(14,54,67,.13);
}
.headeractions .primary:hover{filter:brightness(1.1)}
.headeractions .outline{border-radius:11px}
.headeractions .widget-open-btn{
  background:#EAF8F2;
  color:#096B62;
  border-color:#C4E8DC;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.36);
  transition:background .17s,border-color .17s,transform .17s;
}
.headeractions .widget-open-btn:hover{background:#D7F1E7;border-color:#91D7C2;transform:translateY(-1px)}
.rail{
  background:linear-gradient(180deg,#FFFFFF,#FBFDFD);
  border-right:1px solid #E3EDEF;
  box-shadow:2px 0 15px rgba(20,60,74,.025);
}
.tool{border-radius:13px;transition:background .15s,color .15s,transform .15s}
.tool:hover{color:#0A7069;transform:translateY(-1px)}
.tool.active{
  color:#08796F;
  background:#E5F7F0;
  box-shadow:inset 3px 0 0 #0D9585;
}
.toolicon{letter-spacing:-.05em}
.railsep{background:#E2EBEE}
.drawer{box-shadow:8px 0 30px rgba(25,57,73,.05)}
.drawer-header{background:#FFF}
.drawer-header .eyebrow{color:#0C897A}
.drawer-header h2{color:#163748;letter-spacing:-.75px}
.drawer-body .tile{border-radius:12px}
.drawer-body .chip{border-radius:11px}
.mainview{background:
  radial-gradient(circle at 86% 7%,rgba(202,235,229,.29),transparent 26%),
  linear-gradient(165deg,#F5F9FA,#F0F5F8);
}
.stage-top .boardtag{
  border-color:#D9E9E5;
  box-shadow:0 2px 8px rgba(20,75,76,.045);
  color:#366476;
  font-weight:750;
}
.stage-top .boardtag .dot{background:#19A88C;box-shadow:0 0 0 3px #E0F7EC}
.stage-top .softbtn,.stage-bottom .smallbtn,.stage-bottom .circlebtn,.stage-bottom .addpage{
  border-color:#D6E5E9;
  color:#36556A;
  border-radius:10px;
  transition:background .15s,border-color .15s;
}
.stage-top .softbtn:hover,.stage-bottom button:hover:not(:disabled){background:#E4F3F0;border-color:#AFE0D2}
.board{border-color:#DCE5EA;box-shadow:0 18px 55px rgba(27,63,78,.115),0 3px 8px rgba(27,63,78,.05);border-radius:13px}
.board:before{border-radius:12px}
.footer{background:#FCFDFE;border-color:#E0EBEE;color:#6B8290}
.footer b{color:#1A4856}
.workspace{position:relative}
#widgetLayer{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden}
#widgetLayer .widget-tile{
  position:absolute;pointer-events:auto;touch-action:none;user-select:none;
  border-radius:22px;
  border:1px solid rgba(212,229,234,.98);
  background:#FFF;
  color:#19394D;
  box-shadow:0 16px 40px rgba(22,58,71,.14),0 2px 6px rgba(22,58,71,.045);
  overflow:hidden;
  min-width:0;max-width:none;min-height:0;
  transition:box-shadow .18s,border-color .18s;
}
#widgetLayer .widget-tile:hover{
  border-color:#B8DAD8;
  box-shadow:0 17px 45px rgba(22,58,71,.19),0 3px 8px rgba(22,58,71,.045);
}
#widgetLayer .widget-tile.dragging{
  outline:2px solid #26AB99;
  border-color:#26AB99;
  box-shadow:0 22px 50px rgba(16,80,88,.24);
}
#widgetLayer .widget-tile.w-clock{
  background:
    radial-gradient(circle at 98% 2%,rgba(210,246,236,.75),transparent 48%),
    linear-gradient(140deg,#FFF,#F8FFFC);
}
#widgetLayer .widget-tile.w-date{
  background:
    radial-gradient(circle at 98% 0%,rgba(221,231,253,.79),transparent 50%),
    linear-gradient(140deg,#FFF,#F9FBFF);
}
#widgetLayer .widget-tile.w-weather{
  background:
    radial-gradient(circle at 100% 0%,rgba(211,234,251,.78),transparent 52%),
    linear-gradient(145deg,#FBFEFF,#F5FAFF);
  border-color:#D1E3EF;
}
#widgetLayer .widget-tile:is(.w-clock,.w-date,.w-weather):before{
  content:"";
  position:absolute;top:0;left:0;right:0;height:3px;
  z-index:1;pointer-events:none;
  background:linear-gradient(90deg,#0B9C89,#8CE0C6);
}
#widgetLayer .widget-tile.w-date:before{background:linear-gradient(90deg,#5A8ED0,#BEC8FF)}
#widgetLayer .widget-tile.w-weather:before{background:linear-gradient(90deg,#6AADE5,#D8ECFA)}
#widgetLayer .widget-head{
  position:relative;display:flex;align-items:center;justify-content:space-between;
  padding:9px 9px 3px 14px;gap:5px;min-height:32px;
  cursor:grab;touch-action:none;background:transparent;
}
#widgetLayer .widget-head:active{cursor:grabbing}
#widgetLayer .widget-label{
  color:#547787;font-weight:800;font-size:11px;letter-spacing:.45px;
  text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;
}
#widgetLayer .widget-tile.w-date .widget-label{color:#5779AA}
#widgetLayer .widget-tile.w-weather .widget-label{color:#547FA0}
#widgetLayer .widget-tools{display:flex;align-items:center;gap:3px;flex:none}
#widgetLayer .widget-tools button{
  width:25px;height:25px;padding:0;
  border:1px solid transparent;border-radius:8px;
  color:#5A7886;background:rgba(243,249,250,.72);
  line-height:1;display:grid;place-items:center;
  font-weight:650;font-size:16px;
  transition:background .14s,color .14s,border-color .14s;
}
#widgetLayer .widget-tools button:hover{
  color:#066C65;background:#DFF4ED;border-color:#B8E0D3;
}
#widgetLayer .widget-tools button:last-child:hover{
  color:#A63D49;background:#FDEAE9;border-color:#F7C4C0;
}
#widgetLayer .widget-tools .clock-toggle{
  border:1px solid #BADED4;
  background:#E4F7F0;
  color:#08786B;
  width:auto;height:25px;
  padding:0 8px;font-size:10px;white-space:nowrap;border-radius:8px;
  font-weight:850;
}
#widgetLayer .widget-tools .clock-toggle:hover{background:#CBF0E3}
#widgetLayer .widget-body{
  position:relative;
  padding:5px 14px 15px;
  min-height:0;
  overflow:hidden;
}
#widgetLayer .w-clock .widget-body{align-items:center;justify-content:center}
#widgetLayer .widget-time{
  color:#17384A;font-weight:850;font-variant-numeric:tabular-nums;
  letter-spacing:-.045em;white-space:nowrap;
  text-shadow:0 1px rgba(255,255,255,.8);
}
#widgetLayer .clock-svg{
  filter:drop-shadow(0 3px 4px rgba(28,60,75,.07));
}
#widgetLayer .clock-svg circle:first-child{
  fill:#FDFEFF;stroke:#26586A;stroke-width:2.7;
}
#widgetLayer .clock-svg .h-hand{stroke:#234354}
#widgetLayer .clock-svg .m-hand{stroke:#0B9B87}
#widgetLayer .clock-svg .s-hand{stroke:#DF8E65}
#widgetLayer .widget-date-main{
  color:#213E61;font-weight:850;line-height:1.1;
  letter-spacing:-.04em;text-wrap:balance;
}
#widgetLayer .widget-date-sub{
  color:#5E7C98;font-weight:750;
  letter-spacing:.02em;text-transform:capitalize;
}
#widgetLayer .widget-date-main:before{
  content:"▦";
  display:inline-grid;place-items:center;
  vertical-align:middle;margin-right:9px;margin-bottom:4px;
  width:29px;height:29px;
  border-radius:9px;
  background:#EAF0FD;color:#4F81BE;
  font-size:17px;
}
#widgetLayer .widget-weather-main{
  display:flex;align-items:center;gap:10px;
  min-height:0;
}
#widgetLayer .widget-weather-icon{
  width:1.15em;height:1.15em;display:inline-flex;align-items:center;justify-content:center;
  flex:none;border-radius:50%;
  background:linear-gradient(145deg,rgba(255,255,255,.85),rgba(223,241,253,.45));
  filter:drop-shadow(0 3px 3px rgba(62,119,150,.08));
}
#widgetLayer .widget-weather-temp{color:#244D67;font-weight:850;letter-spacing:-.05em;white-space:nowrap}
#widgetLayer .widget-weather-city{color:#406C87;font-size:12px;font-weight:800;margin-bottom:7px}
#widgetLayer .widget-weather-desc{color:#597C93;font-weight:650;font-size:12px;margin-top:4px}
#widgetLayer .widget-weather-refresh{color:#7D93A3;font-weight:500;font-size:10px;letter-spacing:.1px}
#widgetLayer .widget-empty{color:#6B8491;line-height:1.35;font-size:12px}
#widgetLayer .widget-tile .resize-grip{
  cursor:nwse-resize;touch-action:none;
  color:#15947E;
}
#widgetLayer .widget-tile .resize-grip:hover{color:#087366;filter:brightness(.93)}
/* Widget drawer: product-like, compact, scannable cards */
.widget-tray{
  position:absolute;right:16px;top:10px;bottom:10px;
  z-index:20;width:344px;max-width:calc(100vw - 112px);
  border:1px solid rgba(220,233,236,.98);border-radius:22px;
  background:rgba(255,255,255,.985);color:var(--ed-ink);
  box-shadow:0 24px 78px rgba(23,58,71,.19),0 2px 8px rgba(23,58,71,.05);
  padding:23px 19px;overflow:auto;scrollbar-width:thin;
  backdrop-filter:blur(14px);
  animation:ed-panel-show .16s ease-out;
}
.widget-tray[hidden]{display:none}
.widget-tray-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.widget-tray-heading h2{font-size:24px;line-height:1.1;margin:5px 0 0;letter-spacing:-.85px;color:#193A4B}
.widget-tray .eyebrow{color:#168F7E;font-size:10px;letter-spacing:1.45px}
.widget-tray .closebtn{
  width:36px;height:36px;flex:none;border-radius:11px;
  background:#F0F6F7;color:#5C7786;
}
.widget-tray .closebtn:hover{background:#E5F2F0;color:#0A8578}
.widget-tray>p{font-size:13px;line-height:1.53;color:#69818D;margin:13px 0 18px}
.widget-options{display:grid;gap:10px;margin:0 0 22px}
.widget-options>button{
  display:flex;align-items:center;gap:13px;
  text-align:left;min-height:75px;padding:12px;
  border-radius:16px;border:1px solid #E0EAEB;
  background:linear-gradient(130deg,#FFF,#F9FCFC);
  color:#244455;
  box-shadow:0 2px 6px rgba(20,60,70,.022);
  transition:transform .16s,border-color .16s,background .16s,box-shadow .16s;
}
.widget-options>button:hover{
  border-color:#93D2C3;background:linear-gradient(130deg,#FFF,#F0FBF6);
  box-shadow:0 7px 18px rgba(20,74,78,.09);
  transform:translateY(-2px);
}
.widget-option-icon{
  width:46px;height:46px;flex:none;
  display:grid;place-items:center;
  border-radius:14px;
  background:linear-gradient(135deg,#E2F5EE,#CCEEE2);
  color:#117C70;font-size:25px;
}
.widget-options>button[data-widget-add="date"] .widget-option-icon{
  background:linear-gradient(135deg,#EAF1FE,#DBE5FA);color:#4E77B7
}
.widget-options>button[data-widget-add="weather"] .widget-option-icon{
  background:linear-gradient(135deg,#EEF8FF,#D6EEFA);color:#367AA9
}
.widget-options strong{display:block;font-size:14px;font-weight:800;letter-spacing:-.1px}
.widget-options small{display:block;color:#77909A;font-size:11px;line-height:1.4;margin-top:4px}
.widget-plus{
  width:27px;height:27px;display:grid;place-items:center;
  margin-left:auto;flex:none;
  border:1px solid #DBE9E6;border-radius:9px;
  background:#FFF;color:#16917D;font-weight:700;font-size:18px;
}
.widget-settings{border-top:1px solid #E7EEF0;padding:17px 0;display:grid;gap:9px}
.widget-settings label,.widget-setting-title{font-size:12px;font-weight:800;color:#385D6C}
.widget-settings input{
  width:100%;min-height:44px;
  padding:11px 13px;
  border:1px solid #CBDAE0;
  background:#FCFEFF;border-radius:12px;
  color:#26485A;font-size:13px;
}
.widget-settings input:focus{border-color:#47AC9C;box-shadow:0 0 0 3px #D8F4EA;outline:0}
.widget-settings>button{
  padding:12px;border:0;border-radius:12px;
  background:linear-gradient(135deg,#217C78,#12655F);
  color:#FFF;font-size:12px;font-weight:750;
  box-shadow:0 3px 9px rgba(31,111,104,.13);
}
.widget-settings>button:hover:not(:disabled){filter:brightness(1.1)}
.widget-settings>button:disabled{opacity:.5}
.widget-settings small,.widget-credits,#weatherFeedback{font-size:11px;line-height:1.5;color:#728B96}
#weatherFeedback:not(:empty){color:#0B796A}
.widget-segments{
  display:flex;gap:3px;padding:4px;
  background:#F0F5F7;border-radius:12px;
}
.widget-segments button{
  flex:1;border:0;border-radius:9px;
  background:transparent;color:#65818D;
  padding:10px;font-size:12px;font-weight:700;
}
.widget-segments button.active{
  background:#FFF;color:#067D71;
  font-weight:850;box-shadow:0 2px 8px rgba(34,78,88,.1);
}
.widget-credits{padding:10px 0}
.widget-credits a{color:#0B8175;text-decoration:none;font-weight:750}
.widget-credits a:hover{text-decoration:underline}
@keyframes ed-panel-show{from{opacity:.72;transform:translateX(8px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:1020px){
 .widget-tray{right:9px;top:6px;bottom:6px;width:310px}
 #widgetLayer .widget-head{padding:6px 6px 2px 8px}
 #widgetLayer .widget-label{font-size:9px}
 #widgetLayer .widget-tools{gap:1px}
 #widgetLayer .widget-tools button{width:21px;height:21px;font-size:14px}
 #widgetLayer .widget-tools .clock-toggle{width:auto;height:21px;padding:0 4px;font-size:9px}
 #widgetLayer .widget-body{padding:3px 7px 8px}
 #widgetLayer .widget-date-main:before{width:21px;height:21px;font-size:13px;margin-right:5px}
}
@media(max-width:690px){
 .header .widget-open-btn span{display:none}
 .rail{border-right:0;border-bottom:1px solid #E0EAED}
 .tool.active{box-shadow:inset 0 -3px 0 #0D9585}
 .widget-tray{right:5px;top:5px;bottom:5px;width:min(305px,90vw);max-width:none;padding:17px 15px;border-radius:17px}
 .widget-options>button{min-height:64px;padding:9px}
 .widget-option-icon{width:38px;height:38px;font-size:21px;border-radius:12px}
 #widgetLayer .widget-head{min-height:19px;padding:2px 4px}
 #widgetLayer .widget-label{font-size:8px;letter-spacing:0}
 #widgetLayer .widget-tools button{width:18px;height:18px;font-size:13px}
 #widgetLayer .widget-tools .clock-toggle{width:auto;height:18px;padding:0 3px;font-size:8px}
 #widgetLayer .widget-body{padding:2px 5px 6px}
 #widgetLayer .widget-date-main:before{display:none}
 #widgetLayer .widget-weather-main{gap:5px}
 #widgetLayer .widget-weather-city{font-size:10px;margin-bottom:2px}
 #widgetLayer .widget-weather-desc{font-size:10px}
 #widgetLayer .widget-weather-refresh{font-size:9px;margin-top:3px}
 .footer{font-size:10px}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}
/* Keep mathematical tasks on one line; do not change the calculation engine. */
.boardobject.task{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.15!important}

/* v3.1: user-approved clean widgets, edit controls shown on selection only. */
#widgetLayer .widget-tile,
#widgetLayer .widget-tile:hover,
#widgetLayer .widget-tile.w-clock,
#widgetLayer .widget-tile.w-date,
#widgetLayer .widget-tile.w-weather{background:transparent!important;border:1px solid transparent!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
#widgetLayer .widget-tile:before{display:none!important}
#widgetLayer .widget-tile.ed-widget-selected{outline:2px dashed #0A9A88!important;outline-offset:3px!important}
#widgetLayer .widget-tile .widget-head{display:none!important;position:absolute!important;z-index:80!important;top:-47px!important;right:0!important;left:auto!important;width:max-content!important;max-width:330px!important;min-height:36px!important;padding:3px 7px!important;border-radius:11px!important;background:#fff!important;border:1px solid #cbdfe1!important;box-shadow:0 5px 20px #1039452b!important;gap:4px!important;align-items:center!important;white-space:nowrap!important}
#widgetLayer .widget-tile.ed-widget-selected .widget-head{display:flex!important}
#widgetLayer .widget-tile .widget-label{font-size:11px!important}
#widgetLayer .widget-tile .widget-tools{display:flex!important}
#widgetLayer .widget-tile .resize-grip{display:none!important}
#widgetLayer .widget-tile.ed-widget-selected .resize-grip{display:flex!important}
#widgetLayer .widget-tile .widget-body{background:transparent!important;box-shadow:none!important;border-radius:0!important;border:none!important;padding:0!important;overflow:visible!important}
