/* PLANER ONE 1.7: screenshot-matched Glass dashboard, functional DOM.
   The light/dark/other themes and editable widgets are not removed. */
:root { --reference-borders:rgba(199,223,255,.31); }
body[data-theme="glass"][data-background="blue"] {
  background-color:#1e3450;
  background-image:
    radial-gradient(ellipse 700px 530px at 81% 7%,rgba(139,172,220,.24),transparent 78%),
    radial-gradient(ellipse 800px 580px at 32% 89%,rgba(98,139,199,.19),transparent 75%),
    linear-gradient(118deg,#1b304b 0%,#213852 41%,#314966 74%,#1d344e 100%);
  background-attachment:fixed;
}
body[data-theme="glass"] .glass {
  background:linear-gradient(136deg,rgba(149,181,218,calc(var(--glass-alpha) + .10)) 0%,rgba(94,129,177,calc(var(--glass-alpha) + .015)) 47%,rgba(171,190,224,calc(var(--glass-alpha) + .050)) 100%)!important;
  border-color:var(--reference-borders);
  box-shadow:inset 0 1px 0 rgba(244,251,255,.16),0 9px 28px rgba(10,24,50,.15);
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
}
body[data-theme="glass"] .sidebar.glass {
  background:linear-gradient(165deg,rgba(101,134,175,.28),rgba(61,89,133,.27) 60%,rgba(109,137,181,.21))!important;
  border-color:rgba(214,231,255,.35);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.21), 0 13px 28px rgba(2,13,31,.20);
}
body[data-theme="glass"] .project-card,body[data-theme="glass"] .kanban-card {
  background:linear-gradient(145deg,rgba(149,178,218,.18),rgba(83,113,159,.14));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07);
}
/* Shared layout refinements */
.app-shell{grid-template-columns:258px minmax(0,1fr);gap:22px;padding:17px 16px 20px;max-width:1920px}
.sidebar{border-radius:24px;padding:21px 15px 14px;top:17px;height:calc(100vh - 34px)}
.brand{gap:12px;padding:2px 10px 26px}
.brand strong{font-size:17px;font-weight:750;letter-spacing:-.45px}
.brand small{font-size:11px;opacity:.85}
.logo-orb{width:38px;height:38px;box-shadow:0 0 20px rgba(103,113,253,.65),inset 0 0 11px rgba(131,166,255,.55)}
.nav-items{gap:4px}
.nav-btn{padding:9px 13px;border-radius:13px;gap:13px;font-size:14px}
.nav-btn svg{width:20px;height:20px}
.nav-btn.active,body[data-theme="glass"] .nav-btn.active {
  background:linear-gradient(105deg,rgba(128,75,241,.88),rgba(168,108,247,.65));
  border-color:rgba(199,144,255,.55);
  box-shadow:0 2px 18px rgba(147,82,242,.48),inset 0 1px 0 rgba(255,255,255,.25);
}
.sidebar-projects{margin-top:24px;padding-top:14px}
.aside-title{font-size:12px;letter-spacing:0;color:#e2e8f6;font-weight:690;padding:3px 9px 9px}
.project-link{font-size:13px;padding:8px 12px}
.project-link .dot{width:13px;height:13px;box-shadow:none}
.sidebar-bottom{border-color:rgba(215,228,251,.22);gap:4px}
.sidebar-bottom .icon-btn{width:31px;height:33px;border:0;background:transparent}.sidebar-bottom .icon-btn svg{width:18px;height:18px}
.avatar{background:linear-gradient(125deg,#7486b4,#465d85);border-color:rgba(245,252,255,.48)}
.app-main{padding:2px 0 0;min-width:0}
.top-bar{margin:0 4px 19px;gap:15px}
.top-title h1{font-size:clamp(26px,2.35vw,37px);letter-spacing:-.055em;margin-bottom:5px;font-weight:760}
.top-title .muted{font-size:14px;color:#bdc9df}
.top-actions .icon-btn{width:48px;height:48px;border-radius:18px;background:rgba(164,186,226,.10)}
.top-actions .primary-btn{height:48px;border-radius:25px;min-width:191px;font-size:13px}
.quick-tabs{margin:0 4px 18px;gap:13px;flex-wrap:nowrap}
.quick-tab{border-radius:24px;min-height:47px;padding:10px 20px;min-width:133px;background:linear-gradient(130deg,rgba(176,199,232,.13),rgba(102,133,174,.15));font-size:13px;font-weight:660}
.quick-tab svg{width:20px;height:20px}
.quick-tab.active,body[data-theme="glass"] .quick-tab.active{
  background:linear-gradient(120deg,rgba(104,83,252,.97),rgba(156,105,252,.93));
  border-color:rgba(179,147,255,.70);
  box-shadow:0 0 16px rgba(134,93,255,.41),inset 0 1px 0 rgba(255,255,255,.28);
}
.panel{border-radius:21px;padding:15px}
.panel h2{font-size:16px;font-weight:750}
.panel-header{margin-bottom:9px;min-height:26px}
.panel-headline{gap:10px}
.link-btn{font-size:11px;color:#e4eeff}
.badge-count{border-radius:10px;padding:2px 7px}
/* Actual live data cards, not raster screenshots */
.metric{border-radius:19px;padding:12px 14px;gap:13px}
.metric-icon{width:48px;height:48px;border-radius:17px;box-shadow:0 0 20px color-mix(in srgb,var(--tone),transparent 60%);border:1px solid rgba(223,235,255,.22)}
.metric-icon svg{width:24px;height:24px}
.metric-label{font-size:12px;font-weight:660;color:#eff3ff}
.metric-number{font-size:25px;line-height:1.12;margin-top:3px}
.task-row{padding:9px 1px;gap:10px}
.task-info strong{font-size:13px;line-height:1.3}
.task-info small{font-size:11px;margin-top:1px}
.task-check{width:22px;height:22px;border-color:#aabbd8}
.priority{font-size:10px}
.progress-ring{width:124px;height:124px;--ring:#a98bff;background:conic-gradient(#a66df6 0%,#8c75ff calc(var(--p)*.62%),#5eacf5 calc(var(--p)*1%),rgba(192,211,241,.16) 0);box-shadow:0 0 21px rgba(138,105,242,.20)}
.progress-ring:before{inset:11px}
.progress-label strong{font-size:25px}
.legend-item{font-size:11px;margin:10px 0}
.meeting-line{padding:8px 0;gap:10px}
.meet-when{font-size:11px;background:rgba(189,210,241,.15)}
.meet-title{font-size:12px}
.project-card{border-radius:15px;padding:11px 12px;gap:1px;min-height:136px}
.project-card strong{font-size:13px;margin-top:6px;white-space:normal;line-height:1.22;overflow:visible;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.project-card small{font-size:11px;margin-top:3px}
.project-symbol{width:32px;height:32px;border-radius:9px;background:color-mix(in srgb,var(--color),transparent 66%);border:1px solid color-mix(in srgb,var(--color),transparent 40%);box-shadow:0 1px 16px color-mix(in srgb,var(--color),transparent 68%);color:color-mix(in srgb,var(--color),white 43%);display:grid;place-items:center}
.project-symbol svg{width:20px;height:20px}
.pbar-label{margin-top:auto;display:flex;justify-content:flex-end;font-size:11px;font-weight:710}
.pbar{height:8px;border-radius:10px;margin-top:3px}
.project-card.add{min-height:136px;border-style:solid}
.project-card.add .add-circle{width:44px;height:44px}
/* Real activity-based alerts; never fabricate a feed */
.notice-line{display:flex;gap:11px;align-items:flex-start;width:100%;border:0;border-top:1px solid rgba(220,235,255,.13);background:transparent;color:var(--text);text-align:left;padding:12px 1px}
.notice-line:hover{background:rgba(231,240,255,.07);border-radius:8px}
.notice-icon{display:grid;place-items:center;flex:none;width:33px;height:33px;border-radius:50%;border:1px solid rgba(211,230,255,.15);background:rgba(157,184,214,.15);color:#a9b9e5}
.notice-icon svg{width:18px;height:18px}
.notice-purple{color:#ba94ff;background:rgba(154,101,248,.17)}
.notice-red{color:#ffabb5;background:rgba(246,119,145,.14)}
.notice-green{color:#66e2b2;background:rgba(76,213,159,.14)}
.notice-copy{min-width:0;display:grid;gap:2px}
.notice-copy strong{font-size:11px;font-weight:690}
.notice-copy small{font-size:11px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.notice-empty{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);padding:18px 0}
.notice-empty svg{color:var(--ok);flex:none}
/* Screenshot placement: 4 KPI tiles, today tasks, project progress, appointments,
   mini calendar, notification feed, project tiles. Default only; custom widget sizes
   and reorder fall back to the flexible 12-column editor. */
@media (min-width:1400px) {
  .dashboard-reference:not(.editing) .home-toolbar{display:none}
  .dashboard-reference.editing .home-toolbar{position:static;display:flex;margin-bottom:12px}
  .dashboard-reference .home-toolbar>.muted{display:none}
  .dashboard-reference .home-toolbar .controls{gap:5px}
  .dashboard-reference .home-toolbar .btn{font-size:0;width:31px;height:31px;min-height:31px;padding:4px;border-radius:11px;background:rgba(153,184,226,.08)}
  .dashboard-reference .home-toolbar .btn svg{width:15px;height:15px}
  .home-widgets.reference-layout{display:grid;grid-template-columns:minmax(0,1.24fr) minmax(0,1fr) minmax(260px,.77fr);
    grid-template-areas:'metrics metrics calendar' 'tasks progress calendar' 'tasks meetings notifications' 'projects projects notifications';
    grid-template-rows:90px 185px 167px minmax(170px,auto);gap:15px;align-items:stretch;grid-auto-flow:row}
  .home-widgets.reference-layout .home-widget{grid-column:auto;grid-row:auto;min-height:0;min-width:0}
  .home-widgets.reference-layout .home-widget[data-home-widget="metrics"]{grid-area:metrics}
  .home-widgets.reference-layout .home-widget[data-home-widget="tasks"]{grid-area:tasks;align-self:start}
  .home-widgets.reference-layout .home-widget[data-home-widget="progress"]{grid-area:progress}
  .home-widgets.reference-layout .home-widget[data-home-widget="calendar"]{grid-area:calendar}
  .home-widgets.reference-layout .home-widget[data-home-widget="meetings"]{grid-area:meetings}
  .home-widgets.reference-layout .home-widget[data-home-widget="projects"]{grid-area:projects}
  .home-widgets.reference-layout .home-widget[data-home-widget="notifications"]{grid-area:notifications;align-self:start;min-height:266px}
  .home-widgets.reference-layout .metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;height:100%}
  .home-widgets.reference-layout .metric{height:90px;min-height:90px}
  .home-widgets.reference-layout .home-widget[data-home-widget="metrics"] .widget-gear{right:5px;top:5px;width:23px;height:23px;border-radius:8px;opacity:.7;background:rgba(29,48,76,.23)}
  .home-widgets.reference-layout .home-widget[data-home-widget="progress"] .ring-flex{gap:12px}
  .home-widgets.reference-layout .home-widget[data-home-widget="progress"] .progress-ring{width:126px;height:126px}
  .home-widgets.reference-layout .home-widget[data-home-widget="projects"] .project-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
  .home-widgets.reference-layout .home-widget[data-home-widget="calendar"]{padding:14px 13px}
  .home-widgets.reference-layout .home-widget[data-home-widget="calendar"] .mini-calendar{gap:0}
  .home-widgets.reference-layout .home-widget[data-home-widget="calendar"] .cal-day{min-height:29px}
  .home-widgets.reference-layout .home-widget[data-home-widget="calendar"] .cal-head{padding:7px 0}
  .home-widgets.reference-layout .home-widget[data-home-widget="calendar"] .btn{margin-top:10px!important;background:linear-gradient(115deg,#625ff5,#bc7ef1);border-color:#bfa6ff;border-radius:13px}
  .home-widgets.reference-layout .home-widget[data-home-widget="meetings"] .panel-header{margin-bottom:7px}
  .home-widgets.reference-layout .home-widget[data-home-widget="meetings"] .meeting-line{padding:5px 0}
  .home-widgets.reference-layout .home-widget[data-home-widget="meetings"]>.btn{display:none}
  .home-widgets.reference-layout .home-widget[data-home-widget="projects"] .panel-header{margin-bottom:8px}
  .home-widgets.reference-layout .home-widget[data-home-widget="tasks"] .panel-header{margin-bottom:10px}
}
@media (min-width:1400px) and (max-width:1500px){
  .app-shell{grid-template-columns:246px minmax(0,1fr);gap:18px}
  .home-widgets.reference-layout{grid-template-columns:minmax(0,1.17fr) minmax(0,.95fr) minmax(244px,.76fr);gap:12px}
  .home-widgets.reference-layout .metric{padding:9px;gap:8px}
  .home-widgets.reference-layout .metric-icon{width:39px;height:39px}
  .home-widgets.reference-layout .metric-label{font-size:10px}
  .home-widgets.reference-layout .home-widget[data-home-widget="progress"] .progress-ring{width:104px;height:104px}
  .home-widgets.reference-layout .project-card{padding:9px}
  .home-widgets.reference-layout .task-row .priority{padding:3px 5px}
}
/* Respect personalized font contrasts and do not overflow at tablet/mobile sizes. */
@media(max-width:1399px){.dashboard-reference .home-toolbar{position:static}.home-widgets{gap:13px}}
@media(max-width:1050px){.app-shell{grid-template-columns:220px minmax(0,1fr);gap:12px;padding:11px}.sidebar{top:11px;height:calc(100vh - 22px)}.quick-tab{min-width:auto;padding:9px 13px}.quick-tabs{gap:8px;flex-wrap:wrap}.top-title h1{font-size:25px}}
@media(max-width:760px){.app-shell{display:block;padding:12px}.sidebar{position:fixed;top:12px;bottom:12px;left:12px;height:auto;width:min(296px,calc(100vw - 48px))}.quick-tabs{flex-wrap:nowrap;overflow:auto;gap:8px}.metric{min-height:82px}.top-title h1{font-size:23px}.top-actions .primary-btn{min-width:auto;height:40px}.top-actions .icon-btn{width:37px;height:37px}}
@media(max-width:440px){.top-title h1{font-size:20px}.project-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.home-widget .project-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.project-card{min-height:124px}.home-toolbar .controls{justify-content:space-between}}
@media(max-width:760px){
  .top-bar{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0 0 14px}
  .top-title{align-items:center;min-width:0}
  .top-title h1{font-size:clamp(20px,5.2vw,25px);line-height:1.12;letter-spacing:-.045em}
  .top-title .muted{font-size:12px}
  .top-actions{width:100%;justify-content:flex-end}
  .top-actions .primary-btn{font-size:13px;min-width:0;flex:1;text-align:center}
  .top-actions .primary-btn span{font-size:20px;margin-right:5px}
  .top-actions .icon-btn:nth-child(2){display:inline-grid}
  .home-toolbar{gap:4px}
  .home-toolbar>.muted{display:none}
  .home-toolbar .controls{justify-content:flex-end;width:100%}
}
@media(max-width:440px){
  .top-title h1{font-size:21px}
  .top-actions .primary-btn{font-size:13px;padding:8px 12px}
}
