/* V6.1 — finition institutionnelle, sans modification des moteurs métier.
   Les matériaux et couleurs restent hérités du skin et de l'univers actifs. */
:root {
  --ui-radius:10px;
  --ui-button-shadow:inset 0 1px 0 #ffffff52,inset 1px 0 0 #ffffff14,inset 0 -1px 0 #0009,0 2px 0 #090d0c,0 4px 5px #0004;
  --ui-text-shadow:0 1px 1px #0006;
}
.phone-shell {font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-variant-numeric:tabular-nums}
.phone-shell #main .page-title {padding-block:10px 8px}
.phone-shell #main .page-title #mainTitle {font-size:clamp(17px,4.3vw,21px);font-weight:650;letter-spacing:.035em;line-height:1.3}
.phone-shell #main .page-title #crumb {font-size:10px;line-height:1.5;letter-spacing:.055em}
.phone-shell #main .build-stamp {font-size:9px;font-style:normal;letter-spacing:.05em;opacity:.8}
.phone-shell #main #display {border-radius:14px;box-shadow:inset 0 2px 5px #0006,0 1px 0 #ffffff28!important}
.phone-shell #main #display>:is(.s-home,.s-next,.aug-carnet,.v5-carnet) {padding:14px;line-height:1.5}
.phone-shell #main #display :is(h2,h3,h4) {font-family:inherit;font-weight:650;line-height:1.3;letter-spacing:.025em}
.phone-shell #main.s-interface-mode .s-home-grid {gap:10px}
.phone-shell #main.s-interface-mode .s-home-grid button {min-height:64px;padding:10px 8px;border-radius:10px;box-shadow:var(--ui-button-shadow)!important}
.phone-shell #main.s-interface-mode .s-home-grid button::after {inset:3px;opacity:.16}
.phone-shell #main.s-interface-mode .s-profiles-grid {gap:8px}
.phone-shell #main.s-interface-mode .s-profiles-grid button {min-height:48px;padding:10px 8px;font-size:12px;line-height:1.4}
.phone-shell #main.s-interface-mode .s-universes-prominent button[data-s-universe] {min-height:48px!important;box-shadow:var(--ui-button-shadow)!important}
.phone-shell #main .transverse button {min-height:44px;padding-block:7px}
.phone-shell #main .transverse small {font-size:9px;letter-spacing:.025em;line-height:1.4}
/* Keep two-line labels inside their key, rather than over the DISPLAY rim. */
.phone-shell #main .transverse.top button {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:auto;min-height:56px;padding:7px 3px;box-sizing:border-box}
.phone-shell #main .transverse.top button small {display:block;max-width:100%;white-space:normal;overflow-wrap:normal;line-height:1.2;font-size:9px!important}
.phone-shell #main #display :is(.s-home-message,.s-home-context) {line-height:1.6}
.phone-shell #main #display :is(.aug-meta,.s-next-status) {font-size:12px;line-height:1.6}
.phone-shell #main #display .aug-carnet header {padding-bottom:14px;margin-bottom:16px}
.phone-shell #main #display .aug-carnet h2 {margin:8px 0 12px;font:650 clamp(20px,5vw,26px)/1.25 system-ui,-apple-system,sans-serif;letter-spacing:.025em}
.phone-shell #main #display .aug-carnet label {font-size:11px;font-weight:650;letter-spacing:.055em;margin:16px 0}
.phone-shell #main #display .aug-carnet input:not([type=file]) {padding:12px;margin-top:7px;border-radius:8px}
.phone-shell #main #display .aug-sheet {border-radius:8px;box-shadow:0 3px 8px #0004}
.phone-shell #main #display .aug-sheet textarea {padding:20px;font:17px/32px Georgia,serif}
.phone-shell #main #display .aug-toolbar {gap:8px;padding-block:14px;scrollbar-width:thin}
.phone-shell #main #display .aug-toolbar button {min-height:44px;padding:10px 12px}
.phone-shell #main #display .aug-linked {padding-block:18px}
.phone-shell #main #display .aug-linked>strong {font-size:11px;letter-spacing:.055em}
.phone-shell #main #display .aug-attachment {display:flex;flex-wrap:wrap;gap:10px;padding:12px;line-height:1.5;word-break:normal;overflow-wrap:anywhere}
.phone-shell #main #display .aug-attachment>span {flex:1 1 120px;min-width:0}
.phone-shell #main #display .aug-attachment img {border-radius:4px;object-fit:contain;background:#f9f5ea}
.phone-shell #main #display .aug-attachment a {display:inline-flex;align-items:center;min-height:44px;color:var(--ui-text);text-underline-offset:4px}
.phone-shell #main #display .aug-actions {gap:10px}
.phone-shell #main #display .aug-actions button {min-height:48px}
.phone-shell #main #display .aug-carnet [data-aug-status] {padding:12px;border:1px solid var(--ui-line);border-left:3px solid var(--ui-context-color,var(--skin-trim));border-radius:7px;font-size:12px;line-height:1.6;overflow-wrap:anywhere;background:var(--ui-field);color:var(--ui-text)}
.phone-shell #main #display .aug-history h3 {font-size:12px;letter-spacing:.06em;margin-top:24px}
.phone-shell #main #display .aug-history article {padding:16px 0;gap:8px}
.phone-shell #main #display .aug-history article small {color:var(--ui-muted);font-size:11px}
.phone-shell #main #display .aug-history article p {font-size:14px;line-height:1.7}
.rtags-ui-menu {border-radius:14px;box-shadow:inset 0 1px #ffffff35,0 6px 16px #0007}
.rtags-ui-menu button {min-height:44px;line-height:1.4}
.aug-context-grid {gap:10px}
.aug-context-grid button {min-height:48px;border:1px solid var(--skin-trim);border-radius:10px;background:linear-gradient(160deg,var(--ui-button-top),var(--ui-button-bottom));box-shadow:var(--ui-button-shadow);color:var(--ui-text);font-size:12px;font-weight:650}
.rtags-ui-menu :is(button,a,input):focus-visible {outline:2px solid var(--ui-focus);outline-offset:3px}
@media (max-width:360px) {
 .phone-shell #main #display>:is(.s-home,.s-next,.aug-carnet,.v5-carnet) {padding:10px}
 .phone-shell #main.s-interface-mode .s-home-grid {gap:8px}
 .phone-shell #main #display .aug-actions {grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:reduce) {
 .phone-shell #main button,.rtags-ui-menu button {transition:none!important}
 .phone-shell .ui-button-label.is-overflowing {white-space:normal;overflow:visible}
 .phone-shell .ui-button-label.is-overflowing>span {animation:none!important;width:auto;min-width:0;white-space:normal}
}

