/* NXTFRAME — team : « Idées et projets ».
   La peau vient de la maquette Claude Design (teamAlex/Tableau de bord projets partagés) : papier
   clair, Geist et Geist Mono servies en local, angles arrondis, une encre presque noire. Les tokens
   ci-dessous sont la seule source des couleurs : une vue n'en cite jamais une en dur. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-latin-wght-normal-90ac0fe7.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-latin-wght-normal-a600ad3f.woff2") format("woff2");
}

:root {
  --ink: #111111;
  --ink-hover: #333333;
  --muted: #5c5c59;
  --paper: #ffffff;
  --canvas: #f4f4f3;      /* le fond, les champs discrets, les colonnes */
  --canvas-on: #e4e4e2;   /* une colonne survolée pendant un glisser-déposer */
  --line: #e4e4e2;        /* bordure des champs et des fenêtres */
  --line-soft: #ececea;   /* filets de séparation */
  --line-card: #e9e9e7;   /* bordure des cartes */
  --dot-off: #e0e0de;
  --dashed: #cfcfcc;
  --note: #ececea;
  /* Le retard : la seule couleur vive de l'écran. */
  --late: oklch(0.52 0.17 28);
  --backdrop: rgba(17, 17, 17, 0.35);
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.25);

  --font: "Geist", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: var(--canvas); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
/* Une fenêtre ouverte : la page derrière ne défile plus. */
body:has(.modal) { overflow: hidden; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.late { color: var(--late) !important; }
.label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Ossature ---------- */

.frame { min-height: 100vh; padding: 8px; }
.app { min-height: calc(100vh - 16px); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }

.bar {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding: 10px 20px; border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; font-weight: 500; }
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.search { flex: 0 1 260px; min-width: 140px; height: 34px !important; background: var(--canvas) !important; }
.who { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--muted); }
.who form { display: flex; }
.who__me {
  height: 32px; padding: 0 12px; border-radius: 6px; background: var(--ink); color: var(--paper);
  display: inline-flex; align-items: center;
}
.who__me:hover { background: var(--ink-hover); color: var(--paper); }

.page { padding: 20px; }
.page-head {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center;
  justify-content: space-between; margin-bottom: 16px;
}
.page-head form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.title { font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; }

/* ---------- Champs et boutons ---------- */

.input, .select, .textarea {
  height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper); font-size: 15px; outline: none; min-width: 0;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); }
.textarea { display: block; width: 100%; height: auto; min-height: 92px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
/* Un champ qui se fond dans la ligne tant qu'on ne le touche pas. */
.input--bare { border-color: transparent; padding: 0 8px; width: 100%; }
.input--bare:hover { border-color: var(--line); }
.field { display: block; }
.field__label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.hint { font-size: 14px; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 14px; border: 0; border-radius: 8px;
  background: var(--ink); color: var(--paper); font-weight: 500; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--ink-hover); color: var(--paper); }
.btn--line { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.btn--line:hover { background: var(--canvas); color: var(--ink); }
.btn--soft { background: var(--paper); color: var(--ink); border: 1px solid var(--line); font-weight: 400; }
.btn--soft:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn--sm { height: 36px; padding: 0 12px; font-size: 15px; }
.btn--lg { height: 44px; padding: 0 16px; }
.x {
  flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer;
}
.x:hover { background: var(--canvas); color: var(--ink); }
.close {
  flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; color: var(--ink);
}
.close:hover { background: var(--canvas); color: var(--ink); }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--canvas); font-size: 15px; margin-bottom: 14px; }
.notice--alert { color: var(--late); }

/* Les points du potentiel et de l'effort */
.dots { display: inline-flex; gap: 2px; }
.dots > span { width: 7px; height: 7px; border-radius: 50%; background: var(--dot-off); }
.dots--pot > .on { background: var(--ink); }
.dots--eff > .on { background: var(--muted); }

/* Les mêmes points, à choisir : boutons radio rangés de 5 à 1, affichés de 1 à 5. Un point coché
   remplit aussi ceux qui le précèdent (les suivants dans le code). */
.rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; pointer-events: none; }
.rate label {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--dashed);
  background: var(--dot-off); cursor: pointer;
}
.rate--sm label { width: 20px; height: 20px; }
.rate--sm { gap: 3px; }
.rate input:checked ~ label, .rate input:checked + label { background: var(--fill, var(--ink)); }
.rate--eff { --fill: var(--muted); }
.rate input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Choix en boutons (étape de départ) */
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer;
  font-size: 15px;
}
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Chiffres ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stats--sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 24px; }
.stat { background: var(--canvas); border: 1px solid var(--line-card); border-radius: 12px; padding: 3px; }
.stat__box { background: var(--paper); border: 1px solid var(--line-card); border-radius: 9px; padding: 12px 14px; }
.stat__value { font-family: var(--font-mono); font-weight: 500; font-size: 28px; margin-top: 4px; }
.stats--sm .stat__value { font-size: 24px; }
.stat__foot { padding: 7px 12px 5px; font-size: 13px; color: var(--muted); }

/* ---------- Le tableau ---------- */

.columns {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr);
  gap: 10px; overflow-x: auto; padding-bottom: 8px; align-items: start;
}
.column {
  background: var(--canvas); border: 1px solid var(--line-card); border-radius: 12px;
  padding: 3px; min-height: 220px; transition: background .15s;
}
.column.is-over { background: var(--canvas-on); }
.column__head { display: flex; align-items: baseline; gap: 8px; padding: 8px 10px 9px; }
.column__num, .column__count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.column__count { margin-left: auto; }
.column__label { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.column__cards { display: flex; flex-direction: column; gap: 3px; }
.column__empty {
  border: 1px dashed var(--dashed); border-radius: 9px; padding: 18px 12px;
  text-align: center; color: var(--muted); font-size: 15px;
}

.card {
  background: var(--paper); border: 1px solid var(--line-card); border-radius: 9px; padding: 12px;
  display: flex; flex-direction: column; gap: 9px; color: var(--ink); cursor: pointer;
}
.card:hover { border-color: var(--ink); color: var(--ink); }
.card--abandon { opacity: .6; }
.card.is-dragging { opacity: .4; }
.card__name { font-weight: 600; text-wrap: pretty; }
.card__pitch { color: var(--muted); font-size: 15px; margin-top: 2px; text-wrap: pretty; }
.card__progress { display: flex; align-items: center; gap: 8px; }
.squares { display: flex; flex-wrap: wrap; gap: 2px; flex: 1; }
.squares > span { width: 12px; height: 12px; border-radius: 2px; background: var(--dot-off); }
.squares > .on { background: var(--ink); }
.card__next {
  font-size: 14px; display: flex; gap: 6px; align-items: baseline;
  background: var(--canvas); border-radius: 6px; padding: 6px 8px;
}
.card__next > :nth-child(2) { flex: 1; min-width: 0; text-wrap: pretty; }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.card__meta > span { display: flex; align-items: center; gap: 4px; }
.card__meta > :last-child { margin-left: auto; }
.frac { font-family: var(--font-mono); font-size: 13px; color: var(--muted); flex: none; }

/* ---------- Fenêtres ---------- */

.backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 10; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 11;
  max-height: calc(100vh - 48px); background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow);
}
.modal--project {
  width: min(1080px, calc(100vw - 32px)); height: min(760px, calc(100vh - 48px));
  display: flex; flex-direction: column; overflow: hidden;
}
.modal--new {
  width: min(540px, calc(100vw - 32px)); overflow-y: auto;
  padding: 28px clamp(18px, 3vw, 32px) 24px;
}
.modal--new form { display: flex; flex-direction: column; gap: 18px; }
.modal__top { flex: none; padding: 24px clamp(18px, 3vw, 32px) 0; border-bottom: 1px solid var(--line-soft); }
.modal__row { display: flex; align-items: flex-start; gap: 12px; }
.modal__heading { flex: 1; min-width: 0; }
.modal__meta { margin-bottom: 6px; }
.modal__name {
  width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 0 6px; margin-left: -7px;
  font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; background: transparent;
}
.modal__pitch {
  width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 2px 6px; margin: 4px 0 0 -7px;
  color: var(--muted); background: transparent;
}
.modal__name, .modal__pitch { display: block; resize: none; overflow: hidden; field-sizing: content; font-family: inherit; }
.modal__name:hover, .modal__pitch:hover { border-color: var(--line); }
.modal__name:focus, .modal__pitch:focus { border-color: var(--ink); outline: none; color: var(--ink); }
.modal__title { flex: 1; font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -0.025em; }
.modal__body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px clamp(18px, 3vw, 32px) 28px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); }

.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 16px;
  padding: 10px 14px; background: var(--canvas); border-radius: 10px; font-size: 15px;
}
.toolbar > form, .toolbar__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar strong { font-weight: 500; }
.toolbar__money label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.toolbar__money .input { height: 36px; width: 88px; padding: 0 8px; color: var(--ink); }
.toolbar__end { margin-left: auto; }

.tabs { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 16px; }
.tab {
  display: flex; align-items: center; gap: 6px; height: 44px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500;
}
.tab:hover { color: var(--ink); }
.tab.is-on { border-color: var(--ink); color: var(--ink); }
.tab .frac { font-size: 13px; }

.section-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

/* Suivi : les étapes, puis les tâches de l'étape regardée */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; margin-bottom: 24px; }
.step {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--muted);
}
.step:hover { border-color: var(--ink); }
.step__top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.step__label { font-weight: 600; }
.step__status { font-size: 13px; color: var(--muted); }
.step.is-past { color: var(--ink); }
.step.is-view { border-color: var(--ink); color: var(--ink); }
.step.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.step.is-current .step__top, .step.is-current .step__status { color: var(--dashed); }

.list-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-bottom: 8px; }
.list-head__actions { margin-left: auto; display: flex; gap: 6px; }
.list-head__actions form { display: flex; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.row > form { display: contents; }
.row__label { flex: 1; min-width: 0; text-wrap: pretty; }
.row__label.is-done { text-decoration: line-through; color: var(--muted); }
.row__date { flex: none; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }
.row .select { flex: none; height: 34px; max-width: 140px; padding: 0 4px; }
.check { width: 18px; height: 18px; accent-color: var(--ink); flex: none; margin: 0; cursor: pointer; }
.empty { padding: 14px 0; color: var(--muted); font-size: 15px; border-bottom: 1px solid var(--line-soft); }
.add { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.add .input { flex: 1 1 180px; }
.add .input--wide { flex: 2 1 220px; }
.add .input--num { flex: 0 1 110px; }
.add .input--date, .add .select { flex: none; }
.add--top { margin: 0 0 16px; }
.add .input--short { flex: 1 1 90px; }
.add .input--url { flex: 2 1 140px; }

/* Fiche produit */
.fiche-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.fiche-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.fiche-head .hint { font-size: 15px; margin-top: 4px; text-wrap: pretty; }
.fiche-head__actions { display: flex; gap: 6px; }
.fiche-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px 24px; margin-bottom: 28px; }
.scroll-x { overflow-x: auto; }
.grid-row { display: grid; gap: 8px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }
.grid-row > form { display: contents; }
.grid-row--head { padding: 0 0 8px; }
.grid-row--features { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) 130px 28px; min-width: 600px; }
.grid-row--features .input--name { font-weight: 600; font-size: 16px; }
.grid-row--features .select { height: 36px; width: 100%; }
.grid-row--prospects { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 1.5fr) 28px; gap: 10px; min-width: 640px; padding: 8px 0; }
.grid-row--prospects .select { height: 36px; width: 100%; }
.grid-row.is-lost { opacity: .5; }

/* Notes et échanges */
.notes-layout { display: flex; flex-wrap: wrap; gap: 28px 40px; align-items: flex-start; }
.notes-layout > :first-child { flex: 2 1 420px; min-width: 0; }
.notes-layout > :last-child { flex: 1 1 220px; min-width: 0; }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { border: 1px solid var(--line-card); border-radius: 10px; padding: 12px 14px; }
.note__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.note__head form { margin-left: auto; display: flex; }
.note__kind {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; padding: 2px 8px;
  border-radius: 4px; border: 1px solid transparent; background: var(--note);
}
.note__kind--question { background: var(--paper); border-color: var(--ink); }
.note__kind--decision { background: var(--ink); color: var(--paper); }
.note__meta { font-size: 13px; color: var(--muted); }
.note__body { text-wrap: pretty; white-space: pre-wrap; }
.replies { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0 20px; }
.reply { background: var(--canvas); border-radius: 8px; padding: 8px 12px; }
.reply__meta { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.reply__meta strong { color: var(--ink); font-weight: 600; }
.reply-form { display: flex; gap: 6px; }
.reply-form .input { flex: 1; height: 36px; background: var(--canvas); border-color: transparent; }
.reply-form .input:focus { background: var(--paper); border-color: var(--ink); }

/* Onglet Tests : phases, points à corriger, contre-corrections. */
.phase { margin-top: 28px; }
.phase__head { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.phase__head .section-title { flex: none; }
.phase__title { flex: 1; min-width: 0; }
.phase__title .input { height: 36px; color: var(--muted); }
.tpoint { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tpoint__main { display: flex; align-items: flex-start; gap: 12px; }
.tpoint__text { flex: 1; min-width: 0; }
.tpoint__label { text-wrap: pretty; white-space: pre-wrap; }
.tpoint.is-passed .tpoint__label { color: var(--muted); }
.tpoint__actions { flex: none; display: flex; align-items: center; gap: 4px; }
.tpoint__actions form { display: flex; }
.tpoint .replies { margin-left: 0; padding-left: 20px; }
.tstatus {
  flex: none; margin-top: 1px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; border: 1px solid transparent; background: var(--note); white-space: nowrap;
}
.tstatus--rework { background: var(--paper); border-color: var(--late); color: var(--late); }
.tstatus--passed { background: var(--ink); color: var(--paper); }
.reply--counter .reply__meta strong { color: var(--late); }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.link-chip { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; }
.link-chip:hover { border-color: var(--ink); }
.link-chip > a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px 0 12px; font-size: 15px; }
.link-chip form { display: flex; }
.link-chip .x { width: 26px; height: 26px; margin-right: 4px; }

/* ---------- Connexion et compte ---------- */

.signin { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.signin__card {
  width: 100%; max-width: 400px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 28px clamp(18px, 3vw, 32px) 24px; display: flex; flex-direction: column; gap: 18px;
}
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack .input { width: 100%; height: 44px; font-size: 16px; }
.account { max-width: 460px; }

/* ---------- Impression : la fiche produit seule ---------- */

.fiche-print { display: none; }
@media print {
  [data-noprint] { display: none !important; }
  body { background: #fff; }
  body:has(.modal) { overflow: visible; }
  .frame { padding: 0; }
  .fiche-print { display: block; font-size: 16px; line-height: 1.5; color: #111; padding: 8px 4px; }
  .fiche-print h1 { font-weight: 600; font-size: 36px; line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 8px; }
  .fiche-print .lead { font-size: 18px; margin: 0 0 28px; color: #333; }
  .fiche-print section { margin-bottom: 22px; }
  .fiche-print h3 { font-size: 18px; font-weight: 600; margin: 0 0 8px; padding-top: 18px; border-top: 1px solid #d9d9d6; break-after: avoid; }
  .fiche-print p { white-space: pre-wrap; }
  .fiche-print .line { display: grid; gap: 12px; padding: 6px 0; border-bottom: 1px solid #e4e4e2; break-inside: avoid; }
  .fiche-print .line--feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) 90px; }
  .fiche-print .line--prospect { grid-template-columns: minmax(0, 2fr) 100px 100px minmax(0, 1.2fr); }
  .fiche-print .pair { display: flex; gap: 12px; padding: 3px 0; }
  .fiche-print .pair > :first-child { flex: 1; }
  .fiche-print .stage { margin-bottom: 12px; break-inside: avoid; }
  .fiche-print .mono { font-size: 13px; color: #444; overflow-wrap: anywhere; }
}

@media (max-width: 640px) {
  .page { padding: 16px; }
  /* Sur téléphone, toute la fenêtre défile : l'en-tête du projet y prend trop de place pour rester fixe. */
  .modal--project { height: calc(100vh - 32px); max-height: none; overflow-y: auto; display: block; }
  .modal__body { overflow: visible; }
  .title { font-size: 28px; }
  .modal__name { font-size: 26px; }
  .search { flex-basis: 100%; order: 3; }
  .tpoint__main { flex-wrap: wrap; }
  .tpoint__actions { margin-left: auto; }
  .tpoint__text { flex-basis: 100%; order: 3; }
  .tpoint .replies { padding-left: 0; }
  .tpoint .reply-form { flex-wrap: wrap; }
  .tpoint .reply-form .input { flex-basis: 100%; }
  .phase__head { flex-wrap: wrap; }
  .phase__head .frac { margin-left: auto; }
  .phase__title { flex-basis: 100%; order: 3; }
}
