/* PLANER ONE 1.9 — readable content and user background (all themes). */
/* Keep every layout column shrinkable: long Cyrillic titles must wrap on spaces. */
.app-main, #content, .screen, .panel, .glass, .dashboard, .home-widgets,
.home-widget, .home-widget > *, .kanban-board, .kanban-col, .col-cards,
.kanban-card, .kanban-card .task-info, .task-row, .task-info,
.project-card, .sidebar, .sidebar-projects, .notice-copy,
.schedule-item, .schedule-item > div, .form-grid > *, .metric > div,
.home-widgets .project-card, .col-header, .col-header strong,
.screen-head > *, .stat-bar-label > * {min-width:0;max-width:100%;}

.kanban-card, .kanban-card .task-info, .kanban-card .task-info strong,
.kanban-col .col-header strong, .task-info strong, .task-info small,
.task-row, .project-card strong, .project-link, .notice-copy strong,
.notice-copy small, .meet-title, .stat-bar-label span, .panel-headline h2,
.schedule-item strong, .schedule-item small, .screen-head h2,
.panel h2, .person-row strong, .person-row small, .metric-label,
.col-header strong, .widget-library p, .pill-note, .appearance-field p,
.form-actions button, .screen-head p, .cal-event {
  white-space:normal;
  word-break:normal;
  overflow-wrap:anywhere;
  hyphens:manual;
  text-overflow:clip;
}
.kanban-card .task-info, .kanban-card .task-info strong {
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  text-align:left;
  overflow:visible;
  -webkit-line-clamp:unset;
  -webkit-box-orient:initial;
}
.kanban-card strong {font-size:13px;line-height:1.46;}
.kanban-col .col-header strong {flex:1;overflow:visible;line-height:1.25;}
.project-card strong, .home-widgets.reference-layout .project-card strong {
  display:block;
  -webkit-line-clamp:unset;
  -webkit-box-orient:initial;
  overflow:visible;
  flex-shrink:0;
}
.project-card {height:auto!important;min-height:133px!important;}
.home-widgets.reference-layout .home-widget[data-home-widget="projects"] .project-card{
  height:auto!important;min-height:133px!important;
}
.task-info strong, .task-info small{overflow:visible;}
.task-row .task-info{flex:1 1 85px;}
.screen-head {align-items:flex-start;}
.panel-headline h2, .notice-copy, .schedule-item > div{min-width:0;}
.cal-event{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.stat-bar-label span{min-width:0;flex:1;}

/* Custom image remains an actual image behind the blur panels, not a mockup. */
body[data-background="custom"] {
  background-image:linear-gradient(125deg,rgba(13,28,51,.55),rgba(23,36,61,.40)),var(--personal-background-image)!important;
  background-color:#172b46;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}
body[data-background="custom"]:before{background:rgba(9,20,39,.07)}
.custom-background-picker {margin-top:14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;min-width:0;}
.custom-background-picker input[type="file"] {position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;}
.custom-background-picker input[type="file"]:focus-visible + span {outline:2px solid var(--user-accent)}
.custom-background-label{display:inline-flex;align-items:center;gap:8px;cursor:pointer;min-height:42px;}
.custom-background-picker .muted{font-size:12px;flex:1 1 180px;overflow-wrap:anywhere;}
.export-toolbar{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-bottom:4px;}

/* Preview navigation is always obvious, on desktop and mobile. */
.preview-banner {
  position:sticky;top:10px;z-index:50;
  display:flex!important;align-items:center;gap:12px;
  padding:15px 17px!important;
  border:1px solid rgba(205,214,252,.53)!important;
  background:linear-gradient(130deg,rgba(32,47,82,.96),rgba(43,43,88,.96))!important;
  box-shadow:0 10px 30px rgba(6,12,28,.42),inset 0 1px rgba(255,255,255,.15)!important;
}
.preview-banner strong{color:white;font-size:16px;white-space:normal;}
.preview-banner>span{color:#e1e7ff!important;}
.preview-banner .preview-back {background:#f1f3ff!important;color:#172342!important;font-weight:700;min-height:42px;}
.preview-banner .preview-back:hover {background:white!important;}
.persistent-preview-back:not([hidden]){
  display:inline-flex;align-items:center;gap:7px;
  background:#f3f1ff!important;color:#14223a!important;
  font-weight:750;min-height:42px;
  border:1px solid #c7cefc!important;
}
@media (max-width:800px){
  .preview-banner{flex-direction:column;align-items:stretch;top:3px;}
  .preview-banner .controls{justify-content:stretch;}
  .preview-banner .controls button{flex:1 1 155px;}
  .persistent-preview-back:not([hidden]){font-size:12px;padding:7px 9px;}
  .kanban-col {max-width:82vw;}
}
