.animal-profile-links { display: inline-flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
body.pb-dashboard-page #patilerim .animal-profile-links .animal-device-link { color: #754b25; background: #fff0d9; }
body.pb-device-page { background: #fffaf6; color: #2e302c; }
.dc-shell { width: 100%; min-width: 0; max-width: 1100px; box-sizing: border-box; margin: 0 auto; padding: 1.5rem 1.25rem 6rem; }
.dc-shell *, .dc-shell *::before, .dc-shell *::after { box-sizing: border-box; }
.dc-back { display: inline-flex; align-items: center; min-height: 44px; color: #665442; text-decoration: none; font-weight: 600; }
.dc-title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0 1.5rem; }
.dc-title-row h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; margin: .25rem 0 .5rem; }
.dc-title-row p { margin: 0; }
.dc-eyebrow { color: #796b58; font-size: .72rem; font-weight: 750; letter-spacing: .09em; margin: 0 0 .5rem; }
.dc-model { padding: .55rem .85rem; border: 1px solid #e8dfd3; border-radius: 99px; font-size: .85rem; white-space: nowrap; background: #fff; }
.dc-card { padding: 1.5rem; border: 1px solid #e9e1d6; border-radius: 20px; background: #fff; margin-bottom: 1.25rem; box-shadow: 0 5px 20px #59432b05; min-width: 0; }
.dc-card h2 { margin: 0 0 .65rem; font-size: 1.18rem; line-height: 1.3; }
.dc-card p { line-height: 1.55; }
.dc-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dc-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; margin: 1rem 0; }
.dc-stats > div { padding: 1rem; background: #f8f8f3; border-radius: 13px; }
.dc-stats dt { font-size: .8rem; color: #686b61; }
.dc-stats dd { margin: .55rem 0 0; font-size: 1.8rem; font-weight: 750; line-height: 1.3; }
.dc-stats .dc-stat-text { font-size: .97rem; }
.dc-timestamps { display: flex; gap: 1rem 2rem; flex-wrap: wrap; }
.dc-timestamps p { margin: .25rem 0; font-size: .86rem; color: #64685e; }
.dc-timestamps strong { display: block; color: #363d32; font-weight: 650; }
.dc-muted { color: #686b62; font-size: .85rem; line-height: 1.5; }
.dc-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; margin-top: 1rem; }
.dc-action-row > .dc-muted { flex: 1 1 210px; }
.dc-button { min-height: 44px; border: 1px solid #cfd6c5; border-radius: 10px; padding: .75rem 1rem; background: #edf1e5; color: #304624; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.3; }
.dc-button:hover:not(:disabled) { background: #e0e7d5; }
.dc-button.dc-primary { background: #405b32; color: white; border-color: #405b32; }
.dc-button.dc-primary:hover:not(:disabled) { background: #324a26; }
.dc-button.dc-secondary { background: #fff; }
.dc-button:disabled { opacity: .5; cursor: default; }
.dc-shell :is(button,a,input,select,summary,[tabindex]):focus-visible { outline: 3px solid #7a592c; outline-offset: 3px; }
.dc-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; }
.dc-grid > .dc-card { height: auto; }
#dc-profiles { min-width: 0; margin: 1.25rem 0; border: 0; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.dc-profile { display: flex; gap: .65rem; align-items: center; padding: .85rem .7rem; border: 1px solid #e0e3d9; border-radius: 12px; cursor: pointer; min-height: 68px; }
.dc-profile:has(input:checked) { border-color: #526d40; background: #f0f4e9; box-shadow: inset 0 0 0 1px #526d40; }
.dc-profile input { margin: 0; accent-color: #405b32; width: 18px; height: 18px; flex: 0 0 18px; }
.dc-profile b { font-size: .86rem; display: block; }
.dc-profile small { font-size: .8rem; color: #666e5e; display: block; margin-top: .2rem; }
.dc-footnote { font-size: .78rem; color: #6d7167; margin: 1rem 0 0; }
.dc-boost-card { background: #f7f5ed; }
.dc-boost-status { min-height: 48px; padding: .85rem 1rem; background: #fff; border: 1px solid #e4dfcf; border-radius: 12px; font-size: .9rem; }
.dc-period { display: flex; gap: .6rem; align-items: center; font-size: .85rem; }
.dc-period select { min-height: 44px; padding: .5rem .8rem; border: 1px solid #d9ddcf; border-radius: 9px; color: #343d2c; background: white; font: inherit; }
.dc-table-wrap { overflow: auto; max-width: 100%; margin-top: .75rem; border: 1px solid #ecebe3; border-radius: 12px; }
.dc-table { border-collapse: collapse; width: 100%; font-size: .85rem; text-align: left; }
.dc-table :is(th,td) { padding: .9rem 1rem; border-bottom: 1px solid #eeeee7; vertical-align: top; }
.dc-table th { background: #f7f8f3; color: #5b6551; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.dc-table tr:last-child td { border-bottom: 0; }
.dc-table td { min-width: 90px; }
.dc-table td:first-child { min-width: 145px; }
.dc-table small { display: block; margin-top: .25rem; line-height: 1.4; color: #75776f; }
.dc-details { margin-top: 1rem; font-size: .83rem; color: #696f62; }
.dc-details summary { min-height: 44px; display: list-item; align-content: center; cursor: pointer; color: #3e5032; font-weight: 650; }
.dc-diagnostics { margin-top: .5rem; }
.dc-diagnostics-heading { margin: 0 0 1rem; }
.dc-diagnostics-heading h2 { margin: 0 0 .35rem; font-size: 1.05rem; line-height: 1.4; }
.dc-diagnostics-heading p { margin: 0; color: #686b62; font-size: .875rem; line-height: 1.5; }
.dc-diagnostic-panel { padding: 0; box-shadow: none; }
.dc-diagnostic-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; padding: 1.1rem 1.5rem; border-radius: inherit; list-style: none; cursor: pointer; }
.dc-diagnostic-panel > summary::-webkit-details-marker { display: none; }
.dc-diagnostic-panel > summary:hover { background: #f8f8f3; }
.dc-diagnostic-summary-copy { min-width: 0; display: grid; gap: .25rem; }
.dc-diagnostic-summary-copy strong { color: #363d32; font-size: 1rem; line-height: 1.4; }
.dc-diagnostic-summary-copy > span { color: #686b62; font-size: .875rem; line-height: 1.5; }
.dc-disclosure-chevron { flex: 0 0 .6rem; width: .6rem; height: .6rem; border-right: 2px solid #526246; border-bottom: 2px solid #526246; transform: rotate(45deg); margin: -.3rem .25rem 0 0; }
.dc-diagnostic-panel[open] > summary { border-bottom: 1px solid #e9e1d6; border-radius: 20px 20px 0 0; }
.dc-diagnostic-panel[open] > summary .dc-disclosure-chevron { transform: rotate(225deg); margin-top: .3rem; }
.dc-diagnostic-content { min-width: 0; padding: 1.25rem 1.5rem 1.5rem; }
.dc-diagnostic-content h3 { margin: 0; color: #363d32; font-size: 1rem; line-height: 1.4; }
.dc-diagnostic-content :is(.dc-muted, .dc-period, .dc-table, .dc-table th, .dc-details, .dc-table small) { font-size: .875rem; }
.dc-diagnostic-content .dc-table small { line-height: 1.5; }
.dc-table-hint { display: none; margin: .75rem 0 0; font-size: .875rem; color: #686b62; }
.dc-feedback { background: #edf3e7; border: 1px solid #cfdcbd; border-radius: 12px; padding: .9rem 1rem; line-height: 1.5; }
.dc-feedback.dc-error { background: #fff0e8; color: #7d3a22; border-color: #edcdbd; }
.dc-chip { display: inline-block; padding: .3rem .55rem; border-radius: 7px; background: #f2f0e9; color: #635c48; font-size: .77rem; white-space: nowrap; }
.dc-chip.is-failed { background: #fff0e8; color: #893d24; }
.dc-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.dc-shell [hidden] { display: none !important; }
@media (max-width: 720px) {
  .dc-shell { padding: .75rem .85rem 7rem; }
  .dc-title-row { align-items: flex-start; }
  .dc-model { font-size: .72rem; padding: .45rem .6rem; }
  .dc-card { padding: 1.05rem; border-radius: 15px; }
  .dc-diagnostic-panel { padding: 0; }
  .dc-diagnostic-panel > summary { padding: 1rem; }
  .dc-diagnostic-panel[open] > summary { border-radius: 15px 15px 0 0; }
  .dc-diagnostic-content { padding: 1rem; }
  .dc-table-hint { display: block; }
  .dc-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
  .dc-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .dc-stats > div { padding: .8rem; }
  .dc-title-row h1 { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) { .dc-shell * { scroll-behavior: auto !important; } }

.dc-recovery { display: flex; flex-wrap: wrap; gap: .75rem; margin: -.25rem 0 1.25rem; }
.dc-recovery .dc-button { display: inline-flex; align-items: center; text-decoration: none; }
