/* Teal App Register — structured profiles, a collection rail and a compact register. */
body[data-theme="teal-app-register"] {
    --accent: #116460;
    --accent-strong: #094843;
    --accent-soft: #e3f1ed;
    --page: #f5f9f7;
    --panel: #ffffff;
    --ink: #163c38;
    --muted: #607772;
    --line: #d8e5df;
    --radius: 12px;
    --display-font: "Segoe UI", Arial, sans-serif;
}
.tr-content { padding-top: 30px; }
.tr-eyebrow { display: block; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; line-height: 1.6; }
.tr-dashboard { display: grid; grid-template-columns: 1.08fr 1fr; align-items: stretch; gap: 38px; padding-bottom: 37px; border-bottom: 1px solid #d8e5df; margin-bottom: 34px; }
.tr-dashboard-copy { min-width: 0; padding: 20px 0 2px; }
.tr-dashboard h1 { margin: 15px 0 20px; max-width: 600px; font-family: var(--display-font); font-size: clamp(38px, 4.5vw, 61px); font-weight: 780; line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; }
.tr-dashboard-copy > p { max-width: 525px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.tr-dashboard-search { margin-top: 25px; }
.tr-dashboard-search form { margin-bottom: 0; }
.tr-dashboard-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--line); }
.tr-dashboard-counts > div { display: flex; flex-direction: column; gap: 5px; padding: 0 15px; border-left: 1px solid var(--line); }
.tr-dashboard-counts > div:first-child { padding-left: 0; border-left: 0; }
.tr-dashboard-counts strong { font-size: 27px; line-height: 1.2; font-weight: 750; letter-spacing: -.04em; }
.tr-dashboard-counts span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.tr-profile-panel { min-width: 0; padding: 22px; border: 1px solid #b9d5ca; border-radius: 18px; background: #e5f1eb; }
.tr-profile-label { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 9px; font-weight: 800; letter-spacing: .14em; color: #477267; }
.tr-profile-symbol { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #b8d4c9; border-radius: 50%; font-family: Georgia, serif; font-size: 15px; color: #447268; background: #f9fffb; }
.tr-profile-lead { display: grid; grid-template-columns: 106px minmax(0, 1fr); align-items: center; gap: 22px; position: relative; margin-top: 18px; padding: 25px 22px 34px; border-radius: 12px; background: #fff; border: 1px solid #cfdfd6; }
.tr-profile-lead > img { width: 106px; height: 106px; object-fit: cover; border-radius: 21px; }
.tr-profile-lead > div { min-width: 0; }
.tr-profile-lead > div > span { font-size: 9px; color: var(--accent); font-weight: 800; letter-spacing: .09em; }
.tr-profile-lead h2 { margin: 8px 0 11px; color: #143f37; font-size: 26px; line-height: 1.1; letter-spacing: -.04em; }
.tr-profile-lead p { margin: 0; color: #6c7f78; font-size: 11px; line-height: 1.65; }
.tr-profile-arrow { position: absolute; display: grid; place-items: center; right: 16px; bottom: -12px; width: 33px; height: 33px; border: 1px solid #b8d7c8; border-radius: 50%; background: #fff; color: var(--accent); }
.tr-panel-divider { display: flex; align-items: center; gap: 13px; margin: 26px 0 14px; color: #50756a; font-size: 10px; }
.tr-panel-divider > span:last-child { height: 1px; flex: 1; background: #bdd5c9; }
.tr-companion-apps { display: grid; gap: 7px; }
.tr-companion-apps a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 13px; align-items: center; padding: 8px 11px; border: 1px solid #ccdfd3; border-radius: 9px; background: #f5fbf7; }
.tr-companion-apps img { width: 44px; height: 44px; object-fit: cover; border-radius: 11px; }
.tr-companion-apps a > span { min-width: 0; font-size: 12px; font-weight: 750; line-height: 1.35; }
.tr-companion-apps a > svg { color: var(--accent); }
.tr-library-layout { display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: 32px; align-items: start; }
.tr-collection-rail { padding: 23px 19px 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; position: sticky; top: 24px; }
.tr-collection-rail h2 { margin: 7px 0 21px; font-size: 23px; line-height: 1.2; letter-spacing: -.04em; }
.tr-collection-links { display: grid; }
.tr-collection-links a { display: grid; grid-template-columns: minmax(0, 1fr) 25px; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #e4ede8; }
.tr-collection-links a > span { font-size: 11px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.tr-collection-links small { display: grid; place-items: center; min-width: 25px; height: 24px; border-radius: 5px; background: #eff6f2; color: #447264; font-size: 9px; font-weight: 750; }
.tr-collection-links a:hover > span { color: #16816a; }
.tr-rail-note { margin-top: 20px; padding: 17px 14px; border-radius: 9px; background: #eaf4ee; color: #487467; }
.tr-rail-note > span { display: inline-flex; transform: rotate(-35deg); }
.tr-rail-note p { margin: 9px 0 0; font-size: 11px; line-height: 1.7; }
.tr-register { min-width: 0; }
.tr-register-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px; margin-bottom: 23px; }
.tr-register-heading h2 { margin: 6px 0 0; font-size: clamp(25px, 2.8vw, 33px); line-height: 1.18; letter-spacing: -.045em; }
.tr-entry-count { color: var(--muted); font-size: 10px; padding-bottom: 3px; }
.tr-register [data-ui="app-grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tr-register [data-ui="app-card"] { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 16px; border-radius: 11px; border-color: #d6e5dc; padding: 18px; background: #fff; box-shadow: none; }
.tr-register [data-ui="app-card"]:hover { border-color: #87b8a4; background: #fbfffc; transform: translateY(-2px); }
.tr-register [data-ui="app-icon"] { width: 64px; height: 64px; border-radius: 15px; }
.tr-register [data-ui="app-copy"] { min-width: 0; }
.tr-register [data-ui="app-copy"] h3 { font-size: 13px; line-height: 1.4; }
.tr-register [data-ui="app-action"] { font-size: 10px; color: var(--accent); }
.tr-register-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 24px; padding: 20px 0 0; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.tr-register-footer a { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: var(--accent); }
.tr-collection-feature { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 35px; margin-top: 45px; padding: 31px; border: 1px solid #c9ddd1; border-radius: 14px; background: #e8f2eb; }
.tr-collection-feature > div { min-width: 0; }
.tr-collection-feature > div > h2 { margin: 10px 0 14px; font-size: 29px; line-height: 1.2; letter-spacing: -.045em; }
.tr-collection-feature > div > p { margin: 0 0 19px; color: #54786a; font-size: 13px; line-height: 1.8; }
.tr-collection-feature > div > a { display: inline-flex; align-items: center; gap: 11px; font-size: 11px; font-weight: 800; color: var(--accent); }
.tr-feature-collections [data-ui="collection-grid"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.tr-feature-collections [data-ui="collection-card"] { border-color: #c4dcd0; border-radius: 10px; background: #fcfffc; }
.tr-reading-desk { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 41px; }
.tr-reading-desk > * { min-width: 0; }
.tr-reading-desk [data-ui="home-note"] { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; padding: 28px; border: 1px solid #c5dccf; border-radius: 12px; background: #e7f2eb; }
.tr-reading-desk [data-ui="home-note"] h2 { margin-top: 0; }
.tr-reading-desk [data-ui="home-faq"] { display: block; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tr-reading-desk [data-ui="faq-list"] { margin-top: 21px; }
body[data-theme="teal-app-register"] [data-ui="detail-hero"] { background: #e8f3ed; border: 1px solid #c0dacf; border-left: 5px solid #287c66; border-radius: 12px; }
body[data-theme="teal-app-register"] [data-ui="detail-layout"] { gap: 30px; }
body[data-theme="teal-app-register"] [data-ui="gallery"] { gap: 14px; }
@media (max-width: 1080px) {
    .tr-dashboard { gap: 25px; }
    .tr-profile-panel { padding: 18px; }
    .tr-profile-lead { grid-template-columns: 78px minmax(0, 1fr); gap: 17px; padding: 22px 16px 29px; }
    .tr-profile-lead > img { width: 78px; height: 78px; border-radius: 17px; }
    .tr-profile-lead h2 { font-size: 23px; }
    .tr-library-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
    .tr-collection-rail { padding: 21px 16px; }
    .tr-register [data-ui="app-card"] { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 14px; }
    .tr-register [data-ui="app-icon"] { width: 52px; height: 52px; border-radius: 12px; }
}
@media (max-width: 800px) {
    .tr-dashboard { grid-template-columns: 1fr; gap: 27px; }
    .tr-dashboard h1 { font-size: clamp(38px, 7vw, 56px); }
    .tr-dashboard-copy > p { max-width: none; }
    .tr-profile-lead { grid-template-columns: 92px minmax(0, 1fr); padding: 24px; }
    .tr-profile-lead > img { width: 92px; height: 92px; }
    .tr-companion-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .tr-companion-apps a { grid-template-columns: 1fr; justify-items: start; gap: 10px; padding: 13px; }
    .tr-companion-apps a > svg { display: none; }
    .tr-companion-apps a > span { font-size: 10px; }
    .tr-library-layout { grid-template-columns: 1fr; gap: 29px; }
    .tr-collection-rail { position: static; padding: 21px; }
    .tr-collection-rail h2 { margin-bottom: 14px; }
    .tr-collection-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
    .tr-rail-note { display: none; }
    .tr-register [data-ui="app-card"] { grid-template-columns: 62px minmax(0, 1fr); padding: 17px; }
    .tr-register [data-ui="app-icon"] { width: 62px; height: 62px; border-radius: 14px; }
    .tr-collection-feature { grid-template-columns: 1fr; gap: 24px; padding: 25px; }
    .tr-reading-desk { grid-template-columns: 1fr; gap: 23px; }
}
@media (max-width: 500px) {
    .tr-content { padding-top: 14px; }
    .tr-dashboard-copy { padding-top: 10px; }
    .tr-dashboard h1 { font-size: 41px; }
    .tr-dashboard-counts { margin-top: 23px; padding-top: 19px; }
    .tr-dashboard-counts > div { padding: 0 11px; }
    .tr-dashboard-counts strong { font-size: 24px; }
    .tr-dashboard-counts span { font-size: 9px; }
    .tr-profile-panel { padding: 15px; }
    .tr-profile-lead { grid-template-columns: 77px minmax(0, 1fr); gap: 15px; padding: 22px 15px 28px; }
    .tr-profile-lead > img { width: 77px; height: 77px; }
    .tr-profile-lead h2 { font-size: 23px; }
    .tr-profile-lead > div > span { font-size: 8px; }
    .tr-companion-apps a { padding: 12px 9px; }
    .tr-companion-apps img { width: 40px; height: 40px; border-radius: 10px; }
    .tr-collection-rail { padding: 20px 17px; }
    .tr-collection-links { gap: 0 17px; }
    .tr-collection-links a { gap: 7px; }
    .tr-collection-links a > span { font-size: 10px; }
    .tr-register [data-ui="app-grid"] { grid-template-columns: 1fr; gap: 10px; }
    .tr-register [data-ui="app-card"] { grid-template-columns: 66px minmax(0, 1fr); padding: 17px; gap: 17px; }
    .tr-register [data-ui="app-icon"] { width: 66px; height: 66px; border-radius: 16px; }
    .tr-register [data-ui="app-copy"] h3 { font-size: 15px; }
    .tr-feature-collections [data-ui="collection-grid"] { grid-template-columns: 1fr; }
    .tr-collection-feature { padding: 23px 19px; }
}
