/* FaceDogs visual reference: compact header, calm cards, wider map rail. */
:root{--green:#2f995c;--ink:#17212f;--muted:#667387;--line:#e9edf1;--bg:#f5f6f8}
.topbar{height:72px;min-height:72px;gap:18px;padding:0 22px}.topbar button.brand{flex-basis:202px}.brand strong{font-size:30px;letter-spacing:-.8px}.brand img{width:46px;height:46px}.header-search{max-width:650px}.header-city{display:inline-flex;align-items:center;gap:6px}.header-city .nav-symbol{width:20px;flex-basis:20px}.header-city svg{width:20px;height:20px}.header-profile{border-left:1px solid var(--line);padding-left:18px;gap:10px}.header-profile .person-avatar{width:40px;height:40px;flex-basis:40px}
.header-notifications{position:relative;display:grid;place-items:center;flex:0 0 42px;width:42px;height:44px;border:0;border-radius:9px;background:none;color:#4c596b;padding:9px}.header-notifications svg{width:24px;height:24px}.header-notifications:hover{background:#edf6ef;color:#278e54}.notification-badge{position:absolute;top:1px;right:0;min-width:19px;height:19px;padding:1px 4px;border:2px solid #fff;border-radius:20px;background:#e52746;color:white;font-size:11px;font-weight:700;line-height:14px;text-align:center}
.app-layout{grid-template-columns:218px minmax(0,1fr) 350px;gap:14px;max-width:1480px;padding:14px 18px 32px}.left-sidebar,.right-sidebar{top:86px}.left-sidebar{max-height:calc(100vh - 100px)}.left-sidebar .nav-button{font-size:15px;padding:11px 12px;gap:15px}.right-sidebar{gap:14px;position:static}.rail-card{padding:16px;border-radius:14px;box-shadow:0 2px 13px #20344c08}.rail-heading{gap:8px}.rail-heading h2{font-size:16px}.rail-heading button{font-size:12px;white-space:nowrap;min-height:30px}.rail-map{height:200px}.rail-dog-button strong{font-size:13px}.rail-dog-button small{font-size:12px}.sidebar-dog strong{font-size:15px}.sidebar-dog small{font-size:13px;line-height:1.4}.sidebar-compose{margin-top:22px}
.feed-hero{min-height:390px;border-radius:13px}.feed-hero>img{object-position:64% 45%}.feed-hero:after{background:linear-gradient(90deg,#0b2516b3 0%,#16321b60 47%,transparent 75%)}.hero-body{max-width:64%;padding:43px 30px 112px}.hero-body h1{font-size:clamp(30px,2.8vw,42px);font-style:italic;line-height:1.08;letter-spacing:-.7px;margin-bottom:14px}.hero-body p{font-size:17px;line-height:1.4;max-width:330px}.hero-actions button{font-size:14px;padding:10px 14px}.hero-shortcuts{bottom:10px;left:12px;right:12px;gap:7px}.hero-shortcuts button{flex-direction:column;gap:6px;min-height:77px;padding:8px 4px;font-size:13px;border:1px solid #ffffff9c;border-radius:11px;box-shadow:0 2px 7px #102a2110}.hero-shortcuts .nav-symbol{color:#273543}
.social-card{border-radius:13px;padding:18px 20px;box-shadow:0 2px 10px #23354c05}.post-heading>.person-link{text-align:left;font-weight:650}.post-content{margin:12px 0;line-height:1.5}.social-actions{border-top:0;margin-top:8px}.social-actions button{font-size:14px}.reaction-panel>.comment-actions{border-top:1px solid var(--line);padding-top:8px;flex-wrap:wrap}.reaction-icons{gap:2px}.reaction-panel .reaction-icon{width:36px;height:38px;flex-basis:36px}.reaction-emoji{font-size:22px}.comments-section{border-top:1px solid var(--line)}.comments-section>.text-button{min-height:36px}.comment-form textarea{border-radius:14px}.social-toolbar{border-radius:24px}.social-toolbar h2{padding:6px 18px;border-radius:22px;background:#2f995c;color:white;font-size:14px}.social-toolbar .text-button{min-height:36px}.social-empty{border:1px solid var(--line);background:white;border-radius:13px;text-align:center;color:var(--muted);padding:32px 24px}
#post-form{padding:16px 20px}#post-content{border-radius:11px;min-height:62px}#post-form .composer-person{top:28px;left:30px}.composer-shortcuts{grid-column:1/-1;display:flex;align-items:center;border-top:1px solid var(--line);padding-top:10px}.composer-shortcuts button{display:flex;align-items:center;gap:8px;font-size:14px;padding:7px 14px;min-height:36px;border-radius:7px}.composer-shortcuts .nav-symbol{color:#a249d5;width:20px;flex-basis:20px}.composer-shortcuts svg{width:20px;height:20px}.composer-shortcuts button:hover{background:#f6f1fb}
.workspace-heading{border-radius:13px}.workspace-heading h1{font-size:27px}.event-filter{border:1px solid var(--line)}.event-rail-item{gap:12px}.event-rail-item .event-summary{gap:3px}.event-rail-item .event-date{width:54px;flex-basis:54px;height:66px}.event-date{background:#fcecf0}.event-summary>strong{line-height:1.3}.event-summary>small{color:#667387}.event-rail-list{gap:14px}.event-views{display:flex;gap:6px;flex-wrap:wrap}.event-views button{border:1px solid var(--line);border-radius:22px;background:#fff;color:#526176;padding:9px 15px;min-height:40px}.event-views button[aria-pressed=true]{background:#2f995c;border-color:#2f995c;color:white}.event-dialog>.secondary{float:right}.event-dialog h2{padding-top:12px}.event-dialog .dialog-actions{position:sticky;bottom:-20px;background:white;padding:14px 0 0;border-top:1px solid var(--line)}
.chat-thread-head h2{font-size:23px}.chat-thread-head button{min-height:36px}.chat-inbox h2{font-size:18px;margin:0}.chat-conversation{background:#f7f9fa;border:1px solid transparent}.chat-conversation:hover{border-color:#cfe4d4}.chat-conversation[aria-current=true]{border-color:#bce0c8}.chat-bubble{border-radius:15px 15px 15px 4px}.chat-bubble.own{border-radius:15px 15px 4px 15px}.chat-messages{padding:20px 0;min-height:120px}.chat-compose textarea{border-radius:11px;min-height:100px}.chat-compose .chat-quick button{min-height:40px}.chat-inbox>summary{cursor:pointer;font-size:14px;color:#667387}.chat-unread{background:#e3f2e8;border-radius:12px;padding:3px 8px}
.notifications-dialog{position:fixed;inset:80px 20px auto auto;margin:0;width:min(410px,calc(100vw - 24px));max-height:calc(100dvh - 100px);padding:18px;border-radius:15px;border:1px solid #e5eaf0;box-shadow:0 15px 55px #17212f28}.notifications-dialog::backdrop{background:#14203022;backdrop-filter:none}.notification-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.notification-heading h2{margin:0;font-size:22px}.notification-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0}.notification-tools button{font-size:13px;min-height:36px;text-align:left}.notification-list{display:grid;gap:7px}.notification-item{display:flex;align-items:flex-start;gap:11px;width:100%;padding:13px 10px;border:0;background:#fff;border-radius:10px;text-align:left;color:var(--ink)}.notification-item.unread{background:#eef6f0}.notification-item:hover{background:#e4efe7}.notification-symbol{display:grid;place-items:center;background:#e1efe6;color:#278650;width:32px;height:32px;flex:0 0 32px;border-radius:50%;font-size:23px}.notification-item>span:last-child{display:grid;gap:5px;min-width:0}.notification-item strong{font-size:14px}.notification-item span span{font-size:14px;line-height:1.45}.notification-item small{font-size:12px}.notification-empty{padding:28px 8px;color:#667387;font-size:15px;line-height:1.7}.notifications-dialog>.secondary{margin-top:12px;width:100%}
@media(min-width:1500px){.app-layout{grid-template-columns:220px minmax(0,1fr) 360px}.topbar{padding-left:max(22px,calc((100vw - 1444px)/2));padding-right:max(22px,calc((100vw - 1444px)/2))}}
@media(max-width:1220px){.app-layout{grid-template-columns:180px minmax(0,1fr) 300px;gap:12px;padding:12px}.topbar{gap:10px;padding:0 16px}.topbar button.brand{flex-basis:176px}.brand strong{font-size:27px}.header-city{display:none}.hero-body{padding:30px 22px 112px;max-width:72%}.hero-body h1{font-size:33px}.hero-body p{font-size:16px}.hero-actions{gap:8px}.hero-actions button{font-size:13px}.hero-shortcuts button{font-size:12px}.header-profile{padding-left:12px}.rail-card{padding:14px}}
@media(max-width:1050px){.app-layout{grid-template-columns:170px minmax(0,1fr)}.right-sidebar{grid-column:2;display:grid;grid-template-columns:1fr 1fr;position:static}.right-sidebar>.rail-card:first-child{grid-column:1/-1}.hero-body{max-width:62%}.header-profile>span:last-child{display:none}.header-search{min-width:100px}.header-profile{padding-left:9px}.rail-map{height:220px}.notifications-dialog{right:14px}}
@media(max-width:700px){.topbar{height:auto;min-height:68px;padding:10px 12px;gap:6px;flex-wrap:wrap}.topbar button.brand{flex:1;min-width:142px;gap:5px}.brand strong{font-size:25px}.brand small{font-size:11px}.topbar .brand img{width:34px;height:34px}.header-notifications{order:1;flex-basis:36px;width:36px;height:40px;padding:7px}.header-messages{order:2;flex-basis:36px;width:36px;height:40px;padding:7px}.header-profile{order:3;border:0;padding:0;margin-left:2px}.header-profile .person-avatar{width:32px;height:32px;flex-basis:32px}.header-search{order:4;flex-basis:100%;max-width:none;min-width:0;margin-top:4px}.header-search input{font-size:14px}.header-city{display:none}.app-layout{display:flex;gap:12px;padding:10px}.signed-in .left-sidebar nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:6px}.left-sidebar .nav-button{font-size:13px;padding:8px 3px;min-height:60px;gap:4px}.left-sidebar #signout{font-size:12px;min-height:28px}.right-sidebar{display:grid;grid-template-columns:1fr;width:100%}.right-sidebar>.rail-card:first-child{grid-column:auto}.rail-card{padding:16px}.rail-heading h2{font-size:17px}.rail-heading button{font-size:13px}.feed-hero{min-height:400px}.hero-body{max-width:74%;padding:25px 20px 120px}.hero-body h1{font-size:31px;max-width:220px}.hero-body p{font-size:15px;line-height:1.5;max-width:210px}.feed-hero>img{object-position:62% 50%}.feed-hero:after{background:linear-gradient(90deg,#102719ca,#1c341d65 55%,transparent)}.hero-actions button{min-height:40px}.hero-shortcuts{left:8px;right:8px;gap:5px;bottom:8px}.hero-shortcuts button{font-size:11px;min-height:78px;line-height:1.3;gap:6px;padding:7px 2px}.hero-shortcuts .nav-symbol{width:23px;flex-basis:23px}.social-card{padding:16px}.post-heading>.person-link{font-size:14px}.social-toolbar h2{font-size:13px;padding:6px 12px}.social-actions{gap:10px}#post-form{padding:15px;grid-template-columns:minmax(0,1fr)}#post-form .composer-person{top:26px;left:24px}#post-form>label,#post-form>button{grid-column:1/-1}#post-form>button{justify-self:stretch}#post-form>label:last-of-type{font-size:13px;justify-content:space-between}#post-visibility{max-width:190px;font-size:13px}.composer-shortcuts{padding-top:8px}.event-filter .city-input{min-width:100%;width:100%}.event-views{gap:5px}.event-views button{font-size:13px;padding:9px 12px}.event-dialog,.share-dialog,.people-dialog{max-height:calc(100dvh - 24px);padding:20px}.notifications-dialog{top:72px;right:12px;max-height:calc(100dvh - 86px)}.chat-inbox,.chat-thread{padding:16px}.chat-thread-head h2{font-size:20px}.chat-bubble{max-width:96%;padding:11px 13px}.chat-quick button{font-size:13px}.chat-compose>.primary{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.account-preferences{margin-top:20px}.account-preferences .form-intro h2{margin:0}.preference-group{border:1px solid #e2e9e5;border-radius:14px;padding:16px;display:grid;gap:12px;min-width:0}.preference-group legend{padding:0 6px;font-weight:700;color:#263c30}.account-preferences .preference-check{display:flex;align-items:center;gap:12px;font-weight:500;cursor:pointer}.account-preferences input[type=checkbox]{appearance:auto;width:19px;height:19px;flex:0 0 19px;accent-color:#2d995e;margin:0}.account-preferences .muted{line-height:1.5;font-size:13px}.account-preferences .notice:empty{display:none}

#dog-form .form-row{align-items:start}.breed-picker{display:grid;gap:10px;min-width:0}.breed-picker label{margin:0}.breed-picker small{line-height:1.4}


/* Discovery feed follows the existing white cards and green navigation. */
.feed-tabs{display:flex;gap:6px;padding:5px;background:#fff;border:1px solid #e6eee8;border-radius:24px;margin:8px 0 10px}
.feed-tab{flex:1;min-width:0;padding:10px 8px;border:0;border-radius:20px;background:transparent;color:#53615b;font:inherit;font-weight:650;cursor:pointer}
.feed-tab[aria-pressed="true"]{background:#29965b;color:#fff}
.feed-tab:focus-visible,.feed-post-options summary:focus-visible{outline:3px solid #a2d6b3;outline-offset:3px}
.feed-explanation{font-size:13px;line-height:1.5;color:#69766e;margin:0 6px 8px}
.feed-settings{font-size:13px;color:#617069;margin:0 6px 16px;line-height:1.6}
.feed-settings summary,.feed-post-options summary{cursor:pointer}
.feed-settings button{margin-right:12px}
.feed-reason{display:flex;justify-content:space-between;align-items:start;gap:10px;font-size:12px;color:#587565;border-bottom:1px solid #edf2ef;padding-bottom:10px;margin-bottom:12px;flex-wrap:wrap}
.feed-post-options{margin-left:auto;text-align:right;max-width:100%}
.feed-post-options[open]{padding:8px;background:#f5f9f6;border-radius:10px}
.feed-post-options button{display:block;font-size:12px;margin:6px 0 0 auto;white-space:normal;text-align:right}
.feed-discovery-card{border-left:3px solid #36a46b!important;background:linear-gradient(110deg,#f0f8f2,#fff)!important}
.feed-welcome{background:#f5faf6!important}
.feed-eyebrow{font-size:11px!important;font-weight:750;letter-spacing:.09em;color:#268852;margin:0 0 9px}
.feed-discovery-card h3,.feed-welcome h3{font-size:19px;margin:0 0 10px}
.feed-discovery-card p,.feed-welcome p{line-height:1.5}
.feed-welcome .text-button{margin-left:10px}
.post-topic-label{max-width:100%}
@media(max-width:600px){.feed-tab{font-size:13px}.feed-welcome .text-button{display:block;margin:10px 0 0}.feed-reason{font-size:11px}}

.identification-dialog form>label{display:grid;gap:7px;margin:16px 0}.identification-dialog .dialog-actions{margin-top:20px}#detail-body>.secondary{margin:5px 8px 5px 0}
.identification-dialog{padding:24px}.identification-dialog form{gap:12px}.identification-dialog form>label{margin:0;gap:5px}.identification-dialog h2{font-size:23px;margin:0}.identification-dialog p{margin:0}.identification-dialog .health-privacy{padding:12px;font-size:14px}.identification-dialog .dialog-actions{margin-top:4px}

/* Keep the publishing action at the end of the composer, after media and settings. */
#post-form{grid-template-columns:minmax(0,1fr)}
#post-form>.post-photo-picker{grid-column:1/-1;min-width:0}
#post-form .composer-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#post-form .composer-settings label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:14px;min-width:0}
#post-form .composer-settings select{width:100%;max-width:none;min-width:0;min-height:42px;font-size:14px}
#post-form .composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:12px}
#post-form .composer-footer .composer-shortcuts{border:0;padding:0;min-width:0}
#post-form .composer-footer>.primary{flex-shrink:0;margin-left:auto;min-height:44px;padding:10px 22px}
@media(max-width:700px){#post-form .composer-settings{grid-template-columns:minmax(0,1fr)}#post-form .composer-footer{flex-wrap:wrap}#post-form .composer-footer>.primary{width:100%;margin:0}#post-form .composer-footer .composer-shortcuts button{padding-left:0}}

#post-form>label:first-of-type{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;font-size:0;gap:0}
/* Profile contact actions retain their own readable button colors and mobile width. */
.people-dialog .social-actions{display:flex;flex-wrap:wrap;gap:10px}
.people-dialog .social-actions>p{flex-basis:100%;margin:0}
.people-dialog .social-actions>button{flex:1 1 160px;min-height:44px;padding:10px 16px;font-size:14px}
.people-dialog .social-actions>.primary{color:#fff;background:#237d48}
.people-dialog .social-actions>.primary:hover{color:#fff;background:#1c653a}

#profile-section>.profile-account-actions{order:-4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:12px}.profile-account-actions>span{font-weight:600}.profile-account-actions button{min-height:44px;flex-shrink:0}.left-sidebar #signout{min-height:44px;border:1px solid #dce2e9;border-radius:8px;color:#35445a;background:#fff;margin-bottom:8px;font-weight:600}
