/* Homestead Shambani v2.6.8 — Quick Homestead Entry layout recovery */

/* Desktop: fixed actions remain on the left, moving code-access modules occupy the remaining space. */
.v268-quick-layout{
  display:grid;
  grid-template-columns:minmax(520px,auto) minmax(0,1fr);
  gap:14px;
  align-items:stretch;
  min-width:0;
}
.v268-fixed-actions{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(150px,1fr))!important;
  gap:9px!important;
  min-width:0;
}
.v268-fixed-actions .quick-tool{
  max-width:none!important;
  min-width:0!important;
  width:100%!important;
  min-height:82px!important;
  margin:0!important;
}

/* Ani-Bituary-inspired horizontal rail: compact repeated items, separators, continuous right-to-left motion. */
.v268-module-ribbon{
  position:relative;
  overflow:hidden;
  min-width:0;
  width:100%;
  min-height:82px;
  border:1px solid rgba(53,93,59,.13);
  border-radius:12px;
  background:linear-gradient(180deg,#fff,#fbfcf9);
  mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent);
  -webkit-mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent);
}
.v268-module-track{
  display:flex;
  width:max-content;
  min-height:82px;
  align-items:stretch;
  animation:v268ModuleRail 88s linear infinite;
  will-change:transform;
  pointer-events:none;
  user-select:none;
}
.v268-module-item{
  flex:0 0 auto;
  min-width:180px;
  max-width:245px;
  padding:13px 18px;
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  color:#24352a;
  border-right:1px solid #e6e7df;
  font-size:.88rem;
  line-height:1.25;
  background:transparent;
}
.v268-module-item>b{
  flex:0 0 38px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#f2f6ef;
  font-size:1.15rem;
}
.v268-module-item>span{overflow:hidden;text-overflow:ellipsis;font-weight:700}
.v268-module-item.v268-checkin{color:#174f75}
.v268-module-item.v268-checkin>b{background:#edf6ff}
@keyframes v268ModuleRail{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}

/* The section title must never compete for horizontal width on smaller screens. */
.landing-quick-shelf .quick-shelf-title small{max-width:820px;line-height:1.4}

/* Code form inside the popup: use the full iframe width and keep every sentence readable. */
.v261-code-shell{box-sizing:border-box}
.v268-code-login{
  width:100%;
  max-width:none!important;
  box-sizing:border-box;
  padding:clamp(20px,3vw,30px)!important;
  overflow-wrap:normal;
  word-break:normal;
}
.v268-code-heading{
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  gap:14px;
  align-items:start;
  margin-bottom:20px;
}
.v268-code-heading>span{
  width:52px;height:52px;border-radius:14px;
  display:grid;place-items:center;
  background:#eff6ed;font-size:1.45rem;
}
.v268-code-heading h2{margin:0 0 7px;font-size:clamp(1.35rem,3vw,1.8rem);line-height:1.15}
.v268-code-heading p{margin:0;color:#5e6d61;line-height:1.55;font-size:1rem;max-width:720px}
.v268-code-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin:0 0 14px}
.v268-code-form .field{margin:0;min-width:0}
.v268-code-form label{display:block;margin-bottom:7px;font-weight:800}
.v268-code-form input{box-sizing:border-box;width:100%;min-height:52px;font-size:1.08rem;padding:12px 14px}
.v268-code-submit{min-height:52px;white-space:nowrap;padding-inline:22px!important}
.v268-code-note{padding:11px 13px;border:1px solid #dfe6dc;border-radius:11px;background:#f8faf7;color:#57635a;line-height:1.45}
.v268-code-public-actions{justify-content:flex-start!important;margin-top:14px!important}
.v268-code-public-actions .btn{white-space:normal;text-align:center;line-height:1.25}

@media(max-width:1080px){
  .v268-quick-layout{grid-template-columns:1fr}
  .v268-fixed-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .v268-module-ribbon{min-height:72px}
  .v268-module-track{min-height:72px}
  .v268-module-item{min-width:165px;padding-block:9px}
}
@media(max-width:640px){
  .landing-quick-shelf{overflow:hidden!important}
  .v268-fixed-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .v268-fixed-actions .quick-tool{min-height:64px!important}
  .v268-fixed-actions .quick-tool:nth-child(3){grid-column:1/-1}
  .v268-module-ribbon{min-height:64px;border-radius:10px}
  .v268-module-track{min-height:64px}
  .v268-module-item{min-width:150px;max-width:190px;padding:8px 12px;font-size:.8rem}
  .v268-module-item>b{width:34px;height:34px;flex-basis:34px}
  .v268-code-login{padding:18px!important;margin-top:12px!important}
  .v268-code-heading{grid-template-columns:42px minmax(0,1fr);gap:11px;margin-bottom:16px}
  .v268-code-heading>span{width:42px;height:42px;border-radius:12px;font-size:1.2rem}
  .v268-code-heading p{font-size:.94rem;line-height:1.48}
  .v268-code-form{grid-template-columns:1fr;gap:10px}
  .v268-code-submit{width:100%;white-space:normal}
  .v268-code-public-actions{display:grid!important;grid-template-columns:1fr!important}
  .v268-code-public-actions .btn{width:100%}
  .v261-code-actions{display:grid;grid-template-columns:1fr;gap:8px;text-align:stretch}
  .v261-code-actions .btn{width:100%;white-space:normal}
}
@media(prefers-reduced-motion:reduce){
  .v268-module-track{animation-duration:180s}
}
