@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --teal:#005E3A;
  --teal-dark:#004A2E;
  --teal-soft:#EAF5EE;
  --brand-light:#6A963F;
  --navy:#123126;
  --navy-2:#183D30;
  --ink:#17352A;
  --muted:#64756C;
  --muted-2:#8A9991;
  --bg:#F4F8F5;
  --surface:#ffffff;
  --surface-soft:#F9FCFA;
  --line:#DDE9E1;
  --line-strong:#C9D8CF;
  --danger:#d94c4c;
  --danger-soft:#fdeaea;
  --success:#176B46;
  --success-soft:#E7F4EA;
  --warning:#a87305;
  --warning-soft:#fff5dc;
  --shadow-sm:0 2px 8px rgba(18,49,38,.045);
  --shadow:0 10px 30px rgba(18,49,38,.065);
  --shadow-lg:0 20px 55px rgba(18,49,38,.14);
  --radius:14px;
  --radius-sm:10px;
}

*{box-sizing:border-box}
html{font-size:16px;scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,input,select,textarea{font:inherit}
a{color:inherit}

.topbar{
  min-height:78px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:10px 28px;
  position:sticky;
  top:0;
  z-index:20;
  box-shadow:0 1px 0 rgba(18,49,38,.02);
  backdrop-filter:blur(12px);
}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
.brand img{width:190px;height:58px;object-fit:contain;flex:none}
.brand strong{display:block;font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--navy)}
.brand small{display:block;color:var(--muted);margin-top:2px;font-size:12px;font-weight:500}
.top-actions{display:flex;align-items:center;gap:12px}
.user-name{font-weight:600;color:#4D6258;font-size:14px}

.layout{display:flex;min-height:calc(100vh - 78px)}
.sidebar{
  width:250px;
  flex:0 0 250px;
  background:linear-gradient(180deg,var(--navy) 0%,#14372B 100%);
  color:#fff;
  padding:24px 14px 18px;
  display:flex;
  flex-direction:column;
  box-shadow:6px 0 24px rgba(18,49,38,.06);
}
.sidebar nav{display:grid;gap:6px}
.sidebar a{
  color:#DCE9E1;
  text-decoration:none;
  padding:13px 15px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  letter-spacing:-.01em;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.sidebar a:hover{background:rgba(0,94,58,.13);color:#fff;transform:translateX(2px)}
.sidebar a:focus-visible{outline:3px solid rgba(0,94,58,.35);outline-offset:2px}
.side-note{margin-top:auto;color:#fff;font-weight:800;padding:18px 13px 8px;border-top:1px solid rgba(255,255,255,.10);font-size:14px}
.side-note span{font-weight:400;color:#9BB0A5;font-size:12px}

.content{flex:1;padding:30px;max-width:1540px;margin:0 auto;width:100%;min-width:0}
.footer{text-align:center;color:#819094;font-size:12px;padding:22px 18px 28px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.page-head h1{margin:0;font-size:28px;line-height:1.2;letter-spacing:-.035em;color:var(--navy);font-weight:800}
.page-head p{margin:7px 0 0;color:var(--muted);font-size:14px}
.actions{display:flex;gap:9px;flex-wrap:wrap}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  border:1px solid transparent;
  border-radius:10px;
  padding:9px 15px;
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
  font-size:13px;
  letter-spacing:-.005em;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
  box-shadow:0 1px 2px rgba(13,32,36,.04);
}
.btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(13,32,36,.09)}
.btn:active{transform:translateY(0)}
.btn:focus-visible{outline:3px solid rgba(0,94,58,.22);outline-offset:2px}
.btn-primary{background:var(--teal);color:#fff}.btn-primary:hover{background:var(--teal-dark)}
.btn-dark{background:var(--navy);color:#fff}.btn-dark:hover{background:#1D4939}
.btn-light{background:#EEF4F0;color:#294C3D;border-color:#DDE9E1}.btn-light:hover{background:#E8F0EA}
.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:#be3f3f}
.btn-outline{background:#fff;color:#005E3A;border-color:#BFD7C7}.btn-outline:hover{background:var(--teal-soft);border-color:#9BC5AD}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:22px;
}
.filters{display:flex;gap:14px;flex-wrap:wrap;align-items:end;margin-bottom:20px}
.field{display:grid;gap:7px;min-width:170px}
.field label{font-size:12px;font-weight:800;color:#53665A;letter-spacing:.01em}
.field input,.field select,.field textarea{
  width:100%;
  min-height:44px;
  border:1px solid var(--line-strong);
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
  color:var(--ink);
  outline:none;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.field textarea{min-height:110px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:#A0AEA5}
.field input:hover,.field select:hover,.field textarea:hover{border-color:#B8CEC0}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--teal);box-shadow:0 0 0 4px rgba(0,94,58,.11)}

.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}
.kpi{
  padding:21px;
  border-radius:var(--radius);
  background:var(--surface);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  position:relative;
  overflow:hidden;
}
.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--teal)}
.kpi .label{color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.055em}
.kpi .value{font-size:32px;line-height:1.15;font-weight:800;letter-spacing:-.04em;margin-top:9px;color:var(--navy)}
.kpi .hint{font-size:12px;color:var(--muted);margin-top:5px}
.progress{height:9px;background:#E9F1EB;border-radius:999px;overflow:hidden}
.progress>span{display:block;height:100%;background:linear-gradient(90deg,var(--teal),#3A8D62);border-radius:999px;transition:width .3s ease}

.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}
.table{width:100%;border-collapse:separate;border-spacing:0;min-width:980px}
.table th,.table td{padding:14px 13px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.table th{font-size:11px;text-transform:uppercase;letter-spacing:.065em;color:#61736A;background:var(--surface-soft);font-weight:800;white-space:nowrap}
.table th:first-child{border-top-left-radius:11px}.table th:last-child{border-top-right-radius:11px}
.table tbody tr:last-child td{border-bottom:0}
.table tbody tr:hover td{background:#FAFCFA}
.table td{font-size:14px}
.table td strong{font-weight:700}
.badge{display:inline-flex;align-items:center;gap:5px;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.badge-success{background:var(--success-soft);color:var(--success)}
.badge-warning{background:var(--warning-soft);color:var(--warning)}
.badge-danger{background:var(--danger-soft);color:#a43131}
.badge-neutral{background:#EDF3EF;color:#53675B}
.muted{color:var(--muted)}
.empty{text-align:center;padding:44px 24px;color:var(--muted)}

.modal-back{position:fixed;inset:0;background:rgba(7,30,20,.60);display:none;align-items:center;justify-content:center;padding:22px;z-index:50;backdrop-filter:blur(4px)}
.modal-back.show{display:flex}
.modal{background:#fff;border:1px solid rgba(255,255,255,.5);border-radius:18px;max-width:760px;width:100%;max-height:92vh;overflow:auto;box-shadow:var(--shadow-lg)}
.modal-head{padding:20px 23px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;align-items:center}
.modal-head h2{margin:0;font-size:20px;letter-spacing:-.02em}
.modal-body{padding:23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.span2{grid-column:span 2}
.modal-foot{padding:17px 23px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:9px;background:#FBFCFB}
.alert{padding:13px 15px;border-radius:10px;margin-bottom:18px;font-weight:600;font-size:14px;border:1px solid transparent}
.alert.success{background:var(--success-soft);color:#176B46;border-color:#c9ecdd}.alert.error{background:var(--danger-soft);color:#9E3030;border-color:#f4cccc}

.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 15% 15%,rgba(32,183,176,.18),transparent 32%),linear-gradient(145deg,#0A2419,#123D2C)}
.login-card{width:min(450px,100%);background:#fff;border:1px solid rgba(255,255,255,.35);border-radius:20px;padding:34px;box-shadow:0 30px 80px rgba(0,0,0,.30)}
.login-card img{display:block;width:250px;height:82px;object-fit:contain;margin:0 auto 14px}
.login-card h1{text-align:center;font-size:23px;line-height:1.25;letter-spacing:-.03em;margin:0;color:var(--navy)}
.login-card p{text-align:center;color:var(--muted);font-size:14px;margin:8px 0 23px}
.login-card form{display:grid;gap:15px}
.login-card .btn{width:100%;min-height:46px}
.chart-row{display:grid;grid-template-columns:170px 1fr 72px;gap:12px;align-items:center;margin:14px 0}
.chart-label{font-weight:700;font-size:14px}.chart-value{text-align:right;font-weight:800;color:var(--navy)}
.report-head{text-align:center;margin-bottom:20px}
.report-head img{width:250px;height:74px;object-fit:contain}
.report-head h1{font-size:22px;line-height:1.25;margin:8px 0 5px;letter-spacing:-.025em;color:var(--navy)}
.report-head p{margin:4px;color:var(--muted);font-size:13px}
.signature{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:60px;text-align:center}
.small{font-size:11px}
.install-list{margin:0;padding-left:22px;line-height:1.9}

@media(max-width:1100px){
  .sidebar{width:220px;flex-basis:220px}
  .content{padding:24px}
  .grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  .topbar{padding:9px 17px}
  .sidebar{width:72px;flex-basis:72px;padding:16px 8px}
  .sidebar a{font-size:0;text-align:center;padding:13px 7px}
  .sidebar a:first-letter{font-size:19px}
  .side-note{display:none}
  .content{padding:20px}
  .page-head{align-items:flex-start;flex-direction:column}
  .actions{width:100%}
  .actions .btn{flex:0 0 auto}
}
@media(max-width:620px){
  html{font-size:15px}
  body{font-size:15px}
  .topbar{min-height:70px;padding:7px 12px}
  .brand{gap:9px}.brand img{width:135px;height:50px}.brand strong{font-size:14px}.brand small,.user-name{display:none}
  .top-actions .btn{min-height:38px;padding:8px 11px;font-size:12px}
  .content{padding:14px}
  .page-head h1{font-size:24px}
  .page-head p{font-size:13px}
  .grid{grid-template-columns:1fr 1fr;gap:10px}
  .kpi{padding:16px}.kpi .value{font-size:25px}.kpi .label{font-size:10px}
  .card{padding:16px;border-radius:12px}
  .filters .field{width:100%;min-width:100%}
  .form-grid{grid-template-columns:1fr}.span2{grid-column:span 1}
  .modal-back{padding:10px}.modal{border-radius:15px}.modal-body{padding:17px}.modal-head{padding:17px}.modal-foot{padding:14px 17px}
  .chart-row{grid-template-columns:95px 1fr 48px;gap:8px}.chart-label{font-size:12px}
  .footer{padding:18px 12px 70px}
}
@media(max-width:420px){
  .grid{grid-template-columns:1fr}
  .actions .btn{width:100%}
  .page-head .actions{display:grid;grid-template-columns:1fr 1fr}
  .page-head .actions .btn{width:auto}
}

@media print{
  @page{size:A4;margin:12mm}
  body{background:#fff;font-size:10px}
  .topbar,.sidebar,.footer,.actions,.filters,.no-print{display:none!important}
  .layout{display:block;min-height:auto}
  .content{padding:0;max-width:none}
  .card{box-shadow:none;border:0;padding:0}
  .report-print{display:block}
  .table-wrap{border:0;border-radius:0;overflow:visible}
  .table{min-width:0}
  .table th,.table td{padding:7px 6px;font-size:9px}
  .report-head img{width:80px;height:55px}
  .report-head h1{font-size:18px}
  .signature{margin-top:45px}
}
/* EPIC SARL v3 — profil, identité utilisateur et signatures */
.profile-grid{grid-template-columns:minmax(260px,340px) 1fr;align-items:start}
.profile-summary{text-align:center;padding:28px}
.avatar{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:linear-gradient(145deg,var(--teal),var(--navy));color:#fff;font-size:30px;font-weight:800;box-shadow:0 10px 28px rgba(0,94,58,.22)}
.profile-summary h2{margin:0;font-size:21px;color:var(--navy)}
.profile-summary>p{margin:6px 0 12px;color:var(--muted)}
.profile-meta{margin-top:22px;border-top:1px solid var(--line);text-align:left}
.profile-meta>div{padding:11px 0;border-bottom:1px solid var(--line)}
.profile-meta span,.profile-meta b{display:block}.profile-meta span{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:800;letter-spacing:.06em}.profile-meta b{font-size:13px;margin-top:3px}
.chart-label small{display:block;color:var(--muted);font-weight:500;font-size:11px;margin-top:2px}
.report-table small{font-size:9px;font-weight:600;opacity:.8}
@media(max-width:820px){.profile-grid{grid-template-columns:1fr}}

/* =====================================================================
   EPIC SARL V4 — DESIGN DES NOUVEAUX ESPACES
   Profil · Propriété des activités · Auto-évaluation · Utilisateurs
   Note : aucun style spécifique à report.php, report_print.php ou export.php
   n'est modifié dans cette section.
   ===================================================================== */
.eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:7px;color:var(--brand-light);font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.eyebrow:before{content:"";width:24px;height:2px;background:var(--teal);border-radius:4px}
.section-kicker{display:block;color:var(--brand-light);font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;margin-bottom:4px}
.section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;padding-bottom:17px;border-bottom:1px solid var(--line)}
.section-title h2,.activity-card-head h2{margin:0;color:var(--navy);font-size:19px;letter-spacing:-.025em;font-weight:800}
.section-title p,.activity-card-head p{margin:5px 0 0;color:var(--muted);font-size:12px}
.secure-pill{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid #CFE4D6;background:var(--teal-soft);color:var(--teal-dark);border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}

/* Profil */
.profile-page .profile-page-head{margin-bottom:24px}
.profile-live{display:inline-flex;align-items:center;gap:8px;padding:9px 13px;border-radius:999px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow-sm);font-size:11px;font-weight:800;color:#486257}
.live-dot{width:7px;height:7px;border-radius:50%;background:#2C8A5B;box-shadow:0 0 0 4px rgba(39,168,117,.12)}
.profile-grid{grid-template-columns:minmax(285px,360px) 1fr;gap:20px}
.profile-summary{position:relative;overflow:hidden;padding:0 26px 25px!important}
.profile-cover{height:78px;margin:-1px -1px 0;background:linear-gradient(125deg,var(--navy) 0%,#1B5139 62%,var(--teal) 100%);position:relative}
.profile-cover:after{content:"";position:absolute;right:-30px;top:-65px;width:150px;height:150px;border:1px solid rgba(255,255,255,.16);border-radius:50%;box-shadow:0 0 0 22px rgba(255,255,255,.035),0 0 0 44px rgba(255,255,255,.025)}
.profile-summary .avatar{position:relative;margin:-41px auto 13px;width:84px;height:84px;border:5px solid #fff;background:linear-gradient(145deg,var(--teal),var(--navy));box-shadow:0 8px 24px rgba(18,49,38,.18);z-index:2}
.profile-identity h2{font-size:22px!important;letter-spacing:-.035em}
.profile-identity p{font-size:13px!important;font-weight:600}
.profile-summary>.badge{margin-top:2px}
.profile-meta{margin-top:20px!important;background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;padding:3px 13px}
.profile-meta>div{padding:12px 2px!important;display:flex;align-items:center;justify-content:space-between;gap:14px}
.profile-meta span{font-size:9px!important;letter-spacing:.08em;color:#718279!important}
.profile-meta b{font-size:12px!important;text-align:right;max-width:58%;word-break:break-word}
.profile-form-card{padding:25px!important}
.profile-form-card .field label{font-size:11px;letter-spacing:.025em;color:#455E51}
.profile-form-card .field input,.profile-form-card .field select,.profile-form-card .field textarea{min-height:47px;border-radius:11px;background:#FBFDFB}
.profile-divider{display:flex;align-items:center;gap:12px;margin:2px 0 0;color:#718279;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.profile-divider:before,.profile-divider:after{content:"";height:1px;background:var(--line);flex:1}
.profile-submit{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:4px}
.save-note{display:flex;flex-direction:column;gap:2px}
.save-note strong{font-size:11px;color:var(--navy)}
.save-note span{font-size:10px;color:var(--muted);line-height:1.45}

/* Activités — propriété et auto-évaluation */
.activities-page .page-head{margin-bottom:20px}
.activity-card{padding:0!important;overflow:hidden}
.activity-card-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfdfd)}
.activity-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;color:#64766B;font-size:10px;font-weight:700}
.activity-legend span{display:inline-flex;align-items:center;gap:6px}
.legend-dot{display:inline-block;width:8px;height:8px;border-radius:50%}.legend-dot.owner{background:var(--teal);box-shadow:0 0 0 3px var(--teal-soft)}.legend-dot.locked{background:#9aa9ac;box-shadow:0 0 0 3px #EDF2EE}
.activity-table{min-width:1120px}
.activity-table th{background:#F5F8F6!important;font-size:10px!important;padding-top:12px!important;padding-bottom:12px!important}
.activity-table td{padding-top:15px!important;padding-bottom:15px!important}
.activity-number{display:inline-flex;align-items:center;justify-content:center;min-width:38px;padding:6px 8px;border-radius:8px;background:var(--navy);color:#fff;font-weight:800;font-size:11px}
.identity-line{display:flex;align-items:center;gap:6px;margin-top:8px!important;color:#7A8B80!important;font-size:10px!important;line-height:1.35}
.identity-line .identity-icon{display:inline-flex;align-items:center;padding:3px 6px;border-radius:5px;background:#EDF3EF;color:#64776C;font-weight:800;font-size:8px;text-transform:uppercase;letter-spacing:.05em;white-space:nowrap}
.identity-line.identity-owner .identity-icon{background:var(--teal-soft);color:var(--teal-dark)}
.responsible-name{font-weight:750;color:var(--navy);font-size:13px}
.day-pill{display:inline-flex;padding:6px 9px;border-radius:7px;background:#EEF4F0;color:#405A4B;font-size:10px;font-weight:800;border:1px solid #DDE9E1}
.progress-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px}.progress-label b{font-size:13px;color:var(--navy)}.progress-label span{font-size:9px;color:#83938A}
.activity-progress{height:7px!important;min-width:95px}
.comment-text{font-size:12px;color:#3F5A4C;line-height:1.45;max-width:190px}
.evaluation-by{display:inline-flex;align-items:center;margin-top:7px;padding:4px 7px;border-radius:6px;font-size:9px!important;font-weight:750}
.evaluation-by.evaluated{background:var(--success-soft);color:var(--success)}
.evaluation-by.not-evaluated{background:#F1F5F2;color:#7B8B81}
.activity-actions{display:flex!important;gap:6px!important;flex-wrap:wrap;align-items:center}
.activity-actions .btn{min-height:35px;padding:7px 10px;font-size:10px}
.ownership-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 7px;border-radius:7px;font-size:8px;font-weight:800;letter-spacing:.03em;white-space:nowrap}
.owner-badge{background:var(--teal-soft);color:var(--teal-dark);border:1px solid #C8E0D0}
.locked-badge{background:#F0F4F1;color:#718379;border:1px solid #e1e7e8}
.evaluation-btn{border-color:#B9D8C4!important;color:var(--teal-dark)!important;background:#fff!important}
.evaluation-btn:hover{background:var(--teal-soft)!important}
.activity-modal,.evaluation-modal{max-width:790px}
.evaluation-modal-head{background:linear-gradient(90deg,#F8FCF9,#fff)}
.evaluation-modal-head strong{display:block;font-size:18px;margin-top:2px}
.evaluation-modal #ev_activity{padding:12px 14px;background:var(--teal-soft);border:1px solid #D4E9DB;border-radius:10px;color:#315E48;font-weight:700}

/* Utilisateurs — annuaire et identité professionnelle */
.users-page .page-head{margin-bottom:20px}
.user-form-card{padding:25px!important}
.users-list-card{padding:0!important;overflow:hidden}
.users-table{min-width:930px}
.users-table th{font-size:10px!important}
.user-name-cell{display:flex;align-items:center;gap:10px;min-width:190px}
.user-name-cell>div{display:flex;flex-direction:column;gap:2px}.user-name-cell small{font-size:9px;color:var(--muted)}
.user-avatar-mini{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:linear-gradient(145deg,var(--navy),#1F5740);color:#fff;font-size:12px;font-weight:800;box-shadow:0 4px 10px rgba(13,32,36,.12)}
.function-chip,.phone-chip{display:inline-flex;align-items:center;min-height:29px;padding:5px 8px;border-radius:7px;background:#F4F8F5;border:1px solid #E4ECE6;color:#4D6258;font-size:10px;font-weight:650}
.phone-chip{font-variant-numeric:tabular-nums}
.users-table td{vertical-align:middle!important}

@media(max-width:820px){
  .section-title,.activity-card-head{align-items:flex-start;flex-direction:column}
  .profile-live{align-self:flex-start}
  .profile-submit{align-items:flex-start;flex-direction:column}
  .profile-submit .btn{width:100%}
}
@media(max-width:620px){
  .profile-grid{grid-template-columns:1fr!important}
  .profile-form-card,.user-form-card{padding:18px!important}
  .activity-card-head{padding:17px}
  .activity-legend{gap:9px}
  .activity-actions .ownership-badge{display:none}
}
.period-preview{padding:10px 12px;border:1px solid #D4E1D8;background:#F4F8F5;border-radius:8px;color:#123126;font-weight:800}
.activity-table .day-pill{white-space:nowrap}
