/* Единый каркас текстовых экранов: Журнал, Калькулятор, Профиль */
:root{
  --vzlet-page-max:720px;
  --vzlet-page-pad-x:16px;
  --vzlet-ctrl-h:42px;
}

.page-shell,
.page-shell body{
  margin:0;
  min-height:100%;
  background:var(--p-bg, #14161a);
  color:var(--p-text, #eceef1);
  font:15px/1.45 var(--p-font, Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif);
  -webkit-font-smoothing:antialiased;
}
.page-shell{height:100%}

.page-shell .wrap{
  max-width:var(--vzlet-page-max);
  margin:0 auto;
  padding:calc(16px + env(safe-area-inset-top)) var(--vzlet-page-pad-x) calc(28px + env(safe-area-inset-bottom));
  box-sizing:border-box;
}

.page-shell .page-header,
.page-shell header.page-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.page-shell .hleft{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.page-shell .home-btn{
  width:42px;height:42px;border-radius:12px;
  border:1px solid var(--p-border, #333941);
  background:var(--p-panel2, #23272e);
  color:var(--p-text, #eceef1);
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;flex:0 0 auto;padding:0;box-sizing:border-box;
}
.page-shell .home-btn:hover{border-color:var(--p-go, #8aa15c)}
.page-shell .home-btn svg{display:block;width:20px;height:20px}

.page-shell .page-title,
.page-shell .page-header h1,
.page-shell header.page-header h1{
  margin:0;
  font-size:18px;
  font-weight:650;
  letter-spacing:-.02em;
  line-height:1.25;
}
.page-shell .page-title span,
.page-shell .page-header h1 span{
  color:var(--p-muted, #9aa3ad);
  font-weight:500;
}
.page-shell .page-sub{
  display:block;
  margin-top:2px;
  font-size:12px;
  color:var(--p-muted, #9aa3ad);
  line-height:1.35;
}

.page-shell .page-tabs,
.page-shell .tabs{
  display:grid;
  gap:4px;
  padding:4px;
  margin-bottom:14px;
  background:var(--p-panel, #1b1e23);
  border:1px solid var(--p-border, #333941);
  border-radius:var(--p-radius-m, 12px);
}
.page-shell .page-tabs button,
.page-shell .tabs button{
  min-height:var(--vzlet-ctrl-h);
  padding:0 8px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--p-muted, #9aa3ad);
  font:inherit;
  font-size:13px;
  cursor:pointer;
  white-space:nowrap;
}
.page-shell .page-tabs button:hover,
.page-shell .tabs button:hover{color:var(--p-text, #eceef1)}
.page-shell .page-tabs button.active,
.page-shell .tabs button.active{
  background:var(--p-panel2, #23272e);
  color:var(--p-text, #eceef1);
  font-weight:600;
}

.page-shell .page-card{
  background:var(--p-panel, #1b1e23);
  border:1px solid var(--p-border, #333941);
  border-radius:var(--p-radius-l, 16px);
  padding:14px 16px;
}

/* Поля: единая высота с .p-input */
.page-shell input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),
.page-shell select,
.page-shell textarea.field{
  width:100%;
  height:var(--vzlet-ctrl-h);
  border-radius:var(--p-radius-s, 10px);
  border:1px solid var(--p-border, #333941);
  background:var(--p-bg, #14161a);
  color:var(--p-text, #eceef1);
  padding:0 12px;
  font:inherit;
  font-size:14px;
  outline:none;
  box-sizing:border-box;
}
.page-shell textarea.field{
  height:auto;
  min-height:72px;
  padding:8px 12px;
  resize:vertical;
}
.page-shell input:not([type=checkbox]):not([type=radio]):not([type=range]):focus,
.page-shell select:focus,
.page-shell textarea.field:focus{
  border-color:var(--p-go, #8aa15c);
}

@media (max-width:520px){
  :root{--vzlet-page-pad-x:14px}
}
