/* Digimo Klassflöde - scoped to teacher classroom and student portal. */
.dgm-feed-panel{margin:24px 0;padding:clamp(18px,2.4vw,32px);background:#fff;border:1px solid #dbe6f4;border-radius:24px;box-shadow:0 10px 30px rgba(14,52,92,.05);color:#182a40;font-family:inherit}
.dgm-feed-panel *{box-sizing:border-box}
.dgm-feed-heading{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:22px}
.dgm-feed-heading h2,.dgm-feed-heading h3{font-size:clamp(23px,2vw,31px);line-height:1.16;color:#132841!important;margin:5px 0 8px!important}
.dgm-feed-heading p{color:#54667e;line-height:1.55;margin:0!important;max-width:720px}
.dgm-feed-count{font-size:12px;font-weight:800;color:#275abc;background:#edf4ff;border:1px solid #cbdfff;padding:8px 12px;border-radius:99px;white-space:nowrap}
.dgm-feed-editor{border:1px solid #d3e3f6;border-radius:18px;background:#f5f9ff;margin-bottom:24px;overflow:hidden}
.dgm-feed-editor summary{cursor:pointer;padding:16px 20px;font-weight:800;color:#1255b9;list-style:none}
.dgm-feed-editor summary::-webkit-details-marker{display:none}
.dgm-feed-editor[open] summary{border-bottom:1px solid #d3e3f6}
.dgm-feed-form{padding:18px 20px 20px;display:grid;gap:14px}
.dgm-feed-form label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:750;color:#253d5e;min-width:0}
.dgm-feed-form input:not([type=checkbox]),.dgm-feed-form textarea,.dgm-feed-form select{width:100%;max-width:100%;border:1px solid #bfcee1;border-radius:10px;min-height:44px;background:#fff;color:#11233b;padding:11px 12px;font:inherit;box-shadow:none}
.dgm-feed-form input[type=file]{padding:10px 12px}
.dgm-feed-form textarea{min-height:98px;resize:vertical}
.dgm-feed-form small{color:#5c6881;font-weight:400}
.dgm-feed-form [hidden]{display:none!important}
.dgm-feed-form .dgm-feed-pin{display:flex;flex-direction:row;align-items:center;gap:9px}
.dgm-feed-form .dgm-feed-pin input{accent-color:#2462d4;width:19px;height:19px}
.dgm-feed-form-actions{display:flex;gap:12px;flex-wrap:wrap}
.dgm-feed-ok{background:#eefaf2;border:1px solid #b8e5c6;color:#196436;padding:12px;border-radius:12px}
.dgm-feed-error{background:#fff1ef;border:1px solid #ffc5bd;color:#a2291c;padding:12px;border-radius:12px}
.dgm-feed-list{display:grid;gap:12px}
.dgm-feed-empty{color:#63738a;padding:20px;border:1px dashed #c7d4e4;border-radius:14px}
.dgm-feed-card{display:flex;align-items:flex-start;gap:14px;padding:18px;border-radius:16px;background:#fbfdff;border:1px solid #e1eaf4;min-width:0}
.dgm-feed-card-icon{display:grid;place-items:center;flex:0 0 45px;height:45px;border-radius:12px;background:#ecf4ff;font-size:24px}
.dgm-feed-card-main{flex:1;min-width:0;overflow-wrap:anywhere}
.dgm-feed-card-main h3,.dgm-feed-card-main h4{font-size:18px;color:#172b44;margin:5px 0 8px!important;line-height:1.3}
.dgm-feed-card-main p{margin:7px 0 11px!important;color:#46566e;line-height:1.6;white-space:normal}
.dgm-feed-meta{font-size:12px;font-weight:700;color:#58739a}
.dgm-feed-open{display:inline-block;border:1px solid #c9dbf7;border-radius:10px;padding:8px 12px;background:#eff5ff;color:#1458be!important;text-decoration:none;font-weight:750;margin-top:8px}
.dgm-feed-open:hover,.dgm-feed-open:focus{background:#dceaff}
.dgm-feed-actions{display:flex;flex-direction:column;gap:10px;align-items:flex-end;font-size:13px;flex:none}
.dgm-feed-actions a{font-weight:700;text-decoration:underline}
.dgm-feed-actions form{margin:0}
.dgm-feed-actions button{background:none;border:0;padding:0;color:#ae342f;font-weight:700;cursor:pointer;font:inherit;text-decoration:underline}
.dgm-feed-student{max-width:100%;margin:26px 0}
@media(max-width:640px){.dgm-feed-panel{padding:17px;border-radius:18px}.dgm-feed-heading{flex-wrap:wrap}.dgm-feed-card{padding:14px;gap:10px;flex-wrap:wrap}.dgm-feed-card-icon{flex-basis:38px;height:38px;font-size:21px}.dgm-feed-actions{margin-left:auto;flex-direction:row;align-items:center}}

/* v0.21.48 · Klassrummet 2.0 (compatible with existing encrypted classfeed records) */
.dgm-v2-quick-title{margin:12px 0 13px}
.dgm-v2-quick-title h2{color:#173452;font-size:21px;line-height:1.2;margin:5px 0 4px}
.dgm-v2-quick-title p{color:#5b7189;font-size:13px;margin:0}
.dgm-v2-quicklinks a{background:#fff;border-color:#d8e5f4;transition:transform .15s,border-color .15s,box-shadow .15s}
.dgm-v2-quicklinks a:focus-visible{outline:3px solid #80aaff;outline-offset:2px}
.dgm-v2-quicklinks a:hover{transform:translateY(-2px)}
.dgm-v2-classroom-main{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:17px;margin:14px 0 27px;align-items:start}
.dgm-v2-stream,.dgm-v2-classroom-aside{border:1px solid #dce6f1;background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 7px 22px rgba(22,54,93,.035)}
.dgm-v2-stream-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:20px 21px 16px;flex-wrap:wrap}
.dgm-v2-stream-heading h2{font-size:21px!important;margin:3px 0 5px!important;color:#183650;line-height:1.2}
.dgm-v2-stream-heading p{color:#6a7d91;margin:0;font-size:13px}
.dgm-v2-stream-heading>a{font-size:12px;font-weight:800;color:#185ec7;text-decoration:none}
.dgm-v2-stream-row{display:flex;align-items:center;gap:13px;padding:14px 21px;border-top:1px solid #eef2f7;text-decoration:none!important;color:#233f5d!important;transition:background .15s}
.dgm-v2-stream-row:hover,.dgm-v2-stream-row:focus-visible{background:#f3f8ff}
.dgm-v2-stream-symbol{flex:0 0 42px;height:42px;border-radius:12px;background:#eaf2ff;display:grid;place-items:center;font-size:21px}
.dgm-v2-stream-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.dgm-v2-stream-copy small{font-size:11px;font-weight:800;color:#4f75a7}
.dgm-v2-stream-copy strong{color:#173453;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.dgm-v2-stream-copy em{font-size:11px;font-style:normal;color:#627b96}
.dgm-v2-stream-row time{font-size:11px;color:#687e94;white-space:nowrap}
.dgm-v2-stream-row>span:last-child{font-size:23px;color:#8ca7c2}
.dgm-v2-stream-empty{display:flex;flex-direction:column;gap:6px;align-items:center;text-align:center;padding:30px 16px;color:#465d76}
.dgm-v2-stream-empty>span{font-size:29px}.dgm-v2-stream-empty p{font-size:13px;margin:0}
.dgm-v2-classroom-aside{padding:21px;background:linear-gradient(160deg,#f5f9ff,#fff)}
.dgm-v2-aside-icon{display:grid;place-items:center;background:#e5f0ff;color:#125ac4;border-radius:15px;width:49px;height:49px;font-size:24px}
.dgm-v2-classroom-aside h2{font-size:18px!important;color:#163755;margin:15px 0 8px!important}
.dgm-v2-classroom-aside p{color:#62768d;font-size:13px;line-height:1.55;margin:0 0 19px!important}
.dgm-v2-classroom-aside a{display:block;border:1px solid #b7d0f2;background:#eaf2ff;color:#175bc2!important;text-decoration:none!important;text-align:center;border-radius:11px;padding:11px 12px;margin:9px 0;font-size:12px;font-weight:800}
.dgm-v2-classroom-aside a:first-of-type{color:#fff!important;background:#1c61cc;border-color:#1c61cc}
.dgm-v2-toolbar{padding:14px 0 17px;display:grid;gap:11px}
.dgm-v2-search{display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #c9d9ee;background:#fff;border-radius:12px;color:#4c75ab;min-width:0}
.dgm-v2-search>span[aria-hidden]{font-size:23px}
.dgm-v2-search input[type=search]{appearance:none;-webkit-appearance:none;border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important;width:100%;height:45px;min-width:0;color:#173554;font:inherit;font-size:14px}
.dgm-v2-search:focus-within{outline:2px solid #77acfa;outline-offset:1px}
.dgm-v2-filters{display:flex;flex-wrap:wrap;gap:7px}
.dgm-v2-filters button{cursor:pointer;border-radius:99px;padding:8px 12px;background:#f5f8fd;border:1px solid #d9e4f1;color:#335371;font-size:12px;font-weight:750;line-height:1.25}
.dgm-v2-filters button span{margin-left:5px;opacity:.7;font-variant-numeric:tabular-nums}
.dgm-v2-filters button[aria-pressed=true]{background:#225fc7;border-color:#225fc7;color:white}
.dgm-v2-filters button:focus-visible{outline:2px solid #4e94fd;outline-offset:2px}
.dgm-v2-count{font-size:12px!important;color:#617a96;margin:0!important}
.dgm-v2-no-results{border:1px dashed #b8cce3;border-radius:14px;padding:16px;color:#60738b;font-size:13px}
.dgm-feed-card[hidden],.dgm-v2-no-results[hidden]{display:none!important}
.dgm-feed-card:target{outline:3px solid #66a2ff;outline-offset:3px;scroll-margin-top:110px}
.dgm-feed-editor:target{scroll-margin-top:90px}
@media(max-width:900px){.dgm-v2-classroom-main{grid-template-columns:1fr}.dgm-v2-classroom-aside{display:grid;grid-template-columns:52px 1fr;column-gap:15px}.dgm-v2-classroom-aside h2{margin:0!important}.dgm-v2-classroom-aside p,.dgm-v2-classroom-aside a{grid-column:2}}
@media(max-width:600px){.dgm-v2-stream-row{padding:13px 12px;gap:9px}.dgm-v2-stream-heading{padding:18px 12px}.dgm-v2-stream-symbol{flex-basis:36px;height:36px}.dgm-v2-stream-row time{font-size:10px}.dgm-v2-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px}.dgm-v2-filters button{white-space:nowrap;flex-shrink:0}}
