:root{
  --navy:#0f2b4f;
  --navy2:#163d69;
  --blue:#1f73c9;
  --blue-soft:#eaf3fb;
  --bg:#f4f7fb;
  --card:#ffffff;
  --line:#e3e9ef;
  --text:#10243e;
  --muted:#708196;
  --shadow:0 8px 24px rgba(15,43,79,.06);
}
*{box-sizing:border-box}
html{background:#dfe7ef}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:#dfe7ef}
button{font:inherit}
.app{
  width:min(430px,100%);
  min-height:100vh;
  margin:auto;
  background:
    radial-gradient(circle at 100% 0%,rgba(77,142,209,.12),transparent 28%),
    linear-gradient(180deg,#f8fbfe 0,#f4f7fb 44%,#f8fafc 100%);
  padding:calc(18px + env(safe-area-inset-top)) 16px calc(88px + env(safe-area-inset-bottom));
}
.page{display:none}.page.active{display:block}
.top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:18px}
.brand{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:29px;letter-spacing:.2px;font-weight:800;line-height:1;color:var(--navy)}
.tagline{font-size:10px;letter-spacing:2px;color:var(--muted);margin-top:8px}
.top-actions{display:flex;gap:8px}
.roundbtn{width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.78);display:grid;place-items:center;box-shadow:var(--shadow);color:var(--navy)}
svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.hero{
  min-height:286px;border-radius:28px;padding:26px 24px 24px;
  color:#fff;position:relative;overflow:hidden;box-shadow:0 12px 30px rgba(15,43,79,.15);
  background:
    radial-gradient(circle at 88% 12%,rgba(200,223,246,.55),transparent 24%),
    radial-gradient(circle at 76% 30%,rgba(120,166,211,.35),transparent 30%),
    linear-gradient(135deg,#0b2c51 0%,#123f70 58%,#7b9fc5 100%);
}
.hero:before{display:none}
.hero-kicker{font-size:12px;letter-spacing:3px;text-transform:uppercase;opacity:.96;position:relative;z-index:4}
.hero h1{font-size:31px;line-height:1.03;margin:18px 0 20px;max-width:245px;position:relative;z-index:4}
.hero-actions{display:flex;gap:8px;flex-wrap:wrap;position:relative;z-index:4}
.hero-chip{
  display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid rgba(255,255,255,.24);
  border-radius:14px;background:rgba(4,32,61,.22);font-size:13px;backdrop-filter:blur(8px)
}
.hero-docs{position:absolute;right:-7px;bottom:-8px;width:190px;height:210px;z-index:2;pointer-events:none}
.hero-envelope-back{position:absolute;left:22px;bottom:12px;width:156px;height:118px;border-radius:18px 18px 28px 28px;background:linear-gradient(145deg,#325d8d,#0f3158);transform:rotate(-5deg);box-shadow:0 14px 28px rgba(0,0,0,.18)}
.hero-envelope-front{position:absolute;left:8px;bottom:-4px;width:180px;height:105px;border-radius:18px 18px 30px 30px;background:linear-gradient(160deg,#214e7e,#0a2748);clip-path:polygon(0 0,50% 45%,100% 0,100% 100%,0 100%)}
.hero-paper{position:absolute;width:112px;height:132px;border-radius:13px;background:linear-gradient(160deg,#fff,#dfe9f4);box-shadow:0 10px 25px rgba(0,0,0,.18)}
.hero-paper.p1{right:8px;top:18px;transform:rotate(10deg);opacity:.88}
.hero-paper.p2{right:38px;top:48px;transform:rotate(7deg)}
.hero-paper.p3{right:50px;top:68px;transform:rotate(5deg);z-index:3}
.hero-paper .paper-label{font-size:13px;font-weight:800;color:#173d69;letter-spacing:.6px;padding:22px 16px 8px}
.hero-paper .paper-line{height:5px;border-radius:99px;background:#b6c9dd;margin:9px 17px}
.hero-paper .paper-line.short{width:50px}
@media (max-width:370px){
  .hero{min-height:276px;padding:23px 20px}
  .hero h1{font-size:28px;max-width:225px}
  .hero-docs{width:166px;right:-14px}
  .navcard{padding:12px}
  .icobox{width:44px;height:44px}
  .panel{padding:13px}
}

.duo{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-top:12px}
.panel{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:22px;padding:15px;box-shadow:var(--shadow);min-width:0;overflow:hidden}
.panel-head{display:flex;justify-content:space-between;align-items:center}
.panel-title{font-size:11px;letter-spacing:1.45px;font-weight:800;white-space:nowrap}
.panel-icon{width:40px;height:40px;border-radius:13px;background:linear-gradient(145deg,#edf5fb,#f8fbfe);display:grid;place-items:center;color:#0e3d72}
.panel p{font-size:12px;margin:12px 0 10px;color:var(--text);line-height:1.35}
.progress{height:8px;background:#dfe7ef;border-radius:999px;overflow:hidden}
.progress span{display:block;width:34%;height:100%;background:linear-gradient(90deg,var(--navy),#1f8bd4);border-radius:999px}
.deadline{display:flex;gap:8px;align-items:center;background:#f4f7fb;border-radius:13px;padding:8px;margin-top:8px;min-width:0}
.datebox{width:43px;min-width:43px;height:43px;border-radius:11px;background:#e1f0fc;display:grid;place-items:center;text-align:center;font-weight:800;color:var(--navy);line-height:1}
.datebox small{display:block;font-size:8px;margin-top:2px}
.deadline span{font-size:11px;line-height:1.25;min-width:0}
.section{margin-top:24px}
.section-title{font-size:12px;letter-spacing:3px;color:#56718e;margin-bottom:10px}
.section-title.row{display:flex;justify-content:space-between;align-items:center}
.section-title .all{font-size:12px;letter-spacing:0;color:var(--blue)}
.grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.navcard{display:flex;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;box-shadow:var(--shadow);min-height:102px;min-width:0;overflow:hidden}
.icobox{width:48px;height:48px;border-radius:14px;background:linear-gradient(145deg,#edf5fb,#f7fbfe);display:grid;place-items:center;color:#0e3d72;box-shadow:inset 0 0 0 1px rgba(37,91,145,.05)}
.navcard b{font-size:14px;display:block;margin-bottom:4px;line-height:1.15}
.navcard small{font-size:10.5px;color:var(--muted);line-height:1.3;display:block}
.materials{display:flex;gap:10px;overflow-x:auto;padding-bottom:2px}
.material{min-width:245px;background:white;border:1px solid var(--line);border-radius:19px;padding:14px;box-shadow:var(--shadow)}
.badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#dff0ff;color:#245d93;font-size:9px;font-weight:800;letter-spacing:.4px}
.material h3{font-size:14px;line-height:1.25;margin:10px 0 8px}
.material .meta{font-size:11px;color:var(--muted)}
.bottom{
  position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:min(430px,100%);
  display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.97);
  border-top:1px solid var(--line);padding:7px 4px calc(8px + env(safe-area-inset-bottom));z-index:30;
  backdrop-filter:blur(16px)
}
.tab{border:0;background:transparent;color:#6e8196;font-size:10px;padding:4px 1px}
.tab svg{display:block;margin:0 auto 3px;width:22px;height:22px}
.tab.active{color:#0f3f80;font-weight:800}
.backrow{display:flex;align-items:center;gap:10px;margin-bottom:16px}
.backbtn{width:40px;height:40px;border-radius:13px;border:1px solid var(--line);background:#fff;color:var(--navy)}
.title{font-size:24px;font-weight:800}
.sub{font-size:12px;color:var(--muted);margin-top:2px}
.daystrip{display:flex;gap:8px;overflow:auto;margin-bottom:16px}
.daybtn{min-width:60px;border:1px solid var(--line);background:white;border-radius:14px;padding:9px 6px;color:var(--muted)}
.daybtn b{display:block;color:var(--text);font-size:16px}.daybtn.active{background:var(--navy);color:#fff}.daybtn.active b{color:#fff}
.article-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px;box-shadow:var(--shadow);margin-bottom:12px}
.article-card h2{font-size:20px;line-height:1.2;margin:8px 0}
.article-card h3{font-size:16px;margin:18px 0 8px}
.article-card p,.article-card li{font-size:14px;line-height:1.55}
.article-card ul{padding-left:20px}
.source{background:#eef5fb;border-radius:14px;padding:12px;margin-top:12px;font-size:12px;line-height:1.45}
.listcard{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:var(--shadow);margin-bottom:9px}
.listcard .icobox{width:42px;height:42px;min-width:42px}.listcard b{font-size:14px}.listcard small{display:block;color:var(--muted);margin-top:3px}
.search{background:white;border:1px solid var(--line);border-radius:18px;padding:14px;color:var(--muted);margin-bottom:14px;box-shadow:var(--shadow)}

.navcard>div:last-child,.panel>*{min-width:0}
.navcard b,.navcard small,.deadline span,.material h3,.article-card p,.article-card li{overflow-wrap:break-word}
.material{overflow:hidden}


.hero,.navcard,.material,.panel[onclick],.listcard{cursor:pointer}
.navcard,.panel,.material,.article-card,.listcard{transition:transform .12s ease,box-shadow .12s ease}
.navcard:active,.panel[onclick]:active,.material:active,.listcard:active,.hero:active{transform:scale(.992)}
.section-title{font-weight:600}


/* NORMA approved home visual — reference lock */
.app{
  background:
    radial-gradient(circle at 88% 2%,rgba(111,169,226,.22),transparent 23%),
    radial-gradient(circle at 5% 76%,rgba(118,170,222,.10),transparent 30%),
    linear-gradient(180deg,#f9fbfe 0%,#f3f7fb 58%,#f8fafc 100%);
}
.home-top{padding:2px 2px 0;margin-bottom:20px}
.notify{position:relative}.profilebtn{font-weight:800;font-size:14px;color:var(--navy)}
.notify-dot{position:absolute;width:9px;height:9px;border-radius:50%;background:#1576cf;right:2px;top:1px;border:2px solid #f7fbff}
.roundbtn{
  background:linear-gradient(145deg,rgba(255,255,255,.95),rgba(229,239,248,.88));
  border:1px solid rgba(105,145,184,.08);
  box-shadow:0 10px 24px rgba(27,67,106,.08)
}
.hero-reference{
  height:286px;min-height:286px;padding:25px 23px 22px;
  background:
    radial-gradient(circle at 76% 12%,rgba(127,179,230,.52),transparent 27%),
    radial-gradient(circle at 93% 48%,rgba(150,193,233,.26),transparent 28%),
    linear-gradient(132deg,#0a2d54 0%,#0e4177 52%,#6c93bf 100%);
  border-radius:27px;
}
.hero-reference:after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:
    linear-gradient(112deg,transparent 0 57%,rgba(255,255,255,.09) 58%,transparent 71%),
    linear-gradient(22deg,transparent 0 58%,rgba(149,198,241,.13) 59%,transparent 72%);
}
.hero-copy{position:relative;z-index:6;height:100%;display:flex;flex-direction:column;align-items:flex-start}
.hero-kicker{font-size:12px;letter-spacing:2.7px}
.hero-kicker span{font-size:18px;vertical-align:-1px;margin-left:4px}
.hero h1{font-size:30px;line-height:1.03;margin:17px 0 0;max-width:228px;font-weight:650;letter-spacing:-.6px}
.hero-actions{margin-top:auto;display:flex;gap:8px;flex-wrap:nowrap}
.hero-chip{height:43px;padding:0 12px;font-size:12.5px;border-radius:14px;white-space:nowrap}
.hero-chip svg{width:20px;height:20px}

/* integrated documents, not sticker-like */
.hero-docs.integrated{position:absolute;right:-3px;top:18px;width:210px;height:250px;z-index:2;filter:drop-shadow(0 18px 24px rgba(5,30,58,.18))}
.hero-glow{position:absolute;inset:8px 0 0 18px;background:radial-gradient(circle,rgba(198,225,251,.46),transparent 58%);filter:blur(10px)}
.hero-sheet{position:absolute;border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(211,226,240,.86));border:1px solid rgba(255,255,255,.55);box-shadow:0 10px 26px rgba(10,45,78,.18)}
.sheet-back{width:112px;height:137px;right:9px;top:20px;transform:rotate(9deg);opacity:.82}
.sheet-mid{width:116px;height:142px;right:32px;top:50px;transform:rotate(7deg);opacity:.92}
.sheet-front{width:116px;height:145px;right:51px;top:72px;transform:rotate(5deg);z-index:4}
.hero-envelope-back{position:absolute;right:2px;bottom:15px;width:192px;height:118px;border-radius:26px;background:linear-gradient(145deg,rgba(58,105,153,.95),rgba(20,58,97,.98));transform:rotate(-5deg);box-shadow:0 12px 32px rgba(7,28,51,.25)}
.hero-envelope-front{position:absolute;right:-8px;bottom:-3px;width:216px;height:128px;border-radius:30px;background:linear-gradient(150deg,rgba(40,91,143,.98),rgba(6,42,76,.99));clip-path:polygon(0 6%,50% 48%,100% 5%,100% 100%,0 100%);z-index:5}
.sheet-front .paper-label{font-size:13px;font-weight:800;color:#174576;letter-spacing:.5px;padding:22px 15px 7px}
.sheet-front .paper-line{height:5px;border-radius:999px;background:#b8cade;margin:8px 16px}
.sheet-front .paper-line.short{width:50px}

.reference-duo{gap:10px;margin-top:11px}
.reference-duo .panel{
  min-height:176px;padding:16px;border-radius:22px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.98),rgba(246,250,253,.94));
  border:1px solid rgba(79,119,158,.08);
  box-shadow:0 12px 26px rgba(22,58,94,.055)
}
.panel-title{font-size:10.8px;letter-spacing:1.55px}
.panel-title span{font-size:17px;font-weight:500;vertical-align:-1px}
.panel-icon{width:40px;height:40px;border-radius:13px}
.panel-icon svg{width:23px;height:23px}
.task-panel p{margin:15px 0 13px;font-size:12px}
.task-panel p b{font-size:14px}
.progress{height:8px;background:linear-gradient(90deg,#dce7f0,#e7eef4)}
.progress span{width:33%;background:linear-gradient(90deg,#0d3563,#1487d0)}
.panel-subtitle{font-size:11px;color:var(--muted);margin-top:7px}
.calendar-panel .deadline{height:48px;margin-top:7px;padding:6px 8px;background:linear-gradient(90deg,#f1f6fb,#f8fbfd)}
.calendar-panel .datebox{width:43px;min-width:43px;height:38px;background:linear-gradient(145deg,#d8ecfb,#e9f4fd);font-size:15px}
.calendar-panel .datebox small{font-size:7.5px}
.calendar-panel .deadline span{font-size:10.7px;line-height:1.24;flex:1}
.tiny-chevron{width:14px;height:14px;color:#67809a}

.reference-section{margin-top:24px}
.section-title{font-size:11px;letter-spacing:2.4px;color:#60768e;margin-bottom:10px}
.reference-grid{gap:10px}
.reference-grid .navcard{
  position:relative;min-height:104px;padding:13px 12px;border-radius:20px;
  background:
    radial-gradient(circle at 10% 10%,rgba(219,236,249,.38),transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.99),rgba(248,251,253,.96));
  border:1px solid rgba(80,118,154,.075);
  box-shadow:0 10px 24px rgba(20,56,90,.05)
}
.reference-grid .icobox{
  width:47px;height:47px;min-width:47px;border-radius:14px;
  background:linear-gradient(145deg,#e8f2fa,#f6fafe);
}
.reference-grid .icobox svg{width:24px;height:24px}
.navtext{min-width:0;flex:1}
.reference-grid .navcard b{font-size:13.5px;margin-bottom:5px}
.reference-grid .navcard small{font-size:10px;line-height:1.28}
.card-chevron{width:14px;height:14px;color:#6e8398;min-width:14px}

.materials-section{margin-top:25px}
.materials-section .all{font-size:12px;color:#116cc1}
.materials{gap:9px}
.material{
  min-width:232px;padding:13px;border-radius:18px;
  background:
    radial-gradient(circle at 12% 5%,rgba(224,240,252,.55),transparent 38%),
    linear-gradient(145deg,#fff,#f8fbfd);
  border:1px solid rgba(75,111,148,.08);
  box-shadow:0 10px 24px rgba(21,55,88,.05)
}
.material-top{display:flex;align-items:center;justify-content:space-between}
.badge{background:linear-gradient(90deg,#dfefff,#eef6fd);color:#2063a0}
.bookmark{font-size:20px;color:#5c7793;line-height:1}
.material h3{font-size:13px;line-height:1.28;margin:10px 0 12px}
.material .meta{font-size:10.8px}

/* bottom navigation from reference */
.bottom{
  background:rgba(255,255,255,.965);
  box-shadow:0 -8px 24px rgba(18,52,84,.035)
}
.tab{font-size:9.5px}
.tab svg{width:21px;height:21px}

/* prevent any text collision */
.navtext,.panel-head>div,.deadline span,.material,.material h3{min-width:0}
.navcard b,.navcard small,.deadline span,.material h3{overflow-wrap:anywhere}
@media(max-width:390px){
  .app{padding-left:13px;padding-right:13px}
  .hero-reference{height:274px;min-height:274px;padding:22px 20px}
  .hero h1{font-size:27px;max-width:210px}
  .hero-docs.integrated{transform:scale(.92);transform-origin:right center;right:-10px}
  .hero-chip{padding:0 10px;font-size:11.5px}
  .reference-duo .panel{padding:13px;min-height:168px}
  .panel-title{font-size:10px;letter-spacing:1.2px}
  .reference-grid .navcard{padding:11px 10px;min-height:100px}
  .reference-grid .icobox{width:43px;height:43px;min-width:43px}
  .reference-grid .navcard b{font-size:12.8px}
  .reference-grid .navcard small{font-size:9.5px}
}


/* FIX — "Новые материалы" строго по референсу */
.materials-section{overflow:hidden}
.materials{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
  overflow:visible !important;
  padding-bottom:0 !important;
}
.material{
  min-width:0 !important;
  width:auto !important;
  min-height:170px !important;
  padding:11px 10px 12px !important;
  border-radius:18px !important;
  overflow:hidden !important;
}
.material-top{gap:4px}
.material .badge{
  font-size:7.8px !important;
  padding:4px 6px !important;
  letter-spacing:.25px !important;
  max-width:calc(100% - 22px);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.material .bookmark{
  width:16px !important;
  height:16px !important;
  min-width:16px;
  color:#58728e;
}
.material h3{
  font-size:10.6px !important;
  line-height:1.24 !important;
  margin:9px 0 10px !important;
  font-weight:750 !important;
  letter-spacing:-.1px;
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:auto;
}
.material .meta{
  font-size:9px !important;
  line-height:1.2 !important;
  margin-top:auto;
}
.material{display:flex;flex-direction:column}
.material .meta{margin-top:auto}
@media(max-width:370px){
  .materials{gap:6px !important}
  .material{padding:9px 8px 10px !important;min-height:164px !important}
  .material h3{font-size:9.8px !important}
  .material .badge{font-size:7.2px !important}
  .material .meta{font-size:8.5px !important}
}


.task-item{display:flex;gap:11px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line);cursor:pointer}
.task-item:last-child{border-bottom:0}
.task-check{width:24px;height:24px;min-width:24px;border-radius:50%;border:1.5px solid #9fb0c0;display:grid;place-items:center;margin-top:1px}
.task-item.done{opacity:.58}.task-item.done b{text-decoration:line-through}
.task-item.done .task-check{background:#1f73c9;border-color:#1f73c9;color:white}
.task-item small{display:block;color:var(--muted);font-size:11px;line-height:1.35;margin-top:3px}
.bookmark-btn{border:0;background:transparent;padding:0;display:grid;place-items:center;color:#5c7793;cursor:pointer}
.bookmark-btn.active{color:#0f5ca8}
.bookmark-btn.active svg{fill:currentColor}
.favorite-row{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:9px;box-shadow:var(--shadow)}
.favorite-row .favorite-open{flex:1;min-width:0}
.favorite-row b{display:block;font-size:14px}.favorite-row small{display:block;color:var(--muted);margin-top:3px}


/* Контент  новые материалы — полноценная горизонтальная лента без сжатия текста */
.materials{
  display:flex !important;
  grid-template-columns:none !important;
  gap:9px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  padding-bottom:4px !important;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
}
.material{
  flex:0 0 150px !important;
  width:150px !important;
  min-width:150px !important;
  min-height:178px !important;
  scroll-snap-align:start;
}
.material h3{
  font-size:11px !important;
  line-height:1.26 !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}

/* ===== NORMA 2026 · unified liquid glass system ===== */
:root{
  --glass:rgba(255,255,255,.58);
  --glass-strong:rgba(255,255,255,.74);
  --glass-line:rgba(255,255,255,.82);
  --glass-shadow:0 14px 34px rgba(38,82,124,.09);
}
html,body{background:#eaf3fb}
.app{
  background:
    radial-gradient(circle at 88% 3%,rgba(122,184,241,.27),transparent 24%),
    radial-gradient(circle at 4% 40%,rgba(197,226,251,.36),transparent 31%),
    radial-gradient(circle at 96% 78%,rgba(220,211,255,.23),transparent 28%),
    linear-gradient(180deg,#f7fbff 0%,#eef6fd 48%,#f8fbff 100%);
}
.brand,.article-brand-name{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:29px!important;font-weight:800!important;letter-spacing:.2px!important;line-height:1!important;color:#0f2b4f!important;
}
.tagline,.article-brand-sub{display:none!important}
.top{align-items:center}
.roundbtn,.backbtn,.search,.panel,.navcard,.material,.article-card,.listcard,.favorite-row{
  border:1px solid var(--glass-line)!important;
  background:
    radial-gradient(circle at 12% 4%,rgba(255,255,255,.90),transparent 42%),
    linear-gradient(145deg,rgba(255,255,255,.69),rgba(237,247,255,.49))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.98),var(--glass-shadow)!important;
  backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);
}
.roundbtn,.backbtn{background:rgba(255,255,255,.56)!important}
.panel,.navcard,.material,.article-card,.listcard,.favorite-row{border-radius:22px!important}
.icobox,.panel-icon,.datebox{
  border:1px solid rgba(255,255,255,.84);
  background:linear-gradient(145deg,rgba(220,240,255,.80),rgba(255,255,255,.54))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.96);
}
.hero-reference{
  border:1px solid rgba(255,255,255,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 18px 38px rgba(23,67,109,.16);
}
.bottom{
  bottom:8px;width:min(414px,calc(100% - 18px));border:1px solid rgba(255,255,255,.88)!important;border-radius:25px;
  background:rgba(247,252,255,.72)!important;
  box-shadow:inset 0 1px 0 #fff,0 12px 32px rgba(31,72,111,.13)!important;
  backdrop-filter:blur(28px);-webkit-backdrop-filter:blur(28px);
  padding:8px 5px calc(8px + env(safe-area-inset-bottom));
}
.tab{border-radius:15px;transition:background .15s ease,color .15s ease}
.tab.active{background:rgba(213,235,253,.58)}
.deadline{background:rgba(237,247,255,.58);border:1px solid rgba(255,255,255,.72)}
.progress{background:rgba(184,207,227,.38)}
.source{background:rgba(225,240,253,.60);border:1px solid rgba(255,255,255,.75)}

/* ===== NORMA · Home composition refinement · 07.10.2026 ===== */
/* Only home visual density is adjusted here. Calendar mechanics are untouched. */

/* Prevent awkward single-letter wrapping inside the compact home calendar. */
.calendar-panel .deadline span{
  overflow-wrap:normal !important;
  word-break:normal !important;
  hyphens:none !important;
  font-size:10.2px !important;
  line-height:1.18 !important;
}
.calendar-panel .datebox{
  width:41px !important;
  min-width:41px !important;
}
.calendar-panel .deadline{
  gap:7px !important;
  padding-left:7px !important;
  padding-right:6px !important;
}

/* Sections are navigation, not another hero: make the six cards quieter and denser. */
.reference-section{margin-top:20px !important}
.reference-grid{gap:8px !important}
.reference-grid .navcard{
  min-height:82px !important;
  padding:10px 10px !important;
  border-radius:19px !important;
  gap:9px !important;
}
.reference-grid .icobox{
  width:41px !important;
  height:41px !important;
  min-width:41px !important;
  border-radius:13px !important;
}
.reference-grid .icobox svg{
  width:21px !important;
  height:21px !important;
}
.reference-grid .navcard b{
  font-size:13px !important;
  line-height:1.12 !important;
  margin-bottom:3px !important;
}
.reference-grid .navcard small{
  font-size:9.4px !important;
  line-height:1.2 !important;
}
.reference-grid .card-chevron{
  width:13px !important;
  height:13px !important;
  min-width:13px !important;
}

/* Fresh materials: compact editorial rail with less dead space. */
.materials-section{margin-top:21px !important}
.materials{
  gap:8px !important;
  padding-bottom:2px !important;
}
.material{
  flex:0 0 148px !important;
  width:148px !important;
  min-width:148px !important;
  min-height:132px !important;
  height:132px !important;
  padding:10px 10px 9px !important;
  border-radius:18px !important;
}
.material .badge{
  font-size:7.5px !important;
  padding:4px 6px !important;
}
.material .bookmark{
  width:15px !important;
  height:15px !important;
  min-width:15px !important;
}
.material h3{
  font-size:10.7px !important;
  line-height:1.22 !important;
  margin:8px 0 6px !important;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  hyphens:none !important;
  word-break:normal !important;
}
.material .meta{
  font-size:8.8px !important;
  line-height:1.15 !important;
}

/* Slightly tighter rhythm without changing the approved hierarchy. */
.section-title{margin-bottom:8px !important}
.materials-section .section-title{margin-bottom:9px !important}

@media(max-width:390px){
  .reference-grid .navcard{min-height:79px !important;padding:9px !important}
  .reference-grid .icobox{width:39px !important;height:39px !important;min-width:39px !important}
  .reference-grid .navcard b{font-size:12.5px !important}
  .reference-grid .navcard small{font-size:9px !important}
  .material{
    flex-basis:143px !important;
    width:143px !important;
    min-width:143px !important;
    height:128px !important;
    min-height:128px !important;
  }
}
