/* DICH-R9-SITE-1: R9 presentation scoped to .dich-r9; portal header/footer are owned by site.css. */
.dich-r9{max-width:1140px;margin:auto;padding:25px 18px 72px;color:#263445;}
/* SOURCE web/dich/lap-que/style.css */
.dich-r9{font:16px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;color:#263445;background:#f3f5f7}.dich-r9, .dich-r9 *{box-sizing:border-box}.dich-r9{margin:0}.dich-r9 .shell{max-width:1140px;margin:auto;padding:25px 18px 72px}.dich-r9 .eyebrow{color:#56718d;font-size:12px;font-weight:800;letter-spacing:.12em}.dich-r9 .lead{font-size:16px;color:#576778;max-width:740px;margin:6px 0 18px}.dich-r9 .layout{display:grid;grid-template-columns:minmax(285px,355px) minmax(0,1fr);gap:18px;align-items:start}.dich-r9 .input-panel,.dich-r9 .output-panel{min-width:0}.dich-r9 .box{background:#fff;border:1px solid #dce3ea;border-radius:13px;padding:19px;margin-bottom:17px;box-shadow:0 2px 6px #00000006}.dich-r9 .box h2{margin:0 0 12px;font-size:20px}.dich-r9 .box h3{font-size:16px;margin:18px 0 7px}.dich-r9 .muted{color:#617385;font-size:13px}.dich-r9 .field{display:grid;gap:4px;margin:12px 0}.dich-r9 .field label{font-weight:650;font-size:13px}.dich-r9 .field input,.dich-r9 .field select,.dich-r9 select{font:inherit;border:1px solid #b6c4d1;background:#fff;color:#263445;border-radius:7px;padding:9px;min-width:0;max-width:100%}.dich-r9 .line-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dich-r9 .line-inputs label{display:grid;gap:5px;background:#f7fafc;border:1px solid #e4ebf0;border-radius:8px;padding:8px;font-size:12px;font-weight:700}.dich-r9 .line-inputs select{width:100%}.dich-r9 .actions{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}.dich-r9 button{font:inherit;font-size:13px;font-weight:700;cursor:pointer;border:1px solid #b8c9da;border-radius:8px;background:#fff;color:#184467;padding:10px 12px}.dich-r9 button.primary{background:#175b80;color:#fff;border-color:#175b80}.dich-r9 button:disabled{cursor:not-allowed;opacity:.5}.dich-r9 button:focus-visible,.dich-r9 select:focus-visible,.dich-r9 input:focus-visible{outline:3px solid #91b5d7;outline-offset:2px}.dich-r9 .notice{font-size:13px;color:#655315;background:#fff9ea;border-left:3px solid #dfb34c;padding:11px 13px;border-radius:5px}.dich-r9 .status{min-height:23px;color:#1d6780;font-size:13px;margin:12px 0 0}.dich-r9 .status.error{color:#ab3535}.dich-r9 .overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.dich-r9 .stat{background:#f6f8fb;border:1px solid #e4e9ef;border-radius:9px;padding:11px;min-width:0}.dich-r9 .stat span{display:block;font-size:11px;color:#647990;font-weight:700}.dich-r9 .stat strong{display:block;font-size:17px;margin-top:3px;overflow-wrap:anywhere}.dich-r9 .tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.dich-r9 .tabs button.active{background:#174b74;color:white;border-color:#174b74}.dich-r9 .hex-view{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:18px}.dich-r9 .hex-lines{padding:15px;border:1px solid #e5ebf0;border-radius:10px}.dich-r9 .hex-row{display:flex;align-items:center;gap:14px;margin:9px 0}.dich-r9 .hex-row small{width:48px;color:#647990}.dich-r9 .hex-glyph{display:flex;width:175px;height:15px;gap:16px}.dich-r9 .hex-glyph i{display:block;background:#1b5d87;flex:1;border-radius:2px}.dich-r9 .hex-glyph .full{flex:none;width:100%}.dich-r9 .moving{font-size:19px;color:#ba7b19;font-weight:800}.dich-r9 .meta-grid{display:grid;gap:7px;font-size:13px}.dich-r9 .meta-grid div{padding-bottom:7px;border-bottom:1px solid #ecf0f3;overflow-wrap:anywhere}.dich-r9 .meta-grid b{color:#566e87}.dich-r9 .table-wrap{overflow:auto}.dich-r9 table{border-collapse:collapse;width:100%;min-width:650px;font-size:13px}.dich-r9 td,.dich-r9 th{border-bottom:1px solid #e5eaf0;padding:9px;text-align:left}.dich-r9 th{background:#f6f9fb;white-space:nowrap}.dich-r9 td{white-space:nowrap}.dich-r9 .hidden-row{font-size:13px;margin:4px 0}.dich-r9 .saved{display:grid;gap:7px}.dich-r9 .saved button{text-align:left}.dich-r9 .footer{color:#607181;font-size:12px;margin-top:18px}.dich-r9 .hide{display:none!important}.dich-r9 details{font-size:12px;overflow-wrap:anywhere}.dich-r9 summary{cursor:pointer;font-weight:700}@media (max-width:790px){.dich-r9 .layout{grid-template-columns:1fr}.dich-r9 .hex-view{grid-template-columns:1fr}.dich-r9 .overview{grid-template-columns:1fr 1fr 1fr}}@media (max-width:430px){.dich-r9 .overview{grid-template-columns:1fr}.dich-r9 .line-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{.dich-r9 .input-panel,.dich-r9 .actions,.dich-r9 .tabs,.dich-r9 .saved-box,.dich-r9 button,.dich-r9 .lead,.dich-r9 .eyebrow,.dich-r9 .status{display:none!important}.dich-r9 .layout{display:block}.dich-r9 .box{border:0;box-shadow:none;padding:8px}.dich-r9 .shell{padding:0}.dich-r9 #resultBox{display:block!important}.dich-r9 .table-wrap{overflow:visible}.dich-r9 table{min-width:0;font-size:10px}.dich-r9 th,.dich-r9 td{padding:5px}.dich-r9 .notice{color:#000}}
.dich-r9 .main-heading{margin:5px 0}.dich-r9 .source-note{font-size:13px;color:#51677e;margin:0 0 20px}.dich-r9 .metadata-detail{margin-top:20px}.dich-r9 .metadata-pre{white-space:pre-wrap}.dich-r9 .result-notice{margin-top:17px}@media print{.dich-r9 .source-note{display:none!important}}
.dich-r9 .tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.dich-r9 .tool{min-height:205px;display:flex;flex-direction:column;align-items:flex-start}.dich-r9 .tool h2{margin:12px 0 4px}.dich-r9 .tool p{font-size:14px;color:#53697f;line-height:1.5}.dich-r9 .tool-status{background:#e5f2ec;color:#236143;font-size:11px;padding:3px 9px;border-radius:30px;font-weight:700}.dich-r9 .tool-status.pending{background:#eff2f6;color:#5c6f81}.dich-r9 .tool-link{margin-top:auto;background:#175b80;color:#fff;text-decoration:none;border-radius:8px;padding:10px 13px;font-weight:700;font-size:13px}.dich-r9 .tool-link:hover{background:#114b6b}@media (max-width:680px){.dich-r9 .tool-grid{grid-template-columns:1fr}}

.dich-r9 .tool-link.secondary{background:#eaf1f8;color:#174b74}.dich-r9 .tool-link.secondary:hover{background:#deebf5}
.dich-r9 .tool-tab{font-size:14px;font-weight:700;color:#174b74;text-decoration:none;border:1px solid #b8c9da;border-radius:9px;padding:10px 15px;background:white}
.dich-r9 .tool-tab:hover{background:#eaf3f9}.dich-r9 .tool-tab.active{background:#174b74;color:white;border-color:#174b74}
.dich-r9 .pending-detail{max-width:780px}.dich-r9 .pending-detail p{line-height:1.65}.dich-r9 .pending-detail h3{margin:17px 0 6px}.dich-r9 .pending-detail .notice{margin-top:22px}
@media (max-width:790px){.dich-r9 .table-wrap{max-width:100%;overscroll-behavior-x:contain}}
@media print{.dich-r9 .tool-tab,.dich-r9 .tool-link{display:none!important}}

.dich-r9 .scroll-hint{display:none}@media (max-width:790px){.dich-r9 .scroll-hint{display:block;margin-bottom:8px}}

/* SOURCE web/dich/mai-hoa/style.css */
.dich-r9 .method-note{padding:10px 12px;border-left:3px solid #4580a3;background:#eff6fa;border-radius:5px;color:#345a72;font-size:13px;margin-bottom:8px}.dich-r9 .overview.two{grid-template-columns:repeat(2,minmax(0,1fr))}.dich-r9 .overview small{display:block;color:#5d7082;margin-top:7px}.dich-r9 .hex-view{margin-top:15px}.dich-r9 .output-panel .box pre{font-size:11px;max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.dich-r9 #hexFacts{padding-top:12px}.dich-r9 #calendarWarning{margin-top:12px}@media (max-width:440px){.dich-r9 .overview.two{grid-template-columns:1fr}}

/* SOURCE web/dich/ky-mon/style.css */
.dich-r9 .qimen-board{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:9px;min-width:570px}
.dich-r9 .board-scroll{overflow-x:auto;max-width:100%;padding:4px 2px 10px;overscroll-behavior-x:contain}
.dich-r9 .palace{border:1px solid #d3e0e9;background:#f9fbfd;border-radius:10px;padding:12px;min-height:174px;display:flex;flex-direction:column;gap:5px}
.dich-r9 .palace.center{background:#eaf1f7}
.dich-r9 .palace-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline;border-bottom:1px solid #dae3eb;padding-bottom:7px}
.dich-r9 .palace-top strong{color:#153c60;font-size:15px}.dich-r9 .palace-top span{font-size:12px;color:#657b90}
.dich-r9 .palace-row{font-size:13px;display:flex;justify-content:space-between;gap:9px;align-items:start}
.dich-r9 .palace-row b{font-weight:600;color:#4d6073;white-space:nowrap}.dich-r9 .palace-row span{text-align:right;color:#1d354d;overflow-wrap:anywhere}
.dich-r9 #metadata{white-space:pre-wrap;overflow-wrap:anywhere;max-height:280px;overflow:auto;font-size:11px}
.dich-r9 #technicalFacts{margin-bottom:14px}.dich-r9 .stat strong{overflow-wrap:anywhere}
@media (max-width:600px){.dich-r9 .qimen-board{grid-template-columns:repeat(3,190px);min-width:588px}.dich-r9 .board-scroll{margin-right:-4px}.dich-r9 .palace{min-height:181px;padding:10px}.dich-r9 .palace-row{font-size:12px}}
@media print{.dich-r9 .input-panel,.dich-r9 .actions,.dich-r9 .footer,.dich-r9 .notice,.dich-r9 #empty{display:none!important}.dich-r9 .layout{display:block}.dich-r9 .output-panel{width:100%}.dich-r9 .board-scroll{overflow:visible!important}.dich-r9 .qimen-board{min-width:0!important;grid-template-columns:repeat(3,minmax(0,1fr))}.dich-r9 .palace{min-height:160px;page-break-inside:avoid}.dich-r9 .shell{max-width:none!important}.dich-r9 .box{page-break-inside:avoid}}

/* SOURCE web/dich/dai-luc-nham/style.css */
/* R8: technical diagram only. No auspicious/inauspicious highlighting. */
.dich-r9 .location-fields{border:1px solid #dce5ef;border-radius:10px;padding:12px;margin:14px 0;min-width:0}.dich-r9 .location-fields legend{font-weight:650;padding:0 5px}.dich-r9 .coords{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dich-r9 .coords .field{margin:0}.dich-r9 .coords input{width:100%;min-width:0}.dich-r9 .plate-scroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}.dich-r9 .plate{min-width:620px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.dich-r9 .plate-cell{background:#f5f8fc;border:1px solid #dce5ef;border-radius:10px;min-height:118px;padding:10px;display:flex;flex-direction:column;gap:7px}.dich-r9 .plate-cell strong{font-size:22px;color:#164b83}.dich-r9 .plate-cell small{font-size:12px;color:#60768b}.dich-r9 .plate-cell .general{font-weight:650;color:#273d52}.dich-r9 .lessons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.dich-r9 .lesson{background:#f5f8fc;border:1px solid #dce5ef;border-radius:10px;padding:12px;text-align:center;min-width:0}.dich-r9 .lesson strong{font-size:28px;display:block;padding:8px 0}.dich-r9 .lesson small{display:block;overflow-wrap:anywhere;color:#53677c}.dich-r9 .transmissions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.dich-r9 .transmission{flex:1;min-width:85px;text-align:center;padding:14px;background:#f5f8fc;border:1px solid #dce5ef;border-radius:10px}.dich-r9 .transmission strong{font-size:30px;display:block}.dich-r9 .transmission small{display:block}.dich-r9 .metadata-pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;font-size:11px}.dich-r9 .output-panel{min-width:0}.dich-r9 .box{min-width:0}.dich-r9 #generalFacts{margin-bottom:12px}
@media (max-width:600px){.dich-r9 .coords{grid-template-columns:1fr}.dich-r9 .lessons{grid-template-columns:repeat(2,minmax(0,1fr))}.dich-r9 .plate{min-width:620px}.dich-r9 .plate-cell{min-height:105px}}
@media print{.dich-r9 .input-panel,.dich-r9 .actions,.dich-r9 .footer,.dich-r9 #empty{display:none!important}.dich-r9 .layout{display:block}.dich-r9 .output-panel{width:100%!important}.dich-r9 .plate-scroll{overflow:visible!important}.dich-r9 .plate{min-width:0!important;grid-template-columns:repeat(4,minmax(0,1fr))}.dich-r9 .plate-cell{min-height:90px;page-break-inside:avoid;padding:5px}.dich-r9 .shell{max-width:none!important}.dich-r9 .box{break-inside:avoid}.dich-r9 .metadata-pre{max-height:none}}

.dich-r9 .plate-empty{border:none;background:none}

