/* Carbon & Amber: a tile-led home and a quiet service dock. */
.tile-shell{--ease-out:cubic-bezier(.23,1,.32,1)}
.tile-shell .main{width:100%;min-width:0;max-width:1080px;margin-inline:auto}
.tile-shell .topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.hub-brand{font-size:23px;font-weight:650;letter-spacing:-.025em}
.hub-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 24px}
.hub-heading h1{font-size:30px;line-height:1.16;margin:0;overflow-wrap:anywhere;min-width:0}
.hub-heading button{flex-shrink:0;padding:0 4px;min-height:44px}
.hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.hub-tile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;min-height:168px;padding:22px;border:1px solid #ffffff14;border-radius:26px;background:rgba(65,71,77,.65);color:var(--ink);transition:transform 140ms var(--ease-out),background-color 140ms ease;overflow-wrap:anywhere;white-space:normal}
.hub-tile-top{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:24px;color:var(--accent)}
.hub-tile-top .ui-icon{width:24px;height:24px;flex-shrink:0}
.hub-tile-top .ui-icon:last-child{width:18px;height:18px;color:var(--muted)}
.hub-tile-title{font-size:21px;font-weight:650;line-height:1.2;letter-spacing:-.02em}
.hub-tile-copy{display:block;font-size:14px;line-height:1.45;color:var(--muted);margin-top:8px;max-width:54ch}
.hub-wide{grid-column:1/-1;min-height:150px}
.hub-calendar{background:rgba(73,79,85,.78)}
.hub-amber{background:var(--accent);border-color:transparent;color:var(--on-accent)}
.hub-amber .hub-tile-copy,.hub-amber .hub-tile-top,.hub-amber .hub-tile-top .ui-icon:last-child{color:var(--on-accent)}
.hub-history{background:rgba(75,65,50,.6);border-color:#efbd6e38}
.hub-help{margin-top:20px}.hub-back{margin:0 0 16px;padding-left:0}
.tile-shell #content{min-width:0;overflow-wrap:anywhere}
.tile-shell .heading{gap:16px;flex-wrap:wrap}
.tile-shell .heading h1{margin:0;line-height:1.2}
.tile-shell .heading>div{min-width:0}
.tile-shell .plan-tools{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.tile-shell .access-page{max-width:720px}
.tile-shell .access-row,.tile-shell .space-entry{min-width:0;gap:12px;flex-wrap:wrap}
.tile-shell .space-open{min-width:0;overflow-wrap:anywhere}
@media(hover:hover) and (pointer:fine){.hub-tile:hover{transform:translateY(-2px);background:var(--soft)}.hub-amber:hover{background:var(--accent-hover)}}
.hub-tile:active:not(:disabled){transform:scale(.98);opacity:1}
@media(min-width:1000px){.hub-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hub-wide{grid-column:span 2}.hub-calendar{grid-column:1/-1}}
@media(max-width:760px){
 .tile-shell{display:block}.tile-shell .main{padding:20px 18px calc(112px + env(safe-area-inset-bottom))}
 .tile-shell .sidebar{position:fixed;inset:auto 14px calc(12px + env(safe-area-inset-bottom));width:auto;height:auto;padding:6px;border:1px solid #ffffff20;border-radius:26px;background:rgba(42,47,52,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);z-index:30}
 .tile-shell .sidebar>.brand{display:none}.tile-shell .nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
 .tile-shell .nav button{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;padding:8px 2px;min-height:58px;min-width:0;border-radius:20px;font-size:11px;line-height:1.25}
 .tile-shell .nav button .ui-icon{width:21px;height:21px}.tile-shell .nav button.active{background:#ffffff0d;color:var(--accent)}
 .tile-shell .topbar{margin-bottom:26px}.hub-heading h1{font-size:28px}.hub-grid{gap:12px}
 .hub-tile{padding:18px;min-height:156px;border-radius:24px}.hub-tile-title{font-size:19px}.hub-tile-copy{font-size:13px}.hub-wide{min-height:142px}
 .tile-shell input,.tile-shell select,.tile-shell textarea{font-size:16px}
}
@media(max-width:350px){.tile-shell .main{padding-inline:12px}.hub-tile{padding:14px}.hub-tile-title{font-size:18px}}
@media(prefers-reduced-motion:reduce){.hub-tile{transition:none}.hub-tile:active:not(:disabled),.hub-tile:hover{transform:none}}
/* Replace legacy fixed navigation/header positioning rather than stacking it. */
.tile-shell .topbar{height:auto;min-height:44px;position:relative;padding:0}
.tile-shell .topbar .account{position:static;width:44px;height:44px;padding:0;display:flex;justify-content:center;background:var(--soft);border:0;border-radius:50%}
@media(max-width:760px){.tile-shell .sidebar{display:block;min-height:0}.tile-shell .nav{position:static;inset:auto;width:100%;margin:0;padding:0;border:0;background:transparent;backdrop-filter:none;box-shadow:none}.tile-shell .nav button span{font-size:11px}.tile-shell .topbar .account{right:auto;top:auto}}
@media(prefers-reduced-transparency:reduce){.tile-shell .sidebar{background:#2a2f34;backdrop-filter:none;-webkit-backdrop-filter:none}.hub-tile{background:var(--surface)}.hub-amber{background:var(--accent)}}
/* Internal sections: one clear heading, breathable surfaces, quiet details. */
.tile-shell .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px;margin-top:20px}
.tile-shell .compact-plan{display:flex;flex-direction:column;gap:12px;padding:24px;border:1px solid #ffffff14;border-radius:24px;background:rgba(65,71,77,.58);min-width:0;box-shadow:none}
.tile-shell .compact-plan h3{font-size:22px;line-height:1.25;margin:0;overflow-wrap:anywhere}
.tile-shell .compact-plan .tag{align-self:flex-start;background:transparent;padding:0;font-size:12px;color:var(--muted)}
.tile-shell .compact-plan .notes{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.tile-shell .compact-plan .meta{font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.tile-shell .cardfoot{margin-top:auto;padding-top:8px;gap:12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}
.tile-shell .cardfoot button{border:0;background:var(--soft);border-radius:14px;padding:10px 16px}
.tile-shell .compact-plan .ratings{font-size:12px;line-height:1.5;margin:0;color:var(--muted)}
.tile-shell .chips{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.tile-shell .chips button{border:0;border-radius:14px;padding:10px 14px;font-size:13px}
.tile-shell .empty{border:0;border-radius:24px;background:var(--surface);padding:28px;line-height:1.6}
.tile-shell .empty strong{display:block;margin-bottom:8px;line-height:1.25}
.tile-shell .empty p{margin:8px 0 16px}
.tile-shell .calendar{padding:12px;border-radius:24px;background:rgba(65,71,77,.5);border:0}
.tile-shell .calendar .day{border:0;border-radius:12px;min-width:0;background:transparent}
.tile-shell .calendar .day.today{outline:1px solid var(--accent);outline-offset:-1px}
.tile-shell .sectionline{gap:12px;align-items:center}.tile-shell .sectionline h2{line-height:1.25;text-align:center}
.tile-shell .leisure-tabs{display:flex;gap:6px;padding:5px;border-radius:18px;background:var(--surface);margin:18px 0}
.tile-shell .leisure-tabs button{flex:1;min-width:0;border:0;border-radius:13px;padding:12px 8px;line-height:1.3;font-size:14px}
.tile-shell .leisure-tabs button.active,.tile-shell .leisure-tabs button[aria-pressed="true"]{background:var(--soft);color:var(--ink)}
.tile-shell .idea-card,.tile-shell .question-card,.tile-shell .proposal{border:1px solid #ffffff14;border-radius:26px;background:var(--surface);padding:24px;box-shadow:none;min-width:0}
.tile-shell .idea-card.photo-card{background:#222831}.tile-shell .idea-copy h2,.tile-shell .question-card h2{font-size:28px;line-height:1.22;overflow-wrap:anywhere}
.tile-shell .idea-copy p,.tile-shell .proposal p{font-size:14px;line-height:1.55}
.tile-shell .idea-card-top,.tile-shell .idea-meta{font-size:12px;line-height:1.5;gap:12px;flex-wrap:wrap}
.tile-shell .idea-cta{padding-top:20px}.tile-shell .idea-cta button{width:100%;border-radius:16px}
.tile-shell .proposal-list{display:grid;gap:14px}.tile-shell .proposal h3{font-size:22px;line-height:1.25;margin:12px 0}
.tile-shell .proposal .row{display:flex;flex-wrap:wrap;gap:8px}.tile-shell .proposal button{max-width:100%;white-space:normal}
.tile-shell .question-card{min-height:240px;display:flex;flex-direction:column;justify-content:center}
.tile-shell .question-day{gap:12px;flex-wrap:wrap;line-height:1.5}.tile-shell .question-slots{gap:8px;flex-wrap:wrap}
.tile-shell .access-page>h1,.tile-shell .chat-page>h1{margin:0 0 24px;line-height:1.2}
.tile-shell .settings-disclosure,.tile-shell .space-entry,.tile-shell .access-row{padding:16px 20px;margin-bottom:10px;border:1px solid #ffffff14;border-radius:22px;background:rgba(65,71,77,.5)}
.tile-shell .settings-disclosure>summary{font-size:16px;padding:6px 0;line-height:1.4}
.tile-shell .settings-disclosure form{padding-bottom:4px;gap:16px}.tile-shell .access-page h2{margin:28px 0 14px}
.tile-shell .space-open{padding:0;line-height:1.4}.tile-shell .space-settings{border:0;background:var(--soft);border-radius:14px}
.tile-shell .access-page small,.tile-shell .access-page .muted{line-height:1.5}
.tile-shell .chat-messages{padding:12px 0;height:clamp(200px,44dvh,560px)}
.tile-shell .chat-message{border-radius:22px 22px 22px 6px;padding:16px 18px;max-width:88%;margin-bottom:14px}
.tile-shell .chat-message.own{border-radius:22px 22px 6px 22px;background:#514737;margin-left:auto}
.tile-shell .chat-message small{font-size:11px;line-height:1.5}.tile-shell .chat-message p{font-size:15px;line-height:1.55}
.tile-shell .message-actions>summary{padding:8px 0;min-height:44px;font-size:12px}
.tile-shell #chat-send{padding:16px;background:var(--surface);border:0;border-radius:24px;gap:10px}
.tile-shell #chat-send textarea{border:0;background:var(--paper);border-radius:16px;min-height:70px;padding:14px}
.tile-shell #chat-send>.primary{border-radius:14px}.tile-shell #chat-send label{font-size:13px;line-height:1.5}
.tile-shell .memory-entry{padding:22px;margin:14px 0;border:1px solid #ffffff14;border-radius:24px;background:var(--surface)}
.tile-shell .memory-entry h2{font-size:22px;line-height:1.25}.tile-shell .memory-date{font-size:12px;color:var(--muted)}
.tile-shell .memory-entry .notes{font-size:14px;line-height:1.6}.tile-shell .memory-gallery{gap:10px}
.tile-shell .memory-recall{border-radius:24px;padding:20px;background:#514737}.tile-shell .history-duration{font-size:24px;line-height:1.3}
#dialog .dialoghead{gap:16px;align-items:flex-start}#dialog .dialoghead h2{overflow-wrap:anywhere;min-width:0}#dialog .close{flex-shrink:0}
#dialog .row{flex-wrap:wrap;gap:10px}#dialog .file{display:flex;flex-wrap:wrap;gap:10px;align-items:center}#dialog .file a{min-width:0;overflow-wrap:anywhere}
#dialog .detail-section{padding-top:18px;margin-top:18px}#dialog summary{min-height:44px;line-height:1.4;padding-block:10px}#dialog .notes{line-height:1.6;overflow-wrap:anywhere}
@media(max-width:760px){.tile-shell .sidebar{height:auto!important;padding:6px!important}.tile-shell .heading{margin-bottom:18px}.tile-shell .compact-plan{padding:20px}.tile-shell .idea-card,.tile-shell .question-card,.tile-shell .proposal{padding:20px}.tile-shell .idea-copy h2,.tile-shell .question-card h2{font-size:25px}.tile-shell .settings-disclosure,.tile-shell .space-entry,.tile-shell .access-row{padding:16px}.tile-shell .chat-message{max-width:92%}.tile-shell .memory-entry{padding:20px}.tile-shell .calendar{padding:8px}}
