/* Sara Aahaar on the phone (patient_app_diet_look.js) - the look of the mock he approved on 14 Oct 2026
   (hms-design/diet-merge/make_app_mock.py): the orange heading with Sara, the four tabs, sub-tabs, the plates with their
   coloured number tiles, the fruit rings and the food page with rings and bars. Every motion stops for a phone set to
   reduce motion. */
.dlk { margin: 0 0 18px; border-radius: 26px; overflow: hidden; background: linear-gradient(160deg, #dcfce7, #fef9c3 50%, #ffedd5);
  box-shadow: 0 10px 28px rgba(194, 65, 12, .12); color: #2a1f1a; scroll-margin-top: 70px; }
.dlk button { font-family: inherit; cursor: pointer; }
/* Telugu letters no bigger than the English (his rule, 3 and 13 Oct 2026): the app's smaller Telugu face (Anek Telugu,
   86%, patient_app_aahaaram.css) for the Telugu letters only; English letters and numbers keep the app's own. */
.dlk.te { font-family: "Anek Telugu", var(--font); }
.dlk.te .dlk-on, .dlk.te .dlk-fd { line-height: 1.3; }
.dlk-top { position: relative; min-height: 128px; padding: 18px 120px 14px 18px; color: #fff;
  background: linear-gradient(115deg, #c2410c, #e8590c 50%, #f472b6 130%); }
.dlk-wm { font: italic 700 26px/1 "Playfair Display", Georgia, "Times New Roman", serif; white-space: nowrap; }
.dlk-ai { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 20px; background: #fff; color: #c2410c;
  font-weight: 700; font-size: 11.5px; }
.dlk-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.dlk-tags span { padding: 2px 9px; border-radius: 20px; background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .5);
  font-size: 11px; font-weight: 600; }
.dlk-bot { position: absolute; right: 4px; bottom: 0; height: 122px; transform-origin: bottom center; animation: dlk-wave 2.4s ease-in-out infinite; }
@keyframes dlk-wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-3deg) translateY(-2px); } }

.dlk-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 12px 0; padding: 9px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .85); border-left: 4px solid #ef6c3a; font-size: 12.5px; line-height: 1.4; color: #4b4038; }
.dlk-note span { font-size: 16px; line-height: 1.2; }
.dlk-tabs { display: flex; gap: 6px; padding: 12px 12px 4px; position: sticky; top: 0; z-index: 2;
  background: linear-gradient(#dcfce7f2, #dcfce7d9); backdrop-filter: blur(6px); }
.dlk-tabb { flex: 1; min-height: 40px; border: 0; border-radius: 20px; background: #fff; color: #8a7a70; font-weight: 600; font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.dlk-tabb.on { background: #c2410c; color: #fff; box-shadow: 0 4px 10px rgba(194, 65, 12, .3); }
.dlk-tabb:focus-visible, .dlk-sub:focus-visible, .dlk-fd:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.dlk-panel { padding-bottom: 14px; }

.dlk-subs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 10px; scrollbar-width: none; }
.dlk-subs::-webkit-scrollbar { display: none; }
.dlk-sub { flex: none; min-height: 34px; padding: 5px 13px; border-radius: 20px; border: 1.5px solid #fdba8c; background: rgba(255, 255, 255, .75);
  color: #c2410c; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.dlk-sub.on { background: linear-gradient(135deg, #ef6c3a, #f59e0b); color: #fff; border-color: transparent; box-shadow: 0 3px 8px rgba(239, 108, 58, .35); }
[data-panel="fruits"] .dlk-sub, [data-panel="foods"] .dlk-sub { flex: 1; }
.dlk-sub.eat { border-color: #86efac; color: #15803d; } .dlk-sub.small { border-color: #fcd34d; color: #b45309; } .dlk-sub.avoid { border-color: #fca5a5; color: #b91c1c; }
.dlk-sub.eat.on { background: #16a34a; color: #fff; } .dlk-sub.small.on { background: #d97706; color: #fff; } .dlk-sub.avoid.on { background: #dc2626; color: #fff; }

.dlk-ttl { margin: 2px 16px 8px; font-weight: 800; font-size: 18px; color: var(--t, #c2410c); }
.dlk-ttl small { display: block; font-size: 12px; font-weight: 500; color: #8a7a70; }
.dlk-tab { margin: 0 14px 8px; padding: 7px 12px; border-radius: 12px; background: #fff7ed; border: 1px dashed #fb923c; color: #9a3412;
  font-size: 12.5px; font-weight: 600; }
.dlk-adds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 14px 10px; font-size: 12px; }
.dlk-adds b { color: #15803d; }
.dlk-adds span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 3px; border-radius: 20px; background: #fff; font-weight: 600; }
.dlk-adds i { width: 22px; height: 22px; border-radius: 50%; background: #fff center/90% no-repeat; }

.dlk-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 12px; }
.dlk-opt { position: relative; border-radius: 18px; padding: 14px 8px 10px; text-align: center; background: linear-gradient(170deg, #ffd9c7, #fff1e8);
  animation: dlk-up .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
@keyframes dlk-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.dlk-rib { position: absolute; top: 10px; right: -4px; padding: 2px 8px; border-radius: 8px 0 0 8px; background: #ef6c3a; color: #fff; font-size: 11.5px; font-weight: 700; z-index: 1; }
.dlk-plate { position: relative; width: 86px; height: 86px; margin: 6px auto; }
.dlk-plate i { position: absolute; border-radius: 50%; background: #fff center/90% no-repeat; }
.dlk-plate .big { inset: 0; box-shadow: 0 0 0 5px #fbc7ad, 0 6px 14px rgba(0, 0, 0, .2); animation: dlk-spin 1s ease-out both; animation-delay: var(--d); }
.dlk-plate .glass { background: #e0f2fe; }
@keyframes dlk-spin { from { transform: rotate(-90deg) scale(.6); } to { transform: none; } }
.dlk-plate .sm { width: 34px; height: 34px; right: -10px; bottom: -4px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.dlk-plate .s1 { left: -10px; right: auto; }
.dlk-on { font-weight: 700; font-size: 12.5px; line-height: 1.25; }
.dlk-oq { font-size: 11px; color: #8a7a70; }
.dlk-t3s { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 7px; }
.dlk-t3 { padding: 3px 0; border-radius: 8px; background: var(--k); color: #fff; animation: dlk-pop .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--d); }
@keyframes dlk-pop { from { transform: scale(0); } to { transform: scale(1); } }
.dlk-t3 b { font-size: 13.5px; } .dlk-t3 small { font-size: 8.5px; } .dlk-t3 span { display: block; font-size: 8.5px; }

.dlk-frs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 12px 4px; }
.dlk-fr { padding: 10px 4px 8px; border-radius: 16px; background: #fff; text-align: center; animation: dlk-up .5s ease both; animation-delay: var(--d); }
.dlk-ring { position: relative; width: 66px; height: 66px; margin: 0 auto; }
.dlk-ring svg { position: absolute; inset: 0; }
.dlk-ring i { position: absolute; inset: 9px; border-radius: 50%; background: #fff center/90% no-repeat; }
.dlk-arc { animation: dlk-fill 1.4s ease-out both; animation-delay: calc(var(--d) + .3s); }
@keyframes dlk-fill { from { stroke-dasharray: 0 var(--len); } }
.dlk-fr > b { display: block; margin-top: 3px; font-size: 12px; }
.dlk-big { font-weight: 800; color: var(--c); font-size: 16px; line-height: 1.1; }
.dlk-big small { font-size: 10px; }
.dlk-fr > span { display: block; font-size: 10px; color: #8a7a70; }
.dlk-fr em { display: block; margin-top: 3px; font-style: normal; font-size: 10px; color: #b45309; line-height: 1.2; }

.dlk-hint { margin: 0 16px 4px; font-size: 12px; color: #8a7a70; }
.dlk-food { text-align: center; padding: 6px 16px 0; }
.dlk-bigplate { width: 150px; height: 150px; margin: 4px auto 0; border-radius: 50%; background: #fff center/90% no-repeat;
  box-shadow: 0 0 0 8px #bbf7d0, 0 12px 24px rgba(0, 0, 0, .18); animation: dlk-spin 1.1s ease-out both; }
.dlk-bigplate.some { box-shadow: 0 0 0 8px #fde68a, 0 12px 24px rgba(0, 0, 0, .18); }
.dlk-bigplate.bad { box-shadow: 0 0 0 8px #fecdd3, 0 12px 24px rgba(0, 0, 0, .18); }
.dlk-h3 { margin-top: 12px; font-weight: 800; font-size: 20px; }
.dlk-tag3 { display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 20px; font-weight: 600; font-size: 12px; }
.dlk-tag3.good { background: #dcfce7; color: #15803d; } .dlk-tag3.some { background: #fef3c7; color: #b45309; } .dlk-tag3.bad { background: #fee2e2; color: #b91c1c; }
.dlk-sub3 { margin: 10px 0 4px; font-size: 11.5px; color: #8a7a70; }
.dlk-rgs { display: grid; grid-template-columns: repeat(4, 1fr); }
.dlk-rg { position: relative; }
.dlk-rg svg { width: 70px; height: 70px; }
.dlk-rg .dlk-arc { animation-delay: var(--d); }
.dlk-rg > b { position: absolute; top: 23px; left: 0; right: 0; font-size: 17px; }
.dlk-rg span { display: block; font-size: 11.5px; font-weight: 600; color: var(--c); }
.dlk-bars { padding: 6px 2px 0; text-align: left; }
.dlk-br { margin-top: 8px; }
.dlk-bl { display: flex; justify-content: space-between; font-size: 12.5px; }
.dlk-bt { height: 9px; margin-top: 3px; border-radius: 6px; background: #fff; overflow: hidden; }
.dlk-bt i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--c); animation: dlk-grow 1.2s ease-out both; animation-delay: var(--d); }
@keyframes dlk-grow { from { width: 0; } }
.dlk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 12px 0; }
.dlk-fd { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 2px solid transparent; border-radius: 14px;
  background: #fff; font-size: 10.5px; font-weight: 600; line-height: 1.15; color: #2a1f1a; animation: dlk-up .45s ease both; animation-delay: var(--d); }
.dlk-fd i { width: 44px; height: 44px; border-radius: 50%; background: #fff center/90% no-repeat; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.dlk-fd.on { border-color: #ef6c3a; }

.dlk-why { margin: 10px 12px 0; padding: 12px 14px; border-radius: 16px; color: #fff; background: linear-gradient(140deg, var(--w), color-mix(in srgb, var(--w) 65%, #fff));
  animation: dlk-up .5s ease both; animation-delay: var(--d); }
.dlk-why b { display: block; font: italic 700 17px "Playfair Display", Georgia, serif; }
.dlk-why p { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.dlk-why p.r { opacity: .92; font-weight: 600; }
.dlk-why small { display: block; margin-top: 4px; font-size: 10.5px; opacity: .85; }
.dlk [data-panel="why"] > .card, .dlk [data-panel="why"] > section:not(.dlk-refs), .dlk [data-panel="why"] > div:not(.dlk-why) { margin: 10px 12px 0; }
.dlk-refs { margin: 14px 12px 0; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .8); }
.dlk-refs h4 { margin: 0 0 6px; font-size: 14px; color: #1d4e9e; }
.dlk-refs ol { margin: 0; padding-left: 22px; font-size: 11.5px; line-height: 1.4; color: #4b4038; }
.dlk-refs li { margin-bottom: 5px; overflow-wrap: anywhere; }
.dlk-refs a { color: #1d4e9e; }
.dlk-src { margin: 10px 16px 0; font-size: 10px; font-style: italic; color: #8a7a70; }
.dlk-none { margin: 4px 16px; font-size: 13px; color: #8a7a70; }

@media (max-width: 360px) {
  .dlk-top { padding-right: 100px; } .dlk-bot { height: 104px; } .dlk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .dlk *, .dlk-bot { animation: none !important; }
}
